evo360-types 1.3.93 → 1.3.95

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.
@@ -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.optional(),
164
- appointmentRequestType: exports.zAppointmentAppointmentRequestTypeSchema.optional(),
165
- specialty: exports.zAppointmentSpecialtySchema.optional(),
166
- address: exports.zAppointmentAddressSchema.optional(),
167
- procedures: zod_1.z.array(exports.zAppointmentProcedureSchema).optional(),
168
- patient: exports.zAppointmentPatientSchema.optional(),
169
- professional: exports.zAppointmentProfessionalSchema.optional(),
170
- insurance: exports.zAppointmentInsuranceSchema.optional(),
171
- payment: exports.zAppointmentPaymentSchema.optional(),
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.optional(),
176
- appointmentRequestType: zAppointmentAppointmentRequestTypeSchema.optional(),
177
- specialty: zAppointmentSpecialtySchema.optional(),
178
- address: zAppointmentAddressSchema.optional(),
179
- procedures: z.array(zAppointmentProcedureSchema).optional(),
180
- patient: zAppointmentPatientSchema.optional(),
181
- professional: zAppointmentProfessionalSchema.optional(),
182
- insurance: zAppointmentInsuranceSchema.optional(),
183
- payment: zAppointmentPaymentSchema.optional(),
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,6 +104,7 @@ export declare const zProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
104
104
  code: z.ZodString;
105
105
  name: z.ZodString;
106
106
  technical_name: z.ZodString;
107
+ order: z.ZodNumber;
107
108
  status: z.ZodEnum<["active", "inactive", "draft"]>;
108
109
  type_code: z.ZodOptional<z.ZodString>;
109
110
  type_name: z.ZodOptional<z.ZodString>;
@@ -145,6 +146,7 @@ export declare const zProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
145
146
  code: z.ZodString;
146
147
  name: z.ZodString;
147
148
  technical_name: z.ZodString;
149
+ order: z.ZodNumber;
148
150
  status: z.ZodEnum<["active", "inactive", "draft"]>;
149
151
  type_code: z.ZodOptional<z.ZodString>;
150
152
  type_name: z.ZodOptional<z.ZodString>;
@@ -186,6 +188,7 @@ export declare const zProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
186
188
  code: z.ZodString;
187
189
  name: z.ZodString;
188
190
  technical_name: z.ZodString;
191
+ order: z.ZodNumber;
189
192
  status: z.ZodEnum<["active", "inactive", "draft"]>;
190
193
  type_code: z.ZodOptional<z.ZodString>;
191
194
  type_name: z.ZodOptional<z.ZodString>;
@@ -24,6 +24,7 @@ exports.zProcedureSchema = zod_schemas_1.zFireDocSchema
24
24
  code: zod_1.z.string().min(1).max(20),
25
25
  name: zod_1.z.string().min(1).max(255),
26
26
  technical_name: zod_1.z.string().min(1).max(255),
27
+ order: zod_1.z.number().min(0).max(100),
27
28
  status: exports.zProcedureStatusSchema,
28
29
  type_code: zod_1.z.string().max(20).optional(),
29
30
  type_name: zod_1.z.string().max(255).optional(),
@@ -26,6 +26,7 @@ export const zProcedureSchema = zFireDocSchema
26
26
  code: z.string().min(1).max(20),
27
27
  name: z.string().min(1).max(255),
28
28
  technical_name: z.string().min(1).max(255),
29
+ order: z.number().min(0).max(100),
29
30
  status: zProcedureStatusSchema,
30
31
  type_code: z.string().max(20).optional(),
31
32
  type_name: z.string().max(255).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
  }
@@ -138,24 +138,24 @@ export interface IAppointment extends IFireDoc {
138
138
  status: string;
139
139
  statusBase: AppointmentStatusType;
140
140
  notes?: string;
141
- appointmentMode?: AppointmentMode;
142
- appointmentType?: string;
143
- appointmentBaseType?: AppointmentType;
144
- appointmentSource?: IAppointmentAppointmentSource;
145
- appointmentRequestType?: IAppointmentAppointmentRequestType;
146
- specialty?: IAppointmentSpecialty;
147
- address?: IAppointmentAddress;
148
- procedures?: IAppointmentProcedure[];
149
- patient?: IAppointmentPatient;
150
- professional?: IAppointmentProfessional;
151
- insurance?: IAppointmentInsurance;
152
- 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;
153
153
  // Controle de remarcações
154
- reschedules?: IAppointmentReschedule[];
154
+ reschedules?: IAppointmentReschedule[] | null;
155
155
  external_id?: string | null; // ID externo da consulta
156
156
  // Propriedades para controle de rascunho
157
157
  isDraft: boolean;
158
- draftExpirationMinutes?: number; // tempo em minutos para expiração do rascunho
158
+ draftExpirationMinutes?: number | null; // tempo em minutos para expiração do rascunho
159
159
 
160
160
  tags?: ITag[] | null;
161
161
  [key: string]: unknown; // index signature
@@ -22,6 +22,7 @@ export interface IProcedure extends IFireDoc {
22
22
  code: string;
23
23
  name: string;
24
24
  technical_name: string;
25
+ order: number;
25
26
  status: ProcedureStatus;
26
27
  type_code?: string;
27
28
  type_name?: string;
@@ -34,6 +34,7 @@ export interface IProcedure extends IFireDoc {
34
34
  code: string;
35
35
  name: string;
36
36
  technical_name: string;
37
+ order: number;
37
38
  status: ProcedureStatus;
38
39
  type_code?: string;
39
40
  type_name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.93",
3
+ "version": "1.3.95",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",