evo360-types 1.3.755 → 1.3.759

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 (30) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +6 -6
  2. package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
  3. package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
  4. package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
  5. package/dist/apps/evo-core/zod-schemas.d.ts +96 -49
  6. package/dist/apps/evo-core/zod-schemas.js +11 -5
  7. package/dist/apps/evo-core/zod-schemas.ts +10 -4
  8. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +18 -18
  9. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +42 -42
  10. package/dist/apps/evo-finops/zod-schemas.d.ts +72 -72
  11. package/dist/apps/evo-med/appointment/zod-schemas.d.ts +6 -6
  12. package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
  13. package/dist/apps/evo-med/dic/zod-schemas.d.ts +6 -6
  14. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
  15. package/dist/apps/evo-med/people/zod-schemas.d.ts +192 -192
  16. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
  17. package/dist/apps/evo-notifications/zod-schemas.d.ts +156 -156
  18. package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
  19. package/dist/apps/evo-survey/zod-schemas.d.ts +58 -58
  20. package/dist/apps/evo-task/zod-schemas.d.ts +219 -117
  21. package/dist/apps/evo-task/zod-schemas.js +36 -5
  22. package/dist/apps/evo-task/zod-schemas.ts +38 -4
  23. package/dist/apps/hub-automation/zod-schemas.d.ts +184 -184
  24. package/dist/apps/shared/zod-schemas.d.ts +2 -2
  25. package/dist/types/evo-core/index.d.ts +13 -5
  26. package/dist/types/evo-core/index.ts +14 -5
  27. package/dist/types/shared/external-links.d.ts +27 -0
  28. package/dist/types/shared/external-links.js +12 -0
  29. package/dist/types/shared/external-links.ts +28 -0
  30. package/package.json +1 -1
@@ -40,14 +40,14 @@ export declare const zTagSchema: z.ZodObject<{
40
40
  name: string;
41
41
  hidden: boolean;
42
42
  base?: boolean | undefined;
43
- category?: string | null | undefined;
44
43
  color?: string | undefined;
44
+ category?: string | null | undefined;
45
45
  }, {
46
46
  name: string;
47
47
  hidden: boolean;
48
48
  base?: boolean | undefined;
49
- category?: string | null | undefined;
50
49
  color?: string | undefined;
50
+ category?: string | null | undefined;
51
51
  }>;
52
52
  export declare const zAddressSchema: z.ZodObject<{
53
53
  name: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -47,7 +47,6 @@ export interface IActionArgs {
47
47
  deleted_at?: Date;
48
48
  }
49
49
  export interface INexusModuleChatPermissions {
50
- management?: boolean;
51
50
  supervision?: boolean;
52
51
  /** Supervisão 2.0 (CSQ). Gate da fila e do laudo do evo-csq no Nexus. */
53
52
  csq?: boolean;
@@ -55,8 +54,6 @@ export interface INexusModuleChatPermissions {
55
54
  * reavaliação sob demanda). Só reconhecida pelo MCP do Nexus. */
56
55
  csq_admin?: boolean;
57
56
  }
58
- export interface INexusReports {
59
- }
60
57
  /**
61
58
  * Sub-claims do módulo financeiro do Nexus. `finance === true` é o formato
62
59
  * legado; não herda `reimbursements` (feat-264: movimenta dinheiro, exige TOTP).
@@ -69,14 +66,25 @@ export interface INexusModuleFinancePermissions {
69
66
  /** feat-264 — reembolso da taxa de NFS-e. Sem bypass de admin. */
70
67
  reimbursements?: boolean;
71
68
  }
69
+ /** feat-310 — ferramentas que só existem no Nexus (grupo `tools`). */
70
+ export interface INexusModuleToolsPermissions {
71
+ forms?: boolean;
72
+ }
72
73
  export interface INexusModules {
73
74
  chat?: INexusModuleChatPermissions | boolean;
74
75
  tenants?: boolean;
75
76
  finance?: INexusModuleFinancePermissions | boolean;
76
77
  notifications?: boolean;
77
78
  waba?: boolean;
78
- reports?: INexusReports | boolean;
79
- [key: string]: INexusModuleChatPermissions | INexusModuleFinancePermissions | INexusReports | boolean | undefined;
79
+ /** feat-310 — Task Runner e Falhas de notificação. */
80
+ task_runner?: boolean;
81
+ /** feat-310 — Subscriptions e Log de entregas. */
82
+ webhooks?: boolean;
83
+ /** feat-310 — Adapters, Monitor de Sync e Bateria de testes. */
84
+ integrations?: boolean;
85
+ /** feat-310 — só o formato objeto concede `tools.forms` (como `finance`). */
86
+ tools?: INexusModuleToolsPermissions | boolean;
87
+ [key: string]: INexusModuleChatPermissions | INexusModuleFinancePermissions | INexusModuleToolsPermissions | boolean | undefined;
80
88
  }
81
89
  export interface INexusClaims {
82
90
  nexus_access: boolean;
@@ -58,7 +58,6 @@ export interface IActionArgs {
58
58
 
59
59
  // Nexus Claims Types
60
60
  export interface INexusModuleChatPermissions {
61
- management?: boolean;
62
61
  supervision?: boolean;
63
62
  /** Supervisão 2.0 (CSQ). Gate da fila e do laudo do evo-csq no Nexus. */
64
63
  csq?: boolean;
@@ -67,8 +66,6 @@ export interface INexusModuleChatPermissions {
67
66
  csq_admin?: boolean;
68
67
  }
69
68
 
70
- export interface INexusReports {}
71
-
72
69
  /**
73
70
  * Sub-claims do módulo financeiro do Nexus. `finance === true` é o formato
74
71
  * legado; não herda `reimbursements` (feat-264: movimenta dinheiro, exige TOTP).
@@ -82,17 +79,29 @@ export interface INexusModuleFinancePermissions {
82
79
  reimbursements?: boolean;
83
80
  }
84
81
 
82
+ /** feat-310 — ferramentas que só existem no Nexus (grupo `tools`). */
83
+ export interface INexusModuleToolsPermissions {
84
+ forms?: boolean;
85
+ }
86
+
85
87
  export interface INexusModules {
86
88
  chat?: INexusModuleChatPermissions | boolean;
87
89
  tenants?: boolean;
88
90
  finance?: INexusModuleFinancePermissions | boolean;
89
91
  notifications?: boolean;
90
92
  waba?: boolean;
91
- reports?: INexusReports | boolean;
93
+ /** feat-310 — Task Runner e Falhas de notificação. */
94
+ task_runner?: boolean;
95
+ /** feat-310 — Subscriptions e Log de entregas. */
96
+ webhooks?: boolean;
97
+ /** feat-310 — Adapters, Monitor de Sync e Bateria de testes. */
98
+ integrations?: boolean;
99
+ /** feat-310 — só o formato objeto concede `tools.forms` (como `finance`). */
100
+ tools?: INexusModuleToolsPermissions | boolean;
92
101
  [key: string]:
93
102
  | INexusModuleChatPermissions
94
103
  | INexusModuleFinancePermissions
95
- | INexusReports
104
+ | INexusModuleToolsPermissions
96
105
  | boolean
97
106
  | undefined;
98
107
  }
@@ -23,6 +23,13 @@ export declare const ExternalObjectTypeEnum: {
23
23
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
24
24
  */
25
25
  readonly Teleconsultation: "teleconsultation";
26
+ /**
27
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
28
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
29
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
30
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
31
+ */
32
+ readonly MedCalendar: "med_calendar";
26
33
  };
27
34
  export type ExternalObjectType = (typeof ExternalObjectTypeEnum)[keyof typeof ExternalObjectTypeEnum];
28
35
  /**
@@ -92,6 +99,11 @@ export declare const ExternalLinkSourceEnum: {
92
99
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
93
100
  */
94
101
  readonly Hubia: "hubia";
102
+ /**
103
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
104
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
105
+ */
106
+ readonly AppointmentReplication: "appointment_replication";
95
107
  };
96
108
  export type ExternalLinkSource = (typeof ExternalLinkSourceEnum)[keyof typeof ExternalLinkSourceEnum];
97
109
  /**
@@ -177,3 +189,18 @@ export interface IExternalLink {
177
189
  owner?: ExternalOwnerSystem;
178
190
  [key: string]: unknown;
179
191
  }
192
+ /**
193
+ * Link `med_calendar` no `externalLinks` do paciente: uma entrada por agenda em que
194
+ * ele tem/teve appointment. Nasce na replicação do appointment e NUNCA é removido
195
+ * (fica mesmo com o appointment excluído). `name`/`color`/`adapter` são cópia do
196
+ * calendar, mantida pela replicação do calendar (`CalendarReplication`).
197
+ */
198
+ export interface IMedCalendarExternalLink extends IExternalLink {
199
+ type: typeof ExternalObjectTypeEnum.MedCalendar;
200
+ /** `IMedCalendar.display_name`. */
201
+ name?: string | null;
202
+ /** `IMedCalendar.color`. */
203
+ color?: string | null;
204
+ /** `IMedCalendar.integration.adapter_id`; `null` = agenda sem integração. */
205
+ adapter?: string | null;
206
+ }
@@ -27,6 +27,13 @@ exports.ExternalObjectTypeEnum = {
27
27
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
28
28
  */
29
29
  Teleconsultation: "teleconsultation",
30
+ /**
31
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
32
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
33
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
34
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
35
+ */
36
+ MedCalendar: "med_calendar",
30
37
  };
31
38
  /**
32
39
  * feat-125 — sistema DONO do objeto vinculado, quando ele não vive no tenant.
@@ -92,6 +99,11 @@ exports.ExternalLinkSourceEnum = {
92
99
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
93
100
  */
94
101
  Hubia: "hubia",
102
+ /**
103
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
104
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
105
+ */
106
+ AppointmentReplication: "appointment_replication",
95
107
  };
96
108
  /**
97
109
  * feat-193 — par de relação (chave neutra de gênero). O rótulo exibido vem do
@@ -27,6 +27,13 @@ export const ExternalObjectTypeEnum = {
27
27
  * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
28
28
  */
29
29
  Teleconsultation: "teleconsultation",
30
+ /**
31
+ * Agenda do evo-med da qual o paciente tem (ou teve) appointment. O `id` é o doc
32
+ * id do calendar (o mesmo do path `calendars/{id}`), NÃO o campo
33
+ * `IMedCalendar.calendarId`. Ver `IMedCalendarExternalLink`.
34
+ * Espelhado à mão em `zExternalObjectTypeSchema` (apps/evo-task/zod-schemas.ts).
35
+ */
36
+ MedCalendar: "med_calendar",
30
37
  } as const;
31
38
 
32
39
  export type ExternalObjectType =
@@ -108,6 +115,11 @@ export const ExternalLinkSourceEnum = {
108
115
  * feat-193): pode CONFIRMAR; o humano segue podendo rejeitar/rebaixar.
109
116
  */
110
117
  Hubia: "hubia",
118
+ /**
119
+ * Gravado pela replicação appointment → paciente (`PatientReplicationHandler`):
120
+ * hoje só o link `med_calendar`. Espelhado em `zExternalLinkSourceSchema`.
121
+ */
122
+ AppointmentReplication: "appointment_replication",
111
123
  } as const;
112
124
 
113
125
  export type ExternalLinkSource =
@@ -207,3 +219,19 @@ export interface IExternalLink {
207
219
  owner?: ExternalOwnerSystem;
208
220
  [key: string]: unknown;
209
221
  }
222
+
223
+ /**
224
+ * Link `med_calendar` no `externalLinks` do paciente: uma entrada por agenda em que
225
+ * ele tem/teve appointment. Nasce na replicação do appointment e NUNCA é removido
226
+ * (fica mesmo com o appointment excluído). `name`/`color`/`adapter` são cópia do
227
+ * calendar, mantida pela replicação do calendar (`CalendarReplication`).
228
+ */
229
+ export interface IMedCalendarExternalLink extends IExternalLink {
230
+ type: typeof ExternalObjectTypeEnum.MedCalendar;
231
+ /** `IMedCalendar.display_name`. */
232
+ name?: string | null;
233
+ /** `IMedCalendar.color`. */
234
+ color?: string | null;
235
+ /** `IMedCalendar.integration.adapter_id`; `null` = agenda sem integração. */
236
+ adapter?: string | null;
237
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.755",
3
+ "version": "1.3.759",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",