ch-api-client-typescript2 2.9.7 → 3.0.2

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/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
@@ -1330,12 +1292,6 @@ export interface BookingItemModel {
1330
1292
  * @memberof BookingItemModel
1331
1293
  */
1332
1294
  'requestDate'?: Date;
1333
- /**
1334
- *
1335
- * @type {string}
1336
- * @memberof BookingItemModel
1337
- */
1338
- 'domain'?: string | null;
1339
1295
  /**
1340
1296
  *
1341
1297
  * @type {BookingStatus}
@@ -1366,6 +1322,12 @@ export interface BookingItemModel {
1366
1322
  * @memberof BookingItemModel
1367
1323
  */
1368
1324
  'completionRate'?: number;
1325
+ /**
1326
+ *
1327
+ * @type {boolean}
1328
+ * @memberof BookingItemModel
1329
+ */
1330
+ 'isExternal'?: boolean;
1369
1331
  }
1370
1332
  /**
1371
1333
  *
@@ -1547,12 +1509,6 @@ export interface BookingModel {
1547
1509
  * @memberof BookingModel
1548
1510
  */
1549
1511
  'requestDate'?: Date;
1550
- /**
1551
- *
1552
- * @type {string}
1553
- * @memberof BookingModel
1554
- */
1555
- 'domain'?: string | null;
1556
1512
  /**
1557
1513
  *
1558
1514
  * @type {BookingStatus}
@@ -1583,6 +1539,12 @@ export interface BookingModel {
1583
1539
  * @memberof BookingModel
1584
1540
  */
1585
1541
  'completionRate'?: number;
1542
+ /**
1543
+ *
1544
+ * @type {boolean}
1545
+ * @memberof BookingModel
1546
+ */
1547
+ 'isExternal'?: boolean;
1586
1548
  /**
1587
1549
  *
1588
1550
  * @type {Array<BookingChangeLogModel>}
@@ -2052,12 +2014,6 @@ export interface ConsultationItemModel {
2052
2014
  * @memberof ConsultationItemModel
2053
2015
  */
2054
2016
  'requestDate'?: Date;
2055
- /**
2056
- *
2057
- * @type {string}
2058
- * @memberof ConsultationItemModel
2059
- */
2060
- 'domain'?: string | null;
2061
2017
  /**
2062
2018
  *
2063
2019
  * @type {ConsultationStatus}
@@ -2088,6 +2044,12 @@ export interface ConsultationItemModel {
2088
2044
  * @memberof ConsultationItemModel
2089
2045
  */
2090
2046
  'completionRate'?: number;
2047
+ /**
2048
+ *
2049
+ * @type {boolean}
2050
+ * @memberof ConsultationItemModel
2051
+ */
2052
+ 'isExternal'?: boolean;
2091
2053
  }
2092
2054
  /**
2093
2055
  *
@@ -2329,12 +2291,6 @@ export interface ConsultationModel {
2329
2291
  * @memberof ConsultationModel
2330
2292
  */
2331
2293
  'requestDate'?: Date;
2332
- /**
2333
- *
2334
- * @type {string}
2335
- * @memberof ConsultationModel
2336
- */
2337
- 'domain'?: string | null;
2338
2294
  /**
2339
2295
  *
2340
2296
  * @type {ConsultationStatus}
@@ -2365,6 +2321,12 @@ export interface ConsultationModel {
2365
2321
  * @memberof ConsultationModel
2366
2322
  */
2367
2323
  'completionRate'?: number;
2324
+ /**
2325
+ *
2326
+ * @type {boolean}
2327
+ * @memberof ConsultationModel
2328
+ */
2329
+ 'isExternal'?: boolean;
2368
2330
  /**
2369
2331
  *
2370
2332
  * @type {Array<ConsultationChangeLogModel>}
@@ -2948,6 +2910,12 @@ export interface CreateBookingCommand {
2948
2910
  * @memberof CreateBookingCommand
2949
2911
  */
2950
2912
  'timeZone'?: string | null;
2913
+ /**
2914
+ *
2915
+ * @type {boolean}
2916
+ * @memberof CreateBookingCommand
2917
+ */
2918
+ 'isExternal'?: boolean;
2951
2919
  }
2952
2920
  /**
2953
2921
  *
@@ -3100,6 +3068,12 @@ export interface CreateConsultationCommand {
3100
3068
  * @memberof CreateConsultationCommand
3101
3069
  */
3102
3070
  'timeZone'?: string | null;
3071
+ /**
3072
+ *
3073
+ * @type {boolean}
3074
+ * @memberof CreateConsultationCommand
3075
+ */
3076
+ 'isExternal'?: boolean;
3103
3077
  }
3104
3078
  /**
3105
3079
  *
@@ -8244,44 +8218,6 @@ export enum RefundPolicy {
8244
8218
  PartialRefundable = 'PartialRefundable'
8245
8219
  }
8246
8220
 
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
8221
  /**
8286
8222
  *
8287
8223
  * @export
@@ -11973,16 +11909,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11973
11909
  return {
11974
11910
  /**
11975
11911
  *
11976
- * @summary Approve booking.
11912
+ * @summary Get booking.
11977
11913
  * @param {string} bookingId
11978
- * @param {ApproveBookingCommand} [approveBookingCommand]
11979
11914
  * @param {*} [options] Override http request option.
11980
11915
  * @throws {RequiredError}
11981
11916
  */
11982
- apiV2BookingsBookingIdApprovePut: async (bookingId: string, approveBookingCommand?: ApproveBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11917
+ apiV2BookingsBookingIdGet: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11983
11918
  // verify required parameter 'bookingId' is not null or undefined
11984
- assertParamExists('apiV2BookingsBookingIdApprovePut', 'bookingId', bookingId)
11985
- const localVarPath = `/api/v2/bookings/{bookingId}/approve`
11919
+ assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
11920
+ const localVarPath = `/api/v2/bookings/{bookingId}`
11986
11921
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
11987
11922
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11988
11923
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11991,7 +11926,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
11991
11926
  baseOptions = configuration.baseOptions;
11992
11927
  }
11993
11928
 
11994
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11929
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11995
11930
  const localVarHeaderParameter = {} as any;
11996
11931
  const localVarQueryParameter = {} as any;
11997
11932
 
@@ -12001,12 +11936,9 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12001
11936
 
12002
11937
 
12003
11938
 
12004
- localVarHeaderParameter['Content-Type'] = 'application/json';
12005
-
12006
11939
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12007
11940
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12008
11941
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12009
- localVarRequestOptions.data = serializeDataIfNeeded(approveBookingCommand, localVarRequestOptions, configuration)
12010
11942
 
12011
11943
  return {
12012
11944
  url: toPathString(localVarUrlObj),
@@ -12015,15 +11947,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12015
11947
  },
12016
11948
  /**
12017
11949
  *
12018
- * @summary Cancel booking.
11950
+ * @summary Pay booking.
12019
11951
  * @param {string} bookingId
12020
11952
  * @param {*} [options] Override http request option.
12021
11953
  * @throws {RequiredError}
12022
11954
  */
12023
- apiV2BookingsBookingIdCancelPut: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11955
+ apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12024
11956
  // verify required parameter 'bookingId' is not null or undefined
12025
- assertParamExists('apiV2BookingsBookingIdCancelPut', 'bookingId', bookingId)
12026
- const localVarPath = `/api/v2/bookings/{bookingId}/cancel`
11957
+ assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
11958
+ const localVarPath = `/api/v2/bookings/{bookingId}/pay`
12027
11959
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12028
11960
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12029
11961
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -12032,7 +11964,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12032
11964
  baseOptions = configuration.baseOptions;
12033
11965
  }
12034
11966
 
12035
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11967
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12036
11968
  const localVarHeaderParameter = {} as any;
12037
11969
  const localVarQueryParameter = {} as any;
12038
11970
 
@@ -12053,14 +11985,15 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12053
11985
  },
12054
11986
  /**
12055
11987
  *
12056
- * @summary Delete booking.
11988
+ * @summary Update booking.
12057
11989
  * @param {string} bookingId
11990
+ * @param {UpdateBookingCommand} [updateBookingCommand]
12058
11991
  * @param {*} [options] Override http request option.
12059
11992
  * @throws {RequiredError}
12060
11993
  */
12061
- apiV2BookingsBookingIdDelete: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11994
+ apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12062
11995
  // verify required parameter 'bookingId' is not null or undefined
12063
- assertParamExists('apiV2BookingsBookingIdDelete', 'bookingId', bookingId)
11996
+ assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
12064
11997
  const localVarPath = `/api/v2/bookings/{bookingId}`
12065
11998
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12066
11999
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -12070,7 +12003,7 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12070
12003
  baseOptions = configuration.baseOptions;
12071
12004
  }
12072
12005
 
12073
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12006
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12074
12007
  const localVarHeaderParameter = {} as any;
12075
12008
  const localVarQueryParameter = {} as any;
12076
12009
 
@@ -12080,9 +12013,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12080
12013
 
12081
12014
 
12082
12015
 
12016
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12017
+
12083
12018
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12084
12019
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12085
12020
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12021
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
12086
12022
 
12087
12023
  return {
12088
12024
  url: toPathString(localVarUrlObj),
@@ -12091,16 +12027,21 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12091
12027
  },
12092
12028
  /**
12093
12029
  *
12094
- * @summary Get booking.
12095
- * @param {string} bookingId
12030
+ * @summary Get all bookings.
12031
+ * @param {string} [searchString]
12032
+ * @param {boolean} [isOpen]
12033
+ * @param {boolean} [isCompleted]
12034
+ * @param {BookingStatus} [status]
12035
+ * @param {string} [dealPackageId]
12036
+ * @param {string} [hospitalId]
12037
+ * @param {number} [page]
12038
+ * @param {number} [limit]
12039
+ * @param {Date} [lastRetrieved]
12096
12040
  * @param {*} [options] Override http request option.
12097
12041
  * @throws {RequiredError}
12098
12042
  */
12099
- apiV2BookingsBookingIdGet: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12100
- // verify required parameter 'bookingId' is not null or undefined
12101
- assertParamExists('apiV2BookingsBookingIdGet', 'bookingId', bookingId)
12102
- const localVarPath = `/api/v2/bookings/{bookingId}`
12103
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12043
+ apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12044
+ const localVarPath = `/api/v2/bookings`;
12104
12045
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12105
12046
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12106
12047
  let baseOptions;
@@ -12116,6 +12057,44 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12116
12057
  // oauth required
12117
12058
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12118
12059
 
12060
+ if (searchString !== undefined) {
12061
+ localVarQueryParameter['SearchString'] = searchString;
12062
+ }
12063
+
12064
+ if (isOpen !== undefined) {
12065
+ localVarQueryParameter['IsOpen'] = isOpen;
12066
+ }
12067
+
12068
+ if (isCompleted !== undefined) {
12069
+ localVarQueryParameter['IsCompleted'] = isCompleted;
12070
+ }
12071
+
12072
+ if (status !== undefined) {
12073
+ localVarQueryParameter['Status'] = status;
12074
+ }
12075
+
12076
+ if (dealPackageId !== undefined) {
12077
+ localVarQueryParameter['DealPackageId'] = dealPackageId;
12078
+ }
12079
+
12080
+ if (hospitalId !== undefined) {
12081
+ localVarQueryParameter['HospitalId'] = hospitalId;
12082
+ }
12083
+
12084
+ if (page !== undefined) {
12085
+ localVarQueryParameter['page'] = page;
12086
+ }
12087
+
12088
+ if (limit !== undefined) {
12089
+ localVarQueryParameter['limit'] = limit;
12090
+ }
12091
+
12092
+ if (lastRetrieved !== undefined) {
12093
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
12094
+ (lastRetrieved as any).toISOString() :
12095
+ lastRetrieved;
12096
+ }
12097
+
12119
12098
 
12120
12099
 
12121
12100
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12129,16 +12108,17 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12129
12108
  },
12130
12109
  /**
12131
12110
  *
12132
- * @summary Mark as Paid booking.
12133
- * @param {string} bookingId
12111
+ * @summary Create booking.
12112
+ * @param {string} requestId
12113
+ * @param {CreateBookingCommand} [createBookingCommand]
12134
12114
  * @param {*} [options] Override http request option.
12135
12115
  * @throws {RequiredError}
12136
12116
  */
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)));
12117
+ apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12118
+ // verify required parameter 'requestId' is not null or undefined
12119
+ assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
12120
+ const localVarPath = `/api/v2/bookings/{requestId}`
12121
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
12142
12122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12143
12123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12144
12124
  let baseOptions;
@@ -12156,329 +12136,42 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
12156
12136
 
12157
12137
 
12158
12138
 
12139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12140
+
12159
12141
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12160
12142
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12161
12143
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12144
+ localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
12162
12145
 
12163
12146
  return {
12164
12147
  url: toPathString(localVarUrlObj),
12165
12148
  options: localVarRequestOptions,
12166
12149
  };
12167
12150
  },
12151
+ }
12152
+ };
12153
+
12154
+ /**
12155
+ * BookingsApi - functional programming interface
12156
+ * @export
12157
+ */
12158
+ export const BookingsApiFp = function(configuration?: Configuration) {
12159
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12160
+ return {
12168
12161
  /**
12169
12162
  *
12170
- * @summary Pay booking.
12163
+ * @summary Get booking.
12171
12164
  * @param {string} bookingId
12172
12165
  * @param {*} [options] Override http request option.
12173
12166
  * @throws {RequiredError}
12174
12167
  */
12175
- apiV2BookingsBookingIdPayPost: async (bookingId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12176
- // verify required parameter 'bookingId' is not null or undefined
12177
- assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId)
12178
- const localVarPath = `/api/v2/bookings/{bookingId}/pay`
12179
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12180
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12181
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12182
- let baseOptions;
12183
- if (configuration) {
12184
- baseOptions = configuration.baseOptions;
12185
- }
12186
-
12187
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12188
- const localVarHeaderParameter = {} as any;
12189
- const localVarQueryParameter = {} as any;
12190
-
12191
- // authentication oauth2 required
12192
- // oauth required
12193
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12194
-
12195
-
12196
-
12197
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12198
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12199
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12200
-
12201
- return {
12202
- url: toPathString(localVarUrlObj),
12203
- options: localVarRequestOptions,
12204
- };
12168
+ async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
12169
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
12170
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12205
12171
  },
12206
12172
  /**
12207
12173
  *
12208
- * @summary Update booking.
12209
- * @param {string} bookingId
12210
- * @param {UpdateBookingCommand} [updateBookingCommand]
12211
- * @param {*} [options] Override http request option.
12212
- * @throws {RequiredError}
12213
- */
12214
- apiV2BookingsBookingIdPut: async (bookingId: string, updateBookingCommand?: UpdateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12215
- // verify required parameter 'bookingId' is not null or undefined
12216
- assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId)
12217
- const localVarPath = `/api/v2/bookings/{bookingId}`
12218
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12219
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12220
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12221
- let baseOptions;
12222
- if (configuration) {
12223
- baseOptions = configuration.baseOptions;
12224
- }
12225
-
12226
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
12227
- const localVarHeaderParameter = {} as any;
12228
- const localVarQueryParameter = {} as any;
12229
-
12230
- // authentication oauth2 required
12231
- // oauth required
12232
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12233
-
12234
-
12235
-
12236
- localVarHeaderParameter['Content-Type'] = 'application/json';
12237
-
12238
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12239
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12240
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12241
- localVarRequestOptions.data = serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration)
12242
-
12243
- return {
12244
- url: toPathString(localVarUrlObj),
12245
- options: localVarRequestOptions,
12246
- };
12247
- },
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
- /**
12291
- *
12292
- * @summary Get all bookings.
12293
- * @param {string} [searchString]
12294
- * @param {boolean} [isOpen]
12295
- * @param {boolean} [isCompleted]
12296
- * @param {BookingStatus} [status]
12297
- * @param {string} [dealPackageId]
12298
- * @param {string} [hospitalId]
12299
- * @param {number} [page]
12300
- * @param {number} [limit]
12301
- * @param {Date} [lastRetrieved]
12302
- * @param {*} [options] Override http request option.
12303
- * @throws {RequiredError}
12304
- */
12305
- apiV2BookingsGet: async (searchString?: string, isOpen?: boolean, isCompleted?: boolean, status?: BookingStatus, dealPackageId?: string, hospitalId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12306
- const localVarPath = `/api/v2/bookings`;
12307
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12308
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12309
- let baseOptions;
12310
- if (configuration) {
12311
- baseOptions = configuration.baseOptions;
12312
- }
12313
-
12314
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12315
- const localVarHeaderParameter = {} as any;
12316
- const localVarQueryParameter = {} as any;
12317
-
12318
- // authentication oauth2 required
12319
- // oauth required
12320
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12321
-
12322
- if (searchString !== undefined) {
12323
- localVarQueryParameter['SearchString'] = searchString;
12324
- }
12325
-
12326
- if (isOpen !== undefined) {
12327
- localVarQueryParameter['IsOpen'] = isOpen;
12328
- }
12329
-
12330
- if (isCompleted !== undefined) {
12331
- localVarQueryParameter['IsCompleted'] = isCompleted;
12332
- }
12333
-
12334
- if (status !== undefined) {
12335
- localVarQueryParameter['Status'] = status;
12336
- }
12337
-
12338
- if (dealPackageId !== undefined) {
12339
- localVarQueryParameter['DealPackageId'] = dealPackageId;
12340
- }
12341
-
12342
- if (hospitalId !== undefined) {
12343
- localVarQueryParameter['HospitalId'] = hospitalId;
12344
- }
12345
-
12346
- if (page !== undefined) {
12347
- localVarQueryParameter['page'] = page;
12348
- }
12349
-
12350
- if (limit !== undefined) {
12351
- localVarQueryParameter['limit'] = limit;
12352
- }
12353
-
12354
- if (lastRetrieved !== undefined) {
12355
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
12356
- (lastRetrieved as any).toISOString() :
12357
- lastRetrieved;
12358
- }
12359
-
12360
-
12361
-
12362
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12363
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12364
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12365
-
12366
- return {
12367
- url: toPathString(localVarUrlObj),
12368
- options: localVarRequestOptions,
12369
- };
12370
- },
12371
- /**
12372
- *
12373
- * @summary Create booking.
12374
- * @param {string} requestId
12375
- * @param {CreateBookingCommand} [createBookingCommand]
12376
- * @param {*} [options] Override http request option.
12377
- * @throws {RequiredError}
12378
- */
12379
- apiV2BookingsRequestIdPost: async (requestId: string, createBookingCommand?: CreateBookingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12380
- // verify required parameter 'requestId' is not null or undefined
12381
- assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId)
12382
- const localVarPath = `/api/v2/bookings/{requestId}`
12383
- .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
12384
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12385
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12386
- let baseOptions;
12387
- if (configuration) {
12388
- baseOptions = configuration.baseOptions;
12389
- }
12390
-
12391
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12392
- const localVarHeaderParameter = {} as any;
12393
- const localVarQueryParameter = {} as any;
12394
-
12395
- // authentication oauth2 required
12396
- // oauth required
12397
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
12398
-
12399
-
12400
-
12401
- localVarHeaderParameter['Content-Type'] = 'application/json';
12402
-
12403
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12404
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12405
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12406
- localVarRequestOptions.data = serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration)
12407
-
12408
- return {
12409
- url: toPathString(localVarUrlObj),
12410
- options: localVarRequestOptions,
12411
- };
12412
- },
12413
- }
12414
- };
12415
-
12416
- /**
12417
- * BookingsApi - functional programming interface
12418
- * @export
12419
- */
12420
- export const BookingsApiFp = function(configuration?: Configuration) {
12421
- const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
12422
- return {
12423
- /**
12424
- *
12425
- * @summary Approve booking.
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.
12438
- * @param {string} bookingId
12439
- * @param {*} [options] Override http request option.
12440
- * @throws {RequiredError}
12441
- */
12442
- async apiV2BookingsBookingIdCancelPut(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12443
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdCancelPut(bookingId, options);
12444
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12445
- },
12446
- /**
12447
- *
12448
- * @summary Delete booking.
12449
- * @param {string} bookingId
12450
- * @param {*} [options] Override http request option.
12451
- * @throws {RequiredError}
12452
- */
12453
- async apiV2BookingsBookingIdDelete(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
12454
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdDelete(bookingId, options);
12455
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12456
- },
12457
- /**
12458
- *
12459
- * @summary Get booking.
12460
- * @param {string} bookingId
12461
- * @param {*} [options] Override http request option.
12462
- * @throws {RequiredError}
12463
- */
12464
- async apiV2BookingsBookingIdGet(bookingId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingModel>> {
12465
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdGet(bookingId, options);
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.
12174
+ * @summary Pay booking.
12482
12175
  * @param {string} bookingId
12483
12176
  * @param {*} [options] Override http request option.
12484
12177
  * @throws {RequiredError}
@@ -12499,18 +12192,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12499
12192
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options);
12500
12193
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12501
12194
  },
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);
12512
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12513
- },
12514
12195
  /**
12515
12196
  *
12516
12197
  * @summary Get all bookings.
@@ -12552,37 +12233,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
12552
12233
  export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12553
12234
  const localVarFp = BookingsApiFp(configuration)
12554
12235
  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
12236
  /**
12587
12237
  *
12588
12238
  * @summary Get booking.
@@ -12593,16 +12243,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12593
12243
  apiV2BookingsBookingIdGet(bookingId: string, options?: any): AxiosPromise<BookingModel> {
12594
12244
  return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(axios, basePath));
12595
12245
  },
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
12246
  /**
12607
12247
  *
12608
12248
  * @summary Pay booking.
@@ -12624,17 +12264,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12624
12264
  apiV2BookingsBookingIdPut(bookingId: string, updateBookingCommand?: UpdateBookingCommand, options?: any): AxiosPromise<BookingModel> {
12625
12265
  return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(axios, basePath));
12626
12266
  },
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
12267
  /**
12639
12268
  *
12640
12269
  * @summary Get all bookings.
@@ -12673,44 +12302,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
12673
12302
  * @class BookingsApi
12674
12303
  * @extends {BaseAPI}
12675
12304
  */
12676
- 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
-
12305
+ export class BookingsApi extends BaseAPI {
12714
12306
  /**
12715
12307
  *
12716
12308
  * @summary Get booking.
@@ -12723,18 +12315,6 @@ export class BookingsApi extends BaseAPI {
12723
12315
  return BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then((request) => request(this.axios, this.basePath));
12724
12316
  }
12725
12317
 
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
12318
  /**
12739
12319
  *
12740
12320
  * @summary Pay booking.
@@ -12760,19 +12340,6 @@ export class BookingsApi extends BaseAPI {
12760
12340
  return BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then((request) => request(this.axios, this.basePath));
12761
12341
  }
12762
12342
 
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
12343
  /**
12777
12344
  *
12778
12345
  * @summary Get all bookings.
@@ -13537,124 +13104,6 @@ export class CommunicationsApi extends BaseAPI {
13537
13104
  */
13538
13105
  export const ConsultationsApiAxiosParamCreator = function (configuration?: Configuration) {
13539
13106
  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
13107
  /**
13659
13108
  *
13660
13109
  * @summary Get consultation.
@@ -13773,48 +13222,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
13773
13222
  options: localVarRequestOptions,
13774
13223
  };
13775
13224
  },
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
13225
  /**
13819
13226
  *
13820
13227
  * @summary Get all consultations.
@@ -13948,40 +13355,6 @@ export const ConsultationsApiAxiosParamCreator = function (configuration?: Confi
13948
13355
  export const ConsultationsApiFp = function(configuration?: Configuration) {
13949
13356
  const localVarAxiosParamCreator = ConsultationsApiAxiosParamCreator(configuration)
13950
13357
  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
13358
  /**
13986
13359
  *
13987
13360
  * @summary Get consultation.
@@ -14016,18 +13389,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
14016
13389
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options);
14017
13390
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
14018
13391
  },
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
13392
  /**
14032
13393
  *
14033
13394
  * @summary Get all consultations.
@@ -14069,37 +13430,6 @@ export const ConsultationsApiFp = function(configuration?: Configuration) {
14069
13430
  export const ConsultationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
14070
13431
  const localVarFp = ConsultationsApiFp(configuration)
14071
13432
  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
13433
  /**
14104
13434
  *
14105
13435
  * @summary Get consultation.
@@ -14131,17 +13461,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
14131
13461
  apiV2ConsultationsConsultationIdPut(consultationId: string, updateConsultationCommand?: UpdateConsultationCommand, options?: any): AxiosPromise<ConsultationModel> {
14132
13462
  return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(axios, basePath));
14133
13463
  },
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
13464
  /**
14146
13465
  *
14147
13466
  * @summary Get all consultations.
@@ -14181,43 +13500,6 @@ export const ConsultationsApiFactory = function (configuration?: Configuration,
14181
13500
  * @extends {BaseAPI}
14182
13501
  */
14183
13502
  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
13503
  /**
14222
13504
  *
14223
13505
  * @summary Get consultation.
@@ -14255,19 +13537,6 @@ export class ConsultationsApi extends BaseAPI {
14255
13537
  return ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then((request) => request(this.axios, this.basePath));
14256
13538
  }
14257
13539
 
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
13540
  /**
14272
13541
  *
14273
13542
  * @summary Get all consultations.