ch-api-client-typescript2 2.9.7 → 2.9.8
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.d.ts +0 -389
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +85 -874
- package/package.json +1 -1
- package/src/api.ts +10 -753
package/src/api.ts
CHANGED
|
@@ -364,44 +364,6 @@ export interface AdminMessageModel {
|
|
|
364
364
|
*/
|
|
365
365
|
'updated_at'?: number;
|
|
366
366
|
}
|
|
367
|
-
/**
|
|
368
|
-
*
|
|
369
|
-
* @export
|
|
370
|
-
* @interface ApproveBookingCommand
|
|
371
|
-
*/
|
|
372
|
-
export interface ApproveBookingCommand {
|
|
373
|
-
/**
|
|
374
|
-
*
|
|
375
|
-
* @type {Date}
|
|
376
|
-
* @memberof ApproveBookingCommand
|
|
377
|
-
*/
|
|
378
|
-
'confirmedDateStart'?: Date | null;
|
|
379
|
-
/**
|
|
380
|
-
*
|
|
381
|
-
* @type {Date}
|
|
382
|
-
* @memberof ApproveBookingCommand
|
|
383
|
-
*/
|
|
384
|
-
'confirmedDateEnd'?: Date | null;
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
*
|
|
388
|
-
* @export
|
|
389
|
-
* @interface ApproveConsultationCommand
|
|
390
|
-
*/
|
|
391
|
-
export interface ApproveConsultationCommand {
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @type {Date}
|
|
395
|
-
* @memberof ApproveConsultationCommand
|
|
396
|
-
*/
|
|
397
|
-
'confirmedDateStart'?: Date | null;
|
|
398
|
-
/**
|
|
399
|
-
*
|
|
400
|
-
* @type {Date}
|
|
401
|
-
* @memberof ApproveConsultationCommand
|
|
402
|
-
*/
|
|
403
|
-
'confirmedDateEnd'?: Date | null;
|
|
404
|
-
}
|
|
405
367
|
/**
|
|
406
368
|
*
|
|
407
369
|
* @export
|
|
@@ -8244,44 +8206,6 @@ export enum RefundPolicy {
|
|
|
8244
8206
|
PartialRefundable = 'PartialRefundable'
|
|
8245
8207
|
}
|
|
8246
8208
|
|
|
8247
|
-
/**
|
|
8248
|
-
*
|
|
8249
|
-
* @export
|
|
8250
|
-
* @interface RejectBookingCommand
|
|
8251
|
-
*/
|
|
8252
|
-
export interface RejectBookingCommand {
|
|
8253
|
-
/**
|
|
8254
|
-
*
|
|
8255
|
-
* @type {RejectReason}
|
|
8256
|
-
* @memberof RejectBookingCommand
|
|
8257
|
-
*/
|
|
8258
|
-
'rejectReason'?: RejectReason;
|
|
8259
|
-
/**
|
|
8260
|
-
*
|
|
8261
|
-
* @type {string}
|
|
8262
|
-
* @memberof RejectBookingCommand
|
|
8263
|
-
*/
|
|
8264
|
-
'rejectComment'?: string | null;
|
|
8265
|
-
}
|
|
8266
|
-
/**
|
|
8267
|
-
*
|
|
8268
|
-
* @export
|
|
8269
|
-
* @interface RejectConsultationCommand
|
|
8270
|
-
*/
|
|
8271
|
-
export interface RejectConsultationCommand {
|
|
8272
|
-
/**
|
|
8273
|
-
*
|
|
8274
|
-
* @type {RejectReason}
|
|
8275
|
-
* @memberof RejectConsultationCommand
|
|
8276
|
-
*/
|
|
8277
|
-
'rejectReason'?: RejectReason;
|
|
8278
|
-
/**
|
|
8279
|
-
*
|
|
8280
|
-
* @type {string}
|
|
8281
|
-
* @memberof RejectConsultationCommand
|
|
8282
|
-
*/
|
|
8283
|
-
'rejectComment'?: string | null;
|
|
8284
|
-
}
|
|
8285
8209
|
/**
|
|
8286
8210
|
*
|
|
8287
8211
|
* @export
|
|
@@ -11971,124 +11895,6 @@ export class ArticlesApi extends BaseAPI {
|
|
|
11971
11895
|
*/
|
|
11972
11896
|
export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
11973
11897
|
return {
|
|
11974
|
-
/**
|
|
11975
|
-
*
|
|
11976
|
-
* @summary Approve booking.
|
|
11977
|
-
* @param {string} bookingId
|
|
11978
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
11979
|
-
* @param {*} [options] Override http request option.
|
|
11980
|
-
* @throws {RequiredError}
|
|
11981
|
-
*/
|
|
11982
|
-
apiV2BookingsBookingIdApprovePut: async (bookingId: string, approveBookingCommand?: ApproveBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11983
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
11984
|
-
assertParamExists('apiV2BookingsBookingIdApprovePut', 'bookingId', bookingId)
|
|
11985
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/approve`
|
|
11986
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
11987
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11988
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11989
|
-
let baseOptions;
|
|
11990
|
-
if (configuration) {
|
|
11991
|
-
baseOptions = configuration.baseOptions;
|
|
11992
|
-
}
|
|
11993
|
-
|
|
11994
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
11995
|
-
const localVarHeaderParameter = {} as any;
|
|
11996
|
-
const localVarQueryParameter = {} as any;
|
|
11997
|
-
|
|
11998
|
-
// authentication oauth2 required
|
|
11999
|
-
// oauth required
|
|
12000
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12005
|
-
|
|
12006
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12007
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12008
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12009
|
-
localVarRequestOptions.data = serializeDataIfNeeded(approveBookingCommand, localVarRequestOptions, configuration)
|
|
12010
|
-
|
|
12011
|
-
return {
|
|
12012
|
-
url: toPathString(localVarUrlObj),
|
|
12013
|
-
options: localVarRequestOptions,
|
|
12014
|
-
};
|
|
12015
|
-
},
|
|
12016
|
-
/**
|
|
12017
|
-
*
|
|
12018
|
-
* @summary Cancel booking.
|
|
12019
|
-
* @param {string} bookingId
|
|
12020
|
-
* @param {*} [options] Override http request option.
|
|
12021
|
-
* @throws {RequiredError}
|
|
12022
|
-
*/
|
|
12023
|
-
apiV2BookingsBookingIdCancelPut: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12024
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
12025
|
-
assertParamExists('apiV2BookingsBookingIdCancelPut', 'bookingId', bookingId)
|
|
12026
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/cancel`
|
|
12027
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12028
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12029
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12030
|
-
let baseOptions;
|
|
12031
|
-
if (configuration) {
|
|
12032
|
-
baseOptions = configuration.baseOptions;
|
|
12033
|
-
}
|
|
12034
|
-
|
|
12035
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12036
|
-
const localVarHeaderParameter = {} as any;
|
|
12037
|
-
const localVarQueryParameter = {} as any;
|
|
12038
|
-
|
|
12039
|
-
// authentication oauth2 required
|
|
12040
|
-
// oauth required
|
|
12041
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12046
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12047
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12048
|
-
|
|
12049
|
-
return {
|
|
12050
|
-
url: toPathString(localVarUrlObj),
|
|
12051
|
-
options: localVarRequestOptions,
|
|
12052
|
-
};
|
|
12053
|
-
},
|
|
12054
|
-
/**
|
|
12055
|
-
*
|
|
12056
|
-
* @summary Delete booking.
|
|
12057
|
-
* @param {string} bookingId
|
|
12058
|
-
* @param {*} [options] Override http request option.
|
|
12059
|
-
* @throws {RequiredError}
|
|
12060
|
-
*/
|
|
12061
|
-
apiV2BookingsBookingIdDelete: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12062
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
12063
|
-
assertParamExists('apiV2BookingsBookingIdDelete', 'bookingId', bookingId)
|
|
12064
|
-
const localVarPath = `/api/v2/bookings/{bookingId}`
|
|
12065
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12066
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12067
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12068
|
-
let baseOptions;
|
|
12069
|
-
if (configuration) {
|
|
12070
|
-
baseOptions = configuration.baseOptions;
|
|
12071
|
-
}
|
|
12072
|
-
|
|
12073
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
12074
|
-
const localVarHeaderParameter = {} as any;
|
|
12075
|
-
const localVarQueryParameter = {} as any;
|
|
12076
|
-
|
|
12077
|
-
// authentication oauth2 required
|
|
12078
|
-
// oauth required
|
|
12079
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12084
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12085
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12086
|
-
|
|
12087
|
-
return {
|
|
12088
|
-
url: toPathString(localVarUrlObj),
|
|
12089
|
-
options: localVarRequestOptions,
|
|
12090
|
-
};
|
|
12091
|
-
},
|
|
12092
11898
|
/**
|
|
12093
11899
|
*
|
|
12094
11900
|
* @summary Get booking.
|
|
@@ -12118,44 +11924,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12118
11924
|
|
|
12119
11925
|
|
|
12120
11926
|
|
|
12121
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12122
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12123
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12124
|
-
|
|
12125
|
-
return {
|
|
12126
|
-
url: toPathString(localVarUrlObj),
|
|
12127
|
-
options: localVarRequestOptions,
|
|
12128
|
-
};
|
|
12129
|
-
},
|
|
12130
|
-
/**
|
|
12131
|
-
*
|
|
12132
|
-
* @summary Mark as Paid booking.
|
|
12133
|
-
* @param {string} bookingId
|
|
12134
|
-
* @param {*} [options] Override http request option.
|
|
12135
|
-
* @throws {RequiredError}
|
|
12136
|
-
*/
|
|
12137
|
-
apiV2BookingsBookingIdPaidPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12138
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
12139
|
-
assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId)
|
|
12140
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/paid`
|
|
12141
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12142
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12143
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12144
|
-
let baseOptions;
|
|
12145
|
-
if (configuration) {
|
|
12146
|
-
baseOptions = configuration.baseOptions;
|
|
12147
|
-
}
|
|
12148
|
-
|
|
12149
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12150
|
-
const localVarHeaderParameter = {} as any;
|
|
12151
|
-
const localVarQueryParameter = {} as any;
|
|
12152
|
-
|
|
12153
|
-
// authentication oauth2 required
|
|
12154
|
-
// oauth required
|
|
12155
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12156
|
-
|
|
12157
|
-
|
|
12158
|
-
|
|
12159
11927
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12160
11928
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12161
11929
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12245,48 +12013,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
12245
12013
|
options: localVarRequestOptions,
|
|
12246
12014
|
};
|
|
12247
12015
|
},
|
|
12248
|
-
/**
|
|
12249
|
-
*
|
|
12250
|
-
* @summary Reject booking.
|
|
12251
|
-
* @param {string} bookingId
|
|
12252
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12253
|
-
* @param {*} [options] Override http request option.
|
|
12254
|
-
* @throws {RequiredError}
|
|
12255
|
-
*/
|
|
12256
|
-
apiV2BookingsBookingIdRejectPut: async (bookingId: string, rejectBookingCommand?: RejectBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12257
|
-
// verify required parameter 'bookingId' is not null or undefined
|
|
12258
|
-
assertParamExists('apiV2BookingsBookingIdRejectPut', 'bookingId', bookingId)
|
|
12259
|
-
const localVarPath = `/api/v2/bookings/{bookingId}/reject`
|
|
12260
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
12261
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12262
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12263
|
-
let baseOptions;
|
|
12264
|
-
if (configuration) {
|
|
12265
|
-
baseOptions = configuration.baseOptions;
|
|
12266
|
-
}
|
|
12267
|
-
|
|
12268
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12269
|
-
const localVarHeaderParameter = {} as any;
|
|
12270
|
-
const localVarQueryParameter = {} as any;
|
|
12271
|
-
|
|
12272
|
-
// authentication oauth2 required
|
|
12273
|
-
// oauth required
|
|
12274
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
12275
|
-
|
|
12276
|
-
|
|
12277
|
-
|
|
12278
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12279
|
-
|
|
12280
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12281
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12282
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12283
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rejectBookingCommand, localVarRequestOptions, configuration)
|
|
12284
|
-
|
|
12285
|
-
return {
|
|
12286
|
-
url: toPathString(localVarUrlObj),
|
|
12287
|
-
options: localVarRequestOptions,
|
|
12288
|
-
};
|
|
12289
|
-
},
|
|
12290
12016
|
/**
|
|
12291
12017
|
*
|
|
12292
12018
|
* @summary Get all bookings.
|
|
@@ -12422,93 +12148,36 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12422
12148
|
return {
|
|
12423
12149
|
/**
|
|
12424
12150
|
*
|
|
12425
|
-
* @summary
|
|
12426
|
-
* @param {string} bookingId
|
|
12427
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12428
|
-
* @param {*} [options] Override http request option.
|
|
12429
|
-
* @throws {RequiredError}
|
|
12430
|
-
*/
|
|
12431
|
-
async apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12432
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options);
|
|
12433
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12434
|
-
},
|
|
12435
|
-
/**
|
|
12436
|
-
*
|
|
12437
|
-
* @summary Cancel booking.
|
|
12151
|
+
* @summary Get booking.
|
|
12438
12152
|
* @param {string} bookingId
|
|
12439
12153
|
* @param {*} [options] Override http request option.
|
|
12440
12154
|
* @throws {RequiredError}
|
|
12441
12155
|
*/
|
|
12442
|
-
async
|
|
12443
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12156
|
+
async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
12157
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
|
|
12444
12158
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12445
12159
|
},
|
|
12446
12160
|
/**
|
|
12447
12161
|
*
|
|
12448
|
-
* @summary
|
|
12162
|
+
* @summary Pay booking.
|
|
12449
12163
|
* @param {string} bookingId
|
|
12450
12164
|
* @param {*} [options] Override http request option.
|
|
12451
12165
|
* @throws {RequiredError}
|
|
12452
12166
|
*/
|
|
12453
|
-
async
|
|
12454
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12167
|
+
async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
|
|
12455
12169
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12456
12170
|
},
|
|
12457
12171
|
/**
|
|
12458
12172
|
*
|
|
12459
|
-
* @summary
|
|
12173
|
+
* @summary Update booking.
|
|
12460
12174
|
* @param {string} bookingId
|
|
12175
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
12461
12176
|
* @param {*} [options] Override http request option.
|
|
12462
12177
|
* @throws {RequiredError}
|
|
12463
12178
|
*/
|
|
12464
|
-
async
|
|
12465
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
12466
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12467
|
-
},
|
|
12468
|
-
/**
|
|
12469
|
-
*
|
|
12470
|
-
* @summary Mark as Paid booking.
|
|
12471
|
-
* @param {string} bookingId
|
|
12472
|
-
* @param {*} [options] Override http request option.
|
|
12473
|
-
* @throws {RequiredError}
|
|
12474
|
-
*/
|
|
12475
|
-
async apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12476
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options);
|
|
12477
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12478
|
-
},
|
|
12479
|
-
/**
|
|
12480
|
-
*
|
|
12481
|
-
* @summary Pay booking.
|
|
12482
|
-
* @param {string} bookingId
|
|
12483
|
-
* @param {*} [options] Override http request option.
|
|
12484
|
-
* @throws {RequiredError}
|
|
12485
|
-
*/
|
|
12486
|
-
async apiV2BookingsBookingIdPayPost(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
12487
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options);
|
|
12488
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12489
|
-
},
|
|
12490
|
-
/**
|
|
12491
|
-
*
|
|
12492
|
-
* @summary Update booking.
|
|
12493
|
-
* @param {string} bookingId
|
|
12494
|
-
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
12495
|
-
* @param {*} [options] Override http request option.
|
|
12496
|
-
* @throws {RequiredError}
|
|
12497
|
-
*/
|
|
12498
|
-
async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
12499
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
12500
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12501
|
-
},
|
|
12502
|
-
/**
|
|
12503
|
-
*
|
|
12504
|
-
* @summary Reject booking.
|
|
12505
|
-
* @param {string} bookingId
|
|
12506
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12507
|
-
* @param {*} [options] Override http request option.
|
|
12508
|
-
* @throws {RequiredError}
|
|
12509
|
-
*/
|
|
12510
|
-
async apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
12511
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options);
|
|
12179
|
+
async apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
|
|
12180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
|
|
12512
12181
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12513
12182
|
},
|
|
12514
12183
|
/**
|
|
@@ -12552,37 +12221,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
12552
12221
|
export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
12553
12222
|
const localVarFp = BookingsApiFp(configuration)
|
|
12554
12223
|
return {
|
|
12555
|
-
/**
|
|
12556
|
-
*
|
|
12557
|
-
* @summary Approve booking.
|
|
12558
|
-
* @param {string} bookingId
|
|
12559
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12560
|
-
* @param {*} [options] Override http request option.
|
|
12561
|
-
* @throws {RequiredError}
|
|
12562
|
-
*/
|
|
12563
|
-
apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: any): AxiosPromise<boolean> {
|
|
12564
|
-
return localVarFp.apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(axios, basePath));
|
|
12565
|
-
},
|
|
12566
|
-
/**
|
|
12567
|
-
*
|
|
12568
|
-
* @summary Cancel booking.
|
|
12569
|
-
* @param {string} bookingId
|
|
12570
|
-
* @param {*} [options] Override http request option.
|
|
12571
|
-
* @throws {RequiredError}
|
|
12572
|
-
*/
|
|
12573
|
-
apiV2BookingsBookingIdCancelPut(bookingId: string, options?: any): AxiosPromise<boolean> {
|
|
12574
|
-
return localVarFp.apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(axios, basePath));
|
|
12575
|
-
},
|
|
12576
|
-
/**
|
|
12577
|
-
*
|
|
12578
|
-
* @summary Delete booking.
|
|
12579
|
-
* @param {string} bookingId
|
|
12580
|
-
* @param {*} [options] Override http request option.
|
|
12581
|
-
* @throws {RequiredError}
|
|
12582
|
-
*/
|
|
12583
|
-
apiV2BookingsBookingIdDelete(bookingId: string, options?: any): AxiosPromise<boolean> {
|
|
12584
|
-
return localVarFp.apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(axios, basePath));
|
|
12585
|
-
},
|
|
12586
12224
|
/**
|
|
12587
12225
|
*
|
|
12588
12226
|
* @summary Get booking.
|
|
@@ -12593,16 +12231,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12593
12231
|
apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
|
|
12594
12232
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
|
|
12595
12233
|
},
|
|
12596
|
-
/**
|
|
12597
|
-
*
|
|
12598
|
-
* @summary Mark as Paid booking.
|
|
12599
|
-
* @param {string} bookingId
|
|
12600
|
-
* @param {*} [options] Override http request option.
|
|
12601
|
-
* @throws {RequiredError}
|
|
12602
|
-
*/
|
|
12603
|
-
apiV2BookingsBookingIdPaidPost(bookingId: string, options?: any): AxiosPromise<string> {
|
|
12604
|
-
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(axios, basePath));
|
|
12605
|
-
},
|
|
12606
12234
|
/**
|
|
12607
12235
|
*
|
|
12608
12236
|
* @summary Pay booking.
|
|
@@ -12624,17 +12252,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12624
12252
|
apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
|
|
12625
12253
|
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
|
|
12626
12254
|
},
|
|
12627
|
-
/**
|
|
12628
|
-
*
|
|
12629
|
-
* @summary Reject booking.
|
|
12630
|
-
* @param {string} bookingId
|
|
12631
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12632
|
-
* @param {*} [options] Override http request option.
|
|
12633
|
-
* @throws {RequiredError}
|
|
12634
|
-
*/
|
|
12635
|
-
apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: any): AxiosPromise<boolean> {
|
|
12636
|
-
return localVarFp.apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(axios, basePath));
|
|
12637
|
-
},
|
|
12638
12255
|
/**
|
|
12639
12256
|
*
|
|
12640
12257
|
* @summary Get all bookings.
|
|
@@ -12674,43 +12291,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
12674
12291
|
* @extends {BaseAPI}
|
|
12675
12292
|
*/
|
|
12676
12293
|
export class BookingsApi extends BaseAPI {
|
|
12677
|
-
/**
|
|
12678
|
-
*
|
|
12679
|
-
* @summary Approve booking.
|
|
12680
|
-
* @param {string} bookingId
|
|
12681
|
-
* @param {ApproveBookingCommand} [approveBookingCommand]
|
|
12682
|
-
* @param {*} [options] Override http request option.
|
|
12683
|
-
* @throws {RequiredError}
|
|
12684
|
-
* @memberof BookingsApi
|
|
12685
|
-
*/
|
|
12686
|
-
public apiV2BookingsBookingIdApprovePut(bookingId: string, approveBookingCommand?: ApproveBookingCommand, options?: AxiosRequestConfig) {
|
|
12687
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdApprovePut(bookingId, approveBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12688
|
-
}
|
|
12689
|
-
|
|
12690
|
-
/**
|
|
12691
|
-
*
|
|
12692
|
-
* @summary Cancel booking.
|
|
12693
|
-
* @param {string} bookingId
|
|
12694
|
-
* @param {*} [options] Override http request option.
|
|
12695
|
-
* @throws {RequiredError}
|
|
12696
|
-
* @memberof BookingsApi
|
|
12697
|
-
*/
|
|
12698
|
-
public apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig) {
|
|
12699
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdCancelPut(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12700
|
-
}
|
|
12701
|
-
|
|
12702
|
-
/**
|
|
12703
|
-
*
|
|
12704
|
-
* @summary Delete booking.
|
|
12705
|
-
* @param {string} bookingId
|
|
12706
|
-
* @param {*} [options] Override http request option.
|
|
12707
|
-
* @throws {RequiredError}
|
|
12708
|
-
* @memberof BookingsApi
|
|
12709
|
-
*/
|
|
12710
|
-
public apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig) {
|
|
12711
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdDelete(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12712
|
-
}
|
|
12713
|
-
|
|
12714
12294
|
/**
|
|
12715
12295
|
*
|
|
12716
12296
|
* @summary Get booking.
|
|
@@ -12723,18 +12303,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
12723
12303
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12724
12304
|
}
|
|
12725
12305
|
|
|
12726
|
-
/**
|
|
12727
|
-
*
|
|
12728
|
-
* @summary Mark as Paid booking.
|
|
12729
|
-
* @param {string} bookingId
|
|
12730
|
-
* @param {*} [options] Override http request option.
|
|
12731
|
-
* @throws {RequiredError}
|
|
12732
|
-
* @memberof BookingsApi
|
|
12733
|
-
*/
|
|
12734
|
-
public apiV2BookingsBookingIdPaidPost(bookingId: string, options?: AxiosRequestConfig) {
|
|
12735
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
12736
|
-
}
|
|
12737
|
-
|
|
12738
12306
|
/**
|
|
12739
12307
|
*
|
|
12740
12308
|
* @summary Pay booking.
|
|
@@ -12760,19 +12328,6 @@ export class BookingsApi extends BaseAPI {
|
|
|
12760
12328
|
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12761
12329
|
}
|
|
12762
12330
|
|
|
12763
|
-
/**
|
|
12764
|
-
*
|
|
12765
|
-
* @summary Reject booking.
|
|
12766
|
-
* @param {string} bookingId
|
|
12767
|
-
* @param {RejectBookingCommand} [rejectBookingCommand]
|
|
12768
|
-
* @param {*} [options] Override http request option.
|
|
12769
|
-
* @throws {RequiredError}
|
|
12770
|
-
* @memberof BookingsApi
|
|
12771
|
-
*/
|
|
12772
|
-
public apiV2BookingsBookingIdRejectPut(bookingId: string, rejectBookingCommand?: RejectBookingCommand, options?: AxiosRequestConfig) {
|
|
12773
|
-
return BookingsApiFp(this.configuration).apiV2BookingsBookingIdRejectPut(bookingId, rejectBookingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
12774
|
-
}
|
|
12775
|
-
|
|
12776
12331
|
/**
|
|
12777
12332
|
*
|
|
12778
12333
|
* @summary Get all bookings.
|
|
@@ -13537,124 +13092,6 @@ export class CommunicationsApi extends BaseAPI {
|
|
|
13537
13092
|
*/
|
|
13538
13093
|
export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13539
13094
|
return {
|
|
13540
|
-
/**
|
|
13541
|
-
*
|
|
13542
|
-
* @summary Approve consultation.
|
|
13543
|
-
* @param {string} consultationId
|
|
13544
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13545
|
-
* @param {*} [options] Override http request option.
|
|
13546
|
-
* @throws {RequiredError}
|
|
13547
|
-
*/
|
|
13548
|
-
apiV2ConsultationsConsultationIdApprovePut: async (consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13549
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13550
|
-
assertParamExists('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId)
|
|
13551
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/approve`
|
|
13552
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13553
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13554
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13555
|
-
let baseOptions;
|
|
13556
|
-
if (configuration) {
|
|
13557
|
-
baseOptions = configuration.baseOptions;
|
|
13558
|
-
}
|
|
13559
|
-
|
|
13560
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13561
|
-
const localVarHeaderParameter = {} as any;
|
|
13562
|
-
const localVarQueryParameter = {} as any;
|
|
13563
|
-
|
|
13564
|
-
// authentication oauth2 required
|
|
13565
|
-
// oauth required
|
|
13566
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13571
|
-
|
|
13572
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13573
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13574
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13575
|
-
localVarRequestOptions.data = serializeDataIfNeeded(approveConsultationCommand, localVarRequestOptions, configuration)
|
|
13576
|
-
|
|
13577
|
-
return {
|
|
13578
|
-
url: toPathString(localVarUrlObj),
|
|
13579
|
-
options: localVarRequestOptions,
|
|
13580
|
-
};
|
|
13581
|
-
},
|
|
13582
|
-
/**
|
|
13583
|
-
*
|
|
13584
|
-
* @summary Cancel consultation.
|
|
13585
|
-
* @param {string} consultationId
|
|
13586
|
-
* @param {*} [options] Override http request option.
|
|
13587
|
-
* @throws {RequiredError}
|
|
13588
|
-
*/
|
|
13589
|
-
apiV2ConsultationsConsultationIdCancelPut: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13590
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13591
|
-
assertParamExists('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId)
|
|
13592
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/cancel`
|
|
13593
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13594
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13595
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13596
|
-
let baseOptions;
|
|
13597
|
-
if (configuration) {
|
|
13598
|
-
baseOptions = configuration.baseOptions;
|
|
13599
|
-
}
|
|
13600
|
-
|
|
13601
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13602
|
-
const localVarHeaderParameter = {} as any;
|
|
13603
|
-
const localVarQueryParameter = {} as any;
|
|
13604
|
-
|
|
13605
|
-
// authentication oauth2 required
|
|
13606
|
-
// oauth required
|
|
13607
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13612
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13613
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13614
|
-
|
|
13615
|
-
return {
|
|
13616
|
-
url: toPathString(localVarUrlObj),
|
|
13617
|
-
options: localVarRequestOptions,
|
|
13618
|
-
};
|
|
13619
|
-
},
|
|
13620
|
-
/**
|
|
13621
|
-
*
|
|
13622
|
-
* @summary Delete consultation.
|
|
13623
|
-
* @param {string} consultationId
|
|
13624
|
-
* @param {*} [options] Override http request option.
|
|
13625
|
-
* @throws {RequiredError}
|
|
13626
|
-
*/
|
|
13627
|
-
apiV2ConsultationsConsultationIdDelete: async (consultationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13628
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13629
|
-
assertParamExists('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId)
|
|
13630
|
-
const localVarPath = `/api/v2/consultations/{consultationId}`
|
|
13631
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13632
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13633
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13634
|
-
let baseOptions;
|
|
13635
|
-
if (configuration) {
|
|
13636
|
-
baseOptions = configuration.baseOptions;
|
|
13637
|
-
}
|
|
13638
|
-
|
|
13639
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13640
|
-
const localVarHeaderParameter = {} as any;
|
|
13641
|
-
const localVarQueryParameter = {} as any;
|
|
13642
|
-
|
|
13643
|
-
// authentication oauth2 required
|
|
13644
|
-
// oauth required
|
|
13645
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13650
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13651
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13652
|
-
|
|
13653
|
-
return {
|
|
13654
|
-
url: toPathString(localVarUrlObj),
|
|
13655
|
-
options: localVarRequestOptions,
|
|
13656
|
-
};
|
|
13657
|
-
},
|
|
13658
13095
|
/**
|
|
13659
13096
|
*
|
|
13660
13097
|
* @summary Get consultation.
|
|
@@ -13773,48 +13210,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13773
13210
|
options: localVarRequestOptions,
|
|
13774
13211
|
};
|
|
13775
13212
|
},
|
|
13776
|
-
/**
|
|
13777
|
-
*
|
|
13778
|
-
* @summary Reject consultation.
|
|
13779
|
-
* @param {string} consultationId
|
|
13780
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
13781
|
-
* @param {*} [options] Override http request option.
|
|
13782
|
-
* @throws {RequiredError}
|
|
13783
|
-
*/
|
|
13784
|
-
apiV2ConsultationsConsultationIdRejectPut: async (consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13785
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
13786
|
-
assertParamExists('apiV2ConsultationsConsultationIdRejectPut', 'consultationId', consultationId)
|
|
13787
|
-
const localVarPath = `/api/v2/consultations/{consultationId}/reject`
|
|
13788
|
-
.replace(`{${"consultationId"}}`, encodeURIComponent(String(consultationId)));
|
|
13789
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13790
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13791
|
-
let baseOptions;
|
|
13792
|
-
if (configuration) {
|
|
13793
|
-
baseOptions = configuration.baseOptions;
|
|
13794
|
-
}
|
|
13795
|
-
|
|
13796
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13797
|
-
const localVarHeaderParameter = {} as any;
|
|
13798
|
-
const localVarQueryParameter = {} as any;
|
|
13799
|
-
|
|
13800
|
-
// authentication oauth2 required
|
|
13801
|
-
// oauth required
|
|
13802
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13807
|
-
|
|
13808
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13809
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13810
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13811
|
-
localVarRequestOptions.data = serializeDataIfNeeded(rejectConsultationCommand, localVarRequestOptions, configuration)
|
|
13812
|
-
|
|
13813
|
-
return {
|
|
13814
|
-
url: toPathString(localVarUrlObj),
|
|
13815
|
-
options: localVarRequestOptions,
|
|
13816
|
-
};
|
|
13817
|
-
},
|
|
13818
13213
|
/**
|
|
13819
13214
|
*
|
|
13820
13215
|
* @summary Get all consultations.
|
|
@@ -13948,40 +13343,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13948
13343
|
export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
13949
13344
|
const localVarAxiosParamCreator = ConsultationsApiAxiosParamCreator(configuration)
|
|
13950
13345
|
return {
|
|
13951
|
-
/**
|
|
13952
|
-
*
|
|
13953
|
-
* @summary Approve consultation.
|
|
13954
|
-
* @param {string} consultationId
|
|
13955
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
13956
|
-
* @param {*} [options] Override http request option.
|
|
13957
|
-
* @throws {RequiredError}
|
|
13958
|
-
*/
|
|
13959
|
-
async apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13960
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options);
|
|
13961
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13962
|
-
},
|
|
13963
|
-
/**
|
|
13964
|
-
*
|
|
13965
|
-
* @summary Cancel consultation.
|
|
13966
|
-
* @param {string} consultationId
|
|
13967
|
-
* @param {*} [options] Override http request option.
|
|
13968
|
-
* @throws {RequiredError}
|
|
13969
|
-
*/
|
|
13970
|
-
async apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13971
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdCancelPut(consultationId, options);
|
|
13972
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13973
|
-
},
|
|
13974
|
-
/**
|
|
13975
|
-
*
|
|
13976
|
-
* @summary Delete consultation.
|
|
13977
|
-
* @param {string} consultationId
|
|
13978
|
-
* @param {*} [options] Override http request option.
|
|
13979
|
-
* @throws {RequiredError}
|
|
13980
|
-
*/
|
|
13981
|
-
async apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
13982
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdDelete(consultationId, options);
|
|
13983
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13984
|
-
},
|
|
13985
13346
|
/**
|
|
13986
13347
|
*
|
|
13987
13348
|
* @summary Get consultation.
|
|
@@ -14016,18 +13377,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
14016
13377
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
|
|
14017
13378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14018
13379
|
},
|
|
14019
|
-
/**
|
|
14020
|
-
*
|
|
14021
|
-
* @summary Reject consultation.
|
|
14022
|
-
* @param {string} consultationId
|
|
14023
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
14024
|
-
* @param {*} [options] Override http request option.
|
|
14025
|
-
* @throws {RequiredError}
|
|
14026
|
-
*/
|
|
14027
|
-
async apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
14028
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options);
|
|
14029
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14030
|
-
},
|
|
14031
13380
|
/**
|
|
14032
13381
|
*
|
|
14033
13382
|
* @summary Get all consultations.
|
|
@@ -14069,37 +13418,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
|
|
|
14069
13418
|
export const ConsultationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
14070
13419
|
const localVarFp = ConsultationsApiFp(configuration)
|
|
14071
13420
|
return {
|
|
14072
|
-
/**
|
|
14073
|
-
*
|
|
14074
|
-
* @summary Approve consultation.
|
|
14075
|
-
* @param {string} consultationId
|
|
14076
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
14077
|
-
* @param {*} [options] Override http request option.
|
|
14078
|
-
* @throws {RequiredError}
|
|
14079
|
-
*/
|
|
14080
|
-
apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: any): AxiosPromise<boolean> {
|
|
14081
|
-
return localVarFp.apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(axios, basePath));
|
|
14082
|
-
},
|
|
14083
|
-
/**
|
|
14084
|
-
*
|
|
14085
|
-
* @summary Cancel consultation.
|
|
14086
|
-
* @param {string} consultationId
|
|
14087
|
-
* @param {*} [options] Override http request option.
|
|
14088
|
-
* @throws {RequiredError}
|
|
14089
|
-
*/
|
|
14090
|
-
apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: any): AxiosPromise<boolean> {
|
|
14091
|
-
return localVarFp.apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(axios, basePath));
|
|
14092
|
-
},
|
|
14093
|
-
/**
|
|
14094
|
-
*
|
|
14095
|
-
* @summary Delete consultation.
|
|
14096
|
-
* @param {string} consultationId
|
|
14097
|
-
* @param {*} [options] Override http request option.
|
|
14098
|
-
* @throws {RequiredError}
|
|
14099
|
-
*/
|
|
14100
|
-
apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: any): AxiosPromise<boolean> {
|
|
14101
|
-
return localVarFp.apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(axios, basePath));
|
|
14102
|
-
},
|
|
14103
13421
|
/**
|
|
14104
13422
|
*
|
|
14105
13423
|
* @summary Get consultation.
|
|
@@ -14131,17 +13449,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
14131
13449
|
apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
|
|
14132
13450
|
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
|
|
14133
13451
|
},
|
|
14134
|
-
/**
|
|
14135
|
-
*
|
|
14136
|
-
* @summary Reject consultation.
|
|
14137
|
-
* @param {string} consultationId
|
|
14138
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
14139
|
-
* @param {*} [options] Override http request option.
|
|
14140
|
-
* @throws {RequiredError}
|
|
14141
|
-
*/
|
|
14142
|
-
apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: any): AxiosPromise<boolean> {
|
|
14143
|
-
return localVarFp.apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(axios, basePath));
|
|
14144
|
-
},
|
|
14145
13452
|
/**
|
|
14146
13453
|
*
|
|
14147
13454
|
* @summary Get all consultations.
|
|
@@ -14181,43 +13488,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
|
|
|
14181
13488
|
* @extends {BaseAPI}
|
|
14182
13489
|
*/
|
|
14183
13490
|
export class ConsultationsApi extends BaseAPI {
|
|
14184
|
-
/**
|
|
14185
|
-
*
|
|
14186
|
-
* @summary Approve consultation.
|
|
14187
|
-
* @param {string} consultationId
|
|
14188
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
14189
|
-
* @param {*} [options] Override http request option.
|
|
14190
|
-
* @throws {RequiredError}
|
|
14191
|
-
* @memberof ConsultationsApi
|
|
14192
|
-
*/
|
|
14193
|
-
public apiV2ConsultationsConsultationIdApprovePut(consultationId: string, approveConsultationCommand?: ApproveConsultationCommand, options?: AxiosRequestConfig) {
|
|
14194
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
14195
|
-
}
|
|
14196
|
-
|
|
14197
|
-
/**
|
|
14198
|
-
*
|
|
14199
|
-
* @summary Cancel consultation.
|
|
14200
|
-
* @param {string} consultationId
|
|
14201
|
-
* @param {*} [options] Override http request option.
|
|
14202
|
-
* @throws {RequiredError}
|
|
14203
|
-
* @memberof ConsultationsApi
|
|
14204
|
-
*/
|
|
14205
|
-
public apiV2ConsultationsConsultationIdCancelPut(consultationId: string, options?: AxiosRequestConfig) {
|
|
14206
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdCancelPut(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
14207
|
-
}
|
|
14208
|
-
|
|
14209
|
-
/**
|
|
14210
|
-
*
|
|
14211
|
-
* @summary Delete consultation.
|
|
14212
|
-
* @param {string} consultationId
|
|
14213
|
-
* @param {*} [options] Override http request option.
|
|
14214
|
-
* @throws {RequiredError}
|
|
14215
|
-
* @memberof ConsultationsApi
|
|
14216
|
-
*/
|
|
14217
|
-
public apiV2ConsultationsConsultationIdDelete(consultationId: string, options?: AxiosRequestConfig) {
|
|
14218
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdDelete(consultationId, options).then((request) => request(this.axios, this.basePath));
|
|
14219
|
-
}
|
|
14220
|
-
|
|
14221
13491
|
/**
|
|
14222
13492
|
*
|
|
14223
13493
|
* @summary Get consultation.
|
|
@@ -14255,19 +13525,6 @@ export class ConsultationsApi extends BaseAPI {
|
|
|
14255
13525
|
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
14256
13526
|
}
|
|
14257
13527
|
|
|
14258
|
-
/**
|
|
14259
|
-
*
|
|
14260
|
-
* @summary Reject consultation.
|
|
14261
|
-
* @param {string} consultationId
|
|
14262
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
14263
|
-
* @param {*} [options] Override http request option.
|
|
14264
|
-
* @throws {RequiredError}
|
|
14265
|
-
* @memberof ConsultationsApi
|
|
14266
|
-
*/
|
|
14267
|
-
public apiV2ConsultationsConsultationIdRejectPut(consultationId: string, rejectConsultationCommand?: RejectConsultationCommand, options?: AxiosRequestConfig) {
|
|
14268
|
-
return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
14269
|
-
}
|
|
14270
|
-
|
|
14271
13528
|
/**
|
|
14272
13529
|
*
|
|
14273
13530
|
* @summary Get all consultations.
|