@collective-intelligence/external-apps-server-sdk 0.1.8 → 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.
package/dist/express.d.ts CHANGED
@@ -387,6 +387,8 @@ export type ResourceCapabilities = Readonly<{
387
387
  search: true;
388
388
  softDelete?: boolean;
389
389
  update?: boolean;
390
+ /** File uploads for the File fields of a common entity resource. */
391
+ upload?: boolean;
390
392
  }>;
391
393
  export type ResourcePaginationMode = "cursor" | "page";
392
394
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -424,13 +426,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
424
426
  }>;
425
427
  }>;
426
428
  export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
429
+ /**
430
+ * A filter predicate. `field` names a declared filterable field, or a path
431
+ * through at most three fields that hold Entity References to a field of
432
+ * the last target, such as `company.industry` or
433
+ * `contacts.company.parent.industry`. On a field that holds Entity
434
+ * References, `is_empty` means no reference, and `contains_any` and
435
+ * `contains_all` compare the ids of a field that holds many.
436
+ */
427
437
  export type ResourceFilter = Readonly<{
428
438
  field: string;
429
- operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
439
+ operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
430
440
  value: FilterValue;
431
441
  }> | Readonly<{
432
442
  field: string;
433
- operator: "is_not_null" | "is_null";
443
+ operator: "is_empty" | "is_not_null" | "is_null";
434
444
  }> | Readonly<{
435
445
  filters: readonly ResourceFilter[];
436
446
  operator: "and" | "or";
@@ -453,12 +463,19 @@ export type ResourcePagination = Readonly<{
453
463
  }>;
454
464
  export type ResourceListQuery = Readonly<{
455
465
  filter?: ResourceFilter;
466
+ /**
467
+ * Include Paths, such as `["company", "contacts.company"]`: relation
468
+ * fields whose records each item carries in `included`.
469
+ */
470
+ include?: readonly string[];
456
471
  includeDeleted?: boolean;
457
472
  pagination: ResourcePagination;
458
473
  sort?: readonly ResourceSort[];
459
474
  textSearch?: string;
460
475
  }>;
461
- export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable";
476
+ export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
477
+ /** The CI Organization storage can not take a presigned File upload. */
478
+ "upload_not_supported";
462
479
  export type ResourceError = Readonly<{
463
480
  code: ResourceErrorCode;
464
481
  /** Client-observed dispatch outcome; uncertainty never proves rollback. */
@@ -354,6 +354,8 @@ export type ResourceCapabilities = Readonly<{
354
354
  search: true;
355
355
  softDelete?: boolean;
356
356
  update?: boolean;
357
+ /** File uploads for the File fields of a common entity resource. */
358
+ upload?: boolean;
357
359
  }>;
358
360
  export type ResourcePaginationMode = "cursor" | "page";
359
361
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -391,13 +393,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
391
393
  }>;
392
394
  }>;
393
395
  export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
396
+ /**
397
+ * A filter predicate. `field` names a declared filterable field, or a path
398
+ * through at most three fields that hold Entity References to a field of
399
+ * the last target, such as `company.industry` or
400
+ * `contacts.company.parent.industry`. On a field that holds Entity
401
+ * References, `is_empty` means no reference, and `contains_any` and
402
+ * `contains_all` compare the ids of a field that holds many.
403
+ */
394
404
  export type ResourceFilter = Readonly<{
395
405
  field: string;
396
- operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
406
+ operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
397
407
  value: FilterValue;
398
408
  }> | Readonly<{
399
409
  field: string;
400
- operator: "is_not_null" | "is_null";
410
+ operator: "is_empty" | "is_not_null" | "is_null";
401
411
  }> | Readonly<{
402
412
  filters: readonly ResourceFilter[];
403
413
  operator: "and" | "or";
@@ -420,12 +430,19 @@ export type ResourcePagination = Readonly<{
420
430
  }>;
421
431
  export type ResourceListQuery = Readonly<{
422
432
  filter?: ResourceFilter;
433
+ /**
434
+ * Include Paths, such as `["company", "contacts.company"]`: relation
435
+ * fields whose records each item carries in `included`.
436
+ */
437
+ include?: readonly string[];
423
438
  includeDeleted?: boolean;
424
439
  pagination: ResourcePagination;
425
440
  sort?: readonly ResourceSort[];
426
441
  textSearch?: string;
427
442
  }>;
428
- export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable";
443
+ export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
444
+ /** The CI Organization storage can not take a presigned File upload. */
445
+ "upload_not_supported";
429
446
  export type ResourceError = Readonly<{
430
447
  code: ResourceErrorCode;
431
448
  /** Client-observed dispatch outcome; uncertainty never proves rollback. */
package/dist/gateway.d.ts CHANGED
@@ -395,6 +395,8 @@ export type ResourceCapabilities = Readonly<{
395
395
  search: true;
396
396
  softDelete?: boolean;
397
397
  update?: boolean;
398
+ /** File uploads for the File fields of a common entity resource. */
399
+ upload?: boolean;
398
400
  }>;
399
401
  export type ResourcePaginationMode = "cursor" | "page";
400
402
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -432,13 +434,21 @@ export type ResourceDefinition<Entity, Create = Entity, Update = Partial<Entity>
432
434
  }>;
433
435
  }>;
434
436
  export type FilterValue = ResourceJsonValue | readonly ResourceJsonValue[];
437
+ /**
438
+ * A filter predicate. `field` names a declared filterable field, or a path
439
+ * through at most three fields that hold Entity References to a field of
440
+ * the last target, such as `company.industry` or
441
+ * `contacts.company.parent.industry`. On a field that holds Entity
442
+ * References, `is_empty` means no reference, and `contains_any` and
443
+ * `contains_all` compare the ids of a field that holds many.
444
+ */
435
445
  export type ResourceFilter = Readonly<{
436
446
  field: string;
437
- operator: "contains" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
447
+ operator: "contains" | "contains_all" | "contains_any" | "ends_with" | "eq" | "gt" | "gte" | "in" | "lt" | "lte" | "ne" | "not_in" | "starts_with";
438
448
  value: FilterValue;
439
449
  }> | Readonly<{
440
450
  field: string;
441
- operator: "is_not_null" | "is_null";
451
+ operator: "is_empty" | "is_not_null" | "is_null";
442
452
  }> | Readonly<{
443
453
  filters: readonly ResourceFilter[];
444
454
  operator: "and" | "or";
@@ -461,12 +471,19 @@ export type ResourcePagination = Readonly<{
461
471
  }>;
462
472
  export type ResourceListQuery = Readonly<{
463
473
  filter?: ResourceFilter;
474
+ /**
475
+ * Include Paths, such as `["company", "contacts.company"]`: relation
476
+ * fields whose records each item carries in `included`.
477
+ */
478
+ include?: readonly string[];
464
479
  includeDeleted?: boolean;
465
480
  pagination: ResourcePagination;
466
481
  sort?: readonly ResourceSort[];
467
482
  textSearch?: string;
468
483
  }>;
469
- export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable";
484
+ export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
485
+ /** The CI Organization storage can not take a presigned File upload. */
486
+ "upload_not_supported";
470
487
  export type ResourceError = Readonly<{
471
488
  code: ResourceErrorCode;
472
489
  /** Client-observed dispatch outcome; uncertainty never proves rollback. */