ch-api-client-typescript2 4.9.3 → 4.9.5
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/lib/api/appointments-api.d.ts +296 -0
- package/lib/api/appointments-api.d.ts.map +1 -0
- package/lib/api/appointments-api.js +703 -0
- package/lib/api/deals-api.d.ts +103 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +233 -0
- package/lib/api/doctor-affiliations-api.d.ts +50 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +113 -0
- package/lib/api/hospitals-api.d.ts +160 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +360 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/appointment-change-log-model.d.ts +44 -0
- package/lib/models/appointment-change-log-model.d.ts.map +1 -0
- package/lib/models/appointment-change-log-model.js +15 -0
- package/lib/models/appointment-item-model.d.ts +305 -0
- package/lib/models/appointment-item-model.d.ts.map +1 -0
- package/lib/models/appointment-item-model.js +15 -0
- package/lib/models/appointment-model.d.ts +325 -0
- package/lib/models/appointment-model.d.ts.map +1 -0
- package/lib/models/appointment-model.js +15 -0
- package/lib/models/appointment-option-model.d.ts +49 -0
- package/lib/models/appointment-option-model.d.ts.map +1 -0
- package/lib/models/appointment-option-model.js +15 -0
- package/lib/models/appointment-status.d.ts +27 -0
- package/lib/models/appointment-status.d.ts.map +1 -0
- package/lib/models/appointment-status.js +30 -0
- package/lib/models/appointment-timetable-date-model.d.ts +58 -0
- package/lib/models/appointment-timetable-date-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-date-model.js +15 -0
- package/lib/models/appointment-timetable-status.d.ts +22 -0
- package/lib/models/appointment-timetable-status.d.ts.map +1 -0
- package/lib/models/appointment-timetable-status.js +25 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts +56 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-time-slot-model.js +15 -0
- package/lib/models/appointment-timetables-model.d.ts +44 -0
- package/lib/models/appointment-timetables-model.d.ts.map +1 -0
- package/lib/models/appointment-timetables-model.js +15 -0
- package/lib/models/appointment-type.d.ts +26 -0
- package/lib/models/appointment-type.d.ts.map +1 -0
- package/lib/models/appointment-type.js +29 -0
- package/lib/models/appointments-model.d.ts +33 -0
- package/lib/models/appointments-model.d.ts.map +1 -0
- package/lib/models/appointments-model.js +15 -0
- package/lib/models/create-appointment-command.d.ts +153 -0
- package/lib/models/create-appointment-command.d.ts.map +1 -0
- package/lib/models/create-appointment-command.js +15 -0
- package/lib/models/deal-item-model.d.ts +7 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +7 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/deal-package-item-model.d.ts +7 -0
- package/lib/models/deal-package-item-model.d.ts.map +1 -1
- package/lib/models/deal-package-model.d.ts +7 -0
- package/lib/models/deal-package-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +7 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/hospital-service-item-model.d.ts +7 -0
- package/lib/models/hospital-service-item-model.d.ts.map +1 -1
- package/lib/models/hospital-service-model.d.ts +7 -0
- package/lib/models/hospital-service-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-item-model.d.ts +7 -0
- package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-model.d.ts +7 -0
- package/lib/models/hospital-specialty-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +13 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +13 -0
- package/lib/models/notification-code.d.ts +9 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +10 -1
- package/lib/models/update-appointment-command.d.ts +98 -0
- package/lib/models/update-appointment-command.d.ts.map +1 -0
- package/lib/models/update-appointment-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +14 -0
- package/src/api/appointments-api.ts +594 -0
- package/src/api/deals-api.ts +215 -0
- package/src/api/doctor-affiliations-api.ts +105 -0
- package/src/api/hospitals-api.ts +332 -0
- package/src/api.ts +1 -0
- package/src/models/appointment-change-log-model.ts +51 -0
- package/src/models/appointment-item-model.ts +318 -0
- package/src/models/appointment-model.ts +342 -0
- package/src/models/appointment-option-model.ts +54 -0
- package/src/models/appointment-status.ts +36 -0
- package/src/models/appointment-timetable-date-model.ts +69 -0
- package/src/models/appointment-timetable-status.ts +31 -0
- package/src/models/appointment-timetable-time-slot-model.ts +63 -0
- package/src/models/appointment-timetables-model.ts +51 -0
- package/src/models/appointment-type.ts +35 -0
- package/src/models/appointments-model.ts +42 -0
- package/src/models/create-appointment-command.ts +162 -0
- package/src/models/deal-item-model.ts +9 -0
- package/src/models/deal-model.ts +9 -0
- package/src/models/deal-package-item-model.ts +9 -0
- package/src/models/deal-package-model.ts +9 -0
- package/src/models/doctor-affiliation-item-model.ts +9 -0
- package/src/models/doctor-affiliation-model.ts +9 -0
- package/src/models/hospital-item-model.ts +9 -0
- package/src/models/hospital-model.ts +9 -0
- package/src/models/hospital-service-item-model.ts +9 -0
- package/src/models/hospital-service-model.ts +9 -0
- package/src/models/hospital-specialty-item-model.ts +9 -0
- package/src/models/hospital-specialty-model.ts +9 -0
- package/src/models/index.ts +13 -0
- package/src/models/notification-code.ts +10 -1
- package/src/models/update-appointment-command.ts +105 -0
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger UI - Cloud Hospital Api-INT
|
|
5
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2
|
|
8
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { AppointmentModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { AppointmentStatus } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { AppointmentType } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { AppointmentsModel } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { CreateAppointmentCommand } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateAppointmentCommand } from '../models';
|
|
35
|
+
/**
|
|
36
|
+
* AppointmentsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const AppointmentsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Get appointment by id
|
|
44
|
+
* @param {string} appointmentId
|
|
45
|
+
* @param {string} [languageCode]
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
apiV2AppointmentsAppointmentIdGet: async (appointmentId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
51
|
+
assertParamExists('apiV2AppointmentsAppointmentIdGet', 'appointmentId', appointmentId)
|
|
52
|
+
const localVarPath = `/api/v2/appointments/{appointmentId}`
|
|
53
|
+
.replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
|
|
54
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
+
let baseOptions;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
62
|
+
const localVarHeaderParameter = {} as any;
|
|
63
|
+
const localVarQueryParameter = {} as any;
|
|
64
|
+
|
|
65
|
+
// authentication oauth2 required
|
|
66
|
+
// oauth required
|
|
67
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
68
|
+
|
|
69
|
+
if (languageCode !== undefined) {
|
|
70
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
76
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
77
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @summary Pay appointment
|
|
87
|
+
* @param {string} appointmentId
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
apiV2AppointmentsAppointmentIdPayPost: async (appointmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
93
|
+
assertParamExists('apiV2AppointmentsAppointmentIdPayPost', 'appointmentId', appointmentId)
|
|
94
|
+
const localVarPath = `/api/v2/appointments/{appointmentId}/pay`
|
|
95
|
+
.replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
|
|
96
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
98
|
+
let baseOptions;
|
|
99
|
+
if (configuration) {
|
|
100
|
+
baseOptions = configuration.baseOptions;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
104
|
+
const localVarHeaderParameter = {} as any;
|
|
105
|
+
const localVarQueryParameter = {} as any;
|
|
106
|
+
|
|
107
|
+
// authentication oauth2 required
|
|
108
|
+
// oauth required
|
|
109
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
url: toPathString(localVarUrlObj),
|
|
119
|
+
options: localVarRequestOptions,
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @summary Update appointment
|
|
125
|
+
* @param {string} appointmentId
|
|
126
|
+
* @param {UpdateAppointmentCommand} [updateAppointmentCommand]
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
apiV2AppointmentsAppointmentIdPut: async (appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
131
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
132
|
+
assertParamExists('apiV2AppointmentsAppointmentIdPut', 'appointmentId', appointmentId)
|
|
133
|
+
const localVarPath = `/api/v2/appointments/{appointmentId}`
|
|
134
|
+
.replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
|
|
135
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
136
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
137
|
+
let baseOptions;
|
|
138
|
+
if (configuration) {
|
|
139
|
+
baseOptions = configuration.baseOptions;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
143
|
+
const localVarHeaderParameter = {} as any;
|
|
144
|
+
const localVarQueryParameter = {} as any;
|
|
145
|
+
|
|
146
|
+
// authentication oauth2 required
|
|
147
|
+
// oauth required
|
|
148
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateAppointmentCommand, localVarRequestOptions, configuration)
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Get appointments
|
|
167
|
+
* @param {string} [hospitalId]
|
|
168
|
+
* @param {string} [hospitalName]
|
|
169
|
+
* @param {string} [doctorAffiliationId]
|
|
170
|
+
* @param {string} [doctorId]
|
|
171
|
+
* @param {string} [doctorName]
|
|
172
|
+
* @param {string} [dealId]
|
|
173
|
+
* @param {string} [dealName]
|
|
174
|
+
* @param {string} [dealPackageId]
|
|
175
|
+
* @param {string} [hospitalSpecialtyId]
|
|
176
|
+
* @param {string} [serviceId]
|
|
177
|
+
* @param {boolean} [isOpen]
|
|
178
|
+
* @param {boolean} [isCompleted]
|
|
179
|
+
* @param {AppointmentStatus} [status]
|
|
180
|
+
* @param {AppointmentType} [appointmentType]
|
|
181
|
+
* @param {string} [languageCode]
|
|
182
|
+
* @param {boolean} [isExternal]
|
|
183
|
+
* @param {number} [page]
|
|
184
|
+
* @param {number} [limit]
|
|
185
|
+
* @param {Date} [lastRetrieved]
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
apiV2AppointmentsGet: async (hospitalId?: string, hospitalName?: string, doctorAffiliationId?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, languageCode?: string, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
190
|
+
const localVarPath = `/api/v2/appointments`;
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
199
|
+
const localVarHeaderParameter = {} as any;
|
|
200
|
+
const localVarQueryParameter = {} as any;
|
|
201
|
+
|
|
202
|
+
// authentication oauth2 required
|
|
203
|
+
// oauth required
|
|
204
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
205
|
+
|
|
206
|
+
if (hospitalId !== undefined) {
|
|
207
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (hospitalName !== undefined) {
|
|
211
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (doctorAffiliationId !== undefined) {
|
|
215
|
+
localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (doctorId !== undefined) {
|
|
219
|
+
localVarQueryParameter['DoctorId'] = doctorId;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (doctorName !== undefined) {
|
|
223
|
+
localVarQueryParameter['DoctorName'] = doctorName;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (dealId !== undefined) {
|
|
227
|
+
localVarQueryParameter['DealId'] = dealId;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (dealName !== undefined) {
|
|
231
|
+
localVarQueryParameter['DealName'] = dealName;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if (dealPackageId !== undefined) {
|
|
235
|
+
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (hospitalSpecialtyId !== undefined) {
|
|
239
|
+
localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (serviceId !== undefined) {
|
|
243
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (isOpen !== undefined) {
|
|
247
|
+
localVarQueryParameter['IsOpen'] = isOpen;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (isCompleted !== undefined) {
|
|
251
|
+
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
if (status !== undefined) {
|
|
255
|
+
localVarQueryParameter['Status'] = status;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
if (appointmentType !== undefined) {
|
|
259
|
+
localVarQueryParameter['AppointmentType'] = appointmentType;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (languageCode !== undefined) {
|
|
263
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (isExternal !== undefined) {
|
|
267
|
+
localVarQueryParameter['IsExternal'] = isExternal;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
if (page !== undefined) {
|
|
271
|
+
localVarQueryParameter['page'] = page;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
if (limit !== undefined) {
|
|
275
|
+
localVarQueryParameter['limit'] = limit;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (lastRetrieved !== undefined) {
|
|
279
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
280
|
+
(lastRetrieved as any).toISOString() :
|
|
281
|
+
lastRetrieved;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
288
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
289
|
+
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @summary Create appointment
|
|
298
|
+
* @param {string} requestId
|
|
299
|
+
* @param {CreateAppointmentCommand} [createAppointmentCommand]
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
apiV2AppointmentsRequestIdPost: async (requestId: string, createAppointmentCommand?: CreateAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
304
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
305
|
+
assertParamExists('apiV2AppointmentsRequestIdPost', 'requestId', requestId)
|
|
306
|
+
const localVarPath = `/api/v2/appointments/{requestId}`
|
|
307
|
+
.replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
|
|
308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
309
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
310
|
+
let baseOptions;
|
|
311
|
+
if (configuration) {
|
|
312
|
+
baseOptions = configuration.baseOptions;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
316
|
+
const localVarHeaderParameter = {} as any;
|
|
317
|
+
const localVarQueryParameter = {} as any;
|
|
318
|
+
|
|
319
|
+
// authentication oauth2 required
|
|
320
|
+
// oauth required
|
|
321
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
326
|
+
|
|
327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
330
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAppointmentCommand, localVarRequestOptions, configuration)
|
|
331
|
+
|
|
332
|
+
return {
|
|
333
|
+
url: toPathString(localVarUrlObj),
|
|
334
|
+
options: localVarRequestOptions,
|
|
335
|
+
};
|
|
336
|
+
},
|
|
337
|
+
}
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* AppointmentsApi - functional programming interface
|
|
342
|
+
* @export
|
|
343
|
+
*/
|
|
344
|
+
export const AppointmentsApiFp = function(configuration?: Configuration) {
|
|
345
|
+
const localVarAxiosParamCreator = AppointmentsApiAxiosParamCreator(configuration)
|
|
346
|
+
return {
|
|
347
|
+
/**
|
|
348
|
+
*
|
|
349
|
+
* @summary Get appointment by id
|
|
350
|
+
* @param {string} appointmentId
|
|
351
|
+
* @param {string} [languageCode]
|
|
352
|
+
* @param {*} [options] Override http request option.
|
|
353
|
+
* @throws {RequiredError}
|
|
354
|
+
*/
|
|
355
|
+
async apiV2AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
|
|
356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdGet(appointmentId, languageCode, options);
|
|
357
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Pay appointment
|
|
362
|
+
* @param {string} appointmentId
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
async apiV2AppointmentsAppointmentIdPayPost(appointmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
367
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdPayPost(appointmentId, options);
|
|
368
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
369
|
+
},
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @summary Update appointment
|
|
373
|
+
* @param {string} appointmentId
|
|
374
|
+
* @param {UpdateAppointmentCommand} [updateAppointmentCommand]
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
async apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options);
|
|
380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @summary Get appointments
|
|
385
|
+
* @param {string} [hospitalId]
|
|
386
|
+
* @param {string} [hospitalName]
|
|
387
|
+
* @param {string} [doctorAffiliationId]
|
|
388
|
+
* @param {string} [doctorId]
|
|
389
|
+
* @param {string} [doctorName]
|
|
390
|
+
* @param {string} [dealId]
|
|
391
|
+
* @param {string} [dealName]
|
|
392
|
+
* @param {string} [dealPackageId]
|
|
393
|
+
* @param {string} [hospitalSpecialtyId]
|
|
394
|
+
* @param {string} [serviceId]
|
|
395
|
+
* @param {boolean} [isOpen]
|
|
396
|
+
* @param {boolean} [isCompleted]
|
|
397
|
+
* @param {AppointmentStatus} [status]
|
|
398
|
+
* @param {AppointmentType} [appointmentType]
|
|
399
|
+
* @param {string} [languageCode]
|
|
400
|
+
* @param {boolean} [isExternal]
|
|
401
|
+
* @param {number} [page]
|
|
402
|
+
* @param {number} [limit]
|
|
403
|
+
* @param {Date} [lastRetrieved]
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
async apiV2AppointmentsGet(hospitalId?: string, hospitalName?: string, doctorAffiliationId?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, languageCode?: string, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentsModel>> {
|
|
408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsGet(hospitalId, hospitalName, doctorAffiliationId, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, languageCode, isExternal, page, limit, lastRetrieved, options);
|
|
409
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Create appointment
|
|
414
|
+
* @param {string} requestId
|
|
415
|
+
* @param {CreateAppointmentCommand} [createAppointmentCommand]
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
*/
|
|
419
|
+
async apiV2AppointmentsRequestIdPost(requestId: string, createAppointmentCommand?: CreateAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2AppointmentsRequestIdPost(requestId, createAppointmentCommand, options);
|
|
421
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
422
|
+
},
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* AppointmentsApi - factory interface
|
|
428
|
+
* @export
|
|
429
|
+
*/
|
|
430
|
+
export const AppointmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
431
|
+
const localVarFp = AppointmentsApiFp(configuration)
|
|
432
|
+
return {
|
|
433
|
+
/**
|
|
434
|
+
*
|
|
435
|
+
* @summary Get appointment by id
|
|
436
|
+
* @param {string} appointmentId
|
|
437
|
+
* @param {string} [languageCode]
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
apiV2AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: any): AxiosPromise<AppointmentModel> {
|
|
442
|
+
return localVarFp.apiV2AppointmentsAppointmentIdGet(appointmentId, languageCode, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @summary Pay appointment
|
|
447
|
+
* @param {string} appointmentId
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
apiV2AppointmentsAppointmentIdPayPost(appointmentId: string, options?: any): AxiosPromise<string> {
|
|
452
|
+
return localVarFp.apiV2AppointmentsAppointmentIdPayPost(appointmentId, options).then((request) => request(axios, basePath));
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
*
|
|
456
|
+
* @summary Update appointment
|
|
457
|
+
* @param {string} appointmentId
|
|
458
|
+
* @param {UpdateAppointmentCommand} [updateAppointmentCommand]
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: any): AxiosPromise<string> {
|
|
463
|
+
return localVarFp.apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options).then((request) => request(axios, basePath));
|
|
464
|
+
},
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary Get appointments
|
|
468
|
+
* @param {string} [hospitalId]
|
|
469
|
+
* @param {string} [hospitalName]
|
|
470
|
+
* @param {string} [doctorAffiliationId]
|
|
471
|
+
* @param {string} [doctorId]
|
|
472
|
+
* @param {string} [doctorName]
|
|
473
|
+
* @param {string} [dealId]
|
|
474
|
+
* @param {string} [dealName]
|
|
475
|
+
* @param {string} [dealPackageId]
|
|
476
|
+
* @param {string} [hospitalSpecialtyId]
|
|
477
|
+
* @param {string} [serviceId]
|
|
478
|
+
* @param {boolean} [isOpen]
|
|
479
|
+
* @param {boolean} [isCompleted]
|
|
480
|
+
* @param {AppointmentStatus} [status]
|
|
481
|
+
* @param {AppointmentType} [appointmentType]
|
|
482
|
+
* @param {string} [languageCode]
|
|
483
|
+
* @param {boolean} [isExternal]
|
|
484
|
+
* @param {number} [page]
|
|
485
|
+
* @param {number} [limit]
|
|
486
|
+
* @param {Date} [lastRetrieved]
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
apiV2AppointmentsGet(hospitalId?: string, hospitalName?: string, doctorAffiliationId?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, languageCode?: string, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentsModel> {
|
|
491
|
+
return localVarFp.apiV2AppointmentsGet(hospitalId, hospitalName, doctorAffiliationId, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, languageCode, isExternal, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
492
|
+
},
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary Create appointment
|
|
496
|
+
* @param {string} requestId
|
|
497
|
+
* @param {CreateAppointmentCommand} [createAppointmentCommand]
|
|
498
|
+
* @param {*} [options] Override http request option.
|
|
499
|
+
* @throws {RequiredError}
|
|
500
|
+
*/
|
|
501
|
+
apiV2AppointmentsRequestIdPost(requestId: string, createAppointmentCommand?: CreateAppointmentCommand, options?: any): AxiosPromise<string> {
|
|
502
|
+
return localVarFp.apiV2AppointmentsRequestIdPost(requestId, createAppointmentCommand, options).then((request) => request(axios, basePath));
|
|
503
|
+
},
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* AppointmentsApi - object-oriented interface
|
|
509
|
+
* @export
|
|
510
|
+
* @class AppointmentsApi
|
|
511
|
+
* @extends {BaseAPI}
|
|
512
|
+
*/
|
|
513
|
+
export class AppointmentsApi extends BaseAPI {
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @summary Get appointment by id
|
|
517
|
+
* @param {string} appointmentId
|
|
518
|
+
* @param {string} [languageCode]
|
|
519
|
+
* @param {*} [options] Override http request option.
|
|
520
|
+
* @throws {RequiredError}
|
|
521
|
+
* @memberof AppointmentsApi
|
|
522
|
+
*/
|
|
523
|
+
public apiV2AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
524
|
+
return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdGet(appointmentId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary Pay appointment
|
|
530
|
+
* @param {string} appointmentId
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
* @memberof AppointmentsApi
|
|
534
|
+
*/
|
|
535
|
+
public apiV2AppointmentsAppointmentIdPayPost(appointmentId: string, options?: AxiosRequestConfig) {
|
|
536
|
+
return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdPayPost(appointmentId, options).then((request) => request(this.axios, this.basePath));
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary Update appointment
|
|
542
|
+
* @param {string} appointmentId
|
|
543
|
+
* @param {UpdateAppointmentCommand} [updateAppointmentCommand]
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
* @memberof AppointmentsApi
|
|
547
|
+
*/
|
|
548
|
+
public apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: AxiosRequestConfig) {
|
|
549
|
+
return AppointmentsApiFp(this.configuration).apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @summary Get appointments
|
|
555
|
+
* @param {string} [hospitalId]
|
|
556
|
+
* @param {string} [hospitalName]
|
|
557
|
+
* @param {string} [doctorAffiliationId]
|
|
558
|
+
* @param {string} [doctorId]
|
|
559
|
+
* @param {string} [doctorName]
|
|
560
|
+
* @param {string} [dealId]
|
|
561
|
+
* @param {string} [dealName]
|
|
562
|
+
* @param {string} [dealPackageId]
|
|
563
|
+
* @param {string} [hospitalSpecialtyId]
|
|
564
|
+
* @param {string} [serviceId]
|
|
565
|
+
* @param {boolean} [isOpen]
|
|
566
|
+
* @param {boolean} [isCompleted]
|
|
567
|
+
* @param {AppointmentStatus} [status]
|
|
568
|
+
* @param {AppointmentType} [appointmentType]
|
|
569
|
+
* @param {string} [languageCode]
|
|
570
|
+
* @param {boolean} [isExternal]
|
|
571
|
+
* @param {number} [page]
|
|
572
|
+
* @param {number} [limit]
|
|
573
|
+
* @param {Date} [lastRetrieved]
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
* @memberof AppointmentsApi
|
|
577
|
+
*/
|
|
578
|
+
public apiV2AppointmentsGet(hospitalId?: string, hospitalName?: string, doctorAffiliationId?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, languageCode?: string, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
579
|
+
return AppointmentsApiFp(this.configuration).apiV2AppointmentsGet(hospitalId, hospitalName, doctorAffiliationId, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, languageCode, isExternal, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Create appointment
|
|
585
|
+
* @param {string} requestId
|
|
586
|
+
* @param {CreateAppointmentCommand} [createAppointmentCommand]
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
* @memberof AppointmentsApi
|
|
590
|
+
*/
|
|
591
|
+
public apiV2AppointmentsRequestIdPost(requestId: string, createAppointmentCommand?: CreateAppointmentCommand, options?: AxiosRequestConfig) {
|
|
592
|
+
return AppointmentsApiFp(this.configuration).apiV2AppointmentsRequestIdPost(requestId, createAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
|
|
593
|
+
}
|
|
594
|
+
}
|