feat: add showPublicScores and showPublicOpinions flags to services with plan-based access control

This commit is contained in:
2026-07-22 14:05:39 -03:00
parent da3c3abb52
commit 279e1b54cc
19 changed files with 391 additions and 43 deletions
@@ -57,6 +57,8 @@ export type CreateServiceParams = {
latitude?: number;
longitude?: number;
sessionUser: string;
showPublicScores?: boolean;
showPublicOpinions?: boolean;
};
export type UpdateServiceParams = {
@@ -81,6 +83,8 @@ export type UpdateServiceParams = {
longitude?: number;
sessionUser: string;
banned?: boolean;
showPublicScores?: boolean;
showPublicOpinions?: boolean;
};
export type PaginatePublicServicesParams = FindServicesParams & {
@@ -155,6 +159,8 @@ export interface IService {
published?: SERVICE_PUBLISHED_STATUS;
discountId?: string;
banned?: boolean;
showPublicScores?: boolean;
showPublicOpinions?: boolean;
}
export interface CompanyServiceView {
@@ -176,6 +182,8 @@ export interface CompanyServiceView {
fontShadowColor: string;
published: SERVICE_PUBLISHED_STATUS;
banned?: boolean;
showPublicScores: boolean;
showPublicOpinions: boolean;
}
export interface PublicServiceView {
@@ -199,6 +207,8 @@ export interface PublicServiceView {
fontColor: string;
fontShadowColor: string;
banned?: boolean;
showPublicScores: boolean;
showPublicOpinions: boolean;
}
export interface FindServicesByCompanyParams {