@integraciones_doc24/sdk 1.16.37 → 1.16.39

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 (48) hide show
  1. package/README.md +225 -206
  2. package/lib/baseSdk/diagnostica.d.ts +54 -54
  3. package/lib/baseSdk/diagnostica.js +82 -82
  4. package/lib/baseSdk/external.d.ts +177 -177
  5. package/lib/baseSdk/external.js +96 -96
  6. package/lib/baseSdk/index.d.ts +2 -2
  7. package/lib/baseSdk/index.js +80 -77
  8. package/lib/baseSdk/integrationError.d.ts +16 -0
  9. package/lib/baseSdk/integrationError.js +33 -0
  10. package/lib/baseSdk/user.d.ts +115 -112
  11. package/lib/baseSdk/user.js +136 -136
  12. package/lib/index.d.ts +416 -400
  13. package/lib/index.js +22 -22
  14. package/lib/request/index.d.ts +4 -4
  15. package/lib/request/index.js +32 -32
  16. package/lib/request/token.d.ts +2 -2
  17. package/lib/request/token.js +34 -34
  18. package/lib/request/validation.d.ts +10 -10
  19. package/lib/request/validation.js +28 -28
  20. package/lib/schemas.d.ts +2757 -2703
  21. package/lib/schemas.js +594 -573
  22. package/lib/types.d.ts +177 -174
  23. package/lib/types.js +2 -2
  24. package/lib/userSdk/binah.d.ts +21 -21
  25. package/lib/userSdk/binah.js +20 -20
  26. package/lib/userSdk/chat.d.ts +57 -57
  27. package/lib/userSdk/chat.js +98 -98
  28. package/lib/userSdk/external.d.ts +34 -34
  29. package/lib/userSdk/external.js +72 -72
  30. package/lib/userSdk/index.d.ts +2 -2
  31. package/lib/userSdk/index.js +33 -33
  32. package/lib/userSdk/patients.d.ts +60 -58
  33. package/lib/userSdk/patients.js +91 -89
  34. package/lib/userSdk/schedule.d.ts +59 -59
  35. package/lib/userSdk/schedule.js +90 -90
  36. package/lib/userSdk/specialties.d.ts +19 -19
  37. package/lib/userSdk/specialties.js +48 -48
  38. package/lib/userSdk/videoVisit.d.ts +225 -225
  39. package/lib/userSdk/videoVisit.js +283 -283
  40. package/lib/utils.d.ts +4 -4
  41. package/lib/utils.js +68 -68
  42. package/lib/webhook/index.d.ts +2 -2
  43. package/lib/webhook/index.js +67 -67
  44. package/lib/webhook/responses.d.ts +35 -35
  45. package/lib/webhook/responses.js +42 -42
  46. package/lib/webhook/token.d.ts +2 -2
  47. package/lib/webhook/token.js +23 -23
  48. package/package.json +37 -37
@@ -1,225 +1,225 @@
1
- import { RequestMaker } from '../request';
2
- export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
3
- scheduleVideoVisit: (params: {
4
- extraInfo?: any;
5
- modality?: "P" | "V" | undefined;
6
- type: "appointment";
7
- patientId: number;
8
- specialtyId: number;
9
- language: string;
10
- details: string;
11
- appointmentId: string | number;
12
- } | {
13
- extraInfo?: any;
14
- type: "instant";
15
- patientId: number;
16
- specialtyId: number;
17
- language: string;
18
- details: string;
19
- }) => Promise<string>;
20
- cancelVideoVisit: (vcToken: string) => Promise<void>;
21
- getVideoVisit: (vcToken: string, patientId: number) => Promise<{
22
- appointment?: {
23
- date: Date;
24
- id: number;
25
- } | undefined;
26
- modality?: "P" | "V" | undefined;
27
- videoVisit?: {
28
- id: number;
29
- status: string;
30
- } | undefined;
31
- paymentStatus?: string | undefined;
32
- atentionId?: number | undefined;
33
- waitingTime?: string | undefined;
34
- address?: string | undefined;
35
- city?: string | undefined;
36
- province?: string | undefined;
37
- id: number | null;
38
- patientId: number;
39
- creationDate: Date;
40
- user: {
41
- phone: string | null;
42
- email: string | null;
43
- id: number;
44
- };
45
- vcToken: string;
46
- attachedFiles: {
47
- fileId: number;
48
- fileName: string | null;
49
- fileUrl: string;
50
- fileType: "IMG" | "FILE";
51
- uploadDate: Date;
52
- }[];
53
- }>;
54
- getPatientVideoVisitHistory: (patientId: number) => Promise<{
55
- appointment?: {
56
- date: Date;
57
- id: number;
58
- } | undefined;
59
- modality?: "P" | "V" | undefined;
60
- videoVisit?: {
61
- id: number;
62
- status: string;
63
- } | undefined;
64
- paymentStatus?: string | undefined;
65
- atentionId?: number | undefined;
66
- waitingTime?: string | undefined;
67
- address?: string | undefined;
68
- city?: string | undefined;
69
- province?: string | undefined;
70
- medications?: boolean | undefined;
71
- practices?: boolean | undefined;
72
- id: number | null;
73
- patientId: number;
74
- professional: string;
75
- creationDate: Date;
76
- user: {
77
- phone: string | null;
78
- email: string | null;
79
- id: number;
80
- };
81
- vcToken: string;
82
- attachedFiles: {
83
- fileId: number;
84
- fileName: string | null;
85
- fileUrl: string;
86
- fileType: "IMG" | "FILE";
87
- uploadDate: Date;
88
- }[];
89
- specialty: string;
90
- }[]>;
91
- getVideoVisitDetails: (vcId: number) => Promise<{
92
- professional?: {
93
- id: number;
94
- fullName: string;
95
- } | undefined;
96
- vcToken?: string | undefined;
97
- appointment: {
98
- date: Date;
99
- id: number;
100
- } | null;
101
- id: number;
102
- language: string;
103
- patient: {
104
- fullName: string;
105
- firstAccessDate: Date;
106
- lastAccessDate: Date;
107
- };
108
- status: string;
109
- paymentStatus: string;
110
- attachedFiles: {
111
- fileId: number;
112
- fileName: string | null;
113
- fileUrl: string;
114
- fileType: "IMG" | "FILE";
115
- uploadDate: Date;
116
- }[];
117
- finishDate: Date | null;
118
- retries: number;
119
- report: {
120
- motive: string | null;
121
- actualDesease: string | null;
122
- indications: string | null;
123
- alertSigns: string | null;
124
- extendedMotive: string | null;
125
- diagnose: {
126
- code: string;
127
- description: string;
128
- }[];
129
- };
130
- pdf: {
131
- atention?: string | undefined;
132
- labs?: string | undefined;
133
- otherExams?: string | undefined;
134
- images?: string | undefined;
135
- medication: any[];
136
- };
137
- files: {
138
- name: string;
139
- url: string;
140
- }[];
141
- }>;
142
- getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
143
- getActiveVideoVisits: () => Promise<{
144
- patientId: number;
145
- vcToken: string;
146
- consultationId: number;
147
- }[]>;
148
- getCompleteVideoVisitDetails: (vcToken: string) => Promise<{
149
- modality?: "P" | "V" | undefined;
150
- professional?: {
151
- idPrestadorInterno?: string | null | undefined;
152
- id: number;
153
- fullName: string;
154
- specialtyId: number;
155
- specialty: string;
156
- } | undefined;
157
- address?: string | undefined;
158
- city?: string | undefined;
159
- province?: string | undefined;
160
- retries?: number | null | undefined;
161
- id: number;
162
- language: string;
163
- status: string;
164
- paymentStatus: string;
165
- attachedFiles: {
166
- fileId: number;
167
- fileName: string | null;
168
- fileUrl: string;
169
- fileType: "IMG" | "FILE";
170
- uploadDate: Date;
171
- }[];
172
- finishDate: Date | null;
173
- report: {
174
- indications?: string | null | undefined;
175
- inPersonRequired?: string | null | undefined;
176
- motive: string | null;
177
- actualDesease: string | null;
178
- alertSigns: string | null;
179
- extendedMotive: string | null;
180
- diagnose: {
181
- code: string;
182
- description: string;
183
- }[];
184
- medication: {
185
- description?: string | null | undefined;
186
- quantity?: number | null | undefined;
187
- dose?: string | null | undefined;
188
- farmalinkId?: number | null | undefined;
189
- }[];
190
- prescription: {
191
- link?: string | null | undefined;
192
- codigo?: number | null | undefined;
193
- };
194
- referral: {
195
- specialtyId?: any;
196
- status?: string | null | undefined;
197
- inPersonRequired?: string | null | undefined;
198
- comments?: string | null | undefined;
199
- };
200
- };
201
- pdf: {
202
- atention?: any;
203
- labs?: any;
204
- otherExams?: any;
205
- images?: any;
206
- certificate?: string | any[] | null | undefined;
207
- medication: any[];
208
- };
209
- files: {
210
- name: string;
211
- url: string;
212
- }[];
213
- }>;
214
- uploadFileConsultation: (params: {
215
- fileName?: string | undefined;
216
- vcToken: string;
217
- attachedFile: string;
218
- }) => Promise<{
219
- fileId?: number | undefined;
220
- }>;
221
- deleteFileConsultation: (params: {
222
- fileId: number;
223
- vcToken: string;
224
- }) => Promise<void>;
225
- };
1
+ import { RequestMaker } from '../request';
2
+ export declare const getVideoVisitMethods: (makeRequest: RequestMaker) => {
3
+ scheduleVideoVisit: (params: {
4
+ extraInfo?: any;
5
+ modality?: "P" | "V" | undefined;
6
+ type: "appointment";
7
+ patientId: number;
8
+ specialtyId: number;
9
+ language: string;
10
+ details: string;
11
+ appointmentId: string | number;
12
+ } | {
13
+ extraInfo?: any;
14
+ type: "instant";
15
+ patientId: number;
16
+ specialtyId: number;
17
+ language: string;
18
+ details: string;
19
+ }) => Promise<string>;
20
+ cancelVideoVisit: (vcToken: string) => Promise<void>;
21
+ getVideoVisit: (vcToken: string, patientId: number) => Promise<{
22
+ appointment?: {
23
+ date: Date;
24
+ id: number;
25
+ } | undefined;
26
+ modality?: "P" | "V" | undefined;
27
+ videoVisit?: {
28
+ id: number;
29
+ status: string;
30
+ } | undefined;
31
+ paymentStatus?: string | undefined;
32
+ atentionId?: number | undefined;
33
+ waitingTime?: string | undefined;
34
+ address?: string | undefined;
35
+ city?: string | undefined;
36
+ province?: string | undefined;
37
+ id: number | null;
38
+ patientId: number;
39
+ creationDate: Date;
40
+ user: {
41
+ phone: string | null;
42
+ email: string | null;
43
+ id: number;
44
+ };
45
+ vcToken: string;
46
+ attachedFiles: {
47
+ fileId: number;
48
+ fileName: string | null;
49
+ fileUrl: string;
50
+ fileType: "IMG" | "FILE";
51
+ uploadDate: Date;
52
+ }[];
53
+ }>;
54
+ getPatientVideoVisitHistory: (patientId: number) => Promise<{
55
+ appointment?: {
56
+ date: Date;
57
+ id: number;
58
+ } | undefined;
59
+ modality?: "P" | "V" | undefined;
60
+ videoVisit?: {
61
+ id: number;
62
+ status: string;
63
+ } | undefined;
64
+ paymentStatus?: string | undefined;
65
+ atentionId?: number | undefined;
66
+ waitingTime?: string | undefined;
67
+ address?: string | undefined;
68
+ city?: string | undefined;
69
+ province?: string | undefined;
70
+ medications?: boolean | undefined;
71
+ practices?: boolean | undefined;
72
+ id: number | null;
73
+ patientId: number;
74
+ professional: string;
75
+ creationDate: Date;
76
+ user: {
77
+ phone: string | null;
78
+ email: string | null;
79
+ id: number;
80
+ };
81
+ vcToken: string;
82
+ attachedFiles: {
83
+ fileId: number;
84
+ fileName: string | null;
85
+ fileUrl: string;
86
+ fileType: "IMG" | "FILE";
87
+ uploadDate: Date;
88
+ }[];
89
+ specialty: string;
90
+ }[]>;
91
+ getVideoVisitDetails: (vcId: number) => Promise<{
92
+ professional?: {
93
+ id: number;
94
+ fullName: string;
95
+ } | undefined;
96
+ vcToken?: string | undefined;
97
+ appointment: {
98
+ date: Date;
99
+ id: number;
100
+ } | null;
101
+ id: number;
102
+ language: string;
103
+ patient: {
104
+ fullName: string;
105
+ firstAccessDate: Date;
106
+ lastAccessDate: Date;
107
+ };
108
+ status: string;
109
+ paymentStatus: string;
110
+ attachedFiles: {
111
+ fileId: number;
112
+ fileName: string | null;
113
+ fileUrl: string;
114
+ fileType: "IMG" | "FILE";
115
+ uploadDate: Date;
116
+ }[];
117
+ finishDate: Date | null;
118
+ retries: number;
119
+ report: {
120
+ motive: string | null;
121
+ actualDesease: string | null;
122
+ indications: string | null;
123
+ alertSigns: string | null;
124
+ extendedMotive: string | null;
125
+ diagnose: {
126
+ code: string;
127
+ description: string;
128
+ }[];
129
+ };
130
+ pdf: {
131
+ atention?: string | undefined;
132
+ labs?: string | undefined;
133
+ otherExams?: string | undefined;
134
+ images?: string | undefined;
135
+ medication: any[];
136
+ };
137
+ files: {
138
+ name: string;
139
+ url: string;
140
+ }[];
141
+ }>;
142
+ getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
143
+ getActiveVideoVisits: () => Promise<{
144
+ patientId: number;
145
+ vcToken: string;
146
+ consultationId: number;
147
+ }[]>;
148
+ getCompleteVideoVisitDetails: (vcToken: string) => Promise<{
149
+ modality?: "P" | "V" | undefined;
150
+ professional?: {
151
+ idPrestadorInterno?: string | null | undefined;
152
+ id: number;
153
+ fullName: string;
154
+ specialtyId: number;
155
+ specialty: string;
156
+ } | undefined;
157
+ address?: string | undefined;
158
+ city?: string | undefined;
159
+ province?: string | undefined;
160
+ retries?: number | null | undefined;
161
+ id: number;
162
+ language: string;
163
+ status: string;
164
+ paymentStatus: string;
165
+ attachedFiles: {
166
+ fileId: number;
167
+ fileName: string | null;
168
+ fileUrl: string;
169
+ fileType: "IMG" | "FILE";
170
+ uploadDate: Date;
171
+ }[];
172
+ finishDate: Date | null;
173
+ report: {
174
+ indications?: string | null | undefined;
175
+ inPersonRequired?: string | null | undefined;
176
+ motive: string | null;
177
+ actualDesease: string | null;
178
+ alertSigns: string | null;
179
+ extendedMotive: string | null;
180
+ diagnose: {
181
+ code: string;
182
+ description: string;
183
+ }[];
184
+ medication: {
185
+ description?: string | null | undefined;
186
+ quantity?: number | null | undefined;
187
+ dose?: string | null | undefined;
188
+ farmalinkId?: number | null | undefined;
189
+ }[];
190
+ prescription: {
191
+ link?: string | null | undefined;
192
+ codigo?: number | null | undefined;
193
+ };
194
+ referral: {
195
+ specialtyId?: any;
196
+ status?: string | null | undefined;
197
+ inPersonRequired?: string | null | undefined;
198
+ comments?: string | null | undefined;
199
+ };
200
+ };
201
+ pdf: {
202
+ atention?: any;
203
+ labs?: any;
204
+ otherExams?: any;
205
+ images?: any;
206
+ certificate?: string | any[] | null | undefined;
207
+ medication: any[];
208
+ };
209
+ files: {
210
+ name: string;
211
+ url: string;
212
+ }[];
213
+ }>;
214
+ uploadFileConsultation: (params: {
215
+ fileName?: string | undefined;
216
+ vcToken: string;
217
+ attachedFile: string;
218
+ }) => Promise<{
219
+ fileId?: number | undefined;
220
+ }>;
221
+ deleteFileConsultation: (params: {
222
+ fileId: number;
223
+ vcToken: string;
224
+ }) => Promise<void>;
225
+ };