@integraciones_doc24/sdk 0.39.7 → 0.39.9
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/consultation.d.ts +99 -0
- package/lib/baseSdk/consultation.js +23 -0
- package/lib/baseSdk/diagnostica.d.ts +16 -16
- package/lib/baseSdk/diagnostica.js +19 -22
- package/lib/baseSdk/index.js +3 -4
- package/lib/baseSdk/user.d.ts +10 -60
- package/lib/baseSdk/user.js +26 -74
- package/lib/index.d.ts +133 -243
- package/lib/schemas.d.ts +411 -776
- package/lib/schemas.js +136 -152
- package/lib/types.d.ts +9 -35
- package/lib/userSdk/chat.d.ts +2 -2
- package/lib/userSdk/index.js +0 -3
- package/lib/userSdk/patients.d.ts +16 -30
- package/lib/userSdk/patients.js +14 -35
- package/lib/userSdk/schedule.d.ts +2 -5
- package/lib/userSdk/schedule.js +17 -21
- 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/lib/webhook/index.js +0 -1
- package/package.json +4 -3
- package/lib/baseSdk/external.d.ts +0 -177
- package/lib/baseSdk/external.js +0 -96
- package/lib/userSdk/external.d.ts +0 -34
- package/lib/userSdk/external.js +0 -72
package/lib/index.d.ts
CHANGED
|
@@ -5,64 +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
|
-
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;
|
|
8
|
+
declareUser: (user: {
|
|
39
9
|
firstName: string;
|
|
40
10
|
lastName: string;
|
|
11
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
12
|
+
identificationValue: string;
|
|
13
|
+
gender: "m" | "f";
|
|
14
|
+
phone: string;
|
|
15
|
+
email: string;
|
|
41
16
|
countryId: string;
|
|
42
17
|
birthdate: Date;
|
|
43
|
-
email: string;
|
|
44
18
|
}) => Promise<number>;
|
|
45
19
|
getUserInstance: (user: number | {
|
|
46
|
-
identificationType?: number | undefined;
|
|
47
|
-
identificationValue?: string | undefined;
|
|
48
|
-
gender?: "m" | "f" | "o" | undefined;
|
|
49
|
-
phone?: string | undefined;
|
|
50
20
|
firstName: string;
|
|
51
21
|
lastName: string;
|
|
22
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
23
|
+
identificationValue: string;
|
|
24
|
+
gender: "m" | "f";
|
|
25
|
+
phone: string;
|
|
26
|
+
email: string;
|
|
52
27
|
countryId: string;
|
|
53
28
|
birthdate: Date;
|
|
54
|
-
email: string;
|
|
55
29
|
}) => Promise<Doc24.UserSdk>;
|
|
56
30
|
getProfessional: (professionalId: number) => Promise<{
|
|
57
|
-
|
|
58
|
-
|
|
31
|
+
id: number;
|
|
32
|
+
logoUrl: string;
|
|
59
33
|
firstName: string;
|
|
60
34
|
lastName: string;
|
|
61
|
-
|
|
35
|
+
gender: "m" | "f";
|
|
62
36
|
phone: string | null;
|
|
63
37
|
email: string;
|
|
64
|
-
|
|
65
|
-
logoUrl: string;
|
|
38
|
+
birthdate: Date;
|
|
66
39
|
specialties: {
|
|
67
40
|
id: number;
|
|
68
41
|
description: string;
|
|
@@ -98,21 +71,21 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
98
71
|
}[];
|
|
99
72
|
}>;
|
|
100
73
|
enroll: (params: {
|
|
101
|
-
gender?: "m" | "f" | "o" | undefined;
|
|
102
74
|
firstName: string;
|
|
103
75
|
lastName: string;
|
|
104
|
-
|
|
76
|
+
gender: "m" | "f";
|
|
105
77
|
email: string;
|
|
106
|
-
|
|
78
|
+
birthdate: Date;
|
|
107
79
|
startDate: Date;
|
|
80
|
+
identificationNumber: string;
|
|
108
81
|
plan: string;
|
|
109
82
|
}) => Promise<void>;
|
|
110
|
-
|
|
111
|
-
gender?: "m" | "f" | "o" | undefined;
|
|
83
|
+
getConverageInfo: (identificationValue: string) => Promise<{
|
|
112
84
|
firstName: string | null;
|
|
113
85
|
lastName: string | null;
|
|
114
|
-
|
|
86
|
+
gender: "m" | "f";
|
|
115
87
|
email: string | null;
|
|
88
|
+
birthdate: Date;
|
|
116
89
|
identificationNumber: string;
|
|
117
90
|
plan: string | null;
|
|
118
91
|
financerId: number | null;
|
|
@@ -131,15 +104,106 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
131
104
|
authorizationCode: string | null;
|
|
132
105
|
authorizationCodeExpiration: Date | null;
|
|
133
106
|
} | null>;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
107
|
+
getConsultation: (consultationId: number) => Promise<{
|
|
108
|
+
pdf_laboratorios?: any;
|
|
109
|
+
pdf_otras?: any;
|
|
110
|
+
pdf_imagenes?: any;
|
|
111
|
+
snapshot_paciente?: any;
|
|
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>;
|
|
139
203
|
getDiagnosticaHistory: (patient: {
|
|
140
|
-
|
|
141
|
-
identificationType: "DNI";
|
|
204
|
+
identificationType: "dni" | "ndi" | "passport" | "credential" | "nn" | "cpf" | "rg";
|
|
142
205
|
identificationValue: string;
|
|
206
|
+
gender: "m" | "f";
|
|
143
207
|
}, from: Date, to: Date) => Promise<{
|
|
144
208
|
date: Date;
|
|
145
209
|
location: string;
|
|
@@ -147,22 +211,22 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
147
211
|
deepLink: string;
|
|
148
212
|
}[]>;
|
|
149
213
|
getDiagnosticaDeepLink: (kiosk: string, user: {
|
|
150
|
-
|
|
214
|
+
language: string;
|
|
151
215
|
firstName: string;
|
|
152
216
|
lastName: string;
|
|
153
|
-
|
|
217
|
+
birthday: Date;
|
|
218
|
+
identificationType: "dni";
|
|
154
219
|
identificationValue: string;
|
|
220
|
+
gender: "m" | "f";
|
|
155
221
|
phone: string;
|
|
156
222
|
email: string;
|
|
157
|
-
language: string;
|
|
158
|
-
birthday: Date;
|
|
159
223
|
}, patient: {
|
|
160
|
-
gender?: "m" | "f" | "o" | undefined;
|
|
161
224
|
firstName: string;
|
|
162
225
|
lastName: string;
|
|
163
|
-
identificationType: "DNI";
|
|
164
|
-
identificationValue: string;
|
|
165
226
|
birthday: Date;
|
|
227
|
+
identificationType: "dni";
|
|
228
|
+
identificationValue: string;
|
|
229
|
+
gender: "m" | "f";
|
|
166
230
|
}) => Promise<{
|
|
167
231
|
forwardingRequired: true;
|
|
168
232
|
deepLink: string;
|
|
@@ -170,196 +234,22 @@ export declare const doc24Sdk: (params: Doc24.SdkParams) => Promise<{
|
|
|
170
234
|
forwardingRequired: false;
|
|
171
235
|
}>;
|
|
172
236
|
getDiagnosticaAccess: (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
237
|
language: string;
|
|
181
|
-
birthday: Date;
|
|
182
|
-
}, patient: {
|
|
183
|
-
gender?: "m" | "f" | "o" | undefined;
|
|
184
238
|
firstName: string;
|
|
185
239
|
lastName: string;
|
|
186
|
-
identificationType: "DNI";
|
|
187
|
-
identificationValue: string;
|
|
188
240
|
birthday: Date;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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
|
-
} & {
|
|
241
|
+
identificationType: "dni";
|
|
242
|
+
identificationValue: string;
|
|
243
|
+
gender: "m" | "f";
|
|
248
244
|
phone: string;
|
|
249
245
|
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;
|
|
246
|
+
}, patient: {
|
|
323
247
|
firstName: string;
|
|
324
248
|
lastName: string;
|
|
325
|
-
countryId: string;
|
|
326
|
-
phone: string;
|
|
327
|
-
email: string;
|
|
328
249
|
birthday: Date;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
birthdate: Date;
|
|
333
|
-
channel: "1" | "2";
|
|
334
|
-
identificationNumber: string;
|
|
250
|
+
identificationType: "dni";
|
|
251
|
+
identificationValue: string;
|
|
252
|
+
gender: "m" | "f";
|
|
335
253
|
}) => 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>;
|
|
364
254
|
}>;
|
|
365
255
|
export type { Doc24 } from './types';
|