evo360-types 1.3.92 → 1.3.94
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-med/appointment/zod-schemas.d.ts +72 -72
- package/dist/apps/evo-med/appointment/zod-schemas.js +18 -14
- package/dist/apps/evo-med/appointment/zod-schemas.ts +18 -14
- package/dist/types/evo-med/appointment/index.d.ts +14 -14
- package/dist/types/evo-med/appointment/index.ts +15 -21
- package/package.json +1 -1
|
@@ -254,10 +254,10 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
254
254
|
status: z.ZodString;
|
|
255
255
|
statusBase: z.ZodEnum<["scheduled", "confirmed", "rescheduled", "pre_checkin", "waiting", "in_progress", "completed", "no_show", "cancelled", "cancelled_by_clinic", "cancelled_by_patient", "extra_slot", "awaiting_payment", "paid", "awaiting_documents", "blocked", "waiting_list", "expired"]>;
|
|
256
256
|
notes: z.ZodOptional<z.ZodString>;
|
|
257
|
-
appointmentMode: z.ZodOptional<z.ZodEnum<["telemedicine", "in_person"]
|
|
258
|
-
appointmentType: z.ZodOptional<z.ZodString
|
|
259
|
-
appointmentBaseType: z.ZodOptional<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]
|
|
260
|
-
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
appointmentMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["telemedicine", "in_person"]>>>;
|
|
258
|
+
appointmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
259
|
+
appointmentBaseType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>>>;
|
|
260
|
+
appointmentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
261
261
|
code: z.ZodString;
|
|
262
262
|
name: z.ZodString;
|
|
263
263
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -269,8 +269,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
269
269
|
code: string;
|
|
270
270
|
name: string;
|
|
271
271
|
external_id?: string | null | undefined;
|
|
272
|
-
}
|
|
273
|
-
appointmentRequestType: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
}>>>;
|
|
273
|
+
appointmentRequestType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
274
274
|
code: z.ZodString;
|
|
275
275
|
name: z.ZodString;
|
|
276
276
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -282,8 +282,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
282
282
|
code: string;
|
|
283
283
|
name: string;
|
|
284
284
|
external_id?: string | null | undefined;
|
|
285
|
-
}
|
|
286
|
-
specialty: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
}>>>;
|
|
286
|
+
specialty: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
287
287
|
code: z.ZodString;
|
|
288
288
|
name: z.ZodString;
|
|
289
289
|
tiss: z.ZodOptional<z.ZodString>;
|
|
@@ -310,8 +310,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
310
310
|
typeRef: z.ZodOptional<z.ZodAny>;
|
|
311
311
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
312
|
specialtyRef: z.ZodOptional<z.ZodAny>;
|
|
313
|
-
}, z.ZodTypeAny, "passthrough"
|
|
314
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
314
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
315
315
|
address_name: z.ZodOptional<z.ZodString>;
|
|
316
316
|
address_line1: z.ZodOptional<z.ZodString>;
|
|
317
317
|
address_line2: z.ZodOptional<z.ZodString>;
|
|
@@ -347,8 +347,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
347
347
|
address_notes?: string | undefined;
|
|
348
348
|
address_geo?: any;
|
|
349
349
|
address_name?: string | undefined;
|
|
350
|
-
}
|
|
351
|
-
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
+
}>>>;
|
|
351
|
+
procedures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
352
352
|
code: z.ZodString;
|
|
353
353
|
name: z.ZodString;
|
|
354
354
|
technical_name: z.ZodString;
|
|
@@ -393,8 +393,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
393
393
|
price: z.ZodOptional<z.ZodNumber>;
|
|
394
394
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
395
395
|
procedureRef: z.ZodOptional<z.ZodAny>;
|
|
396
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
397
|
-
patient: z.ZodOptional<z.ZodObject<{
|
|
396
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
397
|
+
patient: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
398
398
|
display_name: z.ZodString;
|
|
399
399
|
gender: z.ZodOptional<z.ZodString>;
|
|
400
400
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -406,8 +406,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
406
406
|
display_name: z.ZodString;
|
|
407
407
|
gender: z.ZodOptional<z.ZodString>;
|
|
408
408
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
409
|
-
}, z.ZodTypeAny, "passthrough"
|
|
410
|
-
professional: z.ZodOptional<z.ZodObject<{
|
|
409
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
410
|
+
professional: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
411
411
|
display_name: z.ZodString;
|
|
412
412
|
gender: z.ZodOptional<z.ZodString>;
|
|
413
413
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -419,8 +419,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
419
419
|
display_name: z.ZodString;
|
|
420
420
|
gender: z.ZodOptional<z.ZodString>;
|
|
421
421
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
422
|
-
}, z.ZodTypeAny, "passthrough"
|
|
423
|
-
insurance: z.ZodOptional<z.ZodObject<{
|
|
422
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
423
|
+
insurance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
424
424
|
name: z.ZodString;
|
|
425
425
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
426
426
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -429,8 +429,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
429
429
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
430
430
|
name: z.ZodString;
|
|
431
431
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
432
|
-
}, z.ZodTypeAny, "passthrough"
|
|
433
|
-
payment: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
433
|
+
payment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
434
434
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
435
435
|
paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
436
436
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -451,8 +451,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
451
451
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
452
452
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
453
453
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
454
|
-
}, z.ZodTypeAny, "passthrough"
|
|
455
|
-
reschedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
455
|
+
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
456
456
|
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
457
457
|
code: z.ZodString;
|
|
458
458
|
name: z.ZodString;
|
|
@@ -493,9 +493,9 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
493
493
|
external_id?: string | null | undefined;
|
|
494
494
|
} | undefined;
|
|
495
495
|
reason?: string | undefined;
|
|
496
|
-
}>, "many"
|
|
496
|
+
}>, "many">>>;
|
|
497
497
|
isDraft: z.ZodBoolean;
|
|
498
|
-
draftExpirationMinutes: z.ZodOptional<z.ZodNumber
|
|
498
|
+
draftExpirationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
499
499
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
500
500
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
501
501
|
name: z.ZodString;
|
|
@@ -530,10 +530,10 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
530
530
|
status: z.ZodString;
|
|
531
531
|
statusBase: z.ZodEnum<["scheduled", "confirmed", "rescheduled", "pre_checkin", "waiting", "in_progress", "completed", "no_show", "cancelled", "cancelled_by_clinic", "cancelled_by_patient", "extra_slot", "awaiting_payment", "paid", "awaiting_documents", "blocked", "waiting_list", "expired"]>;
|
|
532
532
|
notes: z.ZodOptional<z.ZodString>;
|
|
533
|
-
appointmentMode: z.ZodOptional<z.ZodEnum<["telemedicine", "in_person"]
|
|
534
|
-
appointmentType: z.ZodOptional<z.ZodString
|
|
535
|
-
appointmentBaseType: z.ZodOptional<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]
|
|
536
|
-
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
appointmentMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["telemedicine", "in_person"]>>>;
|
|
534
|
+
appointmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
535
|
+
appointmentBaseType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>>>;
|
|
536
|
+
appointmentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
537
537
|
code: z.ZodString;
|
|
538
538
|
name: z.ZodString;
|
|
539
539
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -545,8 +545,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
545
545
|
code: string;
|
|
546
546
|
name: string;
|
|
547
547
|
external_id?: string | null | undefined;
|
|
548
|
-
}
|
|
549
|
-
appointmentRequestType: z.ZodOptional<z.ZodObject<{
|
|
548
|
+
}>>>;
|
|
549
|
+
appointmentRequestType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
550
550
|
code: z.ZodString;
|
|
551
551
|
name: z.ZodString;
|
|
552
552
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -558,8 +558,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
558
558
|
code: string;
|
|
559
559
|
name: string;
|
|
560
560
|
external_id?: string | null | undefined;
|
|
561
|
-
}
|
|
562
|
-
specialty: z.ZodOptional<z.ZodObject<{
|
|
561
|
+
}>>>;
|
|
562
|
+
specialty: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
563
563
|
code: z.ZodString;
|
|
564
564
|
name: z.ZodString;
|
|
565
565
|
tiss: z.ZodOptional<z.ZodString>;
|
|
@@ -586,8 +586,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
586
586
|
typeRef: z.ZodOptional<z.ZodAny>;
|
|
587
587
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
588
|
specialtyRef: z.ZodOptional<z.ZodAny>;
|
|
589
|
-
}, z.ZodTypeAny, "passthrough"
|
|
590
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
589
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
590
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
591
591
|
address_name: z.ZodOptional<z.ZodString>;
|
|
592
592
|
address_line1: z.ZodOptional<z.ZodString>;
|
|
593
593
|
address_line2: z.ZodOptional<z.ZodString>;
|
|
@@ -623,8 +623,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
623
623
|
address_notes?: string | undefined;
|
|
624
624
|
address_geo?: any;
|
|
625
625
|
address_name?: string | undefined;
|
|
626
|
-
}
|
|
627
|
-
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
626
|
+
}>>>;
|
|
627
|
+
procedures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
628
628
|
code: z.ZodString;
|
|
629
629
|
name: z.ZodString;
|
|
630
630
|
technical_name: z.ZodString;
|
|
@@ -669,8 +669,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
669
669
|
price: z.ZodOptional<z.ZodNumber>;
|
|
670
670
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
671
671
|
procedureRef: z.ZodOptional<z.ZodAny>;
|
|
672
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
673
|
-
patient: z.ZodOptional<z.ZodObject<{
|
|
672
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
673
|
+
patient: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
674
674
|
display_name: z.ZodString;
|
|
675
675
|
gender: z.ZodOptional<z.ZodString>;
|
|
676
676
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -682,8 +682,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
682
682
|
display_name: z.ZodString;
|
|
683
683
|
gender: z.ZodOptional<z.ZodString>;
|
|
684
684
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
685
|
-
}, z.ZodTypeAny, "passthrough"
|
|
686
|
-
professional: z.ZodOptional<z.ZodObject<{
|
|
685
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
686
|
+
professional: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
687
687
|
display_name: z.ZodString;
|
|
688
688
|
gender: z.ZodOptional<z.ZodString>;
|
|
689
689
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -695,8 +695,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
695
695
|
display_name: z.ZodString;
|
|
696
696
|
gender: z.ZodOptional<z.ZodString>;
|
|
697
697
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
698
|
-
}, z.ZodTypeAny, "passthrough"
|
|
699
|
-
insurance: z.ZodOptional<z.ZodObject<{
|
|
698
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
699
|
+
insurance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
700
700
|
name: z.ZodString;
|
|
701
701
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
702
702
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -705,8 +705,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
705
705
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
706
706
|
name: z.ZodString;
|
|
707
707
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
708
|
-
}, z.ZodTypeAny, "passthrough"
|
|
709
|
-
payment: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
709
|
+
payment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
710
710
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
711
711
|
paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
712
712
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -727,8 +727,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
727
727
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
728
728
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
729
729
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
730
|
-
}, z.ZodTypeAny, "passthrough"
|
|
731
|
-
reschedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
730
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
731
|
+
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
732
732
|
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
733
733
|
code: z.ZodString;
|
|
734
734
|
name: z.ZodString;
|
|
@@ -769,9 +769,9 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
769
769
|
external_id?: string | null | undefined;
|
|
770
770
|
} | undefined;
|
|
771
771
|
reason?: string | undefined;
|
|
772
|
-
}>, "many"
|
|
772
|
+
}>, "many">>>;
|
|
773
773
|
isDraft: z.ZodBoolean;
|
|
774
|
-
draftExpirationMinutes: z.ZodOptional<z.ZodNumber
|
|
774
|
+
draftExpirationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
775
775
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
776
776
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
777
777
|
name: z.ZodString;
|
|
@@ -806,10 +806,10 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
806
806
|
status: z.ZodString;
|
|
807
807
|
statusBase: z.ZodEnum<["scheduled", "confirmed", "rescheduled", "pre_checkin", "waiting", "in_progress", "completed", "no_show", "cancelled", "cancelled_by_clinic", "cancelled_by_patient", "extra_slot", "awaiting_payment", "paid", "awaiting_documents", "blocked", "waiting_list", "expired"]>;
|
|
808
808
|
notes: z.ZodOptional<z.ZodString>;
|
|
809
|
-
appointmentMode: z.ZodOptional<z.ZodEnum<["telemedicine", "in_person"]
|
|
810
|
-
appointmentType: z.ZodOptional<z.ZodString
|
|
811
|
-
appointmentBaseType: z.ZodOptional<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]
|
|
812
|
-
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
809
|
+
appointmentMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<["telemedicine", "in_person"]>>>;
|
|
810
|
+
appointmentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
811
|
+
appointmentBaseType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>>>;
|
|
812
|
+
appointmentSource: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
813
813
|
code: z.ZodString;
|
|
814
814
|
name: z.ZodString;
|
|
815
815
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -821,8 +821,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
821
821
|
code: string;
|
|
822
822
|
name: string;
|
|
823
823
|
external_id?: string | null | undefined;
|
|
824
|
-
}
|
|
825
|
-
appointmentRequestType: z.ZodOptional<z.ZodObject<{
|
|
824
|
+
}>>>;
|
|
825
|
+
appointmentRequestType: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
826
826
|
code: z.ZodString;
|
|
827
827
|
name: z.ZodString;
|
|
828
828
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -834,8 +834,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
834
834
|
code: string;
|
|
835
835
|
name: string;
|
|
836
836
|
external_id?: string | null | undefined;
|
|
837
|
-
}
|
|
838
|
-
specialty: z.ZodOptional<z.ZodObject<{
|
|
837
|
+
}>>>;
|
|
838
|
+
specialty: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
839
839
|
code: z.ZodString;
|
|
840
840
|
name: z.ZodString;
|
|
841
841
|
tiss: z.ZodOptional<z.ZodString>;
|
|
@@ -862,8 +862,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
862
862
|
typeRef: z.ZodOptional<z.ZodAny>;
|
|
863
863
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
864
864
|
specialtyRef: z.ZodOptional<z.ZodAny>;
|
|
865
|
-
}, z.ZodTypeAny, "passthrough"
|
|
866
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
865
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
866
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
867
867
|
address_name: z.ZodOptional<z.ZodString>;
|
|
868
868
|
address_line1: z.ZodOptional<z.ZodString>;
|
|
869
869
|
address_line2: z.ZodOptional<z.ZodString>;
|
|
@@ -899,8 +899,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
899
899
|
address_notes?: string | undefined;
|
|
900
900
|
address_geo?: any;
|
|
901
901
|
address_name?: string | undefined;
|
|
902
|
-
}
|
|
903
|
-
procedures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
902
|
+
}>>>;
|
|
903
|
+
procedures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
904
904
|
code: z.ZodString;
|
|
905
905
|
name: z.ZodString;
|
|
906
906
|
technical_name: z.ZodString;
|
|
@@ -945,8 +945,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
945
945
|
price: z.ZodOptional<z.ZodNumber>;
|
|
946
946
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
947
947
|
procedureRef: z.ZodOptional<z.ZodAny>;
|
|
948
|
-
}, z.ZodTypeAny, "passthrough">>, "many"
|
|
949
|
-
patient: z.ZodOptional<z.ZodObject<{
|
|
948
|
+
}, z.ZodTypeAny, "passthrough">>, "many">>>;
|
|
949
|
+
patient: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
950
950
|
display_name: z.ZodString;
|
|
951
951
|
gender: z.ZodOptional<z.ZodString>;
|
|
952
952
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -958,8 +958,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
958
958
|
display_name: z.ZodString;
|
|
959
959
|
gender: z.ZodOptional<z.ZodString>;
|
|
960
960
|
patientRef: z.ZodOptional<z.ZodAny>;
|
|
961
|
-
}, z.ZodTypeAny, "passthrough"
|
|
962
|
-
professional: z.ZodOptional<z.ZodObject<{
|
|
961
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
962
|
+
professional: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
963
963
|
display_name: z.ZodString;
|
|
964
964
|
gender: z.ZodOptional<z.ZodString>;
|
|
965
965
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
@@ -971,8 +971,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
971
971
|
display_name: z.ZodString;
|
|
972
972
|
gender: z.ZodOptional<z.ZodString>;
|
|
973
973
|
professionalRef: z.ZodOptional<z.ZodAny>;
|
|
974
|
-
}, z.ZodTypeAny, "passthrough"
|
|
975
|
-
insurance: z.ZodOptional<z.ZodObject<{
|
|
974
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
975
|
+
insurance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
976
976
|
name: z.ZodString;
|
|
977
977
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
978
978
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -981,8 +981,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
981
981
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
982
982
|
name: z.ZodString;
|
|
983
983
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
984
|
-
}, z.ZodTypeAny, "passthrough"
|
|
985
|
-
payment: z.ZodOptional<z.ZodObject<{
|
|
984
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
985
|
+
payment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
986
986
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
987
987
|
paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
988
988
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1003,8 +1003,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1003
1003
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1004
1004
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1005
1005
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1006
|
-
}, z.ZodTypeAny, "passthrough"
|
|
1007
|
-
reschedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1006
|
+
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1007
|
+
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1008
1008
|
appointmentSource: z.ZodOptional<z.ZodObject<{
|
|
1009
1009
|
code: z.ZodString;
|
|
1010
1010
|
name: z.ZodString;
|
|
@@ -1045,9 +1045,9 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1045
1045
|
external_id?: string | null | undefined;
|
|
1046
1046
|
} | undefined;
|
|
1047
1047
|
reason?: string | undefined;
|
|
1048
|
-
}>, "many"
|
|
1048
|
+
}>, "many">>>;
|
|
1049
1049
|
isDraft: z.ZodBoolean;
|
|
1050
|
-
draftExpirationMinutes: z.ZodOptional<z.ZodNumber
|
|
1050
|
+
draftExpirationMinutes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1051
1051
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
1052
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1053
1053
|
name: z.ZodString;
|
|
@@ -157,23 +157,27 @@ exports.zAppointmentSchema = zod_schemas_1.zFireDocSchema
|
|
|
157
157
|
status: zod_1.z.string(), // Status customizado do dicionário
|
|
158
158
|
statusBase: exports.zAppointmentStatusTypeSchema, // Tipo base para lógica
|
|
159
159
|
notes: zod_1.z.string().optional(),
|
|
160
|
-
appointmentMode: exports.zAppointmentModeSchema.optional(),
|
|
161
|
-
appointmentType: zod_1.z.string().optional(), // Tipo customizado do dicionário
|
|
162
|
-
appointmentBaseType: exports.zAppointmentTypeBaseSchema.optional(), // Tipo base para lógica
|
|
163
|
-
appointmentSource: exports.zAppointmentAppointmentSourceSchema
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
appointmentMode: exports.zAppointmentModeSchema.nullable().optional(),
|
|
161
|
+
appointmentType: zod_1.z.string().nullable().optional(), // Tipo customizado do dicionário
|
|
162
|
+
appointmentBaseType: exports.zAppointmentTypeBaseSchema.nullable().optional(), // Tipo base para lógica
|
|
163
|
+
appointmentSource: exports.zAppointmentAppointmentSourceSchema
|
|
164
|
+
.nullable()
|
|
165
|
+
.optional(),
|
|
166
|
+
appointmentRequestType: exports.zAppointmentAppointmentRequestTypeSchema
|
|
167
|
+
.nullable()
|
|
168
|
+
.optional(),
|
|
169
|
+
specialty: exports.zAppointmentSpecialtySchema.nullable().optional(),
|
|
170
|
+
address: exports.zAppointmentAddressSchema.nullable().optional(),
|
|
171
|
+
procedures: zod_1.z.array(exports.zAppointmentProcedureSchema).nullable().optional(),
|
|
172
|
+
patient: exports.zAppointmentPatientSchema.nullable().optional(),
|
|
173
|
+
professional: exports.zAppointmentProfessionalSchema.nullable().optional(),
|
|
174
|
+
insurance: exports.zAppointmentInsuranceSchema.nullable().optional(),
|
|
175
|
+
payment: exports.zAppointmentPaymentSchema.nullable().optional(),
|
|
172
176
|
// Controle de remarcações
|
|
173
|
-
reschedules: zod_1.z.array(exports.zAppointmentRescheduleSchema).optional(),
|
|
177
|
+
reschedules: zod_1.z.array(exports.zAppointmentRescheduleSchema).nullable().optional(),
|
|
174
178
|
// Propriedades para controle de rascunho
|
|
175
179
|
isDraft: zod_1.z.boolean(),
|
|
176
|
-
draftExpirationMinutes: zod_1.z.number().optional(), // tempo em minutos para expiração do rascunho
|
|
180
|
+
draftExpirationMinutes: zod_1.z.number().nullable().optional(), // tempo em minutos para expiração do rascunho
|
|
177
181
|
// ID externo da consulta
|
|
178
182
|
external_id: zod_1.z.string().nullable().optional(),
|
|
179
183
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
@@ -169,25 +169,29 @@ export const zAppointmentSchema = zFireDocSchema
|
|
|
169
169
|
status: z.string(), // Status customizado do dicionário
|
|
170
170
|
statusBase: zAppointmentStatusTypeSchema, // Tipo base para lógica
|
|
171
171
|
notes: z.string().optional(),
|
|
172
|
-
appointmentMode: zAppointmentModeSchema.optional(),
|
|
173
|
-
appointmentType: z.string().optional(), // Tipo customizado do dicionário
|
|
174
|
-
appointmentBaseType: zAppointmentTypeBaseSchema.optional(), // Tipo base para lógica
|
|
175
|
-
appointmentSource: zAppointmentAppointmentSourceSchema
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
172
|
+
appointmentMode: zAppointmentModeSchema.nullable().optional(),
|
|
173
|
+
appointmentType: z.string().nullable().optional(), // Tipo customizado do dicionário
|
|
174
|
+
appointmentBaseType: zAppointmentTypeBaseSchema.nullable().optional(), // Tipo base para lógica
|
|
175
|
+
appointmentSource: zAppointmentAppointmentSourceSchema
|
|
176
|
+
.nullable()
|
|
177
|
+
.optional(),
|
|
178
|
+
appointmentRequestType: zAppointmentAppointmentRequestTypeSchema
|
|
179
|
+
.nullable()
|
|
180
|
+
.optional(),
|
|
181
|
+
specialty: zAppointmentSpecialtySchema.nullable().optional(),
|
|
182
|
+
address: zAppointmentAddressSchema.nullable().optional(),
|
|
183
|
+
procedures: z.array(zAppointmentProcedureSchema).nullable().optional(),
|
|
184
|
+
patient: zAppointmentPatientSchema.nullable().optional(),
|
|
185
|
+
professional: zAppointmentProfessionalSchema.nullable().optional(),
|
|
186
|
+
insurance: zAppointmentInsuranceSchema.nullable().optional(),
|
|
187
|
+
payment: zAppointmentPaymentSchema.nullable().optional(),
|
|
184
188
|
|
|
185
189
|
// Controle de remarcações
|
|
186
|
-
reschedules: z.array(zAppointmentRescheduleSchema).optional(),
|
|
190
|
+
reschedules: z.array(zAppointmentRescheduleSchema).nullable().optional(),
|
|
187
191
|
|
|
188
192
|
// Propriedades para controle de rascunho
|
|
189
193
|
isDraft: z.boolean(),
|
|
190
|
-
draftExpirationMinutes: z.number().optional(), // tempo em minutos para expiração do rascunho
|
|
194
|
+
draftExpirationMinutes: z.number().nullable().optional(), // tempo em minutos para expiração do rascunho
|
|
191
195
|
|
|
192
196
|
// ID externo da consulta
|
|
193
197
|
external_id: z.string().nullable().optional(),
|
|
@@ -104,22 +104,22 @@ export interface IAppointment extends IFireDoc {
|
|
|
104
104
|
status: string;
|
|
105
105
|
statusBase: AppointmentStatusType;
|
|
106
106
|
notes?: string;
|
|
107
|
-
appointmentMode?: AppointmentMode;
|
|
108
|
-
appointmentType?: string;
|
|
109
|
-
appointmentBaseType?: AppointmentType;
|
|
110
|
-
appointmentSource?: IAppointmentAppointmentSource;
|
|
111
|
-
appointmentRequestType?: IAppointmentAppointmentRequestType;
|
|
112
|
-
specialty?: IAppointmentSpecialty;
|
|
113
|
-
address?: IAppointmentAddress;
|
|
114
|
-
procedures?: IAppointmentProcedure[];
|
|
115
|
-
patient?: IAppointmentPatient;
|
|
116
|
-
professional?: IAppointmentProfessional;
|
|
117
|
-
insurance?: IAppointmentInsurance;
|
|
118
|
-
payment?: IAppointmentPayment;
|
|
119
|
-
reschedules?: IAppointmentReschedule[];
|
|
107
|
+
appointmentMode?: AppointmentMode | null;
|
|
108
|
+
appointmentType?: string | null;
|
|
109
|
+
appointmentBaseType?: AppointmentType | null;
|
|
110
|
+
appointmentSource?: IAppointmentAppointmentSource | null;
|
|
111
|
+
appointmentRequestType?: IAppointmentAppointmentRequestType | null;
|
|
112
|
+
specialty?: IAppointmentSpecialty | null;
|
|
113
|
+
address?: IAppointmentAddress | null;
|
|
114
|
+
procedures?: IAppointmentProcedure[] | null;
|
|
115
|
+
patient?: IAppointmentPatient | null;
|
|
116
|
+
professional?: IAppointmentProfessional | null;
|
|
117
|
+
insurance?: IAppointmentInsurance | null;
|
|
118
|
+
payment?: IAppointmentPayment | null;
|
|
119
|
+
reschedules?: IAppointmentReschedule[] | null;
|
|
120
120
|
external_id?: string | null;
|
|
121
121
|
isDraft: boolean;
|
|
122
|
-
draftExpirationMinutes?: number;
|
|
122
|
+
draftExpirationMinutes?: number | null;
|
|
123
123
|
tags?: ITag[] | null;
|
|
124
124
|
[key: string]: unknown;
|
|
125
125
|
}
|
|
@@ -4,13 +4,7 @@ import type {
|
|
|
4
4
|
IGeoPoint,
|
|
5
5
|
ITag,
|
|
6
6
|
} from "../../shared";
|
|
7
|
-
import {
|
|
8
|
-
AppointmentStatusType,
|
|
9
|
-
AppointmentType,
|
|
10
|
-
IAppointmentRequestType,
|
|
11
|
-
IAppointmentSource,
|
|
12
|
-
} from "../dic";
|
|
13
|
-
import { IProcedure } from "../procedure";
|
|
7
|
+
import { AppointmentStatusType, AppointmentType } from "../dic";
|
|
14
8
|
// Enums para status de pagamento
|
|
15
9
|
export const AppointmentPaymentStatusEnum = {
|
|
16
10
|
Paid: "paid",
|
|
@@ -144,24 +138,24 @@ export interface IAppointment extends IFireDoc {
|
|
|
144
138
|
status: string;
|
|
145
139
|
statusBase: AppointmentStatusType;
|
|
146
140
|
notes?: string;
|
|
147
|
-
appointmentMode?: AppointmentMode;
|
|
148
|
-
appointmentType?: string;
|
|
149
|
-
appointmentBaseType?: AppointmentType;
|
|
150
|
-
appointmentSource?: IAppointmentAppointmentSource;
|
|
151
|
-
appointmentRequestType?: IAppointmentAppointmentRequestType;
|
|
152
|
-
specialty?: IAppointmentSpecialty;
|
|
153
|
-
address?: IAppointmentAddress;
|
|
154
|
-
procedures?: IAppointmentProcedure[];
|
|
155
|
-
patient?: IAppointmentPatient;
|
|
156
|
-
professional?: IAppointmentProfessional;
|
|
157
|
-
insurance?: IAppointmentInsurance;
|
|
158
|
-
payment?: IAppointmentPayment;
|
|
141
|
+
appointmentMode?: AppointmentMode | null;
|
|
142
|
+
appointmentType?: string | null;
|
|
143
|
+
appointmentBaseType?: AppointmentType | null;
|
|
144
|
+
appointmentSource?: IAppointmentAppointmentSource | null;
|
|
145
|
+
appointmentRequestType?: IAppointmentAppointmentRequestType | null;
|
|
146
|
+
specialty?: IAppointmentSpecialty | null;
|
|
147
|
+
address?: IAppointmentAddress | null;
|
|
148
|
+
procedures?: IAppointmentProcedure[] | null;
|
|
149
|
+
patient?: IAppointmentPatient | null;
|
|
150
|
+
professional?: IAppointmentProfessional | null;
|
|
151
|
+
insurance?: IAppointmentInsurance | null;
|
|
152
|
+
payment?: IAppointmentPayment | null;
|
|
159
153
|
// Controle de remarcações
|
|
160
|
-
reschedules?: IAppointmentReschedule[];
|
|
154
|
+
reschedules?: IAppointmentReschedule[] | null;
|
|
161
155
|
external_id?: string | null; // ID externo da consulta
|
|
162
156
|
// Propriedades para controle de rascunho
|
|
163
157
|
isDraft: boolean;
|
|
164
|
-
draftExpirationMinutes?: number; // tempo em minutos para expiração do rascunho
|
|
158
|
+
draftExpirationMinutes?: number | null; // tempo em minutos para expiração do rascunho
|
|
165
159
|
|
|
166
160
|
tags?: ITag[] | null;
|
|
167
161
|
[key: string]: unknown; // index signature
|