ch-api-client-typescript2 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
@@ -8434,43 +8434,6 @@ exports.DoctorsApi = DoctorsApi;
8434
8434
  var FaqCategoriesApiAxiosParamCreator = function (configuration) {
8435
8435
  var _this = this;
8436
8436
  return {
8437
- /**
8438
- *
8439
- * @summary Get BreadCrumbs.
8440
- * @param {string} faqId
8441
- * @param {string} [languageCode]
8442
- * @param {*} [options] Override http request option.
8443
- * @throws {RequiredError}
8444
- */
8445
- apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
8446
- if (options === void 0) { options = {}; }
8447
- return __awaiter(_this, void 0, void 0, function () {
8448
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8449
- return __generator(this, function (_a) {
8450
- // verify required parameter 'faqId' is not null or undefined
8451
- (0, common_1.assertParamExists)('apiV2FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
8452
- localVarPath = "/api/v2/faqcategories/breadcrumbs/{faqId}"
8453
- .replace("{".concat("faqId", "}"), encodeURIComponent(String(faqId)));
8454
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8455
- if (configuration) {
8456
- baseOptions = configuration.baseOptions;
8457
- }
8458
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
8459
- localVarHeaderParameter = {};
8460
- localVarQueryParameter = {};
8461
- if (languageCode !== undefined) {
8462
- localVarQueryParameter['languageCode'] = languageCode;
8463
- }
8464
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8465
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8466
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8467
- return [2 /*return*/, {
8468
- url: (0, common_1.toPathString)(localVarUrlObj),
8469
- options: localVarRequestOptions,
8470
- }];
8471
- });
8472
- });
8473
- },
8474
8437
  /**
8475
8438
  *
8476
8439
  * @summary Get FaqCategory.
@@ -8630,27 +8593,6 @@ exports.FaqCategoriesApiAxiosParamCreator = FaqCategoriesApiAxiosParamCreator;
8630
8593
  var FaqCategoriesApiFp = function (configuration) {
8631
8594
  var localVarAxiosParamCreator = (0, exports.FaqCategoriesApiAxiosParamCreator)(configuration);
8632
8595
  return {
8633
- /**
8634
- *
8635
- * @summary Get BreadCrumbs.
8636
- * @param {string} faqId
8637
- * @param {string} [languageCode]
8638
- * @param {*} [options] Override http request option.
8639
- * @throws {RequiredError}
8640
- */
8641
- apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
8642
- return __awaiter(this, void 0, void 0, function () {
8643
- var localVarAxiosArgs;
8644
- return __generator(this, function (_a) {
8645
- switch (_a.label) {
8646
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
8647
- case 1:
8648
- localVarAxiosArgs = _a.sent();
8649
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8650
- }
8651
- });
8652
- });
8653
- },
8654
8596
  /**
8655
8597
  *
8656
8598
  * @summary Get FaqCategory.
@@ -8733,17 +8675,6 @@ exports.FaqCategoriesApiFp = FaqCategoriesApiFp;
8733
8675
  var FaqCategoriesApiFactory = function (configuration, basePath, axios) {
8734
8676
  var localVarFp = (0, exports.FaqCategoriesApiFp)(configuration);
8735
8677
  return {
8736
- /**
8737
- *
8738
- * @summary Get BreadCrumbs.
8739
- * @param {string} faqId
8740
- * @param {string} [languageCode]
8741
- * @param {*} [options] Override http request option.
8742
- * @throws {RequiredError}
8743
- */
8744
- apiV2FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
8745
- return localVarFp.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
8746
- },
8747
8678
  /**
8748
8679
  *
8749
8680
  * @summary Get FaqCategory.
@@ -8800,19 +8731,6 @@ var FaqCategoriesApi = /** @class */ (function (_super) {
8800
8731
  function FaqCategoriesApi() {
8801
8732
  return _super !== null && _super.apply(this, arguments) || this;
8802
8733
  }
8803
- /**
8804
- *
8805
- * @summary Get BreadCrumbs.
8806
- * @param {string} faqId
8807
- * @param {string} [languageCode]
8808
- * @param {*} [options] Override http request option.
8809
- * @throws {RequiredError}
8810
- * @memberof FaqCategoriesApi
8811
- */
8812
- FaqCategoriesApi.prototype.apiV2FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
8813
- var _this = this;
8814
- return (0, exports.FaqCategoriesApiFp)(this.configuration).apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
8815
- };
8816
8734
  /**
8817
8735
  *
8818
8736
  * @summary Get FaqCategory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "3.5.6",
3
+ "version": "4.0.0",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -4353,6 +4353,12 @@ export interface DoctorModel {
4353
4353
  * @memberof DoctorModel
4354
4354
  */
4355
4355
  'photoThumbnail'?: string | null;
4356
+ /**
4357
+ *
4358
+ * @type {string}
4359
+ * @memberof DoctorModel
4360
+ */
4361
+ 'timeZone'?: string | null;
4356
4362
  /**
4357
4363
  *
4358
4364
  * @type {AuditableEntity}
@@ -4383,12 +4389,6 @@ export interface DoctorModel {
4383
4389
  * @memberof DoctorModel
4384
4390
  */
4385
4391
  'dateOfBirth'?: Date | null;
4386
- /**
4387
- *
4388
- * @type {string}
4389
- * @memberof DoctorModel
4390
- */
4391
- 'timeZone'?: string | null;
4392
4392
  /**
4393
4393
  *
4394
4394
  * @type {string}
@@ -4724,43 +4724,6 @@ export interface FaqCategoriesModel {
4724
4724
  */
4725
4725
  'metaData'?: PagedListMetaData;
4726
4726
  }
4727
- /**
4728
- *
4729
- * @export
4730
- * @interface FaqCategoryBreadCrumbModel
4731
- */
4732
- export interface FaqCategoryBreadCrumbModel {
4733
- /**
4734
- *
4735
- * @type {string}
4736
- * @memberof FaqCategoryBreadCrumbModel
4737
- */
4738
- 'id'?: string;
4739
- /**
4740
- *
4741
- * @type {string}
4742
- * @memberof FaqCategoryBreadCrumbModel
4743
- */
4744
- 'name'?: string | null;
4745
- /**
4746
- *
4747
- * @type {string}
4748
- * @memberof FaqCategoryBreadCrumbModel
4749
- */
4750
- 'slug'?: string | null;
4751
- /**
4752
- *
4753
- * @type {string}
4754
- * @memberof FaqCategoryBreadCrumbModel
4755
- */
4756
- 'parentId'?: string | null;
4757
- /**
4758
- *
4759
- * @type {boolean}
4760
- * @memberof FaqCategoryBreadCrumbModel
4761
- */
4762
- 'confirmed'?: boolean;
4763
- }
4764
4727
  /**
4765
4728
  *
4766
4729
  * @export
@@ -6002,6 +5965,18 @@ export interface HospitalServiceModel {
6002
5965
  * @memberof HospitalServiceModel
6003
5966
  */
6004
5967
  'confirmed'?: boolean;
5968
+ /**
5969
+ *
5970
+ * @type {string}
5971
+ * @memberof HospitalServiceModel
5972
+ */
5973
+ 'hospitalSpecialtyName'?: string | null;
5974
+ /**
5975
+ *
5976
+ * @type {string}
5977
+ * @memberof HospitalServiceModel
5978
+ */
5979
+ 'hospitalSpecialtySlug'?: string | null;
6005
5980
  /**
6006
5981
  *
6007
5982
  * @type {number}
@@ -6068,18 +6043,6 @@ export interface HospitalServiceModel {
6068
6043
  * @memberof HospitalServiceModel
6069
6044
  */
6070
6045
  'specialtyName'?: string | null;
6071
- /**
6072
- *
6073
- * @type {string}
6074
- * @memberof HospitalServiceModel
6075
- */
6076
- 'hospitalSpecialtyName'?: string | null;
6077
- /**
6078
- *
6079
- * @type {string}
6080
- * @memberof HospitalServiceModel
6081
- */
6082
- 'hospitalSpecialtySlug'?: string | null;
6083
6046
  /**
6084
6047
  *
6085
6048
  * @type {string}
@@ -7316,6 +7279,12 @@ export interface PatientModel {
7316
7279
  * @memberof PatientModel
7317
7280
  */
7318
7281
  'photoThumbnail'?: string | null;
7282
+ /**
7283
+ *
7284
+ * @type {string}
7285
+ * @memberof PatientModel
7286
+ */
7287
+ 'timeZone'?: string | null;
7319
7288
  /**
7320
7289
  *
7321
7290
  * @type {AuditableEntity}
@@ -7346,12 +7315,6 @@ export interface PatientModel {
7346
7315
  * @memberof PatientModel
7347
7316
  */
7348
7317
  'dateOfBirth'?: Date | null;
7349
- /**
7350
- *
7351
- * @type {string}
7352
- * @memberof PatientModel
7353
- */
7354
- 'timeZone'?: string | null;
7355
7318
  /**
7356
7319
  *
7357
7320
  * @type {string}
@@ -8107,6 +8070,18 @@ export interface ServiceReviewItemModel {
8107
8070
  * @memberof ServiceReviewItemModel
8108
8071
  */
8109
8072
  'patientName'?: string | null;
8073
+ /**
8074
+ *
8075
+ * @type {string}
8076
+ * @memberof ServiceReviewItemModel
8077
+ */
8078
+ 'patientPhoto'?: string | null;
8079
+ /**
8080
+ *
8081
+ * @type {Date}
8082
+ * @memberof ServiceReviewItemModel
8083
+ */
8084
+ 'createdDate'?: Date;
8110
8085
  /**
8111
8086
  *
8112
8087
  * @type {boolean}
@@ -8222,6 +8197,18 @@ export interface ServiceReviewModel {
8222
8197
  * @memberof ServiceReviewModel
8223
8198
  */
8224
8199
  'patientName'?: string | null;
8200
+ /**
8201
+ *
8202
+ * @type {string}
8203
+ * @memberof ServiceReviewModel
8204
+ */
8205
+ 'patientPhoto'?: string | null;
8206
+ /**
8207
+ *
8208
+ * @type {Date}
8209
+ * @memberof ServiceReviewModel
8210
+ */
8211
+ 'createdDate'?: Date;
8225
8212
  /**
8226
8213
  *
8227
8214
  * @type {boolean}
@@ -9499,6 +9486,12 @@ export interface UserModel {
9499
9486
  * @memberof UserModel
9500
9487
  */
9501
9488
  'photoThumbnail'?: string | null;
9489
+ /**
9490
+ *
9491
+ * @type {string}
9492
+ * @memberof UserModel
9493
+ */
9494
+ 'timeZone'?: string | null;
9502
9495
  /**
9503
9496
  *
9504
9497
  * @type {AuditableEntity}
@@ -9529,12 +9522,6 @@ export interface UserModel {
9529
9522
  * @memberof UserModel
9530
9523
  */
9531
9524
  'dateOfBirth'?: Date | null;
9532
- /**
9533
- *
9534
- * @type {string}
9535
- * @memberof UserModel
9536
- */
9537
- 'timeZone'?: string | null;
9538
9525
  /**
9539
9526
  *
9540
9527
  * @type {string}
@@ -17354,45 +17341,6 @@ export class DoctorsApi extends BaseAPI {
17354
17341
  */
17355
17342
  export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Configuration) {
17356
17343
  return {
17357
- /**
17358
- *
17359
- * @summary Get BreadCrumbs.
17360
- * @param {string} faqId
17361
- * @param {string} [languageCode]
17362
- * @param {*} [options] Override http request option.
17363
- * @throws {RequiredError}
17364
- */
17365
- apiV2FaqcategoriesBreadcrumbsFaqIdGet: async (faqId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
17366
- // verify required parameter 'faqId' is not null or undefined
17367
- assertParamExists('apiV2FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId)
17368
- const localVarPath = `/api/v2/faqcategories/breadcrumbs/{faqId}`
17369
- .replace(`{${"faqId"}}`, encodeURIComponent(String(faqId)));
17370
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17371
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17372
- let baseOptions;
17373
- if (configuration) {
17374
- baseOptions = configuration.baseOptions;
17375
- }
17376
-
17377
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17378
- const localVarHeaderParameter = {} as any;
17379
- const localVarQueryParameter = {} as any;
17380
-
17381
- if (languageCode !== undefined) {
17382
- localVarQueryParameter['languageCode'] = languageCode;
17383
- }
17384
-
17385
-
17386
-
17387
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17388
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17389
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17390
-
17391
- return {
17392
- url: toPathString(localVarUrlObj),
17393
- options: localVarRequestOptions,
17394
- };
17395
- },
17396
17344
  /**
17397
17345
  *
17398
17346
  * @summary Get FaqCategory.
@@ -17568,18 +17516,6 @@ export const FaqCategoriesApiAxiosParamCreator = function (configuration?: Confi
17568
17516
  export const FaqCategoriesApiFp = function(configuration?: Configuration) {
17569
17517
  const localVarAxiosParamCreator = FaqCategoriesApiAxiosParamCreator(configuration)
17570
17518
  return {
17571
- /**
17572
- *
17573
- * @summary Get BreadCrumbs.
17574
- * @param {string} faqId
17575
- * @param {string} [languageCode]
17576
- * @param {*} [options] Override http request option.
17577
- * @throws {RequiredError}
17578
- */
17579
- async apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FaqCategoryBreadCrumbModel>>> {
17580
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options);
17581
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
17582
- },
17583
17519
  /**
17584
17520
  *
17585
17521
  * @summary Get FaqCategory.
@@ -17635,17 +17571,6 @@ export const FaqCategoriesApiFp = function(configuration?: Configuration) {
17635
17571
  export const FaqCategoriesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17636
17572
  const localVarFp = FaqCategoriesApiFp(configuration)
17637
17573
  return {
17638
- /**
17639
- *
17640
- * @summary Get BreadCrumbs.
17641
- * @param {string} faqId
17642
- * @param {string} [languageCode]
17643
- * @param {*} [options] Override http request option.
17644
- * @throws {RequiredError}
17645
- */
17646
- apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: any): AxiosPromise<Array<FaqCategoryBreadCrumbModel>> {
17647
- return localVarFp.apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(axios, basePath));
17648
- },
17649
17574
  /**
17650
17575
  *
17651
17576
  * @summary Get FaqCategory.
@@ -17698,19 +17623,6 @@ export const FaqCategoriesApiFactory = function (configuration?: Configuration,
17698
17623
  * @extends {BaseAPI}
17699
17624
  */
17700
17625
  export class FaqCategoriesApi extends BaseAPI {
17701
- /**
17702
- *
17703
- * @summary Get BreadCrumbs.
17704
- * @param {string} faqId
17705
- * @param {string} [languageCode]
17706
- * @param {*} [options] Override http request option.
17707
- * @throws {RequiredError}
17708
- * @memberof FaqCategoriesApi
17709
- */
17710
- public apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId: string, languageCode?: string, options?: AxiosRequestConfig) {
17711
- return FaqCategoriesApiFp(this.configuration).apiV2FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then((request) => request(this.axios, this.basePath));
17712
- }
17713
-
17714
17626
  /**
17715
17627
  *
17716
17628
  * @summary Get FaqCategory.