@integraciones_doc24/sdk 1.16.38 → 1.16.40

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