@epilot/entity-client 4.18.2 → 4.19.0

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/client.d.ts CHANGED
File without changes
package/dist/client.js CHANGED
File without changes
File without changes
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"}]},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type"},{"in":"query","name":"include_relations"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"}]}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false}]}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser"}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"$ref":"#/components/parameters/TaxonomySlugQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,a),o.exports}(914),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={914:function(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}":{"get":{"operationId":"getEntityV2","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"fields","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"}]},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type"},{"in":"query","name":"include_relations"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseDeprecatedQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"}]}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false}]}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser"}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"$ref":"#/components/parameters/TaxonomySlugQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseDeprecatedQueryParam":{"name":"include_reverse","in":"query","deprecated":true},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,a),o.exports}(914),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
@@ -162,6 +162,28 @@
162
162
  }
163
163
  }
164
164
  },
165
+ "/v2/entity/{slug}/{id}": {
166
+ "get": {
167
+ "operationId": "getEntityV2",
168
+ "parameters": [
169
+ {
170
+ "$ref": "#/components/parameters/EntityIdPathParam"
171
+ },
172
+ {
173
+ "$ref": "#/components/parameters/EntitySlugPathParam"
174
+ },
175
+ {
176
+ "$ref": "#/components/parameters/HydrateEntitiesQueryParam"
177
+ },
178
+ {
179
+ "in": "query",
180
+ "name": "fields",
181
+ "style": "form",
182
+ "explode": false
183
+ }
184
+ ]
185
+ }
186
+ },
165
187
  "/v1/entity/{slug}/{id}": {
166
188
  "get": {
167
189
  "operationId": "getEntity",
@@ -455,7 +477,7 @@
455
477
  "$ref": "#/components/parameters/HydrateEntitiesQueryParam"
456
478
  },
457
479
  {
458
- "$ref": "#/components/parameters/IncludeReverseQueryParam"
480
+ "$ref": "#/components/parameters/IncludeReverseDeprecatedQueryParam"
459
481
  },
460
482
  {
461
483
  "$ref": "#/components/parameters/FromPageQueryParam"
@@ -766,6 +788,11 @@
766
788
  "name": "from",
767
789
  "in": "query"
768
790
  },
791
+ "IncludeReverseDeprecatedQueryParam": {
792
+ "name": "include_reverse",
793
+ "in": "query",
794
+ "deprecated": true
795
+ },
769
796
  "IncludeReverseQueryParam": {
770
797
  "name": "include_reverse",
771
798
  "in": "query"
package/dist/openapi.d.ts CHANGED
@@ -24,7 +24,7 @@ declare namespace Components {
24
24
  export type AsyncOperationQueryParam = boolean;
25
25
  export type DryRunQueryParam = boolean;
26
26
  export type EntityIdPathParam = Schemas.EntityId /* uuid */;
27
- export type EntityRelationsModeQueryParam = string;
27
+ export type EntityRelationsModeQueryParam = "direct" | "reverse" | "both";
28
28
  export type EntitySlugPathParam = /**
29
29
  * URL-friendly identifier for the entity schema
30
30
  * example:
@@ -39,6 +39,7 @@ declare namespace Components {
39
39
  Schemas.EntitySlug[];
40
40
  export type FromPageQueryParam = number;
41
41
  export type HydrateEntitiesQueryParam = boolean;
42
+ export type IncludeReverseDeprecatedQueryParam = boolean;
42
43
  export type IncludeReverseQueryParam = boolean;
43
44
  export type IncludeSchemasQueryParam = /**
44
45
  * URL-friendly identifier for the entity schema
@@ -63,6 +64,7 @@ declare namespace Components {
63
64
  HydrateEntitiesQueryParam?: Parameters.HydrateEntitiesQueryParam;
64
65
  ActivityIdQueryParam?: Parameters.ActivityIdQueryParam;
65
66
  FromPageQueryParam?: Parameters.FromPageQueryParam;
67
+ IncludeReverseDeprecatedQueryParam?: Parameters.IncludeReverseDeprecatedQueryParam;
66
68
  IncludeReverseQueryParam?: Parameters.IncludeReverseQueryParam;
67
69
  IncludeSchemasQueryParam?: Parameters.IncludeSchemasQueryParam;
68
70
  ExcludeSchemasQueryParam?: Parameters.ExcludeSchemasQueryParam;
@@ -2520,16 +2522,24 @@ declare namespace Components {
2520
2522
  * When true, enables entity hydration to resolve nested $relation & $relation_ref references in-place.
2521
2523
  */
2522
2524
  hydrate?: boolean;
2523
- /**
2524
- * List of entity fields to include in search results
2525
+ fields?: /**
2526
+ * List of entity fields to include or exclude in the response
2527
+ *
2528
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
2529
+ *
2530
+ * Globbing and globstart (**) is supported for nested fields.
2531
+ *
2525
2532
  * example:
2526
2533
  * [
2527
2534
  * "_id",
2528
2535
  * "_title",
2529
- * "first_name"
2536
+ * "first_name",
2537
+ * "account",
2538
+ * "!account.*._files",
2539
+ * "**._product"
2530
2540
  * ]
2531
2541
  */
2532
- fields?: string[];
2542
+ FieldsParam;
2533
2543
  /**
2534
2544
  * Adds a `_score` number field to results that can be used to rank by match score
2535
2545
  */
@@ -2636,6 +2646,24 @@ declare namespace Components {
2636
2646
  * abc123
2637
2647
  */
2638
2648
  export type ExportJobId = string;
2649
+ /**
2650
+ * List of entity fields to include or exclude in the response
2651
+ *
2652
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
2653
+ *
2654
+ * Globbing and globstart (**) is supported for nested fields.
2655
+ *
2656
+ * example:
2657
+ * [
2658
+ * "_id",
2659
+ * "_title",
2660
+ * "first_name",
2661
+ * "account",
2662
+ * "!account.*._files",
2663
+ * "**._product"
2664
+ * ]
2665
+ */
2666
+ export type FieldsParam = string[];
2639
2667
  /**
2640
2668
  * File or Image Attachment
2641
2669
  */
@@ -6463,6 +6491,89 @@ declare namespace Paths {
6463
6491
  }
6464
6492
  }
6465
6493
  }
6494
+ namespace GetEntityV2 {
6495
+ namespace Parameters {
6496
+ export type Fields = /**
6497
+ * List of entity fields to include or exclude in the response
6498
+ *
6499
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
6500
+ *
6501
+ * Globbing and globstart (**) is supported for nested fields.
6502
+ *
6503
+ * example:
6504
+ * [
6505
+ * "_id",
6506
+ * "_title",
6507
+ * "first_name",
6508
+ * "account",
6509
+ * "!account.*._files",
6510
+ * "**._product"
6511
+ * ]
6512
+ */
6513
+ Components.Schemas.FieldsParam;
6514
+ export type Hydrate = boolean;
6515
+ export type Id = Components.Schemas.EntityId /* uuid */;
6516
+ export type Slug = /**
6517
+ * URL-friendly identifier for the entity schema
6518
+ * example:
6519
+ * contact
6520
+ */
6521
+ Components.Schemas.EntitySlug;
6522
+ }
6523
+ export interface PathParameters {
6524
+ id: Parameters.Id;
6525
+ slug: Parameters.Slug;
6526
+ }
6527
+ export interface QueryParameters {
6528
+ hydrate?: Parameters.Hydrate;
6529
+ fields?: Parameters.Fields;
6530
+ }
6531
+ namespace Responses {
6532
+ export type $200 = /**
6533
+ * example:
6534
+ * {
6535
+ * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
6536
+ * "_org": "123",
6537
+ * "_owners": [
6538
+ * {
6539
+ * "org_id": "123",
6540
+ * "user_id": "123"
6541
+ * },
6542
+ * {
6543
+ * "org_id": "123",
6544
+ * "user_id": "123"
6545
+ * }
6546
+ * ],
6547
+ * "_schema": "contact",
6548
+ * "_tags": [
6549
+ * "example",
6550
+ * "mock",
6551
+ * "example",
6552
+ * "mock"
6553
+ * ],
6554
+ * "_created_at": "2021-02-09T12:41:43.662Z",
6555
+ * "_updated_at": "2021-02-09T12:41:43.662Z",
6556
+ * "_acl": {
6557
+ * "view": [
6558
+ * "org:456",
6559
+ * "org:789",
6560
+ * "org:456",
6561
+ * "org:789"
6562
+ * ],
6563
+ * "edit": [
6564
+ * "org:456",
6565
+ * "org:456"
6566
+ * ],
6567
+ * "delete": [
6568
+ * "org:456",
6569
+ * "org:456"
6570
+ * ]
6571
+ * }
6572
+ * }
6573
+ */
6574
+ Components.Schemas.EntityItem;
6575
+ }
6576
+ }
6466
6577
  namespace GetRelatedEntitiesCount {
6467
6578
  namespace Parameters {
6468
6579
  export type ExcludeSchemas = /**
@@ -6534,15 +6645,24 @@ declare namespace Paths {
6534
6645
  }
6535
6646
  namespace GetRelationsV2 {
6536
6647
  namespace Parameters {
6537
- /**
6648
+ export type Fields = /**
6649
+ * List of entity fields to include or exclude in the response
6650
+ *
6651
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
6652
+ *
6653
+ * Globbing and globstart (**) is supported for nested fields.
6654
+ *
6538
6655
  * example:
6539
6656
  * [
6540
6657
  * "_id",
6541
- * "_schema",
6542
- * "_title"
6658
+ * "_title",
6659
+ * "first_name",
6660
+ * "account",
6661
+ * "!account.*._files",
6662
+ * "**._product"
6543
6663
  * ]
6544
6664
  */
6545
- export type Fields = string[];
6665
+ Components.Schemas.FieldsParam;
6546
6666
  export type From = number;
6547
6667
  export type Hydrate = boolean;
6548
6668
  export type Id = Components.Schemas.EntityId /* uuid */;
@@ -6566,15 +6686,7 @@ declare namespace Paths {
6566
6686
  include_reverse?: Parameters.IncludeReverse;
6567
6687
  from?: Parameters.From;
6568
6688
  size?: Parameters.Size;
6569
- fields?: /**
6570
- * example:
6571
- * [
6572
- * "_id",
6573
- * "_schema",
6574
- * "_title"
6575
- * ]
6576
- */
6577
- Parameters.Fields;
6689
+ fields?: Parameters.Fields;
6578
6690
  }
6579
6691
  namespace Responses {
6580
6692
  export type $200 = Components.Schemas.GetRelationsRespWithPagination;
@@ -6598,7 +6710,7 @@ declare namespace Paths {
6598
6710
  * contact
6599
6711
  */
6600
6712
  Components.Schemas.EntitySlug[];
6601
- export type Mode = string;
6713
+ export type Mode = "direct" | "reverse" | "both";
6602
6714
  export type Size = number;
6603
6715
  export type Slug = /**
6604
6716
  * URL-friendly identifier for the entity schema
@@ -7493,6 +7605,19 @@ export interface OperationMethods {
7493
7605
  data?: Paths.UpsertEntity.RequestBody,
7494
7606
  config?: AxiosRequestConfig
7495
7607
  ): OperationResponse<Paths.UpsertEntity.Responses.$200 | Paths.UpsertEntity.Responses.$201>
7608
+ /**
7609
+ * getEntityV2 - getEntityV2
7610
+ *
7611
+ * Gets Entity by id.
7612
+ *
7613
+ * Supports `hydrate` and `fields` parameters to control the shape of the response.
7614
+ *
7615
+ */
7616
+ 'getEntityV2'(
7617
+ parameters?: Parameters<Paths.GetEntityV2.PathParameters & Paths.GetEntityV2.QueryParameters> | null,
7618
+ data?: any,
7619
+ config?: AxiosRequestConfig
7620
+ ): OperationResponse<Paths.GetEntityV2.Responses.$200>
7496
7621
  /**
7497
7622
  * getEntity - getEntity
7498
7623
  *
@@ -8146,6 +8271,21 @@ export interface PathsDictionary {
8146
8271
  config?: AxiosRequestConfig
8147
8272
  ): OperationResponse<Paths.UpsertEntity.Responses.$200 | Paths.UpsertEntity.Responses.$201>
8148
8273
  }
8274
+ ['/v2/entity/{slug}/{id}']: {
8275
+ /**
8276
+ * getEntityV2 - getEntityV2
8277
+ *
8278
+ * Gets Entity by id.
8279
+ *
8280
+ * Supports `hydrate` and `fields` parameters to control the shape of the response.
8281
+ *
8282
+ */
8283
+ 'get'(
8284
+ parameters?: Parameters<Paths.GetEntityV2.PathParameters & Paths.GetEntityV2.QueryParameters> | null,
8285
+ data?: any,
8286
+ config?: AxiosRequestConfig
8287
+ ): OperationResponse<Paths.GetEntityV2.Responses.$200>
8288
+ }
8149
8289
  ['/v1/entity/{slug}/{id}']: {
8150
8290
  /**
8151
8291
  * getEntity - getEntity
package/dist/openapi.json CHANGED
@@ -520,6 +520,49 @@
520
520
  }
521
521
  }
522
522
  },
523
+ "/v2/entity/{slug}/{id}": {
524
+ "get": {
525
+ "operationId": "getEntityV2",
526
+ "summary": "getEntityV2",
527
+ "description": "Gets Entity by id.\n\nSupports `hydrate` and `fields` parameters to control the shape of the response.\n",
528
+ "tags": [
529
+ "Entities"
530
+ ],
531
+ "parameters": [
532
+ {
533
+ "$ref": "#/components/parameters/EntityIdPathParam"
534
+ },
535
+ {
536
+ "$ref": "#/components/parameters/EntitySlugPathParam"
537
+ },
538
+ {
539
+ "$ref": "#/components/parameters/HydrateEntitiesQueryParam"
540
+ },
541
+ {
542
+ "in": "query",
543
+ "name": "fields",
544
+ "description": "List of entity fields to include in results",
545
+ "style": "form",
546
+ "explode": false,
547
+ "schema": {
548
+ "$ref": "#/components/schemas/FieldsParam"
549
+ }
550
+ }
551
+ ],
552
+ "responses": {
553
+ "200": {
554
+ "description": "Success",
555
+ "content": {
556
+ "application/json": {
557
+ "schema": {
558
+ "$ref": "#/components/schemas/EntityItem"
559
+ }
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ },
523
566
  "/v1/entity/{slug}/{id}": {
524
567
  "get": {
525
568
  "operationId": "getEntity",
@@ -1198,15 +1241,7 @@
1198
1241
  "name": "fields",
1199
1242
  "description": "List of entity fields to include in results",
1200
1243
  "schema": {
1201
- "type": "array",
1202
- "items": {
1203
- "type": "string"
1204
- },
1205
- "example": [
1206
- "_id",
1207
- "_schema",
1208
- "_title"
1209
- ]
1244
+ "$ref": "#/components/schemas/FieldsParam"
1210
1245
  }
1211
1246
  }
1212
1247
  ],
@@ -1243,7 +1278,7 @@
1243
1278
  "$ref": "#/components/parameters/HydrateEntitiesQueryParam"
1244
1279
  },
1245
1280
  {
1246
- "$ref": "#/components/parameters/IncludeReverseQueryParam"
1281
+ "$ref": "#/components/parameters/IncludeReverseDeprecatedQueryParam"
1247
1282
  },
1248
1283
  {
1249
1284
  "$ref": "#/components/parameters/FromPageQueryParam"
@@ -4201,16 +4236,7 @@
4201
4236
  "default": false
4202
4237
  },
4203
4238
  "fields": {
4204
- "type": "array",
4205
- "description": "List of entity fields to include in search results",
4206
- "items": {
4207
- "type": "string"
4208
- },
4209
- "example": [
4210
- "_id",
4211
- "_title",
4212
- "first_name"
4213
- ]
4239
+ "$ref": "#/components/schemas/FieldsParam"
4214
4240
  },
4215
4241
  "include_scores": {
4216
4242
  "type": "boolean",
@@ -4233,6 +4259,21 @@
4233
4259
  "q"
4234
4260
  ]
4235
4261
  },
4262
+ "FieldsParam": {
4263
+ "type": "array",
4264
+ "description": "List of entity fields to include or exclude in the response\n\nUse ! to exclude fields, e.g. `!_id` to exclude the `_id` field.\n\nGlobbing and globstart (**) is supported for nested fields.\n",
4265
+ "items": {
4266
+ "type": "string"
4267
+ },
4268
+ "example": [
4269
+ "_id",
4270
+ "_title",
4271
+ "first_name",
4272
+ "account",
4273
+ "!account.*._files",
4274
+ "**._product"
4275
+ ]
4276
+ },
4236
4277
  "EntityImportParams": {
4237
4278
  "type": "object",
4238
4279
  "properties": {
@@ -4850,6 +4891,16 @@
4850
4891
  "default": 0
4851
4892
  }
4852
4893
  },
4894
+ "IncludeReverseDeprecatedQueryParam": {
4895
+ "name": "include_reverse",
4896
+ "description": "When true, includes reverse relations in response (other entities pointing to this entity) \n*It gets overriden by mode query parameter.*\n",
4897
+ "in": "query",
4898
+ "deprecated": true,
4899
+ "schema": {
4900
+ "default": false,
4901
+ "type": "boolean"
4902
+ }
4903
+ },
4853
4904
  "IncludeReverseQueryParam": {
4854
4905
  "name": "include_reverse",
4855
4906
  "description": "When true, includes reverse relations in response (other entities pointing to this entity)",
@@ -4866,6 +4917,7 @@
4866
4917
  "required": false,
4867
4918
  "style": "form",
4868
4919
  "explode": false,
4920
+ "example": "contact,account",
4869
4921
  "schema": {
4870
4922
  "type": "array",
4871
4923
  "items": {
@@ -4880,7 +4932,7 @@
4880
4932
  "required": false,
4881
4933
  "style": "form",
4882
4934
  "explode": false,
4883
- "example": "<url>/<operation>?exclude_schemas=file,message",
4935
+ "example": "file,message",
4884
4936
  "schema": {
4885
4937
  "type": "array",
4886
4938
  "items": {
@@ -4890,12 +4942,16 @@
4890
4942
  },
4891
4943
  "EntityRelationsModeQueryParam": {
4892
4944
  "name": "mode",
4893
- "description": "Return relations based on direct, reverse, or both mode",
4945
+ "description": "Options to determine how relations will be included in the result. \n*It overrides the include_reverse query param.* \nExplanation of possible options: \n- direct: include relations to which the searched entity refers \n- reverse: include relations that refer to the entity you are looking for \n- both: both direct and reverse relations\n",
4894
4946
  "in": "query",
4895
4947
  "required": false,
4896
- "example": "<url>/<operation>?mode=direct",
4897
4948
  "schema": {
4898
- "type": "string"
4949
+ "type": "string",
4950
+ "enum": [
4951
+ "direct",
4952
+ "reverse",
4953
+ "both"
4954
+ ]
4899
4955
  }
4900
4956
  },
4901
4957
  "DryRunQueryParam": {
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.18.2",
3
+ "version": "4.19.0",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",