ch-admin-api-client-typescript 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +141 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +180 -7
- package/package.json +1 -1
- package/src/api.ts +235 -7
package/lib/api.js
CHANGED
|
@@ -17611,10 +17611,11 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
17611
17611
|
*
|
|
17612
17612
|
* @summary Delete faq.
|
|
17613
17613
|
* @param {string} faqId
|
|
17614
|
+
* @param {boolean} [forceDelete]
|
|
17614
17615
|
* @param {*} [options] Override http request option.
|
|
17615
17616
|
* @throws {RequiredError}
|
|
17616
17617
|
*/
|
|
17617
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
17618
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
17618
17619
|
if (options === void 0) { options = {}; }
|
|
17619
17620
|
return __awaiter(_this, void 0, void 0, function () {
|
|
17620
17621
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -17639,6 +17640,9 @@ exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
|
17639
17640
|
// authentication oauth2 required
|
|
17640
17641
|
// oauth required
|
|
17641
17642
|
_a.sent();
|
|
17643
|
+
if (forceDelete !== undefined) {
|
|
17644
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
17645
|
+
}
|
|
17642
17646
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17643
17647
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17644
17648
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -18193,15 +18197,16 @@ exports.FaqsApiFp = function (configuration) {
|
|
|
18193
18197
|
*
|
|
18194
18198
|
* @summary Delete faq.
|
|
18195
18199
|
* @param {string} faqId
|
|
18200
|
+
* @param {boolean} [forceDelete]
|
|
18196
18201
|
* @param {*} [options] Override http request option.
|
|
18197
18202
|
* @throws {RequiredError}
|
|
18198
18203
|
*/
|
|
18199
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
18204
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
18200
18205
|
return __awaiter(this, void 0, void 0, function () {
|
|
18201
18206
|
var localVarAxiosArgs;
|
|
18202
18207
|
return __generator(this, function (_a) {
|
|
18203
18208
|
switch (_a.label) {
|
|
18204
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options)];
|
|
18209
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, options)];
|
|
18205
18210
|
case 1:
|
|
18206
18211
|
localVarAxiosArgs = _a.sent();
|
|
18207
18212
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -18447,11 +18452,12 @@ exports.FaqsApiFactory = function (configuration, basePath, axios) {
|
|
|
18447
18452
|
*
|
|
18448
18453
|
* @summary Delete faq.
|
|
18449
18454
|
* @param {string} faqId
|
|
18455
|
+
* @param {boolean} [forceDelete]
|
|
18450
18456
|
* @param {*} [options] Override http request option.
|
|
18451
18457
|
* @throws {RequiredError}
|
|
18452
18458
|
*/
|
|
18453
|
-
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
18454
|
-
return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(axios, basePath); });
|
|
18459
|
+
apiV1FaqsFaqIdDelete: function (faqId, forceDelete, options) {
|
|
18460
|
+
return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then(function (request) { return request(axios, basePath); });
|
|
18455
18461
|
},
|
|
18456
18462
|
/**
|
|
18457
18463
|
*
|
|
@@ -18595,13 +18601,14 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
18595
18601
|
*
|
|
18596
18602
|
* @summary Delete faq.
|
|
18597
18603
|
* @param {string} faqId
|
|
18604
|
+
* @param {boolean} [forceDelete]
|
|
18598
18605
|
* @param {*} [options] Override http request option.
|
|
18599
18606
|
* @throws {RequiredError}
|
|
18600
18607
|
* @memberof FaqsApi
|
|
18601
18608
|
*/
|
|
18602
|
-
FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, options) {
|
|
18609
|
+
FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, forceDelete, options) {
|
|
18603
18610
|
var _this = this;
|
|
18604
|
-
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18611
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18605
18612
|
};
|
|
18606
18613
|
/**
|
|
18607
18614
|
*
|
|
@@ -33316,6 +33323,97 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
33316
33323
|
});
|
|
33317
33324
|
});
|
|
33318
33325
|
},
|
|
33326
|
+
/**
|
|
33327
|
+
*
|
|
33328
|
+
* @summary Get all Specialties Simple.
|
|
33329
|
+
* @param {string} [id]
|
|
33330
|
+
* @param {string} [name]
|
|
33331
|
+
* @param {string} [description]
|
|
33332
|
+
* @param {string} [specialtyTypeId]
|
|
33333
|
+
* @param {string} [hospitalId]
|
|
33334
|
+
* @param {Date} [created]
|
|
33335
|
+
* @param {string} [languageCode]
|
|
33336
|
+
* @param {Array<string>} [ids]
|
|
33337
|
+
* @param {boolean} [returnDefaultValue]
|
|
33338
|
+
* @param {number} [page]
|
|
33339
|
+
* @param {number} [limit]
|
|
33340
|
+
* @param {Date} [lastRetrieved]
|
|
33341
|
+
* @param {*} [options] Override http request option.
|
|
33342
|
+
* @throws {RequiredError}
|
|
33343
|
+
*/
|
|
33344
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
33345
|
+
if (options === void 0) { options = {}; }
|
|
33346
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
33347
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
33348
|
+
return __generator(this, function (_a) {
|
|
33349
|
+
switch (_a.label) {
|
|
33350
|
+
case 0:
|
|
33351
|
+
localVarPath = "/api/v1/specialties/simple";
|
|
33352
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
33353
|
+
if (configuration) {
|
|
33354
|
+
baseOptions = configuration.baseOptions;
|
|
33355
|
+
}
|
|
33356
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
33357
|
+
localVarHeaderParameter = {};
|
|
33358
|
+
localVarQueryParameter = {};
|
|
33359
|
+
// authentication oauth2 required
|
|
33360
|
+
// oauth required
|
|
33361
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
33362
|
+
case 1:
|
|
33363
|
+
// authentication oauth2 required
|
|
33364
|
+
// oauth required
|
|
33365
|
+
_a.sent();
|
|
33366
|
+
if (id !== undefined) {
|
|
33367
|
+
localVarQueryParameter['Id'] = id;
|
|
33368
|
+
}
|
|
33369
|
+
if (name !== undefined) {
|
|
33370
|
+
localVarQueryParameter['Name'] = name;
|
|
33371
|
+
}
|
|
33372
|
+
if (description !== undefined) {
|
|
33373
|
+
localVarQueryParameter['Description'] = description;
|
|
33374
|
+
}
|
|
33375
|
+
if (specialtyTypeId !== undefined) {
|
|
33376
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
33377
|
+
}
|
|
33378
|
+
if (hospitalId !== undefined) {
|
|
33379
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
33380
|
+
}
|
|
33381
|
+
if (created !== undefined) {
|
|
33382
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
33383
|
+
created.toISOString() :
|
|
33384
|
+
created;
|
|
33385
|
+
}
|
|
33386
|
+
if (languageCode !== undefined) {
|
|
33387
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
33388
|
+
}
|
|
33389
|
+
if (ids) {
|
|
33390
|
+
localVarQueryParameter['Ids'] = ids;
|
|
33391
|
+
}
|
|
33392
|
+
if (returnDefaultValue !== undefined) {
|
|
33393
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
33394
|
+
}
|
|
33395
|
+
if (page !== undefined) {
|
|
33396
|
+
localVarQueryParameter['page'] = page;
|
|
33397
|
+
}
|
|
33398
|
+
if (limit !== undefined) {
|
|
33399
|
+
localVarQueryParameter['limit'] = limit;
|
|
33400
|
+
}
|
|
33401
|
+
if (lastRetrieved !== undefined) {
|
|
33402
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
33403
|
+
lastRetrieved.toISOString() :
|
|
33404
|
+
lastRetrieved;
|
|
33405
|
+
}
|
|
33406
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33407
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33408
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
33409
|
+
return [2 /*return*/, {
|
|
33410
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
33411
|
+
options: localVarRequestOptions,
|
|
33412
|
+
}];
|
|
33413
|
+
}
|
|
33414
|
+
});
|
|
33415
|
+
});
|
|
33416
|
+
},
|
|
33319
33417
|
/**
|
|
33320
33418
|
*
|
|
33321
33419
|
* @param {string} slug
|
|
@@ -33821,6 +33919,37 @@ exports.SpecialtiesApiFp = function (configuration) {
|
|
|
33821
33919
|
});
|
|
33822
33920
|
});
|
|
33823
33921
|
},
|
|
33922
|
+
/**
|
|
33923
|
+
*
|
|
33924
|
+
* @summary Get all Specialties Simple.
|
|
33925
|
+
* @param {string} [id]
|
|
33926
|
+
* @param {string} [name]
|
|
33927
|
+
* @param {string} [description]
|
|
33928
|
+
* @param {string} [specialtyTypeId]
|
|
33929
|
+
* @param {string} [hospitalId]
|
|
33930
|
+
* @param {Date} [created]
|
|
33931
|
+
* @param {string} [languageCode]
|
|
33932
|
+
* @param {Array<string>} [ids]
|
|
33933
|
+
* @param {boolean} [returnDefaultValue]
|
|
33934
|
+
* @param {number} [page]
|
|
33935
|
+
* @param {number} [limit]
|
|
33936
|
+
* @param {Date} [lastRetrieved]
|
|
33937
|
+
* @param {*} [options] Override http request option.
|
|
33938
|
+
* @throws {RequiredError}
|
|
33939
|
+
*/
|
|
33940
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
33941
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
33942
|
+
var localVarAxiosArgs;
|
|
33943
|
+
return __generator(this, function (_a) {
|
|
33944
|
+
switch (_a.label) {
|
|
33945
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
33946
|
+
case 1:
|
|
33947
|
+
localVarAxiosArgs = _a.sent();
|
|
33948
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
33949
|
+
}
|
|
33950
|
+
});
|
|
33951
|
+
});
|
|
33952
|
+
},
|
|
33824
33953
|
/**
|
|
33825
33954
|
*
|
|
33826
33955
|
* @param {string} slug
|
|
@@ -34055,6 +34184,27 @@ exports.SpecialtiesApiFactory = function (configuration, basePath, axios) {
|
|
|
34055
34184
|
apiV1SpecialtiesPost: function (createSpecialtyCommand, options) {
|
|
34056
34185
|
return localVarFp.apiV1SpecialtiesPost(createSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
|
|
34057
34186
|
},
|
|
34187
|
+
/**
|
|
34188
|
+
*
|
|
34189
|
+
* @summary Get all Specialties Simple.
|
|
34190
|
+
* @param {string} [id]
|
|
34191
|
+
* @param {string} [name]
|
|
34192
|
+
* @param {string} [description]
|
|
34193
|
+
* @param {string} [specialtyTypeId]
|
|
34194
|
+
* @param {string} [hospitalId]
|
|
34195
|
+
* @param {Date} [created]
|
|
34196
|
+
* @param {string} [languageCode]
|
|
34197
|
+
* @param {Array<string>} [ids]
|
|
34198
|
+
* @param {boolean} [returnDefaultValue]
|
|
34199
|
+
* @param {number} [page]
|
|
34200
|
+
* @param {number} [limit]
|
|
34201
|
+
* @param {Date} [lastRetrieved]
|
|
34202
|
+
* @param {*} [options] Override http request option.
|
|
34203
|
+
* @throws {RequiredError}
|
|
34204
|
+
*/
|
|
34205
|
+
apiV1SpecialtiesSimpleGet: function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
34206
|
+
return localVarFp.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
34207
|
+
},
|
|
34058
34208
|
/**
|
|
34059
34209
|
*
|
|
34060
34210
|
* @param {string} slug
|
|
@@ -34207,6 +34357,29 @@ var SpecialtiesApi = /** @class */ (function (_super) {
|
|
|
34207
34357
|
var _this = this;
|
|
34208
34358
|
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesPost(createSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
34209
34359
|
};
|
|
34360
|
+
/**
|
|
34361
|
+
*
|
|
34362
|
+
* @summary Get all Specialties Simple.
|
|
34363
|
+
* @param {string} [id]
|
|
34364
|
+
* @param {string} [name]
|
|
34365
|
+
* @param {string} [description]
|
|
34366
|
+
* @param {string} [specialtyTypeId]
|
|
34367
|
+
* @param {string} [hospitalId]
|
|
34368
|
+
* @param {Date} [created]
|
|
34369
|
+
* @param {string} [languageCode]
|
|
34370
|
+
* @param {Array<string>} [ids]
|
|
34371
|
+
* @param {boolean} [returnDefaultValue]
|
|
34372
|
+
* @param {number} [page]
|
|
34373
|
+
* @param {number} [limit]
|
|
34374
|
+
* @param {Date} [lastRetrieved]
|
|
34375
|
+
* @param {*} [options] Override http request option.
|
|
34376
|
+
* @throws {RequiredError}
|
|
34377
|
+
* @memberof SpecialtiesApi
|
|
34378
|
+
*/
|
|
34379
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSimpleGet = function (id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
34380
|
+
var _this = this;
|
|
34381
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
34382
|
+
};
|
|
34210
34383
|
/**
|
|
34211
34384
|
*
|
|
34212
34385
|
* @param {string} slug
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -10868,6 +10868,25 @@ export interface SpecialtiesModel {
|
|
|
10868
10868
|
*/
|
|
10869
10869
|
'metaData'?: PagedListMetaData;
|
|
10870
10870
|
}
|
|
10871
|
+
/**
|
|
10872
|
+
*
|
|
10873
|
+
* @export
|
|
10874
|
+
* @interface SpecialtiesSimpleModel
|
|
10875
|
+
*/
|
|
10876
|
+
export interface SpecialtiesSimpleModel {
|
|
10877
|
+
/**
|
|
10878
|
+
*
|
|
10879
|
+
* @type {Array<SpecialtyItemSimpleModel>}
|
|
10880
|
+
* @memberof SpecialtiesSimpleModel
|
|
10881
|
+
*/
|
|
10882
|
+
'items'?: Array<SpecialtyItemSimpleModel> | null;
|
|
10883
|
+
/**
|
|
10884
|
+
*
|
|
10885
|
+
* @type {PagedListMetaData}
|
|
10886
|
+
* @memberof SpecialtiesSimpleModel
|
|
10887
|
+
*/
|
|
10888
|
+
'metaData'?: PagedListMetaData;
|
|
10889
|
+
}
|
|
10871
10890
|
/**
|
|
10872
10891
|
*
|
|
10873
10892
|
* @export
|
|
@@ -10953,6 +10972,43 @@ export interface SpecialtyItemModel {
|
|
|
10953
10972
|
*/
|
|
10954
10973
|
'medias'?: Array<MediaModel> | null;
|
|
10955
10974
|
}
|
|
10975
|
+
/**
|
|
10976
|
+
*
|
|
10977
|
+
* @export
|
|
10978
|
+
* @interface SpecialtyItemSimpleModel
|
|
10979
|
+
*/
|
|
10980
|
+
export interface SpecialtyItemSimpleModel {
|
|
10981
|
+
/**
|
|
10982
|
+
*
|
|
10983
|
+
* @type {string}
|
|
10984
|
+
* @memberof SpecialtyItemSimpleModel
|
|
10985
|
+
*/
|
|
10986
|
+
'id'?: string;
|
|
10987
|
+
/**
|
|
10988
|
+
*
|
|
10989
|
+
* @type {string}
|
|
10990
|
+
* @memberof SpecialtyItemSimpleModel
|
|
10991
|
+
*/
|
|
10992
|
+
'name'?: string | null;
|
|
10993
|
+
/**
|
|
10994
|
+
*
|
|
10995
|
+
* @type {string}
|
|
10996
|
+
* @memberof SpecialtyItemSimpleModel
|
|
10997
|
+
*/
|
|
10998
|
+
'slug'?: string | null;
|
|
10999
|
+
/**
|
|
11000
|
+
*
|
|
11001
|
+
* @type {string}
|
|
11002
|
+
* @memberof SpecialtyItemSimpleModel
|
|
11003
|
+
*/
|
|
11004
|
+
'specialtyTypeId'?: string;
|
|
11005
|
+
/**
|
|
11006
|
+
*
|
|
11007
|
+
* @type {boolean}
|
|
11008
|
+
* @memberof SpecialtyItemSimpleModel
|
|
11009
|
+
*/
|
|
11010
|
+
'confirmed'?: boolean;
|
|
11011
|
+
}
|
|
10956
11012
|
/**
|
|
10957
11013
|
*
|
|
10958
11014
|
* @export
|
|
@@ -29218,10 +29274,11 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
29218
29274
|
*
|
|
29219
29275
|
* @summary Delete faq.
|
|
29220
29276
|
* @param {string} faqId
|
|
29277
|
+
* @param {boolean} [forceDelete]
|
|
29221
29278
|
* @param {*} [options] Override http request option.
|
|
29222
29279
|
* @throws {RequiredError}
|
|
29223
29280
|
*/
|
|
29224
|
-
apiV1FaqsFaqIdDelete: async (faqId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29281
|
+
apiV1FaqsFaqIdDelete: async (faqId: string, forceDelete?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29225
29282
|
// verify required parameter 'faqId' is not null or undefined
|
|
29226
29283
|
assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId)
|
|
29227
29284
|
const localVarPath = `/api/v1/faqs/{faqId}`
|
|
@@ -29241,6 +29298,10 @@ export const FaqsApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
29241
29298
|
// oauth required
|
|
29242
29299
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
29243
29300
|
|
|
29301
|
+
if (forceDelete !== undefined) {
|
|
29302
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
29303
|
+
}
|
|
29304
|
+
|
|
29244
29305
|
|
|
29245
29306
|
|
|
29246
29307
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -29770,11 +29831,12 @@ export const FaqsApiFp = function(configuration?: Configuration) {
|
|
|
29770
29831
|
*
|
|
29771
29832
|
* @summary Delete faq.
|
|
29772
29833
|
* @param {string} faqId
|
|
29834
|
+
* @param {boolean} [forceDelete]
|
|
29773
29835
|
* @param {*} [options] Override http request option.
|
|
29774
29836
|
* @throws {RequiredError}
|
|
29775
29837
|
*/
|
|
29776
|
-
async apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
29777
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options);
|
|
29838
|
+
async apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
29839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, forceDelete, options);
|
|
29778
29840
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29779
29841
|
},
|
|
29780
29842
|
/**
|
|
@@ -29926,11 +29988,12 @@ export const FaqsApiFactory = function (configuration?: Configuration, basePath?
|
|
|
29926
29988
|
*
|
|
29927
29989
|
* @summary Delete faq.
|
|
29928
29990
|
* @param {string} faqId
|
|
29991
|
+
* @param {boolean} [forceDelete]
|
|
29929
29992
|
* @param {*} [options] Override http request option.
|
|
29930
29993
|
* @throws {RequiredError}
|
|
29931
29994
|
*/
|
|
29932
|
-
apiV1FaqsFaqIdDelete(faqId: string, options?: any): AxiosPromise<boolean> {
|
|
29933
|
-
return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(axios, basePath));
|
|
29995
|
+
apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: any): AxiosPromise<boolean> {
|
|
29996
|
+
return localVarFp.apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(axios, basePath));
|
|
29934
29997
|
},
|
|
29935
29998
|
/**
|
|
29936
29999
|
*
|
|
@@ -30071,12 +30134,13 @@ export class FaqsApi extends BaseAPI {
|
|
|
30071
30134
|
*
|
|
30072
30135
|
* @summary Delete faq.
|
|
30073
30136
|
* @param {string} faqId
|
|
30137
|
+
* @param {boolean} [forceDelete]
|
|
30074
30138
|
* @param {*} [options] Override http request option.
|
|
30075
30139
|
* @throws {RequiredError}
|
|
30076
30140
|
* @memberof FaqsApi
|
|
30077
30141
|
*/
|
|
30078
|
-
public apiV1FaqsFaqIdDelete(faqId: string, options?: AxiosRequestConfig) {
|
|
30079
|
-
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then((request) => request(this.axios, this.basePath));
|
|
30142
|
+
public apiV1FaqsFaqIdDelete(faqId: string, forceDelete?: boolean, options?: AxiosRequestConfig) {
|
|
30143
|
+
return FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, forceDelete, options).then((request) => request(this.axios, this.basePath));
|
|
30080
30144
|
}
|
|
30081
30145
|
|
|
30082
30146
|
/**
|
|
@@ -43259,6 +43323,104 @@ export const SpecialtiesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
43259
43323
|
options: localVarRequestOptions,
|
|
43260
43324
|
};
|
|
43261
43325
|
},
|
|
43326
|
+
/**
|
|
43327
|
+
*
|
|
43328
|
+
* @summary Get all Specialties Simple.
|
|
43329
|
+
* @param {string} [id]
|
|
43330
|
+
* @param {string} [name]
|
|
43331
|
+
* @param {string} [description]
|
|
43332
|
+
* @param {string} [specialtyTypeId]
|
|
43333
|
+
* @param {string} [hospitalId]
|
|
43334
|
+
* @param {Date} [created]
|
|
43335
|
+
* @param {string} [languageCode]
|
|
43336
|
+
* @param {Array<string>} [ids]
|
|
43337
|
+
* @param {boolean} [returnDefaultValue]
|
|
43338
|
+
* @param {number} [page]
|
|
43339
|
+
* @param {number} [limit]
|
|
43340
|
+
* @param {Date} [lastRetrieved]
|
|
43341
|
+
* @param {*} [options] Override http request option.
|
|
43342
|
+
* @throws {RequiredError}
|
|
43343
|
+
*/
|
|
43344
|
+
apiV1SpecialtiesSimpleGet: async (id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43345
|
+
const localVarPath = `/api/v1/specialties/simple`;
|
|
43346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43347
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43348
|
+
let baseOptions;
|
|
43349
|
+
if (configuration) {
|
|
43350
|
+
baseOptions = configuration.baseOptions;
|
|
43351
|
+
}
|
|
43352
|
+
|
|
43353
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
43354
|
+
const localVarHeaderParameter = {} as any;
|
|
43355
|
+
const localVarQueryParameter = {} as any;
|
|
43356
|
+
|
|
43357
|
+
// authentication oauth2 required
|
|
43358
|
+
// oauth required
|
|
43359
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
43360
|
+
|
|
43361
|
+
if (id !== undefined) {
|
|
43362
|
+
localVarQueryParameter['Id'] = id;
|
|
43363
|
+
}
|
|
43364
|
+
|
|
43365
|
+
if (name !== undefined) {
|
|
43366
|
+
localVarQueryParameter['Name'] = name;
|
|
43367
|
+
}
|
|
43368
|
+
|
|
43369
|
+
if (description !== undefined) {
|
|
43370
|
+
localVarQueryParameter['Description'] = description;
|
|
43371
|
+
}
|
|
43372
|
+
|
|
43373
|
+
if (specialtyTypeId !== undefined) {
|
|
43374
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
43375
|
+
}
|
|
43376
|
+
|
|
43377
|
+
if (hospitalId !== undefined) {
|
|
43378
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
43379
|
+
}
|
|
43380
|
+
|
|
43381
|
+
if (created !== undefined) {
|
|
43382
|
+
localVarQueryParameter['Created'] = (created as any instanceof Date) ?
|
|
43383
|
+
(created as any).toISOString() :
|
|
43384
|
+
created;
|
|
43385
|
+
}
|
|
43386
|
+
|
|
43387
|
+
if (languageCode !== undefined) {
|
|
43388
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
43389
|
+
}
|
|
43390
|
+
|
|
43391
|
+
if (ids) {
|
|
43392
|
+
localVarQueryParameter['Ids'] = ids;
|
|
43393
|
+
}
|
|
43394
|
+
|
|
43395
|
+
if (returnDefaultValue !== undefined) {
|
|
43396
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
43397
|
+
}
|
|
43398
|
+
|
|
43399
|
+
if (page !== undefined) {
|
|
43400
|
+
localVarQueryParameter['page'] = page;
|
|
43401
|
+
}
|
|
43402
|
+
|
|
43403
|
+
if (limit !== undefined) {
|
|
43404
|
+
localVarQueryParameter['limit'] = limit;
|
|
43405
|
+
}
|
|
43406
|
+
|
|
43407
|
+
if (lastRetrieved !== undefined) {
|
|
43408
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
43409
|
+
(lastRetrieved as any).toISOString() :
|
|
43410
|
+
lastRetrieved;
|
|
43411
|
+
}
|
|
43412
|
+
|
|
43413
|
+
|
|
43414
|
+
|
|
43415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43417
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
43418
|
+
|
|
43419
|
+
return {
|
|
43420
|
+
url: toPathString(localVarUrlObj),
|
|
43421
|
+
options: localVarRequestOptions,
|
|
43422
|
+
};
|
|
43423
|
+
},
|
|
43262
43424
|
/**
|
|
43263
43425
|
*
|
|
43264
43426
|
* @param {string} slug
|
|
@@ -43714,6 +43876,28 @@ export const SpecialtiesApiFp = function(configuration?: Configuration) {
|
|
|
43714
43876
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesPost(createSpecialtyCommand, options);
|
|
43715
43877
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43716
43878
|
},
|
|
43879
|
+
/**
|
|
43880
|
+
*
|
|
43881
|
+
* @summary Get all Specialties Simple.
|
|
43882
|
+
* @param {string} [id]
|
|
43883
|
+
* @param {string} [name]
|
|
43884
|
+
* @param {string} [description]
|
|
43885
|
+
* @param {string} [specialtyTypeId]
|
|
43886
|
+
* @param {string} [hospitalId]
|
|
43887
|
+
* @param {Date} [created]
|
|
43888
|
+
* @param {string} [languageCode]
|
|
43889
|
+
* @param {Array<string>} [ids]
|
|
43890
|
+
* @param {boolean} [returnDefaultValue]
|
|
43891
|
+
* @param {number} [page]
|
|
43892
|
+
* @param {number} [limit]
|
|
43893
|
+
* @param {Date} [lastRetrieved]
|
|
43894
|
+
* @param {*} [options] Override http request option.
|
|
43895
|
+
* @throws {RequiredError}
|
|
43896
|
+
*/
|
|
43897
|
+
async apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtiesSimpleModel>> {
|
|
43898
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options);
|
|
43899
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
43900
|
+
},
|
|
43717
43901
|
/**
|
|
43718
43902
|
*
|
|
43719
43903
|
* @param {string} slug
|
|
@@ -43868,6 +44052,27 @@ export const SpecialtiesApiFactory = function (configuration?: Configuration, ba
|
|
|
43868
44052
|
apiV1SpecialtiesPost(createSpecialtyCommand?: CreateSpecialtyCommand, options?: any): AxiosPromise<SpecialtyModel> {
|
|
43869
44053
|
return localVarFp.apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(axios, basePath));
|
|
43870
44054
|
},
|
|
44055
|
+
/**
|
|
44056
|
+
*
|
|
44057
|
+
* @summary Get all Specialties Simple.
|
|
44058
|
+
* @param {string} [id]
|
|
44059
|
+
* @param {string} [name]
|
|
44060
|
+
* @param {string} [description]
|
|
44061
|
+
* @param {string} [specialtyTypeId]
|
|
44062
|
+
* @param {string} [hospitalId]
|
|
44063
|
+
* @param {Date} [created]
|
|
44064
|
+
* @param {string} [languageCode]
|
|
44065
|
+
* @param {Array<string>} [ids]
|
|
44066
|
+
* @param {boolean} [returnDefaultValue]
|
|
44067
|
+
* @param {number} [page]
|
|
44068
|
+
* @param {number} [limit]
|
|
44069
|
+
* @param {Date} [lastRetrieved]
|
|
44070
|
+
* @param {*} [options] Override http request option.
|
|
44071
|
+
* @throws {RequiredError}
|
|
44072
|
+
*/
|
|
44073
|
+
apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtiesSimpleModel> {
|
|
44074
|
+
return localVarFp.apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
44075
|
+
},
|
|
43871
44076
|
/**
|
|
43872
44077
|
*
|
|
43873
44078
|
* @param {string} slug
|
|
@@ -44017,6 +44222,29 @@ export class SpecialtiesApi extends BaseAPI {
|
|
|
44017
44222
|
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesPost(createSpecialtyCommand, options).then((request) => request(this.axios, this.basePath));
|
|
44018
44223
|
}
|
|
44019
44224
|
|
|
44225
|
+
/**
|
|
44226
|
+
*
|
|
44227
|
+
* @summary Get all Specialties Simple.
|
|
44228
|
+
* @param {string} [id]
|
|
44229
|
+
* @param {string} [name]
|
|
44230
|
+
* @param {string} [description]
|
|
44231
|
+
* @param {string} [specialtyTypeId]
|
|
44232
|
+
* @param {string} [hospitalId]
|
|
44233
|
+
* @param {Date} [created]
|
|
44234
|
+
* @param {string} [languageCode]
|
|
44235
|
+
* @param {Array<string>} [ids]
|
|
44236
|
+
* @param {boolean} [returnDefaultValue]
|
|
44237
|
+
* @param {number} [page]
|
|
44238
|
+
* @param {number} [limit]
|
|
44239
|
+
* @param {Date} [lastRetrieved]
|
|
44240
|
+
* @param {*} [options] Override http request option.
|
|
44241
|
+
* @throws {RequiredError}
|
|
44242
|
+
* @memberof SpecialtiesApi
|
|
44243
|
+
*/
|
|
44244
|
+
public apiV1SpecialtiesSimpleGet(id?: string, name?: string, description?: string, specialtyTypeId?: string, hospitalId?: string, created?: Date, languageCode?: string, ids?: Array<string>, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
44245
|
+
return SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSimpleGet(id, name, description, specialtyTypeId, hospitalId, created, languageCode, ids, returnDefaultValue, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
44246
|
+
}
|
|
44247
|
+
|
|
44020
44248
|
/**
|
|
44021
44249
|
*
|
|
44022
44250
|
* @param {string} slug
|