@stoker-platform/types 0.5.65 → 0.5.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/types",
3
- "version": "0.5.65",
3
+ "version": "0.5.67",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "src/main.ts",
@@ -222,7 +222,7 @@ export interface CollectionAccess {
222
222
  entityRestrictions?: EntityRestrictions
223
223
  permissionWriteRestrictions?: PermissionWriteRestriction[]
224
224
  operations: AccessOperations
225
- auth?: StokerRole[]
225
+ auth?: { roles: StokerRole[]; assignable?: StokerRole[] }
226
226
  files?: AccessFiles
227
227
  }
228
228
 
@@ -959,7 +959,11 @@ export interface FieldAdmin {
959
959
  noExport?: boolean | (() => boolean)
960
960
  exportSeparator?: string | (() => string)
961
961
  skipFormRequiredValidation?: boolean | (() => boolean)
962
- overrideFormRequiredValidation?: (operation: "create" | "update", record?: StokerRecord) => boolean
962
+ overrideFormRequiredValidation?: (
963
+ operation: "create" | "update",
964
+ record?: StokerRecord,
965
+ originalRecord?: StokerRecord,
966
+ ) => boolean
963
967
  filterValues?: (value: string | number, parentCollection: CollectionSchema, parentRecord?: StokerRecord) => boolean
964
968
  filterResults?: (result: StokerRecord, parentCollection: CollectionSchema, parentRecord?: StokerRecord) => boolean
965
969
  modifyResultTitle?: (