ch-api-client-typescript2 3.5.8 → 4.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/lib/api.d.ts +38 -108
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +20 -90
- package/package.json +1 -1
- package/src/api.ts +51 -149
package/lib/api.js
CHANGED
|
@@ -8434,43 +8434,6 @@ exports.DoctorsApi = DoctorsApi;
|
|
|
8434
8434
|
var FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
8435
8435
|
var _this = this;
|
|
8436
8436
|
return {
|
|
8437
|
-
/**
|
|
8438
|
-
*
|
|
8439
|
-
* @summary Get BreadCrumbs.
|
|
8440
|
-
* @param {string} faqId
|
|
8441
|
-
* @param {string} [languageCode]
|
|
8442
|
-
* @param {*} [options] Override http request option.
|
|
8443
|
-
* @throws {RequiredError}
|
|
8444
|
-
*/
|
|
8445
|
-
apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
8446
|
-
if (options === void 0) { options = {}; }
|
|
8447
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
8448
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8449
|
-
return __generator(this, function (_a) {
|
|
8450
|
-
// verify required parameter 'faqId' is not null or undefined
|
|
8451
|
-
(0, common_1.assertParamExists)('apiV2FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
|
|
8452
|
-
localVarPath = "/api/v2/faqcategories/breadcrumbs/{faqId}"
|
|
8453
|
-
.replace("{".concat("faqId", "}"), encodeURIComponent(String(faqId)));
|
|
8454
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8455
|
-
if (configuration) {
|
|
8456
|
-
baseOptions = configuration.baseOptions;
|
|
8457
|
-
}
|
|
8458
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
8459
|
-
localVarHeaderParameter = {};
|
|
8460
|
-
localVarQueryParameter = {};
|
|
8461
|
-
if (languageCode !== undefined) {
|
|
8462
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
8463
|
-
}
|
|
8464
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8465
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8466
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8467
|
-
return [2 /*return*/, {
|
|
8468
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8469
|
-
options: localVarRequestOptions,
|
|
8470
|
-
}];
|
|
8471
|
-
});
|
|
8472
|
-
});
|
|
8473
|
-
},
|
|
8474
8437
|
/**
|
|
8475
8438
|
*
|
|
8476
8439
|
* @summary Get FaqCategory.
|
|
@@ -8630,27 +8593,6 @@ exports.FaqCategoriesApiAxiosParamCreator = FaqCategoriesApiAxiosParamCreator;
|
|
|
8630
8593
|
var FaqCategoriesApiFp = function (configuration) {
|
|
8631
8594
|
var localVarAxiosParamCreator = (0, exports.FaqCategoriesApiAxiosParamCreator)(configuration);
|
|
8632
8595
|
return {
|
|
8633
|
-
/**
|
|
8634
|
-
*
|
|
8635
|
-
* @summary Get BreadCrumbs.
|
|
8636
|
-
* @param {string} faqId
|
|
8637
|
-
* @param {string} [languageCode]
|
|
8638
|
-
* @param {*} [options] Override http request option.
|
|
8639
|
-
* @throws {RequiredError}
|
|
8640
|
-
*/
|
|
8641
|
-
apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
8642
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8643
|
-
var localVarAxiosArgs;
|
|
8644
|
-
return __generator(this, function (_a) {
|
|
8645
|
-
switch (_a.label) {
|
|
8646
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
|
|
8647
|
-
case 1:
|
|
8648
|
-
localVarAxiosArgs = _a.sent();
|
|
8649
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
8650
|
-
}
|
|
8651
|
-
});
|
|
8652
|
-
});
|
|
8653
|
-
},
|
|
8654
8596
|
/**
|
|
8655
8597
|
*
|
|
8656
8598
|
* @summary Get FaqCategory.
|
|
@@ -8733,17 +8675,6 @@ exports.FaqCategoriesApiFp = FaqCategoriesApiFp;
|
|
|
8733
8675
|
var FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
8734
8676
|
var localVarFp = (0, exports.FaqCategoriesApiFp)(configuration);
|
|
8735
8677
|
return {
|
|
8736
|
-
/**
|
|
8737
|
-
*
|
|
8738
|
-
* @summary Get BreadCrumbs.
|
|
8739
|
-
* @param {string} faqId
|
|
8740
|
-
* @param {string} [languageCode]
|
|
8741
|
-
* @param {*} [options] Override http request option.
|
|
8742
|
-
* @throws {RequiredError}
|
|
8743
|
-
*/
|
|
8744
|
-
apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
8745
|
-
return localVarFp.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
8746
|
-
},
|
|
8747
8678
|
/**
|
|
8748
8679
|
*
|
|
8749
8680
|
* @summary Get FaqCategory.
|
|
@@ -8800,19 +8731,6 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
|
8800
8731
|
function FaqCategoriesApi() {
|
|
8801
8732
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8802
8733
|
}
|
|
8803
|
-
/**
|
|
8804
|
-
*
|
|
8805
|
-
* @summary Get BreadCrumbs.
|
|
8806
|
-
* @param {string} faqId
|
|
8807
|
-
* @param {string} [languageCode]
|
|
8808
|
-
* @param {*} [options] Override http request option.
|
|
8809
|
-
* @throws {RequiredError}
|
|
8810
|
-
* @memberof FaqCategoriesApi
|
|
8811
|
-
*/
|
|
8812
|
-
FaqCategoriesApi.prototype.apiV2FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
|
|
8813
|
-
var _this = this;
|
|
8814
|
-
return (0, exports.FaqCategoriesApiFp)(this.configuration).apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8815
|
-
};
|
|
8816
8734
|
/**
|
|
8817
8735
|
*
|
|
8818
8736
|
* @summary Get FaqCategory.
|
|
@@ -13237,13 +13155,14 @@ var ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
13237
13155
|
return {
|
|
13238
13156
|
/**
|
|
13239
13157
|
*
|
|
13158
|
+
* @param {Array<any>} [files]
|
|
13240
13159
|
* @param {*} [options] Override http request option.
|
|
13241
13160
|
* @throws {RequiredError}
|
|
13242
13161
|
*/
|
|
13243
|
-
apiV2ImagesPost: function (options) {
|
|
13162
|
+
apiV2ImagesPost: function (files, options) {
|
|
13244
13163
|
if (options === void 0) { options = {}; }
|
|
13245
13164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
13246
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
13165
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
13247
13166
|
return __generator(this, function (_a) {
|
|
13248
13167
|
switch (_a.label) {
|
|
13249
13168
|
case 0:
|
|
@@ -13255,6 +13174,7 @@ var ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
13255
13174
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
13256
13175
|
localVarHeaderParameter = {};
|
|
13257
13176
|
localVarQueryParameter = {};
|
|
13177
|
+
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
13258
13178
|
// authentication oauth2 required
|
|
13259
13179
|
// oauth required
|
|
13260
13180
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
@@ -13262,9 +13182,16 @@ var ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
13262
13182
|
// authentication oauth2 required
|
|
13263
13183
|
// oauth required
|
|
13264
13184
|
_a.sent();
|
|
13185
|
+
if (files) {
|
|
13186
|
+
files.forEach(function (element) {
|
|
13187
|
+
localVarFormParams.append('files', element);
|
|
13188
|
+
});
|
|
13189
|
+
}
|
|
13190
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
13265
13191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13266
13192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13267
13193
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13194
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
13268
13195
|
return [2 /*return*/, {
|
|
13269
13196
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13270
13197
|
options: localVarRequestOptions,
|
|
@@ -13285,15 +13212,16 @@ var ImagesApiFp = function (configuration) {
|
|
|
13285
13212
|
return {
|
|
13286
13213
|
/**
|
|
13287
13214
|
*
|
|
13215
|
+
* @param {Array<any>} [files]
|
|
13288
13216
|
* @param {*} [options] Override http request option.
|
|
13289
13217
|
* @throws {RequiredError}
|
|
13290
13218
|
*/
|
|
13291
|
-
apiV2ImagesPost: function (options) {
|
|
13219
|
+
apiV2ImagesPost: function (files, options) {
|
|
13292
13220
|
return __awaiter(this, void 0, void 0, function () {
|
|
13293
13221
|
var localVarAxiosArgs;
|
|
13294
13222
|
return __generator(this, function (_a) {
|
|
13295
13223
|
switch (_a.label) {
|
|
13296
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ImagesPost(options)];
|
|
13224
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ImagesPost(files, options)];
|
|
13297
13225
|
case 1:
|
|
13298
13226
|
localVarAxiosArgs = _a.sent();
|
|
13299
13227
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -13313,11 +13241,12 @@ var ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
13313
13241
|
return {
|
|
13314
13242
|
/**
|
|
13315
13243
|
*
|
|
13244
|
+
* @param {Array<any>} [files]
|
|
13316
13245
|
* @param {*} [options] Override http request option.
|
|
13317
13246
|
* @throws {RequiredError}
|
|
13318
13247
|
*/
|
|
13319
|
-
apiV2ImagesPost: function (options) {
|
|
13320
|
-
return localVarFp.apiV2ImagesPost(options).then(function (request) { return request(axios, basePath); });
|
|
13248
|
+
apiV2ImagesPost: function (files, options) {
|
|
13249
|
+
return localVarFp.apiV2ImagesPost(files, options).then(function (request) { return request(axios, basePath); });
|
|
13321
13250
|
},
|
|
13322
13251
|
};
|
|
13323
13252
|
};
|
|
@@ -13335,13 +13264,14 @@ var ImagesApi = /** @class */ (function (_super) {
|
|
|
13335
13264
|
}
|
|
13336
13265
|
/**
|
|
13337
13266
|
*
|
|
13267
|
+
* @param {Array<any>} [files]
|
|
13338
13268
|
* @param {*} [options] Override http request option.
|
|
13339
13269
|
* @throws {RequiredError}
|
|
13340
13270
|
* @memberof ImagesApi
|
|
13341
13271
|
*/
|
|
13342
|
-
ImagesApi.prototype.apiV2ImagesPost = function (options) {
|
|
13272
|
+
ImagesApi.prototype.apiV2ImagesPost = function (files, options) {
|
|
13343
13273
|
var _this = this;
|
|
13344
|
-
return (0, exports.ImagesApiFp)(this.configuration).apiV2ImagesPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13274
|
+
return (0, exports.ImagesApiFp)(this.configuration).apiV2ImagesPost(files, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13345
13275
|
};
|
|
13346
13276
|
return ImagesApi;
|
|
13347
13277
|
}(base_1.BaseAPI));
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -4353,6 +4353,12 @@ export interface DoctorModel {
|
|
|
4353
4353
|
* @memberof DoctorModel
|
|
4354
4354
|
*/
|
|
4355
4355
|
'photoThumbnail'?: string | null;
|
|
4356
|
+
/**
|
|
4357
|
+
*
|
|
4358
|
+
* @type {string}
|
|
4359
|
+
* @memberof DoctorModel
|
|
4360
|
+
*/
|
|
4361
|
+
'timeZone'?: string | null;
|
|
4356
4362
|
/**
|
|
4357
4363
|
*
|
|
4358
4364
|
* @type {AuditableEntity}
|
|
@@ -4383,12 +4389,6 @@ export interface DoctorModel {
|
|
|
4383
4389
|
* @memberof DoctorModel
|
|
4384
4390
|
*/
|
|
4385
4391
|
'dateOfBirth'?: Date | null;
|
|
4386
|
-
/**
|
|
4387
|
-
*
|
|
4388
|
-
* @type {string}
|
|
4389
|
-
* @memberof DoctorModel
|
|
4390
|
-
*/
|
|
4391
|
-
'timeZone'?: string | null;
|
|
4392
4392
|
/**
|
|
4393
4393
|
*
|
|
4394
4394
|
* @type {string}
|
|
@@ -4724,43 +4724,6 @@ export interface FaqCategoriesModel {
|
|
|
4724
4724
|
*/
|
|
4725
4725
|
'metaData'?: PagedListMetaData;
|
|
4726
4726
|
}
|
|
4727
|
-
/**
|
|
4728
|
-
*
|
|
4729
|
-
* @export
|
|
4730
|
-
* @interface FaqCategoryBreadCrumbModel
|
|
4731
|
-
*/
|
|
4732
|
-
export interface FaqCategoryBreadCrumbModel {
|
|
4733
|
-
/**
|
|
4734
|
-
*
|
|
4735
|
-
* @type {string}
|
|
4736
|
-
* @memberof FaqCategoryBreadCrumbModel
|
|
4737
|
-
*/
|
|
4738
|
-
'id'?: string;
|
|
4739
|
-
/**
|
|
4740
|
-
*
|
|
4741
|
-
* @type {string}
|
|
4742
|
-
* @memberof FaqCategoryBreadCrumbModel
|
|
4743
|
-
*/
|
|
4744
|
-
'name'?: string | null;
|
|
4745
|
-
/**
|
|
4746
|
-
*
|
|
4747
|
-
* @type {string}
|
|
4748
|
-
* @memberof FaqCategoryBreadCrumbModel
|
|
4749
|
-
*/
|
|
4750
|
-
'slug'?: string | null;
|
|
4751
|
-
/**
|
|
4752
|
-
*
|
|
4753
|
-
* @type {string}
|
|
4754
|
-
* @memberof FaqCategoryBreadCrumbModel
|
|
4755
|
-
*/
|
|
4756
|
-
'parentId'?: string | null;
|
|
4757
|
-
/**
|
|
4758
|
-
*
|
|
4759
|
-
* @type {boolean}
|
|
4760
|
-
* @memberof FaqCategoryBreadCrumbModel
|
|
4761
|
-
*/
|
|
4762
|
-
'confirmed'?: boolean;
|
|
4763
|
-
}
|
|
4764
4727
|
/**
|
|
4765
4728
|
*
|
|
4766
4729
|
* @export
|
|
@@ -6002,6 +5965,18 @@ export interface HospitalServiceModel {
|
|
|
6002
5965
|
* @memberof HospitalServiceModel
|
|
6003
5966
|
*/
|
|
6004
5967
|
'confirmed'?: boolean;
|
|
5968
|
+
/**
|
|
5969
|
+
*
|
|
5970
|
+
* @type {string}
|
|
5971
|
+
* @memberof HospitalServiceModel
|
|
5972
|
+
*/
|
|
5973
|
+
'hospitalSpecialtyName'?: string | null;
|
|
5974
|
+
/**
|
|
5975
|
+
*
|
|
5976
|
+
* @type {string}
|
|
5977
|
+
* @memberof HospitalServiceModel
|
|
5978
|
+
*/
|
|
5979
|
+
'hospitalSpecialtySlug'?: string | null;
|
|
6005
5980
|
/**
|
|
6006
5981
|
*
|
|
6007
5982
|
* @type {number}
|
|
@@ -6068,18 +6043,6 @@ export interface HospitalServiceModel {
|
|
|
6068
6043
|
* @memberof HospitalServiceModel
|
|
6069
6044
|
*/
|
|
6070
6045
|
'specialtyName'?: string | null;
|
|
6071
|
-
/**
|
|
6072
|
-
*
|
|
6073
|
-
* @type {string}
|
|
6074
|
-
* @memberof HospitalServiceModel
|
|
6075
|
-
*/
|
|
6076
|
-
'hospitalSpecialtyName'?: string | null;
|
|
6077
|
-
/**
|
|
6078
|
-
*
|
|
6079
|
-
* @type {string}
|
|
6080
|
-
* @memberof HospitalServiceModel
|
|
6081
|
-
*/
|
|
6082
|
-
'hospitalSpecialtySlug'?: string | null;
|
|
6083
6046
|
/**
|
|
6084
6047
|
*
|
|
6085
6048
|
* @type {string}
|
|
@@ -7316,6 +7279,12 @@ export interface PatientModel {
|
|
|
7316
7279
|
* @memberof PatientModel
|
|
7317
7280
|
*/
|
|
7318
7281
|
'photoThumbnail'?: string | null;
|
|
7282
|
+
/**
|
|
7283
|
+
*
|
|
7284
|
+
* @type {string}
|
|
7285
|
+
* @memberof PatientModel
|
|
7286
|
+
*/
|
|
7287
|
+
'timeZone'?: string | null;
|
|
7319
7288
|
/**
|
|
7320
7289
|
*
|
|
7321
7290
|
* @type {AuditableEntity}
|
|
@@ -7346,12 +7315,6 @@ export interface PatientModel {
|
|
|
7346
7315
|
* @memberof PatientModel
|
|
7347
7316
|
*/
|
|
7348
7317
|
'dateOfBirth'?: Date | null;
|
|
7349
|
-
/**
|
|
7350
|
-
*
|
|
7351
|
-
* @type {string}
|
|
7352
|
-
* @memberof PatientModel
|
|
7353
|
-
*/
|
|
7354
|
-
'timeZone'?: string | null;
|
|
7355
7318
|
/**
|
|
7356
7319
|
*
|
|
7357
7320
|
* @type {string}
|
|
@@ -9523,6 +9486,12 @@ export interface UserModel {
|
|
|
9523
9486
|
* @memberof UserModel
|
|
9524
9487
|
*/
|
|
9525
9488
|
'photoThumbnail'?: string | null;
|
|
9489
|
+
/**
|
|
9490
|
+
*
|
|
9491
|
+
* @type {string}
|
|
9492
|
+
* @memberof UserModel
|
|
9493
|
+
*/
|
|
9494
|
+
'timeZone'?: string | null;
|
|
9526
9495
|
/**
|
|
9527
9496
|
*
|
|
9528
9497
|
* @type {AuditableEntity}
|
|
@@ -9553,12 +9522,6 @@ export interface UserModel {
|
|
|
9553
9522
|
* @memberof UserModel
|
|
9554
9523
|
*/
|
|
9555
9524
|
'dateOfBirth'?: Date | null;
|
|
9556
|
-
/**
|
|
9557
|
-
*
|
|
9558
|
-
* @type {string}
|
|
9559
|
-
* @memberof UserModel
|
|
9560
|
-
*/
|
|
9561
|
-
'timeZone'?: string | null;
|
|
9562
9525
|
/**
|
|
9563
9526
|
*
|
|
9564
9527
|
* @type {string}
|
|
@@ -17378,45 +17341,6 @@ export class DoctorsApi extends BaseAPI {
|
|
|
17378
17341
|
*/
|
|
17379
17342
|
export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
17380
17343
|
return {
|
|
17381
|
-
/**
|
|
17382
|
-
*
|
|
17383
|
-
* @summary Get BreadCrumbs.
|
|
17384
|
-
* @param {string} faqId
|
|
17385
|
-
* @param {string} [languageCode]
|
|
17386
|
-
* @param {*} [options] Override http request option.
|
|
17387
|
-
* @throws {RequiredError}
|
|
17388
|
-
*/
|
|
17389
|
-
apiV2FaqcategoriesBreadcrumbsFaqIdGet: async (faqId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17390
|
-
// verify required parameter 'faqId' is not null or undefined
|
|
17391
|
-
assertParamExists('apiV2FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId)
|
|
17392
|
-
const localVarPath = `/api/v2/faqcategories/breadcrumbs/{faqId}`
|
|
17393
|
-
.replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
|
|
17394
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17395
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17396
|
-
let baseOptions;
|
|
17397
|
-
if (configuration) {
|
|
17398
|
-
baseOptions = configuration.baseOptions;
|
|
17399
|
-
}
|
|
17400
|
-
|
|
17401
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17402
|
-
const localVarHeaderParameter = {} as any;
|
|
17403
|
-
const localVarQueryParameter = {} as any;
|
|
17404
|
-
|
|
17405
|
-
if (languageCode !== undefined) {
|
|
17406
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
17407
|
-
}
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17412
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17413
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17414
|
-
|
|
17415
|
-
return {
|
|
17416
|
-
url: toPathString(localVarUrlObj),
|
|
17417
|
-
options: localVarRequestOptions,
|
|
17418
|
-
};
|
|
17419
|
-
},
|
|
17420
17344
|
/**
|
|
17421
17345
|
*
|
|
17422
17346
|
* @summary Get FaqCategory.
|
|
@@ -17592,18 +17516,6 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
17592
17516
|
export const FaqCategoriesApiFp = function(configuration?: Configuration) {
|
|
17593
17517
|
const localVarAxiosParamCreator = FaqCategoriesApiAxiosParamCreator(configuration)
|
|
17594
17518
|
return {
|
|
17595
|
-
/**
|
|
17596
|
-
*
|
|
17597
|
-
* @summary Get BreadCrumbs.
|
|
17598
|
-
* @param {string} faqId
|
|
17599
|
-
* @param {string} [languageCode]
|
|
17600
|
-
* @param {*} [options] Override http request option.
|
|
17601
|
-
* @throws {RequiredError}
|
|
17602
|
-
*/
|
|
17603
|
-
async apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FaqCategoryBreadCrumbModel>>> {
|
|
17604
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options);
|
|
17605
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
17606
|
-
},
|
|
17607
17519
|
/**
|
|
17608
17520
|
*
|
|
17609
17521
|
* @summary Get FaqCategory.
|
|
@@ -17659,17 +17571,6 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
|
|
|
17659
17571
|
export const FaqCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
17660
17572
|
const localVarFp = FaqCategoriesApiFp(configuration)
|
|
17661
17573
|
return {
|
|
17662
|
-
/**
|
|
17663
|
-
*
|
|
17664
|
-
* @summary Get BreadCrumbs.
|
|
17665
|
-
* @param {string} faqId
|
|
17666
|
-
* @param {string} [languageCode]
|
|
17667
|
-
* @param {*} [options] Override http request option.
|
|
17668
|
-
* @throws {RequiredError}
|
|
17669
|
-
*/
|
|
17670
|
-
apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: any): AxiosPromise<Array<FaqCategoryBreadCrumbModel>> {
|
|
17671
|
-
return localVarFp.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(axios, basePath));
|
|
17672
|
-
},
|
|
17673
17574
|
/**
|
|
17674
17575
|
*
|
|
17675
17576
|
* @summary Get FaqCategory.
|
|
@@ -17722,19 +17623,6 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
|
|
|
17722
17623
|
* @extends {BaseAPI}
|
|
17723
17624
|
*/
|
|
17724
17625
|
export class FaqCategoriesApi extends BaseAPI {
|
|
17725
|
-
/**
|
|
17726
|
-
*
|
|
17727
|
-
* @summary Get BreadCrumbs.
|
|
17728
|
-
* @param {string} faqId
|
|
17729
|
-
* @param {string} [languageCode]
|
|
17730
|
-
* @param {*} [options] Override http request option.
|
|
17731
|
-
* @throws {RequiredError}
|
|
17732
|
-
* @memberof FaqCategoriesApi
|
|
17733
|
-
*/
|
|
17734
|
-
public apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig) {
|
|
17735
|
-
return FaqCategoriesApiFp(this.configuration).apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
17736
|
-
}
|
|
17737
|
-
|
|
17738
17626
|
/**
|
|
17739
17627
|
*
|
|
17740
17628
|
* @summary Get FaqCategory.
|
|
@@ -21960,10 +21848,11 @@ export const ImagesApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
21960
21848
|
return {
|
|
21961
21849
|
/**
|
|
21962
21850
|
*
|
|
21851
|
+
* @param {Array<any>} [files]
|
|
21963
21852
|
* @param {*} [options] Override http request option.
|
|
21964
21853
|
* @throws {RequiredError}
|
|
21965
21854
|
*/
|
|
21966
|
-
apiV2ImagesPost: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21855
|
+
apiV2ImagesPost: async (files?: Array<any>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21967
21856
|
const localVarPath = `/api/v2/images`;
|
|
21968
21857
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21969
21858
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -21975,16 +21864,26 @@ export const ImagesApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
21975
21864
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21976
21865
|
const localVarHeaderParameter = {} as any;
|
|
21977
21866
|
const localVarQueryParameter = {} as any;
|
|
21867
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
21978
21868
|
|
|
21979
21869
|
// authentication oauth2 required
|
|
21980
21870
|
// oauth required
|
|
21981
21871
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
21982
21872
|
|
|
21873
|
+
if (files) {
|
|
21874
|
+
files.forEach((element) => {
|
|
21875
|
+
localVarFormParams.append('files', element as any);
|
|
21876
|
+
})
|
|
21877
|
+
}
|
|
21983
21878
|
|
|
21984
21879
|
|
|
21880
|
+
|
|
21881
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
21882
|
+
|
|
21985
21883
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21986
21884
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21987
21885
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21886
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
21988
21887
|
|
|
21989
21888
|
return {
|
|
21990
21889
|
url: toPathString(localVarUrlObj),
|
|
@@ -22003,11 +21902,12 @@ export const ImagesApiFp = function(configuration?: Configuration) {
|
|
|
22003
21902
|
return {
|
|
22004
21903
|
/**
|
|
22005
21904
|
*
|
|
21905
|
+
* @param {Array<any>} [files]
|
|
22006
21906
|
* @param {*} [options] Override http request option.
|
|
22007
21907
|
* @throws {RequiredError}
|
|
22008
21908
|
*/
|
|
22009
|
-
async apiV2ImagesPost(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MediaModel>>> {
|
|
22010
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ImagesPost(options);
|
|
21909
|
+
async apiV2ImagesPost(files?: Array<any>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MediaModel>>> {
|
|
21910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2ImagesPost(files, options);
|
|
22011
21911
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
22012
21912
|
},
|
|
22013
21913
|
}
|
|
@@ -22022,11 +21922,12 @@ export const ImagesApiFactory = function (configuration?: Configuration, basePat
|
|
|
22022
21922
|
return {
|
|
22023
21923
|
/**
|
|
22024
21924
|
*
|
|
21925
|
+
* @param {Array<any>} [files]
|
|
22025
21926
|
* @param {*} [options] Override http request option.
|
|
22026
21927
|
* @throws {RequiredError}
|
|
22027
21928
|
*/
|
|
22028
|
-
apiV2ImagesPost(options?: any): AxiosPromise<Array<MediaModel>> {
|
|
22029
|
-
return localVarFp.apiV2ImagesPost(options).then((request) => request(axios, basePath));
|
|
21929
|
+
apiV2ImagesPost(files?: Array<any>, options?: any): AxiosPromise<Array<MediaModel>> {
|
|
21930
|
+
return localVarFp.apiV2ImagesPost(files, options).then((request) => request(axios, basePath));
|
|
22030
21931
|
},
|
|
22031
21932
|
};
|
|
22032
21933
|
};
|
|
@@ -22040,12 +21941,13 @@ export const ImagesApiFactory = function (configuration?: Configuration, basePat
|
|
|
22040
21941
|
export class ImagesApi extends BaseAPI {
|
|
22041
21942
|
/**
|
|
22042
21943
|
*
|
|
21944
|
+
* @param {Array<any>} [files]
|
|
22043
21945
|
* @param {*} [options] Override http request option.
|
|
22044
21946
|
* @throws {RequiredError}
|
|
22045
21947
|
* @memberof ImagesApi
|
|
22046
21948
|
*/
|
|
22047
|
-
public apiV2ImagesPost(options?: AxiosRequestConfig) {
|
|
22048
|
-
return ImagesApiFp(this.configuration).apiV2ImagesPost(options).then((request) => request(this.axios, this.basePath));
|
|
21949
|
+
public apiV2ImagesPost(files?: Array<any>, options?: AxiosRequestConfig) {
|
|
21950
|
+
return ImagesApiFp(this.configuration).apiV2ImagesPost(files, options).then((request) => request(this.axios, this.basePath));
|
|
22049
21951
|
}
|
|
22050
21952
|
}
|
|
22051
21953
|
|