ch-admin-api-client-typescript 4.6.2 → 4.6.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.js CHANGED
@@ -22988,13 +22988,14 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
22988
22988
  * @summary Get all GetAllLanguages.
22989
22989
  * @param {string} hospitalId
22990
22990
  * @param {string} [name]
22991
+ * @param {boolean} [showHidden]
22991
22992
  * @param {number} [page]
22992
22993
  * @param {number} [limit]
22993
22994
  * @param {Date} [lastRetrieved]
22994
22995
  * @param {*} [options] Override http request option.
22995
22996
  * @throws {RequiredError}
22996
22997
  */
22997
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
22998
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
22998
22999
  if (options === void 0) { options = {}; }
22999
23000
  return __awaiter(_this, void 0, void 0, function () {
23000
23001
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -23022,6 +23023,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
23022
23023
  if (name !== undefined) {
23023
23024
  localVarQueryParameter['Name'] = name;
23024
23025
  }
23026
+ if (showHidden !== undefined) {
23027
+ localVarQueryParameter['ShowHidden'] = showHidden;
23028
+ }
23025
23029
  if (page !== undefined) {
23026
23030
  localVarQueryParameter['page'] = page;
23027
23031
  }
@@ -26229,18 +26233,19 @@ exports.HospitalsApiFp = function (configuration) {
26229
26233
  * @summary Get all GetAllLanguages.
26230
26234
  * @param {string} hospitalId
26231
26235
  * @param {string} [name]
26236
+ * @param {boolean} [showHidden]
26232
26237
  * @param {number} [page]
26233
26238
  * @param {number} [limit]
26234
26239
  * @param {Date} [lastRetrieved]
26235
26240
  * @param {*} [options] Override http request option.
26236
26241
  * @throws {RequiredError}
26237
26242
  */
26238
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
26243
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
26239
26244
  return __awaiter(this, void 0, void 0, function () {
26240
26245
  var localVarAxiosArgs;
26241
26246
  return __generator(this, function (_a) {
26242
26247
  switch (_a.label) {
26243
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options)];
26248
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options)];
26244
26249
  case 1:
26245
26250
  localVarAxiosArgs = _a.sent();
26246
26251
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -27681,14 +27686,15 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
27681
27686
  * @summary Get all GetAllLanguages.
27682
27687
  * @param {string} hospitalId
27683
27688
  * @param {string} [name]
27689
+ * @param {boolean} [showHidden]
27684
27690
  * @param {number} [page]
27685
27691
  * @param {number} [limit]
27686
27692
  * @param {Date} [lastRetrieved]
27687
27693
  * @param {*} [options] Override http request option.
27688
27694
  * @throws {RequiredError}
27689
27695
  */
27690
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, page, limit, lastRetrieved, options) {
27691
- return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
27696
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
27697
+ return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
27692
27698
  },
27693
27699
  /**
27694
27700
  *
@@ -28763,6 +28769,7 @@ var HospitalsApi = /** @class */ (function (_super) {
28763
28769
  * @summary Get all GetAllLanguages.
28764
28770
  * @param {string} hospitalId
28765
28771
  * @param {string} [name]
28772
+ * @param {boolean} [showHidden]
28766
28773
  * @param {number} [page]
28767
28774
  * @param {number} [limit]
28768
28775
  * @param {Date} [lastRetrieved]
@@ -28770,9 +28777,9 @@ var HospitalsApi = /** @class */ (function (_super) {
28770
28777
  * @throws {RequiredError}
28771
28778
  * @memberof HospitalsApi
28772
28779
  */
28773
- HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesGet = function (hospitalId, name, page, limit, lastRetrieved, options) {
28780
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdLanguagesGet = function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
28774
28781
  var _this = this;
28775
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
28782
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
28776
28783
  };
28777
28784
  /**
28778
28785
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "4.6.2",
3
+ "version": "4.6.4",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -4241,6 +4241,18 @@ export interface CreateDoctorCommand {
4241
4241
  * @memberof CreateDoctorCommand
4242
4242
  */
4243
4243
  'hospitalId'?: string | null;
4244
+ /**
4245
+ *
4246
+ * @type {string}
4247
+ * @memberof CreateDoctorCommand
4248
+ */
4249
+ 'languageCode'?: string | null;
4250
+ /**
4251
+ *
4252
+ * @type {string}
4253
+ * @memberof CreateDoctorCommand
4254
+ */
4255
+ 'localizedName'?: string | null;
4244
4256
  }
4245
4257
  /**
4246
4258
  *
@@ -4710,6 +4722,12 @@ export interface CreateHospitalLanguageCommand {
4710
4722
  * @memberof CreateHospitalLanguageCommand
4711
4723
  */
4712
4724
  'order'?: number | null;
4725
+ /**
4726
+ *
4727
+ * @type {boolean}
4728
+ * @memberof CreateHospitalLanguageCommand
4729
+ */
4730
+ 'isPrimary'?: boolean | null;
4713
4731
  }
4714
4732
  /**
4715
4733
  *
@@ -8593,6 +8611,12 @@ export interface HospitalLanguageItemModel {
8593
8611
  * @memberof HospitalLanguageItemModel
8594
8612
  */
8595
8613
  'order'?: number;
8614
+ /**
8615
+ *
8616
+ * @type {boolean}
8617
+ * @memberof HospitalLanguageItemModel
8618
+ */
8619
+ 'isPrimary'?: boolean;
8596
8620
  }
8597
8621
  /**
8598
8622
  *
@@ -14517,6 +14541,12 @@ export interface UpdateHospitalLanguageCommand {
14517
14541
  * @memberof UpdateHospitalLanguageCommand
14518
14542
  */
14519
14543
  'order'?: number;
14544
+ /**
14545
+ *
14546
+ * @type {boolean}
14547
+ * @memberof UpdateHospitalLanguageCommand
14548
+ */
14549
+ 'isPrimary'?: boolean | null;
14520
14550
  }
14521
14551
  /**
14522
14552
  *
@@ -35886,13 +35916,14 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
35886
35916
  * @summary Get all GetAllLanguages.
35887
35917
  * @param {string} hospitalId
35888
35918
  * @param {string} [name]
35919
+ * @param {boolean} [showHidden]
35889
35920
  * @param {number} [page]
35890
35921
  * @param {number} [limit]
35891
35922
  * @param {Date} [lastRetrieved]
35892
35923
  * @param {*} [options] Override http request option.
35893
35924
  * @throws {RequiredError}
35894
35925
  */
35895
- apiV1HospitalsHospitalIdLanguagesGet: async (hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35926
+ apiV1HospitalsHospitalIdLanguagesGet: async (hospitalId: string, name?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
35896
35927
  // verify required parameter 'hospitalId' is not null or undefined
35897
35928
  assertParamExists('apiV1HospitalsHospitalIdLanguagesGet', 'hospitalId', hospitalId)
35898
35929
  const localVarPath = `/api/v1/hospitals/{hospitalId}/languages`
@@ -35916,6 +35947,10 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
35916
35947
  localVarQueryParameter['Name'] = name;
35917
35948
  }
35918
35949
 
35950
+ if (showHidden !== undefined) {
35951
+ localVarQueryParameter['ShowHidden'] = showHidden;
35952
+ }
35953
+
35919
35954
  if (page !== undefined) {
35920
35955
  localVarQueryParameter['page'] = page;
35921
35956
  }
@@ -38716,14 +38751,15 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
38716
38751
  * @summary Get all GetAllLanguages.
38717
38752
  * @param {string} hospitalId
38718
38753
  * @param {string} [name]
38754
+ * @param {boolean} [showHidden]
38719
38755
  * @param {number} [page]
38720
38756
  * @param {number} [limit]
38721
38757
  * @param {Date} [lastRetrieved]
38722
38758
  * @param {*} [options] Override http request option.
38723
38759
  * @throws {RequiredError}
38724
38760
  */
38725
- async apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
38726
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options);
38761
+ async apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalLanguagesModel>> {
38762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options);
38727
38763
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
38728
38764
  },
38729
38765
  /**
@@ -39773,14 +39809,15 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
39773
39809
  * @summary Get all GetAllLanguages.
39774
39810
  * @param {string} hospitalId
39775
39811
  * @param {string} [name]
39812
+ * @param {boolean} [showHidden]
39776
39813
  * @param {number} [page]
39777
39814
  * @param {number} [limit]
39778
39815
  * @param {Date} [lastRetrieved]
39779
39816
  * @param {*} [options] Override http request option.
39780
39817
  * @throws {RequiredError}
39781
39818
  */
39782
- apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalLanguagesModel> {
39783
- return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
39819
+ apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalLanguagesModel> {
39820
+ return localVarFp.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
39784
39821
  },
39785
39822
  /**
39786
39823
  *
@@ -40852,6 +40889,7 @@ export class HospitalsApi extends BaseAPI {
40852
40889
  * @summary Get all GetAllLanguages.
40853
40890
  * @param {string} hospitalId
40854
40891
  * @param {string} [name]
40892
+ * @param {boolean} [showHidden]
40855
40893
  * @param {number} [page]
40856
40894
  * @param {number} [limit]
40857
40895
  * @param {Date} [lastRetrieved]
@@ -40859,8 +40897,8 @@ export class HospitalsApi extends BaseAPI {
40859
40897
  * @throws {RequiredError}
40860
40898
  * @memberof HospitalsApi
40861
40899
  */
40862
- public apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
40863
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
40900
+ public apiV1HospitalsHospitalIdLanguagesGet(hospitalId: string, name?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
40901
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
40864
40902
  }
40865
40903
 
40866
40904
  /**