evo360-types 1.2.5 → 1.2.7
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/dic/zod-schemas.d.ts +28 -26
- package/dist/apps/evo-med/dic/zod-schemas.js +8 -4
- package/dist/apps/evo-med/dic/zod-schemas.ts +40 -36
- package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
- package/dist/apps/evo-med/people/zod-schemas.d.ts +12 -12
- package/dist/apps/shared/zod-schemas.d.ts +2 -2
- package/dist/types/evo-med/dic/index.d.ts +2 -2
- package/dist/types/evo-med/dic/index.ts +2 -2
- package/dist/types/evo-med/people/index.d.ts +1 -1
- package/dist/types/evo-med/people/index.ts +1 -1
- package/package.json +1 -1
|
@@ -611,7 +611,7 @@ export declare const zAllergySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
611
611
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown" | undefined;
|
|
612
612
|
kind?: "Food" | "Drug" | "Insect" | "Other" | null | undefined;
|
|
613
613
|
}>;
|
|
614
|
-
export declare const
|
|
614
|
+
export declare const zMedicalCouncilSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
615
615
|
id: z.ZodString;
|
|
616
616
|
ref: z.ZodAny;
|
|
617
617
|
tenant: z.ZodString;
|
|
@@ -622,30 +622,32 @@ export declare const zCouncilSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
622
622
|
}, {
|
|
623
623
|
name: z.ZodString;
|
|
624
624
|
acronym: z.ZodString;
|
|
625
|
-
|
|
625
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>;
|
|
626
626
|
country: z.ZodDefault<z.ZodString>;
|
|
627
|
-
}>, "
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
tenant:
|
|
631
|
-
model_ver:
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
ref?: any;
|
|
636
|
-
created_at?: Date | null | undefined;
|
|
637
|
-
updated_at?: Date | null | undefined;
|
|
638
|
-
deleted_at?: Date | null | undefined;
|
|
627
|
+
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
628
|
+
id: z.ZodString;
|
|
629
|
+
ref: z.ZodAny;
|
|
630
|
+
tenant: z.ZodString;
|
|
631
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
632
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
633
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
634
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
639
635
|
}, {
|
|
640
|
-
name:
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
636
|
+
name: z.ZodString;
|
|
637
|
+
acronym: z.ZodString;
|
|
638
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>;
|
|
639
|
+
country: z.ZodDefault<z.ZodString>;
|
|
640
|
+
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
641
|
+
id: z.ZodString;
|
|
642
|
+
ref: z.ZodAny;
|
|
643
|
+
tenant: z.ZodString;
|
|
644
|
+
model_ver: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
645
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
646
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
647
|
+
deleted_at: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
648
|
+
}, {
|
|
649
|
+
name: z.ZodString;
|
|
650
|
+
acronym: z.ZodString;
|
|
651
|
+
uf: z.ZodDefault<z.ZodOptional<z.ZodEnum<["AC", "AL", "AP", "AM", "BA", "CE", "ES", "GO", "MA", "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN", "RS", "RO", "RR", "SC", "SP", "SE", "TO", "DF", "BR"]>>>;
|
|
652
|
+
country: z.ZodDefault<z.ZodString>;
|
|
653
|
+
}>, z.ZodTypeAny, "passthrough">>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.zMedicalCouncilSchema = exports.zAllergySchema = exports.zChronicConditionSchema = exports.zMedicationSchema = exports.zAppointmentStatusSchema = exports.zAppointmentRequestTypeSchema = exports.zAppointmentSourceSchema = exports.zPatientSourceSchema = exports.zDistChannelSchema = exports.zDistChannelTypeSchema = exports.zSpecialtySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const zod_schemas_1 = require("../../shared/zod-schemas");
|
|
6
6
|
exports.zSpecialtySchema = zod_schemas_1.zFireDocSchema
|
|
@@ -87,10 +87,11 @@ exports.zAllergySchema = zod_schemas_1.zFireDocSchema.extend({
|
|
|
87
87
|
.optional()
|
|
88
88
|
.default("Unknown"),
|
|
89
89
|
});
|
|
90
|
-
exports.
|
|
90
|
+
exports.zMedicalCouncilSchema = zod_schemas_1.zFireDocSchema
|
|
91
|
+
.extend({
|
|
91
92
|
name: zod_1.z.string().min(1).max(255),
|
|
92
93
|
acronym: zod_1.z.string().min(1).max(60),
|
|
93
|
-
|
|
94
|
+
uf: zod_1.z
|
|
94
95
|
.enum([
|
|
95
96
|
"AC",
|
|
96
97
|
"AL",
|
|
@@ -119,7 +120,10 @@ exports.zCouncilSchema = zod_schemas_1.zFireDocSchema.extend({
|
|
|
119
120
|
"SE",
|
|
120
121
|
"TO",
|
|
121
122
|
"DF",
|
|
123
|
+
"BR", //nacional
|
|
122
124
|
])
|
|
125
|
+
.optional()
|
|
123
126
|
.default("SP"),
|
|
124
127
|
country: zod_1.z.string().min(3).max(255).default("Brasil"),
|
|
125
|
-
})
|
|
128
|
+
})
|
|
129
|
+
.passthrough();
|
|
@@ -95,39 +95,43 @@ export const zAllergySchema = zFireDocSchema.extend({
|
|
|
95
95
|
.default("Unknown"),
|
|
96
96
|
});
|
|
97
97
|
|
|
98
|
-
export const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
98
|
+
export const zMedicalCouncilSchema = zFireDocSchema
|
|
99
|
+
.extend({
|
|
100
|
+
name: z.string().min(1).max(255),
|
|
101
|
+
acronym: z.string().min(1).max(60),
|
|
102
|
+
uf: z
|
|
103
|
+
.enum([
|
|
104
|
+
"AC",
|
|
105
|
+
"AL",
|
|
106
|
+
"AP",
|
|
107
|
+
"AM",
|
|
108
|
+
"BA",
|
|
109
|
+
"CE",
|
|
110
|
+
"ES",
|
|
111
|
+
"GO",
|
|
112
|
+
"MA",
|
|
113
|
+
"MT",
|
|
114
|
+
"MS",
|
|
115
|
+
"MG",
|
|
116
|
+
"PA",
|
|
117
|
+
"PB",
|
|
118
|
+
"PR",
|
|
119
|
+
"PE",
|
|
120
|
+
"PI",
|
|
121
|
+
"RJ",
|
|
122
|
+
"RN",
|
|
123
|
+
"RS",
|
|
124
|
+
"RO",
|
|
125
|
+
"RR",
|
|
126
|
+
"SC",
|
|
127
|
+
"SP",
|
|
128
|
+
"SE",
|
|
129
|
+
"TO",
|
|
130
|
+
"DF",
|
|
131
|
+
"BR", //nacional
|
|
132
|
+
])
|
|
133
|
+
.optional()
|
|
134
|
+
.default("SP"),
|
|
135
|
+
country: z.string().min(3).max(255).default("Brasil"),
|
|
136
|
+
})
|
|
137
|
+
.passthrough();
|
|
@@ -138,21 +138,21 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
139
|
name: string;
|
|
140
140
|
kind: string;
|
|
141
|
-
state: string;
|
|
142
141
|
country: string;
|
|
143
142
|
line1: string;
|
|
144
143
|
line2: string;
|
|
145
144
|
city: string;
|
|
145
|
+
state: string;
|
|
146
146
|
zip: string;
|
|
147
147
|
geo?: any;
|
|
148
148
|
}, {
|
|
149
149
|
name?: string | undefined;
|
|
150
150
|
kind?: string | undefined;
|
|
151
|
-
state?: string | undefined;
|
|
152
151
|
country?: string | undefined;
|
|
153
152
|
line1?: string | undefined;
|
|
154
153
|
line2?: string | undefined;
|
|
155
154
|
city?: string | undefined;
|
|
155
|
+
state?: string | undefined;
|
|
156
156
|
zip?: string | undefined;
|
|
157
157
|
geo?: any;
|
|
158
158
|
}>;
|
|
@@ -256,21 +256,21 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
257
|
name: string;
|
|
258
258
|
kind: string;
|
|
259
|
-
state: string;
|
|
260
259
|
country: string;
|
|
261
260
|
line1: string;
|
|
262
261
|
line2: string;
|
|
263
262
|
city: string;
|
|
263
|
+
state: string;
|
|
264
264
|
zip: string;
|
|
265
265
|
geo?: any;
|
|
266
266
|
}, {
|
|
267
267
|
name?: string | undefined;
|
|
268
268
|
kind?: string | undefined;
|
|
269
|
-
state?: string | undefined;
|
|
270
269
|
country?: string | undefined;
|
|
271
270
|
line1?: string | undefined;
|
|
272
271
|
line2?: string | undefined;
|
|
273
272
|
city?: string | undefined;
|
|
273
|
+
state?: string | undefined;
|
|
274
274
|
zip?: string | undefined;
|
|
275
275
|
geo?: any;
|
|
276
276
|
}>;
|
|
@@ -374,21 +374,21 @@ export declare const zInsuranceCompanySchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
374
374
|
}, "strip", z.ZodTypeAny, {
|
|
375
375
|
name: string;
|
|
376
376
|
kind: string;
|
|
377
|
-
state: string;
|
|
378
377
|
country: string;
|
|
379
378
|
line1: string;
|
|
380
379
|
line2: string;
|
|
381
380
|
city: string;
|
|
381
|
+
state: string;
|
|
382
382
|
zip: string;
|
|
383
383
|
geo?: any;
|
|
384
384
|
}, {
|
|
385
385
|
name?: string | undefined;
|
|
386
386
|
kind?: string | undefined;
|
|
387
|
-
state?: string | undefined;
|
|
388
387
|
country?: string | undefined;
|
|
389
388
|
line1?: string | undefined;
|
|
390
389
|
line2?: string | undefined;
|
|
391
390
|
city?: string | undefined;
|
|
391
|
+
state?: string | undefined;
|
|
392
392
|
zip?: string | undefined;
|
|
393
393
|
geo?: any;
|
|
394
394
|
}>;
|
|
@@ -71,21 +71,21 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
72
|
name: string;
|
|
73
73
|
kind: string;
|
|
74
|
-
state: string;
|
|
75
74
|
country: string;
|
|
76
75
|
line1: string;
|
|
77
76
|
line2: string;
|
|
78
77
|
city: string;
|
|
78
|
+
state: string;
|
|
79
79
|
zip: string;
|
|
80
80
|
geo?: any;
|
|
81
81
|
}, {
|
|
82
82
|
name?: string | undefined;
|
|
83
83
|
kind?: string | undefined;
|
|
84
|
-
state?: string | undefined;
|
|
85
84
|
country?: string | undefined;
|
|
86
85
|
line1?: string | undefined;
|
|
87
86
|
line2?: string | undefined;
|
|
88
87
|
city?: string | undefined;
|
|
88
|
+
state?: string | undefined;
|
|
89
89
|
zip?: string | undefined;
|
|
90
90
|
geo?: any;
|
|
91
91
|
}>>;
|
|
@@ -174,21 +174,21 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
175
|
name: string;
|
|
176
176
|
kind: string;
|
|
177
|
-
state: string;
|
|
178
177
|
country: string;
|
|
179
178
|
line1: string;
|
|
180
179
|
line2: string;
|
|
181
180
|
city: string;
|
|
181
|
+
state: string;
|
|
182
182
|
zip: string;
|
|
183
183
|
geo?: any;
|
|
184
184
|
}, {
|
|
185
185
|
name?: string | undefined;
|
|
186
186
|
kind?: string | undefined;
|
|
187
|
-
state?: string | undefined;
|
|
188
187
|
country?: string | undefined;
|
|
189
188
|
line1?: string | undefined;
|
|
190
189
|
line2?: string | undefined;
|
|
191
190
|
city?: string | undefined;
|
|
191
|
+
state?: string | undefined;
|
|
192
192
|
zip?: string | undefined;
|
|
193
193
|
geo?: any;
|
|
194
194
|
}>>;
|
|
@@ -277,21 +277,21 @@ export declare const zProfessionalSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
277
277
|
}, "strip", z.ZodTypeAny, {
|
|
278
278
|
name: string;
|
|
279
279
|
kind: string;
|
|
280
|
-
state: string;
|
|
281
280
|
country: string;
|
|
282
281
|
line1: string;
|
|
283
282
|
line2: string;
|
|
284
283
|
city: string;
|
|
284
|
+
state: string;
|
|
285
285
|
zip: string;
|
|
286
286
|
geo?: any;
|
|
287
287
|
}, {
|
|
288
288
|
name?: string | undefined;
|
|
289
289
|
kind?: string | undefined;
|
|
290
|
-
state?: string | undefined;
|
|
291
290
|
country?: string | undefined;
|
|
292
291
|
line1?: string | undefined;
|
|
293
292
|
line2?: string | undefined;
|
|
294
293
|
city?: string | undefined;
|
|
294
|
+
state?: string | undefined;
|
|
295
295
|
zip?: string | undefined;
|
|
296
296
|
geo?: any;
|
|
297
297
|
}>>;
|
|
@@ -356,21 +356,21 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
357
|
name: string;
|
|
358
358
|
kind: string;
|
|
359
|
-
state: string;
|
|
360
359
|
country: string;
|
|
361
360
|
line1: string;
|
|
362
361
|
line2: string;
|
|
363
362
|
city: string;
|
|
363
|
+
state: string;
|
|
364
364
|
zip: string;
|
|
365
365
|
geo?: any;
|
|
366
366
|
}, {
|
|
367
367
|
name?: string | undefined;
|
|
368
368
|
kind?: string | undefined;
|
|
369
|
-
state?: string | undefined;
|
|
370
369
|
country?: string | undefined;
|
|
371
370
|
line1?: string | undefined;
|
|
372
371
|
line2?: string | undefined;
|
|
373
372
|
city?: string | undefined;
|
|
373
|
+
state?: string | undefined;
|
|
374
374
|
zip?: string | undefined;
|
|
375
375
|
geo?: any;
|
|
376
376
|
}>>;
|
|
@@ -541,21 +541,21 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
541
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
542
|
name: string;
|
|
543
543
|
kind: string;
|
|
544
|
-
state: string;
|
|
545
544
|
country: string;
|
|
546
545
|
line1: string;
|
|
547
546
|
line2: string;
|
|
548
547
|
city: string;
|
|
548
|
+
state: string;
|
|
549
549
|
zip: string;
|
|
550
550
|
geo?: any;
|
|
551
551
|
}, {
|
|
552
552
|
name?: string | undefined;
|
|
553
553
|
kind?: string | undefined;
|
|
554
|
-
state?: string | undefined;
|
|
555
554
|
country?: string | undefined;
|
|
556
555
|
line1?: string | undefined;
|
|
557
556
|
line2?: string | undefined;
|
|
558
557
|
city?: string | undefined;
|
|
558
|
+
state?: string | undefined;
|
|
559
559
|
zip?: string | undefined;
|
|
560
560
|
geo?: any;
|
|
561
561
|
}>>;
|
|
@@ -726,21 +726,21 @@ export declare const zPatientSchema: z.ZodObject<z.objectUtil.extendShape<z.obje
|
|
|
726
726
|
}, "strip", z.ZodTypeAny, {
|
|
727
727
|
name: string;
|
|
728
728
|
kind: string;
|
|
729
|
-
state: string;
|
|
730
729
|
country: string;
|
|
731
730
|
line1: string;
|
|
732
731
|
line2: string;
|
|
733
732
|
city: string;
|
|
733
|
+
state: string;
|
|
734
734
|
zip: string;
|
|
735
735
|
geo?: any;
|
|
736
736
|
}, {
|
|
737
737
|
name?: string | undefined;
|
|
738
738
|
kind?: string | undefined;
|
|
739
|
-
state?: string | undefined;
|
|
740
739
|
country?: string | undefined;
|
|
741
740
|
line1?: string | undefined;
|
|
742
741
|
line2?: string | undefined;
|
|
743
742
|
city?: string | undefined;
|
|
743
|
+
state?: string | undefined;
|
|
744
744
|
zip?: string | undefined;
|
|
745
745
|
geo?: any;
|
|
746
746
|
}>>;
|
|
@@ -51,21 +51,21 @@ export declare const zAddressSchema: z.ZodObject<{
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
name: string;
|
|
53
53
|
kind: string;
|
|
54
|
-
state: string;
|
|
55
54
|
country: string;
|
|
56
55
|
line1: string;
|
|
57
56
|
line2: string;
|
|
58
57
|
city: string;
|
|
58
|
+
state: string;
|
|
59
59
|
zip: string;
|
|
60
60
|
geo?: any;
|
|
61
61
|
}, {
|
|
62
62
|
name?: string | undefined;
|
|
63
63
|
kind?: string | undefined;
|
|
64
|
-
state?: string | undefined;
|
|
65
64
|
country?: string | undefined;
|
|
66
65
|
line1?: string | undefined;
|
|
67
66
|
line2?: string | undefined;
|
|
68
67
|
city?: string | undefined;
|
|
68
|
+
state?: string | undefined;
|
|
69
69
|
zip?: string | undefined;
|
|
70
70
|
geo?: any;
|
|
71
71
|
}>;
|
|
@@ -105,9 +105,9 @@ export interface IAllergy extends IFireDoc {
|
|
|
105
105
|
kind?: "Food" | "Drug" | "Insect" | "Other";
|
|
106
106
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
107
107
|
}
|
|
108
|
-
export interface
|
|
108
|
+
export interface IMedicalCouncil extends IFireDoc {
|
|
109
109
|
name: string;
|
|
110
110
|
acronym: string;
|
|
111
|
-
|
|
111
|
+
uf?: string;
|
|
112
112
|
country: string;
|
|
113
113
|
}
|
|
@@ -144,9 +144,9 @@ export interface IAllergy extends IFireDoc {
|
|
|
144
144
|
severity?: "Mild" | "Moderate" | "Severe" | "Unknown";
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export interface
|
|
147
|
+
export interface IMedicalCouncil extends IFireDoc {
|
|
148
148
|
name: string; // Nome do conselho (ex: "Conselho Regional de Medicina de São Paulo")
|
|
149
149
|
acronym: string; // Sigla do conselho
|
|
150
|
-
|
|
150
|
+
uf?: string; // Estado de atuação (ex: "SP", "RJ") - Opcional, pois alguns são nacionais
|
|
151
151
|
country: string; // País onde o conselho atua (ex: "Brasil")
|
|
152
152
|
}
|
|
@@ -38,7 +38,7 @@ export interface IProfessional extends IProfile {
|
|
|
38
38
|
council_doc?: string;
|
|
39
39
|
council_name?: string;
|
|
40
40
|
council_acronym?: string;
|
|
41
|
-
|
|
41
|
+
council_uf?: string;
|
|
42
42
|
councilRef?: FirestoreDocumentReference;
|
|
43
43
|
specialties?: IProfessionalSpecialty[];
|
|
44
44
|
date_joining?: Date | null;
|
|
@@ -73,7 +73,7 @@ export interface IProfessional extends IProfile {
|
|
|
73
73
|
council_doc?: string;
|
|
74
74
|
council_name?: string;
|
|
75
75
|
council_acronym?: string;
|
|
76
|
-
|
|
76
|
+
council_uf?: string;
|
|
77
77
|
councilRef?: FirestoreDocumentReference;
|
|
78
78
|
specialties?: IProfessionalSpecialty[];
|
|
79
79
|
date_joining?: Date | null;
|