ResolvedAccess
ResolvedAccess =
object
Defined in: packages/schema/src/access/resolve.ts:52
What one request may do with one resource, as resolveAccess works it out.
Properties
Section titled “Properties”operations
Section titled “operations”operations:
Record<AccessAction,boolean>
Defined in: packages/schema/src/access/resolve.ts:54
Whether each operation is allowed at all; one in recordChecks or rowFilter only for some records.
readableFields
Section titled “readableFields”readableFields:
string[]
Defined in: packages/schema/src/access/resolve.ts:58
Columns the caller may see; everything else must be left out of results, filters, sorts and search.
recordChecks
Section titled “recordChecks”recordChecks:
AccessAction[]
Defined in: packages/schema/src/access/resolve.ts:56
Operations whose rule needs the record (or input); check them with checkRecord.
rowFilter
Section titled “rowFilter”rowFilter:
Partial<Record<RowFilterOperation,CheckedFilter>>
Defined in: packages/schema/src/access/resolve.ts:67
ANDed into queries (read covers list and read) or checked against records (create).
writableFields
Section titled “writableFields”writableFields:
object
Defined in: packages/schema/src/access/resolve.ts:60
Columns the caller may write.
create
Section titled “create”create:
string[]
Those a create may set.
update
Section titled “update”update:
string[]
Those an update may change.