Type alias EntityManagerSecurtyPolicy<DAOGenericsMap, OperationMetadataType, Permissions, SecurityDomain>
Entity
Manager
Securty
Policy
<DAOGenericsMap, OperationMetadataType, Permissions, SecurityDomain>: { applySecurity
?: boolean; context
?: DAOSecurityContext<SecurityDomain, Permissions>; defaultPermission
?: CRUDPermission<DAOGenericsMap[keyof DAOGenericsMap]>; policies
?: DAOSecurityPolicies<DAOGenericsMap, Permissions, SecurityDomain>; } & ([SecurityDomain] extends [never] ? { injectOperationDomain
?: never; operationDomain
?: never; } : { injectOperationDomain
?: ((operationDomain
: { [ K in keyof SecurityDomain]: Exclude<SecurityDomain[K], undefined>[] }[], metadata
: OperationMetadataType | undefined) => OperationMetadataType | undefined); operationDomain
?: ((metadata
: OperationMetadataType | undefined) => { [ K in keyof SecurityDomain]: Exclude<SecurityDomain[K], undefined>[] }[] | undefined); })
Type Parameters
-
DAOGenericsMap extends { [ K in string]: DAOGenerics }
-
OperationMetadataType
-
Permissions extends string
-
SecurityDomain extends Record<string, unknown>