ch-admin-api-client-typescript 3.5.6 → 4.0.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.js CHANGED
@@ -17030,53 +17030,6 @@ exports.EmailMarketingsApi = EmailMarketingsApi;
17030
17030
  exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
17031
17031
  var _this = this;
17032
17032
  return {
17033
- /**
17034
- *
17035
- * @summary Get BreadCrumbs.
17036
- * @param {string} faqId
17037
- * @param {string} [languageCode]
17038
- * @param {*} [options] Override http request option.
17039
- * @throws {RequiredError}
17040
- */
17041
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17042
- if (options === void 0) { options = {}; }
17043
- return __awaiter(_this, void 0, void 0, function () {
17044
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17045
- return __generator(this, function (_a) {
17046
- switch (_a.label) {
17047
- case 0:
17048
- // verify required parameter 'faqId' is not null or undefined
17049
- common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
17050
- localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
17051
- .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
17052
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17053
- if (configuration) {
17054
- baseOptions = configuration.baseOptions;
17055
- }
17056
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17057
- localVarHeaderParameter = {};
17058
- localVarQueryParameter = {};
17059
- // authentication oauth2 required
17060
- // oauth required
17061
- return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17062
- case 1:
17063
- // authentication oauth2 required
17064
- // oauth required
17065
- _a.sent();
17066
- if (languageCode !== undefined) {
17067
- localVarQueryParameter['languageCode'] = languageCode;
17068
- }
17069
- common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17070
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17071
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17072
- return [2 /*return*/, {
17073
- url: common_1.toPathString(localVarUrlObj),
17074
- options: localVarRequestOptions,
17075
- }];
17076
- }
17077
- });
17078
- });
17079
- },
17080
17033
  /**
17081
17034
  *
17082
17035
  * @summary Delete FaqCategory.
@@ -17404,27 +17357,6 @@ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
17404
17357
  exports.FaqCategoriesApiFp = function (configuration) {
17405
17358
  var localVarAxiosParamCreator = exports.FaqCategoriesApiAxiosParamCreator(configuration);
17406
17359
  return {
17407
- /**
17408
- *
17409
- * @summary Get BreadCrumbs.
17410
- * @param {string} faqId
17411
- * @param {string} [languageCode]
17412
- * @param {*} [options] Override http request option.
17413
- * @throws {RequiredError}
17414
- */
17415
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17416
- return __awaiter(this, void 0, void 0, function () {
17417
- var localVarAxiosArgs;
17418
- return __generator(this, function (_a) {
17419
- switch (_a.label) {
17420
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
17421
- case 1:
17422
- localVarAxiosArgs = _a.sent();
17423
- return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
17424
- }
17425
- });
17426
- });
17427
- },
17428
17360
  /**
17429
17361
  *
17430
17362
  * @summary Delete FaqCategory.
@@ -17569,17 +17501,6 @@ exports.FaqCategoriesApiFp = function (configuration) {
17569
17501
  exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
17570
17502
  var localVarFp = exports.FaqCategoriesApiFp(configuration);
17571
17503
  return {
17572
- /**
17573
- *
17574
- * @summary Get BreadCrumbs.
17575
- * @param {string} faqId
17576
- * @param {string} [languageCode]
17577
- * @param {*} [options] Override http request option.
17578
- * @throws {RequiredError}
17579
- */
17580
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
17581
- return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
17582
- },
17583
17504
  /**
17584
17505
  *
17585
17506
  * @summary Delete FaqCategory.
@@ -17668,19 +17589,6 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
17668
17589
  function FaqCategoriesApi() {
17669
17590
  return _super !== null && _super.apply(this, arguments) || this;
17670
17591
  }
17671
- /**
17672
- *
17673
- * @summary Get BreadCrumbs.
17674
- * @param {string} faqId
17675
- * @param {string} [languageCode]
17676
- * @param {*} [options] Override http request option.
17677
- * @throws {RequiredError}
17678
- * @memberof FaqCategoriesApi
17679
- */
17680
- FaqCategoriesApi.prototype.apiV1FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
17681
- var _this = this;
17682
- return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
17683
- };
17684
17592
  /**
17685
17593
  *
17686
17594
  * @summary Delete FaqCategory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "3.5.6",
3
+ "version": "4.0.0",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -3800,24 +3800,6 @@ export interface CreateDoctorCommand {
3800
3800
  * @memberof CreateDoctorCommand
3801
3801
  */
3802
3802
  'lastName'?: string | null;
3803
- /**
3804
- *
3805
- * @type {string}
3806
- * @memberof CreateDoctorCommand
3807
- */
3808
- 'phone'?: string | null;
3809
- /**
3810
- *
3811
- * @type {string}
3812
- * @memberof CreateDoctorCommand
3813
- */
3814
- 'photo'?: string | null;
3815
- /**
3816
- *
3817
- * @type {string}
3818
- * @memberof CreateDoctorCommand
3819
- */
3820
- 'photoThumbnail'?: string | null;
3821
3803
  /**
3822
3804
  *
3823
3805
  * @type {Gender}
@@ -3836,24 +3818,6 @@ export interface CreateDoctorCommand {
3836
3818
  * @memberof CreateDoctorCommand
3837
3819
  */
3838
3820
  'startPracticeDate'?: Date | null;
3839
- /**
3840
- *
3841
- * @type {string}
3842
- * @memberof CreateDoctorCommand
3843
- */
3844
- 'overview'?: string | null;
3845
- /**
3846
- *
3847
- * @type {boolean}
3848
- * @memberof CreateDoctorCommand
3849
- */
3850
- 'consultationEnabled'?: boolean | null;
3851
- /**
3852
- *
3853
- * @type {number}
3854
- * @memberof CreateDoctorCommand
3855
- */
3856
- 'consultationFee'?: number | null;
3857
3821
  /**
3858
3822
  *
3859
3823
  * @type {string}
@@ -6713,43 +6677,6 @@ export interface FaqCategoriesModel {
6713
6677
  */
6714
6678
  'metaData'?: PagedListMetaData;
6715
6679
  }
6716
- /**
6717
- *
6718
- * @export
6719
- * @interface FaqCategoryBreadCrumbModel
6720
- */
6721
- export interface FaqCategoryBreadCrumbModel {
6722
- /**
6723
- *
6724
- * @type {string}
6725
- * @memberof FaqCategoryBreadCrumbModel
6726
- */
6727
- 'id'?: string;
6728
- /**
6729
- *
6730
- * @type {string}
6731
- * @memberof FaqCategoryBreadCrumbModel
6732
- */
6733
- 'name'?: string | null;
6734
- /**
6735
- *
6736
- * @type {string}
6737
- * @memberof FaqCategoryBreadCrumbModel
6738
- */
6739
- 'slug'?: string | null;
6740
- /**
6741
- *
6742
- * @type {string}
6743
- * @memberof FaqCategoryBreadCrumbModel
6744
- */
6745
- 'parentId'?: string | null;
6746
- /**
6747
- *
6748
- * @type {boolean}
6749
- * @memberof FaqCategoryBreadCrumbModel
6750
- */
6751
- 'confirmed'?: boolean;
6752
- }
6753
6680
  /**
6754
6681
  *
6755
6682
  * @export
@@ -12064,12 +11991,6 @@ export interface UpdateDealServiceCommand {
12064
11991
  * @interface UpdateDealsSearchIndexCommand
12065
11992
  */
12066
11993
  export interface UpdateDealsSearchIndexCommand {
12067
- /**
12068
- *
12069
- * @type {number}
12070
- * @memberof UpdateDealsSearchIndexCommand
12071
- */
12072
- 'batchSize'?: number | null;
12073
11994
  /**
12074
11995
  *
12075
11996
  * @type {boolean}
@@ -12229,12 +12150,6 @@ export interface UpdateDoctorCommand {
12229
12150
  * @memberof UpdateDoctorCommand
12230
12151
  */
12231
12152
  'lastName'?: string | null;
12232
- /**
12233
- *
12234
- * @type {string}
12235
- * @memberof UpdateDoctorCommand
12236
- */
12237
- 'slug'?: string | null;
12238
12153
  /**
12239
12154
  *
12240
12155
  * @type {string}
@@ -12271,48 +12186,12 @@ export interface UpdateDoctorCommand {
12271
12186
  * @memberof UpdateDoctorCommand
12272
12187
  */
12273
12188
  'startPracticeDate'?: Date | null;
12274
- /**
12275
- *
12276
- * @type {string}
12277
- * @memberof UpdateDoctorCommand
12278
- */
12279
- 'overview'?: string | null;
12280
- /**
12281
- *
12282
- * @type {boolean}
12283
- * @memberof UpdateDoctorCommand
12284
- */
12285
- 'consultationEnabled'?: boolean | null;
12286
- /**
12287
- *
12288
- * @type {number}
12289
- * @memberof UpdateDoctorCommand
12290
- */
12291
- 'consultationFee'?: number | null;
12292
12189
  /**
12293
12190
  *
12294
12191
  * @type {string}
12295
12192
  * @memberof UpdateDoctorCommand
12296
12193
  */
12297
12194
  'timeZone'?: string | null;
12298
- /**
12299
- *
12300
- * @type {string}
12301
- * @memberof UpdateDoctorCommand
12302
- */
12303
- 'hospitalId'?: string | null;
12304
- /**
12305
- *
12306
- * @type {string}
12307
- * @memberof UpdateDoctorCommand
12308
- */
12309
- 'languageCode'?: string | null;
12310
- /**
12311
- *
12312
- * @type {boolean}
12313
- * @memberof UpdateDoctorCommand
12314
- */
12315
- 'confirmed'?: boolean;
12316
12195
  }
12317
12196
  /**
12318
12197
  *
@@ -12414,12 +12293,6 @@ export interface UpdateDoctorSpecialtyCommand {
12414
12293
  * @interface UpdateDoctorsSearchIndexCommand
12415
12294
  */
12416
12295
  export interface UpdateDoctorsSearchIndexCommand {
12417
- /**
12418
- *
12419
- * @type {number}
12420
- * @memberof UpdateDoctorsSearchIndexCommand
12421
- */
12422
- 'batchSize'?: number | null;
12423
12296
  /**
12424
12297
  *
12425
12298
  * @type {boolean}
@@ -12853,12 +12726,6 @@ export interface UpdateHospitalSnsHandleCommand {
12853
12726
  * @interface UpdateHospitalSpecialtiesSearchIndexCommand
12854
12727
  */
12855
12728
  export interface UpdateHospitalSpecialtiesSearchIndexCommand {
12856
- /**
12857
- *
12858
- * @type {number}
12859
- * @memberof UpdateHospitalSpecialtiesSearchIndexCommand
12860
- */
12861
- 'batchSize'?: number | null;
12862
12729
  /**
12863
12730
  *
12864
12731
  * @type {boolean}
@@ -12988,12 +12855,6 @@ export interface UpdateHospitalWorkingDayCommand {
12988
12855
  * @interface UpdateHospitalsSearchIndexCommand
12989
12856
  */
12990
12857
  export interface UpdateHospitalsSearchIndexCommand {
12991
- /**
12992
- *
12993
- * @type {number}
12994
- * @memberof UpdateHospitalsSearchIndexCommand
12995
- */
12996
- 'batchSize'?: number | null;
12997
12858
  /**
12998
12859
  *
12999
12860
  * @type {boolean}
@@ -13418,12 +13279,6 @@ export interface UpdateServiceReviewCommand {
13418
13279
  * @interface UpdateSpecialtiesSearchIndexCommand
13419
13280
  */
13420
13281
  export interface UpdateSpecialtiesSearchIndexCommand {
13421
- /**
13422
- *
13423
- * @type {number}
13424
- * @memberof UpdateSpecialtiesSearchIndexCommand
13425
- */
13426
- 'batchSize'?: number | null;
13427
13282
  /**
13428
13283
  *
13429
13284
  * @type {boolean}
@@ -13565,12 +13420,6 @@ export interface UpdateSpecialtyTypeCommand {
13565
13420
  * @interface UpdateSpecialtyTypesSearchIndexCommand
13566
13421
  */
13567
13422
  export interface UpdateSpecialtyTypesSearchIndexCommand {
13568
- /**
13569
- *
13570
- * @type {number}
13571
- * @memberof UpdateSpecialtyTypesSearchIndexCommand
13572
- */
13573
- 'batchSize'?: number | null;
13574
13423
  /**
13575
13424
  *
13576
13425
  * @type {boolean}
@@ -28742,49 +28591,6 @@ export class EmailMarketingsApi extends BaseAPI {
28742
28591
  */
28743
28592
  export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
28744
28593
  return {
28745
- /**
28746
- *
28747
- * @summary Get BreadCrumbs.
28748
- * @param {string} faqId
28749
- * @param {string} [languageCode]
28750
- * @param {*} [options] Override http request option.
28751
- * @throws {RequiredError}
28752
- */
28753
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: async (faqId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28754
- // verify required parameter 'faqId' is not null or undefined
28755
- assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId)
28756
- const localVarPath = `/api/v1/faqcategories/breadcrumbs/{faqId}`
28757
- .replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
28758
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28759
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28760
- let baseOptions;
28761
- if (configuration) {
28762
- baseOptions = configuration.baseOptions;
28763
- }
28764
-
28765
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28766
- const localVarHeaderParameter = {} as any;
28767
- const localVarQueryParameter = {} as any;
28768
-
28769
- // authentication oauth2 required
28770
- // oauth required
28771
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28772
-
28773
- if (languageCode !== undefined) {
28774
- localVarQueryParameter['languageCode'] = languageCode;
28775
- }
28776
-
28777
-
28778
-
28779
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28780
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28781
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28782
-
28783
- return {
28784
- url: toPathString(localVarUrlObj),
28785
- options: localVarRequestOptions,
28786
- };
28787
- },
28788
28594
  /**
28789
28595
  *
28790
28596
  * @summary Delete FaqCategory.
@@ -29100,18 +28906,6 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
29100
28906
  export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29101
28907
  const localVarAxiosParamCreator = FaqCategoriesApiAxiosParamCreator(configuration)
29102
28908
  return {
29103
- /**
29104
- *
29105
- * @summary Get BreadCrumbs.
29106
- * @param {string} faqId
29107
- * @param {string} [languageCode]
29108
- * @param {*} [options] Override http request option.
29109
- * @throws {RequiredError}
29110
- */
29111
- async apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FaqCategoryBreadCrumbModel>>> {
29112
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options);
29113
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29114
- },
29115
28909
  /**
29116
28910
  *
29117
28911
  * @summary Delete FaqCategory.
@@ -29203,17 +28997,6 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29203
28997
  export const FaqCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29204
28998
  const localVarFp = FaqCategoriesApiFp(configuration)
29205
28999
  return {
29206
- /**
29207
- *
29208
- * @summary Get BreadCrumbs.
29209
- * @param {string} faqId
29210
- * @param {string} [languageCode]
29211
- * @param {*} [options] Override http request option.
29212
- * @throws {RequiredError}
29213
- */
29214
- apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: any): AxiosPromise<Array<FaqCategoryBreadCrumbModel>> {
29215
- return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(axios, basePath));
29216
- },
29217
29000
  /**
29218
29001
  *
29219
29002
  * @summary Delete FaqCategory.
@@ -29299,19 +29082,6 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
29299
29082
  * @extends {BaseAPI}
29300
29083
  */
29301
29084
  export class FaqCategoriesApi extends BaseAPI {
29302
- /**
29303
- *
29304
- * @summary Get BreadCrumbs.
29305
- * @param {string} faqId
29306
- * @param {string} [languageCode]
29307
- * @param {*} [options] Override http request option.
29308
- * @throws {RequiredError}
29309
- * @memberof FaqCategoriesApi
29310
- */
29311
- public apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig) {
29312
- return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(this.axios, this.basePath));
29313
- }
29314
-
29315
29085
  /**
29316
29086
  *
29317
29087
  * @summary Delete FaqCategory.