evo360-types 1.3.419 → 1.3.425
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 +1680 -0
- package/dist/apps/evo-campaigns/zod-schemas.js +5 -0
- package/dist/apps/evo-campaigns/zod-schemas.ts +5 -0
- package/dist/apps/evo-finops/zod-schemas.d.ts +18 -18
- package/dist/apps/evo-med/people/zod-schemas.d.ts +36 -36
- package/dist/apps/evo-notifications/zod-schemas.d.ts +39 -39
- package/dist/apps/evo-task/zod-schemas.d.ts +17 -17
- package/dist/apps/evo-task/zod-schemas.js +8 -3
- package/dist/apps/evo-task/zod-schemas.ts +8 -3
- package/dist/apps/hub-automation/zod-schemas.d.ts +445 -8
- package/dist/apps/hub-automation/zod-schemas.js +27 -2
- package/dist/apps/hub-automation/zod-schemas.ts +28 -1
- package/dist/types/evo-campaigns/index.d.ts +16 -2
- package/dist/types/evo-campaigns/index.ts +16 -2
- package/dist/types/hub-automation/index.d.ts +26 -3
- package/dist/types/hub-automation/index.js +24 -1
- package/dist/types/hub-automation/index.ts +69 -3
- package/dist/types/shared/external-links.d.ts +2 -0
- package/dist/types/shared/external-links.js +2 -0
- package/dist/types/shared/external-links.ts +2 -0
- package/package.json +1 -1
|
@@ -208,7 +208,72 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
|
|
|
208
208
|
};
|
|
209
209
|
target: "appointment";
|
|
210
210
|
}>;
|
|
211
|
-
export declare const
|
|
211
|
+
export declare const zAutomationLeadSelectionSchema: z.ZodObject<{
|
|
212
|
+
target: z.ZodLiteral<"lead">;
|
|
213
|
+
lead: z.ZodObject<{
|
|
214
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
215
|
+
qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
216
|
+
dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
217
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
status_in?: string[] | undefined;
|
|
220
|
+
qualification_codes?: string[] | undefined;
|
|
221
|
+
dist_channel_codes?: string[] | undefined;
|
|
222
|
+
tag_names?: string[] | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
status_in?: string[] | undefined;
|
|
225
|
+
qualification_codes?: string[] | undefined;
|
|
226
|
+
dist_channel_codes?: string[] | undefined;
|
|
227
|
+
tag_names?: string[] | undefined;
|
|
228
|
+
}>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
target: "lead";
|
|
231
|
+
lead: {
|
|
232
|
+
status_in?: string[] | undefined;
|
|
233
|
+
qualification_codes?: string[] | undefined;
|
|
234
|
+
dist_channel_codes?: string[] | undefined;
|
|
235
|
+
tag_names?: string[] | undefined;
|
|
236
|
+
};
|
|
237
|
+
}, {
|
|
238
|
+
target: "lead";
|
|
239
|
+
lead: {
|
|
240
|
+
status_in?: string[] | undefined;
|
|
241
|
+
qualification_codes?: string[] | undefined;
|
|
242
|
+
dist_channel_codes?: string[] | undefined;
|
|
243
|
+
tag_names?: string[] | undefined;
|
|
244
|
+
};
|
|
245
|
+
}>;
|
|
246
|
+
export declare const zAutomationPatientSelectionSchema: z.ZodObject<{
|
|
247
|
+
target: z.ZodLiteral<"patient">;
|
|
248
|
+
patient: z.ZodObject<{
|
|
249
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
250
|
+
source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
251
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
status_in?: string[] | undefined;
|
|
254
|
+
tag_names?: string[] | undefined;
|
|
255
|
+
source_codes?: string[] | undefined;
|
|
256
|
+
}, {
|
|
257
|
+
status_in?: string[] | undefined;
|
|
258
|
+
tag_names?: string[] | undefined;
|
|
259
|
+
source_codes?: string[] | undefined;
|
|
260
|
+
}>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
patient: {
|
|
263
|
+
status_in?: string[] | undefined;
|
|
264
|
+
tag_names?: string[] | undefined;
|
|
265
|
+
source_codes?: string[] | undefined;
|
|
266
|
+
};
|
|
267
|
+
target: "patient";
|
|
268
|
+
}, {
|
|
269
|
+
patient: {
|
|
270
|
+
status_in?: string[] | undefined;
|
|
271
|
+
tag_names?: string[] | undefined;
|
|
272
|
+
source_codes?: string[] | undefined;
|
|
273
|
+
};
|
|
274
|
+
target: "patient";
|
|
275
|
+
}>;
|
|
276
|
+
export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
212
277
|
target: z.ZodLiteral<"appointment">;
|
|
213
278
|
appointment: z.ZodObject<{
|
|
214
279
|
calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -293,7 +358,70 @@ export declare const zAutomationSelectionSchema: z.ZodObject<{
|
|
|
293
358
|
payment_status_in?: string[] | undefined;
|
|
294
359
|
};
|
|
295
360
|
target: "appointment";
|
|
296
|
-
}
|
|
361
|
+
}>, z.ZodObject<{
|
|
362
|
+
target: z.ZodLiteral<"lead">;
|
|
363
|
+
lead: z.ZodObject<{
|
|
364
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
365
|
+
qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
366
|
+
dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
367
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
368
|
+
}, "strip", z.ZodTypeAny, {
|
|
369
|
+
status_in?: string[] | undefined;
|
|
370
|
+
qualification_codes?: string[] | undefined;
|
|
371
|
+
dist_channel_codes?: string[] | undefined;
|
|
372
|
+
tag_names?: string[] | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
status_in?: string[] | undefined;
|
|
375
|
+
qualification_codes?: string[] | undefined;
|
|
376
|
+
dist_channel_codes?: string[] | undefined;
|
|
377
|
+
tag_names?: string[] | undefined;
|
|
378
|
+
}>;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
target: "lead";
|
|
381
|
+
lead: {
|
|
382
|
+
status_in?: string[] | undefined;
|
|
383
|
+
qualification_codes?: string[] | undefined;
|
|
384
|
+
dist_channel_codes?: string[] | undefined;
|
|
385
|
+
tag_names?: string[] | undefined;
|
|
386
|
+
};
|
|
387
|
+
}, {
|
|
388
|
+
target: "lead";
|
|
389
|
+
lead: {
|
|
390
|
+
status_in?: string[] | undefined;
|
|
391
|
+
qualification_codes?: string[] | undefined;
|
|
392
|
+
dist_channel_codes?: string[] | undefined;
|
|
393
|
+
tag_names?: string[] | undefined;
|
|
394
|
+
};
|
|
395
|
+
}>, z.ZodObject<{
|
|
396
|
+
target: z.ZodLiteral<"patient">;
|
|
397
|
+
patient: z.ZodObject<{
|
|
398
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
399
|
+
source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
status_in?: string[] | undefined;
|
|
403
|
+
tag_names?: string[] | undefined;
|
|
404
|
+
source_codes?: string[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
status_in?: string[] | undefined;
|
|
407
|
+
tag_names?: string[] | undefined;
|
|
408
|
+
source_codes?: string[] | undefined;
|
|
409
|
+
}>;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
patient: {
|
|
412
|
+
status_in?: string[] | undefined;
|
|
413
|
+
tag_names?: string[] | undefined;
|
|
414
|
+
source_codes?: string[] | undefined;
|
|
415
|
+
};
|
|
416
|
+
target: "patient";
|
|
417
|
+
}, {
|
|
418
|
+
patient: {
|
|
419
|
+
status_in?: string[] | undefined;
|
|
420
|
+
tag_names?: string[] | undefined;
|
|
421
|
+
source_codes?: string[] | undefined;
|
|
422
|
+
};
|
|
423
|
+
target: "patient";
|
|
424
|
+
}>]>;
|
|
297
425
|
export declare const zAutomationOperatorSchema: z.ZodEnum<["eq", "neq", "in", "not_in", "exists", "not_exists", "is_true", "is_false"]>;
|
|
298
426
|
export declare const zAutomationConditionSchema: z.ZodObject<{
|
|
299
427
|
fact: z.ZodString;
|
|
@@ -2330,7 +2458,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
|
|
|
2330
2458
|
actor_kinds?: ("user" | "system" | "automation")[] | undefined;
|
|
2331
2459
|
};
|
|
2332
2460
|
}>]>;
|
|
2333
|
-
selection: z.ZodObject<{
|
|
2461
|
+
selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
2334
2462
|
target: z.ZodLiteral<"appointment">;
|
|
2335
2463
|
appointment: z.ZodObject<{
|
|
2336
2464
|
calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2415,7 +2543,70 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
|
|
|
2415
2543
|
payment_status_in?: string[] | undefined;
|
|
2416
2544
|
};
|
|
2417
2545
|
target: "appointment";
|
|
2418
|
-
}
|
|
2546
|
+
}>, z.ZodObject<{
|
|
2547
|
+
target: z.ZodLiteral<"lead">;
|
|
2548
|
+
lead: z.ZodObject<{
|
|
2549
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2550
|
+
qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2551
|
+
dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2552
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2553
|
+
}, "strip", z.ZodTypeAny, {
|
|
2554
|
+
status_in?: string[] | undefined;
|
|
2555
|
+
qualification_codes?: string[] | undefined;
|
|
2556
|
+
dist_channel_codes?: string[] | undefined;
|
|
2557
|
+
tag_names?: string[] | undefined;
|
|
2558
|
+
}, {
|
|
2559
|
+
status_in?: string[] | undefined;
|
|
2560
|
+
qualification_codes?: string[] | undefined;
|
|
2561
|
+
dist_channel_codes?: string[] | undefined;
|
|
2562
|
+
tag_names?: string[] | undefined;
|
|
2563
|
+
}>;
|
|
2564
|
+
}, "strip", z.ZodTypeAny, {
|
|
2565
|
+
target: "lead";
|
|
2566
|
+
lead: {
|
|
2567
|
+
status_in?: string[] | undefined;
|
|
2568
|
+
qualification_codes?: string[] | undefined;
|
|
2569
|
+
dist_channel_codes?: string[] | undefined;
|
|
2570
|
+
tag_names?: string[] | undefined;
|
|
2571
|
+
};
|
|
2572
|
+
}, {
|
|
2573
|
+
target: "lead";
|
|
2574
|
+
lead: {
|
|
2575
|
+
status_in?: string[] | undefined;
|
|
2576
|
+
qualification_codes?: string[] | undefined;
|
|
2577
|
+
dist_channel_codes?: string[] | undefined;
|
|
2578
|
+
tag_names?: string[] | undefined;
|
|
2579
|
+
};
|
|
2580
|
+
}>, z.ZodObject<{
|
|
2581
|
+
target: z.ZodLiteral<"patient">;
|
|
2582
|
+
patient: z.ZodObject<{
|
|
2583
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2584
|
+
source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2585
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2586
|
+
}, "strip", z.ZodTypeAny, {
|
|
2587
|
+
status_in?: string[] | undefined;
|
|
2588
|
+
tag_names?: string[] | undefined;
|
|
2589
|
+
source_codes?: string[] | undefined;
|
|
2590
|
+
}, {
|
|
2591
|
+
status_in?: string[] | undefined;
|
|
2592
|
+
tag_names?: string[] | undefined;
|
|
2593
|
+
source_codes?: string[] | undefined;
|
|
2594
|
+
}>;
|
|
2595
|
+
}, "strip", z.ZodTypeAny, {
|
|
2596
|
+
patient: {
|
|
2597
|
+
status_in?: string[] | undefined;
|
|
2598
|
+
tag_names?: string[] | undefined;
|
|
2599
|
+
source_codes?: string[] | undefined;
|
|
2600
|
+
};
|
|
2601
|
+
target: "patient";
|
|
2602
|
+
}, {
|
|
2603
|
+
patient: {
|
|
2604
|
+
status_in?: string[] | undefined;
|
|
2605
|
+
tag_names?: string[] | undefined;
|
|
2606
|
+
source_codes?: string[] | undefined;
|
|
2607
|
+
};
|
|
2608
|
+
target: "patient";
|
|
2609
|
+
}>]>;
|
|
2419
2610
|
branch_mode: z.ZodEnum<["all", "exclusive"]>;
|
|
2420
2611
|
branches: z.ZodArray<z.ZodObject<{
|
|
2421
2612
|
id: z.ZodString;
|
|
@@ -3309,6 +3500,21 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
|
|
|
3309
3500
|
payment_status_in?: string[] | undefined;
|
|
3310
3501
|
};
|
|
3311
3502
|
target: "appointment";
|
|
3503
|
+
} | {
|
|
3504
|
+
target: "lead";
|
|
3505
|
+
lead: {
|
|
3506
|
+
status_in?: string[] | undefined;
|
|
3507
|
+
qualification_codes?: string[] | undefined;
|
|
3508
|
+
dist_channel_codes?: string[] | undefined;
|
|
3509
|
+
tag_names?: string[] | undefined;
|
|
3510
|
+
};
|
|
3511
|
+
} | {
|
|
3512
|
+
patient: {
|
|
3513
|
+
status_in?: string[] | undefined;
|
|
3514
|
+
tag_names?: string[] | undefined;
|
|
3515
|
+
source_codes?: string[] | undefined;
|
|
3516
|
+
};
|
|
3517
|
+
target: "patient";
|
|
3312
3518
|
};
|
|
3313
3519
|
branch_mode: "all" | "exclusive";
|
|
3314
3520
|
branches: {
|
|
@@ -3490,6 +3696,21 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
|
|
|
3490
3696
|
payment_status_in?: string[] | undefined;
|
|
3491
3697
|
};
|
|
3492
3698
|
target: "appointment";
|
|
3699
|
+
} | {
|
|
3700
|
+
target: "lead";
|
|
3701
|
+
lead: {
|
|
3702
|
+
status_in?: string[] | undefined;
|
|
3703
|
+
qualification_codes?: string[] | undefined;
|
|
3704
|
+
dist_channel_codes?: string[] | undefined;
|
|
3705
|
+
tag_names?: string[] | undefined;
|
|
3706
|
+
};
|
|
3707
|
+
} | {
|
|
3708
|
+
patient: {
|
|
3709
|
+
status_in?: string[] | undefined;
|
|
3710
|
+
tag_names?: string[] | undefined;
|
|
3711
|
+
source_codes?: string[] | undefined;
|
|
3712
|
+
};
|
|
3713
|
+
target: "patient";
|
|
3493
3714
|
};
|
|
3494
3715
|
branch_mode: "all" | "exclusive";
|
|
3495
3716
|
branches: {
|
|
@@ -3697,7 +3918,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
|
|
|
3697
3918
|
actor_kinds?: ("user" | "system" | "automation")[] | undefined;
|
|
3698
3919
|
};
|
|
3699
3920
|
}>]>;
|
|
3700
|
-
selection: z.ZodObject<{
|
|
3921
|
+
selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
3701
3922
|
target: z.ZodLiteral<"appointment">;
|
|
3702
3923
|
appointment: z.ZodObject<{
|
|
3703
3924
|
calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3782,7 +4003,70 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
|
|
|
3782
4003
|
payment_status_in?: string[] | undefined;
|
|
3783
4004
|
};
|
|
3784
4005
|
target: "appointment";
|
|
3785
|
-
}
|
|
4006
|
+
}>, z.ZodObject<{
|
|
4007
|
+
target: z.ZodLiteral<"lead">;
|
|
4008
|
+
lead: z.ZodObject<{
|
|
4009
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4010
|
+
qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4011
|
+
dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4012
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4013
|
+
}, "strip", z.ZodTypeAny, {
|
|
4014
|
+
status_in?: string[] | undefined;
|
|
4015
|
+
qualification_codes?: string[] | undefined;
|
|
4016
|
+
dist_channel_codes?: string[] | undefined;
|
|
4017
|
+
tag_names?: string[] | undefined;
|
|
4018
|
+
}, {
|
|
4019
|
+
status_in?: string[] | undefined;
|
|
4020
|
+
qualification_codes?: string[] | undefined;
|
|
4021
|
+
dist_channel_codes?: string[] | undefined;
|
|
4022
|
+
tag_names?: string[] | undefined;
|
|
4023
|
+
}>;
|
|
4024
|
+
}, "strip", z.ZodTypeAny, {
|
|
4025
|
+
target: "lead";
|
|
4026
|
+
lead: {
|
|
4027
|
+
status_in?: string[] | undefined;
|
|
4028
|
+
qualification_codes?: string[] | undefined;
|
|
4029
|
+
dist_channel_codes?: string[] | undefined;
|
|
4030
|
+
tag_names?: string[] | undefined;
|
|
4031
|
+
};
|
|
4032
|
+
}, {
|
|
4033
|
+
target: "lead";
|
|
4034
|
+
lead: {
|
|
4035
|
+
status_in?: string[] | undefined;
|
|
4036
|
+
qualification_codes?: string[] | undefined;
|
|
4037
|
+
dist_channel_codes?: string[] | undefined;
|
|
4038
|
+
tag_names?: string[] | undefined;
|
|
4039
|
+
};
|
|
4040
|
+
}>, z.ZodObject<{
|
|
4041
|
+
target: z.ZodLiteral<"patient">;
|
|
4042
|
+
patient: z.ZodObject<{
|
|
4043
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4044
|
+
source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4045
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4046
|
+
}, "strip", z.ZodTypeAny, {
|
|
4047
|
+
status_in?: string[] | undefined;
|
|
4048
|
+
tag_names?: string[] | undefined;
|
|
4049
|
+
source_codes?: string[] | undefined;
|
|
4050
|
+
}, {
|
|
4051
|
+
status_in?: string[] | undefined;
|
|
4052
|
+
tag_names?: string[] | undefined;
|
|
4053
|
+
source_codes?: string[] | undefined;
|
|
4054
|
+
}>;
|
|
4055
|
+
}, "strip", z.ZodTypeAny, {
|
|
4056
|
+
patient: {
|
|
4057
|
+
status_in?: string[] | undefined;
|
|
4058
|
+
tag_names?: string[] | undefined;
|
|
4059
|
+
source_codes?: string[] | undefined;
|
|
4060
|
+
};
|
|
4061
|
+
target: "patient";
|
|
4062
|
+
}, {
|
|
4063
|
+
patient: {
|
|
4064
|
+
status_in?: string[] | undefined;
|
|
4065
|
+
tag_names?: string[] | undefined;
|
|
4066
|
+
source_codes?: string[] | undefined;
|
|
4067
|
+
};
|
|
4068
|
+
target: "patient";
|
|
4069
|
+
}>]>;
|
|
3786
4070
|
branch_mode: z.ZodEnum<["all", "exclusive"]>;
|
|
3787
4071
|
branches: z.ZodArray<z.ZodObject<{
|
|
3788
4072
|
id: z.ZodString;
|
|
@@ -4638,6 +4922,21 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
|
|
|
4638
4922
|
payment_status_in?: string[] | undefined;
|
|
4639
4923
|
};
|
|
4640
4924
|
target: "appointment";
|
|
4925
|
+
} | {
|
|
4926
|
+
target: "lead";
|
|
4927
|
+
lead: {
|
|
4928
|
+
status_in?: string[] | undefined;
|
|
4929
|
+
qualification_codes?: string[] | undefined;
|
|
4930
|
+
dist_channel_codes?: string[] | undefined;
|
|
4931
|
+
tag_names?: string[] | undefined;
|
|
4932
|
+
};
|
|
4933
|
+
} | {
|
|
4934
|
+
patient: {
|
|
4935
|
+
status_in?: string[] | undefined;
|
|
4936
|
+
tag_names?: string[] | undefined;
|
|
4937
|
+
source_codes?: string[] | undefined;
|
|
4938
|
+
};
|
|
4939
|
+
target: "patient";
|
|
4641
4940
|
};
|
|
4642
4941
|
branch_mode: "all" | "exclusive";
|
|
4643
4942
|
branches: {
|
|
@@ -4804,6 +5103,21 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
|
|
|
4804
5103
|
payment_status_in?: string[] | undefined;
|
|
4805
5104
|
};
|
|
4806
5105
|
target: "appointment";
|
|
5106
|
+
} | {
|
|
5107
|
+
target: "lead";
|
|
5108
|
+
lead: {
|
|
5109
|
+
status_in?: string[] | undefined;
|
|
5110
|
+
qualification_codes?: string[] | undefined;
|
|
5111
|
+
dist_channel_codes?: string[] | undefined;
|
|
5112
|
+
tag_names?: string[] | undefined;
|
|
5113
|
+
};
|
|
5114
|
+
} | {
|
|
5115
|
+
patient: {
|
|
5116
|
+
status_in?: string[] | undefined;
|
|
5117
|
+
tag_names?: string[] | undefined;
|
|
5118
|
+
source_codes?: string[] | undefined;
|
|
5119
|
+
};
|
|
5120
|
+
target: "patient";
|
|
4807
5121
|
};
|
|
4808
5122
|
branch_mode: "all" | "exclusive";
|
|
4809
5123
|
branches: {
|
|
@@ -4998,7 +5312,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
4998
5312
|
actor_kinds?: ("user" | "system" | "automation")[] | undefined;
|
|
4999
5313
|
};
|
|
5000
5314
|
}>]>;
|
|
5001
|
-
selection: z.ZodObject<{
|
|
5315
|
+
selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
5002
5316
|
target: z.ZodLiteral<"appointment">;
|
|
5003
5317
|
appointment: z.ZodObject<{
|
|
5004
5318
|
calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5083,7 +5397,70 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
5083
5397
|
payment_status_in?: string[] | undefined;
|
|
5084
5398
|
};
|
|
5085
5399
|
target: "appointment";
|
|
5086
|
-
}
|
|
5400
|
+
}>, z.ZodObject<{
|
|
5401
|
+
target: z.ZodLiteral<"lead">;
|
|
5402
|
+
lead: z.ZodObject<{
|
|
5403
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5404
|
+
qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5405
|
+
dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5406
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5407
|
+
}, "strip", z.ZodTypeAny, {
|
|
5408
|
+
status_in?: string[] | undefined;
|
|
5409
|
+
qualification_codes?: string[] | undefined;
|
|
5410
|
+
dist_channel_codes?: string[] | undefined;
|
|
5411
|
+
tag_names?: string[] | undefined;
|
|
5412
|
+
}, {
|
|
5413
|
+
status_in?: string[] | undefined;
|
|
5414
|
+
qualification_codes?: string[] | undefined;
|
|
5415
|
+
dist_channel_codes?: string[] | undefined;
|
|
5416
|
+
tag_names?: string[] | undefined;
|
|
5417
|
+
}>;
|
|
5418
|
+
}, "strip", z.ZodTypeAny, {
|
|
5419
|
+
target: "lead";
|
|
5420
|
+
lead: {
|
|
5421
|
+
status_in?: string[] | undefined;
|
|
5422
|
+
qualification_codes?: string[] | undefined;
|
|
5423
|
+
dist_channel_codes?: string[] | undefined;
|
|
5424
|
+
tag_names?: string[] | undefined;
|
|
5425
|
+
};
|
|
5426
|
+
}, {
|
|
5427
|
+
target: "lead";
|
|
5428
|
+
lead: {
|
|
5429
|
+
status_in?: string[] | undefined;
|
|
5430
|
+
qualification_codes?: string[] | undefined;
|
|
5431
|
+
dist_channel_codes?: string[] | undefined;
|
|
5432
|
+
tag_names?: string[] | undefined;
|
|
5433
|
+
};
|
|
5434
|
+
}>, z.ZodObject<{
|
|
5435
|
+
target: z.ZodLiteral<"patient">;
|
|
5436
|
+
patient: z.ZodObject<{
|
|
5437
|
+
status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5438
|
+
source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5439
|
+
tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5440
|
+
}, "strip", z.ZodTypeAny, {
|
|
5441
|
+
status_in?: string[] | undefined;
|
|
5442
|
+
tag_names?: string[] | undefined;
|
|
5443
|
+
source_codes?: string[] | undefined;
|
|
5444
|
+
}, {
|
|
5445
|
+
status_in?: string[] | undefined;
|
|
5446
|
+
tag_names?: string[] | undefined;
|
|
5447
|
+
source_codes?: string[] | undefined;
|
|
5448
|
+
}>;
|
|
5449
|
+
}, "strip", z.ZodTypeAny, {
|
|
5450
|
+
patient: {
|
|
5451
|
+
status_in?: string[] | undefined;
|
|
5452
|
+
tag_names?: string[] | undefined;
|
|
5453
|
+
source_codes?: string[] | undefined;
|
|
5454
|
+
};
|
|
5455
|
+
target: "patient";
|
|
5456
|
+
}, {
|
|
5457
|
+
patient: {
|
|
5458
|
+
status_in?: string[] | undefined;
|
|
5459
|
+
tag_names?: string[] | undefined;
|
|
5460
|
+
source_codes?: string[] | undefined;
|
|
5461
|
+
};
|
|
5462
|
+
target: "patient";
|
|
5463
|
+
}>]>;
|
|
5087
5464
|
branch_mode: z.ZodEnum<["all", "exclusive"]>;
|
|
5088
5465
|
branches: z.ZodArray<z.ZodObject<{
|
|
5089
5466
|
id: z.ZodString;
|
|
@@ -5939,6 +6316,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
5939
6316
|
payment_status_in?: string[] | undefined;
|
|
5940
6317
|
};
|
|
5941
6318
|
target: "appointment";
|
|
6319
|
+
} | {
|
|
6320
|
+
target: "lead";
|
|
6321
|
+
lead: {
|
|
6322
|
+
status_in?: string[] | undefined;
|
|
6323
|
+
qualification_codes?: string[] | undefined;
|
|
6324
|
+
dist_channel_codes?: string[] | undefined;
|
|
6325
|
+
tag_names?: string[] | undefined;
|
|
6326
|
+
};
|
|
6327
|
+
} | {
|
|
6328
|
+
patient: {
|
|
6329
|
+
status_in?: string[] | undefined;
|
|
6330
|
+
tag_names?: string[] | undefined;
|
|
6331
|
+
source_codes?: string[] | undefined;
|
|
6332
|
+
};
|
|
6333
|
+
target: "patient";
|
|
5942
6334
|
};
|
|
5943
6335
|
branch_mode: "all" | "exclusive";
|
|
5944
6336
|
branches: {
|
|
@@ -6105,6 +6497,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
6105
6497
|
payment_status_in?: string[] | undefined;
|
|
6106
6498
|
};
|
|
6107
6499
|
target: "appointment";
|
|
6500
|
+
} | {
|
|
6501
|
+
target: "lead";
|
|
6502
|
+
lead: {
|
|
6503
|
+
status_in?: string[] | undefined;
|
|
6504
|
+
qualification_codes?: string[] | undefined;
|
|
6505
|
+
dist_channel_codes?: string[] | undefined;
|
|
6506
|
+
tag_names?: string[] | undefined;
|
|
6507
|
+
};
|
|
6508
|
+
} | {
|
|
6509
|
+
patient: {
|
|
6510
|
+
status_in?: string[] | undefined;
|
|
6511
|
+
tag_names?: string[] | undefined;
|
|
6512
|
+
source_codes?: string[] | undefined;
|
|
6513
|
+
};
|
|
6514
|
+
target: "patient";
|
|
6108
6515
|
};
|
|
6109
6516
|
branch_mode: "all" | "exclusive";
|
|
6110
6517
|
branches: {
|
|
@@ -6276,6 +6683,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
6276
6683
|
payment_status_in?: string[] | undefined;
|
|
6277
6684
|
};
|
|
6278
6685
|
target: "appointment";
|
|
6686
|
+
} | {
|
|
6687
|
+
target: "lead";
|
|
6688
|
+
lead: {
|
|
6689
|
+
status_in?: string[] | undefined;
|
|
6690
|
+
qualification_codes?: string[] | undefined;
|
|
6691
|
+
dist_channel_codes?: string[] | undefined;
|
|
6692
|
+
tag_names?: string[] | undefined;
|
|
6693
|
+
};
|
|
6694
|
+
} | {
|
|
6695
|
+
patient: {
|
|
6696
|
+
status_in?: string[] | undefined;
|
|
6697
|
+
tag_names?: string[] | undefined;
|
|
6698
|
+
source_codes?: string[] | undefined;
|
|
6699
|
+
};
|
|
6700
|
+
target: "patient";
|
|
6279
6701
|
};
|
|
6280
6702
|
branch_mode: "all" | "exclusive";
|
|
6281
6703
|
branches: {
|
|
@@ -6445,6 +6867,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
|
|
|
6445
6867
|
payment_status_in?: string[] | undefined;
|
|
6446
6868
|
};
|
|
6447
6869
|
target: "appointment";
|
|
6870
|
+
} | {
|
|
6871
|
+
target: "lead";
|
|
6872
|
+
lead: {
|
|
6873
|
+
status_in?: string[] | undefined;
|
|
6874
|
+
qualification_codes?: string[] | undefined;
|
|
6875
|
+
dist_channel_codes?: string[] | undefined;
|
|
6876
|
+
tag_names?: string[] | undefined;
|
|
6877
|
+
};
|
|
6878
|
+
} | {
|
|
6879
|
+
patient: {
|
|
6880
|
+
status_in?: string[] | undefined;
|
|
6881
|
+
tag_names?: string[] | undefined;
|
|
6882
|
+
source_codes?: string[] | undefined;
|
|
6883
|
+
};
|
|
6884
|
+
target: "patient";
|
|
6448
6885
|
};
|
|
6449
6886
|
branch_mode: "all" | "exclusive";
|
|
6450
6887
|
branches: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zAutomationTriggerRequestSchema = exports.zAutomationDryRunRequestSchema = exports.zHubAutomationConfigSchema = exports.zAutomationRoutineUpdateRequestSchema = exports.zAutomationRoutineWriteSchema = exports.zAutomationRoutineSchema = exports.zAutomationBranchModeSchema = exports.zAutomationBranchSchema = exports.zAutomationOutputSchema = exports.zAutomationActionOutputSchema = exports.zAutomationHumanTaskOutputSchema = exports.zAutomationAutoTaskOutputSchema = exports.zAutomationExecuteAtSchema = exports.zAutomationConditionGroupSchema = exports.zAutomationConditionSchema = exports.zAutomationOperatorSchema = exports.zAutomationSelectionSchema = exports.zAutomationAppointmentSelectionSchema = exports.zAutomationDateWindowSchema = exports.zAutomationDateOffsetModeSchema = exports.zAutomationTriggerSchema = exports.zAutomationEventTriggerSchema = exports.zAutomationWebhookTriggerSchema = exports.zAutomationCronTriggerSchema = void 0;
|
|
3
|
+
exports.zAutomationTriggerRequestSchema = exports.zAutomationDryRunRequestSchema = exports.zHubAutomationConfigSchema = exports.zAutomationRoutineUpdateRequestSchema = exports.zAutomationRoutineWriteSchema = exports.zAutomationRoutineSchema = exports.zAutomationBranchModeSchema = exports.zAutomationBranchSchema = exports.zAutomationOutputSchema = exports.zAutomationActionOutputSchema = exports.zAutomationHumanTaskOutputSchema = exports.zAutomationAutoTaskOutputSchema = exports.zAutomationExecuteAtSchema = exports.zAutomationConditionGroupSchema = exports.zAutomationConditionSchema = exports.zAutomationOperatorSchema = exports.zAutomationSelectionSchema = exports.zAutomationPatientSelectionSchema = exports.zAutomationLeadSelectionSchema = exports.zAutomationAppointmentSelectionSchema = exports.zAutomationDateWindowSchema = exports.zAutomationDateOffsetModeSchema = exports.zAutomationTriggerSchema = exports.zAutomationEventTriggerSchema = exports.zAutomationWebhookTriggerSchema = exports.zAutomationCronTriggerSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../evo-task/zod-schemas");
|
|
6
6
|
// ------------------------------------------------------
|
|
@@ -58,7 +58,32 @@ exports.zAutomationAppointmentSelectionSchema = zod_1.z.object({
|
|
|
58
58
|
payment_status_in: zod_1.z.array(zod_1.z.string()).optional(),
|
|
59
59
|
}),
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
// feat-085 (F3): lead/patient selections (domain-event targets). The `target`
|
|
62
|
+
// discriminant selects the branch. Filters are reserved (see the TS contract);
|
|
63
|
+
// the event consumer pre-loads the single target, so they are not enforced at
|
|
64
|
+
// runtime today but are validated to allow authoring lead/patient routines.
|
|
65
|
+
exports.zAutomationLeadSelectionSchema = zod_1.z.object({
|
|
66
|
+
target: zod_1.z.literal("lead"),
|
|
67
|
+
lead: zod_1.z.object({
|
|
68
|
+
status_in: zod_1.z.array(zod_1.z.string()).optional(),
|
|
69
|
+
qualification_codes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
70
|
+
dist_channel_codes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
71
|
+
tag_names: zod_1.z.array(zod_1.z.string()).optional(),
|
|
72
|
+
}),
|
|
73
|
+
});
|
|
74
|
+
exports.zAutomationPatientSelectionSchema = zod_1.z.object({
|
|
75
|
+
target: zod_1.z.literal("patient"),
|
|
76
|
+
patient: zod_1.z.object({
|
|
77
|
+
status_in: zod_1.z.array(zod_1.z.string()).optional(),
|
|
78
|
+
source_codes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
79
|
+
tag_names: zod_1.z.array(zod_1.z.string()).optional(),
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
82
|
+
exports.zAutomationSelectionSchema = zod_1.z.discriminatedUnion("target", [
|
|
83
|
+
exports.zAutomationAppointmentSelectionSchema,
|
|
84
|
+
exports.zAutomationLeadSelectionSchema,
|
|
85
|
+
exports.zAutomationPatientSelectionSchema,
|
|
86
|
+
]);
|
|
62
87
|
// ------------------------------------------------------
|
|
63
88
|
// Conditions (recursive AND/OR groups via z.lazy)
|
|
64
89
|
// ------------------------------------------------------
|
|
@@ -67,7 +67,34 @@ export const zAutomationAppointmentSelectionSchema = z.object({
|
|
|
67
67
|
}),
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
// feat-085 (F3): lead/patient selections (domain-event targets). The `target`
|
|
71
|
+
// discriminant selects the branch. Filters are reserved (see the TS contract);
|
|
72
|
+
// the event consumer pre-loads the single target, so they are not enforced at
|
|
73
|
+
// runtime today but are validated to allow authoring lead/patient routines.
|
|
74
|
+
export const zAutomationLeadSelectionSchema = z.object({
|
|
75
|
+
target: z.literal("lead"),
|
|
76
|
+
lead: z.object({
|
|
77
|
+
status_in: z.array(z.string()).optional(),
|
|
78
|
+
qualification_codes: z.array(z.string()).optional(),
|
|
79
|
+
dist_channel_codes: z.array(z.string()).optional(),
|
|
80
|
+
tag_names: z.array(z.string()).optional(),
|
|
81
|
+
}),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export const zAutomationPatientSelectionSchema = z.object({
|
|
85
|
+
target: z.literal("patient"),
|
|
86
|
+
patient: z.object({
|
|
87
|
+
status_in: z.array(z.string()).optional(),
|
|
88
|
+
source_codes: z.array(z.string()).optional(),
|
|
89
|
+
tag_names: z.array(z.string()).optional(),
|
|
90
|
+
}),
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export const zAutomationSelectionSchema = z.discriminatedUnion("target", [
|
|
94
|
+
zAutomationAppointmentSelectionSchema,
|
|
95
|
+
zAutomationLeadSelectionSchema,
|
|
96
|
+
zAutomationPatientSelectionSchema,
|
|
97
|
+
]);
|
|
71
98
|
|
|
72
99
|
// ------------------------------------------------------
|
|
73
100
|
// Conditions (recursive AND/OR groups via z.lazy)
|
|
@@ -45,8 +45,15 @@ export interface ICampaignCta {
|
|
|
45
45
|
label: string;
|
|
46
46
|
/** WhatsApp template button position (0,1,2...). */
|
|
47
47
|
button_index?: number;
|
|
48
|
-
/** Final destination for the /qr redirect.
|
|
48
|
+
/** Final destination for the /qr redirect. Optional on WhatsApp QUICK_REPLY
|
|
49
|
+
* buttons (the tap itself is tracked); required for email CTAs and URL buttons. */
|
|
49
50
|
target_url?: string;
|
|
51
|
+
/** Email CTA destination kind (feat-081 F2.5): external URL or a wa.me deep link. */
|
|
52
|
+
dest_type?: "external_url" | "whatsapp" | null;
|
|
53
|
+
/** WA channel whose number builds the wa.me link (dest_type='whatsapp'). */
|
|
54
|
+
wa_channel_id?: string | null;
|
|
55
|
+
/** Prefilled message for the wa.me link (dest_type='whatsapp'). */
|
|
56
|
+
wa_message?: string | null;
|
|
50
57
|
}
|
|
51
58
|
export interface ICampaignPacingWindow {
|
|
52
59
|
/** 'HH:mm' local (tenant timezone). */
|
|
@@ -71,8 +78,12 @@ export interface ICampaignTicketPolicy {
|
|
|
71
78
|
export interface ICampaignMedia {
|
|
72
79
|
/** 'image' | 'video' | 'document' — WhatsApp header media type. */
|
|
73
80
|
type: string;
|
|
81
|
+
/** Full gs:// URI in WABA_MEDIA_BUCKET under tenants/<tenant>/ (feat-082/084 flow). */
|
|
74
82
|
gcs_path?: string;
|
|
75
83
|
url?: string;
|
|
84
|
+
/** Mime type of the uploaded media (drives the header component). */
|
|
85
|
+
mime_type?: string | null;
|
|
86
|
+
filename?: string | null;
|
|
76
87
|
}
|
|
77
88
|
/** Per-channel configuration (whatsapp/email) of a campaign. */
|
|
78
89
|
export interface ICampaignChannelConfig {
|
|
@@ -251,7 +262,10 @@ export interface ICampaignBucket extends IFireDoc {
|
|
|
251
262
|
counts?: ICampaignBucketCounts;
|
|
252
263
|
}
|
|
253
264
|
/** Flat field driving the batch queue (indexed). */
|
|
254
|
-
export type RecipientDispatchState = "pending" | "dispatched" | "done" | "excluded"
|
|
265
|
+
export type RecipientDispatchState = "pending" | "dispatched" | "done" | "excluded"
|
|
266
|
+
/** Campaign canceled with this recipient still pending (feat-081 F3 — formalizes
|
|
267
|
+
* what F2 stored as 'excluded'; readers must accept both on old docs). */
|
|
268
|
+
| "canceled";
|
|
255
269
|
/** Per-channel delivery status of a recipient (monotonic). */
|
|
256
270
|
export type RecipientChannelStatus = "pending" | "scheduled" | "sent" | "delivered" | "read" | "failed" | "clicked" | "replied";
|
|
257
271
|
/** Aggregated, monotonic recipient status (Portuguese labels — FE display). */
|