ch-admin-api-client-typescript 3.5.0 → 3.5.3

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
@@ -31070,6 +31070,48 @@ exports.SearchApiAxiosParamCreator = function (configuration) {
31070
31070
  });
31071
31071
  });
31072
31072
  },
31073
+ /**
31074
+ *
31075
+ * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31076
+ * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31077
+ * @param {*} [options] Override http request option.
31078
+ * @throws {RequiredError}
31079
+ */
31080
+ apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31081
+ if (options === void 0) { options = {}; }
31082
+ return __awaiter(_this, void 0, void 0, function () {
31083
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
31084
+ return __generator(this, function (_a) {
31085
+ switch (_a.label) {
31086
+ case 0:
31087
+ localVarPath = "/api/v1/search/hospitalspecialties";
31088
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31089
+ if (configuration) {
31090
+ baseOptions = configuration.baseOptions;
31091
+ }
31092
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
31093
+ localVarHeaderParameter = {};
31094
+ localVarQueryParameter = {};
31095
+ // authentication oauth2 required
31096
+ // oauth required
31097
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
31098
+ case 1:
31099
+ // authentication oauth2 required
31100
+ // oauth required
31101
+ _a.sent();
31102
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31103
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31104
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31105
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31106
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtiesSearchIndexCommand, localVarRequestOptions, configuration);
31107
+ return [2 /*return*/, {
31108
+ url: common_1.toPathString(localVarUrlObj),
31109
+ options: localVarRequestOptions,
31110
+ }];
31111
+ }
31112
+ });
31113
+ });
31114
+ },
31073
31115
  /**
31074
31116
  *
31075
31117
  * @summary Update or Re-create specialties Azure Search Services Index
@@ -31223,6 +31265,26 @@ exports.SearchApiFp = function (configuration) {
31223
31265
  });
31224
31266
  });
31225
31267
  },
31268
+ /**
31269
+ *
31270
+ * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31271
+ * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31272
+ * @param {*} [options] Override http request option.
31273
+ * @throws {RequiredError}
31274
+ */
31275
+ apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31276
+ return __awaiter(this, void 0, void 0, function () {
31277
+ var localVarAxiosArgs;
31278
+ return __generator(this, function (_a) {
31279
+ switch (_a.label) {
31280
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options)];
31281
+ case 1:
31282
+ localVarAxiosArgs = _a.sent();
31283
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
31284
+ }
31285
+ });
31286
+ });
31287
+ },
31226
31288
  /**
31227
31289
  *
31228
31290
  * @summary Update or Re-create specialties Azure Search Services Index
@@ -31302,6 +31364,16 @@ exports.SearchApiFactory = function (configuration, basePath, axios) {
31302
31364
  apiV1SearchHospitalsPost: function (updateHospitalsSearchIndexCommand, options) {
31303
31365
  return localVarFp.apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31304
31366
  },
31367
+ /**
31368
+ *
31369
+ * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31370
+ * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31371
+ * @param {*} [options] Override http request option.
31372
+ * @throws {RequiredError}
31373
+ */
31374
+ apiV1SearchHospitalspecialtiesPost: function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31375
+ return localVarFp.apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(axios, basePath); });
31376
+ },
31305
31377
  /**
31306
31378
  *
31307
31379
  * @summary Update or Re-create specialties Azure Search Services Index
@@ -31371,6 +31443,18 @@ var SearchApi = /** @class */ (function (_super) {
31371
31443
  var _this = this;
31372
31444
  return exports.SearchApiFp(this.configuration).apiV1SearchHospitalsPost(updateHospitalsSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31373
31445
  };
31446
+ /**
31447
+ *
31448
+ * @summary Update or Re-create hospitalSpecialties Azure Search Services Index
31449
+ * @param {UpdateHospitalSpecialtiesSearchIndexCommand} [updateHospitalSpecialtiesSearchIndexCommand]
31450
+ * @param {*} [options] Override http request option.
31451
+ * @throws {RequiredError}
31452
+ * @memberof SearchApi
31453
+ */
31454
+ SearchApi.prototype.apiV1SearchHospitalspecialtiesPost = function (updateHospitalSpecialtiesSearchIndexCommand, options) {
31455
+ var _this = this;
31456
+ return exports.SearchApiFp(this.configuration).apiV1SearchHospitalspecialtiesPost(updateHospitalSpecialtiesSearchIndexCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
31457
+ };
31374
31458
  /**
31375
31459
  *
31376
31460
  * @summary Update or Re-create specialties Azure Search Services Index
@@ -31408,6 +31492,7 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
31408
31492
  /**
31409
31493
  *
31410
31494
  * @summary Get all ServiceReviews.
31495
+ * @param {string} [id]
31411
31496
  * @param {string} [serviceId]
31412
31497
  * @param {string} [serviceName]
31413
31498
  * @param {string} [patientId]
@@ -31424,7 +31509,7 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
31424
31509
  * @param {*} [options] Override http request option.
31425
31510
  * @throws {RequiredError}
31426
31511
  */
31427
- apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
31512
+ apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
31428
31513
  if (options === void 0) { options = {}; }
31429
31514
  return __awaiter(_this, void 0, void 0, function () {
31430
31515
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -31446,6 +31531,9 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
31446
31531
  // authentication oauth2 required
31447
31532
  // oauth required
31448
31533
  _a.sent();
31534
+ if (id !== undefined) {
31535
+ localVarQueryParameter['Id'] = id;
31536
+ }
31449
31537
  if (serviceId !== undefined) {
31450
31538
  localVarQueryParameter['ServiceId'] = serviceId;
31451
31539
  }
@@ -31586,10 +31674,11 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
31586
31674
  /**
31587
31675
  *
31588
31676
  * @param {string} serviceReviewId
31677
+ * @param {string} [languageCode]
31589
31678
  * @param {*} [options] Override http request option.
31590
31679
  * @throws {RequiredError}
31591
31680
  */
31592
- apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
31681
+ apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, options) {
31593
31682
  if (options === void 0) { options = {}; }
31594
31683
  return __awaiter(_this, void 0, void 0, function () {
31595
31684
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -31614,6 +31703,9 @@ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
31614
31703
  // authentication oauth2 required
31615
31704
  // oauth required
31616
31705
  _a.sent();
31706
+ if (languageCode !== undefined) {
31707
+ localVarQueryParameter['languageCode'] = languageCode;
31708
+ }
31617
31709
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
31618
31710
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31619
31711
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -31938,6 +32030,7 @@ exports.ServiceReviewsApiFp = function (configuration) {
31938
32030
  /**
31939
32031
  *
31940
32032
  * @summary Get all ServiceReviews.
32033
+ * @param {string} [id]
31941
32034
  * @param {string} [serviceId]
31942
32035
  * @param {string} [serviceName]
31943
32036
  * @param {string} [patientId]
@@ -31954,12 +32047,12 @@ exports.ServiceReviewsApiFp = function (configuration) {
31954
32047
  * @param {*} [options] Override http request option.
31955
32048
  * @throws {RequiredError}
31956
32049
  */
31957
- apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
32050
+ apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
31958
32051
  return __awaiter(this, void 0, void 0, function () {
31959
32052
  var localVarAxiosArgs;
31960
32053
  return __generator(this, function (_a) {
31961
32054
  switch (_a.label) {
31962
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options)];
32055
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options)];
31963
32056
  case 1:
31964
32057
  localVarAxiosArgs = _a.sent();
31965
32058
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -32010,15 +32103,16 @@ exports.ServiceReviewsApiFp = function (configuration) {
32010
32103
  /**
32011
32104
  *
32012
32105
  * @param {string} serviceReviewId
32106
+ * @param {string} [languageCode]
32013
32107
  * @param {*} [options] Override http request option.
32014
32108
  * @throws {RequiredError}
32015
32109
  */
32016
- apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
32110
+ apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, options) {
32017
32111
  return __awaiter(this, void 0, void 0, function () {
32018
32112
  var localVarAxiosArgs;
32019
32113
  return __generator(this, function (_a) {
32020
32114
  switch (_a.label) {
32021
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options)];
32115
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, options)];
32022
32116
  case 1:
32023
32117
  localVarAxiosArgs = _a.sent();
32024
32118
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -32169,6 +32263,7 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
32169
32263
  /**
32170
32264
  *
32171
32265
  * @summary Get all ServiceReviews.
32266
+ * @param {string} [id]
32172
32267
  * @param {string} [serviceId]
32173
32268
  * @param {string} [serviceName]
32174
32269
  * @param {string} [patientId]
@@ -32185,8 +32280,8 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
32185
32280
  * @param {*} [options] Override http request option.
32186
32281
  * @throws {RequiredError}
32187
32282
  */
32188
- apiV1ServicereviewsGet: function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
32189
- return localVarFp.apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
32283
+ apiV1ServicereviewsGet: function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
32284
+ return localVarFp.apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
32190
32285
  },
32191
32286
  /**
32192
32287
  *
@@ -32211,11 +32306,12 @@ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
32211
32306
  /**
32212
32307
  *
32213
32308
  * @param {string} serviceReviewId
32309
+ * @param {string} [languageCode]
32214
32310
  * @param {*} [options] Override http request option.
32215
32311
  * @throws {RequiredError}
32216
32312
  */
32217
- apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
32218
- return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
32313
+ apiV1ServicereviewsServiceReviewIdGet: function (serviceReviewId, languageCode, options) {
32314
+ return localVarFp.apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, options).then(function (request) { return request(axios, basePath); });
32219
32315
  },
32220
32316
  /**
32221
32317
  *
@@ -32304,6 +32400,7 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
32304
32400
  /**
32305
32401
  *
32306
32402
  * @summary Get all ServiceReviews.
32403
+ * @param {string} [id]
32307
32404
  * @param {string} [serviceId]
32308
32405
  * @param {string} [serviceName]
32309
32406
  * @param {string} [patientId]
@@ -32321,9 +32418,9 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
32321
32418
  * @throws {RequiredError}
32322
32419
  * @memberof ServiceReviewsApi
32323
32420
  */
32324
- ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
32421
+ ServiceReviewsApi.prototype.apiV1ServicereviewsGet = function (id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options) {
32325
32422
  var _this = this;
32326
- return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
32423
+ return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsGet(id, serviceId, serviceName, patientId, patientName, gender, recommended, rate, reviewType, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
32327
32424
  };
32328
32425
  /**
32329
32426
  *
@@ -32352,13 +32449,14 @@ var ServiceReviewsApi = /** @class */ (function (_super) {
32352
32449
  /**
32353
32450
  *
32354
32451
  * @param {string} serviceReviewId
32452
+ * @param {string} [languageCode]
32355
32453
  * @param {*} [options] Override http request option.
32356
32454
  * @throws {RequiredError}
32357
32455
  * @memberof ServiceReviewsApi
32358
32456
  */
32359
- ServiceReviewsApi.prototype.apiV1ServicereviewsServiceReviewIdGet = function (serviceReviewId, options) {
32457
+ ServiceReviewsApi.prototype.apiV1ServicereviewsServiceReviewIdGet = function (serviceReviewId, languageCode, options) {
32360
32458
  var _this = this;
32361
- return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
32459
+ return exports.ServiceReviewsApiFp(this.configuration).apiV1ServicereviewsServiceReviewIdGet(serviceReviewId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
32362
32460
  };
32363
32461
  /**
32364
32462
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "3.5.0",
3
+ "version": "3.5.3",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {