evo360-types 1.3.409 → 1.3.413
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.
- package/dist/apps/evo-campaigns/zod-schemas.d.ts +17367 -0
- package/dist/apps/evo-campaigns/zod-schemas.js +354 -0
- package/dist/apps/evo-campaigns/zod-schemas.ts +389 -0
- package/dist/apps/evo-finops/zod-schemas.d.ts +96 -96
- package/dist/apps/evo-integrations/zod-schemas.d.ts +66 -66
- package/dist/apps/evo-med/calendar/zod-schemas.d.ts +72 -72
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/people/zod-schemas.d.ts +16 -16
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.d.ts +33 -6
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.js +12 -2
- package/dist/apps/evo-notifications/quick-reply-action/zod-schemas.ts +13 -2
- package/dist/apps/hub-automation/zod-schemas.d.ts +312 -0
- package/dist/apps/hub-automation/zod-schemas.js +12 -0
- package/dist/apps/hub-automation/zod-schemas.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-campaigns/index.d.ts +355 -0
- package/dist/types/evo-campaigns/index.js +34 -0
- package/dist/types/evo-campaigns/index.ts +495 -0
- package/dist/types/evo-crm/lead/index.d.ts +16 -2
- package/dist/types/evo-crm/lead/index.ts +20 -1
- package/dist/types/hub-automation/index.d.ts +18 -1
- package/dist/types/hub-automation/index.js +8 -1
- package/dist/types/hub-automation/index.ts +49 -3
- package/package.json +1 -1
|
@@ -346,12 +346,12 @@ export declare const zMedicationSchema: z.ZodObject<{
|
|
|
346
346
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
347
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
348
|
name: string;
|
|
349
|
-
dosage: string | null;
|
|
350
349
|
frequency: string | null;
|
|
350
|
+
dosage: string | null;
|
|
351
351
|
}, {
|
|
352
352
|
name: string;
|
|
353
|
-
dosage?: string | null | undefined;
|
|
354
353
|
frequency?: string | null | undefined;
|
|
354
|
+
dosage?: string | null | undefined;
|
|
355
355
|
}>;
|
|
356
356
|
export declare const zSeveritySchema: z.ZodEnum<["Mild", "Moderate", "Severe", "Unknown"]>;
|
|
357
357
|
export declare const zChronicConditionSchema: z.ZodObject<{
|
|
@@ -375,12 +375,12 @@ export declare const zChronicConditionSchema: z.ZodObject<{
|
|
|
375
375
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
377
|
name: string;
|
|
378
|
-
dosage: string | null;
|
|
379
378
|
frequency: string | null;
|
|
379
|
+
dosage: string | null;
|
|
380
380
|
}, {
|
|
381
381
|
name: string;
|
|
382
|
-
dosage?: string | null | undefined;
|
|
383
382
|
frequency?: string | null | undefined;
|
|
383
|
+
dosage?: string | null | undefined;
|
|
384
384
|
}>, "many">>>;
|
|
385
385
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
386
386
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -399,8 +399,8 @@ export declare const zChronicConditionSchema: z.ZodObject<{
|
|
|
399
399
|
controlled?: boolean | null | undefined;
|
|
400
400
|
medications?: {
|
|
401
401
|
name: string;
|
|
402
|
-
dosage: string | null;
|
|
403
402
|
frequency: string | null;
|
|
403
|
+
dosage: string | null;
|
|
404
404
|
}[] | null | undefined;
|
|
405
405
|
notes?: string | null | undefined;
|
|
406
406
|
}, {
|
|
@@ -419,8 +419,8 @@ export declare const zChronicConditionSchema: z.ZodObject<{
|
|
|
419
419
|
controlled?: boolean | null | undefined;
|
|
420
420
|
medications?: {
|
|
421
421
|
name: string;
|
|
422
|
-
dosage?: string | null | undefined;
|
|
423
422
|
frequency?: string | null | undefined;
|
|
423
|
+
dosage?: string | null | undefined;
|
|
424
424
|
}[] | null | undefined;
|
|
425
425
|
notes?: string | null | undefined;
|
|
426
426
|
}>;
|
|
@@ -533,12 +533,12 @@ export declare const zPatientChronicConditionSchema: z.ZodObject<{
|
|
|
533
533
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
534
534
|
}, "strip", z.ZodTypeAny, {
|
|
535
535
|
name: string;
|
|
536
|
-
dosage: string | null;
|
|
537
536
|
frequency: string | null;
|
|
537
|
+
dosage: string | null;
|
|
538
538
|
}, {
|
|
539
539
|
name: string;
|
|
540
|
-
dosage?: string | null | undefined;
|
|
541
540
|
frequency?: string | null | undefined;
|
|
541
|
+
dosage?: string | null | undefined;
|
|
542
542
|
}>, "many">>>;
|
|
543
543
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
544
544
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -550,8 +550,8 @@ export declare const zPatientChronicConditionSchema: z.ZodObject<{
|
|
|
550
550
|
controlled?: boolean | null | undefined;
|
|
551
551
|
medications?: {
|
|
552
552
|
name: string;
|
|
553
|
-
dosage: string | null;
|
|
554
553
|
frequency: string | null;
|
|
554
|
+
dosage: string | null;
|
|
555
555
|
}[] | null | undefined;
|
|
556
556
|
notes?: string | null | undefined;
|
|
557
557
|
}, {
|
|
@@ -563,8 +563,8 @@ export declare const zPatientChronicConditionSchema: z.ZodObject<{
|
|
|
563
563
|
controlled?: boolean | null | undefined;
|
|
564
564
|
medications?: {
|
|
565
565
|
name: string;
|
|
566
|
-
dosage?: string | null | undefined;
|
|
567
566
|
frequency?: string | null | undefined;
|
|
567
|
+
dosage?: string | null | undefined;
|
|
568
568
|
}[] | null | undefined;
|
|
569
569
|
notes?: string | null | undefined;
|
|
570
570
|
}>;
|
|
@@ -828,12 +828,12 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
828
828
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
829
829
|
}, "strip", z.ZodTypeAny, {
|
|
830
830
|
name: string;
|
|
831
|
-
dosage: string | null;
|
|
832
831
|
frequency: string | null;
|
|
832
|
+
dosage: string | null;
|
|
833
833
|
}, {
|
|
834
834
|
name: string;
|
|
835
|
-
dosage?: string | null | undefined;
|
|
836
835
|
frequency?: string | null | undefined;
|
|
836
|
+
dosage?: string | null | undefined;
|
|
837
837
|
}>, "many">>>;
|
|
838
838
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
839
839
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -845,8 +845,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
845
845
|
controlled?: boolean | null | undefined;
|
|
846
846
|
medications?: {
|
|
847
847
|
name: string;
|
|
848
|
-
dosage: string | null;
|
|
849
848
|
frequency: string | null;
|
|
849
|
+
dosage: string | null;
|
|
850
850
|
}[] | null | undefined;
|
|
851
851
|
notes?: string | null | undefined;
|
|
852
852
|
}, {
|
|
@@ -858,8 +858,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
858
858
|
controlled?: boolean | null | undefined;
|
|
859
859
|
medications?: {
|
|
860
860
|
name: string;
|
|
861
|
-
dosage?: string | null | undefined;
|
|
862
861
|
frequency?: string | null | undefined;
|
|
862
|
+
dosage?: string | null | undefined;
|
|
863
863
|
}[] | null | undefined;
|
|
864
864
|
notes?: string | null | undefined;
|
|
865
865
|
}>, "many">>>;
|
|
@@ -1135,12 +1135,12 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1135
1135
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1136
1136
|
}, "strip", z.ZodTypeAny, {
|
|
1137
1137
|
name: string;
|
|
1138
|
-
dosage: string | null;
|
|
1139
1138
|
frequency: string | null;
|
|
1139
|
+
dosage: string | null;
|
|
1140
1140
|
}, {
|
|
1141
1141
|
name: string;
|
|
1142
|
-
dosage?: string | null | undefined;
|
|
1143
1142
|
frequency?: string | null | undefined;
|
|
1143
|
+
dosage?: string | null | undefined;
|
|
1144
1144
|
}>, "many">>>;
|
|
1145
1145
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1146
1146
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1152,8 +1152,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1152
1152
|
controlled?: boolean | null | undefined;
|
|
1153
1153
|
medications?: {
|
|
1154
1154
|
name: string;
|
|
1155
|
-
dosage: string | null;
|
|
1156
1155
|
frequency: string | null;
|
|
1156
|
+
dosage: string | null;
|
|
1157
1157
|
}[] | null | undefined;
|
|
1158
1158
|
notes?: string | null | undefined;
|
|
1159
1159
|
}, {
|
|
@@ -1165,8 +1165,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1165
1165
|
controlled?: boolean | null | undefined;
|
|
1166
1166
|
medications?: {
|
|
1167
1167
|
name: string;
|
|
1168
|
-
dosage?: string | null | undefined;
|
|
1169
1168
|
frequency?: string | null | undefined;
|
|
1169
|
+
dosage?: string | null | undefined;
|
|
1170
1170
|
}[] | null | undefined;
|
|
1171
1171
|
notes?: string | null | undefined;
|
|
1172
1172
|
}>, "many">>>;
|
|
@@ -1442,12 +1442,12 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1442
1442
|
frequency: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1443
1443
|
}, "strip", z.ZodTypeAny, {
|
|
1444
1444
|
name: string;
|
|
1445
|
-
dosage: string | null;
|
|
1446
1445
|
frequency: string | null;
|
|
1446
|
+
dosage: string | null;
|
|
1447
1447
|
}, {
|
|
1448
1448
|
name: string;
|
|
1449
|
-
dosage?: string | null | undefined;
|
|
1450
1449
|
frequency?: string | null | undefined;
|
|
1450
|
+
dosage?: string | null | undefined;
|
|
1451
1451
|
}>, "many">>>;
|
|
1452
1452
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1453
1453
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1459,8 +1459,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1459
1459
|
controlled?: boolean | null | undefined;
|
|
1460
1460
|
medications?: {
|
|
1461
1461
|
name: string;
|
|
1462
|
-
dosage: string | null;
|
|
1463
1462
|
frequency: string | null;
|
|
1463
|
+
dosage: string | null;
|
|
1464
1464
|
}[] | null | undefined;
|
|
1465
1465
|
notes?: string | null | undefined;
|
|
1466
1466
|
}, {
|
|
@@ -1472,8 +1472,8 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
1472
1472
|
controlled?: boolean | null | undefined;
|
|
1473
1473
|
medications?: {
|
|
1474
1474
|
name: string;
|
|
1475
|
-
dosage?: string | null | undefined;
|
|
1476
1475
|
frequency?: string | null | undefined;
|
|
1476
|
+
dosage?: string | null | undefined;
|
|
1477
1477
|
}[] | null | undefined;
|
|
1478
1478
|
notes?: string | null | undefined;
|
|
1479
1479
|
}>, "many">>>;
|
|
@@ -88,8 +88,17 @@ export declare const zQuickReplyActionSchema: z.ZodObject<{
|
|
|
88
88
|
/** Channel used to deliver/respond (evo-chat channel id). Snapshot at send —
|
|
89
89
|
* the reply (feat-056) is sent through this channel. */
|
|
90
90
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
91
|
-
/** How the action was produced: a Task Runner task, a routine,
|
|
92
|
-
|
|
91
|
+
/** How the action was produced: a Task Runner task, a routine, a manual send,
|
|
92
|
+
* or a Hub Omni campaign (feat-081). */
|
|
93
|
+
source_type: z.ZodOptional<z.ZodEnum<["task", "routine", "manual", "campaign"]>>;
|
|
94
|
+
/** Campaign that originated this action (source_type='campaign'). */
|
|
95
|
+
campaign_id: z.ZodOptional<z.ZodString>;
|
|
96
|
+
/** Campaign recipient doc id (destinatário×campanha). */
|
|
97
|
+
campaign_recipient_id: z.ZodOptional<z.ZodString>;
|
|
98
|
+
/** Bucket (segmento) do destinatário dentro da campanha. */
|
|
99
|
+
bucket_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
/** CTA da config da campanha que gerou este link/botão. */
|
|
101
|
+
cta_id: z.ZodOptional<z.ZodString>;
|
|
93
102
|
/** Quick-reply (hub-omni) whose text is the patient-facing RESPONSE on success.
|
|
94
103
|
* Snapshot of the agenda config (feat-048) at send time — one per action
|
|
95
104
|
* (confirm carries on_confirm_quick_reply_id, reschedule the reschedule one).
|
|
@@ -172,8 +181,17 @@ export declare const zQuickReplyActionSchema: z.ZodObject<{
|
|
|
172
181
|
/** Channel used to deliver/respond (evo-chat channel id). Snapshot at send —
|
|
173
182
|
* the reply (feat-056) is sent through this channel. */
|
|
174
183
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
175
|
-
/** How the action was produced: a Task Runner task, a routine,
|
|
176
|
-
|
|
184
|
+
/** How the action was produced: a Task Runner task, a routine, a manual send,
|
|
185
|
+
* or a Hub Omni campaign (feat-081). */
|
|
186
|
+
source_type: z.ZodOptional<z.ZodEnum<["task", "routine", "manual", "campaign"]>>;
|
|
187
|
+
/** Campaign that originated this action (source_type='campaign'). */
|
|
188
|
+
campaign_id: z.ZodOptional<z.ZodString>;
|
|
189
|
+
/** Campaign recipient doc id (destinatário×campanha). */
|
|
190
|
+
campaign_recipient_id: z.ZodOptional<z.ZodString>;
|
|
191
|
+
/** Bucket (segmento) do destinatário dentro da campanha. */
|
|
192
|
+
bucket_id: z.ZodOptional<z.ZodString>;
|
|
193
|
+
/** CTA da config da campanha que gerou este link/botão. */
|
|
194
|
+
cta_id: z.ZodOptional<z.ZodString>;
|
|
177
195
|
/** Quick-reply (hub-omni) whose text is the patient-facing RESPONSE on success.
|
|
178
196
|
* Snapshot of the agenda config (feat-048) at send time — one per action
|
|
179
197
|
* (confirm carries on_confirm_quick_reply_id, reschedule the reschedule one).
|
|
@@ -256,8 +274,17 @@ export declare const zQuickReplyActionSchema: z.ZodObject<{
|
|
|
256
274
|
/** Channel used to deliver/respond (evo-chat channel id). Snapshot at send —
|
|
257
275
|
* the reply (feat-056) is sent through this channel. */
|
|
258
276
|
channel_id: z.ZodOptional<z.ZodString>;
|
|
259
|
-
/** How the action was produced: a Task Runner task, a routine,
|
|
260
|
-
|
|
277
|
+
/** How the action was produced: a Task Runner task, a routine, a manual send,
|
|
278
|
+
* or a Hub Omni campaign (feat-081). */
|
|
279
|
+
source_type: z.ZodOptional<z.ZodEnum<["task", "routine", "manual", "campaign"]>>;
|
|
280
|
+
/** Campaign that originated this action (source_type='campaign'). */
|
|
281
|
+
campaign_id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
/** Campaign recipient doc id (destinatário×campanha). */
|
|
283
|
+
campaign_recipient_id: z.ZodOptional<z.ZodString>;
|
|
284
|
+
/** Bucket (segmento) do destinatário dentro da campanha. */
|
|
285
|
+
bucket_id: z.ZodOptional<z.ZodString>;
|
|
286
|
+
/** CTA da config da campanha que gerou este link/botão. */
|
|
287
|
+
cta_id: z.ZodOptional<z.ZodString>;
|
|
261
288
|
/** Quick-reply (hub-omni) whose text is the patient-facing RESPONSE on success.
|
|
262
289
|
* Snapshot of the agenda config (feat-048) at send time — one per action
|
|
263
290
|
* (confirm carries on_confirm_quick_reply_id, reschedule the reschedule one).
|
|
@@ -66,8 +66,18 @@ exports.zQuickReplyActionSchema = zod_schemas_1.zFireDocSchema
|
|
|
66
66
|
/** Channel used to deliver/respond (evo-chat channel id). Snapshot at send —
|
|
67
67
|
* the reply (feat-056) is sent through this channel. */
|
|
68
68
|
channel_id: zod_1.z.string().optional(),
|
|
69
|
-
/** How the action was produced: a Task Runner task, a routine,
|
|
70
|
-
|
|
69
|
+
/** How the action was produced: a Task Runner task, a routine, a manual send,
|
|
70
|
+
* or a Hub Omni campaign (feat-081). */
|
|
71
|
+
source_type: zod_1.z.enum(["task", "routine", "manual", "campaign"]).optional(),
|
|
72
|
+
// ── Proveniência de campanha (feat-081) ────────────────────────────────
|
|
73
|
+
/** Campaign that originated this action (source_type='campaign'). */
|
|
74
|
+
campaign_id: zod_1.z.string().optional(),
|
|
75
|
+
/** Campaign recipient doc id (destinatário×campanha). */
|
|
76
|
+
campaign_recipient_id: zod_1.z.string().optional(),
|
|
77
|
+
/** Bucket (segmento) do destinatário dentro da campanha. */
|
|
78
|
+
bucket_id: zod_1.z.string().optional(),
|
|
79
|
+
/** CTA da config da campanha que gerou este link/botão. */
|
|
80
|
+
cta_id: zod_1.z.string().optional(),
|
|
71
81
|
/** Quick-reply (hub-omni) whose text is the patient-facing RESPONSE on success.
|
|
72
82
|
* Snapshot of the agenda config (feat-048) at send time — one per action
|
|
73
83
|
* (confirm carries on_confirm_quick_reply_id, reschedule the reschedule one).
|
|
@@ -74,8 +74,19 @@ export const zQuickReplyActionSchema = zFireDocSchema
|
|
|
74
74
|
/** Channel used to deliver/respond (evo-chat channel id). Snapshot at send —
|
|
75
75
|
* the reply (feat-056) is sent through this channel. */
|
|
76
76
|
channel_id: z.string().optional(),
|
|
77
|
-
/** How the action was produced: a Task Runner task, a routine,
|
|
78
|
-
|
|
77
|
+
/** How the action was produced: a Task Runner task, a routine, a manual send,
|
|
78
|
+
* or a Hub Omni campaign (feat-081). */
|
|
79
|
+
source_type: z.enum(["task", "routine", "manual", "campaign"]).optional(),
|
|
80
|
+
|
|
81
|
+
// ── Proveniência de campanha (feat-081) ────────────────────────────────
|
|
82
|
+
/** Campaign that originated this action (source_type='campaign'). */
|
|
83
|
+
campaign_id: z.string().optional(),
|
|
84
|
+
/** Campaign recipient doc id (destinatário×campanha). */
|
|
85
|
+
campaign_recipient_id: z.string().optional(),
|
|
86
|
+
/** Bucket (segmento) do destinatário dentro da campanha. */
|
|
87
|
+
bucket_id: z.string().optional(),
|
|
88
|
+
/** CTA da config da campanha que gerou este link/botão. */
|
|
89
|
+
cta_id: z.string().optional(),
|
|
79
90
|
/** Quick-reply (hub-omni) whose text is the patient-facing RESPONSE on success.
|
|
80
91
|
* Snapshot of the agenda config (feat-048) at send time — one per action
|
|
81
92
|
* (confirm carries on_confirm_quick_reply_id, reschedule the reschedule one).
|