@sourceloop/survey-service / Exports / SurveyResponseDetailRepository
Class: SurveyResponseDetailRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<SurveyResponseDetail
, typeofid
>↳
SurveyResponseDetailRepository
Table of contents¶
Constructors¶
Properties¶
- getCurrentUser
- option
- optionsRepositoryGetter
- question
- questionRepositoryGetter
- surveyResponse
- surveyResponseRepositoryGetter
Methods¶
Constructors¶
constructor¶
• new SurveyResponseDetailRepository(dataSource
, surveyResponseRepositoryGetter
, questionRepositoryGetter
, optionsRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
surveyResponseRepositoryGetter |
Getter <SurveyResponseRepository > |
questionRepositoryGetter |
Getter <QuestionRepository > |
optionsRepositoryGetter |
Getter <OptionsRepository > |
getCurrentUser |
Getter <IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< SurveyResponseDetail, typeof SurveyResponseDetail.prototype.id \>.constructor
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:33
Properties¶
getCurrentUser¶
• Readonly
getCurrentUser: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:43
option¶
• Readonly
option: BelongsToAccessor
<Options
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:28
optionsRepositoryGetter¶
• Protected
optionsRepositoryGetter: Getter
<OptionsRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:41
question¶
• Readonly
question: BelongsToAccessor
<Question
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:23
questionRepositoryGetter¶
• Protected
questionRepositoryGetter: Getter
<QuestionRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:39
surveyResponse¶
• Readonly
surveyResponse: BelongsToAccessor
<SurveyResponse
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:18
surveyResponseRepositoryGetter¶
• Protected
surveyResponseRepositoryGetter: Getter
<SurveyResponseRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response-detail.repository.ts:37
Methods¶
create¶
▸ create(entity
, options?
): Promise
<SurveyResponseDetail
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <SurveyResponseDetail > |
options? |
Options |
Returns¶
Promise
<SurveyResponseDetail
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<SurveyResponseDetail
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <SurveyResponseDetail >[] |
options? |
Options |
Returns¶
Promise
<SurveyResponseDetail
[]>
Inherited from¶
DefaultUserModifyCrudRepository.createAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12
replaceById¶
▸ replaceById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
data |
DataObject <SurveyResponseDetail > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.replaceById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:17
save¶
▸ save(entity
, options?
): Promise
<SurveyResponseDetail
>
Parameters¶
Name | Type |
---|---|
entity |
SurveyResponseDetail |
options? |
Options |
Returns¶
Promise
<SurveyResponseDetail
>
Inherited from¶
DefaultUserModifyCrudRepository.save
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13
update¶
▸ update(entity
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
entity |
SurveyResponseDetail |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.update
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:14
updateAll¶
▸ updateAll(data
, where?
, options?
): Promise
<Count
>
Parameters¶
Name | Type |
---|---|
data |
DataObject <SurveyResponseDetail > |
where? |
Where <SurveyResponseDetail > |
options? |
Options |
Returns¶
Promise
<Count
>
Inherited from¶
DefaultUserModifyCrudRepository.updateAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:15
updateById¶
▸ updateById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
data |
DataObject <SurveyResponseDetail > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16