@integraciones_doc24/sdk 1.16.36 → 1.16.37

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 +2703 -2549
  19. package/lib/schemas.js +573 -559
  20. package/lib/types.d.ts +174 -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 +225 -196
  37. package/lib/userSdk/videoVisit.js +283 -266
  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/index.d.ts CHANGED
@@ -1,400 +1,400 @@
1
- import { Doc24 } from './types';
2
- export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
3
- getRequestHandler: (params: {
4
- credentials: Doc24.SdkCredentials;
5
- eventHandlers: Doc24.Webhook.Events;
6
- baseAddress: string;
7
- }) => Promise<Doc24.Webhook.Handler>;
8
- declareUser: (params: {
9
- user: {
10
- identificationType?: number | undefined;
11
- identificationValue?: string | undefined;
12
- gender?: "m" | "f" | "o" | undefined;
13
- emergencyContact?: string | null | undefined;
14
- emergencyContactPhone?: string | number | null | undefined;
15
- credential?: string | null | undefined;
16
- plan?: string | null | undefined;
17
- affiliationStatus?: string | null | undefined;
18
- localidad?: string | null | undefined;
19
- codPostal?: string | null | undefined;
20
- phone?: string | undefined;
21
- firstName: string;
22
- lastName: string;
23
- countryId: string;
24
- birthdate: Date;
25
- email: string;
26
- };
27
- } & {
28
- code?: string | undefined;
29
- channel?: "1" | "2" | undefined;
30
- }) => Promise<{
31
- askCode: true;
32
- userInfo: {
33
- phone: string;
34
- email: string;
35
- };
36
- } | {
37
- patientId: number | null;
38
- askCode: false;
39
- userId: number;
40
- }>;
41
- getUserId: (user: {
42
- identificationType?: number | undefined;
43
- identificationValue?: string | undefined;
44
- gender?: "m" | "f" | "o" | undefined;
45
- emergencyContact?: string | null | undefined;
46
- emergencyContactPhone?: string | number | null | undefined;
47
- credential?: string | null | undefined;
48
- plan?: string | null | undefined;
49
- affiliationStatus?: string | null | undefined;
50
- localidad?: string | null | undefined;
51
- codPostal?: string | null | undefined;
52
- phone?: string | undefined;
53
- firstName: string;
54
- lastName: string;
55
- countryId: string;
56
- birthdate: Date;
57
- email: string;
58
- }) => Promise<number>;
59
- getUserInstance: (user: number | {
60
- identificationType?: number | undefined;
61
- identificationValue?: string | undefined;
62
- gender?: "m" | "f" | "o" | undefined;
63
- emergencyContact?: string | null | undefined;
64
- emergencyContactPhone?: string | number | null | undefined;
65
- credential?: string | null | undefined;
66
- plan?: string | null | undefined;
67
- affiliationStatus?: string | null | undefined;
68
- localidad?: string | null | undefined;
69
- codPostal?: string | null | undefined;
70
- phone?: string | undefined;
71
- firstName: string;
72
- lastName: string;
73
- countryId: string;
74
- birthdate: Date;
75
- email: string;
76
- }) => Promise<Doc24.UserSdk>;
77
- getProfessional: (professionalId: number) => Promise<{
78
- gender?: "m" | "f" | "o" | undefined;
79
- logoUrl?: string | null | undefined;
80
- status?: "active" | "deactivated" | undefined;
81
- consultation_value?: string | null | undefined;
82
- hasAvailability?: boolean | undefined;
83
- firstName: string;
84
- lastName: string;
85
- birthdate: Date;
86
- phone: string | null;
87
- email: string;
88
- id: number;
89
- specialties: {
90
- start_age?: string | number | null | undefined;
91
- end_age?: string | number | null | undefined;
92
- authorization_code?: string | null | undefined;
93
- id: number;
94
- description: string;
95
- }[];
96
- matriculation: {
97
- number: string;
98
- type: string;
99
- }[];
100
- degree: string;
101
- languages: string[];
102
- resume: {
103
- brief?: string | null | undefined;
104
- link: string;
105
- };
106
- }>;
107
- getAvailableScheduleClinics: () => Promise<{
108
- specialties: {
109
- start_age?: string | number | null | undefined;
110
- end_age?: string | number | null | undefined;
111
- authorization_code?: string | null | undefined;
112
- id: number;
113
- description: string;
114
- }[];
115
- specialtiesER: {
116
- start_age?: string | number | null | undefined;
117
- end_age?: string | number | null | undefined;
118
- authorization_code?: string | null | undefined;
119
- id: number;
120
- description: string;
121
- }[];
122
- professionals: {
123
- id: number;
124
- fullName: string;
125
- clinicId: number;
126
- specialties: {
127
- start_age?: string | number | null | undefined;
128
- end_age?: string | number | null | undefined;
129
- authorization_code?: string | null | undefined;
130
- id: number;
131
- description: string;
132
- }[];
133
- }[];
134
- }>;
135
- enroll: (params: {
136
- gender?: "m" | "f" | "o" | undefined;
137
- firstName: string;
138
- lastName: string;
139
- birthdate: Date;
140
- plan: string;
141
- email: string;
142
- identificationNumber: string;
143
- startDate: Date;
144
- }) => Promise<void>;
145
- getCoverageInfo: (identificationValue: string) => Promise<{
146
- gender?: "m" | "f" | "o" | undefined;
147
- firstName: string | null;
148
- lastName: string | null;
149
- birthdate: Date;
150
- plan: string | null;
151
- email: string | null;
152
- identificationNumber: string;
153
- financerId: number | null;
154
- defaultAffiliationId: number | null;
155
- credentialNumber: string | null;
156
- financerPlanId: number | null;
157
- brand: number | null;
158
- holderIdentificationNumber: string | null;
159
- copaymentValue: number | null;
160
- mobilePhone: string | null;
161
- company: string | null;
162
- dischargeDate: Date | null;
163
- leavingDate: Date | null;
164
- identificacion_tributaria: string | null;
165
- deregistrationDate: Date | null;
166
- authorizationCode: string | null;
167
- authorizationCodeExpiration: Date | null;
168
- } | null>;
169
- sendVerificationCode: (params: {
170
- identificationType: number;
171
- identificationValue: string;
172
- channel: "1" | "2";
173
- }) => Promise<void>;
174
- getDiagnosticaHistory: (patient: {
175
- gender?: "m" | "f" | "o" | undefined;
176
- identificationType: "DNI";
177
- identificationValue: string;
178
- }, from: Date, to: Date) => Promise<{
179
- date: Date;
180
- location: string;
181
- exams: string[];
182
- deepLink: string;
183
- }[]>;
184
- getDiagnosticaDeepLink: (kiosk: string, user: {
185
- gender?: "m" | "f" | "o" | undefined;
186
- firstName: string;
187
- lastName: string;
188
- identificationType: "DNI";
189
- identificationValue: string;
190
- phone: string;
191
- email: string;
192
- language: string;
193
- birthday: Date;
194
- }, patient: {
195
- gender?: "m" | "f" | "o" | undefined;
196
- firstName: string;
197
- lastName: string;
198
- identificationType: "DNI";
199
- identificationValue: string;
200
- birthday: Date;
201
- }) => Promise<{
202
- forwardingRequired: true;
203
- deepLink: string;
204
- } | {
205
- forwardingRequired: false;
206
- }>;
207
- getDiagnosticaAccess: (kiosk: string, user: {
208
- gender?: "m" | "f" | "o" | undefined;
209
- firstName: string;
210
- lastName: string;
211
- identificationType: "DNI";
212
- identificationValue: string;
213
- phone: string;
214
- email: string;
215
- language: string;
216
- birthday: Date;
217
- }, patient: {
218
- gender?: "m" | "f" | "o" | undefined;
219
- firstName: string;
220
- lastName: string;
221
- identificationType: "DNI";
222
- identificationValue: string;
223
- birthday: Date;
224
- }) => Promise<void>;
225
- externalLogin: (params: {
226
- user: string;
227
- password: string;
228
- }) => Promise<{
229
- gender?: "m" | "f" | "o" | undefined;
230
- firstName: string;
231
- lastName: string;
232
- countryId: string;
233
- phone: string;
234
- email: string;
235
- birthday: Date;
236
- identificationNumber: string;
237
- }>;
238
- preExternalEnrollment: (params: ({
239
- birthdate: Date;
240
- identificationNumber: string;
241
- } & {
242
- phone: string;
243
- email: string;
244
- }) | ({
245
- birthdate: Date;
246
- identificationNumber: string;
247
- } & {
248
- phone?: undefined;
249
- email: string;
250
- }) | ({
251
- birthdate: Date;
252
- identificationNumber: string;
253
- } & {
254
- email?: undefined;
255
- phone: string;
256
- })) => Promise<void>;
257
- externalEnrollment: (params: ({
258
- birthdate: Date;
259
- identificationNumber: string;
260
- } & {
261
- phone: string;
262
- email: string;
263
- } & {
264
- password: string;
265
- } & {
266
- emailCode: string;
267
- phoneCode: string;
268
- }) | ({
269
- birthdate: Date;
270
- identificationNumber: string;
271
- } & {
272
- phone: string;
273
- email: string;
274
- } & {
275
- password: string;
276
- } & {
277
- phoneCode?: undefined;
278
- emailCode: string;
279
- }) | ({
280
- birthdate: Date;
281
- identificationNumber: string;
282
- } & {
283
- phone: string;
284
- email: string;
285
- } & {
286
- password: string;
287
- } & {
288
- emailCode?: undefined;
289
- phoneCode: string;
290
- }) | ({
291
- birthdate: Date;
292
- identificationNumber: string;
293
- } & {
294
- phone?: undefined;
295
- email: string;
296
- } & {
297
- password: string;
298
- } & {
299
- emailCode: string;
300
- phoneCode: string;
301
- }) | ({
302
- birthdate: Date;
303
- identificationNumber: string;
304
- } & {
305
- phone?: undefined;
306
- email: string;
307
- } & {
308
- password: string;
309
- } & {
310
- phoneCode?: undefined;
311
- emailCode: string;
312
- }) | ({
313
- birthdate: Date;
314
- identificationNumber: string;
315
- } & {
316
- phone?: undefined;
317
- email: string;
318
- } & {
319
- password: string;
320
- } & {
321
- emailCode?: undefined;
322
- phoneCode: string;
323
- }) | ({
324
- birthdate: Date;
325
- identificationNumber: string;
326
- } & {
327
- email?: undefined;
328
- phone: string;
329
- } & {
330
- password: string;
331
- } & {
332
- emailCode: string;
333
- phoneCode: string;
334
- }) | ({
335
- birthdate: Date;
336
- identificationNumber: string;
337
- } & {
338
- email?: undefined;
339
- phone: string;
340
- } & {
341
- password: string;
342
- } & {
343
- phoneCode?: undefined;
344
- emailCode: string;
345
- }) | ({
346
- birthdate: Date;
347
- identificationNumber: string;
348
- } & {
349
- email?: undefined;
350
- phone: string;
351
- } & {
352
- password: string;
353
- } & {
354
- emailCode?: undefined;
355
- phoneCode: string;
356
- })) => Promise<{
357
- gender?: "m" | "f" | "o" | undefined;
358
- firstName: string;
359
- lastName: string;
360
- countryId: string;
361
- phone: string;
362
- email: string;
363
- birthday: Date;
364
- identificationNumber: string;
365
- }>;
366
- sendExternalVerificationCode: (params: {
367
- birthdate: Date;
368
- channel: "1" | "2";
369
- identificationNumber: string;
370
- }) => Promise<void>;
371
- verifyExternalVerificationCode: (params: {
372
- code: string;
373
- birthdate: Date;
374
- channel: "1" | "2";
375
- identificationNumber: string;
376
- }) => Promise<any>;
377
- externalResetPassword: (params: ({
378
- birthdate: Date;
379
- password: string;
380
- identificationNumber: string;
381
- } & {
382
- emailCode: string;
383
- phoneCode: string;
384
- }) | ({
385
- birthdate: Date;
386
- password: string;
387
- identificationNumber: string;
388
- } & {
389
- phoneCode?: undefined;
390
- emailCode: string;
391
- }) | ({
392
- birthdate: Date;
393
- password: string;
394
- identificationNumber: string;
395
- } & {
396
- emailCode?: undefined;
397
- phoneCode: string;
398
- })) => Promise<any>;
399
- }>;
400
- export type { Doc24 } from './types';
1
+ import { Doc24 } from './types';
2
+ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
3
+ getRequestHandler: (params: {
4
+ credentials: Doc24.SdkCredentials;
5
+ eventHandlers: Doc24.Webhook.Events;
6
+ baseAddress: string;
7
+ }) => Promise<Doc24.Webhook.Handler>;
8
+ declareUser: (params: {
9
+ user: {
10
+ identificationType?: number | undefined;
11
+ identificationValue?: string | undefined;
12
+ gender?: "m" | "f" | "o" | undefined;
13
+ emergencyContact?: string | null | undefined;
14
+ emergencyContactPhone?: string | number | null | undefined;
15
+ credential?: string | null | undefined;
16
+ plan?: string | null | undefined;
17
+ affiliationStatus?: string | null | undefined;
18
+ localidad?: string | null | undefined;
19
+ codPostal?: string | null | undefined;
20
+ phone?: string | undefined;
21
+ firstName: string;
22
+ lastName: string;
23
+ countryId: string;
24
+ birthdate: Date;
25
+ email: string;
26
+ };
27
+ } & {
28
+ code?: string | undefined;
29
+ channel?: "1" | "2" | undefined;
30
+ }) => Promise<{
31
+ askCode: true;
32
+ userInfo: {
33
+ phone: string;
34
+ email: string;
35
+ };
36
+ } | {
37
+ patientId: number | null;
38
+ askCode: false;
39
+ userId: number;
40
+ }>;
41
+ getUserId: (user: {
42
+ identificationType?: number | undefined;
43
+ identificationValue?: string | undefined;
44
+ gender?: "m" | "f" | "o" | undefined;
45
+ emergencyContact?: string | null | undefined;
46
+ emergencyContactPhone?: string | number | null | undefined;
47
+ credential?: string | null | undefined;
48
+ plan?: string | null | undefined;
49
+ affiliationStatus?: string | null | undefined;
50
+ localidad?: string | null | undefined;
51
+ codPostal?: string | null | undefined;
52
+ phone?: string | undefined;
53
+ firstName: string;
54
+ lastName: string;
55
+ countryId: string;
56
+ birthdate: Date;
57
+ email: string;
58
+ }) => Promise<number>;
59
+ getUserInstance: (user: number | {
60
+ identificationType?: number | undefined;
61
+ identificationValue?: string | undefined;
62
+ gender?: "m" | "f" | "o" | undefined;
63
+ emergencyContact?: string | null | undefined;
64
+ emergencyContactPhone?: string | number | null | undefined;
65
+ credential?: string | null | undefined;
66
+ plan?: string | null | undefined;
67
+ affiliationStatus?: string | null | undefined;
68
+ localidad?: string | null | undefined;
69
+ codPostal?: string | null | undefined;
70
+ phone?: string | undefined;
71
+ firstName: string;
72
+ lastName: string;
73
+ countryId: string;
74
+ birthdate: Date;
75
+ email: string;
76
+ }) => Promise<Doc24.UserSdk>;
77
+ getProfessional: (professionalId: number) => Promise<{
78
+ gender?: "m" | "f" | "o" | undefined;
79
+ logoUrl?: string | null | undefined;
80
+ status?: "active" | "deactivated" | undefined;
81
+ consultation_value?: string | null | undefined;
82
+ hasAvailability?: boolean | undefined;
83
+ firstName: string;
84
+ lastName: string;
85
+ birthdate: Date;
86
+ phone: string | null;
87
+ email: string;
88
+ id: number;
89
+ specialties: {
90
+ start_age?: string | number | null | undefined;
91
+ end_age?: string | number | null | undefined;
92
+ authorization_code?: string | null | undefined;
93
+ id: number;
94
+ description: string;
95
+ }[];
96
+ matriculation: {
97
+ number: string;
98
+ type: string;
99
+ }[];
100
+ degree: string;
101
+ languages: string[];
102
+ resume: {
103
+ brief?: string | null | undefined;
104
+ link: string;
105
+ };
106
+ }>;
107
+ getAvailableScheduleClinics: () => Promise<{
108
+ specialties: {
109
+ start_age?: string | number | null | undefined;
110
+ end_age?: string | number | null | undefined;
111
+ authorization_code?: string | null | undefined;
112
+ id: number;
113
+ description: string;
114
+ }[];
115
+ specialtiesER: {
116
+ start_age?: string | number | null | undefined;
117
+ end_age?: string | number | null | undefined;
118
+ authorization_code?: string | null | undefined;
119
+ id: number;
120
+ description: string;
121
+ }[];
122
+ professionals: {
123
+ id: number;
124
+ fullName: string;
125
+ clinicId: number;
126
+ specialties: {
127
+ start_age?: string | number | null | undefined;
128
+ end_age?: string | number | null | undefined;
129
+ authorization_code?: string | null | undefined;
130
+ id: number;
131
+ description: string;
132
+ }[];
133
+ }[];
134
+ }>;
135
+ enroll: (params: {
136
+ gender?: "m" | "f" | "o" | undefined;
137
+ firstName: string;
138
+ lastName: string;
139
+ birthdate: Date;
140
+ plan: string;
141
+ email: string;
142
+ identificationNumber: string;
143
+ startDate: Date;
144
+ }) => Promise<void>;
145
+ getCoverageInfo: (identificationValue: string) => Promise<{
146
+ gender?: "m" | "f" | "o" | undefined;
147
+ firstName: string | null;
148
+ lastName: string | null;
149
+ birthdate: Date;
150
+ plan: string | null;
151
+ email: string | null;
152
+ identificationNumber: string;
153
+ financerId: number | null;
154
+ defaultAffiliationId: number | null;
155
+ credentialNumber: string | null;
156
+ financerPlanId: number | null;
157
+ brand: number | null;
158
+ holderIdentificationNumber: string | null;
159
+ copaymentValue: number | null;
160
+ mobilePhone: string | null;
161
+ company: string | null;
162
+ dischargeDate: Date | null;
163
+ leavingDate: Date | null;
164
+ identificacion_tributaria: string | null;
165
+ deregistrationDate: Date | null;
166
+ authorizationCode: string | null;
167
+ authorizationCodeExpiration: Date | null;
168
+ } | null>;
169
+ sendVerificationCode: (params: {
170
+ identificationType: number;
171
+ identificationValue: string;
172
+ channel: "1" | "2";
173
+ }) => Promise<void>;
174
+ getDiagnosticaHistory: (patient: {
175
+ gender?: "m" | "f" | "o" | undefined;
176
+ identificationType: "DNI";
177
+ identificationValue: string;
178
+ }, from: Date, to: Date) => Promise<{
179
+ date: Date;
180
+ location: string;
181
+ exams: string[];
182
+ deepLink: string;
183
+ }[]>;
184
+ getDiagnosticaDeepLink: (kiosk: string, user: {
185
+ gender?: "m" | "f" | "o" | undefined;
186
+ firstName: string;
187
+ lastName: string;
188
+ identificationType: "DNI";
189
+ identificationValue: string;
190
+ phone: string;
191
+ email: string;
192
+ language: string;
193
+ birthday: Date;
194
+ }, patient: {
195
+ gender?: "m" | "f" | "o" | undefined;
196
+ firstName: string;
197
+ lastName: string;
198
+ identificationType: "DNI";
199
+ identificationValue: string;
200
+ birthday: Date;
201
+ }) => Promise<{
202
+ forwardingRequired: true;
203
+ deepLink: string;
204
+ } | {
205
+ forwardingRequired: false;
206
+ }>;
207
+ getDiagnosticaAccess: (kiosk: string, user: {
208
+ gender?: "m" | "f" | "o" | undefined;
209
+ firstName: string;
210
+ lastName: string;
211
+ identificationType: "DNI";
212
+ identificationValue: string;
213
+ phone: string;
214
+ email: string;
215
+ language: string;
216
+ birthday: Date;
217
+ }, patient: {
218
+ gender?: "m" | "f" | "o" | undefined;
219
+ firstName: string;
220
+ lastName: string;
221
+ identificationType: "DNI";
222
+ identificationValue: string;
223
+ birthday: Date;
224
+ }) => Promise<void>;
225
+ externalLogin: (params: {
226
+ user: string;
227
+ password: string;
228
+ }) => Promise<{
229
+ gender?: "m" | "f" | "o" | undefined;
230
+ firstName: string;
231
+ lastName: string;
232
+ countryId: string;
233
+ phone: string;
234
+ email: string;
235
+ birthday: Date;
236
+ identificationNumber: string;
237
+ }>;
238
+ preExternalEnrollment: (params: ({
239
+ birthdate: Date;
240
+ identificationNumber: string;
241
+ } & {
242
+ phone: string;
243
+ email: string;
244
+ }) | ({
245
+ birthdate: Date;
246
+ identificationNumber: string;
247
+ } & {
248
+ phone?: undefined;
249
+ email: string;
250
+ }) | ({
251
+ birthdate: Date;
252
+ identificationNumber: string;
253
+ } & {
254
+ email?: undefined;
255
+ phone: string;
256
+ })) => Promise<void>;
257
+ externalEnrollment: (params: ({
258
+ birthdate: Date;
259
+ identificationNumber: string;
260
+ } & {
261
+ phone: string;
262
+ email: string;
263
+ } & {
264
+ password: string;
265
+ } & {
266
+ emailCode: string;
267
+ phoneCode: string;
268
+ }) | ({
269
+ birthdate: Date;
270
+ identificationNumber: string;
271
+ } & {
272
+ phone: string;
273
+ email: string;
274
+ } & {
275
+ password: string;
276
+ } & {
277
+ phoneCode?: undefined;
278
+ emailCode: string;
279
+ }) | ({
280
+ birthdate: Date;
281
+ identificationNumber: string;
282
+ } & {
283
+ phone: string;
284
+ email: string;
285
+ } & {
286
+ password: string;
287
+ } & {
288
+ emailCode?: undefined;
289
+ phoneCode: string;
290
+ }) | ({
291
+ birthdate: Date;
292
+ identificationNumber: string;
293
+ } & {
294
+ phone?: undefined;
295
+ email: string;
296
+ } & {
297
+ password: string;
298
+ } & {
299
+ emailCode: string;
300
+ phoneCode: string;
301
+ }) | ({
302
+ birthdate: Date;
303
+ identificationNumber: string;
304
+ } & {
305
+ phone?: undefined;
306
+ email: string;
307
+ } & {
308
+ password: string;
309
+ } & {
310
+ phoneCode?: undefined;
311
+ emailCode: string;
312
+ }) | ({
313
+ birthdate: Date;
314
+ identificationNumber: string;
315
+ } & {
316
+ phone?: undefined;
317
+ email: string;
318
+ } & {
319
+ password: string;
320
+ } & {
321
+ emailCode?: undefined;
322
+ phoneCode: string;
323
+ }) | ({
324
+ birthdate: Date;
325
+ identificationNumber: string;
326
+ } & {
327
+ email?: undefined;
328
+ phone: string;
329
+ } & {
330
+ password: string;
331
+ } & {
332
+ emailCode: string;
333
+ phoneCode: string;
334
+ }) | ({
335
+ birthdate: Date;
336
+ identificationNumber: string;
337
+ } & {
338
+ email?: undefined;
339
+ phone: string;
340
+ } & {
341
+ password: string;
342
+ } & {
343
+ phoneCode?: undefined;
344
+ emailCode: string;
345
+ }) | ({
346
+ birthdate: Date;
347
+ identificationNumber: string;
348
+ } & {
349
+ email?: undefined;
350
+ phone: string;
351
+ } & {
352
+ password: string;
353
+ } & {
354
+ emailCode?: undefined;
355
+ phoneCode: string;
356
+ })) => Promise<{
357
+ gender?: "m" | "f" | "o" | undefined;
358
+ firstName: string;
359
+ lastName: string;
360
+ countryId: string;
361
+ phone: string;
362
+ email: string;
363
+ birthday: Date;
364
+ identificationNumber: string;
365
+ }>;
366
+ sendExternalVerificationCode: (params: {
367
+ birthdate: Date;
368
+ channel: "1" | "2";
369
+ identificationNumber: string;
370
+ }) => Promise<void>;
371
+ verifyExternalVerificationCode: (params: {
372
+ code: string;
373
+ birthdate: Date;
374
+ channel: "1" | "2";
375
+ identificationNumber: string;
376
+ }) => Promise<any>;
377
+ externalResetPassword: (params: ({
378
+ birthdate: Date;
379
+ password: string;
380
+ identificationNumber: string;
381
+ } & {
382
+ emailCode: string;
383
+ phoneCode: string;
384
+ }) | ({
385
+ birthdate: Date;
386
+ password: string;
387
+ identificationNumber: string;
388
+ } & {
389
+ phoneCode?: undefined;
390
+ emailCode: string;
391
+ }) | ({
392
+ birthdate: Date;
393
+ password: string;
394
+ identificationNumber: string;
395
+ } & {
396
+ emailCode?: undefined;
397
+ phoneCode: string;
398
+ })) => Promise<any>;
399
+ }>;
400
+ export type { Doc24 } from './types';