@epilot/entity-client 4.26.1 → 4.27.1

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.
@@ -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}/json/schema":{"get":{"operationId":"getJsonSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/json/example":{"get":{"operationId":"getSchemaExample","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"},{"in":"query","name":"fields","required":false,"style":"form","explode":false}]}},"/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:list":{"post":{"operationId":"listEntities","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}:validate":{"post":{"operationId":"validateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"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"},{"name":"strict","in":"query","required":false}],"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"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"removeRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"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},{"in":"query","name":"sort","required":false},{"in":"query","name":"from","required":false},{"in":"query","name":"size","required":false},{"in":"query","name":"fields","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/taxonomies":{"get":{"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"}]},"post":{"operationId":"createTaxonomy","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]},"put":{"operationId":"updateTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"permanent"}]}},"/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/TaxonomySlugQueryParamOptional"},{"in":"query","name":"query"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"createTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}":{"put":{"operationId":"updateTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"},{"in":"query","name":"permanent"}]}},"/v1/entity/schemas/attributes/{composite_id}":{"get":{"operationId":"getSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}]}},"/v1/entity/schemas/capabilities/{composite_id}":{"get":{"operationId":"getSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}]}},"/v1/entity/schemas/group/{composite_id}":{"get":{"operationId":"getSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}]}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"EntitySlugPathPriceParam":{"name":"slug","in":"path","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"TaxonomySlugQueryParamOptional":{"name":"taxonomySlug","in":"query"},"TaxonomyClassificationSlugPathParam":{"name":"classificationSlug","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}/json/schema":{"get":{"operationId":"getJsonSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/json/example":{"get":{"operationId":"getSchemaExample","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"},{"in":"query","name":"fields","required":false,"style":"form","explode":false}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity:list":{"post":{"operationId":"listEntities","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}:validate":{"post":{"operationId":"validateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathPriceParam"}],"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"},{"name":"strict","in":"query","required":false}],"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"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"removeRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"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},{"in":"query","name":"sort","required":false},{"in":"query","name":"from","required":false},{"in":"query","name":"size","required":false},{"in":"query","name":"fields","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/taxonomies":{"get":{"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"}]},"post":{"operationId":"createTaxonomy","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]},"put":{"operationId":"updateTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"permanent"}]}},"/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/TaxonomySlugQueryParamOptional"},{"in":"query","name":"query"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}},"/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"}]}},"/v2/entity/taxonomies/classifications/{classificationSlug}":{"get":{"operationId":"getTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}]},"put":{"operationId":"updateTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}]}},"/v1/entity/schemas/attributes/{composite_id}":{"get":{"operationId":"getSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaAttribute","parameters":[{"name":"composite_id","in":"path","required":true}]}},"/v1/entity/schemas/capabilities/{composite_id}":{"get":{"operationId":"getSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaCapability","parameters":[{"name":"composite_id","in":"path","required":true}]}},"/v1/entity/schemas/group/{composite_id}":{"get":{"operationId":"getSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}]},"put":{"operationId":"putSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchemaGroup","parameters":[{"name":"composite_id","in":"path","required":true}]}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"EntitySlugPathPriceParam":{"name":"slug","in":"path","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"TaxonomySlugQueryParamOptional":{"name":"taxonomySlug","in":"query"},"TaxonomyClassificationSlugPathParam":{"name":"classificationSlug","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})})();
@@ -113,27 +113,6 @@
113
113
  "operationId": "listSchemaBlueprints"
114
114
  }
115
115
  },
116
- "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}": {
117
- "get": {
118
- "operationId": "listTaxonomyClassificationsForSchema",
119
- "parameters": [
120
- {
121
- "$ref": "#/components/parameters/EntitySlugPathParam"
122
- },
123
- {
124
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
125
- },
126
- {
127
- "in": "query",
128
- "name": "query"
129
- },
130
- {
131
- "in": "query",
132
- "name": "size"
133
- }
134
- ]
135
- }
136
- },
137
116
  "/v1/entity:search": {
138
117
  "post": {
139
118
  "operationId": "searchEntities",
@@ -873,28 +852,39 @@
873
852
  }
874
853
  }
875
854
  },
876
- "/v2/entity/taxonomies/{taxonomySlug}/classifications": {
877
- "post": {
878
- "operationId": "createTaxonomyClassification",
855
+ "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}": {
856
+ "get": {
857
+ "operationId": "listTaxonomyClassificationsForSchema",
879
858
  "parameters": [
859
+ {
860
+ "$ref": "#/components/parameters/EntitySlugPathParam"
861
+ },
880
862
  {
881
863
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
864
+ },
865
+ {
866
+ "in": "query",
867
+ "name": "query"
868
+ },
869
+ {
870
+ "in": "query",
871
+ "name": "size"
882
872
  }
883
- ],
884
- "requestBody": {
885
- "content": {
886
- "application/json": {}
887
- }
888
- }
873
+ ]
889
874
  }
890
875
  },
891
- "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
876
+ "/v2/entity/taxonomies/classifications/{classificationSlug}": {
877
+ "get": {
878
+ "operationId": "getTaxonomyClassification",
879
+ "parameters": [
880
+ {
881
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
882
+ }
883
+ ]
884
+ },
892
885
  "put": {
893
886
  "operationId": "updateTaxonomyClassification",
894
887
  "parameters": [
895
- {
896
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
897
- },
898
888
  {
899
889
  "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
900
890
  }
@@ -908,15 +898,8 @@
908
898
  "delete": {
909
899
  "operationId": "deleteTaxonomyClassification",
910
900
  "parameters": [
911
- {
912
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
913
- },
914
901
  {
915
902
  "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
916
- },
917
- {
918
- "in": "query",
919
- "name": "permanent"
920
903
  }
921
904
  ]
922
905
  }
package/dist/openapi.d.ts CHANGED
@@ -3043,6 +3043,47 @@ declare namespace Components {
3043
3043
  * contact
3044
3044
  */
3045
3045
  export type EntitySlug = string;
3046
+ export interface EntityTableFilterOption {
3047
+ /**
3048
+ * The type of filter option
3049
+ */
3050
+ type?: "search" | "filter";
3051
+ /**
3052
+ * The label for the filter option
3053
+ */
3054
+ label: string;
3055
+ /**
3056
+ * The label type for the filter option
3057
+ */
3058
+ label_type?: string;
3059
+ /**
3060
+ * The name for the filter option
3061
+ */
3062
+ name?: string;
3063
+ /**
3064
+ * The group for the filter option
3065
+ */
3066
+ group?: string;
3067
+ allowedSchemas?: string[];
3068
+ /**
3069
+ * The related options for the filter option
3070
+ */
3071
+ relatedOptions?: EntityTableFilterOption[];
3072
+ }
3073
+ export interface EntityTableFilterSearch {
3074
+ /**
3075
+ * The label for the search filter
3076
+ */
3077
+ label: string;
3078
+ /**
3079
+ * The type for the search filter
3080
+ */
3081
+ type: string;
3082
+ /**
3083
+ * The value for the search filter
3084
+ */
3085
+ value: string;
3086
+ }
3046
3087
  /**
3047
3088
  * Validation error for an entity attribute
3048
3089
  */
@@ -6436,7 +6477,7 @@ declare namespace Components {
6436
6477
  /**
6437
6478
  * List of locations where the taxonomy is enabled to be used. If empty, it's enabled for all locations.
6438
6479
  */
6439
- enabled_locations?: ("account" | "contact" | "contract" | "email_template" | "file" | "journey" | "meter_counter" | "meter" | "opportunity" | "order" | "partner" | "price" | "product" | "submission" | "tax" | "message" | "portal_user")[];
6480
+ enabled_locations?: TaxonomyLocationId[];
6440
6481
  }
6441
6482
  export interface TaxonomyClassification {
6442
6483
  id?: /**
@@ -6463,6 +6504,7 @@ declare namespace Components {
6463
6504
  created_at?: string; // date-time
6464
6505
  updated_at?: string; // date-time
6465
6506
  }
6507
+ export type TaxonomyLocationId = "account" | "contact" | "contract" | "email_template" | "file" | "journey" | "meter_counter" | "meter" | "opportunity" | "order" | "partner" | "price" | "product" | "submission" | "tax" | "message" | "portal_user" | "request" | "comment";
6466
6508
  /**
6467
6509
  * URL-friendly name for taxonomy
6468
6510
  * example:
@@ -6947,68 +6989,13 @@ declare namespace Paths {
6947
6989
  }
6948
6990
  }
6949
6991
  namespace CreateTaxonomy {
6950
- /**
6951
- * example:
6952
- * {
6953
- * "slug": "product-category",
6954
- * "name": "Product Category",
6955
- * "plural": "Product Categories",
6956
- * "icon": "product-hub",
6957
- * "color": "#FF5733"
6958
- * }
6959
- */
6960
- export interface RequestBody {
6961
- slug: /**
6962
- * URL-friendly name for taxonomy
6963
- * example:
6964
- * purpose
6965
- */
6966
- Components.Schemas.TaxonomySlug;
6967
- /**
6968
- * A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag
6969
- * example:
6970
- * Purpose
6971
- */
6972
- name: string;
6973
- /**
6974
- * Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.
6975
- * example:
6976
- * Purposes
6977
- */
6978
- plural?: string;
6979
- /**
6980
- * Icon name for the taxonomy (from epilot360/icons icon set)
6981
- * example:
6982
- * purpose
6983
- */
6984
- icon?: string;
6985
- /**
6986
- * HEX Color code for the taxonomy
6987
- * example:
6988
- * #FF5733
6989
- */
6990
- color?: string;
6991
- }
6992
+ export type RequestBody = Components.Schemas.Taxonomy;
6992
6993
  namespace Responses {
6993
6994
  export type $201 = Components.Schemas.Taxonomy;
6994
6995
  export interface $409 {
6995
6996
  }
6996
6997
  }
6997
6998
  }
6998
- namespace CreateTaxonomyClassification {
6999
- namespace Parameters {
7000
- export type TaxonomySlug = string;
7001
- }
7002
- export interface PathParameters {
7003
- taxonomySlug: Parameters.TaxonomySlug;
7004
- }
7005
- export type RequestBody = Components.Schemas.TaxonomyClassification;
7006
- namespace Responses {
7007
- export type $201 = Components.Schemas.TaxonomyClassification;
7008
- export interface $409 {
7009
- }
7010
- }
7011
- }
7012
6999
  namespace DeleteEntity {
7013
7000
  namespace Parameters {
7014
7001
  export type ActivityId = /**
@@ -7176,19 +7163,12 @@ declare namespace Paths {
7176
7163
  namespace DeleteTaxonomyClassification {
7177
7164
  namespace Parameters {
7178
7165
  export type ClassificationSlug = string;
7179
- export type Permanent = boolean;
7180
- export type TaxonomySlug = string;
7181
7166
  }
7182
7167
  export interface PathParameters {
7183
- taxonomySlug: Parameters.TaxonomySlug;
7184
7168
  classificationSlug: Parameters.ClassificationSlug;
7185
7169
  }
7186
- export interface QueryParameters {
7187
- permanent?: Parameters.Permanent;
7188
- }
7189
7170
  namespace Responses {
7190
- export interface $204 {
7191
- }
7171
+ export type $200 = Components.Schemas.TaxonomyClassification;
7192
7172
  }
7193
7173
  }
7194
7174
  namespace ExportEntities {
@@ -8103,6 +8083,19 @@ declare namespace Paths {
8103
8083
  export type $200 = Components.Schemas.Taxonomy;
8104
8084
  }
8105
8085
  }
8086
+ namespace GetTaxonomyClassification {
8087
+ namespace Parameters {
8088
+ export type ClassificationSlug = string;
8089
+ }
8090
+ export interface PathParameters {
8091
+ classificationSlug: Parameters.ClassificationSlug;
8092
+ }
8093
+ namespace Responses {
8094
+ export type $200 = Components.Schemas.TaxonomyClassification;
8095
+ export interface $404 {
8096
+ }
8097
+ }
8098
+ }
8106
8099
  namespace ImportEntities {
8107
8100
  namespace Parameters {
8108
8101
  export type JobId = /**
@@ -8679,48 +8672,7 @@ declare namespace Paths {
8679
8672
  export interface PathParameters {
8680
8673
  taxonomySlug: Parameters.TaxonomySlug;
8681
8674
  }
8682
- /**
8683
- * example:
8684
- * {
8685
- * "name": "Product Category",
8686
- * "plural": "Product Categories",
8687
- * "icon": "product-hub",
8688
- * "color": "#FF5733",
8689
- * "enabled": true
8690
- * }
8691
- */
8692
- export interface RequestBody {
8693
- /**
8694
- * A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag
8695
- * example:
8696
- * Purpose
8697
- */
8698
- name?: string;
8699
- /**
8700
- * Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.
8701
- * example:
8702
- * Purposes
8703
- */
8704
- plural?: string;
8705
- /**
8706
- * Icon name for the taxonomy (from epilot360/icons icon set)
8707
- * example:
8708
- * purpose
8709
- */
8710
- icon?: string;
8711
- /**
8712
- * HEX Color code for the taxonomy
8713
- * example:
8714
- * #FF5733
8715
- */
8716
- color?: string;
8717
- /**
8718
- * Whether the taxonomy is enabled or not
8719
- * example:
8720
- * true
8721
- */
8722
- enabled?: boolean;
8723
- }
8675
+ export type RequestBody = Components.Schemas.Taxonomy;
8724
8676
  namespace Responses {
8725
8677
  export type $200 = Components.Schemas.Taxonomy;
8726
8678
  }
@@ -8728,10 +8680,8 @@ declare namespace Paths {
8728
8680
  namespace UpdateTaxonomyClassification {
8729
8681
  namespace Parameters {
8730
8682
  export type ClassificationSlug = string;
8731
- export type TaxonomySlug = string;
8732
8683
  }
8733
8684
  export interface PathParameters {
8734
- taxonomySlug: Parameters.TaxonomySlug;
8735
8685
  classificationSlug: Parameters.ClassificationSlug;
8736
8686
  }
8737
8687
  export type RequestBody = Components.Schemas.TaxonomyClassification;
@@ -9039,16 +8989,6 @@ export interface OperationMethods {
9039
8989
  data?: any,
9040
8990
  config?: AxiosRequestConfig
9041
8991
  ): OperationResponse<Paths.ListSchemaBlueprints.Responses.$200>
9042
- /**
9043
- * listTaxonomyClassificationsForSchema - listTaxonomyClassificationsForSchema
9044
- *
9045
- * List taxonomy classifications for a given schema
9046
- */
9047
- 'listTaxonomyClassificationsForSchema'(
9048
- parameters?: Parameters<Paths.ListTaxonomyClassificationsForSchema.PathParameters & Paths.ListTaxonomyClassificationsForSchema.QueryParameters> | null,
9049
- data?: any,
9050
- config?: AxiosRequestConfig
9051
- ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
9052
8992
  /**
9053
8993
  * searchEntities - searchEntities
9054
8994
  *
@@ -9689,15 +9629,25 @@ export interface OperationMethods {
9689
9629
  config?: AxiosRequestConfig
9690
9630
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
9691
9631
  /**
9692
- * createTaxonomyClassification - createTaxonomyClassification
9632
+ * listTaxonomyClassificationsForSchema - listTaxonomyClassificationsForSchema
9693
9633
  *
9694
- * Create a new classification for a taxonomy
9634
+ * List taxonomy classifications for a given schema
9695
9635
  */
9696
- 'createTaxonomyClassification'(
9697
- parameters?: Parameters<Paths.CreateTaxonomyClassification.PathParameters> | null,
9698
- data?: Paths.CreateTaxonomyClassification.RequestBody,
9636
+ 'listTaxonomyClassificationsForSchema'(
9637
+ parameters?: Parameters<Paths.ListTaxonomyClassificationsForSchema.PathParameters & Paths.ListTaxonomyClassificationsForSchema.QueryParameters> | null,
9638
+ data?: any,
9699
9639
  config?: AxiosRequestConfig
9700
- ): OperationResponse<Paths.CreateTaxonomyClassification.Responses.$201>
9640
+ ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
9641
+ /**
9642
+ * getTaxonomyClassification - getTaxonomyClassification
9643
+ *
9644
+ * Get a classification for a taxonomy
9645
+ */
9646
+ 'getTaxonomyClassification'(
9647
+ parameters?: Parameters<Paths.GetTaxonomyClassification.PathParameters> | null,
9648
+ data?: any,
9649
+ config?: AxiosRequestConfig
9650
+ ): OperationResponse<Paths.GetTaxonomyClassification.Responses.$200>
9701
9651
  /**
9702
9652
  * updateTaxonomyClassification - updateTaxonomyClassification
9703
9653
  *
@@ -9714,10 +9664,10 @@ export interface OperationMethods {
9714
9664
  * Delete a classification for a taxonomy
9715
9665
  */
9716
9666
  'deleteTaxonomyClassification'(
9717
- parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters & Paths.DeleteTaxonomyClassification.QueryParameters> | null,
9667
+ parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters> | null,
9718
9668
  data?: any,
9719
9669
  config?: AxiosRequestConfig
9720
- ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$204>
9670
+ ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$200>
9721
9671
  /**
9722
9672
  * getSchemaAttribute - getSchemaAttribute
9723
9673
  *
@@ -9903,18 +9853,6 @@ export interface PathsDictionary {
9903
9853
  config?: AxiosRequestConfig
9904
9854
  ): OperationResponse<Paths.ListSchemaBlueprints.Responses.$200>
9905
9855
  }
9906
- ['/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}']: {
9907
- /**
9908
- * listTaxonomyClassificationsForSchema - listTaxonomyClassificationsForSchema
9909
- *
9910
- * List taxonomy classifications for a given schema
9911
- */
9912
- 'get'(
9913
- parameters?: Parameters<Paths.ListTaxonomyClassificationsForSchema.PathParameters & Paths.ListTaxonomyClassificationsForSchema.QueryParameters> | null,
9914
- data?: any,
9915
- config?: AxiosRequestConfig
9916
- ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
9917
- }
9918
9856
  ['/v1/entity:search']: {
9919
9857
  /**
9920
9858
  * searchEntities - searchEntities
@@ -10610,19 +10548,29 @@ export interface PathsDictionary {
10610
10548
  config?: AxiosRequestConfig
10611
10549
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
10612
10550
  }
10613
- ['/v2/entity/taxonomies/{taxonomySlug}/classifications']: {
10551
+ ['/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}']: {
10614
10552
  /**
10615
- * createTaxonomyClassification - createTaxonomyClassification
10553
+ * listTaxonomyClassificationsForSchema - listTaxonomyClassificationsForSchema
10616
10554
  *
10617
- * Create a new classification for a taxonomy
10555
+ * List taxonomy classifications for a given schema
10618
10556
  */
10619
- 'post'(
10620
- parameters?: Parameters<Paths.CreateTaxonomyClassification.PathParameters> | null,
10621
- data?: Paths.CreateTaxonomyClassification.RequestBody,
10557
+ 'get'(
10558
+ parameters?: Parameters<Paths.ListTaxonomyClassificationsForSchema.PathParameters & Paths.ListTaxonomyClassificationsForSchema.QueryParameters> | null,
10559
+ data?: any,
10622
10560
  config?: AxiosRequestConfig
10623
- ): OperationResponse<Paths.CreateTaxonomyClassification.Responses.$201>
10561
+ ): OperationResponse<Paths.ListTaxonomyClassificationsForSchema.Responses.$200>
10624
10562
  }
10625
- ['/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}']: {
10563
+ ['/v2/entity/taxonomies/classifications/{classificationSlug}']: {
10564
+ /**
10565
+ * getTaxonomyClassification - getTaxonomyClassification
10566
+ *
10567
+ * Get a classification for a taxonomy
10568
+ */
10569
+ 'get'(
10570
+ parameters?: Parameters<Paths.GetTaxonomyClassification.PathParameters> | null,
10571
+ data?: any,
10572
+ config?: AxiosRequestConfig
10573
+ ): OperationResponse<Paths.GetTaxonomyClassification.Responses.$200>
10626
10574
  /**
10627
10575
  * updateTaxonomyClassification - updateTaxonomyClassification
10628
10576
  *
@@ -10639,10 +10587,10 @@ export interface PathsDictionary {
10639
10587
  * Delete a classification for a taxonomy
10640
10588
  */
10641
10589
  'delete'(
10642
- parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters & Paths.DeleteTaxonomyClassification.QueryParameters> | null,
10590
+ parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters> | null,
10643
10591
  data?: any,
10644
10592
  config?: AxiosRequestConfig
10645
- ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$204>
10593
+ ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$200>
10646
10594
  }
10647
10595
  ['/v1/entity/schemas/attributes/{composite_id}']: {
10648
10596
  /**
package/dist/openapi.json CHANGED
@@ -643,58 +643,6 @@
643
643
  }
644
644
  }
645
645
  },
646
- "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}": {
647
- "get": {
648
- "operationId": "listTaxonomyClassificationsForSchema",
649
- "summary": "listTaxonomyClassificationsForSchema",
650
- "description": "List taxonomy classifications for a given schema",
651
- "tags": [
652
- "Schemas"
653
- ],
654
- "parameters": [
655
- {
656
- "$ref": "#/components/parameters/EntitySlugPathParam"
657
- },
658
- {
659
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
660
- },
661
- {
662
- "in": "query",
663
- "name": "query",
664
- "schema": {
665
- "type": "string"
666
- }
667
- },
668
- {
669
- "in": "query",
670
- "name": "size",
671
- "schema": {
672
- "type": "number"
673
- }
674
- }
675
- ],
676
- "responses": {
677
- "200": {
678
- "description": "List of taxonomy classifications",
679
- "content": {
680
- "application/json": {
681
- "schema": {
682
- "type": "object",
683
- "properties": {
684
- "results": {
685
- "type": "array",
686
- "items": {
687
- "$ref": "#/components/schemas/TaxonomyClassification"
688
- }
689
- }
690
- }
691
- }
692
- }
693
- }
694
- }
695
- }
696
- }
697
- },
698
646
  "/v1/entity:search": {
699
647
  "post": {
700
648
  "operationId": "searchEntities",
@@ -2339,43 +2287,7 @@
2339
2287
  "content": {
2340
2288
  "application/json": {
2341
2289
  "schema": {
2342
- "type": "object",
2343
- "properties": {
2344
- "slug": {
2345
- "$ref": "#/components/schemas/TaxonomySlug"
2346
- },
2347
- "name": {
2348
- "type": "string",
2349
- "description": "A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag",
2350
- "example": "Purpose"
2351
- },
2352
- "plural": {
2353
- "type": "string",
2354
- "description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.",
2355
- "example": "Purposes"
2356
- },
2357
- "icon": {
2358
- "type": "string",
2359
- "description": "Icon name for the taxonomy (from epilot360/icons icon set)",
2360
- "example": "purpose"
2361
- },
2362
- "color": {
2363
- "type": "string",
2364
- "description": "HEX Color code for the taxonomy",
2365
- "example": "#FF5733"
2366
- }
2367
- },
2368
- "required": [
2369
- "slug",
2370
- "name"
2371
- ],
2372
- "example": {
2373
- "slug": "product-category",
2374
- "name": "Product Category",
2375
- "plural": "Product Categories",
2376
- "icon": "product-hub",
2377
- "color": "#FF5733"
2378
- }
2290
+ "$ref": "#/components/schemas/Taxonomy"
2379
2291
  }
2380
2292
  }
2381
2293
  }
@@ -2439,41 +2351,7 @@
2439
2351
  "content": {
2440
2352
  "application/json": {
2441
2353
  "schema": {
2442
- "type": "object",
2443
- "properties": {
2444
- "name": {
2445
- "type": "string",
2446
- "description": "A human friendly name of a Taxonomy e.g. Purpose, Product Category, Folder, Tag",
2447
- "example": "Purpose"
2448
- },
2449
- "plural": {
2450
- "type": "string",
2451
- "description": "Plural name of a Taxonomy e.g. Purposes, Product Categories, Folders, Tags. Defaults to name is not provided.",
2452
- "example": "Purposes"
2453
- },
2454
- "icon": {
2455
- "type": "string",
2456
- "description": "Icon name for the taxonomy (from epilot360/icons icon set)",
2457
- "example": "purpose"
2458
- },
2459
- "color": {
2460
- "type": "string",
2461
- "description": "HEX Color code for the taxonomy",
2462
- "example": "#FF5733"
2463
- },
2464
- "enabled": {
2465
- "type": "boolean",
2466
- "description": "Whether the taxonomy is enabled or not",
2467
- "example": true
2468
- }
2469
- },
2470
- "example": {
2471
- "name": "Product Category",
2472
- "plural": "Product Categories",
2473
- "icon": "product-hub",
2474
- "color": "#FF5733",
2475
- "enabled": true
2476
- }
2354
+ "$ref": "#/components/schemas/Taxonomy"
2477
2355
  }
2478
2356
  }
2479
2357
  }
@@ -2686,31 +2564,74 @@
2686
2564
  }
2687
2565
  }
2688
2566
  },
2689
- "/v2/entity/taxonomies/{taxonomySlug}/classifications": {
2690
- "post": {
2691
- "operationId": "createTaxonomyClassification",
2692
- "summary": "createTaxonomyClassification",
2693
- "description": "Create a new classification for a taxonomy",
2567
+ "/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}": {
2568
+ "get": {
2569
+ "operationId": "listTaxonomyClassificationsForSchema",
2570
+ "summary": "listTaxonomyClassificationsForSchema",
2571
+ "description": "List taxonomy classifications for a given schema",
2694
2572
  "tags": [
2695
- "Taxonomy"
2573
+ "Schemas"
2696
2574
  ],
2697
2575
  "parameters": [
2576
+ {
2577
+ "$ref": "#/components/parameters/EntitySlugPathParam"
2578
+ },
2698
2579
  {
2699
2580
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
2581
+ },
2582
+ {
2583
+ "in": "query",
2584
+ "name": "query",
2585
+ "schema": {
2586
+ "type": "string"
2587
+ }
2588
+ },
2589
+ {
2590
+ "in": "query",
2591
+ "name": "size",
2592
+ "schema": {
2593
+ "type": "number"
2594
+ }
2700
2595
  }
2701
2596
  ],
2702
- "requestBody": {
2703
- "content": {
2704
- "application/json": {
2705
- "schema": {
2706
- "$ref": "#/components/schemas/TaxonomyClassification"
2597
+ "responses": {
2598
+ "200": {
2599
+ "description": "List of taxonomy classifications",
2600
+ "content": {
2601
+ "application/json": {
2602
+ "schema": {
2603
+ "type": "object",
2604
+ "properties": {
2605
+ "results": {
2606
+ "type": "array",
2607
+ "items": {
2608
+ "$ref": "#/components/schemas/TaxonomyClassification"
2609
+ }
2610
+ }
2611
+ }
2612
+ }
2707
2613
  }
2708
2614
  }
2709
2615
  }
2710
- },
2616
+ }
2617
+ }
2618
+ },
2619
+ "/v2/entity/taxonomies/classifications/{classificationSlug}": {
2620
+ "get": {
2621
+ "operationId": "getTaxonomyClassification",
2622
+ "summary": "getTaxonomyClassification",
2623
+ "description": "Get a classification for a taxonomy",
2624
+ "tags": [
2625
+ "Taxonomy"
2626
+ ],
2627
+ "parameters": [
2628
+ {
2629
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2630
+ }
2631
+ ],
2711
2632
  "responses": {
2712
- "201": {
2713
- "description": "Taxonomy classification created",
2633
+ "200": {
2634
+ "description": "Taxonomy classification",
2714
2635
  "content": {
2715
2636
  "application/json": {
2716
2637
  "schema": {
@@ -2719,13 +2640,11 @@
2719
2640
  }
2720
2641
  }
2721
2642
  },
2722
- "409": {
2723
- "description": "Taxonomy classification already exists\""
2643
+ "404": {
2644
+ "description": "Taxonomy classification not found"
2724
2645
  }
2725
2646
  }
2726
- }
2727
- },
2728
- "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
2647
+ },
2729
2648
  "put": {
2730
2649
  "operationId": "updateTaxonomyClassification",
2731
2650
  "summary": "updateTaxonomyClassification",
@@ -2734,9 +2653,6 @@
2734
2653
  "Taxonomy"
2735
2654
  ],
2736
2655
  "parameters": [
2737
- {
2738
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
2739
- },
2740
2656
  {
2741
2657
  "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2742
2658
  }
@@ -2774,24 +2690,20 @@
2774
2690
  "Taxonomy"
2775
2691
  ],
2776
2692
  "parameters": [
2777
- {
2778
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
2779
- },
2780
2693
  {
2781
2694
  "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2782
- },
2783
- {
2784
- "in": "query",
2785
- "name": "permanent",
2786
- "description": "If true, the classification will be permanently deleted",
2787
- "schema": {
2788
- "type": "boolean"
2789
- }
2790
2695
  }
2791
2696
  ],
2792
2697
  "responses": {
2793
- "204": {
2794
- "description": "Taxonomy classification deleted"
2698
+ "200": {
2699
+ "description": "Taxonomy classification deleted",
2700
+ "content": {
2701
+ "application/json": {
2702
+ "schema": {
2703
+ "$ref": "#/components/schemas/TaxonomyClassification"
2704
+ }
2705
+ }
2706
+ }
2795
2707
  }
2796
2708
  }
2797
2709
  }
@@ -3454,6 +3366,74 @@
3454
3366
  }
3455
3367
  ]
3456
3368
  },
3369
+ "EntityTableFilterSearch": {
3370
+ "type": "object",
3371
+ "properties": {
3372
+ "label": {
3373
+ "type": "string",
3374
+ "description": "The label for the search filter"
3375
+ },
3376
+ "type": {
3377
+ "type": "string",
3378
+ "description": "The type for the search filter"
3379
+ },
3380
+ "value": {
3381
+ "type": "string",
3382
+ "description": "The value for the search filter"
3383
+ }
3384
+ },
3385
+ "required": [
3386
+ "label",
3387
+ "type",
3388
+ "value"
3389
+ ]
3390
+ },
3391
+ "EntityTableFilterOption": {
3392
+ "type": "object",
3393
+ "properties": {
3394
+ "type": {
3395
+ "type": "string",
3396
+ "description": "The type of filter option",
3397
+ "enum": [
3398
+ "search",
3399
+ "filter"
3400
+ ]
3401
+ },
3402
+ "label": {
3403
+ "type": "string",
3404
+ "description": "The label for the filter option"
3405
+ },
3406
+ "label_type": {
3407
+ "type": "string",
3408
+ "description": "The label type for the filter option"
3409
+ },
3410
+ "name": {
3411
+ "type": "string",
3412
+ "description": "The name for the filter option"
3413
+ },
3414
+ "group": {
3415
+ "type": "string",
3416
+ "description": "The group for the filter option"
3417
+ },
3418
+ "allowedSchemas": {
3419
+ "type": "array",
3420
+ "items": {
3421
+ "type": "string",
3422
+ "description": "The allowed schemas for the filter option"
3423
+ }
3424
+ },
3425
+ "relatedOptions": {
3426
+ "type": "array",
3427
+ "items": {
3428
+ "$ref": "#/components/schemas/EntityTableFilterOption"
3429
+ },
3430
+ "description": "The related options for the filter option"
3431
+ }
3432
+ },
3433
+ "required": [
3434
+ "label"
3435
+ ]
3436
+ },
3457
3437
  "EntitySchemaGroup": {
3458
3438
  "type": "object",
3459
3439
  "properties": {
@@ -3749,8 +3729,7 @@
3749
3729
  },
3750
3730
  "protected": {
3751
3731
  "description": "Setting to `true` prevents the attribute from being modified / deleted",
3752
- "type": "boolean",
3753
- "default": true
3732
+ "type": "boolean"
3754
3733
  },
3755
3734
  "info_helpers": {
3756
3735
  "description": "A set of configurations meant to document and assist the user in filling the attribute.",
@@ -6318,30 +6297,35 @@
6318
6297
  "description": "List of locations where the taxonomy is enabled to be used. If empty, it's enabled for all locations.",
6319
6298
  "type": "array",
6320
6299
  "items": {
6321
- "type": "string",
6322
- "enum": [
6323
- "account",
6324
- "contact",
6325
- "contract",
6326
- "email_template",
6327
- "file",
6328
- "journey",
6329
- "meter_counter",
6330
- "meter",
6331
- "opportunity",
6332
- "order",
6333
- "partner",
6334
- "price",
6335
- "product",
6336
- "submission",
6337
- "tax",
6338
- "message",
6339
- "portal_user"
6340
- ]
6300
+ "$ref": "#/components/schemas/TaxonomyLocationId"
6341
6301
  }
6342
6302
  }
6343
6303
  }
6344
6304
  },
6305
+ "TaxonomyLocationId": {
6306
+ "type": "string",
6307
+ "enum": [
6308
+ "account",
6309
+ "contact",
6310
+ "contract",
6311
+ "email_template",
6312
+ "file",
6313
+ "journey",
6314
+ "meter_counter",
6315
+ "meter",
6316
+ "opportunity",
6317
+ "order",
6318
+ "partner",
6319
+ "price",
6320
+ "product",
6321
+ "submission",
6322
+ "tax",
6323
+ "message",
6324
+ "portal_user",
6325
+ "request",
6326
+ "comment"
6327
+ ]
6328
+ },
6345
6329
  "TaxonomyClassification": {
6346
6330
  "type": "object",
6347
6331
  "properties": {
@@ -6487,7 +6471,8 @@
6487
6471
  "required": true,
6488
6472
  "schema": {
6489
6473
  "type": "string"
6490
- }
6474
+ },
6475
+ "example": "purpose:<name>"
6491
6476
  },
6492
6477
  "SavedViewIdPathParam": {
6493
6478
  "name": "id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.26.1",
3
+ "version": "4.27.1",
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",
@@ -50,7 +50,6 @@
50
50
  "dependencies": {
51
51
  "@dazn/lambda-powertools-correlation-ids": "^1.28.1",
52
52
  "buffer": "^6.0.3",
53
- "epilot-sdk": "^1.5.4",
54
53
  "https-browserify": "^1.0.0",
55
54
  "openapi-client-axios": "^7.5.1",
56
55
  "stream-http": "^3.1.1",