Skip to main content

crudHandlerType

const crudHandlerType: object

Enum of supported crud handler types

Type Declaration

afterCreate

readonly afterCreate: "afterCreate" = "afterCreate"

Defines a custom action that runs after creating a resource. Associated with AfterCreateCrudHandler

afterDelete

readonly afterDelete: "afterDelete" = "afterDelete"

Defines a custom action that runs after deleting a resource. Associated with AfterDeleteCrudHandler

afterUpdate

readonly afterUpdate: "afterUpdate" = "afterUpdate"

Defines a custom action that runs after updating a resource. Associated with AfterUpdateCrudHandler

get

readonly get: "get" = "get"

Defines a custom action that overrides the default get action. Associated with GetHandler

getOne

readonly getOne: "getOne" = "getOne"

Defines a custom action that overrides the default get by id action. Associated with GetOneHandler

preCreate

readonly preCreate: "preCreate" = "preCreate"

Defines a custom action that runs before creating a resource. Associated with PreCreateCrudHandler

preDelete

readonly preDelete: "preDelete" = "preDelete"

Defines a custom action that runs before deleting a resource. Associated with PreDeleteCrudHandler

preUpdate

readonly preUpdate: "preUpdate" = "preUpdate"

Defines a custom action that runs before updating a resource. Associated with PreUpdateCrudHandler