@collective-intelligence/external-apps-server-sdk 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,16 +70,18 @@ export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
70
70
  * through at most three fields that hold Entity References to a field of
71
71
  * the last target, such as `company.industry` or
72
72
  * `contacts.company.parent.industry`. On a field that holds Entity
73
- * References, `is_empty` means no reference, and `contains_any` and
74
- * `contains_all` compare the ids of a field that holds many.
73
+ * References, `is_empty` means no reference. User fields accept identity
74
+ * predicates for one ID and `contains_any`, `contains_all`, `contains_none`
75
+ * for multiple IDs, plus empty/not-empty aliases. CI validates operators
76
+ * against the actual field semantic; UUID shape alone does not declare User.
75
77
  */
76
78
  export type ResourceFilter = Readonly<{
77
79
  field: string;
78
- operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
80
+ operator: "contains" | "contains_all" | "contains_any" | "contains_none" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
79
81
  value: FilterValue;
80
82
  }> | Readonly<{
81
83
  field: string;
82
- operator: "is_empty" | "is_not_null" | "is_null";
84
+ operator: "is_empty" | "is_not_empty" | "is_not_null" | "is_null";
83
85
  }> | Readonly<{
84
86
  filters: readonly ResourceFilter[];
85
87
  operator: "and" | "or";