Entity
    Preparing search index...

    Interface AllowIfInParentCascadeDeletionDirective<TViewerContext, TFields, TParentFields, TParentIDField, TParentEntity, TParentPrivacyPolicy, TSelectedFields, TParentSelectedFields>

    Directive for specifying the parent relationship in AllowIfInParentCascadeDeletionPrivacyPolicyRule.

    interface AllowIfInParentCascadeDeletionDirective<
        TViewerContext extends ViewerContext,
        TFields,
        TParentFields extends object,
        TParentIDField extends
            keyof NonNullable<Pick<TParentFields, TParentSelectedFields>>,
        TParentEntity extends
            ReadonlyEntity<
                TParentFields,
                TParentIDField,
                TViewerContext,
                TParentSelectedFields,
            >,
        TParentPrivacyPolicy extends
            EntityPrivacyPolicy<
                TParentFields,
                TParentIDField,
                TViewerContext,
                TParentEntity,
                TParentSelectedFields,
            >,
        TSelectedFields extends keyof TFields = keyof TFields,
        TParentSelectedFields extends keyof TParentFields = keyof TParentFields,
    > {
        fieldIdentifyingParentEntity: TSelectedFields;
        parentEntityClass: IEntityClass<
            TParentFields,
            TParentIDField,
            TViewerContext,
            TParentEntity,
            TParentPrivacyPolicy,
            TParentSelectedFields,
        >;
        parentEntityLookupByField?: TParentSelectedFields;
    }

    Type Parameters

    Index

    Properties

    fieldIdentifyingParentEntity: TSelectedFields

    Field of the current entity with references the deleting instace of parentEntityClass.

    parentEntityClass: IEntityClass<
        TParentFields,
        TParentIDField,
        TViewerContext,
        TParentEntity,
        TParentPrivacyPolicy,
        TParentSelectedFields,
    >

    Class of parent entity that should trigger a cascade set null update to a field within the entity being authorized.

    parentEntityLookupByField?: TParentSelectedFields

    Field in parentEntityClass referenced by the value of fieldIdentifyingParentEntity. If not provided, ID is assumed.