ch-api-client-typescript2 2.9.0 → 2.9.2

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
@@ -9420,7 +9420,7 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9420
9420
  * @param {*} [options] Override http request option.
9421
9421
  * @throws {RequiredError}
9422
9422
  */
9423
- apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9423
+ apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9424
9424
  if (options === void 0) { options = {}; }
9425
9425
  return __awaiter(_this, void 0, void 0, function () {
9426
9426
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9428,8 +9428,8 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9428
9428
  switch (_a.label) {
9429
9429
  case 0:
9430
9430
  // verify required parameter 'channelUrl' is not null or undefined
9431
- (0, common_1.assertParamExists)('apiV1GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl);
9432
- localVarPath = "/api/v1/groupchannels/{channelUrl}/invite"
9431
+ (0, common_1.assertParamExists)('apiV2GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl);
9432
+ localVarPath = "/api/v2/groupchannels/{channelUrl}/invite"
9433
9433
  .replace("{".concat("channelUrl", "}"), encodeURIComponent(String(channelUrl)));
9434
9434
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9435
9435
  if (configuration) {
@@ -9461,10 +9461,11 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9461
9461
  /**
9462
9462
  *
9463
9463
  * @param {string} dealId
9464
+ * @param {string} [hospitalId]
9464
9465
  * @param {*} [options] Override http request option.
9465
9466
  * @throws {RequiredError}
9466
9467
  */
9467
- apiV1GroupchannelsDealDealIdGet: function (dealId, options) {
9468
+ apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
9468
9469
  if (options === void 0) { options = {}; }
9469
9470
  return __awaiter(_this, void 0, void 0, function () {
9470
9471
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9472,8 +9473,8 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9472
9473
  switch (_a.label) {
9473
9474
  case 0:
9474
9475
  // verify required parameter 'dealId' is not null or undefined
9475
- (0, common_1.assertParamExists)('apiV1GroupchannelsDealDealIdGet', 'dealId', dealId);
9476
- localVarPath = "/api/v1/groupchannels/deal/{dealId}"
9476
+ (0, common_1.assertParamExists)('apiV2GroupchannelsDealDealIdGet', 'dealId', dealId);
9477
+ localVarPath = "/api/v2/groupchannels/deal/{dealId}"
9477
9478
  .replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
9478
9479
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9479
9480
  if (configuration) {
@@ -9489,6 +9490,9 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9489
9490
  // authentication oauth2 required
9490
9491
  // oauth required
9491
9492
  _a.sent();
9493
+ if (hospitalId !== undefined) {
9494
+ localVarQueryParameter['hospitalId'] = hospitalId;
9495
+ }
9492
9496
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9493
9497
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9494
9498
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9503,10 +9507,11 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9503
9507
  /**
9504
9508
  *
9505
9509
  * @param {string} doctorId
9510
+ * @param {string} [hospitalId]
9506
9511
  * @param {*} [options] Override http request option.
9507
9512
  * @throws {RequiredError}
9508
9513
  */
9509
- apiV1GroupchannelsDoctorDoctorIdGet: function (doctorId, options) {
9514
+ apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
9510
9515
  if (options === void 0) { options = {}; }
9511
9516
  return __awaiter(_this, void 0, void 0, function () {
9512
9517
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9514,8 +9519,8 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9514
9519
  switch (_a.label) {
9515
9520
  case 0:
9516
9521
  // verify required parameter 'doctorId' is not null or undefined
9517
- (0, common_1.assertParamExists)('apiV1GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId);
9518
- localVarPath = "/api/v1/groupchannels/doctor/{doctorId}"
9522
+ (0, common_1.assertParamExists)('apiV2GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId);
9523
+ localVarPath = "/api/v2/groupchannels/doctor/{doctorId}"
9519
9524
  .replace("{".concat("doctorId", "}"), encodeURIComponent(String(doctorId)));
9520
9525
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9521
9526
  if (configuration) {
@@ -9531,6 +9536,9 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9531
9536
  // authentication oauth2 required
9532
9537
  // oauth required
9533
9538
  _a.sent();
9539
+ if (hospitalId !== undefined) {
9540
+ localVarQueryParameter['hospitalId'] = hospitalId;
9541
+ }
9534
9542
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9535
9543
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9536
9544
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -9548,7 +9556,7 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9548
9556
  * @param {*} [options] Override http request option.
9549
9557
  * @throws {RequiredError}
9550
9558
  */
9551
- apiV1GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9559
+ apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9552
9560
  if (options === void 0) { options = {}; }
9553
9561
  return __awaiter(_this, void 0, void 0, function () {
9554
9562
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9556,8 +9564,8 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
9556
9564
  switch (_a.label) {
9557
9565
  case 0:
9558
9566
  // verify required parameter 'hospitalId' is not null or undefined
9559
- (0, common_1.assertParamExists)('apiV1GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId);
9560
- localVarPath = "/api/v1/groupchannels/hospital/{hospitalId}"
9567
+ (0, common_1.assertParamExists)('apiV2GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId);
9568
+ localVarPath = "/api/v2/groupchannels/hospital/{hospitalId}"
9561
9569
  .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
9562
9570
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9563
9571
  if (configuration) {
@@ -9601,12 +9609,12 @@ var GroupChannelsApiFp = function (configuration) {
9601
9609
  * @param {*} [options] Override http request option.
9602
9610
  * @throws {RequiredError}
9603
9611
  */
9604
- apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9612
+ apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9605
9613
  return __awaiter(this, void 0, void 0, function () {
9606
9614
  var localVarAxiosArgs;
9607
9615
  return __generator(this, function (_a) {
9608
9616
  switch (_a.label) {
9609
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options)];
9617
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options)];
9610
9618
  case 1:
9611
9619
  localVarAxiosArgs = _a.sent();
9612
9620
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9617,15 +9625,16 @@ var GroupChannelsApiFp = function (configuration) {
9617
9625
  /**
9618
9626
  *
9619
9627
  * @param {string} dealId
9628
+ * @param {string} [hospitalId]
9620
9629
  * @param {*} [options] Override http request option.
9621
9630
  * @throws {RequiredError}
9622
9631
  */
9623
- apiV1GroupchannelsDealDealIdGet: function (dealId, options) {
9632
+ apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
9624
9633
  return __awaiter(this, void 0, void 0, function () {
9625
9634
  var localVarAxiosArgs;
9626
9635
  return __generator(this, function (_a) {
9627
9636
  switch (_a.label) {
9628
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsDealDealIdGet(dealId, options)];
9637
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options)];
9629
9638
  case 1:
9630
9639
  localVarAxiosArgs = _a.sent();
9631
9640
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9636,15 +9645,16 @@ var GroupChannelsApiFp = function (configuration) {
9636
9645
  /**
9637
9646
  *
9638
9647
  * @param {string} doctorId
9648
+ * @param {string} [hospitalId]
9639
9649
  * @param {*} [options] Override http request option.
9640
9650
  * @throws {RequiredError}
9641
9651
  */
9642
- apiV1GroupchannelsDoctorDoctorIdGet: function (doctorId, options) {
9652
+ apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
9643
9653
  return __awaiter(this, void 0, void 0, function () {
9644
9654
  var localVarAxiosArgs;
9645
9655
  return __generator(this, function (_a) {
9646
9656
  switch (_a.label) {
9647
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options)];
9657
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options)];
9648
9658
  case 1:
9649
9659
  localVarAxiosArgs = _a.sent();
9650
9660
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9658,12 +9668,12 @@ var GroupChannelsApiFp = function (configuration) {
9658
9668
  * @param {*} [options] Override http request option.
9659
9669
  * @throws {RequiredError}
9660
9670
  */
9661
- apiV1GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9671
+ apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9662
9672
  return __awaiter(this, void 0, void 0, function () {
9663
9673
  var localVarAxiosArgs;
9664
9674
  return __generator(this, function (_a) {
9665
9675
  switch (_a.label) {
9666
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options)];
9676
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options)];
9667
9677
  case 1:
9668
9678
  localVarAxiosArgs = _a.sent();
9669
9679
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -9688,26 +9698,28 @@ var GroupChannelsApiFactory = function (configuration, basePath, axios) {
9688
9698
  * @param {*} [options] Override http request option.
9689
9699
  * @throws {RequiredError}
9690
9700
  */
9691
- apiV1GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9692
- return localVarFp.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(axios, basePath); });
9701
+ apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9702
+ return localVarFp.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(axios, basePath); });
9693
9703
  },
9694
9704
  /**
9695
9705
  *
9696
9706
  * @param {string} dealId
9707
+ * @param {string} [hospitalId]
9697
9708
  * @param {*} [options] Override http request option.
9698
9709
  * @throws {RequiredError}
9699
9710
  */
9700
- apiV1GroupchannelsDealDealIdGet: function (dealId, options) {
9701
- return localVarFp.apiV1GroupchannelsDealDealIdGet(dealId, options).then(function (request) { return request(axios, basePath); });
9711
+ apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
9712
+ return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then(function (request) { return request(axios, basePath); });
9702
9713
  },
9703
9714
  /**
9704
9715
  *
9705
9716
  * @param {string} doctorId
9717
+ * @param {string} [hospitalId]
9706
9718
  * @param {*} [options] Override http request option.
9707
9719
  * @throws {RequiredError}
9708
9720
  */
9709
- apiV1GroupchannelsDoctorDoctorIdGet: function (doctorId, options) {
9710
- return localVarFp.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
9721
+ apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
9722
+ return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
9711
9723
  },
9712
9724
  /**
9713
9725
  *
@@ -9715,8 +9727,8 @@ var GroupChannelsApiFactory = function (configuration, basePath, axios) {
9715
9727
  * @param {*} [options] Override http request option.
9716
9728
  * @throws {RequiredError}
9717
9729
  */
9718
- apiV1GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9719
- return localVarFp.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
9730
+ apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
9731
+ return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
9720
9732
  },
9721
9733
  };
9722
9734
  };
@@ -9740,31 +9752,33 @@ var GroupChannelsApi = /** @class */ (function (_super) {
9740
9752
  * @throws {RequiredError}
9741
9753
  * @memberof GroupChannelsApi
9742
9754
  */
9743
- GroupChannelsApi.prototype.apiV1GroupchannelsChannelUrlInvitePost = function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9755
+ GroupChannelsApi.prototype.apiV2GroupchannelsChannelUrlInvitePost = function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
9744
9756
  var _this = this;
9745
- return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
9757
+ return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
9746
9758
  };
9747
9759
  /**
9748
9760
  *
9749
9761
  * @param {string} dealId
9762
+ * @param {string} [hospitalId]
9750
9763
  * @param {*} [options] Override http request option.
9751
9764
  * @throws {RequiredError}
9752
9765
  * @memberof GroupChannelsApi
9753
9766
  */
9754
- GroupChannelsApi.prototype.apiV1GroupchannelsDealDealIdGet = function (dealId, options) {
9767
+ GroupChannelsApi.prototype.apiV2GroupchannelsDealDealIdGet = function (dealId, hospitalId, options) {
9755
9768
  var _this = this;
9756
- return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsDealDealIdGet(dealId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9769
+ return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9757
9770
  };
9758
9771
  /**
9759
9772
  *
9760
9773
  * @param {string} doctorId
9774
+ * @param {string} [hospitalId]
9761
9775
  * @param {*} [options] Override http request option.
9762
9776
  * @throws {RequiredError}
9763
9777
  * @memberof GroupChannelsApi
9764
9778
  */
9765
- GroupChannelsApi.prototype.apiV1GroupchannelsDoctorDoctorIdGet = function (doctorId, options) {
9779
+ GroupChannelsApi.prototype.apiV2GroupchannelsDoctorDoctorIdGet = function (doctorId, hospitalId, options) {
9766
9780
  var _this = this;
9767
- return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9781
+ return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9768
9782
  };
9769
9783
  /**
9770
9784
  *
@@ -9773,9 +9787,9 @@ var GroupChannelsApi = /** @class */ (function (_super) {
9773
9787
  * @throws {RequiredError}
9774
9788
  * @memberof GroupChannelsApi
9775
9789
  */
9776
- GroupChannelsApi.prototype.apiV1GroupchannelsHospitalHospitalIdGet = function (hospitalId, options) {
9790
+ GroupChannelsApi.prototype.apiV2GroupchannelsHospitalHospitalIdGet = function (hospitalId, options) {
9777
9791
  var _this = this;
9778
- return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9792
+ return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9779
9793
  };
9780
9794
  return GroupChannelsApi;
9781
9795
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -18177,10 +18177,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18177
18177
  * @param {*} [options] Override http request option.
18178
18178
  * @throws {RequiredError}
18179
18179
  */
18180
- apiV1GroupchannelsChannelUrlInvitePost: async (channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18180
+ apiV2GroupchannelsChannelUrlInvitePost: async (channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18181
18181
  // verify required parameter 'channelUrl' is not null or undefined
18182
- assertParamExists('apiV1GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl)
18183
- const localVarPath = `/api/v1/groupchannels/{channelUrl}/invite`
18182
+ assertParamExists('apiV2GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl)
18183
+ const localVarPath = `/api/v2/groupchannels/{channelUrl}/invite`
18184
18184
  .replace(`{${"channelUrl"}}`, encodeURIComponent(String(channelUrl)));
18185
18185
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18186
18186
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18214,13 +18214,14 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18214
18214
  /**
18215
18215
  *
18216
18216
  * @param {string} dealId
18217
+ * @param {string} [hospitalId]
18217
18218
  * @param {*} [options] Override http request option.
18218
18219
  * @throws {RequiredError}
18219
18220
  */
18220
- apiV1GroupchannelsDealDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18221
+ apiV2GroupchannelsDealDealIdGet: async (dealId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18221
18222
  // verify required parameter 'dealId' is not null or undefined
18222
- assertParamExists('apiV1GroupchannelsDealDealIdGet', 'dealId', dealId)
18223
- const localVarPath = `/api/v1/groupchannels/deal/{dealId}`
18223
+ assertParamExists('apiV2GroupchannelsDealDealIdGet', 'dealId', dealId)
18224
+ const localVarPath = `/api/v2/groupchannels/deal/{dealId}`
18224
18225
  .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
18225
18226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18226
18227
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18237,6 +18238,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18237
18238
  // oauth required
18238
18239
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
18239
18240
 
18241
+ if (hospitalId !== undefined) {
18242
+ localVarQueryParameter['hospitalId'] = hospitalId;
18243
+ }
18244
+
18240
18245
 
18241
18246
 
18242
18247
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18251,13 +18256,14 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18251
18256
  /**
18252
18257
  *
18253
18258
  * @param {string} doctorId
18259
+ * @param {string} [hospitalId]
18254
18260
  * @param {*} [options] Override http request option.
18255
18261
  * @throws {RequiredError}
18256
18262
  */
18257
- apiV1GroupchannelsDoctorDoctorIdGet: async (doctorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18263
+ apiV2GroupchannelsDoctorDoctorIdGet: async (doctorId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18258
18264
  // verify required parameter 'doctorId' is not null or undefined
18259
- assertParamExists('apiV1GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId)
18260
- const localVarPath = `/api/v1/groupchannels/doctor/{doctorId}`
18265
+ assertParamExists('apiV2GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId)
18266
+ const localVarPath = `/api/v2/groupchannels/doctor/{doctorId}`
18261
18267
  .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
18262
18268
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18263
18269
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18274,6 +18280,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18274
18280
  // oauth required
18275
18281
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
18276
18282
 
18283
+ if (hospitalId !== undefined) {
18284
+ localVarQueryParameter['hospitalId'] = hospitalId;
18285
+ }
18286
+
18277
18287
 
18278
18288
 
18279
18289
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18291,10 +18301,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18291
18301
  * @param {*} [options] Override http request option.
18292
18302
  * @throws {RequiredError}
18293
18303
  */
18294
- apiV1GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18304
+ apiV2GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18295
18305
  // verify required parameter 'hospitalId' is not null or undefined
18296
- assertParamExists('apiV1GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId)
18297
- const localVarPath = `/api/v1/groupchannels/hospital/{hospitalId}`
18306
+ assertParamExists('apiV2GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId)
18307
+ const localVarPath = `/api/v2/groupchannels/hospital/{hospitalId}`
18298
18308
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
18299
18309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18300
18310
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18339,28 +18349,30 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
18339
18349
  * @param {*} [options] Override http request option.
18340
18350
  * @throws {RequiredError}
18341
18351
  */
18342
- async apiV1GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18343
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options);
18352
+ async apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options);
18344
18354
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18345
18355
  },
18346
18356
  /**
18347
18357
  *
18348
18358
  * @param {string} dealId
18359
+ * @param {string} [hospitalId]
18349
18360
  * @param {*} [options] Override http request option.
18350
18361
  * @throws {RequiredError}
18351
18362
  */
18352
- async apiV1GroupchannelsDealDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18353
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsDealDealIdGet(dealId, options);
18363
+ async apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options);
18354
18365
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18355
18366
  },
18356
18367
  /**
18357
18368
  *
18358
18369
  * @param {string} doctorId
18370
+ * @param {string} [hospitalId]
18359
18371
  * @param {*} [options] Override http request option.
18360
18372
  * @throws {RequiredError}
18361
18373
  */
18362
- async apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18363
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options);
18374
+ async apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options);
18364
18376
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18365
18377
  },
18366
18378
  /**
@@ -18369,8 +18381,8 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
18369
18381
  * @param {*} [options] Override http request option.
18370
18382
  * @throws {RequiredError}
18371
18383
  */
18372
- async apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18373
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options);
18384
+ async apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options);
18374
18386
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18375
18387
  },
18376
18388
  }
@@ -18390,26 +18402,28 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
18390
18402
  * @param {*} [options] Override http request option.
18391
18403
  * @throws {RequiredError}
18392
18404
  */
18393
- apiV1GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18394
- return localVarFp.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(axios, basePath));
18405
+ apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18406
+ return localVarFp.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(axios, basePath));
18395
18407
  },
18396
18408
  /**
18397
18409
  *
18398
18410
  * @param {string} dealId
18411
+ * @param {string} [hospitalId]
18399
18412
  * @param {*} [options] Override http request option.
18400
18413
  * @throws {RequiredError}
18401
18414
  */
18402
- apiV1GroupchannelsDealDealIdGet(dealId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18403
- return localVarFp.apiV1GroupchannelsDealDealIdGet(dealId, options).then((request) => request(axios, basePath));
18415
+ apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18416
+ return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(axios, basePath));
18404
18417
  },
18405
18418
  /**
18406
18419
  *
18407
18420
  * @param {string} doctorId
18421
+ * @param {string} [hospitalId]
18408
18422
  * @param {*} [options] Override http request option.
18409
18423
  * @throws {RequiredError}
18410
18424
  */
18411
- apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18412
- return localVarFp.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then((request) => request(axios, basePath));
18425
+ apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18426
+ return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(axios, basePath));
18413
18427
  },
18414
18428
  /**
18415
18429
  *
@@ -18417,8 +18431,8 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
18417
18431
  * @param {*} [options] Override http request option.
18418
18432
  * @throws {RequiredError}
18419
18433
  */
18420
- apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18421
- return localVarFp.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
18434
+ apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18435
+ return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
18422
18436
  },
18423
18437
  };
18424
18438
  };
@@ -18438,30 +18452,32 @@ export class GroupChannelsApi extends BaseAPI {
18438
18452
  * @throws {RequiredError}
18439
18453
  * @memberof GroupChannelsApi
18440
18454
  */
18441
- public apiV1GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig) {
18442
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(this.axios, this.basePath));
18455
+ public apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig) {
18456
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(this.axios, this.basePath));
18443
18457
  }
18444
18458
 
18445
18459
  /**
18446
18460
  *
18447
18461
  * @param {string} dealId
18462
+ * @param {string} [hospitalId]
18448
18463
  * @param {*} [options] Override http request option.
18449
18464
  * @throws {RequiredError}
18450
18465
  * @memberof GroupChannelsApi
18451
18466
  */
18452
- public apiV1GroupchannelsDealDealIdGet(dealId: string, options?: AxiosRequestConfig) {
18453
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsDealDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
18467
+ public apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18468
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(this.axios, this.basePath));
18454
18469
  }
18455
18470
 
18456
18471
  /**
18457
18472
  *
18458
18473
  * @param {string} doctorId
18474
+ * @param {string} [hospitalId]
18459
18475
  * @param {*} [options] Override http request option.
18460
18476
  * @throws {RequiredError}
18461
18477
  * @memberof GroupChannelsApi
18462
18478
  */
18463
- public apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: AxiosRequestConfig) {
18464
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then((request) => request(this.axios, this.basePath));
18479
+ public apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18480
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(this.axios, this.basePath));
18465
18481
  }
18466
18482
 
18467
18483
  /**
@@ -18471,8 +18487,8 @@ export class GroupChannelsApi extends BaseAPI {
18471
18487
  * @throws {RequiredError}
18472
18488
  * @memberof GroupChannelsApi
18473
18489
  */
18474
- public apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig) {
18475
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(this.axios, this.basePath));
18490
+ public apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig) {
18491
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(this.axios, this.basePath));
18476
18492
  }
18477
18493
  }
18478
18494