@integraciones_doc24/sdk 1.16.37 → 1.16.39

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.
Files changed (48) hide show
  1. package/README.md +225 -206
  2. package/lib/baseSdk/diagnostica.d.ts +54 -54
  3. package/lib/baseSdk/diagnostica.js +82 -82
  4. package/lib/baseSdk/external.d.ts +177 -177
  5. package/lib/baseSdk/external.js +96 -96
  6. package/lib/baseSdk/index.d.ts +2 -2
  7. package/lib/baseSdk/index.js +80 -77
  8. package/lib/baseSdk/integrationError.d.ts +16 -0
  9. package/lib/baseSdk/integrationError.js +33 -0
  10. package/lib/baseSdk/user.d.ts +115 -112
  11. package/lib/baseSdk/user.js +136 -136
  12. package/lib/index.d.ts +416 -400
  13. package/lib/index.js +22 -22
  14. package/lib/request/index.d.ts +4 -4
  15. package/lib/request/index.js +32 -32
  16. package/lib/request/token.d.ts +2 -2
  17. package/lib/request/token.js +34 -34
  18. package/lib/request/validation.d.ts +10 -10
  19. package/lib/request/validation.js +28 -28
  20. package/lib/schemas.d.ts +2757 -2703
  21. package/lib/schemas.js +594 -573
  22. package/lib/types.d.ts +177 -174
  23. package/lib/types.js +2 -2
  24. package/lib/userSdk/binah.d.ts +21 -21
  25. package/lib/userSdk/binah.js +20 -20
  26. package/lib/userSdk/chat.d.ts +57 -57
  27. package/lib/userSdk/chat.js +98 -98
  28. package/lib/userSdk/external.d.ts +34 -34
  29. package/lib/userSdk/external.js +72 -72
  30. package/lib/userSdk/index.d.ts +2 -2
  31. package/lib/userSdk/index.js +33 -33
  32. package/lib/userSdk/patients.d.ts +60 -58
  33. package/lib/userSdk/patients.js +91 -89
  34. package/lib/userSdk/schedule.d.ts +59 -59
  35. package/lib/userSdk/schedule.js +90 -90
  36. package/lib/userSdk/specialties.d.ts +19 -19
  37. package/lib/userSdk/specialties.js +48 -48
  38. package/lib/userSdk/videoVisit.d.ts +225 -225
  39. package/lib/userSdk/videoVisit.js +283 -283
  40. package/lib/utils.d.ts +4 -4
  41. package/lib/utils.js +68 -68
  42. package/lib/webhook/index.d.ts +2 -2
  43. package/lib/webhook/index.js +67 -67
  44. package/lib/webhook/responses.d.ts +35 -35
  45. package/lib/webhook/responses.js +42 -42
  46. package/lib/webhook/token.d.ts +2 -2
  47. package/lib/webhook/token.js +23 -23
  48. package/package.json +37 -37
package/lib/schemas.js CHANGED
@@ -1,573 +1,594 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.doc24Schemas = void 0;
4
- const zod_1 = require("zod");
5
- const gender = zod_1.enum(['m', 'f', 'o']).optional();
6
- // const identificationType = zEnum(['ndi', 'passport', 'credential']);
7
- const sdkCredentials = zod_1.object({ iss: zod_1.string(), key: zod_1.string() });
8
- const basePersonData = zod_1.object({
9
- firstName: zod_1.string(),
10
- lastName: zod_1.string(),
11
- identificationType: zod_1.number().optional(),
12
- identificationValue: zod_1.string().optional(),
13
- countryId: zod_1.string(),
14
- birthdate: zod_1.date(),
15
- gender,
16
- emergencyContact: zod_1.string().nullish(),
17
- emergencyContactPhone: zod_1.number().or(zod_1.string()).nullish(),
18
- credential: zod_1.string().nullish(),
19
- plan: zod_1.string().nullish(),
20
- affiliationStatus: zod_1.string().nullish(),
21
- localidad: zod_1.string().nullish(),
22
- codPostal: zod_1.string().nullish(),
23
- });
24
- const patient = basePersonData;
25
- const user = basePersonData.extend({
26
- phone: zod_1.string().optional(),
27
- email: zod_1.string(),
28
- });
29
- const specialtyMode = zod_1.enum(['appointment', 'chat', 'instant']);
30
- const specialty = zod_1.object({
31
- id: zod_1.number(),
32
- description: zod_1.string(),
33
- start_age: zod_1.number().or(zod_1.string()).nullish(),
34
- end_age: zod_1.number().or(zod_1.string()).nullish(),
35
- authorization_code: zod_1.string().nullish(),
36
- });
37
- const scheduleAvailabilityFilter = zod_1.object({
38
- specialtyId: zod_1.number().optional(),
39
- professionalId: zod_1.number().optional(),
40
- language: zod_1.string().optional(),
41
- userTimeZone: zod_1.string().optional(),
42
- });
43
- const availableAppointment = zod_1.object({
44
- id: zod_1.number().or(zod_1.string()),
45
- date: zod_1.date(),
46
- clinicId: zod_1.number(),
47
- professional: zod_1.object({
48
- id: zod_1.number(),
49
- fullName: zod_1.string(),
50
- logoUrl: zod_1.string().nullish(),
51
- }),
52
- cost: zod_1.string(),
53
- specialty: specialty,
54
- type: specialtyMode,
55
- atentions: zod_1.number(),
56
- ranking: zod_1.unknown(),
57
- length: zod_1.number().nullish(),
58
- consultation_value: zod_1.string().optional().nullish(),
59
- inPerson: zod_1.boolean().nullish(),
60
- virtual: zod_1.boolean().nullish(),
61
- province: zod_1.string().nullish(),
62
- city: zod_1.string().nullish(),
63
- address: zod_1.string().nullish(),
64
- addressPhone: zod_1.string().nullish(),
65
- });
66
- const appointment = zod_1.object({
67
- id: zod_1.number(),
68
- professionalId: zod_1.number(),
69
- date: zod_1.date(),
70
- });
71
- const availableScheduleClinics = zod_1.object({
72
- specialties: specialty.array(),
73
- specialtiesER: specialty.array(),
74
- professionals: zod_1.object({
75
- id: zod_1.number(),
76
- fullName: zod_1.string(),
77
- clinicId: zod_1.number(),
78
- specialties: specialty.array(),
79
- }).array(),
80
- });
81
- const baseScheduleParameters = zod_1.object({
82
- patientId: zod_1.number(),
83
- specialtyId: zod_1.number(),
84
- language: zod_1.string(),
85
- details: zod_1.string(),
86
- extraInfo: zod_1.any(),
87
- });
88
- const appointmentScheduleParameters = baseScheduleParameters.extend({
89
- type: zod_1.literal('appointment'),
90
- appointmentId: zod_1.number().or(zod_1.string()),
91
- modality: zod_1.enum(['P', 'V']).optional(),
92
- });
93
- const instantScheduleParameters = baseScheduleParameters.extend({
94
- type: zod_1.literal('instant'),
95
- });
96
- const chatroomAvailabilityFilter = zod_1.object({
97
- limit: zod_1.number().optional(),
98
- offset: zod_1.number().optional(),
99
- });
100
- const chatParameters = zod_1.object({
101
- patientId: zod_1.number(),
102
- chatroomId: zod_1.number(),
103
- language: zod_1.string(),
104
- specialtyId: zod_1.number(),
105
- });
106
- const availableChatroom = zod_1.object({
107
- id: zod_1.number(),
108
- professional: zod_1.object({
109
- id: zod_1.number(),
110
- fullName: zod_1.string(),
111
- logoUrl: zod_1.string().nullish(),
112
- }),
113
- specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
114
- });
115
- const chatDetails = zod_1.object({
116
- id: zod_1.number(),
117
- chatRoomId: zod_1.number(),
118
- startDate: zod_1.date(),
119
- lastEventDate: zod_1.date(),
120
- closureDate: zod_1.date().nullable(),
121
- patient: zod_1.object({
122
- id: zod_1.number(),
123
- firstName: zod_1.string(),
124
- lastName: zod_1.string(),
125
- }),
126
- patientLastPost: zod_1.date().nullable(),
127
- professional: zod_1.object({
128
- id: zod_1.number(),
129
- fullName: zod_1.string(),
130
- logoUrl: zod_1.string().nullish(),
131
- }),
132
- professionalLastPost: zod_1.date().nullable(),
133
- specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
134
- status: zod_1.string(),
135
- paymentStatus: zod_1.string(),
136
- });
137
- const chatPost = zod_1.object({
138
- id: zod_1.number(),
139
- userType: zod_1.enum(['patient', 'professional']),
140
- message: zod_1.string(),
141
- date: zod_1.date(),
142
- });
143
- const enrollmentParams = zod_1.object({
144
- firstName: zod_1.string(),
145
- lastName: zod_1.string(),
146
- gender: gender,
147
- identificationNumber: zod_1.string(),
148
- birthdate: zod_1.date(),
149
- email: zod_1.string().email(),
150
- plan: zod_1.string(),
151
- startDate: zod_1.date(),
152
- });
153
- const diagnosticaHistoryAppointment = zod_1.object({
154
- date: zod_1.date(),
155
- location: zod_1.string(),
156
- exams: zod_1.string().array(),
157
- deepLink: zod_1.string().url(),
158
- });
159
- const diagnosticaPatient = zod_1.object({
160
- firstName: zod_1.string(),
161
- lastName: zod_1.string(),
162
- birthday: zod_1.date(),
163
- identificationType: zod_1.literal('DNI'),
164
- identificationValue: zod_1.string(),
165
- gender: gender,
166
- });
167
- const diagnosticaUser = diagnosticaPatient.merge(zod_1.object({
168
- phone: zod_1.string(),
169
- email: zod_1.string().email(),
170
- language: zod_1.string(),
171
- }));
172
- const diagnosticaDeepLinkResponse = zod_1.object({
173
- forwardingRequired: zod_1.literal(true),
174
- deepLink: zod_1.string().url(),
175
- }).or(zod_1.object({ forwardingRequired: zod_1.literal(false) }));
176
- // Files the patient attached from the waiting room (upload-file-consultation).
177
- // Separate from `files`, which are the attention's own documents.
178
- const attachedFile = zod_1.object({
179
- fileId: zod_1.number(),
180
- fileName: zod_1.string().nullable(),
181
- fileUrl: zod_1.string().url(),
182
- fileType: zod_1.enum(['IMG', 'FILE']),
183
- uploadDate: zod_1.date(),
184
- });
185
- const videoVisit = zod_1.object({
186
- id: zod_1.number().nullable(),
187
- creationDate: zod_1.date(),
188
- patientId: zod_1.number(),
189
- user: zod_1.object({
190
- id: zod_1.number(),
191
- email: zod_1.string().nullable(),
192
- phone: zod_1.string().nullable(),
193
- }),
194
- vcToken: zod_1.string(),
195
- appointment: zod_1.object({
196
- id: zod_1.number(),
197
- date: zod_1.date(),
198
- }).optional(),
199
- videoVisit: zod_1.object({
200
- id: zod_1.number(),
201
- status: zod_1.string(),
202
- }).optional(),
203
- paymentStatus: zod_1.string().optional(),
204
- atentionId: zod_1.number().optional(),
205
- waitingTime: zod_1.string().optional(),
206
- address: zod_1.string().optional(),
207
- city: zod_1.string().optional(),
208
- province: zod_1.string().optional(),
209
- modality: zod_1.enum(['P', 'V']).optional(),
210
- attachedFiles: zod_1.array(attachedFile),
211
- });
212
- const historicalVideoVisit = videoVisit.extend({
213
- specialty: zod_1.string(),
214
- professional: zod_1.string(),
215
- medications: zod_1.boolean().optional(),
216
- practices: zod_1.boolean().optional(),
217
- });
218
- const coverageInfo = zod_1.object({
219
- financerId: zod_1.number().nullable(),
220
- defaultAffiliationId: zod_1.number().nullable(),
221
- plan: zod_1.string().nullable(),
222
- identificationNumber: zod_1.string(),
223
- credentialNumber: zod_1.string().nullable(),
224
- lastName: zod_1.string().nullable(),
225
- firstName: zod_1.string().nullable(),
226
- birthdate: zod_1.date(),
227
- financerPlanId: zod_1.number().nullable(),
228
- gender,
229
- brand: zod_1.number().nullable(),
230
- holderIdentificationNumber: zod_1.string().nullable(),
231
- copaymentValue: zod_1.number().nullable(),
232
- mobilePhone: zod_1.string().nullable(),
233
- company: zod_1.string().nullable(),
234
- email: zod_1.string().email().nullable(),
235
- dischargeDate: zod_1.date().nullable(),
236
- leavingDate: zod_1.date().nullable(),
237
- identificacion_tributaria: zod_1.string().nullable(),
238
- deregistrationDate: zod_1.date().nullable(),
239
- authorizationCode: zod_1.string().nullable(),
240
- authorizationCodeExpiration: zod_1.date().nullable(),
241
- }).nullable();
242
- const sendVerificationCodeParams = zod_1.object({
243
- identificationType: zod_1.number(),
244
- identificationValue: zod_1.string(),
245
- channel: zod_1.enum(['1', '2']),
246
- });
247
- const verificationCodeParams = zod_1.object({
248
- channel: zod_1.enum(['1', '2']).optional(),
249
- code: zod_1.string().optional(),
250
- });
251
- const declareUserParams = zod_1.object({
252
- user,
253
- }).and(verificationCodeParams);
254
- const declarePatientParams = zod_1.object({
255
- patient,
256
- }).and(verificationCodeParams);
257
- const declarePatientResponse = zod_1.object({
258
- userInfo: zod_1.object({
259
- firstName: zod_1.string(),
260
- lastName: zod_1.string(),
261
- email: zod_1.string(),
262
- phone: zod_1.string(),
263
- }),
264
- askCode: zod_1.literal(true),
265
- }).or(zod_1.object({
266
- askCode: zod_1.literal(false),
267
- patientId: zod_1.number().nullable(),
268
- }));
269
- const declareUserResponse = zod_1.object({
270
- userInfo: zod_1.object({
271
- email: zod_1.string(),
272
- phone: zod_1.string(),
273
- }),
274
- askCode: zod_1.literal(true),
275
- }).or(zod_1.object({
276
- askCode: zod_1.literal(false),
277
- patientId: zod_1.number().nullable(),
278
- userId: zod_1.number(),
279
- }));
280
- const externalLoginParams = zod_1.object({
281
- user: zod_1.string(),
282
- password: zod_1.string(),
283
- });
284
- const externalLoginResponse = zod_1.object({
285
- firstName: zod_1.string(),
286
- lastName: zod_1.string(),
287
- countryId: zod_1.string(),
288
- birthday: zod_1.date(),
289
- identificationNumber: zod_1.string(),
290
- gender,
291
- email: zod_1.string().email(),
292
- phone: zod_1.string(),
293
- });
294
- const emailOrPhone = zod_1.union([
295
- zod_1.object({ email: zod_1.string(), phone: zod_1.string() }),
296
- zod_1.object({ email: zod_1.string(), phone: zod_1.undefined() }),
297
- zod_1.object({ email: zod_1.undefined(), phone: zod_1.string() }),
298
- ]).refine((data) => data.email || data.phone, 'Either phone or email is required');
299
- const preExternalEnrollmentParams = zod_1.object({
300
- identificationNumber: zod_1.string(),
301
- birthdate: zod_1.date(),
302
- }).and(emailOrPhone);
303
- const emailOrPhoneCode = zod_1.union([
304
- zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.string() }),
305
- zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.undefined() }),
306
- zod_1.object({ emailCode: zod_1.undefined(), phoneCode: zod_1.string() }),
307
- ]).refine((data) => data.emailCode || data.phoneCode, 'Either phone code or email code is required');
308
- const externalEnrollmentParams = preExternalEnrollmentParams
309
- .and(zod_1.object({ password: zod_1.string() }))
310
- .and(emailOrPhoneCode);
311
- const sendExternalVerificationCodeParams = zod_1.object({
312
- identificationNumber: zod_1.string(),
313
- birthdate: zod_1.date(),
314
- channel: zod_1.enum(['1', '2']),
315
- });
316
- const verifyExternalVerificationCodeParams = sendExternalVerificationCodeParams.extend({ code: zod_1.string() });
317
- const externalResetPasswordParams = zod_1.object({
318
- identificationNumber: zod_1.string(),
319
- birthdate: zod_1.date(),
320
- password: zod_1.string(),
321
- }).and(emailOrPhoneCode);
322
- const externalPatient = zod_1.object({
323
- birthdate: zod_1.date(),
324
- identificationType: zod_1.literal('DNI'),
325
- identificationValue: zod_1.string(),
326
- gender: gender,
327
- });
328
- const externalAppointment = zod_1.object({
329
- id: zod_1.number(),
330
- patientIdentification: zod_1.string().optional(),
331
- patientName: zod_1.string(),
332
- birthdate: zod_1.date(),
333
- appointment: zod_1.string(),
334
- clinic: zod_1.string(),
335
- professionalName: zod_1.string(),
336
- date: zod_1.date(),
337
- specialty: zod_1.string(),
338
- modality: zod_1.string(),
339
- });
340
- const binahWellnessGetLinkParams = zod_1.object({
341
- socket: zod_1.object({
342
- device: zod_1.string(),
343
- provider: zod_1.string(),
344
- socketUrl: zod_1.string(),
345
- callbackUrl: zod_1.string(),
346
- socketAuthToken: zod_1.string(),
347
- }),
348
- patientId: zod_1.number(),
349
- });
350
- const binahWellnessResponse = zod_1.object({
351
- data: zod_1.object({
352
- info: zod_1.object({
353
- link: zod_1.string().url(),
354
- }),
355
- timestamp: zod_1.string(),
356
- }),
357
- signature: zod_1.string(),
358
- });
359
- exports.doc24Schemas = {
360
- sdkCredentials,
361
- sdkParams: zod_1.object({ url: zod_1.string(), credentials: sdkCredentials }),
362
- user,
363
- patient,
364
- specialtyMode,
365
- specialty,
366
- scheduleAvailabilityFilter,
367
- availableAppointment,
368
- availableScheduleClinics,
369
- scheduleFilter: zod_1.object({
370
- professionalId: zod_1.number().optional(),
371
- offset: zod_1.number().optional(),
372
- limit: zod_1.number().optional(),
373
- weekDay: zod_1.number().optional(),
374
- date: zod_1.date().optional(),
375
- startHour: zod_1.string().optional(),
376
- finishHour: zod_1.string().optional(),
377
- language: zod_1.string().optional(),
378
- userTimeZone: zod_1.string().optional(),
379
- showAppointmentConfiguration: zod_1.boolean().optional(),
380
- }),
381
- professionalsBySpecialtyFilter: zod_1.object({
382
- professionalId: zod_1.number().optional().nullable(),
383
- specialtyId: zod_1.number().optional().nullable(),
384
- offset: zod_1.number().optional().nullable(),
385
- limit: zod_1.number().optional().nullable(),
386
- language: zod_1.string().optional().nullable(),
387
- }),
388
- scheduleParameters: zod_1.union([
389
- appointmentScheduleParameters,
390
- instantScheduleParameters,
391
- ]),
392
- attachedFile,
393
- videoVisit,
394
- historicalVideoVisit,
395
- videoVisitDetails: zod_1.object({
396
- id: zod_1.number(),
397
- vcToken: zod_1.string().optional(),
398
- status: zod_1.string(),
399
- paymentStatus: zod_1.string(),
400
- professional: zod_1.object({
401
- id: zod_1.number(),
402
- fullName: zod_1.string(),
403
- }).optional(),
404
- patient: zod_1.object({
405
- fullName: zod_1.string(),
406
- firstAccessDate: zod_1.date(),
407
- lastAccessDate: zod_1.date(),
408
- }),
409
- finishDate: zod_1.date().nullable(),
410
- retries: zod_1.number(),
411
- language: zod_1.string(),
412
- appointment: zod_1.object({ id: zod_1.number(), date: zod_1.date() }).nullable(),
413
- report: zod_1.object({
414
- motive: zod_1.string().nullable(),
415
- actualDesease: zod_1.string().nullable(),
416
- indications: zod_1.string().nullable(),
417
- alertSigns: zod_1.string().nullable(),
418
- extendedMotive: zod_1.string().nullable(),
419
- diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
420
- }),
421
- pdf: zod_1.object({
422
- atention: zod_1.string().optional(),
423
- labs: zod_1.string().optional(),
424
- otherExams: zod_1.string().optional(),
425
- images: zod_1.string().optional(),
426
- medication: zod_1.array(zod_1.any()),
427
- }),
428
- files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
429
- attachedFiles: zod_1.array(attachedFile),
430
- }),
431
- completeVideoVisitDetails: zod_1.object({
432
- id: zod_1.number(),
433
- status: zod_1.string(),
434
- paymentStatus: zod_1.string(),
435
- modality: zod_1.enum(['P', 'V']).optional(),
436
- address: zod_1.string().optional(),
437
- city: zod_1.string().optional(),
438
- province: zod_1.string().optional(),
439
- professional: zod_1.object({
440
- id: zod_1.number(),
441
- fullName: zod_1.string(),
442
- specialtyId: zod_1.number(),
443
- specialty: zod_1.string(),
444
- idPrestadorInterno: zod_1.string().nullish(),
445
- }).optional(),
446
- finishDate: zod_1.date().nullable(),
447
- retries: zod_1.number().nullish(),
448
- language: zod_1.string(),
449
- report: zod_1.object({
450
- motive: zod_1.string().nullable(),
451
- actualDesease: zod_1.string().nullable(),
452
- indications: zod_1.string().nullish(),
453
- alertSigns: zod_1.string().nullable(),
454
- extendedMotive: zod_1.string().nullable(),
455
- diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
456
- medication: zod_1.array(zod_1.object({
457
- description: zod_1.string().nullish(),
458
- quantity: zod_1.number().nullish(),
459
- dose: zod_1.string().nullish(),
460
- farmalinkId: zod_1.number().nullish(),
461
- })),
462
- prescription: zod_1.object({
463
- link: zod_1.string().nullish(),
464
- codigo: zod_1.number().nullish(),
465
- }),
466
- inPersonRequired: zod_1.string().nullish(),
467
- referral: zod_1.object({
468
- status: zod_1.string().nullish(),
469
- specialtyId: zod_1.any(),
470
- inPersonRequired: zod_1.string().nullish(),
471
- comments: zod_1.string().nullish(),
472
- }),
473
- }),
474
- pdf: zod_1.object({
475
- atention: zod_1.any(),
476
- labs: zod_1.any(),
477
- otherExams: zod_1.any(),
478
- images: zod_1.any(),
479
- medication: zod_1.array(zod_1.any()),
480
- certificate: zod_1.array(zod_1.any()).or(zod_1.string()).nullish(),
481
- }),
482
- files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
483
- attachedFiles: zod_1.array(attachedFile),
484
- }),
485
- activeVideoVisitData: zod_1.object({
486
- consultationId: zod_1.number(),
487
- patientId: zod_1.number(),
488
- vcToken: zod_1.string(),
489
- }),
490
- professional: zod_1.object({
491
- id: zod_1.number(),
492
- firstName: zod_1.string(),
493
- lastName: zod_1.string(),
494
- birthdate: zod_1.date(),
495
- gender,
496
- email: zod_1.string(),
497
- phone: zod_1.string().nullable(),
498
- logoUrl: zod_1.string().nullish(),
499
- matriculation: zod_1.array(zod_1.object({ number: zod_1.string(), type: zod_1.string() })),
500
- specialties: zod_1.array(specialty),
501
- degree: zod_1.string(),
502
- languages: zod_1.array(zod_1.string()),
503
- resume: zod_1.object({
504
- link: zod_1.string(),
505
- brief: zod_1.string().nullish(),
506
- }),
507
- consultation_value: zod_1.string().optional().nullish(),
508
- hasAvailability: zod_1.boolean().optional(),
509
- status: zod_1.enum(['active', 'deactivated']).optional(),
510
- }),
511
- professionalsListItem: zod_1.object({
512
- id: zod_1.number(),
513
- fullName: zod_1.string(),
514
- consultation_value: zod_1.number().or(zod_1.string()).optional().nullish(),
515
- logoUrl: zod_1.string().nullish(),
516
- primer_turno: zod_1.string().optional(),
517
- degree: zod_1.string().optional(),
518
- brief: zod_1.string().nullish(),
519
- }),
520
- appointment,
521
- chatroomAvailabilityFilter,
522
- chatParameters,
523
- availableChatroom,
524
- chatDetails,
525
- chatPost,
526
- enrollmentParams,
527
- diagnosticaPatientFilter: zod_1.object({
528
- gender,
529
- identificationType: zod_1.literal('DNI'),
530
- identificationValue: zod_1.string(),
531
- }),
532
- diagnosticaHistoryAppointment,
533
- diagnosticaUser,
534
- diagnosticaPatient,
535
- diagnosticaDeepLinkResponse,
536
- coverageInfo,
537
- sendVerificationCodeParams,
538
- declareUserParams,
539
- declareUserResponse,
540
- declarePatientParams,
541
- declarePatientResponse,
542
- verificationCodeParams,
543
- externalLoginParams,
544
- externalLoginResponse,
545
- preExternalEnrollmentParams,
546
- externalEnrollmentParams,
547
- sendExternalVerificationCodeParams,
548
- verifyExternalVerificationCodeParams,
549
- externalResetPasswordParams,
550
- externalPatient,
551
- externalAppointment,
552
- binahWellnessResponse,
553
- binahWellnessGetLinkParams,
554
- emailOrPhone,
555
- emailOrPhoneCode,
556
- uploadFileConsultationParams: zod_1.object({
557
- vcToken: zod_1.string(),
558
- attachedFile: zod_1.string(),
559
- fileName: zod_1.string().optional(),
560
- }),
561
- uploadFileConsultationResponse: zod_1.object({
562
- fileId: zod_1.number().optional(),
563
- }),
564
- deleteFileConsultationParams: zod_1.object({
565
- vcToken: zod_1.string(),
566
- fileId: zod_1.number(),
567
- }),
568
- healthQuizParams: zod_1.object({
569
- patientId: zod_1.number(),
570
- quiz: zod_1.record(zod_1.any()),
571
- origen: zod_1.string(),
572
- }),
573
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.doc24Schemas = void 0;
4
+ const zod_1 = require("zod");
5
+ const gender = zod_1.enum(['m', 'f', 'o']).optional();
6
+ // const identificationType = zEnum(['ndi', 'passport', 'credential']);
7
+ const sdkCredentials = zod_1.object({ iss: zod_1.string(), key: zod_1.string() });
8
+ const basePersonData = zod_1.object({
9
+ firstName: zod_1.string(),
10
+ lastName: zod_1.string(),
11
+ identificationType: zod_1.number().optional(),
12
+ identificationValue: zod_1.string().optional(),
13
+ countryId: zod_1.string(),
14
+ birthdate: zod_1.date(),
15
+ gender,
16
+ emergencyContact: zod_1.string().nullish(),
17
+ emergencyContactPhone: zod_1.number().or(zod_1.string()).nullish(),
18
+ credential: zod_1.string().nullish(),
19
+ plan: zod_1.string().nullish(),
20
+ affiliationStatus: zod_1.string().nullish(),
21
+ localidad: zod_1.string().nullish(),
22
+ codPostal: zod_1.string().nullish(),
23
+ provincia: zod_1.string().nullish(),
24
+ });
25
+ const patient = basePersonData;
26
+ const user = basePersonData.extend({
27
+ phone: zod_1.string().optional(),
28
+ email: zod_1.string(),
29
+ });
30
+ const specialtyMode = zod_1.enum(['appointment', 'chat', 'instant']);
31
+ const specialty = zod_1.object({
32
+ id: zod_1.number(),
33
+ description: zod_1.string(),
34
+ start_age: zod_1.number().or(zod_1.string()).nullish(),
35
+ end_age: zod_1.number().or(zod_1.string()).nullish(),
36
+ authorization_code: zod_1.string().nullish(),
37
+ });
38
+ const scheduleAvailabilityFilter = zod_1.object({
39
+ specialtyId: zod_1.number().optional(),
40
+ professionalId: zod_1.number().optional(),
41
+ language: zod_1.string().optional(),
42
+ userTimeZone: zod_1.string().optional(),
43
+ });
44
+ const availableAppointment = zod_1.object({
45
+ id: zod_1.number().or(zod_1.string()),
46
+ date: zod_1.date(),
47
+ clinicId: zod_1.number(),
48
+ professional: zod_1.object({
49
+ id: zod_1.number(),
50
+ fullName: zod_1.string(),
51
+ logoUrl: zod_1.string().nullish(),
52
+ }),
53
+ cost: zod_1.string(),
54
+ specialty: specialty,
55
+ type: specialtyMode,
56
+ atentions: zod_1.number(),
57
+ ranking: zod_1.unknown(),
58
+ length: zod_1.number().nullish(),
59
+ consultation_value: zod_1.string().optional().nullish(),
60
+ inPerson: zod_1.boolean().nullish(),
61
+ virtual: zod_1.boolean().nullish(),
62
+ province: zod_1.string().nullish(),
63
+ city: zod_1.string().nullish(),
64
+ address: zod_1.string().nullish(),
65
+ addressPhone: zod_1.string().nullish(),
66
+ });
67
+ const appointment = zod_1.object({
68
+ id: zod_1.number(),
69
+ professionalId: zod_1.number(),
70
+ date: zod_1.date(),
71
+ });
72
+ const availableScheduleClinics = zod_1.object({
73
+ specialties: specialty.array(),
74
+ specialtiesER: specialty.array(),
75
+ professionals: zod_1.object({
76
+ id: zod_1.number(),
77
+ fullName: zod_1.string(),
78
+ clinicId: zod_1.number(),
79
+ specialties: specialty.array(),
80
+ }).array(),
81
+ });
82
+ const baseScheduleParameters = zod_1.object({
83
+ patientId: zod_1.number(),
84
+ specialtyId: zod_1.number(),
85
+ language: zod_1.string(),
86
+ details: zod_1.string(),
87
+ extraInfo: zod_1.any(),
88
+ });
89
+ const appointmentScheduleParameters = baseScheduleParameters.extend({
90
+ type: zod_1.literal('appointment'),
91
+ appointmentId: zod_1.number().or(zod_1.string()),
92
+ modality: zod_1.enum(['P', 'V']).optional(),
93
+ });
94
+ const instantScheduleParameters = baseScheduleParameters.extend({
95
+ type: zod_1.literal('instant'),
96
+ });
97
+ const chatroomAvailabilityFilter = zod_1.object({
98
+ limit: zod_1.number().optional(),
99
+ offset: zod_1.number().optional(),
100
+ });
101
+ const chatParameters = zod_1.object({
102
+ patientId: zod_1.number(),
103
+ chatroomId: zod_1.number(),
104
+ language: zod_1.string(),
105
+ specialtyId: zod_1.number(),
106
+ });
107
+ const availableChatroom = zod_1.object({
108
+ id: zod_1.number(),
109
+ professional: zod_1.object({
110
+ id: zod_1.number(),
111
+ fullName: zod_1.string(),
112
+ logoUrl: zod_1.string().nullish(),
113
+ }),
114
+ specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
115
+ });
116
+ const chatDetails = zod_1.object({
117
+ id: zod_1.number(),
118
+ chatRoomId: zod_1.number(),
119
+ startDate: zod_1.date(),
120
+ lastEventDate: zod_1.date(),
121
+ closureDate: zod_1.date().nullable(),
122
+ patient: zod_1.object({
123
+ id: zod_1.number(),
124
+ firstName: zod_1.string(),
125
+ lastName: zod_1.string(),
126
+ }),
127
+ patientLastPost: zod_1.date().nullable(),
128
+ professional: zod_1.object({
129
+ id: zod_1.number(),
130
+ fullName: zod_1.string(),
131
+ logoUrl: zod_1.string().nullish(),
132
+ }),
133
+ professionalLastPost: zod_1.date().nullable(),
134
+ specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
135
+ status: zod_1.string(),
136
+ paymentStatus: zod_1.string(),
137
+ });
138
+ const chatPost = zod_1.object({
139
+ id: zod_1.number(),
140
+ userType: zod_1.enum(['patient', 'professional']),
141
+ message: zod_1.string(),
142
+ date: zod_1.date(),
143
+ });
144
+ const enrollmentParams = zod_1.object({
145
+ firstName: zod_1.string(),
146
+ lastName: zod_1.string(),
147
+ gender: gender,
148
+ identificationNumber: zod_1.string(),
149
+ birthdate: zod_1.date(),
150
+ email: zod_1.string().email(),
151
+ plan: zod_1.string(),
152
+ startDate: zod_1.date(),
153
+ });
154
+ const diagnosticaHistoryAppointment = zod_1.object({
155
+ date: zod_1.date(),
156
+ location: zod_1.string(),
157
+ exams: zod_1.string().array(),
158
+ deepLink: zod_1.string().url(),
159
+ });
160
+ const diagnosticaPatient = zod_1.object({
161
+ firstName: zod_1.string(),
162
+ lastName: zod_1.string(),
163
+ birthday: zod_1.date(),
164
+ identificationType: zod_1.literal('DNI'),
165
+ identificationValue: zod_1.string(),
166
+ gender: gender,
167
+ });
168
+ const diagnosticaUser = diagnosticaPatient.merge(zod_1.object({
169
+ phone: zod_1.string(),
170
+ email: zod_1.string().email(),
171
+ language: zod_1.string(),
172
+ }));
173
+ const diagnosticaDeepLinkResponse = zod_1.object({
174
+ forwardingRequired: zod_1.literal(true),
175
+ deepLink: zod_1.string().url(),
176
+ }).or(zod_1.object({ forwardingRequired: zod_1.literal(false) }));
177
+ // Files the patient attached from the waiting room (upload-file-consultation).
178
+ // Separate from `files`, which are the attention's own documents.
179
+ const attachedFile = zod_1.object({
180
+ fileId: zod_1.number(),
181
+ fileName: zod_1.string().nullable(),
182
+ fileUrl: zod_1.string().url(),
183
+ fileType: zod_1.enum(['IMG', 'FILE']),
184
+ uploadDate: zod_1.date(),
185
+ });
186
+ const videoVisit = zod_1.object({
187
+ id: zod_1.number().nullable(),
188
+ creationDate: zod_1.date(),
189
+ patientId: zod_1.number(),
190
+ user: zod_1.object({
191
+ id: zod_1.number(),
192
+ email: zod_1.string().nullable(),
193
+ phone: zod_1.string().nullable(),
194
+ }),
195
+ vcToken: zod_1.string(),
196
+ appointment: zod_1.object({
197
+ id: zod_1.number(),
198
+ date: zod_1.date(),
199
+ }).optional(),
200
+ videoVisit: zod_1.object({
201
+ id: zod_1.number(),
202
+ status: zod_1.string(),
203
+ }).optional(),
204
+ paymentStatus: zod_1.string().optional(),
205
+ atentionId: zod_1.number().optional(),
206
+ waitingTime: zod_1.string().optional(),
207
+ address: zod_1.string().optional(),
208
+ city: zod_1.string().optional(),
209
+ province: zod_1.string().optional(),
210
+ modality: zod_1.enum(['P', 'V']).optional(),
211
+ attachedFiles: zod_1.array(attachedFile),
212
+ });
213
+ const historicalVideoVisit = videoVisit.extend({
214
+ specialty: zod_1.string(),
215
+ professional: zod_1.string(),
216
+ medications: zod_1.boolean().optional(),
217
+ practices: zod_1.boolean().optional(),
218
+ });
219
+ const coverageInfo = zod_1.object({
220
+ financerId: zod_1.number().nullable(),
221
+ defaultAffiliationId: zod_1.number().nullable(),
222
+ plan: zod_1.string().nullable(),
223
+ identificationNumber: zod_1.string(),
224
+ credentialNumber: zod_1.string().nullable(),
225
+ lastName: zod_1.string().nullable(),
226
+ firstName: zod_1.string().nullable(),
227
+ birthdate: zod_1.date(),
228
+ financerPlanId: zod_1.number().nullable(),
229
+ gender,
230
+ brand: zod_1.number().nullable(),
231
+ holderIdentificationNumber: zod_1.string().nullable(),
232
+ copaymentValue: zod_1.number().nullable(),
233
+ mobilePhone: zod_1.string().nullable(),
234
+ company: zod_1.string().nullable(),
235
+ email: zod_1.string().email().nullable(),
236
+ dischargeDate: zod_1.date().nullable(),
237
+ leavingDate: zod_1.date().nullable(),
238
+ identificacion_tributaria: zod_1.string().nullable(),
239
+ deregistrationDate: zod_1.date().nullable(),
240
+ authorizationCode: zod_1.string().nullable(),
241
+ authorizationCodeExpiration: zod_1.date().nullable(),
242
+ }).nullable();
243
+ const sendVerificationCodeParams = zod_1.object({
244
+ identificationType: zod_1.number(),
245
+ identificationValue: zod_1.string(),
246
+ channel: zod_1.enum(['1', '2']),
247
+ });
248
+ const verificationCodeParams = zod_1.object({
249
+ channel: zod_1.enum(['1', '2']).optional(),
250
+ code: zod_1.string().optional(),
251
+ });
252
+ const declareUserParams = zod_1.object({
253
+ user,
254
+ }).and(verificationCodeParams);
255
+ const declarePatientParams = zod_1.object({
256
+ patient,
257
+ }).and(verificationCodeParams);
258
+ const declarePatientResponse = zod_1.object({
259
+ userInfo: zod_1.object({
260
+ firstName: zod_1.string(),
261
+ lastName: zod_1.string(),
262
+ email: zod_1.string(),
263
+ phone: zod_1.string(),
264
+ }),
265
+ askCode: zod_1.literal(true),
266
+ }).or(zod_1.object({
267
+ askCode: zod_1.literal(false),
268
+ patientId: zod_1.number().nullable(),
269
+ }));
270
+ const declareUserResponse = zod_1.object({
271
+ userInfo: zod_1.object({
272
+ email: zod_1.string(),
273
+ phone: zod_1.string(),
274
+ }),
275
+ askCode: zod_1.literal(true),
276
+ }).or(zod_1.object({
277
+ askCode: zod_1.literal(false),
278
+ patientId: zod_1.number().nullable(),
279
+ userId: zod_1.number(),
280
+ }));
281
+ const externalLoginParams = zod_1.object({
282
+ user: zod_1.string(),
283
+ password: zod_1.string(),
284
+ });
285
+ const externalLoginResponse = zod_1.object({
286
+ firstName: zod_1.string(),
287
+ lastName: zod_1.string(),
288
+ countryId: zod_1.string(),
289
+ birthday: zod_1.date(),
290
+ identificationNumber: zod_1.string(),
291
+ gender,
292
+ email: zod_1.string().email(),
293
+ phone: zod_1.string(),
294
+ });
295
+ const emailOrPhone = zod_1.union([
296
+ zod_1.object({ email: zod_1.string(), phone: zod_1.string() }),
297
+ zod_1.object({ email: zod_1.string(), phone: zod_1.undefined() }),
298
+ zod_1.object({ email: zod_1.undefined(), phone: zod_1.string() }),
299
+ ]).refine((data) => data.email || data.phone, 'Either phone or email is required');
300
+ const preExternalEnrollmentParams = zod_1.object({
301
+ identificationNumber: zod_1.string(),
302
+ birthdate: zod_1.date(),
303
+ }).and(emailOrPhone);
304
+ const emailOrPhoneCode = zod_1.union([
305
+ zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.string() }),
306
+ zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.undefined() }),
307
+ zod_1.object({ emailCode: zod_1.undefined(), phoneCode: zod_1.string() }),
308
+ ]).refine((data) => data.emailCode || data.phoneCode, 'Either phone code or email code is required');
309
+ const externalEnrollmentParams = preExternalEnrollmentParams
310
+ .and(zod_1.object({ password: zod_1.string() }))
311
+ .and(emailOrPhoneCode);
312
+ const sendExternalVerificationCodeParams = zod_1.object({
313
+ identificationNumber: zod_1.string(),
314
+ birthdate: zod_1.date(),
315
+ channel: zod_1.enum(['1', '2']),
316
+ });
317
+ const verifyExternalVerificationCodeParams = sendExternalVerificationCodeParams.extend({ code: zod_1.string() });
318
+ const externalResetPasswordParams = zod_1.object({
319
+ identificationNumber: zod_1.string(),
320
+ birthdate: zod_1.date(),
321
+ password: zod_1.string(),
322
+ }).and(emailOrPhoneCode);
323
+ const externalPatient = zod_1.object({
324
+ birthdate: zod_1.date(),
325
+ identificationType: zod_1.literal('DNI'),
326
+ identificationValue: zod_1.string(),
327
+ gender: gender,
328
+ });
329
+ const externalAppointment = zod_1.object({
330
+ id: zod_1.number(),
331
+ patientIdentification: zod_1.string().optional(),
332
+ patientName: zod_1.string(),
333
+ birthdate: zod_1.date(),
334
+ appointment: zod_1.string(),
335
+ clinic: zod_1.string(),
336
+ professionalName: zod_1.string(),
337
+ date: zod_1.date(),
338
+ specialty: zod_1.string(),
339
+ modality: zod_1.string(),
340
+ });
341
+ const binahWellnessGetLinkParams = zod_1.object({
342
+ socket: zod_1.object({
343
+ device: zod_1.string(),
344
+ provider: zod_1.string(),
345
+ socketUrl: zod_1.string(),
346
+ callbackUrl: zod_1.string(),
347
+ socketAuthToken: zod_1.string(),
348
+ }),
349
+ patientId: zod_1.number(),
350
+ });
351
+ const binahWellnessResponse = zod_1.object({
352
+ data: zod_1.object({
353
+ info: zod_1.object({
354
+ link: zod_1.string().url(),
355
+ }),
356
+ timestamp: zod_1.string(),
357
+ }),
358
+ signature: zod_1.string(),
359
+ });
360
+ const integrationErrorDetailsMaxBytes = 64 * 1024;
361
+ const reportIntegrationErrorParams = zod_1.object({
362
+ integration: zod_1.string().min(1),
363
+ operation: zod_1.string().optional(),
364
+ severity: zod_1.enum(['INFO', 'WARNING', 'ERROR', 'CRITICAL']).optional(),
365
+ errorCode: zod_1.string().optional(),
366
+ httpStatus: zod_1.number().int().optional(),
367
+ params: zod_1.record(zod_1.unknown()),
368
+ occurredAt: zod_1.date(),
369
+ externalId: zod_1.string().optional(),
370
+ details: zod_1.record(zod_1.unknown())
371
+ .refine((d) => Buffer.byteLength(JSON.stringify(d), 'utf8') <=
372
+ integrationErrorDetailsMaxBytes, { message: 'details must not exceed 64 KB' })
373
+ .optional(),
374
+ });
375
+ const reportIntegrationErrorResponse = zod_1.object({
376
+ errorId: zod_1.number(),
377
+ });
378
+ exports.doc24Schemas = {
379
+ sdkCredentials,
380
+ reportIntegrationErrorParams,
381
+ reportIntegrationErrorResponse,
382
+ sdkParams: zod_1.object({ url: zod_1.string(), credentials: sdkCredentials }),
383
+ user,
384
+ patient,
385
+ specialtyMode,
386
+ specialty,
387
+ scheduleAvailabilityFilter,
388
+ availableAppointment,
389
+ availableScheduleClinics,
390
+ scheduleFilter: zod_1.object({
391
+ professionalId: zod_1.number().optional(),
392
+ offset: zod_1.number().optional(),
393
+ limit: zod_1.number().optional(),
394
+ weekDay: zod_1.number().optional(),
395
+ date: zod_1.date().optional(),
396
+ startHour: zod_1.string().optional(),
397
+ finishHour: zod_1.string().optional(),
398
+ language: zod_1.string().optional(),
399
+ userTimeZone: zod_1.string().optional(),
400
+ showAppointmentConfiguration: zod_1.boolean().optional(),
401
+ }),
402
+ professionalsBySpecialtyFilter: zod_1.object({
403
+ professionalId: zod_1.number().optional().nullable(),
404
+ specialtyId: zod_1.number().optional().nullable(),
405
+ offset: zod_1.number().optional().nullable(),
406
+ limit: zod_1.number().optional().nullable(),
407
+ language: zod_1.string().optional().nullable(),
408
+ }),
409
+ scheduleParameters: zod_1.union([
410
+ appointmentScheduleParameters,
411
+ instantScheduleParameters,
412
+ ]),
413
+ attachedFile,
414
+ videoVisit,
415
+ historicalVideoVisit,
416
+ videoVisitDetails: zod_1.object({
417
+ id: zod_1.number(),
418
+ vcToken: zod_1.string().optional(),
419
+ status: zod_1.string(),
420
+ paymentStatus: zod_1.string(),
421
+ professional: zod_1.object({
422
+ id: zod_1.number(),
423
+ fullName: zod_1.string(),
424
+ }).optional(),
425
+ patient: zod_1.object({
426
+ fullName: zod_1.string(),
427
+ firstAccessDate: zod_1.date(),
428
+ lastAccessDate: zod_1.date(),
429
+ }),
430
+ finishDate: zod_1.date().nullable(),
431
+ retries: zod_1.number(),
432
+ language: zod_1.string(),
433
+ appointment: zod_1.object({ id: zod_1.number(), date: zod_1.date() }).nullable(),
434
+ report: zod_1.object({
435
+ motive: zod_1.string().nullable(),
436
+ actualDesease: zod_1.string().nullable(),
437
+ indications: zod_1.string().nullable(),
438
+ alertSigns: zod_1.string().nullable(),
439
+ extendedMotive: zod_1.string().nullable(),
440
+ diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
441
+ }),
442
+ pdf: zod_1.object({
443
+ atention: zod_1.string().optional(),
444
+ labs: zod_1.string().optional(),
445
+ otherExams: zod_1.string().optional(),
446
+ images: zod_1.string().optional(),
447
+ medication: zod_1.array(zod_1.any()),
448
+ }),
449
+ files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
450
+ attachedFiles: zod_1.array(attachedFile),
451
+ }),
452
+ completeVideoVisitDetails: zod_1.object({
453
+ id: zod_1.number(),
454
+ status: zod_1.string(),
455
+ paymentStatus: zod_1.string(),
456
+ modality: zod_1.enum(['P', 'V']).optional(),
457
+ address: zod_1.string().optional(),
458
+ city: zod_1.string().optional(),
459
+ province: zod_1.string().optional(),
460
+ professional: zod_1.object({
461
+ id: zod_1.number(),
462
+ fullName: zod_1.string(),
463
+ specialtyId: zod_1.number(),
464
+ specialty: zod_1.string(),
465
+ idPrestadorInterno: zod_1.string().nullish(),
466
+ }).optional(),
467
+ finishDate: zod_1.date().nullable(),
468
+ retries: zod_1.number().nullish(),
469
+ language: zod_1.string(),
470
+ report: zod_1.object({
471
+ motive: zod_1.string().nullable(),
472
+ actualDesease: zod_1.string().nullable(),
473
+ indications: zod_1.string().nullish(),
474
+ alertSigns: zod_1.string().nullable(),
475
+ extendedMotive: zod_1.string().nullable(),
476
+ diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
477
+ medication: zod_1.array(zod_1.object({
478
+ description: zod_1.string().nullish(),
479
+ quantity: zod_1.number().nullish(),
480
+ dose: zod_1.string().nullish(),
481
+ farmalinkId: zod_1.number().nullish(),
482
+ })),
483
+ prescription: zod_1.object({
484
+ link: zod_1.string().nullish(),
485
+ codigo: zod_1.number().nullish(),
486
+ }),
487
+ inPersonRequired: zod_1.string().nullish(),
488
+ referral: zod_1.object({
489
+ status: zod_1.string().nullish(),
490
+ specialtyId: zod_1.any(),
491
+ inPersonRequired: zod_1.string().nullish(),
492
+ comments: zod_1.string().nullish(),
493
+ }),
494
+ }),
495
+ pdf: zod_1.object({
496
+ atention: zod_1.any(),
497
+ labs: zod_1.any(),
498
+ otherExams: zod_1.any(),
499
+ images: zod_1.any(),
500
+ medication: zod_1.array(zod_1.any()),
501
+ certificate: zod_1.array(zod_1.any()).or(zod_1.string()).nullish(),
502
+ }),
503
+ files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
504
+ attachedFiles: zod_1.array(attachedFile),
505
+ }),
506
+ activeVideoVisitData: zod_1.object({
507
+ consultationId: zod_1.number(),
508
+ patientId: zod_1.number(),
509
+ vcToken: zod_1.string(),
510
+ }),
511
+ professional: zod_1.object({
512
+ id: zod_1.number(),
513
+ firstName: zod_1.string(),
514
+ lastName: zod_1.string(),
515
+ birthdate: zod_1.date(),
516
+ gender,
517
+ email: zod_1.string(),
518
+ phone: zod_1.string().nullable(),
519
+ logoUrl: zod_1.string().nullish(),
520
+ matriculation: zod_1.array(zod_1.object({ number: zod_1.string(), type: zod_1.string() })),
521
+ specialties: zod_1.array(specialty),
522
+ degree: zod_1.string(),
523
+ languages: zod_1.array(zod_1.string()),
524
+ resume: zod_1.object({
525
+ link: zod_1.string(),
526
+ brief: zod_1.string().nullish(),
527
+ }),
528
+ consultation_value: zod_1.string().optional().nullish(),
529
+ hasAvailability: zod_1.boolean().optional(),
530
+ status: zod_1.enum(['active', 'deactivated']).optional(),
531
+ }),
532
+ professionalsListItem: zod_1.object({
533
+ id: zod_1.number(),
534
+ fullName: zod_1.string(),
535
+ consultation_value: zod_1.number().or(zod_1.string()).optional().nullish(),
536
+ logoUrl: zod_1.string().nullish(),
537
+ primer_turno: zod_1.string().optional(),
538
+ degree: zod_1.string().optional(),
539
+ brief: zod_1.string().nullish(),
540
+ }),
541
+ appointment,
542
+ chatroomAvailabilityFilter,
543
+ chatParameters,
544
+ availableChatroom,
545
+ chatDetails,
546
+ chatPost,
547
+ enrollmentParams,
548
+ diagnosticaPatientFilter: zod_1.object({
549
+ gender,
550
+ identificationType: zod_1.literal('DNI'),
551
+ identificationValue: zod_1.string(),
552
+ }),
553
+ diagnosticaHistoryAppointment,
554
+ diagnosticaUser,
555
+ diagnosticaPatient,
556
+ diagnosticaDeepLinkResponse,
557
+ coverageInfo,
558
+ sendVerificationCodeParams,
559
+ declareUserParams,
560
+ declareUserResponse,
561
+ declarePatientParams,
562
+ declarePatientResponse,
563
+ verificationCodeParams,
564
+ externalLoginParams,
565
+ externalLoginResponse,
566
+ preExternalEnrollmentParams,
567
+ externalEnrollmentParams,
568
+ sendExternalVerificationCodeParams,
569
+ verifyExternalVerificationCodeParams,
570
+ externalResetPasswordParams,
571
+ externalPatient,
572
+ externalAppointment,
573
+ binahWellnessResponse,
574
+ binahWellnessGetLinkParams,
575
+ emailOrPhone,
576
+ emailOrPhoneCode,
577
+ uploadFileConsultationParams: zod_1.object({
578
+ vcToken: zod_1.string(),
579
+ attachedFile: zod_1.string(),
580
+ fileName: zod_1.string().optional(),
581
+ }),
582
+ uploadFileConsultationResponse: zod_1.object({
583
+ fileId: zod_1.number().optional(),
584
+ }),
585
+ deleteFileConsultationParams: zod_1.object({
586
+ vcToken: zod_1.string(),
587
+ fileId: zod_1.number(),
588
+ }),
589
+ healthQuizParams: zod_1.object({
590
+ patientId: zod_1.number(),
591
+ quiz: zod_1.record(zod_1.any()),
592
+ origen: zod_1.string(),
593
+ }),
594
+ };