ch-admin-api-client-typescript 3.5.7 → 4.0.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
@@ -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.7",
3
+ "version": "4.0.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
@@ -3806,18 +3806,6 @@ export interface CreateDoctorCommand {
3806
3806
  * @memberof CreateDoctorCommand
3807
3807
  */
3808
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
3809
  /**
3822
3810
  *
3823
3811
  * @type {Gender}
@@ -3836,24 +3824,6 @@ export interface CreateDoctorCommand {
3836
3824
  * @memberof CreateDoctorCommand
3837
3825
  */
3838
3826
  '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
3827
  /**
3858
3828
  *
3859
3829
  * @type {string}
@@ -6713,43 +6683,6 @@ export interface FaqCategoriesModel {
6713
6683
  */
6714
6684
  'metaData'?: PagedListMetaData;
6715
6685
  }
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
6686
  /**
6754
6687
  *
6755
6688
  * @export
@@ -12064,12 +11997,6 @@ export interface UpdateDealServiceCommand {
12064
11997
  * @interface UpdateDealsSearchIndexCommand
12065
11998
  */
12066
11999
  export interface UpdateDealsSearchIndexCommand {
12067
- /**
12068
- *
12069
- * @type {number}
12070
- * @memberof UpdateDealsSearchIndexCommand
12071
- */
12072
- 'batchSize'?: number | null;
12073
12000
  /**
12074
12001
  *
12075
12002
  * @type {boolean}
@@ -12229,12 +12156,6 @@ export interface UpdateDoctorCommand {
12229
12156
  * @memberof UpdateDoctorCommand
12230
12157
  */
12231
12158
  'lastName'?: string | null;
12232
- /**
12233
- *
12234
- * @type {string}
12235
- * @memberof UpdateDoctorCommand
12236
- */
12237
- 'slug'?: string | null;
12238
12159
  /**
12239
12160
  *
12240
12161
  * @type {string}
@@ -12271,48 +12192,12 @@ export interface UpdateDoctorCommand {
12271
12192
  * @memberof UpdateDoctorCommand
12272
12193
  */
12273
12194
  '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
12195
  /**
12293
12196
  *
12294
12197
  * @type {string}
12295
12198
  * @memberof UpdateDoctorCommand
12296
12199
  */
12297
12200
  '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
12201
  }
12317
12202
  /**
12318
12203
  *
@@ -12414,12 +12299,6 @@ export interface UpdateDoctorSpecialtyCommand {
12414
12299
  * @interface UpdateDoctorsSearchIndexCommand
12415
12300
  */
12416
12301
  export interface UpdateDoctorsSearchIndexCommand {
12417
- /**
12418
- *
12419
- * @type {number}
12420
- * @memberof UpdateDoctorsSearchIndexCommand
12421
- */
12422
- 'batchSize'?: number | null;
12423
12302
  /**
12424
12303
  *
12425
12304
  * @type {boolean}
@@ -12853,12 +12732,6 @@ export interface UpdateHospitalSnsHandleCommand {
12853
12732
  * @interface UpdateHospitalSpecialtiesSearchIndexCommand
12854
12733
  */
12855
12734
  export interface UpdateHospitalSpecialtiesSearchIndexCommand {
12856
- /**
12857
- *
12858
- * @type {number}
12859
- * @memberof UpdateHospitalSpecialtiesSearchIndexCommand
12860
- */
12861
- 'batchSize'?: number | null;
12862
12735
  /**
12863
12736
  *
12864
12737
  * @type {boolean}
@@ -12988,12 +12861,6 @@ export interface UpdateHospitalWorkingDayCommand {
12988
12861
  * @interface UpdateHospitalsSearchIndexCommand
12989
12862
  */
12990
12863
  export interface UpdateHospitalsSearchIndexCommand {
12991
- /**
12992
- *
12993
- * @type {number}
12994
- * @memberof UpdateHospitalsSearchIndexCommand
12995
- */
12996
- 'batchSize'?: number | null;
12997
12864
  /**
12998
12865
  *
12999
12866
  * @type {boolean}
@@ -13418,12 +13285,6 @@ export interface UpdateServiceReviewCommand {
13418
13285
  * @interface UpdateSpecialtiesSearchIndexCommand
13419
13286
  */
13420
13287
  export interface UpdateSpecialtiesSearchIndexCommand {
13421
- /**
13422
- *
13423
- * @type {number}
13424
- * @memberof UpdateSpecialtiesSearchIndexCommand
13425
- */
13426
- 'batchSize'?: number | null;
13427
13288
  /**
13428
13289
  *
13429
13290
  * @type {boolean}
@@ -13565,12 +13426,6 @@ export interface UpdateSpecialtyTypeCommand {
13565
13426
  * @interface UpdateSpecialtyTypesSearchIndexCommand
13566
13427
  */
13567
13428
  export interface UpdateSpecialtyTypesSearchIndexCommand {
13568
- /**
13569
- *
13570
- * @type {number}
13571
- * @memberof UpdateSpecialtyTypesSearchIndexCommand
13572
- */
13573
- 'batchSize'?: number | null;
13574
13429
  /**
13575
13430
  *
13576
13431
  * @type {boolean}
@@ -28742,49 +28597,6 @@ export class EmailMarketingsApi extends BaseAPI {
28742
28597
  */
28743
28598
  export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
28744
28599
  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
28600
  /**
28789
28601
  *
28790
28602
  * @summary Delete FaqCategory.
@@ -29100,18 +28912,6 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
29100
28912
  export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29101
28913
  const localVarAxiosParamCreator = FaqCategoriesApiAxiosParamCreator(configuration)
29102
28914
  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
28915
  /**
29116
28916
  *
29117
28917
  * @summary Delete FaqCategory.
@@ -29203,17 +29003,6 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29203
29003
  export const FaqCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29204
29004
  const localVarFp = FaqCategoriesApiFp(configuration)
29205
29005
  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
29006
  /**
29218
29007
  *
29219
29008
  * @summary Delete FaqCategory.
@@ -29299,19 +29088,6 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
29299
29088
  * @extends {BaseAPI}
29300
29089
  */
29301
29090
  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
29091
  /**
29316
29092
  *
29317
29093
  * @summary Delete FaqCategory.