evo360-types 1.3.55 → 1.3.62
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 +38 -32
- package/dist/apps/evo-med/appointment/zod-schemas.js +22 -11
- package/dist/apps/evo-med/appointment/zod-schemas.ts +21 -10
- package/dist/apps/evo-med/procedure/zod-schemas.d.ts +3 -0
- package/dist/apps/evo-med/procedure/zod-schemas.js +1 -0
- package/dist/apps/evo-med/procedure/zod-schemas.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.ts +2 -0
- package/dist/types/evo-med/appointment/index.d.ts +12 -1
- package/dist/types/evo-med/appointment/index.js +13 -4
- package/dist/types/evo-med/appointment/index.ts +15 -4
- package/dist/types/evo-med/procedure/index.d.ts +1 -0
- package/dist/types/evo-med/procedure/index.ts +1 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const zPaymentStatusSchema: z.ZodEnum<["paid", "partial", "pending", "not_informed"]>;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const zMedAppointmentStatusSchema: z.ZodEnum<["scheduled", "confirmed", "completed", "pre_checkin", "waiting", "no_show", "cancelled", "extra_slot", "in_progress", "rescheduled"]>;
|
|
4
4
|
export declare const zAppointmentModeSchema: z.ZodEnum<["telemedicine", "in_person"]>;
|
|
5
|
-
export declare const zAppointmentTypeSchema: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up"]>;
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const zAppointmentTypeSchema: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>;
|
|
6
|
+
export declare const zAppointmentAddressSchema: z.ZodObject<{
|
|
7
7
|
address_name: z.ZodOptional<z.ZodString>;
|
|
8
8
|
address_line1: z.ZodOptional<z.ZodString>;
|
|
9
9
|
address_line2: z.ZodOptional<z.ZodString>;
|
|
@@ -40,10 +40,10 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
40
40
|
address_geo?: any;
|
|
41
41
|
address_name?: string | undefined;
|
|
42
42
|
}>;
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const zAppointmentPatientSchema: z.ZodObject<{
|
|
44
44
|
id: z.ZodNullable<z.ZodNumber>;
|
|
45
45
|
name: z.ZodNullable<z.ZodString>;
|
|
46
|
-
email: z.ZodDefault<z.
|
|
46
|
+
email: z.ZodDefault<z.ZodString>;
|
|
47
47
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
48
48
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
49
49
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -52,7 +52,7 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
52
52
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
53
53
|
id: z.ZodNullable<z.ZodNumber>;
|
|
54
54
|
name: z.ZodNullable<z.ZodString>;
|
|
55
|
-
email: z.ZodDefault<z.
|
|
55
|
+
email: z.ZodDefault<z.ZodString>;
|
|
56
56
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
57
57
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
58
58
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -61,29 +61,29 @@ export declare const zPatientSchema: z.ZodObject<{
|
|
|
61
61
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
62
62
|
id: z.ZodNullable<z.ZodNumber>;
|
|
63
63
|
name: z.ZodNullable<z.ZodString>;
|
|
64
|
-
email: z.ZodDefault<z.
|
|
64
|
+
email: z.ZodDefault<z.ZodString>;
|
|
65
65
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
66
66
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
67
67
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
68
68
|
wabaPhone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
69
69
|
external_id: z.ZodOptional<z.ZodString>;
|
|
70
70
|
}, z.ZodTypeAny, "passthrough">>;
|
|
71
|
-
export declare const
|
|
71
|
+
export declare const zAppointmentProfessionalSchema: z.ZodObject<{
|
|
72
72
|
id: z.ZodNumber;
|
|
73
73
|
name: z.ZodString;
|
|
74
|
-
email: z.ZodDefault<z.
|
|
74
|
+
email: z.ZodDefault<z.ZodString>;
|
|
75
75
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
76
76
|
external_id: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
78
78
|
id: z.ZodNumber;
|
|
79
79
|
name: z.ZodString;
|
|
80
|
-
email: z.ZodDefault<z.
|
|
80
|
+
email: z.ZodDefault<z.ZodString>;
|
|
81
81
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
82
82
|
external_id: z.ZodOptional<z.ZodString>;
|
|
83
83
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
84
84
|
id: z.ZodNumber;
|
|
85
85
|
name: z.ZodString;
|
|
86
|
-
email: z.ZodDefault<z.
|
|
86
|
+
email: z.ZodDefault<z.ZodString>;
|
|
87
87
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
88
88
|
external_id: z.ZodOptional<z.ZodString>;
|
|
89
89
|
}, z.ZodTypeAny, "passthrough">>;
|
|
@@ -145,9 +145,11 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
145
145
|
startDate: z.ZodString;
|
|
146
146
|
endDate: z.ZodString;
|
|
147
147
|
status: z.ZodEnum<["scheduled", "confirmed", "completed", "pre_checkin", "waiting", "no_show", "cancelled", "extra_slot", "in_progress", "rescheduled"]>;
|
|
148
|
+
statusCaption: z.ZodString;
|
|
148
149
|
notes: z.ZodOptional<z.ZodString>;
|
|
149
150
|
appointmentMode: z.ZodEnum<["telemedicine", "in_person"]>;
|
|
150
|
-
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up"]>;
|
|
151
|
+
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>;
|
|
152
|
+
appointmentTypeCaption: z.ZodString;
|
|
151
153
|
specialty: z.ZodOptional<z.ZodString>;
|
|
152
154
|
address: z.ZodOptional<z.ZodObject<{
|
|
153
155
|
address_name: z.ZodOptional<z.ZodString>;
|
|
@@ -208,7 +210,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
208
210
|
patient: z.ZodObject<{
|
|
209
211
|
id: z.ZodNullable<z.ZodNumber>;
|
|
210
212
|
name: z.ZodNullable<z.ZodString>;
|
|
211
|
-
email: z.ZodDefault<z.
|
|
213
|
+
email: z.ZodDefault<z.ZodString>;
|
|
212
214
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
213
215
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
214
216
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -217,7 +219,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
217
219
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
218
220
|
id: z.ZodNullable<z.ZodNumber>;
|
|
219
221
|
name: z.ZodNullable<z.ZodString>;
|
|
220
|
-
email: z.ZodDefault<z.
|
|
222
|
+
email: z.ZodDefault<z.ZodString>;
|
|
221
223
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
222
224
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
223
225
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -226,7 +228,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
226
228
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
227
229
|
id: z.ZodNullable<z.ZodNumber>;
|
|
228
230
|
name: z.ZodNullable<z.ZodString>;
|
|
229
|
-
email: z.ZodDefault<z.
|
|
231
|
+
email: z.ZodDefault<z.ZodString>;
|
|
230
232
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
231
233
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
232
234
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -236,19 +238,19 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
236
238
|
professional: z.ZodOptional<z.ZodObject<{
|
|
237
239
|
id: z.ZodNumber;
|
|
238
240
|
name: z.ZodString;
|
|
239
|
-
email: z.ZodDefault<z.
|
|
241
|
+
email: z.ZodDefault<z.ZodString>;
|
|
240
242
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
241
243
|
external_id: z.ZodOptional<z.ZodString>;
|
|
242
244
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
243
245
|
id: z.ZodNumber;
|
|
244
246
|
name: z.ZodString;
|
|
245
|
-
email: z.ZodDefault<z.
|
|
247
|
+
email: z.ZodDefault<z.ZodString>;
|
|
246
248
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
247
249
|
external_id: z.ZodOptional<z.ZodString>;
|
|
248
250
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
249
251
|
id: z.ZodNumber;
|
|
250
252
|
name: z.ZodString;
|
|
251
|
-
email: z.ZodDefault<z.
|
|
253
|
+
email: z.ZodDefault<z.ZodString>;
|
|
252
254
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
253
255
|
external_id: z.ZodOptional<z.ZodString>;
|
|
254
256
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -313,9 +315,11 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
313
315
|
startDate: z.ZodString;
|
|
314
316
|
endDate: z.ZodString;
|
|
315
317
|
status: z.ZodEnum<["scheduled", "confirmed", "completed", "pre_checkin", "waiting", "no_show", "cancelled", "extra_slot", "in_progress", "rescheduled"]>;
|
|
318
|
+
statusCaption: z.ZodString;
|
|
316
319
|
notes: z.ZodOptional<z.ZodString>;
|
|
317
320
|
appointmentMode: z.ZodEnum<["telemedicine", "in_person"]>;
|
|
318
|
-
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up"]>;
|
|
321
|
+
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>;
|
|
322
|
+
appointmentTypeCaption: z.ZodString;
|
|
319
323
|
specialty: z.ZodOptional<z.ZodString>;
|
|
320
324
|
address: z.ZodOptional<z.ZodObject<{
|
|
321
325
|
address_name: z.ZodOptional<z.ZodString>;
|
|
@@ -376,7 +380,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
376
380
|
patient: z.ZodObject<{
|
|
377
381
|
id: z.ZodNullable<z.ZodNumber>;
|
|
378
382
|
name: z.ZodNullable<z.ZodString>;
|
|
379
|
-
email: z.ZodDefault<z.
|
|
383
|
+
email: z.ZodDefault<z.ZodString>;
|
|
380
384
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
381
385
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
382
386
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -385,7 +389,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
385
389
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
386
390
|
id: z.ZodNullable<z.ZodNumber>;
|
|
387
391
|
name: z.ZodNullable<z.ZodString>;
|
|
388
|
-
email: z.ZodDefault<z.
|
|
392
|
+
email: z.ZodDefault<z.ZodString>;
|
|
389
393
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
390
394
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
391
395
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -394,7 +398,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
394
398
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
395
399
|
id: z.ZodNullable<z.ZodNumber>;
|
|
396
400
|
name: z.ZodNullable<z.ZodString>;
|
|
397
|
-
email: z.ZodDefault<z.
|
|
401
|
+
email: z.ZodDefault<z.ZodString>;
|
|
398
402
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
399
403
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
400
404
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -404,19 +408,19 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
404
408
|
professional: z.ZodOptional<z.ZodObject<{
|
|
405
409
|
id: z.ZodNumber;
|
|
406
410
|
name: z.ZodString;
|
|
407
|
-
email: z.ZodDefault<z.
|
|
411
|
+
email: z.ZodDefault<z.ZodString>;
|
|
408
412
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
409
413
|
external_id: z.ZodOptional<z.ZodString>;
|
|
410
414
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
411
415
|
id: z.ZodNumber;
|
|
412
416
|
name: z.ZodString;
|
|
413
|
-
email: z.ZodDefault<z.
|
|
417
|
+
email: z.ZodDefault<z.ZodString>;
|
|
414
418
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
415
419
|
external_id: z.ZodOptional<z.ZodString>;
|
|
416
420
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
417
421
|
id: z.ZodNumber;
|
|
418
422
|
name: z.ZodString;
|
|
419
|
-
email: z.ZodDefault<z.
|
|
423
|
+
email: z.ZodDefault<z.ZodString>;
|
|
420
424
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
421
425
|
external_id: z.ZodOptional<z.ZodString>;
|
|
422
426
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -481,9 +485,11 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
481
485
|
startDate: z.ZodString;
|
|
482
486
|
endDate: z.ZodString;
|
|
483
487
|
status: z.ZodEnum<["scheduled", "confirmed", "completed", "pre_checkin", "waiting", "no_show", "cancelled", "extra_slot", "in_progress", "rescheduled"]>;
|
|
488
|
+
statusCaption: z.ZodString;
|
|
484
489
|
notes: z.ZodOptional<z.ZodString>;
|
|
485
490
|
appointmentMode: z.ZodEnum<["telemedicine", "in_person"]>;
|
|
486
|
-
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up"]>;
|
|
491
|
+
appointmentType: z.ZodEnum<["blocked", "consultation", "procedure", "follow_up", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>;
|
|
492
|
+
appointmentTypeCaption: z.ZodString;
|
|
487
493
|
specialty: z.ZodOptional<z.ZodString>;
|
|
488
494
|
address: z.ZodOptional<z.ZodObject<{
|
|
489
495
|
address_name: z.ZodOptional<z.ZodString>;
|
|
@@ -544,7 +550,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
544
550
|
patient: z.ZodObject<{
|
|
545
551
|
id: z.ZodNullable<z.ZodNumber>;
|
|
546
552
|
name: z.ZodNullable<z.ZodString>;
|
|
547
|
-
email: z.ZodDefault<z.
|
|
553
|
+
email: z.ZodDefault<z.ZodString>;
|
|
548
554
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
549
555
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
550
556
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -553,7 +559,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
553
559
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
554
560
|
id: z.ZodNullable<z.ZodNumber>;
|
|
555
561
|
name: z.ZodNullable<z.ZodString>;
|
|
556
|
-
email: z.ZodDefault<z.
|
|
562
|
+
email: z.ZodDefault<z.ZodString>;
|
|
557
563
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
558
564
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
559
565
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -562,7 +568,7 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
562
568
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
563
569
|
id: z.ZodNullable<z.ZodNumber>;
|
|
564
570
|
name: z.ZodNullable<z.ZodString>;
|
|
565
|
-
email: z.ZodDefault<z.
|
|
571
|
+
email: z.ZodDefault<z.ZodString>;
|
|
566
572
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
567
573
|
birthDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
568
574
|
phone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -572,19 +578,19 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
572
578
|
professional: z.ZodOptional<z.ZodObject<{
|
|
573
579
|
id: z.ZodNumber;
|
|
574
580
|
name: z.ZodString;
|
|
575
|
-
email: z.ZodDefault<z.
|
|
581
|
+
email: z.ZodDefault<z.ZodString>;
|
|
576
582
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
577
583
|
external_id: z.ZodOptional<z.ZodString>;
|
|
578
584
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
579
585
|
id: z.ZodNumber;
|
|
580
586
|
name: z.ZodString;
|
|
581
|
-
email: z.ZodDefault<z.
|
|
587
|
+
email: z.ZodDefault<z.ZodString>;
|
|
582
588
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
583
589
|
external_id: z.ZodOptional<z.ZodString>;
|
|
584
590
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
585
591
|
id: z.ZodNumber;
|
|
586
592
|
name: z.ZodString;
|
|
587
|
-
email: z.ZodDefault<z.
|
|
593
|
+
email: z.ZodDefault<z.ZodString>;
|
|
588
594
|
gender: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
589
595
|
external_id: z.ZodOptional<z.ZodString>;
|
|
590
596
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zAppointmentSchema = exports.zProcedureSchema = exports.zPaymentSchema = exports.zInsuranceSchema = exports.
|
|
3
|
+
exports.zAppointmentSchema = exports.zProcedureSchema = exports.zPaymentSchema = exports.zInsuranceSchema = exports.zAppointmentProfessionalSchema = exports.zAppointmentPatientSchema = exports.zAppointmentAddressSchema = exports.zAppointmentTypeSchema = exports.zAppointmentModeSchema = exports.zMedAppointmentStatusSchema = exports.zPaymentStatusSchema = 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
|
|
@@ -10,7 +10,7 @@ exports.zPaymentStatusSchema = zod_1.z.enum([
|
|
|
10
10
|
"pending",
|
|
11
11
|
"not_informed",
|
|
12
12
|
]);
|
|
13
|
-
exports.
|
|
13
|
+
exports.zMedAppointmentStatusSchema = zod_1.z.enum([
|
|
14
14
|
"scheduled",
|
|
15
15
|
"confirmed",
|
|
16
16
|
"completed",
|
|
@@ -28,9 +28,18 @@ exports.zAppointmentTypeSchema = zod_1.z.enum([
|
|
|
28
28
|
"consultation",
|
|
29
29
|
"procedure",
|
|
30
30
|
"follow_up",
|
|
31
|
+
"surgery",
|
|
32
|
+
"exam",
|
|
33
|
+
"evaluation",
|
|
34
|
+
"emergency",
|
|
35
|
+
"check_up",
|
|
36
|
+
"vaccination",
|
|
37
|
+
"fit_test",
|
|
38
|
+
"therapy",
|
|
39
|
+
"meeting",
|
|
31
40
|
]);
|
|
32
41
|
// Schema para endereço
|
|
33
|
-
exports.
|
|
42
|
+
exports.zAppointmentAddressSchema = zod_1.z.object({
|
|
34
43
|
address_name: zod_1.z.string().optional(),
|
|
35
44
|
address_line1: zod_1.z.string().optional(),
|
|
36
45
|
address_line2: zod_1.z.string().optional(),
|
|
@@ -44,11 +53,11 @@ exports.zAddressSchema = zod_1.z.object({
|
|
|
44
53
|
address_geo: zod_1.z.any().optional(), // IGeoPoint
|
|
45
54
|
});
|
|
46
55
|
// Schema para paciente
|
|
47
|
-
exports.
|
|
56
|
+
exports.zAppointmentPatientSchema = zod_1.z
|
|
48
57
|
.object({
|
|
49
58
|
id: zod_1.z.number().nullable(),
|
|
50
59
|
name: zod_1.z.string().nullable(),
|
|
51
|
-
email: zod_1.z.string().email().
|
|
60
|
+
email: zod_1.z.string().email().default(""),
|
|
52
61
|
gender: zod_1.z.string().optional().default(""),
|
|
53
62
|
birthDate: zod_1.z.string().optional().default(""),
|
|
54
63
|
phone: zod_1.z.string().optional().default(""),
|
|
@@ -57,11 +66,11 @@ exports.zPatientSchema = zod_1.z
|
|
|
57
66
|
})
|
|
58
67
|
.passthrough();
|
|
59
68
|
// Schema para profissional
|
|
60
|
-
exports.
|
|
69
|
+
exports.zAppointmentProfessionalSchema = zod_1.z
|
|
61
70
|
.object({
|
|
62
71
|
id: zod_1.z.number(),
|
|
63
72
|
name: zod_1.z.string(),
|
|
64
|
-
email: zod_1.z.string().email().
|
|
73
|
+
email: zod_1.z.string().email().default(""),
|
|
65
74
|
gender: zod_1.z.string().optional().default(""),
|
|
66
75
|
external_id: zod_1.z.string().optional(),
|
|
67
76
|
})
|
|
@@ -96,15 +105,17 @@ exports.zAppointmentSchema = zod_schemas_1.zFireDocSchema
|
|
|
96
105
|
calendarId: zod_1.z.number(),
|
|
97
106
|
startDate: zod_1.z.string().datetime(), // ISO string
|
|
98
107
|
endDate: zod_1.z.string().datetime(), // ISO string
|
|
99
|
-
status: exports.
|
|
108
|
+
status: exports.zMedAppointmentStatusSchema,
|
|
109
|
+
statusCaption: zod_1.z.string(),
|
|
100
110
|
notes: zod_1.z.string().optional(),
|
|
101
111
|
appointmentMode: exports.zAppointmentModeSchema,
|
|
102
112
|
appointmentType: exports.zAppointmentTypeSchema,
|
|
113
|
+
appointmentTypeCaption: zod_1.z.string(),
|
|
103
114
|
specialty: zod_1.z.string().optional(),
|
|
104
|
-
address: exports.
|
|
115
|
+
address: exports.zAppointmentAddressSchema.optional(),
|
|
105
116
|
procedures: zod_1.z.array(exports.zProcedureSchema).optional(),
|
|
106
|
-
patient: exports.
|
|
107
|
-
professional: exports.
|
|
117
|
+
patient: exports.zAppointmentPatientSchema,
|
|
118
|
+
professional: exports.zAppointmentProfessionalSchema.optional(),
|
|
108
119
|
insurance: exports.zInsuranceSchema.optional(),
|
|
109
120
|
payment: exports.zPaymentSchema.optional(),
|
|
110
121
|
// Propriedades para controle de rascunho
|
|
@@ -9,7 +9,7 @@ export const zPaymentStatusSchema = z.enum([
|
|
|
9
9
|
"not_informed",
|
|
10
10
|
]);
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const zMedAppointmentStatusSchema = z.enum([
|
|
13
13
|
"scheduled",
|
|
14
14
|
"confirmed",
|
|
15
15
|
"completed",
|
|
@@ -29,10 +29,19 @@ export const zAppointmentTypeSchema = z.enum([
|
|
|
29
29
|
"consultation",
|
|
30
30
|
"procedure",
|
|
31
31
|
"follow_up",
|
|
32
|
+
"surgery",
|
|
33
|
+
"exam",
|
|
34
|
+
"evaluation",
|
|
35
|
+
"emergency",
|
|
36
|
+
"check_up",
|
|
37
|
+
"vaccination",
|
|
38
|
+
"fit_test",
|
|
39
|
+
"therapy",
|
|
40
|
+
"meeting",
|
|
32
41
|
]);
|
|
33
42
|
|
|
34
43
|
// Schema para endereço
|
|
35
|
-
export const
|
|
44
|
+
export const zAppointmentAddressSchema = z.object({
|
|
36
45
|
address_name: z.string().optional(),
|
|
37
46
|
address_line1: z.string().optional(),
|
|
38
47
|
address_line2: z.string().optional(),
|
|
@@ -47,11 +56,11 @@ export const zAddressSchema = z.object({
|
|
|
47
56
|
});
|
|
48
57
|
|
|
49
58
|
// Schema para paciente
|
|
50
|
-
export const
|
|
59
|
+
export const zAppointmentPatientSchema = z
|
|
51
60
|
.object({
|
|
52
61
|
id: z.number().nullable(),
|
|
53
62
|
name: z.string().nullable(),
|
|
54
|
-
email: z.string().email().
|
|
63
|
+
email: z.string().email().default(""),
|
|
55
64
|
gender: z.string().optional().default(""),
|
|
56
65
|
birthDate: z.string().optional().default(""),
|
|
57
66
|
phone: z.string().optional().default(""),
|
|
@@ -61,11 +70,11 @@ export const zPatientSchema = z
|
|
|
61
70
|
.passthrough();
|
|
62
71
|
|
|
63
72
|
// Schema para profissional
|
|
64
|
-
export const
|
|
73
|
+
export const zAppointmentProfessionalSchema = z
|
|
65
74
|
.object({
|
|
66
75
|
id: z.number(),
|
|
67
76
|
name: z.string(),
|
|
68
|
-
email: z.string().email().
|
|
77
|
+
email: z.string().email().default(""),
|
|
69
78
|
gender: z.string().optional().default(""),
|
|
70
79
|
external_id: z.string().optional(),
|
|
71
80
|
})
|
|
@@ -104,15 +113,17 @@ export const zAppointmentSchema = zFireDocSchema
|
|
|
104
113
|
calendarId: z.number(),
|
|
105
114
|
startDate: z.string().datetime(), // ISO string
|
|
106
115
|
endDate: z.string().datetime(), // ISO string
|
|
107
|
-
status:
|
|
116
|
+
status: zMedAppointmentStatusSchema,
|
|
117
|
+
statusCaption: z.string(),
|
|
108
118
|
notes: z.string().optional(),
|
|
109
119
|
appointmentMode: zAppointmentModeSchema,
|
|
110
120
|
appointmentType: zAppointmentTypeSchema,
|
|
121
|
+
appointmentTypeCaption: z.string(),
|
|
111
122
|
specialty: z.string().optional(),
|
|
112
|
-
address:
|
|
123
|
+
address: zAppointmentAddressSchema.optional(),
|
|
113
124
|
procedures: z.array(zProcedureSchema).optional(),
|
|
114
|
-
patient:
|
|
115
|
-
professional:
|
|
125
|
+
patient: zAppointmentPatientSchema,
|
|
126
|
+
professional: zAppointmentProfessionalSchema.optional(),
|
|
116
127
|
insurance: zInsuranceSchema.optional(),
|
|
117
128
|
payment: zPaymentSchema.optional(),
|
|
118
129
|
|
|
@@ -85,6 +85,7 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
85
85
|
acronym: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
86
86
|
description: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
87
87
|
tuss: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
88
|
+
price: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
88
89
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
89
90
|
name: z.ZodString;
|
|
90
91
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -119,6 +120,7 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
119
120
|
technical_name: string;
|
|
120
121
|
duration: number | null;
|
|
121
122
|
tuss: string | null;
|
|
123
|
+
price: number | null;
|
|
122
124
|
ref?: any;
|
|
123
125
|
created_at?: Date | null | undefined;
|
|
124
126
|
updated_at?: Date | null | undefined;
|
|
@@ -158,4 +160,5 @@ export declare const ProcedureSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
158
160
|
color?: string | null | undefined;
|
|
159
161
|
duration?: number | null | undefined;
|
|
160
162
|
tuss?: string | null | undefined;
|
|
163
|
+
price?: number | null | undefined;
|
|
161
164
|
}>;
|
|
@@ -22,5 +22,6 @@ exports.ProcedureSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
|
22
22
|
acronym: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
23
23
|
description: zod_1.z.string().max(1024).nullable().optional().default(""),
|
|
24
24
|
tuss: zod_1.z.string().max(255).nullable().optional().default(""),
|
|
25
|
+
price: zod_1.z.number().nullable().optional().default(0),
|
|
25
26
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
26
27
|
});
|
|
@@ -22,5 +22,6 @@ export const ProcedureSchema = zFireDocSchema.extend({
|
|
|
22
22
|
acronym: z.string().max(255).nullable().optional().default(""),
|
|
23
23
|
description: z.string().max(1024).nullable().optional().default(""),
|
|
24
24
|
tuss: z.string().max(255).nullable().optional().default(""),
|
|
25
|
+
price: z.number().nullable().optional().default(0),
|
|
25
26
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
26
27
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./types/evo-crm/dic";
|
|
|
9
9
|
export * from "./types/evo-crm/lead";
|
|
10
10
|
export * from "./types/evo-chat";
|
|
11
11
|
export * from "./types/evo-med/calendar";
|
|
12
|
+
export * from "./types/evo-med/appointment";
|
|
12
13
|
export * from "./types/evo-med/dic";
|
|
13
14
|
export * from "./types/evo-med/insurance";
|
|
14
15
|
export * from "./types/evo-med/people";
|
|
@@ -28,6 +29,7 @@ export * from "./apps/evo-crm/lead/zod-schemas";
|
|
|
28
29
|
export * from "./apps/evo-chat/contact/zod-schemas";
|
|
29
30
|
export * from "./apps/evo-chat/message/zod-schemas";
|
|
30
31
|
export * from "./apps/evo-med/calendar/zod-schemas";
|
|
32
|
+
export * from "./apps/evo-med/appointment/zod-schemas";
|
|
31
33
|
export * from "./apps/evo-med/dic/zod-schemas";
|
|
32
34
|
export * from "./apps/evo-med/insurance/zod-schemas";
|
|
33
35
|
export * from "./apps/evo-med/people/zod-schemas";
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./types/evo-crm/dic"), exports);
|
|
|
25
25
|
__exportStar(require("./types/evo-crm/lead"), exports);
|
|
26
26
|
__exportStar(require("./types/evo-chat"), exports);
|
|
27
27
|
__exportStar(require("./types/evo-med/calendar"), exports);
|
|
28
|
+
__exportStar(require("./types/evo-med/appointment"), exports);
|
|
28
29
|
__exportStar(require("./types/evo-med/dic"), exports);
|
|
29
30
|
__exportStar(require("./types/evo-med/insurance"), exports);
|
|
30
31
|
__exportStar(require("./types/evo-med/people"), exports);
|
|
@@ -43,6 +44,7 @@ __exportStar(require("./apps/evo-crm/lead/zod-schemas"), exports);
|
|
|
43
44
|
__exportStar(require("./apps/evo-chat/contact/zod-schemas"), exports);
|
|
44
45
|
__exportStar(require("./apps/evo-chat/message/zod-schemas"), exports);
|
|
45
46
|
__exportStar(require("./apps/evo-med/calendar/zod-schemas"), exports);
|
|
47
|
+
__exportStar(require("./apps/evo-med/appointment/zod-schemas"), exports);
|
|
46
48
|
__exportStar(require("./apps/evo-med/dic/zod-schemas"), exports);
|
|
47
49
|
__exportStar(require("./apps/evo-med/insurance/zod-schemas"), exports);
|
|
48
50
|
__exportStar(require("./apps/evo-med/people/zod-schemas"), exports);
|
package/dist/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./types/evo-crm/dic";
|
|
|
9
9
|
export * from "./types/evo-crm/lead";
|
|
10
10
|
export * from "./types/evo-chat";
|
|
11
11
|
export * from "./types/evo-med/calendar";
|
|
12
|
+
export * from "./types/evo-med/appointment";
|
|
12
13
|
export * from "./types/evo-med/dic";
|
|
13
14
|
export * from "./types/evo-med/insurance";
|
|
14
15
|
export * from "./types/evo-med/people";
|
|
@@ -28,6 +29,7 @@ export * from "./apps/evo-crm/lead/zod-schemas";
|
|
|
28
29
|
export * from "./apps/evo-chat/contact/zod-schemas";
|
|
29
30
|
export * from "./apps/evo-chat/message/zod-schemas";
|
|
30
31
|
export * from "./apps/evo-med/calendar/zod-schemas";
|
|
32
|
+
export * from "./apps/evo-med/appointment/zod-schemas";
|
|
31
33
|
export * from "./apps/evo-med/dic/zod-schemas";
|
|
32
34
|
export * from "./apps/evo-med/insurance/zod-schemas";
|
|
33
35
|
export * from "./apps/evo-med/people/zod-schemas";
|
|
@@ -27,8 +27,17 @@ export type AppointmentMode = (typeof AppointmentModeEnum)[keyof typeof Appointm
|
|
|
27
27
|
export declare const AppointmentTypeEnum: {
|
|
28
28
|
readonly Blocked: "blocked";
|
|
29
29
|
readonly Consultation: "consultation";
|
|
30
|
-
readonly Procedure: "procedure";
|
|
31
30
|
readonly FollowUp: "follow_up";
|
|
31
|
+
readonly Procedure: "procedure";
|
|
32
|
+
readonly Surgery: "surgery";
|
|
33
|
+
readonly Exam: "exam";
|
|
34
|
+
readonly Evaluation: "evaluation";
|
|
35
|
+
readonly Emergency: "emergency";
|
|
36
|
+
readonly CheckUp: "check_up";
|
|
37
|
+
readonly Vaccination: "vaccination";
|
|
38
|
+
readonly FitTest: "fit_test";
|
|
39
|
+
readonly Therapy: "therapy";
|
|
40
|
+
readonly Meeting: "meeting";
|
|
32
41
|
};
|
|
33
42
|
export type AppointmentType = (typeof AppointmentTypeEnum)[keyof typeof AppointmentTypeEnum];
|
|
34
43
|
export interface Address {
|
|
@@ -87,9 +96,11 @@ export interface Appointment extends IFireDoc {
|
|
|
87
96
|
startDate: string;
|
|
88
97
|
endDate: string;
|
|
89
98
|
status: AppointmentStatus;
|
|
99
|
+
statusCaption: string;
|
|
90
100
|
notes?: string;
|
|
91
101
|
appointmentMode: AppointmentMode;
|
|
92
102
|
appointmentType: AppointmentType;
|
|
103
|
+
appointmentTypeCaption: string;
|
|
93
104
|
specialty?: string;
|
|
94
105
|
address?: Address;
|
|
95
106
|
procedures?: Procedure[];
|
|
@@ -28,8 +28,17 @@ exports.AppointmentModeEnum = {
|
|
|
28
28
|
};
|
|
29
29
|
// Enums para tipo do agendamento
|
|
30
30
|
exports.AppointmentTypeEnum = {
|
|
31
|
-
Blocked: "blocked",
|
|
32
|
-
Consultation: "consultation",
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
Blocked: "blocked", // Horário bloqueado (sem atendimento)
|
|
32
|
+
Consultation: "consultation", // Consulta médica
|
|
33
|
+
FollowUp: "follow_up", // Retorno de consulta
|
|
34
|
+
Procedure: "procedure", // Procedimento clínico
|
|
35
|
+
Surgery: "surgery", // Cirurgia
|
|
36
|
+
Exam: "exam", // Exame diagnóstico (ex: ultrassom, raio-x)
|
|
37
|
+
Evaluation: "evaluation", // Avaliação inicial
|
|
38
|
+
Emergency: "emergency", // Atendimento de urgência
|
|
39
|
+
CheckUp: "check_up", // Check-up / revisão geral
|
|
40
|
+
Vaccination: "vaccination", // Vacinação
|
|
41
|
+
FitTest: "fit_test", // Teste de aptidão física / ocupacional
|
|
42
|
+
Therapy: "therapy", // Sessão terapêutica (fisioterapia, psicoterapia etc.)
|
|
43
|
+
Meeting: "meeting", // Reunião administrativa / interna
|
|
35
44
|
};
|
|
@@ -38,10 +38,19 @@ export type AppointmentMode =
|
|
|
38
38
|
|
|
39
39
|
// Enums para tipo do agendamento
|
|
40
40
|
export const AppointmentTypeEnum = {
|
|
41
|
-
Blocked: "blocked",
|
|
42
|
-
Consultation: "consultation",
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
Blocked: "blocked", // Horário bloqueado (sem atendimento)
|
|
42
|
+
Consultation: "consultation", // Consulta médica
|
|
43
|
+
FollowUp: "follow_up", // Retorno de consulta
|
|
44
|
+
Procedure: "procedure", // Procedimento clínico
|
|
45
|
+
Surgery: "surgery", // Cirurgia
|
|
46
|
+
Exam: "exam", // Exame diagnóstico (ex: ultrassom, raio-x)
|
|
47
|
+
Evaluation: "evaluation", // Avaliação inicial
|
|
48
|
+
Emergency: "emergency", // Atendimento de urgência
|
|
49
|
+
CheckUp: "check_up", // Check-up / revisão geral
|
|
50
|
+
Vaccination: "vaccination", // Vacinação
|
|
51
|
+
FitTest: "fit_test", // Teste de aptidão física / ocupacional
|
|
52
|
+
Therapy: "therapy", // Sessão terapêutica (fisioterapia, psicoterapia etc.)
|
|
53
|
+
Meeting: "meeting", // Reunião administrativa / interna
|
|
45
54
|
} as const;
|
|
46
55
|
|
|
47
56
|
export type AppointmentType =
|
|
@@ -116,9 +125,11 @@ export interface Appointment extends IFireDoc {
|
|
|
116
125
|
startDate: string; // ISO string
|
|
117
126
|
endDate: string; // ISO string
|
|
118
127
|
status: AppointmentStatus;
|
|
128
|
+
statusCaption: string;
|
|
119
129
|
notes?: string;
|
|
120
130
|
appointmentMode: AppointmentMode;
|
|
121
131
|
appointmentType: AppointmentType;
|
|
132
|
+
appointmentTypeCaption: string;
|
|
122
133
|
specialty?: string;
|
|
123
134
|
address?: Address;
|
|
124
135
|
procedures?: Procedure[];
|