ch-admin-api-client-typescript 2.1.5 → 2.1.6

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
@@ -5010,6 +5010,56 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5010
5010
  });
5011
5011
  });
5012
5012
  },
5013
+ /**
5014
+ *
5015
+ * @summary Update ContributorHandle.
5016
+ * @param {string} contributorId
5017
+ * @param {string} handleId
5018
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5019
+ * @param {*} [options] Override http request option.
5020
+ * @throws {RequiredError}
5021
+ */
5022
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5023
+ if (options === void 0) { options = {}; }
5024
+ return __awaiter(_this, void 0, void 0, function () {
5025
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5026
+ return __generator(this, function (_a) {
5027
+ switch (_a.label) {
5028
+ case 0:
5029
+ // verify required parameter 'contributorId' is not null or undefined
5030
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId);
5031
+ // verify required parameter 'handleId' is not null or undefined
5032
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId);
5033
+ localVarPath = "/api/v1/contributors/{contributorId}/handles/{handleId}"
5034
+ .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
5035
+ .replace("{" + "handleId" + "}", encodeURIComponent(String(handleId)));
5036
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5037
+ if (configuration) {
5038
+ baseOptions = configuration.baseOptions;
5039
+ }
5040
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5041
+ localVarHeaderParameter = {};
5042
+ localVarQueryParameter = {};
5043
+ // authentication oauth2 required
5044
+ // oauth required
5045
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
5046
+ case 1:
5047
+ // authentication oauth2 required
5048
+ // oauth required
5049
+ _a.sent();
5050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5051
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5052
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5053
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5054
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration);
5055
+ return [2 /*return*/, {
5056
+ url: common_1.toPathString(localVarUrlObj),
5057
+ options: localVarRequestOptions,
5058
+ }];
5059
+ }
5060
+ });
5061
+ });
5062
+ },
5013
5063
  /**
5014
5064
  *
5015
5065
  * @summary Get ContributorHandle.
@@ -5399,6 +5449,28 @@ exports.ContributorsApiFp = function (configuration) {
5399
5449
  });
5400
5450
  });
5401
5451
  },
5452
+ /**
5453
+ *
5454
+ * @summary Update ContributorHandle.
5455
+ * @param {string} contributorId
5456
+ * @param {string} handleId
5457
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5458
+ * @param {*} [options] Override http request option.
5459
+ * @throws {RequiredError}
5460
+ */
5461
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5462
+ return __awaiter(this, void 0, void 0, function () {
5463
+ var localVarAxiosArgs;
5464
+ return __generator(this, function (_a) {
5465
+ switch (_a.label) {
5466
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options)];
5467
+ case 1:
5468
+ localVarAxiosArgs = _a.sent();
5469
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5470
+ }
5471
+ });
5472
+ });
5473
+ },
5402
5474
  /**
5403
5475
  *
5404
5476
  * @summary Get ContributorHandle.
@@ -5582,6 +5654,18 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
5582
5654
  apiV1ContributorsContributorIdHandlesHandleIdGet: function (contributorId, handleId, options) {
5583
5655
  return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(axios, basePath); });
5584
5656
  },
5657
+ /**
5658
+ *
5659
+ * @summary Update ContributorHandle.
5660
+ * @param {string} contributorId
5661
+ * @param {string} handleId
5662
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5663
+ * @param {*} [options] Override http request option.
5664
+ * @throws {RequiredError}
5665
+ */
5666
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5667
+ return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
5668
+ },
5585
5669
  /**
5586
5670
  *
5587
5671
  * @summary Get ContributorHandle.
@@ -5729,6 +5813,20 @@ var ContributorsApi = /** @class */ (function (_super) {
5729
5813
  var _this = this;
5730
5814
  return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5731
5815
  };
5816
+ /**
5817
+ *
5818
+ * @summary Update ContributorHandle.
5819
+ * @param {string} contributorId
5820
+ * @param {string} handleId
5821
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5822
+ * @param {*} [options] Override http request option.
5823
+ * @throws {RequiredError}
5824
+ * @memberof ContributorsApi
5825
+ */
5826
+ ContributorsApi.prototype.apiV1ContributorsContributorIdHandlesHandleIdPut = function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5827
+ var _this = this;
5828
+ return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
5829
+ };
5732
5830
  /**
5733
5831
  *
5734
5832
  * @summary Get ContributorHandle.
@@ -9878,7 +9976,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9878
9976
  *
9879
9977
  * @summary Get All DoctorSpecialties.
9880
9978
  * @param {string} doctorId
9881
- * @param {string} [doctorId2]
9882
9979
  * @param {string} [doctorName]
9883
9980
  * @param {string} [specialtyId]
9884
9981
  * @param {string} [specialtyName]
@@ -9888,7 +9985,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9888
9985
  * @param {*} [options] Override http request option.
9889
9986
  * @throws {RequiredError}
9890
9987
  */
9891
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
9988
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
9892
9989
  if (options === void 0) { options = {}; }
9893
9990
  return __awaiter(_this, void 0, void 0, function () {
9894
9991
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9913,9 +10010,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9913
10010
  // authentication oauth2 required
9914
10011
  // oauth required
9915
10012
  _a.sent();
9916
- if (doctorId2 !== undefined) {
9917
- localVarQueryParameter['DoctorId'] = doctorId2;
9918
- }
9919
10013
  if (doctorName !== undefined) {
9920
10014
  localVarQueryParameter['DoctorName'] = doctorName;
9921
10015
  }
@@ -9947,6 +10041,52 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9947
10041
  });
9948
10042
  });
9949
10043
  },
10044
+ /**
10045
+ *
10046
+ * @summary Link a doctor to a specialty.
10047
+ * @param {string} doctorId
10048
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
10049
+ * @param {*} [options] Override http request option.
10050
+ * @throws {RequiredError}
10051
+ */
10052
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10053
+ if (options === void 0) { options = {}; }
10054
+ return __awaiter(_this, void 0, void 0, function () {
10055
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10056
+ return __generator(this, function (_a) {
10057
+ switch (_a.label) {
10058
+ case 0:
10059
+ // verify required parameter 'doctorId' is not null or undefined
10060
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId);
10061
+ localVarPath = "/api/v1/doctors/{doctorId}/specialties"
10062
+ .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
10063
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10064
+ if (configuration) {
10065
+ baseOptions = configuration.baseOptions;
10066
+ }
10067
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10068
+ localVarHeaderParameter = {};
10069
+ localVarQueryParameter = {};
10070
+ // authentication oauth2 required
10071
+ // oauth required
10072
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
10073
+ case 1:
10074
+ // authentication oauth2 required
10075
+ // oauth required
10076
+ _a.sent();
10077
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10078
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10079
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10080
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10081
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10082
+ return [2 /*return*/, {
10083
+ url: common_1.toPathString(localVarUrlObj),
10084
+ options: localVarRequestOptions,
10085
+ }];
10086
+ }
10087
+ });
10088
+ });
10089
+ },
9950
10090
  /**
9951
10091
  *
9952
10092
  * @summary Remove link between the doctor and the specialty.
@@ -10043,13 +10183,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10043
10183
  },
10044
10184
  /**
10045
10185
  *
10046
- * @summary Link a doctor to a specialty.
10186
+ * @summary Update DoctorSpecialty.
10047
10187
  * @param {string} doctorId
10048
10188
  * @param {string} specialtyId
10189
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10049
10190
  * @param {*} [options] Override http request option.
10050
10191
  * @throws {RequiredError}
10051
10192
  */
10052
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
10193
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10053
10194
  if (options === void 0) { options = {}; }
10054
10195
  return __awaiter(_this, void 0, void 0, function () {
10055
10196
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10057,9 +10198,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10057
10198
  switch (_a.label) {
10058
10199
  case 0:
10059
10200
  // verify required parameter 'doctorId' is not null or undefined
10060
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'doctorId', doctorId);
10201
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId);
10061
10202
  // verify required parameter 'specialtyId' is not null or undefined
10062
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'specialtyId', specialtyId);
10203
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
10063
10204
  localVarPath = "/api/v1/doctors/{doctorId}/specialties/{specialtyId}"
10064
10205
  .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
10065
10206
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
@@ -10067,7 +10208,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10067
10208
  if (configuration) {
10068
10209
  baseOptions = configuration.baseOptions;
10069
10210
  }
10070
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10211
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10071
10212
  localVarHeaderParameter = {};
10072
10213
  localVarQueryParameter = {};
10073
10214
  // authentication oauth2 required
@@ -10077,9 +10218,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10077
10218
  // authentication oauth2 required
10078
10219
  // oauth required
10079
10220
  _a.sent();
10221
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10080
10222
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10081
10223
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10082
10224
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10225
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10083
10226
  return [2 /*return*/, {
10084
10227
  url: common_1.toPathString(localVarUrlObj),
10085
10228
  options: localVarRequestOptions,
@@ -10864,7 +11007,6 @@ exports.DoctorsApiFp = function (configuration) {
10864
11007
  *
10865
11008
  * @summary Get All DoctorSpecialties.
10866
11009
  * @param {string} doctorId
10867
- * @param {string} [doctorId2]
10868
11010
  * @param {string} [doctorName]
10869
11011
  * @param {string} [specialtyId]
10870
11012
  * @param {string} [specialtyName]
@@ -10874,12 +11016,33 @@ exports.DoctorsApiFp = function (configuration) {
10874
11016
  * @param {*} [options] Override http request option.
10875
11017
  * @throws {RequiredError}
10876
11018
  */
10877
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11019
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11020
+ return __awaiter(this, void 0, void 0, function () {
11021
+ var localVarAxiosArgs;
11022
+ return __generator(this, function (_a) {
11023
+ switch (_a.label) {
11024
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11025
+ case 1:
11026
+ localVarAxiosArgs = _a.sent();
11027
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11028
+ }
11029
+ });
11030
+ });
11031
+ },
11032
+ /**
11033
+ *
11034
+ * @summary Link a doctor to a specialty.
11035
+ * @param {string} doctorId
11036
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11037
+ * @param {*} [options] Override http request option.
11038
+ * @throws {RequiredError}
11039
+ */
11040
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10878
11041
  return __awaiter(this, void 0, void 0, function () {
10879
11042
  var localVarAxiosArgs;
10880
11043
  return __generator(this, function (_a) {
10881
11044
  switch (_a.label) {
10882
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11045
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options)];
10883
11046
  case 1:
10884
11047
  localVarAxiosArgs = _a.sent();
10885
11048
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10931,18 +11094,19 @@ exports.DoctorsApiFp = function (configuration) {
10931
11094
  },
10932
11095
  /**
10933
11096
  *
10934
- * @summary Link a doctor to a specialty.
11097
+ * @summary Update DoctorSpecialty.
10935
11098
  * @param {string} doctorId
10936
11099
  * @param {string} specialtyId
11100
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10937
11101
  * @param {*} [options] Override http request option.
10938
11102
  * @throws {RequiredError}
10939
11103
  */
10940
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11104
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10941
11105
  return __awaiter(this, void 0, void 0, function () {
10942
11106
  var localVarAxiosArgs;
10943
11107
  return __generator(this, function (_a) {
10944
11108
  switch (_a.label) {
10945
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options)];
11109
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options)];
10946
11110
  case 1:
10947
11111
  localVarAxiosArgs = _a.sent();
10948
11112
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11345,7 +11509,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11345
11509
  *
11346
11510
  * @summary Get All DoctorSpecialties.
11347
11511
  * @param {string} doctorId
11348
- * @param {string} [doctorId2]
11349
11512
  * @param {string} [doctorName]
11350
11513
  * @param {string} [specialtyId]
11351
11514
  * @param {string} [specialtyName]
@@ -11355,8 +11518,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11355
11518
  * @param {*} [options] Override http request option.
11356
11519
  * @throws {RequiredError}
11357
11520
  */
11358
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11359
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11521
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11522
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11523
+ },
11524
+ /**
11525
+ *
11526
+ * @summary Link a doctor to a specialty.
11527
+ * @param {string} doctorId
11528
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11529
+ * @param {*} [options] Override http request option.
11530
+ * @throws {RequiredError}
11531
+ */
11532
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
11533
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11360
11534
  },
11361
11535
  /**
11362
11536
  *
@@ -11382,14 +11556,15 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11382
11556
  },
11383
11557
  /**
11384
11558
  *
11385
- * @summary Link a doctor to a specialty.
11559
+ * @summary Update DoctorSpecialty.
11386
11560
  * @param {string} doctorId
11387
11561
  * @param {string} specialtyId
11562
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11388
11563
  * @param {*} [options] Override http request option.
11389
11564
  * @throws {RequiredError}
11390
11565
  */
11391
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11392
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(axios, basePath); });
11566
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11567
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11393
11568
  },
11394
11569
  /**
11395
11570
  *
@@ -11810,7 +11985,6 @@ var DoctorsApi = /** @class */ (function (_super) {
11810
11985
  *
11811
11986
  * @summary Get All DoctorSpecialties.
11812
11987
  * @param {string} doctorId
11813
- * @param {string} [doctorId2]
11814
11988
  * @param {string} [doctorName]
11815
11989
  * @param {string} [specialtyId]
11816
11990
  * @param {string} [specialtyName]
@@ -11821,9 +11995,22 @@ var DoctorsApi = /** @class */ (function (_super) {
11821
11995
  * @throws {RequiredError}
11822
11996
  * @memberof DoctorsApi
11823
11997
  */
11824
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11998
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11999
+ var _this = this;
12000
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12001
+ };
12002
+ /**
12003
+ *
12004
+ * @summary Link a doctor to a specialty.
12005
+ * @param {string} doctorId
12006
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
12007
+ * @param {*} [options] Override http request option.
12008
+ * @throws {RequiredError}
12009
+ * @memberof DoctorsApi
12010
+ */
12011
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesPost = function (doctorId, createDoctorSpecialtyCommand, options) {
11825
12012
  var _this = this;
11826
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12013
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11827
12014
  };
11828
12015
  /**
11829
12016
  *
@@ -11853,16 +12040,17 @@ var DoctorsApi = /** @class */ (function (_super) {
11853
12040
  };
11854
12041
  /**
11855
12042
  *
11856
- * @summary Link a doctor to a specialty.
12043
+ * @summary Update DoctorSpecialty.
11857
12044
  * @param {string} doctorId
11858
12045
  * @param {string} specialtyId
12046
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11859
12047
  * @param {*} [options] Override http request option.
11860
12048
  * @throws {RequiredError}
11861
12049
  * @memberof DoctorsApi
11862
12050
  */
11863
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost = function (doctorId, specialtyId, options) {
12051
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut = function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11864
12052
  var _this = this;
11865
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12053
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11866
12054
  };
11867
12055
  /**
11868
12056
  *
@@ -13921,6 +14109,56 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13921
14109
  });
13922
14110
  });
13923
14111
  },
14112
+ /**
14113
+ *
14114
+ * @summary Update HospitalSpecialty.
14115
+ * @param {string} hospitalId
14116
+ * @param {string} specialtyId
14117
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
14118
+ * @param {*} [options] Override http request option.
14119
+ * @throws {RequiredError}
14120
+ */
14121
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
14122
+ if (options === void 0) { options = {}; }
14123
+ return __awaiter(_this, void 0, void 0, function () {
14124
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14125
+ return __generator(this, function (_a) {
14126
+ switch (_a.label) {
14127
+ case 0:
14128
+ // verify required parameter 'hospitalId' is not null or undefined
14129
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
14130
+ // verify required parameter 'specialtyId' is not null or undefined
14131
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
14132
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14133
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14134
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14135
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14136
+ if (configuration) {
14137
+ baseOptions = configuration.baseOptions;
14138
+ }
14139
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14140
+ localVarHeaderParameter = {};
14141
+ localVarQueryParameter = {};
14142
+ // authentication oauth2 required
14143
+ // oauth required
14144
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14145
+ case 1:
14146
+ // authentication oauth2 required
14147
+ // oauth required
14148
+ _a.sent();
14149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14150
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14151
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14152
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14153
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
14154
+ return [2 /*return*/, {
14155
+ url: common_1.toPathString(localVarUrlObj),
14156
+ options: localVarRequestOptions,
14157
+ }];
14158
+ }
14159
+ });
14160
+ });
14161
+ },
13924
14162
  /**
13925
14163
  *
13926
14164
  * @summary Create Hospital.
@@ -14847,6 +15085,28 @@ exports.HospitalsApiFp = function (configuration) {
14847
15085
  });
14848
15086
  });
14849
15087
  },
15088
+ /**
15089
+ *
15090
+ * @summary Update HospitalSpecialty.
15091
+ * @param {string} hospitalId
15092
+ * @param {string} specialtyId
15093
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
15094
+ * @param {*} [options] Override http request option.
15095
+ * @throws {RequiredError}
15096
+ */
15097
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
15098
+ return __awaiter(this, void 0, void 0, function () {
15099
+ var localVarAxiosArgs;
15100
+ return __generator(this, function (_a) {
15101
+ switch (_a.label) {
15102
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
15103
+ case 1:
15104
+ localVarAxiosArgs = _a.sent();
15105
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15106
+ }
15107
+ });
15108
+ });
15109
+ },
14850
15110
  /**
14851
15111
  *
14852
15112
  * @summary Create Hospital.
@@ -15365,6 +15625,18 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
15365
15625
  apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15366
15626
  return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
15367
15627
  },
15628
+ /**
15629
+ *
15630
+ * @summary Update HospitalSpecialty.
15631
+ * @param {string} hospitalId
15632
+ * @param {string} specialtyId
15633
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
15634
+ * @param {*} [options] Override http request option.
15635
+ * @throws {RequiredError}
15636
+ */
15637
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
15638
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
15639
+ },
15368
15640
  /**
15369
15641
  *
15370
15642
  * @summary Create Hospital.
@@ -15939,6 +16211,20 @@ var HospitalsApi = /** @class */ (function (_super) {
15939
16211
  var _this = this;
15940
16212
  return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15941
16213
  };
16214
+ /**
16215
+ *
16216
+ * @summary Update HospitalSpecialty.
16217
+ * @param {string} hospitalId
16218
+ * @param {string} specialtyId
16219
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
16220
+ * @param {*} [options] Override http request option.
16221
+ * @throws {RequiredError}
16222
+ * @memberof HospitalsApi
16223
+ */
16224
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
16225
+ var _this = this;
16226
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16227
+ };
15942
16228
  /**
15943
16229
  *
15944
16230
  * @summary Create Hospital.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "index.js",
6
6
  "scripts": {