ch-admin-api-client-typescript 2.2.4 → 2.2.12
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 +1854 -177
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1938 -143
- package/package.json +1 -1
- package/src/api.ts +2750 -267
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = 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.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = 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.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = 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.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = 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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = 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.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -9696,9 +9696,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9696
9696
|
*
|
|
9697
9697
|
* @summary Delete DoctorCertificate.
|
|
9698
9698
|
* @param {string} doctorId
|
|
9699
|
-
* @param {string} [doctorId2]
|
|
9700
|
-
* @param {string} [id]
|
|
9701
9699
|
* @param {string} [doctorName]
|
|
9700
|
+
* @param {string} [certificateId]
|
|
9702
9701
|
* @param {string} [certificate]
|
|
9703
9702
|
* @param {Date} [activeFrom]
|
|
9704
9703
|
* @param {Date} [activeTo]
|
|
@@ -9708,7 +9707,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9708
9707
|
* @param {*} [options] Override http request option.
|
|
9709
9708
|
* @throws {RequiredError}
|
|
9710
9709
|
*/
|
|
9711
|
-
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId,
|
|
9710
|
+
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
|
|
9712
9711
|
if (options === void 0) { options = {}; }
|
|
9713
9712
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9714
9713
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -9733,15 +9732,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
9733
9732
|
// authentication oauth2 required
|
|
9734
9733
|
// oauth required
|
|
9735
9734
|
_a.sent();
|
|
9736
|
-
if (doctorId2 !== undefined) {
|
|
9737
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
9738
|
-
}
|
|
9739
|
-
if (id !== undefined) {
|
|
9740
|
-
localVarQueryParameter['Id'] = id;
|
|
9741
|
-
}
|
|
9742
9735
|
if (doctorName !== undefined) {
|
|
9743
9736
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
9744
9737
|
}
|
|
9738
|
+
if (certificateId !== undefined) {
|
|
9739
|
+
localVarQueryParameter['CertificateId'] = certificateId;
|
|
9740
|
+
}
|
|
9745
9741
|
if (certificate !== undefined) {
|
|
9746
9742
|
localVarQueryParameter['Certificate'] = certificate;
|
|
9747
9743
|
}
|
|
@@ -10014,8 +10010,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10014
10010
|
*
|
|
10015
10011
|
* @summary Get all DoctorEducations.
|
|
10016
10012
|
* @param {string} doctorId
|
|
10017
|
-
* @param {string} [doctorId2]
|
|
10018
10013
|
* @param {string} [doctorName]
|
|
10014
|
+
* @param {string} [educationId]
|
|
10019
10015
|
* @param {string} [institution]
|
|
10020
10016
|
* @param {string} [qualification]
|
|
10021
10017
|
* @param {Date} [graduationDate]
|
|
@@ -10025,7 +10021,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10025
10021
|
* @param {*} [options] Override http request option.
|
|
10026
10022
|
* @throws {RequiredError}
|
|
10027
10023
|
*/
|
|
10028
|
-
apiV1DoctorsDoctorIdEducationsGet: function (doctorId,
|
|
10024
|
+
apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
|
|
10029
10025
|
if (options === void 0) { options = {}; }
|
|
10030
10026
|
return __awaiter(_this, void 0, void 0, function () {
|
|
10031
10027
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -10050,12 +10046,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10050
10046
|
// authentication oauth2 required
|
|
10051
10047
|
// oauth required
|
|
10052
10048
|
_a.sent();
|
|
10053
|
-
if (doctorId2 !== undefined) {
|
|
10054
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
10055
|
-
}
|
|
10056
10049
|
if (doctorName !== undefined) {
|
|
10057
10050
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
10058
10051
|
}
|
|
10052
|
+
if (educationId !== undefined) {
|
|
10053
|
+
localVarQueryParameter['EducationId'] = educationId;
|
|
10054
|
+
}
|
|
10059
10055
|
if (institution !== undefined) {
|
|
10060
10056
|
localVarQueryParameter['Institution'] = institution;
|
|
10061
10057
|
}
|
|
@@ -10441,9 +10437,8 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10441
10437
|
*
|
|
10442
10438
|
* @summary Get All DoctorPortfolios
|
|
10443
10439
|
* @param {string} doctorId
|
|
10444
|
-
* @param {string} [id]
|
|
10445
|
-
* @param {string} [doctorId2]
|
|
10446
10440
|
* @param {string} [doctorName]
|
|
10441
|
+
* @param {string} [portfolioId]
|
|
10447
10442
|
* @param {string} [name]
|
|
10448
10443
|
* @param {number} [page]
|
|
10449
10444
|
* @param {number} [limit]
|
|
@@ -10451,7 +10446,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10451
10446
|
* @param {*} [options] Override http request option.
|
|
10452
10447
|
* @throws {RequiredError}
|
|
10453
10448
|
*/
|
|
10454
|
-
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId,
|
|
10449
|
+
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
|
|
10455
10450
|
if (options === void 0) { options = {}; }
|
|
10456
10451
|
return __awaiter(_this, void 0, void 0, function () {
|
|
10457
10452
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -10476,15 +10471,12 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10476
10471
|
// authentication oauth2 required
|
|
10477
10472
|
// oauth required
|
|
10478
10473
|
_a.sent();
|
|
10479
|
-
if (id !== undefined) {
|
|
10480
|
-
localVarQueryParameter['Id'] = id;
|
|
10481
|
-
}
|
|
10482
|
-
if (doctorId2 !== undefined) {
|
|
10483
|
-
localVarQueryParameter['DoctorId'] = doctorId2;
|
|
10484
|
-
}
|
|
10485
10474
|
if (doctorName !== undefined) {
|
|
10486
10475
|
localVarQueryParameter['DoctorName'] = doctorName;
|
|
10487
10476
|
}
|
|
10477
|
+
if (portfolioId !== undefined) {
|
|
10478
|
+
localVarQueryParameter['PortfolioId'] = portfolioId;
|
|
10479
|
+
}
|
|
10488
10480
|
if (name !== undefined) {
|
|
10489
10481
|
localVarQueryParameter['Name'] = name;
|
|
10490
10482
|
}
|
|
@@ -11334,9 +11326,8 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11334
11326
|
*
|
|
11335
11327
|
* @summary Delete DoctorCertificate.
|
|
11336
11328
|
* @param {string} doctorId
|
|
11337
|
-
* @param {string} [doctorId2]
|
|
11338
|
-
* @param {string} [id]
|
|
11339
11329
|
* @param {string} [doctorName]
|
|
11330
|
+
* @param {string} [certificateId]
|
|
11340
11331
|
* @param {string} [certificate]
|
|
11341
11332
|
* @param {Date} [activeFrom]
|
|
11342
11333
|
* @param {Date} [activeTo]
|
|
@@ -11346,12 +11337,12 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11346
11337
|
* @param {*} [options] Override http request option.
|
|
11347
11338
|
* @throws {RequiredError}
|
|
11348
11339
|
*/
|
|
11349
|
-
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId,
|
|
11340
|
+
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
|
|
11350
11341
|
return __awaiter(this, void 0, void 0, function () {
|
|
11351
11342
|
var localVarAxiosArgs;
|
|
11352
11343
|
return __generator(this, function (_a) {
|
|
11353
11344
|
switch (_a.label) {
|
|
11354
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId,
|
|
11345
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options)];
|
|
11355
11346
|
case 1:
|
|
11356
11347
|
localVarAxiosArgs = _a.sent();
|
|
11357
11348
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -11468,8 +11459,8 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11468
11459
|
*
|
|
11469
11460
|
* @summary Get all DoctorEducations.
|
|
11470
11461
|
* @param {string} doctorId
|
|
11471
|
-
* @param {string} [doctorId2]
|
|
11472
11462
|
* @param {string} [doctorName]
|
|
11463
|
+
* @param {string} [educationId]
|
|
11473
11464
|
* @param {string} [institution]
|
|
11474
11465
|
* @param {string} [qualification]
|
|
11475
11466
|
* @param {Date} [graduationDate]
|
|
@@ -11479,12 +11470,12 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11479
11470
|
* @param {*} [options] Override http request option.
|
|
11480
11471
|
* @throws {RequiredError}
|
|
11481
11472
|
*/
|
|
11482
|
-
apiV1DoctorsDoctorIdEducationsGet: function (doctorId,
|
|
11473
|
+
apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
|
|
11483
11474
|
return __awaiter(this, void 0, void 0, function () {
|
|
11484
11475
|
var localVarAxiosArgs;
|
|
11485
11476
|
return __generator(this, function (_a) {
|
|
11486
11477
|
switch (_a.label) {
|
|
11487
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId,
|
|
11478
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options)];
|
|
11488
11479
|
case 1:
|
|
11489
11480
|
localVarAxiosArgs = _a.sent();
|
|
11490
11481
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -11648,9 +11639,8 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11648
11639
|
*
|
|
11649
11640
|
* @summary Get All DoctorPortfolios
|
|
11650
11641
|
* @param {string} doctorId
|
|
11651
|
-
* @param {string} [id]
|
|
11652
|
-
* @param {string} [doctorId2]
|
|
11653
11642
|
* @param {string} [doctorName]
|
|
11643
|
+
* @param {string} [portfolioId]
|
|
11654
11644
|
* @param {string} [name]
|
|
11655
11645
|
* @param {number} [page]
|
|
11656
11646
|
* @param {number} [limit]
|
|
@@ -11658,12 +11648,12 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
11658
11648
|
* @param {*} [options] Override http request option.
|
|
11659
11649
|
* @throws {RequiredError}
|
|
11660
11650
|
*/
|
|
11661
|
-
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId,
|
|
11651
|
+
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
|
|
11662
11652
|
return __awaiter(this, void 0, void 0, function () {
|
|
11663
11653
|
var localVarAxiosArgs;
|
|
11664
11654
|
return __generator(this, function (_a) {
|
|
11665
11655
|
switch (_a.label) {
|
|
11666
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId,
|
|
11656
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options)];
|
|
11667
11657
|
case 1:
|
|
11668
11658
|
localVarAxiosArgs = _a.sent();
|
|
11669
11659
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12036,9 +12026,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12036
12026
|
*
|
|
12037
12027
|
* @summary Delete DoctorCertificate.
|
|
12038
12028
|
* @param {string} doctorId
|
|
12039
|
-
* @param {string} [doctorId2]
|
|
12040
|
-
* @param {string} [id]
|
|
12041
12029
|
* @param {string} [doctorName]
|
|
12030
|
+
* @param {string} [certificateId]
|
|
12042
12031
|
* @param {string} [certificate]
|
|
12043
12032
|
* @param {Date} [activeFrom]
|
|
12044
12033
|
* @param {Date} [activeTo]
|
|
@@ -12048,8 +12037,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12048
12037
|
* @param {*} [options] Override http request option.
|
|
12049
12038
|
* @throws {RequiredError}
|
|
12050
12039
|
*/
|
|
12051
|
-
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId,
|
|
12052
|
-
return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId,
|
|
12040
|
+
apiV1DoctorsDoctorIdCertificatesGet: function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
|
|
12041
|
+
return localVarFp.apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12053
12042
|
},
|
|
12054
12043
|
/**
|
|
12055
12044
|
*
|
|
@@ -12110,8 +12099,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12110
12099
|
*
|
|
12111
12100
|
* @summary Get all DoctorEducations.
|
|
12112
12101
|
* @param {string} doctorId
|
|
12113
|
-
* @param {string} [doctorId2]
|
|
12114
12102
|
* @param {string} [doctorName]
|
|
12103
|
+
* @param {string} [educationId]
|
|
12115
12104
|
* @param {string} [institution]
|
|
12116
12105
|
* @param {string} [qualification]
|
|
12117
12106
|
* @param {Date} [graduationDate]
|
|
@@ -12121,8 +12110,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12121
12110
|
* @param {*} [options] Override http request option.
|
|
12122
12111
|
* @throws {RequiredError}
|
|
12123
12112
|
*/
|
|
12124
|
-
apiV1DoctorsDoctorIdEducationsGet: function (doctorId,
|
|
12125
|
-
return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId,
|
|
12113
|
+
apiV1DoctorsDoctorIdEducationsGet: function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
|
|
12114
|
+
return localVarFp.apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12126
12115
|
},
|
|
12127
12116
|
/**
|
|
12128
12117
|
*
|
|
@@ -12210,9 +12199,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12210
12199
|
*
|
|
12211
12200
|
* @summary Get All DoctorPortfolios
|
|
12212
12201
|
* @param {string} doctorId
|
|
12213
|
-
* @param {string} [id]
|
|
12214
|
-
* @param {string} [doctorId2]
|
|
12215
12202
|
* @param {string} [doctorName]
|
|
12203
|
+
* @param {string} [portfolioId]
|
|
12216
12204
|
* @param {string} [name]
|
|
12217
12205
|
* @param {number} [page]
|
|
12218
12206
|
* @param {number} [limit]
|
|
@@ -12220,8 +12208,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
12220
12208
|
* @param {*} [options] Override http request option.
|
|
12221
12209
|
* @throws {RequiredError}
|
|
12222
12210
|
*/
|
|
12223
|
-
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId,
|
|
12224
|
-
return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId,
|
|
12211
|
+
apiV1DoctorsDoctorIdPortfoliosGet: function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
|
|
12212
|
+
return localVarFp.apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
12225
12213
|
},
|
|
12226
12214
|
/**
|
|
12227
12215
|
*
|
|
@@ -12472,9 +12460,8 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12472
12460
|
*
|
|
12473
12461
|
* @summary Delete DoctorCertificate.
|
|
12474
12462
|
* @param {string} doctorId
|
|
12475
|
-
* @param {string} [doctorId2]
|
|
12476
|
-
* @param {string} [id]
|
|
12477
12463
|
* @param {string} [doctorName]
|
|
12464
|
+
* @param {string} [certificateId]
|
|
12478
12465
|
* @param {string} [certificate]
|
|
12479
12466
|
* @param {Date} [activeFrom]
|
|
12480
12467
|
* @param {Date} [activeTo]
|
|
@@ -12485,9 +12472,9 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12485
12472
|
* @throws {RequiredError}
|
|
12486
12473
|
* @memberof DoctorsApi
|
|
12487
12474
|
*/
|
|
12488
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdCertificatesGet = function (doctorId,
|
|
12475
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdCertificatesGet = function (doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options) {
|
|
12489
12476
|
var _this = this;
|
|
12490
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId,
|
|
12477
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdCertificatesGet(doctorId, doctorName, certificateId, certificate, activeFrom, activeTo, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12491
12478
|
};
|
|
12492
12479
|
/**
|
|
12493
12480
|
*
|
|
@@ -12558,8 +12545,8 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12558
12545
|
*
|
|
12559
12546
|
* @summary Get all DoctorEducations.
|
|
12560
12547
|
* @param {string} doctorId
|
|
12561
|
-
* @param {string} [doctorId2]
|
|
12562
12548
|
* @param {string} [doctorName]
|
|
12549
|
+
* @param {string} [educationId]
|
|
12563
12550
|
* @param {string} [institution]
|
|
12564
12551
|
* @param {string} [qualification]
|
|
12565
12552
|
* @param {Date} [graduationDate]
|
|
@@ -12570,9 +12557,9 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12570
12557
|
* @throws {RequiredError}
|
|
12571
12558
|
* @memberof DoctorsApi
|
|
12572
12559
|
*/
|
|
12573
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdEducationsGet = function (doctorId,
|
|
12560
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdEducationsGet = function (doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options) {
|
|
12574
12561
|
var _this = this;
|
|
12575
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId,
|
|
12562
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdEducationsGet(doctorId, doctorName, educationId, institution, qualification, graduationDate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12576
12563
|
};
|
|
12577
12564
|
/**
|
|
12578
12565
|
*
|
|
@@ -12674,9 +12661,8 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12674
12661
|
*
|
|
12675
12662
|
* @summary Get All DoctorPortfolios
|
|
12676
12663
|
* @param {string} doctorId
|
|
12677
|
-
* @param {string} [id]
|
|
12678
|
-
* @param {string} [doctorId2]
|
|
12679
12664
|
* @param {string} [doctorName]
|
|
12665
|
+
* @param {string} [portfolioId]
|
|
12680
12666
|
* @param {string} [name]
|
|
12681
12667
|
* @param {number} [page]
|
|
12682
12668
|
* @param {number} [limit]
|
|
@@ -12685,9 +12671,9 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
12685
12671
|
* @throws {RequiredError}
|
|
12686
12672
|
* @memberof DoctorsApi
|
|
12687
12673
|
*/
|
|
12688
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdPortfoliosGet = function (doctorId,
|
|
12674
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdPortfoliosGet = function (doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options) {
|
|
12689
12675
|
var _this = this;
|
|
12690
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId,
|
|
12676
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdPortfoliosGet(doctorId, doctorName, portfolioId, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
12691
12677
|
};
|
|
12692
12678
|
/**
|
|
12693
12679
|
*
|
|
@@ -18090,32 +18076,41 @@ var LanguagesApi = /** @class */ (function (_super) {
|
|
|
18090
18076
|
}(base_1.BaseAPI));
|
|
18091
18077
|
exports.LanguagesApi = LanguagesApi;
|
|
18092
18078
|
/**
|
|
18093
|
-
*
|
|
18079
|
+
* ManagersApi - axios parameter creator
|
|
18094
18080
|
* @export
|
|
18095
18081
|
*/
|
|
18096
|
-
exports.
|
|
18082
|
+
exports.ManagersApiAxiosParamCreator = function (configuration) {
|
|
18097
18083
|
var _this = this;
|
|
18098
18084
|
return {
|
|
18099
18085
|
/**
|
|
18100
18086
|
*
|
|
18101
|
-
* @summary
|
|
18102
|
-
* @param {
|
|
18087
|
+
* @summary Get all Managers.
|
|
18088
|
+
* @param {string} [hospitalId]
|
|
18089
|
+
* @param {string} [id]
|
|
18090
|
+
* @param {string} [fullname]
|
|
18091
|
+
* @param {string} [email]
|
|
18092
|
+
* @param {Gender} [gender]
|
|
18093
|
+
* @param {Date} [dateOfBirth]
|
|
18094
|
+
* @param {Date} [created]
|
|
18095
|
+
* @param {number} [page]
|
|
18096
|
+
* @param {number} [limit]
|
|
18097
|
+
* @param {Date} [lastRetrieved]
|
|
18103
18098
|
* @param {*} [options] Override http request option.
|
|
18104
18099
|
* @throws {RequiredError}
|
|
18105
18100
|
*/
|
|
18106
|
-
|
|
18101
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
|
|
18107
18102
|
if (options === void 0) { options = {}; }
|
|
18108
18103
|
return __awaiter(_this, void 0, void 0, function () {
|
|
18109
18104
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18110
18105
|
return __generator(this, function (_a) {
|
|
18111
18106
|
switch (_a.label) {
|
|
18112
18107
|
case 0:
|
|
18113
|
-
localVarPath = "/api/v1/
|
|
18108
|
+
localVarPath = "/api/v1/managers";
|
|
18114
18109
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18115
18110
|
if (configuration) {
|
|
18116
18111
|
baseOptions = configuration.baseOptions;
|
|
18117
18112
|
}
|
|
18118
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
18113
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18119
18114
|
localVarHeaderParameter = {};
|
|
18120
18115
|
localVarQueryParameter = {};
|
|
18121
18116
|
// authentication oauth2 required
|
|
@@ -18125,11 +18120,45 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
18125
18120
|
// authentication oauth2 required
|
|
18126
18121
|
// oauth required
|
|
18127
18122
|
_a.sent();
|
|
18128
|
-
|
|
18123
|
+
if (hospitalId !== undefined) {
|
|
18124
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
18125
|
+
}
|
|
18126
|
+
if (id !== undefined) {
|
|
18127
|
+
localVarQueryParameter['Id'] = id;
|
|
18128
|
+
}
|
|
18129
|
+
if (fullname !== undefined) {
|
|
18130
|
+
localVarQueryParameter['Fullname'] = fullname;
|
|
18131
|
+
}
|
|
18132
|
+
if (email !== undefined) {
|
|
18133
|
+
localVarQueryParameter['Email'] = email;
|
|
18134
|
+
}
|
|
18135
|
+
if (gender !== undefined) {
|
|
18136
|
+
localVarQueryParameter['Gender'] = gender;
|
|
18137
|
+
}
|
|
18138
|
+
if (dateOfBirth !== undefined) {
|
|
18139
|
+
localVarQueryParameter['DateOfBirth'] = (dateOfBirth instanceof Date) ?
|
|
18140
|
+
dateOfBirth.toISOString() :
|
|
18141
|
+
dateOfBirth;
|
|
18142
|
+
}
|
|
18143
|
+
if (created !== undefined) {
|
|
18144
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
18145
|
+
created.toISOString() :
|
|
18146
|
+
created;
|
|
18147
|
+
}
|
|
18148
|
+
if (page !== undefined) {
|
|
18149
|
+
localVarQueryParameter['page'] = page;
|
|
18150
|
+
}
|
|
18151
|
+
if (limit !== undefined) {
|
|
18152
|
+
localVarQueryParameter['limit'] = limit;
|
|
18153
|
+
}
|
|
18154
|
+
if (lastRetrieved !== undefined) {
|
|
18155
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
18156
|
+
lastRetrieved.toISOString() :
|
|
18157
|
+
lastRetrieved;
|
|
18158
|
+
}
|
|
18129
18159
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18130
18160
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18131
18161
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18132
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
|
|
18133
18162
|
return [2 /*return*/, {
|
|
18134
18163
|
url: common_1.toPathString(localVarUrlObj),
|
|
18135
18164
|
options: localVarRequestOptions,
|
|
@@ -18140,28 +18169,27 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
18140
18169
|
},
|
|
18141
18170
|
/**
|
|
18142
18171
|
*
|
|
18143
|
-
* @summary
|
|
18144
|
-
* @param {
|
|
18145
|
-
* @param {boolean} [unreadCountOnly]
|
|
18146
|
-
* @param {number} [page]
|
|
18147
|
-
* @param {number} [limit]
|
|
18148
|
-
* @param {Date} [lastRetrieved]
|
|
18172
|
+
* @summary Delete Manager.
|
|
18173
|
+
* @param {string} managerId
|
|
18149
18174
|
* @param {*} [options] Override http request option.
|
|
18150
18175
|
* @throws {RequiredError}
|
|
18151
18176
|
*/
|
|
18152
|
-
|
|
18177
|
+
apiV1ManagersManagerIdDelete: function (managerId, options) {
|
|
18153
18178
|
if (options === void 0) { options = {}; }
|
|
18154
18179
|
return __awaiter(_this, void 0, void 0, function () {
|
|
18155
18180
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18156
18181
|
return __generator(this, function (_a) {
|
|
18157
18182
|
switch (_a.label) {
|
|
18158
18183
|
case 0:
|
|
18159
|
-
|
|
18184
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
18185
|
+
common_1.assertParamExists('apiV1ManagersManagerIdDelete', 'managerId', managerId);
|
|
18186
|
+
localVarPath = "/api/v1/managers/{managerId}"
|
|
18187
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
18160
18188
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18161
18189
|
if (configuration) {
|
|
18162
18190
|
baseOptions = configuration.baseOptions;
|
|
18163
18191
|
}
|
|
18164
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
18192
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
18165
18193
|
localVarHeaderParameter = {};
|
|
18166
18194
|
localVarQueryParameter = {};
|
|
18167
18195
|
// authentication oauth2 required
|
|
@@ -18171,26 +18199,140 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
18171
18199
|
// authentication oauth2 required
|
|
18172
18200
|
// oauth required
|
|
18173
18201
|
_a.sent();
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
}
|
|
18177
|
-
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18181
|
-
|
|
18202
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18203
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18204
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18205
|
+
return [2 /*return*/, {
|
|
18206
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18207
|
+
options: localVarRequestOptions,
|
|
18208
|
+
}];
|
|
18209
|
+
}
|
|
18210
|
+
});
|
|
18211
|
+
});
|
|
18212
|
+
},
|
|
18213
|
+
/**
|
|
18214
|
+
*
|
|
18215
|
+
* @summary Get Manager.
|
|
18216
|
+
* @param {string} managerId
|
|
18217
|
+
* @param {*} [options] Override http request option.
|
|
18218
|
+
* @throws {RequiredError}
|
|
18219
|
+
*/
|
|
18220
|
+
apiV1ManagersManagerIdGet: function (managerId, options) {
|
|
18221
|
+
if (options === void 0) { options = {}; }
|
|
18222
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18223
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18224
|
+
return __generator(this, function (_a) {
|
|
18225
|
+
switch (_a.label) {
|
|
18226
|
+
case 0:
|
|
18227
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
18228
|
+
common_1.assertParamExists('apiV1ManagersManagerIdGet', 'managerId', managerId);
|
|
18229
|
+
localVarPath = "/api/v1/managers/{managerId}"
|
|
18230
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
18231
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18232
|
+
if (configuration) {
|
|
18233
|
+
baseOptions = configuration.baseOptions;
|
|
18182
18234
|
}
|
|
18183
|
-
|
|
18184
|
-
|
|
18235
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18236
|
+
localVarHeaderParameter = {};
|
|
18237
|
+
localVarQueryParameter = {};
|
|
18238
|
+
// authentication oauth2 required
|
|
18239
|
+
// oauth required
|
|
18240
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18241
|
+
case 1:
|
|
18242
|
+
// authentication oauth2 required
|
|
18243
|
+
// oauth required
|
|
18244
|
+
_a.sent();
|
|
18245
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18246
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18247
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18248
|
+
return [2 /*return*/, {
|
|
18249
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18250
|
+
options: localVarRequestOptions,
|
|
18251
|
+
}];
|
|
18252
|
+
}
|
|
18253
|
+
});
|
|
18254
|
+
});
|
|
18255
|
+
},
|
|
18256
|
+
/**
|
|
18257
|
+
*
|
|
18258
|
+
* @summary Update Manager.
|
|
18259
|
+
* @param {string} managerId
|
|
18260
|
+
* @param {UpdateManagerCommand} [updateManagerCommand]
|
|
18261
|
+
* @param {*} [options] Override http request option.
|
|
18262
|
+
* @throws {RequiredError}
|
|
18263
|
+
*/
|
|
18264
|
+
apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
|
|
18265
|
+
if (options === void 0) { options = {}; }
|
|
18266
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18267
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18268
|
+
return __generator(this, function (_a) {
|
|
18269
|
+
switch (_a.label) {
|
|
18270
|
+
case 0:
|
|
18271
|
+
// verify required parameter 'managerId' is not null or undefined
|
|
18272
|
+
common_1.assertParamExists('apiV1ManagersManagerIdPut', 'managerId', managerId);
|
|
18273
|
+
localVarPath = "/api/v1/managers/{managerId}"
|
|
18274
|
+
.replace("{" + "managerId" + "}", encodeURIComponent(String(managerId)));
|
|
18275
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18276
|
+
if (configuration) {
|
|
18277
|
+
baseOptions = configuration.baseOptions;
|
|
18185
18278
|
}
|
|
18186
|
-
|
|
18187
|
-
|
|
18188
|
-
|
|
18189
|
-
|
|
18279
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
18280
|
+
localVarHeaderParameter = {};
|
|
18281
|
+
localVarQueryParameter = {};
|
|
18282
|
+
// authentication oauth2 required
|
|
18283
|
+
// oauth required
|
|
18284
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18285
|
+
case 1:
|
|
18286
|
+
// authentication oauth2 required
|
|
18287
|
+
// oauth required
|
|
18288
|
+
_a.sent();
|
|
18289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18290
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18291
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18292
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18293
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateManagerCommand, localVarRequestOptions, configuration);
|
|
18294
|
+
return [2 /*return*/, {
|
|
18295
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18296
|
+
options: localVarRequestOptions,
|
|
18297
|
+
}];
|
|
18298
|
+
}
|
|
18299
|
+
});
|
|
18300
|
+
});
|
|
18301
|
+
},
|
|
18302
|
+
/**
|
|
18303
|
+
*
|
|
18304
|
+
* @summary Create a Manager.
|
|
18305
|
+
* @param {CreateManagerCommand} [createManagerCommand]
|
|
18306
|
+
* @param {*} [options] Override http request option.
|
|
18307
|
+
* @throws {RequiredError}
|
|
18308
|
+
*/
|
|
18309
|
+
apiV1ManagersPost: function (createManagerCommand, options) {
|
|
18310
|
+
if (options === void 0) { options = {}; }
|
|
18311
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18312
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18313
|
+
return __generator(this, function (_a) {
|
|
18314
|
+
switch (_a.label) {
|
|
18315
|
+
case 0:
|
|
18316
|
+
localVarPath = "/api/v1/managers";
|
|
18317
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18318
|
+
if (configuration) {
|
|
18319
|
+
baseOptions = configuration.baseOptions;
|
|
18190
18320
|
}
|
|
18321
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
18322
|
+
localVarHeaderParameter = {};
|
|
18323
|
+
localVarQueryParameter = {};
|
|
18324
|
+
// authentication oauth2 required
|
|
18325
|
+
// oauth required
|
|
18326
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18327
|
+
case 1:
|
|
18328
|
+
// authentication oauth2 required
|
|
18329
|
+
// oauth required
|
|
18330
|
+
_a.sent();
|
|
18331
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18191
18332
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18192
18333
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18193
18334
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18335
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createManagerCommand, localVarRequestOptions, configuration);
|
|
18194
18336
|
return [2 /*return*/, {
|
|
18195
18337
|
url: common_1.toPathString(localVarUrlObj),
|
|
18196
18338
|
options: localVarRequestOptions,
|
|
@@ -18202,25 +18344,34 @@ exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
|
18202
18344
|
};
|
|
18203
18345
|
};
|
|
18204
18346
|
/**
|
|
18205
|
-
*
|
|
18347
|
+
* ManagersApi - functional programming interface
|
|
18206
18348
|
* @export
|
|
18207
18349
|
*/
|
|
18208
|
-
exports.
|
|
18209
|
-
var localVarAxiosParamCreator = exports.
|
|
18350
|
+
exports.ManagersApiFp = function (configuration) {
|
|
18351
|
+
var localVarAxiosParamCreator = exports.ManagersApiAxiosParamCreator(configuration);
|
|
18210
18352
|
return {
|
|
18211
18353
|
/**
|
|
18212
18354
|
*
|
|
18213
|
-
* @summary
|
|
18214
|
-
* @param {
|
|
18355
|
+
* @summary Get all Managers.
|
|
18356
|
+
* @param {string} [hospitalId]
|
|
18357
|
+
* @param {string} [id]
|
|
18358
|
+
* @param {string} [fullname]
|
|
18359
|
+
* @param {string} [email]
|
|
18360
|
+
* @param {Gender} [gender]
|
|
18361
|
+
* @param {Date} [dateOfBirth]
|
|
18362
|
+
* @param {Date} [created]
|
|
18363
|
+
* @param {number} [page]
|
|
18364
|
+
* @param {number} [limit]
|
|
18365
|
+
* @param {Date} [lastRetrieved]
|
|
18215
18366
|
* @param {*} [options] Override http request option.
|
|
18216
18367
|
* @throws {RequiredError}
|
|
18217
18368
|
*/
|
|
18218
|
-
|
|
18369
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
|
|
18219
18370
|
return __awaiter(this, void 0, void 0, function () {
|
|
18220
18371
|
var localVarAxiosArgs;
|
|
18221
18372
|
return __generator(this, function (_a) {
|
|
18222
18373
|
switch (_a.label) {
|
|
18223
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
18374
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options)];
|
|
18224
18375
|
case 1:
|
|
18225
18376
|
localVarAxiosArgs = _a.sent();
|
|
18226
18377
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -18230,21 +18381,17 @@ exports.NotificationsApiFp = function (configuration) {
|
|
|
18230
18381
|
},
|
|
18231
18382
|
/**
|
|
18232
18383
|
*
|
|
18233
|
-
* @summary
|
|
18234
|
-
* @param {
|
|
18235
|
-
* @param {boolean} [unreadCountOnly]
|
|
18236
|
-
* @param {number} [page]
|
|
18237
|
-
* @param {number} [limit]
|
|
18238
|
-
* @param {Date} [lastRetrieved]
|
|
18384
|
+
* @summary Delete Manager.
|
|
18385
|
+
* @param {string} managerId
|
|
18239
18386
|
* @param {*} [options] Override http request option.
|
|
18240
18387
|
* @throws {RequiredError}
|
|
18241
18388
|
*/
|
|
18242
|
-
|
|
18389
|
+
apiV1ManagersManagerIdDelete: function (managerId, options) {
|
|
18243
18390
|
return __awaiter(this, void 0, void 0, function () {
|
|
18244
18391
|
var localVarAxiosArgs;
|
|
18245
18392
|
return __generator(this, function (_a) {
|
|
18246
18393
|
switch (_a.label) {
|
|
18247
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
18394
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdDelete(managerId, options)];
|
|
18248
18395
|
case 1:
|
|
18249
18396
|
localVarAxiosArgs = _a.sent();
|
|
18250
18397
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -18252,83 +18399,1731 @@ exports.NotificationsApiFp = function (configuration) {
|
|
|
18252
18399
|
});
|
|
18253
18400
|
});
|
|
18254
18401
|
},
|
|
18255
|
-
};
|
|
18256
|
-
};
|
|
18257
|
-
/**
|
|
18258
|
-
* NotificationsApi - factory interface
|
|
18259
|
-
* @export
|
|
18260
|
-
*/
|
|
18261
|
-
exports.NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
18262
|
-
var localVarFp = exports.NotificationsApiFp(configuration);
|
|
18263
|
-
return {
|
|
18264
18402
|
/**
|
|
18265
18403
|
*
|
|
18266
|
-
* @summary
|
|
18267
|
-
* @param {
|
|
18404
|
+
* @summary Get Manager.
|
|
18405
|
+
* @param {string} managerId
|
|
18268
18406
|
* @param {*} [options] Override http request option.
|
|
18269
18407
|
* @throws {RequiredError}
|
|
18270
18408
|
*/
|
|
18271
|
-
|
|
18272
|
-
return
|
|
18409
|
+
apiV1ManagersManagerIdGet: function (managerId, options) {
|
|
18410
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18411
|
+
var localVarAxiosArgs;
|
|
18412
|
+
return __generator(this, function (_a) {
|
|
18413
|
+
switch (_a.label) {
|
|
18414
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdGet(managerId, options)];
|
|
18415
|
+
case 1:
|
|
18416
|
+
localVarAxiosArgs = _a.sent();
|
|
18417
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18418
|
+
}
|
|
18419
|
+
});
|
|
18420
|
+
});
|
|
18273
18421
|
},
|
|
18274
18422
|
/**
|
|
18275
18423
|
*
|
|
18276
|
-
* @summary
|
|
18277
|
-
* @param {
|
|
18278
|
-
* @param {
|
|
18424
|
+
* @summary Update Manager.
|
|
18425
|
+
* @param {string} managerId
|
|
18426
|
+
* @param {UpdateManagerCommand} [updateManagerCommand]
|
|
18427
|
+
* @param {*} [options] Override http request option.
|
|
18428
|
+
* @throws {RequiredError}
|
|
18429
|
+
*/
|
|
18430
|
+
apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
|
|
18431
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18432
|
+
var localVarAxiosArgs;
|
|
18433
|
+
return __generator(this, function (_a) {
|
|
18434
|
+
switch (_a.label) {
|
|
18435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options)];
|
|
18436
|
+
case 1:
|
|
18437
|
+
localVarAxiosArgs = _a.sent();
|
|
18438
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18439
|
+
}
|
|
18440
|
+
});
|
|
18441
|
+
});
|
|
18442
|
+
},
|
|
18443
|
+
/**
|
|
18444
|
+
*
|
|
18445
|
+
* @summary Create a Manager.
|
|
18446
|
+
* @param {CreateManagerCommand} [createManagerCommand]
|
|
18447
|
+
* @param {*} [options] Override http request option.
|
|
18448
|
+
* @throws {RequiredError}
|
|
18449
|
+
*/
|
|
18450
|
+
apiV1ManagersPost: function (createManagerCommand, options) {
|
|
18451
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18452
|
+
var localVarAxiosArgs;
|
|
18453
|
+
return __generator(this, function (_a) {
|
|
18454
|
+
switch (_a.label) {
|
|
18455
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ManagersPost(createManagerCommand, options)];
|
|
18456
|
+
case 1:
|
|
18457
|
+
localVarAxiosArgs = _a.sent();
|
|
18458
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18459
|
+
}
|
|
18460
|
+
});
|
|
18461
|
+
});
|
|
18462
|
+
},
|
|
18463
|
+
};
|
|
18464
|
+
};
|
|
18465
|
+
/**
|
|
18466
|
+
* ManagersApi - factory interface
|
|
18467
|
+
* @export
|
|
18468
|
+
*/
|
|
18469
|
+
exports.ManagersApiFactory = function (configuration, basePath, axios) {
|
|
18470
|
+
var localVarFp = exports.ManagersApiFp(configuration);
|
|
18471
|
+
return {
|
|
18472
|
+
/**
|
|
18473
|
+
*
|
|
18474
|
+
* @summary Get all Managers.
|
|
18475
|
+
* @param {string} [hospitalId]
|
|
18476
|
+
* @param {string} [id]
|
|
18477
|
+
* @param {string} [fullname]
|
|
18478
|
+
* @param {string} [email]
|
|
18479
|
+
* @param {Gender} [gender]
|
|
18480
|
+
* @param {Date} [dateOfBirth]
|
|
18481
|
+
* @param {Date} [created]
|
|
18279
18482
|
* @param {number} [page]
|
|
18280
18483
|
* @param {number} [limit]
|
|
18281
18484
|
* @param {Date} [lastRetrieved]
|
|
18282
18485
|
* @param {*} [options] Override http request option.
|
|
18283
18486
|
* @throws {RequiredError}
|
|
18284
18487
|
*/
|
|
18285
|
-
|
|
18286
|
-
return localVarFp.
|
|
18488
|
+
apiV1ManagersGet: function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
|
|
18489
|
+
return localVarFp.apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18490
|
+
},
|
|
18491
|
+
/**
|
|
18492
|
+
*
|
|
18493
|
+
* @summary Delete Manager.
|
|
18494
|
+
* @param {string} managerId
|
|
18495
|
+
* @param {*} [options] Override http request option.
|
|
18496
|
+
* @throws {RequiredError}
|
|
18497
|
+
*/
|
|
18498
|
+
apiV1ManagersManagerIdDelete: function (managerId, options) {
|
|
18499
|
+
return localVarFp.apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(axios, basePath); });
|
|
18500
|
+
},
|
|
18501
|
+
/**
|
|
18502
|
+
*
|
|
18503
|
+
* @summary Get Manager.
|
|
18504
|
+
* @param {string} managerId
|
|
18505
|
+
* @param {*} [options] Override http request option.
|
|
18506
|
+
* @throws {RequiredError}
|
|
18507
|
+
*/
|
|
18508
|
+
apiV1ManagersManagerIdGet: function (managerId, options) {
|
|
18509
|
+
return localVarFp.apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(axios, basePath); });
|
|
18510
|
+
},
|
|
18511
|
+
/**
|
|
18512
|
+
*
|
|
18513
|
+
* @summary Update Manager.
|
|
18514
|
+
* @param {string} managerId
|
|
18515
|
+
* @param {UpdateManagerCommand} [updateManagerCommand]
|
|
18516
|
+
* @param {*} [options] Override http request option.
|
|
18517
|
+
* @throws {RequiredError}
|
|
18518
|
+
*/
|
|
18519
|
+
apiV1ManagersManagerIdPut: function (managerId, updateManagerCommand, options) {
|
|
18520
|
+
return localVarFp.apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
18521
|
+
},
|
|
18522
|
+
/**
|
|
18523
|
+
*
|
|
18524
|
+
* @summary Create a Manager.
|
|
18525
|
+
* @param {CreateManagerCommand} [createManagerCommand]
|
|
18526
|
+
* @param {*} [options] Override http request option.
|
|
18527
|
+
* @throws {RequiredError}
|
|
18528
|
+
*/
|
|
18529
|
+
apiV1ManagersPost: function (createManagerCommand, options) {
|
|
18530
|
+
return localVarFp.apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
18287
18531
|
},
|
|
18288
18532
|
};
|
|
18289
18533
|
};
|
|
18290
18534
|
/**
|
|
18291
|
-
*
|
|
18535
|
+
* ManagersApi - object-oriented interface
|
|
18292
18536
|
* @export
|
|
18293
|
-
* @class
|
|
18537
|
+
* @class ManagersApi
|
|
18294
18538
|
* @extends {BaseAPI}
|
|
18295
18539
|
*/
|
|
18296
|
-
var
|
|
18297
|
-
__extends(
|
|
18298
|
-
function
|
|
18540
|
+
var ManagersApi = /** @class */ (function (_super) {
|
|
18541
|
+
__extends(ManagersApi, _super);
|
|
18542
|
+
function ManagersApi() {
|
|
18299
18543
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
18300
18544
|
}
|
|
18301
18545
|
/**
|
|
18302
18546
|
*
|
|
18303
|
-
* @summary
|
|
18304
|
-
* @param {
|
|
18547
|
+
* @summary Get all Managers.
|
|
18548
|
+
* @param {string} [hospitalId]
|
|
18549
|
+
* @param {string} [id]
|
|
18550
|
+
* @param {string} [fullname]
|
|
18551
|
+
* @param {string} [email]
|
|
18552
|
+
* @param {Gender} [gender]
|
|
18553
|
+
* @param {Date} [dateOfBirth]
|
|
18554
|
+
* @param {Date} [created]
|
|
18555
|
+
* @param {number} [page]
|
|
18556
|
+
* @param {number} [limit]
|
|
18557
|
+
* @param {Date} [lastRetrieved]
|
|
18305
18558
|
* @param {*} [options] Override http request option.
|
|
18306
18559
|
* @throws {RequiredError}
|
|
18307
|
-
* @memberof
|
|
18560
|
+
* @memberof ManagersApi
|
|
18308
18561
|
*/
|
|
18309
|
-
|
|
18562
|
+
ManagersApi.prototype.apiV1ManagersGet = function (hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options) {
|
|
18310
18563
|
var _this = this;
|
|
18311
|
-
return exports.
|
|
18564
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18312
18565
|
};
|
|
18313
18566
|
/**
|
|
18314
18567
|
*
|
|
18315
|
-
* @summary
|
|
18316
|
-
* @param {
|
|
18317
|
-
* @param {boolean} [unreadCountOnly]
|
|
18318
|
-
* @param {number} [page]
|
|
18319
|
-
* @param {number} [limit]
|
|
18320
|
-
* @param {Date} [lastRetrieved]
|
|
18568
|
+
* @summary Delete Manager.
|
|
18569
|
+
* @param {string} managerId
|
|
18321
18570
|
* @param {*} [options] Override http request option.
|
|
18322
18571
|
* @throws {RequiredError}
|
|
18323
|
-
* @memberof
|
|
18572
|
+
* @memberof ManagersApi
|
|
18324
18573
|
*/
|
|
18325
|
-
|
|
18574
|
+
ManagersApi.prototype.apiV1ManagersManagerIdDelete = function (managerId, options) {
|
|
18326
18575
|
var _this = this;
|
|
18327
|
-
return exports.
|
|
18576
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdDelete(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18328
18577
|
};
|
|
18329
|
-
|
|
18578
|
+
/**
|
|
18579
|
+
*
|
|
18580
|
+
* @summary Get Manager.
|
|
18581
|
+
* @param {string} managerId
|
|
18582
|
+
* @param {*} [options] Override http request option.
|
|
18583
|
+
* @throws {RequiredError}
|
|
18584
|
+
* @memberof ManagersApi
|
|
18585
|
+
*/
|
|
18586
|
+
ManagersApi.prototype.apiV1ManagersManagerIdGet = function (managerId, options) {
|
|
18587
|
+
var _this = this;
|
|
18588
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdGet(managerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18589
|
+
};
|
|
18590
|
+
/**
|
|
18591
|
+
*
|
|
18592
|
+
* @summary Update Manager.
|
|
18593
|
+
* @param {string} managerId
|
|
18594
|
+
* @param {UpdateManagerCommand} [updateManagerCommand]
|
|
18595
|
+
* @param {*} [options] Override http request option.
|
|
18596
|
+
* @throws {RequiredError}
|
|
18597
|
+
* @memberof ManagersApi
|
|
18598
|
+
*/
|
|
18599
|
+
ManagersApi.prototype.apiV1ManagersManagerIdPut = function (managerId, updateManagerCommand, options) {
|
|
18600
|
+
var _this = this;
|
|
18601
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersManagerIdPut(managerId, updateManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18602
|
+
};
|
|
18603
|
+
/**
|
|
18604
|
+
*
|
|
18605
|
+
* @summary Create a Manager.
|
|
18606
|
+
* @param {CreateManagerCommand} [createManagerCommand]
|
|
18607
|
+
* @param {*} [options] Override http request option.
|
|
18608
|
+
* @throws {RequiredError}
|
|
18609
|
+
* @memberof ManagersApi
|
|
18610
|
+
*/
|
|
18611
|
+
ManagersApi.prototype.apiV1ManagersPost = function (createManagerCommand, options) {
|
|
18612
|
+
var _this = this;
|
|
18613
|
+
return exports.ManagersApiFp(this.configuration).apiV1ManagersPost(createManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18614
|
+
};
|
|
18615
|
+
return ManagersApi;
|
|
18330
18616
|
}(base_1.BaseAPI));
|
|
18331
|
-
exports.
|
|
18617
|
+
exports.ManagersApi = ManagersApi;
|
|
18618
|
+
/**
|
|
18619
|
+
* NotificationsApi - axios parameter creator
|
|
18620
|
+
* @export
|
|
18621
|
+
*/
|
|
18622
|
+
exports.NotificationsApiAxiosParamCreator = function (configuration) {
|
|
18623
|
+
var _this = this;
|
|
18624
|
+
return {
|
|
18625
|
+
/**
|
|
18626
|
+
*
|
|
18627
|
+
* @summary Check notification.
|
|
18628
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
18629
|
+
* @param {*} [options] Override http request option.
|
|
18630
|
+
* @throws {RequiredError}
|
|
18631
|
+
*/
|
|
18632
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
18633
|
+
if (options === void 0) { options = {}; }
|
|
18634
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18635
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18636
|
+
return __generator(this, function (_a) {
|
|
18637
|
+
switch (_a.label) {
|
|
18638
|
+
case 0:
|
|
18639
|
+
localVarPath = "/api/v1/notifications/check";
|
|
18640
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18641
|
+
if (configuration) {
|
|
18642
|
+
baseOptions = configuration.baseOptions;
|
|
18643
|
+
}
|
|
18644
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
18645
|
+
localVarHeaderParameter = {};
|
|
18646
|
+
localVarQueryParameter = {};
|
|
18647
|
+
// authentication oauth2 required
|
|
18648
|
+
// oauth required
|
|
18649
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18650
|
+
case 1:
|
|
18651
|
+
// authentication oauth2 required
|
|
18652
|
+
// oauth required
|
|
18653
|
+
_a.sent();
|
|
18654
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18655
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18656
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18657
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18658
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(checkNotificationsCommand, localVarRequestOptions, configuration);
|
|
18659
|
+
return [2 /*return*/, {
|
|
18660
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18661
|
+
options: localVarRequestOptions,
|
|
18662
|
+
}];
|
|
18663
|
+
}
|
|
18664
|
+
});
|
|
18665
|
+
});
|
|
18666
|
+
},
|
|
18667
|
+
/**
|
|
18668
|
+
*
|
|
18669
|
+
* @summary Get all notifications.
|
|
18670
|
+
* @param {NotificationCode} [notificationCode]
|
|
18671
|
+
* @param {boolean} [unreadCountOnly]
|
|
18672
|
+
* @param {number} [page]
|
|
18673
|
+
* @param {number} [limit]
|
|
18674
|
+
* @param {Date} [lastRetrieved]
|
|
18675
|
+
* @param {*} [options] Override http request option.
|
|
18676
|
+
* @throws {RequiredError}
|
|
18677
|
+
*/
|
|
18678
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
18679
|
+
if (options === void 0) { options = {}; }
|
|
18680
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18681
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18682
|
+
return __generator(this, function (_a) {
|
|
18683
|
+
switch (_a.label) {
|
|
18684
|
+
case 0:
|
|
18685
|
+
localVarPath = "/api/v1/notifications";
|
|
18686
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18687
|
+
if (configuration) {
|
|
18688
|
+
baseOptions = configuration.baseOptions;
|
|
18689
|
+
}
|
|
18690
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18691
|
+
localVarHeaderParameter = {};
|
|
18692
|
+
localVarQueryParameter = {};
|
|
18693
|
+
// authentication oauth2 required
|
|
18694
|
+
// oauth required
|
|
18695
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18696
|
+
case 1:
|
|
18697
|
+
// authentication oauth2 required
|
|
18698
|
+
// oauth required
|
|
18699
|
+
_a.sent();
|
|
18700
|
+
if (notificationCode !== undefined) {
|
|
18701
|
+
localVarQueryParameter['NotificationCode'] = notificationCode;
|
|
18702
|
+
}
|
|
18703
|
+
if (unreadCountOnly !== undefined) {
|
|
18704
|
+
localVarQueryParameter['UnreadCountOnly'] = unreadCountOnly;
|
|
18705
|
+
}
|
|
18706
|
+
if (page !== undefined) {
|
|
18707
|
+
localVarQueryParameter['page'] = page;
|
|
18708
|
+
}
|
|
18709
|
+
if (limit !== undefined) {
|
|
18710
|
+
localVarQueryParameter['limit'] = limit;
|
|
18711
|
+
}
|
|
18712
|
+
if (lastRetrieved !== undefined) {
|
|
18713
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
18714
|
+
lastRetrieved.toISOString() :
|
|
18715
|
+
lastRetrieved;
|
|
18716
|
+
}
|
|
18717
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18718
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18719
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18720
|
+
return [2 /*return*/, {
|
|
18721
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18722
|
+
options: localVarRequestOptions,
|
|
18723
|
+
}];
|
|
18724
|
+
}
|
|
18725
|
+
});
|
|
18726
|
+
});
|
|
18727
|
+
},
|
|
18728
|
+
};
|
|
18729
|
+
};
|
|
18730
|
+
/**
|
|
18731
|
+
* NotificationsApi - functional programming interface
|
|
18732
|
+
* @export
|
|
18733
|
+
*/
|
|
18734
|
+
exports.NotificationsApiFp = function (configuration) {
|
|
18735
|
+
var localVarAxiosParamCreator = exports.NotificationsApiAxiosParamCreator(configuration);
|
|
18736
|
+
return {
|
|
18737
|
+
/**
|
|
18738
|
+
*
|
|
18739
|
+
* @summary Check notification.
|
|
18740
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
18741
|
+
* @param {*} [options] Override http request option.
|
|
18742
|
+
* @throws {RequiredError}
|
|
18743
|
+
*/
|
|
18744
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
18745
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18746
|
+
var localVarAxiosArgs;
|
|
18747
|
+
return __generator(this, function (_a) {
|
|
18748
|
+
switch (_a.label) {
|
|
18749
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsCheckPost(checkNotificationsCommand, options)];
|
|
18750
|
+
case 1:
|
|
18751
|
+
localVarAxiosArgs = _a.sent();
|
|
18752
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18753
|
+
}
|
|
18754
|
+
});
|
|
18755
|
+
});
|
|
18756
|
+
},
|
|
18757
|
+
/**
|
|
18758
|
+
*
|
|
18759
|
+
* @summary Get all notifications.
|
|
18760
|
+
* @param {NotificationCode} [notificationCode]
|
|
18761
|
+
* @param {boolean} [unreadCountOnly]
|
|
18762
|
+
* @param {number} [page]
|
|
18763
|
+
* @param {number} [limit]
|
|
18764
|
+
* @param {Date} [lastRetrieved]
|
|
18765
|
+
* @param {*} [options] Override http request option.
|
|
18766
|
+
* @throws {RequiredError}
|
|
18767
|
+
*/
|
|
18768
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
18769
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
18770
|
+
var localVarAxiosArgs;
|
|
18771
|
+
return __generator(this, function (_a) {
|
|
18772
|
+
switch (_a.label) {
|
|
18773
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options)];
|
|
18774
|
+
case 1:
|
|
18775
|
+
localVarAxiosArgs = _a.sent();
|
|
18776
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
18777
|
+
}
|
|
18778
|
+
});
|
|
18779
|
+
});
|
|
18780
|
+
},
|
|
18781
|
+
};
|
|
18782
|
+
};
|
|
18783
|
+
/**
|
|
18784
|
+
* NotificationsApi - factory interface
|
|
18785
|
+
* @export
|
|
18786
|
+
*/
|
|
18787
|
+
exports.NotificationsApiFactory = function (configuration, basePath, axios) {
|
|
18788
|
+
var localVarFp = exports.NotificationsApiFp(configuration);
|
|
18789
|
+
return {
|
|
18790
|
+
/**
|
|
18791
|
+
*
|
|
18792
|
+
* @summary Check notification.
|
|
18793
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
18794
|
+
* @param {*} [options] Override http request option.
|
|
18795
|
+
* @throws {RequiredError}
|
|
18796
|
+
*/
|
|
18797
|
+
apiV1NotificationsCheckPost: function (checkNotificationsCommand, options) {
|
|
18798
|
+
return localVarFp.apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
18799
|
+
},
|
|
18800
|
+
/**
|
|
18801
|
+
*
|
|
18802
|
+
* @summary Get all notifications.
|
|
18803
|
+
* @param {NotificationCode} [notificationCode]
|
|
18804
|
+
* @param {boolean} [unreadCountOnly]
|
|
18805
|
+
* @param {number} [page]
|
|
18806
|
+
* @param {number} [limit]
|
|
18807
|
+
* @param {Date} [lastRetrieved]
|
|
18808
|
+
* @param {*} [options] Override http request option.
|
|
18809
|
+
* @throws {RequiredError}
|
|
18810
|
+
*/
|
|
18811
|
+
apiV1NotificationsGet: function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
18812
|
+
return localVarFp.apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
18813
|
+
},
|
|
18814
|
+
};
|
|
18815
|
+
};
|
|
18816
|
+
/**
|
|
18817
|
+
* NotificationsApi - object-oriented interface
|
|
18818
|
+
* @export
|
|
18819
|
+
* @class NotificationsApi
|
|
18820
|
+
* @extends {BaseAPI}
|
|
18821
|
+
*/
|
|
18822
|
+
var NotificationsApi = /** @class */ (function (_super) {
|
|
18823
|
+
__extends(NotificationsApi, _super);
|
|
18824
|
+
function NotificationsApi() {
|
|
18825
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
18826
|
+
}
|
|
18827
|
+
/**
|
|
18828
|
+
*
|
|
18829
|
+
* @summary Check notification.
|
|
18830
|
+
* @param {CheckNotificationsCommand} [checkNotificationsCommand]
|
|
18831
|
+
* @param {*} [options] Override http request option.
|
|
18832
|
+
* @throws {RequiredError}
|
|
18833
|
+
* @memberof NotificationsApi
|
|
18834
|
+
*/
|
|
18835
|
+
NotificationsApi.prototype.apiV1NotificationsCheckPost = function (checkNotificationsCommand, options) {
|
|
18836
|
+
var _this = this;
|
|
18837
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsCheckPost(checkNotificationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18838
|
+
};
|
|
18839
|
+
/**
|
|
18840
|
+
*
|
|
18841
|
+
* @summary Get all notifications.
|
|
18842
|
+
* @param {NotificationCode} [notificationCode]
|
|
18843
|
+
* @param {boolean} [unreadCountOnly]
|
|
18844
|
+
* @param {number} [page]
|
|
18845
|
+
* @param {number} [limit]
|
|
18846
|
+
* @param {Date} [lastRetrieved]
|
|
18847
|
+
* @param {*} [options] Override http request option.
|
|
18848
|
+
* @throws {RequiredError}
|
|
18849
|
+
* @memberof NotificationsApi
|
|
18850
|
+
*/
|
|
18851
|
+
NotificationsApi.prototype.apiV1NotificationsGet = function (notificationCode, unreadCountOnly, page, limit, lastRetrieved, options) {
|
|
18852
|
+
var _this = this;
|
|
18853
|
+
return exports.NotificationsApiFp(this.configuration).apiV1NotificationsGet(notificationCode, unreadCountOnly, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18854
|
+
};
|
|
18855
|
+
return NotificationsApi;
|
|
18856
|
+
}(base_1.BaseAPI));
|
|
18857
|
+
exports.NotificationsApi = NotificationsApi;
|
|
18858
|
+
/**
|
|
18859
|
+
* PlansApi - axios parameter creator
|
|
18860
|
+
* @export
|
|
18861
|
+
*/
|
|
18862
|
+
exports.PlansApiAxiosParamCreator = function (configuration) {
|
|
18863
|
+
var _this = this;
|
|
18864
|
+
return {
|
|
18865
|
+
/**
|
|
18866
|
+
*
|
|
18867
|
+
* @summary Get all plans.
|
|
18868
|
+
* @param {string} [id]
|
|
18869
|
+
* @param {string} [name]
|
|
18870
|
+
* @param {number} [page]
|
|
18871
|
+
* @param {number} [limit]
|
|
18872
|
+
* @param {Date} [lastRetrieved]
|
|
18873
|
+
* @param {*} [options] Override http request option.
|
|
18874
|
+
* @throws {RequiredError}
|
|
18875
|
+
*/
|
|
18876
|
+
apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
|
|
18877
|
+
if (options === void 0) { options = {}; }
|
|
18878
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18879
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18880
|
+
return __generator(this, function (_a) {
|
|
18881
|
+
switch (_a.label) {
|
|
18882
|
+
case 0:
|
|
18883
|
+
localVarPath = "/api/v1/plans";
|
|
18884
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18885
|
+
if (configuration) {
|
|
18886
|
+
baseOptions = configuration.baseOptions;
|
|
18887
|
+
}
|
|
18888
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18889
|
+
localVarHeaderParameter = {};
|
|
18890
|
+
localVarQueryParameter = {};
|
|
18891
|
+
// authentication oauth2 required
|
|
18892
|
+
// oauth required
|
|
18893
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18894
|
+
case 1:
|
|
18895
|
+
// authentication oauth2 required
|
|
18896
|
+
// oauth required
|
|
18897
|
+
_a.sent();
|
|
18898
|
+
if (id !== undefined) {
|
|
18899
|
+
localVarQueryParameter['Id'] = id;
|
|
18900
|
+
}
|
|
18901
|
+
if (name !== undefined) {
|
|
18902
|
+
localVarQueryParameter['Name'] = name;
|
|
18903
|
+
}
|
|
18904
|
+
if (page !== undefined) {
|
|
18905
|
+
localVarQueryParameter['page'] = page;
|
|
18906
|
+
}
|
|
18907
|
+
if (limit !== undefined) {
|
|
18908
|
+
localVarQueryParameter['limit'] = limit;
|
|
18909
|
+
}
|
|
18910
|
+
if (lastRetrieved !== undefined) {
|
|
18911
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
18912
|
+
lastRetrieved.toISOString() :
|
|
18913
|
+
lastRetrieved;
|
|
18914
|
+
}
|
|
18915
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18916
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18917
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18918
|
+
return [2 /*return*/, {
|
|
18919
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18920
|
+
options: localVarRequestOptions,
|
|
18921
|
+
}];
|
|
18922
|
+
}
|
|
18923
|
+
});
|
|
18924
|
+
});
|
|
18925
|
+
},
|
|
18926
|
+
/**
|
|
18927
|
+
*
|
|
18928
|
+
* @summary Delete plan.
|
|
18929
|
+
* @param {string} planId
|
|
18930
|
+
* @param {*} [options] Override http request option.
|
|
18931
|
+
* @throws {RequiredError}
|
|
18932
|
+
*/
|
|
18933
|
+
apiV1PlansPlanIdDelete: function (planId, options) {
|
|
18934
|
+
if (options === void 0) { options = {}; }
|
|
18935
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18936
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18937
|
+
return __generator(this, function (_a) {
|
|
18938
|
+
switch (_a.label) {
|
|
18939
|
+
case 0:
|
|
18940
|
+
// verify required parameter 'planId' is not null or undefined
|
|
18941
|
+
common_1.assertParamExists('apiV1PlansPlanIdDelete', 'planId', planId);
|
|
18942
|
+
localVarPath = "/api/v1/plans/{planId}"
|
|
18943
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
|
|
18944
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18945
|
+
if (configuration) {
|
|
18946
|
+
baseOptions = configuration.baseOptions;
|
|
18947
|
+
}
|
|
18948
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
18949
|
+
localVarHeaderParameter = {};
|
|
18950
|
+
localVarQueryParameter = {};
|
|
18951
|
+
// authentication oauth2 required
|
|
18952
|
+
// oauth required
|
|
18953
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18954
|
+
case 1:
|
|
18955
|
+
// authentication oauth2 required
|
|
18956
|
+
// oauth required
|
|
18957
|
+
_a.sent();
|
|
18958
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18959
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18960
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
18961
|
+
return [2 /*return*/, {
|
|
18962
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
18963
|
+
options: localVarRequestOptions,
|
|
18964
|
+
}];
|
|
18965
|
+
}
|
|
18966
|
+
});
|
|
18967
|
+
});
|
|
18968
|
+
},
|
|
18969
|
+
/**
|
|
18970
|
+
*
|
|
18971
|
+
* @summary Get plan.
|
|
18972
|
+
* @param {string} planId
|
|
18973
|
+
* @param {*} [options] Override http request option.
|
|
18974
|
+
* @throws {RequiredError}
|
|
18975
|
+
*/
|
|
18976
|
+
apiV1PlansPlanIdGet: function (planId, options) {
|
|
18977
|
+
if (options === void 0) { options = {}; }
|
|
18978
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
18979
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
18980
|
+
return __generator(this, function (_a) {
|
|
18981
|
+
switch (_a.label) {
|
|
18982
|
+
case 0:
|
|
18983
|
+
// verify required parameter 'planId' is not null or undefined
|
|
18984
|
+
common_1.assertParamExists('apiV1PlansPlanIdGet', 'planId', planId);
|
|
18985
|
+
localVarPath = "/api/v1/plans/{planId}"
|
|
18986
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
|
|
18987
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
18988
|
+
if (configuration) {
|
|
18989
|
+
baseOptions = configuration.baseOptions;
|
|
18990
|
+
}
|
|
18991
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
18992
|
+
localVarHeaderParameter = {};
|
|
18993
|
+
localVarQueryParameter = {};
|
|
18994
|
+
// authentication oauth2 required
|
|
18995
|
+
// oauth required
|
|
18996
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
18997
|
+
case 1:
|
|
18998
|
+
// authentication oauth2 required
|
|
18999
|
+
// oauth required
|
|
19000
|
+
_a.sent();
|
|
19001
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19002
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19003
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19004
|
+
return [2 /*return*/, {
|
|
19005
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19006
|
+
options: localVarRequestOptions,
|
|
19007
|
+
}];
|
|
19008
|
+
}
|
|
19009
|
+
});
|
|
19010
|
+
});
|
|
19011
|
+
},
|
|
19012
|
+
/**
|
|
19013
|
+
*
|
|
19014
|
+
* @summary Get all plan hospital.
|
|
19015
|
+
* @param {string} planId
|
|
19016
|
+
* @param {number} [page]
|
|
19017
|
+
* @param {number} [limit]
|
|
19018
|
+
* @param {Date} [lastRetrieved]
|
|
19019
|
+
* @param {*} [options] Override http request option.
|
|
19020
|
+
* @throws {RequiredError}
|
|
19021
|
+
*/
|
|
19022
|
+
apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
|
|
19023
|
+
if (options === void 0) { options = {}; }
|
|
19024
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19025
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19026
|
+
return __generator(this, function (_a) {
|
|
19027
|
+
switch (_a.label) {
|
|
19028
|
+
case 0:
|
|
19029
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19030
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsGet', 'planId', planId);
|
|
19031
|
+
localVarPath = "/api/v1/plans/{planId}/hospitals"
|
|
19032
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
|
|
19033
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19034
|
+
if (configuration) {
|
|
19035
|
+
baseOptions = configuration.baseOptions;
|
|
19036
|
+
}
|
|
19037
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19038
|
+
localVarHeaderParameter = {};
|
|
19039
|
+
localVarQueryParameter = {};
|
|
19040
|
+
// authentication oauth2 required
|
|
19041
|
+
// oauth required
|
|
19042
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19043
|
+
case 1:
|
|
19044
|
+
// authentication oauth2 required
|
|
19045
|
+
// oauth required
|
|
19046
|
+
_a.sent();
|
|
19047
|
+
if (page !== undefined) {
|
|
19048
|
+
localVarQueryParameter['page'] = page;
|
|
19049
|
+
}
|
|
19050
|
+
if (limit !== undefined) {
|
|
19051
|
+
localVarQueryParameter['limit'] = limit;
|
|
19052
|
+
}
|
|
19053
|
+
if (lastRetrieved !== undefined) {
|
|
19054
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
19055
|
+
lastRetrieved.toISOString() :
|
|
19056
|
+
lastRetrieved;
|
|
19057
|
+
}
|
|
19058
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19059
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19060
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19061
|
+
return [2 /*return*/, {
|
|
19062
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19063
|
+
options: localVarRequestOptions,
|
|
19064
|
+
}];
|
|
19065
|
+
}
|
|
19066
|
+
});
|
|
19067
|
+
});
|
|
19068
|
+
},
|
|
19069
|
+
/**
|
|
19070
|
+
*
|
|
19071
|
+
* @summary Delete plan hospital.
|
|
19072
|
+
* @param {string} planId
|
|
19073
|
+
* @param {string} hospitalId
|
|
19074
|
+
* @param {*} [options] Override http request option.
|
|
19075
|
+
* @throws {RequiredError}
|
|
19076
|
+
*/
|
|
19077
|
+
apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
|
|
19078
|
+
if (options === void 0) { options = {}; }
|
|
19079
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19080
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19081
|
+
return __generator(this, function (_a) {
|
|
19082
|
+
switch (_a.label) {
|
|
19083
|
+
case 0:
|
|
19084
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19085
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'planId', planId);
|
|
19086
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19087
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdDelete', 'hospitalId', hospitalId);
|
|
19088
|
+
localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
|
|
19089
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
|
|
19090
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
19091
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19092
|
+
if (configuration) {
|
|
19093
|
+
baseOptions = configuration.baseOptions;
|
|
19094
|
+
}
|
|
19095
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
19096
|
+
localVarHeaderParameter = {};
|
|
19097
|
+
localVarQueryParameter = {};
|
|
19098
|
+
// authentication oauth2 required
|
|
19099
|
+
// oauth required
|
|
19100
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19101
|
+
case 1:
|
|
19102
|
+
// authentication oauth2 required
|
|
19103
|
+
// oauth required
|
|
19104
|
+
_a.sent();
|
|
19105
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19106
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19107
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19108
|
+
return [2 /*return*/, {
|
|
19109
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19110
|
+
options: localVarRequestOptions,
|
|
19111
|
+
}];
|
|
19112
|
+
}
|
|
19113
|
+
});
|
|
19114
|
+
});
|
|
19115
|
+
},
|
|
19116
|
+
/**
|
|
19117
|
+
*
|
|
19118
|
+
* @summary Get plan hospital.
|
|
19119
|
+
* @param {string} planId
|
|
19120
|
+
* @param {string} hospitalId
|
|
19121
|
+
* @param {*} [options] Override http request option.
|
|
19122
|
+
* @throws {RequiredError}
|
|
19123
|
+
*/
|
|
19124
|
+
apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
|
|
19125
|
+
if (options === void 0) { options = {}; }
|
|
19126
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19127
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19128
|
+
return __generator(this, function (_a) {
|
|
19129
|
+
switch (_a.label) {
|
|
19130
|
+
case 0:
|
|
19131
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19132
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'planId', planId);
|
|
19133
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19134
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdGet', 'hospitalId', hospitalId);
|
|
19135
|
+
localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
|
|
19136
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
|
|
19137
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
19138
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19139
|
+
if (configuration) {
|
|
19140
|
+
baseOptions = configuration.baseOptions;
|
|
19141
|
+
}
|
|
19142
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19143
|
+
localVarHeaderParameter = {};
|
|
19144
|
+
localVarQueryParameter = {};
|
|
19145
|
+
// authentication oauth2 required
|
|
19146
|
+
// oauth required
|
|
19147
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19148
|
+
case 1:
|
|
19149
|
+
// authentication oauth2 required
|
|
19150
|
+
// oauth required
|
|
19151
|
+
_a.sent();
|
|
19152
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19153
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19154
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19155
|
+
return [2 /*return*/, {
|
|
19156
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19157
|
+
options: localVarRequestOptions,
|
|
19158
|
+
}];
|
|
19159
|
+
}
|
|
19160
|
+
});
|
|
19161
|
+
});
|
|
19162
|
+
},
|
|
19163
|
+
/**
|
|
19164
|
+
*
|
|
19165
|
+
* @summary Update plan hospital.
|
|
19166
|
+
* @param {string} planId
|
|
19167
|
+
* @param {string} hospitalId
|
|
19168
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
19169
|
+
* @param {*} [options] Override http request option.
|
|
19170
|
+
* @throws {RequiredError}
|
|
19171
|
+
*/
|
|
19172
|
+
apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
|
|
19173
|
+
if (options === void 0) { options = {}; }
|
|
19174
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19175
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19176
|
+
return __generator(this, function (_a) {
|
|
19177
|
+
switch (_a.label) {
|
|
19178
|
+
case 0:
|
|
19179
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19180
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'planId', planId);
|
|
19181
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
19182
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsHospitalIdPut', 'hospitalId', hospitalId);
|
|
19183
|
+
localVarPath = "/api/v1/plans/{planId}/hospitals/{hospitalId}"
|
|
19184
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)))
|
|
19185
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
19186
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19187
|
+
if (configuration) {
|
|
19188
|
+
baseOptions = configuration.baseOptions;
|
|
19189
|
+
}
|
|
19190
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
19191
|
+
localVarHeaderParameter = {};
|
|
19192
|
+
localVarQueryParameter = {};
|
|
19193
|
+
// authentication oauth2 required
|
|
19194
|
+
// oauth required
|
|
19195
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19196
|
+
case 1:
|
|
19197
|
+
// authentication oauth2 required
|
|
19198
|
+
// oauth required
|
|
19199
|
+
_a.sent();
|
|
19200
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19201
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19202
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19203
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19204
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanHospitalCommand, localVarRequestOptions, configuration);
|
|
19205
|
+
return [2 /*return*/, {
|
|
19206
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19207
|
+
options: localVarRequestOptions,
|
|
19208
|
+
}];
|
|
19209
|
+
}
|
|
19210
|
+
});
|
|
19211
|
+
});
|
|
19212
|
+
},
|
|
19213
|
+
/**
|
|
19214
|
+
*
|
|
19215
|
+
* @summary Create plan hospital.
|
|
19216
|
+
* @param {string} planId
|
|
19217
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
19218
|
+
* @param {*} [options] Override http request option.
|
|
19219
|
+
* @throws {RequiredError}
|
|
19220
|
+
*/
|
|
19221
|
+
apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
|
|
19222
|
+
if (options === void 0) { options = {}; }
|
|
19223
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19224
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19225
|
+
return __generator(this, function (_a) {
|
|
19226
|
+
switch (_a.label) {
|
|
19227
|
+
case 0:
|
|
19228
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19229
|
+
common_1.assertParamExists('apiV1PlansPlanIdHospitalsPost', 'planId', planId);
|
|
19230
|
+
localVarPath = "/api/v1/plans/{planId}/hospitals"
|
|
19231
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
|
|
19232
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19233
|
+
if (configuration) {
|
|
19234
|
+
baseOptions = configuration.baseOptions;
|
|
19235
|
+
}
|
|
19236
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
19237
|
+
localVarHeaderParameter = {};
|
|
19238
|
+
localVarQueryParameter = {};
|
|
19239
|
+
// authentication oauth2 required
|
|
19240
|
+
// oauth required
|
|
19241
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19242
|
+
case 1:
|
|
19243
|
+
// authentication oauth2 required
|
|
19244
|
+
// oauth required
|
|
19245
|
+
_a.sent();
|
|
19246
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19247
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19248
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19249
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19250
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanHospitalCommand, localVarRequestOptions, configuration);
|
|
19251
|
+
return [2 /*return*/, {
|
|
19252
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19253
|
+
options: localVarRequestOptions,
|
|
19254
|
+
}];
|
|
19255
|
+
}
|
|
19256
|
+
});
|
|
19257
|
+
});
|
|
19258
|
+
},
|
|
19259
|
+
/**
|
|
19260
|
+
*
|
|
19261
|
+
* @summary Update plan.
|
|
19262
|
+
* @param {string} planId
|
|
19263
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
19264
|
+
* @param {*} [options] Override http request option.
|
|
19265
|
+
* @throws {RequiredError}
|
|
19266
|
+
*/
|
|
19267
|
+
apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
|
|
19268
|
+
if (options === void 0) { options = {}; }
|
|
19269
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19270
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19271
|
+
return __generator(this, function (_a) {
|
|
19272
|
+
switch (_a.label) {
|
|
19273
|
+
case 0:
|
|
19274
|
+
// verify required parameter 'planId' is not null or undefined
|
|
19275
|
+
common_1.assertParamExists('apiV1PlansPlanIdPut', 'planId', planId);
|
|
19276
|
+
localVarPath = "/api/v1/plans/{planId}"
|
|
19277
|
+
.replace("{" + "planId" + "}", encodeURIComponent(String(planId)));
|
|
19278
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19279
|
+
if (configuration) {
|
|
19280
|
+
baseOptions = configuration.baseOptions;
|
|
19281
|
+
}
|
|
19282
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
19283
|
+
localVarHeaderParameter = {};
|
|
19284
|
+
localVarQueryParameter = {};
|
|
19285
|
+
// authentication oauth2 required
|
|
19286
|
+
// oauth required
|
|
19287
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19288
|
+
case 1:
|
|
19289
|
+
// authentication oauth2 required
|
|
19290
|
+
// oauth required
|
|
19291
|
+
_a.sent();
|
|
19292
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19293
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19294
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19295
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19296
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updatePlanCommand, localVarRequestOptions, configuration);
|
|
19297
|
+
return [2 /*return*/, {
|
|
19298
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19299
|
+
options: localVarRequestOptions,
|
|
19300
|
+
}];
|
|
19301
|
+
}
|
|
19302
|
+
});
|
|
19303
|
+
});
|
|
19304
|
+
},
|
|
19305
|
+
/**
|
|
19306
|
+
*
|
|
19307
|
+
* @summary Create a plan.
|
|
19308
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
19309
|
+
* @param {*} [options] Override http request option.
|
|
19310
|
+
* @throws {RequiredError}
|
|
19311
|
+
*/
|
|
19312
|
+
apiV1PlansPost: function (createPlanCommand, options) {
|
|
19313
|
+
if (options === void 0) { options = {}; }
|
|
19314
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19315
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19316
|
+
return __generator(this, function (_a) {
|
|
19317
|
+
switch (_a.label) {
|
|
19318
|
+
case 0:
|
|
19319
|
+
localVarPath = "/api/v1/plans";
|
|
19320
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19321
|
+
if (configuration) {
|
|
19322
|
+
baseOptions = configuration.baseOptions;
|
|
19323
|
+
}
|
|
19324
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
19325
|
+
localVarHeaderParameter = {};
|
|
19326
|
+
localVarQueryParameter = {};
|
|
19327
|
+
// authentication oauth2 required
|
|
19328
|
+
// oauth required
|
|
19329
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19330
|
+
case 1:
|
|
19331
|
+
// authentication oauth2 required
|
|
19332
|
+
// oauth required
|
|
19333
|
+
_a.sent();
|
|
19334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19335
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19336
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19337
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19338
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createPlanCommand, localVarRequestOptions, configuration);
|
|
19339
|
+
return [2 /*return*/, {
|
|
19340
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19341
|
+
options: localVarRequestOptions,
|
|
19342
|
+
}];
|
|
19343
|
+
}
|
|
19344
|
+
});
|
|
19345
|
+
});
|
|
19346
|
+
},
|
|
19347
|
+
};
|
|
19348
|
+
};
|
|
19349
|
+
/**
|
|
19350
|
+
* PlansApi - functional programming interface
|
|
19351
|
+
* @export
|
|
19352
|
+
*/
|
|
19353
|
+
exports.PlansApiFp = function (configuration) {
|
|
19354
|
+
var localVarAxiosParamCreator = exports.PlansApiAxiosParamCreator(configuration);
|
|
19355
|
+
return {
|
|
19356
|
+
/**
|
|
19357
|
+
*
|
|
19358
|
+
* @summary Get all plans.
|
|
19359
|
+
* @param {string} [id]
|
|
19360
|
+
* @param {string} [name]
|
|
19361
|
+
* @param {number} [page]
|
|
19362
|
+
* @param {number} [limit]
|
|
19363
|
+
* @param {Date} [lastRetrieved]
|
|
19364
|
+
* @param {*} [options] Override http request option.
|
|
19365
|
+
* @throws {RequiredError}
|
|
19366
|
+
*/
|
|
19367
|
+
apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
|
|
19368
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19369
|
+
var localVarAxiosArgs;
|
|
19370
|
+
return __generator(this, function (_a) {
|
|
19371
|
+
switch (_a.label) {
|
|
19372
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansGet(id, name, page, limit, lastRetrieved, options)];
|
|
19373
|
+
case 1:
|
|
19374
|
+
localVarAxiosArgs = _a.sent();
|
|
19375
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19376
|
+
}
|
|
19377
|
+
});
|
|
19378
|
+
});
|
|
19379
|
+
},
|
|
19380
|
+
/**
|
|
19381
|
+
*
|
|
19382
|
+
* @summary Delete plan.
|
|
19383
|
+
* @param {string} planId
|
|
19384
|
+
* @param {*} [options] Override http request option.
|
|
19385
|
+
* @throws {RequiredError}
|
|
19386
|
+
*/
|
|
19387
|
+
apiV1PlansPlanIdDelete: function (planId, options) {
|
|
19388
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19389
|
+
var localVarAxiosArgs;
|
|
19390
|
+
return __generator(this, function (_a) {
|
|
19391
|
+
switch (_a.label) {
|
|
19392
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdDelete(planId, options)];
|
|
19393
|
+
case 1:
|
|
19394
|
+
localVarAxiosArgs = _a.sent();
|
|
19395
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19396
|
+
}
|
|
19397
|
+
});
|
|
19398
|
+
});
|
|
19399
|
+
},
|
|
19400
|
+
/**
|
|
19401
|
+
*
|
|
19402
|
+
* @summary Get plan.
|
|
19403
|
+
* @param {string} planId
|
|
19404
|
+
* @param {*} [options] Override http request option.
|
|
19405
|
+
* @throws {RequiredError}
|
|
19406
|
+
*/
|
|
19407
|
+
apiV1PlansPlanIdGet: function (planId, options) {
|
|
19408
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19409
|
+
var localVarAxiosArgs;
|
|
19410
|
+
return __generator(this, function (_a) {
|
|
19411
|
+
switch (_a.label) {
|
|
19412
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdGet(planId, options)];
|
|
19413
|
+
case 1:
|
|
19414
|
+
localVarAxiosArgs = _a.sent();
|
|
19415
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19416
|
+
}
|
|
19417
|
+
});
|
|
19418
|
+
});
|
|
19419
|
+
},
|
|
19420
|
+
/**
|
|
19421
|
+
*
|
|
19422
|
+
* @summary Get all plan hospital.
|
|
19423
|
+
* @param {string} planId
|
|
19424
|
+
* @param {number} [page]
|
|
19425
|
+
* @param {number} [limit]
|
|
19426
|
+
* @param {Date} [lastRetrieved]
|
|
19427
|
+
* @param {*} [options] Override http request option.
|
|
19428
|
+
* @throws {RequiredError}
|
|
19429
|
+
*/
|
|
19430
|
+
apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
|
|
19431
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19432
|
+
var localVarAxiosArgs;
|
|
19433
|
+
return __generator(this, function (_a) {
|
|
19434
|
+
switch (_a.label) {
|
|
19435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options)];
|
|
19436
|
+
case 1:
|
|
19437
|
+
localVarAxiosArgs = _a.sent();
|
|
19438
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19439
|
+
}
|
|
19440
|
+
});
|
|
19441
|
+
});
|
|
19442
|
+
},
|
|
19443
|
+
/**
|
|
19444
|
+
*
|
|
19445
|
+
* @summary Delete plan hospital.
|
|
19446
|
+
* @param {string} planId
|
|
19447
|
+
* @param {string} hospitalId
|
|
19448
|
+
* @param {*} [options] Override http request option.
|
|
19449
|
+
* @throws {RequiredError}
|
|
19450
|
+
*/
|
|
19451
|
+
apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
|
|
19452
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19453
|
+
var localVarAxiosArgs;
|
|
19454
|
+
return __generator(this, function (_a) {
|
|
19455
|
+
switch (_a.label) {
|
|
19456
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options)];
|
|
19457
|
+
case 1:
|
|
19458
|
+
localVarAxiosArgs = _a.sent();
|
|
19459
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19460
|
+
}
|
|
19461
|
+
});
|
|
19462
|
+
});
|
|
19463
|
+
},
|
|
19464
|
+
/**
|
|
19465
|
+
*
|
|
19466
|
+
* @summary Get plan hospital.
|
|
19467
|
+
* @param {string} planId
|
|
19468
|
+
* @param {string} hospitalId
|
|
19469
|
+
* @param {*} [options] Override http request option.
|
|
19470
|
+
* @throws {RequiredError}
|
|
19471
|
+
*/
|
|
19472
|
+
apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
|
|
19473
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19474
|
+
var localVarAxiosArgs;
|
|
19475
|
+
return __generator(this, function (_a) {
|
|
19476
|
+
switch (_a.label) {
|
|
19477
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options)];
|
|
19478
|
+
case 1:
|
|
19479
|
+
localVarAxiosArgs = _a.sent();
|
|
19480
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19481
|
+
}
|
|
19482
|
+
});
|
|
19483
|
+
});
|
|
19484
|
+
},
|
|
19485
|
+
/**
|
|
19486
|
+
*
|
|
19487
|
+
* @summary Update plan hospital.
|
|
19488
|
+
* @param {string} planId
|
|
19489
|
+
* @param {string} hospitalId
|
|
19490
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
19491
|
+
* @param {*} [options] Override http request option.
|
|
19492
|
+
* @throws {RequiredError}
|
|
19493
|
+
*/
|
|
19494
|
+
apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
|
|
19495
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19496
|
+
var localVarAxiosArgs;
|
|
19497
|
+
return __generator(this, function (_a) {
|
|
19498
|
+
switch (_a.label) {
|
|
19499
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options)];
|
|
19500
|
+
case 1:
|
|
19501
|
+
localVarAxiosArgs = _a.sent();
|
|
19502
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19503
|
+
}
|
|
19504
|
+
});
|
|
19505
|
+
});
|
|
19506
|
+
},
|
|
19507
|
+
/**
|
|
19508
|
+
*
|
|
19509
|
+
* @summary Create plan hospital.
|
|
19510
|
+
* @param {string} planId
|
|
19511
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
19512
|
+
* @param {*} [options] Override http request option.
|
|
19513
|
+
* @throws {RequiredError}
|
|
19514
|
+
*/
|
|
19515
|
+
apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
|
|
19516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19517
|
+
var localVarAxiosArgs;
|
|
19518
|
+
return __generator(this, function (_a) {
|
|
19519
|
+
switch (_a.label) {
|
|
19520
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options)];
|
|
19521
|
+
case 1:
|
|
19522
|
+
localVarAxiosArgs = _a.sent();
|
|
19523
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19524
|
+
}
|
|
19525
|
+
});
|
|
19526
|
+
});
|
|
19527
|
+
},
|
|
19528
|
+
/**
|
|
19529
|
+
*
|
|
19530
|
+
* @summary Update plan.
|
|
19531
|
+
* @param {string} planId
|
|
19532
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
19533
|
+
* @param {*} [options] Override http request option.
|
|
19534
|
+
* @throws {RequiredError}
|
|
19535
|
+
*/
|
|
19536
|
+
apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
|
|
19537
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19538
|
+
var localVarAxiosArgs;
|
|
19539
|
+
return __generator(this, function (_a) {
|
|
19540
|
+
switch (_a.label) {
|
|
19541
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPlanIdPut(planId, updatePlanCommand, options)];
|
|
19542
|
+
case 1:
|
|
19543
|
+
localVarAxiosArgs = _a.sent();
|
|
19544
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19545
|
+
}
|
|
19546
|
+
});
|
|
19547
|
+
});
|
|
19548
|
+
},
|
|
19549
|
+
/**
|
|
19550
|
+
*
|
|
19551
|
+
* @summary Create a plan.
|
|
19552
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
19553
|
+
* @param {*} [options] Override http request option.
|
|
19554
|
+
* @throws {RequiredError}
|
|
19555
|
+
*/
|
|
19556
|
+
apiV1PlansPost: function (createPlanCommand, options) {
|
|
19557
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19558
|
+
var localVarAxiosArgs;
|
|
19559
|
+
return __generator(this, function (_a) {
|
|
19560
|
+
switch (_a.label) {
|
|
19561
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PlansPost(createPlanCommand, options)];
|
|
19562
|
+
case 1:
|
|
19563
|
+
localVarAxiosArgs = _a.sent();
|
|
19564
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19565
|
+
}
|
|
19566
|
+
});
|
|
19567
|
+
});
|
|
19568
|
+
},
|
|
19569
|
+
};
|
|
19570
|
+
};
|
|
19571
|
+
/**
|
|
19572
|
+
* PlansApi - factory interface
|
|
19573
|
+
* @export
|
|
19574
|
+
*/
|
|
19575
|
+
exports.PlansApiFactory = function (configuration, basePath, axios) {
|
|
19576
|
+
var localVarFp = exports.PlansApiFp(configuration);
|
|
19577
|
+
return {
|
|
19578
|
+
/**
|
|
19579
|
+
*
|
|
19580
|
+
* @summary Get all plans.
|
|
19581
|
+
* @param {string} [id]
|
|
19582
|
+
* @param {string} [name]
|
|
19583
|
+
* @param {number} [page]
|
|
19584
|
+
* @param {number} [limit]
|
|
19585
|
+
* @param {Date} [lastRetrieved]
|
|
19586
|
+
* @param {*} [options] Override http request option.
|
|
19587
|
+
* @throws {RequiredError}
|
|
19588
|
+
*/
|
|
19589
|
+
apiV1PlansGet: function (id, name, page, limit, lastRetrieved, options) {
|
|
19590
|
+
return localVarFp.apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19591
|
+
},
|
|
19592
|
+
/**
|
|
19593
|
+
*
|
|
19594
|
+
* @summary Delete plan.
|
|
19595
|
+
* @param {string} planId
|
|
19596
|
+
* @param {*} [options] Override http request option.
|
|
19597
|
+
* @throws {RequiredError}
|
|
19598
|
+
*/
|
|
19599
|
+
apiV1PlansPlanIdDelete: function (planId, options) {
|
|
19600
|
+
return localVarFp.apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(axios, basePath); });
|
|
19601
|
+
},
|
|
19602
|
+
/**
|
|
19603
|
+
*
|
|
19604
|
+
* @summary Get plan.
|
|
19605
|
+
* @param {string} planId
|
|
19606
|
+
* @param {*} [options] Override http request option.
|
|
19607
|
+
* @throws {RequiredError}
|
|
19608
|
+
*/
|
|
19609
|
+
apiV1PlansPlanIdGet: function (planId, options) {
|
|
19610
|
+
return localVarFp.apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(axios, basePath); });
|
|
19611
|
+
},
|
|
19612
|
+
/**
|
|
19613
|
+
*
|
|
19614
|
+
* @summary Get all plan hospital.
|
|
19615
|
+
* @param {string} planId
|
|
19616
|
+
* @param {number} [page]
|
|
19617
|
+
* @param {number} [limit]
|
|
19618
|
+
* @param {Date} [lastRetrieved]
|
|
19619
|
+
* @param {*} [options] Override http request option.
|
|
19620
|
+
* @throws {RequiredError}
|
|
19621
|
+
*/
|
|
19622
|
+
apiV1PlansPlanIdHospitalsGet: function (planId, page, limit, lastRetrieved, options) {
|
|
19623
|
+
return localVarFp.apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
19624
|
+
},
|
|
19625
|
+
/**
|
|
19626
|
+
*
|
|
19627
|
+
* @summary Delete plan hospital.
|
|
19628
|
+
* @param {string} planId
|
|
19629
|
+
* @param {string} hospitalId
|
|
19630
|
+
* @param {*} [options] Override http request option.
|
|
19631
|
+
* @throws {RequiredError}
|
|
19632
|
+
*/
|
|
19633
|
+
apiV1PlansPlanIdHospitalsHospitalIdDelete: function (planId, hospitalId, options) {
|
|
19634
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
19635
|
+
},
|
|
19636
|
+
/**
|
|
19637
|
+
*
|
|
19638
|
+
* @summary Get plan hospital.
|
|
19639
|
+
* @param {string} planId
|
|
19640
|
+
* @param {string} hospitalId
|
|
19641
|
+
* @param {*} [options] Override http request option.
|
|
19642
|
+
* @throws {RequiredError}
|
|
19643
|
+
*/
|
|
19644
|
+
apiV1PlansPlanIdHospitalsHospitalIdGet: function (planId, hospitalId, options) {
|
|
19645
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
19646
|
+
},
|
|
19647
|
+
/**
|
|
19648
|
+
*
|
|
19649
|
+
* @summary Update plan hospital.
|
|
19650
|
+
* @param {string} planId
|
|
19651
|
+
* @param {string} hospitalId
|
|
19652
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
19653
|
+
* @param {*} [options] Override http request option.
|
|
19654
|
+
* @throws {RequiredError}
|
|
19655
|
+
*/
|
|
19656
|
+
apiV1PlansPlanIdHospitalsHospitalIdPut: function (planId, hospitalId, updatePlanHospitalCommand, options) {
|
|
19657
|
+
return localVarFp.apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
19658
|
+
},
|
|
19659
|
+
/**
|
|
19660
|
+
*
|
|
19661
|
+
* @summary Create plan hospital.
|
|
19662
|
+
* @param {string} planId
|
|
19663
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
19664
|
+
* @param {*} [options] Override http request option.
|
|
19665
|
+
* @throws {RequiredError}
|
|
19666
|
+
*/
|
|
19667
|
+
apiV1PlansPlanIdHospitalsPost: function (planId, createPlanHospitalCommand, options) {
|
|
19668
|
+
return localVarFp.apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
19669
|
+
},
|
|
19670
|
+
/**
|
|
19671
|
+
*
|
|
19672
|
+
* @summary Update plan.
|
|
19673
|
+
* @param {string} planId
|
|
19674
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
19675
|
+
* @param {*} [options] Override http request option.
|
|
19676
|
+
* @throws {RequiredError}
|
|
19677
|
+
*/
|
|
19678
|
+
apiV1PlansPlanIdPut: function (planId, updatePlanCommand, options) {
|
|
19679
|
+
return localVarFp.apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(axios, basePath); });
|
|
19680
|
+
},
|
|
19681
|
+
/**
|
|
19682
|
+
*
|
|
19683
|
+
* @summary Create a plan.
|
|
19684
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
19685
|
+
* @param {*} [options] Override http request option.
|
|
19686
|
+
* @throws {RequiredError}
|
|
19687
|
+
*/
|
|
19688
|
+
apiV1PlansPost: function (createPlanCommand, options) {
|
|
19689
|
+
return localVarFp.apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(axios, basePath); });
|
|
19690
|
+
},
|
|
19691
|
+
};
|
|
19692
|
+
};
|
|
19693
|
+
/**
|
|
19694
|
+
* PlansApi - object-oriented interface
|
|
19695
|
+
* @export
|
|
19696
|
+
* @class PlansApi
|
|
19697
|
+
* @extends {BaseAPI}
|
|
19698
|
+
*/
|
|
19699
|
+
var PlansApi = /** @class */ (function (_super) {
|
|
19700
|
+
__extends(PlansApi, _super);
|
|
19701
|
+
function PlansApi() {
|
|
19702
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19703
|
+
}
|
|
19704
|
+
/**
|
|
19705
|
+
*
|
|
19706
|
+
* @summary Get all plans.
|
|
19707
|
+
* @param {string} [id]
|
|
19708
|
+
* @param {string} [name]
|
|
19709
|
+
* @param {number} [page]
|
|
19710
|
+
* @param {number} [limit]
|
|
19711
|
+
* @param {Date} [lastRetrieved]
|
|
19712
|
+
* @param {*} [options] Override http request option.
|
|
19713
|
+
* @throws {RequiredError}
|
|
19714
|
+
* @memberof PlansApi
|
|
19715
|
+
*/
|
|
19716
|
+
PlansApi.prototype.apiV1PlansGet = function (id, name, page, limit, lastRetrieved, options) {
|
|
19717
|
+
var _this = this;
|
|
19718
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansGet(id, name, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19719
|
+
};
|
|
19720
|
+
/**
|
|
19721
|
+
*
|
|
19722
|
+
* @summary Delete plan.
|
|
19723
|
+
* @param {string} planId
|
|
19724
|
+
* @param {*} [options] Override http request option.
|
|
19725
|
+
* @throws {RequiredError}
|
|
19726
|
+
* @memberof PlansApi
|
|
19727
|
+
*/
|
|
19728
|
+
PlansApi.prototype.apiV1PlansPlanIdDelete = function (planId, options) {
|
|
19729
|
+
var _this = this;
|
|
19730
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdDelete(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19731
|
+
};
|
|
19732
|
+
/**
|
|
19733
|
+
*
|
|
19734
|
+
* @summary Get plan.
|
|
19735
|
+
* @param {string} planId
|
|
19736
|
+
* @param {*} [options] Override http request option.
|
|
19737
|
+
* @throws {RequiredError}
|
|
19738
|
+
* @memberof PlansApi
|
|
19739
|
+
*/
|
|
19740
|
+
PlansApi.prototype.apiV1PlansPlanIdGet = function (planId, options) {
|
|
19741
|
+
var _this = this;
|
|
19742
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdGet(planId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19743
|
+
};
|
|
19744
|
+
/**
|
|
19745
|
+
*
|
|
19746
|
+
* @summary Get all plan hospital.
|
|
19747
|
+
* @param {string} planId
|
|
19748
|
+
* @param {number} [page]
|
|
19749
|
+
* @param {number} [limit]
|
|
19750
|
+
* @param {Date} [lastRetrieved]
|
|
19751
|
+
* @param {*} [options] Override http request option.
|
|
19752
|
+
* @throws {RequiredError}
|
|
19753
|
+
* @memberof PlansApi
|
|
19754
|
+
*/
|
|
19755
|
+
PlansApi.prototype.apiV1PlansPlanIdHospitalsGet = function (planId, page, limit, lastRetrieved, options) {
|
|
19756
|
+
var _this = this;
|
|
19757
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsGet(planId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19758
|
+
};
|
|
19759
|
+
/**
|
|
19760
|
+
*
|
|
19761
|
+
* @summary Delete plan hospital.
|
|
19762
|
+
* @param {string} planId
|
|
19763
|
+
* @param {string} hospitalId
|
|
19764
|
+
* @param {*} [options] Override http request option.
|
|
19765
|
+
* @throws {RequiredError}
|
|
19766
|
+
* @memberof PlansApi
|
|
19767
|
+
*/
|
|
19768
|
+
PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdDelete = function (planId, hospitalId, options) {
|
|
19769
|
+
var _this = this;
|
|
19770
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdDelete(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19771
|
+
};
|
|
19772
|
+
/**
|
|
19773
|
+
*
|
|
19774
|
+
* @summary Get plan hospital.
|
|
19775
|
+
* @param {string} planId
|
|
19776
|
+
* @param {string} hospitalId
|
|
19777
|
+
* @param {*} [options] Override http request option.
|
|
19778
|
+
* @throws {RequiredError}
|
|
19779
|
+
* @memberof PlansApi
|
|
19780
|
+
*/
|
|
19781
|
+
PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdGet = function (planId, hospitalId, options) {
|
|
19782
|
+
var _this = this;
|
|
19783
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdGet(planId, hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19784
|
+
};
|
|
19785
|
+
/**
|
|
19786
|
+
*
|
|
19787
|
+
* @summary Update plan hospital.
|
|
19788
|
+
* @param {string} planId
|
|
19789
|
+
* @param {string} hospitalId
|
|
19790
|
+
* @param {UpdatePlanHospitalCommand} [updatePlanHospitalCommand]
|
|
19791
|
+
* @param {*} [options] Override http request option.
|
|
19792
|
+
* @throws {RequiredError}
|
|
19793
|
+
* @memberof PlansApi
|
|
19794
|
+
*/
|
|
19795
|
+
PlansApi.prototype.apiV1PlansPlanIdHospitalsHospitalIdPut = function (planId, hospitalId, updatePlanHospitalCommand, options) {
|
|
19796
|
+
var _this = this;
|
|
19797
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsHospitalIdPut(planId, hospitalId, updatePlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19798
|
+
};
|
|
19799
|
+
/**
|
|
19800
|
+
*
|
|
19801
|
+
* @summary Create plan hospital.
|
|
19802
|
+
* @param {string} planId
|
|
19803
|
+
* @param {CreatePlanHospitalCommand} [createPlanHospitalCommand]
|
|
19804
|
+
* @param {*} [options] Override http request option.
|
|
19805
|
+
* @throws {RequiredError}
|
|
19806
|
+
* @memberof PlansApi
|
|
19807
|
+
*/
|
|
19808
|
+
PlansApi.prototype.apiV1PlansPlanIdHospitalsPost = function (planId, createPlanHospitalCommand, options) {
|
|
19809
|
+
var _this = this;
|
|
19810
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdHospitalsPost(planId, createPlanHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19811
|
+
};
|
|
19812
|
+
/**
|
|
19813
|
+
*
|
|
19814
|
+
* @summary Update plan.
|
|
19815
|
+
* @param {string} planId
|
|
19816
|
+
* @param {UpdatePlanCommand} [updatePlanCommand]
|
|
19817
|
+
* @param {*} [options] Override http request option.
|
|
19818
|
+
* @throws {RequiredError}
|
|
19819
|
+
* @memberof PlansApi
|
|
19820
|
+
*/
|
|
19821
|
+
PlansApi.prototype.apiV1PlansPlanIdPut = function (planId, updatePlanCommand, options) {
|
|
19822
|
+
var _this = this;
|
|
19823
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPlanIdPut(planId, updatePlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19824
|
+
};
|
|
19825
|
+
/**
|
|
19826
|
+
*
|
|
19827
|
+
* @summary Create a plan.
|
|
19828
|
+
* @param {CreatePlanCommand} [createPlanCommand]
|
|
19829
|
+
* @param {*} [options] Override http request option.
|
|
19830
|
+
* @throws {RequiredError}
|
|
19831
|
+
* @memberof PlansApi
|
|
19832
|
+
*/
|
|
19833
|
+
PlansApi.prototype.apiV1PlansPost = function (createPlanCommand, options) {
|
|
19834
|
+
var _this = this;
|
|
19835
|
+
return exports.PlansApiFp(this.configuration).apiV1PlansPost(createPlanCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
19836
|
+
};
|
|
19837
|
+
return PlansApi;
|
|
19838
|
+
}(base_1.BaseAPI));
|
|
19839
|
+
exports.PlansApi = PlansApi;
|
|
19840
|
+
/**
|
|
19841
|
+
* ProfilesApi - axios parameter creator
|
|
19842
|
+
* @export
|
|
19843
|
+
*/
|
|
19844
|
+
exports.ProfilesApiAxiosParamCreator = function (configuration) {
|
|
19845
|
+
var _this = this;
|
|
19846
|
+
return {
|
|
19847
|
+
/**
|
|
19848
|
+
* Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
|
|
19849
|
+
* @summary Change user\'s email on both Identity and Api.
|
|
19850
|
+
* @param {ChangeEmailCommand} [changeEmailCommand]
|
|
19851
|
+
* @param {*} [options] Override http request option.
|
|
19852
|
+
* @throws {RequiredError}
|
|
19853
|
+
*/
|
|
19854
|
+
apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
|
|
19855
|
+
if (options === void 0) { options = {}; }
|
|
19856
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19857
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19858
|
+
return __generator(this, function (_a) {
|
|
19859
|
+
switch (_a.label) {
|
|
19860
|
+
case 0:
|
|
19861
|
+
localVarPath = "/api/v1/profiles/changeemail";
|
|
19862
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19863
|
+
if (configuration) {
|
|
19864
|
+
baseOptions = configuration.baseOptions;
|
|
19865
|
+
}
|
|
19866
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
19867
|
+
localVarHeaderParameter = {};
|
|
19868
|
+
localVarQueryParameter = {};
|
|
19869
|
+
// authentication oauth2 required
|
|
19870
|
+
// oauth required
|
|
19871
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19872
|
+
case 1:
|
|
19873
|
+
// authentication oauth2 required
|
|
19874
|
+
// oauth required
|
|
19875
|
+
_a.sent();
|
|
19876
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19877
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19878
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19879
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19880
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(changeEmailCommand, localVarRequestOptions, configuration);
|
|
19881
|
+
return [2 /*return*/, {
|
|
19882
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19883
|
+
options: localVarRequestOptions,
|
|
19884
|
+
}];
|
|
19885
|
+
}
|
|
19886
|
+
});
|
|
19887
|
+
});
|
|
19888
|
+
},
|
|
19889
|
+
/**
|
|
19890
|
+
*
|
|
19891
|
+
* @summary Configm email.
|
|
19892
|
+
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
19893
|
+
* @param {*} [options] Override http request option.
|
|
19894
|
+
* @throws {RequiredError}
|
|
19895
|
+
*/
|
|
19896
|
+
apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
|
|
19897
|
+
if (options === void 0) { options = {}; }
|
|
19898
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19899
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19900
|
+
return __generator(this, function (_a) {
|
|
19901
|
+
switch (_a.label) {
|
|
19902
|
+
case 0:
|
|
19903
|
+
localVarPath = "/api/v1/profiles/confirmemail";
|
|
19904
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19905
|
+
if (configuration) {
|
|
19906
|
+
baseOptions = configuration.baseOptions;
|
|
19907
|
+
}
|
|
19908
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
19909
|
+
localVarHeaderParameter = {};
|
|
19910
|
+
localVarQueryParameter = {};
|
|
19911
|
+
// authentication oauth2 required
|
|
19912
|
+
// oauth required
|
|
19913
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19914
|
+
case 1:
|
|
19915
|
+
// authentication oauth2 required
|
|
19916
|
+
// oauth required
|
|
19917
|
+
_a.sent();
|
|
19918
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19919
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19920
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19921
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19922
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(confirmEmailCommand, localVarRequestOptions, configuration);
|
|
19923
|
+
return [2 /*return*/, {
|
|
19924
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19925
|
+
options: localVarRequestOptions,
|
|
19926
|
+
}];
|
|
19927
|
+
}
|
|
19928
|
+
});
|
|
19929
|
+
});
|
|
19930
|
+
},
|
|
19931
|
+
/**
|
|
19932
|
+
*
|
|
19933
|
+
* @summary Get Profile.
|
|
19934
|
+
* @param {*} [options] Override http request option.
|
|
19935
|
+
* @throws {RequiredError}
|
|
19936
|
+
*/
|
|
19937
|
+
apiV1ProfilesGet: function (options) {
|
|
19938
|
+
if (options === void 0) { options = {}; }
|
|
19939
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
19940
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
19941
|
+
return __generator(this, function (_a) {
|
|
19942
|
+
switch (_a.label) {
|
|
19943
|
+
case 0:
|
|
19944
|
+
localVarPath = "/api/v1/profiles";
|
|
19945
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19946
|
+
if (configuration) {
|
|
19947
|
+
baseOptions = configuration.baseOptions;
|
|
19948
|
+
}
|
|
19949
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
19950
|
+
localVarHeaderParameter = {};
|
|
19951
|
+
localVarQueryParameter = {};
|
|
19952
|
+
// authentication oauth2 required
|
|
19953
|
+
// oauth required
|
|
19954
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
19955
|
+
case 1:
|
|
19956
|
+
// authentication oauth2 required
|
|
19957
|
+
// oauth required
|
|
19958
|
+
_a.sent();
|
|
19959
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19960
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19961
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19962
|
+
return [2 /*return*/, {
|
|
19963
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
19964
|
+
options: localVarRequestOptions,
|
|
19965
|
+
}];
|
|
19966
|
+
}
|
|
19967
|
+
});
|
|
19968
|
+
});
|
|
19969
|
+
},
|
|
19970
|
+
};
|
|
19971
|
+
};
|
|
19972
|
+
/**
|
|
19973
|
+
* ProfilesApi - functional programming interface
|
|
19974
|
+
* @export
|
|
19975
|
+
*/
|
|
19976
|
+
exports.ProfilesApiFp = function (configuration) {
|
|
19977
|
+
var localVarAxiosParamCreator = exports.ProfilesApiAxiosParamCreator(configuration);
|
|
19978
|
+
return {
|
|
19979
|
+
/**
|
|
19980
|
+
* Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
|
|
19981
|
+
* @summary Change user\'s email on both Identity and Api.
|
|
19982
|
+
* @param {ChangeEmailCommand} [changeEmailCommand]
|
|
19983
|
+
* @param {*} [options] Override http request option.
|
|
19984
|
+
* @throws {RequiredError}
|
|
19985
|
+
*/
|
|
19986
|
+
apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
|
|
19987
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19988
|
+
var localVarAxiosArgs;
|
|
19989
|
+
return __generator(this, function (_a) {
|
|
19990
|
+
switch (_a.label) {
|
|
19991
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesChangeemailPost(changeEmailCommand, options)];
|
|
19992
|
+
case 1:
|
|
19993
|
+
localVarAxiosArgs = _a.sent();
|
|
19994
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19995
|
+
}
|
|
19996
|
+
});
|
|
19997
|
+
});
|
|
19998
|
+
},
|
|
19999
|
+
/**
|
|
20000
|
+
*
|
|
20001
|
+
* @summary Configm email.
|
|
20002
|
+
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
20003
|
+
* @param {*} [options] Override http request option.
|
|
20004
|
+
* @throws {RequiredError}
|
|
20005
|
+
*/
|
|
20006
|
+
apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
|
|
20007
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20008
|
+
var localVarAxiosArgs;
|
|
20009
|
+
return __generator(this, function (_a) {
|
|
20010
|
+
switch (_a.label) {
|
|
20011
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options)];
|
|
20012
|
+
case 1:
|
|
20013
|
+
localVarAxiosArgs = _a.sent();
|
|
20014
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20015
|
+
}
|
|
20016
|
+
});
|
|
20017
|
+
});
|
|
20018
|
+
},
|
|
20019
|
+
/**
|
|
20020
|
+
*
|
|
20021
|
+
* @summary Get Profile.
|
|
20022
|
+
* @param {*} [options] Override http request option.
|
|
20023
|
+
* @throws {RequiredError}
|
|
20024
|
+
*/
|
|
20025
|
+
apiV1ProfilesGet: function (options) {
|
|
20026
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
20027
|
+
var localVarAxiosArgs;
|
|
20028
|
+
return __generator(this, function (_a) {
|
|
20029
|
+
switch (_a.label) {
|
|
20030
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ProfilesGet(options)];
|
|
20031
|
+
case 1:
|
|
20032
|
+
localVarAxiosArgs = _a.sent();
|
|
20033
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20034
|
+
}
|
|
20035
|
+
});
|
|
20036
|
+
});
|
|
20037
|
+
},
|
|
20038
|
+
};
|
|
20039
|
+
};
|
|
20040
|
+
/**
|
|
20041
|
+
* ProfilesApi - factory interface
|
|
20042
|
+
* @export
|
|
20043
|
+
*/
|
|
20044
|
+
exports.ProfilesApiFactory = function (configuration, basePath, axios) {
|
|
20045
|
+
var localVarFp = exports.ProfilesApiFp(configuration);
|
|
20046
|
+
return {
|
|
20047
|
+
/**
|
|
20048
|
+
* Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
|
|
20049
|
+
* @summary Change user\'s email on both Identity and Api.
|
|
20050
|
+
* @param {ChangeEmailCommand} [changeEmailCommand]
|
|
20051
|
+
* @param {*} [options] Override http request option.
|
|
20052
|
+
* @throws {RequiredError}
|
|
20053
|
+
*/
|
|
20054
|
+
apiV1ProfilesChangeemailPost: function (changeEmailCommand, options) {
|
|
20055
|
+
return localVarFp.apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20056
|
+
},
|
|
20057
|
+
/**
|
|
20058
|
+
*
|
|
20059
|
+
* @summary Configm email.
|
|
20060
|
+
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
20061
|
+
* @param {*} [options] Override http request option.
|
|
20062
|
+
* @throws {RequiredError}
|
|
20063
|
+
*/
|
|
20064
|
+
apiV1ProfilesConfirmemailPost: function (confirmEmailCommand, options) {
|
|
20065
|
+
return localVarFp.apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20066
|
+
},
|
|
20067
|
+
/**
|
|
20068
|
+
*
|
|
20069
|
+
* @summary Get Profile.
|
|
20070
|
+
* @param {*} [options] Override http request option.
|
|
20071
|
+
* @throws {RequiredError}
|
|
20072
|
+
*/
|
|
20073
|
+
apiV1ProfilesGet: function (options) {
|
|
20074
|
+
return localVarFp.apiV1ProfilesGet(options).then(function (request) { return request(axios, basePath); });
|
|
20075
|
+
},
|
|
20076
|
+
};
|
|
20077
|
+
};
|
|
20078
|
+
/**
|
|
20079
|
+
* ProfilesApi - object-oriented interface
|
|
20080
|
+
* @export
|
|
20081
|
+
* @class ProfilesApi
|
|
20082
|
+
* @extends {BaseAPI}
|
|
20083
|
+
*/
|
|
20084
|
+
var ProfilesApi = /** @class */ (function (_super) {
|
|
20085
|
+
__extends(ProfilesApi, _super);
|
|
20086
|
+
function ProfilesApi() {
|
|
20087
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
20088
|
+
}
|
|
20089
|
+
/**
|
|
20090
|
+
* Sample request: POST /api/v1/profiles/changeEmail { \"email\": \"user@example.com\" }
|
|
20091
|
+
* @summary Change user\'s email on both Identity and Api.
|
|
20092
|
+
* @param {ChangeEmailCommand} [changeEmailCommand]
|
|
20093
|
+
* @param {*} [options] Override http request option.
|
|
20094
|
+
* @throws {RequiredError}
|
|
20095
|
+
* @memberof ProfilesApi
|
|
20096
|
+
*/
|
|
20097
|
+
ProfilesApi.prototype.apiV1ProfilesChangeemailPost = function (changeEmailCommand, options) {
|
|
20098
|
+
var _this = this;
|
|
20099
|
+
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesChangeemailPost(changeEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20100
|
+
};
|
|
20101
|
+
/**
|
|
20102
|
+
*
|
|
20103
|
+
* @summary Configm email.
|
|
20104
|
+
* @param {ConfirmEmailCommand} [confirmEmailCommand]
|
|
20105
|
+
* @param {*} [options] Override http request option.
|
|
20106
|
+
* @throws {RequiredError}
|
|
20107
|
+
* @memberof ProfilesApi
|
|
20108
|
+
*/
|
|
20109
|
+
ProfilesApi.prototype.apiV1ProfilesConfirmemailPost = function (confirmEmailCommand, options) {
|
|
20110
|
+
var _this = this;
|
|
20111
|
+
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesConfirmemailPost(confirmEmailCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20112
|
+
};
|
|
20113
|
+
/**
|
|
20114
|
+
*
|
|
20115
|
+
* @summary Get Profile.
|
|
20116
|
+
* @param {*} [options] Override http request option.
|
|
20117
|
+
* @throws {RequiredError}
|
|
20118
|
+
* @memberof ProfilesApi
|
|
20119
|
+
*/
|
|
20120
|
+
ProfilesApi.prototype.apiV1ProfilesGet = function (options) {
|
|
20121
|
+
var _this = this;
|
|
20122
|
+
return exports.ProfilesApiFp(this.configuration).apiV1ProfilesGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
20123
|
+
};
|
|
20124
|
+
return ProfilesApi;
|
|
20125
|
+
}(base_1.BaseAPI));
|
|
20126
|
+
exports.ProfilesApi = ProfilesApi;
|
|
18332
20127
|
/**
|
|
18333
20128
|
* ServicesApi - axios parameter creator
|
|
18334
20129
|
* @export
|