evo360-types 1.3.221 → 1.3.224
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-finops/zod-schemas.js +2 -2
- package/dist/apps/evo-finops/zod-schemas.ts +2 -2
- package/dist/apps/evo-med/appointment/zod-schemas.d.ts +352 -0
- package/dist/apps/evo-med/appointment/zod-schemas.js +9 -1
- package/dist/apps/evo-med/appointment/zod-schemas.ts +9 -0
- package/dist/types/evo-med/appointment/index.d.ts +13 -0
- package/dist/types/evo-med/appointment/index.ts +14 -0
- package/package.json +1 -1
|
@@ -353,8 +353,8 @@ exports.zServiceSchema = zod_schemas_1.zFireDocSchema
|
|
|
353
353
|
.extend({
|
|
354
354
|
municipalServiceCode: zod_1.z
|
|
355
355
|
.string()
|
|
356
|
-
.min(
|
|
357
|
-
.
|
|
356
|
+
.min(3, "Código municipal deve ter entre 3 e 20 caracteres")
|
|
357
|
+
.max(20, "Código municipal deve ter entre 3 e 20 caracteres"),
|
|
358
358
|
name: zod_1.z.string().min(1),
|
|
359
359
|
municipalServiceDescription: zod_1.z.string().optional(),
|
|
360
360
|
defaultProduct: zod_1.z.boolean().optional(),
|
|
@@ -381,8 +381,8 @@ export const zServiceSchema = zFireDocSchema
|
|
|
381
381
|
.extend({
|
|
382
382
|
municipalServiceCode: z
|
|
383
383
|
.string()
|
|
384
|
-
.min(
|
|
385
|
-
.
|
|
384
|
+
.min(3, "Código municipal deve ter entre 3 e 20 caracteres")
|
|
385
|
+
.max(20, "Código municipal deve ter entre 3 e 20 caracteres"),
|
|
386
386
|
name: z.string().min(1),
|
|
387
387
|
municipalServiceDescription: z.string().optional(),
|
|
388
388
|
defaultProduct: z.boolean().optional(),
|
|
@@ -76,12 +76,44 @@ export declare const zAppointmentInsuranceSchema: z.ZodObject<{
|
|
|
76
76
|
name: z.ZodString;
|
|
77
77
|
insuranceRef: z.ZodOptional<z.ZodAny>;
|
|
78
78
|
}, z.ZodTypeAny, "passthrough">>;
|
|
79
|
+
export declare const zAppointmentPaymentInvoiceRefSchema: z.ZodObject<{
|
|
80
|
+
invoiceId: z.ZodString;
|
|
81
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
82
|
+
state: z.ZodOptional<z.ZodString>;
|
|
83
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
invoiceId: string;
|
|
86
|
+
state?: string | undefined;
|
|
87
|
+
invoiceRef?: any;
|
|
88
|
+
evo_chat_sent?: boolean | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
invoiceId: string;
|
|
91
|
+
state?: string | undefined;
|
|
92
|
+
invoiceRef?: any;
|
|
93
|
+
evo_chat_sent?: boolean | undefined;
|
|
94
|
+
}>;
|
|
79
95
|
export declare const zAppointmentPaymentSchema: z.ZodObject<{
|
|
80
96
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
81
97
|
paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
82
98
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
83
99
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
84
100
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
101
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
102
|
+
invoiceId: z.ZodString;
|
|
103
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
104
|
+
state: z.ZodOptional<z.ZodString>;
|
|
105
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
invoiceId: string;
|
|
108
|
+
state?: string | undefined;
|
|
109
|
+
invoiceRef?: any;
|
|
110
|
+
evo_chat_sent?: boolean | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
invoiceId: string;
|
|
113
|
+
state?: string | undefined;
|
|
114
|
+
invoiceRef?: any;
|
|
115
|
+
evo_chat_sent?: boolean | undefined;
|
|
116
|
+
}>, "many">>;
|
|
85
117
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
86
118
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
87
119
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -89,6 +121,22 @@ export declare const zAppointmentPaymentSchema: z.ZodObject<{
|
|
|
89
121
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
122
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
91
123
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
124
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
invoiceId: z.ZodString;
|
|
126
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
127
|
+
state: z.ZodOptional<z.ZodString>;
|
|
128
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
invoiceId: string;
|
|
131
|
+
state?: string | undefined;
|
|
132
|
+
invoiceRef?: any;
|
|
133
|
+
evo_chat_sent?: boolean | undefined;
|
|
134
|
+
}, {
|
|
135
|
+
invoiceId: string;
|
|
136
|
+
state?: string | undefined;
|
|
137
|
+
invoiceRef?: any;
|
|
138
|
+
evo_chat_sent?: boolean | undefined;
|
|
139
|
+
}>, "many">>;
|
|
92
140
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
93
141
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
94
142
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -96,6 +144,22 @@ export declare const zAppointmentPaymentSchema: z.ZodObject<{
|
|
|
96
144
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
145
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
98
146
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
147
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
invoiceId: z.ZodString;
|
|
149
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
150
|
+
state: z.ZodOptional<z.ZodString>;
|
|
151
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
invoiceId: string;
|
|
154
|
+
state?: string | undefined;
|
|
155
|
+
invoiceRef?: any;
|
|
156
|
+
evo_chat_sent?: boolean | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
invoiceId: string;
|
|
159
|
+
state?: string | undefined;
|
|
160
|
+
invoiceRef?: any;
|
|
161
|
+
evo_chat_sent?: boolean | undefined;
|
|
162
|
+
}>, "many">>;
|
|
99
163
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
100
164
|
}, z.ZodTypeAny, "passthrough">>;
|
|
101
165
|
export declare const zAppointmentProcedureSchema: z.ZodObject<{
|
|
@@ -448,6 +512,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
448
512
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
449
513
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
450
514
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
515
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
516
|
+
invoiceId: z.ZodString;
|
|
517
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
518
|
+
state: z.ZodOptional<z.ZodString>;
|
|
519
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
520
|
+
}, "strip", z.ZodTypeAny, {
|
|
521
|
+
invoiceId: string;
|
|
522
|
+
state?: string | undefined;
|
|
523
|
+
invoiceRef?: any;
|
|
524
|
+
evo_chat_sent?: boolean | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
invoiceId: string;
|
|
527
|
+
state?: string | undefined;
|
|
528
|
+
invoiceRef?: any;
|
|
529
|
+
evo_chat_sent?: boolean | undefined;
|
|
530
|
+
}>, "many">>;
|
|
451
531
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
452
532
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
453
533
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -455,6 +535,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
455
535
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
456
536
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
457
537
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
538
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
|
+
invoiceId: z.ZodString;
|
|
540
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
541
|
+
state: z.ZodOptional<z.ZodString>;
|
|
542
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
543
|
+
}, "strip", z.ZodTypeAny, {
|
|
544
|
+
invoiceId: string;
|
|
545
|
+
state?: string | undefined;
|
|
546
|
+
invoiceRef?: any;
|
|
547
|
+
evo_chat_sent?: boolean | undefined;
|
|
548
|
+
}, {
|
|
549
|
+
invoiceId: string;
|
|
550
|
+
state?: string | undefined;
|
|
551
|
+
invoiceRef?: any;
|
|
552
|
+
evo_chat_sent?: boolean | undefined;
|
|
553
|
+
}>, "many">>;
|
|
458
554
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
459
555
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
460
556
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -462,6 +558,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
462
558
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
463
559
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
464
560
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
561
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
|
+
invoiceId: z.ZodString;
|
|
563
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
564
|
+
state: z.ZodOptional<z.ZodString>;
|
|
565
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
invoiceId: string;
|
|
568
|
+
state?: string | undefined;
|
|
569
|
+
invoiceRef?: any;
|
|
570
|
+
evo_chat_sent?: boolean | undefined;
|
|
571
|
+
}, {
|
|
572
|
+
invoiceId: string;
|
|
573
|
+
state?: string | undefined;
|
|
574
|
+
invoiceRef?: any;
|
|
575
|
+
evo_chat_sent?: boolean | undefined;
|
|
576
|
+
}>, "many">>;
|
|
465
577
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
466
578
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
467
579
|
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -736,6 +848,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
736
848
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
737
849
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
738
850
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
851
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
852
|
+
invoiceId: z.ZodString;
|
|
853
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
854
|
+
state: z.ZodOptional<z.ZodString>;
|
|
855
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
856
|
+
}, "strip", z.ZodTypeAny, {
|
|
857
|
+
invoiceId: string;
|
|
858
|
+
state?: string | undefined;
|
|
859
|
+
invoiceRef?: any;
|
|
860
|
+
evo_chat_sent?: boolean | undefined;
|
|
861
|
+
}, {
|
|
862
|
+
invoiceId: string;
|
|
863
|
+
state?: string | undefined;
|
|
864
|
+
invoiceRef?: any;
|
|
865
|
+
evo_chat_sent?: boolean | undefined;
|
|
866
|
+
}>, "many">>;
|
|
739
867
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
740
868
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
741
869
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -743,6 +871,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
743
871
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
744
872
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
745
873
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
874
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
875
|
+
invoiceId: z.ZodString;
|
|
876
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
877
|
+
state: z.ZodOptional<z.ZodString>;
|
|
878
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
879
|
+
}, "strip", z.ZodTypeAny, {
|
|
880
|
+
invoiceId: string;
|
|
881
|
+
state?: string | undefined;
|
|
882
|
+
invoiceRef?: any;
|
|
883
|
+
evo_chat_sent?: boolean | undefined;
|
|
884
|
+
}, {
|
|
885
|
+
invoiceId: string;
|
|
886
|
+
state?: string | undefined;
|
|
887
|
+
invoiceRef?: any;
|
|
888
|
+
evo_chat_sent?: boolean | undefined;
|
|
889
|
+
}>, "many">>;
|
|
746
890
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
747
891
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
748
892
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -750,6 +894,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
750
894
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
751
895
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
752
896
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
897
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
898
|
+
invoiceId: z.ZodString;
|
|
899
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
900
|
+
state: z.ZodOptional<z.ZodString>;
|
|
901
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
902
|
+
}, "strip", z.ZodTypeAny, {
|
|
903
|
+
invoiceId: string;
|
|
904
|
+
state?: string | undefined;
|
|
905
|
+
invoiceRef?: any;
|
|
906
|
+
evo_chat_sent?: boolean | undefined;
|
|
907
|
+
}, {
|
|
908
|
+
invoiceId: string;
|
|
909
|
+
state?: string | undefined;
|
|
910
|
+
invoiceRef?: any;
|
|
911
|
+
evo_chat_sent?: boolean | undefined;
|
|
912
|
+
}>, "many">>;
|
|
753
913
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
754
914
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
755
915
|
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1024,6 +1184,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
1024
1184
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1025
1185
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1026
1186
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1187
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1188
|
+
invoiceId: z.ZodString;
|
|
1189
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1190
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1191
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1192
|
+
}, "strip", z.ZodTypeAny, {
|
|
1193
|
+
invoiceId: string;
|
|
1194
|
+
state?: string | undefined;
|
|
1195
|
+
invoiceRef?: any;
|
|
1196
|
+
evo_chat_sent?: boolean | undefined;
|
|
1197
|
+
}, {
|
|
1198
|
+
invoiceId: string;
|
|
1199
|
+
state?: string | undefined;
|
|
1200
|
+
invoiceRef?: any;
|
|
1201
|
+
evo_chat_sent?: boolean | undefined;
|
|
1202
|
+
}>, "many">>;
|
|
1027
1203
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1028
1204
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1029
1205
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1031,6 +1207,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
1031
1207
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1032
1208
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1033
1209
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1210
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1211
|
+
invoiceId: z.ZodString;
|
|
1212
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1213
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1215
|
+
}, "strip", z.ZodTypeAny, {
|
|
1216
|
+
invoiceId: string;
|
|
1217
|
+
state?: string | undefined;
|
|
1218
|
+
invoiceRef?: any;
|
|
1219
|
+
evo_chat_sent?: boolean | undefined;
|
|
1220
|
+
}, {
|
|
1221
|
+
invoiceId: string;
|
|
1222
|
+
state?: string | undefined;
|
|
1223
|
+
invoiceRef?: any;
|
|
1224
|
+
evo_chat_sent?: boolean | undefined;
|
|
1225
|
+
}>, "many">>;
|
|
1034
1226
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1035
1227
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1036
1228
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1038,6 +1230,22 @@ export declare const zAppointmentSchema: z.ZodObject<{
|
|
|
1038
1230
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1039
1231
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1040
1232
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1233
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1234
|
+
invoiceId: z.ZodString;
|
|
1235
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1236
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1238
|
+
}, "strip", z.ZodTypeAny, {
|
|
1239
|
+
invoiceId: string;
|
|
1240
|
+
state?: string | undefined;
|
|
1241
|
+
invoiceRef?: any;
|
|
1242
|
+
evo_chat_sent?: boolean | undefined;
|
|
1243
|
+
}, {
|
|
1244
|
+
invoiceId: string;
|
|
1245
|
+
state?: string | undefined;
|
|
1246
|
+
invoiceRef?: any;
|
|
1247
|
+
evo_chat_sent?: boolean | undefined;
|
|
1248
|
+
}>, "many">>;
|
|
1041
1249
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1042
1250
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1043
1251
|
reschedules: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -1135,6 +1343,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1135
1343
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1136
1344
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1137
1345
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1346
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1347
|
+
invoiceId: z.ZodString;
|
|
1348
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1349
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1351
|
+
}, "strip", z.ZodTypeAny, {
|
|
1352
|
+
invoiceId: string;
|
|
1353
|
+
state?: string | undefined;
|
|
1354
|
+
invoiceRef?: any;
|
|
1355
|
+
evo_chat_sent?: boolean | undefined;
|
|
1356
|
+
}, {
|
|
1357
|
+
invoiceId: string;
|
|
1358
|
+
state?: string | undefined;
|
|
1359
|
+
invoiceRef?: any;
|
|
1360
|
+
evo_chat_sent?: boolean | undefined;
|
|
1361
|
+
}>, "many">>;
|
|
1138
1362
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1139
1363
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1140
1364
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1142,6 +1366,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1142
1366
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1143
1367
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1144
1368
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1369
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1370
|
+
invoiceId: z.ZodString;
|
|
1371
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1372
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1373
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1374
|
+
}, "strip", z.ZodTypeAny, {
|
|
1375
|
+
invoiceId: string;
|
|
1376
|
+
state?: string | undefined;
|
|
1377
|
+
invoiceRef?: any;
|
|
1378
|
+
evo_chat_sent?: boolean | undefined;
|
|
1379
|
+
}, {
|
|
1380
|
+
invoiceId: string;
|
|
1381
|
+
state?: string | undefined;
|
|
1382
|
+
invoiceRef?: any;
|
|
1383
|
+
evo_chat_sent?: boolean | undefined;
|
|
1384
|
+
}>, "many">>;
|
|
1145
1385
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1146
1386
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1147
1387
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1149,6 +1389,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1149
1389
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1150
1390
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1151
1391
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1392
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1393
|
+
invoiceId: z.ZodString;
|
|
1394
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1395
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1396
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1397
|
+
}, "strip", z.ZodTypeAny, {
|
|
1398
|
+
invoiceId: string;
|
|
1399
|
+
state?: string | undefined;
|
|
1400
|
+
invoiceRef?: any;
|
|
1401
|
+
evo_chat_sent?: boolean | undefined;
|
|
1402
|
+
}, {
|
|
1403
|
+
invoiceId: string;
|
|
1404
|
+
state?: string | undefined;
|
|
1405
|
+
invoiceRef?: any;
|
|
1406
|
+
evo_chat_sent?: boolean | undefined;
|
|
1407
|
+
}>, "many">>;
|
|
1152
1408
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1153
1409
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1154
1410
|
reschedule_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1171,6 +1427,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1171
1427
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1172
1428
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1173
1429
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1430
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1431
|
+
invoiceId: z.ZodString;
|
|
1432
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1433
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1435
|
+
}, "strip", z.ZodTypeAny, {
|
|
1436
|
+
invoiceId: string;
|
|
1437
|
+
state?: string | undefined;
|
|
1438
|
+
invoiceRef?: any;
|
|
1439
|
+
evo_chat_sent?: boolean | undefined;
|
|
1440
|
+
}, {
|
|
1441
|
+
invoiceId: string;
|
|
1442
|
+
state?: string | undefined;
|
|
1443
|
+
invoiceRef?: any;
|
|
1444
|
+
evo_chat_sent?: boolean | undefined;
|
|
1445
|
+
}>, "many">>;
|
|
1174
1446
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1175
1447
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1176
1448
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1178,6 +1450,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1178
1450
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1179
1451
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1180
1452
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1453
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1454
|
+
invoiceId: z.ZodString;
|
|
1455
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1456
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1458
|
+
}, "strip", z.ZodTypeAny, {
|
|
1459
|
+
invoiceId: string;
|
|
1460
|
+
state?: string | undefined;
|
|
1461
|
+
invoiceRef?: any;
|
|
1462
|
+
evo_chat_sent?: boolean | undefined;
|
|
1463
|
+
}, {
|
|
1464
|
+
invoiceId: string;
|
|
1465
|
+
state?: string | undefined;
|
|
1466
|
+
invoiceRef?: any;
|
|
1467
|
+
evo_chat_sent?: boolean | undefined;
|
|
1468
|
+
}>, "many">>;
|
|
1181
1469
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1182
1470
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1183
1471
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1185,6 +1473,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1185
1473
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1186
1474
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1187
1475
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1476
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1477
|
+
invoiceId: z.ZodString;
|
|
1478
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1479
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1481
|
+
}, "strip", z.ZodTypeAny, {
|
|
1482
|
+
invoiceId: string;
|
|
1483
|
+
state?: string | undefined;
|
|
1484
|
+
invoiceRef?: any;
|
|
1485
|
+
evo_chat_sent?: boolean | undefined;
|
|
1486
|
+
}, {
|
|
1487
|
+
invoiceId: string;
|
|
1488
|
+
state?: string | undefined;
|
|
1489
|
+
invoiceRef?: any;
|
|
1490
|
+
evo_chat_sent?: boolean | undefined;
|
|
1491
|
+
}>, "many">>;
|
|
1188
1492
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1189
1493
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1190
1494
|
reschedule_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1207,6 +1511,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1207
1511
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1208
1512
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1209
1513
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1514
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1515
|
+
invoiceId: z.ZodString;
|
|
1516
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1517
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1518
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1519
|
+
}, "strip", z.ZodTypeAny, {
|
|
1520
|
+
invoiceId: string;
|
|
1521
|
+
state?: string | undefined;
|
|
1522
|
+
invoiceRef?: any;
|
|
1523
|
+
evo_chat_sent?: boolean | undefined;
|
|
1524
|
+
}, {
|
|
1525
|
+
invoiceId: string;
|
|
1526
|
+
state?: string | undefined;
|
|
1527
|
+
invoiceRef?: any;
|
|
1528
|
+
evo_chat_sent?: boolean | undefined;
|
|
1529
|
+
}>, "many">>;
|
|
1210
1530
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1211
1531
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1212
1532
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1214,6 +1534,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1214
1534
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1215
1535
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1216
1536
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1537
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1538
|
+
invoiceId: z.ZodString;
|
|
1539
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1540
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1542
|
+
}, "strip", z.ZodTypeAny, {
|
|
1543
|
+
invoiceId: string;
|
|
1544
|
+
state?: string | undefined;
|
|
1545
|
+
invoiceRef?: any;
|
|
1546
|
+
evo_chat_sent?: boolean | undefined;
|
|
1547
|
+
}, {
|
|
1548
|
+
invoiceId: string;
|
|
1549
|
+
state?: string | undefined;
|
|
1550
|
+
invoiceRef?: any;
|
|
1551
|
+
evo_chat_sent?: boolean | undefined;
|
|
1552
|
+
}>, "many">>;
|
|
1217
1553
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1218
1554
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1219
1555
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1221,6 +1557,22 @@ export declare const zPatientAppointmentSchema: z.ZodObject<{
|
|
|
1221
1557
|
due: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1222
1558
|
status: z.ZodOptional<z.ZodEnum<["paid", "partial", "pending", "not_informed"]>>;
|
|
1223
1559
|
payment_type: z.ZodEnum<["patient", "insurance"]>;
|
|
1560
|
+
invoices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1561
|
+
invoiceId: z.ZodString;
|
|
1562
|
+
invoiceRef: z.ZodOptional<z.ZodAny>;
|
|
1563
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1564
|
+
evo_chat_sent: z.ZodOptional<z.ZodBoolean>;
|
|
1565
|
+
}, "strip", z.ZodTypeAny, {
|
|
1566
|
+
invoiceId: string;
|
|
1567
|
+
state?: string | undefined;
|
|
1568
|
+
invoiceRef?: any;
|
|
1569
|
+
evo_chat_sent?: boolean | undefined;
|
|
1570
|
+
}, {
|
|
1571
|
+
invoiceId: string;
|
|
1572
|
+
state?: string | undefined;
|
|
1573
|
+
invoiceRef?: any;
|
|
1574
|
+
evo_chat_sent?: boolean | undefined;
|
|
1575
|
+
}>, "many">>;
|
|
1224
1576
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1225
1577
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1226
1578
|
reschedule_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zPatientAppointmentSchema = exports.zAppointmentSchema = exports.zAppointmentSpecialtySchema = exports.zAppointmentRescheduleSchema = exports.zAppointmentAppointmentSourceSchema = exports.zAppointmentAppointmentRequestTypeSchema = exports.zAppointmentProcedureSchema = exports.zAppointmentPaymentSchema = exports.zAppointmentInsuranceSchema = exports.zAppointmentProfessionalSchema = exports.zAppointmentPatientSchema = exports.zAppointmentAddressSchema = exports.zAppointmentTypeBaseSchema = exports.zAppointmentModeSchema = exports.zAppointmentStatusTypeSchema = exports.zAppointmentPaymentStatusSchema = void 0;
|
|
3
|
+
exports.zPatientAppointmentSchema = exports.zAppointmentSchema = exports.zAppointmentSpecialtySchema = exports.zAppointmentRescheduleSchema = exports.zAppointmentAppointmentSourceSchema = exports.zAppointmentAppointmentRequestTypeSchema = exports.zAppointmentProcedureSchema = exports.zAppointmentPaymentSchema = exports.zAppointmentPaymentInvoiceRefSchema = exports.zAppointmentInsuranceSchema = exports.zAppointmentProfessionalSchema = exports.zAppointmentPatientSchema = exports.zAppointmentAddressSchema = exports.zAppointmentTypeBaseSchema = exports.zAppointmentModeSchema = exports.zAppointmentStatusTypeSchema = exports.zAppointmentPaymentStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
// Enums para validação
|
|
@@ -85,6 +85,13 @@ exports.zAppointmentInsuranceSchema = zod_1.z
|
|
|
85
85
|
insuranceRef: zod_1.z.any().optional(), // FirestoreDocumentReference
|
|
86
86
|
})
|
|
87
87
|
.passthrough();
|
|
88
|
+
// Schema para referência a invoice evo-finops no pagamento
|
|
89
|
+
exports.zAppointmentPaymentInvoiceRefSchema = zod_1.z.object({
|
|
90
|
+
invoiceId: zod_1.z.string().min(1),
|
|
91
|
+
invoiceRef: zod_1.z.any().optional(), // FirestoreDocumentReference
|
|
92
|
+
state: zod_1.z.string().optional(), // Réplica do state da invoice (DRAFT, SENT, AUTHORIZED, etc.)
|
|
93
|
+
evo_chat_sent: zod_1.z.boolean().optional(), // Indica se a invoice foi enviada (ex.: via evo-chat)
|
|
94
|
+
});
|
|
88
95
|
// Schema para pagamento
|
|
89
96
|
exports.zAppointmentPaymentSchema = zod_1.z
|
|
90
97
|
.object({
|
|
@@ -93,6 +100,7 @@ exports.zAppointmentPaymentSchema = zod_1.z
|
|
|
93
100
|
due: zod_1.z.number().nullable().optional(),
|
|
94
101
|
status: exports.zAppointmentPaymentStatusSchema.optional(),
|
|
95
102
|
payment_type: zod_1.z.enum(["patient", "insurance"]),
|
|
103
|
+
invoices: zod_1.z.array(exports.zAppointmentPaymentInvoiceRefSchema).optional(),
|
|
96
104
|
metadata: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
97
105
|
})
|
|
98
106
|
.passthrough();
|
|
@@ -95,6 +95,14 @@ export const zAppointmentInsuranceSchema = z
|
|
|
95
95
|
})
|
|
96
96
|
.passthrough();
|
|
97
97
|
|
|
98
|
+
// Schema para referência a invoice evo-finops no pagamento
|
|
99
|
+
export const zAppointmentPaymentInvoiceRefSchema = z.object({
|
|
100
|
+
invoiceId: z.string().min(1),
|
|
101
|
+
invoiceRef: z.any().optional(), // FirestoreDocumentReference
|
|
102
|
+
state: z.string().optional(), // Réplica do state da invoice (DRAFT, SENT, AUTHORIZED, etc.)
|
|
103
|
+
evo_chat_sent: z.boolean().optional(), // Indica se a invoice foi enviada (ex.: via evo-chat)
|
|
104
|
+
});
|
|
105
|
+
|
|
98
106
|
// Schema para pagamento
|
|
99
107
|
export const zAppointmentPaymentSchema = z
|
|
100
108
|
.object({
|
|
@@ -103,6 +111,7 @@ export const zAppointmentPaymentSchema = z
|
|
|
103
111
|
due: z.number().nullable().optional(),
|
|
104
112
|
status: zAppointmentPaymentStatusSchema.optional(),
|
|
105
113
|
payment_type: z.enum(["patient", "insurance"]),
|
|
114
|
+
invoices: z.array(zAppointmentPaymentInvoiceRefSchema).optional(),
|
|
106
115
|
metadata: z.record(z.unknown()).optional(),
|
|
107
116
|
})
|
|
108
117
|
.passthrough();
|
|
@@ -68,12 +68,25 @@ export declare const PaymentTypeEnum: {
|
|
|
68
68
|
readonly Insurance: "insurance";
|
|
69
69
|
};
|
|
70
70
|
export type PaymentType = (typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
|
|
71
|
+
/** Referência a uma invoice do evo-finops vinculada a este pagamento. */
|
|
72
|
+
export interface IAppointmentPaymentInvoiceRef {
|
|
73
|
+
/** ID do documento na coleção tenants/{tenant}/apps/evo-finops/invoices */
|
|
74
|
+
invoiceId: string;
|
|
75
|
+
/** Referência Firestore para o documento da invoice (opcional, para serialização) */
|
|
76
|
+
invoiceRef?: FirestoreDocumentReference;
|
|
77
|
+
/** Réplica do state da invoice (DRAFT, SENT, SCHEDULED, AUTHORIZED, CANCELED, etc.) */
|
|
78
|
+
state?: string;
|
|
79
|
+
/** Indica se a invoice foi enviada ao contato (ex.: via evo-chat/WhatsApp) */
|
|
80
|
+
evo_chat_sent?: boolean;
|
|
81
|
+
}
|
|
71
82
|
export interface IAppointmentPayment {
|
|
72
83
|
total?: number | null;
|
|
73
84
|
paid?: number | null;
|
|
74
85
|
due?: number | null;
|
|
75
86
|
status?: AppointmentPaymentStatus;
|
|
76
87
|
payment_type: PaymentType;
|
|
88
|
+
/** Correspondência com invoices do evo-finops (NFSe) vinculadas a este pagamento */
|
|
89
|
+
invoices?: IAppointmentPaymentInvoiceRef[];
|
|
77
90
|
metadata?: Record<string, unknown>;
|
|
78
91
|
[key: string]: unknown;
|
|
79
92
|
}
|
|
@@ -99,6 +99,18 @@ export const PaymentTypeEnum = {
|
|
|
99
99
|
export type PaymentType =
|
|
100
100
|
(typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
|
|
101
101
|
|
|
102
|
+
/** Referência a uma invoice do evo-finops vinculada a este pagamento. */
|
|
103
|
+
export interface IAppointmentPaymentInvoiceRef {
|
|
104
|
+
/** ID do documento na coleção tenants/{tenant}/apps/evo-finops/invoices */
|
|
105
|
+
invoiceId: string;
|
|
106
|
+
/** Referência Firestore para o documento da invoice (opcional, para serialização) */
|
|
107
|
+
invoiceRef?: FirestoreDocumentReference;
|
|
108
|
+
/** Réplica do state da invoice (DRAFT, SENT, SCHEDULED, AUTHORIZED, CANCELED, etc.) */
|
|
109
|
+
state?: string;
|
|
110
|
+
/** Indica se a invoice foi enviada ao contato (ex.: via evo-chat/WhatsApp) */
|
|
111
|
+
evo_chat_sent?: boolean;
|
|
112
|
+
}
|
|
113
|
+
|
|
102
114
|
// Interface para pagamento
|
|
103
115
|
export interface IAppointmentPayment {
|
|
104
116
|
total?: number | null;
|
|
@@ -106,6 +118,8 @@ export interface IAppointmentPayment {
|
|
|
106
118
|
due?: number | null;
|
|
107
119
|
status?: AppointmentPaymentStatus;
|
|
108
120
|
payment_type: PaymentType;
|
|
121
|
+
/** Correspondência com invoices do evo-finops (NFSe) vinculadas a este pagamento */
|
|
122
|
+
invoices?: IAppointmentPaymentInvoiceRef[];
|
|
109
123
|
metadata?: Record<string, unknown>;
|
|
110
124
|
[key: string]: unknown;
|
|
111
125
|
}
|