ch-admin-api-client-typescript 3.5.8 → 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.8",
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
@@ -6677,43 +6677,6 @@ export interface FaqCategoriesModel {
6677
6677
  */
6678
6678
  'metaData'?: PagedListMetaData;
6679
6679
  }
6680
- /**
6681
- *
6682
- * @export
6683
- * @interface FaqCategoryBreadCrumbModel
6684
- */
6685
- export interface FaqCategoryBreadCrumbModel {
6686
- /**
6687
- *
6688
- * @type {string}
6689
- * @memberof FaqCategoryBreadCrumbModel
6690
- */
6691
- 'id'?: string;
6692
- /**
6693
- *
6694
- * @type {string}
6695
- * @memberof FaqCategoryBreadCrumbModel
6696
- */
6697
- 'name'?: string | null;
6698
- /**
6699
- *
6700
- * @type {string}
6701
- * @memberof FaqCategoryBreadCrumbModel
6702
- */
6703
- 'slug'?: string | null;
6704
- /**
6705
- *
6706
- * @type {string}
6707
- * @memberof FaqCategoryBreadCrumbModel
6708
- */
6709
- 'parentId'?: string | null;
6710
- /**
6711
- *
6712
- * @type {boolean}
6713
- * @memberof FaqCategoryBreadCrumbModel
6714
- */
6715
- 'confirmed'?: boolean;
6716
- }
6717
6680
  /**
6718
6681
  *
6719
6682
  * @export
@@ -12028,12 +11991,6 @@ export interface UpdateDealServiceCommand {
12028
11991
  * @interface UpdateDealsSearchIndexCommand
12029
11992
  */
12030
11993
  export interface UpdateDealsSearchIndexCommand {
12031
- /**
12032
- *
12033
- * @type {number}
12034
- * @memberof UpdateDealsSearchIndexCommand
12035
- */
12036
- 'batchSize'?: number | null;
12037
11994
  /**
12038
11995
  *
12039
11996
  * @type {boolean}
@@ -12193,12 +12150,6 @@ export interface UpdateDoctorCommand {
12193
12150
  * @memberof UpdateDoctorCommand
12194
12151
  */
12195
12152
  'lastName'?: string | null;
12196
- /**
12197
- *
12198
- * @type {string}
12199
- * @memberof UpdateDoctorCommand
12200
- */
12201
- 'slug'?: string | null;
12202
12153
  /**
12203
12154
  *
12204
12155
  * @type {string}
@@ -12235,48 +12186,12 @@ export interface UpdateDoctorCommand {
12235
12186
  * @memberof UpdateDoctorCommand
12236
12187
  */
12237
12188
  'startPracticeDate'?: Date | null;
12238
- /**
12239
- *
12240
- * @type {string}
12241
- * @memberof UpdateDoctorCommand
12242
- */
12243
- 'overview'?: string | null;
12244
- /**
12245
- *
12246
- * @type {boolean}
12247
- * @memberof UpdateDoctorCommand
12248
- */
12249
- 'consultationEnabled'?: boolean | null;
12250
- /**
12251
- *
12252
- * @type {number}
12253
- * @memberof UpdateDoctorCommand
12254
- */
12255
- 'consultationFee'?: number | null;
12256
12189
  /**
12257
12190
  *
12258
12191
  * @type {string}
12259
12192
  * @memberof UpdateDoctorCommand
12260
12193
  */
12261
12194
  'timeZone'?: string | null;
12262
- /**
12263
- *
12264
- * @type {string}
12265
- * @memberof UpdateDoctorCommand
12266
- */
12267
- 'hospitalId'?: string | null;
12268
- /**
12269
- *
12270
- * @type {string}
12271
- * @memberof UpdateDoctorCommand
12272
- */
12273
- 'languageCode'?: string | null;
12274
- /**
12275
- *
12276
- * @type {boolean}
12277
- * @memberof UpdateDoctorCommand
12278
- */
12279
- 'confirmed'?: boolean;
12280
12195
  }
12281
12196
  /**
12282
12197
  *
@@ -12378,12 +12293,6 @@ export interface UpdateDoctorSpecialtyCommand {
12378
12293
  * @interface UpdateDoctorsSearchIndexCommand
12379
12294
  */
12380
12295
  export interface UpdateDoctorsSearchIndexCommand {
12381
- /**
12382
- *
12383
- * @type {number}
12384
- * @memberof UpdateDoctorsSearchIndexCommand
12385
- */
12386
- 'batchSize'?: number | null;
12387
12296
  /**
12388
12297
  *
12389
12298
  * @type {boolean}
@@ -12817,12 +12726,6 @@ export interface UpdateHospitalSnsHandleCommand {
12817
12726
  * @interface UpdateHospitalSpecialtiesSearchIndexCommand
12818
12727
  */
12819
12728
  export interface UpdateHospitalSpecialtiesSearchIndexCommand {
12820
- /**
12821
- *
12822
- * @type {number}
12823
- * @memberof UpdateHospitalSpecialtiesSearchIndexCommand
12824
- */
12825
- 'batchSize'?: number | null;
12826
12729
  /**
12827
12730
  *
12828
12731
  * @type {boolean}
@@ -12952,12 +12855,6 @@ export interface UpdateHospitalWorkingDayCommand {
12952
12855
  * @interface UpdateHospitalsSearchIndexCommand
12953
12856
  */
12954
12857
  export interface UpdateHospitalsSearchIndexCommand {
12955
- /**
12956
- *
12957
- * @type {number}
12958
- * @memberof UpdateHospitalsSearchIndexCommand
12959
- */
12960
- 'batchSize'?: number | null;
12961
12858
  /**
12962
12859
  *
12963
12860
  * @type {boolean}
@@ -13382,12 +13279,6 @@ export interface UpdateServiceReviewCommand {
13382
13279
  * @interface UpdateSpecialtiesSearchIndexCommand
13383
13280
  */
13384
13281
  export interface UpdateSpecialtiesSearchIndexCommand {
13385
- /**
13386
- *
13387
- * @type {number}
13388
- * @memberof UpdateSpecialtiesSearchIndexCommand
13389
- */
13390
- 'batchSize'?: number | null;
13391
13282
  /**
13392
13283
  *
13393
13284
  * @type {boolean}
@@ -13529,12 +13420,6 @@ export interface UpdateSpecialtyTypeCommand {
13529
13420
  * @interface UpdateSpecialtyTypesSearchIndexCommand
13530
13421
  */
13531
13422
  export interface UpdateSpecialtyTypesSearchIndexCommand {
13532
- /**
13533
- *
13534
- * @type {number}
13535
- * @memberof UpdateSpecialtyTypesSearchIndexCommand
13536
- */
13537
- 'batchSize'?: number | null;
13538
13423
  /**
13539
13424
  *
13540
13425
  * @type {boolean}
@@ -28706,49 +28591,6 @@ export class EmailMarketingsApi extends BaseAPI {
28706
28591
  */
28707
28592
  export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
28708
28593
  return {
28709
- /**
28710
- *
28711
- * @summary Get BreadCrumbs.
28712
- * @param {string} faqId
28713
- * @param {string} [languageCode]
28714
- * @param {*} [options] Override http request option.
28715
- * @throws {RequiredError}
28716
- */
28717
- apiV1FaqcategoriesBreadcrumbsFaqIdGet: async (faqId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28718
- // verify required parameter 'faqId' is not null or undefined
28719
- assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId)
28720
- const localVarPath = `/api/v1/faqcategories/breadcrumbs/{faqId}`
28721
- .replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
28722
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
28723
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28724
- let baseOptions;
28725
- if (configuration) {
28726
- baseOptions = configuration.baseOptions;
28727
- }
28728
-
28729
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28730
- const localVarHeaderParameter = {} as any;
28731
- const localVarQueryParameter = {} as any;
28732
-
28733
- // authentication oauth2 required
28734
- // oauth required
28735
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
28736
-
28737
- if (languageCode !== undefined) {
28738
- localVarQueryParameter['languageCode'] = languageCode;
28739
- }
28740
-
28741
-
28742
-
28743
- setSearchParams(localVarUrlObj, localVarQueryParameter);
28744
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28745
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28746
-
28747
- return {
28748
- url: toPathString(localVarUrlObj),
28749
- options: localVarRequestOptions,
28750
- };
28751
- },
28752
28594
  /**
28753
28595
  *
28754
28596
  * @summary Delete FaqCategory.
@@ -29064,18 +28906,6 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
29064
28906
  export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29065
28907
  const localVarAxiosParamCreator = FaqCategoriesApiAxiosParamCreator(configuration)
29066
28908
  return {
29067
- /**
29068
- *
29069
- * @summary Get BreadCrumbs.
29070
- * @param {string} faqId
29071
- * @param {string} [languageCode]
29072
- * @param {*} [options] Override http request option.
29073
- * @throws {RequiredError}
29074
- */
29075
- async apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FaqCategoryBreadCrumbModel>>> {
29076
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options);
29077
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
29078
- },
29079
28909
  /**
29080
28910
  *
29081
28911
  * @summary Delete FaqCategory.
@@ -29167,17 +28997,6 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
29167
28997
  export const FaqCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
29168
28998
  const localVarFp = FaqCategoriesApiFp(configuration)
29169
28999
  return {
29170
- /**
29171
- *
29172
- * @summary Get BreadCrumbs.
29173
- * @param {string} faqId
29174
- * @param {string} [languageCode]
29175
- * @param {*} [options] Override http request option.
29176
- * @throws {RequiredError}
29177
- */
29178
- apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: any): AxiosPromise<Array<FaqCategoryBreadCrumbModel>> {
29179
- return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(axios, basePath));
29180
- },
29181
29000
  /**
29182
29001
  *
29183
29002
  * @summary Delete FaqCategory.
@@ -29263,19 +29082,6 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
29263
29082
  * @extends {BaseAPI}
29264
29083
  */
29265
29084
  export class FaqCategoriesApi extends BaseAPI {
29266
- /**
29267
- *
29268
- * @summary Get BreadCrumbs.
29269
- * @param {string} faqId
29270
- * @param {string} [languageCode]
29271
- * @param {*} [options] Override http request option.
29272
- * @throws {RequiredError}
29273
- * @memberof FaqCategoriesApi
29274
- */
29275
- public apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig) {
29276
- return FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(this.axios, this.basePath));
29277
- }
29278
-
29279
29085
  /**
29280
29086
  *
29281
29087
  * @summary Delete FaqCategory.