@integraciones_doc24/sdk 1.9.1 → 1.10.0
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/external.d.ts +29 -0
- package/lib/baseSdk/external.js +56 -0
- package/lib/index.d.ts +29 -0
- package/lib/schemas.d.ts +121 -0
- package/lib/schemas.js +21 -0
- package/lib/types.d.ts +6 -0
- package/package.json +1 -1
- package/lib/lib/baseSdk/diagnostica.d.ts +0 -11
- package/lib/lib/baseSdk/diagnostica.js +0 -79
- package/lib/lib/baseSdk/index.d.ts +0 -161
- package/lib/lib/baseSdk/index.js +0 -66
- package/lib/lib/baseSdk/user.d.ts +0 -41
- package/lib/lib/baseSdk/user.js +0 -130
- package/lib/lib/index.d.ts +0 -182
- package/lib/lib/index.js +0 -22
- package/lib/lib/lib/baseSdk/diagnostica.d.ts +0 -6
- package/lib/lib/lib/baseSdk/diagnostica.js +0 -79
- package/lib/lib/lib/baseSdk/index.d.ts +0 -51
- package/lib/lib/lib/baseSdk/index.js +0 -66
- package/lib/lib/lib/baseSdk/user.d.ts +0 -9
- package/lib/lib/lib/baseSdk/user.js +0 -130
- package/lib/lib/lib/index.d.ts +0 -168
- package/lib/lib/lib/index.js +0 -22
- package/lib/lib/lib/lib/baseSdk/diagnostica.d.ts +0 -6
- package/lib/lib/lib/lib/baseSdk/diagnostica.js +0 -79
- package/lib/lib/lib/lib/baseSdk/index.d.ts +0 -14
- package/lib/lib/lib/lib/baseSdk/index.js +0 -66
- package/lib/lib/lib/lib/baseSdk/user.d.ts +0 -9
- package/lib/lib/lib/lib/baseSdk/user.js +0 -130
- package/lib/lib/lib/lib/index.d.ts +0 -58
- package/lib/lib/lib/lib/index.js +0 -22
- package/lib/lib/lib/lib/request/index.d.ts +0 -2
- package/lib/lib/lib/lib/request/index.js +0 -26
- package/lib/lib/lib/lib/request/token.d.ts +0 -2
- package/lib/lib/lib/lib/request/token.js +0 -34
- package/lib/lib/lib/lib/request/validation.d.ts +0 -10
- package/lib/lib/lib/lib/request/validation.js +0 -28
- package/lib/lib/lib/lib/schemas.d.ts +0 -1334
- package/lib/lib/lib/lib/schemas.js +0 -325
- package/lib/lib/lib/lib/test.d.ts +0 -1
- package/lib/lib/lib/lib/test.js +0 -55
- package/lib/lib/lib/lib/types.d.ts +0 -1
- package/lib/lib/lib/lib/types.js +0 -2
- package/lib/lib/lib/lib/userSdk/chat.d.ts +0 -9
- package/lib/lib/lib/lib/userSdk/chat.js +0 -98
- package/lib/lib/lib/lib/userSdk/index.d.ts +0 -24
- package/lib/lib/lib/lib/userSdk/index.js +0 -27
- package/lib/lib/lib/lib/userSdk/patients.d.ts +0 -5
- package/lib/lib/lib/lib/userSdk/patients.js +0 -55
- package/lib/lib/lib/lib/userSdk/schedule.d.ts +0 -7
- package/lib/lib/lib/lib/userSdk/schedule.js +0 -76
- package/lib/lib/lib/lib/userSdk/specialties.d.ts +0 -4
- package/lib/lib/lib/lib/userSdk/specialties.js +0 -19
- package/lib/lib/lib/lib/userSdk/videoVisit.d.ts +0 -10
- package/lib/lib/lib/lib/userSdk/videoVisit.js +0 -147
- package/lib/lib/lib/lib/utils.d.ts +0 -4
- package/lib/lib/lib/lib/utils.js +0 -19
- package/lib/lib/lib/lib/webhook/index.d.ts +0 -8
- package/lib/lib/lib/lib/webhook/index.js +0 -55
- package/lib/lib/lib/lib/webhook/responses.d.ts +0 -36
- package/lib/lib/lib/lib/webhook/responses.js +0 -42
- package/lib/lib/lib/lib/webhook/token.d.ts +0 -2
- package/lib/lib/lib/lib/webhook/token.js +0 -23
- package/lib/lib/lib/request/index.d.ts +0 -2
- package/lib/lib/lib/request/index.js +0 -26
- package/lib/lib/lib/request/token.d.ts +0 -2
- package/lib/lib/lib/request/token.js +0 -34
- package/lib/lib/lib/request/validation.d.ts +0 -10
- package/lib/lib/lib/request/validation.js +0 -28
- package/lib/lib/lib/schemas.d.ts +0 -1334
- package/lib/lib/lib/schemas.js +0 -325
- package/lib/lib/lib/src/baseSdk/diagnostica.d.ts +0 -6
- package/lib/lib/lib/src/baseSdk/diagnostica.js +0 -79
- package/lib/lib/lib/src/baseSdk/index.d.ts +0 -51
- package/lib/lib/lib/src/baseSdk/index.js +0 -66
- package/lib/lib/lib/src/baseSdk/user.d.ts +0 -9
- package/lib/lib/lib/src/baseSdk/user.js +0 -130
- package/lib/lib/lib/src/index.d.ts +0 -169
- package/lib/lib/lib/src/index.js +0 -22
- package/lib/lib/lib/src/request/index.d.ts +0 -2
- package/lib/lib/lib/src/request/index.js +0 -26
- package/lib/lib/lib/src/request/token.d.ts +0 -2
- package/lib/lib/lib/src/request/token.js +0 -34
- package/lib/lib/lib/src/request/validation.d.ts +0 -10
- package/lib/lib/lib/src/request/validation.js +0 -28
- package/lib/lib/lib/src/schemas.d.ts +0 -1340
- package/lib/lib/lib/src/schemas.js +0 -325
- package/lib/lib/lib/src/types.d.ts +0 -1
- package/lib/lib/lib/src/types.js +0 -2
- package/lib/lib/lib/src/userSdk/chat.d.ts +0 -9
- package/lib/lib/lib/src/userSdk/chat.js +0 -98
- package/lib/lib/lib/src/userSdk/index.d.ts +0 -102
- package/lib/lib/lib/src/userSdk/index.js +0 -27
- package/lib/lib/lib/src/userSdk/patients.d.ts +0 -5
- package/lib/lib/lib/src/userSdk/patients.js +0 -55
- package/lib/lib/lib/src/userSdk/schedule.d.ts +0 -7
- package/lib/lib/lib/src/userSdk/schedule.js +0 -76
- package/lib/lib/lib/src/userSdk/specialties.d.ts +0 -4
- package/lib/lib/lib/src/userSdk/specialties.js +0 -19
- package/lib/lib/lib/src/userSdk/videoVisit.d.ts +0 -10
- package/lib/lib/lib/src/userSdk/videoVisit.js +0 -147
- package/lib/lib/lib/src/utils.d.ts +0 -4
- package/lib/lib/lib/src/utils.js +0 -19
- package/lib/lib/lib/src/webhook/index.d.ts +0 -8
- package/lib/lib/lib/src/webhook/index.js +0 -55
- package/lib/lib/lib/src/webhook/responses.d.ts +0 -36
- package/lib/lib/lib/src/webhook/responses.js +0 -42
- package/lib/lib/lib/src/webhook/token.d.ts +0 -2
- package/lib/lib/lib/src/webhook/token.js +0 -23
- package/lib/lib/lib/test.d.ts +0 -1
- package/lib/lib/lib/test.js +0 -55
- package/lib/lib/lib/types.d.ts +0 -1
- package/lib/lib/lib/types.js +0 -2
- package/lib/lib/lib/userSdk/chat.d.ts +0 -9
- package/lib/lib/lib/userSdk/chat.js +0 -98
- package/lib/lib/lib/userSdk/index.d.ts +0 -102
- package/lib/lib/lib/userSdk/index.js +0 -27
- package/lib/lib/lib/userSdk/patients.d.ts +0 -5
- package/lib/lib/lib/userSdk/patients.js +0 -55
- package/lib/lib/lib/userSdk/schedule.d.ts +0 -7
- package/lib/lib/lib/userSdk/schedule.js +0 -76
- package/lib/lib/lib/userSdk/specialties.d.ts +0 -4
- package/lib/lib/lib/userSdk/specialties.js +0 -19
- package/lib/lib/lib/userSdk/videoVisit.d.ts +0 -10
- package/lib/lib/lib/userSdk/videoVisit.js +0 -147
- package/lib/lib/lib/utils.d.ts +0 -4
- package/lib/lib/lib/utils.js +0 -19
- package/lib/lib/lib/webhook/index.d.ts +0 -8
- package/lib/lib/lib/webhook/index.js +0 -55
- package/lib/lib/lib/webhook/responses.d.ts +0 -36
- package/lib/lib/lib/webhook/responses.js +0 -42
- package/lib/lib/lib/webhook/token.d.ts +0 -2
- package/lib/lib/lib/webhook/token.js +0 -23
- package/lib/lib/request/index.d.ts +0 -2
- package/lib/lib/request/index.js +0 -26
- package/lib/lib/request/token.d.ts +0 -2
- package/lib/lib/request/token.js +0 -34
- package/lib/lib/request/validation.d.ts +0 -10
- package/lib/lib/request/validation.js +0 -28
- package/lib/lib/schemas.d.ts +0 -1334
- package/lib/lib/schemas.js +0 -325
- package/lib/lib/src/baseSdk/diagnostica.d.ts +0 -11
- package/lib/lib/src/baseSdk/diagnostica.js +0 -79
- package/lib/lib/src/baseSdk/index.d.ts +0 -162
- package/lib/lib/src/baseSdk/index.js +0 -66
- package/lib/lib/src/baseSdk/user.d.ts +0 -41
- package/lib/lib/src/baseSdk/user.js +0 -130
- package/lib/lib/src/index.d.ts +0 -183
- package/lib/lib/src/index.js +0 -22
- package/lib/lib/src/request/index.d.ts +0 -2
- package/lib/lib/src/request/index.js +0 -26
- package/lib/lib/src/request/token.d.ts +0 -2
- package/lib/lib/src/request/token.js +0 -34
- package/lib/lib/src/request/validation.d.ts +0 -10
- package/lib/lib/src/request/validation.js +0 -28
- package/lib/lib/src/schemas.d.ts +0 -1340
- package/lib/lib/src/schemas.js +0 -325
- package/lib/lib/src/types.d.ts +0 -1
- package/lib/lib/src/types.js +0 -2
- package/lib/lib/src/userSdk/chat.d.ts +0 -9
- package/lib/lib/src/userSdk/chat.js +0 -98
- package/lib/lib/src/userSdk/index.d.ts +0 -241
- package/lib/lib/src/userSdk/index.js +0 -27
- package/lib/lib/src/userSdk/patients.d.ts +0 -13
- package/lib/lib/src/userSdk/patients.js +0 -55
- package/lib/lib/src/userSdk/schedule.d.ts +0 -15
- package/lib/lib/src/userSdk/schedule.js +0 -76
- package/lib/lib/src/userSdk/specialties.d.ts +0 -4
- package/lib/lib/src/userSdk/specialties.js +0 -19
- package/lib/lib/src/userSdk/videoVisit.d.ts +0 -72
- package/lib/lib/src/userSdk/videoVisit.js +0 -147
- package/lib/lib/src/utils.d.ts +0 -4
- package/lib/lib/src/utils.js +0 -19
- package/lib/lib/src/webhook/index.d.ts +0 -8
- package/lib/lib/src/webhook/index.js +0 -55
- package/lib/lib/src/webhook/responses.d.ts +0 -36
- package/lib/lib/src/webhook/responses.js +0 -42
- package/lib/lib/src/webhook/token.d.ts +0 -2
- package/lib/lib/src/webhook/token.js +0 -23
- package/lib/lib/test.d.ts +0 -1
- package/lib/lib/test.js +0 -55
- package/lib/lib/types.d.ts +0 -1
- package/lib/lib/types.js +0 -2
- package/lib/lib/userSdk/chat.d.ts +0 -9
- package/lib/lib/userSdk/chat.js +0 -98
- package/lib/lib/userSdk/index.d.ts +0 -240
- package/lib/lib/userSdk/index.js +0 -27
- package/lib/lib/userSdk/patients.d.ts +0 -13
- package/lib/lib/userSdk/patients.js +0 -55
- package/lib/lib/userSdk/schedule.d.ts +0 -15
- package/lib/lib/userSdk/schedule.js +0 -76
- package/lib/lib/userSdk/specialties.d.ts +0 -4
- package/lib/lib/userSdk/specialties.js +0 -19
- package/lib/lib/userSdk/videoVisit.d.ts +0 -72
- package/lib/lib/userSdk/videoVisit.js +0 -147
- package/lib/lib/utils.d.ts +0 -4
- package/lib/lib/utils.js +0 -19
- package/lib/lib/webhook/index.d.ts +0 -8
- package/lib/lib/webhook/index.js +0 -55
- package/lib/lib/webhook/responses.d.ts +0 -36
- package/lib/lib/webhook/responses.js +0 -42
- package/lib/lib/webhook/token.d.ts +0 -2
- package/lib/lib/webhook/token.js +0 -23
- package/lib/src/baseSdk/diagnostica.d.ts +0 -54
- package/lib/src/baseSdk/diagnostica.js +0 -79
- package/lib/src/baseSdk/index.d.ts +0 -2
- package/lib/src/baseSdk/index.js +0 -66
- package/lib/src/baseSdk/user.d.ts +0 -89
- package/lib/src/baseSdk/user.js +0 -130
- package/lib/src/index.d.ts +0 -188
- package/lib/src/index.js +0 -22
- package/lib/src/request/index.d.ts +0 -3
- package/lib/src/request/index.js +0 -26
- package/lib/src/request/token.d.ts +0 -2
- package/lib/src/request/token.js +0 -34
- package/lib/src/request/validation.d.ts +0 -10
- package/lib/src/request/validation.js +0 -28
- package/lib/src/schemas.d.ts +0 -1311
- package/lib/src/schemas.js +0 -325
- package/lib/src/types.d.ts +0 -124
- package/lib/src/types.js +0 -2
- package/lib/src/userSdk/chat.d.ts +0 -57
- package/lib/src/userSdk/chat.js +0 -98
- package/lib/src/userSdk/index.d.ts +0 -2
- package/lib/src/userSdk/index.js +0 -27
- package/lib/src/userSdk/patients.d.ts +0 -33
- package/lib/src/userSdk/patients.js +0 -55
- package/lib/src/userSdk/schedule.d.ts +0 -44
- package/lib/src/userSdk/schedule.js +0 -76
- package/lib/src/userSdk/specialties.d.ts +0 -7
- package/lib/src/userSdk/specialties.js +0 -19
- package/lib/src/userSdk/videoVisit.d.ts +0 -111
- package/lib/src/userSdk/videoVisit.js +0 -147
- package/lib/src/utils.d.ts +0 -4
- package/lib/src/utils.js +0 -19
- package/lib/src/webhook/index.d.ts +0 -2
- package/lib/src/webhook/index.js +0 -55
- package/lib/src/webhook/responses.d.ts +0 -35
- package/lib/src/webhook/responses.js +0 -42
- package/lib/src/webhook/token.d.ts +0 -2
- package/lib/src/webhook/token.js +0 -23
- package/lib/test.d.ts +0 -1
- package/lib/test.js +0 -21
package/lib/lib/src/schemas.js
DELETED
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.doc24Schemas = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const gender = zod_1.enum(['m', 'f']);
|
|
6
|
-
const identificationType = zod_1.enum(['ndi', 'passport', 'credential']);
|
|
7
|
-
const sdkCredentials = zod_1.object({ iss: zod_1.string(), key: zod_1.string() });
|
|
8
|
-
const basePersonData = zod_1.object({
|
|
9
|
-
firstName: zod_1.string(),
|
|
10
|
-
lastName: zod_1.string(),
|
|
11
|
-
identificationType,
|
|
12
|
-
identificationValue: zod_1.string(),
|
|
13
|
-
countryId: zod_1.string(),
|
|
14
|
-
birthdate: zod_1.date(),
|
|
15
|
-
gender,
|
|
16
|
-
});
|
|
17
|
-
const patient = basePersonData;
|
|
18
|
-
const user = basePersonData.extend({ phone: zod_1.string(), email: zod_1.string() });
|
|
19
|
-
const specialtyMode = zod_1.enum(['appointment', 'chat', 'instant']);
|
|
20
|
-
const specialty = zod_1.object({
|
|
21
|
-
id: zod_1.number(),
|
|
22
|
-
description: zod_1.string(),
|
|
23
|
-
});
|
|
24
|
-
const scheduleAvailabilityFilter = zod_1.object({
|
|
25
|
-
specialtyId: zod_1.number().optional(),
|
|
26
|
-
professionalId: zod_1.number().optional(),
|
|
27
|
-
});
|
|
28
|
-
const availableAppointment = zod_1.object({
|
|
29
|
-
id: zod_1.number().or(zod_1.string()),
|
|
30
|
-
date: zod_1.date(),
|
|
31
|
-
clinicId: zod_1.number(),
|
|
32
|
-
professional: zod_1.object({
|
|
33
|
-
id: zod_1.number(),
|
|
34
|
-
fullName: zod_1.string(),
|
|
35
|
-
logoUrl: zod_1.string(),
|
|
36
|
-
}),
|
|
37
|
-
cost: zod_1.string(),
|
|
38
|
-
specialty: specialty,
|
|
39
|
-
type: specialtyMode,
|
|
40
|
-
atentions: zod_1.number(),
|
|
41
|
-
ranking: zod_1.unknown(),
|
|
42
|
-
length: zod_1.number().nullish(),
|
|
43
|
-
});
|
|
44
|
-
const appointment = zod_1.object({
|
|
45
|
-
id: zod_1.number(),
|
|
46
|
-
professionalId: zod_1.number(),
|
|
47
|
-
date: zod_1.date(),
|
|
48
|
-
});
|
|
49
|
-
const availableScheduleClinics = zod_1.object({
|
|
50
|
-
specialties: specialty.array(),
|
|
51
|
-
specialtiesER: specialty.array(),
|
|
52
|
-
professionals: zod_1.object({
|
|
53
|
-
id: zod_1.number(),
|
|
54
|
-
fullName: zod_1.string(),
|
|
55
|
-
clinicId: zod_1.number(),
|
|
56
|
-
specialties: specialty.array(),
|
|
57
|
-
}).array(),
|
|
58
|
-
});
|
|
59
|
-
const baseScheduleParameters = zod_1.object({
|
|
60
|
-
patientId: zod_1.number(),
|
|
61
|
-
specialtyId: zod_1.number(),
|
|
62
|
-
language: zod_1.string(),
|
|
63
|
-
details: zod_1.string(),
|
|
64
|
-
extraInfo: zod_1.any(),
|
|
65
|
-
});
|
|
66
|
-
const appointmentScheduleParameters = baseScheduleParameters.extend({
|
|
67
|
-
type: zod_1.literal('appointment'),
|
|
68
|
-
appointmentId: zod_1.number().or(zod_1.string()),
|
|
69
|
-
});
|
|
70
|
-
const instantScheduleParameters = baseScheduleParameters.extend({
|
|
71
|
-
type: zod_1.literal('instant'),
|
|
72
|
-
});
|
|
73
|
-
const chatroomAvailabilityFilter = zod_1.object({
|
|
74
|
-
limit: zod_1.number().optional(),
|
|
75
|
-
offset: zod_1.number().optional(),
|
|
76
|
-
});
|
|
77
|
-
const chatParameters = zod_1.object({
|
|
78
|
-
patientId: zod_1.number(),
|
|
79
|
-
chatroomId: zod_1.number(),
|
|
80
|
-
language: zod_1.string(),
|
|
81
|
-
specialtyId: zod_1.number(),
|
|
82
|
-
});
|
|
83
|
-
const availableChatroom = zod_1.object({
|
|
84
|
-
id: zod_1.number(),
|
|
85
|
-
professional: zod_1.object({
|
|
86
|
-
id: zod_1.number(),
|
|
87
|
-
fullName: zod_1.string(),
|
|
88
|
-
logoUrl: zod_1.string(),
|
|
89
|
-
}),
|
|
90
|
-
specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
|
|
91
|
-
});
|
|
92
|
-
const chatDetails = zod_1.object({
|
|
93
|
-
id: zod_1.number(),
|
|
94
|
-
chatRoomId: zod_1.number(),
|
|
95
|
-
startDate: zod_1.date(),
|
|
96
|
-
lastEventDate: zod_1.date(),
|
|
97
|
-
closureDate: zod_1.date().nullable(),
|
|
98
|
-
patient: zod_1.object({
|
|
99
|
-
id: zod_1.number(),
|
|
100
|
-
firstName: zod_1.string(),
|
|
101
|
-
lastName: zod_1.string(),
|
|
102
|
-
}),
|
|
103
|
-
patientLastPost: zod_1.date().nullable(),
|
|
104
|
-
professional: zod_1.object({
|
|
105
|
-
id: zod_1.number(),
|
|
106
|
-
fullName: zod_1.string(),
|
|
107
|
-
logoUrl: zod_1.string(),
|
|
108
|
-
}),
|
|
109
|
-
professionalLastPost: zod_1.date().nullable(),
|
|
110
|
-
specialty: zod_1.object({ id: zod_1.number(), description: zod_1.string() }),
|
|
111
|
-
status: zod_1.string(),
|
|
112
|
-
paymentStatus: zod_1.string(),
|
|
113
|
-
});
|
|
114
|
-
const chatPost = zod_1.object({
|
|
115
|
-
id: zod_1.number(),
|
|
116
|
-
userType: zod_1.enum(['patient', 'professional']),
|
|
117
|
-
message: zod_1.string(),
|
|
118
|
-
date: zod_1.date(),
|
|
119
|
-
});
|
|
120
|
-
const enrollmentParams = zod_1.object({
|
|
121
|
-
firstName: zod_1.string(),
|
|
122
|
-
lastName: zod_1.string(),
|
|
123
|
-
gender: gender,
|
|
124
|
-
identificationNumber: zod_1.string(),
|
|
125
|
-
birthdate: zod_1.date(),
|
|
126
|
-
email: zod_1.string().email(),
|
|
127
|
-
plan: zod_1.string(),
|
|
128
|
-
startDate: zod_1.date(),
|
|
129
|
-
});
|
|
130
|
-
const diagnosticaHistoryAppointment = zod_1.object({
|
|
131
|
-
date: zod_1.date(),
|
|
132
|
-
location: zod_1.string(),
|
|
133
|
-
exams: zod_1.string().array(),
|
|
134
|
-
deepLink: zod_1.string().url(),
|
|
135
|
-
});
|
|
136
|
-
const diagnosticaPatient = zod_1.object({
|
|
137
|
-
firstName: zod_1.string(),
|
|
138
|
-
lastName: zod_1.string(),
|
|
139
|
-
birthday: zod_1.date(),
|
|
140
|
-
identificationType: zod_1.literal('dni'),
|
|
141
|
-
identificationValue: zod_1.string(),
|
|
142
|
-
gender: gender,
|
|
143
|
-
});
|
|
144
|
-
const diagnosticaUser = diagnosticaPatient.merge(zod_1.object({
|
|
145
|
-
phone: zod_1.string(),
|
|
146
|
-
email: zod_1.string().email(),
|
|
147
|
-
language: zod_1.string(),
|
|
148
|
-
}));
|
|
149
|
-
const diagnosticaDeepLinkResponse = zod_1.object({
|
|
150
|
-
forwardingRequired: zod_1.literal(true),
|
|
151
|
-
deepLink: zod_1.string().url(),
|
|
152
|
-
}).or(zod_1.object({ forwardingRequired: zod_1.literal(false) }));
|
|
153
|
-
const coverageInfo = zod_1.object({
|
|
154
|
-
financerId: zod_1.number().nullable(),
|
|
155
|
-
defaultAffiliationId: zod_1.number().nullable(),
|
|
156
|
-
plan: zod_1.string().nullable(),
|
|
157
|
-
identificationNumber: zod_1.string(),
|
|
158
|
-
credentialNumber: zod_1.string().nullable(),
|
|
159
|
-
lastName: zod_1.string().nullable(),
|
|
160
|
-
firstName: zod_1.string().nullable(),
|
|
161
|
-
birthdate: zod_1.date(),
|
|
162
|
-
financerPlanId: zod_1.number().nullable(),
|
|
163
|
-
gender,
|
|
164
|
-
brand: zod_1.number().nullable(),
|
|
165
|
-
holderIdentificationNumber: zod_1.string().nullable(),
|
|
166
|
-
copaymentValue: zod_1.number().nullable(),
|
|
167
|
-
mobilePhone: zod_1.string().nullable(),
|
|
168
|
-
company: zod_1.string().nullable(),
|
|
169
|
-
email: zod_1.string().email().nullable(),
|
|
170
|
-
dischargeDate: zod_1.date().nullable(),
|
|
171
|
-
leavingDate: zod_1.date().nullable(),
|
|
172
|
-
identificacion_tributaria: zod_1.string().nullable(),
|
|
173
|
-
deregistrationDate: zod_1.date().nullable(),
|
|
174
|
-
authorizationCode: zod_1.string().nullable(),
|
|
175
|
-
authorizationCodeExpiration: zod_1.date().nullable(),
|
|
176
|
-
}).nullable();
|
|
177
|
-
const sendVerificationCodeParams = zod_1.object({
|
|
178
|
-
identificationType,
|
|
179
|
-
identificationValue: zod_1.string(),
|
|
180
|
-
channel: zod_1.enum(['1', '2']),
|
|
181
|
-
});
|
|
182
|
-
const verificationParams = zod_1.object({
|
|
183
|
-
channel: zod_1.enum(['1', '2']).optional(),
|
|
184
|
-
code: zod_1.string().optional(),
|
|
185
|
-
});
|
|
186
|
-
const declareUserParams = zod_1.object({
|
|
187
|
-
user,
|
|
188
|
-
}).and(verificationParams);
|
|
189
|
-
const declarePatientParams = zod_1.object({
|
|
190
|
-
patient,
|
|
191
|
-
}).and(verificationParams);
|
|
192
|
-
const declarePatientResponse = zod_1.object({
|
|
193
|
-
patientId: zod_1.number().nullable(),
|
|
194
|
-
userInfo: zod_1.object({
|
|
195
|
-
email: zod_1.string(),
|
|
196
|
-
phone: zod_1.string(),
|
|
197
|
-
}),
|
|
198
|
-
askCode: zod_1.boolean(),
|
|
199
|
-
});
|
|
200
|
-
const declareUserResponse = declarePatientResponse.extend({ userId: zod_1.number() });
|
|
201
|
-
exports.doc24Schemas = {
|
|
202
|
-
identificationType,
|
|
203
|
-
sdkCredentials,
|
|
204
|
-
sdkParams: zod_1.object({ url: zod_1.string(), credentials: sdkCredentials }),
|
|
205
|
-
user,
|
|
206
|
-
patient,
|
|
207
|
-
specialtyMode,
|
|
208
|
-
specialty,
|
|
209
|
-
scheduleAvailabilityFilter,
|
|
210
|
-
availableAppointment,
|
|
211
|
-
availableScheduleClinics,
|
|
212
|
-
scheduleFilter: zod_1.object({
|
|
213
|
-
professionalId: zod_1.number().optional(),
|
|
214
|
-
offset: zod_1.number().optional(),
|
|
215
|
-
limit: zod_1.number().optional(),
|
|
216
|
-
weekDay: zod_1.number().optional(),
|
|
217
|
-
date: zod_1.date().optional(),
|
|
218
|
-
startHour: zod_1.string().optional(),
|
|
219
|
-
finishHour: zod_1.string().optional(),
|
|
220
|
-
}),
|
|
221
|
-
scheduleParameters: zod_1.union([
|
|
222
|
-
appointmentScheduleParameters,
|
|
223
|
-
instantScheduleParameters,
|
|
224
|
-
]),
|
|
225
|
-
videoVisit: zod_1.object({
|
|
226
|
-
id: zod_1.number().nullable(),
|
|
227
|
-
creationDate: zod_1.date(),
|
|
228
|
-
patientId: zod_1.number(),
|
|
229
|
-
user: zod_1.object({
|
|
230
|
-
id: zod_1.number(),
|
|
231
|
-
email: zod_1.string().nullable(),
|
|
232
|
-
phone: zod_1.string().nullable(),
|
|
233
|
-
}),
|
|
234
|
-
vcToken: zod_1.string(),
|
|
235
|
-
appointment: zod_1.object({
|
|
236
|
-
id: zod_1.number(),
|
|
237
|
-
date: zod_1.date(),
|
|
238
|
-
}).optional(),
|
|
239
|
-
videoVisit: zod_1.object({
|
|
240
|
-
id: zod_1.number(),
|
|
241
|
-
status: zod_1.string(),
|
|
242
|
-
}).optional(),
|
|
243
|
-
paymentStatus: zod_1.string().optional(),
|
|
244
|
-
atentionId: zod_1.number().optional(),
|
|
245
|
-
}),
|
|
246
|
-
videoVisitDetails: zod_1.object({
|
|
247
|
-
id: zod_1.number(),
|
|
248
|
-
status: zod_1.string(),
|
|
249
|
-
paymentStatus: zod_1.string(),
|
|
250
|
-
professional: zod_1.object({
|
|
251
|
-
id: zod_1.number(),
|
|
252
|
-
fullName: zod_1.string(),
|
|
253
|
-
}).optional(),
|
|
254
|
-
patient: zod_1.object({
|
|
255
|
-
fullName: zod_1.string(),
|
|
256
|
-
firstAccessDate: zod_1.date(),
|
|
257
|
-
lastAccessDate: zod_1.date(),
|
|
258
|
-
}),
|
|
259
|
-
finishDate: zod_1.date().nullable(),
|
|
260
|
-
retries: zod_1.number(),
|
|
261
|
-
language: zod_1.string(),
|
|
262
|
-
appointment: zod_1.object({ id: zod_1.number(), date: zod_1.date() }).nullable(),
|
|
263
|
-
report: zod_1.object({
|
|
264
|
-
motive: zod_1.string().nullable(),
|
|
265
|
-
actualDesease: zod_1.string().nullable(),
|
|
266
|
-
indications: zod_1.string().nullable(),
|
|
267
|
-
alertSigns: zod_1.string().nullable(),
|
|
268
|
-
extendedMotive: zod_1.string().nullable(),
|
|
269
|
-
diagnose: zod_1.array(zod_1.object({ description: zod_1.string(), code: zod_1.string() })),
|
|
270
|
-
}),
|
|
271
|
-
pdf: zod_1.object({
|
|
272
|
-
atention: zod_1.string().optional(),
|
|
273
|
-
labs: zod_1.string().optional(),
|
|
274
|
-
otherExams: zod_1.string().optional(),
|
|
275
|
-
images: zod_1.string().optional(),
|
|
276
|
-
medication: zod_1.array(zod_1.any()),
|
|
277
|
-
}),
|
|
278
|
-
files: zod_1.array(zod_1.object({ name: zod_1.string(), url: zod_1.string().url() })),
|
|
279
|
-
}),
|
|
280
|
-
activeVideoVisitData: zod_1.object({
|
|
281
|
-
consultationId: zod_1.number(),
|
|
282
|
-
patientId: zod_1.number(),
|
|
283
|
-
vcToken: zod_1.string(),
|
|
284
|
-
}),
|
|
285
|
-
professional: zod_1.object({
|
|
286
|
-
id: zod_1.number(),
|
|
287
|
-
firstName: zod_1.string(),
|
|
288
|
-
lastName: zod_1.string(),
|
|
289
|
-
birthdate: zod_1.date(),
|
|
290
|
-
gender,
|
|
291
|
-
email: zod_1.string(),
|
|
292
|
-
phone: zod_1.string().nullable(),
|
|
293
|
-
logoUrl: zod_1.string(),
|
|
294
|
-
matriculation: zod_1.array(zod_1.object({ number: zod_1.string(), type: zod_1.string() })),
|
|
295
|
-
specialties: zod_1.array(specialty),
|
|
296
|
-
degree: zod_1.string(),
|
|
297
|
-
languages: zod_1.array(zod_1.string()),
|
|
298
|
-
resume: zod_1.object({
|
|
299
|
-
link: zod_1.string(),
|
|
300
|
-
brief: zod_1.string(),
|
|
301
|
-
}),
|
|
302
|
-
}),
|
|
303
|
-
appointment,
|
|
304
|
-
chatroomAvailabilityFilter,
|
|
305
|
-
chatParameters,
|
|
306
|
-
availableChatroom,
|
|
307
|
-
chatDetails,
|
|
308
|
-
chatPost,
|
|
309
|
-
enrollmentParams,
|
|
310
|
-
diagnosticaPatientFilter: zod_1.object({
|
|
311
|
-
gender,
|
|
312
|
-
identificationType,
|
|
313
|
-
identificationValue: zod_1.string(),
|
|
314
|
-
}),
|
|
315
|
-
diagnosticaHistoryAppointment,
|
|
316
|
-
diagnosticaUser,
|
|
317
|
-
diagnosticaPatient,
|
|
318
|
-
diagnosticaDeepLinkResponse,
|
|
319
|
-
coverageInfo,
|
|
320
|
-
sendVerificationCodeParams,
|
|
321
|
-
declareUserParams,
|
|
322
|
-
declareUserResponse,
|
|
323
|
-
declarePatientParams,
|
|
324
|
-
declarePatientResponse,
|
|
325
|
-
};
|
package/lib/lib/src/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var __esModule: boolean;
|
package/lib/lib/src/types.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var __esModule: boolean;
|
|
2
|
-
export function getChatMethods(makeRequest: any): {
|
|
3
|
-
getAvailableChatrooms: (...params: any) => Promise<any>;
|
|
4
|
-
createNewChat: (...params: any) => Promise<any>;
|
|
5
|
-
getPatientChats: (...params: any) => Promise<any>;
|
|
6
|
-
getChatPosts: (...params: any) => Promise<any>;
|
|
7
|
-
cancelChat: (...params: any) => Promise<void>;
|
|
8
|
-
sendChatMessage: (...params: any) => Promise<any>;
|
|
9
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getChatMethods = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const validation_1 = require("../request/validation");
|
|
6
|
-
const schemas_1 = require("../schemas");
|
|
7
|
-
const utils_1 = require("../utils");
|
|
8
|
-
const getChatMethods = (makeRequest) => {
|
|
9
|
-
const getAvailableChatrooms = validation_1.validateFunction(zod_1.tuple([zod_1.number(), zod_1.number(), schemas_1.doc24Schemas.chatroomAvailabilityFilter]), zod_1.array(schemas_1.doc24Schemas.availableChatroom), async (patientId, specialtyId, filter) => {
|
|
10
|
-
const path = `/chatroom/availability/${patientId}/${specialtyId}/${JSON.stringify(filter)}`;
|
|
11
|
-
const response = await makeRequest('GET', path);
|
|
12
|
-
return response.data.available_chatrooms.map((r) => ({
|
|
13
|
-
id: r.chatroom_id,
|
|
14
|
-
professional: {
|
|
15
|
-
id: r.professional_id,
|
|
16
|
-
fullName: r.professional,
|
|
17
|
-
logoUrl: r.logo,
|
|
18
|
-
},
|
|
19
|
-
specialty: {
|
|
20
|
-
id: r.specialty_id,
|
|
21
|
-
description: r.specialty,
|
|
22
|
-
},
|
|
23
|
-
}));
|
|
24
|
-
});
|
|
25
|
-
const createNewChat = validation_1.validateFunction(zod_1.tuple([schemas_1.doc24Schemas.chatParameters]), zod_1.number(), async (parameters) => {
|
|
26
|
-
const path = `/chatroom/visit`;
|
|
27
|
-
const response = await makeRequest('POST', path, {
|
|
28
|
-
chatroom_data: {
|
|
29
|
-
patient_id: parameters.patientId,
|
|
30
|
-
chatroom_id: parameters.chatroomId,
|
|
31
|
-
language: parameters.language.toLocaleUpperCase(),
|
|
32
|
-
specialty_id: parameters.specialtyId,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
return response.data.chat_id;
|
|
36
|
-
});
|
|
37
|
-
const getPatientChats = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), zod_1.array(schemas_1.doc24Schemas.chatDetails), async (patientId) => {
|
|
38
|
-
const path = `/chatroom/visits/${patientId}`;
|
|
39
|
-
const response = await makeRequest('GET', path);
|
|
40
|
-
return response.data.chatroom_visits.map((c) => ({
|
|
41
|
-
id: c.chat_id,
|
|
42
|
-
chatRoomId: c.chatroom_id,
|
|
43
|
-
status: c.status,
|
|
44
|
-
paymentStatus: c.payment_status,
|
|
45
|
-
startDate: utils_1.parseDateTime(c.start_date),
|
|
46
|
-
lastEventDate: utils_1.parseDateTime(c.fecha_ultimo_evento),
|
|
47
|
-
closureDate: c.closure_date && utils_1.parseDateTime(c.closure_date),
|
|
48
|
-
patient: {
|
|
49
|
-
id: c.patient_id,
|
|
50
|
-
firstName: c.patient_name,
|
|
51
|
-
lastName: c.patient_lastname,
|
|
52
|
-
},
|
|
53
|
-
patientLastPost: c.patient_last_post && utils_1.parseDateTime(c.patient_last_post),
|
|
54
|
-
professional: {
|
|
55
|
-
id: c.professional_id,
|
|
56
|
-
fullName: c.professional,
|
|
57
|
-
logoUrl: c.logo,
|
|
58
|
-
},
|
|
59
|
-
professionalLastPost: c.professional_last_post && utils_1.parseDateTime(c.professional_last_post),
|
|
60
|
-
specialty: {
|
|
61
|
-
id: c.specialty_id,
|
|
62
|
-
description: c.specialty,
|
|
63
|
-
},
|
|
64
|
-
}));
|
|
65
|
-
});
|
|
66
|
-
const getChatPosts = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), zod_1.array(schemas_1.doc24Schemas.chatPost), async (chatId) => {
|
|
67
|
-
const path = `/chatroom/visit/${chatId}`;
|
|
68
|
-
const response = await makeRequest('GET', path);
|
|
69
|
-
return JSON.parse(response.data.posts).map((p) => ({
|
|
70
|
-
id: p.post_id,
|
|
71
|
-
message: p.post,
|
|
72
|
-
date: utils_1.parseDateTime(p.post_date),
|
|
73
|
-
userType: p.user_type === 'P' ? 'patient' : 'professional',
|
|
74
|
-
}));
|
|
75
|
-
});
|
|
76
|
-
const cancelChat = validation_1.validateFunction(zod_1.tuple([zod_1.number()]), zod_1.void(), async (chatId) => {
|
|
77
|
-
const path = `/chatroom/visit/${chatId}`;
|
|
78
|
-
await makeRequest('DELETE', path);
|
|
79
|
-
return;
|
|
80
|
-
});
|
|
81
|
-
const sendChatMessage = validation_1.validateFunction(zod_1.tuple([zod_1.number(), zod_1.string()]), zod_1.number(), async (chatId, message) => {
|
|
82
|
-
const path = `/chatroom/post`;
|
|
83
|
-
const response = await makeRequest('POST', path, {
|
|
84
|
-
chat_id: chatId,
|
|
85
|
-
message,
|
|
86
|
-
});
|
|
87
|
-
return response.data.post_id;
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
getAvailableChatrooms,
|
|
91
|
-
createNewChat,
|
|
92
|
-
getPatientChats,
|
|
93
|
-
getChatPosts,
|
|
94
|
-
cancelChat,
|
|
95
|
-
sendChatMessage,
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
exports.getChatMethods = getChatMethods;
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
export var __esModule: boolean;
|
|
2
|
-
export function userSdk(url: any, credentials: any, userId: any): Promise<{
|
|
3
|
-
userId: any;
|
|
4
|
-
getAvailableChatrooms: (patientId: number, specialtyId: number, filter: {
|
|
5
|
-
offset?: number | undefined;
|
|
6
|
-
limit?: number | undefined;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
id: number;
|
|
9
|
-
professional: {
|
|
10
|
-
id: number;
|
|
11
|
-
fullName: string;
|
|
12
|
-
logoUrl: string;
|
|
13
|
-
};
|
|
14
|
-
specialty: {
|
|
15
|
-
id: number;
|
|
16
|
-
description: string;
|
|
17
|
-
};
|
|
18
|
-
}[]>;
|
|
19
|
-
createNewChat: (chatParameters: {
|
|
20
|
-
patientId: number;
|
|
21
|
-
specialtyId: number;
|
|
22
|
-
language: string;
|
|
23
|
-
chatroomId: number;
|
|
24
|
-
}) => Promise<number>;
|
|
25
|
-
getPatientChats: (patientId: number) => Promise<{
|
|
26
|
-
id: number;
|
|
27
|
-
patient: {
|
|
28
|
-
firstName: string;
|
|
29
|
-
lastName: string;
|
|
30
|
-
id: number;
|
|
31
|
-
};
|
|
32
|
-
professional: {
|
|
33
|
-
id: number;
|
|
34
|
-
fullName: string;
|
|
35
|
-
logoUrl: string;
|
|
36
|
-
};
|
|
37
|
-
status: string;
|
|
38
|
-
specialty: {
|
|
39
|
-
id: number;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
paymentStatus: string;
|
|
43
|
-
chatRoomId: number;
|
|
44
|
-
startDate: Date;
|
|
45
|
-
lastEventDate: Date;
|
|
46
|
-
closureDate: Date | null;
|
|
47
|
-
patientLastPost: Date | null;
|
|
48
|
-
professionalLastPost: Date | null;
|
|
49
|
-
}[]>;
|
|
50
|
-
getChatPosts: (chatId: number) => Promise<{
|
|
51
|
-
date: Date;
|
|
52
|
-
message: string;
|
|
53
|
-
id: number;
|
|
54
|
-
userType: "patient" | "professional";
|
|
55
|
-
}[]>;
|
|
56
|
-
cancelChat: (chatId: number) => Promise<void>;
|
|
57
|
-
sendChatMessage: (chatId: number, message: string) => Promise<number>;
|
|
58
|
-
scheduleVideoVisit: (params: {
|
|
59
|
-
extraInfo?: any;
|
|
60
|
-
type: "appointment";
|
|
61
|
-
patientId: number;
|
|
62
|
-
specialtyId: number;
|
|
63
|
-
language: string;
|
|
64
|
-
details: string;
|
|
65
|
-
appointmentId: string | number;
|
|
66
|
-
} | {
|
|
67
|
-
extraInfo?: any;
|
|
68
|
-
type: "instant";
|
|
69
|
-
patientId: number;
|
|
70
|
-
specialtyId: number;
|
|
71
|
-
language: string;
|
|
72
|
-
details: string;
|
|
73
|
-
}) => Promise<string>;
|
|
74
|
-
cancelVideoVisit: (vcToken: string) => Promise<void>;
|
|
75
|
-
getVideoVisit: (vcToken: string, patientId: number) => Promise<{
|
|
76
|
-
appointment?: {
|
|
77
|
-
date: Date;
|
|
78
|
-
id: number;
|
|
79
|
-
} | undefined;
|
|
80
|
-
videoVisit?: {
|
|
81
|
-
id: number;
|
|
82
|
-
status: string;
|
|
83
|
-
} | undefined;
|
|
84
|
-
paymentStatus?: string | undefined;
|
|
85
|
-
atentionId?: number | undefined;
|
|
86
|
-
id: number | null;
|
|
87
|
-
patientId: number;
|
|
88
|
-
creationDate: Date;
|
|
89
|
-
user: {
|
|
90
|
-
phone: string | null;
|
|
91
|
-
email: string | null;
|
|
92
|
-
id: number;
|
|
93
|
-
};
|
|
94
|
-
vcToken: string;
|
|
95
|
-
}>;
|
|
96
|
-
getPatientVideoVisitHistory: (patientId: number) => Promise<{
|
|
97
|
-
appointment?: {
|
|
98
|
-
date: Date;
|
|
99
|
-
id: number;
|
|
100
|
-
} | undefined;
|
|
101
|
-
videoVisit?: {
|
|
102
|
-
id: number;
|
|
103
|
-
status: string;
|
|
104
|
-
} | undefined;
|
|
105
|
-
paymentStatus?: string | undefined;
|
|
106
|
-
atentionId?: number | undefined;
|
|
107
|
-
id: number | null;
|
|
108
|
-
patientId: number;
|
|
109
|
-
creationDate: Date;
|
|
110
|
-
user: {
|
|
111
|
-
phone: string | null;
|
|
112
|
-
email: string | null;
|
|
113
|
-
id: number;
|
|
114
|
-
};
|
|
115
|
-
vcToken: string;
|
|
116
|
-
}[]>;
|
|
117
|
-
getVideoVisitDetails: (vcId: number) => Promise<{
|
|
118
|
-
professional?: {
|
|
119
|
-
id: number;
|
|
120
|
-
fullName: string;
|
|
121
|
-
} | undefined;
|
|
122
|
-
appointment: {
|
|
123
|
-
date: Date;
|
|
124
|
-
id: number;
|
|
125
|
-
} | null;
|
|
126
|
-
id: number;
|
|
127
|
-
language: string;
|
|
128
|
-
patient: {
|
|
129
|
-
fullName: string;
|
|
130
|
-
firstAccessDate: Date;
|
|
131
|
-
lastAccessDate: Date;
|
|
132
|
-
};
|
|
133
|
-
status: string;
|
|
134
|
-
paymentStatus: string;
|
|
135
|
-
finishDate: Date | null;
|
|
136
|
-
retries: number;
|
|
137
|
-
report: {
|
|
138
|
-
motive: string | null;
|
|
139
|
-
actualDesease: string | null;
|
|
140
|
-
indications: string | null;
|
|
141
|
-
alertSigns: string | null;
|
|
142
|
-
extendedMotive: string | null;
|
|
143
|
-
diagnose: {
|
|
144
|
-
code: string;
|
|
145
|
-
description: string;
|
|
146
|
-
}[];
|
|
147
|
-
};
|
|
148
|
-
pdf: {
|
|
149
|
-
atention?: string | undefined;
|
|
150
|
-
labs?: string | undefined;
|
|
151
|
-
otherExams?: string | undefined;
|
|
152
|
-
images?: string | undefined;
|
|
153
|
-
medication: any[];
|
|
154
|
-
};
|
|
155
|
-
files: {
|
|
156
|
-
name: string;
|
|
157
|
-
url: string;
|
|
158
|
-
}[];
|
|
159
|
-
}>;
|
|
160
|
-
getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
|
|
161
|
-
getActiveVideoVisits: () => Promise<{
|
|
162
|
-
patientId: number;
|
|
163
|
-
vcToken: string;
|
|
164
|
-
consultationId: number;
|
|
165
|
-
}[]>;
|
|
166
|
-
getSchedule: (patientId: number, specialtyId: number, filter?: {
|
|
167
|
-
date?: Date | undefined;
|
|
168
|
-
professionalId?: number | undefined;
|
|
169
|
-
offset?: number | undefined;
|
|
170
|
-
limit?: number | undefined;
|
|
171
|
-
weekDay?: number | undefined;
|
|
172
|
-
startHour?: string | undefined;
|
|
173
|
-
finishHour?: string | undefined;
|
|
174
|
-
} | undefined) => Promise<{
|
|
175
|
-
length?: number | null | undefined;
|
|
176
|
-
ranking?: unknown;
|
|
177
|
-
date: Date;
|
|
178
|
-
type: "appointment" | "chat" | "instant";
|
|
179
|
-
id: string | number;
|
|
180
|
-
professional: {
|
|
181
|
-
id: number;
|
|
182
|
-
fullName: string;
|
|
183
|
-
logoUrl: string;
|
|
184
|
-
};
|
|
185
|
-
clinicId: number;
|
|
186
|
-
cost: string;
|
|
187
|
-
specialty: {
|
|
188
|
-
id: number;
|
|
189
|
-
description: string;
|
|
190
|
-
};
|
|
191
|
-
atentions: number;
|
|
192
|
-
}[]>;
|
|
193
|
-
getScheduleDates: (patientId: number, filter?: {
|
|
194
|
-
specialtyId?: number | undefined;
|
|
195
|
-
professionalId?: number | undefined;
|
|
196
|
-
} | undefined) => Promise<Date[]>;
|
|
197
|
-
getAppointment: (appointmentId: number) => Promise<{
|
|
198
|
-
date: Date;
|
|
199
|
-
id: number;
|
|
200
|
-
professionalId: number;
|
|
201
|
-
}>;
|
|
202
|
-
getAppointmentByVcToken: (vcToken: string) => Promise<{
|
|
203
|
-
date: Date;
|
|
204
|
-
id: number;
|
|
205
|
-
professionalId: number;
|
|
206
|
-
}>;
|
|
207
|
-
getSpecialties: (mode: "appointment" | "chat" | "instant", language: string) => Promise<{
|
|
208
|
-
id: number;
|
|
209
|
-
description: string;
|
|
210
|
-
}[]>;
|
|
211
|
-
declarePatient: (params: {
|
|
212
|
-
patient: {
|
|
213
|
-
firstName: string;
|
|
214
|
-
lastName: string;
|
|
215
|
-
identificationType: "ndi" | "passport" | "credential";
|
|
216
|
-
identificationValue: string;
|
|
217
|
-
countryId: string;
|
|
218
|
-
birthdate: Date;
|
|
219
|
-
gender: "m" | "f";
|
|
220
|
-
};
|
|
221
|
-
} & {
|
|
222
|
-
code?: string | undefined;
|
|
223
|
-
channel?: "1" | "2" | undefined;
|
|
224
|
-
}) => Promise<{
|
|
225
|
-
patientId: number | null;
|
|
226
|
-
userInfo: {
|
|
227
|
-
phone: string;
|
|
228
|
-
email: string;
|
|
229
|
-
};
|
|
230
|
-
askCode: boolean;
|
|
231
|
-
}>;
|
|
232
|
-
getPatientId: (patient: {
|
|
233
|
-
firstName: string;
|
|
234
|
-
lastName: string;
|
|
235
|
-
identificationType: "ndi" | "passport" | "credential";
|
|
236
|
-
identificationValue: string;
|
|
237
|
-
countryId: string;
|
|
238
|
-
birthdate: Date;
|
|
239
|
-
gender: "m" | "f";
|
|
240
|
-
}) => Promise<number>;
|
|
241
|
-
}>;
|