@sourceloop/survey-service / Exports / SectionService
Class: SectionService¶
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new SectionService(sectionRepository
, surveyQuestionRepository
, surveyRepository
, logger
)
Parameters¶
Name | Type |
---|---|
sectionRepository |
SectionRepository |
surveyQuestionRepository |
SurveyQuestionRepository |
surveyRepository |
SurveyRepository |
logger |
ILogger |
Defined in¶
services/survey-service/src/services/section.service.ts:14
Properties¶
logger¶
• logger: ILogger
Defined in¶
services/survey-service/src/services/section.service.ts:21
sectionRepository¶
• sectionRepository: SectionRepository
Defined in¶
services/survey-service/src/services/section.service.ts:16
surveyQuestionRepository¶
• surveyQuestionRepository: SurveyQuestionRepository
Defined in¶
services/survey-service/src/services/section.service.ts:18
surveyRepository¶
• surveyRepository: SurveyRepository
Defined in¶
services/survey-service/src/services/section.service.ts:20
Methods¶
checkBasicSectionValidation¶
▸ checkBasicSectionValidation(surveyId
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
surveyId |
string |
Returns¶
Promise
<void
>
Defined in¶
services/survey-service/src/services/section.service.ts:119
createSection¶
▸ createSection(surveyId
, section
): Promise
<Section
>
Parameters¶
Name | Type |
---|---|
surveyId |
string |
section |
Omit <Section , "id" > |
Returns¶
Promise
<Section
>
Defined in¶
services/survey-service/src/services/section.service.ts:24
handleDeleteSection¶
▸ handleDeleteSection(surveyId
, sectionId
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
surveyId |
string |
sectionId |
string |
Returns¶
Promise
<void
>