@integraciones_doc24/sdk 1.16.29 → 1.16.31

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 +206 -206
  2. package/lib/baseSdk/consultation.d.ts +99 -0
  3. package/lib/baseSdk/consultation.js +23 -0
  4. package/lib/baseSdk/diagnostica.d.ts +54 -54
  5. package/lib/baseSdk/diagnostica.js +82 -82
  6. package/lib/baseSdk/external.d.ts +177 -177
  7. package/lib/baseSdk/external.js +96 -96
  8. package/lib/baseSdk/index.d.ts +2 -2
  9. package/lib/baseSdk/index.js +77 -76
  10. package/lib/baseSdk/user.d.ts +112 -112
  11. package/lib/baseSdk/user.js +136 -136
  12. package/lib/index.d.ts +400 -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 +2523 -2518
  21. package/lib/schemas.js +549 -548
  22. package/lib/types.d.ts +170 -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 +58 -58
  33. package/lib/userSdk/patients.js +89 -89
  34. package/lib/userSdk/schedule.d.ts +58 -58
  35. package/lib/userSdk/schedule.js +89 -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 +188 -187
  39. package/lib/userSdk/videoVisit.js +253 -250
  40. package/lib/utils.d.ts +3 -3
  41. package/lib/utils.js +43 -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,187 +1,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
- 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
- id: number;
128
- fullName: string;
129
- specialtyId: number;
130
- specialty: string;
131
- } | undefined;
132
- address?: string | undefined;
133
- city?: string | undefined;
134
- province?: string | undefined;
135
- retries?: number | null | undefined;
136
- id: number;
137
- language: string;
138
- status: string;
139
- paymentStatus: string;
140
- finishDate: Date | null;
141
- report: {
142
- indications?: string | null | undefined;
143
- inPersonRequired?: string | null | undefined;
144
- motive: string | null;
145
- actualDesease: string | null;
146
- alertSigns: string | null;
147
- extendedMotive: string | null;
148
- diagnose: {
149
- code: string;
150
- description: string;
151
- }[];
152
- medication: {
153
- description?: string | null | undefined;
154
- quantity?: number | null | undefined;
155
- dose?: string | null | undefined;
156
- farmalinkId?: number | null | undefined;
157
- }[];
158
- prescription: {
159
- link?: string | null | undefined;
160
- codigo?: number | null | undefined;
161
- };
162
- referral: {
163
- specialtyId?: any;
164
- status?: string | null | undefined;
165
- inPersonRequired?: string | null | undefined;
166
- comments?: string | null | undefined;
167
- };
168
- };
169
- pdf: {
170
- atention?: any;
171
- labs?: any;
172
- otherExams?: any;
173
- images?: any;
174
- certificate?: string | any[] | null | undefined;
175
- medication: any[];
176
- };
177
- files: {
178
- name: string;
179
- url: string;
180
- }[];
181
- }>;
182
- uploadFileConsultation: (params: {
183
- fileName?: string | undefined;
184
- vcToken: string;
185
- attachedFile: string;
186
- }) => Promise<unknown>;
187
- };
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
+ };