ch-api-client-typescript2 4.3.6 → 4.3.7

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
@@ -11536,6 +11536,148 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
11536
11536
  });
11537
11537
  });
11538
11538
  },
11539
+ /**
11540
+ *
11541
+ * @param {string} hospitalId
11542
+ * @param {string} [name]
11543
+ * @param {string} [slug]
11544
+ * @param {string} [languageCode]
11545
+ * @param {boolean} [showHidden]
11546
+ * @param {number} [page]
11547
+ * @param {number} [limit]
11548
+ * @param {Date} [lastRetrieved]
11549
+ * @param {*} [options] Override http request option.
11550
+ * @throws {RequiredError}
11551
+ */
11552
+ apiV2HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
11553
+ if (options === void 0) { options = {}; }
11554
+ return __awaiter(_this, void 0, void 0, function () {
11555
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11556
+ return __generator(this, function (_a) {
11557
+ // verify required parameter 'hospitalId' is not null or undefined
11558
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsGet', 'hospitalId', hospitalId);
11559
+ localVarPath = "/api/v2/hospitals/{hospitalId}/landings"
11560
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
11561
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11562
+ if (configuration) {
11563
+ baseOptions = configuration.baseOptions;
11564
+ }
11565
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
11566
+ localVarHeaderParameter = {};
11567
+ localVarQueryParameter = {};
11568
+ if (name !== undefined) {
11569
+ localVarQueryParameter['Name'] = name;
11570
+ }
11571
+ if (slug !== undefined) {
11572
+ localVarQueryParameter['Slug'] = slug;
11573
+ }
11574
+ if (languageCode !== undefined) {
11575
+ localVarQueryParameter['LanguageCode'] = languageCode;
11576
+ }
11577
+ if (showHidden !== undefined) {
11578
+ localVarQueryParameter['ShowHidden'] = showHidden;
11579
+ }
11580
+ if (page !== undefined) {
11581
+ localVarQueryParameter['page'] = page;
11582
+ }
11583
+ if (limit !== undefined) {
11584
+ localVarQueryParameter['limit'] = limit;
11585
+ }
11586
+ if (lastRetrieved !== undefined) {
11587
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
11588
+ lastRetrieved.toISOString() :
11589
+ lastRetrieved;
11590
+ }
11591
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11592
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11593
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11594
+ return [2 /*return*/, {
11595
+ url: (0, common_1.toPathString)(localVarUrlObj),
11596
+ options: localVarRequestOptions,
11597
+ }];
11598
+ });
11599
+ });
11600
+ },
11601
+ /**
11602
+ *
11603
+ * @param {string} hospitalId
11604
+ * @param {string} landingId
11605
+ * @param {string} [languageCode]
11606
+ * @param {*} [options] Override http request option.
11607
+ * @throws {RequiredError}
11608
+ */
11609
+ apiV2HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
11610
+ if (options === void 0) { options = {}; }
11611
+ return __awaiter(_this, void 0, void 0, function () {
11612
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11613
+ return __generator(this, function (_a) {
11614
+ // verify required parameter 'hospitalId' is not null or undefined
11615
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsLandingIdGet', 'hospitalId', hospitalId);
11616
+ // verify required parameter 'landingId' is not null or undefined
11617
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsLandingIdGet', 'landingId', landingId);
11618
+ localVarPath = "/api/v2/hospitals/{hospitalId}/landings/{landingId}"
11619
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
11620
+ .replace("{".concat("landingId", "}"), encodeURIComponent(String(landingId)));
11621
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11622
+ if (configuration) {
11623
+ baseOptions = configuration.baseOptions;
11624
+ }
11625
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
11626
+ localVarHeaderParameter = {};
11627
+ localVarQueryParameter = {};
11628
+ if (languageCode !== undefined) {
11629
+ localVarQueryParameter['languageCode'] = languageCode;
11630
+ }
11631
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11632
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11633
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11634
+ return [2 /*return*/, {
11635
+ url: (0, common_1.toPathString)(localVarUrlObj),
11636
+ options: localVarRequestOptions,
11637
+ }];
11638
+ });
11639
+ });
11640
+ },
11641
+ /**
11642
+ *
11643
+ * @param {string} slug
11644
+ * @param {string} hospitalId
11645
+ * @param {string} [languageCode]
11646
+ * @param {*} [options] Override http request option.
11647
+ * @throws {RequiredError}
11648
+ */
11649
+ apiV2HospitalsHospitalIdLandingsSlugGet: function (slug, hospitalId, languageCode, options) {
11650
+ if (options === void 0) { options = {}; }
11651
+ return __awaiter(_this, void 0, void 0, function () {
11652
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
11653
+ return __generator(this, function (_a) {
11654
+ // verify required parameter 'slug' is not null or undefined
11655
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsSlugGet', 'slug', slug);
11656
+ // verify required parameter 'hospitalId' is not null or undefined
11657
+ (0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsSlugGet', 'hospitalId', hospitalId);
11658
+ localVarPath = "/api/v2/hospitals/{hospitalId}/landings/{slug}"
11659
+ .replace("{".concat("slug", "}"), encodeURIComponent(String(slug)))
11660
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
11661
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11662
+ if (configuration) {
11663
+ baseOptions = configuration.baseOptions;
11664
+ }
11665
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
11666
+ localVarHeaderParameter = {};
11667
+ localVarQueryParameter = {};
11668
+ if (languageCode !== undefined) {
11669
+ localVarQueryParameter['languageCode'] = languageCode;
11670
+ }
11671
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11672
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11673
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11674
+ return [2 /*return*/, {
11675
+ url: (0, common_1.toPathString)(localVarUrlObj),
11676
+ options: localVarRequestOptions,
11677
+ }];
11678
+ });
11679
+ });
11680
+ },
11539
11681
  /**
11540
11682
  *
11541
11683
  * @summary Get all HospitalMedias.
@@ -12780,6 +12922,74 @@ var HospitalsApiFp = function (configuration) {
12780
12922
  });
12781
12923
  });
12782
12924
  },
12925
+ /**
12926
+ *
12927
+ * @param {string} hospitalId
12928
+ * @param {string} [name]
12929
+ * @param {string} [slug]
12930
+ * @param {string} [languageCode]
12931
+ * @param {boolean} [showHidden]
12932
+ * @param {number} [page]
12933
+ * @param {number} [limit]
12934
+ * @param {Date} [lastRetrieved]
12935
+ * @param {*} [options] Override http request option.
12936
+ * @throws {RequiredError}
12937
+ */
12938
+ apiV2HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
12939
+ return __awaiter(this, void 0, void 0, function () {
12940
+ var localVarAxiosArgs;
12941
+ return __generator(this, function (_a) {
12942
+ switch (_a.label) {
12943
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options)];
12944
+ case 1:
12945
+ localVarAxiosArgs = _a.sent();
12946
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12947
+ }
12948
+ });
12949
+ });
12950
+ },
12951
+ /**
12952
+ *
12953
+ * @param {string} hospitalId
12954
+ * @param {string} landingId
12955
+ * @param {string} [languageCode]
12956
+ * @param {*} [options] Override http request option.
12957
+ * @throws {RequiredError}
12958
+ */
12959
+ apiV2HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
12960
+ return __awaiter(this, void 0, void 0, function () {
12961
+ var localVarAxiosArgs;
12962
+ return __generator(this, function (_a) {
12963
+ switch (_a.label) {
12964
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options)];
12965
+ case 1:
12966
+ localVarAxiosArgs = _a.sent();
12967
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12968
+ }
12969
+ });
12970
+ });
12971
+ },
12972
+ /**
12973
+ *
12974
+ * @param {string} slug
12975
+ * @param {string} hospitalId
12976
+ * @param {string} [languageCode]
12977
+ * @param {*} [options] Override http request option.
12978
+ * @throws {RequiredError}
12979
+ */
12980
+ apiV2HospitalsHospitalIdLandingsSlugGet: function (slug, hospitalId, languageCode, options) {
12981
+ return __awaiter(this, void 0, void 0, function () {
12982
+ var localVarAxiosArgs;
12983
+ return __generator(this, function (_a) {
12984
+ switch (_a.label) {
12985
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options)];
12986
+ case 1:
12987
+ localVarAxiosArgs = _a.sent();
12988
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12989
+ }
12990
+ });
12991
+ });
12992
+ },
12783
12993
  /**
12784
12994
  *
12785
12995
  * @summary Get all HospitalMedias.
@@ -13381,6 +13591,44 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
13381
13591
  apiV2HospitalsHospitalIdHandlesHandleIdGet: function (hospitalId, handleId, options) {
13382
13592
  return localVarFp.apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(axios, basePath); });
13383
13593
  },
13594
+ /**
13595
+ *
13596
+ * @param {string} hospitalId
13597
+ * @param {string} [name]
13598
+ * @param {string} [slug]
13599
+ * @param {string} [languageCode]
13600
+ * @param {boolean} [showHidden]
13601
+ * @param {number} [page]
13602
+ * @param {number} [limit]
13603
+ * @param {Date} [lastRetrieved]
13604
+ * @param {*} [options] Override http request option.
13605
+ * @throws {RequiredError}
13606
+ */
13607
+ apiV2HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
13608
+ return localVarFp.apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
13609
+ },
13610
+ /**
13611
+ *
13612
+ * @param {string} hospitalId
13613
+ * @param {string} landingId
13614
+ * @param {string} [languageCode]
13615
+ * @param {*} [options] Override http request option.
13616
+ * @throws {RequiredError}
13617
+ */
13618
+ apiV2HospitalsHospitalIdLandingsLandingIdGet: function (hospitalId, landingId, languageCode, options) {
13619
+ return localVarFp.apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then(function (request) { return request(axios, basePath); });
13620
+ },
13621
+ /**
13622
+ *
13623
+ * @param {string} slug
13624
+ * @param {string} hospitalId
13625
+ * @param {string} [languageCode]
13626
+ * @param {*} [options] Override http request option.
13627
+ * @throws {RequiredError}
13628
+ */
13629
+ apiV2HospitalsHospitalIdLandingsSlugGet: function (slug, hospitalId, languageCode, options) {
13630
+ return localVarFp.apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
13631
+ },
13384
13632
  /**
13385
13633
  *
13386
13634
  * @summary Get all HospitalMedias.
@@ -13850,6 +14098,50 @@ var HospitalsApi = /** @class */ (function (_super) {
13850
14098
  var _this = this;
13851
14099
  return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdHandlesHandleIdGet(hospitalId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13852
14100
  };
14101
+ /**
14102
+ *
14103
+ * @param {string} hospitalId
14104
+ * @param {string} [name]
14105
+ * @param {string} [slug]
14106
+ * @param {string} [languageCode]
14107
+ * @param {boolean} [showHidden]
14108
+ * @param {number} [page]
14109
+ * @param {number} [limit]
14110
+ * @param {Date} [lastRetrieved]
14111
+ * @param {*} [options] Override http request option.
14112
+ * @throws {RequiredError}
14113
+ * @memberof HospitalsApi
14114
+ */
14115
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdLandingsGet = function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
14116
+ var _this = this;
14117
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14118
+ };
14119
+ /**
14120
+ *
14121
+ * @param {string} hospitalId
14122
+ * @param {string} landingId
14123
+ * @param {string} [languageCode]
14124
+ * @param {*} [options] Override http request option.
14125
+ * @throws {RequiredError}
14126
+ * @memberof HospitalsApi
14127
+ */
14128
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdLandingsLandingIdGet = function (hospitalId, landingId, languageCode, options) {
14129
+ var _this = this;
14130
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsLandingIdGet(hospitalId, landingId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
14131
+ };
14132
+ /**
14133
+ *
14134
+ * @param {string} slug
14135
+ * @param {string} hospitalId
14136
+ * @param {string} [languageCode]
14137
+ * @param {*} [options] Override http request option.
14138
+ * @throws {RequiredError}
14139
+ * @memberof HospitalsApi
14140
+ */
14141
+ HospitalsApi.prototype.apiV2HospitalsHospitalIdLandingsSlugGet = function (slug, hospitalId, languageCode, options) {
14142
+ var _this = this;
14143
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsSlugGet(slug, hospitalId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
14144
+ };
13853
14145
  /**
13854
14146
  *
13855
14147
  * @summary Get all HospitalMedias.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "4.3.6",
3
+ "version": "4.3.7",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {