ch-api-client-typescript2 2.8.20 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +542 -8
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +418 -16
- package/package.json +1 -1
- package/src/api.ts +836 -119
package/lib/api.js
CHANGED
|
@@ -79,8 +79,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
81
|
exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.ReviewType = exports.ReviewCategory = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.AutocompleteMode = exports.ArticleStatus = void 0;
|
|
82
|
-
exports.
|
|
83
|
-
exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = void 0;
|
|
82
|
+
exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = void 0;
|
|
83
|
+
exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = void 0;
|
|
84
84
|
var axios_1 = __importDefault(require("axios"));
|
|
85
85
|
// Some imports not used depending on template conditions
|
|
86
86
|
// @ts-ignore
|
|
@@ -2126,13 +2126,14 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2126
2126
|
* @param {boolean} [isCompleted]
|
|
2127
2127
|
* @param {BookingStatus} [status]
|
|
2128
2128
|
* @param {string} [dealPackageId]
|
|
2129
|
+
* @param {string} [hospitalId]
|
|
2129
2130
|
* @param {number} [page]
|
|
2130
2131
|
* @param {number} [limit]
|
|
2131
2132
|
* @param {Date} [lastRetrieved]
|
|
2132
2133
|
* @param {*} [options] Override http request option.
|
|
2133
2134
|
* @throws {RequiredError}
|
|
2134
2135
|
*/
|
|
2135
|
-
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2136
|
+
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2136
2137
|
if (options === void 0) { options = {}; }
|
|
2137
2138
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2138
2139
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -2169,6 +2170,9 @@ var BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2169
2170
|
if (dealPackageId !== undefined) {
|
|
2170
2171
|
localVarQueryParameter['DealPackageId'] = dealPackageId;
|
|
2171
2172
|
}
|
|
2173
|
+
if (hospitalId !== undefined) {
|
|
2174
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
2175
|
+
}
|
|
2172
2176
|
if (page !== undefined) {
|
|
2173
2177
|
localVarQueryParameter['page'] = page;
|
|
2174
2178
|
}
|
|
@@ -2418,18 +2422,19 @@ var BookingsApiFp = function (configuration) {
|
|
|
2418
2422
|
* @param {boolean} [isCompleted]
|
|
2419
2423
|
* @param {BookingStatus} [status]
|
|
2420
2424
|
* @param {string} [dealPackageId]
|
|
2425
|
+
* @param {string} [hospitalId]
|
|
2421
2426
|
* @param {number} [page]
|
|
2422
2427
|
* @param {number} [limit]
|
|
2423
2428
|
* @param {Date} [lastRetrieved]
|
|
2424
2429
|
* @param {*} [options] Override http request option.
|
|
2425
2430
|
* @throws {RequiredError}
|
|
2426
2431
|
*/
|
|
2427
|
-
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2432
|
+
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2428
2433
|
return __awaiter(this, void 0, void 0, function () {
|
|
2429
2434
|
var localVarAxiosArgs;
|
|
2430
2435
|
return __generator(this, function (_a) {
|
|
2431
2436
|
switch (_a.label) {
|
|
2432
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options)];
|
|
2437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options)];
|
|
2433
2438
|
case 1:
|
|
2434
2439
|
localVarAxiosArgs = _a.sent();
|
|
2435
2440
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -2559,14 +2564,15 @@ var BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2559
2564
|
* @param {boolean} [isCompleted]
|
|
2560
2565
|
* @param {BookingStatus} [status]
|
|
2561
2566
|
* @param {string} [dealPackageId]
|
|
2567
|
+
* @param {string} [hospitalId]
|
|
2562
2568
|
* @param {number} [page]
|
|
2563
2569
|
* @param {number} [limit]
|
|
2564
2570
|
* @param {Date} [lastRetrieved]
|
|
2565
2571
|
* @param {*} [options] Override http request option.
|
|
2566
2572
|
* @throws {RequiredError}
|
|
2567
2573
|
*/
|
|
2568
|
-
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2569
|
-
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2574
|
+
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2575
|
+
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2570
2576
|
},
|
|
2571
2577
|
/**
|
|
2572
2578
|
*
|
|
@@ -2700,6 +2706,7 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2700
2706
|
* @param {boolean} [isCompleted]
|
|
2701
2707
|
* @param {BookingStatus} [status]
|
|
2702
2708
|
* @param {string} [dealPackageId]
|
|
2709
|
+
* @param {string} [hospitalId]
|
|
2703
2710
|
* @param {number} [page]
|
|
2704
2711
|
* @param {number} [limit]
|
|
2705
2712
|
* @param {Date} [lastRetrieved]
|
|
@@ -2707,9 +2714,9 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2707
2714
|
* @throws {RequiredError}
|
|
2708
2715
|
* @memberof BookingsApi
|
|
2709
2716
|
*/
|
|
2710
|
-
BookingsApi.prototype.apiV2BookingsGet = function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2717
|
+
BookingsApi.prototype.apiV2BookingsGet = function (searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options) {
|
|
2711
2718
|
var _this = this;
|
|
2712
|
-
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2719
|
+
return (0, exports.BookingsApiFp)(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2713
2720
|
};
|
|
2714
2721
|
/**
|
|
2715
2722
|
*
|
|
@@ -3906,13 +3913,14 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3906
3913
|
* @param {boolean} [isCompleted]
|
|
3907
3914
|
* @param {ConsultationStatus} [status]
|
|
3908
3915
|
* @param {ConsultationType} [consultationType]
|
|
3916
|
+
* @param {string} [hospitalId]
|
|
3909
3917
|
* @param {number} [page]
|
|
3910
3918
|
* @param {number} [limit]
|
|
3911
3919
|
* @param {Date} [lastRetrieved]
|
|
3912
3920
|
* @param {*} [options] Override http request option.
|
|
3913
3921
|
* @throws {RequiredError}
|
|
3914
3922
|
*/
|
|
3915
|
-
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
3923
|
+
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options) {
|
|
3916
3924
|
if (options === void 0) { options = {}; }
|
|
3917
3925
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3918
3926
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3949,6 +3957,9 @@ var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3949
3957
|
if (consultationType !== undefined) {
|
|
3950
3958
|
localVarQueryParameter['ConsultationType'] = consultationType;
|
|
3951
3959
|
}
|
|
3960
|
+
if (hospitalId !== undefined) {
|
|
3961
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
3962
|
+
}
|
|
3952
3963
|
if (page !== undefined) {
|
|
3953
3964
|
localVarQueryParameter['page'] = page;
|
|
3954
3965
|
}
|
|
@@ -4178,18 +4189,19 @@ var ConsultationsApiFp = function (configuration) {
|
|
|
4178
4189
|
* @param {boolean} [isCompleted]
|
|
4179
4190
|
* @param {ConsultationStatus} [status]
|
|
4180
4191
|
* @param {ConsultationType} [consultationType]
|
|
4192
|
+
* @param {string} [hospitalId]
|
|
4181
4193
|
* @param {number} [page]
|
|
4182
4194
|
* @param {number} [limit]
|
|
4183
4195
|
* @param {Date} [lastRetrieved]
|
|
4184
4196
|
* @param {*} [options] Override http request option.
|
|
4185
4197
|
* @throws {RequiredError}
|
|
4186
4198
|
*/
|
|
4187
|
-
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
4199
|
+
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options) {
|
|
4188
4200
|
return __awaiter(this, void 0, void 0, function () {
|
|
4189
4201
|
var localVarAxiosArgs;
|
|
4190
4202
|
return __generator(this, function (_a) {
|
|
4191
4203
|
switch (_a.label) {
|
|
4192
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options)];
|
|
4204
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options)];
|
|
4193
4205
|
case 1:
|
|
4194
4206
|
localVarAxiosArgs = _a.sent();
|
|
4195
4207
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4309,14 +4321,15 @@ var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
4309
4321
|
* @param {boolean} [isCompleted]
|
|
4310
4322
|
* @param {ConsultationStatus} [status]
|
|
4311
4323
|
* @param {ConsultationType} [consultationType]
|
|
4324
|
+
* @param {string} [hospitalId]
|
|
4312
4325
|
* @param {number} [page]
|
|
4313
4326
|
* @param {number} [limit]
|
|
4314
4327
|
* @param {Date} [lastRetrieved]
|
|
4315
4328
|
* @param {*} [options] Override http request option.
|
|
4316
4329
|
* @throws {RequiredError}
|
|
4317
4330
|
*/
|
|
4318
|
-
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
4319
|
-
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
4331
|
+
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options) {
|
|
4332
|
+
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
4320
4333
|
},
|
|
4321
4334
|
/**
|
|
4322
4335
|
*
|
|
@@ -4438,6 +4451,7 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
4438
4451
|
* @param {boolean} [isCompleted]
|
|
4439
4452
|
* @param {ConsultationStatus} [status]
|
|
4440
4453
|
* @param {ConsultationType} [consultationType]
|
|
4454
|
+
* @param {string} [hospitalId]
|
|
4441
4455
|
* @param {number} [page]
|
|
4442
4456
|
* @param {number} [limit]
|
|
4443
4457
|
* @param {Date} [lastRetrieved]
|
|
@@ -4445,9 +4459,9 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
4445
4459
|
* @throws {RequiredError}
|
|
4446
4460
|
* @memberof ConsultationsApi
|
|
4447
4461
|
*/
|
|
4448
|
-
ConsultationsApi.prototype.apiV2ConsultationsGet = function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
4462
|
+
ConsultationsApi.prototype.apiV2ConsultationsGet = function (searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options) {
|
|
4449
4463
|
var _this = this;
|
|
4450
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4464
|
+
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4451
4465
|
};
|
|
4452
4466
|
/**
|
|
4453
4467
|
*
|
|
@@ -9392,6 +9406,394 @@ var FaqsApi = /** @class */ (function (_super) {
|
|
|
9392
9406
|
return FaqsApi;
|
|
9393
9407
|
}(base_1.BaseAPI));
|
|
9394
9408
|
exports.FaqsApi = FaqsApi;
|
|
9409
|
+
/**
|
|
9410
|
+
* GroupChannelsApi - axios parameter creator
|
|
9411
|
+
* @export
|
|
9412
|
+
*/
|
|
9413
|
+
var GroupChannelsApiAxiosParamCreator = function (configuration) {
|
|
9414
|
+
var _this = this;
|
|
9415
|
+
return {
|
|
9416
|
+
/**
|
|
9417
|
+
*
|
|
9418
|
+
* @param {string} channelUrl
|
|
9419
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
9420
|
+
* @param {*} [options] Override http request option.
|
|
9421
|
+
* @throws {RequiredError}
|
|
9422
|
+
*/
|
|
9423
|
+
apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
9424
|
+
if (options === void 0) { options = {}; }
|
|
9425
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9426
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9427
|
+
return __generator(this, function (_a) {
|
|
9428
|
+
switch (_a.label) {
|
|
9429
|
+
case 0:
|
|
9430
|
+
// verify required parameter 'channelUrl' is not null or undefined
|
|
9431
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsChannelUrlInvitePost', 'channelUrl', channelUrl);
|
|
9432
|
+
localVarPath = "/api/v2/groupchannels/{channelUrl}/invite"
|
|
9433
|
+
.replace("{".concat("channelUrl", "}"), encodeURIComponent(String(channelUrl)));
|
|
9434
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9435
|
+
if (configuration) {
|
|
9436
|
+
baseOptions = configuration.baseOptions;
|
|
9437
|
+
}
|
|
9438
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
9439
|
+
localVarHeaderParameter = {};
|
|
9440
|
+
localVarQueryParameter = {};
|
|
9441
|
+
// authentication oauth2 required
|
|
9442
|
+
// oauth required
|
|
9443
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
9444
|
+
case 1:
|
|
9445
|
+
// authentication oauth2 required
|
|
9446
|
+
// oauth required
|
|
9447
|
+
_a.sent();
|
|
9448
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9449
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9450
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9451
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9452
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteSendBirdGroupChannelCommand, localVarRequestOptions, configuration);
|
|
9453
|
+
return [2 /*return*/, {
|
|
9454
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9455
|
+
options: localVarRequestOptions,
|
|
9456
|
+
}];
|
|
9457
|
+
}
|
|
9458
|
+
});
|
|
9459
|
+
});
|
|
9460
|
+
},
|
|
9461
|
+
/**
|
|
9462
|
+
*
|
|
9463
|
+
* @param {string} dealId
|
|
9464
|
+
* @param {string} [hospitalId]
|
|
9465
|
+
* @param {*} [options] Override http request option.
|
|
9466
|
+
* @throws {RequiredError}
|
|
9467
|
+
*/
|
|
9468
|
+
apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
|
|
9469
|
+
if (options === void 0) { options = {}; }
|
|
9470
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9471
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9472
|
+
return __generator(this, function (_a) {
|
|
9473
|
+
switch (_a.label) {
|
|
9474
|
+
case 0:
|
|
9475
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
9476
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsDealDealIdGet', 'dealId', dealId);
|
|
9477
|
+
localVarPath = "/api/v2/groupchannels/deal/{dealId}"
|
|
9478
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
9479
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9480
|
+
if (configuration) {
|
|
9481
|
+
baseOptions = configuration.baseOptions;
|
|
9482
|
+
}
|
|
9483
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9484
|
+
localVarHeaderParameter = {};
|
|
9485
|
+
localVarQueryParameter = {};
|
|
9486
|
+
// authentication oauth2 required
|
|
9487
|
+
// oauth required
|
|
9488
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
9489
|
+
case 1:
|
|
9490
|
+
// authentication oauth2 required
|
|
9491
|
+
// oauth required
|
|
9492
|
+
_a.sent();
|
|
9493
|
+
if (hospitalId !== undefined) {
|
|
9494
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
9495
|
+
}
|
|
9496
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9497
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9498
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9499
|
+
return [2 /*return*/, {
|
|
9500
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9501
|
+
options: localVarRequestOptions,
|
|
9502
|
+
}];
|
|
9503
|
+
}
|
|
9504
|
+
});
|
|
9505
|
+
});
|
|
9506
|
+
},
|
|
9507
|
+
/**
|
|
9508
|
+
*
|
|
9509
|
+
* @param {string} doctorId
|
|
9510
|
+
* @param {string} [hospitalId]
|
|
9511
|
+
* @param {*} [options] Override http request option.
|
|
9512
|
+
* @throws {RequiredError}
|
|
9513
|
+
*/
|
|
9514
|
+
apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
|
|
9515
|
+
if (options === void 0) { options = {}; }
|
|
9516
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9517
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9518
|
+
return __generator(this, function (_a) {
|
|
9519
|
+
switch (_a.label) {
|
|
9520
|
+
case 0:
|
|
9521
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
9522
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsDoctorDoctorIdGet', 'doctorId', doctorId);
|
|
9523
|
+
localVarPath = "/api/v2/groupchannels/doctor/{doctorId}"
|
|
9524
|
+
.replace("{".concat("doctorId", "}"), encodeURIComponent(String(doctorId)));
|
|
9525
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9526
|
+
if (configuration) {
|
|
9527
|
+
baseOptions = configuration.baseOptions;
|
|
9528
|
+
}
|
|
9529
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9530
|
+
localVarHeaderParameter = {};
|
|
9531
|
+
localVarQueryParameter = {};
|
|
9532
|
+
// authentication oauth2 required
|
|
9533
|
+
// oauth required
|
|
9534
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
9535
|
+
case 1:
|
|
9536
|
+
// authentication oauth2 required
|
|
9537
|
+
// oauth required
|
|
9538
|
+
_a.sent();
|
|
9539
|
+
if (hospitalId !== undefined) {
|
|
9540
|
+
localVarQueryParameter['hospitalId'] = hospitalId;
|
|
9541
|
+
}
|
|
9542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9543
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9544
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9545
|
+
return [2 /*return*/, {
|
|
9546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9547
|
+
options: localVarRequestOptions,
|
|
9548
|
+
}];
|
|
9549
|
+
}
|
|
9550
|
+
});
|
|
9551
|
+
});
|
|
9552
|
+
},
|
|
9553
|
+
/**
|
|
9554
|
+
*
|
|
9555
|
+
* @param {string} hospitalId
|
|
9556
|
+
* @param {*} [options] Override http request option.
|
|
9557
|
+
* @throws {RequiredError}
|
|
9558
|
+
*/
|
|
9559
|
+
apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
|
|
9560
|
+
if (options === void 0) { options = {}; }
|
|
9561
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
9562
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9563
|
+
return __generator(this, function (_a) {
|
|
9564
|
+
switch (_a.label) {
|
|
9565
|
+
case 0:
|
|
9566
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
9567
|
+
(0, common_1.assertParamExists)('apiV2GroupchannelsHospitalHospitalIdGet', 'hospitalId', hospitalId);
|
|
9568
|
+
localVarPath = "/api/v2/groupchannels/hospital/{hospitalId}"
|
|
9569
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
9570
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9571
|
+
if (configuration) {
|
|
9572
|
+
baseOptions = configuration.baseOptions;
|
|
9573
|
+
}
|
|
9574
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
9575
|
+
localVarHeaderParameter = {};
|
|
9576
|
+
localVarQueryParameter = {};
|
|
9577
|
+
// authentication oauth2 required
|
|
9578
|
+
// oauth required
|
|
9579
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
9580
|
+
case 1:
|
|
9581
|
+
// authentication oauth2 required
|
|
9582
|
+
// oauth required
|
|
9583
|
+
_a.sent();
|
|
9584
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9585
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9586
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9587
|
+
return [2 /*return*/, {
|
|
9588
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9589
|
+
options: localVarRequestOptions,
|
|
9590
|
+
}];
|
|
9591
|
+
}
|
|
9592
|
+
});
|
|
9593
|
+
});
|
|
9594
|
+
},
|
|
9595
|
+
};
|
|
9596
|
+
};
|
|
9597
|
+
exports.GroupChannelsApiAxiosParamCreator = GroupChannelsApiAxiosParamCreator;
|
|
9598
|
+
/**
|
|
9599
|
+
* GroupChannelsApi - functional programming interface
|
|
9600
|
+
* @export
|
|
9601
|
+
*/
|
|
9602
|
+
var GroupChannelsApiFp = function (configuration) {
|
|
9603
|
+
var localVarAxiosParamCreator = (0, exports.GroupChannelsApiAxiosParamCreator)(configuration);
|
|
9604
|
+
return {
|
|
9605
|
+
/**
|
|
9606
|
+
*
|
|
9607
|
+
* @param {string} channelUrl
|
|
9608
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
9609
|
+
* @param {*} [options] Override http request option.
|
|
9610
|
+
* @throws {RequiredError}
|
|
9611
|
+
*/
|
|
9612
|
+
apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
9613
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9614
|
+
var localVarAxiosArgs;
|
|
9615
|
+
return __generator(this, function (_a) {
|
|
9616
|
+
switch (_a.label) {
|
|
9617
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options)];
|
|
9618
|
+
case 1:
|
|
9619
|
+
localVarAxiosArgs = _a.sent();
|
|
9620
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
9621
|
+
}
|
|
9622
|
+
});
|
|
9623
|
+
});
|
|
9624
|
+
},
|
|
9625
|
+
/**
|
|
9626
|
+
*
|
|
9627
|
+
* @param {string} dealId
|
|
9628
|
+
* @param {string} [hospitalId]
|
|
9629
|
+
* @param {*} [options] Override http request option.
|
|
9630
|
+
* @throws {RequiredError}
|
|
9631
|
+
*/
|
|
9632
|
+
apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
|
|
9633
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9634
|
+
var localVarAxiosArgs;
|
|
9635
|
+
return __generator(this, function (_a) {
|
|
9636
|
+
switch (_a.label) {
|
|
9637
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options)];
|
|
9638
|
+
case 1:
|
|
9639
|
+
localVarAxiosArgs = _a.sent();
|
|
9640
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
9641
|
+
}
|
|
9642
|
+
});
|
|
9643
|
+
});
|
|
9644
|
+
},
|
|
9645
|
+
/**
|
|
9646
|
+
*
|
|
9647
|
+
* @param {string} doctorId
|
|
9648
|
+
* @param {string} [hospitalId]
|
|
9649
|
+
* @param {*} [options] Override http request option.
|
|
9650
|
+
* @throws {RequiredError}
|
|
9651
|
+
*/
|
|
9652
|
+
apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
|
|
9653
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9654
|
+
var localVarAxiosArgs;
|
|
9655
|
+
return __generator(this, function (_a) {
|
|
9656
|
+
switch (_a.label) {
|
|
9657
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options)];
|
|
9658
|
+
case 1:
|
|
9659
|
+
localVarAxiosArgs = _a.sent();
|
|
9660
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
9661
|
+
}
|
|
9662
|
+
});
|
|
9663
|
+
});
|
|
9664
|
+
},
|
|
9665
|
+
/**
|
|
9666
|
+
*
|
|
9667
|
+
* @param {string} hospitalId
|
|
9668
|
+
* @param {*} [options] Override http request option.
|
|
9669
|
+
* @throws {RequiredError}
|
|
9670
|
+
*/
|
|
9671
|
+
apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
|
|
9672
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
9673
|
+
var localVarAxiosArgs;
|
|
9674
|
+
return __generator(this, function (_a) {
|
|
9675
|
+
switch (_a.label) {
|
|
9676
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options)];
|
|
9677
|
+
case 1:
|
|
9678
|
+
localVarAxiosArgs = _a.sent();
|
|
9679
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
9680
|
+
}
|
|
9681
|
+
});
|
|
9682
|
+
});
|
|
9683
|
+
},
|
|
9684
|
+
};
|
|
9685
|
+
};
|
|
9686
|
+
exports.GroupChannelsApiFp = GroupChannelsApiFp;
|
|
9687
|
+
/**
|
|
9688
|
+
* GroupChannelsApi - factory interface
|
|
9689
|
+
* @export
|
|
9690
|
+
*/
|
|
9691
|
+
var GroupChannelsApiFactory = function (configuration, basePath, axios) {
|
|
9692
|
+
var localVarFp = (0, exports.GroupChannelsApiFp)(configuration);
|
|
9693
|
+
return {
|
|
9694
|
+
/**
|
|
9695
|
+
*
|
|
9696
|
+
* @param {string} channelUrl
|
|
9697
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
9698
|
+
* @param {*} [options] Override http request option.
|
|
9699
|
+
* @throws {RequiredError}
|
|
9700
|
+
*/
|
|
9701
|
+
apiV2GroupchannelsChannelUrlInvitePost: function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
9702
|
+
return localVarFp.apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(axios, basePath); });
|
|
9703
|
+
},
|
|
9704
|
+
/**
|
|
9705
|
+
*
|
|
9706
|
+
* @param {string} dealId
|
|
9707
|
+
* @param {string} [hospitalId]
|
|
9708
|
+
* @param {*} [options] Override http request option.
|
|
9709
|
+
* @throws {RequiredError}
|
|
9710
|
+
*/
|
|
9711
|
+
apiV2GroupchannelsDealDealIdGet: function (dealId, hospitalId, options) {
|
|
9712
|
+
return localVarFp.apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
9713
|
+
},
|
|
9714
|
+
/**
|
|
9715
|
+
*
|
|
9716
|
+
* @param {string} doctorId
|
|
9717
|
+
* @param {string} [hospitalId]
|
|
9718
|
+
* @param {*} [options] Override http request option.
|
|
9719
|
+
* @throws {RequiredError}
|
|
9720
|
+
*/
|
|
9721
|
+
apiV2GroupchannelsDoctorDoctorIdGet: function (doctorId, hospitalId, options) {
|
|
9722
|
+
return localVarFp.apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
9723
|
+
},
|
|
9724
|
+
/**
|
|
9725
|
+
*
|
|
9726
|
+
* @param {string} hospitalId
|
|
9727
|
+
* @param {*} [options] Override http request option.
|
|
9728
|
+
* @throws {RequiredError}
|
|
9729
|
+
*/
|
|
9730
|
+
apiV2GroupchannelsHospitalHospitalIdGet: function (hospitalId, options) {
|
|
9731
|
+
return localVarFp.apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
9732
|
+
},
|
|
9733
|
+
};
|
|
9734
|
+
};
|
|
9735
|
+
exports.GroupChannelsApiFactory = GroupChannelsApiFactory;
|
|
9736
|
+
/**
|
|
9737
|
+
* GroupChannelsApi - object-oriented interface
|
|
9738
|
+
* @export
|
|
9739
|
+
* @class GroupChannelsApi
|
|
9740
|
+
* @extends {BaseAPI}
|
|
9741
|
+
*/
|
|
9742
|
+
var GroupChannelsApi = /** @class */ (function (_super) {
|
|
9743
|
+
__extends(GroupChannelsApi, _super);
|
|
9744
|
+
function GroupChannelsApi() {
|
|
9745
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
9746
|
+
}
|
|
9747
|
+
/**
|
|
9748
|
+
*
|
|
9749
|
+
* @param {string} channelUrl
|
|
9750
|
+
* @param {InviteSendBirdGroupChannelCommand} [inviteSendBirdGroupChannelCommand]
|
|
9751
|
+
* @param {*} [options] Override http request option.
|
|
9752
|
+
* @throws {RequiredError}
|
|
9753
|
+
* @memberof GroupChannelsApi
|
|
9754
|
+
*/
|
|
9755
|
+
GroupChannelsApi.prototype.apiV2GroupchannelsChannelUrlInvitePost = function (channelUrl, inviteSendBirdGroupChannelCommand, options) {
|
|
9756
|
+
var _this = this;
|
|
9757
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsChannelUrlInvitePost(channelUrl, inviteSendBirdGroupChannelCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9758
|
+
};
|
|
9759
|
+
/**
|
|
9760
|
+
*
|
|
9761
|
+
* @param {string} dealId
|
|
9762
|
+
* @param {string} [hospitalId]
|
|
9763
|
+
* @param {*} [options] Override http request option.
|
|
9764
|
+
* @throws {RequiredError}
|
|
9765
|
+
* @memberof GroupChannelsApi
|
|
9766
|
+
*/
|
|
9767
|
+
GroupChannelsApi.prototype.apiV2GroupchannelsDealDealIdGet = function (dealId, hospitalId, options) {
|
|
9768
|
+
var _this = this;
|
|
9769
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsDealDealIdGet(dealId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9770
|
+
};
|
|
9771
|
+
/**
|
|
9772
|
+
*
|
|
9773
|
+
* @param {string} doctorId
|
|
9774
|
+
* @param {string} [hospitalId]
|
|
9775
|
+
* @param {*} [options] Override http request option.
|
|
9776
|
+
* @throws {RequiredError}
|
|
9777
|
+
* @memberof GroupChannelsApi
|
|
9778
|
+
*/
|
|
9779
|
+
GroupChannelsApi.prototype.apiV2GroupchannelsDoctorDoctorIdGet = function (doctorId, hospitalId, options) {
|
|
9780
|
+
var _this = this;
|
|
9781
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsDoctorDoctorIdGet(doctorId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9782
|
+
};
|
|
9783
|
+
/**
|
|
9784
|
+
*
|
|
9785
|
+
* @param {string} hospitalId
|
|
9786
|
+
* @param {*} [options] Override http request option.
|
|
9787
|
+
* @throws {RequiredError}
|
|
9788
|
+
* @memberof GroupChannelsApi
|
|
9789
|
+
*/
|
|
9790
|
+
GroupChannelsApi.prototype.apiV2GroupchannelsHospitalHospitalIdGet = function (hospitalId, options) {
|
|
9791
|
+
var _this = this;
|
|
9792
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV2GroupchannelsHospitalHospitalIdGet(hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
9793
|
+
};
|
|
9794
|
+
return GroupChannelsApi;
|
|
9795
|
+
}(base_1.BaseAPI));
|
|
9796
|
+
exports.GroupChannelsApi = GroupChannelsApi;
|
|
9395
9797
|
/**
|
|
9396
9798
|
* HospitalsApi - axios parameter creator
|
|
9397
9799
|
* @export
|