ch-admin-api-client-typescript 4.8.1 → 4.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +1200 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +935 -11
- 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
|
|
@@ -20939,11 +20967,12 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
20939
20967
|
* @summary Get group channel list
|
|
20940
20968
|
* @param {string} [nextToken]
|
|
20941
20969
|
* @param {string} [userId]
|
|
20970
|
+
* @param {string} [customType]
|
|
20942
20971
|
* @param {number} [limit]
|
|
20943
20972
|
* @param {*} [options] Override http request option.
|
|
20944
20973
|
* @throws {RequiredError}
|
|
20945
20974
|
*/
|
|
20946
|
-
apiV1GroupchannelsGet: function (nextToken, userId, limit, options) {
|
|
20975
|
+
apiV1GroupchannelsGet: function (nextToken, userId, customType, limit, options) {
|
|
20947
20976
|
if (options === void 0) { options = {}; }
|
|
20948
20977
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20949
20978
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -20971,6 +21000,9 @@ var GroupChannelsApiAxiosParamCreator = function (configuration) {
|
|
|
20971
21000
|
if (userId !== undefined) {
|
|
20972
21001
|
localVarQueryParameter['UserId'] = userId;
|
|
20973
21002
|
}
|
|
21003
|
+
if (customType !== undefined) {
|
|
21004
|
+
localVarQueryParameter['CustomType'] = customType;
|
|
21005
|
+
}
|
|
20974
21006
|
if (limit !== undefined) {
|
|
20975
21007
|
localVarQueryParameter['Limit'] = limit;
|
|
20976
21008
|
}
|
|
@@ -21021,16 +21053,17 @@ var GroupChannelsApiFp = function (configuration) {
|
|
|
21021
21053
|
* @summary Get group channel list
|
|
21022
21054
|
* @param {string} [nextToken]
|
|
21023
21055
|
* @param {string} [userId]
|
|
21056
|
+
* @param {string} [customType]
|
|
21024
21057
|
* @param {number} [limit]
|
|
21025
21058
|
* @param {*} [options] Override http request option.
|
|
21026
21059
|
* @throws {RequiredError}
|
|
21027
21060
|
*/
|
|
21028
|
-
apiV1GroupchannelsGet: function (nextToken, userId, limit, options) {
|
|
21061
|
+
apiV1GroupchannelsGet: function (nextToken, userId, customType, limit, options) {
|
|
21029
21062
|
return __awaiter(this, void 0, void 0, function () {
|
|
21030
21063
|
var localVarAxiosArgs;
|
|
21031
21064
|
return __generator(this, function (_a) {
|
|
21032
21065
|
switch (_a.label) {
|
|
21033
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsGet(nextToken, userId, limit, options)];
|
|
21066
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1GroupchannelsGet(nextToken, userId, customType, limit, options)];
|
|
21034
21067
|
case 1:
|
|
21035
21068
|
localVarAxiosArgs = _a.sent();
|
|
21036
21069
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -21064,12 +21097,13 @@ var GroupChannelsApiFactory = function (configuration, basePath, axios) {
|
|
|
21064
21097
|
* @summary Get group channel list
|
|
21065
21098
|
* @param {string} [nextToken]
|
|
21066
21099
|
* @param {string} [userId]
|
|
21100
|
+
* @param {string} [customType]
|
|
21067
21101
|
* @param {number} [limit]
|
|
21068
21102
|
* @param {*} [options] Override http request option.
|
|
21069
21103
|
* @throws {RequiredError}
|
|
21070
21104
|
*/
|
|
21071
|
-
apiV1GroupchannelsGet: function (nextToken, userId, limit, options) {
|
|
21072
|
-
return localVarFp.apiV1GroupchannelsGet(nextToken, userId, limit, options).then(function (request) { return request(axios, basePath); });
|
|
21105
|
+
apiV1GroupchannelsGet: function (nextToken, userId, customType, limit, options) {
|
|
21106
|
+
return localVarFp.apiV1GroupchannelsGet(nextToken, userId, customType, limit, options).then(function (request) { return request(axios, basePath); });
|
|
21073
21107
|
},
|
|
21074
21108
|
};
|
|
21075
21109
|
};
|
|
@@ -21103,14 +21137,15 @@ var GroupChannelsApi = /** @class */ (function (_super) {
|
|
|
21103
21137
|
* @summary Get group channel list
|
|
21104
21138
|
* @param {string} [nextToken]
|
|
21105
21139
|
* @param {string} [userId]
|
|
21140
|
+
* @param {string} [customType]
|
|
21106
21141
|
* @param {number} [limit]
|
|
21107
21142
|
* @param {*} [options] Override http request option.
|
|
21108
21143
|
* @throws {RequiredError}
|
|
21109
21144
|
* @memberof GroupChannelsApi
|
|
21110
21145
|
*/
|
|
21111
|
-
GroupChannelsApi.prototype.apiV1GroupchannelsGet = function (nextToken, userId, limit, options) {
|
|
21146
|
+
GroupChannelsApi.prototype.apiV1GroupchannelsGet = function (nextToken, userId, customType, limit, options) {
|
|
21112
21147
|
var _this = this;
|
|
21113
|
-
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsGet(nextToken, userId, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21148
|
+
return (0, exports.GroupChannelsApiFp)(this.configuration).apiV1GroupchannelsGet(nextToken, userId, customType, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21114
21149
|
};
|
|
21115
21150
|
return GroupChannelsApi;
|
|
21116
21151
|
}(base_1.BaseAPI));
|
|
@@ -40764,6 +40799,895 @@ var SpecialtyTypesApi = /** @class */ (function (_super) {
|
|
|
40764
40799
|
return SpecialtyTypesApi;
|
|
40765
40800
|
}(base_1.BaseAPI));
|
|
40766
40801
|
exports.SpecialtyTypesApi = SpecialtyTypesApi;
|
|
40802
|
+
/**
|
|
40803
|
+
* SurveyFormsApi - axios parameter creator
|
|
40804
|
+
* @export
|
|
40805
|
+
*/
|
|
40806
|
+
var SurveyFormsApiAxiosParamCreator = function (configuration) {
|
|
40807
|
+
var _this = this;
|
|
40808
|
+
return {
|
|
40809
|
+
/**
|
|
40810
|
+
*
|
|
40811
|
+
* @summary Get survey forms
|
|
40812
|
+
* @param {string} [id]
|
|
40813
|
+
* @param {string} [hospitalId]
|
|
40814
|
+
* @param {string} [name]
|
|
40815
|
+
* @param {string} [languageCode]
|
|
40816
|
+
* @param {boolean} [showHidden]
|
|
40817
|
+
* @param {SurveyFormStatus} [status]
|
|
40818
|
+
* @param {number} [page]
|
|
40819
|
+
* @param {number} [limit]
|
|
40820
|
+
* @param {Date} [lastRetrieved]
|
|
40821
|
+
* @param {*} [options] Override http request option.
|
|
40822
|
+
* @throws {RequiredError}
|
|
40823
|
+
*/
|
|
40824
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
40825
|
+
if (options === void 0) { options = {}; }
|
|
40826
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40827
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40828
|
+
return __generator(this, function (_a) {
|
|
40829
|
+
switch (_a.label) {
|
|
40830
|
+
case 0:
|
|
40831
|
+
localVarPath = "/api/v1/surveyforms";
|
|
40832
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40833
|
+
if (configuration) {
|
|
40834
|
+
baseOptions = configuration.baseOptions;
|
|
40835
|
+
}
|
|
40836
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
40837
|
+
localVarHeaderParameter = {};
|
|
40838
|
+
localVarQueryParameter = {};
|
|
40839
|
+
// authentication oauth2 required
|
|
40840
|
+
// oauth required
|
|
40841
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40842
|
+
case 1:
|
|
40843
|
+
// authentication oauth2 required
|
|
40844
|
+
// oauth required
|
|
40845
|
+
_a.sent();
|
|
40846
|
+
if (id !== undefined) {
|
|
40847
|
+
localVarQueryParameter['Id'] = id;
|
|
40848
|
+
}
|
|
40849
|
+
if (hospitalId !== undefined) {
|
|
40850
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
40851
|
+
}
|
|
40852
|
+
if (name !== undefined) {
|
|
40853
|
+
localVarQueryParameter['Name'] = name;
|
|
40854
|
+
}
|
|
40855
|
+
if (languageCode !== undefined) {
|
|
40856
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
40857
|
+
}
|
|
40858
|
+
if (showHidden !== undefined) {
|
|
40859
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
40860
|
+
}
|
|
40861
|
+
if (status !== undefined) {
|
|
40862
|
+
localVarQueryParameter['Status'] = status;
|
|
40863
|
+
}
|
|
40864
|
+
if (page !== undefined) {
|
|
40865
|
+
localVarQueryParameter['page'] = page;
|
|
40866
|
+
}
|
|
40867
|
+
if (limit !== undefined) {
|
|
40868
|
+
localVarQueryParameter['limit'] = limit;
|
|
40869
|
+
}
|
|
40870
|
+
if (lastRetrieved !== undefined) {
|
|
40871
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
40872
|
+
lastRetrieved.toISOString() :
|
|
40873
|
+
lastRetrieved;
|
|
40874
|
+
}
|
|
40875
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40876
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40877
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40878
|
+
return [2 /*return*/, {
|
|
40879
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40880
|
+
options: localVarRequestOptions,
|
|
40881
|
+
}];
|
|
40882
|
+
}
|
|
40883
|
+
});
|
|
40884
|
+
});
|
|
40885
|
+
},
|
|
40886
|
+
/**
|
|
40887
|
+
*
|
|
40888
|
+
* @summary Create survey form
|
|
40889
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
40890
|
+
* @param {*} [options] Override http request option.
|
|
40891
|
+
* @throws {RequiredError}
|
|
40892
|
+
*/
|
|
40893
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
40894
|
+
if (options === void 0) { options = {}; }
|
|
40895
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40896
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40897
|
+
return __generator(this, function (_a) {
|
|
40898
|
+
switch (_a.label) {
|
|
40899
|
+
case 0:
|
|
40900
|
+
localVarPath = "/api/v1/surveyforms";
|
|
40901
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40902
|
+
if (configuration) {
|
|
40903
|
+
baseOptions = configuration.baseOptions;
|
|
40904
|
+
}
|
|
40905
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
40906
|
+
localVarHeaderParameter = {};
|
|
40907
|
+
localVarQueryParameter = {};
|
|
40908
|
+
// authentication oauth2 required
|
|
40909
|
+
// oauth required
|
|
40910
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40911
|
+
case 1:
|
|
40912
|
+
// authentication oauth2 required
|
|
40913
|
+
// oauth required
|
|
40914
|
+
_a.sent();
|
|
40915
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40916
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40917
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40918
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40919
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSurveyFormCommand, localVarRequestOptions, configuration);
|
|
40920
|
+
return [2 /*return*/, {
|
|
40921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40922
|
+
options: localVarRequestOptions,
|
|
40923
|
+
}];
|
|
40924
|
+
}
|
|
40925
|
+
});
|
|
40926
|
+
});
|
|
40927
|
+
},
|
|
40928
|
+
/**
|
|
40929
|
+
*
|
|
40930
|
+
* @summary Delete survey form by Id
|
|
40931
|
+
* @param {string} surveyFormId
|
|
40932
|
+
* @param {boolean} [isPermanent]
|
|
40933
|
+
* @param {*} [options] Override http request option.
|
|
40934
|
+
* @throws {RequiredError}
|
|
40935
|
+
*/
|
|
40936
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
40937
|
+
if (options === void 0) { options = {}; }
|
|
40938
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40939
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40940
|
+
return __generator(this, function (_a) {
|
|
40941
|
+
switch (_a.label) {
|
|
40942
|
+
case 0:
|
|
40943
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
40944
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdDelete', 'surveyFormId', surveyFormId);
|
|
40945
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
40946
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
40947
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40948
|
+
if (configuration) {
|
|
40949
|
+
baseOptions = configuration.baseOptions;
|
|
40950
|
+
}
|
|
40951
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
40952
|
+
localVarHeaderParameter = {};
|
|
40953
|
+
localVarQueryParameter = {};
|
|
40954
|
+
// authentication oauth2 required
|
|
40955
|
+
// oauth required
|
|
40956
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
40957
|
+
case 1:
|
|
40958
|
+
// authentication oauth2 required
|
|
40959
|
+
// oauth required
|
|
40960
|
+
_a.sent();
|
|
40961
|
+
if (isPermanent !== undefined) {
|
|
40962
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
40963
|
+
}
|
|
40964
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
40965
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40966
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
40967
|
+
return [2 /*return*/, {
|
|
40968
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
40969
|
+
options: localVarRequestOptions,
|
|
40970
|
+
}];
|
|
40971
|
+
}
|
|
40972
|
+
});
|
|
40973
|
+
});
|
|
40974
|
+
},
|
|
40975
|
+
/**
|
|
40976
|
+
*
|
|
40977
|
+
* @summary Get survey form by Id
|
|
40978
|
+
* @param {string} surveyFormId
|
|
40979
|
+
* @param {string} [languageCode]
|
|
40980
|
+
* @param {*} [options] Override http request option.
|
|
40981
|
+
* @throws {RequiredError}
|
|
40982
|
+
*/
|
|
40983
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
40984
|
+
if (options === void 0) { options = {}; }
|
|
40985
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
40986
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
40987
|
+
return __generator(this, function (_a) {
|
|
40988
|
+
switch (_a.label) {
|
|
40989
|
+
case 0:
|
|
40990
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
40991
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId);
|
|
40992
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
40993
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
40994
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
40995
|
+
if (configuration) {
|
|
40996
|
+
baseOptions = configuration.baseOptions;
|
|
40997
|
+
}
|
|
40998
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
40999
|
+
localVarHeaderParameter = {};
|
|
41000
|
+
localVarQueryParameter = {};
|
|
41001
|
+
// authentication oauth2 required
|
|
41002
|
+
// oauth required
|
|
41003
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41004
|
+
case 1:
|
|
41005
|
+
// authentication oauth2 required
|
|
41006
|
+
// oauth required
|
|
41007
|
+
_a.sent();
|
|
41008
|
+
if (languageCode !== undefined) {
|
|
41009
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
41010
|
+
}
|
|
41011
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41012
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41013
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41014
|
+
return [2 /*return*/, {
|
|
41015
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41016
|
+
options: localVarRequestOptions,
|
|
41017
|
+
}];
|
|
41018
|
+
}
|
|
41019
|
+
});
|
|
41020
|
+
});
|
|
41021
|
+
},
|
|
41022
|
+
/**
|
|
41023
|
+
*
|
|
41024
|
+
* @summary Update survey form
|
|
41025
|
+
* @param {string} surveyFormId
|
|
41026
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41027
|
+
* @param {*} [options] Override http request option.
|
|
41028
|
+
* @throws {RequiredError}
|
|
41029
|
+
*/
|
|
41030
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41031
|
+
if (options === void 0) { options = {}; }
|
|
41032
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41033
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41034
|
+
return __generator(this, function (_a) {
|
|
41035
|
+
switch (_a.label) {
|
|
41036
|
+
case 0:
|
|
41037
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
41038
|
+
(0, common_1.assertParamExists)('apiV1SurveyformsSurveyFormIdPut', 'surveyFormId', surveyFormId);
|
|
41039
|
+
localVarPath = "/api/v1/surveyforms/{surveyFormId}"
|
|
41040
|
+
.replace("{".concat("surveyFormId", "}"), encodeURIComponent(String(surveyFormId)));
|
|
41041
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41042
|
+
if (configuration) {
|
|
41043
|
+
baseOptions = configuration.baseOptions;
|
|
41044
|
+
}
|
|
41045
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
41046
|
+
localVarHeaderParameter = {};
|
|
41047
|
+
localVarQueryParameter = {};
|
|
41048
|
+
// authentication oauth2 required
|
|
41049
|
+
// oauth required
|
|
41050
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41051
|
+
case 1:
|
|
41052
|
+
// authentication oauth2 required
|
|
41053
|
+
// oauth required
|
|
41054
|
+
_a.sent();
|
|
41055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41057
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41058
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSurveyFormCommand, localVarRequestOptions, configuration);
|
|
41060
|
+
return [2 /*return*/, {
|
|
41061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41062
|
+
options: localVarRequestOptions,
|
|
41063
|
+
}];
|
|
41064
|
+
}
|
|
41065
|
+
});
|
|
41066
|
+
});
|
|
41067
|
+
},
|
|
41068
|
+
};
|
|
41069
|
+
};
|
|
41070
|
+
exports.SurveyFormsApiAxiosParamCreator = SurveyFormsApiAxiosParamCreator;
|
|
41071
|
+
/**
|
|
41072
|
+
* SurveyFormsApi - functional programming interface
|
|
41073
|
+
* @export
|
|
41074
|
+
*/
|
|
41075
|
+
var SurveyFormsApiFp = function (configuration) {
|
|
41076
|
+
var localVarAxiosParamCreator = (0, exports.SurveyFormsApiAxiosParamCreator)(configuration);
|
|
41077
|
+
return {
|
|
41078
|
+
/**
|
|
41079
|
+
*
|
|
41080
|
+
* @summary Get survey forms
|
|
41081
|
+
* @param {string} [id]
|
|
41082
|
+
* @param {string} [hospitalId]
|
|
41083
|
+
* @param {string} [name]
|
|
41084
|
+
* @param {string} [languageCode]
|
|
41085
|
+
* @param {boolean} [showHidden]
|
|
41086
|
+
* @param {SurveyFormStatus} [status]
|
|
41087
|
+
* @param {number} [page]
|
|
41088
|
+
* @param {number} [limit]
|
|
41089
|
+
* @param {Date} [lastRetrieved]
|
|
41090
|
+
* @param {*} [options] Override http request option.
|
|
41091
|
+
* @throws {RequiredError}
|
|
41092
|
+
*/
|
|
41093
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41094
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41095
|
+
var localVarAxiosArgs;
|
|
41096
|
+
return __generator(this, function (_a) {
|
|
41097
|
+
switch (_a.label) {
|
|
41098
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options)];
|
|
41099
|
+
case 1:
|
|
41100
|
+
localVarAxiosArgs = _a.sent();
|
|
41101
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41102
|
+
}
|
|
41103
|
+
});
|
|
41104
|
+
});
|
|
41105
|
+
},
|
|
41106
|
+
/**
|
|
41107
|
+
*
|
|
41108
|
+
* @summary Create survey form
|
|
41109
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41110
|
+
* @param {*} [options] Override http request option.
|
|
41111
|
+
* @throws {RequiredError}
|
|
41112
|
+
*/
|
|
41113
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
41114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41115
|
+
var localVarAxiosArgs;
|
|
41116
|
+
return __generator(this, function (_a) {
|
|
41117
|
+
switch (_a.label) {
|
|
41118
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsPost(createSurveyFormCommand, options)];
|
|
41119
|
+
case 1:
|
|
41120
|
+
localVarAxiosArgs = _a.sent();
|
|
41121
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41122
|
+
}
|
|
41123
|
+
});
|
|
41124
|
+
});
|
|
41125
|
+
},
|
|
41126
|
+
/**
|
|
41127
|
+
*
|
|
41128
|
+
* @summary Delete survey form by Id
|
|
41129
|
+
* @param {string} surveyFormId
|
|
41130
|
+
* @param {boolean} [isPermanent]
|
|
41131
|
+
* @param {*} [options] Override http request option.
|
|
41132
|
+
* @throws {RequiredError}
|
|
41133
|
+
*/
|
|
41134
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
41135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41136
|
+
var localVarAxiosArgs;
|
|
41137
|
+
return __generator(this, function (_a) {
|
|
41138
|
+
switch (_a.label) {
|
|
41139
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options)];
|
|
41140
|
+
case 1:
|
|
41141
|
+
localVarAxiosArgs = _a.sent();
|
|
41142
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41143
|
+
}
|
|
41144
|
+
});
|
|
41145
|
+
});
|
|
41146
|
+
},
|
|
41147
|
+
/**
|
|
41148
|
+
*
|
|
41149
|
+
* @summary Get survey form by Id
|
|
41150
|
+
* @param {string} surveyFormId
|
|
41151
|
+
* @param {string} [languageCode]
|
|
41152
|
+
* @param {*} [options] Override http request option.
|
|
41153
|
+
* @throws {RequiredError}
|
|
41154
|
+
*/
|
|
41155
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
41156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41157
|
+
var localVarAxiosArgs;
|
|
41158
|
+
return __generator(this, function (_a) {
|
|
41159
|
+
switch (_a.label) {
|
|
41160
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options)];
|
|
41161
|
+
case 1:
|
|
41162
|
+
localVarAxiosArgs = _a.sent();
|
|
41163
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41164
|
+
}
|
|
41165
|
+
});
|
|
41166
|
+
});
|
|
41167
|
+
},
|
|
41168
|
+
/**
|
|
41169
|
+
*
|
|
41170
|
+
* @summary Update survey form
|
|
41171
|
+
* @param {string} surveyFormId
|
|
41172
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41173
|
+
* @param {*} [options] Override http request option.
|
|
41174
|
+
* @throws {RequiredError}
|
|
41175
|
+
*/
|
|
41176
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41177
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41178
|
+
var localVarAxiosArgs;
|
|
41179
|
+
return __generator(this, function (_a) {
|
|
41180
|
+
switch (_a.label) {
|
|
41181
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options)];
|
|
41182
|
+
case 1:
|
|
41183
|
+
localVarAxiosArgs = _a.sent();
|
|
41184
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41185
|
+
}
|
|
41186
|
+
});
|
|
41187
|
+
});
|
|
41188
|
+
},
|
|
41189
|
+
};
|
|
41190
|
+
};
|
|
41191
|
+
exports.SurveyFormsApiFp = SurveyFormsApiFp;
|
|
41192
|
+
/**
|
|
41193
|
+
* SurveyFormsApi - factory interface
|
|
41194
|
+
* @export
|
|
41195
|
+
*/
|
|
41196
|
+
var SurveyFormsApiFactory = function (configuration, basePath, axios) {
|
|
41197
|
+
var localVarFp = (0, exports.SurveyFormsApiFp)(configuration);
|
|
41198
|
+
return {
|
|
41199
|
+
/**
|
|
41200
|
+
*
|
|
41201
|
+
* @summary Get survey forms
|
|
41202
|
+
* @param {string} [id]
|
|
41203
|
+
* @param {string} [hospitalId]
|
|
41204
|
+
* @param {string} [name]
|
|
41205
|
+
* @param {string} [languageCode]
|
|
41206
|
+
* @param {boolean} [showHidden]
|
|
41207
|
+
* @param {SurveyFormStatus} [status]
|
|
41208
|
+
* @param {number} [page]
|
|
41209
|
+
* @param {number} [limit]
|
|
41210
|
+
* @param {Date} [lastRetrieved]
|
|
41211
|
+
* @param {*} [options] Override http request option.
|
|
41212
|
+
* @throws {RequiredError}
|
|
41213
|
+
*/
|
|
41214
|
+
apiV1SurveyformsGet: function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41215
|
+
return localVarFp.apiV1SurveyformsGet(id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
41216
|
+
},
|
|
41217
|
+
/**
|
|
41218
|
+
*
|
|
41219
|
+
* @summary Create survey form
|
|
41220
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41221
|
+
* @param {*} [options] Override http request option.
|
|
41222
|
+
* @throws {RequiredError}
|
|
41223
|
+
*/
|
|
41224
|
+
apiV1SurveyformsPost: function (createSurveyFormCommand, options) {
|
|
41225
|
+
return localVarFp.apiV1SurveyformsPost(createSurveyFormCommand, options).then(function (request) { return request(axios, basePath); });
|
|
41226
|
+
},
|
|
41227
|
+
/**
|
|
41228
|
+
*
|
|
41229
|
+
* @summary Delete survey form by Id
|
|
41230
|
+
* @param {string} surveyFormId
|
|
41231
|
+
* @param {boolean} [isPermanent]
|
|
41232
|
+
* @param {*} [options] Override http request option.
|
|
41233
|
+
* @throws {RequiredError}
|
|
41234
|
+
*/
|
|
41235
|
+
apiV1SurveyformsSurveyFormIdDelete: function (surveyFormId, isPermanent, options) {
|
|
41236
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
41237
|
+
},
|
|
41238
|
+
/**
|
|
41239
|
+
*
|
|
41240
|
+
* @summary Get survey form by Id
|
|
41241
|
+
* @param {string} surveyFormId
|
|
41242
|
+
* @param {string} [languageCode]
|
|
41243
|
+
* @param {*} [options] Override http request option.
|
|
41244
|
+
* @throws {RequiredError}
|
|
41245
|
+
*/
|
|
41246
|
+
apiV1SurveyformsSurveyFormIdGet: function (surveyFormId, languageCode, options) {
|
|
41247
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
41248
|
+
},
|
|
41249
|
+
/**
|
|
41250
|
+
*
|
|
41251
|
+
* @summary Update survey form
|
|
41252
|
+
* @param {string} surveyFormId
|
|
41253
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41254
|
+
* @param {*} [options] Override http request option.
|
|
41255
|
+
* @throws {RequiredError}
|
|
41256
|
+
*/
|
|
41257
|
+
apiV1SurveyformsSurveyFormIdPut: function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41258
|
+
return localVarFp.apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then(function (request) { return request(axios, basePath); });
|
|
41259
|
+
},
|
|
41260
|
+
};
|
|
41261
|
+
};
|
|
41262
|
+
exports.SurveyFormsApiFactory = SurveyFormsApiFactory;
|
|
41263
|
+
/**
|
|
41264
|
+
* SurveyFormsApi - object-oriented interface
|
|
41265
|
+
* @export
|
|
41266
|
+
* @class SurveyFormsApi
|
|
41267
|
+
* @extends {BaseAPI}
|
|
41268
|
+
*/
|
|
41269
|
+
var SurveyFormsApi = /** @class */ (function (_super) {
|
|
41270
|
+
__extends(SurveyFormsApi, _super);
|
|
41271
|
+
function SurveyFormsApi() {
|
|
41272
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41273
|
+
}
|
|
41274
|
+
/**
|
|
41275
|
+
*
|
|
41276
|
+
* @summary Get survey forms
|
|
41277
|
+
* @param {string} [id]
|
|
41278
|
+
* @param {string} [hospitalId]
|
|
41279
|
+
* @param {string} [name]
|
|
41280
|
+
* @param {string} [languageCode]
|
|
41281
|
+
* @param {boolean} [showHidden]
|
|
41282
|
+
* @param {SurveyFormStatus} [status]
|
|
41283
|
+
* @param {number} [page]
|
|
41284
|
+
* @param {number} [limit]
|
|
41285
|
+
* @param {Date} [lastRetrieved]
|
|
41286
|
+
* @param {*} [options] Override http request option.
|
|
41287
|
+
* @throws {RequiredError}
|
|
41288
|
+
* @memberof SurveyFormsApi
|
|
41289
|
+
*/
|
|
41290
|
+
SurveyFormsApi.prototype.apiV1SurveyformsGet = function (id, hospitalId, name, languageCode, showHidden, status, page, limit, lastRetrieved, options) {
|
|
41291
|
+
var _this = this;
|
|
41292
|
+
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); });
|
|
41293
|
+
};
|
|
41294
|
+
/**
|
|
41295
|
+
*
|
|
41296
|
+
* @summary Create survey form
|
|
41297
|
+
* @param {CreateSurveyFormCommand} [createSurveyFormCommand]
|
|
41298
|
+
* @param {*} [options] Override http request option.
|
|
41299
|
+
* @throws {RequiredError}
|
|
41300
|
+
* @memberof SurveyFormsApi
|
|
41301
|
+
*/
|
|
41302
|
+
SurveyFormsApi.prototype.apiV1SurveyformsPost = function (createSurveyFormCommand, options) {
|
|
41303
|
+
var _this = this;
|
|
41304
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsPost(createSurveyFormCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41305
|
+
};
|
|
41306
|
+
/**
|
|
41307
|
+
*
|
|
41308
|
+
* @summary Delete survey form by Id
|
|
41309
|
+
* @param {string} surveyFormId
|
|
41310
|
+
* @param {boolean} [isPermanent]
|
|
41311
|
+
* @param {*} [options] Override http request option.
|
|
41312
|
+
* @throws {RequiredError}
|
|
41313
|
+
* @memberof SurveyFormsApi
|
|
41314
|
+
*/
|
|
41315
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdDelete = function (surveyFormId, isPermanent, options) {
|
|
41316
|
+
var _this = this;
|
|
41317
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdDelete(surveyFormId, isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41318
|
+
};
|
|
41319
|
+
/**
|
|
41320
|
+
*
|
|
41321
|
+
* @summary Get survey form by Id
|
|
41322
|
+
* @param {string} surveyFormId
|
|
41323
|
+
* @param {string} [languageCode]
|
|
41324
|
+
* @param {*} [options] Override http request option.
|
|
41325
|
+
* @throws {RequiredError}
|
|
41326
|
+
* @memberof SurveyFormsApi
|
|
41327
|
+
*/
|
|
41328
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdGet = function (surveyFormId, languageCode, options) {
|
|
41329
|
+
var _this = this;
|
|
41330
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdGet(surveyFormId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41331
|
+
};
|
|
41332
|
+
/**
|
|
41333
|
+
*
|
|
41334
|
+
* @summary Update survey form
|
|
41335
|
+
* @param {string} surveyFormId
|
|
41336
|
+
* @param {UpdateSurveyFormCommand} [updateSurveyFormCommand]
|
|
41337
|
+
* @param {*} [options] Override http request option.
|
|
41338
|
+
* @throws {RequiredError}
|
|
41339
|
+
* @memberof SurveyFormsApi
|
|
41340
|
+
*/
|
|
41341
|
+
SurveyFormsApi.prototype.apiV1SurveyformsSurveyFormIdPut = function (surveyFormId, updateSurveyFormCommand, options) {
|
|
41342
|
+
var _this = this;
|
|
41343
|
+
return (0, exports.SurveyFormsApiFp)(this.configuration).apiV1SurveyformsSurveyFormIdPut(surveyFormId, updateSurveyFormCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41344
|
+
};
|
|
41345
|
+
return SurveyFormsApi;
|
|
41346
|
+
}(base_1.BaseAPI));
|
|
41347
|
+
exports.SurveyFormsApi = SurveyFormsApi;
|
|
41348
|
+
/**
|
|
41349
|
+
* SurveyResultsApi - axios parameter creator
|
|
41350
|
+
* @export
|
|
41351
|
+
*/
|
|
41352
|
+
var SurveyResultsApiAxiosParamCreator = function (configuration) {
|
|
41353
|
+
var _this = this;
|
|
41354
|
+
return {
|
|
41355
|
+
/**
|
|
41356
|
+
*
|
|
41357
|
+
* @summary Get survey results
|
|
41358
|
+
* @param {string} [id]
|
|
41359
|
+
* @param {string} [hospitalId]
|
|
41360
|
+
* @param {string} [name]
|
|
41361
|
+
* @param {string} [languageCode]
|
|
41362
|
+
* @param {number} [page]
|
|
41363
|
+
* @param {number} [limit]
|
|
41364
|
+
* @param {Date} [lastRetrieved]
|
|
41365
|
+
* @param {*} [options] Override http request option.
|
|
41366
|
+
* @throws {RequiredError}
|
|
41367
|
+
*/
|
|
41368
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41369
|
+
if (options === void 0) { options = {}; }
|
|
41370
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41371
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41372
|
+
return __generator(this, function (_a) {
|
|
41373
|
+
switch (_a.label) {
|
|
41374
|
+
case 0:
|
|
41375
|
+
localVarPath = "/api/v1/surveyresults";
|
|
41376
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41377
|
+
if (configuration) {
|
|
41378
|
+
baseOptions = configuration.baseOptions;
|
|
41379
|
+
}
|
|
41380
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
41381
|
+
localVarHeaderParameter = {};
|
|
41382
|
+
localVarQueryParameter = {};
|
|
41383
|
+
// authentication oauth2 required
|
|
41384
|
+
// oauth required
|
|
41385
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41386
|
+
case 1:
|
|
41387
|
+
// authentication oauth2 required
|
|
41388
|
+
// oauth required
|
|
41389
|
+
_a.sent();
|
|
41390
|
+
if (id !== undefined) {
|
|
41391
|
+
localVarQueryParameter['Id'] = id;
|
|
41392
|
+
}
|
|
41393
|
+
if (hospitalId !== undefined) {
|
|
41394
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
41395
|
+
}
|
|
41396
|
+
if (name !== undefined) {
|
|
41397
|
+
localVarQueryParameter['Name'] = name;
|
|
41398
|
+
}
|
|
41399
|
+
if (languageCode !== undefined) {
|
|
41400
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
41401
|
+
}
|
|
41402
|
+
if (page !== undefined) {
|
|
41403
|
+
localVarQueryParameter['page'] = page;
|
|
41404
|
+
}
|
|
41405
|
+
if (limit !== undefined) {
|
|
41406
|
+
localVarQueryParameter['limit'] = limit;
|
|
41407
|
+
}
|
|
41408
|
+
if (lastRetrieved !== undefined) {
|
|
41409
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
41410
|
+
lastRetrieved.toISOString() :
|
|
41411
|
+
lastRetrieved;
|
|
41412
|
+
}
|
|
41413
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41414
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41415
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41416
|
+
return [2 /*return*/, {
|
|
41417
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41418
|
+
options: localVarRequestOptions,
|
|
41419
|
+
}];
|
|
41420
|
+
}
|
|
41421
|
+
});
|
|
41422
|
+
});
|
|
41423
|
+
},
|
|
41424
|
+
/**
|
|
41425
|
+
*
|
|
41426
|
+
* @summary Delete survey result
|
|
41427
|
+
* @param {string} surveyResultId
|
|
41428
|
+
* @param {*} [options] Override http request option.
|
|
41429
|
+
* @throws {RequiredError}
|
|
41430
|
+
*/
|
|
41431
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41432
|
+
if (options === void 0) { options = {}; }
|
|
41433
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41434
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41435
|
+
return __generator(this, function (_a) {
|
|
41436
|
+
switch (_a.label) {
|
|
41437
|
+
case 0:
|
|
41438
|
+
// verify required parameter 'surveyResultId' is not null or undefined
|
|
41439
|
+
(0, common_1.assertParamExists)('apiV1SurveyresultsSurveyResultIdDelete', 'surveyResultId', surveyResultId);
|
|
41440
|
+
localVarPath = "/api/v1/surveyresults/{surveyResultId}"
|
|
41441
|
+
.replace("{".concat("surveyResultId", "}"), encodeURIComponent(String(surveyResultId)));
|
|
41442
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41443
|
+
if (configuration) {
|
|
41444
|
+
baseOptions = configuration.baseOptions;
|
|
41445
|
+
}
|
|
41446
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
41447
|
+
localVarHeaderParameter = {};
|
|
41448
|
+
localVarQueryParameter = {};
|
|
41449
|
+
// authentication oauth2 required
|
|
41450
|
+
// oauth required
|
|
41451
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41452
|
+
case 1:
|
|
41453
|
+
// authentication oauth2 required
|
|
41454
|
+
// oauth required
|
|
41455
|
+
_a.sent();
|
|
41456
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41457
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41458
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41459
|
+
return [2 /*return*/, {
|
|
41460
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41461
|
+
options: localVarRequestOptions,
|
|
41462
|
+
}];
|
|
41463
|
+
}
|
|
41464
|
+
});
|
|
41465
|
+
});
|
|
41466
|
+
},
|
|
41467
|
+
/**
|
|
41468
|
+
*
|
|
41469
|
+
* @summary Get survey result by Id
|
|
41470
|
+
* @param {string} surveyResultId
|
|
41471
|
+
* @param {*} [options] Override http request option.
|
|
41472
|
+
* @throws {RequiredError}
|
|
41473
|
+
*/
|
|
41474
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41475
|
+
if (options === void 0) { options = {}; }
|
|
41476
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
41477
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
41478
|
+
return __generator(this, function (_a) {
|
|
41479
|
+
switch (_a.label) {
|
|
41480
|
+
case 0:
|
|
41481
|
+
// verify required parameter 'surveyResultId' is not null or undefined
|
|
41482
|
+
(0, common_1.assertParamExists)('apiV1SurveyresultsSurveyResultIdGet', 'surveyResultId', surveyResultId);
|
|
41483
|
+
localVarPath = "/api/v1/surveyresults/{surveyResultId}"
|
|
41484
|
+
.replace("{".concat("surveyResultId", "}"), encodeURIComponent(String(surveyResultId)));
|
|
41485
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
41486
|
+
if (configuration) {
|
|
41487
|
+
baseOptions = configuration.baseOptions;
|
|
41488
|
+
}
|
|
41489
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
41490
|
+
localVarHeaderParameter = {};
|
|
41491
|
+
localVarQueryParameter = {};
|
|
41492
|
+
// authentication oauth2 required
|
|
41493
|
+
// oauth required
|
|
41494
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
41495
|
+
case 1:
|
|
41496
|
+
// authentication oauth2 required
|
|
41497
|
+
// oauth required
|
|
41498
|
+
_a.sent();
|
|
41499
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
41500
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41501
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
41502
|
+
return [2 /*return*/, {
|
|
41503
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
41504
|
+
options: localVarRequestOptions,
|
|
41505
|
+
}];
|
|
41506
|
+
}
|
|
41507
|
+
});
|
|
41508
|
+
});
|
|
41509
|
+
},
|
|
41510
|
+
};
|
|
41511
|
+
};
|
|
41512
|
+
exports.SurveyResultsApiAxiosParamCreator = SurveyResultsApiAxiosParamCreator;
|
|
41513
|
+
/**
|
|
41514
|
+
* SurveyResultsApi - functional programming interface
|
|
41515
|
+
* @export
|
|
41516
|
+
*/
|
|
41517
|
+
var SurveyResultsApiFp = function (configuration) {
|
|
41518
|
+
var localVarAxiosParamCreator = (0, exports.SurveyResultsApiAxiosParamCreator)(configuration);
|
|
41519
|
+
return {
|
|
41520
|
+
/**
|
|
41521
|
+
*
|
|
41522
|
+
* @summary Get survey results
|
|
41523
|
+
* @param {string} [id]
|
|
41524
|
+
* @param {string} [hospitalId]
|
|
41525
|
+
* @param {string} [name]
|
|
41526
|
+
* @param {string} [languageCode]
|
|
41527
|
+
* @param {number} [page]
|
|
41528
|
+
* @param {number} [limit]
|
|
41529
|
+
* @param {Date} [lastRetrieved]
|
|
41530
|
+
* @param {*} [options] Override http request option.
|
|
41531
|
+
* @throws {RequiredError}
|
|
41532
|
+
*/
|
|
41533
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41534
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41535
|
+
var localVarAxiosArgs;
|
|
41536
|
+
return __generator(this, function (_a) {
|
|
41537
|
+
switch (_a.label) {
|
|
41538
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options)];
|
|
41539
|
+
case 1:
|
|
41540
|
+
localVarAxiosArgs = _a.sent();
|
|
41541
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41542
|
+
}
|
|
41543
|
+
});
|
|
41544
|
+
});
|
|
41545
|
+
},
|
|
41546
|
+
/**
|
|
41547
|
+
*
|
|
41548
|
+
* @summary Delete survey result
|
|
41549
|
+
* @param {string} surveyResultId
|
|
41550
|
+
* @param {*} [options] Override http request option.
|
|
41551
|
+
* @throws {RequiredError}
|
|
41552
|
+
*/
|
|
41553
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41554
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41555
|
+
var localVarAxiosArgs;
|
|
41556
|
+
return __generator(this, function (_a) {
|
|
41557
|
+
switch (_a.label) {
|
|
41558
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options)];
|
|
41559
|
+
case 1:
|
|
41560
|
+
localVarAxiosArgs = _a.sent();
|
|
41561
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41562
|
+
}
|
|
41563
|
+
});
|
|
41564
|
+
});
|
|
41565
|
+
},
|
|
41566
|
+
/**
|
|
41567
|
+
*
|
|
41568
|
+
* @summary Get survey result by Id
|
|
41569
|
+
* @param {string} surveyResultId
|
|
41570
|
+
* @param {*} [options] Override http request option.
|
|
41571
|
+
* @throws {RequiredError}
|
|
41572
|
+
*/
|
|
41573
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41575
|
+
var localVarAxiosArgs;
|
|
41576
|
+
return __generator(this, function (_a) {
|
|
41577
|
+
switch (_a.label) {
|
|
41578
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options)];
|
|
41579
|
+
case 1:
|
|
41580
|
+
localVarAxiosArgs = _a.sent();
|
|
41581
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
41582
|
+
}
|
|
41583
|
+
});
|
|
41584
|
+
});
|
|
41585
|
+
},
|
|
41586
|
+
};
|
|
41587
|
+
};
|
|
41588
|
+
exports.SurveyResultsApiFp = SurveyResultsApiFp;
|
|
41589
|
+
/**
|
|
41590
|
+
* SurveyResultsApi - factory interface
|
|
41591
|
+
* @export
|
|
41592
|
+
*/
|
|
41593
|
+
var SurveyResultsApiFactory = function (configuration, basePath, axios) {
|
|
41594
|
+
var localVarFp = (0, exports.SurveyResultsApiFp)(configuration);
|
|
41595
|
+
return {
|
|
41596
|
+
/**
|
|
41597
|
+
*
|
|
41598
|
+
* @summary Get survey results
|
|
41599
|
+
* @param {string} [id]
|
|
41600
|
+
* @param {string} [hospitalId]
|
|
41601
|
+
* @param {string} [name]
|
|
41602
|
+
* @param {string} [languageCode]
|
|
41603
|
+
* @param {number} [page]
|
|
41604
|
+
* @param {number} [limit]
|
|
41605
|
+
* @param {Date} [lastRetrieved]
|
|
41606
|
+
* @param {*} [options] Override http request option.
|
|
41607
|
+
* @throws {RequiredError}
|
|
41608
|
+
*/
|
|
41609
|
+
apiV1SurveyresultsGet: function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41610
|
+
return localVarFp.apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
41611
|
+
},
|
|
41612
|
+
/**
|
|
41613
|
+
*
|
|
41614
|
+
* @summary Delete survey result
|
|
41615
|
+
* @param {string} surveyResultId
|
|
41616
|
+
* @param {*} [options] Override http request option.
|
|
41617
|
+
* @throws {RequiredError}
|
|
41618
|
+
*/
|
|
41619
|
+
apiV1SurveyresultsSurveyResultIdDelete: function (surveyResultId, options) {
|
|
41620
|
+
return localVarFp.apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options).then(function (request) { return request(axios, basePath); });
|
|
41621
|
+
},
|
|
41622
|
+
/**
|
|
41623
|
+
*
|
|
41624
|
+
* @summary Get survey result by Id
|
|
41625
|
+
* @param {string} surveyResultId
|
|
41626
|
+
* @param {*} [options] Override http request option.
|
|
41627
|
+
* @throws {RequiredError}
|
|
41628
|
+
*/
|
|
41629
|
+
apiV1SurveyresultsSurveyResultIdGet: function (surveyResultId, options) {
|
|
41630
|
+
return localVarFp.apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options).then(function (request) { return request(axios, basePath); });
|
|
41631
|
+
},
|
|
41632
|
+
};
|
|
41633
|
+
};
|
|
41634
|
+
exports.SurveyResultsApiFactory = SurveyResultsApiFactory;
|
|
41635
|
+
/**
|
|
41636
|
+
* SurveyResultsApi - object-oriented interface
|
|
41637
|
+
* @export
|
|
41638
|
+
* @class SurveyResultsApi
|
|
41639
|
+
* @extends {BaseAPI}
|
|
41640
|
+
*/
|
|
41641
|
+
var SurveyResultsApi = /** @class */ (function (_super) {
|
|
41642
|
+
__extends(SurveyResultsApi, _super);
|
|
41643
|
+
function SurveyResultsApi() {
|
|
41644
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41645
|
+
}
|
|
41646
|
+
/**
|
|
41647
|
+
*
|
|
41648
|
+
* @summary Get survey results
|
|
41649
|
+
* @param {string} [id]
|
|
41650
|
+
* @param {string} [hospitalId]
|
|
41651
|
+
* @param {string} [name]
|
|
41652
|
+
* @param {string} [languageCode]
|
|
41653
|
+
* @param {number} [page]
|
|
41654
|
+
* @param {number} [limit]
|
|
41655
|
+
* @param {Date} [lastRetrieved]
|
|
41656
|
+
* @param {*} [options] Override http request option.
|
|
41657
|
+
* @throws {RequiredError}
|
|
41658
|
+
* @memberof SurveyResultsApi
|
|
41659
|
+
*/
|
|
41660
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsGet = function (id, hospitalId, name, languageCode, page, limit, lastRetrieved, options) {
|
|
41661
|
+
var _this = this;
|
|
41662
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsGet(id, hospitalId, name, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41663
|
+
};
|
|
41664
|
+
/**
|
|
41665
|
+
*
|
|
41666
|
+
* @summary Delete survey result
|
|
41667
|
+
* @param {string} surveyResultId
|
|
41668
|
+
* @param {*} [options] Override http request option.
|
|
41669
|
+
* @throws {RequiredError}
|
|
41670
|
+
* @memberof SurveyResultsApi
|
|
41671
|
+
*/
|
|
41672
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsSurveyResultIdDelete = function (surveyResultId, options) {
|
|
41673
|
+
var _this = this;
|
|
41674
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsSurveyResultIdDelete(surveyResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41675
|
+
};
|
|
41676
|
+
/**
|
|
41677
|
+
*
|
|
41678
|
+
* @summary Get survey result by Id
|
|
41679
|
+
* @param {string} surveyResultId
|
|
41680
|
+
* @param {*} [options] Override http request option.
|
|
41681
|
+
* @throws {RequiredError}
|
|
41682
|
+
* @memberof SurveyResultsApi
|
|
41683
|
+
*/
|
|
41684
|
+
SurveyResultsApi.prototype.apiV1SurveyresultsSurveyResultIdGet = function (surveyResultId, options) {
|
|
41685
|
+
var _this = this;
|
|
41686
|
+
return (0, exports.SurveyResultsApiFp)(this.configuration).apiV1SurveyresultsSurveyResultIdGet(surveyResultId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
41687
|
+
};
|
|
41688
|
+
return SurveyResultsApi;
|
|
41689
|
+
}(base_1.BaseAPI));
|
|
41690
|
+
exports.SurveyResultsApi = SurveyResultsApi;
|
|
40767
41691
|
/**
|
|
40768
41692
|
* TagsApi - axios parameter creator
|
|
40769
41693
|
* @export
|