Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
import type { CollectionPermission, FieldPermissions, FieldsPermissions, GlobalPermission } from '../../auth/types.js';
|
|
import type { DefaultDocumentIDType } from '../../index.js';
|
|
import type { AllOperations, JsonObject, PayloadRequest } from '../../types/index.js';
|
|
import type { BlockReferencesPermissions } from './getEntityPermissions.js';
|
|
import { type Field } from '../../fields/config/types.js';
|
|
/**
|
|
* Build up permissions object and run access functions for each field of an entity
|
|
* This function is synchronous and collects all async work into the promises array
|
|
*/
|
|
export declare const populateFieldPermissions: ({ id, blockReferencesPermissions, data, fields, operations, parentPermissionsObject, permissionsObject, promises, req, }: {
|
|
blockReferencesPermissions: BlockReferencesPermissions;
|
|
data: JsonObject | undefined;
|
|
fields: Field[];
|
|
id?: DefaultDocumentIDType;
|
|
/**
|
|
* Operations to check access for
|
|
*/
|
|
operations: AllOperations[];
|
|
parentPermissionsObject: CollectionPermission | FieldPermissions | GlobalPermission;
|
|
permissionsObject: FieldsPermissions;
|
|
promises: Promise<void>[];
|
|
req: PayloadRequest;
|
|
}) => void;
|
|
//# sourceMappingURL=populateFieldPermissions.d.ts.map |