@epilot/entity-client 4.21.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,a,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(240));a.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"},{"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/{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"}],"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":{"deprecated":true,"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"}]}},"/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/TaxonomySlugQueryParam"}],"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/{classificationSlug}":{"get":{"operationId":"getTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"$ref":"#/components/parameters/TaxonomyClassificationSlugPathParam"}]},"post":{"operationId":"createTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"response":{"201":{"description":"Taxonomy classification created","content":{"application/json":{}}},"409":{"description":"Taxonomy classification already exists\\""}}},"put":{"operationId":"updateTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}},"response":{"200":{"description":"Taxonomy classification updated","content":{"application/json":{}}},"404":{"description":"Taxonomy classification not found"}}},"delete":{"operationId":"deleteTaxonomyClassification","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"path","name":"classificationId","required":true},{"in":"query","name":"permanent"}],"response":{"204":{"description":"Taxonomy classification deleted"}}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"EntitySlugPathPriceParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"TaxonomyClassificationSlugPathParam":{"name":"taxonomyClassificationSlug","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"}]}')}},a={},t=function t(r){var n=a[r];if(void 0!==n)return n.exports;var o=a[r]={exports:{}};return e[r].call(o.exports,o,o.exports,t),o.exports}(914),r=exports;for(var n in t)r[n]=t[n];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={914:function(e,a,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0});var n=r(t(240));a.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"},{"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/{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"}],"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},{"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/listTaxonomies":{"get":{"deprecated":true,"operationId":"listTaxonomies","parameters":[{"in":"query","name":"include_disabled"}]}},"/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"}]}}},"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"}]}')}},a={},t=function t(r){var n=a[r];if(void 0!==n)return n.exports;var o=a[r]={exports:{}};return e[r].call(o.exports,o,o.exports,t),o.exports}(914),r=exports;for(var n in t)r[n]=t[n];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
@@ -646,6 +646,26 @@
646
646
  "in": "query",
647
647
  "name": "slug",
648
648
  "required": false
649
+ },
650
+ {
651
+ "in": "query",
652
+ "name": "sort",
653
+ "required": false
654
+ },
655
+ {
656
+ "in": "query",
657
+ "name": "from",
658
+ "required": false
659
+ },
660
+ {
661
+ "in": "query",
662
+ "name": "size",
663
+ "required": false
664
+ },
665
+ {
666
+ "in": "query",
667
+ "name": "fields",
668
+ "required": false
649
669
  }
650
670
  ]
651
671
  }
@@ -785,7 +805,11 @@
785
805
  "operationId": "taxonomiesClassificationsSearch",
786
806
  "parameters": [
787
807
  {
788
- "$ref": "#/components/parameters/TaxonomySlugQueryParam"
808
+ "$ref": "#/components/parameters/TaxonomySlugQueryParamOptional"
809
+ },
810
+ {
811
+ "in": "query",
812
+ "name": "query"
789
813
  }
790
814
  ],
791
815
  "requestBody": {
@@ -810,18 +834,7 @@
810
834
  }
811
835
  }
812
836
  },
813
- "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
814
- "get": {
815
- "operationId": "getTaxonomyClassification",
816
- "parameters": [
817
- {
818
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
819
- },
820
- {
821
- "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
822
- }
823
- ]
824
- },
837
+ "/v2/entity/taxonomies/{taxonomySlug}/classifications": {
825
838
  "post": {
826
839
  "operationId": "createTaxonomyClassification",
827
840
  "parameters": [
@@ -833,41 +846,24 @@
833
846
  "content": {
834
847
  "application/json": {}
835
848
  }
836
- },
837
- "response": {
838
- "201": {
839
- "description": "Taxonomy classification created",
840
- "content": {
841
- "application/json": {}
842
- }
843
- },
844
- "409": {
845
- "description": "Taxonomy classification already exists\""
846
- }
847
849
  }
848
- },
850
+ }
851
+ },
852
+ "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
849
853
  "put": {
850
854
  "operationId": "updateTaxonomyClassification",
851
855
  "parameters": [
852
856
  {
853
857
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
858
+ },
859
+ {
860
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
854
861
  }
855
862
  ],
856
863
  "requestBody": {
857
864
  "content": {
858
865
  "application/json": {}
859
866
  }
860
- },
861
- "response": {
862
- "200": {
863
- "description": "Taxonomy classification updated",
864
- "content": {
865
- "application/json": {}
866
- }
867
- },
868
- "404": {
869
- "description": "Taxonomy classification not found"
870
- }
871
867
  }
872
868
  },
873
869
  "delete": {
@@ -877,20 +873,13 @@
877
873
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
878
874
  },
879
875
  {
880
- "in": "path",
881
- "name": "classificationId",
882
- "required": true
876
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
883
877
  },
884
878
  {
885
879
  "in": "query",
886
880
  "name": "permanent"
887
881
  }
888
- ],
889
- "response": {
890
- "204": {
891
- "description": "Taxonomy classification deleted"
892
- }
893
- }
882
+ ]
894
883
  }
895
884
  }
896
885
  },
@@ -911,18 +900,17 @@
911
900
  "in": "path",
912
901
  "required": true
913
902
  },
914
- "TaxonomySlugQueryParam": {
915
- "name": "taxonomySlug",
916
- "in": "query",
917
- "required": true
918
- },
919
903
  "TaxonomySlugPathParam": {
920
904
  "name": "taxonomySlug",
921
905
  "in": "path",
922
906
  "required": true
923
907
  },
908
+ "TaxonomySlugQueryParamOptional": {
909
+ "name": "taxonomySlug",
910
+ "in": "query"
911
+ },
924
912
  "TaxonomyClassificationSlugPathParam": {
925
- "name": "taxonomyClassificationSlug",
913
+ "name": "classificationSlug",
926
914
  "in": "path",
927
915
  "required": true
928
916
  },
package/dist/openapi.d.ts CHANGED
@@ -56,7 +56,7 @@ declare namespace Components {
56
56
  export type SavedViewIdPathParam = /* Generated uuid for a saved view */ Schemas.SavedViewId /* uuid */;
57
57
  export type TaxonomyClassificationSlugPathParam = string;
58
58
  export type TaxonomySlugPathParam = string;
59
- export type TaxonomySlugQueryParam = string;
59
+ export type TaxonomySlugQueryParamOptional = string;
60
60
  }
61
61
  export interface PathParameters {
62
62
  EntityIdPathParam?: Parameters.EntityIdPathParam;
@@ -73,7 +73,7 @@ declare namespace Components {
73
73
  ActivityIdPathParam?: Parameters.ActivityIdPathParam;
74
74
  }
75
75
  export interface QueryParameters {
76
- TaxonomySlugQueryParam?: Parameters.TaxonomySlugQueryParam;
76
+ TaxonomySlugQueryParamOptional?: Parameters.TaxonomySlugQueryParamOptional;
77
77
  AsyncOperationQueryParam?: Parameters.AsyncOperationQueryParam;
78
78
  HydrateEntitiesQueryParam?: Parameters.HydrateEntitiesQueryParam;
79
79
  ActivityIdQueryParam?: Parameters.ActivityIdQueryParam;
@@ -275,7 +275,11 @@ declare namespace Components {
275
275
  *
276
276
  */
277
277
  render_condition?: string;
278
- _purpose?: ClassificationId /* uuid */[];
278
+ _purpose?: /**
279
+ * example:
280
+ * taxonomy-slug:classification-slug
281
+ */
282
+ ClassificationId[];
279
283
  /**
280
284
  * A set of constraints applicable to the attribute.
281
285
  * These constraints should and will be enforced by the attribute renderer.
@@ -399,7 +403,11 @@ declare namespace Components {
399
403
  *
400
404
  */
401
405
  render_condition?: string;
402
- _purpose?: ClassificationId /* uuid */[];
406
+ _purpose?: /**
407
+ * example:
408
+ * taxonomy-slug:classification-slug
409
+ */
410
+ ClassificationId[];
403
411
  /**
404
412
  * A set of constraints applicable to the attribute.
405
413
  * These constraints should and will be enforced by the attribute renderer.
@@ -518,7 +526,11 @@ declare namespace Components {
518
526
  *
519
527
  */
520
528
  render_condition?: string;
521
- _purpose?: ClassificationId /* uuid */[];
529
+ _purpose?: /**
530
+ * example:
531
+ * taxonomy-slug:classification-slug
532
+ */
533
+ ClassificationId[];
522
534
  /**
523
535
  * A set of constraints applicable to the attribute.
524
536
  * These constraints should and will be enforced by the attribute renderer.
@@ -704,7 +716,11 @@ declare namespace Components {
704
716
  *
705
717
  */
706
718
  render_condition?: string;
707
- _purpose?: ClassificationId /* uuid */[];
719
+ _purpose?: /**
720
+ * example:
721
+ * taxonomy-slug:classification-slug
722
+ */
723
+ ClassificationId[];
708
724
  /**
709
725
  * A set of constraints applicable to the attribute.
710
726
  * These constraints should and will be enforced by the attribute renderer.
@@ -771,11 +787,19 @@ declare namespace Components {
771
787
  };
772
788
  type?: "boolean";
773
789
  }
774
- export type ClassificationId = string; // uuid
790
+ /**
791
+ * example:
792
+ * taxonomy-slug:classification-slug
793
+ */
794
+ export type ClassificationId = string;
775
795
  export interface ClassificationsUpdate {
776
796
  create?: TaxonomyClassification[];
777
797
  update?: TaxonomyClassification[];
778
- delete?: ClassificationId /* uuid */[];
798
+ delete?: (/**
799
+ * example:
800
+ * taxonomy-slug:classification-slug
801
+ */
802
+ ClassificationId | string)[];
779
803
  }
780
804
  /**
781
805
  * An attribute that is computed from the entity data. For more details on how to use them, check the docs [here](https://e-pilot.atlassian.net/wiki/spaces/EO/pages/5642977476/How+To+Computed+Schema+Attributes)
@@ -832,7 +856,11 @@ declare namespace Components {
832
856
  *
833
857
  */
834
858
  render_condition?: string;
835
- _purpose?: ClassificationId /* uuid */[];
859
+ _purpose?: /**
860
+ * example:
861
+ * taxonomy-slug:classification-slug
862
+ */
863
+ ClassificationId[];
836
864
  /**
837
865
  * A set of constraints applicable to the attribute.
838
866
  * These constraints should and will be enforced by the attribute renderer.
@@ -954,7 +982,11 @@ declare namespace Components {
954
982
  *
955
983
  */
956
984
  render_condition?: string;
957
- _purpose?: ClassificationId /* uuid */[];
985
+ _purpose?: /**
986
+ * example:
987
+ * taxonomy-slug:classification-slug
988
+ */
989
+ ClassificationId[];
958
990
  /**
959
991
  * A set of constraints applicable to the attribute.
960
992
  * These constraints should and will be enforced by the attribute renderer.
@@ -1078,7 +1110,11 @@ declare namespace Components {
1078
1110
  *
1079
1111
  */
1080
1112
  render_condition?: string;
1081
- _purpose?: ClassificationId /* uuid */[];
1113
+ _purpose?: /**
1114
+ * example:
1115
+ * taxonomy-slug:classification-slug
1116
+ */
1117
+ ClassificationId[];
1082
1118
  /**
1083
1119
  * A set of constraints applicable to the attribute.
1084
1120
  * These constraints should and will be enforced by the attribute renderer.
@@ -1200,7 +1236,11 @@ declare namespace Components {
1200
1236
  *
1201
1237
  */
1202
1238
  render_condition?: string;
1203
- _purpose?: ClassificationId /* uuid */[];
1239
+ _purpose?: /**
1240
+ * example:
1241
+ * taxonomy-slug:classification-slug
1242
+ */
1243
+ ClassificationId[];
1204
1244
  /**
1205
1245
  * A set of constraints applicable to the attribute.
1206
1246
  * These constraints should and will be enforced by the attribute renderer.
@@ -1332,7 +1372,11 @@ declare namespace Components {
1332
1372
  *
1333
1373
  */
1334
1374
  render_condition?: string;
1335
- _purpose?: ClassificationId /* uuid */[];
1375
+ _purpose?: /**
1376
+ * example:
1377
+ * taxonomy-slug:classification-slug
1378
+ */
1379
+ ClassificationId[];
1336
1380
  /**
1337
1381
  * A set of constraints applicable to the attribute.
1338
1382
  * These constraints should and will be enforced by the attribute renderer.
@@ -1515,7 +1559,11 @@ declare namespace Components {
1515
1559
  */
1516
1560
  title?: string;
1517
1561
  attributes?: Attribute[];
1518
- _purpose?: ClassificationId /* uuid */[];
1562
+ _purpose?: /**
1563
+ * example:
1564
+ * taxonomy-slug:classification-slug
1565
+ */
1566
+ ClassificationId[];
1519
1567
  ui_hooks?: {
1520
1568
  [name: string]: any;
1521
1569
  /**
@@ -2113,7 +2161,11 @@ declare namespace Components {
2113
2161
  key?: string;
2114
2162
  default?: string;
2115
2163
  };
2116
- _purpose?: ClassificationId /* uuid */[];
2164
+ _purpose?: /**
2165
+ * example:
2166
+ * taxonomy-slug:classification-slug
2167
+ */
2168
+ ClassificationId[];
2117
2169
  }[];
2118
2170
  /**
2119
2171
  * Custom grid definitions for the layout. These settings are composed by managed and un-managed properties:
@@ -2368,7 +2420,11 @@ declare namespace Components {
2368
2420
  key?: string;
2369
2421
  default?: string;
2370
2422
  };
2371
- _purpose?: ClassificationId /* uuid */[];
2423
+ _purpose?: /**
2424
+ * example:
2425
+ * taxonomy-slug:classification-slug
2426
+ */
2427
+ ClassificationId[];
2372
2428
  }[];
2373
2429
  /**
2374
2430
  * Custom grid definitions for the layout. These settings are composed by managed and un-managed properties:
@@ -2723,7 +2779,11 @@ declare namespace Components {
2723
2779
  *
2724
2780
  */
2725
2781
  render_condition?: string;
2726
- _purpose?: ClassificationId /* uuid */[];
2782
+ _purpose?: /**
2783
+ * example:
2784
+ * taxonomy-slug:classification-slug
2785
+ */
2786
+ ClassificationId[];
2727
2787
  /**
2728
2788
  * A set of constraints applicable to the attribute.
2729
2789
  * These constraints should and will be enforced by the attribute renderer.
@@ -2976,7 +3036,11 @@ declare namespace Components {
2976
3036
  *
2977
3037
  */
2978
3038
  render_condition?: string;
2979
- _purpose?: ClassificationId /* uuid */[];
3039
+ _purpose?: /**
3040
+ * example:
3041
+ * taxonomy-slug:classification-slug
3042
+ */
3043
+ ClassificationId[];
2980
3044
  /**
2981
3045
  * A set of constraints applicable to the attribute.
2982
3046
  * These constraints should and will be enforced by the attribute renderer.
@@ -3098,7 +3162,11 @@ declare namespace Components {
3098
3162
  *
3099
3163
  */
3100
3164
  render_condition?: string;
3101
- _purpose?: ClassificationId /* uuid */[];
3165
+ _purpose?: /**
3166
+ * example:
3167
+ * taxonomy-slug:classification-slug
3168
+ */
3169
+ ClassificationId[];
3102
3170
  /**
3103
3171
  * A set of constraints applicable to the attribute.
3104
3172
  * These constraints should and will be enforced by the attribute renderer.
@@ -3220,7 +3288,11 @@ declare namespace Components {
3220
3288
  *
3221
3289
  */
3222
3290
  render_condition?: string;
3223
- _purpose?: ClassificationId /* uuid */[];
3291
+ _purpose?: /**
3292
+ * example:
3293
+ * taxonomy-slug:classification-slug
3294
+ */
3295
+ ClassificationId[];
3224
3296
  /**
3225
3297
  * A set of constraints applicable to the attribute.
3226
3298
  * These constraints should and will be enforced by the attribute renderer.
@@ -3350,7 +3422,11 @@ declare namespace Components {
3350
3422
  *
3351
3423
  */
3352
3424
  render_condition?: string;
3353
- _purpose?: ClassificationId /* uuid */[];
3425
+ _purpose?: /**
3426
+ * example:
3427
+ * taxonomy-slug:classification-slug
3428
+ */
3429
+ ClassificationId[];
3354
3430
  /**
3355
3431
  * A set of constraints applicable to the attribute.
3356
3432
  * These constraints should and will be enforced by the attribute renderer.
@@ -3417,6 +3493,14 @@ declare namespace Components {
3417
3493
  };
3418
3494
  type?: "link";
3419
3495
  }
3496
+ export interface ListSavedViewsResults {
3497
+ /**
3498
+ * example:
3499
+ * 1
3500
+ */
3501
+ hits?: number;
3502
+ results?: /* A saved entity view */ SavedViewItem[];
3503
+ }
3420
3504
  /**
3421
3505
  * Multi Choice Selection
3422
3506
  */
@@ -3472,7 +3556,11 @@ declare namespace Components {
3472
3556
  *
3473
3557
  */
3474
3558
  render_condition?: string;
3475
- _purpose?: ClassificationId /* uuid */[];
3559
+ _purpose?: /**
3560
+ * example:
3561
+ * taxonomy-slug:classification-slug
3562
+ */
3563
+ ClassificationId[];
3476
3564
  /**
3477
3565
  * A set of constraints applicable to the attribute.
3478
3566
  * These constraints should and will be enforced by the attribute renderer.
@@ -3610,7 +3698,11 @@ declare namespace Components {
3610
3698
  *
3611
3699
  */
3612
3700
  render_condition?: string;
3613
- _purpose?: ClassificationId /* uuid */[];
3701
+ _purpose?: /**
3702
+ * example:
3703
+ * taxonomy-slug:classification-slug
3704
+ */
3705
+ ClassificationId[];
3614
3706
  /**
3615
3707
  * A set of constraints applicable to the attribute.
3616
3708
  * These constraints should and will be enforced by the attribute renderer.
@@ -3733,7 +3825,11 @@ declare namespace Components {
3733
3825
  *
3734
3826
  */
3735
3827
  render_condition?: string;
3736
- _purpose?: ClassificationId /* uuid */[];
3828
+ _purpose?: /**
3829
+ * example:
3830
+ * taxonomy-slug:classification-slug
3831
+ */
3832
+ ClassificationId[];
3737
3833
  /**
3738
3834
  * A set of constraints applicable to the attribute.
3739
3835
  * These constraints should and will be enforced by the attribute renderer.
@@ -3855,7 +3951,11 @@ declare namespace Components {
3855
3951
  *
3856
3952
  */
3857
3953
  render_condition?: string;
3858
- _purpose?: ClassificationId /* uuid */[];
3954
+ _purpose?: /**
3955
+ * example:
3956
+ * taxonomy-slug:classification-slug
3957
+ */
3958
+ ClassificationId[];
3859
3959
  /**
3860
3960
  * A set of constraints applicable to the attribute.
3861
3961
  * These constraints should and will be enforced by the attribute renderer.
@@ -3977,7 +4077,11 @@ declare namespace Components {
3977
4077
  *
3978
4078
  */
3979
4079
  render_condition?: string;
3980
- _purpose?: ClassificationId /* uuid */[];
4080
+ _purpose?: /**
4081
+ * example:
4082
+ * taxonomy-slug:classification-slug
4083
+ */
4084
+ ClassificationId[];
3981
4085
  /**
3982
4086
  * A set of constraints applicable to the attribute.
3983
4087
  * These constraints should and will be enforced by the attribute renderer.
@@ -4099,7 +4203,11 @@ declare namespace Components {
4099
4203
  *
4100
4204
  */
4101
4205
  render_condition?: string;
4102
- _purpose?: ClassificationId /* uuid */[];
4206
+ _purpose?: /**
4207
+ * example:
4208
+ * taxonomy-slug:classification-slug
4209
+ */
4210
+ ClassificationId[];
4103
4211
  /**
4104
4212
  * A set of constraints applicable to the attribute.
4105
4213
  * These constraints should and will be enforced by the attribute renderer.
@@ -4226,7 +4334,11 @@ declare namespace Components {
4226
4334
  *
4227
4335
  */
4228
4336
  render_condition?: string;
4229
- _purpose?: ClassificationId /* uuid */[];
4337
+ _purpose?: /**
4338
+ * example:
4339
+ * taxonomy-slug:classification-slug
4340
+ */
4341
+ ClassificationId[];
4230
4342
  /**
4231
4343
  * A set of constraints applicable to the attribute.
4232
4344
  * These constraints should and will be enforced by the attribute renderer.
@@ -4291,14 +4403,22 @@ declare namespace Components {
4291
4403
  */
4292
4404
  hint_tooltip_placement?: string;
4293
4405
  };
4294
- id?: ClassificationId /* uuid */;
4406
+ id?: /**
4407
+ * example:
4408
+ * taxonomy-slug:classification-slug
4409
+ */
4410
+ ClassificationId;
4295
4411
  /**
4296
4412
  * URL-friendly identifier for the classification
4297
4413
  * example:
4298
4414
  * wallbox-pv
4299
4415
  */
4300
4416
  slug?: string;
4301
- parents?: ClassificationId /* uuid */[];
4417
+ parents?: /**
4418
+ * example:
4419
+ * taxonomy-slug:classification-slug
4420
+ */
4421
+ ClassificationId[];
4302
4422
  created_at?: string; // date-time
4303
4423
  updated_at?: string; // date-time
4304
4424
  type?: "purpose";
@@ -4373,7 +4493,11 @@ declare namespace Components {
4373
4493
  *
4374
4494
  */
4375
4495
  render_condition?: string;
4376
- _purpose?: ClassificationId /* uuid */[];
4496
+ _purpose?: /**
4497
+ * example:
4498
+ * taxonomy-slug:classification-slug
4499
+ */
4500
+ ClassificationId[];
4377
4501
  /**
4378
4502
  * A set of constraints applicable to the attribute.
4379
4503
  * These constraints should and will be enforced by the attribute renderer.
@@ -4732,7 +4856,11 @@ declare namespace Components {
4732
4856
  *
4733
4857
  */
4734
4858
  render_condition?: string;
4735
- _purpose?: ClassificationId /* uuid */[];
4859
+ _purpose?: /**
4860
+ * example:
4861
+ * taxonomy-slug:classification-slug
4862
+ */
4863
+ ClassificationId[];
4736
4864
  /**
4737
4865
  * A set of constraints applicable to the attribute.
4738
4866
  * These constraints should and will be enforced by the attribute renderer.
@@ -5027,7 +5155,11 @@ declare namespace Components {
5027
5155
  *
5028
5156
  */
5029
5157
  render_condition?: string;
5030
- _purpose?: ClassificationId /* uuid */[];
5158
+ _purpose?: /**
5159
+ * example:
5160
+ * taxonomy-slug:classification-slug
5161
+ */
5162
+ ClassificationId[];
5031
5163
  /**
5032
5164
  * A set of constraints applicable to the attribute.
5033
5165
  * These constraints should and will be enforced by the attribute renderer.
@@ -5157,7 +5289,11 @@ declare namespace Components {
5157
5289
  *
5158
5290
  */
5159
5291
  render_condition?: string;
5160
- _purpose?: ClassificationId /* uuid */[];
5292
+ _purpose?: /**
5293
+ * example:
5294
+ * taxonomy-slug:classification-slug
5295
+ */
5296
+ ClassificationId[];
5161
5297
  /**
5162
5298
  * A set of constraints applicable to the attribute.
5163
5299
  * These constraints should and will be enforced by the attribute renderer.
@@ -5296,7 +5432,11 @@ declare namespace Components {
5296
5432
  *
5297
5433
  */
5298
5434
  render_condition?: string;
5299
- _purpose?: ClassificationId /* uuid */[];
5435
+ _purpose?: /**
5436
+ * example:
5437
+ * taxonomy-slug:classification-slug
5438
+ */
5439
+ ClassificationId[];
5300
5440
  /**
5301
5441
  * A set of constraints applicable to the attribute.
5302
5442
  * These constraints should and will be enforced by the attribute renderer.
@@ -5488,7 +5628,11 @@ declare namespace Components {
5488
5628
  *
5489
5629
  */
5490
5630
  render_condition?: string;
5491
- _purpose?: ClassificationId /* uuid */[];
5631
+ _purpose?: /**
5632
+ * example:
5633
+ * taxonomy-slug:classification-slug
5634
+ */
5635
+ ClassificationId[];
5492
5636
  /**
5493
5637
  * A set of constraints applicable to the attribute.
5494
5638
  * These constraints should and will be enforced by the attribute renderer.
@@ -5614,7 +5758,11 @@ declare namespace Components {
5614
5758
  enabled?: boolean;
5615
5759
  }
5616
5760
  export interface TaxonomyClassification {
5617
- id?: ClassificationId /* uuid */;
5761
+ id?: /**
5762
+ * example:
5763
+ * taxonomy-slug:classification-slug
5764
+ */
5765
+ ClassificationId;
5618
5766
  /**
5619
5767
  * URL-friendly identifier for the classification
5620
5768
  * example:
@@ -5626,7 +5774,11 @@ declare namespace Components {
5626
5774
  * Wallbox PV
5627
5775
  */
5628
5776
  name: string;
5629
- parents?: ClassificationId /* uuid */[];
5777
+ parents?: /**
5778
+ * example:
5779
+ * taxonomy-slug:classification-slug
5780
+ */
5781
+ ClassificationId[];
5630
5782
  created_at?: string; // date-time
5631
5783
  updated_at?: string; // date-time
5632
5784
  }
@@ -5691,7 +5843,11 @@ declare namespace Components {
5691
5843
  *
5692
5844
  */
5693
5845
  render_condition?: string;
5694
- _purpose?: ClassificationId /* uuid */[];
5846
+ _purpose?: /**
5847
+ * example:
5848
+ * taxonomy-slug:classification-slug
5849
+ */
5850
+ ClassificationId[];
5695
5851
  /**
5696
5852
  * A set of constraints applicable to the attribute.
5697
5853
  * These constraints should and will be enforced by the attribute renderer.
@@ -5814,7 +5970,11 @@ declare namespace Components {
5814
5970
  *
5815
5971
  */
5816
5972
  render_condition?: string;
5817
- _purpose?: ClassificationId /* uuid */[];
5973
+ _purpose?: /**
5974
+ * example:
5975
+ * taxonomy-slug:classification-slug
5976
+ */
5977
+ ClassificationId[];
5818
5978
  /**
5819
5979
  * A set of constraints applicable to the attribute.
5820
5980
  * These constraints should and will be enforced by the attribute renderer.
@@ -6157,6 +6317,11 @@ declare namespace Paths {
6157
6317
  taxonomySlug: Parameters.TaxonomySlug;
6158
6318
  }
6159
6319
  export type RequestBody = Components.Schemas.TaxonomyClassification;
6320
+ namespace Responses {
6321
+ export type $201 = Components.Schemas.TaxonomyClassification;
6322
+ export interface $409 {
6323
+ }
6324
+ }
6160
6325
  }
6161
6326
  namespace DeleteEntity {
6162
6327
  namespace Parameters {
@@ -6267,17 +6432,21 @@ declare namespace Paths {
6267
6432
  }
6268
6433
  namespace DeleteTaxonomyClassification {
6269
6434
  namespace Parameters {
6270
- export type ClassificationId = Components.Schemas.ClassificationId /* uuid */;
6435
+ export type ClassificationSlug = string;
6271
6436
  export type Permanent = boolean;
6272
6437
  export type TaxonomySlug = string;
6273
6438
  }
6274
6439
  export interface PathParameters {
6275
6440
  taxonomySlug: Parameters.TaxonomySlug;
6276
- classificationId: Parameters.ClassificationId;
6441
+ classificationSlug: Parameters.ClassificationSlug;
6277
6442
  }
6278
6443
  export interface QueryParameters {
6279
6444
  permanent?: Parameters.Permanent;
6280
6445
  }
6446
+ namespace Responses {
6447
+ export interface $204 {
6448
+ }
6449
+ }
6281
6450
  }
6282
6451
  namespace ExportEntities {
6283
6452
  namespace Parameters {
@@ -6732,9 +6901,7 @@ declare namespace Paths {
6732
6901
  id: Parameters.Id;
6733
6902
  }
6734
6903
  namespace Responses {
6735
- export interface $200 {
6736
- view?: /* A saved entity view */ Components.Schemas.SavedViewItem;
6737
- }
6904
+ export type $200 = /* A saved entity view */ Components.Schemas.SavedViewItem;
6738
6905
  }
6739
6906
  }
6740
6907
  namespace GetSchema {
@@ -6815,21 +6982,6 @@ declare namespace Paths {
6815
6982
  export type $200 = Components.Schemas.Taxonomy;
6816
6983
  }
6817
6984
  }
6818
- namespace GetTaxonomyClassification {
6819
- namespace Parameters {
6820
- export type TaxonomyClassificationSlug = string;
6821
- export type TaxonomySlug = string;
6822
- }
6823
- export interface PathParameters {
6824
- taxonomySlug: Parameters.TaxonomySlug;
6825
- taxonomyClassificationSlug: Parameters.TaxonomyClassificationSlug;
6826
- }
6827
- namespace Responses {
6828
- export type $200 = Components.Schemas.TaxonomyClassification;
6829
- export interface $404 {
6830
- }
6831
- }
6832
- }
6833
6985
  namespace ImportEntities {
6834
6986
  namespace Parameters {
6835
6987
  export type JobId = /**
@@ -6857,20 +7009,43 @@ declare namespace Paths {
6857
7009
  }
6858
7010
  namespace ListSavedViews {
6859
7011
  namespace Parameters {
7012
+ export type Fields = /**
7013
+ * List of entity fields to include or exclude in the response
7014
+ *
7015
+ * Use ! to exclude fields, e.g. `!_id` to exclude the `_id` field.
7016
+ *
7017
+ * Globbing and globstart (**) is supported for nested fields.
7018
+ *
7019
+ * example:
7020
+ * [
7021
+ * "_id",
7022
+ * "_title",
7023
+ * "first_name",
7024
+ * "account",
7025
+ * "!account.*._files",
7026
+ * "**._product"
7027
+ * ]
7028
+ */
7029
+ Components.Schemas.FieldsParam;
7030
+ export type From = number;
7031
+ export type Size = number;
6860
7032
  export type Slug = /**
6861
7033
  * URL-friendly identifier for the entity schema
6862
7034
  * example:
6863
7035
  * contact
6864
7036
  */
6865
7037
  Components.Schemas.EntitySlug;
7038
+ export type Sort = string;
6866
7039
  }
6867
7040
  export interface QueryParameters {
6868
7041
  slug?: Parameters.Slug;
7042
+ sort?: Parameters.Sort;
7043
+ from?: Parameters.From;
7044
+ size?: Parameters.Size;
7045
+ fields?: Parameters.Fields;
6869
7046
  }
6870
7047
  namespace Responses {
6871
- export interface $200 {
6872
- results?: /* A saved entity view */ Components.Schemas.SavedViewItem[];
6873
- }
7048
+ export type $200 = Components.Schemas.ListSavedViewsResults;
6874
7049
  }
6875
7050
  }
6876
7051
  namespace ListSchemaBlueprints {
@@ -7069,13 +7244,27 @@ declare namespace Paths {
7069
7244
  }
7070
7245
  namespace TaxonomiesClassificationsSearch {
7071
7246
  namespace Parameters {
7247
+ /**
7248
+ * example:
7249
+ * sales
7250
+ */
7251
+ export type Query = string;
7072
7252
  export type TaxonomySlug = string;
7073
7253
  }
7074
7254
  export interface QueryParameters {
7075
- taxonomySlug: Parameters.TaxonomySlug;
7255
+ taxonomySlug?: Parameters.TaxonomySlug;
7256
+ query?: /**
7257
+ * example:
7258
+ * sales
7259
+ */
7260
+ Parameters.Query;
7076
7261
  }
7077
7262
  export interface RequestBody {
7078
- classificationIds?: Components.Schemas.ClassificationId /* uuid */[];
7263
+ classificationIds?: /**
7264
+ * example:
7265
+ * taxonomy-slug:classification-slug
7266
+ */
7267
+ Components.Schemas.ClassificationId[];
7079
7268
  }
7080
7269
  namespace Responses {
7081
7270
  export interface $200 {
@@ -7327,12 +7516,19 @@ declare namespace Paths {
7327
7516
  }
7328
7517
  namespace UpdateTaxonomyClassification {
7329
7518
  namespace Parameters {
7519
+ export type ClassificationSlug = string;
7330
7520
  export type TaxonomySlug = string;
7331
7521
  }
7332
7522
  export interface PathParameters {
7333
7523
  taxonomySlug: Parameters.TaxonomySlug;
7524
+ classificationSlug: Parameters.ClassificationSlug;
7334
7525
  }
7335
7526
  export type RequestBody = Components.Schemas.TaxonomyClassification;
7527
+ namespace Responses {
7528
+ export type $200 = Components.Schemas.TaxonomyClassification;
7529
+ export interface $404 {
7530
+ }
7531
+ }
7336
7532
  }
7337
7533
  namespace UpsertEntity {
7338
7534
  namespace Parameters {
@@ -8248,15 +8444,15 @@ export interface OperationMethods {
8248
8444
  config?: AxiosRequestConfig
8249
8445
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
8250
8446
  /**
8251
- * getTaxonomyClassification - getTaxonomyClassification
8447
+ * createTaxonomyClassification - createTaxonomyClassification
8252
8448
  *
8253
- * Gets the classification of a taxonomy
8449
+ * Create a new classification for a taxonomy
8254
8450
  */
8255
- 'getTaxonomyClassification'(
8256
- parameters?: Parameters<Paths.GetTaxonomyClassification.PathParameters> | null,
8257
- data?: any,
8451
+ 'createTaxonomyClassification'(
8452
+ parameters?: Parameters<Paths.CreateTaxonomyClassification.PathParameters> | null,
8453
+ data?: Paths.CreateTaxonomyClassification.RequestBody,
8258
8454
  config?: AxiosRequestConfig
8259
- ): OperationResponse<Paths.GetTaxonomyClassification.Responses.$200>
8455
+ ): OperationResponse<Paths.CreateTaxonomyClassification.Responses.$201>
8260
8456
  /**
8261
8457
  * updateTaxonomyClassification - updateTaxonomyClassification
8262
8458
  *
@@ -8266,17 +8462,7 @@ export interface OperationMethods {
8266
8462
  parameters?: Parameters<Paths.UpdateTaxonomyClassification.PathParameters> | null,
8267
8463
  data?: Paths.UpdateTaxonomyClassification.RequestBody,
8268
8464
  config?: AxiosRequestConfig
8269
- ): OperationResponse<any>
8270
- /**
8271
- * createTaxonomyClassification - createTaxonomyClassification
8272
- *
8273
- * Create a new classification for a taxonomy
8274
- */
8275
- 'createTaxonomyClassification'(
8276
- parameters?: Parameters<Paths.CreateTaxonomyClassification.PathParameters> | null,
8277
- data?: Paths.CreateTaxonomyClassification.RequestBody,
8278
- config?: AxiosRequestConfig
8279
- ): OperationResponse<any>
8465
+ ): OperationResponse<Paths.UpdateTaxonomyClassification.Responses.$200>
8280
8466
  /**
8281
8467
  * deleteTaxonomyClassification - deleteTaxonomyClassification
8282
8468
  *
@@ -8286,7 +8472,7 @@ export interface OperationMethods {
8286
8472
  parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters & Paths.DeleteTaxonomyClassification.QueryParameters> | null,
8287
8473
  data?: any,
8288
8474
  config?: AxiosRequestConfig
8289
- ): OperationResponse<any>
8475
+ ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$204>
8290
8476
  }
8291
8477
 
8292
8478
  export interface PathsDictionary {
@@ -9053,17 +9239,7 @@ export interface PathsDictionary {
9053
9239
  config?: AxiosRequestConfig
9054
9240
  ): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
9055
9241
  }
9056
- ['/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}']: {
9057
- /**
9058
- * getTaxonomyClassification - getTaxonomyClassification
9059
- *
9060
- * Gets the classification of a taxonomy
9061
- */
9062
- 'get'(
9063
- parameters?: Parameters<Paths.GetTaxonomyClassification.PathParameters> | null,
9064
- data?: any,
9065
- config?: AxiosRequestConfig
9066
- ): OperationResponse<Paths.GetTaxonomyClassification.Responses.$200>
9242
+ ['/v2/entity/taxonomies/{taxonomySlug}/classifications']: {
9067
9243
  /**
9068
9244
  * createTaxonomyClassification - createTaxonomyClassification
9069
9245
  *
@@ -9073,7 +9249,9 @@ export interface PathsDictionary {
9073
9249
  parameters?: Parameters<Paths.CreateTaxonomyClassification.PathParameters> | null,
9074
9250
  data?: Paths.CreateTaxonomyClassification.RequestBody,
9075
9251
  config?: AxiosRequestConfig
9076
- ): OperationResponse<any>
9252
+ ): OperationResponse<Paths.CreateTaxonomyClassification.Responses.$201>
9253
+ }
9254
+ ['/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}']: {
9077
9255
  /**
9078
9256
  * updateTaxonomyClassification - updateTaxonomyClassification
9079
9257
  *
@@ -9083,7 +9261,7 @@ export interface PathsDictionary {
9083
9261
  parameters?: Parameters<Paths.UpdateTaxonomyClassification.PathParameters> | null,
9084
9262
  data?: Paths.UpdateTaxonomyClassification.RequestBody,
9085
9263
  config?: AxiosRequestConfig
9086
- ): OperationResponse<any>
9264
+ ): OperationResponse<Paths.UpdateTaxonomyClassification.Responses.$200>
9087
9265
  /**
9088
9266
  * deleteTaxonomyClassification - deleteTaxonomyClassification
9089
9267
  *
@@ -9093,7 +9271,7 @@ export interface PathsDictionary {
9093
9271
  parameters?: Parameters<Paths.DeleteTaxonomyClassification.PathParameters & Paths.DeleteTaxonomyClassification.QueryParameters> | null,
9094
9272
  data?: any,
9095
9273
  config?: AxiosRequestConfig
9096
- ): OperationResponse<any>
9274
+ ): OperationResponse<Paths.DeleteTaxonomyClassification.Responses.$204>
9097
9275
  }
9098
9276
  }
9099
9277
 
package/dist/openapi.json CHANGED
@@ -1651,6 +1651,46 @@
1651
1651
  "schema": {
1652
1652
  "$ref": "#/components/schemas/EntitySlug"
1653
1653
  }
1654
+ },
1655
+ {
1656
+ "in": "query",
1657
+ "name": "sort",
1658
+ "description": "The sort key to use if present",
1659
+ "required": false,
1660
+ "schema": {
1661
+ "type": "string",
1662
+ "default": "name:asc"
1663
+ }
1664
+ },
1665
+ {
1666
+ "in": "query",
1667
+ "name": "from",
1668
+ "required": false,
1669
+ "schema": {
1670
+ "type": "integer",
1671
+ "minimum": 0,
1672
+ "default": 0
1673
+ }
1674
+ },
1675
+ {
1676
+ "in": "query",
1677
+ "name": "size",
1678
+ "description": "Number of saved views to return",
1679
+ "required": false,
1680
+ "schema": {
1681
+ "type": "integer",
1682
+ "default": 80,
1683
+ "minimum": 1,
1684
+ "maximum": 250
1685
+ }
1686
+ },
1687
+ {
1688
+ "in": "query",
1689
+ "name": "fields",
1690
+ "required": false,
1691
+ "schema": {
1692
+ "$ref": "#/components/schemas/FieldsParam"
1693
+ }
1654
1694
  }
1655
1695
  ],
1656
1696
  "responses": {
@@ -1659,15 +1699,7 @@
1659
1699
  "content": {
1660
1700
  "application/json": {
1661
1701
  "schema": {
1662
- "type": "object",
1663
- "properties": {
1664
- "results": {
1665
- "type": "array",
1666
- "items": {
1667
- "$ref": "#/components/schemas/SavedViewItem"
1668
- }
1669
- }
1670
- }
1702
+ "$ref": "#/components/schemas/ListSavedViewsResults"
1671
1703
  }
1672
1704
  }
1673
1705
  }
@@ -1725,12 +1757,7 @@
1725
1757
  "content": {
1726
1758
  "application/json": {
1727
1759
  "schema": {
1728
- "type": "object",
1729
- "properties": {
1730
- "view": {
1731
- "$ref": "#/components/schemas/SavedViewItem"
1732
- }
1733
- }
1760
+ "$ref": "#/components/schemas/SavedViewItem"
1734
1761
  }
1735
1762
  }
1736
1763
  }
@@ -2153,7 +2180,16 @@
2153
2180
  ],
2154
2181
  "parameters": [
2155
2182
  {
2156
- "$ref": "#/components/parameters/TaxonomySlugQueryParam"
2183
+ "$ref": "#/components/parameters/TaxonomySlugQueryParamOptional"
2184
+ },
2185
+ {
2186
+ "in": "query",
2187
+ "name": "query",
2188
+ "description": "Input to search",
2189
+ "schema": {
2190
+ "type": "string",
2191
+ "example": "sales"
2192
+ }
2157
2193
  }
2158
2194
  ],
2159
2195
  "requestBody": {
@@ -2251,38 +2287,7 @@
2251
2287
  }
2252
2288
  }
2253
2289
  },
2254
- "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
2255
- "get": {
2256
- "operationId": "getTaxonomyClassification",
2257
- "summary": "getTaxonomyClassification",
2258
- "description": "Gets the classification of a taxonomy",
2259
- "tags": [
2260
- "Taxonomy"
2261
- ],
2262
- "parameters": [
2263
- {
2264
- "$ref": "#/components/parameters/TaxonomySlugPathParam"
2265
- },
2266
- {
2267
- "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2268
- }
2269
- ],
2270
- "responses": {
2271
- "200": {
2272
- "description": "Taxonomy classification",
2273
- "content": {
2274
- "application/json": {
2275
- "schema": {
2276
- "$ref": "#/components/schemas/TaxonomyClassification"
2277
- }
2278
- }
2279
- }
2280
- },
2281
- "404": {
2282
- "description": "Taxonomy classification not found"
2283
- }
2284
- }
2285
- },
2290
+ "/v2/entity/taxonomies/{taxonomySlug}/classifications": {
2286
2291
  "post": {
2287
2292
  "operationId": "createTaxonomyClassification",
2288
2293
  "summary": "createTaxonomyClassification",
@@ -2304,7 +2309,7 @@
2304
2309
  }
2305
2310
  }
2306
2311
  },
2307
- "response": {
2312
+ "responses": {
2308
2313
  "201": {
2309
2314
  "description": "Taxonomy classification created",
2310
2315
  "content": {
@@ -2319,7 +2324,9 @@
2319
2324
  "description": "Taxonomy classification already exists\""
2320
2325
  }
2321
2326
  }
2322
- },
2327
+ }
2328
+ },
2329
+ "/v2/entity/taxonomies/{taxonomySlug}/classifications/{classificationSlug}": {
2323
2330
  "put": {
2324
2331
  "operationId": "updateTaxonomyClassification",
2325
2332
  "summary": "updateTaxonomyClassification",
@@ -2330,6 +2337,9 @@
2330
2337
  "parameters": [
2331
2338
  {
2332
2339
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
2340
+ },
2341
+ {
2342
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2333
2343
  }
2334
2344
  ],
2335
2345
  "requestBody": {
@@ -2341,7 +2351,7 @@
2341
2351
  }
2342
2352
  }
2343
2353
  },
2344
- "response": {
2354
+ "responses": {
2345
2355
  "200": {
2346
2356
  "description": "Taxonomy classification updated",
2347
2357
  "content": {
@@ -2369,13 +2379,7 @@
2369
2379
  "$ref": "#/components/parameters/TaxonomySlugPathParam"
2370
2380
  },
2371
2381
  {
2372
- "in": "path",
2373
- "name": "classificationId",
2374
- "description": "The classification id",
2375
- "required": true,
2376
- "schema": {
2377
- "$ref": "#/components/schemas/ClassificationId"
2378
- }
2382
+ "$ref": "#/components/parameters/TaxonomyClassificationSlugPathParam"
2379
2383
  },
2380
2384
  {
2381
2385
  "in": "query",
@@ -2386,7 +2390,7 @@
2386
2390
  }
2387
2391
  }
2388
2392
  ],
2389
- "response": {
2393
+ "responses": {
2390
2394
  "204": {
2391
2395
  "description": "Taxonomy classification deleted"
2392
2396
  }
@@ -5067,6 +5071,21 @@
5067
5071
  "type": "string",
5068
5072
  "format": "uuid"
5069
5073
  },
5074
+ "ListSavedViewsResults": {
5075
+ "type": "object",
5076
+ "properties": {
5077
+ "hits": {
5078
+ "type": "number",
5079
+ "example": 1
5080
+ },
5081
+ "results": {
5082
+ "type": "array",
5083
+ "items": {
5084
+ "$ref": "#/components/schemas/SavedViewItem"
5085
+ }
5086
+ }
5087
+ }
5088
+ },
5070
5089
  "SavedViewId": {
5071
5090
  "description": "Generated uuid for a saved view",
5072
5091
  "type": "string",
@@ -5284,7 +5303,7 @@
5284
5303
  },
5285
5304
  "ClassificationId": {
5286
5305
  "type": "string",
5287
- "format": "uuid"
5306
+ "example": "taxonomy-slug:classification-slug"
5288
5307
  },
5289
5308
  "TaxonomySlug": {
5290
5309
  "type": "string",
@@ -5309,7 +5328,15 @@
5309
5328
  "delete": {
5310
5329
  "type": "array",
5311
5330
  "items": {
5312
- "$ref": "#/components/schemas/ClassificationId"
5331
+ "anyOf": [
5332
+ {
5333
+ "$ref": "#/components/schemas/ClassificationId"
5334
+ },
5335
+ {
5336
+ "type": "string",
5337
+ "example": "taxonomy-slug:classification-slug"
5338
+ }
5339
+ ]
5313
5340
  }
5314
5341
  }
5315
5342
  }
@@ -5361,26 +5388,25 @@
5361
5388
  "example": "price"
5362
5389
  }
5363
5390
  },
5364
- "TaxonomySlugQueryParam": {
5391
+ "TaxonomySlugPathParam": {
5365
5392
  "name": "taxonomySlug",
5366
5393
  "description": "Taxonomy slug",
5367
- "in": "query",
5394
+ "in": "path",
5395
+ "required": true,
5368
5396
  "schema": {
5369
5397
  "type": "string"
5370
- },
5371
- "required": true
5398
+ }
5372
5399
  },
5373
- "TaxonomySlugPathParam": {
5400
+ "TaxonomySlugQueryParamOptional": {
5374
5401
  "name": "taxonomySlug",
5375
5402
  "description": "Taxonomy slug",
5376
- "in": "path",
5377
- "required": true,
5403
+ "in": "query",
5378
5404
  "schema": {
5379
5405
  "type": "string"
5380
5406
  }
5381
5407
  },
5382
5408
  "TaxonomyClassificationSlugPathParam": {
5383
- "name": "taxonomyClassificationSlug",
5409
+ "name": "classificationSlug",
5384
5410
  "description": "Taxonomy Classification slug",
5385
5411
  "in": "path",
5386
5412
  "required": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.21.0",
3
+ "version": "4.22.0",
4
4
  "description": "JavaScript client library for the epilot Core Entity API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",