evo360-types 1.3.180 → 1.3.182
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.
|
@@ -13,17 +13,20 @@ export declare const zTaskExecutionStatusSchema: z.ZodEnum<["success", "error",
|
|
|
13
13
|
export declare const zTaskExternalLinkSchema: z.ZodObject<{
|
|
14
14
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
15
15
|
id: z.ZodString;
|
|
16
|
+
id_aux: z.ZodOptional<z.ZodString>;
|
|
16
17
|
label: z.ZodOptional<z.ZodString>;
|
|
17
18
|
ref: z.ZodOptional<z.ZodAny>;
|
|
18
19
|
}, "strip", z.ZodTypeAny, {
|
|
19
20
|
id: string;
|
|
20
21
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
21
22
|
ref?: any;
|
|
23
|
+
id_aux?: string | undefined;
|
|
22
24
|
label?: string | undefined;
|
|
23
25
|
}, {
|
|
24
26
|
id: string;
|
|
25
27
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
26
28
|
ref?: any;
|
|
29
|
+
id_aux?: string | undefined;
|
|
27
30
|
label?: string | undefined;
|
|
28
31
|
}>;
|
|
29
32
|
export declare const zTaskScheduleSchema: z.ZodObject<{
|
|
@@ -338,17 +341,20 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
338
341
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
342
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
340
343
|
id: z.ZodString;
|
|
344
|
+
id_aux: z.ZodOptional<z.ZodString>;
|
|
341
345
|
label: z.ZodOptional<z.ZodString>;
|
|
342
346
|
ref: z.ZodOptional<z.ZodAny>;
|
|
343
347
|
}, "strip", z.ZodTypeAny, {
|
|
344
348
|
id: string;
|
|
345
349
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
346
350
|
ref?: any;
|
|
351
|
+
id_aux?: string | undefined;
|
|
347
352
|
label?: string | undefined;
|
|
348
353
|
}, {
|
|
349
354
|
id: string;
|
|
350
355
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
351
356
|
ref?: any;
|
|
357
|
+
id_aux?: string | undefined;
|
|
352
358
|
label?: string | undefined;
|
|
353
359
|
}>, "many">>;
|
|
354
360
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
@@ -643,17 +649,20 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
643
649
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
644
650
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
645
651
|
id: z.ZodString;
|
|
652
|
+
id_aux: z.ZodOptional<z.ZodString>;
|
|
646
653
|
label: z.ZodOptional<z.ZodString>;
|
|
647
654
|
ref: z.ZodOptional<z.ZodAny>;
|
|
648
655
|
}, "strip", z.ZodTypeAny, {
|
|
649
656
|
id: string;
|
|
650
657
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
651
658
|
ref?: any;
|
|
659
|
+
id_aux?: string | undefined;
|
|
652
660
|
label?: string | undefined;
|
|
653
661
|
}, {
|
|
654
662
|
id: string;
|
|
655
663
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
656
664
|
ref?: any;
|
|
665
|
+
id_aux?: string | undefined;
|
|
657
666
|
label?: string | undefined;
|
|
658
667
|
}>, "many">>;
|
|
659
668
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
@@ -948,17 +957,20 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
948
957
|
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
949
958
|
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
950
959
|
id: z.ZodString;
|
|
960
|
+
id_aux: z.ZodOptional<z.ZodString>;
|
|
951
961
|
label: z.ZodOptional<z.ZodString>;
|
|
952
962
|
ref: z.ZodOptional<z.ZodAny>;
|
|
953
963
|
}, "strip", z.ZodTypeAny, {
|
|
954
964
|
id: string;
|
|
955
965
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
956
966
|
ref?: any;
|
|
967
|
+
id_aux?: string | undefined;
|
|
957
968
|
label?: string | undefined;
|
|
958
969
|
}, {
|
|
959
970
|
id: string;
|
|
960
971
|
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
961
972
|
ref?: any;
|
|
973
|
+
id_aux?: string | undefined;
|
|
962
974
|
label?: string | undefined;
|
|
963
975
|
}>, "many">>;
|
|
964
976
|
idempotency_key: z.ZodOptional<z.ZodString>;
|
|
@@ -46,6 +46,7 @@ exports.zTaskExecutionStatusSchema = zod_1.z.enum(["success", "error", "retry"])
|
|
|
46
46
|
exports.zTaskExternalLinkSchema = zod_1.z.object({
|
|
47
47
|
type: exports.zTaskExternalObjectTypeSchema,
|
|
48
48
|
id: zod_1.z.string(),
|
|
49
|
+
id_aux: zod_1.z.string().optional(),
|
|
49
50
|
label: zod_1.z.string().optional(),
|
|
50
51
|
ref: zod_1.z.any().optional(), // FirestoreDocumentReference
|
|
51
52
|
});
|
|
@@ -55,6 +55,7 @@ export const zTaskExecutionStatusSchema = z.enum(["success", "error", "retry"]);
|
|
|
55
55
|
export const zTaskExternalLinkSchema = z.object({
|
|
56
56
|
type: zTaskExternalObjectTypeSchema,
|
|
57
57
|
id: z.string(),
|
|
58
|
+
id_aux: z.string().optional(),
|
|
58
59
|
label: z.string().optional(),
|
|
59
60
|
ref: z.any().optional(), // FirestoreDocumentReference
|
|
60
61
|
});
|
|
@@ -106,6 +106,7 @@ export type TaskExternalObjectType = (typeof TaskExternalObjectTypeEnum)[keyof t
|
|
|
106
106
|
export interface ITaskExternalLink {
|
|
107
107
|
type: TaskExternalObjectType;
|
|
108
108
|
id: string;
|
|
109
|
+
id_aux?: string;
|
|
109
110
|
label?: string;
|
|
110
111
|
ref?: FirestoreDocumentReference;
|
|
111
112
|
[key: string]: unknown;
|
|
@@ -163,6 +163,7 @@ export type TaskExternalObjectType =
|
|
|
163
163
|
export interface ITaskExternalLink {
|
|
164
164
|
type: TaskExternalObjectType;
|
|
165
165
|
id: string;
|
|
166
|
+
id_aux?: string; // auxiliary id for the link (e.g. patientId)
|
|
166
167
|
label?: string;
|
|
167
168
|
ref?: FirestoreDocumentReference;
|
|
168
169
|
[key: string]: unknown;
|