@integraciones_doc24/sdk 1.16.38 → 1.16.40

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 -225
  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 -76
  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 +2813 -2482
  21. package/lib/schemas.js +601 -540
  22. package/lib/types.d.ts +178 -170
  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 +62 -58
  33. package/lib/userSdk/patients.js +93 -89
  34. package/lib/userSdk/schedule.d.ts +59 -58
  35. package/lib/userSdk/schedule.js +90 -89
  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 -175
  39. package/lib/userSdk/videoVisit.js +283 -242
  40. package/lib/utils.d.ts +4 -3
  41. package/lib/utils.js +68 -43
  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,175 +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
- videoVisit?: {
27
- id: number;
28
- status: string;
29
- } | undefined;
30
- paymentStatus?: string | undefined;
31
- atentionId?: number | undefined;
32
- waitingTime?: string | undefined;
33
- id: number | null;
34
- patientId: number;
35
- creationDate: Date;
36
- user: {
37
- phone: string | null;
38
- email: string | null;
39
- id: number;
40
- };
41
- vcToken: string;
42
- }>;
43
- getPatientVideoVisitHistory: (patientId: number) => Promise<{
44
- appointment?: {
45
- date: Date;
46
- id: number;
47
- } | undefined;
48
- videoVisit?: {
49
- id: number;
50
- status: string;
51
- } | undefined;
52
- paymentStatus?: string | undefined;
53
- atentionId?: number | undefined;
54
- waitingTime?: string | undefined;
55
- id: number | null;
56
- patientId: number;
57
- professional: string;
58
- creationDate: Date;
59
- user: {
60
- phone: string | null;
61
- email: string | null;
62
- id: number;
63
- };
64
- vcToken: string;
65
- specialty: string;
66
- }[]>;
67
- getVideoVisitDetails: (vcId: number) => Promise<{
68
- professional?: {
69
- id: number;
70
- fullName: string;
71
- } | undefined;
72
- appointment: {
73
- date: Date;
74
- id: number;
75
- } | null;
76
- id: number;
77
- language: string;
78
- patient: {
79
- fullName: string;
80
- firstAccessDate: Date;
81
- lastAccessDate: Date;
82
- };
83
- status: string;
84
- paymentStatus: string;
85
- finishDate: Date | null;
86
- retries: number;
87
- report: {
88
- motive: string | null;
89
- actualDesease: string | null;
90
- indications: string | null;
91
- alertSigns: string | null;
92
- extendedMotive: string | null;
93
- diagnose: {
94
- code: string;
95
- description: string;
96
- }[];
97
- };
98
- pdf: {
99
- atention?: string | undefined;
100
- labs?: string | undefined;
101
- otherExams?: string | undefined;
102
- images?: string | undefined;
103
- medication: any[];
104
- };
105
- files: {
106
- name: string;
107
- url: string;
108
- }[];
109
- }>;
110
- getVideoVisitLink: (vcToken: string, patientId: number) => Promise<string | null>;
111
- getActiveVideoVisits: () => Promise<{
112
- patientId: number;
113
- vcToken: string;
114
- consultationId: number;
115
- }[]>;
116
- getCompleteVideoVisitDetails: (vcToken: string) => Promise<{
117
- professional?: {
118
- id: number;
119
- fullName: string;
120
- specialtyId: number;
121
- specialty: string;
122
- } | undefined;
123
- retries?: number | null | undefined;
124
- id: number;
125
- language: string;
126
- status: string;
127
- paymentStatus: string;
128
- finishDate: Date | null;
129
- report: {
130
- indications?: string | null | undefined;
131
- inPersonRequired?: string | null | undefined;
132
- motive: string | null;
133
- actualDesease: string | null;
134
- alertSigns: string | null;
135
- extendedMotive: string | null;
136
- diagnose: {
137
- code: string;
138
- description: string;
139
- }[];
140
- medication: {
141
- description?: string | null | undefined;
142
- quantity?: number | null | undefined;
143
- dose?: string | null | undefined;
144
- farmalinkId?: number | null | undefined;
145
- }[];
146
- prescription: {
147
- link?: string | null | undefined;
148
- codigo?: number | null | undefined;
149
- };
150
- referral: {
151
- specialtyId?: any;
152
- status?: string | null | undefined;
153
- inPersonRequired?: string | null | undefined;
154
- comments?: string | null | undefined;
155
- };
156
- };
157
- pdf: {
158
- atention?: any;
159
- labs?: any;
160
- otherExams?: any;
161
- images?: any;
162
- certificate?: string | any[] | null | undefined;
163
- medication: any[];
164
- };
165
- files: {
166
- name: string;
167
- url: string;
168
- }[];
169
- }>;
170
- uploadFileConsultation: (params: {
171
- fileName?: string | undefined;
172
- vcToken: string;
173
- attachedFile: string;
174
- }) => Promise<unknown>;
175
- };
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
+ email: string | null;
42
+ phone: 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
+ email: string | null;
78
+ phone: 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
+ };