@epilot/entity-client 4.20.0 → 4.20.2

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":{}}}}},"/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})})();
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":{}}}}},"/v1/clusterAssignment/{orgId}":{"get":{"operationId":"getElasticClusterForOrg","parameters":[{"in":"path","name":"orgId","required":true}]}}},"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
@@ -736,6 +736,18 @@
736
736
  }
737
737
  }
738
738
  }
739
+ },
740
+ "/v1/clusterAssignment/{orgId}": {
741
+ "get": {
742
+ "operationId": "getElasticClusterForOrg",
743
+ "parameters": [
744
+ {
745
+ "in": "path",
746
+ "name": "orgId",
747
+ "required": true
748
+ }
749
+ ]
750
+ }
739
751
  }
740
752
  },
741
753
  "components": {
package/dist/openapi.d.ts CHANGED
@@ -1403,6 +1403,16 @@ declare namespace Components {
1403
1403
  };
1404
1404
  type?: "date" | "datetime";
1405
1405
  }
1406
+ export interface ESClusterAssignment {
1407
+ /**
1408
+ * The organization for which the cluster assignment is returned
1409
+ */
1410
+ orgId?: string;
1411
+ /**
1412
+ * Name of the elastic cluster the organization is assigned to
1413
+ */
1414
+ cluster?: string;
1415
+ }
1406
1416
  /**
1407
1417
  * example:
1408
1418
  * {
@@ -1608,10 +1618,6 @@ declare namespace Components {
1608
1618
  * MY_SETTING
1609
1619
  */
1610
1620
  setting_flag?: string;
1611
- /**
1612
- * Only show capability for legacy tenants (ivy)
1613
- */
1614
- legacy?: boolean;
1615
1621
  }
1616
1622
  export interface EntityDefaultCreate {
1617
1623
  view_type?: "default";
@@ -1645,10 +1651,6 @@ declare namespace Components {
1645
1651
  * FF_MY_FEATURE_FLAG
1646
1652
  */
1647
1653
  feature_flag?: string;
1648
- /**
1649
- * Only show item for legacy tenants (ivy)
1650
- */
1651
- legacy?: boolean;
1652
1654
  } | {
1653
1655
  type?: "link";
1654
1656
  /**
@@ -1663,10 +1665,6 @@ declare namespace Components {
1663
1665
  * FF_MY_FEATURE_FLAG
1664
1666
  */
1665
1667
  feature_flag?: string;
1666
- /**
1667
- * Only show item for legacy tenants (ivy)
1668
- */
1669
- legacy?: boolean;
1670
1668
  })[];
1671
1669
  row_actions?: (string | /* An entity action configured from the entity schema */ EntityAction)[];
1672
1670
  navbar_actions?: {
@@ -2919,126 +2917,6 @@ declare namespace Components {
2919
2917
  entity_id: EntityId /* uuid */;
2920
2918
  }[];
2921
2919
  }
2922
- /**
2923
- * Entity with relation data resolved into the attribute values
2924
- * example:
2925
- * {
2926
- * "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
2927
- * "_org": "123",
2928
- * "_owners": [
2929
- * {
2930
- * "org_id": "123",
2931
- * "user_id": "123"
2932
- * }
2933
- * ],
2934
- * "_schema": "contact",
2935
- * "_tags": [
2936
- * "example",
2937
- * "mock"
2938
- * ],
2939
- * "_created_at": "2021-02-09T12:41:43.662Z",
2940
- * "_updated_at": "2021-02-09T12:41:43.662Z",
2941
- * "_acl": {
2942
- * "view": [
2943
- * "org:456",
2944
- * "org:789"
2945
- * ],
2946
- * "edit": [
2947
- * "org:456"
2948
- * ],
2949
- * "delete": [
2950
- * "org:456"
2951
- * ]
2952
- * },
2953
- * "_relations": [
2954
- * {
2955
- * "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
2956
- * }
2957
- * ],
2958
- * "status": "active",
2959
- * "customer_number": "abc123",
2960
- * "email": [
2961
- * {
2962
- * "label": "work",
2963
- * "email": "user@example.com"
2964
- * }
2965
- * ],
2966
- * "phone": [
2967
- * {
2968
- * "label": "work",
2969
- * "phone": "+49123456789"
2970
- * }
2971
- * ],
2972
- * "first_name": "First Name",
2973
- * "middle_name": "Middle Name",
2974
- * "last_name": "Last Name",
2975
- * "date_of_birth": "2019-08-24",
2976
- * "title": "Mr.",
2977
- * "account": [
2978
- * {
2979
- * "status": "active",
2980
- * "name": "Company name",
2981
- * "company_email": [
2982
- * {
2983
- * "label": "Company email",
2984
- * "email": "company@example.com"
2985
- * }
2986
- * ],
2987
- * "company_phone": [
2988
- * {
2989
- * "label": "Support phone",
2990
- * "phone": "+49123456789"
2991
- * }
2992
- * ],
2993
- * "company_website": "https://example.com",
2994
- * "tax_id": "DE123456789",
2995
- * "tax_exemption": "2019-08-24",
2996
- * "contacts": {
2997
- * "$relation": [
2998
- * {
2999
- * "_tags": [
3000
- * "CEO"
3001
- * ],
3002
- * "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
3003
- * }
3004
- * ]
3005
- * }
3006
- * }
3007
- * ]
3008
- * }
3009
- */
3010
- export interface HydratedEntityItem {
3011
- [name: string]: any;
3012
- _id: EntityId /* uuid */;
3013
- /**
3014
- * Organization Id the entity belongs to
3015
- */
3016
- _org: string;
3017
- _owners?: /**
3018
- * The user / organization owning this entity.
3019
- *
3020
- * Note: Owner implicitly has access to the entity regardless of ACLs.
3021
- *
3022
- */
3023
- EntityOwner[];
3024
- _schema: /**
3025
- * URL-friendly identifier for the entity schema
3026
- * example:
3027
- * contact
3028
- */
3029
- EntitySlug;
3030
- /**
3031
- * Title of entity
3032
- */
3033
- _title: string | null;
3034
- _tags?: string[] | null;
3035
- _created_at: string | null; // date-time
3036
- _updated_at: string | null; // date-time
3037
- _acl?: /* Access control list (ACL) for an entity. Defines sharing access to external orgs or users. */ EntityAcl;
3038
- _relations: {
3039
- entity_id: EntityId /* uuid */;
3040
- }[];
3041
- }
3042
2920
  /**
3043
2921
  * No UI representation
3044
2922
  */
@@ -6335,6 +6213,17 @@ declare namespace Paths {
6335
6213
  export type $200 = Components.Schemas.ActivityItem;
6336
6214
  }
6337
6215
  }
6216
+ namespace GetElasticClusterForOrg {
6217
+ namespace Parameters {
6218
+ export type OrgId = string;
6219
+ }
6220
+ export interface PathParameters {
6221
+ orgId: Parameters.OrgId;
6222
+ }
6223
+ namespace Responses {
6224
+ export type $200 = Components.Schemas.ESClusterAssignment;
6225
+ }
6226
+ }
6338
6227
  namespace GetEntity {
6339
6228
  namespace Parameters {
6340
6229
  export type Hydrate = boolean;
@@ -8053,6 +7942,16 @@ export interface OperationMethods {
8053
7942
  data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
8054
7943
  config?: AxiosRequestConfig
8055
7944
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
7945
+ /**
7946
+ * getElasticClusterForOrg - getElasticClusterForOrg
7947
+ *
7948
+ * Gets the Elastic cluster assignment by orgId.
7949
+ */
7950
+ 'getElasticClusterForOrg'(
7951
+ parameters?: Parameters<Paths.GetElasticClusterForOrg.PathParameters> | null,
7952
+ data?: any,
7953
+ config?: AxiosRequestConfig
7954
+ ): OperationResponse<Paths.GetElasticClusterForOrg.Responses.$200>
8056
7955
  }
8057
7956
 
8058
7957
  export interface PathsDictionary {
@@ -8765,6 +8664,18 @@ export interface PathsDictionary {
8765
8664
  config?: AxiosRequestConfig
8766
8665
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
8767
8666
  }
8667
+ ['/v1/clusterAssignment/{orgId}']: {
8668
+ /**
8669
+ * getElasticClusterForOrg - getElasticClusterForOrg
8670
+ *
8671
+ * Gets the Elastic cluster assignment by orgId.
8672
+ */
8673
+ 'get'(
8674
+ parameters?: Parameters<Paths.GetElasticClusterForOrg.PathParameters> | null,
8675
+ data?: any,
8676
+ config?: AxiosRequestConfig
8677
+ ): OperationResponse<Paths.GetElasticClusterForOrg.Responses.$200>
8678
+ }
8768
8679
  }
8769
8680
 
8770
8681
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
package/dist/openapi.json CHANGED
@@ -33,6 +33,10 @@
33
33
  {
34
34
  "name": "Taxonomy",
35
35
  "description": "Entity classification with Taxonomies"
36
+ },
37
+ {
38
+ "name": "Elastic Cluster Assignment",
39
+ "description": "Elastic Cluster assignment for organizations"
36
40
  }
37
41
  ],
38
42
  "security": [
@@ -1959,6 +1963,39 @@
1959
1963
  }
1960
1964
  }
1961
1965
  }
1966
+ },
1967
+ "/v1/clusterAssignment/{orgId}": {
1968
+ "get": {
1969
+ "operationId": "getElasticClusterForOrg",
1970
+ "summary": "getElasticClusterForOrg",
1971
+ "description": "Gets the Elastic cluster assignment by orgId.",
1972
+ "tags": [
1973
+ "Elastic Cluster Assignment"
1974
+ ],
1975
+ "parameters": [
1976
+ {
1977
+ "in": "path",
1978
+ "name": "orgId",
1979
+ "description": "The organization to fetch the cluster assigment",
1980
+ "required": true,
1981
+ "schema": {
1982
+ "type": "string"
1983
+ }
1984
+ }
1985
+ ],
1986
+ "responses": {
1987
+ "200": {
1988
+ "description": "Success",
1989
+ "content": {
1990
+ "application/json": {
1991
+ "schema": {
1992
+ "$ref": "#/components/schemas/ESClusterAssignment"
1993
+ }
1994
+ }
1995
+ }
1996
+ }
1997
+ }
1998
+ }
1962
1999
  }
1963
2000
  },
1964
2001
  "components": {
@@ -3690,10 +3727,6 @@
3690
3727
  "type": "string",
3691
3728
  "example": "MY_SETTING",
3692
3729
  "description": "This capability should only be active when the setting is enabled"
3693
- },
3694
- "legacy": {
3695
- "type": "boolean",
3696
- "description": "Only show capability for legacy tenants (ivy)"
3697
3730
  }
3698
3731
  },
3699
3732
  "required": [
@@ -3731,10 +3764,6 @@
3731
3764
  "type": "string",
3732
3765
  "example": "FF_MY_FEATURE_FLAG",
3733
3766
  "description": "This dropdown item should only be active when the feature flag is enabled"
3734
- },
3735
- "legacy": {
3736
- "type": "boolean",
3737
- "description": "Only show item for legacy tenants (ivy)"
3738
3767
  }
3739
3768
  }
3740
3769
  },
@@ -4123,16 +4152,6 @@
4123
4152
  }
4124
4153
  ]
4125
4154
  },
4126
- "HydratedEntityItem": {
4127
- "allOf": [
4128
- {
4129
- "$ref": "#/components/schemas/BaseEntity"
4130
- },
4131
- {
4132
- "$ref": "#/components/schemas/HydratedEntity"
4133
- }
4134
- ]
4135
- },
4136
4155
  "GetRelationsResp": {
4137
4156
  "type": "array",
4138
4157
  "items": {
@@ -4632,7 +4651,9 @@
4632
4651
  "name": {
4633
4652
  "description": "User-friendly identifier for the saved view",
4634
4653
  "type": "string",
4635
- "example": "View listing German"
4654
+ "example": "View listing German",
4655
+ "minLength": 1,
4656
+ "maxLength": 100
4636
4657
  },
4637
4658
  "org": {
4638
4659
  "description": "Organisation ID a view belongs to",
@@ -4796,6 +4817,19 @@
4796
4817
  }
4797
4818
  }
4798
4819
  }
4820
+ },
4821
+ "ESClusterAssignment": {
4822
+ "type": "object",
4823
+ "properties": {
4824
+ "orgId": {
4825
+ "type": "string",
4826
+ "description": "The organization for which the cluster assignment is returned"
4827
+ },
4828
+ "cluster": {
4829
+ "type": "string",
4830
+ "description": "Name of the elastic cluster the organization is assigned to"
4831
+ }
4832
+ }
4799
4833
  }
4800
4834
  },
4801
4835
  "parameters": {
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.20.0",
3
+ "version": "4.20.2",
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",
@@ -63,7 +63,7 @@
63
63
  "jest": "^26.6.3",
64
64
  "json-loader": "^0.5.7",
65
65
  "openapi-client-axios-typegen": "^7.4.1",
66
- "openapicmd": "^1.16.2",
66
+ "openapicmd": "^2.1.0",
67
67
  "ts-jest": "^26.5.0",
68
68
  "ts-loader": "^8.0.14",
69
69
  "ts-node": "^10.9.1",
@@ -71,5 +71,5 @@
71
71
  "webpack": "^5.18.0",
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
- "gitHead": "87e13b737363092db3b30c32df8e0507f7348697"
75
- }
74
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 epilot GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.