@integraciones_doc24/sdk 1.16.9 → 1.16.10

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