ch-api-client-typescript2 3.1.3 → 3.1.4
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 +98 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +208 -0
- package/package.json +1 -1
- package/src/api.ts +197 -0
package/lib/api.js
CHANGED
|
@@ -10444,6 +10444,106 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
10444
10444
|
});
|
|
10445
10445
|
});
|
|
10446
10446
|
},
|
|
10447
|
+
/**
|
|
10448
|
+
*
|
|
10449
|
+
* @summary Get all HospitalServiceMedias.
|
|
10450
|
+
* @param {string} hospitalId
|
|
10451
|
+
* @param {string} hospitalSpecialtyId
|
|
10452
|
+
* @param {string} [id]
|
|
10453
|
+
* @param {MediaType} [mediaType]
|
|
10454
|
+
* @param {number} [page]
|
|
10455
|
+
* @param {number} [limit]
|
|
10456
|
+
* @param {Date} [lastRetrieved]
|
|
10457
|
+
* @param {*} [options] Override http request option.
|
|
10458
|
+
* @throws {RequiredError}
|
|
10459
|
+
*/
|
|
10460
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
10461
|
+
if (options === void 0) { options = {}; }
|
|
10462
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10463
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10464
|
+
return __generator(this, function (_a) {
|
|
10465
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10466
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId);
|
|
10467
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
10468
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
10469
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias"
|
|
10470
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
10471
|
+
.replace("{".concat("hospitalSpecialtyId", "}"), encodeURIComponent(String(hospitalSpecialtyId)));
|
|
10472
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10473
|
+
if (configuration) {
|
|
10474
|
+
baseOptions = configuration.baseOptions;
|
|
10475
|
+
}
|
|
10476
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10477
|
+
localVarHeaderParameter = {};
|
|
10478
|
+
localVarQueryParameter = {};
|
|
10479
|
+
if (id !== undefined) {
|
|
10480
|
+
localVarQueryParameter['Id'] = id;
|
|
10481
|
+
}
|
|
10482
|
+
if (mediaType !== undefined) {
|
|
10483
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
10484
|
+
}
|
|
10485
|
+
if (page !== undefined) {
|
|
10486
|
+
localVarQueryParameter['page'] = page;
|
|
10487
|
+
}
|
|
10488
|
+
if (limit !== undefined) {
|
|
10489
|
+
localVarQueryParameter['limit'] = limit;
|
|
10490
|
+
}
|
|
10491
|
+
if (lastRetrieved !== undefined) {
|
|
10492
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
10493
|
+
lastRetrieved.toISOString() :
|
|
10494
|
+
lastRetrieved;
|
|
10495
|
+
}
|
|
10496
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10497
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10498
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10499
|
+
return [2 /*return*/, {
|
|
10500
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10501
|
+
options: localVarRequestOptions,
|
|
10502
|
+
}];
|
|
10503
|
+
});
|
|
10504
|
+
});
|
|
10505
|
+
},
|
|
10506
|
+
/**
|
|
10507
|
+
*
|
|
10508
|
+
* @summary Get HospitalServiceMedia.
|
|
10509
|
+
* @param {string} hospitalId
|
|
10510
|
+
* @param {string} hospitalSpecialtyId
|
|
10511
|
+
* @param {string} mediaId
|
|
10512
|
+
* @param {*} [options] Override http request option.
|
|
10513
|
+
* @throws {RequiredError}
|
|
10514
|
+
*/
|
|
10515
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
10516
|
+
if (options === void 0) { options = {}; }
|
|
10517
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
10518
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
10519
|
+
return __generator(this, function (_a) {
|
|
10520
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
10521
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId);
|
|
10522
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
10523
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
10524
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
10525
|
+
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
10526
|
+
localVarPath = "/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}"
|
|
10527
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
10528
|
+
.replace("{".concat("hospitalSpecialtyId", "}"), encodeURIComponent(String(hospitalSpecialtyId)))
|
|
10529
|
+
.replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
|
|
10530
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10531
|
+
if (configuration) {
|
|
10532
|
+
baseOptions = configuration.baseOptions;
|
|
10533
|
+
}
|
|
10534
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
10535
|
+
localVarHeaderParameter = {};
|
|
10536
|
+
localVarQueryParameter = {};
|
|
10537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10538
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10539
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10540
|
+
return [2 /*return*/, {
|
|
10541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10542
|
+
options: localVarRequestOptions,
|
|
10543
|
+
}];
|
|
10544
|
+
});
|
|
10545
|
+
});
|
|
10546
|
+
},
|
|
10447
10547
|
/**
|
|
10448
10548
|
*
|
|
10449
10549
|
* @summary Get all HospitalSpecialties.
|
|
@@ -11485,6 +11585,54 @@ var HospitalsApiFp = function (configuration) {
|
|
|
11485
11585
|
});
|
|
11486
11586
|
});
|
|
11487
11587
|
},
|
|
11588
|
+
/**
|
|
11589
|
+
*
|
|
11590
|
+
* @summary Get all HospitalServiceMedias.
|
|
11591
|
+
* @param {string} hospitalId
|
|
11592
|
+
* @param {string} hospitalSpecialtyId
|
|
11593
|
+
* @param {string} [id]
|
|
11594
|
+
* @param {MediaType} [mediaType]
|
|
11595
|
+
* @param {number} [page]
|
|
11596
|
+
* @param {number} [limit]
|
|
11597
|
+
* @param {Date} [lastRetrieved]
|
|
11598
|
+
* @param {*} [options] Override http request option.
|
|
11599
|
+
* @throws {RequiredError}
|
|
11600
|
+
*/
|
|
11601
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
11602
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11603
|
+
var localVarAxiosArgs;
|
|
11604
|
+
return __generator(this, function (_a) {
|
|
11605
|
+
switch (_a.label) {
|
|
11606
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
11607
|
+
case 1:
|
|
11608
|
+
localVarAxiosArgs = _a.sent();
|
|
11609
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11610
|
+
}
|
|
11611
|
+
});
|
|
11612
|
+
});
|
|
11613
|
+
},
|
|
11614
|
+
/**
|
|
11615
|
+
*
|
|
11616
|
+
* @summary Get HospitalServiceMedia.
|
|
11617
|
+
* @param {string} hospitalId
|
|
11618
|
+
* @param {string} hospitalSpecialtyId
|
|
11619
|
+
* @param {string} mediaId
|
|
11620
|
+
* @param {*} [options] Override http request option.
|
|
11621
|
+
* @throws {RequiredError}
|
|
11622
|
+
*/
|
|
11623
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
11624
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11625
|
+
var localVarAxiosArgs;
|
|
11626
|
+
return __generator(this, function (_a) {
|
|
11627
|
+
switch (_a.label) {
|
|
11628
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options)];
|
|
11629
|
+
case 1:
|
|
11630
|
+
localVarAxiosArgs = _a.sent();
|
|
11631
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
11632
|
+
}
|
|
11633
|
+
});
|
|
11634
|
+
});
|
|
11635
|
+
},
|
|
11488
11636
|
/**
|
|
11489
11637
|
*
|
|
11490
11638
|
* @summary Get all HospitalSpecialties.
|
|
@@ -11997,6 +12145,34 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
11997
12145
|
apiV2HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options) {
|
|
11998
12146
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
11999
12147
|
},
|
|
12148
|
+
/**
|
|
12149
|
+
*
|
|
12150
|
+
* @summary Get all HospitalServiceMedias.
|
|
12151
|
+
* @param {string} hospitalId
|
|
12152
|
+
* @param {string} hospitalSpecialtyId
|
|
12153
|
+
* @param {string} [id]
|
|
12154
|
+
* @param {MediaType} [mediaType]
|
|
12155
|
+
* @param {number} [page]
|
|
12156
|
+
* @param {number} [limit]
|
|
12157
|
+
* @param {Date} [lastRetrieved]
|
|
12158
|
+
* @param {*} [options] Override http request option.
|
|
12159
|
+
* @throws {RequiredError}
|
|
12160
|
+
*/
|
|
12161
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12162
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12163
|
+
},
|
|
12164
|
+
/**
|
|
12165
|
+
*
|
|
12166
|
+
* @summary Get HospitalServiceMedia.
|
|
12167
|
+
* @param {string} hospitalId
|
|
12168
|
+
* @param {string} hospitalSpecialtyId
|
|
12169
|
+
* @param {string} mediaId
|
|
12170
|
+
* @param {*} [options] Override http request option.
|
|
12171
|
+
* @throws {RequiredError}
|
|
12172
|
+
*/
|
|
12173
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
12174
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
12175
|
+
},
|
|
12000
12176
|
/**
|
|
12001
12177
|
*
|
|
12002
12178
|
* @summary Get all HospitalSpecialties.
|
|
@@ -12443,6 +12619,38 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
12443
12619
|
var _this = this;
|
|
12444
12620
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12445
12621
|
};
|
|
12622
|
+
/**
|
|
12623
|
+
*
|
|
12624
|
+
* @summary Get all HospitalServiceMedias.
|
|
12625
|
+
* @param {string} hospitalId
|
|
12626
|
+
* @param {string} hospitalSpecialtyId
|
|
12627
|
+
* @param {string} [id]
|
|
12628
|
+
* @param {MediaType} [mediaType]
|
|
12629
|
+
* @param {number} [page]
|
|
12630
|
+
* @param {number} [limit]
|
|
12631
|
+
* @param {Date} [lastRetrieved]
|
|
12632
|
+
* @param {*} [options] Override http request option.
|
|
12633
|
+
* @throws {RequiredError}
|
|
12634
|
+
* @memberof HospitalsApi
|
|
12635
|
+
*/
|
|
12636
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet = function (hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
12637
|
+
var _this = this;
|
|
12638
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12639
|
+
};
|
|
12640
|
+
/**
|
|
12641
|
+
*
|
|
12642
|
+
* @summary Get HospitalServiceMedia.
|
|
12643
|
+
* @param {string} hospitalId
|
|
12644
|
+
* @param {string} hospitalSpecialtyId
|
|
12645
|
+
* @param {string} mediaId
|
|
12646
|
+
* @param {*} [options] Override http request option.
|
|
12647
|
+
* @throws {RequiredError}
|
|
12648
|
+
* @memberof HospitalsApi
|
|
12649
|
+
*/
|
|
12650
|
+
HospitalsApi.prototype.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet = function (hospitalId, hospitalSpecialtyId, mediaId, options) {
|
|
12651
|
+
var _this = this;
|
|
12652
|
+
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12653
|
+
};
|
|
12446
12654
|
/**
|
|
12447
12655
|
*
|
|
12448
12656
|
* @summary Get all HospitalSpecialties.
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -19809,6 +19809,113 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19809
19809
|
|
|
19810
19810
|
|
|
19811
19811
|
|
|
19812
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19813
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19814
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19815
|
+
|
|
19816
|
+
return {
|
|
19817
|
+
url: toPathString(localVarUrlObj),
|
|
19818
|
+
options: localVarRequestOptions,
|
|
19819
|
+
};
|
|
19820
|
+
},
|
|
19821
|
+
/**
|
|
19822
|
+
*
|
|
19823
|
+
* @summary Get all HospitalServiceMedias.
|
|
19824
|
+
* @param {string} hospitalId
|
|
19825
|
+
* @param {string} hospitalSpecialtyId
|
|
19826
|
+
* @param {string} [id]
|
|
19827
|
+
* @param {MediaType} [mediaType]
|
|
19828
|
+
* @param {number} [page]
|
|
19829
|
+
* @param {number} [limit]
|
|
19830
|
+
* @param {Date} [lastRetrieved]
|
|
19831
|
+
* @param {*} [options] Override http request option.
|
|
19832
|
+
* @throws {RequiredError}
|
|
19833
|
+
*/
|
|
19834
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet: async (hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19835
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19836
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalId', hospitalId)
|
|
19837
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
19838
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
|
|
19839
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias`
|
|
19840
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
19841
|
+
.replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)));
|
|
19842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19844
|
+
let baseOptions;
|
|
19845
|
+
if (configuration) {
|
|
19846
|
+
baseOptions = configuration.baseOptions;
|
|
19847
|
+
}
|
|
19848
|
+
|
|
19849
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19850
|
+
const localVarHeaderParameter = {} as any;
|
|
19851
|
+
const localVarQueryParameter = {} as any;
|
|
19852
|
+
|
|
19853
|
+
if (id !== undefined) {
|
|
19854
|
+
localVarQueryParameter['Id'] = id;
|
|
19855
|
+
}
|
|
19856
|
+
|
|
19857
|
+
if (mediaType !== undefined) {
|
|
19858
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
19859
|
+
}
|
|
19860
|
+
|
|
19861
|
+
if (page !== undefined) {
|
|
19862
|
+
localVarQueryParameter['page'] = page;
|
|
19863
|
+
}
|
|
19864
|
+
|
|
19865
|
+
if (limit !== undefined) {
|
|
19866
|
+
localVarQueryParameter['limit'] = limit;
|
|
19867
|
+
}
|
|
19868
|
+
|
|
19869
|
+
if (lastRetrieved !== undefined) {
|
|
19870
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
19871
|
+
(lastRetrieved as any).toISOString() :
|
|
19872
|
+
lastRetrieved;
|
|
19873
|
+
}
|
|
19874
|
+
|
|
19875
|
+
|
|
19876
|
+
|
|
19877
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19879
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19880
|
+
|
|
19881
|
+
return {
|
|
19882
|
+
url: toPathString(localVarUrlObj),
|
|
19883
|
+
options: localVarRequestOptions,
|
|
19884
|
+
};
|
|
19885
|
+
},
|
|
19886
|
+
/**
|
|
19887
|
+
*
|
|
19888
|
+
* @summary Get HospitalServiceMedia.
|
|
19889
|
+
* @param {string} hospitalId
|
|
19890
|
+
* @param {string} hospitalSpecialtyId
|
|
19891
|
+
* @param {string} mediaId
|
|
19892
|
+
* @param {*} [options] Override http request option.
|
|
19893
|
+
* @throws {RequiredError}
|
|
19894
|
+
*/
|
|
19895
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet: async (hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19896
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19897
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalId', hospitalId)
|
|
19898
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
19899
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'hospitalSpecialtyId', hospitalSpecialtyId)
|
|
19900
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
19901
|
+
assertParamExists('apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId)
|
|
19902
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/specialties/{hospitalSpecialtyId}/medias/{mediaId}`
|
|
19903
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
19904
|
+
.replace(`{${"hospitalSpecialtyId"}}`, encodeURIComponent(String(hospitalSpecialtyId)))
|
|
19905
|
+
.replace(`{${"mediaId"}}`, encodeURIComponent(String(mediaId)));
|
|
19906
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19907
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19908
|
+
let baseOptions;
|
|
19909
|
+
if (configuration) {
|
|
19910
|
+
baseOptions = configuration.baseOptions;
|
|
19911
|
+
}
|
|
19912
|
+
|
|
19913
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19914
|
+
const localVarHeaderParameter = {} as any;
|
|
19915
|
+
const localVarQueryParameter = {} as any;
|
|
19916
|
+
|
|
19917
|
+
|
|
19918
|
+
|
|
19812
19919
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19813
19920
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19814
19921
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -20802,6 +20909,36 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
20802
20909
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options);
|
|
20803
20910
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20804
20911
|
},
|
|
20912
|
+
/**
|
|
20913
|
+
*
|
|
20914
|
+
* @summary Get all HospitalServiceMedias.
|
|
20915
|
+
* @param {string} hospitalId
|
|
20916
|
+
* @param {string} hospitalSpecialtyId
|
|
20917
|
+
* @param {string} [id]
|
|
20918
|
+
* @param {MediaType} [mediaType]
|
|
20919
|
+
* @param {number} [page]
|
|
20920
|
+
* @param {number} [limit]
|
|
20921
|
+
* @param {Date} [lastRetrieved]
|
|
20922
|
+
* @param {*} [options] Override http request option.
|
|
20923
|
+
* @throws {RequiredError}
|
|
20924
|
+
*/
|
|
20925
|
+
async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediasModel>> {
|
|
20926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options);
|
|
20927
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20928
|
+
},
|
|
20929
|
+
/**
|
|
20930
|
+
*
|
|
20931
|
+
* @summary Get HospitalServiceMedia.
|
|
20932
|
+
* @param {string} hospitalId
|
|
20933
|
+
* @param {string} hospitalSpecialtyId
|
|
20934
|
+
* @param {string} mediaId
|
|
20935
|
+
* @param {*} [options] Override http request option.
|
|
20936
|
+
* @throws {RequiredError}
|
|
20937
|
+
*/
|
|
20938
|
+
async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MediaModel>> {
|
|
20939
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options);
|
|
20940
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
20941
|
+
},
|
|
20805
20942
|
/**
|
|
20806
20943
|
*
|
|
20807
20944
|
* @summary Get all HospitalSpecialties.
|
|
@@ -21224,6 +21361,34 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
21224
21361
|
apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId: string, hospitalName?: string, hospitalSlug?: string, specialtyId?: string, specialtyName?: string, specialtyTypeId?: string, hospitalSpecialtySlug?: string, title?: string, marketingType?: MarketingType, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, includeServices?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalSpecialtiesModel> {
|
|
21225
21362
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21226
21363
|
},
|
|
21364
|
+
/**
|
|
21365
|
+
*
|
|
21366
|
+
* @summary Get all HospitalServiceMedias.
|
|
21367
|
+
* @param {string} hospitalId
|
|
21368
|
+
* @param {string} hospitalSpecialtyId
|
|
21369
|
+
* @param {string} [id]
|
|
21370
|
+
* @param {MediaType} [mediaType]
|
|
21371
|
+
* @param {number} [page]
|
|
21372
|
+
* @param {number} [limit]
|
|
21373
|
+
* @param {Date} [lastRetrieved]
|
|
21374
|
+
* @param {*} [options] Override http request option.
|
|
21375
|
+
* @throws {RequiredError}
|
|
21376
|
+
*/
|
|
21377
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<MediasModel> {
|
|
21378
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
21379
|
+
},
|
|
21380
|
+
/**
|
|
21381
|
+
*
|
|
21382
|
+
* @summary Get HospitalServiceMedia.
|
|
21383
|
+
* @param {string} hospitalId
|
|
21384
|
+
* @param {string} hospitalSpecialtyId
|
|
21385
|
+
* @param {string} mediaId
|
|
21386
|
+
* @param {*} [options] Override http request option.
|
|
21387
|
+
* @throws {RequiredError}
|
|
21388
|
+
*/
|
|
21389
|
+
apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
21390
|
+
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(axios, basePath));
|
|
21391
|
+
},
|
|
21227
21392
|
/**
|
|
21228
21393
|
*
|
|
21229
21394
|
* @summary Get all HospitalSpecialties.
|
|
@@ -21666,6 +21831,38 @@ export class HospitalsApi extends BaseAPI {
|
|
|
21666
21831
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, hospitalSpecialtySlug, title, marketingType, languageCode, showHidden, returnDefaultValue, includeServices, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21667
21832
|
}
|
|
21668
21833
|
|
|
21834
|
+
/**
|
|
21835
|
+
*
|
|
21836
|
+
* @summary Get all HospitalServiceMedias.
|
|
21837
|
+
* @param {string} hospitalId
|
|
21838
|
+
* @param {string} hospitalSpecialtyId
|
|
21839
|
+
* @param {string} [id]
|
|
21840
|
+
* @param {MediaType} [mediaType]
|
|
21841
|
+
* @param {number} [page]
|
|
21842
|
+
* @param {number} [limit]
|
|
21843
|
+
* @param {Date} [lastRetrieved]
|
|
21844
|
+
* @param {*} [options] Override http request option.
|
|
21845
|
+
* @throws {RequiredError}
|
|
21846
|
+
* @memberof HospitalsApi
|
|
21847
|
+
*/
|
|
21848
|
+
public apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId: string, hospitalSpecialtyId: string, id?: string, mediaType?: MediaType, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
|
|
21849
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasGet(hospitalId, hospitalSpecialtyId, id, mediaType, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
21850
|
+
}
|
|
21851
|
+
|
|
21852
|
+
/**
|
|
21853
|
+
*
|
|
21854
|
+
* @summary Get HospitalServiceMedia.
|
|
21855
|
+
* @param {string} hospitalId
|
|
21856
|
+
* @param {string} hospitalSpecialtyId
|
|
21857
|
+
* @param {string} mediaId
|
|
21858
|
+
* @param {*} [options] Override http request option.
|
|
21859
|
+
* @throws {RequiredError}
|
|
21860
|
+
* @memberof HospitalsApi
|
|
21861
|
+
*/
|
|
21862
|
+
public apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId: string, hospitalSpecialtyId: string, mediaId: string, options?: AxiosRequestConfig) {
|
|
21863
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdMediasMediaIdGet(hospitalId, hospitalSpecialtyId, mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
21864
|
+
}
|
|
21865
|
+
|
|
21669
21866
|
/**
|
|
21670
21867
|
*
|
|
21671
21868
|
* @summary Get all HospitalSpecialties.
|