@integraciones_doc24/sdk 1.16.42 → 1.16.43

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 (49) hide show
  1. package/lib/baseSdk/diagnostica.d.ts +54 -54
  2. package/lib/baseSdk/diagnostica.js +82 -82
  3. package/lib/baseSdk/external.d.ts +177 -177
  4. package/lib/baseSdk/external.js +96 -96
  5. package/lib/baseSdk/index.d.ts +2 -2
  6. package/lib/baseSdk/index.js +80 -80
  7. package/lib/baseSdk/integrationError.d.ts +16 -16
  8. package/lib/baseSdk/integrationError.js +33 -33
  9. package/lib/baseSdk/user.d.ts +115 -115
  10. package/lib/baseSdk/user.js +136 -136
  11. package/lib/index.d.ts +416 -417
  12. package/lib/index.js +22 -24
  13. package/lib/request/index.d.ts +4 -4
  14. package/lib/request/index.js +32 -32
  15. package/lib/request/token.d.ts +2 -2
  16. package/lib/request/token.js +34 -34
  17. package/lib/request/validation.d.ts +10 -10
  18. package/lib/request/validation.js +28 -28
  19. package/lib/schemas.d.ts +2813 -2930
  20. package/lib/schemas.js +601 -640
  21. package/lib/types.d.ts +178 -183
  22. package/lib/types.js +2 -2
  23. package/lib/userSdk/binah.d.ts +21 -21
  24. package/lib/userSdk/binah.js +20 -20
  25. package/lib/userSdk/chat.d.ts +57 -57
  26. package/lib/userSdk/chat.js +98 -98
  27. package/lib/userSdk/external.d.ts +34 -34
  28. package/lib/userSdk/external.js +72 -72
  29. package/lib/userSdk/index.d.ts +2 -2
  30. package/lib/userSdk/index.js +33 -36
  31. package/lib/userSdk/patients.d.ts +62 -62
  32. package/lib/userSdk/patients.js +93 -93
  33. package/lib/userSdk/schedule.d.ts +59 -59
  34. package/lib/userSdk/schedule.js +90 -90
  35. package/lib/userSdk/specialties.d.ts +19 -19
  36. package/lib/userSdk/specialties.js +48 -48
  37. package/lib/userSdk/videoVisit.d.ts +225 -229
  38. package/lib/userSdk/videoVisit.js +283 -288
  39. package/lib/utils.d.ts +4 -4
  40. package/lib/utils.js +68 -68
  41. package/lib/webhook/index.d.ts +2 -2
  42. package/lib/webhook/index.js +67 -67
  43. package/lib/webhook/responses.d.ts +35 -35
  44. package/lib/webhook/responses.js +42 -42
  45. package/lib/webhook/token.d.ts +2 -2
  46. package/lib/webhook/token.js +23 -23
  47. package/package.json +37 -37
  48. package/lib/userSdk/eligibility.d.ts +0 -29
  49. package/lib/userSdk/eligibility.js +0 -81
package/lib/index.d.ts CHANGED
@@ -1,417 +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
- 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';
417
- export { ResponseSignatureError } from './userSdk/eligibility';
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';