@integraciones_doc24/sdk 1.16.34 → 1.16.36

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