Skip to content

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<... | ... | ... | ... | ... | ..., ... | ... | ... | ... | ... | ...>>;
     }, $loose>>>;
  }, $loose>;
  operand: ZodUnion<readonly [ZodObject<{
     encodedOperand: ZodOptional<ZodString>;
     values: ZodArray<ZodUnion<readonly [ZodObject<{
        encodedValue: ...;
        value: ...;
      }, $loose>, ZodObject<{
        arguments: ...;
        encodedOperand: ...;
        function: ...;
      }, $loose>, ZodObject<{
        keyword: ...;
     }, $loose>]>>;
   }, $loose>, ZodObject<{
     encodedValue: ZodOptional<ZodString>;
     value: ZodString;
   }, $loose>, ZodObject<{
     arguments: ZodArray<ZodString>;
     encodedOperand: ZodOptional<ZodString>;
     function: ZodString;
   }, $loose>, ZodObject<{
     keyword: ZodCustom<"empty" | string & object, "empty" | string & object>;
  }, $loose>]>;
  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<...>>;
      }, $loose>, ZodObject<{
        encodedValue: ZodOptional<ZodString>;
        value: ZodString;
      }, $loose>, ZodObject<{
        arguments: ZodArray<ZodString>;
        encodedOperand: ZodOptional<ZodString>;
        function: ZodString;
      }, $loose>, ZodObject<{
        keyword: ZodCustom<... | ..., ... | ...>;
     }, $loose>]>;
     operator: ZodCustom<
        | "on"
        | "after"
        | "before"
        | string & object
        | "from"
        | "to"
        | "during"
        | "by", 
        | "on"
        | "after"
        | "before"
        | string & object
        | "from"
        | "to"
        | "during"
       | "by">;
  }, $loose>>;
}, $loose>;

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.