Variable: FieldWasClauseSchema
ts
const FieldWasClauseSchema: ZodObject<{
field: ZodObject<{
encodedName: ZodOptional<ZodString>;
name: ZodString;
property: ZodOptional<ZodArray<ZodObject<{
entity: ZodString;
key: ZodString;
path: ZodString;
type: ZodOptional<ZodCustom<... | ... | ... | ... | ... | ..., ... | ... | ... | ... | ... | ...>>;
}, ApiObjectConfig<undefined>>>>;
}, ApiObjectConfig<undefined>>;
operand: ZodUnion<readonly [ZodObject<{
encodedOperand: ZodOptional<ZodString>;
values: ZodArray<ZodUnion<readonly [ZodObject<{
encodedValue: ...;
value: ...;
}, ApiObjectConfig<...>>, ZodObject<{
arguments: ...;
encodedOperand: ...;
function: ...;
}, ApiObjectConfig<...>>, ZodObject<{
keyword: ...;
}, ApiObjectConfig<...>>]>>;
}, ApiObjectConfig<undefined>>, ZodObject<{
encodedValue: ZodOptional<ZodString>;
value: ZodString;
}, ApiObjectConfig<undefined>>, ZodObject<{
arguments: ZodArray<ZodString>;
encodedOperand: ZodOptional<ZodString>;
function: ZodString;
}, ApiObjectConfig<undefined>>, ZodObject<{
keyword: ZodCustom<string & object | "empty", string & object | "empty">;
}, ApiObjectConfig<undefined>>]>;
operator: ZodCustom<string & object | "was" | "was in" | "was not in" | "was not", string & object | "was" | "was in" | "was not in" | "was not">;
predicates: ZodArray<ZodObject<{
operand: ZodUnion<readonly [ZodObject<{
encodedOperand: ZodOptional<ZodString>;
values: ZodArray<ZodUnion<...>>;
}, ApiObjectConfig<undefined>>, ZodObject<{
encodedValue: ZodOptional<ZodString>;
value: ZodString;
}, ApiObjectConfig<undefined>>, ZodObject<{
arguments: ZodArray<ZodString>;
encodedOperand: ZodOptional<ZodString>;
function: ZodString;
}, ApiObjectConfig<undefined>>, ZodObject<{
keyword: ZodCustom<... | ..., ... | ...>;
}, ApiObjectConfig<undefined>>]>;
operator: ZodCustom<
| "from"
| "on"
| "after"
| "before"
| string & object
| "to"
| "during"
| "by",
| "from"
| "on"
| "after"
| "before"
| string & object
| "to"
| "during"
| "by">;
}, ApiObjectConfig<undefined>>>;
}, ApiObjectConfig<undefined>>;Defined in: src/cloud/models/fieldWasClause.ts:12
A clause that asserts a previous value of a field. For example, status WAS "Resolved" BY currentUser() BEFORE "2019/02/02". See WAS for more information about the WAS operator.