Private Readonly _schemaPrivate Readonly dataPrivate Readonly gPrivate Readonly graphReturns Kosmos-side configuration for this Behaviour.
Sets Kosmos-side configuration for this Behaviour.
The new configuration object.
Returns behaviour machine name.
Private addAdds Read Report of a given entity.
Entity type (vertex label).
Entity ID.
The user/request context.
Optional userId: stringUser ID override; if not given, will be taken from context.
Private addThe addSomethingReadReporting mutation resolver.
Refer AddRemoveReadReportingMutationResolver for arguments and return value types.
Rest ...params: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: null, args: { Private countPrivate getRetrieves UUID of Read Report of a given entity.
Read Report UUID or null if it doesn't exist.
User ID
Tenant ID.
Entity type (vertex label).
Entity ID.
Private getPrivate getConstruct trait data object from different objects
Rest ...__namedParameters: [source: unknown, args: Record<string, any>, context: KosmosUserContext<object>, info: GraphQLResolveInfo]This method would be automatically before the first invocation of Behaviour for each entity type.
Behaviours may override this method, and it would be called once before each resolver.
Private readRest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: null, args: ReadReportedListArgs, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private readPrivate readThe readReportedByConnection field resolver.
Refer RetrieveByReadReportedConnectionResolver for arguments and return value types.
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: ItemWithId, args: {}, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private readReturns query for getting list read reported items
user context
schema item of bookmarked entity
Private readThe read_reported field resolver.
Refer RetrieveCurrentUserReadReportingResolver for arguments and return value types.
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: ItemWithId, args: {}, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private readThe readReportsCount field resolver.
Refer RetrieveReadReportsCountResolver for arguments and return value types.
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: ItemWithId, args: {}, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private removeRemoves Read Report of a given entity.
Entity type (vertex label).
Entity ID.
The user/request context.
Optional userId: stringUser ID override; if not given, will be taken from context.
Private removeThe RemoveSomethingReadReporting mutation resolver.
Refer AddRemoveReadReportingMutationResolver for arguments and return value types.
Rest ...params: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: ReadReportingBehaviourInstanceConfig, params: [source: null, args: { Private userChecks if user has reported read the content.
Whether user reports has read content.
User ID.
Tenant ID.
Entity type (vertex label).
Entity ID.
Validates runtime (e.g. ContentItem) configuration for this Behaviour.
Inherited classes may either return false for generic issues or throw BehaviourRuntimeError to return a specific error message.
The instance configuration value to check.
Validates Kosmos (e.g. build time) configuration for this Behaviour.
Inherited classes may either return false for generic issues or throw BehaviourConfigError to return a specific error message.
The Kosmos configuration value to check.
Generated using TypeDoc
Read Reporting Behaviour adds readReported/removes readReported functionality.
Usage (
config.yml):