evo360-types 1.3.127 → 1.3.128
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-crm/lead/zod-schemas.d.ts +9 -0
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +9 -0
- package/dist/apps/evo-med/people/zod-schemas.d.ts +18 -0
- package/dist/apps/evo-task/zod-schemas.d.ts +41 -0
- package/dist/apps/evo-task/zod-schemas.js +15 -1
- package/dist/apps/evo-task/zod-schemas.ts +16 -0
- package/dist/apps/shared/zod-schemas.d.ts +3 -0
- package/dist/apps/shared/zod-schemas.js +1 -0
- package/dist/apps/shared/zod-schemas.ts +1 -0
- package/dist/types/evo-task/index.d.ts +14 -0
- package/dist/types/evo-task/index.js +9 -1
- package/dist/types/evo-task/index.ts +25 -0
- package/dist/types/shared/index.d.ts +1 -0
- package/dist/types/shared/index.ts +1 -0
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
83
83
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
84
84
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
85
85
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
86
87
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
87
88
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
88
89
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -94,6 +95,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
94
95
|
country: string;
|
|
95
96
|
line1: string;
|
|
96
97
|
line2: string;
|
|
98
|
+
neighborhood: string;
|
|
97
99
|
city: string;
|
|
98
100
|
state: string;
|
|
99
101
|
zip: string;
|
|
@@ -104,6 +106,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
104
106
|
country?: string | undefined;
|
|
105
107
|
line1?: string | undefined;
|
|
106
108
|
line2?: string | undefined;
|
|
109
|
+
neighborhood?: string | undefined;
|
|
107
110
|
city?: string | undefined;
|
|
108
111
|
state?: string | undefined;
|
|
109
112
|
zip?: string | undefined;
|
|
@@ -197,6 +200,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
197
200
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
198
201
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
199
202
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
203
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
200
204
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
201
205
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
202
206
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -208,6 +212,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
208
212
|
country: string;
|
|
209
213
|
line1: string;
|
|
210
214
|
line2: string;
|
|
215
|
+
neighborhood: string;
|
|
211
216
|
city: string;
|
|
212
217
|
state: string;
|
|
213
218
|
zip: string;
|
|
@@ -218,6 +223,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
218
223
|
country?: string | undefined;
|
|
219
224
|
line1?: string | undefined;
|
|
220
225
|
line2?: string | undefined;
|
|
226
|
+
neighborhood?: string | undefined;
|
|
221
227
|
city?: string | undefined;
|
|
222
228
|
state?: string | undefined;
|
|
223
229
|
zip?: string | undefined;
|
|
@@ -311,6 +317,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
311
317
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
312
318
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
313
319
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
320
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
314
321
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
315
322
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
316
323
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -322,6 +329,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
322
329
|
country: string;
|
|
323
330
|
line1: string;
|
|
324
331
|
line2: string;
|
|
332
|
+
neighborhood: string;
|
|
325
333
|
city: string;
|
|
326
334
|
state: string;
|
|
327
335
|
zip: string;
|
|
@@ -332,6 +340,7 @@ export declare const zLeadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectU
|
|
|
332
340
|
country?: string | undefined;
|
|
333
341
|
line1?: string | undefined;
|
|
334
342
|
line2?: string | undefined;
|
|
343
|
+
neighborhood?: string | undefined;
|
|
335
344
|
city?: string | undefined;
|
|
336
345
|
state?: string | undefined;
|
|
337
346
|
zip?: string | undefined;
|
|
@@ -130,6 +130,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
130
130
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
131
131
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
132
132
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
133
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
133
134
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
134
135
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
135
136
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -141,6 +142,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
141
142
|
country: string;
|
|
142
143
|
line1: string;
|
|
143
144
|
line2: string;
|
|
145
|
+
neighborhood: string;
|
|
144
146
|
city: string;
|
|
145
147
|
state: string;
|
|
146
148
|
zip: string;
|
|
@@ -151,6 +153,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
151
153
|
country?: string | undefined;
|
|
152
154
|
line1?: string | undefined;
|
|
153
155
|
line2?: string | undefined;
|
|
156
|
+
neighborhood?: string | undefined;
|
|
154
157
|
city?: string | undefined;
|
|
155
158
|
state?: string | undefined;
|
|
156
159
|
zip?: string | undefined;
|
|
@@ -254,6 +257,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
254
257
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
255
258
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
256
259
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
260
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
257
261
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
258
262
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
259
263
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -265,6 +269,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
265
269
|
country: string;
|
|
266
270
|
line1: string;
|
|
267
271
|
line2: string;
|
|
272
|
+
neighborhood: string;
|
|
268
273
|
city: string;
|
|
269
274
|
state: string;
|
|
270
275
|
zip: string;
|
|
@@ -275,6 +280,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
275
280
|
country?: string | undefined;
|
|
276
281
|
line1?: string | undefined;
|
|
277
282
|
line2?: string | undefined;
|
|
283
|
+
neighborhood?: string | undefined;
|
|
278
284
|
city?: string | undefined;
|
|
279
285
|
state?: string | undefined;
|
|
280
286
|
zip?: string | undefined;
|
|
@@ -378,6 +384,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
378
384
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
379
385
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
380
386
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
387
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
381
388
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
382
389
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
383
390
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -389,6 +396,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
389
396
|
country: string;
|
|
390
397
|
line1: string;
|
|
391
398
|
line2: string;
|
|
399
|
+
neighborhood: string;
|
|
392
400
|
city: string;
|
|
393
401
|
state: string;
|
|
394
402
|
zip: string;
|
|
@@ -399,6 +407,7 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
399
407
|
country?: string | undefined;
|
|
400
408
|
line1?: string | undefined;
|
|
401
409
|
line2?: string | undefined;
|
|
410
|
+
neighborhood?: string | undefined;
|
|
402
411
|
city?: string | undefined;
|
|
403
412
|
state?: string | undefined;
|
|
404
413
|
zip?: string | undefined;
|
|
@@ -125,6 +125,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
125
125
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
126
126
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
127
127
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
128
129
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
129
130
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
130
131
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -136,6 +137,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
136
137
|
country: string;
|
|
137
138
|
line1: string;
|
|
138
139
|
line2: string;
|
|
140
|
+
neighborhood: string;
|
|
139
141
|
city: string;
|
|
140
142
|
state: string;
|
|
141
143
|
zip: string;
|
|
@@ -146,6 +148,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
146
148
|
country?: string | undefined;
|
|
147
149
|
line1?: string | undefined;
|
|
148
150
|
line2?: string | undefined;
|
|
151
|
+
neighborhood?: string | undefined;
|
|
149
152
|
city?: string | undefined;
|
|
150
153
|
state?: string | undefined;
|
|
151
154
|
zip?: string | undefined;
|
|
@@ -264,6 +267,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
264
267
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
265
268
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
266
269
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
270
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
267
271
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
268
272
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
269
273
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -275,6 +279,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
275
279
|
country: string;
|
|
276
280
|
line1: string;
|
|
277
281
|
line2: string;
|
|
282
|
+
neighborhood: string;
|
|
278
283
|
city: string;
|
|
279
284
|
state: string;
|
|
280
285
|
zip: string;
|
|
@@ -285,6 +290,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
285
290
|
country?: string | undefined;
|
|
286
291
|
line1?: string | undefined;
|
|
287
292
|
line2?: string | undefined;
|
|
293
|
+
neighborhood?: string | undefined;
|
|
288
294
|
city?: string | undefined;
|
|
289
295
|
state?: string | undefined;
|
|
290
296
|
zip?: string | undefined;
|
|
@@ -403,6 +409,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
403
409
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
404
410
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
405
411
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
412
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
406
413
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
407
414
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
408
415
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -414,6 +421,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
414
421
|
country: string;
|
|
415
422
|
line1: string;
|
|
416
423
|
line2: string;
|
|
424
|
+
neighborhood: string;
|
|
417
425
|
city: string;
|
|
418
426
|
state: string;
|
|
419
427
|
zip: string;
|
|
@@ -424,6 +432,7 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
424
432
|
country?: string | undefined;
|
|
425
433
|
line1?: string | undefined;
|
|
426
434
|
line2?: string | undefined;
|
|
435
|
+
neighborhood?: string | undefined;
|
|
427
436
|
city?: string | undefined;
|
|
428
437
|
state?: string | undefined;
|
|
429
438
|
zip?: string | undefined;
|
|
@@ -560,6 +569,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
560
569
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
561
570
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
562
571
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
572
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
563
573
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
564
574
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
565
575
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -571,6 +581,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
571
581
|
country: string;
|
|
572
582
|
line1: string;
|
|
573
583
|
line2: string;
|
|
584
|
+
neighborhood: string;
|
|
574
585
|
city: string;
|
|
575
586
|
state: string;
|
|
576
587
|
zip: string;
|
|
@@ -581,6 +592,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
581
592
|
country?: string | undefined;
|
|
582
593
|
line1?: string | undefined;
|
|
583
594
|
line2?: string | undefined;
|
|
595
|
+
neighborhood?: string | undefined;
|
|
584
596
|
city?: string | undefined;
|
|
585
597
|
state?: string | undefined;
|
|
586
598
|
zip?: string | undefined;
|
|
@@ -719,6 +731,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
719
731
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
720
732
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
721
733
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
734
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
722
735
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
723
736
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
724
737
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -730,6 +743,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
730
743
|
country: string;
|
|
731
744
|
line1: string;
|
|
732
745
|
line2: string;
|
|
746
|
+
neighborhood: string;
|
|
733
747
|
city: string;
|
|
734
748
|
state: string;
|
|
735
749
|
zip: string;
|
|
@@ -740,6 +754,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
740
754
|
country?: string | undefined;
|
|
741
755
|
line1?: string | undefined;
|
|
742
756
|
line2?: string | undefined;
|
|
757
|
+
neighborhood?: string | undefined;
|
|
743
758
|
city?: string | undefined;
|
|
744
759
|
state?: string | undefined;
|
|
745
760
|
zip?: string | undefined;
|
|
@@ -878,6 +893,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
878
893
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
879
894
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
880
895
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
896
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
881
897
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
882
898
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
883
899
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -889,6 +905,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
889
905
|
country: string;
|
|
890
906
|
line1: string;
|
|
891
907
|
line2: string;
|
|
908
|
+
neighborhood: string;
|
|
892
909
|
city: string;
|
|
893
910
|
state: string;
|
|
894
911
|
zip: string;
|
|
@@ -899,6 +916,7 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
899
916
|
country?: string | undefined;
|
|
900
917
|
line1?: string | undefined;
|
|
901
918
|
line2?: string | undefined;
|
|
919
|
+
neighborhood?: string | undefined;
|
|
902
920
|
city?: string | undefined;
|
|
903
921
|
state?: string | undefined;
|
|
904
922
|
zip?: string | undefined;
|
|
@@ -2,7 +2,18 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const zTaskActionSchema: z.ZodEnum<["CREATE_TASK", "DELETE_TASK", "UPDATE_TASK"]>;
|
|
3
3
|
export declare const zTaskStatusSchema: z.ZodEnum<["not_started", "in_progress", "completed", "cancelled", "on_hold"]>;
|
|
4
4
|
export declare const zTaskPrioritySchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
5
|
+
export declare const zTaskExternalObjectTypeSchema: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
5
6
|
export declare const zIATaskTypeSchema: z.ZodEnum<["data_analysis", "content_generation", "classification", "extraction", "summarization", "translation", "sentiment_analysis", "question_answering", "send_reminder", "request_contact_info", "request_operator_info", "confirm_appointment", "send_documents", "create_appointment", "reschedule_appointment", "cancel_appointment", "financial_charge", "custom"]>;
|
|
7
|
+
export declare const zTaskExternalLinkSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
13
|
+
}, {
|
|
14
|
+
id: string;
|
|
15
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
16
|
+
}>;
|
|
6
17
|
export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
7
18
|
id: z.ZodString;
|
|
8
19
|
ref: z.ZodAny;
|
|
@@ -55,6 +66,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
55
66
|
ia_prompt: z.ZodOptional<z.ZodString>;
|
|
56
67
|
ia_model: z.ZodOptional<z.ZodString>;
|
|
57
68
|
ia_progress: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
id: string;
|
|
74
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
75
|
+
}, {
|
|
76
|
+
id: string;
|
|
77
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
78
|
+
}>, "many">>;
|
|
58
79
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
59
80
|
id: z.ZodString;
|
|
60
81
|
ref: z.ZodAny;
|
|
@@ -107,6 +128,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
107
128
|
ia_prompt: z.ZodOptional<z.ZodString>;
|
|
108
129
|
ia_model: z.ZodOptional<z.ZodString>;
|
|
109
130
|
ia_progress: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
id: string;
|
|
136
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
137
|
+
}, {
|
|
138
|
+
id: string;
|
|
139
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
140
|
+
}>, "many">>;
|
|
110
141
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
111
142
|
id: z.ZodString;
|
|
112
143
|
ref: z.ZodAny;
|
|
@@ -159,6 +190,16 @@ export declare const zTaskSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
159
190
|
ia_prompt: z.ZodOptional<z.ZodString>;
|
|
160
191
|
ia_model: z.ZodOptional<z.ZodString>;
|
|
161
192
|
ia_progress: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
externalLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
|
+
type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact"]>;
|
|
195
|
+
id: z.ZodString;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
id: string;
|
|
198
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
199
|
+
}, {
|
|
200
|
+
id: string;
|
|
201
|
+
type: "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
202
|
+
}>, "many">>;
|
|
162
203
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
163
204
|
export declare const zTaskCommentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
164
205
|
id: z.ZodString;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zTaskCommentSchema = exports.zTaskSchema = exports.zIATaskTypeSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
|
|
3
|
+
exports.zTaskCommentSchema = exports.zTaskSchema = exports.zTaskExternalLinkSchema = exports.zIATaskTypeSchema = exports.zTaskExternalObjectTypeSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../shared/zod-schemas");
|
|
6
6
|
exports.zTaskActionSchema = zod_1.z.enum([
|
|
@@ -16,6 +16,13 @@ exports.zTaskStatusSchema = zod_1.z.enum([
|
|
|
16
16
|
"on_hold",
|
|
17
17
|
]);
|
|
18
18
|
exports.zTaskPrioritySchema = zod_1.z.enum(["low", "medium", "high"]);
|
|
19
|
+
exports.zTaskExternalObjectTypeSchema = zod_1.z.enum([
|
|
20
|
+
"crm_lead",
|
|
21
|
+
"med_patient",
|
|
22
|
+
"med_professional",
|
|
23
|
+
"med_appointment",
|
|
24
|
+
"chat_contact",
|
|
25
|
+
]);
|
|
19
26
|
exports.zIATaskTypeSchema = zod_1.z.enum([
|
|
20
27
|
"data_analysis",
|
|
21
28
|
"content_generation",
|
|
@@ -36,6 +43,11 @@ exports.zIATaskTypeSchema = zod_1.z.enum([
|
|
|
36
43
|
"financial_charge",
|
|
37
44
|
"custom",
|
|
38
45
|
]);
|
|
46
|
+
// Schema para a interface ITaskExternalLink
|
|
47
|
+
exports.zTaskExternalLinkSchema = zod_1.z.object({
|
|
48
|
+
type: exports.zTaskExternalObjectTypeSchema,
|
|
49
|
+
id: zod_1.z.string(),
|
|
50
|
+
});
|
|
39
51
|
// Schema para a interface ITask
|
|
40
52
|
exports.zTaskSchema = zod_schemas_1.zFireDocSchema
|
|
41
53
|
.extend({
|
|
@@ -65,6 +77,8 @@ exports.zTaskSchema = zod_schemas_1.zFireDocSchema
|
|
|
65
77
|
ia_prompt: zod_1.z.string().optional(),
|
|
66
78
|
ia_model: zod_1.z.string().optional(),
|
|
67
79
|
ia_progress: zod_1.z.number().min(0).max(100).optional(),
|
|
80
|
+
// External object links
|
|
81
|
+
externalLinks: zod_1.z.array(exports.zTaskExternalLinkSchema).optional(),
|
|
68
82
|
})
|
|
69
83
|
.passthrough();
|
|
70
84
|
// Schema para a interface ITaskComment
|
|
@@ -17,6 +17,14 @@ export const zTaskStatusSchema = z.enum([
|
|
|
17
17
|
|
|
18
18
|
export const zTaskPrioritySchema = z.enum(["low", "medium", "high"]);
|
|
19
19
|
|
|
20
|
+
export const zTaskExternalObjectTypeSchema = z.enum([
|
|
21
|
+
"crm_lead",
|
|
22
|
+
"med_patient",
|
|
23
|
+
"med_professional",
|
|
24
|
+
"med_appointment",
|
|
25
|
+
"chat_contact",
|
|
26
|
+
]);
|
|
27
|
+
|
|
20
28
|
export const zIATaskTypeSchema = z.enum([
|
|
21
29
|
"data_analysis",
|
|
22
30
|
"content_generation",
|
|
@@ -38,6 +46,12 @@ export const zIATaskTypeSchema = z.enum([
|
|
|
38
46
|
"custom",
|
|
39
47
|
]);
|
|
40
48
|
|
|
49
|
+
// Schema para a interface ITaskExternalLink
|
|
50
|
+
export const zTaskExternalLinkSchema = z.object({
|
|
51
|
+
type: zTaskExternalObjectTypeSchema,
|
|
52
|
+
id: z.string(),
|
|
53
|
+
});
|
|
54
|
+
|
|
41
55
|
// Schema para a interface ITask
|
|
42
56
|
export const zTaskSchema = zFireDocSchema
|
|
43
57
|
.extend({
|
|
@@ -67,6 +81,8 @@ export const zTaskSchema = zFireDocSchema
|
|
|
67
81
|
ia_prompt: z.string().optional(),
|
|
68
82
|
ia_model: z.string().optional(),
|
|
69
83
|
ia_progress: z.number().min(0).max(100).optional(),
|
|
84
|
+
// External object links
|
|
85
|
+
externalLinks: z.array(zTaskExternalLinkSchema).optional(),
|
|
70
86
|
})
|
|
71
87
|
.passthrough();
|
|
72
88
|
|
|
@@ -49,6 +49,7 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
49
49
|
kind: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
50
50
|
line1: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
51
51
|
line2: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
52
|
+
neighborhood: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
52
53
|
city: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
53
54
|
state: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
54
55
|
zip: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -60,6 +61,7 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
60
61
|
country: string;
|
|
61
62
|
line1: string;
|
|
62
63
|
line2: string;
|
|
64
|
+
neighborhood: string;
|
|
63
65
|
city: string;
|
|
64
66
|
state: string;
|
|
65
67
|
zip: string;
|
|
@@ -70,6 +72,7 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
70
72
|
country?: string | undefined;
|
|
71
73
|
line1?: string | undefined;
|
|
72
74
|
line2?: string | undefined;
|
|
75
|
+
neighborhood?: string | undefined;
|
|
73
76
|
city?: string | undefined;
|
|
74
77
|
state?: string | undefined;
|
|
75
78
|
zip?: string | undefined;
|
|
@@ -38,6 +38,7 @@ exports.zAddressSchema = zod_1.z.object({
|
|
|
38
38
|
kind: zod_1.z.string().max(255).optional().default(""),
|
|
39
39
|
line1: zod_1.z.string().max(255).optional().default(""),
|
|
40
40
|
line2: zod_1.z.string().max(255).optional().default(""),
|
|
41
|
+
neighborhood: zod_1.z.string().max(255).optional().default(""),
|
|
41
42
|
city: zod_1.z.string().max(255).optional().default(""),
|
|
42
43
|
state: zod_1.z.string().max(255).optional().default(""),
|
|
43
44
|
zip: zod_1.z.string().max(255).optional().default(""),
|
|
@@ -39,6 +39,7 @@ export const zAddressSchema = z.object({
|
|
|
39
39
|
kind: z.string().max(255).optional().default(""),
|
|
40
40
|
line1: z.string().max(255).optional().default(""),
|
|
41
41
|
line2: z.string().max(255).optional().default(""),
|
|
42
|
+
neighborhood: z.string().max(255).optional().default(""),
|
|
42
43
|
city: z.string().max(255).optional().default(""),
|
|
43
44
|
state: z.string().max(255).optional().default(""),
|
|
44
45
|
zip: z.string().max(255).optional().default(""),
|
|
@@ -41,6 +41,19 @@ export declare enum IIATaskType {
|
|
|
41
41
|
FinancialCharge = "financial_charge",
|
|
42
42
|
Custom = "custom"
|
|
43
43
|
}
|
|
44
|
+
export type TaskExternalObjectType = "crm_lead" | "med_patient" | "med_professional" | "med_appointment" | "chat_contact";
|
|
45
|
+
export declare enum ITaskExternalObjectType {
|
|
46
|
+
CrmLead = "crm_lead",
|
|
47
|
+
MedPatient = "med_patient",
|
|
48
|
+
MedProfessional = "med_professional",
|
|
49
|
+
MedAppointment = "med_appointment",
|
|
50
|
+
ChatContact = "chat_contact"
|
|
51
|
+
}
|
|
52
|
+
export interface ITaskExternalLink {
|
|
53
|
+
type: TaskExternalObjectType;
|
|
54
|
+
id: string;
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}
|
|
44
57
|
export interface ITask extends IFireDoc {
|
|
45
58
|
title: string;
|
|
46
59
|
description?: string;
|
|
@@ -67,6 +80,7 @@ export interface ITask extends IFireDoc {
|
|
|
67
80
|
ia_prompt?: string;
|
|
68
81
|
ia_model?: string;
|
|
69
82
|
ia_progress?: number;
|
|
83
|
+
externalLinks?: ITaskExternalLink[];
|
|
70
84
|
[key: string]: unknown;
|
|
71
85
|
}
|
|
72
86
|
export interface ITaskComment extends IFireDoc {
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.IIATaskType = exports.ITaskPriority = exports.ITaskStatus = exports.ITaskAction = void 0;
|
|
17
|
+
exports.ITaskExternalObjectType = exports.IIATaskType = exports.ITaskPriority = exports.ITaskStatus = exports.ITaskAction = void 0;
|
|
18
18
|
__exportStar(require("./fb_collections"), exports);
|
|
19
19
|
var ITaskAction;
|
|
20
20
|
(function (ITaskAction) {
|
|
@@ -57,3 +57,11 @@ var IIATaskType;
|
|
|
57
57
|
IIATaskType["FinancialCharge"] = "financial_charge";
|
|
58
58
|
IIATaskType["Custom"] = "custom";
|
|
59
59
|
})(IIATaskType || (exports.IIATaskType = IIATaskType = {}));
|
|
60
|
+
var ITaskExternalObjectType;
|
|
61
|
+
(function (ITaskExternalObjectType) {
|
|
62
|
+
ITaskExternalObjectType["CrmLead"] = "crm_lead";
|
|
63
|
+
ITaskExternalObjectType["MedPatient"] = "med_patient";
|
|
64
|
+
ITaskExternalObjectType["MedProfessional"] = "med_professional";
|
|
65
|
+
ITaskExternalObjectType["MedAppointment"] = "med_appointment";
|
|
66
|
+
ITaskExternalObjectType["ChatContact"] = "chat_contact";
|
|
67
|
+
})(ITaskExternalObjectType || (exports.ITaskExternalObjectType = ITaskExternalObjectType = {}));
|
|
@@ -77,6 +77,29 @@ export enum IIATaskType {
|
|
|
77
77
|
Custom = "custom",
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
// Enum for External Object Type (for task links)
|
|
81
|
+
export type TaskExternalObjectType =
|
|
82
|
+
| "crm_lead"
|
|
83
|
+
| "med_patient"
|
|
84
|
+
| "med_professional"
|
|
85
|
+
| "med_appointment"
|
|
86
|
+
| "chat_contact";
|
|
87
|
+
|
|
88
|
+
export enum ITaskExternalObjectType {
|
|
89
|
+
CrmLead = "crm_lead",
|
|
90
|
+
MedPatient = "med_patient",
|
|
91
|
+
MedProfessional = "med_professional",
|
|
92
|
+
MedAppointment = "med_appointment",
|
|
93
|
+
ChatContact = "chat_contact",
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Interface for External Object Link
|
|
97
|
+
export interface ITaskExternalLink {
|
|
98
|
+
type: TaskExternalObjectType; // Type of external object
|
|
99
|
+
id: string; // ID of the linked object
|
|
100
|
+
[key: string]: unknown; // index signature
|
|
101
|
+
}
|
|
102
|
+
|
|
80
103
|
// Interface for Task Instances (taskInstances)
|
|
81
104
|
export interface ITask extends IFireDoc {
|
|
82
105
|
title: string; // Title of the task
|
|
@@ -105,6 +128,8 @@ export interface ITask extends IFireDoc {
|
|
|
105
128
|
ia_prompt?: string; // Prompt used for AI task execution
|
|
106
129
|
ia_model?: string; // AI model used for task execution
|
|
107
130
|
ia_progress?: number; // Progress percentage (0-100) of AI task execution
|
|
131
|
+
// External object links
|
|
132
|
+
externalLinks?: ITaskExternalLink[]; // Array of links to external objects
|
|
108
133
|
[key: string]: unknown; // index signature
|
|
109
134
|
}
|
|
110
135
|
|