evo360-types 1.3.634 → 1.3.639

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 (68) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +6 -6
  2. package/dist/apps/evo-chat/chatbee/zod-schemas.d.ts +6 -6
  3. package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
  4. package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
  5. package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
  6. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +70 -18
  7. package/dist/apps/evo-crm/dic/zod-schemas.js +17 -1
  8. package/dist/apps/evo-crm/dic/zod-schemas.ts +20 -0
  9. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +240 -6
  10. package/dist/apps/evo-crm/lead/zod-schemas.js +6 -0
  11. package/dist/apps/evo-crm/lead/zod-schemas.ts +6 -0
  12. package/dist/apps/evo-csq/zod-schemas.d.ts +289 -56
  13. package/dist/apps/evo-csq/zod-schemas.js +18 -2
  14. package/dist/apps/evo-csq/zod-schemas.ts +18 -0
  15. package/dist/apps/evo-finops/zod-schemas.d.ts +439 -7
  16. package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +2 -2
  17. package/dist/apps/evo-hub-ia/v1/zod-schemas.d.ts +76 -28
  18. package/dist/apps/evo-hub-ia/v1/zod-schemas.js +12 -0
  19. package/dist/apps/evo-hub-ia/v1/zod-schemas.ts +12 -0
  20. package/dist/apps/evo-integrations/zod-schemas.d.ts +24 -16
  21. package/dist/apps/evo-integrations/zod-schemas.js +8 -1
  22. package/dist/apps/evo-integrations/zod-schemas.ts +9 -0
  23. package/dist/apps/evo-med/appointment/zod-schemas.d.ts +83 -6
  24. package/dist/apps/evo-med/appointment/zod-schemas.js +19 -1
  25. package/dist/apps/evo-med/appointment/zod-schemas.ts +21 -0
  26. package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
  27. package/dist/apps/evo-med/dic/zod-schemas.d.ts +14 -14
  28. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
  29. package/dist/apps/evo-med/people/zod-schemas.d.ts +1118 -20
  30. package/dist/apps/evo-med/people/zod-schemas.js +6 -0
  31. package/dist/apps/evo-med/people/zod-schemas.ts +6 -0
  32. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
  33. package/dist/apps/evo-notif-user/zod-schemas.d.ts +18 -18
  34. package/dist/apps/evo-notifications/zod-schemas.d.ts +936 -0
  35. package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
  36. package/dist/apps/evo-survey/zod-schemas.d.ts +79 -79
  37. package/dist/apps/evo-task/zod-schemas.d.ts +453 -78
  38. package/dist/apps/evo-task/zod-schemas.js +66 -1
  39. package/dist/apps/evo-task/zod-schemas.ts +71 -0
  40. package/dist/apps/evo-tenant/zod-schemas.d.ts +18 -5
  41. package/dist/apps/evo-tenant/zod-schemas.js +3 -0
  42. package/dist/apps/evo-tenant/zod-schemas.ts +3 -0
  43. package/dist/apps/hub-automation/zod-schemas.d.ts +327 -327
  44. package/dist/apps/shared/zod-schemas.d.ts +3 -3
  45. package/dist/types/evo-crm/dic/index.d.ts +16 -1
  46. package/dist/types/evo-crm/dic/index.ts +23 -1
  47. package/dist/types/evo-crm/fb_collections.d.ts +1 -0
  48. package/dist/types/evo-crm/fb_collections.js +5 -1
  49. package/dist/types/evo-crm/fb_collections.ts +4 -0
  50. package/dist/types/evo-crm/lead/index.d.ts +6 -0
  51. package/dist/types/evo-crm/lead/index.ts +6 -0
  52. package/dist/types/evo-csq/index.d.ts +36 -6
  53. package/dist/types/evo-csq/index.js +8 -1
  54. package/dist/types/evo-csq/index.ts +39 -5
  55. package/dist/types/evo-integrations/index.d.ts +16 -0
  56. package/dist/types/evo-integrations/index.js +18 -1
  57. package/dist/types/evo-integrations/index.ts +26 -0
  58. package/dist/types/evo-med/appointment/index.d.ts +22 -0
  59. package/dist/types/evo-med/appointment/index.js +7 -1
  60. package/dist/types/evo-med/appointment/index.ts +30 -0
  61. package/dist/types/evo-med/people/index.d.ts +6 -0
  62. package/dist/types/evo-med/people/index.ts +6 -0
  63. package/dist/types/evo-tenant/index.d.ts +7 -0
  64. package/dist/types/evo-tenant/index.ts +7 -0
  65. package/dist/types/shared/external-links.d.ts +98 -0
  66. package/dist/types/shared/external-links.js +64 -1
  67. package/dist/types/shared/external-links.ts +118 -0
  68. package/package.json +1 -1
@@ -202,6 +202,24 @@ export const zAppointmentSpecialtySchema = z
202
202
  })
203
203
  .passthrough();
204
204
 
205
+ // feat-193 F4 — quem pediu o agendamento (lead da conversa no omni, HubIA, MCP).
206
+ export const zAppointmentRequestedBySourceSchema = z.enum([
207
+ "ui_omni",
208
+ "ui_calendar",
209
+ "hubia",
210
+ "mcp",
211
+ ]);
212
+
213
+ export const zAppointmentRequestedBySchema = z
214
+ .object({
215
+ lead_id: z.string().nullable(),
216
+ chat_contact_id: z.string().nullable(),
217
+ ticket_id: z.string().nullable(),
218
+ display_name: z.string().nullable(),
219
+ source: zAppointmentRequestedBySourceSchema,
220
+ })
221
+ .passthrough();
222
+
205
223
  // Schema principal do Appointment
206
224
  export const zAppointmentSchema = zFireDocSchema
207
225
  .extend({
@@ -254,6 +272,9 @@ export const zAppointmentSchema = zFireDocSchema
254
272
  // Nullable/optional resolvem ANTES da coerção — `null` continua `null`.
255
273
  status_external_id: z.coerce.string().nullable().optional(),
256
274
 
275
+ // feat-193 F4 — solicitante. Local (a agenda externa não conhece o campo).
276
+ requested_by: zAppointmentRequestedBySchema.nullable().optional(),
277
+
257
278
  tags: z.array(zTagSchema).nullable().optional(),
258
279
  })
259
280
  .passthrough();
@@ -1493,14 +1493,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
1493
1493
  name: string;
1494
1494
  hidden: boolean;
1495
1495
  base?: boolean | undefined;
1496
- color?: string | undefined;
1497
1496
  category?: string | null | undefined;
1497
+ color?: string | undefined;
1498
1498
  }, {
1499
1499
  name: string;
1500
1500
  hidden: boolean;
1501
1501
  base?: boolean | undefined;
1502
- color?: string | undefined;
1503
1502
  category?: string | null | undefined;
1503
+ color?: string | undefined;
1504
1504
  }>, "many">>>;
1505
1505
  userRef: z.ZodAny;
1506
1506
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -3244,14 +3244,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
3244
3244
  name: string;
3245
3245
  hidden: boolean;
3246
3246
  base?: boolean | undefined;
3247
- color?: string | undefined;
3248
3247
  category?: string | null | undefined;
3248
+ color?: string | undefined;
3249
3249
  }, {
3250
3250
  name: string;
3251
3251
  hidden: boolean;
3252
3252
  base?: boolean | undefined;
3253
- color?: string | undefined;
3254
3253
  category?: string | null | undefined;
3254
+ color?: string | undefined;
3255
3255
  }>, "many">>>;
3256
3256
  userRef: z.ZodAny;
3257
3257
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -4995,14 +4995,14 @@ export declare const zMedCalendarSchema: z.ZodObject<{
4995
4995
  name: string;
4996
4996
  hidden: boolean;
4997
4997
  base?: boolean | undefined;
4998
- color?: string | undefined;
4999
4998
  category?: string | null | undefined;
4999
+ color?: string | undefined;
5000
5000
  }, {
5001
5001
  name: string;
5002
5002
  hidden: boolean;
5003
5003
  base?: boolean | undefined;
5004
- color?: string | undefined;
5005
5004
  category?: string | null | undefined;
5005
+ color?: string | undefined;
5006
5006
  }>, "many">>>;
5007
5007
  userRef: z.ZodAny;
5008
5008
  appointmentCounters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -60,14 +60,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
60
60
  name: string;
61
61
  hidden: boolean;
62
62
  base?: boolean | undefined;
63
- color?: string | undefined;
64
63
  category?: string | null | undefined;
64
+ color?: string | undefined;
65
65
  }, {
66
66
  name: string;
67
67
  hidden: boolean;
68
68
  base?: boolean | undefined;
69
- color?: string | undefined;
70
69
  category?: string | null | undefined;
70
+ color?: string | undefined;
71
71
  }>, "many">>>;
72
72
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73
73
  id: z.ZodString;
@@ -96,14 +96,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
96
96
  name: string;
97
97
  hidden: boolean;
98
98
  base?: boolean | undefined;
99
- color?: string | undefined;
100
99
  category?: string | null | undefined;
100
+ color?: string | undefined;
101
101
  }, {
102
102
  name: string;
103
103
  hidden: boolean;
104
104
  base?: boolean | undefined;
105
- color?: string | undefined;
106
105
  category?: string | null | undefined;
106
+ color?: string | undefined;
107
107
  }>, "many">>>;
108
108
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
109
  id: z.ZodString;
@@ -132,14 +132,14 @@ export declare const zSpecialtySchema: z.ZodObject<{
132
132
  name: string;
133
133
  hidden: boolean;
134
134
  base?: boolean | undefined;
135
- color?: string | undefined;
136
135
  category?: string | null | undefined;
136
+ color?: string | undefined;
137
137
  }, {
138
138
  name: string;
139
139
  hidden: boolean;
140
140
  base?: boolean | undefined;
141
- color?: string | undefined;
142
141
  category?: string | null | undefined;
142
+ color?: string | undefined;
143
143
  }>, "many">>>;
144
144
  }, z.ZodTypeAny, "passthrough">>;
145
145
  export declare const zPatientSourceSchema: z.ZodObject<{
@@ -283,7 +283,7 @@ export declare const zAppointmentStatusSchema: z.ZodObject<{
283
283
  order: number;
284
284
  tenant: string;
285
285
  model_ver: number;
286
- base_type: "cancelled" | "scheduled" | "confirmed" | "rescheduled" | "pre_checkin" | "waiting" | "in_progress" | "completed" | "no_show" | "cancelled_by_clinic" | "cancelled_by_patient" | "extra_slot" | "awaiting_payment" | "paid" | "awaiting_documents" | "blocked" | "waiting_list" | "expired";
286
+ base_type: "confirmed" | "cancelled" | "scheduled" | "rescheduled" | "pre_checkin" | "waiting" | "in_progress" | "completed" | "no_show" | "cancelled_by_clinic" | "cancelled_by_patient" | "extra_slot" | "awaiting_payment" | "paid" | "awaiting_documents" | "blocked" | "waiting_list" | "expired";
287
287
  ref?: any;
288
288
  created_at?: Date | null | undefined;
289
289
  updated_at?: Date | null | undefined;
@@ -294,10 +294,10 @@ export declare const zAppointmentStatusSchema: z.ZodObject<{
294
294
  id: string;
295
295
  order: number;
296
296
  tenant: string;
297
- base_type: "cancelled" | "scheduled" | "confirmed" | "rescheduled" | "pre_checkin" | "waiting" | "in_progress" | "completed" | "no_show" | "cancelled_by_clinic" | "cancelled_by_patient" | "extra_slot" | "awaiting_payment" | "paid" | "awaiting_documents" | "blocked" | "waiting_list" | "expired";
297
+ base_type: "confirmed" | "cancelled" | "scheduled" | "rescheduled" | "pre_checkin" | "waiting" | "in_progress" | "completed" | "no_show" | "cancelled_by_clinic" | "cancelled_by_patient" | "extra_slot" | "awaiting_payment" | "paid" | "awaiting_documents" | "blocked" | "waiting_list" | "expired";
298
298
  ref?: any;
299
- model_ver?: number | undefined;
300
299
  created_at?: Date | null | undefined;
300
+ model_ver?: number | undefined;
301
301
  updated_at?: Date | null | undefined;
302
302
  deleted_at?: Date | null | undefined;
303
303
  external_id?: string | null | undefined;
@@ -334,8 +334,8 @@ export declare const zAppointmentTypeSchema: z.ZodObject<{
334
334
  tenant: string;
335
335
  base_type: "blocked" | "consultation" | "follow_up" | "procedure" | "surgery" | "exam" | "evaluation" | "emergency" | "check_up" | "vaccination" | "fit_test" | "therapy" | "meeting";
336
336
  ref?: any;
337
- model_ver?: number | undefined;
338
337
  created_at?: Date | null | undefined;
338
+ model_ver?: number | undefined;
339
339
  updated_at?: Date | null | undefined;
340
340
  deleted_at?: Date | null | undefined;
341
341
  external_id?: string | null | undefined;
@@ -409,8 +409,8 @@ export declare const zChronicConditionSchema: z.ZodObject<{
409
409
  id: string;
410
410
  tenant: string;
411
411
  ref?: any;
412
- model_ver?: number | undefined;
413
412
  created_at?: Date | null | undefined;
413
+ model_ver?: number | undefined;
414
414
  updated_at?: Date | null | undefined;
415
415
  deleted_at?: Date | null | undefined;
416
416
  external_id?: string | null | undefined;
@@ -440,10 +440,10 @@ export declare const zAllergySchema: z.ZodObject<{
440
440
  }, "strip", z.ZodTypeAny, {
441
441
  name: string;
442
442
  id: string;
443
+ kind: "Other" | "Food" | "Drug" | "Insect" | null;
443
444
  tenant: string;
444
445
  model_ver: number;
445
446
  severity: "Mild" | "Moderate" | "Severe" | "Unknown" | null;
446
- kind: "Food" | "Drug" | "Insect" | "Other" | null;
447
447
  ref?: any;
448
448
  created_at?: Date | null | undefined;
449
449
  updated_at?: Date | null | undefined;
@@ -453,12 +453,12 @@ export declare const zAllergySchema: z.ZodObject<{
453
453
  id: string;
454
454
  tenant: string;
455
455
  ref?: any;
456
- model_ver?: number | undefined;
456
+ kind?: "Other" | "Food" | "Drug" | "Insect" | null | undefined;
457
457
  created_at?: Date | null | undefined;
458
+ model_ver?: number | undefined;
458
459
  updated_at?: Date | null | undefined;
459
460
  deleted_at?: Date | null | undefined;
460
461
  severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | null | undefined;
461
- kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
462
462
  }>;
463
463
  export declare const zMedicalCouncilUFSchema: z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>;
464
464
  export declare const zMedicalCouncilSchema: z.ZodObject<{
@@ -194,14 +194,14 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
194
194
  name: string;
195
195
  hidden: boolean;
196
196
  base?: boolean | undefined;
197
- color?: string | undefined;
198
197
  category?: string | null | undefined;
198
+ color?: string | undefined;
199
199
  }, {
200
200
  name: string;
201
201
  hidden: boolean;
202
202
  base?: boolean | undefined;
203
- color?: string | undefined;
204
203
  category?: string | null | undefined;
204
+ color?: string | undefined;
205
205
  }>, "many">>>;
206
206
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
207
207
  id: z.ZodString;
@@ -333,14 +333,14 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
333
333
  name: string;
334
334
  hidden: boolean;
335
335
  base?: boolean | undefined;
336
- color?: string | undefined;
337
336
  category?: string | null | undefined;
337
+ color?: string | undefined;
338
338
  }, {
339
339
  name: string;
340
340
  hidden: boolean;
341
341
  base?: boolean | undefined;
342
- color?: string | undefined;
343
342
  category?: string | null | undefined;
343
+ color?: string | undefined;
344
344
  }>, "many">>>;
345
345
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
346
346
  id: z.ZodString;
@@ -472,13 +472,13 @@ export declare const zInsuranceCompanySchema: z.ZodObject<{
472
472
  name: string;
473
473
  hidden: boolean;
474
474
  base?: boolean | undefined;
475
- color?: string | undefined;
476
475
  category?: string | null | undefined;
476
+ color?: string | undefined;
477
477
  }, {
478
478
  name: string;
479
479
  hidden: boolean;
480
480
  base?: boolean | undefined;
481
- color?: string | undefined;
482
481
  category?: string | null | undefined;
482
+ color?: string | undefined;
483
483
  }>, "many">>>;
484
484
  }, z.ZodTypeAny, "passthrough">>;