Type Alias EntityPrivacyPolicyEvaluationContext<TFields, TID, TViewerContext, TEntity, TSelectedFields>

EntityPrivacyPolicyEvaluationContext<TFields, TID, TViewerContext, TEntity, TSelectedFields>: {
    cascadingDeleteCause: EntityCascadingDeletionInfo | null;
    previousValue: TEntity | null;
}

Information about the reason this privacy policy is being evaluated.

Type Parameters

Type declaration

  • cascadingDeleteCause: EntityCascadingDeletionInfo | null

    When this privacy policy is being evaluated as a result of a cascading deletion, this will be populated with information on the cascading delete.

  • previousValue: TEntity | null

    When this privacy policy is being evaluated as a result of an update, this will be populated with the value of the entity before the update. Note that this doesn't only apply to UPDATE authorization actions though: when an entity is updated it is re-LOADed after the update completes.