ArgumentSpec
ArgumentSpec =
ArgumentType| {max?:number;min?:number;optional?:boolean;precision?:number;scale?:number;type:ArgumentType;values?:string[]; }
Defined in: packages/schema/src/job-arguments.ts:26
One argument of a job, as plain data: its type, such as 'bigint', or the type with its options, such as
{ type: 'enum', values: ['day', 'week'] }, { type: 'integer', min: 1, optional: true } or
{ type: 'decimal', precision: 8, scale: 2 }. A value is checked as a field of that type checks it.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ max?: number; min?: number; optional?: boolean; precision?: number; scale?: number; type: ArgumentType; values?: string[]; }
optionalmax?:number
The greatest value, or for text the longest length.
optionalmin?:number
The least value, or for text the shortest length.
optional?
Section titled “optional?”
optionaloptional?:boolean
It may be left out.
precision?
Section titled “precision?”
optionalprecision?:number
A decimal’s number of digits.
scale?
Section titled “scale?”
optionalscale?:number
A decimal’s number of digits after the point.
type:
ArgumentType
The argument’s type.
values?
Section titled “values?”
optionalvalues?:string[]
An enum’s values.