evo360-types 1.3.411 → 1.3.414
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/evo-notifications/zod-schemas.d.ts +10 -0
- package/dist/apps/evo-notifications/zod-schemas.js +6 -0
- package/dist/apps/evo-notifications/zod-schemas.ts +6 -0
- package/dist/apps/hub-automation/zod-schemas.d.ts +3 -0
- package/dist/apps/hub-automation/zod-schemas.js +7 -0
- package/dist/apps/hub-automation/zod-schemas.ts +7 -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/evo-notifications/index.d.ts +7 -0
- package/dist/types/evo-notifications/index.ts +8 -0
- 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).
|
|
@@ -681,6 +681,7 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
681
681
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
682
682
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
683
683
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
684
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
684
685
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
685
686
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
686
687
|
id: z.ZodString;
|
|
@@ -782,6 +783,7 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
782
783
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
783
784
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
784
785
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
786
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
785
787
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
786
788
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
787
789
|
id: z.ZodString;
|
|
@@ -883,6 +885,7 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
883
885
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
884
886
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
885
887
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
888
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
886
889
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
887
890
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
888
891
|
id: z.ZodString;
|
|
@@ -984,6 +987,7 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
984
987
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
985
988
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
986
989
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
990
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
987
991
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
988
992
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
989
993
|
id: z.ZodString;
|
|
@@ -1085,6 +1089,7 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1085
1089
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1086
1090
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1087
1091
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1092
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1088
1093
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1089
1094
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1090
1095
|
id: z.ZodString;
|
|
@@ -1185,6 +1190,7 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1185
1190
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1186
1191
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1187
1192
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1188
1194
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1189
1195
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1190
1196
|
id: z.ZodString;
|
|
@@ -1284,6 +1290,7 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1284
1290
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1285
1291
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1286
1292
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1287
1294
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1288
1295
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1289
1296
|
id: z.ZodString;
|
|
@@ -1383,6 +1390,7 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1383
1390
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1384
1391
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1385
1392
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1393
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1386
1394
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1387
1395
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1388
1396
|
id: z.ZodString;
|
|
@@ -1482,6 +1490,7 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1482
1490
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1483
1491
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1484
1492
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1493
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1485
1494
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1486
1495
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1487
1496
|
id: z.ZodString;
|
|
@@ -1581,6 +1590,7 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1581
1590
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
1582
1591
|
dedup_key: z.ZodOptional<z.ZodString>;
|
|
1583
1592
|
dedup_group_key: z.ZodOptional<z.ZodString>;
|
|
1593
|
+
force_send: z.ZodOptional<z.ZodBoolean>;
|
|
1584
1594
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1585
1595
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "nex_billing", "nex_contract", "nex_customer"]>;
|
|
1586
1596
|
id: z.ZodString;
|
|
@@ -155,6 +155,9 @@ exports.zDirectSendPayloadSchema = zod_1.z
|
|
|
155
155
|
idempotency_key: zod_1.z.string().optional(),
|
|
156
156
|
dedup_key: zod_1.z.string().optional(),
|
|
157
157
|
dedup_group_key: zod_1.z.string().optional(),
|
|
158
|
+
// Q22: hot-resend flag — bypasses the dedup_key send suppression (opt-out
|
|
159
|
+
// still enforced). Passthrough already allows it; declared for clarity.
|
|
160
|
+
force_send: zod_1.z.boolean().optional(),
|
|
158
161
|
externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
|
|
159
162
|
quick_reply_actions: zod_1.z.array(zod_schemas_3.zQuickReplyActionIntentSchema).optional(),
|
|
160
163
|
})
|
|
@@ -206,6 +209,9 @@ exports.zNexusDirectSendPayloadSchema = zod_1.z
|
|
|
206
209
|
idempotency_key: zod_1.z.string().optional(),
|
|
207
210
|
dedup_key: zod_1.z.string().optional(),
|
|
208
211
|
dedup_group_key: zod_1.z.string().optional(),
|
|
212
|
+
// Q22: hot-resend flag — bypasses the dedup_key send suppression (opt-out
|
|
213
|
+
// still enforced). Passthrough already allows it; declared for clarity.
|
|
214
|
+
force_send: zod_1.z.boolean().optional(),
|
|
209
215
|
externalLinks: zod_1.z.array(zod_schemas_2.zExternalLinkSchema).optional(),
|
|
210
216
|
quick_reply_actions: zod_1.z.array(zod_schemas_3.zQuickReplyActionIntentSchema).optional(),
|
|
211
217
|
})
|
|
@@ -170,6 +170,9 @@ export const zDirectSendPayloadSchema = z
|
|
|
170
170
|
idempotency_key: z.string().optional(),
|
|
171
171
|
dedup_key: z.string().optional(),
|
|
172
172
|
dedup_group_key: z.string().optional(),
|
|
173
|
+
// Q22: hot-resend flag — bypasses the dedup_key send suppression (opt-out
|
|
174
|
+
// still enforced). Passthrough already allows it; declared for clarity.
|
|
175
|
+
force_send: z.boolean().optional(),
|
|
173
176
|
externalLinks: z.array(zExternalLinkSchema).optional(),
|
|
174
177
|
quick_reply_actions: z.array(zQuickReplyActionIntentSchema).optional(),
|
|
175
178
|
})
|
|
@@ -227,6 +230,9 @@ export const zNexusDirectSendPayloadSchema = z
|
|
|
227
230
|
idempotency_key: z.string().optional(),
|
|
228
231
|
dedup_key: z.string().optional(),
|
|
229
232
|
dedup_group_key: z.string().optional(),
|
|
233
|
+
// Q22: hot-resend flag — bypasses the dedup_key send suppression (opt-out
|
|
234
|
+
// still enforced). Passthrough already allows it; declared for clarity.
|
|
235
|
+
force_send: z.boolean().optional(),
|
|
230
236
|
externalLinks: z.array(zExternalLinkSchema).optional(),
|
|
231
237
|
quick_reply_actions: z.array(zQuickReplyActionIntentSchema).optional(),
|
|
232
238
|
})
|
|
@@ -6311,9 +6311,12 @@ export declare const zAutomationDryRunRequestSchema: z.ZodObject<{
|
|
|
6311
6311
|
}>;
|
|
6312
6312
|
export declare const zAutomationTriggerRequestSchema: z.ZodObject<{
|
|
6313
6313
|
run_date: z.ZodOptional<z.ZodString>;
|
|
6314
|
+
force: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6314
6315
|
}, "strip", z.ZodTypeAny, {
|
|
6316
|
+
force: boolean;
|
|
6315
6317
|
run_date?: string | undefined;
|
|
6316
6318
|
}, {
|
|
6317
6319
|
run_date?: string | undefined;
|
|
6320
|
+
force?: boolean | undefined;
|
|
6318
6321
|
}>;
|
|
6319
6322
|
export {};
|
|
@@ -206,10 +206,17 @@ exports.zAutomationDryRunRequestSchema = zod_1.z.object({
|
|
|
206
206
|
// Trigger request (endpoint POST /routines/:id/trigger)
|
|
207
207
|
// Same shape as the dry-run request — only an optional run_date; no
|
|
208
208
|
// calendar_ids override or arbitrary payload (F2 scope, see plan-f2 §1).
|
|
209
|
+
//
|
|
210
|
+
// Q22: `force` is the "hot resend" flag. When true the run pierces BOTH dedup
|
|
211
|
+
// layers: (1) creation — the materializer appends a per-run suffix to the
|
|
212
|
+
// idempotency key so a NEW task is always created; (2) send — the task carries
|
|
213
|
+
// `force_send` down to notification.send, which bypasses the dedup_key skip.
|
|
214
|
+
// Force pierces DEDUP only; opt-out and the Q11 dry-run gate stay intact.
|
|
209
215
|
// ------------------------------------------------------
|
|
210
216
|
exports.zAutomationTriggerRequestSchema = zod_1.z.object({
|
|
211
217
|
run_date: zod_1.z
|
|
212
218
|
.string()
|
|
213
219
|
.regex(/^\d{4}-\d{2}-\d{2}$/, "expected yyyy-MM-dd")
|
|
214
220
|
.optional(),
|
|
221
|
+
force: zod_1.z.boolean().optional().default(false),
|
|
215
222
|
});
|
|
@@ -242,10 +242,17 @@ export const zAutomationDryRunRequestSchema = z.object({
|
|
|
242
242
|
// Trigger request (endpoint POST /routines/:id/trigger)
|
|
243
243
|
// Same shape as the dry-run request — only an optional run_date; no
|
|
244
244
|
// calendar_ids override or arbitrary payload (F2 scope, see plan-f2 §1).
|
|
245
|
+
//
|
|
246
|
+
// Q22: `force` is the "hot resend" flag. When true the run pierces BOTH dedup
|
|
247
|
+
// layers: (1) creation — the materializer appends a per-run suffix to the
|
|
248
|
+
// idempotency key so a NEW task is always created; (2) send — the task carries
|
|
249
|
+
// `force_send` down to notification.send, which bypasses the dedup_key skip.
|
|
250
|
+
// Force pierces DEDUP only; opt-out and the Q11 dry-run gate stay intact.
|
|
245
251
|
// ------------------------------------------------------
|
|
246
252
|
export const zAutomationTriggerRequestSchema = z.object({
|
|
247
253
|
run_date: z
|
|
248
254
|
.string()
|
|
249
255
|
.regex(/^\d{4}-\d{2}-\d{2}$/, "expected yyyy-MM-dd")
|
|
250
256
|
.optional(),
|
|
257
|
+
force: z.boolean().optional().default(false),
|
|
251
258
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./types/evo-survey";
|
|
|
22
22
|
export * from "./types/evo-finops";
|
|
23
23
|
export * from "./types/evo-notif-user";
|
|
24
24
|
export * from "./types/evo-notifications";
|
|
25
|
+
export * from "./types/evo-campaigns";
|
|
25
26
|
export * from "./types/evo-task-runner";
|
|
26
27
|
export * from "./types/hub-automation";
|
|
27
28
|
export * from "./types/evo-integrations";
|
|
@@ -66,6 +67,7 @@ export * from "./apps/evo-finops/zod-schemas";
|
|
|
66
67
|
export * from "./apps/evo-notif-user/zod-schemas";
|
|
67
68
|
export * from "./apps/evo-notifications/zod-schemas";
|
|
68
69
|
export * from "./apps/evo-notifications/quick-reply-action/zod-schemas";
|
|
70
|
+
export * from "./apps/evo-campaigns/zod-schemas";
|
|
69
71
|
export * from "./apps/evo-task-runner/zod-schemas";
|
|
70
72
|
export * from "./apps/hub-automation/zod-schemas";
|
|
71
73
|
export * from "./apps/evo-integrations/zod-schemas";
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __exportStar(require("./types/evo-survey"), exports);
|
|
|
39
39
|
__exportStar(require("./types/evo-finops"), exports);
|
|
40
40
|
__exportStar(require("./types/evo-notif-user"), exports);
|
|
41
41
|
__exportStar(require("./types/evo-notifications"), exports);
|
|
42
|
+
__exportStar(require("./types/evo-campaigns"), exports);
|
|
42
43
|
__exportStar(require("./types/evo-task-runner"), exports);
|
|
43
44
|
__exportStar(require("./types/hub-automation"), exports);
|
|
44
45
|
__exportStar(require("./types/evo-integrations"), exports);
|
|
@@ -84,6 +85,7 @@ __exportStar(require("./apps/evo-finops/zod-schemas"), exports);
|
|
|
84
85
|
__exportStar(require("./apps/evo-notif-user/zod-schemas"), exports);
|
|
85
86
|
__exportStar(require("./apps/evo-notifications/zod-schemas"), exports);
|
|
86
87
|
__exportStar(require("./apps/evo-notifications/quick-reply-action/zod-schemas"), exports);
|
|
88
|
+
__exportStar(require("./apps/evo-campaigns/zod-schemas"), exports);
|
|
87
89
|
__exportStar(require("./apps/evo-task-runner/zod-schemas"), exports);
|
|
88
90
|
__exportStar(require("./apps/hub-automation/zod-schemas"), exports);
|
|
89
91
|
__exportStar(require("./apps/evo-integrations/zod-schemas"), exports);
|
package/dist/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./types/evo-survey";
|
|
|
23
23
|
export * from "./types/evo-finops";
|
|
24
24
|
export * from "./types/evo-notif-user";
|
|
25
25
|
export * from "./types/evo-notifications";
|
|
26
|
+
export * from "./types/evo-campaigns";
|
|
26
27
|
export * from "./types/evo-task-runner";
|
|
27
28
|
export * from "./types/hub-automation";
|
|
28
29
|
export * from "./types/evo-integrations";
|
|
@@ -69,6 +70,7 @@ export * from "./apps/evo-finops/zod-schemas";
|
|
|
69
70
|
export * from "./apps/evo-notif-user/zod-schemas";
|
|
70
71
|
export * from "./apps/evo-notifications/zod-schemas";
|
|
71
72
|
export * from "./apps/evo-notifications/quick-reply-action/zod-schemas";
|
|
73
|
+
export * from "./apps/evo-campaigns/zod-schemas";
|
|
72
74
|
export * from "./apps/evo-task-runner/zod-schemas";
|
|
73
75
|
export * from "./apps/hub-automation/zod-schemas";
|
|
74
76
|
export * from "./apps/evo-integrations/zod-schemas";
|