@collective-intelligence/external-apps-server-sdk 0.1.9 → 0.1.10

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.
@@ -424,13 +424,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
424
424
  }>;
425
425
  }>;
426
426
  export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
427
+ /**
428
+ * A filter predicate. `field` names a declared filterable field, or a path
429
+ * through at most three fields that hold Entity References to a field of
430
+ * the last target, such as `company.industry` or
431
+ * `contacts.company.parent.industry`. On a field that holds Entity
432
+ * References, `is_empty` means no reference, and `contains_any` and
433
+ * `contains_all` compare the ids of a field that holds many.
434
+ */
427
435
  export type ResourceFilter = Readonly<{
428
436
  field: string;
429
- operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
437
+ operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
430
438
  value: FilterValue;
431
439
  }> | Readonly<{
432
440
  field: string;
433
- operator: "is_not_null" | "is_null";
441
+ operator: "is_empty" | "is_not_null" | "is_null";
434
442
  }> | Readonly<{
435
443
  filters: readonly ResourceFilter[];
436
444
  operator: "and" | "or";
@@ -453,6 +461,11 @@ export type ResourcePagination = Readonly<{
453
461
  }>;
454
462
  export type ResourceListQuery = Readonly<{
455
463
  filter?: ResourceFilter;
464
+ /**
465
+ * Include Paths, such as `["company", "contacts.company"]`: relation
466
+ * fields whose records each item carries in `included`.
467
+ */
468
+ include?: readonly string[];
456
469
  includeDeleted?: boolean;
457
470
  pagination: ResourcePagination;
458
471
  sort?: readonly ResourceSort[];