evo360-types 1.3.157 → 1.3.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +3 -0
  2. package/dist/apps/evo-crm/lead/zod-schemas.js +1 -0
  3. package/dist/apps/evo-crm/lead/zod-schemas.ts +1 -0
  4. package/dist/apps/evo-med/people/zod-schemas.d.ts +6 -0
  5. package/dist/apps/evo-med/people/zod-schemas.js +2 -0
  6. package/dist/apps/evo-med/people/zod-schemas.ts +2 -0
  7. package/dist/types/evo-core/rbac/index.ts +1 -1
  8. package/dist/types/evo-crm/lead/index.d.ts +1 -0
  9. package/dist/types/evo-crm/lead/index.ts +1 -0
  10. package/dist/types/evo-med/appointment/index.d.ts +8 -0
  11. package/dist/types/evo-med/appointment/index.js +9 -1
  12. package/dist/types/evo-med/appointment/index.ts +13 -0
  13. package/dist/types/evo-med/dic/index.d.ts +8 -0
  14. package/dist/types/evo-med/dic/index.js +9 -1
  15. package/dist/types/evo-med/dic/index.ts +12 -0
  16. package/dist/types/evo-med/insurance/index.d.ts +8 -0
  17. package/dist/types/evo-med/insurance/index.js +9 -1
  18. package/dist/types/evo-med/insurance/index.ts +12 -0
  19. package/dist/types/evo-med/people/index.d.ts +18 -0
  20. package/dist/types/evo-med/people/index.js +17 -1
  21. package/dist/types/evo-med/people/index.ts +26 -0
  22. package/dist/types/evo-med/procedure/index.d.ts +8 -0
  23. package/dist/types/evo-med/procedure/index.js +9 -1
  24. package/dist/types/evo-med/procedure/index.ts +12 -0
  25. package/dist/types/evo-messages/index.d.ts +8 -0
  26. package/dist/types/evo-messages/index.js +9 -1
  27. package/dist/types/evo-messages/index.ts +12 -0
  28. package/dist/types/evo-notifications/index.d.ts +8 -0
  29. package/dist/types/evo-notifications/index.js +9 -1
  30. package/dist/types/evo-notifications/index.ts +12 -0
  31. package/dist/types/evo-people/index.d.ts +32 -0
  32. package/dist/types/evo-people/index.js +33 -1
  33. package/dist/types/evo-people/index.ts +48 -0
  34. package/dist/types/evo-task/index.d.ts +8 -0
  35. package/dist/types/evo-task/index.js +9 -1
  36. package/dist/types/evo-task/index.ts +12 -0
  37. package/dist/types/evo-task-runner/index.d.ts +8 -0
  38. package/dist/types/evo-task-runner/index.js +9 -1
  39. package/dist/types/evo-task-runner/index.ts +11 -0
  40. package/dist/types/evo-tenant/index.d.ts +8 -0
  41. package/dist/types/evo-tenant/index.js +9 -1
  42. package/dist/types/evo-tenant/index.ts +11 -0
  43. package/dist/types/firebase/pubsub-sync/document-replication.d.ts +1 -1
  44. package/dist/types/firebase/pubsub-sync/document-replication.ts +1 -1
  45. package/package.json +1 -1
@@ -137,6 +137,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
137
137
  phone?: string | null | undefined;
138
138
  mobile?: string | null | undefined;
139
139
  }>>>;
140
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
141
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
142
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
142
143
  name: z.ZodString;
@@ -260,6 +261,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
260
261
  phone?: string | null | undefined;
261
262
  mobile?: string | null | undefined;
262
263
  }>>>;
264
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
265
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
266
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
265
267
  name: z.ZodString;
@@ -383,6 +385,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
383
385
  phone?: string | null | undefined;
384
386
  mobile?: string | null | undefined;
385
387
  }>>>;
388
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
386
389
  notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
387
390
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
388
391
  name: z.ZodString;
@@ -28,6 +28,7 @@ exports.zLeadSchema = zod_schemas_2.zProfileSchema // Extend from ProfileSchema
28
28
  distChannel: exports.zLeadDistChannelSchema.nullable().optional(),
29
29
  address: zod_schemas_1.zAddressSchema.nullable().optional(),
30
30
  contact: zod_schemas_1.zContactSchema.nullable().optional(),
31
+ chat_contact_id: zod_1.z.string().nullable().optional(),
31
32
  notes: zod_1.z.string().nullable().optional(),
32
33
  tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
33
34
  userRef: zod_1.z.any(),
@@ -33,6 +33,7 @@ export const zLeadSchema = zProfileSchema // Extend from ProfileSchema
33
33
  distChannel: zLeadDistChannelSchema.nullable().optional(),
34
34
  address: zAddressSchema.nullable().optional(),
35
35
  contact: zContactSchema.nullable().optional(),
36
+ chat_contact_id: z.string().nullable().optional(),
36
37
  notes: z.string().nullable().optional(),
37
38
  tags: z.array(zTagSchema).nullable().optional(),
38
39
  userRef: z.any(),
@@ -627,6 +627,8 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
627
627
  phone?: string | null | undefined;
628
628
  mobile?: string | null | undefined;
629
629
  }>>>;
630
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
630
632
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
631
633
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
632
634
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -804,6 +806,8 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
804
806
  phone?: string | null | undefined;
805
807
  mobile?: string | null | undefined;
806
808
  }>>>;
809
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
810
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
807
811
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
808
812
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
809
813
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -981,6 +985,8 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
981
985
  phone?: string | null | undefined;
982
986
  mobile?: string | null | undefined;
983
987
  }>>>;
988
+ lead_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ chat_contact_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
990
  height_cm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
985
991
  weight_kg: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
986
992
  blood_type: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["A+", "A-", "B+", "B-", "AB+", "AB-", "O+", "O-", "Unknown"]>, z.ZodEffects<z.ZodLiteral<"unknown">, string, "unknown">]>>>;
@@ -97,6 +97,8 @@ exports.zPatientSchema = zod_schemas_3.zProfileSchema // Extend from ProfileSche
97
97
  sourceRef: zod_1.z.any().optional(),
98
98
  address: zod_schemas_2.zAddressSchema.nullable().optional(),
99
99
  contact: zod_schemas_2.zContactSchema.nullable().optional(),
100
+ lead_id: zod_1.z.string().nullable().optional(),
101
+ chat_contact_id: zod_1.z.string().nullable().optional(),
100
102
  height_cm: zod_1.z.number().nullable().optional(),
101
103
  weight_kg: zod_1.z.number().nullable().optional(),
102
104
  blood_type: exports.zBloodTypeSchema.nullable().optional(),
@@ -115,6 +115,8 @@ export const zPatientSchema = zProfileSchema // Extend from ProfileSchema
115
115
  sourceRef: z.any().optional(),
116
116
  address: zAddressSchema.nullable().optional(),
117
117
  contact: zContactSchema.nullable().optional(),
118
+ lead_id: z.string().nullable().optional(),
119
+ chat_contact_id: z.string().nullable().optional(),
118
120
  height_cm: z.number().nullable().optional(),
119
121
  weight_kg: z.number().nullable().optional(),
120
122
  blood_type: zBloodTypeSchema.nullable().optional(),
@@ -1,5 +1,5 @@
1
1
  export * from "./fb_collections";
2
- import type { FirestoreDocumentReference, IFireDoc } from "../../shared";
2
+ import type { IFireDoc } from "../../shared";
3
3
 
4
4
  // ----- RBAC Types
5
5
 
@@ -29,6 +29,7 @@ export interface ILead extends IProfile {
29
29
  distChannel?: ILeadDistChannel | null;
30
30
  address?: IAddress | null;
31
31
  contact?: IContact | null;
32
+ chat_contact_id?: string | null;
32
33
  notes?: string | null;
33
34
  tags?: ITag[] | null;
34
35
  userRef?: FirestoreDocumentReference;
@@ -40,6 +40,7 @@ export interface ILead extends IProfile {
40
40
  distChannel?: ILeadDistChannel | null;
41
41
  address?: IAddress | null;
42
42
  contact?: IContact | null;
43
+ chat_contact_id?: string | null;
43
44
  notes?: string | null; // Anotações sobre o lead
44
45
  tags?: ITag[] | null;
45
46
  userRef?: FirestoreDocumentReference;
@@ -1,5 +1,13 @@
1
1
  import type { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../../shared";
2
2
  import { AppointmentStatusType, AppointmentType } from "../dic";
3
+ export declare const EvoMedAppointmentPermissions: {
4
+ readonly List: "evo_med_appointment_read";
5
+ readonly Get: "evo_med_appointment_read";
6
+ readonly Create: "evo_med_appointment_write";
7
+ readonly Update: "evo_med_appointment_write";
8
+ readonly Delete: "evo_med_appointment_write";
9
+ };
10
+ export type EvoMedAppointmentPermissions = (typeof EvoMedAppointmentPermissions)[keyof typeof EvoMedAppointmentPermissions];
3
11
  export declare const AppointmentPaymentStatusEnum: {
4
12
  readonly Paid: "paid";
5
13
  readonly Partial: "partial";
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentTypeEnum = exports.AppointmentModeEnum = exports.AppointmentPaymentStatusEnum = void 0;
3
+ exports.PaymentTypeEnum = exports.AppointmentModeEnum = exports.AppointmentPaymentStatusEnum = exports.EvoMedAppointmentPermissions = void 0;
4
+ // Permissões para o agendamento
5
+ exports.EvoMedAppointmentPermissions = {
6
+ List: "evo_med_appointment_read",
7
+ Get: "evo_med_appointment_read",
8
+ Create: "evo_med_appointment_write",
9
+ Update: "evo_med_appointment_write",
10
+ Delete: "evo_med_appointment_write",
11
+ };
4
12
  // Enums para status de pagamento
5
13
  exports.AppointmentPaymentStatusEnum = {
6
14
  Paid: "paid",
@@ -5,6 +5,19 @@ import type {
5
5
  ITag,
6
6
  } from "../../shared";
7
7
  import { AppointmentStatusType, AppointmentType } from "../dic";
8
+
9
+ // Permissões para o agendamento
10
+ export const EvoMedAppointmentPermissions = {
11
+ List: "evo_med_appointment_read",
12
+ Get: "evo_med_appointment_read",
13
+ Create: "evo_med_appointment_write",
14
+ Update: "evo_med_appointment_write",
15
+ Delete: "evo_med_appointment_write",
16
+ } as const;
17
+
18
+ export type EvoMedAppointmentPermissions =
19
+ (typeof EvoMedAppointmentPermissions)[keyof typeof EvoMedAppointmentPermissions];
20
+
8
21
  // Enums para status de pagamento
9
22
  export const AppointmentPaymentStatusEnum = {
10
23
  Paid: "paid",
@@ -1,5 +1,13 @@
1
1
  export * from "../fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
+ export declare const EvoMedDicPermissions: {
4
+ readonly List: "evo_med_dic_read";
5
+ readonly Get: "evo_med_dic_read";
6
+ readonly Create: "evo_med_dic_write";
7
+ readonly Update: "evo_med_dic_write";
8
+ readonly Delete: "evo_med_dic_write";
9
+ };
10
+ export type EvoMedDicPermissions = (typeof EvoMedDicPermissions)[keyof typeof EvoMedDicPermissions];
3
11
  export type MedDicAction = "CREATE_SPECIALTY" | "DELETE_SPECIALTY" | "UPDATE_SPECIALTY" | "CREATE_PATIENT_SOURCE" | "DELETE_PATIENT_SOURCE" | "UPDATE_PATIENT_SOURCE" | "CREATE_APPOINTMENT_SOURCE" | "DELETE_APPOINTMENT_SOURCE" | "UPDATE_APPOINTMENT_SOURCE" | "CREATE_APPOINTMENT_REQUEST_TYPE" | "DELETE_APPOINTMENT_REQUEST_TYPE" | "UPDATE_APPOINTMENT_REQUEST_TYPE" | "CREATE_APPOINTMENT_STATUS" | "DELETE_APPOINTMENT_STATUS" | "UPDATE_APPOINTMENT_STATUS";
4
12
  export declare enum IMedDicAction {
5
13
  Create_specialty = "CREATE_SPECIALTY",
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IAllergyKind = exports.AppointmentTypeEnum = exports.AppointmentStatusTypeEnum = exports.IMedDicAction = void 0;
17
+ exports.IAllergyKind = exports.AppointmentTypeEnum = exports.AppointmentStatusTypeEnum = exports.IMedDicAction = exports.EvoMedDicPermissions = void 0;
18
18
  __exportStar(require("../fb_collections"), exports);
19
+ // Permissões para o dicionário
20
+ exports.EvoMedDicPermissions = {
21
+ List: "evo_med_dic_read",
22
+ Get: "evo_med_dic_read",
23
+ Create: "evo_med_dic_write",
24
+ Update: "evo_med_dic_write",
25
+ Delete: "evo_med_dic_write",
26
+ };
19
27
  var IMedDicAction;
20
28
  (function (IMedDicAction) {
21
29
  IMedDicAction["Create_specialty"] = "CREATE_SPECIALTY";
@@ -1,6 +1,18 @@
1
1
  export * from "../fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
3
 
4
+ // Permissões para o dicionário
5
+ export const EvoMedDicPermissions = {
6
+ List: "evo_med_dic_read",
7
+ Get: "evo_med_dic_read",
8
+ Create: "evo_med_dic_write",
9
+ Update: "evo_med_dic_write",
10
+ Delete: "evo_med_dic_write",
11
+ } as const;
12
+
13
+ export type EvoMedDicPermissions =
14
+ (typeof EvoMedDicPermissions)[keyof typeof EvoMedDicPermissions];
15
+
4
16
  // ----- MedDicTypes
5
17
 
6
18
  // Enum for EvoMed Dic Action - used in Dictionaries tracking
@@ -1,5 +1,13 @@
1
1
  export * from "../../evo-people/fb_collections";
2
2
  import type { IAddress, IContact, IFireDoc, ITag } from "../../shared";
3
+ export declare const EvoMedInsurancePermissions: {
4
+ readonly List: "evo_med_insurance_read";
5
+ readonly Get: "evo_med_insurance_read";
6
+ readonly Create: "evo_med_insurance_write";
7
+ readonly Update: "evo_med_insurance_write";
8
+ readonly Delete: "evo_med_insurance_write";
9
+ };
10
+ export type EvoMedInsurancePermissions = (typeof EvoMedInsurancePermissions)[keyof typeof EvoMedInsurancePermissions];
3
11
  export type MedInsuranceAction = "CREATE_INSURANCE" | "DELETE_INSURANCE" | "UPDATE_INSURANCE";
4
12
  export declare enum IMedInsuranceAction {
5
13
  Create_insurance = "CREATE_INSURANCE",
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IMedInsuranceAction = void 0;
17
+ exports.IMedInsuranceAction = exports.EvoMedInsurancePermissions = void 0;
18
18
  __exportStar(require("../../evo-people/fb_collections"), exports);
19
+ // Permissões para o convênio
20
+ exports.EvoMedInsurancePermissions = {
21
+ List: "evo_med_insurance_read",
22
+ Get: "evo_med_insurance_read",
23
+ Create: "evo_med_insurance_write",
24
+ Update: "evo_med_insurance_write",
25
+ Delete: "evo_med_insurance_write",
26
+ };
19
27
  var IMedInsuranceAction;
20
28
  (function (IMedInsuranceAction) {
21
29
  IMedInsuranceAction["Create_insurance"] = "CREATE_INSURANCE";
@@ -1,6 +1,18 @@
1
1
  export * from "../../evo-people/fb_collections";
2
2
  import type { IAddress, IContact, IFireDoc, ITag } from "../../shared";
3
3
 
4
+ // Permissões para o convênio
5
+ export const EvoMedInsurancePermissions = {
6
+ List: "evo_med_insurance_read",
7
+ Get: "evo_med_insurance_read",
8
+ Create: "evo_med_insurance_write",
9
+ Update: "evo_med_insurance_write",
10
+ Delete: "evo_med_insurance_write",
11
+ } as const;
12
+
13
+ export type EvoMedInsurancePermissions =
14
+ (typeof EvoMedInsurancePermissions)[keyof typeof EvoMedInsurancePermissions];
15
+
4
16
  // ----- MedInsuranceTypes
5
17
 
6
18
  // Enum for EvoMed Insurance Action - used in Insurance tracking
@@ -2,6 +2,22 @@ export * from "../fb_collections";
2
2
  import { IProfile } from "../../evo-people";
3
3
  import type { FirestoreDocumentReference, IAddress, IContact, ITag } from "../../shared";
4
4
  import { IMedication } from "../dic";
5
+ export declare const EvoMedProfessionalPermissions: {
6
+ readonly List: "evo_med_people_professional_read";
7
+ readonly Get: "evo_med_people_professional_read";
8
+ readonly Create: "evo_med_people_professional_write";
9
+ readonly Update: "evo_med_people_professional_write";
10
+ readonly Delete: "evo_med_people_professional_write";
11
+ };
12
+ export type EvoMedProfessionalPermissions = (typeof EvoMedProfessionalPermissions)[keyof typeof EvoMedProfessionalPermissions];
13
+ export declare const EvoMedPatientPermissions: {
14
+ readonly List: "evo_med_people_patient_read";
15
+ readonly Get: "evo_med_people_patient_read";
16
+ readonly Create: "evo_med_people_patient_write";
17
+ readonly Update: "evo_med_people_patient_write";
18
+ readonly Delete: "evo_med_people_patient_write";
19
+ };
20
+ export type EvoMedPatientPermissions = (typeof EvoMedPatientPermissions)[keyof typeof EvoMedPatientPermissions];
5
21
  export type MedPeopleAction = "CREATE_PROFESSIONAL" | "DELETE_PROFESSIONAL" | "UPDATE_PROFESSIONAL" | "UPDATE_PROFESSIONAL_PHOTO" | "UPDATE_PROFESSIONAL_PROFILE" | "UPDATE_PROFESSIONAL_PASSWORD" | "UPDATE_PROFESSIONAL_REPORT_TO" | "UPDATE_PROFESSIONAL_DEPARTMENT" | "UPDATE_PROFESSIONAL_OFFICE" | "UPDATE_PROFESSIONAL_COMPANY" | "UPDATE_PROFESSIONAL_JOB_TITLE" | "UPDATE_PROFESSIONAL_WORK_EMAIL" | "UPDATE_PROFESSIONAL_STATUS";
6
22
  export declare enum IMedPeopleAction {
7
23
  Create_professional = "CREATE_PROFESSIONAL",
@@ -122,6 +138,8 @@ export interface IPatient extends IProfile {
122
138
  sourceRef?: FirestoreDocumentReference;
123
139
  address?: IAddress | null;
124
140
  contact?: IContact | null;
141
+ lead_id?: string | null;
142
+ chat_contact_id?: string | null;
125
143
  height_cm?: number | null;
126
144
  weight_kg?: number | null;
127
145
  blood_type?: BloodType | null;
@@ -14,8 +14,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ISeverity = exports.IBloodType = exports.IPatientStatus = exports.IProfessionalStatus = exports.IMedPeopleAction = void 0;
17
+ exports.ISeverity = exports.IBloodType = exports.IPatientStatus = exports.IProfessionalStatus = exports.IMedPeopleAction = exports.EvoMedPatientPermissions = exports.EvoMedProfessionalPermissions = void 0;
18
18
  __exportStar(require("../fb_collections"), exports);
19
+ // Permissões para o médico
20
+ exports.EvoMedProfessionalPermissions = {
21
+ List: "evo_med_people_professional_read",
22
+ Get: "evo_med_people_professional_read",
23
+ Create: "evo_med_people_professional_write",
24
+ Update: "evo_med_people_professional_write",
25
+ Delete: "evo_med_people_professional_write",
26
+ };
27
+ // Permissões para o paciente
28
+ exports.EvoMedPatientPermissions = {
29
+ List: "evo_med_people_patient_read",
30
+ Get: "evo_med_people_patient_read",
31
+ Create: "evo_med_people_patient_write",
32
+ Update: "evo_med_people_patient_write",
33
+ Delete: "evo_med_people_patient_write",
34
+ };
19
35
  var IMedPeopleAction;
20
36
  (function (IMedPeopleAction) {
21
37
  IMedPeopleAction["Create_professional"] = "CREATE_PROFESSIONAL";
@@ -8,6 +8,30 @@ import type {
8
8
  } from "../../shared";
9
9
  import { IMedication } from "../dic";
10
10
 
11
+ // Permissões para o médico
12
+ export const EvoMedProfessionalPermissions = {
13
+ List: "evo_med_people_professional_read",
14
+ Get: "evo_med_people_professional_read",
15
+ Create: "evo_med_people_professional_write",
16
+ Update: "evo_med_people_professional_write",
17
+ Delete: "evo_med_people_professional_write",
18
+ } as const;
19
+
20
+ export type EvoMedProfessionalPermissions =
21
+ (typeof EvoMedProfessionalPermissions)[keyof typeof EvoMedProfessionalPermissions];
22
+
23
+ // Permissões para o paciente
24
+ export const EvoMedPatientPermissions = {
25
+ List: "evo_med_people_patient_read",
26
+ Get: "evo_med_people_patient_read",
27
+ Create: "evo_med_people_patient_write",
28
+ Update: "evo_med_people_patient_write",
29
+ Delete: "evo_med_people_patient_write",
30
+ } as const;
31
+
32
+ export type EvoMedPatientPermissions =
33
+ (typeof EvoMedPatientPermissions)[keyof typeof EvoMedPatientPermissions];
34
+
11
35
  // ----- MedPeopleTypes
12
36
 
13
37
  // Enum for EvoMed People Action - used in Professionals and Patients tracking
@@ -178,6 +202,8 @@ export interface IPatient extends IProfile {
178
202
  sourceRef?: FirestoreDocumentReference;
179
203
  address?: IAddress | null;
180
204
  contact?: IContact | null;
205
+ lead_id?: string | null;
206
+ chat_contact_id?: string | null;
181
207
  //informações médicas
182
208
  height_cm?: number | null; // Altura em centímetros
183
209
  weight_kg?: number | null; // Peso em kg
@@ -1,5 +1,13 @@
1
1
  export * from "../fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
+ export declare const EvoMedProcedurePermissions: {
4
+ readonly List: "evo_med_procedure_read";
5
+ readonly Get: "evo_med_procedure_read";
6
+ readonly Create: "evo_med_procedure_write";
7
+ readonly Update: "evo_med_procedure_write";
8
+ readonly Delete: "evo_med_procedure_write";
9
+ };
10
+ export type EvoMedProcedurePermissions = (typeof EvoMedProcedurePermissions)[keyof typeof EvoMedProcedurePermissions];
3
11
  export type MedProcedureAction = "CREATE_PROCEDURE" | "DELETE_PROCEDURE" | "UPDATE_PROCEDURE";
4
12
  export declare enum IMedProcedureAction {
5
13
  Create_procedure = "CREATE_PROCEDURE",
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IProcedureStatus = exports.IMedProcedureAction = void 0;
17
+ exports.IProcedureStatus = exports.IMedProcedureAction = exports.EvoMedProcedurePermissions = void 0;
18
18
  __exportStar(require("../fb_collections"), exports);
19
+ // Permissões para o procedimento
20
+ exports.EvoMedProcedurePermissions = {
21
+ List: "evo_med_procedure_read",
22
+ Get: "evo_med_procedure_read",
23
+ Create: "evo_med_procedure_write",
24
+ Update: "evo_med_procedure_write",
25
+ Delete: "evo_med_procedure_write",
26
+ };
19
27
  var IMedProcedureAction;
20
28
  (function (IMedProcedureAction) {
21
29
  IMedProcedureAction["Create_procedure"] = "CREATE_PROCEDURE";
@@ -1,6 +1,18 @@
1
1
  export * from "../fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
3
 
4
+ // Permissões para o procedimento
5
+ export const EvoMedProcedurePermissions = {
6
+ List: "evo_med_procedure_read",
7
+ Get: "evo_med_procedure_read",
8
+ Create: "evo_med_procedure_write",
9
+ Update: "evo_med_procedure_write",
10
+ Delete: "evo_med_procedure_write",
11
+ } as const;
12
+
13
+ export type EvoMedProcedurePermissions =
14
+ (typeof EvoMedProcedurePermissions)[keyof typeof EvoMedProcedurePermissions];
15
+
4
16
  // ----- MedProcedureAction
5
17
 
6
18
  // Enum for EvoMed Procedure Action - used in Dictionaries tracking
@@ -1,5 +1,13 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ export declare const EvoMessagesPermissions: {
4
+ readonly List: "evo_messages_read";
5
+ readonly Get: "evo_messages_read";
6
+ readonly Create: "evo_messages_write";
7
+ readonly Update: "evo_messages_write";
8
+ readonly Delete: "evo_messages_write";
9
+ };
10
+ export type EvoMessagesPermissions = (typeof EvoMessagesPermissions)[keyof typeof EvoMessagesPermissions];
3
11
  export type ChannelType = "whatsapp" | "email" | "ig_dm" | "fb_messenger";
4
12
  export declare enum IChannelType {
5
13
  Whatsapp = "whatsapp",// Whatsapp message
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IMessageDirection = exports.IProvider = exports.IChannelType = void 0;
17
+ exports.IMessageDirection = exports.IProvider = exports.IChannelType = exports.EvoMessagesPermissions = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
+ // Permissões para as mensagens
20
+ exports.EvoMessagesPermissions = {
21
+ List: "evo_messages_read",
22
+ Get: "evo_messages_read",
23
+ Create: "evo_messages_write",
24
+ Update: "evo_messages_write",
25
+ Delete: "evo_messages_write",
26
+ };
19
27
  var IChannelType;
20
28
  (function (IChannelType) {
21
29
  IChannelType["Whatsapp"] = "whatsapp";
@@ -1,6 +1,18 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
3
 
4
+ // Permissões para as mensagens
5
+ export const EvoMessagesPermissions = {
6
+ List: "evo_messages_read",
7
+ Get: "evo_messages_read",
8
+ Create: "evo_messages_write",
9
+ Update: "evo_messages_write",
10
+ Delete: "evo_messages_write",
11
+ } as const;
12
+
13
+ export type EvoMessagesPermissions =
14
+ (typeof EvoMessagesPermissions)[keyof typeof EvoMessagesPermissions];
15
+
4
16
  export type ChannelType = "whatsapp" | "email" | "ig_dm" | "fb_messenger";
5
17
 
6
18
  export enum IChannelType {
@@ -1,4 +1,12 @@
1
1
  import type { FirestoreDocumentReference, IFireDoc } from "../shared";
2
+ export declare const EvoNotificationsPermissions: {
3
+ readonly List: "evo_notifications_read";
4
+ readonly Get: "evo_notifications_read";
5
+ readonly Create: "evo_notifications_write";
6
+ readonly Update: "evo_notifications_write";
7
+ readonly Delete: "evo_notifications_write";
8
+ };
9
+ export type EvoNotificationsPermissions = (typeof EvoNotificationsPermissions)[keyof typeof EvoNotificationsPermissions];
2
10
  export declare const EvoNotificationsCollections: {
3
11
  readonly Messages: "messages";
4
12
  readonly Attempts: "attempts";
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NotificationRecipientKindEnum = exports.NotificationAttemptStatusEnum = exports.NotificationMessageStatusEnum = exports.NotificationChannelTypeEnum = exports.NotificationsTopics = exports.NotificationTaskKindEnum = exports.EvoNotificationsCollections = void 0;
3
+ exports.NotificationRecipientKindEnum = exports.NotificationAttemptStatusEnum = exports.NotificationMessageStatusEnum = exports.NotificationChannelTypeEnum = exports.NotificationsTopics = exports.NotificationTaskKindEnum = exports.EvoNotificationsCollections = exports.EvoNotificationsPermissions = void 0;
4
+ // Permissões para as notificações
5
+ exports.EvoNotificationsPermissions = {
6
+ List: "evo_notifications_read",
7
+ Get: "evo_notifications_read",
8
+ Create: "evo_notifications_write",
9
+ Update: "evo_notifications_write",
10
+ Delete: "evo_notifications_write",
11
+ };
4
12
  // ======================================================
5
13
  // evo-notifications
6
14
  //
@@ -1,5 +1,17 @@
1
1
  import type { FirestoreDocumentReference, IFireDoc } from "../shared";
2
2
 
3
+ // Permissões para as notificações
4
+ export const EvoNotificationsPermissions = {
5
+ List: "evo_notifications_read",
6
+ Get: "evo_notifications_read",
7
+ Create: "evo_notifications_write",
8
+ Update: "evo_notifications_write",
9
+ Delete: "evo_notifications_write",
10
+ } as const;
11
+
12
+ export type EvoNotificationsPermissions =
13
+ (typeof EvoNotificationsPermissions)[keyof typeof EvoNotificationsPermissions];
14
+
3
15
  // ======================================================
4
16
  // evo-notifications
5
17
  //
@@ -1,5 +1,37 @@
1
1
  export * from "../evo-people/fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../shared";
3
+ export declare const EvoPeopleCompanyPermissions: {
4
+ readonly List: "evo_people_company_read";
5
+ readonly Get: "evo_people_company_read";
6
+ readonly Create: "evo_people_company_write";
7
+ readonly Update: "evo_people_company_write";
8
+ readonly Delete: "evo_people_company_write";
9
+ };
10
+ export type EvoPeopleCompanyPermissions = (typeof EvoPeopleCompanyPermissions)[keyof typeof EvoPeopleCompanyPermissions];
11
+ export declare const EvoPeopleDepartmentPermissions: {
12
+ readonly List: "evo_people_department_read";
13
+ readonly Get: "evo_people_department_read";
14
+ readonly Create: "evo_people_department_write";
15
+ readonly Update: "evo_people_department_write";
16
+ readonly Delete: "evo_people_department_write";
17
+ };
18
+ export type EvoPeopleDepartmentPermissions = (typeof EvoPeopleDepartmentPermissions)[keyof typeof EvoPeopleDepartmentPermissions];
19
+ export declare const EvoPeopleEmployeePermissions: {
20
+ readonly List: "evo_people_employee_read";
21
+ readonly Get: "evo_people_employee_read";
22
+ readonly Create: "evo_people_employee_write";
23
+ readonly Update: "evo_people_employee_write";
24
+ readonly Delete: "evo_people_employee_write";
25
+ };
26
+ export type EvoPeopleEmployeePermissions = (typeof EvoPeopleEmployeePermissions)[keyof typeof EvoPeopleEmployeePermissions];
27
+ export declare const EvoPeopleOfficePermissions: {
28
+ readonly List: "evo_people_office_read";
29
+ readonly Get: "evo_people_office_read";
30
+ readonly Create: "evo_people_office_write";
31
+ readonly Update: "evo_people_office_write";
32
+ readonly Delete: "evo_people_office_write";
33
+ };
34
+ export type EvoPeopleOfficePermissions = (typeof EvoPeopleOfficePermissions)[keyof typeof EvoPeopleOfficePermissions];
3
35
  export type PeopleAction = "CREATE_COMPANY" | "DELETE_COMPANY" | "UPDATE_COMPANY" | "UPDATE_COMPANY_LEAD" | "UPDATE_COMPANY_NAME" | "CREATE_OFFICE" | "DELETE_OFFICE" | "UPDATE_OFFICE" | "UPDATE_OFFICE_NAME" | "UPDATE_OFFICE_TIMEZONE" | "UPDATE_OFFICE_COMPANY" | "UPDATE_OFFICE_LEAD" | "CREATE_DEPARTMENT" | "DELETE_DEPARTMENT" | "UPDATE_DEPARTMENT" | "UPDATE_DEPARTMENT_PARENT_DEPARTMENT" | "UPDATE_DEPARTMENT_LEAD" | "UPDATE_DEPARTMENT_NAME" | "CREATE_EMPLOYEE" | "DELETE_EMPLOYEE" | "UPDATE_EMPLOYEE" | "UPDATE_EMPLOYEE_PHOTO" | "UPDATE_PROFILE" | "UPDATE_PHOTO" | "UPDATE_PASSWORD" | "UPDATE_EMPLOYEE_REPORT_TO" | "UPDATE_EMPLOYEE_DEPARTMENT" | "UPDATE_EMPLOYEE_OFFICE" | "UPDATE_EMPLOYEE_COMPANY" | "UPDATE_EMPLOYEE_JOB_TITLE" | "UPDATE_EMPLOYEE_WORK_EMAIL" | "UPDATE_EMPLOYEE_STATUS";
4
36
  export declare enum IPeopleAction {
5
37
  Create_company = "CREATE_COMPANY",
@@ -14,8 +14,40 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IEmployeeStatus = exports.IPeopleAction = void 0;
17
+ exports.IEmployeeStatus = exports.IPeopleAction = exports.EvoPeopleOfficePermissions = exports.EvoPeopleEmployeePermissions = exports.EvoPeopleDepartmentPermissions = exports.EvoPeopleCompanyPermissions = void 0;
18
18
  __exportStar(require("../evo-people/fb_collections"), exports);
19
+ // Permissões para a empresa
20
+ exports.EvoPeopleCompanyPermissions = {
21
+ List: "evo_people_company_read",
22
+ Get: "evo_people_company_read",
23
+ Create: "evo_people_company_write",
24
+ Update: "evo_people_company_write",
25
+ Delete: "evo_people_company_write",
26
+ };
27
+ // Permissões para o departamento
28
+ exports.EvoPeopleDepartmentPermissions = {
29
+ List: "evo_people_department_read",
30
+ Get: "evo_people_department_read",
31
+ Create: "evo_people_department_write",
32
+ Update: "evo_people_department_write",
33
+ Delete: "evo_people_department_write",
34
+ };
35
+ // Permissões para o funcionário
36
+ exports.EvoPeopleEmployeePermissions = {
37
+ List: "evo_people_employee_read",
38
+ Get: "evo_people_employee_read",
39
+ Create: "evo_people_employee_write",
40
+ Update: "evo_people_employee_write",
41
+ Delete: "evo_people_employee_write",
42
+ };
43
+ // Permissões para o office
44
+ exports.EvoPeopleOfficePermissions = {
45
+ List: "evo_people_office_read",
46
+ Get: "evo_people_office_read",
47
+ Create: "evo_people_office_write",
48
+ Update: "evo_people_office_write",
49
+ Delete: "evo_people_office_write",
50
+ };
19
51
  var IPeopleAction;
20
52
  (function (IPeopleAction) {
21
53
  IPeopleAction["Create_company"] = "CREATE_COMPANY";
@@ -6,6 +6,54 @@ import type {
6
6
  ITag,
7
7
  } from "../shared";
8
8
 
9
+ // Permissões para a empresa
10
+ export const EvoPeopleCompanyPermissions = {
11
+ List: "evo_people_company_read",
12
+ Get: "evo_people_company_read",
13
+ Create: "evo_people_company_write",
14
+ Update: "evo_people_company_write",
15
+ Delete: "evo_people_company_write",
16
+ } as const;
17
+
18
+ export type EvoPeopleCompanyPermissions =
19
+ (typeof EvoPeopleCompanyPermissions)[keyof typeof EvoPeopleCompanyPermissions];
20
+
21
+ // Permissões para o departamento
22
+ export const EvoPeopleDepartmentPermissions = {
23
+ List: "evo_people_department_read",
24
+ Get: "evo_people_department_read",
25
+ Create: "evo_people_department_write",
26
+ Update: "evo_people_department_write",
27
+ Delete: "evo_people_department_write",
28
+ } as const;
29
+
30
+ export type EvoPeopleDepartmentPermissions =
31
+ (typeof EvoPeopleDepartmentPermissions)[keyof typeof EvoPeopleDepartmentPermissions];
32
+
33
+ // Permissões para o funcionário
34
+ export const EvoPeopleEmployeePermissions = {
35
+ List: "evo_people_employee_read",
36
+ Get: "evo_people_employee_read",
37
+ Create: "evo_people_employee_write",
38
+ Update: "evo_people_employee_write",
39
+ Delete: "evo_people_employee_write",
40
+ } as const;
41
+
42
+ export type EvoPeopleEmployeePermissions =
43
+ (typeof EvoPeopleEmployeePermissions)[keyof typeof EvoPeopleEmployeePermissions];
44
+
45
+ // Permissões para o office
46
+ export const EvoPeopleOfficePermissions = {
47
+ List: "evo_people_office_read",
48
+ Get: "evo_people_office_read",
49
+ Create: "evo_people_office_write",
50
+ Update: "evo_people_office_write",
51
+ Delete: "evo_people_office_write",
52
+ } as const;
53
+
54
+ export type EvoPeopleOfficePermissions =
55
+ (typeof EvoPeopleOfficePermissions)[keyof typeof EvoPeopleOfficePermissions];
56
+
9
57
  // ----- PeopleTypes
10
58
 
11
59
  // Enum for EvoPeople Action - used in Activities tracking
@@ -1,5 +1,13 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
+ export declare const EvoTaskPermissions: {
4
+ readonly List: "evo_task_read";
5
+ readonly Get: "evo_task_read";
6
+ readonly Create: "evo_task_write";
7
+ readonly Update: "evo_task_write";
8
+ readonly Delete: "evo_task_write";
9
+ };
10
+ export type EvoTaskPermissions = (typeof EvoTaskPermissions)[keyof typeof EvoTaskPermissions];
3
11
  export declare const TaskActionEnum: {
4
12
  readonly CreateTask: "CREATE_TASK";
5
13
  readonly DeleteTask: "DELETE_TASK";
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.TaskExecutionStatusEnum = exports.TaskExternalObjectTypeEnum = exports.TaskDedupWindowEnum = exports.TaskDedupScopeEnum = exports.TaskRetryStrategyEnum = exports.TaskAutoHandlerEnum = exports.TaskModeEnum = exports.TaskSourceEnum = exports.TaskPriorityEnum = exports.TaskStatusEnum = exports.TaskActionEnum = void 0;
17
+ exports.TaskExecutionStatusEnum = exports.TaskExternalObjectTypeEnum = exports.TaskDedupWindowEnum = exports.TaskDedupScopeEnum = exports.TaskRetryStrategyEnum = exports.TaskAutoHandlerEnum = exports.TaskModeEnum = exports.TaskSourceEnum = exports.TaskPriorityEnum = exports.TaskStatusEnum = exports.TaskActionEnum = exports.EvoTaskPermissions = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
+ // Permissões para o task
20
+ exports.EvoTaskPermissions = {
21
+ List: "evo_task_read",
22
+ Get: "evo_task_read",
23
+ Create: "evo_task_write",
24
+ Update: "evo_task_write",
25
+ Delete: "evo_task_write",
26
+ };
19
27
  // ======================================================
20
28
  // evo-task (Tasks)
21
29
  //
@@ -1,6 +1,18 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../shared";
3
3
 
4
+ // Permissões para o task
5
+ export const EvoTaskPermissions = {
6
+ List: "evo_task_read",
7
+ Get: "evo_task_read",
8
+ Create: "evo_task_write",
9
+ Update: "evo_task_write",
10
+ Delete: "evo_task_write",
11
+ } as const;
12
+
13
+ export type EvoTaskPermissions =
14
+ (typeof EvoTaskPermissions)[keyof typeof EvoTaskPermissions];
15
+
4
16
  // ======================================================
5
17
  // evo-task (Tasks)
6
18
  //
@@ -1,5 +1,13 @@
1
1
  import type { IFireDoc } from "../shared";
2
2
  import type { TaskAutoHandler, TaskExecutionStatus, TaskRetryStrategy } from "../evo-task";
3
+ export declare const EvoTaskRunnerPermissions: {
4
+ readonly List: "evo_task_runner_read";
5
+ readonly Get: "evo_task_runner_read";
6
+ readonly Create: "evo_task_runner_write";
7
+ readonly Update: "evo_task_runner_write";
8
+ readonly Delete: "evo_task_runner_write";
9
+ };
10
+ export type EvoTaskRunnerPermissions = (typeof EvoTaskRunnerPermissions)[keyof typeof EvoTaskRunnerPermissions];
3
11
  export declare const TaskRunnerTopics: {
4
12
  readonly Tick: "task_runner.tick";
5
13
  readonly ExecuteRequests: "task_runner.execute_requests";
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskRunnerTickReasonEnum = exports.TaskRunnerTopics = void 0;
3
+ exports.TaskRunnerTickReasonEnum = exports.TaskRunnerTopics = exports.EvoTaskRunnerPermissions = void 0;
4
+ // Permissões para o task runner
5
+ exports.EvoTaskRunnerPermissions = {
6
+ List: "evo_task_runner_read",
7
+ Get: "evo_task_runner_read",
8
+ Create: "evo_task_runner_write",
9
+ Update: "evo_task_runner_write",
10
+ Delete: "evo_task_runner_write",
11
+ };
4
12
  // ======================================================
5
13
  // evo-task-runner (Task Runner)
6
14
  //
@@ -5,6 +5,17 @@ import type {
5
5
  TaskRetryStrategy,
6
6
  } from "../evo-task";
7
7
 
8
+ // Permissões para o task runner
9
+ export const EvoTaskRunnerPermissions = {
10
+ List: "evo_task_runner_read",
11
+ Get: "evo_task_runner_read",
12
+ Create: "evo_task_runner_write",
13
+ Update: "evo_task_runner_write",
14
+ Delete: "evo_task_runner_write",
15
+ } as const;
16
+ export type EvoTaskRunnerPermissions =
17
+ (typeof EvoTaskRunnerPermissions)[keyof typeof EvoTaskRunnerPermissions];
18
+
8
19
  // ======================================================
9
20
  // evo-task-runner (Task Runner)
10
21
  //
@@ -1,5 +1,13 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
+ export declare const EvoTenantPermissions: {
4
+ readonly List: "evo_tenant_read";
5
+ readonly Get: "evo_tenant_read";
6
+ readonly Create: "evo_tenant_write";
7
+ readonly Update: "evo_tenant_write";
8
+ readonly Delete: "evo_tenant_write";
9
+ };
10
+ export type EvoTenantPermissions = (typeof EvoTenantPermissions)[keyof typeof EvoTenantPermissions];
3
11
  export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
4
12
  export declare enum ITenantAction {
5
13
  Create_tenant = "CREATE_TENANT",
@@ -14,8 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = void 0;
17
+ exports.ITenantStatus = exports.ITenantLanguage = exports.ITenantAction = exports.EvoTenantPermissions = void 0;
18
18
  __exportStar(require("./fb_collections"), exports);
19
+ // Permissões para o tenant
20
+ exports.EvoTenantPermissions = {
21
+ List: "evo_tenant_read",
22
+ Get: "evo_tenant_read",
23
+ Create: "evo_tenant_write",
24
+ Update: "evo_tenant_write",
25
+ Delete: "evo_tenant_write",
26
+ };
19
27
  var ITenantAction;
20
28
  (function (ITenantAction) {
21
29
  ITenantAction["Create_tenant"] = "CREATE_TENANT";
@@ -1,6 +1,17 @@
1
1
  export * from "./fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc } from "../shared";
3
3
 
4
+ // Permissões para o tenant
5
+ export const EvoTenantPermissions = {
6
+ List: "evo_tenant_read",
7
+ Get: "evo_tenant_read",
8
+ Create: "evo_tenant_write",
9
+ Update: "evo_tenant_write",
10
+ Delete: "evo_tenant_write",
11
+ } as const;
12
+ export type EvoTenantPermissions =
13
+ (typeof EvoTenantPermissions)[keyof typeof EvoTenantPermissions];
14
+
4
15
  // ----- TenantTypes
5
16
  // Enum for Tenant Action - used in Activities tracking
6
17
  export type TenantAction = "CREATE_TENANT" | "DELETE_TENANT" | "UPDATE_TENANT";
@@ -1,5 +1,5 @@
1
1
  export interface IReplicationMessage<T> {
2
- tenantId: string;
2
+ tenant: string;
3
3
  docId: string;
4
4
  docPath: string;
5
5
  data: Partial<T>;
@@ -1,6 +1,6 @@
1
1
  // Interface for the message published to Pub/Sub
2
2
  export interface IReplicationMessage<T> {
3
- tenantId: string;
3
+ tenant: string;
4
4
  docId: string;
5
5
  docPath: string;
6
6
  data: Partial<T>; // Data to be replicated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.157",
3
+ "version": "1.3.159",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",