ch-admin-api-client-typescript 4.1.0 → 4.1.1

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
@@ -2633,7 +2633,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
2633
2633
  * @param {string} [id]
2634
2634
  * @param {string} [name]
2635
2635
  * @param {string} [description]
2636
- * @param {ArticleStatus} [status]
2637
2636
  * @param {MarketingType} [marketingType]
2638
2637
  * @param {string} [userId]
2639
2638
  * @param {string} [userName]
@@ -2652,7 +2651,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
2652
2651
  * @param {*} [options] Override http request option.
2653
2652
  * @throws {RequiredError}
2654
2653
  */
2655
- apiV1ArticlesGet: function (id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
2654
+ apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
2656
2655
  if (options === void 0) { options = {}; }
2657
2656
  return __awaiter(_this, void 0, void 0, function () {
2658
2657
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2683,9 +2682,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
2683
2682
  if (description !== undefined) {
2684
2683
  localVarQueryParameter['Description'] = description;
2685
2684
  }
2686
- if (status !== undefined) {
2687
- localVarQueryParameter['Status'] = status;
2688
- }
2689
2685
  if (marketingType !== undefined) {
2690
2686
  localVarQueryParameter['MarketingType'] = marketingType;
2691
2687
  }
@@ -3337,7 +3333,6 @@ exports.ArticlesApiFp = function (configuration) {
3337
3333
  * @param {string} [id]
3338
3334
  * @param {string} [name]
3339
3335
  * @param {string} [description]
3340
- * @param {ArticleStatus} [status]
3341
3336
  * @param {MarketingType} [marketingType]
3342
3337
  * @param {string} [userId]
3343
3338
  * @param {string} [userName]
@@ -3356,12 +3351,12 @@ exports.ArticlesApiFp = function (configuration) {
3356
3351
  * @param {*} [options] Override http request option.
3357
3352
  * @throws {RequiredError}
3358
3353
  */
3359
- apiV1ArticlesGet: function (id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
3354
+ apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
3360
3355
  return __awaiter(this, void 0, void 0, function () {
3361
3356
  var localVarAxiosArgs;
3362
3357
  return __generator(this, function (_a) {
3363
3358
  switch (_a.label) {
3364
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options)];
3359
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options)];
3365
3360
  case 1:
3366
3361
  localVarAxiosArgs = _a.sent();
3367
3362
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -3691,7 +3686,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3691
3686
  * @param {string} [id]
3692
3687
  * @param {string} [name]
3693
3688
  * @param {string} [description]
3694
- * @param {ArticleStatus} [status]
3695
3689
  * @param {MarketingType} [marketingType]
3696
3690
  * @param {string} [userId]
3697
3691
  * @param {string} [userName]
@@ -3710,8 +3704,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3710
3704
  * @param {*} [options] Override http request option.
3711
3705
  * @throws {RequiredError}
3712
3706
  */
3713
- apiV1ArticlesGet: function (id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
3714
- return localVarFp.apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3707
+ apiV1ArticlesGet: function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
3708
+ return localVarFp.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3715
3709
  },
3716
3710
  /**
3717
3711
  *
@@ -4063,7 +4057,6 @@ var ArticlesApi = /** @class */ (function (_super) {
4063
4057
  * @param {string} [id]
4064
4058
  * @param {string} [name]
4065
4059
  * @param {string} [description]
4066
- * @param {ArticleStatus} [status]
4067
4060
  * @param {MarketingType} [marketingType]
4068
4061
  * @param {string} [userId]
4069
4062
  * @param {string} [userName]
@@ -4083,9 +4076,9 @@ var ArticlesApi = /** @class */ (function (_super) {
4083
4076
  * @throws {RequiredError}
4084
4077
  * @memberof ArticlesApi
4085
4078
  */
4086
- ArticlesApi.prototype.apiV1ArticlesGet = function (id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
4079
+ ArticlesApi.prototype.apiV1ArticlesGet = function (id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options) {
4087
4080
  var _this = this;
4088
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
4081
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
4089
4082
  };
4090
4083
  /**
4091
4084
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -5103,6 +5103,18 @@ export interface DealItemModel {
5103
5103
  * @memberof DealItemModel
5104
5104
  */
5105
5105
  'photoThumbnail'?: string | null;
5106
+ /**
5107
+ *
5108
+ * @type {number}
5109
+ * @memberof DealItemModel
5110
+ */
5111
+ 'lowestPrice'?: number;
5112
+ /**
5113
+ *
5114
+ * @type {number}
5115
+ * @memberof DealItemModel
5116
+ */
5117
+ 'dealServicesCount'?: number;
5106
5118
  /**
5107
5119
  *
5108
5120
  * @type {number}
@@ -5225,6 +5237,18 @@ export interface DealModel {
5225
5237
  * @memberof DealModel
5226
5238
  */
5227
5239
  'photoThumbnail'?: string | null;
5240
+ /**
5241
+ *
5242
+ * @type {number}
5243
+ * @memberof DealModel
5244
+ */
5245
+ 'lowestPrice'?: number;
5246
+ /**
5247
+ *
5248
+ * @type {number}
5249
+ * @memberof DealModel
5250
+ */
5251
+ 'dealServicesCount'?: number;
5228
5252
  /**
5229
5253
  *
5230
5254
  * @type {number}
@@ -7626,6 +7650,12 @@ export interface HospitalItemModel {
7626
7650
  * @memberof HospitalItemModel
7627
7651
  */
7628
7652
  'countryId'?: string;
7653
+ /**
7654
+ *
7655
+ * @type {Array<MediaModel>}
7656
+ * @memberof HospitalItemModel
7657
+ */
7658
+ 'medias'?: Array<MediaModel> | null;
7629
7659
  /**
7630
7660
  *
7631
7661
  * @type {LocationModel}
@@ -7767,6 +7797,12 @@ export interface HospitalModel {
7767
7797
  * @memberof HospitalModel
7768
7798
  */
7769
7799
  'countryId'?: string;
7800
+ /**
7801
+ *
7802
+ * @type {Array<MediaModel>}
7803
+ * @memberof HospitalModel
7804
+ */
7805
+ 'medias'?: Array<MediaModel> | null;
7770
7806
  /**
7771
7807
  *
7772
7808
  * @type {LocationModel}
@@ -7918,12 +7954,48 @@ export interface HospitalServiceItemModel {
7918
7954
  * @memberof HospitalServiceItemModel
7919
7955
  */
7920
7956
  'specialtyName'?: string | null;
7957
+ /**
7958
+ *
7959
+ * @type {string}
7960
+ * @memberof HospitalServiceItemModel
7961
+ */
7962
+ 'hospitalSpecialtyName'?: string | null;
7963
+ /**
7964
+ *
7965
+ * @type {string}
7966
+ * @memberof HospitalServiceItemModel
7967
+ */
7968
+ 'hospitalSpecialtySlug'?: string | null;
7969
+ /**
7970
+ *
7971
+ * @type {string}
7972
+ * @memberof HospitalServiceItemModel
7973
+ */
7974
+ 'hospitalSpecialtyId'?: string;
7921
7975
  /**
7922
7976
  *
7923
7977
  * @type {Procedure}
7924
7978
  * @memberof HospitalServiceItemModel
7925
7979
  */
7926
7980
  'procedure'?: Procedure;
7981
+ /**
7982
+ *
7983
+ * @type {number}
7984
+ * @memberof HospitalServiceItemModel
7985
+ */
7986
+ 'minPrice'?: number | null;
7987
+ /**
7988
+ *
7989
+ * @type {number}
7990
+ * @memberof HospitalServiceItemModel
7991
+ */
7992
+ 'maxPrice'?: number | null;
7993
+ /**
7994
+ *
7995
+ * @type {boolean}
7996
+ * @memberof HospitalServiceItemModel
7997
+ */
7998
+ 'priceReuqest'?: boolean;
7927
7999
  /**
7928
8000
  *
7929
8001
  * @type {number}
@@ -8015,12 +8087,36 @@ export interface HospitalServiceModel {
8015
8087
  * @memberof HospitalServiceModel
8016
8088
  */
8017
8089
  'specialtyName'?: string | null;
8090
+ /**
8091
+ *
8092
+ * @type {string}
8093
+ * @memberof HospitalServiceModel
8094
+ */
8095
+ 'hospitalSpecialtyId'?: string;
8018
8096
  /**
8019
8097
  *
8020
8098
  * @type {Procedure}
8021
8099
  * @memberof HospitalServiceModel
8022
8100
  */
8023
8101
  'procedure'?: Procedure;
8102
+ /**
8103
+ *
8104
+ * @type {number}
8105
+ * @memberof HospitalServiceModel
8106
+ */
8107
+ 'minPrice'?: number | null;
8108
+ /**
8109
+ *
8110
+ * @type {number}
8111
+ * @memberof HospitalServiceModel
8112
+ */
8113
+ 'maxPrice'?: number | null;
8114
+ /**
8115
+ *
8116
+ * @type {boolean}
8117
+ * @memberof HospitalServiceModel
8118
+ */
8119
+ 'priceReuqest'?: boolean;
8024
8120
  /**
8025
8121
  *
8026
8122
  * @type {number}
@@ -8087,24 +8183,6 @@ export interface HospitalServiceModel {
8087
8183
  * @memberof HospitalServiceModel
8088
8184
  */
8089
8185
  'serviceCategoryName'?: string | null;
8090
- /**
8091
- *
8092
- * @type {number}
8093
- * @memberof HospitalServiceModel
8094
- */
8095
- 'minPrice'?: number | null;
8096
- /**
8097
- *
8098
- * @type {number}
8099
- * @memberof HospitalServiceModel
8100
- */
8101
- 'maxPrice'?: number | null;
8102
- /**
8103
- *
8104
- * @type {boolean}
8105
- * @memberof HospitalServiceModel
8106
- */
8107
- 'priceReuqest'?: boolean;
8108
8186
  /**
8109
8187
  *
8110
8188
  * @type {string}
@@ -15830,7 +15908,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15830
15908
  * @param {string} [id]
15831
15909
  * @param {string} [name]
15832
15910
  * @param {string} [description]
15833
- * @param {ArticleStatus} [status]
15834
15911
  * @param {MarketingType} [marketingType]
15835
15912
  * @param {string} [userId]
15836
15913
  * @param {string} [userName]
@@ -15849,7 +15926,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15849
15926
  * @param {*} [options] Override http request option.
15850
15927
  * @throws {RequiredError}
15851
15928
  */
15852
- apiV1ArticlesGet: async (id?: string, name?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15929
+ apiV1ArticlesGet: async (id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15853
15930
  const localVarPath = `/api/v1/articles`;
15854
15931
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15855
15932
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15878,10 +15955,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15878
15955
  localVarQueryParameter['Description'] = description;
15879
15956
  }
15880
15957
 
15881
- if (status !== undefined) {
15882
- localVarQueryParameter['Status'] = status;
15883
- }
15884
-
15885
15958
  if (marketingType !== undefined) {
15886
15959
  localVarQueryParameter['MarketingType'] = marketingType;
15887
15960
  }
@@ -16344,7 +16417,6 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
16344
16417
  * @param {string} [id]
16345
16418
  * @param {string} [name]
16346
16419
  * @param {string} [description]
16347
- * @param {ArticleStatus} [status]
16348
16420
  * @param {MarketingType} [marketingType]
16349
16421
  * @param {string} [userId]
16350
16422
  * @param {string} [userName]
@@ -16363,8 +16435,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
16363
16435
  * @param {*} [options] Override http request option.
16364
16436
  * @throws {RequiredError}
16365
16437
  */
16366
- async apiV1ArticlesGet(id?: string, name?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
16367
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options);
16438
+ async apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArticlesModel>> {
16439
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options);
16368
16440
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16369
16441
  },
16370
16442
  /**
@@ -16672,7 +16744,6 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
16672
16744
  * @param {string} [id]
16673
16745
  * @param {string} [name]
16674
16746
  * @param {string} [description]
16675
- * @param {ArticleStatus} [status]
16676
16747
  * @param {MarketingType} [marketingType]
16677
16748
  * @param {string} [userId]
16678
16749
  * @param {string} [userName]
@@ -16691,8 +16762,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
16691
16762
  * @param {*} [options] Override http request option.
16692
16763
  * @throws {RequiredError}
16693
16764
  */
16694
- apiV1ArticlesGet(id?: string, name?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
16695
- return localVarFp.apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
16765
+ apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ArticlesModel> {
16766
+ return localVarFp.apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
16696
16767
  },
16697
16768
  /**
16698
16769
  *
@@ -17041,7 +17112,6 @@ export class ArticlesApi extends BaseAPI {
17041
17112
  * @param {string} [id]
17042
17113
  * @param {string} [name]
17043
17114
  * @param {string} [description]
17044
- * @param {ArticleStatus} [status]
17045
17115
  * @param {MarketingType} [marketingType]
17046
17116
  * @param {string} [userId]
17047
17117
  * @param {string} [userName]
@@ -17061,8 +17131,8 @@ export class ArticlesApi extends BaseAPI {
17061
17131
  * @throws {RequiredError}
17062
17132
  * @memberof ArticlesApi
17063
17133
  */
17064
- public apiV1ArticlesGet(id?: string, name?: string, description?: string, status?: ArticleStatus, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
17065
- return ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, status, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
17134
+ public apiV1ArticlesGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, countryId?: string, tag?: string, exceptArticleId?: string, exceptHospitalId?: string, contributorId?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
17135
+ return ArticlesApiFp(this.configuration).apiV1ArticlesGet(id, name, description, marketingType, userId, userName, hospitalId, hospitalName, countryId, tag, exceptArticleId, exceptHospitalId, contributorId, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
17066
17136
  }
17067
17137
 
17068
17138
  /**