ch-admin-api-client-typescript 3.4.7 → 3.5.0
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 +211 -13
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +298 -0
- package/package.json +1 -1
- package/src/api.ts +349 -13
package/lib/api.js
CHANGED
|
@@ -20798,6 +20798,160 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20798
20798
|
});
|
|
20799
20799
|
});
|
|
20800
20800
|
},
|
|
20801
|
+
/**
|
|
20802
|
+
*
|
|
20803
|
+
* @summary Get all GetAllLanguages.
|
|
20804
|
+
* @param {string} hospitalId
|
|
20805
|
+
* @param {string} [name]
|
|
20806
|
+
* @param {number} [page]
|
|
20807
|
+
* @param {number} [limit]
|
|
20808
|
+
* @param {Date} [lastRetrieved]
|
|
20809
|
+
* @param {*} [options] Override http request option.
|
|
20810
|
+
* @throws {RequiredError}
|
|
20811
|
+
*/
|
|
20812
|
+
apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
|
|
20813
|
+
if (options === void 0) { options = {}; }
|
|
20814
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20815
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20816
|
+
return __generator(this, function (_a) {
|
|
20817
|
+
switch (_a.label) {
|
|
20818
|
+
case 0:
|
|
20819
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20820
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
|
|
20821
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
|
|
20822
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
20823
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20824
|
+
if (configuration) {
|
|
20825
|
+
baseOptions = configuration.baseOptions;
|
|
20826
|
+
}
|
|
20827
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
20828
|
+
localVarHeaderParameter = {};
|
|
20829
|
+
localVarQueryParameter = {};
|
|
20830
|
+
// authentication oauth2 required
|
|
20831
|
+
// oauth required
|
|
20832
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20833
|
+
case 1:
|
|
20834
|
+
// authentication oauth2 required
|
|
20835
|
+
// oauth required
|
|
20836
|
+
_a.sent();
|
|
20837
|
+
if (name !== undefined) {
|
|
20838
|
+
localVarQueryParameter['Name'] = name;
|
|
20839
|
+
}
|
|
20840
|
+
if (page !== undefined) {
|
|
20841
|
+
localVarQueryParameter['page'] = page;
|
|
20842
|
+
}
|
|
20843
|
+
if (limit !== undefined) {
|
|
20844
|
+
localVarQueryParameter['limit'] = limit;
|
|
20845
|
+
}
|
|
20846
|
+
if (lastRetrieved !== undefined) {
|
|
20847
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
20848
|
+
lastRetrieved.toISOString() :
|
|
20849
|
+
lastRetrieved;
|
|
20850
|
+
}
|
|
20851
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20852
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20853
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20854
|
+
return [2 /*return*/, {
|
|
20855
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20856
|
+
options: localVarRequestOptions,
|
|
20857
|
+
}];
|
|
20858
|
+
}
|
|
20859
|
+
});
|
|
20860
|
+
});
|
|
20861
|
+
},
|
|
20862
|
+
/**
|
|
20863
|
+
*
|
|
20864
|
+
* @summary Delete GetAllLanguage.
|
|
20865
|
+
* @param {string} hospitalId
|
|
20866
|
+
* @param {string} languageCode
|
|
20867
|
+
* @param {*} [options] Override http request option.
|
|
20868
|
+
* @throws {RequiredError}
|
|
20869
|
+
*/
|
|
20870
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
20871
|
+
if (options === void 0) { options = {}; }
|
|
20872
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20873
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20874
|
+
return __generator(this, function (_a) {
|
|
20875
|
+
switch (_a.label) {
|
|
20876
|
+
case 0:
|
|
20877
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20878
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'hospitalId', hospitalId);
|
|
20879
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20880
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete', 'languageCode', languageCode);
|
|
20881
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{languageCode}"
|
|
20882
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
20883
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
20884
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20885
|
+
if (configuration) {
|
|
20886
|
+
baseOptions = configuration.baseOptions;
|
|
20887
|
+
}
|
|
20888
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
20889
|
+
localVarHeaderParameter = {};
|
|
20890
|
+
localVarQueryParameter = {};
|
|
20891
|
+
// authentication oauth2 required
|
|
20892
|
+
// oauth required
|
|
20893
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20894
|
+
case 1:
|
|
20895
|
+
// authentication oauth2 required
|
|
20896
|
+
// oauth required
|
|
20897
|
+
_a.sent();
|
|
20898
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20899
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20900
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20901
|
+
return [2 /*return*/, {
|
|
20902
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20903
|
+
options: localVarRequestOptions,
|
|
20904
|
+
}];
|
|
20905
|
+
}
|
|
20906
|
+
});
|
|
20907
|
+
});
|
|
20908
|
+
},
|
|
20909
|
+
/**
|
|
20910
|
+
*
|
|
20911
|
+
* @summary Create HospitalLanguages.
|
|
20912
|
+
* @param {string} hospitalId
|
|
20913
|
+
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
20914
|
+
* @param {*} [options] Override http request option.
|
|
20915
|
+
* @throws {RequiredError}
|
|
20916
|
+
*/
|
|
20917
|
+
apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
|
|
20918
|
+
if (options === void 0) { options = {}; }
|
|
20919
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20920
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20921
|
+
return __generator(this, function (_a) {
|
|
20922
|
+
switch (_a.label) {
|
|
20923
|
+
case 0:
|
|
20924
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20925
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesPost', 'hospitalId', hospitalId);
|
|
20926
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
|
|
20927
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
20928
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20929
|
+
if (configuration) {
|
|
20930
|
+
baseOptions = configuration.baseOptions;
|
|
20931
|
+
}
|
|
20932
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20933
|
+
localVarHeaderParameter = {};
|
|
20934
|
+
localVarQueryParameter = {};
|
|
20935
|
+
// authentication oauth2 required
|
|
20936
|
+
// oauth required
|
|
20937
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20938
|
+
case 1:
|
|
20939
|
+
// authentication oauth2 required
|
|
20940
|
+
// oauth required
|
|
20941
|
+
_a.sent();
|
|
20942
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20943
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20944
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20945
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20946
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalLanguageCommand, localVarRequestOptions, configuration);
|
|
20947
|
+
return [2 /*return*/, {
|
|
20948
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20949
|
+
options: localVarRequestOptions,
|
|
20950
|
+
}];
|
|
20951
|
+
}
|
|
20952
|
+
});
|
|
20953
|
+
});
|
|
20954
|
+
},
|
|
20801
20955
|
/**
|
|
20802
20956
|
*
|
|
20803
20957
|
* @summary Get all HospitalMedias.
|
|
@@ -23604,6 +23758,72 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
23604
23758
|
});
|
|
23605
23759
|
});
|
|
23606
23760
|
},
|
|
23761
|
+
/**
|
|
23762
|
+
*
|
|
23763
|
+
* @summary Get all GetAllLanguages.
|
|
23764
|
+
* @param {string} hospitalId
|
|
23765
|
+
* @param {string} [name]
|
|
23766
|
+
* @param {number} [page]
|
|
23767
|
+
* @param {number} [limit]
|
|
23768
|
+
* @param {Date} [lastRetrieved]
|
|
23769
|
+
* @param {*} [options] Override http request option.
|
|
23770
|
+
* @throws {RequiredError}
|
|
23771
|
+
*/
|
|
23772
|
+
apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
|
|
23773
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23774
|
+
var localVarAxiosArgs;
|
|
23775
|
+
return __generator(this, function (_a) {
|
|
23776
|
+
switch (_a.label) {
|
|
23777
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options)];
|
|
23778
|
+
case 1:
|
|
23779
|
+
localVarAxiosArgs = _a.sent();
|
|
23780
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23781
|
+
}
|
|
23782
|
+
});
|
|
23783
|
+
});
|
|
23784
|
+
},
|
|
23785
|
+
/**
|
|
23786
|
+
*
|
|
23787
|
+
* @summary Delete GetAllLanguage.
|
|
23788
|
+
* @param {string} hospitalId
|
|
23789
|
+
* @param {string} languageCode
|
|
23790
|
+
* @param {*} [options] Override http request option.
|
|
23791
|
+
* @throws {RequiredError}
|
|
23792
|
+
*/
|
|
23793
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
23794
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23795
|
+
var localVarAxiosArgs;
|
|
23796
|
+
return __generator(this, function (_a) {
|
|
23797
|
+
switch (_a.label) {
|
|
23798
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options)];
|
|
23799
|
+
case 1:
|
|
23800
|
+
localVarAxiosArgs = _a.sent();
|
|
23801
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23802
|
+
}
|
|
23803
|
+
});
|
|
23804
|
+
});
|
|
23805
|
+
},
|
|
23806
|
+
/**
|
|
23807
|
+
*
|
|
23808
|
+
* @summary Create HospitalLanguages.
|
|
23809
|
+
* @param {string} hospitalId
|
|
23810
|
+
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
23811
|
+
* @param {*} [options] Override http request option.
|
|
23812
|
+
* @throws {RequiredError}
|
|
23813
|
+
*/
|
|
23814
|
+
apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
|
|
23815
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23816
|
+
var localVarAxiosArgs;
|
|
23817
|
+
return __generator(this, function (_a) {
|
|
23818
|
+
switch (_a.label) {
|
|
23819
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesPost(hospitalId, createHospitalLanguageCommand, options)];
|
|
23820
|
+
case 1:
|
|
23821
|
+
localVarAxiosArgs = _a.sent();
|
|
23822
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23823
|
+
}
|
|
23824
|
+
});
|
|
23825
|
+
});
|
|
23826
|
+
},
|
|
23607
23827
|
/**
|
|
23608
23828
|
*
|
|
23609
23829
|
* @summary Get all HospitalMedias.
|
|
@@ -24851,6 +25071,42 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
24851
25071
|
apiV1HospitalsHospitalIdHandlesPost: function (hospitalId, createHospitalSnsHandleCommand, options) {
|
|
24852
25072
|
return localVarFp.apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
|
|
24853
25073
|
},
|
|
25074
|
+
/**
|
|
25075
|
+
*
|
|
25076
|
+
* @summary Get all GetAllLanguages.
|
|
25077
|
+
* @param {string} hospitalId
|
|
25078
|
+
* @param {string} [name]
|
|
25079
|
+
* @param {number} [page]
|
|
25080
|
+
* @param {number} [limit]
|
|
25081
|
+
* @param {Date} [lastRetrieved]
|
|
25082
|
+
* @param {*} [options] Override http request option.
|
|
25083
|
+
* @throws {RequiredError}
|
|
25084
|
+
*/
|
|
25085
|
+
apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
|
|
25086
|
+
return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
25087
|
+
},
|
|
25088
|
+
/**
|
|
25089
|
+
*
|
|
25090
|
+
* @summary Delete GetAllLanguage.
|
|
25091
|
+
* @param {string} hospitalId
|
|
25092
|
+
* @param {string} languageCode
|
|
25093
|
+
* @param {*} [options] Override http request option.
|
|
25094
|
+
* @throws {RequiredError}
|
|
25095
|
+
*/
|
|
25096
|
+
apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
|
|
25097
|
+
return localVarFp.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
25098
|
+
},
|
|
25099
|
+
/**
|
|
25100
|
+
*
|
|
25101
|
+
* @summary Create HospitalLanguages.
|
|
25102
|
+
* @param {string} hospitalId
|
|
25103
|
+
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
25104
|
+
* @param {*} [options] Override http request option.
|
|
25105
|
+
* @throws {RequiredError}
|
|
25106
|
+
*/
|
|
25107
|
+
apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
|
|
25108
|
+
return localVarFp.apiV1HospitalsHospitalIdLanguagesPost(hospitalId, createHospitalLanguageCommand, options).then(function (request) { return request(axios, basePath); });
|
|
25109
|
+
},
|
|
24854
25110
|
/**
|
|
24855
25111
|
*
|
|
24856
25112
|
* @summary Get all HospitalMedias.
|
|
@@ -25776,6 +26032,48 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
25776
26032
|
var _this = this;
|
|
25777
26033
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25778
26034
|
};
|
|
26035
|
+
/**
|
|
26036
|
+
*
|
|
26037
|
+
* @summary Get all GetAllLanguages.
|
|
26038
|
+
* @param {string} hospitalId
|
|
26039
|
+
* @param {string} [name]
|
|
26040
|
+
* @param {number} [page]
|
|
26041
|
+
* @param {number} [limit]
|
|
26042
|
+
* @param {Date} [lastRetrieved]
|
|
26043
|
+
* @param {*} [options] Override http request option.
|
|
26044
|
+
* @throws {RequiredError}
|
|
26045
|
+
* @memberof HospitalsApi
|
|
26046
|
+
*/
|
|
26047
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesGet = function (hospitalId, name, page, limit, lastRetrieved, options) {
|
|
26048
|
+
var _this = this;
|
|
26049
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26050
|
+
};
|
|
26051
|
+
/**
|
|
26052
|
+
*
|
|
26053
|
+
* @summary Delete GetAllLanguage.
|
|
26054
|
+
* @param {string} hospitalId
|
|
26055
|
+
* @param {string} languageCode
|
|
26056
|
+
* @param {*} [options] Override http request option.
|
|
26057
|
+
* @throws {RequiredError}
|
|
26058
|
+
* @memberof HospitalsApi
|
|
26059
|
+
*/
|
|
26060
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete = function (hospitalId, languageCode, options) {
|
|
26061
|
+
var _this = this;
|
|
26062
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26063
|
+
};
|
|
26064
|
+
/**
|
|
26065
|
+
*
|
|
26066
|
+
* @summary Create HospitalLanguages.
|
|
26067
|
+
* @param {string} hospitalId
|
|
26068
|
+
* @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
|
|
26069
|
+
* @param {*} [options] Override http request option.
|
|
26070
|
+
* @throws {RequiredError}
|
|
26071
|
+
* @memberof HospitalsApi
|
|
26072
|
+
*/
|
|
26073
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesPost = function (hospitalId, createHospitalLanguageCommand, options) {
|
|
26074
|
+
var _this = this;
|
|
26075
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesPost(hospitalId, createHospitalLanguageCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26076
|
+
};
|
|
25779
26077
|
/**
|
|
25780
26078
|
*
|
|
25781
26079
|
* @summary Get all HospitalMedias.
|