Entity

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

    Information about the reason this privacy policy is being evaluated.

    type EntityPrivacyPolicyEvaluationContext<
        TFields extends Record<string, any>,
        TIDField extends keyof NonNullable<Pick<TFields, TSelectedFields>>,
        TViewerContext extends ViewerContext,
        TEntity extends
            ReadonlyEntity<TFields, TIDField, TViewerContext, TSelectedFields>,
        TSelectedFields extends keyof TFields = keyof TFields,
    > = {
        cascadingDeleteCause: EntityCascadingDeletionInfo | null;
        previousValue: TEntity | null;
    }

    Type Parameters

    Index

    Properties

    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.

    MMNEPVFCICPMFPCPTTAAATR