addedInput schema / properties / criteria / anyOf
Added value: +[
+ {
+ "properties": {
+ "conditions": {
+ "description": "Filter conditions",
+ "items": {
+ "properties": {
+ "days": {
+ "description": "Days window for time-based conditions",
+ "type": "number"
+ },
+ "definitionId": {
+ "description": "Custom field definition ID for custom-field segment conditions",
+ "type": "string"
+ },
+ "fieldName": {
+ "description": "Custom field name for custom-field segment conditions",
+ "type": "string"
+ },
+ "fieldType": {
+ "description": "Custom field type for custom-field segment conditions",
+ "type": "string"
+ },
+ "operator": {
+ "description": "Comparison operator, e.g. GT, GTE, LT, LTE, EQ, NEQ, IN, NOT_IN, CONTAINS, BEFORE, AFTER, IS_EMPTY",
+ "type": "string"
+ },
+ "threshold": {
+ "description": "Numeric threshold for numeric conditions",
+ "type": "number"
+ },
+ "type": {
+ "description": "Condition type, e.g. TOTAL_SPENDINGS, DAYS_SINCE_JOINED, PASS_STATUS, CUSTOM_FIELD",
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Single value for text/date/selection/custom-field conditions"
+ },
+ "values": {
+ "description": "Multiple values for IN/NOT_IN conditions",
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "type",
+ "operator"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "operator": {
+ "description": "How to combine conditions",
+ "enum": [
+ "AND",
+ "OR"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "operator",
+ "conditions"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]
removedInput schema / properties / criteria / properties
Removed value: -{
- "conditions": {
- "description": "Filter conditions",
- "items": {
- "properties": {
- "days": {
- "description": "Days for time-based conditions",
- "type": "number"
- },
- "operator": {
- "description": "Comparison operator",
- "type": "string"
- },
- "threshold": {
- "description": "Threshold value",
- "type": "number"
- },
- "type": {
- "description": "Condition type",
- "type": "string"
- }
- },
- "required": [
- "type",
- "operator",
- "threshold"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "operator": {
- "description": "How to combine conditions",
- "enum": [
- "AND",
- "OR"
- ],
- "type": "string"
- }
-}