Skip to content

CategoryAssignmentCondition ​

Type: schema

TypeScript Definition ​

typescript
CategoryAssignmentCondition: {{
            /** @enum {string} */
            conditions_match: "any" | "all";
            conditions: {
                /** @enum {string} */
                data_type: "list" | "string" | "number" | "boolean";
                field_name: string;
                /** @enum {string} */
                operator: "" | "equal" | "not-equal" | "exact" | "contains" | "does-not-contain" | "starts-with" | "ends-with" | "less" | "less-or-equal" | "greater" | "greater-or-equal" | "between";
                value: string | number | boolean | unknown[] | null;
            }[];
        };
        /** CategoryAttribute */
}

OpenAPI Schema ​

json
{
  "title": "CategoryAssignmentCondition",
  "type": "object",
  "required": [
    "conditions_match",
    "conditions"
  ],
  "properties": {
    "conditions_match": {
      "type": "string",
      "enum": [
        "any",
        "all"
      ]
    },
    "conditions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "data_type": {
            "type": "string",
            "enum": [
              "list",
              "string",
              "number",
              "boolean"
            ]
          },
          "field_name": {
            "type": "string"
          },
          "operator": {
            "type": "string",
            "enum": [
              "",
              "equal",
              "not-equal",
              "exact",
              "contains",
              "does-not-contain",
              "starts-with",
              "ends-with",
              "less",
              "less-or-equal",
              "greater",
              "greater-or-equal",
              "between"
            ]
          },
          "value": {
            "type": [
              "string",
              "number",
              "boolean",
              "array",
              "null"
            ]
          }
        },
        "required": [
          "data_type",
          "field_name",
          "operator",
          "value"
        ]
      },
      "minItems": 1
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: