ch-admin-api-client-typescript 4.8.0 → 4.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +1192 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +921 -4
- package/package.json +1 -1
package/lib/api.js
CHANGED
|
@@ -78,10 +78,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = void 0;
|
|
81
|
+
exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AppVersionApi = exports.AppVersionApiFactory = exports.AppVersionApiFp = exports.AppVersionApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.AboutUsApi = exports.AboutUsApiFactory = exports.AboutUsApiFp = exports.AboutUsApiAxiosParamCreator = exports.UserLocationType = exports.TranslateAllOptions = exports.SurveyFormStatus = exports.SurveyFormElementTypes = exports.SortingOrder = exports.SnsType = exports.SearchIndexType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.Platform = exports.NotificationCode = exports.MessageType = exports.MentionType = exports.MediaType = exports.MarketingType = exports.HttpStatusCode = exports.Gender = exports.Duration = exports.DayOfWeek = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
82
|
+
exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DoctorAffiliationsApi = exports.DoctorAffiliationsApiFactory = exports.DoctorAffiliationsApiFp = exports.DoctorAffiliationsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.DashBoardApi = exports.DashBoardApiFactory = exports.DashBoardApiFp = exports.DashBoardApiAxiosParamCreator = 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.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = void 0;
|
|
83
|
+
exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsConsultationTimetablesApi = exports.HospitalsConsultationTimetablesApiFactory = exports.HospitalsConsultationTimetablesApiFp = exports.HospitalsConsultationTimetablesApiAxiosParamCreator = exports.HospitalsConsultationTimetableOverridesApi = exports.HospitalsConsultationTimetableOverridesApiFactory = exports.HospitalsConsultationTimetableOverridesApiFp = exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.HeaderNavigationsApi = exports.HeaderNavigationsApiFactory = exports.HeaderNavigationsApiFp = exports.HeaderNavigationsApiAxiosParamCreator = exports.GroupChannelsApi = exports.GroupChannelsApiFactory = exports.GroupChannelsApiFp = exports.GroupChannelsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = void 0;
|
|
84
|
+
exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SurveyResultsApi = exports.SurveyResultsApiFactory = exports.SurveyResultsApiFp = exports.SurveyResultsApiAxiosParamCreator = exports.SurveyFormsApi = exports.SurveyFormsApiFactory = exports.SurveyFormsApiFp = exports.SurveyFormsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = void 0;
|
|
85
85
|
var axios_1 = __importDefault(require("axios"));
|
|
86
86
|
// Some imports not used depending on template conditions
|
|
87
87
|
// @ts-ignore
|
|
@@ -423,6 +423,34 @@ exports.SortingOrder = {
|
|
|
423
423
|
Ascending: 'Ascending',
|
|
424
424
|
Descending: 'Descending'
|
|
425
425
|
};
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @export
|
|
429
|
+
* @enum {string}
|
|
430
|
+
*/
|
|
431
|
+
exports.SurveyFormElementTypes = {
|
|
432
|
+
SingleLineText: 'SingleLineText',
|
|
433
|
+
MultiLineText: 'MultiLineText',
|
|
434
|
+
Email: 'Email',
|
|
435
|
+
DateTime: 'DateTime',
|
|
436
|
+
Date: 'Date',
|
|
437
|
+
Time: 'Time',
|
|
438
|
+
NumberInteger: 'NumberInteger',
|
|
439
|
+
NumberFloat: 'NumberFloat',
|
|
440
|
+
Select: 'Select',
|
|
441
|
+
Checkbox: 'Checkbox',
|
|
442
|
+
Radio: 'Radio',
|
|
443
|
+
File: 'File'
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @export
|
|
448
|
+
* @enum {string}
|
|
449
|
+
*/
|
|
450
|
+
exports.SurveyFormStatus = {
|
|
451
|
+
Draft: 'Draft',
|
|
452
|
+
Active: 'Active'
|
|
453
|
+
};
|
|
426
454
|
/**
|
|
427
455
|
*
|
|
428
456
|
* @export
|
|
@@ -40764,6 +40792,895 @@ var SpecialtyTypesApi = /** @class */ (function (_super) {
|
|
|
40764
40792
|
return SpecialtyTypesApi;
|
|
40765
40793
|
}(base_1.BaseAPI));
|
|
40766
40794
|
exports.SpecialtyTypesApi = SpecialtyTypesApi;
|
|
40795
|
+
/**
|
|
40796
|
+
* SurveyFormsApi - axios parameter creator
|
|
40797
|
+
* @export
|
|
40798
|
+
*/
|
|
40799
|
+
var SurveyFormsApiAxiosParamCreator = function (configuration) {
|
|
40800
|
+
var _this = this;
|
|
40801
|
+
return {
|
|
40802
|
+
/**
|
|
40803
|
+
*
|
|
40804
|
+
* @summary Get survey forms
|
|
40805
|
+
* @param {string} [id]
|
|
40806
|
+
* @param {string} [hospitalId]
|
|
40807
|
+
* @param {string} [name]
|
|
40808
|
+
* @param {string} [languageCode]
|
|
40809
|
+
* @param {boolean} [showHidden]
|
|
40810
|
+
* @param {SurveyFormStatus} [status]
|
|
40811
|
+
* @param {number} [page]
|
|
40812
|
+
* @param {number} [limit]
|
|
40813
|
+
* @param {Date} [lastRetrieved]
|
|
40814
|
+
* @param {*} [options] Override http request option.
|
|
40815
|
+
* @throws {RequiredError}
|
|
40816
|
+
*/
|
|
40817
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
40818
|
+
if (options === void 0) { options = {}; }
|
|
40819
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40820
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40821
|
+
return __generator(this, function (_a) {
|
|
40822
|
+
switch (_a.label) {
|
|
40823
|
+
case 0:
|
|
40824
|
+
localVarPath = "/api/v1/surveyforms";
|
|
40825
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40826
|
+
if (configuration) {
|
|
40827
|
+
baseOptions = configuration.baseOptions;
|
|
40828
|
+
}
|
|
40829
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
40830
|
+
localVarHeaderParameter = {};
|
|
40831
|
+
localVarQueryParameter = {};
|
|
40832
|
+
// authentication oauth2 required
|
|
40833
|
+
// oauth required
|
|
40834
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40835
|
+
case 1:
|
|
40836
|
+
// authentication oauth2 required
|
|
40837
|
+
// oauth required
|
|
40838
|
+
_a.sent();
|
|
40839
|
+
if (id !== undefined) {
|
|
40840
|
+
localVarQueryParameter['Id'] = id;
|
|
40841
|
+
}
|
|
40842
|
+
if (hospitalId !== undefined) {
|
|
40843
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
40844
|
+
}
|
|
40845
|
+
if (name !== undefined) {
|
|
40846
|
+
localVarQueryParameter['Name'] = name;
|
|
40847
|
+
}
|
|
40848
|
+
if (languageCode !== undefined) {
|
|
40849
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
40850
|
+
}
|
|
40851
|
+
if (showHidden !== undefined) {
|
|
40852
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
40853
|
+
}
|
|
40854
|
+
if (status !== undefined) {
|
|
40855
|
+
localVarQueryParameter['Status'] = status;
|
|
40856
|
+
}
|
|
40857
|
+
if (page !== undefined) {
|
|
40858
|
+
localVarQueryParameter['page'] = page;
|
|
40859
|
+
}
|
|
40860
|
+
if (limit !== undefined) {
|
|
40861
|
+
localVarQueryParameter['limit'] = limit;
|
|
40862
|
+
}
|
|
40863
|
+
if (lastRetrieved !== undefined) {
|
|
40864
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
40865
|
+
lastRetrieved.toISOString() :
|
|
40866
|
+
lastRetrieved;
|
|
40867
|
+
}
|
|
40868
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40869
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40870
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40871
|
+
return [2 /*return*/, {
|
|
40872
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40873
|
+
options: localVarRequestOptions,
|
|
40874
|
+
}];
|
|
40875
|
+
}
|
|
40876
|
+
});
|
|
40877
|
+
});
|
|
40878
|
+
},
|
|
40879
|
+
/**
|
|
40880
|
+
*
|
|
40881
|
+
* @summary Create survey form
|
|
40882
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
40883
|
+
* @param {*} [options] Override http request option.
|
|
40884
|
+
* @throws {RequiredError}
|
|
40885
|
+
*/
|
|
40886
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
40887
|
+
if (options === void 0) { options = {}; }
|
|
40888
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40889
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40890
|
+
return __generator(this, function (_a) {
|
|
40891
|
+
switch (_a.label) {
|
|
40892
|
+
case 0:
|
|
40893
|
+
localVarPath = "/api/v1/surveyforms";
|
|
40894
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40895
|
+
if (configuration) {
|
|
40896
|
+
baseOptions = configuration.baseOptions;
|
|
40897
|
+
}
|
|
40898
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
40899
|
+
localVarHeaderParameter = {};
|
|
40900
|
+
localVarQueryParameter = {};
|
|
40901
|
+
// authentication oauth2 required
|
|
40902
|
+
// oauth required
|
|
40903
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40904
|
+
case 1:
|
|
40905
|
+
// authentication oauth2 required
|
|
40906
|
+
// oauth required
|
|
40907
|
+
_a.sent();
|
|
40908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40909
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40910
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40911
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40912
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSurveyFormCommand, localVarRequestOptions, configuration);
|
|
40913
|
+
return [2 /*return*/, {
|
|
40914
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40915
|
+
options: localVarRequestOptions,
|
|
40916
|
+
}];
|
|
40917
|
+
}
|
|
40918
|
+
});
|
|
40919
|
+
});
|
|
40920
|
+
},
|
|
40921
|
+
/**
|
|
40922
|
+
*
|
|
40923
|
+
* @summary Delete survey form by Id
|
|
40924
|
+
* @param {string} surveyFormId
|
|
40925
|
+
* @param {boolean} [isPermanent]
|
|
40926
|
+
* @param {*} [options] Override http request option.
|
|
40927
|
+
* @throws {RequiredError}
|
|
40928
|
+
*/
|
|
40929
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
40930
|
+
if (options === void 0) { options = {}; }
|
|
40931
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40932
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40933
|
+
return __generator(this, function (_a) {
|
|
40934
|
+
switch (_a.label) {
|
|
40935
|
+
case 0:
|
|
40936
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
40937
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdDelete', 'surveyFormId', surveyFormId);
|
|
40938
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
40939
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
40940
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40941
|
+
if (configuration) {
|
|
40942
|
+
baseOptions = configuration.baseOptions;
|
|
40943
|
+
}
|
|
40944
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
40945
|
+
localVarHeaderParameter = {};
|
|
40946
|
+
localVarQueryParameter = {};
|
|
40947
|
+
// authentication oauth2 required
|
|
40948
|
+
// oauth required
|
|
40949
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40950
|
+
case 1:
|
|
40951
|
+
// authentication oauth2 required
|
|
40952
|
+
// oauth required
|
|
40953
|
+
_a.sent();
|
|
40954
|
+
if (isPermanent !== undefined) {
|
|
40955
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
40956
|
+
}
|
|
40957
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40958
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40959
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40960
|
+
return [2 /*return*/, {
|
|
40961
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40962
|
+
options: localVarRequestOptions,
|
|
40963
|
+
}];
|
|
40964
|
+
}
|
|
40965
|
+
});
|
|
40966
|
+
});
|
|
40967
|
+
},
|
|
40968
|
+
/**
|
|
40969
|
+
*
|
|
40970
|
+
* @summary Get survey form by Id
|
|
40971
|
+
* @param {string} surveyFormId
|
|
40972
|
+
* @param {string} [languageCode]
|
|
40973
|
+
* @param {*} [options] Override http request option.
|
|
40974
|
+
* @throws {RequiredError}
|
|
40975
|
+
*/
|
|
40976
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
40977
|
+
if (options === void 0) { options = {}; }
|
|
40978
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40979
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40980
|
+
return __generator(this, function (_a) {
|
|
40981
|
+
switch (_a.label) {
|
|
40982
|
+
case 0:
|
|
40983
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
40984
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId);
|
|
40985
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
40986
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
40987
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40988
|
+
if (configuration) {
|
|
40989
|
+
baseOptions = configuration.baseOptions;
|
|
40990
|
+
}
|
|
40991
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
40992
|
+
localVarHeaderParameter = {};
|
|
40993
|
+
localVarQueryParameter = {};
|
|
40994
|
+
// authentication oauth2 required
|
|
40995
|
+
// oauth required
|
|
40996
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40997
|
+
case 1:
|
|
40998
|
+
// authentication oauth2 required
|
|
40999
|
+
// oauth required
|
|
41000
|
+
_a.sent();
|
|
41001
|
+
if (languageCode !== undefined) {
|
|
41002
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
41003
|
+
}
|
|
41004
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41005
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41006
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41007
|
+
return [2 /*return*/, {
|
|
41008
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41009
|
+
options: localVarRequestOptions,
|
|
41010
|
+
}];
|
|
41011
|
+
}
|
|
41012
|
+
});
|
|
41013
|
+
});
|
|
41014
|
+
},
|
|
41015
|
+
/**
|
|
41016
|
+
*
|
|
41017
|
+
* @summary Update survey form
|
|
41018
|
+
* @param {string} surveyFormId
|
|
41019
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41020
|
+
* @param {*} [options] Override http request option.
|
|
41021
|
+
* @throws {RequiredError}
|
|
41022
|
+
*/
|
|
41023
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41024
|
+
if (options === void 0) { options = {}; }
|
|
41025
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41026
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41027
|
+
return __generator(this, function (_a) {
|
|
41028
|
+
switch (_a.label) {
|
|
41029
|
+
case 0:
|
|
41030
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
41031
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdPut', 'surveyFormId', surveyFormId);
|
|
41032
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
41033
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
41034
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41035
|
+
if (configuration) {
|
|
41036
|
+
baseOptions = configuration.baseOptions;
|
|
41037
|
+
}
|
|
41038
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
41039
|
+
localVarHeaderParameter = {};
|
|
41040
|
+
localVarQueryParameter = {};
|
|
41041
|
+
// authentication oauth2 required
|
|
41042
|
+
// oauth required
|
|
41043
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41044
|
+
case 1:
|
|
41045
|
+
// authentication oauth2 required
|
|
41046
|
+
// oauth required
|
|
41047
|
+
_a.sent();
|
|
41048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41049
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41050
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41051
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41052
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSurveyFormCommand, localVarRequestOptions, configuration);
|
|
41053
|
+
return [2 /*return*/, {
|
|
41054
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41055
|
+
options: localVarRequestOptions,
|
|
41056
|
+
}];
|
|
41057
|
+
}
|
|
41058
|
+
});
|
|
41059
|
+
});
|
|
41060
|
+
},
|
|
41061
|
+
};
|
|
41062
|
+
};
|
|
41063
|
+
exports.SurveyFormsApiAxiosParamCreator = SurveyFormsApiAxiosParamCreator;
|
|
41064
|
+
/**
|
|
41065
|
+
* SurveyFormsApi - functional programming interface
|
|
41066
|
+
* @export
|
|
41067
|
+
*/
|
|
41068
|
+
var SurveyFormsApiFp = function (configuration) {
|
|
41069
|
+
var localVarAxiosParamCreator = (0, exports.SurveyFormsApiAxiosParamCreator)(configuration);
|
|
41070
|
+
return {
|
|
41071
|
+
/**
|
|
41072
|
+
*
|
|
41073
|
+
* @summary Get survey forms
|
|
41074
|
+
* @param {string} [id]
|
|
41075
|
+
* @param {string} [hospitalId]
|
|
41076
|
+
* @param {string} [name]
|
|
41077
|
+
* @param {string} [languageCode]
|
|
41078
|
+
* @param {boolean} [showHidden]
|
|
41079
|
+
* @param {SurveyFormStatus} [status]
|
|
41080
|
+
* @param {number} [page]
|
|
41081
|
+
* @param {number} [limit]
|
|
41082
|
+
* @param {Date} [lastRetrieved]
|
|
41083
|
+
* @param {*} [options] Override http request option.
|
|
41084
|
+
* @throws {RequiredError}
|
|
41085
|
+
*/
|
|
41086
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41087
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41088
|
+
var localVarAxiosArgs;
|
|
41089
|
+
return __generator(this, function (_a) {
|
|
41090
|
+
switch (_a.label) {
|
|
41091
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options)];
|
|
41092
|
+
case 1:
|
|
41093
|
+
localVarAxiosArgs = _a.sent();
|
|
41094
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41095
|
+
}
|
|
41096
|
+
});
|
|
41097
|
+
});
|
|
41098
|
+
},
|
|
41099
|
+
/**
|
|
41100
|
+
*
|
|
41101
|
+
* @summary Create survey form
|
|
41102
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41103
|
+
* @param {*} [options] Override http request option.
|
|
41104
|
+
* @throws {RequiredError}
|
|
41105
|
+
*/
|
|
41106
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
41107
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41108
|
+
var localVarAxiosArgs;
|
|
41109
|
+
return __generator(this, function (_a) {
|
|
41110
|
+
switch (_a.label) {
|
|
41111
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsPost(createSurveyFormCommand, options)];
|
|
41112
|
+
case 1:
|
|
41113
|
+
localVarAxiosArgs = _a.sent();
|
|
41114
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41115
|
+
}
|
|
41116
|
+
});
|
|
41117
|
+
});
|
|
41118
|
+
},
|
|
41119
|
+
/**
|
|
41120
|
+
*
|
|
41121
|
+
* @summary Delete survey form by Id
|
|
41122
|
+
* @param {string} surveyFormId
|
|
41123
|
+
* @param {boolean} [isPermanent]
|
|
41124
|
+
* @param {*} [options] Override http request option.
|
|
41125
|
+
* @throws {RequiredError}
|
|
41126
|
+
*/
|
|
41127
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
41128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41129
|
+
var localVarAxiosArgs;
|
|
41130
|
+
return __generator(this, function (_a) {
|
|
41131
|
+
switch (_a.label) {
|
|
41132
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options)];
|
|
41133
|
+
case 1:
|
|
41134
|
+
localVarAxiosArgs = _a.sent();
|
|
41135
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41136
|
+
}
|
|
41137
|
+
});
|
|
41138
|
+
});
|
|
41139
|
+
},
|
|
41140
|
+
/**
|
|
41141
|
+
*
|
|
41142
|
+
* @summary Get survey form by Id
|
|
41143
|
+
* @param {string} surveyFormId
|
|
41144
|
+
* @param {string} [languageCode]
|
|
41145
|
+
* @param {*} [options] Override http request option.
|
|
41146
|
+
* @throws {RequiredError}
|
|
41147
|
+
*/
|
|
41148
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
41149
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41150
|
+
var localVarAxiosArgs;
|
|
41151
|
+
return __generator(this, function (_a) {
|
|
41152
|
+
switch (_a.label) {
|
|
41153
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options)];
|
|
41154
|
+
case 1:
|
|
41155
|
+
localVarAxiosArgs = _a.sent();
|
|
41156
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41157
|
+
}
|
|
41158
|
+
});
|
|
41159
|
+
});
|
|
41160
|
+
},
|
|
41161
|
+
/**
|
|
41162
|
+
*
|
|
41163
|
+
* @summary Update survey form
|
|
41164
|
+
* @param {string} surveyFormId
|
|
41165
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41166
|
+
* @param {*} [options] Override http request option.
|
|
41167
|
+
* @throws {RequiredError}
|
|
41168
|
+
*/
|
|
41169
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41170
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41171
|
+
var localVarAxiosArgs;
|
|
41172
|
+
return __generator(this, function (_a) {
|
|
41173
|
+
switch (_a.label) {
|
|
41174
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options)];
|
|
41175
|
+
case 1:
|
|
41176
|
+
localVarAxiosArgs = _a.sent();
|
|
41177
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41178
|
+
}
|
|
41179
|
+
});
|
|
41180
|
+
});
|
|
41181
|
+
},
|
|
41182
|
+
};
|
|
41183
|
+
};
|
|
41184
|
+
exports.SurveyFormsApiFp = SurveyFormsApiFp;
|
|
41185
|
+
/**
|
|
41186
|
+
* SurveyFormsApi - factory interface
|
|
41187
|
+
* @export
|
|
41188
|
+
*/
|
|
41189
|
+
var SurveyFormsApiFactory = function (configuration, basePath, axios) {
|
|
41190
|
+
var localVarFp = (0, exports.SurveyFormsApiFp)(configuration);
|
|
41191
|
+
return {
|
|
41192
|
+
/**
|
|
41193
|
+
*
|
|
41194
|
+
* @summary Get survey forms
|
|
41195
|
+
* @param {string} [id]
|
|
41196
|
+
* @param {string} [hospitalId]
|
|
41197
|
+
* @param {string} [name]
|
|
41198
|
+
* @param {string} [languageCode]
|
|
41199
|
+
* @param {boolean} [showHidden]
|
|
41200
|
+
* @param {SurveyFormStatus} [status]
|
|
41201
|
+
* @param {number} [page]
|
|
41202
|
+
* @param {number} [limit]
|
|
41203
|
+
* @param {Date} [lastRetrieved]
|
|
41204
|
+
* @param {*} [options] Override http request option.
|
|
41205
|
+
* @throws {RequiredError}
|
|
41206
|
+
*/
|
|
41207
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41208
|
+
return localVarFp.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
41209
|
+
},
|
|
41210
|
+
/**
|
|
41211
|
+
*
|
|
41212
|
+
* @summary Create survey form
|
|
41213
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41214
|
+
* @param {*} [options] Override http request option.
|
|
41215
|
+
* @throws {RequiredError}
|
|
41216
|
+
*/
|
|
41217
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
41218
|
+
return localVarFp.apiV1SurveyformsPost(createSurveyFormCommand, options).then(function (request) { return request(axios, basePath); });
|
|
41219
|
+
},
|
|
41220
|
+
/**
|
|
41221
|
+
*
|
|
41222
|
+
* @summary Delete survey form by Id
|
|
41223
|
+
* @param {string} surveyFormId
|
|
41224
|
+
* @param {boolean} [isPermanent]
|
|
41225
|
+
* @param {*} [options] Override http request option.
|
|
41226
|
+
* @throws {RequiredError}
|
|
41227
|
+
*/
|
|
41228
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
41229
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
41230
|
+
},
|
|
41231
|
+
/**
|
|
41232
|
+
*
|
|
41233
|
+
* @summary Get survey form by Id
|
|
41234
|
+
* @param {string} surveyFormId
|
|
41235
|
+
* @param {string} [languageCode]
|
|
41236
|
+
* @param {*} [options] Override http request option.
|
|
41237
|
+
* @throws {RequiredError}
|
|
41238
|
+
*/
|
|
41239
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
41240
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
41241
|
+
},
|
|
41242
|
+
/**
|
|
41243
|
+
*
|
|
41244
|
+
* @summary Update survey form
|
|
41245
|
+
* @param {string} surveyFormId
|
|
41246
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41247
|
+
* @param {*} [options] Override http request option.
|
|
41248
|
+
* @throws {RequiredError}
|
|
41249
|
+
*/
|
|
41250
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41251
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then(function (request) { return request(axios, basePath); });
|
|
41252
|
+
},
|
|
41253
|
+
};
|
|
41254
|
+
};
|
|
41255
|
+
exports.SurveyFormsApiFactory = SurveyFormsApiFactory;
|
|
41256
|
+
/**
|
|
41257
|
+
* SurveyFormsApi - object-oriented interface
|
|
41258
|
+
* @export
|
|
41259
|
+
* @class SurveyFormsApi
|
|
41260
|
+
* @extends {BaseAPI}
|
|
41261
|
+
*/
|
|
41262
|
+
var SurveyFormsApi = /** @class */ (function (_super) {
|
|
41263
|
+
__extends(SurveyFormsApi, _super);
|
|
41264
|
+
function SurveyFormsApi() {
|
|
41265
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41266
|
+
}
|
|
41267
|
+
/**
|
|
41268
|
+
*
|
|
41269
|
+
* @summary Get survey forms
|
|
41270
|
+
* @param {string} [id]
|
|
41271
|
+
* @param {string} [hospitalId]
|
|
41272
|
+
* @param {string} [name]
|
|
41273
|
+
* @param {string} [languageCode]
|
|
41274
|
+
* @param {boolean} [showHidden]
|
|
41275
|
+
* @param {SurveyFormStatus} [status]
|
|
41276
|
+
* @param {number} [page]
|
|
41277
|
+
* @param {number} [limit]
|
|
41278
|
+
* @param {Date} [lastRetrieved]
|
|
41279
|
+
* @param {*} [options] Override http request option.
|
|
41280
|
+
* @throws {RequiredError}
|
|
41281
|
+
* @memberof SurveyFormsApi
|
|
41282
|
+
*/
|
|
41283
|
+
SurveyFormsApi.prototype.apiV1SurveyformsGet = function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41284
|
+
var _this = this;
|
|
41285
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41286
|
+
};
|
|
41287
|
+
/**
|
|
41288
|
+
*
|
|
41289
|
+
* @summary Create survey form
|
|
41290
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41291
|
+
* @param {*} [options] Override http request option.
|
|
41292
|
+
* @throws {RequiredError}
|
|
41293
|
+
* @memberof SurveyFormsApi
|
|
41294
|
+
*/
|
|
41295
|
+
SurveyFormsApi.prototype.apiV1SurveyformsPost = function (createSurveyFormCommand, options) {
|
|
41296
|
+
var _this = this;
|
|
41297
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsPost(createSurveyFormCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41298
|
+
};
|
|
41299
|
+
/**
|
|
41300
|
+
*
|
|
41301
|
+
* @summary Delete survey form by Id
|
|
41302
|
+
* @param {string} surveyFormId
|
|
41303
|
+
* @param {boolean} [isPermanent]
|
|
41304
|
+
* @param {*} [options] Override http request option.
|
|
41305
|
+
* @throws {RequiredError}
|
|
41306
|
+
* @memberof SurveyFormsApi
|
|
41307
|
+
*/
|
|
41308
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdDelete = function (surveyFormId, isPermanent, options) {
|
|
41309
|
+
var _this = this;
|
|
41310
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41311
|
+
};
|
|
41312
|
+
/**
|
|
41313
|
+
*
|
|
41314
|
+
* @summary Get survey form by Id
|
|
41315
|
+
* @param {string} surveyFormId
|
|
41316
|
+
* @param {string} [languageCode]
|
|
41317
|
+
* @param {*} [options] Override http request option.
|
|
41318
|
+
* @throws {RequiredError}
|
|
41319
|
+
* @memberof SurveyFormsApi
|
|
41320
|
+
*/
|
|
41321
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdGet = function (surveyFormId, languageCode, options) {
|
|
41322
|
+
var _this = this;
|
|
41323
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41324
|
+
};
|
|
41325
|
+
/**
|
|
41326
|
+
*
|
|
41327
|
+
* @summary Update survey form
|
|
41328
|
+
* @param {string} surveyFormId
|
|
41329
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41330
|
+
* @param {*} [options] Override http request option.
|
|
41331
|
+
* @throws {RequiredError}
|
|
41332
|
+
* @memberof SurveyFormsApi
|
|
41333
|
+
*/
|
|
41334
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdPut = function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41335
|
+
var _this = this;
|
|
41336
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41337
|
+
};
|
|
41338
|
+
return SurveyFormsApi;
|
|
41339
|
+
}(base_1.BaseAPI));
|
|
41340
|
+
exports.SurveyFormsApi = SurveyFormsApi;
|
|
41341
|
+
/**
|
|
41342
|
+
* SurveyResultsApi - axios parameter creator
|
|
41343
|
+
* @export
|
|
41344
|
+
*/
|
|
41345
|
+
var SurveyResultsApiAxiosParamCreator = function (configuration) {
|
|
41346
|
+
var _this = this;
|
|
41347
|
+
return {
|
|
41348
|
+
/**
|
|
41349
|
+
*
|
|
41350
|
+
* @summary Get survey results
|
|
41351
|
+
* @param {string} [id]
|
|
41352
|
+
* @param {string} [hospitalId]
|
|
41353
|
+
* @param {string} [name]
|
|
41354
|
+
* @param {string} [languageCode]
|
|
41355
|
+
* @param {number} [page]
|
|
41356
|
+
* @param {number} [limit]
|
|
41357
|
+
* @param {Date} [lastRetrieved]
|
|
41358
|
+
* @param {*} [options] Override http request option.
|
|
41359
|
+
* @throws {RequiredError}
|
|
41360
|
+
*/
|
|
41361
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41362
|
+
if (options === void 0) { options = {}; }
|
|
41363
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41364
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41365
|
+
return __generator(this, function (_a) {
|
|
41366
|
+
switch (_a.label) {
|
|
41367
|
+
case 0:
|
|
41368
|
+
localVarPath = "/api/v1/surveyresults";
|
|
41369
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41370
|
+
if (configuration) {
|
|
41371
|
+
baseOptions = configuration.baseOptions;
|
|
41372
|
+
}
|
|
41373
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
41374
|
+
localVarHeaderParameter = {};
|
|
41375
|
+
localVarQueryParameter = {};
|
|
41376
|
+
// authentication oauth2 required
|
|
41377
|
+
// oauth required
|
|
41378
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41379
|
+
case 1:
|
|
41380
|
+
// authentication oauth2 required
|
|
41381
|
+
// oauth required
|
|
41382
|
+
_a.sent();
|
|
41383
|
+
if (id !== undefined) {
|
|
41384
|
+
localVarQueryParameter['Id'] = id;
|
|
41385
|
+
}
|
|
41386
|
+
if (hospitalId !== undefined) {
|
|
41387
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
41388
|
+
}
|
|
41389
|
+
if (name !== undefined) {
|
|
41390
|
+
localVarQueryParameter['Name'] = name;
|
|
41391
|
+
}
|
|
41392
|
+
if (languageCode !== undefined) {
|
|
41393
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
41394
|
+
}
|
|
41395
|
+
if (page !== undefined) {
|
|
41396
|
+
localVarQueryParameter['page'] = page;
|
|
41397
|
+
}
|
|
41398
|
+
if (limit !== undefined) {
|
|
41399
|
+
localVarQueryParameter['limit'] = limit;
|
|
41400
|
+
}
|
|
41401
|
+
if (lastRetrieved !== undefined) {
|
|
41402
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
41403
|
+
lastRetrieved.toISOString() :
|
|
41404
|
+
lastRetrieved;
|
|
41405
|
+
}
|
|
41406
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41407
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41408
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41409
|
+
return [2 /*return*/, {
|
|
41410
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41411
|
+
options: localVarRequestOptions,
|
|
41412
|
+
}];
|
|
41413
|
+
}
|
|
41414
|
+
});
|
|
41415
|
+
});
|
|
41416
|
+
},
|
|
41417
|
+
/**
|
|
41418
|
+
*
|
|
41419
|
+
* @summary Delete survey result
|
|
41420
|
+
* @param {string} surveyResultId
|
|
41421
|
+
* @param {*} [options] Override http request option.
|
|
41422
|
+
* @throws {RequiredError}
|
|
41423
|
+
*/
|
|
41424
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41425
|
+
if (options === void 0) { options = {}; }
|
|
41426
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41427
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41428
|
+
return __generator(this, function (_a) {
|
|
41429
|
+
switch (_a.label) {
|
|
41430
|
+
case 0:
|
|
41431
|
+
// verify required parameter 'surveyResultId' is not null or undefined
|
|
41432
|
+
(0, common_1.assertParamExists)('apiV1SurveyresultsSurveyResultIdDelete', 'surveyResultId', surveyResultId);
|
|
41433
|
+
localVarPath = "/api/v1/surveyresults/{surveyResultId}"
|
|
41434
|
+
.replace("{".concat("surveyResultId", "}"), encodeURIComponent(String(surveyResultId)));
|
|
41435
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41436
|
+
if (configuration) {
|
|
41437
|
+
baseOptions = configuration.baseOptions;
|
|
41438
|
+
}
|
|
41439
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
41440
|
+
localVarHeaderParameter = {};
|
|
41441
|
+
localVarQueryParameter = {};
|
|
41442
|
+
// authentication oauth2 required
|
|
41443
|
+
// oauth required
|
|
41444
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41445
|
+
case 1:
|
|
41446
|
+
// authentication oauth2 required
|
|
41447
|
+
// oauth required
|
|
41448
|
+
_a.sent();
|
|
41449
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41450
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41451
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41452
|
+
return [2 /*return*/, {
|
|
41453
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41454
|
+
options: localVarRequestOptions,
|
|
41455
|
+
}];
|
|
41456
|
+
}
|
|
41457
|
+
});
|
|
41458
|
+
});
|
|
41459
|
+
},
|
|
41460
|
+
/**
|
|
41461
|
+
*
|
|
41462
|
+
* @summary Get survey result by Id
|
|
41463
|
+
* @param {string} surveyResultId
|
|
41464
|
+
* @param {*} [options] Override http request option.
|
|
41465
|
+
* @throws {RequiredError}
|
|
41466
|
+
*/
|
|
41467
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41468
|
+
if (options === void 0) { options = {}; }
|
|
41469
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41470
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41471
|
+
return __generator(this, function (_a) {
|
|
41472
|
+
switch (_a.label) {
|
|
41473
|
+
case 0:
|
|
41474
|
+
// verify required parameter 'surveyResultId' is not null or undefined
|
|
41475
|
+
(0, common_1.assertParamExists)('apiV1SurveyresultsSurveyResultIdGet', 'surveyResultId', surveyResultId);
|
|
41476
|
+
localVarPath = "/api/v1/surveyresults/{surveyResultId}"
|
|
41477
|
+
.replace("{".concat("surveyResultId", "}"), encodeURIComponent(String(surveyResultId)));
|
|
41478
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41479
|
+
if (configuration) {
|
|
41480
|
+
baseOptions = configuration.baseOptions;
|
|
41481
|
+
}
|
|
41482
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
41483
|
+
localVarHeaderParameter = {};
|
|
41484
|
+
localVarQueryParameter = {};
|
|
41485
|
+
// authentication oauth2 required
|
|
41486
|
+
// oauth required
|
|
41487
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41488
|
+
case 1:
|
|
41489
|
+
// authentication oauth2 required
|
|
41490
|
+
// oauth required
|
|
41491
|
+
_a.sent();
|
|
41492
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41493
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41494
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41495
|
+
return [2 /*return*/, {
|
|
41496
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41497
|
+
options: localVarRequestOptions,
|
|
41498
|
+
}];
|
|
41499
|
+
}
|
|
41500
|
+
});
|
|
41501
|
+
});
|
|
41502
|
+
},
|
|
41503
|
+
};
|
|
41504
|
+
};
|
|
41505
|
+
exports.SurveyResultsApiAxiosParamCreator = SurveyResultsApiAxiosParamCreator;
|
|
41506
|
+
/**
|
|
41507
|
+
* SurveyResultsApi - functional programming interface
|
|
41508
|
+
* @export
|
|
41509
|
+
*/
|
|
41510
|
+
var SurveyResultsApiFp = function (configuration) {
|
|
41511
|
+
var localVarAxiosParamCreator = (0, exports.SurveyResultsApiAxiosParamCreator)(configuration);
|
|
41512
|
+
return {
|
|
41513
|
+
/**
|
|
41514
|
+
*
|
|
41515
|
+
* @summary Get survey results
|
|
41516
|
+
* @param {string} [id]
|
|
41517
|
+
* @param {string} [hospitalId]
|
|
41518
|
+
* @param {string} [name]
|
|
41519
|
+
* @param {string} [languageCode]
|
|
41520
|
+
* @param {number} [page]
|
|
41521
|
+
* @param {number} [limit]
|
|
41522
|
+
* @param {Date} [lastRetrieved]
|
|
41523
|
+
* @param {*} [options] Override http request option.
|
|
41524
|
+
* @throws {RequiredError}
|
|
41525
|
+
*/
|
|
41526
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41528
|
+
var localVarAxiosArgs;
|
|
41529
|
+
return __generator(this, function (_a) {
|
|
41530
|
+
switch (_a.label) {
|
|
41531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options)];
|
|
41532
|
+
case 1:
|
|
41533
|
+
localVarAxiosArgs = _a.sent();
|
|
41534
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41535
|
+
}
|
|
41536
|
+
});
|
|
41537
|
+
});
|
|
41538
|
+
},
|
|
41539
|
+
/**
|
|
41540
|
+
*
|
|
41541
|
+
* @summary Delete survey result
|
|
41542
|
+
* @param {string} surveyResultId
|
|
41543
|
+
* @param {*} [options] Override http request option.
|
|
41544
|
+
* @throws {RequiredError}
|
|
41545
|
+
*/
|
|
41546
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41547
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41548
|
+
var localVarAxiosArgs;
|
|
41549
|
+
return __generator(this, function (_a) {
|
|
41550
|
+
switch (_a.label) {
|
|
41551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options)];
|
|
41552
|
+
case 1:
|
|
41553
|
+
localVarAxiosArgs = _a.sent();
|
|
41554
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41555
|
+
}
|
|
41556
|
+
});
|
|
41557
|
+
});
|
|
41558
|
+
},
|
|
41559
|
+
/**
|
|
41560
|
+
*
|
|
41561
|
+
* @summary Get survey result by Id
|
|
41562
|
+
* @param {string} surveyResultId
|
|
41563
|
+
* @param {*} [options] Override http request option.
|
|
41564
|
+
* @throws {RequiredError}
|
|
41565
|
+
*/
|
|
41566
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41567
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41568
|
+
var localVarAxiosArgs;
|
|
41569
|
+
return __generator(this, function (_a) {
|
|
41570
|
+
switch (_a.label) {
|
|
41571
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options)];
|
|
41572
|
+
case 1:
|
|
41573
|
+
localVarAxiosArgs = _a.sent();
|
|
41574
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41575
|
+
}
|
|
41576
|
+
});
|
|
41577
|
+
});
|
|
41578
|
+
},
|
|
41579
|
+
};
|
|
41580
|
+
};
|
|
41581
|
+
exports.SurveyResultsApiFp = SurveyResultsApiFp;
|
|
41582
|
+
/**
|
|
41583
|
+
* SurveyResultsApi - factory interface
|
|
41584
|
+
* @export
|
|
41585
|
+
*/
|
|
41586
|
+
var SurveyResultsApiFactory = function (configuration, basePath, axios) {
|
|
41587
|
+
var localVarFp = (0, exports.SurveyResultsApiFp)(configuration);
|
|
41588
|
+
return {
|
|
41589
|
+
/**
|
|
41590
|
+
*
|
|
41591
|
+
* @summary Get survey results
|
|
41592
|
+
* @param {string} [id]
|
|
41593
|
+
* @param {string} [hospitalId]
|
|
41594
|
+
* @param {string} [name]
|
|
41595
|
+
* @param {string} [languageCode]
|
|
41596
|
+
* @param {number} [page]
|
|
41597
|
+
* @param {number} [limit]
|
|
41598
|
+
* @param {Date} [lastRetrieved]
|
|
41599
|
+
* @param {*} [options] Override http request option.
|
|
41600
|
+
* @throws {RequiredError}
|
|
41601
|
+
*/
|
|
41602
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41603
|
+
return localVarFp.apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
41604
|
+
},
|
|
41605
|
+
/**
|
|
41606
|
+
*
|
|
41607
|
+
* @summary Delete survey result
|
|
41608
|
+
* @param {string} surveyResultId
|
|
41609
|
+
* @param {*} [options] Override http request option.
|
|
41610
|
+
* @throws {RequiredError}
|
|
41611
|
+
*/
|
|
41612
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41613
|
+
return localVarFp.apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options).then(function (request) { return request(axios, basePath); });
|
|
41614
|
+
},
|
|
41615
|
+
/**
|
|
41616
|
+
*
|
|
41617
|
+
* @summary Get survey result by Id
|
|
41618
|
+
* @param {string} surveyResultId
|
|
41619
|
+
* @param {*} [options] Override http request option.
|
|
41620
|
+
* @throws {RequiredError}
|
|
41621
|
+
*/
|
|
41622
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41623
|
+
return localVarFp.apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options).then(function (request) { return request(axios, basePath); });
|
|
41624
|
+
},
|
|
41625
|
+
};
|
|
41626
|
+
};
|
|
41627
|
+
exports.SurveyResultsApiFactory = SurveyResultsApiFactory;
|
|
41628
|
+
/**
|
|
41629
|
+
* SurveyResultsApi - object-oriented interface
|
|
41630
|
+
* @export
|
|
41631
|
+
* @class SurveyResultsApi
|
|
41632
|
+
* @extends {BaseAPI}
|
|
41633
|
+
*/
|
|
41634
|
+
var SurveyResultsApi = /** @class */ (function (_super) {
|
|
41635
|
+
__extends(SurveyResultsApi, _super);
|
|
41636
|
+
function SurveyResultsApi() {
|
|
41637
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41638
|
+
}
|
|
41639
|
+
/**
|
|
41640
|
+
*
|
|
41641
|
+
* @summary Get survey results
|
|
41642
|
+
* @param {string} [id]
|
|
41643
|
+
* @param {string} [hospitalId]
|
|
41644
|
+
* @param {string} [name]
|
|
41645
|
+
* @param {string} [languageCode]
|
|
41646
|
+
* @param {number} [page]
|
|
41647
|
+
* @param {number} [limit]
|
|
41648
|
+
* @param {Date} [lastRetrieved]
|
|
41649
|
+
* @param {*} [options] Override http request option.
|
|
41650
|
+
* @throws {RequiredError}
|
|
41651
|
+
* @memberof SurveyResultsApi
|
|
41652
|
+
*/
|
|
41653
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsGet = function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41654
|
+
var _this = this;
|
|
41655
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41656
|
+
};
|
|
41657
|
+
/**
|
|
41658
|
+
*
|
|
41659
|
+
* @summary Delete survey result
|
|
41660
|
+
* @param {string} surveyResultId
|
|
41661
|
+
* @param {*} [options] Override http request option.
|
|
41662
|
+
* @throws {RequiredError}
|
|
41663
|
+
* @memberof SurveyResultsApi
|
|
41664
|
+
*/
|
|
41665
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsSurveyResultIdDelete = function (surveyResultId, options) {
|
|
41666
|
+
var _this = this;
|
|
41667
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41668
|
+
};
|
|
41669
|
+
/**
|
|
41670
|
+
*
|
|
41671
|
+
* @summary Get survey result by Id
|
|
41672
|
+
* @param {string} surveyResultId
|
|
41673
|
+
* @param {*} [options] Override http request option.
|
|
41674
|
+
* @throws {RequiredError}
|
|
41675
|
+
* @memberof SurveyResultsApi
|
|
41676
|
+
*/
|
|
41677
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsSurveyResultIdGet = function (surveyResultId, options) {
|
|
41678
|
+
var _this = this;
|
|
41679
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41680
|
+
};
|
|
41681
|
+
return SurveyResultsApi;
|
|
41682
|
+
}(base_1.BaseAPI));
|
|
41683
|
+
exports.SurveyResultsApi = SurveyResultsApi;
|
|
40767
41684
|
/**
|
|
40768
41685
|
* TagsApi - axios parameter creator
|
|
40769
41686
|
* @export
|