@integraciones_doc24/sdk 1.16.35 → 1.16.36

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