ch-admin-api-client-typescript 4.2.7 → 4.2.8
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 +4 -8
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +11 -18
- package/package.json +1 -1
- package/src/api.ts +11 -18
package/lib/api.js
CHANGED
|
@@ -21830,11 +21830,10 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21830
21830
|
* @summary Delete GetAllLanguage.
|
|
21831
21831
|
* @param {string} hospitalId
|
|
21832
21832
|
* @param {string} languageCode
|
|
21833
|
-
* @param {string} langaugeCode
|
|
21834
21833
|
* @param {*} [options] Override http request option.
|
|
21835
21834
|
* @throws {RequiredError}
|
|
21836
21835
|
*/
|
|
21837
|
-
|
|
21836
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
21838
21837
|
if (options === void 0) { options = {}; }
|
|
21839
21838
|
return __awaiter(_this, void 0, void 0, function () {
|
|
21840
21839
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -21842,15 +21841,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
21842
21841
|
switch (_a.label) {
|
|
21843
21842
|
case 0:
|
|
21844
21843
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
21845
|
-
common_1.assertParamExists('
|
|
21844
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'hospitalId', hospitalId);
|
|
21846
21845
|
// verify required parameter 'languageCode' is not null or undefined
|
|
21847
|
-
common_1.assertParamExists('
|
|
21848
|
-
|
|
21849
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'langaugeCode', langaugeCode);
|
|
21850
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{langaugeCode}"
|
|
21846
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'languageCode', languageCode);
|
|
21847
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{languageCode}"
|
|
21851
21848
|
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
21852
|
-
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
|
|
21853
|
-
.replace("{" + "langaugeCode" + "}", encodeURIComponent(String(langaugeCode)));
|
|
21849
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
21854
21850
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21855
21851
|
if (configuration) {
|
|
21856
21852
|
baseOptions = configuration.baseOptions;
|
|
@@ -24757,16 +24753,15 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
24757
24753
|
* @summary Delete GetAllLanguage.
|
|
24758
24754
|
* @param {string} hospitalId
|
|
24759
24755
|
* @param {string} languageCode
|
|
24760
|
-
* @param {string} langaugeCode
|
|
24761
24756
|
* @param {*} [options] Override http request option.
|
|
24762
24757
|
* @throws {RequiredError}
|
|
24763
24758
|
*/
|
|
24764
|
-
|
|
24759
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
24765
24760
|
return __awaiter(this, void 0, void 0, function () {
|
|
24766
24761
|
var localVarAxiosArgs;
|
|
24767
24762
|
return __generator(this, function (_a) {
|
|
24768
24763
|
switch (_a.label) {
|
|
24769
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
24764
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options)];
|
|
24770
24765
|
case 1:
|
|
24771
24766
|
localVarAxiosArgs = _a.sent();
|
|
24772
24767
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -26061,12 +26056,11 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
26061
26056
|
* @summary Delete GetAllLanguage.
|
|
26062
26057
|
* @param {string} hospitalId
|
|
26063
26058
|
* @param {string} languageCode
|
|
26064
|
-
* @param {string} langaugeCode
|
|
26065
26059
|
* @param {*} [options] Override http request option.
|
|
26066
26060
|
* @throws {RequiredError}
|
|
26067
26061
|
*/
|
|
26068
|
-
|
|
26069
|
-
return localVarFp.
|
|
26062
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
26063
|
+
return localVarFp.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
26070
26064
|
},
|
|
26071
26065
|
/**
|
|
26072
26066
|
*
|
|
@@ -27025,14 +27019,13 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
27025
27019
|
* @summary Delete GetAllLanguage.
|
|
27026
27020
|
* @param {string} hospitalId
|
|
27027
27021
|
* @param {string} languageCode
|
|
27028
|
-
* @param {string} langaugeCode
|
|
27029
27022
|
* @param {*} [options] Override http request option.
|
|
27030
27023
|
* @throws {RequiredError}
|
|
27031
27024
|
* @memberof HospitalsApi
|
|
27032
27025
|
*/
|
|
27033
|
-
HospitalsApi.prototype.
|
|
27026
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete = function (hospitalId, languageCode, options) {
|
|
27034
27027
|
var _this = this;
|
|
27035
|
-
return exports.HospitalsApiFp(this.configuration).
|
|
27028
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
27036
27029
|
};
|
|
27037
27030
|
/**
|
|
27038
27031
|
*
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -33093,21 +33093,17 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
33093
33093
|
* @summary Delete GetAllLanguage.
|
|
33094
33094
|
* @param {string} hospitalId
|
|
33095
33095
|
* @param {string} languageCode
|
|
33096
|
-
* @param {string} langaugeCode
|
|
33097
33096
|
* @param {*} [options] Override http request option.
|
|
33098
33097
|
* @throws {RequiredError}
|
|
33099
33098
|
*/
|
|
33100
|
-
|
|
33099
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: async (hospitalId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33101
33100
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
33102
|
-
assertParamExists('
|
|
33101
|
+
assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'hospitalId', hospitalId)
|
|
33103
33102
|
// verify required parameter 'languageCode' is not null or undefined
|
|
33104
|
-
assertParamExists('
|
|
33105
|
-
|
|
33106
|
-
assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'langaugeCode', langaugeCode)
|
|
33107
|
-
const localVarPath = `/api/v1/hospitals/{hospitalId}/languages/{langaugeCode}`
|
|
33103
|
+
assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'languageCode', languageCode)
|
|
33104
|
+
const localVarPath = `/api/v1/hospitals/{hospitalId}/languages/{languageCode}`
|
|
33108
33105
|
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
33109
|
-
.replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
|
|
33110
|
-
.replace(`{${"langaugeCode"}}`, encodeURIComponent(String(langaugeCode)));
|
|
33106
|
+
.replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
|
|
33111
33107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33112
33108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33113
33109
|
let baseOptions;
|
|
@@ -35668,12 +35664,11 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
35668
35664
|
* @summary Delete GetAllLanguage.
|
|
35669
35665
|
* @param {string} hospitalId
|
|
35670
35666
|
* @param {string} languageCode
|
|
35671
|
-
* @param {string} langaugeCode
|
|
35672
35667
|
* @param {*} [options] Override http request option.
|
|
35673
35668
|
* @throws {RequiredError}
|
|
35674
35669
|
*/
|
|
35675
|
-
async
|
|
35676
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
35670
|
+
async apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
35671
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options);
|
|
35677
35672
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
35678
35673
|
},
|
|
35679
35674
|
/**
|
|
@@ -36613,12 +36608,11 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
36613
36608
|
* @summary Delete GetAllLanguage.
|
|
36614
36609
|
* @param {string} hospitalId
|
|
36615
36610
|
* @param {string} languageCode
|
|
36616
|
-
* @param {string} langaugeCode
|
|
36617
36611
|
* @param {*} [options] Override http request option.
|
|
36618
36612
|
* @throws {RequiredError}
|
|
36619
36613
|
*/
|
|
36620
|
-
|
|
36621
|
-
return localVarFp.
|
|
36614
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId: string, languageCode: string, options?: any): AxiosPromise<boolean> {
|
|
36615
|
+
return localVarFp.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then((request) => request(axios, basePath));
|
|
36622
36616
|
},
|
|
36623
36617
|
/**
|
|
36624
36618
|
*
|
|
@@ -37574,13 +37568,12 @@ export class HospitalsApi extends BaseAPI {
|
|
|
37574
37568
|
* @summary Delete GetAllLanguage.
|
|
37575
37569
|
* @param {string} hospitalId
|
|
37576
37570
|
* @param {string} languageCode
|
|
37577
|
-
* @param {string} langaugeCode
|
|
37578
37571
|
* @param {*} [options] Override http request option.
|
|
37579
37572
|
* @throws {RequiredError}
|
|
37580
37573
|
* @memberof HospitalsApi
|
|
37581
37574
|
*/
|
|
37582
|
-
public
|
|
37583
|
-
return HospitalsApiFp(this.configuration).
|
|
37575
|
+
public apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId: string, languageCode: string, options?: AxiosRequestConfig) {
|
|
37576
|
+
return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
37584
37577
|
}
|
|
37585
37578
|
|
|
37586
37579
|
/**
|