@integraciones_doc24/sdk 0.39.2 → 0.39.4
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.
- package/lib/baseSdk/diagnostica.d.ts +11 -11
- package/lib/baseSdk/diagnostica.js +18 -20
- package/lib/baseSdk/external.d.ts +2 -2
- package/lib/baseSdk/index.js +0 -3
- package/lib/baseSdk/user.d.ts +6 -56
- package/lib/baseSdk/user.js +25 -70
- package/lib/index.d.ts +25 -230
- package/lib/schemas.d.ts +56 -741
- package/lib/schemas.js +39 -150
- package/lib/types.d.ts +7 -34
- package/lib/userSdk/chat.d.ts +2 -2
- package/lib/userSdk/external.d.ts +1 -1
- package/lib/userSdk/index.js +0 -3
- package/lib/userSdk/patients.d.ts +14 -28
- package/lib/userSdk/patients.js +12 -31
- package/lib/userSdk/schedule.d.ts +2 -4
- package/lib/userSdk/schedule.js +16 -20
- package/lib/userSdk/videoVisit.d.ts +2 -4
- package/lib/userSdk/videoVisit.js +4 -11
- package/lib/utils.d.ts +4 -2
- package/lib/utils.js +22 -11
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5,63 +5,37 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
5
5
|
eventHandlers: Doc24.Webhook.Events;
|
|
6
6
|
baseAddress: string;
|
|
7
7
|
}) => Promise<Doc24.Webhook.Handler>;
|
|
8
|
-
declareUser: (
|
|
9
|
-
user: {
|
|
10
|
-
firstName: string;
|
|
11
|
-
lastName: string;
|
|
12
|
-
identificationType: number;
|
|
13
|
-
identificationValue: string;
|
|
14
|
-
countryId: string;
|
|
15
|
-
birthdate: Date;
|
|
16
|
-
gender: "m" | "f";
|
|
17
|
-
phone: string;
|
|
18
|
-
email: string;
|
|
19
|
-
};
|
|
20
|
-
} & {
|
|
21
|
-
code?: string | undefined;
|
|
22
|
-
channel?: "1" | "2" | undefined;
|
|
23
|
-
}) => Promise<{
|
|
24
|
-
askCode: true;
|
|
25
|
-
userInfo: {
|
|
26
|
-
phone: string;
|
|
27
|
-
email: string;
|
|
28
|
-
};
|
|
29
|
-
} | {
|
|
30
|
-
patientId: number | null;
|
|
31
|
-
askCode: false;
|
|
32
|
-
userId: number;
|
|
33
|
-
}>;
|
|
34
|
-
getUserId: (user: {
|
|
8
|
+
declareUser: (user: {
|
|
35
9
|
firstName: string;
|
|
36
10
|
lastName: string;
|
|
37
|
-
identificationType:
|
|
11
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
38
12
|
identificationValue: string;
|
|
39
|
-
countryId: string;
|
|
40
|
-
birthdate: Date;
|
|
41
13
|
gender: "m" | "f";
|
|
42
14
|
phone: string;
|
|
43
15
|
email: string;
|
|
16
|
+
countryId: string;
|
|
17
|
+
birthdate: Date;
|
|
44
18
|
}) => Promise<number>;
|
|
45
19
|
getUserInstance: (user: number | {
|
|
46
20
|
firstName: string;
|
|
47
21
|
lastName: string;
|
|
48
|
-
identificationType:
|
|
22
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
49
23
|
identificationValue: string;
|
|
50
|
-
countryId: string;
|
|
51
|
-
birthdate: Date;
|
|
52
24
|
gender: "m" | "f";
|
|
53
25
|
phone: string;
|
|
54
26
|
email: string;
|
|
27
|
+
countryId: string;
|
|
28
|
+
birthdate: Date;
|
|
55
29
|
}) => Promise<Doc24.UserSdk>;
|
|
56
30
|
getProfessional: (professionalId: number) => Promise<{
|
|
31
|
+
id: number;
|
|
32
|
+
logoUrl: string;
|
|
57
33
|
firstName: string;
|
|
58
34
|
lastName: string;
|
|
59
|
-
birthdate: Date;
|
|
60
35
|
gender: "m" | "f";
|
|
61
36
|
phone: string | null;
|
|
62
37
|
email: string;
|
|
63
|
-
|
|
64
|
-
logoUrl: string;
|
|
38
|
+
birthdate: Date;
|
|
65
39
|
specialties: {
|
|
66
40
|
id: number;
|
|
67
41
|
description: string;
|
|
@@ -99,19 +73,19 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
99
73
|
enroll: (params: {
|
|
100
74
|
firstName: string;
|
|
101
75
|
lastName: string;
|
|
102
|
-
birthdate: Date;
|
|
103
76
|
gender: "m" | "f";
|
|
104
77
|
email: string;
|
|
105
|
-
|
|
78
|
+
birthdate: Date;
|
|
106
79
|
startDate: Date;
|
|
80
|
+
identificationNumber: string;
|
|
107
81
|
plan: string;
|
|
108
82
|
}) => Promise<void>;
|
|
109
|
-
|
|
83
|
+
getConverageInfo: (identificationValue: string) => Promise<{
|
|
110
84
|
firstName: string | null;
|
|
111
85
|
lastName: string | null;
|
|
112
|
-
birthdate: Date;
|
|
113
86
|
gender: "m" | "f";
|
|
114
87
|
email: string | null;
|
|
88
|
+
birthdate: Date;
|
|
115
89
|
identificationNumber: string;
|
|
116
90
|
plan: string | null;
|
|
117
91
|
financerId: number | null;
|
|
@@ -130,13 +104,8 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
130
104
|
authorizationCode: string | null;
|
|
131
105
|
authorizationCodeExpiration: Date | null;
|
|
132
106
|
} | null>;
|
|
133
|
-
sendVerificationCode: (params: {
|
|
134
|
-
identificationType: number;
|
|
135
|
-
identificationValue: string;
|
|
136
|
-
channel: "1" | "2";
|
|
137
|
-
}) => Promise<void>;
|
|
138
107
|
getDiagnosticaHistory: (patient: {
|
|
139
|
-
identificationType: "
|
|
108
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
140
109
|
identificationValue: string;
|
|
141
110
|
gender: "m" | "f";
|
|
142
111
|
}, from: Date, to: Date) => Promise<{
|
|
@@ -146,22 +115,22 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
146
115
|
deepLink: string;
|
|
147
116
|
}[]>;
|
|
148
117
|
getDiagnosticaDeepLink: (kiosk: string, user: {
|
|
118
|
+
language: string;
|
|
149
119
|
firstName: string;
|
|
150
120
|
lastName: string;
|
|
151
|
-
|
|
121
|
+
birthday: Date;
|
|
122
|
+
identificationType: "dni";
|
|
152
123
|
identificationValue: string;
|
|
153
124
|
gender: "m" | "f";
|
|
154
125
|
phone: string;
|
|
155
126
|
email: string;
|
|
156
|
-
language: string;
|
|
157
|
-
birthday: Date;
|
|
158
127
|
}, patient: {
|
|
159
128
|
firstName: string;
|
|
160
129
|
lastName: string;
|
|
161
|
-
|
|
130
|
+
birthday: Date;
|
|
131
|
+
identificationType: "dni";
|
|
162
132
|
identificationValue: string;
|
|
163
133
|
gender: "m" | "f";
|
|
164
|
-
birthday: Date;
|
|
165
134
|
}) => Promise<{
|
|
166
135
|
forwardingRequired: true;
|
|
167
136
|
deepLink: string;
|
|
@@ -169,196 +138,22 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
169
138
|
forwardingRequired: false;
|
|
170
139
|
}>;
|
|
171
140
|
getDiagnosticaAccess: (kiosk: string, user: {
|
|
141
|
+
language: string;
|
|
172
142
|
firstName: string;
|
|
173
143
|
lastName: string;
|
|
174
|
-
|
|
144
|
+
birthday: Date;
|
|
145
|
+
identificationType: "dni";
|
|
175
146
|
identificationValue: string;
|
|
176
147
|
gender: "m" | "f";
|
|
177
148
|
phone: string;
|
|
178
149
|
email: string;
|
|
179
|
-
language: string;
|
|
180
|
-
birthday: Date;
|
|
181
150
|
}, patient: {
|
|
182
151
|
firstName: string;
|
|
183
152
|
lastName: string;
|
|
184
|
-
identificationType: "DNI";
|
|
185
|
-
identificationValue: string;
|
|
186
|
-
gender: "m" | "f";
|
|
187
153
|
birthday: Date;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
user: string;
|
|
191
|
-
password: string;
|
|
192
|
-
}) => Promise<{
|
|
193
|
-
firstName: string;
|
|
194
|
-
lastName: string;
|
|
195
|
-
countryId: string;
|
|
196
|
-
gender: "m" | "f";
|
|
197
|
-
phone: string;
|
|
198
|
-
email: string;
|
|
199
|
-
birthday: Date;
|
|
200
|
-
identificationNumber: string;
|
|
201
|
-
}>;
|
|
202
|
-
preExternalEnrollment: (params: ({
|
|
203
|
-
birthdate: Date;
|
|
204
|
-
identificationNumber: string;
|
|
205
|
-
} & {
|
|
206
|
-
phone: string;
|
|
207
|
-
email: string;
|
|
208
|
-
}) | ({
|
|
209
|
-
birthdate: Date;
|
|
210
|
-
identificationNumber: string;
|
|
211
|
-
} & {
|
|
212
|
-
phone?: undefined;
|
|
213
|
-
email: string;
|
|
214
|
-
}) | ({
|
|
215
|
-
birthdate: Date;
|
|
216
|
-
identificationNumber: string;
|
|
217
|
-
} & {
|
|
218
|
-
email?: undefined;
|
|
219
|
-
phone: string;
|
|
220
|
-
})) => Promise<void>;
|
|
221
|
-
externalEnrollment: (params: ({
|
|
222
|
-
birthdate: Date;
|
|
223
|
-
identificationNumber: string;
|
|
224
|
-
} & {
|
|
225
|
-
phone: string;
|
|
226
|
-
email: string;
|
|
227
|
-
} & {
|
|
228
|
-
password: string;
|
|
229
|
-
} & {
|
|
230
|
-
emailCode: string;
|
|
231
|
-
phoneCode: string;
|
|
232
|
-
}) | ({
|
|
233
|
-
birthdate: Date;
|
|
234
|
-
identificationNumber: string;
|
|
235
|
-
} & {
|
|
236
|
-
phone: string;
|
|
237
|
-
email: string;
|
|
238
|
-
} & {
|
|
239
|
-
password: string;
|
|
240
|
-
} & {
|
|
241
|
-
phoneCode?: undefined;
|
|
242
|
-
emailCode: string;
|
|
243
|
-
}) | ({
|
|
244
|
-
birthdate: Date;
|
|
245
|
-
identificationNumber: string;
|
|
246
|
-
} & {
|
|
247
|
-
phone: string;
|
|
248
|
-
email: string;
|
|
249
|
-
} & {
|
|
250
|
-
password: string;
|
|
251
|
-
} & {
|
|
252
|
-
emailCode?: undefined;
|
|
253
|
-
phoneCode: string;
|
|
254
|
-
}) | ({
|
|
255
|
-
birthdate: Date;
|
|
256
|
-
identificationNumber: string;
|
|
257
|
-
} & {
|
|
258
|
-
phone?: undefined;
|
|
259
|
-
email: string;
|
|
260
|
-
} & {
|
|
261
|
-
password: string;
|
|
262
|
-
} & {
|
|
263
|
-
emailCode: string;
|
|
264
|
-
phoneCode: string;
|
|
265
|
-
}) | ({
|
|
266
|
-
birthdate: Date;
|
|
267
|
-
identificationNumber: string;
|
|
268
|
-
} & {
|
|
269
|
-
phone?: undefined;
|
|
270
|
-
email: string;
|
|
271
|
-
} & {
|
|
272
|
-
password: string;
|
|
273
|
-
} & {
|
|
274
|
-
phoneCode?: undefined;
|
|
275
|
-
emailCode: string;
|
|
276
|
-
}) | ({
|
|
277
|
-
birthdate: Date;
|
|
278
|
-
identificationNumber: string;
|
|
279
|
-
} & {
|
|
280
|
-
phone?: undefined;
|
|
281
|
-
email: string;
|
|
282
|
-
} & {
|
|
283
|
-
password: string;
|
|
284
|
-
} & {
|
|
285
|
-
emailCode?: undefined;
|
|
286
|
-
phoneCode: string;
|
|
287
|
-
}) | ({
|
|
288
|
-
birthdate: Date;
|
|
289
|
-
identificationNumber: string;
|
|
290
|
-
} & {
|
|
291
|
-
email?: undefined;
|
|
292
|
-
phone: string;
|
|
293
|
-
} & {
|
|
294
|
-
password: string;
|
|
295
|
-
} & {
|
|
296
|
-
emailCode: string;
|
|
297
|
-
phoneCode: string;
|
|
298
|
-
}) | ({
|
|
299
|
-
birthdate: Date;
|
|
300
|
-
identificationNumber: string;
|
|
301
|
-
} & {
|
|
302
|
-
email?: undefined;
|
|
303
|
-
phone: string;
|
|
304
|
-
} & {
|
|
305
|
-
password: string;
|
|
306
|
-
} & {
|
|
307
|
-
phoneCode?: undefined;
|
|
308
|
-
emailCode: string;
|
|
309
|
-
}) | ({
|
|
310
|
-
birthdate: Date;
|
|
311
|
-
identificationNumber: string;
|
|
312
|
-
} & {
|
|
313
|
-
email?: undefined;
|
|
314
|
-
phone: string;
|
|
315
|
-
} & {
|
|
316
|
-
password: string;
|
|
317
|
-
} & {
|
|
318
|
-
emailCode?: undefined;
|
|
319
|
-
phoneCode: string;
|
|
320
|
-
})) => Promise<{
|
|
321
|
-
firstName: string;
|
|
322
|
-
lastName: string;
|
|
323
|
-
countryId: string;
|
|
154
|
+
identificationType: "dni";
|
|
155
|
+
identificationValue: string;
|
|
324
156
|
gender: "m" | "f";
|
|
325
|
-
phone: string;
|
|
326
|
-
email: string;
|
|
327
|
-
birthday: Date;
|
|
328
|
-
identificationNumber: string;
|
|
329
|
-
}>;
|
|
330
|
-
sendExternalVerificationCode: (params: {
|
|
331
|
-
birthdate: Date;
|
|
332
|
-
channel: "1" | "2";
|
|
333
|
-
identificationNumber: string;
|
|
334
157
|
}) => Promise<void>;
|
|
335
|
-
verifyExternalVerificationCode: (params: {
|
|
336
|
-
code: string;
|
|
337
|
-
birthdate: Date;
|
|
338
|
-
channel: "1" | "2";
|
|
339
|
-
identificationNumber: string;
|
|
340
|
-
}) => Promise<any>;
|
|
341
|
-
externalResetPassword: (params: ({
|
|
342
|
-
birthdate: Date;
|
|
343
|
-
password: string;
|
|
344
|
-
identificationNumber: string;
|
|
345
|
-
} & {
|
|
346
|
-
emailCode: string;
|
|
347
|
-
phoneCode: string;
|
|
348
|
-
}) | ({
|
|
349
|
-
birthdate: Date;
|
|
350
|
-
password: string;
|
|
351
|
-
identificationNumber: string;
|
|
352
|
-
} & {
|
|
353
|
-
phoneCode?: undefined;
|
|
354
|
-
emailCode: string;
|
|
355
|
-
}) | ({
|
|
356
|
-
birthdate: Date;
|
|
357
|
-
password: string;
|
|
358
|
-
identificationNumber: string;
|
|
359
|
-
} & {
|
|
360
|
-
emailCode?: undefined;
|
|
361
|
-
phoneCode: string;
|
|
362
|
-
})) => Promise<any>;
|
|
363
158
|
}>;
|
|
364
159
|
export type { Doc24 } from './types';
|