@integraciones_doc24/sdk 1.16.29 → 1.16.31

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