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
+4
View File
@@ -55,6 +55,8 @@ export type PublicOrganizationView = {
latitude: number;
longitude: number;
appointmentAlert: string;
showPublicScores: boolean;
showPublicOpinions: boolean;
};
export type PublicOrganizationServiceViewParams = {
@@ -163,6 +165,8 @@ class Views {
services,
employees: services,
appointmentAlert: isNull<string>(company.appointmentAlert, ""),
showPublicScores: company.showPublicScores ?? true,
showPublicOpinions: company.showPublicOpinions ?? true,
};
}