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

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.3",
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}
@@ -10400,6 +10478,12 @@ export interface ServiceReviewItemModel {
10400
10478
  * @memberof ServiceReviewItemModel
10401
10479
  */
10402
10480
  'serviceSlug'?: string | null;
10481
+ /**
10482
+ *
10483
+ * @type {string}
10484
+ * @memberof ServiceReviewItemModel
10485
+ */
10486
+ 'hospitalId'?: string;
10403
10487
  /**
10404
10488
  *
10405
10489
  * @type {string}
@@ -10497,6 +10581,12 @@ export interface ServiceReviewModel {
10497
10581
  * @memberof ServiceReviewModel
10498
10582
  */
10499
10583
  'serviceSlug'?: string | null;
10584
+ /**
10585
+ *
10586
+ * @type {string}
10587
+ * @memberof ServiceReviewModel
10588
+ */
10589
+ 'hospitalId'?: string;
10500
10590
  /**
10501
10591
  *
10502
10592
  * @type {string}
@@ -15830,7 +15920,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15830
15920
  * @param {string} [id]
15831
15921
  * @param {string} [name]
15832
15922
  * @param {string} [description]
15833
- * @param {ArticleStatus} [status]
15834
15923
  * @param {MarketingType} [marketingType]
15835
15924
  * @param {string} [userId]
15836
15925
  * @param {string} [userName]
@@ -15849,7 +15938,7 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15849
15938
  * @param {*} [options] Override http request option.
15850
15939
  * @throws {RequiredError}
15851
15940
  */
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> => {
15941
+ 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
15942
  const localVarPath = `/api/v1/articles`;
15854
15943
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15855
15944
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -15878,10 +15967,6 @@ export const ArticlesApiAxiosParamCreator = function (configuration?: Configurat
15878
15967
  localVarQueryParameter['Description'] = description;
15879
15968
  }
15880
15969
 
15881
- if (status !== undefined) {
15882
- localVarQueryParameter['Status'] = status;
15883
- }
15884
-
15885
15970
  if (marketingType !== undefined) {
15886
15971
  localVarQueryParameter['MarketingType'] = marketingType;
15887
15972
  }
@@ -16344,7 +16429,6 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
16344
16429
  * @param {string} [id]
16345
16430
  * @param {string} [name]
16346
16431
  * @param {string} [description]
16347
- * @param {ArticleStatus} [status]
16348
16432
  * @param {MarketingType} [marketingType]
16349
16433
  * @param {string} [userId]
16350
16434
  * @param {string} [userName]
@@ -16363,8 +16447,8 @@ export const ArticlesApiFp = function(configuration?: Configuration) {
16363
16447
  * @param {*} [options] Override http request option.
16364
16448
  * @throws {RequiredError}
16365
16449
  */
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);
16450
+ 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>> {
16451
+ 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
16452
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
16369
16453
  },
16370
16454
  /**
@@ -16672,7 +16756,6 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
16672
16756
  * @param {string} [id]
16673
16757
  * @param {string} [name]
16674
16758
  * @param {string} [description]
16675
- * @param {ArticleStatus} [status]
16676
16759
  * @param {MarketingType} [marketingType]
16677
16760
  * @param {string} [userId]
16678
16761
  * @param {string} [userName]
@@ -16691,8 +16774,8 @@ export const ArticlesApiFactory = function (configuration?: Configuration, baseP
16691
16774
  * @param {*} [options] Override http request option.
16692
16775
  * @throws {RequiredError}
16693
16776
  */
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));
16777
+ 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> {
16778
+ 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
16779
  },
16697
16780
  /**
16698
16781
  *
@@ -17041,7 +17124,6 @@ export class ArticlesApi extends BaseAPI {
17041
17124
  * @param {string} [id]
17042
17125
  * @param {string} [name]
17043
17126
  * @param {string} [description]
17044
- * @param {ArticleStatus} [status]
17045
17127
  * @param {MarketingType} [marketingType]
17046
17128
  * @param {string} [userId]
17047
17129
  * @param {string} [userName]
@@ -17061,8 +17143,8 @@ export class ArticlesApi extends BaseAPI {
17061
17143
  * @throws {RequiredError}
17062
17144
  * @memberof ArticlesApi
17063
17145
  */
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));
17146
+ 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) {
17147
+ 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
17148
  }
17067
17149
 
17068
17150
  /**