ch-admin-api-client-typescript 4.2.6 → 4.2.7

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.js CHANGED
@@ -21766,14 +21766,16 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21766
21766
  },
21767
21767
  /**
21768
21768
  *
21769
- * @summary Delete GetAllLanguage.
21769
+ * @summary Get all GetAllLanguages.
21770
21770
  * @param {string} hospitalId
21771
- * @param {string} languageCode
21772
- * @param {string} code
21771
+ * @param {string} [name]
21772
+ * @param {number} [page]
21773
+ * @param {number} [limit]
21774
+ * @param {Date} [lastRetrieved]
21773
21775
  * @param {*} [options] Override http request option.
21774
21776
  * @throws {RequiredError}
21775
21777
  */
21776
- apiV1HospitalsHospitalIdLanguagesCodeDelete: function (hospitalId, languageCode, code, options) {
21778
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
21777
21779
  if (options === void 0) { options = {}; }
21778
21780
  return __awaiter(_this, void 0, void 0, function () {
21779
21781
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21781,20 +21783,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21781
21783
  switch (_a.label) {
21782
21784
  case 0:
21783
21785
  // verify required parameter 'hospitalId' is not null or undefined
21784
- common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'hospitalId', hospitalId);
21785
- // verify required parameter 'languageCode' is not null or undefined
21786
- common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'languageCode', languageCode);
21787
- // verify required parameter 'code' is not null or undefined
21788
- common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'code', code);
21789
- localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{code}"
21790
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21791
- .replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
21792
- .replace("{" + "code" + "}", encodeURIComponent(String(code)));
21786
+ common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
21787
+ localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
21788
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
21793
21789
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21794
21790
  if (configuration) {
21795
21791
  baseOptions = configuration.baseOptions;
21796
21792
  }
21797
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21793
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21798
21794
  localVarHeaderParameter = {};
21799
21795
  localVarQueryParameter = {};
21800
21796
  // authentication oauth2 required
@@ -21804,6 +21800,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21804
21800
  // authentication oauth2 required
21805
21801
  // oauth required
21806
21802
  _a.sent();
21803
+ if (name !== undefined) {
21804
+ localVarQueryParameter['Name'] = name;
21805
+ }
21806
+ if (page !== undefined) {
21807
+ localVarQueryParameter['page'] = page;
21808
+ }
21809
+ if (limit !== undefined) {
21810
+ localVarQueryParameter['limit'] = limit;
21811
+ }
21812
+ if (lastRetrieved !== undefined) {
21813
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
21814
+ lastRetrieved.toISOString() :
21815
+ lastRetrieved;
21816
+ }
21807
21817
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21808
21818
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21809
21819
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -21817,16 +21827,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21817
21827
  },
21818
21828
  /**
21819
21829
  *
21820
- * @summary Get all GetAllLanguages.
21830
+ * @summary Delete GetAllLanguage.
21821
21831
  * @param {string} hospitalId
21822
- * @param {string} [name]
21823
- * @param {number} [page]
21824
- * @param {number} [limit]
21825
- * @param {Date} [lastRetrieved]
21832
+ * @param {string} languageCode
21833
+ * @param {string} langaugeCode
21826
21834
  * @param {*} [options] Override http request option.
21827
21835
  * @throws {RequiredError}
21828
21836
  */
21829
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
21837
+ apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete: function (hospitalId, languageCode, langaugeCode, options) {
21830
21838
  if (options === void 0) { options = {}; }
21831
21839
  return __awaiter(_this, void 0, void 0, function () {
21832
21840
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -21834,14 +21842,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21834
21842
  switch (_a.label) {
21835
21843
  case 0:
21836
21844
  // verify required parameter 'hospitalId' is not null or undefined
21837
- common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId);
21838
- localVarPath = "/api/v1/hospitals/{hospitalId}/languages"
21839
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
21845
+ common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'hospitalId', hospitalId);
21846
+ // verify required parameter 'languageCode' is not null or undefined
21847
+ common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'languageCode', languageCode);
21848
+ // verify required parameter 'langaugeCode' is not null or undefined
21849
+ common_1.assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'langaugeCode', langaugeCode);
21850
+ localVarPath = "/api/v1/hospitals/{hospitalId}/languages/{langaugeCode}"
21851
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
21852
+ .replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
21853
+ .replace("{" + "langaugeCode" + "}", encodeURIComponent(String(langaugeCode)));
21840
21854
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
21841
21855
  if (configuration) {
21842
21856
  baseOptions = configuration.baseOptions;
21843
21857
  }
21844
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
21858
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
21845
21859
  localVarHeaderParameter = {};
21846
21860
  localVarQueryParameter = {};
21847
21861
  // authentication oauth2 required
@@ -21851,20 +21865,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
21851
21865
  // authentication oauth2 required
21852
21866
  // oauth required
21853
21867
  _a.sent();
21854
- if (name !== undefined) {
21855
- localVarQueryParameter['Name'] = name;
21856
- }
21857
- if (page !== undefined) {
21858
- localVarQueryParameter['page'] = page;
21859
- }
21860
- if (limit !== undefined) {
21861
- localVarQueryParameter['limit'] = limit;
21862
- }
21863
- if (lastRetrieved !== undefined) {
21864
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
21865
- lastRetrieved.toISOString() :
21866
- lastRetrieved;
21867
- }
21868
21868
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
21869
21869
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21870
21870
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -24730,19 +24730,21 @@ exports.HospitalsApiFp = function (configuration) {
24730
24730
  },
24731
24731
  /**
24732
24732
  *
24733
- * @summary Delete GetAllLanguage.
24733
+ * @summary Get all GetAllLanguages.
24734
24734
  * @param {string} hospitalId
24735
- * @param {string} languageCode
24736
- * @param {string} code
24735
+ * @param {string} [name]
24736
+ * @param {number} [page]
24737
+ * @param {number} [limit]
24738
+ * @param {Date} [lastRetrieved]
24737
24739
  * @param {*} [options] Override http request option.
24738
24740
  * @throws {RequiredError}
24739
24741
  */
24740
- apiV1HospitalsHospitalIdLanguagesCodeDelete: function (hospitalId, languageCode, code, options) {
24742
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
24741
24743
  return __awaiter(this, void 0, void 0, function () {
24742
24744
  var localVarAxiosArgs;
24743
24745
  return __generator(this, function (_a) {
24744
24746
  switch (_a.label) {
24745
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options)];
24747
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options)];
24746
24748
  case 1:
24747
24749
  localVarAxiosArgs = _a.sent();
24748
24750
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -24752,21 +24754,19 @@ exports.HospitalsApiFp = function (configuration) {
24752
24754
  },
24753
24755
  /**
24754
24756
  *
24755
- * @summary Get all GetAllLanguages.
24757
+ * @summary Delete GetAllLanguage.
24756
24758
  * @param {string} hospitalId
24757
- * @param {string} [name]
24758
- * @param {number} [page]
24759
- * @param {number} [limit]
24760
- * @param {Date} [lastRetrieved]
24759
+ * @param {string} languageCode
24760
+ * @param {string} langaugeCode
24761
24761
  * @param {*} [options] Override http request option.
24762
24762
  * @throws {RequiredError}
24763
24763
  */
24764
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
24764
+ apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete: function (hospitalId, languageCode, langaugeCode, options) {
24765
24765
  return __awaiter(this, void 0, void 0, function () {
24766
24766
  var localVarAxiosArgs;
24767
24767
  return __generator(this, function (_a) {
24768
24768
  switch (_a.label) {
24769
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options)];
24769
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options)];
24770
24770
  case 1:
24771
24771
  localVarAxiosArgs = _a.sent();
24772
24772
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -26042,18 +26042,6 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
26042
26042
  apiV1HospitalsHospitalIdHandlesPost: function (hospitalId, createHospitalSnsHandleCommand, options) {
26043
26043
  return localVarFp.apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
26044
26044
  },
26045
- /**
26046
- *
26047
- * @summary Delete GetAllLanguage.
26048
- * @param {string} hospitalId
26049
- * @param {string} languageCode
26050
- * @param {string} code
26051
- * @param {*} [options] Override http request option.
26052
- * @throws {RequiredError}
26053
- */
26054
- apiV1HospitalsHospitalIdLanguagesCodeDelete: function (hospitalId, languageCode, code, options) {
26055
- return localVarFp.apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options).then(function (request) { return request(axios, basePath); });
26056
- },
26057
26045
  /**
26058
26046
  *
26059
26047
  * @summary Get all GetAllLanguages.
@@ -26068,6 +26056,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
26068
26056
  apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
26069
26057
  return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
26070
26058
  },
26059
+ /**
26060
+ *
26061
+ * @summary Delete GetAllLanguage.
26062
+ * @param {string} hospitalId
26063
+ * @param {string} languageCode
26064
+ * @param {string} langaugeCode
26065
+ * @param {*} [options] Override http request option.
26066
+ * @throws {RequiredError}
26067
+ */
26068
+ apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete: function (hospitalId, languageCode, langaugeCode, options) {
26069
+ return localVarFp.apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options).then(function (request) { return request(axios, basePath); });
26070
+ },
26071
26071
  /**
26072
26072
  *
26073
26073
  * @summary Create HospitalLanguages.
@@ -27006,33 +27006,33 @@ var HospitalsApi = /** @class */ (function (_super) {
27006
27006
  };
27007
27007
  /**
27008
27008
  *
27009
- * @summary Delete GetAllLanguage.
27009
+ * @summary Get all GetAllLanguages.
27010
27010
  * @param {string} hospitalId
27011
- * @param {string} languageCode
27012
- * @param {string} code
27011
+ * @param {string} [name]
27012
+ * @param {number} [page]
27013
+ * @param {number} [limit]
27014
+ * @param {Date} [lastRetrieved]
27013
27015
  * @param {*} [options] Override http request option.
27014
27016
  * @throws {RequiredError}
27015
27017
  * @memberof HospitalsApi
27016
27018
  */
27017
- HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesCodeDelete = function (hospitalId, languageCode, code, options) {
27019
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesGet = function (hospitalId, name, page, limit, lastRetrieved, options) {
27018
27020
  var _this = this;
27019
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options).then(function (request) { return request(_this.axios, _this.basePath); });
27021
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
27020
27022
  };
27021
27023
  /**
27022
27024
  *
27023
- * @summary Get all GetAllLanguages.
27025
+ * @summary Delete GetAllLanguage.
27024
27026
  * @param {string} hospitalId
27025
- * @param {string} [name]
27026
- * @param {number} [page]
27027
- * @param {number} [limit]
27028
- * @param {Date} [lastRetrieved]
27027
+ * @param {string} languageCode
27028
+ * @param {string} langaugeCode
27029
27029
  * @param {*} [options] Override http request option.
27030
27030
  * @throws {RequiredError}
27031
27031
  * @memberof HospitalsApi
27032
27032
  */
27033
- HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesGet = function (hospitalId, name, page, limit, lastRetrieved, options) {
27033
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete = function (hospitalId, languageCode, langaugeCode, options) {
27034
27034
  var _this = this;
27035
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
27035
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
27036
27036
  };
27037
27037
  /**
27038
27038
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -33030,24 +33030,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33030
33030
  },
33031
33031
  /**
33032
33032
  *
33033
- * @summary Delete GetAllLanguage.
33033
+ * @summary Get all GetAllLanguages.
33034
33034
  * @param {string} hospitalId
33035
- * @param {string} languageCode
33036
- * @param {string} code
33035
+ * @param {string} [name]
33036
+ * @param {number} [page]
33037
+ * @param {number} [limit]
33038
+ * @param {Date} [lastRetrieved]
33037
33039
  * @param {*} [options] Override http request option.
33038
33040
  * @throws {RequiredError}
33039
33041
  */
33040
- apiV1HospitalsHospitalIdLanguagesCodeDelete: async (hospitalId: string, languageCode: string, code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33042
+ apiV1HospitalsHospitalIdLanguagesGet: async (hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33041
33043
  // verify required parameter 'hospitalId' is not null or undefined
33042
- assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'hospitalId', hospitalId)
33043
- // verify required parameter 'languageCode' is not null or undefined
33044
- assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'languageCode', languageCode)
33045
- // verify required parameter 'code' is not null or undefined
33046
- assertParamExists('apiV1HospitalsHospitalIdLanguagesCodeDelete', 'code', code)
33047
- const localVarPath = `/api/v1/hospitals/{hospitalId}/languages/{code}`
33048
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
33049
- .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
33050
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
33044
+ assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId)
33045
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/languages`
33046
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
33051
33047
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33052
33048
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33053
33049
  let baseOptions;
@@ -33055,7 +33051,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33055
33051
  baseOptions = configuration.baseOptions;
33056
33052
  }
33057
33053
 
33058
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33054
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33059
33055
  const localVarHeaderParameter = {} as any;
33060
33056
  const localVarQueryParameter = {} as any;
33061
33057
 
@@ -33063,6 +33059,24 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33063
33059
  // oauth required
33064
33060
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33065
33061
 
33062
+ if (name !== undefined) {
33063
+ localVarQueryParameter['Name'] = name;
33064
+ }
33065
+
33066
+ if (page !== undefined) {
33067
+ localVarQueryParameter['page'] = page;
33068
+ }
33069
+
33070
+ if (limit !== undefined) {
33071
+ localVarQueryParameter['limit'] = limit;
33072
+ }
33073
+
33074
+ if (lastRetrieved !== undefined) {
33075
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
33076
+ (lastRetrieved as any).toISOString() :
33077
+ lastRetrieved;
33078
+ }
33079
+
33066
33080
 
33067
33081
 
33068
33082
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -33076,20 +33090,24 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33076
33090
  },
33077
33091
  /**
33078
33092
  *
33079
- * @summary Get all GetAllLanguages.
33093
+ * @summary Delete GetAllLanguage.
33080
33094
  * @param {string} hospitalId
33081
- * @param {string} [name]
33082
- * @param {number} [page]
33083
- * @param {number} [limit]
33084
- * @param {Date} [lastRetrieved]
33095
+ * @param {string} languageCode
33096
+ * @param {string} langaugeCode
33085
33097
  * @param {*} [options] Override http request option.
33086
33098
  * @throws {RequiredError}
33087
33099
  */
33088
- apiV1HospitalsHospitalIdLanguagesGet: async (hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33100
+ apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete: async (hospitalId: string, languageCode: string, langaugeCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33089
33101
  // verify required parameter 'hospitalId' is not null or undefined
33090
- assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId)
33091
- const localVarPath = `/api/v1/hospitals/{hospitalId}/languages`
33092
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
33102
+ assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'hospitalId', hospitalId)
33103
+ // verify required parameter 'languageCode' is not null or undefined
33104
+ assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'languageCode', languageCode)
33105
+ // verify required parameter 'langaugeCode' is not null or undefined
33106
+ assertParamExists('apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete', 'langaugeCode', langaugeCode)
33107
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/languages/{langaugeCode}`
33108
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
33109
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
33110
+ .replace(`{${"langaugeCode"}}`, encodeURIComponent(String(langaugeCode)));
33093
33111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33094
33112
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33095
33113
  let baseOptions;
@@ -33097,7 +33115,7 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33097
33115
  baseOptions = configuration.baseOptions;
33098
33116
  }
33099
33117
 
33100
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33118
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
33101
33119
  const localVarHeaderParameter = {} as any;
33102
33120
  const localVarQueryParameter = {} as any;
33103
33121
 
@@ -33105,24 +33123,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
33105
33123
  // oauth required
33106
33124
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
33107
33125
 
33108
- if (name !== undefined) {
33109
- localVarQueryParameter['Name'] = name;
33110
- }
33111
-
33112
- if (page !== undefined) {
33113
- localVarQueryParameter['page'] = page;
33114
- }
33115
-
33116
- if (limit !== undefined) {
33117
- localVarQueryParameter['limit'] = limit;
33118
- }
33119
-
33120
- if (lastRetrieved !== undefined) {
33121
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
33122
- (lastRetrieved as any).toISOString() :
33123
- lastRetrieved;
33124
- }
33125
-
33126
33126
 
33127
33127
 
33128
33128
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -35650,30 +35650,30 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
35650
35650
  },
35651
35651
  /**
35652
35652
  *
35653
- * @summary Delete GetAllLanguage.
35653
+ * @summary Get all GetAllLanguages.
35654
35654
  * @param {string} hospitalId
35655
- * @param {string} languageCode
35656
- * @param {string} code
35655
+ * @param {string} [name]
35656
+ * @param {number} [page]
35657
+ * @param {number} [limit]
35658
+ * @param {Date} [lastRetrieved]
35657
35659
  * @param {*} [options] Override http request option.
35658
35660
  * @throws {RequiredError}
35659
35661
  */
35660
- async apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId: string, languageCode: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
35661
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options);
35662
+ async apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
35663
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options);
35662
35664
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35663
35665
  },
35664
35666
  /**
35665
35667
  *
35666
- * @summary Get all GetAllLanguages.
35668
+ * @summary Delete GetAllLanguage.
35667
35669
  * @param {string} hospitalId
35668
- * @param {string} [name]
35669
- * @param {number} [page]
35670
- * @param {number} [limit]
35671
- * @param {Date} [lastRetrieved]
35670
+ * @param {string} languageCode
35671
+ * @param {string} langaugeCode
35672
35672
  * @param {*} [options] Override http request option.
35673
35673
  * @throws {RequiredError}
35674
35674
  */
35675
- async apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
35676
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options);
35675
+ async apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId: string, languageCode: string, langaugeCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
35676
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options);
35677
35677
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
35678
35678
  },
35679
35679
  /**
@@ -36594,18 +36594,6 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
36594
36594
  apiV1HospitalsHospitalIdHandlesPost(hospitalId: string, createHospitalSnsHandleCommand?: CreateHospitalSnsHandleCommand, options?: any): AxiosPromise<SnsHandleModel> {
36595
36595
  return localVarFp.apiV1HospitalsHospitalIdHandlesPost(hospitalId, createHospitalSnsHandleCommand, options).then((request) => request(axios, basePath));
36596
36596
  },
36597
- /**
36598
- *
36599
- * @summary Delete GetAllLanguage.
36600
- * @param {string} hospitalId
36601
- * @param {string} languageCode
36602
- * @param {string} code
36603
- * @param {*} [options] Override http request option.
36604
- * @throws {RequiredError}
36605
- */
36606
- apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId: string, languageCode: string, code: string, options?: any): AxiosPromise<boolean> {
36607
- return localVarFp.apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options).then((request) => request(axios, basePath));
36608
- },
36609
36597
  /**
36610
36598
  *
36611
36599
  * @summary Get all GetAllLanguages.
@@ -36620,6 +36608,18 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
36620
36608
  apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalLanguagesModel> {
36621
36609
  return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
36622
36610
  },
36611
+ /**
36612
+ *
36613
+ * @summary Delete GetAllLanguage.
36614
+ * @param {string} hospitalId
36615
+ * @param {string} languageCode
36616
+ * @param {string} langaugeCode
36617
+ * @param {*} [options] Override http request option.
36618
+ * @throws {RequiredError}
36619
+ */
36620
+ apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId: string, languageCode: string, langaugeCode: string, options?: any): AxiosPromise<boolean> {
36621
+ return localVarFp.apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options).then((request) => request(axios, basePath));
36622
+ },
36623
36623
  /**
36624
36624
  *
36625
36625
  * @summary Create HospitalLanguages.
@@ -37555,32 +37555,32 @@ export class HospitalsApi extends BaseAPI {
37555
37555
 
37556
37556
  /**
37557
37557
  *
37558
- * @summary Delete GetAllLanguage.
37558
+ * @summary Get all GetAllLanguages.
37559
37559
  * @param {string} hospitalId
37560
- * @param {string} languageCode
37561
- * @param {string} code
37560
+ * @param {string} [name]
37561
+ * @param {number} [page]
37562
+ * @param {number} [limit]
37563
+ * @param {Date} [lastRetrieved]
37562
37564
  * @param {*} [options] Override http request option.
37563
37565
  * @throws {RequiredError}
37564
37566
  * @memberof HospitalsApi
37565
37567
  */
37566
- public apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId: string, languageCode: string, code: string, options?: AxiosRequestConfig) {
37567
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesCodeDelete(hospitalId, languageCode, code, options).then((request) => request(this.axios, this.basePath));
37568
+ public apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
37569
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
37568
37570
  }
37569
37571
 
37570
37572
  /**
37571
37573
  *
37572
- * @summary Get all GetAllLanguages.
37574
+ * @summary Delete GetAllLanguage.
37573
37575
  * @param {string} hospitalId
37574
- * @param {string} [name]
37575
- * @param {number} [page]
37576
- * @param {number} [limit]
37577
- * @param {Date} [lastRetrieved]
37576
+ * @param {string} languageCode
37577
+ * @param {string} langaugeCode
37578
37578
  * @param {*} [options] Override http request option.
37579
37579
  * @throws {RequiredError}
37580
37580
  * @memberof HospitalsApi
37581
37581
  */
37582
- public apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
37583
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
37582
+ public apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId: string, languageCode: string, langaugeCode: string, options?: AxiosRequestConfig) {
37583
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesLangaugeCodeDelete(hospitalId, languageCode, langaugeCode, options).then((request) => request(this.axios, this.basePath));
37584
37584
  }
37585
37585
 
37586
37586
  /**