@integraciones_doc24/sdk 1.16.37 → 1.16.38

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 (46) 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 +76 -77
  8. package/lib/baseSdk/user.d.ts +112 -112
  9. package/lib/baseSdk/user.js +136 -136
  10. package/lib/index.d.ts +400 -400
  11. package/lib/index.js +22 -22
  12. package/lib/request/index.d.ts +4 -4
  13. package/lib/request/index.js +32 -32
  14. package/lib/request/token.d.ts +2 -2
  15. package/lib/request/token.js +34 -34
  16. package/lib/request/validation.d.ts +10 -10
  17. package/lib/request/validation.js +28 -28
  18. package/lib/schemas.d.ts +2482 -2703
  19. package/lib/schemas.js +540 -573
  20. package/lib/types.d.ts +170 -174
  21. package/lib/types.js +2 -2
  22. package/lib/userSdk/binah.d.ts +21 -21
  23. package/lib/userSdk/binah.js +20 -20
  24. package/lib/userSdk/chat.d.ts +57 -57
  25. package/lib/userSdk/chat.js +98 -98
  26. package/lib/userSdk/external.d.ts +34 -34
  27. package/lib/userSdk/external.js +72 -72
  28. package/lib/userSdk/index.d.ts +2 -2
  29. package/lib/userSdk/index.js +33 -33
  30. package/lib/userSdk/patients.d.ts +58 -58
  31. package/lib/userSdk/patients.js +89 -89
  32. package/lib/userSdk/schedule.d.ts +58 -59
  33. package/lib/userSdk/schedule.js +89 -90
  34. package/lib/userSdk/specialties.d.ts +19 -19
  35. package/lib/userSdk/specialties.js +48 -48
  36. package/lib/userSdk/videoVisit.d.ts +175 -225
  37. package/lib/userSdk/videoVisit.js +242 -283
  38. package/lib/utils.d.ts +3 -4
  39. package/lib/utils.js +43 -68
  40. package/lib/webhook/index.d.ts +2 -2
  41. package/lib/webhook/index.js +67 -67
  42. package/lib/webhook/responses.d.ts +35 -35
  43. package/lib/webhook/responses.js +42 -42
  44. package/lib/webhook/token.d.ts +2 -2
  45. package/lib/webhook/token.js +23 -23
  46. package/package.json +37 -37
package/lib/schemas.js CHANGED
@@ -1,573 +1,540 @@
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
+ });
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
+ });
197
+ const historicalVideoVisit = videoVisit.extend({
198
+ specialty: zod_1.string(),
199
+ professional: zod_1.string(),
200
+ });
201
+ const coverageInfo = zod_1.object({
202
+ financerId: zod_1.number().nullable(),
203
+ defaultAffiliationId: zod_1.number().nullable(),
204
+ plan: zod_1.string().nullable(),
205
+ identificationNumber: zod_1.string(),
206
+ credentialNumber: zod_1.string().nullable(),
207
+ lastName: zod_1.string().nullable(),
208
+ firstName: zod_1.string().nullable(),
209
+ birthdate: zod_1.date(),
210
+ financerPlanId: zod_1.number().nullable(),
211
+ gender,
212
+ brand: zod_1.number().nullable(),
213
+ holderIdentificationNumber: zod_1.string().nullable(),
214
+ copaymentValue: zod_1.number().nullable(),
215
+ mobilePhone: zod_1.string().nullable(),
216
+ company: zod_1.string().nullable(),
217
+ email: zod_1.string().email().nullable(),
218
+ dischargeDate: zod_1.date().nullable(),
219
+ leavingDate: zod_1.date().nullable(),
220
+ identificacion_tributaria: zod_1.string().nullable(),
221
+ deregistrationDate: zod_1.date().nullable(),
222
+ authorizationCode: zod_1.string().nullable(),
223
+ authorizationCodeExpiration: zod_1.date().nullable(),
224
+ }).nullable();
225
+ const sendVerificationCodeParams = zod_1.object({
226
+ identificationType: zod_1.number(),
227
+ identificationValue: zod_1.string(),
228
+ channel: zod_1.enum(['1', '2']),
229
+ });
230
+ const verificationCodeParams = zod_1.object({
231
+ channel: zod_1.enum(['1', '2']).optional(),
232
+ code: zod_1.string().optional(),
233
+ });
234
+ const declareUserParams = zod_1.object({
235
+ user,
236
+ }).and(verificationCodeParams);
237
+ const declarePatientParams = zod_1.object({
238
+ patient,
239
+ }).and(verificationCodeParams);
240
+ const declarePatientResponse = zod_1.object({
241
+ userInfo: zod_1.object({
242
+ firstName: zod_1.string(),
243
+ lastName: zod_1.string(),
244
+ email: zod_1.string(),
245
+ phone: zod_1.string(),
246
+ }),
247
+ askCode: zod_1.literal(true),
248
+ }).or(zod_1.object({
249
+ askCode: zod_1.literal(false),
250
+ patientId: zod_1.number().nullable(),
251
+ }));
252
+ const declareUserResponse = zod_1.object({
253
+ userInfo: zod_1.object({
254
+ email: zod_1.string(),
255
+ phone: zod_1.string(),
256
+ }),
257
+ askCode: zod_1.literal(true),
258
+ }).or(zod_1.object({
259
+ askCode: zod_1.literal(false),
260
+ patientId: zod_1.number().nullable(),
261
+ userId: zod_1.number(),
262
+ }));
263
+ const externalLoginParams = zod_1.object({
264
+ user: zod_1.string(),
265
+ password: zod_1.string(),
266
+ });
267
+ const externalLoginResponse = zod_1.object({
268
+ firstName: zod_1.string(),
269
+ lastName: zod_1.string(),
270
+ countryId: zod_1.string(),
271
+ birthday: zod_1.date(),
272
+ identificationNumber: zod_1.string(),
273
+ gender,
274
+ email: zod_1.string().email(),
275
+ phone: zod_1.string(),
276
+ });
277
+ const emailOrPhone = zod_1.union([
278
+ zod_1.object({ email: zod_1.string(), phone: zod_1.string() }),
279
+ zod_1.object({ email: zod_1.string(), phone: zod_1.undefined() }),
280
+ zod_1.object({ email: zod_1.undefined(), phone: zod_1.string() }),
281
+ ]).refine((data) => data.email || data.phone, 'Either phone or email is required');
282
+ const preExternalEnrollmentParams = zod_1.object({
283
+ identificationNumber: zod_1.string(),
284
+ birthdate: zod_1.date(),
285
+ }).and(emailOrPhone);
286
+ const emailOrPhoneCode = zod_1.union([
287
+ zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.string() }),
288
+ zod_1.object({ emailCode: zod_1.string(), phoneCode: zod_1.undefined() }),
289
+ zod_1.object({ emailCode: zod_1.undefined(), phoneCode: zod_1.string() }),
290
+ ]).refine((data) => data.emailCode || data.phoneCode, 'Either phone code or email code is required');
291
+ const externalEnrollmentParams = preExternalEnrollmentParams
292
+ .and(zod_1.object({ password: zod_1.string() }))
293
+ .and(emailOrPhoneCode);
294
+ const sendExternalVerificationCodeParams = zod_1.object({
295
+ identificationNumber: zod_1.string(),
296
+ birthdate: zod_1.date(),
297
+ channel: zod_1.enum(['1', '2']),
298
+ });
299
+ const verifyExternalVerificationCodeParams = sendExternalVerificationCodeParams.extend({ code: zod_1.string() });
300
+ const externalResetPasswordParams = zod_1.object({
301
+ identificationNumber: zod_1.string(),
302
+ birthdate: zod_1.date(),
303
+ password: zod_1.string(),
304
+ }).and(emailOrPhoneCode);
305
+ const externalPatient = zod_1.object({
306
+ birthdate: zod_1.date(),
307
+ identificationType: zod_1.literal('DNI'),
308
+ identificationValue: zod_1.string(),
309
+ gender: gender,
310
+ });
311
+ const externalAppointment = zod_1.object({
312
+ id: zod_1.number(),
313
+ patientIdentification: zod_1.string().optional(),
314
+ patientName: zod_1.string(),
315
+ birthdate: zod_1.date(),
316
+ appointment: zod_1.string(),
317
+ clinic: zod_1.string(),
318
+ professionalName: zod_1.string(),
319
+ date: zod_1.date(),
320
+ specialty: zod_1.string(),
321
+ modality: zod_1.string(),
322
+ });
323
+ const binahWellnessGetLinkParams = zod_1.object({
324
+ socket: zod_1.object({
325
+ device: zod_1.string(),
326
+ provider: zod_1.string(),
327
+ socketUrl: zod_1.string(),
328
+ callbackUrl: zod_1.string(),
329
+ socketAuthToken: zod_1.string(),
330
+ }),
331
+ patientId: zod_1.number(),
332
+ });
333
+ const binahWellnessResponse = zod_1.object({
334
+ data: zod_1.object({
335
+ info: zod_1.object({
336
+ link: zod_1.string().url(),
337
+ }),
338
+ timestamp: zod_1.string(),
339
+ }),
340
+ signature: zod_1.string(),
341
+ });
342
+ exports.doc24Schemas = {
343
+ sdkCredentials,
344
+ sdkParams: zod_1.object({ url: zod_1.string(), credentials: sdkCredentials }),
345
+ user,
346
+ patient,
347
+ specialtyMode,
348
+ specialty,
349
+ scheduleAvailabilityFilter,
350
+ availableAppointment,
351
+ availableScheduleClinics,
352
+ scheduleFilter: zod_1.object({
353
+ professionalId: zod_1.number().optional(),
354
+ offset: zod_1.number().optional(),
355
+ limit: zod_1.number().optional(),
356
+ weekDay: zod_1.number().optional(),
357
+ date: zod_1.date().optional(),
358
+ startHour: zod_1.string().optional(),
359
+ finishHour: zod_1.string().optional(),
360
+ language: zod_1.string().optional(),
361
+ userTimeZone: zod_1.string().optional(),
362
+ showAppointmentConfiguration: zod_1.boolean().optional(),
363
+ }),
364
+ professionalsBySpecialtyFilter: zod_1.object({
365
+ professionalId: zod_1.number().optional().nullable(),
366
+ specialtyId: zod_1.number().optional().nullable(),
367
+ offset: zod_1.number().optional().nullable(),
368
+ limit: zod_1.number().optional().nullable(),
369
+ language: zod_1.string().optional().nullable(),
370
+ }),
371
+ scheduleParameters: zod_1.union([
372
+ appointmentScheduleParameters,
373
+ instantScheduleParameters,
374
+ ]),
375
+ videoVisit,
376
+ historicalVideoVisit,
377
+ videoVisitDetails: zod_1.object({
378
+ id: zod_1.number(),
379
+ status: zod_1.string(),
380
+ paymentStatus: zod_1.string(),
381
+ professional: zod_1.object({
382
+ id: zod_1.number(),
383
+ fullName: zod_1.string(),
384
+ }).optional(),
385
+ patient: zod_1.object({
386
+ fullName: zod_1.string(),
387
+ firstAccessDate: zod_1.date(),
388
+ lastAccessDate: zod_1.date(),
389
+ }),
390
+ finishDate: zod_1.date().nullable(),
391
+ retries: zod_1.number(),
392
+ language: zod_1.string(),
393
+ appointment: zod_1.object({ id: zod_1.number(), date: zod_1.date() }).nullable(),
394
+ report: zod_1.object({
395
+ motive: zod_1.string().nullable(),
396
+ actualDesease: zod_1.string().nullable(),
397
+ indications: zod_1.string().nullable(),
398
+ alertSigns: zod_1.string().nullable(),
399
+ extendedMotive: zod_1.string().nullable(),
400
+ diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
401
+ }),
402
+ pdf: zod_1.object({
403
+ atention: zod_1.string().optional(),
404
+ labs: zod_1.string().optional(),
405
+ otherExams: zod_1.string().optional(),
406
+ images: zod_1.string().optional(),
407
+ medication: zod_1.array(zod_1.any()),
408
+ }),
409
+ files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
410
+ }),
411
+ completeVideoVisitDetails: zod_1.object({
412
+ id: zod_1.number(),
413
+ status: zod_1.string(),
414
+ paymentStatus: zod_1.string(),
415
+ professional: zod_1.object({
416
+ id: zod_1.number(),
417
+ fullName: zod_1.string(),
418
+ specialtyId: zod_1.number(),
419
+ specialty: zod_1.string(),
420
+ }).optional(),
421
+ finishDate: zod_1.date().nullable(),
422
+ retries: zod_1.number().nullish(),
423
+ language: zod_1.string(),
424
+ report: zod_1.object({
425
+ motive: zod_1.string().nullable(),
426
+ actualDesease: zod_1.string().nullable(),
427
+ indications: zod_1.string().nullish(),
428
+ alertSigns: zod_1.string().nullable(),
429
+ extendedMotive: zod_1.string().nullable(),
430
+ diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
431
+ medication: zod_1.array(zod_1.object({
432
+ description: zod_1.string().nullish(),
433
+ quantity: zod_1.number().nullish(),
434
+ dose: zod_1.string().nullish(),
435
+ farmalinkId: zod_1.number().nullish(),
436
+ })),
437
+ prescription: zod_1.object({
438
+ link: zod_1.string().nullish(),
439
+ codigo: zod_1.number().nullish(),
440
+ }),
441
+ inPersonRequired: zod_1.string().nullish(),
442
+ referral: zod_1.object({
443
+ status: zod_1.string().nullish(),
444
+ specialtyId: zod_1.any(),
445
+ inPersonRequired: zod_1.string().nullish(),
446
+ comments: zod_1.string().nullish(),
447
+ }),
448
+ }),
449
+ pdf: zod_1.object({
450
+ atention: zod_1.any(),
451
+ labs: zod_1.any(),
452
+ otherExams: zod_1.any(),
453
+ images: zod_1.any(),
454
+ medication: zod_1.array(zod_1.any()),
455
+ certificate: zod_1.array(zod_1.any()).or(zod_1.string()).nullish(),
456
+ }),
457
+ files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
458
+ }),
459
+ activeVideoVisitData: zod_1.object({
460
+ consultationId: zod_1.number(),
461
+ patientId: zod_1.number(),
462
+ vcToken: zod_1.string(),
463
+ }),
464
+ professional: zod_1.object({
465
+ id: zod_1.number(),
466
+ firstName: zod_1.string(),
467
+ lastName: zod_1.string(),
468
+ birthdate: zod_1.date(),
469
+ gender,
470
+ email: zod_1.string(),
471
+ phone: zod_1.string().nullable(),
472
+ logoUrl: zod_1.string().nullish(),
473
+ matriculation: zod_1.array(zod_1.object({ number: zod_1.string(), type: zod_1.string() })),
474
+ specialties: zod_1.array(specialty),
475
+ degree: zod_1.string(),
476
+ languages: zod_1.array(zod_1.string()),
477
+ resume: zod_1.object({
478
+ link: zod_1.string(),
479
+ brief: zod_1.string().nullish(),
480
+ }),
481
+ consultation_value: zod_1.string().optional().nullish(),
482
+ hasAvailability: zod_1.boolean().optional(),
483
+ status: zod_1.enum(['active', 'deactivated']).optional(),
484
+ }),
485
+ professionalsListItem: zod_1.object({
486
+ id: zod_1.number(),
487
+ fullName: zod_1.string(),
488
+ consultation_value: zod_1.number().or(zod_1.string()).optional().nullish(),
489
+ logoUrl: zod_1.string().nullish(),
490
+ primer_turno: zod_1.string().optional(),
491
+ degree: zod_1.string().optional(),
492
+ brief: zod_1.string().nullish(),
493
+ }),
494
+ appointment,
495
+ chatroomAvailabilityFilter,
496
+ chatParameters,
497
+ availableChatroom,
498
+ chatDetails,
499
+ chatPost,
500
+ enrollmentParams,
501
+ diagnosticaPatientFilter: zod_1.object({
502
+ gender,
503
+ identificationType: zod_1.literal('DNI'),
504
+ identificationValue: zod_1.string(),
505
+ }),
506
+ diagnosticaHistoryAppointment,
507
+ diagnosticaUser,
508
+ diagnosticaPatient,
509
+ diagnosticaDeepLinkResponse,
510
+ coverageInfo,
511
+ sendVerificationCodeParams,
512
+ declareUserParams,
513
+ declareUserResponse,
514
+ declarePatientParams,
515
+ declarePatientResponse,
516
+ verificationCodeParams,
517
+ externalLoginParams,
518
+ externalLoginResponse,
519
+ preExternalEnrollmentParams,
520
+ externalEnrollmentParams,
521
+ sendExternalVerificationCodeParams,
522
+ verifyExternalVerificationCodeParams,
523
+ externalResetPasswordParams,
524
+ externalPatient,
525
+ externalAppointment,
526
+ binahWellnessResponse,
527
+ binahWellnessGetLinkParams,
528
+ emailOrPhone,
529
+ emailOrPhoneCode,
530
+ uploadFileConsultationParams: zod_1.object({
531
+ vcToken: zod_1.string(),
532
+ attachedFile: zod_1.string(),
533
+ fileName: zod_1.string().optional(),
534
+ }),
535
+ healthQuizParams: zod_1.object({
536
+ patientId: zod_1.number(),
537
+ quiz: zod_1.record(zod_1.any()),
538
+ origen: zod_1.string(),
539
+ }),
540
+ };