@sourceloop/survey-service / Exports / SurveyResponseRepository
Class: SurveyResponseRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<SurveyResponse
, typeofid
,SurveyResponseRelations
>↳
SurveyResponseRepository
Table of contents¶
Constructors¶
Properties¶
- getCurrentUser
- surveyCycle
- surveyCycleRepositoryGetter
- surveyResponder
- surveyResponderRepositoryGetter
- surveyResponseDetailRepositoryGetter
- surveyResponseDetails
Methods¶
Constructors¶
constructor¶
• new SurveyResponseRepository(dataSource
, surveyCycleRepositoryGetter
, surveyResponseDetailRepositoryGetter
, surveyResponderRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
surveyCycleRepositoryGetter |
Getter <SurveyCycleRepository > |
surveyResponseDetailRepositoryGetter |
Getter <SurveyResponseDetailRepository > |
surveyResponderRepositoryGetter |
Getter <SurveyResponderRepository > |
getCurrentUser |
Getter <IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< SurveyResponse, typeof SurveyResponse.prototype.id, SurveyResponseRelations \>.constructor
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:45
Properties¶
getCurrentUser¶
• Readonly
getCurrentUser: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:55
surveyCycle¶
• Readonly
surveyCycle: BelongsToAccessor
<SurveyCycle
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:30
surveyCycleRepositoryGetter¶
• Protected
surveyCycleRepositoryGetter: Getter
<SurveyCycleRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:49
surveyResponder¶
• Readonly
surveyResponder: BelongsToAccessor
<SurveyResponder
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:40
surveyResponderRepositoryGetter¶
• Protected
surveyResponderRepositoryGetter: Getter
<SurveyResponderRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:53
surveyResponseDetailRepositoryGetter¶
• Protected
surveyResponseDetailRepositoryGetter: Getter
<SurveyResponseDetailRepository
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:51
surveyResponseDetails¶
• Readonly
surveyResponseDetails: HasManyRepositoryFactory
<SurveyResponseDetail
, undefined
| string
>
Defined in¶
services/survey-service/src/repositories/survey-response.repository.ts:35
Methods¶
create¶
▸ create(entity
, options?
): Promise
<SurveyResponse
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <SurveyResponse > |
options? |
Options |
Returns¶
Promise
<SurveyResponse
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<SurveyResponse
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <SurveyResponse >[] |
options? |
Options |
Returns¶
Promise
<SurveyResponse
[]>
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 <SurveyResponse > |
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
<SurveyResponse
>
Parameters¶
Name | Type |
---|---|
entity |
SurveyResponse |
options? |
Options |
Returns¶
Promise
<SurveyResponse
>
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 |
SurveyResponse |
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 <SurveyResponse > |
where? |
Where <SurveyResponse > |
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 <SurveyResponse > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16