ch-api-client-typescript2 4.1.6 → 4.1.9
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 +492 -44
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +625 -2
- package/package.json +1 -1
- package/src/api.ts +773 -45
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.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.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.SortingOrder = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = 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.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = void 0;
|
|
82
|
+
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.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = 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.ProfilesApi = exports.ProfilesApiFactory = 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 = void 0;
|
|
84
84
|
var axios_1 = __importDefault(require("axios"));
|
|
85
85
|
// Some imports not used depending on template conditions
|
|
86
86
|
// @ts-ignore
|
|
@@ -6478,6 +6478,629 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
6478
6478
|
return DealsApi;
|
|
6479
6479
|
}(base_1.BaseAPI));
|
|
6480
6480
|
exports.DealsApi = DealsApi;
|
|
6481
|
+
/**
|
|
6482
|
+
* DevicesApi - axios parameter creator
|
|
6483
|
+
* @export
|
|
6484
|
+
*/
|
|
6485
|
+
var DevicesApiAxiosParamCreator = function (configuration) {
|
|
6486
|
+
var _this = this;
|
|
6487
|
+
return {
|
|
6488
|
+
/**
|
|
6489
|
+
*
|
|
6490
|
+
* @summary Get all devices.
|
|
6491
|
+
* @param {string} [id]
|
|
6492
|
+
* @param {string} [token]
|
|
6493
|
+
* @param {Platform} [platform]
|
|
6494
|
+
* @param {boolean} [appAlert]
|
|
6495
|
+
* @param {boolean} [eventAlert]
|
|
6496
|
+
* @param {boolean} [noticeAlert]
|
|
6497
|
+
* @param {number} [page]
|
|
6498
|
+
* @param {number} [limit]
|
|
6499
|
+
* @param {Date} [lastRetrieved]
|
|
6500
|
+
* @param {*} [options] Override http request option.
|
|
6501
|
+
* @throws {RequiredError}
|
|
6502
|
+
*/
|
|
6503
|
+
apiV2DevicesGet: function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
6504
|
+
if (options === void 0) { options = {}; }
|
|
6505
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6506
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6507
|
+
return __generator(this, function (_a) {
|
|
6508
|
+
switch (_a.label) {
|
|
6509
|
+
case 0:
|
|
6510
|
+
localVarPath = "/api/v2/devices";
|
|
6511
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6512
|
+
if (configuration) {
|
|
6513
|
+
baseOptions = configuration.baseOptions;
|
|
6514
|
+
}
|
|
6515
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6516
|
+
localVarHeaderParameter = {};
|
|
6517
|
+
localVarQueryParameter = {};
|
|
6518
|
+
// authentication oauth2 required
|
|
6519
|
+
// oauth required
|
|
6520
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6521
|
+
case 1:
|
|
6522
|
+
// authentication oauth2 required
|
|
6523
|
+
// oauth required
|
|
6524
|
+
_a.sent();
|
|
6525
|
+
if (id !== undefined) {
|
|
6526
|
+
localVarQueryParameter['Id'] = id;
|
|
6527
|
+
}
|
|
6528
|
+
if (token !== undefined) {
|
|
6529
|
+
localVarQueryParameter['Token'] = token;
|
|
6530
|
+
}
|
|
6531
|
+
if (platform !== undefined) {
|
|
6532
|
+
localVarQueryParameter['Platform'] = platform;
|
|
6533
|
+
}
|
|
6534
|
+
if (appAlert !== undefined) {
|
|
6535
|
+
localVarQueryParameter['AppAlert'] = appAlert;
|
|
6536
|
+
}
|
|
6537
|
+
if (eventAlert !== undefined) {
|
|
6538
|
+
localVarQueryParameter['EventAlert'] = eventAlert;
|
|
6539
|
+
}
|
|
6540
|
+
if (noticeAlert !== undefined) {
|
|
6541
|
+
localVarQueryParameter['NoticeAlert'] = noticeAlert;
|
|
6542
|
+
}
|
|
6543
|
+
if (page !== undefined) {
|
|
6544
|
+
localVarQueryParameter['page'] = page;
|
|
6545
|
+
}
|
|
6546
|
+
if (limit !== undefined) {
|
|
6547
|
+
localVarQueryParameter['limit'] = limit;
|
|
6548
|
+
}
|
|
6549
|
+
if (lastRetrieved !== undefined) {
|
|
6550
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
6551
|
+
lastRetrieved.toISOString() :
|
|
6552
|
+
lastRetrieved;
|
|
6553
|
+
}
|
|
6554
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6555
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6556
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6557
|
+
return [2 /*return*/, {
|
|
6558
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6559
|
+
options: localVarRequestOptions,
|
|
6560
|
+
}];
|
|
6561
|
+
}
|
|
6562
|
+
});
|
|
6563
|
+
});
|
|
6564
|
+
},
|
|
6565
|
+
/**
|
|
6566
|
+
*
|
|
6567
|
+
* @summary Delete device.
|
|
6568
|
+
* @param {string} id
|
|
6569
|
+
* @param {*} [options] Override http request option.
|
|
6570
|
+
* @throws {RequiredError}
|
|
6571
|
+
*/
|
|
6572
|
+
apiV2DevicesIdDelete: function (id, options) {
|
|
6573
|
+
if (options === void 0) { options = {}; }
|
|
6574
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6575
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6576
|
+
return __generator(this, function (_a) {
|
|
6577
|
+
switch (_a.label) {
|
|
6578
|
+
case 0:
|
|
6579
|
+
// verify required parameter 'id' is not null or undefined
|
|
6580
|
+
(0, common_1.assertParamExists)('apiV2DevicesIdDelete', 'id', id);
|
|
6581
|
+
localVarPath = "/api/v2/devices/{id}"
|
|
6582
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
6583
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6584
|
+
if (configuration) {
|
|
6585
|
+
baseOptions = configuration.baseOptions;
|
|
6586
|
+
}
|
|
6587
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
6588
|
+
localVarHeaderParameter = {};
|
|
6589
|
+
localVarQueryParameter = {};
|
|
6590
|
+
// authentication oauth2 required
|
|
6591
|
+
// oauth required
|
|
6592
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6593
|
+
case 1:
|
|
6594
|
+
// authentication oauth2 required
|
|
6595
|
+
// oauth required
|
|
6596
|
+
_a.sent();
|
|
6597
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6598
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6599
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6600
|
+
return [2 /*return*/, {
|
|
6601
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6602
|
+
options: localVarRequestOptions,
|
|
6603
|
+
}];
|
|
6604
|
+
}
|
|
6605
|
+
});
|
|
6606
|
+
});
|
|
6607
|
+
},
|
|
6608
|
+
/**
|
|
6609
|
+
*
|
|
6610
|
+
* @summary Get device.
|
|
6611
|
+
* @param {string} id
|
|
6612
|
+
* @param {*} [options] Override http request option.
|
|
6613
|
+
* @throws {RequiredError}
|
|
6614
|
+
*/
|
|
6615
|
+
apiV2DevicesIdGet: function (id, options) {
|
|
6616
|
+
if (options === void 0) { options = {}; }
|
|
6617
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6618
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6619
|
+
return __generator(this, function (_a) {
|
|
6620
|
+
switch (_a.label) {
|
|
6621
|
+
case 0:
|
|
6622
|
+
// verify required parameter 'id' is not null or undefined
|
|
6623
|
+
(0, common_1.assertParamExists)('apiV2DevicesIdGet', 'id', id);
|
|
6624
|
+
localVarPath = "/api/v2/devices/{id}"
|
|
6625
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
6626
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6627
|
+
if (configuration) {
|
|
6628
|
+
baseOptions = configuration.baseOptions;
|
|
6629
|
+
}
|
|
6630
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
6631
|
+
localVarHeaderParameter = {};
|
|
6632
|
+
localVarQueryParameter = {};
|
|
6633
|
+
// authentication oauth2 required
|
|
6634
|
+
// oauth required
|
|
6635
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6636
|
+
case 1:
|
|
6637
|
+
// authentication oauth2 required
|
|
6638
|
+
// oauth required
|
|
6639
|
+
_a.sent();
|
|
6640
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6641
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6642
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6643
|
+
return [2 /*return*/, {
|
|
6644
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6645
|
+
options: localVarRequestOptions,
|
|
6646
|
+
}];
|
|
6647
|
+
}
|
|
6648
|
+
});
|
|
6649
|
+
});
|
|
6650
|
+
},
|
|
6651
|
+
/**
|
|
6652
|
+
*
|
|
6653
|
+
* @summary Create device login.
|
|
6654
|
+
* @param {string} id
|
|
6655
|
+
* @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
|
|
6656
|
+
* @param {*} [options] Override http request option.
|
|
6657
|
+
* @throws {RequiredError}
|
|
6658
|
+
*/
|
|
6659
|
+
apiV2DevicesIdLoginsPost: function (id, createDeviceLoginCommand, options) {
|
|
6660
|
+
if (options === void 0) { options = {}; }
|
|
6661
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6662
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6663
|
+
return __generator(this, function (_a) {
|
|
6664
|
+
switch (_a.label) {
|
|
6665
|
+
case 0:
|
|
6666
|
+
// verify required parameter 'id' is not null or undefined
|
|
6667
|
+
(0, common_1.assertParamExists)('apiV2DevicesIdLoginsPost', 'id', id);
|
|
6668
|
+
localVarPath = "/api/v2/devices/{id}/logins"
|
|
6669
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
6670
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6671
|
+
if (configuration) {
|
|
6672
|
+
baseOptions = configuration.baseOptions;
|
|
6673
|
+
}
|
|
6674
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6675
|
+
localVarHeaderParameter = {};
|
|
6676
|
+
localVarQueryParameter = {};
|
|
6677
|
+
// authentication oauth2 required
|
|
6678
|
+
// oauth required
|
|
6679
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6680
|
+
case 1:
|
|
6681
|
+
// authentication oauth2 required
|
|
6682
|
+
// oauth required
|
|
6683
|
+
_a.sent();
|
|
6684
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6685
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6686
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6687
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6688
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeviceLoginCommand, localVarRequestOptions, configuration);
|
|
6689
|
+
return [2 /*return*/, {
|
|
6690
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6691
|
+
options: localVarRequestOptions,
|
|
6692
|
+
}];
|
|
6693
|
+
}
|
|
6694
|
+
});
|
|
6695
|
+
});
|
|
6696
|
+
},
|
|
6697
|
+
/**
|
|
6698
|
+
*
|
|
6699
|
+
* @summary Update device.
|
|
6700
|
+
* @param {string} id
|
|
6701
|
+
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
6702
|
+
* @param {*} [options] Override http request option.
|
|
6703
|
+
* @throws {RequiredError}
|
|
6704
|
+
*/
|
|
6705
|
+
apiV2DevicesIdPut: function (id, updateDeviceCommand, options) {
|
|
6706
|
+
if (options === void 0) { options = {}; }
|
|
6707
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6708
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6709
|
+
return __generator(this, function (_a) {
|
|
6710
|
+
switch (_a.label) {
|
|
6711
|
+
case 0:
|
|
6712
|
+
// verify required parameter 'id' is not null or undefined
|
|
6713
|
+
(0, common_1.assertParamExists)('apiV2DevicesIdPut', 'id', id);
|
|
6714
|
+
localVarPath = "/api/v2/devices/{id}"
|
|
6715
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
6716
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6717
|
+
if (configuration) {
|
|
6718
|
+
baseOptions = configuration.baseOptions;
|
|
6719
|
+
}
|
|
6720
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
6721
|
+
localVarHeaderParameter = {};
|
|
6722
|
+
localVarQueryParameter = {};
|
|
6723
|
+
// authentication oauth2 required
|
|
6724
|
+
// oauth required
|
|
6725
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6726
|
+
case 1:
|
|
6727
|
+
// authentication oauth2 required
|
|
6728
|
+
// oauth required
|
|
6729
|
+
_a.sent();
|
|
6730
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6731
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6732
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6733
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6734
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDeviceCommand, localVarRequestOptions, configuration);
|
|
6735
|
+
return [2 /*return*/, {
|
|
6736
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6737
|
+
options: localVarRequestOptions,
|
|
6738
|
+
}];
|
|
6739
|
+
}
|
|
6740
|
+
});
|
|
6741
|
+
});
|
|
6742
|
+
},
|
|
6743
|
+
/**
|
|
6744
|
+
*
|
|
6745
|
+
* @summary Create device.
|
|
6746
|
+
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
6747
|
+
* @param {*} [options] Override http request option.
|
|
6748
|
+
* @throws {RequiredError}
|
|
6749
|
+
*/
|
|
6750
|
+
apiV2DevicesPost: function (createDeviceCommand, options) {
|
|
6751
|
+
if (options === void 0) { options = {}; }
|
|
6752
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6753
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6754
|
+
return __generator(this, function (_a) {
|
|
6755
|
+
switch (_a.label) {
|
|
6756
|
+
case 0:
|
|
6757
|
+
localVarPath = "/api/v2/devices";
|
|
6758
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6759
|
+
if (configuration) {
|
|
6760
|
+
baseOptions = configuration.baseOptions;
|
|
6761
|
+
}
|
|
6762
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
6763
|
+
localVarHeaderParameter = {};
|
|
6764
|
+
localVarQueryParameter = {};
|
|
6765
|
+
// authentication oauth2 required
|
|
6766
|
+
// oauth required
|
|
6767
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
6768
|
+
case 1:
|
|
6769
|
+
// authentication oauth2 required
|
|
6770
|
+
// oauth required
|
|
6771
|
+
_a.sent();
|
|
6772
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6773
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6774
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6775
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6776
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeviceCommand, localVarRequestOptions, configuration);
|
|
6777
|
+
return [2 /*return*/, {
|
|
6778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6779
|
+
options: localVarRequestOptions,
|
|
6780
|
+
}];
|
|
6781
|
+
}
|
|
6782
|
+
});
|
|
6783
|
+
});
|
|
6784
|
+
},
|
|
6785
|
+
};
|
|
6786
|
+
};
|
|
6787
|
+
exports.DevicesApiAxiosParamCreator = DevicesApiAxiosParamCreator;
|
|
6788
|
+
/**
|
|
6789
|
+
* DevicesApi - functional programming interface
|
|
6790
|
+
* @export
|
|
6791
|
+
*/
|
|
6792
|
+
var DevicesApiFp = function (configuration) {
|
|
6793
|
+
var localVarAxiosParamCreator = (0, exports.DevicesApiAxiosParamCreator)(configuration);
|
|
6794
|
+
return {
|
|
6795
|
+
/**
|
|
6796
|
+
*
|
|
6797
|
+
* @summary Get all devices.
|
|
6798
|
+
* @param {string} [id]
|
|
6799
|
+
* @param {string} [token]
|
|
6800
|
+
* @param {Platform} [platform]
|
|
6801
|
+
* @param {boolean} [appAlert]
|
|
6802
|
+
* @param {boolean} [eventAlert]
|
|
6803
|
+
* @param {boolean} [noticeAlert]
|
|
6804
|
+
* @param {number} [page]
|
|
6805
|
+
* @param {number} [limit]
|
|
6806
|
+
* @param {Date} [lastRetrieved]
|
|
6807
|
+
* @param {*} [options] Override http request option.
|
|
6808
|
+
* @throws {RequiredError}
|
|
6809
|
+
*/
|
|
6810
|
+
apiV2DevicesGet: function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
6811
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6812
|
+
var localVarAxiosArgs;
|
|
6813
|
+
return __generator(this, function (_a) {
|
|
6814
|
+
switch (_a.label) {
|
|
6815
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options)];
|
|
6816
|
+
case 1:
|
|
6817
|
+
localVarAxiosArgs = _a.sent();
|
|
6818
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6819
|
+
}
|
|
6820
|
+
});
|
|
6821
|
+
});
|
|
6822
|
+
},
|
|
6823
|
+
/**
|
|
6824
|
+
*
|
|
6825
|
+
* @summary Delete device.
|
|
6826
|
+
* @param {string} id
|
|
6827
|
+
* @param {*} [options] Override http request option.
|
|
6828
|
+
* @throws {RequiredError}
|
|
6829
|
+
*/
|
|
6830
|
+
apiV2DevicesIdDelete: function (id, options) {
|
|
6831
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6832
|
+
var localVarAxiosArgs;
|
|
6833
|
+
return __generator(this, function (_a) {
|
|
6834
|
+
switch (_a.label) {
|
|
6835
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdDelete(id, options)];
|
|
6836
|
+
case 1:
|
|
6837
|
+
localVarAxiosArgs = _a.sent();
|
|
6838
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6839
|
+
}
|
|
6840
|
+
});
|
|
6841
|
+
});
|
|
6842
|
+
},
|
|
6843
|
+
/**
|
|
6844
|
+
*
|
|
6845
|
+
* @summary Get device.
|
|
6846
|
+
* @param {string} id
|
|
6847
|
+
* @param {*} [options] Override http request option.
|
|
6848
|
+
* @throws {RequiredError}
|
|
6849
|
+
*/
|
|
6850
|
+
apiV2DevicesIdGet: function (id, options) {
|
|
6851
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6852
|
+
var localVarAxiosArgs;
|
|
6853
|
+
return __generator(this, function (_a) {
|
|
6854
|
+
switch (_a.label) {
|
|
6855
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdGet(id, options)];
|
|
6856
|
+
case 1:
|
|
6857
|
+
localVarAxiosArgs = _a.sent();
|
|
6858
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6859
|
+
}
|
|
6860
|
+
});
|
|
6861
|
+
});
|
|
6862
|
+
},
|
|
6863
|
+
/**
|
|
6864
|
+
*
|
|
6865
|
+
* @summary Create device login.
|
|
6866
|
+
* @param {string} id
|
|
6867
|
+
* @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
|
|
6868
|
+
* @param {*} [options] Override http request option.
|
|
6869
|
+
* @throws {RequiredError}
|
|
6870
|
+
*/
|
|
6871
|
+
apiV2DevicesIdLoginsPost: function (id, createDeviceLoginCommand, options) {
|
|
6872
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6873
|
+
var localVarAxiosArgs;
|
|
6874
|
+
return __generator(this, function (_a) {
|
|
6875
|
+
switch (_a.label) {
|
|
6876
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options)];
|
|
6877
|
+
case 1:
|
|
6878
|
+
localVarAxiosArgs = _a.sent();
|
|
6879
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6880
|
+
}
|
|
6881
|
+
});
|
|
6882
|
+
});
|
|
6883
|
+
},
|
|
6884
|
+
/**
|
|
6885
|
+
*
|
|
6886
|
+
* @summary Update device.
|
|
6887
|
+
* @param {string} id
|
|
6888
|
+
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
6889
|
+
* @param {*} [options] Override http request option.
|
|
6890
|
+
* @throws {RequiredError}
|
|
6891
|
+
*/
|
|
6892
|
+
apiV2DevicesIdPut: function (id, updateDeviceCommand, options) {
|
|
6893
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6894
|
+
var localVarAxiosArgs;
|
|
6895
|
+
return __generator(this, function (_a) {
|
|
6896
|
+
switch (_a.label) {
|
|
6897
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdPut(id, updateDeviceCommand, options)];
|
|
6898
|
+
case 1:
|
|
6899
|
+
localVarAxiosArgs = _a.sent();
|
|
6900
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6901
|
+
}
|
|
6902
|
+
});
|
|
6903
|
+
});
|
|
6904
|
+
},
|
|
6905
|
+
/**
|
|
6906
|
+
*
|
|
6907
|
+
* @summary Create device.
|
|
6908
|
+
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
6909
|
+
* @param {*} [options] Override http request option.
|
|
6910
|
+
* @throws {RequiredError}
|
|
6911
|
+
*/
|
|
6912
|
+
apiV2DevicesPost: function (createDeviceCommand, options) {
|
|
6913
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6914
|
+
var localVarAxiosArgs;
|
|
6915
|
+
return __generator(this, function (_a) {
|
|
6916
|
+
switch (_a.label) {
|
|
6917
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesPost(createDeviceCommand, options)];
|
|
6918
|
+
case 1:
|
|
6919
|
+
localVarAxiosArgs = _a.sent();
|
|
6920
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6921
|
+
}
|
|
6922
|
+
});
|
|
6923
|
+
});
|
|
6924
|
+
},
|
|
6925
|
+
};
|
|
6926
|
+
};
|
|
6927
|
+
exports.DevicesApiFp = DevicesApiFp;
|
|
6928
|
+
/**
|
|
6929
|
+
* DevicesApi - factory interface
|
|
6930
|
+
* @export
|
|
6931
|
+
*/
|
|
6932
|
+
var DevicesApiFactory = function (configuration, basePath, axios) {
|
|
6933
|
+
var localVarFp = (0, exports.DevicesApiFp)(configuration);
|
|
6934
|
+
return {
|
|
6935
|
+
/**
|
|
6936
|
+
*
|
|
6937
|
+
* @summary Get all devices.
|
|
6938
|
+
* @param {string} [id]
|
|
6939
|
+
* @param {string} [token]
|
|
6940
|
+
* @param {Platform} [platform]
|
|
6941
|
+
* @param {boolean} [appAlert]
|
|
6942
|
+
* @param {boolean} [eventAlert]
|
|
6943
|
+
* @param {boolean} [noticeAlert]
|
|
6944
|
+
* @param {number} [page]
|
|
6945
|
+
* @param {number} [limit]
|
|
6946
|
+
* @param {Date} [lastRetrieved]
|
|
6947
|
+
* @param {*} [options] Override http request option.
|
|
6948
|
+
* @throws {RequiredError}
|
|
6949
|
+
*/
|
|
6950
|
+
apiV2DevicesGet: function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
6951
|
+
return localVarFp.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6952
|
+
},
|
|
6953
|
+
/**
|
|
6954
|
+
*
|
|
6955
|
+
* @summary Delete device.
|
|
6956
|
+
* @param {string} id
|
|
6957
|
+
* @param {*} [options] Override http request option.
|
|
6958
|
+
* @throws {RequiredError}
|
|
6959
|
+
*/
|
|
6960
|
+
apiV2DevicesIdDelete: function (id, options) {
|
|
6961
|
+
return localVarFp.apiV2DevicesIdDelete(id, options).then(function (request) { return request(axios, basePath); });
|
|
6962
|
+
},
|
|
6963
|
+
/**
|
|
6964
|
+
*
|
|
6965
|
+
* @summary Get device.
|
|
6966
|
+
* @param {string} id
|
|
6967
|
+
* @param {*} [options] Override http request option.
|
|
6968
|
+
* @throws {RequiredError}
|
|
6969
|
+
*/
|
|
6970
|
+
apiV2DevicesIdGet: function (id, options) {
|
|
6971
|
+
return localVarFp.apiV2DevicesIdGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
6972
|
+
},
|
|
6973
|
+
/**
|
|
6974
|
+
*
|
|
6975
|
+
* @summary Create device login.
|
|
6976
|
+
* @param {string} id
|
|
6977
|
+
* @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
|
|
6978
|
+
* @param {*} [options] Override http request option.
|
|
6979
|
+
* @throws {RequiredError}
|
|
6980
|
+
*/
|
|
6981
|
+
apiV2DevicesIdLoginsPost: function (id, createDeviceLoginCommand, options) {
|
|
6982
|
+
return localVarFp.apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options).then(function (request) { return request(axios, basePath); });
|
|
6983
|
+
},
|
|
6984
|
+
/**
|
|
6985
|
+
*
|
|
6986
|
+
* @summary Update device.
|
|
6987
|
+
* @param {string} id
|
|
6988
|
+
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
6989
|
+
* @param {*} [options] Override http request option.
|
|
6990
|
+
* @throws {RequiredError}
|
|
6991
|
+
*/
|
|
6992
|
+
apiV2DevicesIdPut: function (id, updateDeviceCommand, options) {
|
|
6993
|
+
return localVarFp.apiV2DevicesIdPut(id, updateDeviceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
6994
|
+
},
|
|
6995
|
+
/**
|
|
6996
|
+
*
|
|
6997
|
+
* @summary Create device.
|
|
6998
|
+
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
6999
|
+
* @param {*} [options] Override http request option.
|
|
7000
|
+
* @throws {RequiredError}
|
|
7001
|
+
*/
|
|
7002
|
+
apiV2DevicesPost: function (createDeviceCommand, options) {
|
|
7003
|
+
return localVarFp.apiV2DevicesPost(createDeviceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
7004
|
+
},
|
|
7005
|
+
};
|
|
7006
|
+
};
|
|
7007
|
+
exports.DevicesApiFactory = DevicesApiFactory;
|
|
7008
|
+
/**
|
|
7009
|
+
* DevicesApi - object-oriented interface
|
|
7010
|
+
* @export
|
|
7011
|
+
* @class DevicesApi
|
|
7012
|
+
* @extends {BaseAPI}
|
|
7013
|
+
*/
|
|
7014
|
+
var DevicesApi = /** @class */ (function (_super) {
|
|
7015
|
+
__extends(DevicesApi, _super);
|
|
7016
|
+
function DevicesApi() {
|
|
7017
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7018
|
+
}
|
|
7019
|
+
/**
|
|
7020
|
+
*
|
|
7021
|
+
* @summary Get all devices.
|
|
7022
|
+
* @param {string} [id]
|
|
7023
|
+
* @param {string} [token]
|
|
7024
|
+
* @param {Platform} [platform]
|
|
7025
|
+
* @param {boolean} [appAlert]
|
|
7026
|
+
* @param {boolean} [eventAlert]
|
|
7027
|
+
* @param {boolean} [noticeAlert]
|
|
7028
|
+
* @param {number} [page]
|
|
7029
|
+
* @param {number} [limit]
|
|
7030
|
+
* @param {Date} [lastRetrieved]
|
|
7031
|
+
* @param {*} [options] Override http request option.
|
|
7032
|
+
* @throws {RequiredError}
|
|
7033
|
+
* @memberof DevicesApi
|
|
7034
|
+
*/
|
|
7035
|
+
DevicesApi.prototype.apiV2DevicesGet = function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
7036
|
+
var _this = this;
|
|
7037
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7038
|
+
};
|
|
7039
|
+
/**
|
|
7040
|
+
*
|
|
7041
|
+
* @summary Delete device.
|
|
7042
|
+
* @param {string} id
|
|
7043
|
+
* @param {*} [options] Override http request option.
|
|
7044
|
+
* @throws {RequiredError}
|
|
7045
|
+
* @memberof DevicesApi
|
|
7046
|
+
*/
|
|
7047
|
+
DevicesApi.prototype.apiV2DevicesIdDelete = function (id, options) {
|
|
7048
|
+
var _this = this;
|
|
7049
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdDelete(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7050
|
+
};
|
|
7051
|
+
/**
|
|
7052
|
+
*
|
|
7053
|
+
* @summary Get device.
|
|
7054
|
+
* @param {string} id
|
|
7055
|
+
* @param {*} [options] Override http request option.
|
|
7056
|
+
* @throws {RequiredError}
|
|
7057
|
+
* @memberof DevicesApi
|
|
7058
|
+
*/
|
|
7059
|
+
DevicesApi.prototype.apiV2DevicesIdGet = function (id, options) {
|
|
7060
|
+
var _this = this;
|
|
7061
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7062
|
+
};
|
|
7063
|
+
/**
|
|
7064
|
+
*
|
|
7065
|
+
* @summary Create device login.
|
|
7066
|
+
* @param {string} id
|
|
7067
|
+
* @param {CreateDeviceLoginCommand} [createDeviceLoginCommand]
|
|
7068
|
+
* @param {*} [options] Override http request option.
|
|
7069
|
+
* @throws {RequiredError}
|
|
7070
|
+
* @memberof DevicesApi
|
|
7071
|
+
*/
|
|
7072
|
+
DevicesApi.prototype.apiV2DevicesIdLoginsPost = function (id, createDeviceLoginCommand, options) {
|
|
7073
|
+
var _this = this;
|
|
7074
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdLoginsPost(id, createDeviceLoginCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7075
|
+
};
|
|
7076
|
+
/**
|
|
7077
|
+
*
|
|
7078
|
+
* @summary Update device.
|
|
7079
|
+
* @param {string} id
|
|
7080
|
+
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
7081
|
+
* @param {*} [options] Override http request option.
|
|
7082
|
+
* @throws {RequiredError}
|
|
7083
|
+
* @memberof DevicesApi
|
|
7084
|
+
*/
|
|
7085
|
+
DevicesApi.prototype.apiV2DevicesIdPut = function (id, updateDeviceCommand, options) {
|
|
7086
|
+
var _this = this;
|
|
7087
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdPut(id, updateDeviceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7088
|
+
};
|
|
7089
|
+
/**
|
|
7090
|
+
*
|
|
7091
|
+
* @summary Create device.
|
|
7092
|
+
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
7093
|
+
* @param {*} [options] Override http request option.
|
|
7094
|
+
* @throws {RequiredError}
|
|
7095
|
+
* @memberof DevicesApi
|
|
7096
|
+
*/
|
|
7097
|
+
DevicesApi.prototype.apiV2DevicesPost = function (createDeviceCommand, options) {
|
|
7098
|
+
var _this = this;
|
|
7099
|
+
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesPost(createDeviceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7100
|
+
};
|
|
7101
|
+
return DevicesApi;
|
|
7102
|
+
}(base_1.BaseAPI));
|
|
7103
|
+
exports.DevicesApi = DevicesApi;
|
|
6481
7104
|
/**
|
|
6482
7105
|
* DoctorAffiliationsApi - axios parameter creator
|
|
6483
7106
|
* @export
|