evo360-types 1.3.87 → 1.3.89
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 +6 -0
- package/dist/apps/evo-med/appointment/zod-schemas.js +3 -0
- package/dist/apps/evo-med/appointment/zod-schemas.ts +4 -0
- package/dist/apps/evo-med/dic/zod-schemas.d.ts +0 -171
- package/dist/apps/evo-med/dic/zod-schemas.js +0 -3
- package/dist/apps/evo-med/dic/zod-schemas.ts +0 -3
- package/dist/types/evo-med/appointment/index.d.ts +6 -4
- package/dist/types/evo-med/appointment/index.js +2 -2
- package/dist/types/evo-med/appointment/index.ts +12 -5
- package/dist/types/evo-med/dic/index.d.ts +0 -3
- package/dist/types/evo-med/dic/index.ts +0 -3
- package/package.json +1 -1
|
@@ -222,6 +222,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
222
222
|
isDraft: z.ZodBoolean;
|
|
223
223
|
draftExpirationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
224
224
|
rescheduleCount: z.ZodNumber;
|
|
225
|
+
appointmentSource: z.ZodOptional<z.ZodAny>;
|
|
226
|
+
appointmentRequestType: z.ZodOptional<z.ZodAny>;
|
|
225
227
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
226
228
|
name: z.ZodString;
|
|
227
229
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -361,6 +363,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
361
363
|
isDraft: z.ZodBoolean;
|
|
362
364
|
draftExpirationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
363
365
|
rescheduleCount: z.ZodNumber;
|
|
366
|
+
appointmentSource: z.ZodOptional<z.ZodAny>;
|
|
367
|
+
appointmentRequestType: z.ZodOptional<z.ZodAny>;
|
|
364
368
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
365
369
|
name: z.ZodString;
|
|
366
370
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -500,6 +504,8 @@ export declare const zAppointmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
500
504
|
isDraft: z.ZodBoolean;
|
|
501
505
|
draftExpirationMinutes: z.ZodOptional<z.ZodNumber>;
|
|
502
506
|
rescheduleCount: z.ZodNumber;
|
|
507
|
+
appointmentSource: z.ZodOptional<z.ZodAny>;
|
|
508
|
+
appointmentRequestType: z.ZodOptional<z.ZodAny>;
|
|
503
509
|
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
504
510
|
name: z.ZodString;
|
|
505
511
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -122,6 +122,9 @@ exports.zAppointmentSchema = zod_schemas_1.zFireDocSchema
|
|
|
122
122
|
draftExpirationMinutes: zod_1.z.number().optional(), // tempo em minutos para expiração do rascunho
|
|
123
123
|
// Controle de remarcações
|
|
124
124
|
rescheduleCount: zod_1.z.number(), // quantidade de vezes que o agendamento foi remarcado
|
|
125
|
+
// Campos de dicionários
|
|
126
|
+
appointmentSource: zod_1.z.any().optional(), // IAppointmentSource será validado pelo seu próprio schema
|
|
127
|
+
appointmentRequestType: zod_1.z.any().optional(), // IAppointmentRequestType será validado pelo seu próprio schema
|
|
125
128
|
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
126
129
|
})
|
|
127
130
|
.passthrough();
|
|
@@ -133,6 +133,10 @@ export const zAppointmentSchema = zFireDocSchema
|
|
|
133
133
|
// Controle de remarcações
|
|
134
134
|
rescheduleCount: z.number(), // quantidade de vezes que o agendamento foi remarcado
|
|
135
135
|
|
|
136
|
+
// Campos de dicionários
|
|
137
|
+
appointmentSource: z.any().optional(), // IAppointmentSource será validado pelo seu próprio schema
|
|
138
|
+
appointmentRequestType: z.any().optional(), // IAppointmentRequestType será validado pelo seu próprio schema
|
|
139
|
+
|
|
136
140
|
tags: z.array(zTagSchema).nullable().optional(),
|
|
137
141
|
})
|
|
138
142
|
.passthrough();
|
|
@@ -155,25 +155,6 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
155
155
|
name: z.ZodString;
|
|
156
156
|
order: z.ZodNumber;
|
|
157
157
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
159
|
-
name: z.ZodString;
|
|
160
|
-
color: z.ZodOptional<z.ZodString>;
|
|
161
|
-
hidden: z.ZodBoolean;
|
|
162
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
name: string;
|
|
166
|
-
hidden: boolean;
|
|
167
|
-
base?: boolean | undefined;
|
|
168
|
-
color?: string | undefined;
|
|
169
|
-
category?: string | null | undefined;
|
|
170
|
-
}, {
|
|
171
|
-
name: string;
|
|
172
|
-
hidden: boolean;
|
|
173
|
-
base?: boolean | undefined;
|
|
174
|
-
color?: string | undefined;
|
|
175
|
-
category?: string | null | undefined;
|
|
176
|
-
}>, "many">>>;
|
|
177
158
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
178
159
|
id: z.ZodString;
|
|
179
160
|
ref: z.ZodAny;
|
|
@@ -187,25 +168,6 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
187
168
|
name: z.ZodString;
|
|
188
169
|
order: z.ZodNumber;
|
|
189
170
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
191
|
-
name: z.ZodString;
|
|
192
|
-
color: z.ZodOptional<z.ZodString>;
|
|
193
|
-
hidden: z.ZodBoolean;
|
|
194
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
196
|
-
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
name: string;
|
|
198
|
-
hidden: boolean;
|
|
199
|
-
base?: boolean | undefined;
|
|
200
|
-
color?: string | undefined;
|
|
201
|
-
category?: string | null | undefined;
|
|
202
|
-
}, {
|
|
203
|
-
name: string;
|
|
204
|
-
hidden: boolean;
|
|
205
|
-
base?: boolean | undefined;
|
|
206
|
-
color?: string | undefined;
|
|
207
|
-
category?: string | null | undefined;
|
|
208
|
-
}>, "many">>>;
|
|
209
171
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
210
172
|
id: z.ZodString;
|
|
211
173
|
ref: z.ZodAny;
|
|
@@ -219,25 +181,6 @@ export declare const zPatientSourceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
219
181
|
name: z.ZodString;
|
|
220
182
|
order: z.ZodNumber;
|
|
221
183
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
223
|
-
name: z.ZodString;
|
|
224
|
-
color: z.ZodOptional<z.ZodString>;
|
|
225
|
-
hidden: z.ZodBoolean;
|
|
226
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
227
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
228
|
-
}, "strip", z.ZodTypeAny, {
|
|
229
|
-
name: string;
|
|
230
|
-
hidden: boolean;
|
|
231
|
-
base?: boolean | undefined;
|
|
232
|
-
color?: string | undefined;
|
|
233
|
-
category?: string | null | undefined;
|
|
234
|
-
}, {
|
|
235
|
-
name: string;
|
|
236
|
-
hidden: boolean;
|
|
237
|
-
base?: boolean | undefined;
|
|
238
|
-
color?: string | undefined;
|
|
239
|
-
category?: string | null | undefined;
|
|
240
|
-
}>, "many">>>;
|
|
241
184
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
242
185
|
export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
243
186
|
id: z.ZodString;
|
|
@@ -252,25 +195,6 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
252
195
|
name: z.ZodString;
|
|
253
196
|
order: z.ZodNumber;
|
|
254
197
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
255
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
256
|
-
name: z.ZodString;
|
|
257
|
-
color: z.ZodOptional<z.ZodString>;
|
|
258
|
-
hidden: z.ZodBoolean;
|
|
259
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
261
|
-
}, "strip", z.ZodTypeAny, {
|
|
262
|
-
name: string;
|
|
263
|
-
hidden: boolean;
|
|
264
|
-
base?: boolean | undefined;
|
|
265
|
-
color?: string | undefined;
|
|
266
|
-
category?: string | null | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
name: string;
|
|
269
|
-
hidden: boolean;
|
|
270
|
-
base?: boolean | undefined;
|
|
271
|
-
color?: string | undefined;
|
|
272
|
-
category?: string | null | undefined;
|
|
273
|
-
}>, "many">>>;
|
|
274
198
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
275
199
|
id: z.ZodString;
|
|
276
200
|
ref: z.ZodAny;
|
|
@@ -284,25 +208,6 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
284
208
|
name: z.ZodString;
|
|
285
209
|
order: z.ZodNumber;
|
|
286
210
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
288
|
-
name: z.ZodString;
|
|
289
|
-
color: z.ZodOptional<z.ZodString>;
|
|
290
|
-
hidden: z.ZodBoolean;
|
|
291
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
293
|
-
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
name: string;
|
|
295
|
-
hidden: boolean;
|
|
296
|
-
base?: boolean | undefined;
|
|
297
|
-
color?: string | undefined;
|
|
298
|
-
category?: string | null | undefined;
|
|
299
|
-
}, {
|
|
300
|
-
name: string;
|
|
301
|
-
hidden: boolean;
|
|
302
|
-
base?: boolean | undefined;
|
|
303
|
-
color?: string | undefined;
|
|
304
|
-
category?: string | null | undefined;
|
|
305
|
-
}>, "many">>>;
|
|
306
211
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
307
212
|
id: z.ZodString;
|
|
308
213
|
ref: z.ZodAny;
|
|
@@ -316,25 +221,6 @@ export declare const zAppointmentSourceSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
316
221
|
name: z.ZodString;
|
|
317
222
|
order: z.ZodNumber;
|
|
318
223
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
320
|
-
name: z.ZodString;
|
|
321
|
-
color: z.ZodOptional<z.ZodString>;
|
|
322
|
-
hidden: z.ZodBoolean;
|
|
323
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
325
|
-
}, "strip", z.ZodTypeAny, {
|
|
326
|
-
name: string;
|
|
327
|
-
hidden: boolean;
|
|
328
|
-
base?: boolean | undefined;
|
|
329
|
-
color?: string | undefined;
|
|
330
|
-
category?: string | null | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
name: string;
|
|
333
|
-
hidden: boolean;
|
|
334
|
-
base?: boolean | undefined;
|
|
335
|
-
color?: string | undefined;
|
|
336
|
-
category?: string | null | undefined;
|
|
337
|
-
}>, "many">>>;
|
|
338
224
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
339
225
|
export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
340
226
|
id: z.ZodString;
|
|
@@ -349,25 +235,6 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
349
235
|
name: z.ZodString;
|
|
350
236
|
order: z.ZodNumber;
|
|
351
237
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
353
|
-
name: z.ZodString;
|
|
354
|
-
color: z.ZodOptional<z.ZodString>;
|
|
355
|
-
hidden: z.ZodBoolean;
|
|
356
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
357
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
358
|
-
}, "strip", z.ZodTypeAny, {
|
|
359
|
-
name: string;
|
|
360
|
-
hidden: boolean;
|
|
361
|
-
base?: boolean | undefined;
|
|
362
|
-
color?: string | undefined;
|
|
363
|
-
category?: string | null | undefined;
|
|
364
|
-
}, {
|
|
365
|
-
name: string;
|
|
366
|
-
hidden: boolean;
|
|
367
|
-
base?: boolean | undefined;
|
|
368
|
-
color?: string | undefined;
|
|
369
|
-
category?: string | null | undefined;
|
|
370
|
-
}>, "many">>>;
|
|
371
238
|
}>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
|
|
372
239
|
id: z.ZodString;
|
|
373
240
|
ref: z.ZodAny;
|
|
@@ -381,25 +248,6 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
381
248
|
name: z.ZodString;
|
|
382
249
|
order: z.ZodNumber;
|
|
383
250
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
385
|
-
name: z.ZodString;
|
|
386
|
-
color: z.ZodOptional<z.ZodString>;
|
|
387
|
-
hidden: z.ZodBoolean;
|
|
388
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
389
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
390
|
-
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
name: string;
|
|
392
|
-
hidden: boolean;
|
|
393
|
-
base?: boolean | undefined;
|
|
394
|
-
color?: string | undefined;
|
|
395
|
-
category?: string | null | undefined;
|
|
396
|
-
}, {
|
|
397
|
-
name: string;
|
|
398
|
-
hidden: boolean;
|
|
399
|
-
base?: boolean | undefined;
|
|
400
|
-
color?: string | undefined;
|
|
401
|
-
category?: string | null | undefined;
|
|
402
|
-
}>, "many">>>;
|
|
403
251
|
}>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
|
|
404
252
|
id: z.ZodString;
|
|
405
253
|
ref: z.ZodAny;
|
|
@@ -413,25 +261,6 @@ export declare const zAppointmentRequestTypeSchema: z.ZodObject<z.objectUtil.ext
|
|
|
413
261
|
name: z.ZodString;
|
|
414
262
|
order: z.ZodNumber;
|
|
415
263
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
|
-
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
417
|
-
name: z.ZodString;
|
|
418
|
-
color: z.ZodOptional<z.ZodString>;
|
|
419
|
-
hidden: z.ZodBoolean;
|
|
420
|
-
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
-
base: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
422
|
-
}, "strip", z.ZodTypeAny, {
|
|
423
|
-
name: string;
|
|
424
|
-
hidden: boolean;
|
|
425
|
-
base?: boolean | undefined;
|
|
426
|
-
color?: string | undefined;
|
|
427
|
-
category?: string | null | undefined;
|
|
428
|
-
}, {
|
|
429
|
-
name: string;
|
|
430
|
-
hidden: boolean;
|
|
431
|
-
base?: boolean | undefined;
|
|
432
|
-
color?: string | undefined;
|
|
433
|
-
category?: string | null | undefined;
|
|
434
|
-
}>, "many">>>;
|
|
435
264
|
}>, z.ZodTypeAny, "passthrough">>;
|
|
436
265
|
export declare const zDicAppointmentStatusTypeSchema: 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"]>;
|
|
437
266
|
export declare const zDicAppointmentTypeBaseSchema: z.ZodEnum<["blocked", "consultation", "follow_up", "procedure", "surgery", "exam", "evaluation", "emergency", "check_up", "vaccination", "fit_test", "therapy", "meeting"]>;
|
|
@@ -28,7 +28,6 @@ exports.zPatientSourceSchema = zod_schemas_1.zFireDocSchema
|
|
|
28
28
|
name: zod_1.z.string().min(1).max(255),
|
|
29
29
|
order: zod_1.z.number().min(0).max(100),
|
|
30
30
|
external_id: zod_1.z.string().nullable().optional(),
|
|
31
|
-
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
32
31
|
})
|
|
33
32
|
.passthrough();
|
|
34
33
|
exports.zAppointmentSourceSchema = zod_schemas_1.zFireDocSchema
|
|
@@ -37,7 +36,6 @@ exports.zAppointmentSourceSchema = zod_schemas_1.zFireDocSchema
|
|
|
37
36
|
name: zod_1.z.string().min(1).max(255),
|
|
38
37
|
order: zod_1.z.number().min(0).max(100),
|
|
39
38
|
external_id: zod_1.z.string().nullable().optional(),
|
|
40
|
-
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
41
39
|
})
|
|
42
40
|
.passthrough();
|
|
43
41
|
exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
|
|
@@ -46,7 +44,6 @@ exports.zAppointmentRequestTypeSchema = zod_schemas_1.zFireDocSchema
|
|
|
46
44
|
name: zod_1.z.string().min(1).max(255),
|
|
47
45
|
order: zod_1.z.number().min(0).max(100),
|
|
48
46
|
external_id: zod_1.z.string().nullable().optional(),
|
|
49
|
-
tags: zod_1.z.array(zod_schemas_1.zTagSchema).nullable().optional(),
|
|
50
47
|
})
|
|
51
48
|
.passthrough();
|
|
52
49
|
// Schema para os tipos base de status de agendamento (para uso em dicionários)
|
|
@@ -28,7 +28,6 @@ export const zPatientSourceSchema = zFireDocSchema
|
|
|
28
28
|
name: z.string().min(1).max(255),
|
|
29
29
|
order: z.number().min(0).max(100),
|
|
30
30
|
external_id: z.string().nullable().optional(),
|
|
31
|
-
tags: z.array(zTagSchema).nullable().optional(),
|
|
32
31
|
})
|
|
33
32
|
.passthrough();
|
|
34
33
|
|
|
@@ -38,7 +37,6 @@ export const zAppointmentSourceSchema = zFireDocSchema
|
|
|
38
37
|
name: z.string().min(1).max(255),
|
|
39
38
|
order: z.number().min(0).max(100),
|
|
40
39
|
external_id: z.string().nullable().optional(),
|
|
41
|
-
tags: z.array(zTagSchema).nullable().optional(),
|
|
42
40
|
})
|
|
43
41
|
.passthrough();
|
|
44
42
|
|
|
@@ -48,7 +46,6 @@ export const zAppointmentRequestTypeSchema = zFireDocSchema
|
|
|
48
46
|
name: z.string().min(1).max(255),
|
|
49
47
|
order: z.number().min(0).max(100),
|
|
50
48
|
external_id: z.string().nullable().optional(),
|
|
51
|
-
tags: z.array(zTagSchema).nullable().optional(),
|
|
52
49
|
})
|
|
53
50
|
.passthrough();
|
|
54
51
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FirestoreDocumentReference, IFireDoc, IGeoPoint, ITag } from "../../shared";
|
|
2
|
-
import { AppointmentStatusType, AppointmentType } from "../dic";
|
|
2
|
+
import { AppointmentStatusType, AppointmentType, IAppointmentRequestType, IAppointmentSource } from "../dic";
|
|
3
3
|
import { IProcedure } from "../procedure";
|
|
4
4
|
export declare const AppointmentPaymentStatusEnum: {
|
|
5
5
|
readonly Paid: "paid";
|
|
@@ -40,17 +40,17 @@ export interface IAppointmentInsurance {
|
|
|
40
40
|
name: string;
|
|
41
41
|
insuranceRef?: FirestoreDocumentReference;
|
|
42
42
|
}
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const PaymentTypeEnum: {
|
|
44
44
|
readonly Patient: "patient";
|
|
45
45
|
readonly Insurance: "insurance";
|
|
46
46
|
};
|
|
47
|
-
export type
|
|
47
|
+
export type PaymentType = (typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
|
|
48
48
|
export interface IAppointmentPayment {
|
|
49
49
|
total?: number | null;
|
|
50
50
|
paid?: number | null;
|
|
51
51
|
due?: number | null;
|
|
52
52
|
status?: AppointmentPaymentStatus;
|
|
53
|
-
payment_type:
|
|
53
|
+
payment_type: PaymentType;
|
|
54
54
|
metadata?: Record<string, unknown>;
|
|
55
55
|
[key: string]: unknown;
|
|
56
56
|
}
|
|
@@ -63,6 +63,8 @@ export interface IAppointment extends IFireDoc {
|
|
|
63
63
|
appointmentMode: AppointmentMode;
|
|
64
64
|
appointmentType: string;
|
|
65
65
|
appointmentBaseType: AppointmentType;
|
|
66
|
+
appointmentSource?: IAppointmentSource;
|
|
67
|
+
appointmentRequestType?: IAppointmentRequestType;
|
|
66
68
|
specialty?: string;
|
|
67
69
|
address?: IAppointmentAddress;
|
|
68
70
|
procedures?: IProcedure[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PaymentTypeEnum = exports.AppointmentModeEnum = exports.AppointmentPaymentStatusEnum = void 0;
|
|
4
4
|
// Enums para status de pagamento
|
|
5
5
|
exports.AppointmentPaymentStatusEnum = {
|
|
6
6
|
Paid: "paid",
|
|
@@ -13,7 +13,7 @@ exports.AppointmentModeEnum = {
|
|
|
13
13
|
Telemedicine: "telemedicine",
|
|
14
14
|
InPerson: "in_person",
|
|
15
15
|
};
|
|
16
|
-
exports.
|
|
16
|
+
exports.PaymentTypeEnum = {
|
|
17
17
|
Patient: "patient",
|
|
18
18
|
Insurance: "insurance",
|
|
19
19
|
};
|
|
@@ -4,7 +4,12 @@ import type {
|
|
|
4
4
|
IGeoPoint,
|
|
5
5
|
ITag,
|
|
6
6
|
} from "../../shared";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
AppointmentStatusType,
|
|
9
|
+
AppointmentType,
|
|
10
|
+
IAppointmentRequestType,
|
|
11
|
+
IAppointmentSource,
|
|
12
|
+
} from "../dic";
|
|
8
13
|
import { IProcedure } from "../procedure";
|
|
9
14
|
// Enums para status de pagamento
|
|
10
15
|
export const AppointmentPaymentStatusEnum = {
|
|
@@ -61,13 +66,13 @@ export interface IAppointmentInsurance {
|
|
|
61
66
|
insuranceRef?: FirestoreDocumentReference;
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
export const
|
|
69
|
+
export const PaymentTypeEnum = {
|
|
65
70
|
Patient: "patient",
|
|
66
71
|
Insurance: "insurance",
|
|
67
72
|
} as const;
|
|
68
73
|
|
|
69
|
-
export type
|
|
70
|
-
(typeof
|
|
74
|
+
export type PaymentType =
|
|
75
|
+
(typeof PaymentTypeEnum)[keyof typeof PaymentTypeEnum];
|
|
71
76
|
|
|
72
77
|
// Interface para pagamento
|
|
73
78
|
export interface IAppointmentPayment {
|
|
@@ -75,7 +80,7 @@ export interface IAppointmentPayment {
|
|
|
75
80
|
paid?: number | null;
|
|
76
81
|
due?: number | null;
|
|
77
82
|
status?: AppointmentPaymentStatus;
|
|
78
|
-
payment_type:
|
|
83
|
+
payment_type: PaymentType;
|
|
79
84
|
metadata?: Record<string, unknown>;
|
|
80
85
|
[key: string]: unknown;
|
|
81
86
|
}
|
|
@@ -90,6 +95,8 @@ export interface IAppointment extends IFireDoc {
|
|
|
90
95
|
appointmentMode: AppointmentMode;
|
|
91
96
|
appointmentType: string;
|
|
92
97
|
appointmentBaseType: AppointmentType;
|
|
98
|
+
appointmentSource?: IAppointmentSource;
|
|
99
|
+
appointmentRequestType?: IAppointmentRequestType;
|
|
93
100
|
specialty?: string;
|
|
94
101
|
address?: IAppointmentAddress;
|
|
95
102
|
procedures?: IProcedure[];
|
|
@@ -39,7 +39,6 @@ export interface IPatientSource extends IFireDoc {
|
|
|
39
39
|
name: string;
|
|
40
40
|
order: number;
|
|
41
41
|
external_id?: string | null;
|
|
42
|
-
tags?: ITag[] | null;
|
|
43
42
|
[key: string]: unknown;
|
|
44
43
|
}
|
|
45
44
|
export interface IAppointmentSource extends IFireDoc {
|
|
@@ -47,7 +46,6 @@ export interface IAppointmentSource extends IFireDoc {
|
|
|
47
46
|
name: string;
|
|
48
47
|
order: number;
|
|
49
48
|
external_id?: string | null;
|
|
50
|
-
tags?: ITag[] | null;
|
|
51
49
|
[key: string]: unknown;
|
|
52
50
|
}
|
|
53
51
|
export interface IAppointmentRequestType extends IFireDoc {
|
|
@@ -55,7 +53,6 @@ export interface IAppointmentRequestType extends IFireDoc {
|
|
|
55
53
|
name: string;
|
|
56
54
|
order: number;
|
|
57
55
|
external_id?: string | null;
|
|
58
|
-
tags?: ITag[] | null;
|
|
59
56
|
[key: string]: unknown;
|
|
60
57
|
}
|
|
61
58
|
export declare const AppointmentStatusTypeEnum: {
|
|
@@ -62,7 +62,6 @@ export interface IPatientSource extends IFireDoc {
|
|
|
62
62
|
name: string;
|
|
63
63
|
order: number;
|
|
64
64
|
external_id?: string | null; // ID externo da fonte de pacientes
|
|
65
|
-
tags?: ITag[] | null;
|
|
66
65
|
[key: string]: unknown; // index signature
|
|
67
66
|
}
|
|
68
67
|
|
|
@@ -71,7 +70,6 @@ export interface IAppointmentSource extends IFireDoc {
|
|
|
71
70
|
name: string;
|
|
72
71
|
order: number;
|
|
73
72
|
external_id?: string | null; // ID externo da fonte de agendamentos
|
|
74
|
-
tags?: ITag[] | null;
|
|
75
73
|
[key: string]: unknown; // index signature
|
|
76
74
|
}
|
|
77
75
|
|
|
@@ -80,7 +78,6 @@ export interface IAppointmentRequestType extends IFireDoc {
|
|
|
80
78
|
name: string;
|
|
81
79
|
order: number;
|
|
82
80
|
external_id?: string | null; // ID externo do tipo de agendamento
|
|
83
|
-
tags?: ITag[] | null;
|
|
84
81
|
[key: string]: unknown; // index signature
|
|
85
82
|
}
|
|
86
83
|
|