CollectionActionConfig
Extends
BaseActionConfig<TBody,TQuery,TResponse>
Type Parameters
TBody
TBody
TQuery
TQuery
TResponse
TResponse
Properties
access?
optionalaccess?:object
action
action:
string
resource
resource:
string
Inherited from
BaseActionConfig.access
body?
optionalbody?:ZodType<TBody,unknown,$ZodTypeInternals<TBody,unknown>>
Inherited from
BaseActionConfig.body
description?
optionaldescription?:string
Inherited from
BaseActionConfig.description
handler
handler: (
ctx) =>TResponse|Promise<TResponse>
Parameters
ctx
Omit<ActionContext<never, TBody, TQuery>, "doc">
Returns
TResponse | Promise<TResponse>
method
method:
"GET"|"POST"
Inherited from
BaseActionConfig.method
permissions?
optionalpermissions?:PermissionMethod<unknown>[]
Inherited from
BaseActionConfig.permissions
query?
optionalquery?:ZodType<TQuery,unknown,$ZodTypeInternals<TQuery,unknown>>
Inherited from
BaseActionConfig.query
response?
optionalresponse?:ZodType<TResponse,unknown,$ZodTypeInternals<TResponse,unknown>>
Inherited from
BaseActionConfig.response
status?
optionalstatus?:number
Inherited from
BaseActionConfig.status
summary?
optionalsummary?:string
Inherited from
BaseActionConfig.summary
tag?
optionaltag?:string
Inherited from
BaseActionConfig.tag