ch-api-client-typescript2 5.19.10 → 5.19.15
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 +167 -0
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +271 -0
- package/lib/api/hospitals-api.d.ts +125 -6
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +137 -12
- package/lib/models/appointment-model.d.ts +14 -0
- package/lib/models/appointment-model.d.ts.map +1 -1
- package/lib/models/appointment-refund-bank-transfer-model.d.ts +43 -0
- package/lib/models/appointment-refund-bank-transfer-model.d.ts.map +1 -0
- package/lib/models/appointment-refund-bank-transfer-model.js +15 -0
- package/lib/models/appointment-refund-upi-model.d.ts +31 -0
- package/lib/models/appointment-refund-upi-model.d.ts.map +1 -0
- package/lib/models/appointment-refund-upi-model.js +15 -0
- package/lib/models/appointment-status.d.ts +1 -0
- package/lib/models/appointment-status.d.ts.map +1 -1
- package/lib/models/appointment-status.js +1 -0
- package/lib/models/index.d.ts +7 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -0
- package/lib/models/notice-item-model.d.ts +80 -0
- package/lib/models/notice-item-model.d.ts.map +1 -0
- package/lib/models/notice-item-model.js +15 -0
- package/lib/models/notice-status.d.ts +23 -0
- package/lib/models/notice-status.d.ts.map +1 -0
- package/lib/models/notice-status.js +26 -0
- package/lib/models/notices-model.d.ts +33 -0
- package/lib/models/notices-model.d.ts.map +1 -0
- package/lib/models/notices-model.js +15 -0
- package/lib/models/refund-appointment-command.d.ts +39 -0
- package/lib/models/refund-appointment-command.d.ts.map +1 -0
- package/lib/models/refund-appointment-command.js +15 -0
- package/lib/models/reschedule-appointment-command.d.ts +37 -0
- package/lib/models/reschedule-appointment-command.d.ts.map +1 -0
- package/lib/models/reschedule-appointment-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +7 -0
- package/src/api/appointments-api.ts +301 -0
- package/src/api/hospitals-api.ts +211 -12
- package/src/models/appointment-model.ts +18 -0
- package/src/models/appointment-refund-bank-transfer-model.ts +48 -0
- package/src/models/appointment-refund-upi-model.ts +36 -0
- package/src/models/appointment-status.ts +1 -0
- package/src/models/index.ts +7 -0
- package/src/models/notice-item-model.ts +87 -0
- package/src/models/notice-status.ts +32 -0
- package/src/models/notices-model.ts +42 -0
- package/src/models/refund-appointment-command.ts +48 -0
- package/src/models/reschedule-appointment-command.ts +42 -0
|
@@ -18,12 +18,23 @@ import { AppointmentType } from '../models';
|
|
|
18
18
|
import { AppointmentsModel } from '../models';
|
|
19
19
|
import { CreateAppointmentCommand } from '../models';
|
|
20
20
|
import { PayAppointmentCommand } from '../models';
|
|
21
|
+
import { RefundAppointmentCommand } from '../models';
|
|
22
|
+
import { RescheduleAppointmentCommand } from '../models';
|
|
21
23
|
import { UpdateAppointmentCommand } from '../models';
|
|
22
24
|
/**
|
|
23
25
|
* AppointmentsApi - axios parameter creator
|
|
24
26
|
* @export
|
|
25
27
|
*/
|
|
26
28
|
export declare const AppointmentsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Cancel appointment
|
|
32
|
+
* @param {string} appointmentId
|
|
33
|
+
* @param {string} [languageCode]
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
apiV2AppointmentsAppointmentIdCancelPut: (appointmentId: string, languageCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
27
38
|
/**
|
|
28
39
|
*
|
|
29
40
|
* @summary Get appointment by id
|
|
@@ -51,6 +62,24 @@ export declare const AppointmentsApiAxiosParamCreator: (configuration?: Configur
|
|
|
51
62
|
* @throws {RequiredError}
|
|
52
63
|
*/
|
|
53
64
|
apiV2AppointmentsAppointmentIdPut: (appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Update refund information
|
|
68
|
+
* @param {string} appointmentId
|
|
69
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
apiV2AppointmentsAppointmentIdRefundPut: (appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Reschedue appointment
|
|
77
|
+
* @param {string} appointmentId
|
|
78
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
apiV2AppointmentsAppointmentIdReschedulePut: (appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
83
|
/**
|
|
55
84
|
*
|
|
56
85
|
* @summary Get appointments
|
|
@@ -92,6 +121,15 @@ export declare const AppointmentsApiAxiosParamCreator: (configuration?: Configur
|
|
|
92
121
|
* @export
|
|
93
122
|
*/
|
|
94
123
|
export declare const AppointmentsApiFp: (configuration?: Configuration) => {
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary Cancel appointment
|
|
127
|
+
* @param {string} appointmentId
|
|
128
|
+
* @param {string} [languageCode]
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
apiV2AppointmentsAppointmentIdCancelPut(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>>;
|
|
95
133
|
/**
|
|
96
134
|
*
|
|
97
135
|
* @summary Get appointment by id
|
|
@@ -119,6 +157,24 @@ export declare const AppointmentsApiFp: (configuration?: Configuration) => {
|
|
|
119
157
|
* @throws {RequiredError}
|
|
120
158
|
*/
|
|
121
159
|
apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary Update refund information
|
|
163
|
+
* @param {string} appointmentId
|
|
164
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
apiV2AppointmentsAppointmentIdRefundPut(appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>>;
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary Reschedue appointment
|
|
172
|
+
* @param {string} appointmentId
|
|
173
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
apiV2AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>>;
|
|
122
178
|
/**
|
|
123
179
|
*
|
|
124
180
|
* @summary Get appointments
|
|
@@ -160,6 +216,15 @@ export declare const AppointmentsApiFp: (configuration?: Configuration) => {
|
|
|
160
216
|
* @export
|
|
161
217
|
*/
|
|
162
218
|
export declare const AppointmentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @summary Cancel appointment
|
|
222
|
+
* @param {string} appointmentId
|
|
223
|
+
* @param {string} [languageCode]
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
apiV2AppointmentsAppointmentIdCancelPut(appointmentId: string, languageCode?: string, options?: any): AxiosPromise<AppointmentModel>;
|
|
163
228
|
/**
|
|
164
229
|
*
|
|
165
230
|
* @summary Get appointment by id
|
|
@@ -187,6 +252,24 @@ export declare const AppointmentsApiFactory: (configuration?: Configuration, bas
|
|
|
187
252
|
* @throws {RequiredError}
|
|
188
253
|
*/
|
|
189
254
|
apiV2AppointmentsAppointmentIdPut(appointmentId: string, updateAppointmentCommand?: UpdateAppointmentCommand, options?: any): AxiosPromise<string>;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @summary Update refund information
|
|
258
|
+
* @param {string} appointmentId
|
|
259
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
apiV2AppointmentsAppointmentIdRefundPut(appointmentId: string, refundAppointmentCommand?: RefundAppointmentCommand, options?: any): AxiosPromise<AppointmentModel>;
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Reschedue appointment
|
|
267
|
+
* @param {string} appointmentId
|
|
268
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
*/
|
|
272
|
+
apiV2AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: any): AxiosPromise<AppointmentModel>;
|
|
190
273
|
/**
|
|
191
274
|
*
|
|
192
275
|
* @summary Get appointments
|
|
@@ -223,6 +306,25 @@ export declare const AppointmentsApiFactory: (configuration?: Configuration, bas
|
|
|
223
306
|
*/
|
|
224
307
|
apiV2AppointmentsRequestIdPost(requestId: string, createAppointmentCommand?: CreateAppointmentCommand, options?: any): AxiosPromise<string>;
|
|
225
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* Request parameters for apiV2AppointmentsAppointmentIdCancelPut operation in AppointmentsApi.
|
|
311
|
+
* @export
|
|
312
|
+
* @interface AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest
|
|
313
|
+
*/
|
|
314
|
+
export interface AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest {
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdCancelPut
|
|
319
|
+
*/
|
|
320
|
+
readonly appointmentId: string;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdCancelPut
|
|
325
|
+
*/
|
|
326
|
+
readonly languageCode?: string;
|
|
327
|
+
}
|
|
226
328
|
/**
|
|
227
329
|
* Request parameters for apiV2AppointmentsAppointmentIdGet operation in AppointmentsApi.
|
|
228
330
|
* @export
|
|
@@ -280,6 +382,44 @@ export interface AppointmentsApiApiV2AppointmentsAppointmentIdPutRequest {
|
|
|
280
382
|
*/
|
|
281
383
|
readonly updateAppointmentCommand?: UpdateAppointmentCommand;
|
|
282
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* Request parameters for apiV2AppointmentsAppointmentIdRefundPut operation in AppointmentsApi.
|
|
387
|
+
* @export
|
|
388
|
+
* @interface AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest
|
|
389
|
+
*/
|
|
390
|
+
export interface AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest {
|
|
391
|
+
/**
|
|
392
|
+
*
|
|
393
|
+
* @type {string}
|
|
394
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdRefundPut
|
|
395
|
+
*/
|
|
396
|
+
readonly appointmentId: string;
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {RefundAppointmentCommand}
|
|
400
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdRefundPut
|
|
401
|
+
*/
|
|
402
|
+
readonly refundAppointmentCommand?: RefundAppointmentCommand;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Request parameters for apiV2AppointmentsAppointmentIdReschedulePut operation in AppointmentsApi.
|
|
406
|
+
* @export
|
|
407
|
+
* @interface AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest
|
|
408
|
+
*/
|
|
409
|
+
export interface AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest {
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @type {string}
|
|
413
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePut
|
|
414
|
+
*/
|
|
415
|
+
readonly appointmentId: string;
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @type {RescheduleAppointmentCommand}
|
|
419
|
+
* @memberof AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePut
|
|
420
|
+
*/
|
|
421
|
+
readonly rescheduleAppointmentCommand?: RescheduleAppointmentCommand;
|
|
422
|
+
}
|
|
283
423
|
/**
|
|
284
424
|
* Request parameters for apiV2AppointmentsGet operation in AppointmentsApi.
|
|
285
425
|
* @export
|
|
@@ -427,6 +567,15 @@ export interface AppointmentsApiApiV2AppointmentsRequestIdPostRequest {
|
|
|
427
567
|
* @extends {BaseAPI}
|
|
428
568
|
*/
|
|
429
569
|
export declare class AppointmentsApi extends BaseAPI {
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @summary Cancel appointment
|
|
573
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest} requestParameters Request parameters.
|
|
574
|
+
* @param {*} [options] Override http request option.
|
|
575
|
+
* @throws {RequiredError}
|
|
576
|
+
* @memberof AppointmentsApi
|
|
577
|
+
*/
|
|
578
|
+
apiV2AppointmentsAppointmentIdCancelPut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AppointmentModel, any>>;
|
|
430
579
|
/**
|
|
431
580
|
*
|
|
432
581
|
* @summary Get appointment by id
|
|
@@ -454,6 +603,24 @@ export declare class AppointmentsApi extends BaseAPI {
|
|
|
454
603
|
* @memberof AppointmentsApi
|
|
455
604
|
*/
|
|
456
605
|
apiV2AppointmentsAppointmentIdPut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @summary Update refund information
|
|
609
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest} requestParameters Request parameters.
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
* @memberof AppointmentsApi
|
|
613
|
+
*/
|
|
614
|
+
apiV2AppointmentsAppointmentIdRefundPut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AppointmentModel, any>>;
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @summary Reschedue appointment
|
|
618
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest} requestParameters Request parameters.
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
* @memberof AppointmentsApi
|
|
622
|
+
*/
|
|
623
|
+
apiV2AppointmentsAppointmentIdReschedulePut(requestParameters: AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AppointmentModel, any>>;
|
|
457
624
|
/**
|
|
458
625
|
*
|
|
459
626
|
* @summary Get appointments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointments-api.d.ts","sourceRoot":"","sources":["../../src/api/appointments-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"appointments-api.d.ts","sourceRoot":"","sources":["../../src/api/appointments-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,EA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E,kBAAkB;IAI7J;;;;;;;OAOG;IACI,iCAAiC,CAAC,iBAAiB,EAAE,uDAAuD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIjJ;;;;;;;OAOG;IACI,qCAAqC,CAAC,iBAAiB,EAAE,2DAA2D,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIzJ;;;;;;;OAOG;IACI,iCAAiC,CAAC,iBAAiB,EAAE,uDAAuD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIjJ;;;;;;;OAOG;IACI,uCAAuC,CAAC,iBAAiB,EAAE,6DAA6D,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI7J;;;;;;;OAOG;IACI,2CAA2C,CAAC,iBAAiB,EAAE,iEAAiE,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAIrK;;;;;;;OAOG;IACI,oBAAoB,CAAC,iBAAiB,GAAE,0CAA+C,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI5H;;;;;;;OAOG;IACI,8BAA8B,CAAC,iBAAiB,EAAE,oDAAoD,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAG9I"}
|
|
@@ -92,6 +92,53 @@ var base_1 = require("../base");
|
|
|
92
92
|
var AppointmentsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Cancel appointment
|
|
98
|
+
* @param {string} appointmentId
|
|
99
|
+
* @param {string} [languageCode]
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
apiV2AppointmentsAppointmentIdCancelPut: function (appointmentId, languageCode, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('apiV2AppointmentsAppointmentIdCancelPut', 'appointmentId', appointmentId);
|
|
112
|
+
localVarPath = "/api/v2/appointments/{appointmentId}/cancel"
|
|
113
|
+
.replace("{".concat("appointmentId", "}"), encodeURIComponent(String(appointmentId)));
|
|
114
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication oauth2 required
|
|
122
|
+
// oauth required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication oauth2 required
|
|
126
|
+
// oauth required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (languageCode !== undefined) {
|
|
129
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
130
|
+
}
|
|
131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
+
return [2 /*return*/, {
|
|
135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
}];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
},
|
|
95
142
|
/**
|
|
96
143
|
*
|
|
97
144
|
* @summary Get appointment by id
|
|
@@ -231,6 +278,98 @@ var AppointmentsApiAxiosParamCreator = function (configuration) {
|
|
|
231
278
|
});
|
|
232
279
|
});
|
|
233
280
|
},
|
|
281
|
+
/**
|
|
282
|
+
*
|
|
283
|
+
* @summary Update refund information
|
|
284
|
+
* @param {string} appointmentId
|
|
285
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
apiV2AppointmentsAppointmentIdRefundPut: function (appointmentId, refundAppointmentCommand, options) {
|
|
290
|
+
if (options === void 0) { options = {}; }
|
|
291
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
292
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
293
|
+
return __generator(this, function (_a) {
|
|
294
|
+
switch (_a.label) {
|
|
295
|
+
case 0:
|
|
296
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
297
|
+
(0, common_1.assertParamExists)('apiV2AppointmentsAppointmentIdRefundPut', 'appointmentId', appointmentId);
|
|
298
|
+
localVarPath = "/api/v2/appointments/{appointmentId}/refund"
|
|
299
|
+
.replace("{".concat("appointmentId", "}"), encodeURIComponent(String(appointmentId)));
|
|
300
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
|
+
if (configuration) {
|
|
302
|
+
baseOptions = configuration.baseOptions;
|
|
303
|
+
}
|
|
304
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
305
|
+
localVarHeaderParameter = {};
|
|
306
|
+
localVarQueryParameter = {};
|
|
307
|
+
// authentication oauth2 required
|
|
308
|
+
// oauth required
|
|
309
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
310
|
+
case 1:
|
|
311
|
+
// authentication oauth2 required
|
|
312
|
+
// oauth required
|
|
313
|
+
_a.sent();
|
|
314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
315
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
316
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
317
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
318
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refundAppointmentCommand, localVarRequestOptions, configuration);
|
|
319
|
+
return [2 /*return*/, {
|
|
320
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions,
|
|
322
|
+
}];
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @summary Reschedue appointment
|
|
330
|
+
* @param {string} appointmentId
|
|
331
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
332
|
+
* @param {*} [options] Override http request option.
|
|
333
|
+
* @throws {RequiredError}
|
|
334
|
+
*/
|
|
335
|
+
apiV2AppointmentsAppointmentIdReschedulePut: function (appointmentId, rescheduleAppointmentCommand, options) {
|
|
336
|
+
if (options === void 0) { options = {}; }
|
|
337
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
338
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
339
|
+
return __generator(this, function (_a) {
|
|
340
|
+
switch (_a.label) {
|
|
341
|
+
case 0:
|
|
342
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
343
|
+
(0, common_1.assertParamExists)('apiV2AppointmentsAppointmentIdReschedulePut', 'appointmentId', appointmentId);
|
|
344
|
+
localVarPath = "/api/v2/appointments/{appointmentId}/reschedule"
|
|
345
|
+
.replace("{".concat("appointmentId", "}"), encodeURIComponent(String(appointmentId)));
|
|
346
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
}
|
|
350
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
351
|
+
localVarHeaderParameter = {};
|
|
352
|
+
localVarQueryParameter = {};
|
|
353
|
+
// authentication oauth2 required
|
|
354
|
+
// oauth required
|
|
355
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
356
|
+
case 1:
|
|
357
|
+
// authentication oauth2 required
|
|
358
|
+
// oauth required
|
|
359
|
+
_a.sent();
|
|
360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
361
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
362
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
363
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
364
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rescheduleAppointmentCommand, localVarRequestOptions, configuration);
|
|
365
|
+
return [2 /*return*/, {
|
|
366
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
367
|
+
options: localVarRequestOptions,
|
|
368
|
+
}];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
},
|
|
234
373
|
/**
|
|
235
374
|
*
|
|
236
375
|
* @summary Get appointments
|
|
@@ -404,6 +543,27 @@ exports.AppointmentsApiAxiosParamCreator = AppointmentsApiAxiosParamCreator;
|
|
|
404
543
|
var AppointmentsApiFp = function (configuration) {
|
|
405
544
|
var localVarAxiosParamCreator = (0, exports.AppointmentsApiAxiosParamCreator)(configuration);
|
|
406
545
|
return {
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
* @summary Cancel appointment
|
|
549
|
+
* @param {string} appointmentId
|
|
550
|
+
* @param {string} [languageCode]
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
*/
|
|
554
|
+
apiV2AppointmentsAppointmentIdCancelPut: function (appointmentId, languageCode, options) {
|
|
555
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
556
|
+
var localVarAxiosArgs;
|
|
557
|
+
return __generator(this, function (_a) {
|
|
558
|
+
switch (_a.label) {
|
|
559
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdCancelPut(appointmentId, languageCode, options)];
|
|
560
|
+
case 1:
|
|
561
|
+
localVarAxiosArgs = _a.sent();
|
|
562
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
},
|
|
407
567
|
/**
|
|
408
568
|
*
|
|
409
569
|
* @summary Get appointment by id
|
|
@@ -467,6 +627,48 @@ var AppointmentsApiFp = function (configuration) {
|
|
|
467
627
|
});
|
|
468
628
|
});
|
|
469
629
|
},
|
|
630
|
+
/**
|
|
631
|
+
*
|
|
632
|
+
* @summary Update refund information
|
|
633
|
+
* @param {string} appointmentId
|
|
634
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
635
|
+
* @param {*} [options] Override http request option.
|
|
636
|
+
* @throws {RequiredError}
|
|
637
|
+
*/
|
|
638
|
+
apiV2AppointmentsAppointmentIdRefundPut: function (appointmentId, refundAppointmentCommand, options) {
|
|
639
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
640
|
+
var localVarAxiosArgs;
|
|
641
|
+
return __generator(this, function (_a) {
|
|
642
|
+
switch (_a.label) {
|
|
643
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdRefundPut(appointmentId, refundAppointmentCommand, options)];
|
|
644
|
+
case 1:
|
|
645
|
+
localVarAxiosArgs = _a.sent();
|
|
646
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
});
|
|
650
|
+
},
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @summary Reschedue appointment
|
|
654
|
+
* @param {string} appointmentId
|
|
655
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
656
|
+
* @param {*} [options] Override http request option.
|
|
657
|
+
* @throws {RequiredError}
|
|
658
|
+
*/
|
|
659
|
+
apiV2AppointmentsAppointmentIdReschedulePut: function (appointmentId, rescheduleAppointmentCommand, options) {
|
|
660
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
661
|
+
var localVarAxiosArgs;
|
|
662
|
+
return __generator(this, function (_a) {
|
|
663
|
+
switch (_a.label) {
|
|
664
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options)];
|
|
665
|
+
case 1:
|
|
666
|
+
localVarAxiosArgs = _a.sent();
|
|
667
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
},
|
|
470
672
|
/**
|
|
471
673
|
*
|
|
472
674
|
* @summary Get appointments
|
|
@@ -536,6 +738,17 @@ exports.AppointmentsApiFp = AppointmentsApiFp;
|
|
|
536
738
|
var AppointmentsApiFactory = function (configuration, basePath, axios) {
|
|
537
739
|
var localVarFp = (0, exports.AppointmentsApiFp)(configuration);
|
|
538
740
|
return {
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Cancel appointment
|
|
744
|
+
* @param {string} appointmentId
|
|
745
|
+
* @param {string} [languageCode]
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
apiV2AppointmentsAppointmentIdCancelPut: function (appointmentId, languageCode, options) {
|
|
750
|
+
return localVarFp.apiV2AppointmentsAppointmentIdCancelPut(appointmentId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
751
|
+
},
|
|
539
752
|
/**
|
|
540
753
|
*
|
|
541
754
|
* @summary Get appointment by id
|
|
@@ -569,6 +782,28 @@ var AppointmentsApiFactory = function (configuration, basePath, axios) {
|
|
|
569
782
|
apiV2AppointmentsAppointmentIdPut: function (appointmentId, updateAppointmentCommand, options) {
|
|
570
783
|
return localVarFp.apiV2AppointmentsAppointmentIdPut(appointmentId, updateAppointmentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
571
784
|
},
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary Update refund information
|
|
788
|
+
* @param {string} appointmentId
|
|
789
|
+
* @param {RefundAppointmentCommand} [refundAppointmentCommand]
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
apiV2AppointmentsAppointmentIdRefundPut: function (appointmentId, refundAppointmentCommand, options) {
|
|
794
|
+
return localVarFp.apiV2AppointmentsAppointmentIdRefundPut(appointmentId, refundAppointmentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
795
|
+
},
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @summary Reschedue appointment
|
|
799
|
+
* @param {string} appointmentId
|
|
800
|
+
* @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
apiV2AppointmentsAppointmentIdReschedulePut: function (appointmentId, rescheduleAppointmentCommand, options) {
|
|
805
|
+
return localVarFp.apiV2AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
806
|
+
},
|
|
572
807
|
/**
|
|
573
808
|
*
|
|
574
809
|
* @summary Get appointments
|
|
@@ -622,6 +857,18 @@ var AppointmentsApi = /** @class */ (function (_super) {
|
|
|
622
857
|
function AppointmentsApi() {
|
|
623
858
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
624
859
|
}
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @summary Cancel appointment
|
|
863
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdCancelPutRequest} requestParameters Request parameters.
|
|
864
|
+
* @param {*} [options] Override http request option.
|
|
865
|
+
* @throws {RequiredError}
|
|
866
|
+
* @memberof AppointmentsApi
|
|
867
|
+
*/
|
|
868
|
+
AppointmentsApi.prototype.apiV2AppointmentsAppointmentIdCancelPut = function (requestParameters, options) {
|
|
869
|
+
var _this = this;
|
|
870
|
+
return (0, exports.AppointmentsApiFp)(this.configuration).apiV2AppointmentsAppointmentIdCancelPut(requestParameters.appointmentId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
871
|
+
};
|
|
625
872
|
/**
|
|
626
873
|
*
|
|
627
874
|
* @summary Get appointment by id
|
|
@@ -658,6 +905,30 @@ var AppointmentsApi = /** @class */ (function (_super) {
|
|
|
658
905
|
var _this = this;
|
|
659
906
|
return (0, exports.AppointmentsApiFp)(this.configuration).apiV2AppointmentsAppointmentIdPut(requestParameters.appointmentId, requestParameters.updateAppointmentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
660
907
|
};
|
|
908
|
+
/**
|
|
909
|
+
*
|
|
910
|
+
* @summary Update refund information
|
|
911
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdRefundPutRequest} requestParameters Request parameters.
|
|
912
|
+
* @param {*} [options] Override http request option.
|
|
913
|
+
* @throws {RequiredError}
|
|
914
|
+
* @memberof AppointmentsApi
|
|
915
|
+
*/
|
|
916
|
+
AppointmentsApi.prototype.apiV2AppointmentsAppointmentIdRefundPut = function (requestParameters, options) {
|
|
917
|
+
var _this = this;
|
|
918
|
+
return (0, exports.AppointmentsApiFp)(this.configuration).apiV2AppointmentsAppointmentIdRefundPut(requestParameters.appointmentId, requestParameters.refundAppointmentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
*
|
|
922
|
+
* @summary Reschedue appointment
|
|
923
|
+
* @param {AppointmentsApiApiV2AppointmentsAppointmentIdReschedulePutRequest} requestParameters Request parameters.
|
|
924
|
+
* @param {*} [options] Override http request option.
|
|
925
|
+
* @throws {RequiredError}
|
|
926
|
+
* @memberof AppointmentsApi
|
|
927
|
+
*/
|
|
928
|
+
AppointmentsApi.prototype.apiV2AppointmentsAppointmentIdReschedulePut = function (requestParameters, options) {
|
|
929
|
+
var _this = this;
|
|
930
|
+
return (0, exports.AppointmentsApiFp)(this.configuration).apiV2AppointmentsAppointmentIdReschedulePut(requestParameters.appointmentId, requestParameters.rescheduleAppointmentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
931
|
+
};
|
|
661
932
|
/**
|
|
662
933
|
*
|
|
663
934
|
* @summary Get appointments
|