@sourceloop/survey-service / Exports / SurveyResponderRepository
Class: SurveyResponderRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<SurveyResponder
, typeofid
,SurveyResponderRelations
>↳
SurveyResponderRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new SurveyResponderRepository(dataSource
, surveyRepositoryGetter
, surveyCycleRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
surveyRepositoryGetter |
Getter <SurveyRepository > |
surveyCycleRepositoryGetter |
Getter <SurveyCycleRepository > |
getCurrentUser |
Getter <IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< SurveyResponder, typeof SurveyResponder.prototype.id, SurveyResponderRelations \>.constructor
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:40
Properties¶
getCurrentUser¶
• Readonly
getCurrentUser: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:47
survey¶
• Readonly
survey: BelongsToAccessor
<Survey
<DataObject
<Model
>>, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:30
surveyCycle¶
• Readonly
surveyCycle: BelongsToAccessor
<SurveyCycle
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:35
surveyCycleRepositoryGetter¶
• Protected
surveyCycleRepositoryGetter: Getter
<SurveyCycleRepository
>
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:45
surveyRepositoryGetter¶
• Protected
surveyRepositoryGetter: Getter
<SurveyRepository
>
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:43
Methods¶
create¶
▸ create(entity
, options?
): Promise
<SurveyResponder
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <SurveyResponder > |
options? |
AnyObject |
Returns¶
Promise
<SurveyResponder
>
Overrides¶
DefaultUserModifyCrudRepository.create
Defined in¶
services/survey-service/src/repositories/survey-responder.repository.ts:65
createAll¶
▸ createAll(entities
, options?
): Promise
<SurveyResponder
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <SurveyResponder >[] |
options? |
Options |
Returns¶
Promise
<SurveyResponder
[]>
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 <SurveyResponder > |
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
<SurveyResponder
>
Parameters¶
Name | Type |
---|---|
entity |
SurveyResponder |
options? |
Options |
Returns¶
Promise
<SurveyResponder
>
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 |
SurveyResponder |
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 <SurveyResponder > |
where? |
Where <SurveyResponder > |
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 <SurveyResponder > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16