@integraciones_doc24/sdk 0.39.6 → 0.39.7
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 +16 -16
- package/lib/baseSdk/diagnostica.js +22 -19
- package/lib/baseSdk/external.d.ts +177 -0
- package/lib/baseSdk/external.js +96 -0
- package/lib/baseSdk/index.js +4 -3
- package/lib/baseSdk/user.d.ts +60 -10
- package/lib/baseSdk/user.js +74 -26
- package/lib/index.d.ts +243 -133
- package/lib/schemas.d.ts +776 -411
- package/lib/schemas.js +152 -136
- package/lib/types.d.ts +35 -9
- package/lib/userSdk/chat.d.ts +2 -2
- package/lib/userSdk/external.d.ts +34 -0
- package/lib/userSdk/external.js +72 -0
- package/lib/userSdk/index.js +3 -0
- package/lib/userSdk/patients.d.ts +30 -16
- package/lib/userSdk/patients.js +35 -14
- package/lib/userSdk/schedule.d.ts +5 -2
- package/lib/userSdk/schedule.js +21 -16
- package/lib/userSdk/videoVisit.d.ts +4 -2
- package/lib/userSdk/videoVisit.js +11 -4
- package/lib/utils.d.ts +2 -4
- package/lib/utils.js +11 -22
- package/lib/webhook/index.js +1 -0
- package/package.json +1 -1
- package/lib/baseSdk/consultation.d.ts +0 -99
- package/lib/baseSdk/consultation.js +0 -23
package/lib/index.d.ts
CHANGED
|
@@ -5,37 +5,64 @@ 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: (
|
|
8
|
+
declareUser: (params: {
|
|
9
|
+
user: {
|
|
10
|
+
identificationType?: number | undefined;
|
|
11
|
+
identificationValue?: string | undefined;
|
|
12
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
13
|
+
phone?: string | undefined;
|
|
14
|
+
firstName: string;
|
|
15
|
+
lastName: string;
|
|
16
|
+
countryId: string;
|
|
17
|
+
birthdate: Date;
|
|
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: {
|
|
35
|
+
identificationType?: number | undefined;
|
|
36
|
+
identificationValue?: string | undefined;
|
|
37
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
38
|
+
phone?: string | undefined;
|
|
9
39
|
firstName: string;
|
|
10
40
|
lastName: string;
|
|
11
|
-
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
12
|
-
identificationValue: string;
|
|
13
|
-
gender: "m" | "f";
|
|
14
|
-
phone: string;
|
|
15
|
-
email: string;
|
|
16
41
|
countryId: string;
|
|
17
42
|
birthdate: Date;
|
|
43
|
+
email: string;
|
|
18
44
|
}) => Promise<number>;
|
|
19
45
|
getUserInstance: (user: number | {
|
|
46
|
+
identificationType?: number | undefined;
|
|
47
|
+
identificationValue?: string | undefined;
|
|
48
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
49
|
+
phone?: string | undefined;
|
|
20
50
|
firstName: string;
|
|
21
51
|
lastName: string;
|
|
22
|
-
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
23
|
-
identificationValue: string;
|
|
24
|
-
gender: "m" | "f";
|
|
25
|
-
phone: string;
|
|
26
|
-
email: string;
|
|
27
52
|
countryId: string;
|
|
28
53
|
birthdate: Date;
|
|
54
|
+
email: string;
|
|
29
55
|
}) => Promise<Doc24.UserSdk>;
|
|
30
56
|
getProfessional: (professionalId: number) => Promise<{
|
|
31
|
-
|
|
32
|
-
|
|
57
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
58
|
+
consultation_value?: string | null | undefined;
|
|
33
59
|
firstName: string;
|
|
34
60
|
lastName: string;
|
|
35
|
-
|
|
61
|
+
birthdate: Date;
|
|
36
62
|
phone: string | null;
|
|
37
63
|
email: string;
|
|
38
|
-
|
|
64
|
+
id: number;
|
|
65
|
+
logoUrl: string;
|
|
39
66
|
specialties: {
|
|
40
67
|
id: number;
|
|
41
68
|
description: string;
|
|
@@ -71,21 +98,21 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
71
98
|
}[];
|
|
72
99
|
}>;
|
|
73
100
|
enroll: (params: {
|
|
101
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
74
102
|
firstName: string;
|
|
75
103
|
lastName: string;
|
|
76
|
-
gender: "m" | "f";
|
|
77
|
-
email: string;
|
|
78
104
|
birthdate: Date;
|
|
79
|
-
|
|
105
|
+
email: string;
|
|
80
106
|
identificationNumber: string;
|
|
107
|
+
startDate: Date;
|
|
81
108
|
plan: string;
|
|
82
109
|
}) => Promise<void>;
|
|
83
|
-
|
|
110
|
+
getCoverageInfo: (identificationValue: string) => Promise<{
|
|
111
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
84
112
|
firstName: string | null;
|
|
85
113
|
lastName: string | null;
|
|
86
|
-
gender: "m" | "f";
|
|
87
|
-
email: string | null;
|
|
88
114
|
birthdate: Date;
|
|
115
|
+
email: string | null;
|
|
89
116
|
identificationNumber: string;
|
|
90
117
|
plan: string | null;
|
|
91
118
|
financerId: number | null;
|
|
@@ -104,106 +131,15 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
104
131
|
authorizationCode: string | null;
|
|
105
132
|
authorizationCodeExpiration: Date | null;
|
|
106
133
|
} | null>;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
snapshot_profesional?: any;
|
|
113
|
-
custom_1?: any;
|
|
114
|
-
custom_2?: any;
|
|
115
|
-
custom_3?: any;
|
|
116
|
-
custom_4?: any;
|
|
117
|
-
custom_5?: any;
|
|
118
|
-
tag_idioma: string;
|
|
119
|
-
id_consulta: number;
|
|
120
|
-
tipo_consulta: string;
|
|
121
|
-
estado: string;
|
|
122
|
-
tipo_usuario_cancelacion: string | null;
|
|
123
|
-
fecha_cancelacion: string | null;
|
|
124
|
-
estado_pago: string;
|
|
125
|
-
referencia_mercadopago: string | null;
|
|
126
|
-
id_atencion: number;
|
|
127
|
-
id_profesional: number;
|
|
128
|
-
profesional: string;
|
|
129
|
-
modalidad_paciente_turno: string | null;
|
|
130
|
-
provincia_consultorio: string | null;
|
|
131
|
-
localidad_consultorio: string | null;
|
|
132
|
-
domicilio_consultorio: string | null;
|
|
133
|
-
marketplace: string;
|
|
134
|
-
profesional_matriculas: any[];
|
|
135
|
-
info_paciente: {
|
|
136
|
-
email?: string | null | undefined;
|
|
137
|
-
apellido?: string | null | undefined;
|
|
138
|
-
nombre?: string | null | undefined;
|
|
139
|
-
genero?: string | null | undefined;
|
|
140
|
-
valor_identificacion?: string | null | undefined;
|
|
141
|
-
telefono?: string | null | undefined;
|
|
142
|
-
id_pais?: string | null | undefined;
|
|
143
|
-
provincia?: string | null | undefined;
|
|
144
|
-
localidad?: string | null | undefined;
|
|
145
|
-
domicilio?: string | null | undefined;
|
|
146
|
-
fecha_de_nacimiento?: string | null | undefined;
|
|
147
|
-
tag_idioma?: number | null | undefined;
|
|
148
|
-
estado_paciente?: number | null | undefined;
|
|
149
|
-
fecha_suspension?: string | null | undefined;
|
|
150
|
-
fecha_activacion?: string | null | undefined;
|
|
151
|
-
fecha_modificacion?: string | null | undefined;
|
|
152
|
-
fecha_baja?: string | null | undefined;
|
|
153
|
-
id_paciente: number;
|
|
154
|
-
id_tipo_de_identificacion: number;
|
|
155
|
-
};
|
|
156
|
-
fecha_primer_llamado_profesional: string;
|
|
157
|
-
fecha_inicio: string;
|
|
158
|
-
fecha_primer_acceso_paciente: string;
|
|
159
|
-
fecha_ultimo_acceso_paciente: string;
|
|
160
|
-
fecha_corte_medico: string;
|
|
161
|
-
fecha_fin: string;
|
|
162
|
-
intentos_conexion: number;
|
|
163
|
-
id_turno: number | null;
|
|
164
|
-
fecha_turno_invitacion: string | null;
|
|
165
|
-
hora_turno_invitacion: string | null;
|
|
166
|
-
firma_profesional: string | null;
|
|
167
|
-
id_especialidad: number;
|
|
168
|
-
especialidad: string;
|
|
169
|
-
motivo: string;
|
|
170
|
-
enfermedad_actual: string;
|
|
171
|
-
conducta_terapeutica: string;
|
|
172
|
-
signos_alerta: string;
|
|
173
|
-
motivo_extendido_consulta: string;
|
|
174
|
-
presencial_requerida: string;
|
|
175
|
-
derivada: string;
|
|
176
|
-
derivada_id_especialidad: string;
|
|
177
|
-
derivada_presencial_obligatoria: string;
|
|
178
|
-
derivada_comentarios: string | null;
|
|
179
|
-
diagnostico: any[];
|
|
180
|
-
practicas: any[];
|
|
181
|
-
link_medicacion: any[];
|
|
182
|
-
medicacion: any[];
|
|
183
|
-
link_receta: string | null;
|
|
184
|
-
link_compra: string | null;
|
|
185
|
-
identificador_receta: string | null;
|
|
186
|
-
codigo_verificacion_receta: string | null;
|
|
187
|
-
financiador: string;
|
|
188
|
-
registro_custom: any[];
|
|
189
|
-
pdf_medicacion: any[];
|
|
190
|
-
uploads: any[];
|
|
191
|
-
files_atencion: any[];
|
|
192
|
-
motivo_cancelacion: string | null;
|
|
193
|
-
detalle_cancelacion: string | null;
|
|
194
|
-
documentos: string;
|
|
195
|
-
id_consultorio: number;
|
|
196
|
-
token: string;
|
|
197
|
-
tipo_protocolo_seguimiento: string | null;
|
|
198
|
-
form_data: {};
|
|
199
|
-
ubicacion: string;
|
|
200
|
-
link_full: string;
|
|
201
|
-
timestamp: string;
|
|
202
|
-
} | null>;
|
|
134
|
+
sendVerificationCode: (params: {
|
|
135
|
+
identificationType: number;
|
|
136
|
+
identificationValue: string;
|
|
137
|
+
channel: "1" | "2";
|
|
138
|
+
}) => Promise<void>;
|
|
203
139
|
getDiagnosticaHistory: (patient: {
|
|
204
|
-
|
|
140
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
141
|
+
identificationType: "DNI";
|
|
205
142
|
identificationValue: string;
|
|
206
|
-
gender: "m" | "f";
|
|
207
143
|
}, from: Date, to: Date) => Promise<{
|
|
208
144
|
date: Date;
|
|
209
145
|
location: string;
|
|
@@ -211,22 +147,22 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
211
147
|
deepLink: string;
|
|
212
148
|
}[]>;
|
|
213
149
|
getDiagnosticaDeepLink: (kiosk: string, user: {
|
|
214
|
-
|
|
150
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
215
151
|
firstName: string;
|
|
216
152
|
lastName: string;
|
|
217
|
-
|
|
218
|
-
identificationType: "dni";
|
|
153
|
+
identificationType: "DNI";
|
|
219
154
|
identificationValue: string;
|
|
220
|
-
gender: "m" | "f";
|
|
221
155
|
phone: string;
|
|
222
156
|
email: string;
|
|
157
|
+
language: string;
|
|
158
|
+
birthday: Date;
|
|
223
159
|
}, patient: {
|
|
160
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
224
161
|
firstName: string;
|
|
225
162
|
lastName: string;
|
|
226
|
-
|
|
227
|
-
identificationType: "dni";
|
|
163
|
+
identificationType: "DNI";
|
|
228
164
|
identificationValue: string;
|
|
229
|
-
|
|
165
|
+
birthday: Date;
|
|
230
166
|
}) => Promise<{
|
|
231
167
|
forwardingRequired: true;
|
|
232
168
|
deepLink: string;
|
|
@@ -234,22 +170,196 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
234
170
|
forwardingRequired: false;
|
|
235
171
|
}>;
|
|
236
172
|
getDiagnosticaAccess: (kiosk: string, user: {
|
|
237
|
-
|
|
173
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
238
174
|
firstName: string;
|
|
239
175
|
lastName: string;
|
|
240
|
-
|
|
241
|
-
identificationType: "dni";
|
|
176
|
+
identificationType: "DNI";
|
|
242
177
|
identificationValue: string;
|
|
243
|
-
gender: "m" | "f";
|
|
244
178
|
phone: string;
|
|
245
179
|
email: string;
|
|
180
|
+
language: string;
|
|
181
|
+
birthday: Date;
|
|
246
182
|
}, patient: {
|
|
183
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
247
184
|
firstName: string;
|
|
248
185
|
lastName: string;
|
|
249
|
-
|
|
250
|
-
identificationType: "dni";
|
|
186
|
+
identificationType: "DNI";
|
|
251
187
|
identificationValue: string;
|
|
252
|
-
|
|
188
|
+
birthday: Date;
|
|
253
189
|
}) => Promise<void>;
|
|
190
|
+
externalLogin: (params: {
|
|
191
|
+
user: string;
|
|
192
|
+
password: string;
|
|
193
|
+
}) => Promise<{
|
|
194
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
195
|
+
firstName: string;
|
|
196
|
+
lastName: string;
|
|
197
|
+
countryId: string;
|
|
198
|
+
phone: string;
|
|
199
|
+
email: string;
|
|
200
|
+
birthday: Date;
|
|
201
|
+
identificationNumber: string;
|
|
202
|
+
}>;
|
|
203
|
+
preExternalEnrollment: (params: ({
|
|
204
|
+
birthdate: Date;
|
|
205
|
+
identificationNumber: string;
|
|
206
|
+
} & {
|
|
207
|
+
phone: string;
|
|
208
|
+
email: string;
|
|
209
|
+
}) | ({
|
|
210
|
+
birthdate: Date;
|
|
211
|
+
identificationNumber: string;
|
|
212
|
+
} & {
|
|
213
|
+
phone?: undefined;
|
|
214
|
+
email: string;
|
|
215
|
+
}) | ({
|
|
216
|
+
birthdate: Date;
|
|
217
|
+
identificationNumber: string;
|
|
218
|
+
} & {
|
|
219
|
+
email?: undefined;
|
|
220
|
+
phone: string;
|
|
221
|
+
})) => Promise<void>;
|
|
222
|
+
externalEnrollment: (params: ({
|
|
223
|
+
birthdate: Date;
|
|
224
|
+
identificationNumber: string;
|
|
225
|
+
} & {
|
|
226
|
+
phone: string;
|
|
227
|
+
email: string;
|
|
228
|
+
} & {
|
|
229
|
+
password: string;
|
|
230
|
+
} & {
|
|
231
|
+
emailCode: string;
|
|
232
|
+
phoneCode: string;
|
|
233
|
+
}) | ({
|
|
234
|
+
birthdate: Date;
|
|
235
|
+
identificationNumber: string;
|
|
236
|
+
} & {
|
|
237
|
+
phone: string;
|
|
238
|
+
email: string;
|
|
239
|
+
} & {
|
|
240
|
+
password: string;
|
|
241
|
+
} & {
|
|
242
|
+
phoneCode?: undefined;
|
|
243
|
+
emailCode: string;
|
|
244
|
+
}) | ({
|
|
245
|
+
birthdate: Date;
|
|
246
|
+
identificationNumber: string;
|
|
247
|
+
} & {
|
|
248
|
+
phone: string;
|
|
249
|
+
email: string;
|
|
250
|
+
} & {
|
|
251
|
+
password: string;
|
|
252
|
+
} & {
|
|
253
|
+
emailCode?: undefined;
|
|
254
|
+
phoneCode: string;
|
|
255
|
+
}) | ({
|
|
256
|
+
birthdate: Date;
|
|
257
|
+
identificationNumber: string;
|
|
258
|
+
} & {
|
|
259
|
+
phone?: undefined;
|
|
260
|
+
email: string;
|
|
261
|
+
} & {
|
|
262
|
+
password: string;
|
|
263
|
+
} & {
|
|
264
|
+
emailCode: string;
|
|
265
|
+
phoneCode: string;
|
|
266
|
+
}) | ({
|
|
267
|
+
birthdate: Date;
|
|
268
|
+
identificationNumber: string;
|
|
269
|
+
} & {
|
|
270
|
+
phone?: undefined;
|
|
271
|
+
email: string;
|
|
272
|
+
} & {
|
|
273
|
+
password: string;
|
|
274
|
+
} & {
|
|
275
|
+
phoneCode?: undefined;
|
|
276
|
+
emailCode: string;
|
|
277
|
+
}) | ({
|
|
278
|
+
birthdate: Date;
|
|
279
|
+
identificationNumber: string;
|
|
280
|
+
} & {
|
|
281
|
+
phone?: undefined;
|
|
282
|
+
email: string;
|
|
283
|
+
} & {
|
|
284
|
+
password: string;
|
|
285
|
+
} & {
|
|
286
|
+
emailCode?: undefined;
|
|
287
|
+
phoneCode: string;
|
|
288
|
+
}) | ({
|
|
289
|
+
birthdate: Date;
|
|
290
|
+
identificationNumber: string;
|
|
291
|
+
} & {
|
|
292
|
+
email?: undefined;
|
|
293
|
+
phone: string;
|
|
294
|
+
} & {
|
|
295
|
+
password: string;
|
|
296
|
+
} & {
|
|
297
|
+
emailCode: string;
|
|
298
|
+
phoneCode: string;
|
|
299
|
+
}) | ({
|
|
300
|
+
birthdate: Date;
|
|
301
|
+
identificationNumber: string;
|
|
302
|
+
} & {
|
|
303
|
+
email?: undefined;
|
|
304
|
+
phone: string;
|
|
305
|
+
} & {
|
|
306
|
+
password: string;
|
|
307
|
+
} & {
|
|
308
|
+
phoneCode?: undefined;
|
|
309
|
+
emailCode: string;
|
|
310
|
+
}) | ({
|
|
311
|
+
birthdate: Date;
|
|
312
|
+
identificationNumber: string;
|
|
313
|
+
} & {
|
|
314
|
+
email?: undefined;
|
|
315
|
+
phone: string;
|
|
316
|
+
} & {
|
|
317
|
+
password: string;
|
|
318
|
+
} & {
|
|
319
|
+
emailCode?: undefined;
|
|
320
|
+
phoneCode: string;
|
|
321
|
+
})) => Promise<{
|
|
322
|
+
gender?: "m" | "f" | "o" | undefined;
|
|
323
|
+
firstName: string;
|
|
324
|
+
lastName: string;
|
|
325
|
+
countryId: string;
|
|
326
|
+
phone: string;
|
|
327
|
+
email: string;
|
|
328
|
+
birthday: Date;
|
|
329
|
+
identificationNumber: string;
|
|
330
|
+
}>;
|
|
331
|
+
sendExternalVerificationCode: (params: {
|
|
332
|
+
birthdate: Date;
|
|
333
|
+
channel: "1" | "2";
|
|
334
|
+
identificationNumber: string;
|
|
335
|
+
}) => Promise<void>;
|
|
336
|
+
verifyExternalVerificationCode: (params: {
|
|
337
|
+
code: string;
|
|
338
|
+
birthdate: Date;
|
|
339
|
+
channel: "1" | "2";
|
|
340
|
+
identificationNumber: string;
|
|
341
|
+
}) => Promise<any>;
|
|
342
|
+
externalResetPassword: (params: ({
|
|
343
|
+
birthdate: Date;
|
|
344
|
+
password: string;
|
|
345
|
+
identificationNumber: string;
|
|
346
|
+
} & {
|
|
347
|
+
emailCode: string;
|
|
348
|
+
phoneCode: string;
|
|
349
|
+
}) | ({
|
|
350
|
+
birthdate: Date;
|
|
351
|
+
password: string;
|
|
352
|
+
identificationNumber: string;
|
|
353
|
+
} & {
|
|
354
|
+
phoneCode?: undefined;
|
|
355
|
+
emailCode: string;
|
|
356
|
+
}) | ({
|
|
357
|
+
birthdate: Date;
|
|
358
|
+
password: string;
|
|
359
|
+
identificationNumber: string;
|
|
360
|
+
} & {
|
|
361
|
+
emailCode?: undefined;
|
|
362
|
+
phoneCode: string;
|
|
363
|
+
})) => Promise<any>;
|
|
254
364
|
}>;
|
|
255
365
|
export type { Doc24 } from './types';
|