@arbol-ai/sdk 1.20261017.200040 → 2.1.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/README.md +55 -5
- package/dist/account/connections/client.d.ts +25 -2
- package/dist/axxa/authorizations/client.d.ts +54 -0
- package/dist/axxa/authorizations/client.js +18 -0
- package/dist/axxa/authorizations/index.d.ts +4 -0
- package/dist/axxa/authorizations/index.js +4 -0
- package/dist/axxa/client.d.ts +19 -0
- package/dist/axxa/client.js +30 -0
- package/dist/axxa/connections/client.d.ts +104 -0
- package/dist/axxa/connections/client.js +42 -0
- package/dist/axxa/connections/index.d.ts +4 -0
- package/dist/axxa/connections/index.js +4 -0
- package/dist/axxa/eligibility/client.d.ts +44 -0
- package/dist/axxa/eligibility/client.js +18 -0
- package/dist/axxa/eligibility/index.d.ts +4 -0
- package/dist/axxa/eligibility/index.js +4 -0
- package/dist/axxa/index.d.ts +5 -0
- package/dist/axxa/index.js +4 -0
- package/dist/axxa/models.d.ts +168 -0
- package/dist/axxa/models.js +3 -0
- package/dist/axxa/provider/client.d.ts +32 -0
- package/dist/axxa/provider/client.js +18 -0
- package/dist/axxa/provider/index.d.ts +4 -0
- package/dist/axxa/provider/index.js +4 -0
- package/dist/client.d.ts +6 -0
- package/dist/client.js +15 -0
- package/dist/gmedic/agendaServices/client.d.ts +43 -0
- package/dist/gmedic/agendaServices/client.js +18 -0
- package/dist/gmedic/agendaServices/index.d.ts +5 -0
- package/dist/gmedic/agendaServices/index.js +4 -0
- package/dist/gmedic/agendaServices/models.d.ts +28 -0
- package/dist/gmedic/agendaServices/models.js +3 -0
- package/dist/gmedic/agendas/client.d.ts +45 -0
- package/dist/gmedic/agendas/client.js +18 -0
- package/dist/gmedic/agendas/index.d.ts +5 -0
- package/dist/gmedic/agendas/index.js +4 -0
- package/dist/gmedic/agendas/models.d.ts +32 -0
- package/dist/gmedic/agendas/models.js +3 -0
- package/dist/gmedic/appointments/client.d.ts +279 -0
- package/dist/gmedic/appointments/client.js +35 -0
- package/dist/gmedic/appointments/index.d.ts +5 -0
- package/dist/gmedic/appointments/index.js +4 -0
- package/dist/gmedic/appointments/models.d.ts +97 -0
- package/dist/gmedic/appointments/models.js +6 -0
- package/dist/gmedic/availability/client.d.ts +45 -0
- package/dist/gmedic/availability/client.js +18 -0
- package/dist/gmedic/availability/index.d.ts +5 -0
- package/dist/gmedic/availability/index.js +4 -0
- package/dist/gmedic/availability/models.d.ts +30 -0
- package/dist/gmedic/availability/models.js +3 -0
- package/dist/gmedic/availableDays/client.d.ts +44 -0
- package/dist/gmedic/availableDays/client.js +18 -0
- package/dist/gmedic/availableDays/index.d.ts +5 -0
- package/dist/gmedic/availableDays/index.js +4 -0
- package/dist/gmedic/availableDays/models.d.ts +15 -0
- package/dist/gmedic/availableDays/models.js +3 -0
- package/dist/gmedic/branchOffices/client.d.ts +43 -0
- package/dist/gmedic/branchOffices/client.js +18 -0
- package/dist/gmedic/branchOffices/index.d.ts +5 -0
- package/dist/gmedic/branchOffices/index.js +4 -0
- package/dist/gmedic/branchOffices/models.d.ts +51 -0
- package/dist/gmedic/branchOffices/models.js +3 -0
- package/dist/gmedic/client.d.ts +43 -0
- package/dist/gmedic/client.js +90 -0
- package/dist/gmedic/connections/client.d.ts +101 -0
- package/dist/gmedic/connections/client.js +42 -0
- package/dist/gmedic/connections/index.d.ts +4 -0
- package/dist/gmedic/connections/index.js +4 -0
- package/dist/gmedic/dictionaryEntries/client.d.ts +45 -0
- package/dist/gmedic/dictionaryEntries/client.js +18 -0
- package/dist/gmedic/dictionaryEntries/index.d.ts +5 -0
- package/dist/gmedic/dictionaryEntries/index.js +4 -0
- package/dist/gmedic/dictionaryEntries/models.d.ts +20 -0
- package/dist/gmedic/dictionaryEntries/models.js +3 -0
- package/dist/gmedic/healthPartners/client.d.ts +45 -0
- package/dist/gmedic/healthPartners/client.js +18 -0
- package/dist/gmedic/healthPartners/index.d.ts +5 -0
- package/dist/gmedic/healthPartners/index.js +4 -0
- package/dist/gmedic/healthPartners/models.d.ts +22 -0
- package/dist/gmedic/healthPartners/models.js +3 -0
- package/dist/gmedic/healthPromotionEntities/client.d.ts +45 -0
- package/dist/gmedic/healthPromotionEntities/client.js +18 -0
- package/dist/gmedic/healthPromotionEntities/index.d.ts +5 -0
- package/dist/gmedic/healthPromotionEntities/index.js +4 -0
- package/dist/gmedic/healthPromotionEntities/models.d.ts +19 -0
- package/dist/gmedic/healthPromotionEntities/models.js +3 -0
- package/dist/gmedic/index.d.ts +5 -0
- package/dist/gmedic/index.js +4 -0
- package/dist/gmedic/laboralRiskManagers/client.d.ts +45 -0
- package/dist/gmedic/laboralRiskManagers/client.js +18 -0
- package/dist/gmedic/laboralRiskManagers/index.d.ts +5 -0
- package/dist/gmedic/laboralRiskManagers/index.js +4 -0
- package/dist/gmedic/laboralRiskManagers/models.d.ts +19 -0
- package/dist/gmedic/laboralRiskManagers/models.js +3 -0
- package/dist/gmedic/models.d.ts +126 -0
- package/dist/gmedic/models.js +3 -0
- package/dist/gmedic/occupations/client.d.ts +45 -0
- package/dist/gmedic/occupations/client.js +18 -0
- package/dist/gmedic/occupations/index.d.ts +5 -0
- package/dist/gmedic/occupations/index.js +4 -0
- package/dist/gmedic/occupations/models.d.ts +20 -0
- package/dist/gmedic/occupations/models.js +3 -0
- package/dist/gmedic/patientNotes/client.d.ts +104 -0
- package/dist/gmedic/patientNotes/client.js +34 -0
- package/dist/gmedic/patientNotes/index.d.ts +5 -0
- package/dist/gmedic/patientNotes/index.js +4 -0
- package/dist/gmedic/patientNotes/models.d.ts +23 -0
- package/dist/gmedic/patientNotes/models.js +3 -0
- package/dist/gmedic/patients/client.d.ts +408 -0
- package/dist/gmedic/patients/client.js +34 -0
- package/dist/gmedic/patients/index.d.ts +5 -0
- package/dist/gmedic/patients/index.js +4 -0
- package/dist/gmedic/patients/models.d.ts +135 -0
- package/dist/gmedic/patients/models.js +3 -0
- package/dist/gmedic/services/client.d.ts +43 -0
- package/dist/gmedic/services/client.js +18 -0
- package/dist/gmedic/services/index.d.ts +5 -0
- package/dist/gmedic/services/index.js +4 -0
- package/dist/gmedic/services/models.d.ts +28 -0
- package/dist/gmedic/services/models.js +3 -0
- package/dist/gmedic/sessionPackages/client.d.ts +101 -0
- package/dist/gmedic/sessionPackages/client.js +26 -0
- package/dist/gmedic/sessionPackages/index.d.ts +5 -0
- package/dist/gmedic/sessionPackages/index.js +4 -0
- package/dist/gmedic/sessionPackages/models.d.ts +43 -0
- package/dist/gmedic/sessionPackages/models.js +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +22 -0
- package/dist/models.js +7 -1
- package/dist/nuevaEps/affiliations/client.d.ts +51 -0
- package/dist/nuevaEps/affiliations/client.js +18 -0
- package/dist/nuevaEps/affiliations/index.d.ts +4 -0
- package/dist/nuevaEps/affiliations/index.js +4 -0
- package/dist/nuevaEps/client.d.ts +15 -0
- package/dist/nuevaEps/client.js +20 -0
- package/dist/nuevaEps/connections/client.d.ts +111 -0
- package/dist/nuevaEps/connections/client.js +42 -0
- package/dist/nuevaEps/connections/index.d.ts +4 -0
- package/dist/nuevaEps/connections/index.js +4 -0
- package/dist/nuevaEps/index.d.ts +5 -0
- package/dist/nuevaEps/index.js +4 -0
- package/dist/nuevaEps/models.d.ts +154 -0
- package/dist/nuevaEps/models.js +3 -0
- package/package.json +10 -3
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
+
import { type GmedicAppointmentsPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Create appointment
|
|
13
|
+
*
|
|
14
|
+
* Use the organization gMedic account. No automatic write retries; reconcile
|
|
15
|
+
* an unknown outcome before repeating.
|
|
16
|
+
*/
|
|
17
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* List appointments
|
|
20
|
+
*
|
|
21
|
+
* Use the organization gMedic account. Read-only request; provider failures
|
|
22
|
+
* are never empty results.
|
|
23
|
+
*/
|
|
24
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Update appointment
|
|
27
|
+
*
|
|
28
|
+
* Use the organization gMedic account. No automatic write retries; reconcile
|
|
29
|
+
* an unknown outcome before repeating.
|
|
30
|
+
*/
|
|
31
|
+
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
32
|
+
}
|
|
33
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
34
|
+
export declare function bind(transport: Transport): Client;
|
|
35
|
+
export interface CreateRequest {
|
|
36
|
+
connectionId?: string;
|
|
37
|
+
data: {
|
|
38
|
+
agendaId: string;
|
|
39
|
+
allDay?: boolean;
|
|
40
|
+
attentionTypeId?: string;
|
|
41
|
+
authorization?: string;
|
|
42
|
+
authorizationSessions?: number;
|
|
43
|
+
block?: boolean;
|
|
44
|
+
branchOfficeId?: string;
|
|
45
|
+
colorId?: string;
|
|
46
|
+
consultationPurposeId?: string;
|
|
47
|
+
cupCode?: string;
|
|
48
|
+
currentSessions?: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
desiredDate?: string;
|
|
51
|
+
endDate: string;
|
|
52
|
+
externalCauseId?: string;
|
|
53
|
+
invoice?: string;
|
|
54
|
+
location?: string;
|
|
55
|
+
medicalAuthorizationId?: string;
|
|
56
|
+
medicalServiceId?: string;
|
|
57
|
+
modality?: string;
|
|
58
|
+
notificationMail?: string;
|
|
59
|
+
notificationNumber?: string;
|
|
60
|
+
patientId: string;
|
|
61
|
+
serviceId?: string;
|
|
62
|
+
serviceModalityId?: string;
|
|
63
|
+
servicesGroupId?: string;
|
|
64
|
+
startDate: string;
|
|
65
|
+
stateId?: string;
|
|
66
|
+
title: string;
|
|
67
|
+
viaEntryId?: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface CreateResponse {
|
|
71
|
+
data: {
|
|
72
|
+
agendaId?: string | null;
|
|
73
|
+
agendaName?: string | null;
|
|
74
|
+
allDay?: boolean | null;
|
|
75
|
+
appointmentColor?: {
|
|
76
|
+
id: string;
|
|
77
|
+
label?: string | null;
|
|
78
|
+
name?: string | null;
|
|
79
|
+
value?: string | null;
|
|
80
|
+
} | null;
|
|
81
|
+
authorization?: string | null;
|
|
82
|
+
authorizationSessions?: number | null;
|
|
83
|
+
block?: boolean | null;
|
|
84
|
+
branchOffice?: string | null;
|
|
85
|
+
consultationPurposeCode?: string | null;
|
|
86
|
+
consultationPurposeId?: string | null;
|
|
87
|
+
consultationPurposeName?: string | null;
|
|
88
|
+
creationDate?: string | null;
|
|
89
|
+
cupCode?: string | null;
|
|
90
|
+
cupName?: string | null;
|
|
91
|
+
currentSessions?: string | null;
|
|
92
|
+
date?: string | null;
|
|
93
|
+
description?: string | null;
|
|
94
|
+
desiredDate?: string | null;
|
|
95
|
+
endDate?: string | null;
|
|
96
|
+
entidad?: string | null;
|
|
97
|
+
externalCauseCode?: string | null;
|
|
98
|
+
externalCauseId?: string | null;
|
|
99
|
+
externalCauseName?: string | null;
|
|
100
|
+
id: string;
|
|
101
|
+
invoice?: string | null;
|
|
102
|
+
key?: string | null;
|
|
103
|
+
location?: string | null;
|
|
104
|
+
mainAttendantEmail?: string | null;
|
|
105
|
+
mainAttendantId?: string | null;
|
|
106
|
+
mainAttendantIdentification?: string | null;
|
|
107
|
+
mainAttendantMobile?: string | null;
|
|
108
|
+
mainAttendantName?: string | null;
|
|
109
|
+
mainAttendantPhone?: string | null;
|
|
110
|
+
mainDiagnosticCode?: string | null;
|
|
111
|
+
mainDiagnosticName?: string | null;
|
|
112
|
+
medicalAuthorizationId?: string | null;
|
|
113
|
+
medicalServiceCode?: string | null;
|
|
114
|
+
medicalServiceId?: string | null;
|
|
115
|
+
medicalServiceName?: string | null;
|
|
116
|
+
meetUrl?: string | null;
|
|
117
|
+
modality?: "FACE_TO_FACE" | "VIRTUAL" | "HOME_VISIT" | "NOT_APPLICABLE" | null;
|
|
118
|
+
modificationDate?: string | null;
|
|
119
|
+
opportunityIndicator?: number | null;
|
|
120
|
+
personCreator?: string | null;
|
|
121
|
+
readOnly?: boolean | null;
|
|
122
|
+
rejectReason?: {
|
|
123
|
+
id: string;
|
|
124
|
+
label?: string | null;
|
|
125
|
+
name?: string | null;
|
|
126
|
+
value?: string | null;
|
|
127
|
+
} | null;
|
|
128
|
+
selfServiceAllowCancel?: boolean | null;
|
|
129
|
+
selfServiceAllowReschedule?: boolean | null;
|
|
130
|
+
service?: string | null;
|
|
131
|
+
serviceId?: string | null;
|
|
132
|
+
serviceModalityCode?: string | null;
|
|
133
|
+
serviceModalityId?: string | null;
|
|
134
|
+
serviceModalityName?: string | null;
|
|
135
|
+
servicesGroupCode?: string | null;
|
|
136
|
+
servicesGroupId?: string | null;
|
|
137
|
+
servicesGroupName?: string | null;
|
|
138
|
+
startDate?: string | null;
|
|
139
|
+
state?: {
|
|
140
|
+
id: string;
|
|
141
|
+
label?: string | null;
|
|
142
|
+
name?: string | null;
|
|
143
|
+
value?: string | null;
|
|
144
|
+
} | null;
|
|
145
|
+
time?: string | null;
|
|
146
|
+
title?: string | null;
|
|
147
|
+
userObjectId?: string | null;
|
|
148
|
+
viaEntryCode?: string | null;
|
|
149
|
+
viaEntryId?: string | null;
|
|
150
|
+
viaEntryName?: string | null;
|
|
151
|
+
videocallProvider?: string | null;
|
|
152
|
+
};
|
|
153
|
+
error: null;
|
|
154
|
+
metadata: ResponseMetadata;
|
|
155
|
+
success: true;
|
|
156
|
+
}
|
|
157
|
+
export interface ListRequest {
|
|
158
|
+
/**
|
|
159
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
160
|
+
*/
|
|
161
|
+
cursor?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
164
|
+
*/
|
|
165
|
+
direction?: "forward" | "backward";
|
|
166
|
+
/**
|
|
167
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
168
|
+
* another cursor.
|
|
169
|
+
*/
|
|
170
|
+
limit?: number;
|
|
171
|
+
agendaId?: string;
|
|
172
|
+
date?: string;
|
|
173
|
+
id?: string;
|
|
174
|
+
patientId?: string;
|
|
175
|
+
pending?: boolean;
|
|
176
|
+
connectionId?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface ListResponse {
|
|
179
|
+
data: GmedicAppointmentsPage;
|
|
180
|
+
error: null;
|
|
181
|
+
metadata: ResponseMetadata;
|
|
182
|
+
success: true;
|
|
183
|
+
}
|
|
184
|
+
export interface UpdateRequest {
|
|
185
|
+
color?: "BLUE" | "RED" | "PINK" | "PURPLE" | "DARK_PURPLE" | "STEELE_BLUE" | "LIGHT_BLUE" | "TEAL" | "LIGHT_TEAL" | "GREEN" | "LIGHT_GREEN" | "YELLOW_GREEN" | "YELLOW" | "ORANGE" | "RED_ORANGE" | "LIGHT_BROWN" | "LIGHT_PURPLE" | "GREY" | "BLUE_GREY" | "YELLOW_GREY" | "BROWN";
|
|
186
|
+
connectionId?: string;
|
|
187
|
+
endDate?: string;
|
|
188
|
+
id: string;
|
|
189
|
+
rejectReasonCode?: string;
|
|
190
|
+
startDate?: string;
|
|
191
|
+
status?: "SCHEDULED" | "ATTENDED" | "UNATTENDED" | "CANCELED" | "PENALIZED" | "CONFIRMED" | "DECLINED";
|
|
192
|
+
}
|
|
193
|
+
export interface UpdateResponse {
|
|
194
|
+
data: {
|
|
195
|
+
agendaId?: string | null;
|
|
196
|
+
agendaName?: string | null;
|
|
197
|
+
allDay?: boolean | null;
|
|
198
|
+
appointmentColor?: {
|
|
199
|
+
id: string;
|
|
200
|
+
label?: string | null;
|
|
201
|
+
name?: string | null;
|
|
202
|
+
value?: string | null;
|
|
203
|
+
} | null;
|
|
204
|
+
authorization?: string | null;
|
|
205
|
+
authorizationSessions?: number | null;
|
|
206
|
+
block?: boolean | null;
|
|
207
|
+
branchOffice?: string | null;
|
|
208
|
+
consultationPurposeCode?: string | null;
|
|
209
|
+
consultationPurposeId?: string | null;
|
|
210
|
+
consultationPurposeName?: string | null;
|
|
211
|
+
creationDate?: string | null;
|
|
212
|
+
cupCode?: string | null;
|
|
213
|
+
cupName?: string | null;
|
|
214
|
+
currentSessions?: string | null;
|
|
215
|
+
date?: string | null;
|
|
216
|
+
description?: string | null;
|
|
217
|
+
desiredDate?: string | null;
|
|
218
|
+
endDate?: string | null;
|
|
219
|
+
entidad?: string | null;
|
|
220
|
+
externalCauseCode?: string | null;
|
|
221
|
+
externalCauseId?: string | null;
|
|
222
|
+
externalCauseName?: string | null;
|
|
223
|
+
id: string;
|
|
224
|
+
invoice?: string | null;
|
|
225
|
+
key?: string | null;
|
|
226
|
+
location?: string | null;
|
|
227
|
+
mainAttendantEmail?: string | null;
|
|
228
|
+
mainAttendantId?: string | null;
|
|
229
|
+
mainAttendantIdentification?: string | null;
|
|
230
|
+
mainAttendantMobile?: string | null;
|
|
231
|
+
mainAttendantName?: string | null;
|
|
232
|
+
mainAttendantPhone?: string | null;
|
|
233
|
+
mainDiagnosticCode?: string | null;
|
|
234
|
+
mainDiagnosticName?: string | null;
|
|
235
|
+
medicalAuthorizationId?: string | null;
|
|
236
|
+
medicalServiceCode?: string | null;
|
|
237
|
+
medicalServiceId?: string | null;
|
|
238
|
+
medicalServiceName?: string | null;
|
|
239
|
+
meetUrl?: string | null;
|
|
240
|
+
modality?: "FACE_TO_FACE" | "VIRTUAL" | "HOME_VISIT" | "NOT_APPLICABLE" | null;
|
|
241
|
+
modificationDate?: string | null;
|
|
242
|
+
opportunityIndicator?: number | null;
|
|
243
|
+
personCreator?: string | null;
|
|
244
|
+
readOnly?: boolean | null;
|
|
245
|
+
rejectReason?: {
|
|
246
|
+
id: string;
|
|
247
|
+
label?: string | null;
|
|
248
|
+
name?: string | null;
|
|
249
|
+
value?: string | null;
|
|
250
|
+
} | null;
|
|
251
|
+
selfServiceAllowCancel?: boolean | null;
|
|
252
|
+
selfServiceAllowReschedule?: boolean | null;
|
|
253
|
+
service?: string | null;
|
|
254
|
+
serviceId?: string | null;
|
|
255
|
+
serviceModalityCode?: string | null;
|
|
256
|
+
serviceModalityId?: string | null;
|
|
257
|
+
serviceModalityName?: string | null;
|
|
258
|
+
servicesGroupCode?: string | null;
|
|
259
|
+
servicesGroupId?: string | null;
|
|
260
|
+
servicesGroupName?: string | null;
|
|
261
|
+
startDate?: string | null;
|
|
262
|
+
state?: {
|
|
263
|
+
id: string;
|
|
264
|
+
label?: string | null;
|
|
265
|
+
name?: string | null;
|
|
266
|
+
value?: string | null;
|
|
267
|
+
} | null;
|
|
268
|
+
time?: string | null;
|
|
269
|
+
title?: string | null;
|
|
270
|
+
userObjectId?: string | null;
|
|
271
|
+
viaEntryCode?: string | null;
|
|
272
|
+
viaEntryId?: string | null;
|
|
273
|
+
viaEntryName?: string | null;
|
|
274
|
+
videocallProvider?: string | null;
|
|
275
|
+
};
|
|
276
|
+
error: null;
|
|
277
|
+
metadata: ResponseMetadata;
|
|
278
|
+
success: true;
|
|
279
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, object, } from "../../_/index.js";
|
|
4
|
+
import { GmedicAppointmentsPageCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
11
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
12
|
+
update: (request, options) => transport.send(UpdateOperation, request, options),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
const CreateOperation = {
|
|
16
|
+
method: "POST",
|
|
17
|
+
route: "/v1/gmedic/appointments",
|
|
18
|
+
body: "flat",
|
|
19
|
+
response: object([["data", null, object([["meetURL", "meetUrl"]])]]),
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
|
+
};
|
|
22
|
+
const ListOperation = {
|
|
23
|
+
method: "GET",
|
|
24
|
+
route: "/v1/gmedic/appointments",
|
|
25
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", date: "date", id: "id", patientId: "patientId", pending: "pending", connectionId: "connectionId" },
|
|
26
|
+
response: object([["data", null, () => GmedicAppointmentsPageCodec]]),
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
|
+
};
|
|
29
|
+
const UpdateOperation = {
|
|
30
|
+
method: "PATCH",
|
|
31
|
+
route: "/v1/gmedic/appointments",
|
|
32
|
+
body: "flat",
|
|
33
|
+
response: object([["data", null, object([["meetURL", "meetUrl"]])]]),
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
+
export type { GmedicAppointmentsPage } from "./models.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface GmedicAppointmentsPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: {
|
|
7
|
+
agendaId?: string | null;
|
|
8
|
+
agendaName?: string | null;
|
|
9
|
+
allDay?: boolean | null;
|
|
10
|
+
appointmentColor?: {
|
|
11
|
+
id: string;
|
|
12
|
+
label?: string | null;
|
|
13
|
+
name?: string | null;
|
|
14
|
+
value?: string | null;
|
|
15
|
+
} | null;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
authorizationSessions?: number | null;
|
|
18
|
+
block?: boolean | null;
|
|
19
|
+
branchOffice?: string | null;
|
|
20
|
+
consultationPurposeCode?: string | null;
|
|
21
|
+
consultationPurposeId?: string | null;
|
|
22
|
+
consultationPurposeName?: string | null;
|
|
23
|
+
creationDate?: string | null;
|
|
24
|
+
cupCode?: string | null;
|
|
25
|
+
cupName?: string | null;
|
|
26
|
+
currentSessions?: string | null;
|
|
27
|
+
date?: string | null;
|
|
28
|
+
description?: string | null;
|
|
29
|
+
desiredDate?: string | null;
|
|
30
|
+
endDate?: string | null;
|
|
31
|
+
entidad?: string | null;
|
|
32
|
+
externalCauseCode?: string | null;
|
|
33
|
+
externalCauseId?: string | null;
|
|
34
|
+
externalCauseName?: string | null;
|
|
35
|
+
id: string;
|
|
36
|
+
invoice?: string | null;
|
|
37
|
+
key?: string | null;
|
|
38
|
+
location?: string | null;
|
|
39
|
+
mainAttendantEmail?: string | null;
|
|
40
|
+
mainAttendantId?: string | null;
|
|
41
|
+
mainAttendantIdentification?: string | null;
|
|
42
|
+
mainAttendantMobile?: string | null;
|
|
43
|
+
mainAttendantName?: string | null;
|
|
44
|
+
mainAttendantPhone?: string | null;
|
|
45
|
+
mainDiagnosticCode?: string | null;
|
|
46
|
+
mainDiagnosticName?: string | null;
|
|
47
|
+
medicalAuthorizationId?: string | null;
|
|
48
|
+
medicalServiceCode?: string | null;
|
|
49
|
+
medicalServiceId?: string | null;
|
|
50
|
+
medicalServiceName?: string | null;
|
|
51
|
+
meetUrl?: string | null;
|
|
52
|
+
modality?: "FACE_TO_FACE" | "VIRTUAL" | "HOME_VISIT" | "NOT_APPLICABLE" | null;
|
|
53
|
+
modificationDate?: string | null;
|
|
54
|
+
opportunityIndicator?: number | null;
|
|
55
|
+
personCreator?: string | null;
|
|
56
|
+
readOnly?: boolean | null;
|
|
57
|
+
rejectReason?: {
|
|
58
|
+
id: string;
|
|
59
|
+
label?: string | null;
|
|
60
|
+
name?: string | null;
|
|
61
|
+
value?: string | null;
|
|
62
|
+
} | null;
|
|
63
|
+
selfServiceAllowCancel?: boolean | null;
|
|
64
|
+
selfServiceAllowReschedule?: boolean | null;
|
|
65
|
+
service?: string | null;
|
|
66
|
+
serviceId?: string | null;
|
|
67
|
+
serviceModalityCode?: string | null;
|
|
68
|
+
serviceModalityId?: string | null;
|
|
69
|
+
serviceModalityName?: string | null;
|
|
70
|
+
servicesGroupCode?: string | null;
|
|
71
|
+
servicesGroupId?: string | null;
|
|
72
|
+
servicesGroupName?: string | null;
|
|
73
|
+
startDate?: string | null;
|
|
74
|
+
state?: {
|
|
75
|
+
id: string;
|
|
76
|
+
label?: string | null;
|
|
77
|
+
name?: string | null;
|
|
78
|
+
value?: string | null;
|
|
79
|
+
} | null;
|
|
80
|
+
time?: string | null;
|
|
81
|
+
title?: string | null;
|
|
82
|
+
userObjectId?: string | null;
|
|
83
|
+
viaEntryCode?: string | null;
|
|
84
|
+
viaEntryId?: string | null;
|
|
85
|
+
viaEntryName?: string | null;
|
|
86
|
+
videocallProvider?: string | null;
|
|
87
|
+
}[];
|
|
88
|
+
/**
|
|
89
|
+
* Discriminator for a resource list response.
|
|
90
|
+
*/
|
|
91
|
+
object: "list";
|
|
92
|
+
/**
|
|
93
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
94
|
+
*/
|
|
95
|
+
pageInfo: PageInfo;
|
|
96
|
+
}
|
|
97
|
+
export declare const GmedicAppointmentsPageCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
+
import type { GmedicAvailabilityPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* List availability
|
|
13
|
+
*
|
|
14
|
+
* Use the organization gMedic account. Read-only request; provider failures
|
|
15
|
+
* are never empty results.
|
|
16
|
+
*/
|
|
17
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
agendaId: string;
|
|
36
|
+
endDate: string;
|
|
37
|
+
startDate: string;
|
|
38
|
+
connectionId?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ListResponse {
|
|
41
|
+
data: GmedicAvailabilityPage;
|
|
42
|
+
error: null;
|
|
43
|
+
metadata: ResponseMetadata;
|
|
44
|
+
success: true;
|
|
45
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/gmedic/availability",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", endDate: "endDate", startDate: "startDate", connectionId: "connectionId" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { GmedicAvailabilityPage } from "./models.js";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface GmedicAvailabilityPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: {
|
|
7
|
+
appointmentDuration?: number | null;
|
|
8
|
+
branchOffice?: string | null;
|
|
9
|
+
category?: string | null;
|
|
10
|
+
color?: string | null;
|
|
11
|
+
days?: {
|
|
12
|
+
day?: string | null;
|
|
13
|
+
slots?: {
|
|
14
|
+
endDate?: string | null;
|
|
15
|
+
startDate?: string | null;
|
|
16
|
+
}[] | null;
|
|
17
|
+
}[] | null;
|
|
18
|
+
id: string;
|
|
19
|
+
name?: string | null;
|
|
20
|
+
service?: string | null;
|
|
21
|
+
}[];
|
|
22
|
+
/**
|
|
23
|
+
* Discriminator for a resource list response.
|
|
24
|
+
*/
|
|
25
|
+
object: "list";
|
|
26
|
+
/**
|
|
27
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
28
|
+
*/
|
|
29
|
+
pageInfo: PageInfo;
|
|
30
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { ResponseMetadata } from "../../models.js";
|
|
3
|
+
import type { GmedicAvailableDaysPage } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* List available days
|
|
13
|
+
*
|
|
14
|
+
* Use the organization gMedic account. Read-only request; provider failures
|
|
15
|
+
* are never empty results.
|
|
16
|
+
*/
|
|
17
|
+
list(request: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
agendaId: string;
|
|
36
|
+
month: string;
|
|
37
|
+
connectionId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ListResponse {
|
|
40
|
+
data: GmedicAvailableDaysPage;
|
|
41
|
+
error: null;
|
|
42
|
+
metadata: ResponseMetadata;
|
|
43
|
+
success: true;
|
|
44
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/gmedic/available-days",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", agendaId: "agendaId", month: "month", connectionId: "connectionId" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { GmedicAvailableDaysPage } from "./models.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PageInfo } from "../../models.js";
|
|
2
|
+
export interface GmedicAvailableDaysPage {
|
|
3
|
+
/**
|
|
4
|
+
* Items admitted by this resource contract within the verified organization.
|
|
5
|
+
*/
|
|
6
|
+
data: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Discriminator for a resource list response.
|
|
9
|
+
*/
|
|
10
|
+
object: "list";
|
|
11
|
+
/**
|
|
12
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
13
|
+
*/
|
|
14
|
+
pageInfo: PageInfo;
|
|
15
|
+
}
|