ch-admin-api-client-typescript 5.19.71 → 5.20.7
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/hospitals-api.d.ts +86 -30
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +116 -26
- package/lib/api/search-api.d.ts +12 -3
- package/lib/api/search-api.d.ts.map +1 -1
- package/lib/api/search-api.js +12 -6
- package/lib/models/hospital-rating-sorting-command.d.ts +26 -0
- package/lib/models/hospital-rating-sorting-command.d.ts.map +1 -0
- package/lib/models/hospital-rating-sorting-command.js +15 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +1 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +1 -0
- package/src/api/hospitals-api.ts +149 -49
- package/src/api/search-api.ts +20 -6
- package/src/models/hospital-rating-sorting-command.ts +33 -0
- package/src/models/index.ts +1 -0
package/src/api/hospitals-api.ts
CHANGED
|
@@ -121,6 +121,8 @@ import { HospitalPaymentMethodsModel } from '../models';
|
|
|
121
121
|
// @ts-ignore
|
|
122
122
|
import { HospitalRatingModel } from '../models';
|
|
123
123
|
// @ts-ignore
|
|
124
|
+
import { HospitalRatingSortingCommand } from '../models';
|
|
125
|
+
// @ts-ignore
|
|
124
126
|
import { HospitalRatingsModel } from '../models';
|
|
125
127
|
// @ts-ignore
|
|
126
128
|
import { HospitalServiceModel } from '../models';
|
|
@@ -3370,9 +3372,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3370
3372
|
*
|
|
3371
3373
|
* @summary Get managers
|
|
3372
3374
|
* @param {string} hospitalId
|
|
3373
|
-
* @param {number} [page]
|
|
3374
|
-
* @param {number} [limit]
|
|
3375
|
-
* @param {Date} [lastRetrieved]
|
|
3376
3375
|
* @param {string} [id]
|
|
3377
3376
|
* @param {string} [fullname]
|
|
3378
3377
|
* @param {string} [email]
|
|
@@ -3380,10 +3379,13 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3380
3379
|
* @param {Date} [dateOfBirth]
|
|
3381
3380
|
* @param {Date} [created]
|
|
3382
3381
|
* @param {boolean} [showHidden]
|
|
3382
|
+
* @param {number} [page]
|
|
3383
|
+
* @param {number} [limit]
|
|
3384
|
+
* @param {Date} [lastRetrieved]
|
|
3383
3385
|
* @param {*} [options] Override http request option.
|
|
3384
3386
|
* @throws {RequiredError}
|
|
3385
3387
|
*/
|
|
3386
|
-
apiV1HospitalsHospitalIdManagersGet: async (hospitalId: string,
|
|
3388
|
+
apiV1HospitalsHospitalIdManagersGet: async (hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3387
3389
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
3388
3390
|
assertParamExists('apiV1HospitalsHospitalIdManagersGet', 'hospitalId', hospitalId)
|
|
3389
3391
|
const localVarPath = `/api/v1/hospitals/{hospitalId}/managers`
|
|
@@ -3403,20 +3405,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3403
3405
|
// oauth required
|
|
3404
3406
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
3405
3407
|
|
|
3406
|
-
if (page !== undefined) {
|
|
3407
|
-
localVarQueryParameter['page'] = page;
|
|
3408
|
-
}
|
|
3409
|
-
|
|
3410
|
-
if (limit !== undefined) {
|
|
3411
|
-
localVarQueryParameter['limit'] = limit;
|
|
3412
|
-
}
|
|
3413
|
-
|
|
3414
|
-
if (lastRetrieved !== undefined) {
|
|
3415
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
3416
|
-
(lastRetrieved as any).toISOString() :
|
|
3417
|
-
lastRetrieved;
|
|
3418
|
-
}
|
|
3419
|
-
|
|
3420
3408
|
if (id !== undefined) {
|
|
3421
3409
|
localVarQueryParameter['Id'] = id;
|
|
3422
3410
|
}
|
|
@@ -3449,6 +3437,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3449
3437
|
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
3450
3438
|
}
|
|
3451
3439
|
|
|
3440
|
+
if (page !== undefined) {
|
|
3441
|
+
localVarQueryParameter['page'] = page;
|
|
3442
|
+
}
|
|
3443
|
+
|
|
3444
|
+
if (limit !== undefined) {
|
|
3445
|
+
localVarQueryParameter['limit'] = limit;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
if (lastRetrieved !== undefined) {
|
|
3449
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
3450
|
+
(lastRetrieved as any).toISOString() :
|
|
3451
|
+
lastRetrieved;
|
|
3452
|
+
}
|
|
3453
|
+
|
|
3452
3454
|
|
|
3453
3455
|
|
|
3454
3456
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -5354,6 +5356,48 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
5354
5356
|
options: localVarRequestOptions,
|
|
5355
5357
|
};
|
|
5356
5358
|
},
|
|
5359
|
+
/**
|
|
5360
|
+
*
|
|
5361
|
+
* @summary Sort hospitalRating entities
|
|
5362
|
+
* @param {string} hospitalId
|
|
5363
|
+
* @param {HospitalRatingSortingCommand} [hospitalRatingSortingCommand]
|
|
5364
|
+
* @param {*} [options] Override http request option.
|
|
5365
|
+
* @throws {RequiredError}
|
|
5366
|
+
*/
|
|
5367
|
+
apiV1HospitalsHospitalIdRatingsSortPut: async (hospitalId: string, hospitalRatingSortingCommand?: HospitalRatingSortingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5368
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
5369
|
+
assertParamExists('apiV1HospitalsHospitalIdRatingsSortPut', 'hospitalId', hospitalId)
|
|
5370
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/ratings/sort`
|
|
5371
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
5372
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5373
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5374
|
+
let baseOptions;
|
|
5375
|
+
if (configuration) {
|
|
5376
|
+
baseOptions = configuration.baseOptions;
|
|
5377
|
+
}
|
|
5378
|
+
|
|
5379
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
5380
|
+
const localVarHeaderParameter = {} as any;
|
|
5381
|
+
const localVarQueryParameter = {} as any;
|
|
5382
|
+
|
|
5383
|
+
// authentication oauth2 required
|
|
5384
|
+
// oauth required
|
|
5385
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
5386
|
+
|
|
5387
|
+
|
|
5388
|
+
|
|
5389
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5390
|
+
|
|
5391
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5393
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5394
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hospitalRatingSortingCommand, localVarRequestOptions, configuration)
|
|
5395
|
+
|
|
5396
|
+
return {
|
|
5397
|
+
url: toPathString(localVarUrlObj),
|
|
5398
|
+
options: localVarRequestOptions,
|
|
5399
|
+
};
|
|
5400
|
+
},
|
|
5357
5401
|
/**
|
|
5358
5402
|
*
|
|
5359
5403
|
* @summary Delete HospitalSpecialty.
|
|
@@ -9666,9 +9710,6 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
9666
9710
|
*
|
|
9667
9711
|
* @summary Get managers
|
|
9668
9712
|
* @param {string} hospitalId
|
|
9669
|
-
* @param {number} [page]
|
|
9670
|
-
* @param {number} [limit]
|
|
9671
|
-
* @param {Date} [lastRetrieved]
|
|
9672
9713
|
* @param {string} [id]
|
|
9673
9714
|
* @param {string} [fullname]
|
|
9674
9715
|
* @param {string} [email]
|
|
@@ -9676,11 +9717,14 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
9676
9717
|
* @param {Date} [dateOfBirth]
|
|
9677
9718
|
* @param {Date} [created]
|
|
9678
9719
|
* @param {boolean} [showHidden]
|
|
9720
|
+
* @param {number} [page]
|
|
9721
|
+
* @param {number} [limit]
|
|
9722
|
+
* @param {Date} [lastRetrieved]
|
|
9679
9723
|
* @param {*} [options] Override http request option.
|
|
9680
9724
|
* @throws {RequiredError}
|
|
9681
9725
|
*/
|
|
9682
|
-
async apiV1HospitalsHospitalIdManagersGet(hospitalId: string,
|
|
9683
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdManagersGet(hospitalId,
|
|
9726
|
+
async apiV1HospitalsHospitalIdManagersGet(hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
|
|
9727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
|
|
9684
9728
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
9685
9729
|
},
|
|
9686
9730
|
/**
|
|
@@ -10200,6 +10244,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
10200
10244
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsPost(hospitalId, createHospitalRatingCommand, options);
|
|
10201
10245
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10202
10246
|
},
|
|
10247
|
+
/**
|
|
10248
|
+
*
|
|
10249
|
+
* @summary Sort hospitalRating entities
|
|
10250
|
+
* @param {string} hospitalId
|
|
10251
|
+
* @param {HospitalRatingSortingCommand} [hospitalRatingSortingCommand]
|
|
10252
|
+
* @param {*} [options] Override http request option.
|
|
10253
|
+
* @throws {RequiredError}
|
|
10254
|
+
*/
|
|
10255
|
+
async apiV1HospitalsHospitalIdRatingsSortPut(hospitalId: string, hospitalRatingSortingCommand?: HospitalRatingSortingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SortingResultModel>> {
|
|
10256
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdRatingsSortPut(hospitalId, hospitalRatingSortingCommand, options);
|
|
10257
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10258
|
+
},
|
|
10203
10259
|
/**
|
|
10204
10260
|
*
|
|
10205
10261
|
* @summary Delete HospitalSpecialty.
|
|
@@ -11910,9 +11966,6 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
11910
11966
|
*
|
|
11911
11967
|
* @summary Get managers
|
|
11912
11968
|
* @param {string} hospitalId
|
|
11913
|
-
* @param {number} [page]
|
|
11914
|
-
* @param {number} [limit]
|
|
11915
|
-
* @param {Date} [lastRetrieved]
|
|
11916
11969
|
* @param {string} [id]
|
|
11917
11970
|
* @param {string} [fullname]
|
|
11918
11971
|
* @param {string} [email]
|
|
@@ -11920,11 +11973,14 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
11920
11973
|
* @param {Date} [dateOfBirth]
|
|
11921
11974
|
* @param {Date} [created]
|
|
11922
11975
|
* @param {boolean} [showHidden]
|
|
11976
|
+
* @param {number} [page]
|
|
11977
|
+
* @param {number} [limit]
|
|
11978
|
+
* @param {Date} [lastRetrieved]
|
|
11923
11979
|
* @param {*} [options] Override http request option.
|
|
11924
11980
|
* @throws {RequiredError}
|
|
11925
11981
|
*/
|
|
11926
|
-
apiV1HospitalsHospitalIdManagersGet(hospitalId: string,
|
|
11927
|
-
return localVarFp.apiV1HospitalsHospitalIdManagersGet(hospitalId,
|
|
11982
|
+
apiV1HospitalsHospitalIdManagersGet(hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
|
|
11983
|
+
return localVarFp.apiV1HospitalsHospitalIdManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
11928
11984
|
},
|
|
11929
11985
|
/**
|
|
11930
11986
|
*
|
|
@@ -12404,6 +12460,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
12404
12460
|
apiV1HospitalsHospitalIdRatingsPost(hospitalId: string, createHospitalRatingCommand?: CreateHospitalRatingCommand, options?: any): AxiosPromise<HospitalRatingModel> {
|
|
12405
12461
|
return localVarFp.apiV1HospitalsHospitalIdRatingsPost(hospitalId, createHospitalRatingCommand, options).then((request) => request(axios, basePath));
|
|
12406
12462
|
},
|
|
12463
|
+
/**
|
|
12464
|
+
*
|
|
12465
|
+
* @summary Sort hospitalRating entities
|
|
12466
|
+
* @param {string} hospitalId
|
|
12467
|
+
* @param {HospitalRatingSortingCommand} [hospitalRatingSortingCommand]
|
|
12468
|
+
* @param {*} [options] Override http request option.
|
|
12469
|
+
* @throws {RequiredError}
|
|
12470
|
+
*/
|
|
12471
|
+
apiV1HospitalsHospitalIdRatingsSortPut(hospitalId: string, hospitalRatingSortingCommand?: HospitalRatingSortingCommand, options?: any): AxiosPromise<SortingResultModel> {
|
|
12472
|
+
return localVarFp.apiV1HospitalsHospitalIdRatingsSortPut(hospitalId, hospitalRatingSortingCommand, options).then((request) => request(axios, basePath));
|
|
12473
|
+
},
|
|
12407
12474
|
/**
|
|
12408
12475
|
*
|
|
12409
12476
|
* @summary Delete HospitalSpecialty.
|
|
@@ -15244,73 +15311,73 @@ export interface HospitalsApiApiV1HospitalsHospitalIdManagersGetRequest {
|
|
|
15244
15311
|
|
|
15245
15312
|
/**
|
|
15246
15313
|
*
|
|
15247
|
-
* @type {
|
|
15314
|
+
* @type {string}
|
|
15248
15315
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15249
15316
|
*/
|
|
15250
|
-
readonly
|
|
15317
|
+
readonly id?: string
|
|
15251
15318
|
|
|
15252
15319
|
/**
|
|
15253
15320
|
*
|
|
15254
|
-
* @type {
|
|
15321
|
+
* @type {string}
|
|
15255
15322
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15256
15323
|
*/
|
|
15257
|
-
readonly
|
|
15324
|
+
readonly fullname?: string
|
|
15258
15325
|
|
|
15259
15326
|
/**
|
|
15260
15327
|
*
|
|
15261
|
-
* @type {
|
|
15328
|
+
* @type {string}
|
|
15262
15329
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15263
15330
|
*/
|
|
15264
|
-
readonly
|
|
15331
|
+
readonly email?: string
|
|
15265
15332
|
|
|
15266
15333
|
/**
|
|
15267
15334
|
*
|
|
15268
|
-
* @type {
|
|
15335
|
+
* @type {Gender}
|
|
15269
15336
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15270
15337
|
*/
|
|
15271
|
-
readonly
|
|
15338
|
+
readonly gender?: Gender
|
|
15272
15339
|
|
|
15273
15340
|
/**
|
|
15274
15341
|
*
|
|
15275
|
-
* @type {
|
|
15342
|
+
* @type {Date}
|
|
15276
15343
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15277
15344
|
*/
|
|
15278
|
-
readonly
|
|
15345
|
+
readonly dateOfBirth?: Date
|
|
15279
15346
|
|
|
15280
15347
|
/**
|
|
15281
15348
|
*
|
|
15282
|
-
* @type {
|
|
15349
|
+
* @type {Date}
|
|
15283
15350
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15284
15351
|
*/
|
|
15285
|
-
readonly
|
|
15352
|
+
readonly created?: Date
|
|
15286
15353
|
|
|
15287
15354
|
/**
|
|
15288
15355
|
*
|
|
15289
|
-
* @type {
|
|
15356
|
+
* @type {boolean}
|
|
15290
15357
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15291
15358
|
*/
|
|
15292
|
-
readonly
|
|
15359
|
+
readonly showHidden?: boolean
|
|
15293
15360
|
|
|
15294
15361
|
/**
|
|
15295
15362
|
*
|
|
15296
|
-
* @type {
|
|
15363
|
+
* @type {number}
|
|
15297
15364
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15298
15365
|
*/
|
|
15299
|
-
readonly
|
|
15366
|
+
readonly page?: number
|
|
15300
15367
|
|
|
15301
15368
|
/**
|
|
15302
15369
|
*
|
|
15303
|
-
* @type {
|
|
15370
|
+
* @type {number}
|
|
15304
15371
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15305
15372
|
*/
|
|
15306
|
-
readonly
|
|
15373
|
+
readonly limit?: number
|
|
15307
15374
|
|
|
15308
15375
|
/**
|
|
15309
15376
|
*
|
|
15310
|
-
* @type {
|
|
15377
|
+
* @type {Date}
|
|
15311
15378
|
* @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
|
|
15312
15379
|
*/
|
|
15313
|
-
readonly
|
|
15380
|
+
readonly lastRetrieved?: Date
|
|
15314
15381
|
}
|
|
15315
15382
|
|
|
15316
15383
|
/**
|
|
@@ -16475,6 +16542,27 @@ export interface HospitalsApiApiV1HospitalsHospitalIdRatingsPostRequest {
|
|
|
16475
16542
|
readonly createHospitalRatingCommand?: CreateHospitalRatingCommand
|
|
16476
16543
|
}
|
|
16477
16544
|
|
|
16545
|
+
/**
|
|
16546
|
+
* Request parameters for apiV1HospitalsHospitalIdRatingsSortPut operation in HospitalsApi.
|
|
16547
|
+
* @export
|
|
16548
|
+
* @interface HospitalsApiApiV1HospitalsHospitalIdRatingsSortPutRequest
|
|
16549
|
+
*/
|
|
16550
|
+
export interface HospitalsApiApiV1HospitalsHospitalIdRatingsSortPutRequest {
|
|
16551
|
+
/**
|
|
16552
|
+
*
|
|
16553
|
+
* @type {string}
|
|
16554
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdRatingsSortPut
|
|
16555
|
+
*/
|
|
16556
|
+
readonly hospitalId: string
|
|
16557
|
+
|
|
16558
|
+
/**
|
|
16559
|
+
*
|
|
16560
|
+
* @type {HospitalRatingSortingCommand}
|
|
16561
|
+
* @memberof HospitalsApiApiV1HospitalsHospitalIdRatingsSortPut
|
|
16562
|
+
*/
|
|
16563
|
+
readonly hospitalRatingSortingCommand?: HospitalRatingSortingCommand
|
|
16564
|
+
}
|
|
16565
|
+
|
|
16478
16566
|
/**
|
|
16479
16567
|
* Request parameters for apiV1HospitalsHospitalIdReactivatePut operation in HospitalsApi.
|
|
16480
16568
|
* @export
|
|
@@ -19636,7 +19724,7 @@ export class HospitalsApi extends BaseAPI {
|
|
|
19636
19724
|
* @memberof HospitalsApi
|
|
19637
19725
|
*/
|
|
19638
19726
|
public apiV1HospitalsHospitalIdManagersGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdManagersGetRequest, options?: AxiosRequestConfig) {
|
|
19639
|
-
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdManagersGet(requestParameters.hospitalId, requestParameters.
|
|
19727
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdManagersGet(requestParameters.hospitalId, requestParameters.id, requestParameters.fullname, requestParameters.email, requestParameters.gender, requestParameters.dateOfBirth, requestParameters.created, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
19640
19728
|
}
|
|
19641
19729
|
|
|
19642
19730
|
/**
|
|
@@ -20107,6 +20195,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
20107
20195
|
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdRatingsPost(requestParameters.hospitalId, requestParameters.createHospitalRatingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
20108
20196
|
}
|
|
20109
20197
|
|
|
20198
|
+
/**
|
|
20199
|
+
*
|
|
20200
|
+
* @summary Sort hospitalRating entities
|
|
20201
|
+
* @param {HospitalsApiApiV1HospitalsHospitalIdRatingsSortPutRequest} requestParameters Request parameters.
|
|
20202
|
+
* @param {*} [options] Override http request option.
|
|
20203
|
+
* @throws {RequiredError}
|
|
20204
|
+
* @memberof HospitalsApi
|
|
20205
|
+
*/
|
|
20206
|
+
public apiV1HospitalsHospitalIdRatingsSortPut(requestParameters: HospitalsApiApiV1HospitalsHospitalIdRatingsSortPutRequest, options?: AxiosRequestConfig) {
|
|
20207
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdRatingsSortPut(requestParameters.hospitalId, requestParameters.hospitalRatingSortingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
20208
|
+
}
|
|
20209
|
+
|
|
20110
20210
|
/**
|
|
20111
20211
|
*
|
|
20112
20212
|
* @summary Delete HospitalSpecialty.
|
package/src/api/search-api.ts
CHANGED
|
@@ -32,10 +32,11 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
32
32
|
*
|
|
33
33
|
* @summary Recreate Index
|
|
34
34
|
* @param {Array<SearchIndexType>} selectedIndextypes
|
|
35
|
+
* @param {boolean} [recreateIndex]
|
|
35
36
|
* @param {*} [options] Override http request option.
|
|
36
37
|
* @throws {RequiredError}
|
|
37
38
|
*/
|
|
38
|
-
apiV1SearchRecreatePost: async (selectedIndextypes: Array<SearchIndexType>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
apiV1SearchRecreatePost: async (selectedIndextypes: Array<SearchIndexType>, recreateIndex?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
40
|
// verify required parameter 'selectedIndextypes' is not null or undefined
|
|
40
41
|
assertParamExists('apiV1SearchRecreatePost', 'selectedIndextypes', selectedIndextypes)
|
|
41
42
|
const localVarPath = `/api/v1/search/recreate`;
|
|
@@ -54,6 +55,10 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
54
55
|
// oauth required
|
|
55
56
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
56
57
|
|
|
58
|
+
if (recreateIndex !== undefined) {
|
|
59
|
+
localVarQueryParameter['recreateIndex'] = recreateIndex;
|
|
60
|
+
}
|
|
61
|
+
|
|
57
62
|
if (selectedIndextypes) {
|
|
58
63
|
localVarQueryParameter['selectedIndextypes'] = selectedIndextypes;
|
|
59
64
|
}
|
|
@@ -83,11 +88,12 @@ export const SearchApiFp = function(configuration?: Configuration) {
|
|
|
83
88
|
*
|
|
84
89
|
* @summary Recreate Index
|
|
85
90
|
* @param {Array<SearchIndexType>} selectedIndextypes
|
|
91
|
+
* @param {boolean} [recreateIndex]
|
|
86
92
|
* @param {*} [options] Override http request option.
|
|
87
93
|
* @throws {RequiredError}
|
|
88
94
|
*/
|
|
89
|
-
async apiV1SearchRecreatePost(selectedIndextypes: Array<SearchIndexType>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
90
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchRecreatePost(selectedIndextypes, options);
|
|
95
|
+
async apiV1SearchRecreatePost(selectedIndextypes: Array<SearchIndexType>, recreateIndex?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
96
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SearchRecreatePost(selectedIndextypes, recreateIndex, options);
|
|
91
97
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
92
98
|
},
|
|
93
99
|
}
|
|
@@ -104,11 +110,12 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
|
104
110
|
*
|
|
105
111
|
* @summary Recreate Index
|
|
106
112
|
* @param {Array<SearchIndexType>} selectedIndextypes
|
|
113
|
+
* @param {boolean} [recreateIndex]
|
|
107
114
|
* @param {*} [options] Override http request option.
|
|
108
115
|
* @throws {RequiredError}
|
|
109
116
|
*/
|
|
110
|
-
apiV1SearchRecreatePost(selectedIndextypes: Array<SearchIndexType>, options?: any): AxiosPromise<string> {
|
|
111
|
-
return localVarFp.apiV1SearchRecreatePost(selectedIndextypes, options).then((request) => request(axios, basePath));
|
|
117
|
+
apiV1SearchRecreatePost(selectedIndextypes: Array<SearchIndexType>, recreateIndex?: boolean, options?: any): AxiosPromise<string> {
|
|
118
|
+
return localVarFp.apiV1SearchRecreatePost(selectedIndextypes, recreateIndex, options).then((request) => request(axios, basePath));
|
|
112
119
|
},
|
|
113
120
|
};
|
|
114
121
|
};
|
|
@@ -125,6 +132,13 @@ export interface SearchApiApiV1SearchRecreatePostRequest {
|
|
|
125
132
|
* @memberof SearchApiApiV1SearchRecreatePost
|
|
126
133
|
*/
|
|
127
134
|
readonly selectedIndextypes: Array<SearchIndexType>
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {boolean}
|
|
139
|
+
* @memberof SearchApiApiV1SearchRecreatePost
|
|
140
|
+
*/
|
|
141
|
+
readonly recreateIndex?: boolean
|
|
128
142
|
}
|
|
129
143
|
|
|
130
144
|
/**
|
|
@@ -143,6 +157,6 @@ export class SearchApi extends BaseAPI {
|
|
|
143
157
|
* @memberof SearchApi
|
|
144
158
|
*/
|
|
145
159
|
public apiV1SearchRecreatePost(requestParameters: SearchApiApiV1SearchRecreatePostRequest, options?: AxiosRequestConfig) {
|
|
146
|
-
return SearchApiFp(this.configuration).apiV1SearchRecreatePost(requestParameters.selectedIndextypes, options).then((request) => request(this.axios, this.basePath));
|
|
160
|
+
return SearchApiFp(this.configuration).apiV1SearchRecreatePost(requestParameters.selectedIndextypes, requestParameters.recreateIndex, options).then((request) => request(this.axios, this.basePath));
|
|
147
161
|
}
|
|
148
162
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
5
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { SortingItemModel } from './sorting-item-model';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface HospitalRatingSortingCommand
|
|
24
|
+
*/
|
|
25
|
+
export interface HospitalRatingSortingCommand {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<SortingItemModel>}
|
|
29
|
+
* @memberof HospitalRatingSortingCommand
|
|
30
|
+
*/
|
|
31
|
+
'items'?: Array<SortingItemModel> | null;
|
|
32
|
+
}
|
|
33
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -262,6 +262,7 @@ export * from './hospital-payment-method-model';
|
|
|
262
262
|
export * from './hospital-payment-methods-model';
|
|
263
263
|
export * from './hospital-rating-item-model';
|
|
264
264
|
export * from './hospital-rating-model';
|
|
265
|
+
export * from './hospital-rating-sorting-command';
|
|
265
266
|
export * from './hospital-ratings-model';
|
|
266
267
|
export * from './hospital-service-item-model';
|
|
267
268
|
export * from './hospital-service-model';
|