ch-api-client-typescript2 2.9.0 → 2.9.4

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.4",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/api.ts CHANGED
@@ -1129,6 +1129,18 @@ export interface BookingItemModel {
1129
1129
  * @memberof BookingItemModel
1130
1130
  */
1131
1131
  'timeZone'?: string | null;
1132
+ /**
1133
+ *
1134
+ * @type {Date}
1135
+ * @memberof BookingItemModel
1136
+ */
1137
+ 'requestDate'?: Date;
1138
+ /**
1139
+ *
1140
+ * @type {string}
1141
+ * @memberof BookingItemModel
1142
+ */
1143
+ 'domain'?: string | null;
1132
1144
  /**
1133
1145
  *
1134
1146
  * @type {BookingStatus}
@@ -1334,6 +1346,18 @@ export interface BookingModel {
1334
1346
  * @memberof BookingModel
1335
1347
  */
1336
1348
  'timeZone'?: string | null;
1349
+ /**
1350
+ *
1351
+ * @type {Date}
1352
+ * @memberof BookingModel
1353
+ */
1354
+ 'requestDate'?: Date;
1355
+ /**
1356
+ *
1357
+ * @type {string}
1358
+ * @memberof BookingModel
1359
+ */
1360
+ 'domain'?: string | null;
1337
1361
  /**
1338
1362
  *
1339
1363
  * @type {BookingStatus}
@@ -1827,6 +1851,18 @@ export interface ConsultationItemModel {
1827
1851
  * @memberof ConsultationItemModel
1828
1852
  */
1829
1853
  'timeZone'?: string | null;
1854
+ /**
1855
+ *
1856
+ * @type {Date}
1857
+ * @memberof ConsultationItemModel
1858
+ */
1859
+ 'requestDate'?: Date;
1860
+ /**
1861
+ *
1862
+ * @type {string}
1863
+ * @memberof ConsultationItemModel
1864
+ */
1865
+ 'domain'?: string | null;
1830
1866
  /**
1831
1867
  *
1832
1868
  * @type {ConsultationStatus}
@@ -2092,6 +2128,18 @@ export interface ConsultationModel {
2092
2128
  * @memberof ConsultationModel
2093
2129
  */
2094
2130
  'timeZone'?: string | null;
2131
+ /**
2132
+ *
2133
+ * @type {Date}
2134
+ * @memberof ConsultationModel
2135
+ */
2136
+ 'requestDate'?: Date;
2137
+ /**
2138
+ *
2139
+ * @type {string}
2140
+ * @memberof ConsultationModel
2141
+ */
2142
+ 'domain'?: string | null;
2095
2143
  /**
2096
2144
  *
2097
2145
  * @type {ConsultationStatus}
@@ -18177,10 +18225,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18177
18225
  * @param {*} [options] Override http request option.
18178
18226
  * @throws {RequiredError}
18179
18227
  */
18180
- apiV1GroupchannelsChannelUrlInvitePost: async (channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18228
+ apiV2GroupchannelsChannelUrlInvitePost: async (channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18181
18229
  // verify required parameter 'channelUrl' is not null or undefined
18182
- assertParamExists('apiV1GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl)
18183
- const localVarPath = `/api/v1/groupchannels/{channelUrl}/invite`
18230
+ assertParamExists('apiV2GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl)
18231
+ const localVarPath = `/api/v2/groupchannels/{channelUrl}/invite`
18184
18232
  .replace(`{${"channelUrl"}}`, encodeURIComponent(String(channelUrl)));
18185
18233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18186
18234
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18214,13 +18262,14 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18214
18262
  /**
18215
18263
  *
18216
18264
  * @param {string} dealId
18265
+ * @param {string} [hospitalId]
18217
18266
  * @param {*} [options] Override http request option.
18218
18267
  * @throws {RequiredError}
18219
18268
  */
18220
- apiV1GroupchannelsDealDealIdGet: async (dealId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18269
+ apiV2GroupchannelsDealDealIdGet: async (dealId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18221
18270
  // verify required parameter 'dealId' is not null or undefined
18222
- assertParamExists('apiV1GroupchannelsDealDealIdGet', 'dealId', dealId)
18223
- const localVarPath = `/api/v1/groupchannels/deal/{dealId}`
18271
+ assertParamExists('apiV2GroupchannelsDealDealIdGet', 'dealId', dealId)
18272
+ const localVarPath = `/api/v2/groupchannels/deal/{dealId}`
18224
18273
  .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
18225
18274
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18226
18275
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18237,6 +18286,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18237
18286
  // oauth required
18238
18287
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
18239
18288
 
18289
+ if (hospitalId !== undefined) {
18290
+ localVarQueryParameter['hospitalId'] = hospitalId;
18291
+ }
18292
+
18240
18293
 
18241
18294
 
18242
18295
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18251,13 +18304,14 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18251
18304
  /**
18252
18305
  *
18253
18306
  * @param {string} doctorId
18307
+ * @param {string} [hospitalId]
18254
18308
  * @param {*} [options] Override http request option.
18255
18309
  * @throws {RequiredError}
18256
18310
  */
18257
- apiV1GroupchannelsDoctorDoctorIdGet: async (doctorId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18311
+ apiV2GroupchannelsDoctorDoctorIdGet: async (doctorId: string, hospitalId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18258
18312
  // verify required parameter 'doctorId' is not null or undefined
18259
- assertParamExists('apiV1GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId)
18260
- const localVarPath = `/api/v1/groupchannels/doctor/{doctorId}`
18313
+ assertParamExists('apiV2GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId)
18314
+ const localVarPath = `/api/v2/groupchannels/doctor/{doctorId}`
18261
18315
  .replace(`{${"doctorId"}}`, encodeURIComponent(String(doctorId)));
18262
18316
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18263
18317
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18274,6 +18328,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18274
18328
  // oauth required
18275
18329
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
18276
18330
 
18331
+ if (hospitalId !== undefined) {
18332
+ localVarQueryParameter['hospitalId'] = hospitalId;
18333
+ }
18334
+
18277
18335
 
18278
18336
 
18279
18337
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -18291,10 +18349,10 @@ export const GroupChannelsApiAxiosParamCreator = function (configuration?: Confi
18291
18349
  * @param {*} [options] Override http request option.
18292
18350
  * @throws {RequiredError}
18293
18351
  */
18294
- apiV1GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18352
+ apiV2GroupchannelsHospitalHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
18295
18353
  // verify required parameter 'hospitalId' is not null or undefined
18296
- assertParamExists('apiV1GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId)
18297
- const localVarPath = `/api/v1/groupchannels/hospital/{hospitalId}`
18354
+ assertParamExists('apiV2GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId)
18355
+ const localVarPath = `/api/v2/groupchannels/hospital/{hospitalId}`
18298
18356
  .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
18299
18357
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18300
18358
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18339,28 +18397,30 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
18339
18397
  * @param {*} [options] Override http request option.
18340
18398
  * @throws {RequiredError}
18341
18399
  */
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);
18400
+ async apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options);
18344
18402
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18345
18403
  },
18346
18404
  /**
18347
18405
  *
18348
18406
  * @param {string} dealId
18407
+ * @param {string} [hospitalId]
18349
18408
  * @param {*} [options] Override http request option.
18350
18409
  * @throws {RequiredError}
18351
18410
  */
18352
- async apiV1GroupchannelsDealDealIdGet(dealId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18353
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsDealDealIdGet(dealId, options);
18411
+ async apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options);
18354
18413
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18355
18414
  },
18356
18415
  /**
18357
18416
  *
18358
18417
  * @param {string} doctorId
18418
+ * @param {string} [hospitalId]
18359
18419
  * @param {*} [options] Override http request option.
18360
18420
  * @throws {RequiredError}
18361
18421
  */
18362
- async apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18363
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options);
18422
+ async apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18423
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options);
18364
18424
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18365
18425
  },
18366
18426
  /**
@@ -18369,8 +18429,8 @@ export const GroupChannelsApiFp = function(configuration?: Configuration) {
18369
18429
  * @param {*} [options] Override http request option.
18370
18430
  * @throws {RequiredError}
18371
18431
  */
18372
- async apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18373
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options);
18432
+ async apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SendBirdGroupChannelModel>> {
18433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options);
18374
18434
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18375
18435
  },
18376
18436
  }
@@ -18390,26 +18450,28 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
18390
18450
  * @param {*} [options] Override http request option.
18391
18451
  * @throws {RequiredError}
18392
18452
  */
18393
- apiV1GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18394
- return localVarFp.apiV1GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(axios, basePath));
18453
+ apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18454
+ return localVarFp.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(axios, basePath));
18395
18455
  },
18396
18456
  /**
18397
18457
  *
18398
18458
  * @param {string} dealId
18459
+ * @param {string} [hospitalId]
18399
18460
  * @param {*} [options] Override http request option.
18400
18461
  * @throws {RequiredError}
18401
18462
  */
18402
- apiV1GroupchannelsDealDealIdGet(dealId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18403
- return localVarFp.apiV1GroupchannelsDealDealIdGet(dealId, options).then((request) => request(axios, basePath));
18463
+ apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18464
+ return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(axios, basePath));
18404
18465
  },
18405
18466
  /**
18406
18467
  *
18407
18468
  * @param {string} doctorId
18469
+ * @param {string} [hospitalId]
18408
18470
  * @param {*} [options] Override http request option.
18409
18471
  * @throws {RequiredError}
18410
18472
  */
18411
- apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18412
- return localVarFp.apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then((request) => request(axios, basePath));
18473
+ apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18474
+ return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(axios, basePath));
18413
18475
  },
18414
18476
  /**
18415
18477
  *
@@ -18417,8 +18479,8 @@ export const GroupChannelsApiFactory = function (configuration?: Configuration,
18417
18479
  * @param {*} [options] Override http request option.
18418
18480
  * @throws {RequiredError}
18419
18481
  */
18420
- apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18421
- return localVarFp.apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
18482
+ apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<SendBirdGroupChannelModel> {
18483
+ return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
18422
18484
  },
18423
18485
  };
18424
18486
  };
@@ -18438,30 +18500,32 @@ export class GroupChannelsApi extends BaseAPI {
18438
18500
  * @throws {RequiredError}
18439
18501
  * @memberof GroupChannelsApi
18440
18502
  */
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));
18503
+ public apiV2GroupchannelsChannelUrlInvitePost(channelUrl: string, inviteSendBirdGroupChannelCommand?: InviteSendBirdGroupChannelCommand, options?: AxiosRequestConfig) {
18504
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then((request) => request(this.axios, this.basePath));
18443
18505
  }
18444
18506
 
18445
18507
  /**
18446
18508
  *
18447
18509
  * @param {string} dealId
18510
+ * @param {string} [hospitalId]
18448
18511
  * @param {*} [options] Override http request option.
18449
18512
  * @throws {RequiredError}
18450
18513
  * @memberof GroupChannelsApi
18451
18514
  */
18452
- public apiV1GroupchannelsDealDealIdGet(dealId: string, options?: AxiosRequestConfig) {
18453
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsDealDealIdGet(dealId, options).then((request) => request(this.axios, this.basePath));
18515
+ public apiV2GroupchannelsDealDealIdGet(dealId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18516
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then((request) => request(this.axios, this.basePath));
18454
18517
  }
18455
18518
 
18456
18519
  /**
18457
18520
  *
18458
18521
  * @param {string} doctorId
18522
+ * @param {string} [hospitalId]
18459
18523
  * @param {*} [options] Override http request option.
18460
18524
  * @throws {RequiredError}
18461
18525
  * @memberof GroupChannelsApi
18462
18526
  */
18463
- public apiV1GroupchannelsDoctorDoctorIdGet(doctorId: string, options?: AxiosRequestConfig) {
18464
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsDoctorDoctorIdGet(doctorId, options).then((request) => request(this.axios, this.basePath));
18527
+ public apiV2GroupchannelsDoctorDoctorIdGet(doctorId: string, hospitalId?: string, options?: AxiosRequestConfig) {
18528
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then((request) => request(this.axios, this.basePath));
18465
18529
  }
18466
18530
 
18467
18531
  /**
@@ -18471,8 +18535,8 @@ export class GroupChannelsApi extends BaseAPI {
18471
18535
  * @throws {RequiredError}
18472
18536
  * @memberof GroupChannelsApi
18473
18537
  */
18474
- public apiV1GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig) {
18475
- return GroupChannelsApiFp(this.configuration).apiV1GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(this.axios, this.basePath));
18538
+ public apiV2GroupchannelsHospitalHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig) {
18539
+ return GroupChannelsApiFp(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then((request) => request(this.axios, this.basePath));
18476
18540
  }
18477
18541
  }
18478
18542