@epilot/entity-client 4.19.0 → 4.20.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.
- package/dist/client.d.ts +0 -0
- package/dist/client.js +0 -0
- package/dist/definition.d.ts +0 -0
- package/dist/definition.js +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/openapi-runtime.json +12 -0
- package/dist/openapi.d.ts +45 -132
- package/dist/openapi.json +58 -19
- package/dist/schema-model.d.ts +0 -0
- package/dist/schema-model.js +0 -0
- package/package.json +6 -6
package/dist/client.d.ts
CHANGED
|
File without changes
|
package/dist/client.js
CHANGED
|
File without changes
|
package/dist/definition.d.ts
CHANGED
|
File without changes
|
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}":{"get":{"operationId":"getEntityV2","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"fields","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"}]},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type"},{"in":"query","name":"include_relations"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseDeprecatedQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"}]}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false}]}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser"}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"$ref":"#/components/parameters/TaxonomySlugQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseDeprecatedQueryParam":{"name":"include_reverse","in":"query","deprecated":true},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,a),o.exports}(914),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,a){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=r(a(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.2","info":{"title":"","version":""},"paths":{"/v1/entity/schemas":{"get":{"operationId":"listSchemas","parameters":[{"in":"query","name":"unpublished"}]}},"/v1/entity/schemas/{slug}":{"get":{"operationId":"getSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"id"}]},"put":{"operationId":"putSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"draft"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"}]}},"/v1/entity/schemas/{slug}/versions":{"get":{"operationId":"getSchemaVersions","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"in":"query","name":"versions_from"},{"in":"query","name":"versions_size"},{"in":"query","name":"drafts_from"},{"in":"query","name":"drafts_size"}]}},"/v1/entity/schemas/blueprints":{"get":{"operationId":"listSchemaBlueprints"}},"/v1/entity/schemas/{slug}/taxonomy/{taxonomySlug}":{"get":{"operationId":"listTaxonomyClassificationsForSchema","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity:search":{"post":{"operationId":"searchEntities","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}":{"post":{"operationId":"createEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/{slug}:upsert":{"patch":{"operationId":"upsertEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}":{"get":{"operationId":"getEntityV2","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"fields","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}":{"get":{"operationId":"getEntity","parameters":[{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"}]},"put":{"operationId":"updateEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"patch":{"operationId":"patchEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"},{"$ref":"#/components/parameters/DryRunQueryParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"}],"requestBody":{"content":{"application/json":{}},"required":true}},"delete":{"operationId":"deleteEntity","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:autocomplete":{"get":{"operationId":"autocomplete","parameters":[{"name":"input","in":"query"},{"name":"attribute","in":"query","required":true},{"name":"slug","in":"query"},{"name":"size","in":"query"}]}},"/v1/entity/activity":{"post":{"operationId":"createActivity","parameters":[{"in":"query","name":"entities","style":"form","explode":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/activity/{id}":{"get":{"operationId":"getActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"operations_size"},{"in":"query","name":"operations_from"}]}},"/v1/entity/activity/{id}:attach":{"post":{"operationId":"attachActivity","parameters":[{"$ref":"#/components/parameters/ActivityIdPathParam"},{"in":"query","name":"entities","style":"form","explode":false}]}},"/v1/entity/{slug}/{id}/activity":{"get":{"operationId":"getEntityActivityFeed","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"query","name":"after"},{"in":"query","name":"before"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"type"},{"in":"query","name":"include_relations"}]}},"/v1/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]},"post":{"operationId":"addRelations","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v2/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV2","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"in":"query","name":"query"},{"$ref":"#/components/parameters/IncludeReverseQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size"},{"in":"query","name":"fields"}]}},"/v3/entity/{slug}/{id}/relations":{"get":{"operationId":"getRelationsV3","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/HydrateEntitiesQueryParam"},{"$ref":"#/components/parameters/IncludeReverseDeprecatedQueryParam"},{"$ref":"#/components/parameters/FromPageQueryParam"},{"in":"query","name":"size","required":false},{"$ref":"#/components/parameters/IncludeSchemasQueryParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"},{"$ref":"#/components/parameters/EntityRelationsModeQueryParam"}]}},"/v2/entity/{slug}/{id}/relations/count":{"get":{"operationId":"getRelatedEntitiesCount","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"$ref":"#/components/parameters/ExcludeSchemasQueryParam"}]}},"/v1/entity/{slug}/{id}/relations/{attribute}/{entity_id}":{"put":{"operationId":"updateRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteRelation","parameters":[{"$ref":"#/components/parameters/EntitySlugPathParam"},{"$ref":"#/components/parameters/EntityIdPathParam"},{"in":"path","name":"attribute","required":true},{"in":"path","name":"entity_id","required":true},{"$ref":"#/components/parameters/AsyncOperationQueryParam"},{"$ref":"#/components/parameters/ActivityIdQueryParam"}]}},"/v1/entity:export":{"post":{"operationId":"exportEntities","parameters":[{"in":"query","name":"job_id"},{"in":"query","name":"is_template"},{"in":"query","name":"language"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity:import":{"post":{"operationId":"importEntities","parameters":[{"in":"query","name":"job_id"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/views":{"get":{"operationId":"listSavedViews","parameters":[{"in":"query","name":"slug","required":false}]}},"/v1/entity/view":{"post":{"operationId":"createSavedView","requestBody":{"content":{"application/json":{}}}}},"/v1/entity/view/{id}":{"get":{"operationId":"getSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]},"put":{"operationId":"updateSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}],"requestBody":{"content":{"application/json":{}}}},"delete":{"operationId":"deleteSavedView","parameters":[{"$ref":"#/components/parameters/SavedViewIdPathParam"}]}},"/v1/entity/views/favorites":{"get":{"operationId":"listFavoriteViewsForUser"}},"/v1/entity/listTaxonomies":{"get":{"operationId":"listTaxonomies"}},"/v1/entity/taxonomies/{taxonomySlug}":{"get":{"operationId":"getTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}]}},"/v1/entity/taxonomies/{taxonomySlug}:autocomplete":{"get":{"operationId":"taxonomyAutocomplete","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"},{"in":"query","name":"query"},{"in":"query","name":"size"}]}},"/v1/entity/taxonomies/classifications:search":{"post":{"operationId":"taxonomiesClassificationsSearch","parameters":[{"$ref":"#/components/parameters/TaxonomySlugQueryParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/entity/taxonomies/{taxonomySlug}/classifications":{"post":{"operationId":"updateClassificationsForTaxonomy","parameters":[{"$ref":"#/components/parameters/TaxonomySlugPathParam"}],"requestBody":{"content":{"application/json":{}}}}},"/v1/clusterAssignment/{orgId}":{"get":{"operationId":"getElasticClusterForOrg","parameters":[{"in":"path","name":"orgId","required":true}]}}},"components":{"parameters":{"EntityIdPathParam":{"name":"id","in":"path","required":true},"EntitySlugPathParam":{"name":"slug","in":"path","required":true},"TaxonomySlugQueryParam":{"name":"taxonomySlug","in":"query","required":true},"TaxonomySlugPathParam":{"name":"taxonomySlug","in":"path","required":true},"SavedViewIdPathParam":{"name":"id","in":"path","required":true},"AsyncOperationQueryParam":{"name":"async","in":"query","required":false},"HydrateEntitiesQueryParam":{"name":"hydrate","in":"query"},"ActivityIdQueryParam":{"name":"activity_id","in":"query","required":false},"ActivityIdPathParam":{"name":"id","in":"path","required":true},"FromPageQueryParam":{"name":"from","in":"query"},"IncludeReverseDeprecatedQueryParam":{"name":"include_reverse","in":"query","deprecated":true},"IncludeReverseQueryParam":{"name":"include_reverse","in":"query"},"IncludeSchemasQueryParam":{"name":"include_schemas","in":"query","required":false,"style":"form","explode":false},"ExcludeSchemasQueryParam":{"name":"exclude_schemas","in":"query","required":false,"style":"form","explode":false},"EntityRelationsModeQueryParam":{"name":"mode","in":"query","required":false},"DryRunQueryParam":{"name":"dry_run","in":"query","required":false}}},"servers":[{"url":"https://entity.sls.epilot.io"}]}')}},t={},a=function a(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,a),o.exports}(914),r=exports;for(var n in a)r[n]=a[n];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
|
@@ -736,6 +736,18 @@
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
+
},
|
|
740
|
+
"/v1/clusterAssignment/{orgId}": {
|
|
741
|
+
"get": {
|
|
742
|
+
"operationId": "getElasticClusterForOrg",
|
|
743
|
+
"parameters": [
|
|
744
|
+
{
|
|
745
|
+
"in": "path",
|
|
746
|
+
"name": "orgId",
|
|
747
|
+
"required": true
|
|
748
|
+
}
|
|
749
|
+
]
|
|
750
|
+
}
|
|
739
751
|
}
|
|
740
752
|
},
|
|
741
753
|
"components": {
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1403,6 +1403,16 @@ declare namespace Components {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
type?: "date" | "datetime";
|
|
1405
1405
|
}
|
|
1406
|
+
export interface ESClusterAssignment {
|
|
1407
|
+
/**
|
|
1408
|
+
* The organization for which the cluster assignment is returned
|
|
1409
|
+
*/
|
|
1410
|
+
orgId?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Name of the elastic cluster the organization is assigned to
|
|
1413
|
+
*/
|
|
1414
|
+
cluster?: string;
|
|
1415
|
+
}
|
|
1406
1416
|
/**
|
|
1407
1417
|
* example:
|
|
1408
1418
|
* {
|
|
@@ -1608,10 +1618,6 @@ declare namespace Components {
|
|
|
1608
1618
|
* MY_SETTING
|
|
1609
1619
|
*/
|
|
1610
1620
|
setting_flag?: string;
|
|
1611
|
-
/**
|
|
1612
|
-
* Only show capability for legacy tenants (ivy)
|
|
1613
|
-
*/
|
|
1614
|
-
legacy?: boolean;
|
|
1615
1621
|
}
|
|
1616
1622
|
export interface EntityDefaultCreate {
|
|
1617
1623
|
view_type?: "default";
|
|
@@ -1645,10 +1651,6 @@ declare namespace Components {
|
|
|
1645
1651
|
* FF_MY_FEATURE_FLAG
|
|
1646
1652
|
*/
|
|
1647
1653
|
feature_flag?: string;
|
|
1648
|
-
/**
|
|
1649
|
-
* Only show item for legacy tenants (ivy)
|
|
1650
|
-
*/
|
|
1651
|
-
legacy?: boolean;
|
|
1652
1654
|
} | {
|
|
1653
1655
|
type?: "link";
|
|
1654
1656
|
/**
|
|
@@ -1663,10 +1665,6 @@ declare namespace Components {
|
|
|
1663
1665
|
* FF_MY_FEATURE_FLAG
|
|
1664
1666
|
*/
|
|
1665
1667
|
feature_flag?: string;
|
|
1666
|
-
/**
|
|
1667
|
-
* Only show item for legacy tenants (ivy)
|
|
1668
|
-
*/
|
|
1669
|
-
legacy?: boolean;
|
|
1670
1668
|
})[];
|
|
1671
1669
|
row_actions?: (string | /* An entity action configured from the entity schema */ EntityAction)[];
|
|
1672
1670
|
navbar_actions?: {
|
|
@@ -2919,126 +2917,6 @@ declare namespace Components {
|
|
|
2919
2917
|
entity_id: EntityId /* uuid */;
|
|
2920
2918
|
}[];
|
|
2921
2919
|
}
|
|
2922
|
-
/**
|
|
2923
|
-
* Entity with relation data resolved into the attribute values
|
|
2924
|
-
* example:
|
|
2925
|
-
* {
|
|
2926
|
-
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
2927
|
-
* "_org": "123",
|
|
2928
|
-
* "_owners": [
|
|
2929
|
-
* {
|
|
2930
|
-
* "org_id": "123",
|
|
2931
|
-
* "user_id": "123"
|
|
2932
|
-
* }
|
|
2933
|
-
* ],
|
|
2934
|
-
* "_schema": "contact",
|
|
2935
|
-
* "_tags": [
|
|
2936
|
-
* "example",
|
|
2937
|
-
* "mock"
|
|
2938
|
-
* ],
|
|
2939
|
-
* "_created_at": "2021-02-09T12:41:43.662Z",
|
|
2940
|
-
* "_updated_at": "2021-02-09T12:41:43.662Z",
|
|
2941
|
-
* "_acl": {
|
|
2942
|
-
* "view": [
|
|
2943
|
-
* "org:456",
|
|
2944
|
-
* "org:789"
|
|
2945
|
-
* ],
|
|
2946
|
-
* "edit": [
|
|
2947
|
-
* "org:456"
|
|
2948
|
-
* ],
|
|
2949
|
-
* "delete": [
|
|
2950
|
-
* "org:456"
|
|
2951
|
-
* ]
|
|
2952
|
-
* },
|
|
2953
|
-
* "_relations": [
|
|
2954
|
-
* {
|
|
2955
|
-
* "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
2956
|
-
* }
|
|
2957
|
-
* ],
|
|
2958
|
-
* "status": "active",
|
|
2959
|
-
* "customer_number": "abc123",
|
|
2960
|
-
* "email": [
|
|
2961
|
-
* {
|
|
2962
|
-
* "label": "work",
|
|
2963
|
-
* "email": "user@example.com"
|
|
2964
|
-
* }
|
|
2965
|
-
* ],
|
|
2966
|
-
* "phone": [
|
|
2967
|
-
* {
|
|
2968
|
-
* "label": "work",
|
|
2969
|
-
* "phone": "+49123456789"
|
|
2970
|
-
* }
|
|
2971
|
-
* ],
|
|
2972
|
-
* "first_name": "First Name",
|
|
2973
|
-
* "middle_name": "Middle Name",
|
|
2974
|
-
* "last_name": "Last Name",
|
|
2975
|
-
* "date_of_birth": "2019-08-24",
|
|
2976
|
-
* "title": "Mr.",
|
|
2977
|
-
* "account": [
|
|
2978
|
-
* {
|
|
2979
|
-
* "status": "active",
|
|
2980
|
-
* "name": "Company name",
|
|
2981
|
-
* "company_email": [
|
|
2982
|
-
* {
|
|
2983
|
-
* "label": "Company email",
|
|
2984
|
-
* "email": "company@example.com"
|
|
2985
|
-
* }
|
|
2986
|
-
* ],
|
|
2987
|
-
* "company_phone": [
|
|
2988
|
-
* {
|
|
2989
|
-
* "label": "Support phone",
|
|
2990
|
-
* "phone": "+49123456789"
|
|
2991
|
-
* }
|
|
2992
|
-
* ],
|
|
2993
|
-
* "company_website": "https://example.com",
|
|
2994
|
-
* "tax_id": "DE123456789",
|
|
2995
|
-
* "tax_exemption": "2019-08-24",
|
|
2996
|
-
* "contacts": {
|
|
2997
|
-
* "$relation": [
|
|
2998
|
-
* {
|
|
2999
|
-
* "_tags": [
|
|
3000
|
-
* "CEO"
|
|
3001
|
-
* ],
|
|
3002
|
-
* "entity_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
|
|
3003
|
-
* }
|
|
3004
|
-
* ]
|
|
3005
|
-
* }
|
|
3006
|
-
* }
|
|
3007
|
-
* ]
|
|
3008
|
-
* }
|
|
3009
|
-
*/
|
|
3010
|
-
export interface HydratedEntityItem {
|
|
3011
|
-
[name: string]: any;
|
|
3012
|
-
_id: EntityId /* uuid */;
|
|
3013
|
-
/**
|
|
3014
|
-
* Organization Id the entity belongs to
|
|
3015
|
-
*/
|
|
3016
|
-
_org: string;
|
|
3017
|
-
_owners?: /**
|
|
3018
|
-
* The user / organization owning this entity.
|
|
3019
|
-
*
|
|
3020
|
-
* Note: Owner implicitly has access to the entity regardless of ACLs.
|
|
3021
|
-
*
|
|
3022
|
-
*/
|
|
3023
|
-
EntityOwner[];
|
|
3024
|
-
_schema: /**
|
|
3025
|
-
* URL-friendly identifier for the entity schema
|
|
3026
|
-
* example:
|
|
3027
|
-
* contact
|
|
3028
|
-
*/
|
|
3029
|
-
EntitySlug;
|
|
3030
|
-
/**
|
|
3031
|
-
* Title of entity
|
|
3032
|
-
*/
|
|
3033
|
-
_title: string | null;
|
|
3034
|
-
_tags?: string[] | null;
|
|
3035
|
-
_created_at: string | null; // date-time
|
|
3036
|
-
_updated_at: string | null; // date-time
|
|
3037
|
-
_acl?: /* Access control list (ACL) for an entity. Defines sharing access to external orgs or users. */ EntityAcl;
|
|
3038
|
-
_relations: {
|
|
3039
|
-
entity_id: EntityId /* uuid */;
|
|
3040
|
-
}[];
|
|
3041
|
-
}
|
|
3042
2920
|
/**
|
|
3043
2921
|
* No UI representation
|
|
3044
2922
|
*/
|
|
@@ -6335,6 +6213,19 @@ declare namespace Paths {
|
|
|
6335
6213
|
export type $200 = Components.Schemas.ActivityItem;
|
|
6336
6214
|
}
|
|
6337
6215
|
}
|
|
6216
|
+
namespace GetElasticClusterForOrg {
|
|
6217
|
+
namespace Parameters {
|
|
6218
|
+
export type OrgId = string;
|
|
6219
|
+
}
|
|
6220
|
+
export interface PathParameters {
|
|
6221
|
+
orgId: Parameters.OrgId;
|
|
6222
|
+
}
|
|
6223
|
+
namespace Responses {
|
|
6224
|
+
export interface $200 {
|
|
6225
|
+
view?: Components.Schemas.ESClusterAssignment;
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6338
6229
|
namespace GetEntity {
|
|
6339
6230
|
namespace Parameters {
|
|
6340
6231
|
export type Hydrate = boolean;
|
|
@@ -8053,6 +7944,16 @@ export interface OperationMethods {
|
|
|
8053
7944
|
data?: Paths.UpdateClassificationsForTaxonomy.RequestBody,
|
|
8054
7945
|
config?: AxiosRequestConfig
|
|
8055
7946
|
): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
|
|
7947
|
+
/**
|
|
7948
|
+
* getElasticClusterForOrg - getElasticClusterForOrg
|
|
7949
|
+
*
|
|
7950
|
+
* Gets the Elastic cluster assignment by orgId.
|
|
7951
|
+
*/
|
|
7952
|
+
'getElasticClusterForOrg'(
|
|
7953
|
+
parameters?: Parameters<Paths.GetElasticClusterForOrg.PathParameters> | null,
|
|
7954
|
+
data?: any,
|
|
7955
|
+
config?: AxiosRequestConfig
|
|
7956
|
+
): OperationResponse<Paths.GetElasticClusterForOrg.Responses.$200>
|
|
8056
7957
|
}
|
|
8057
7958
|
|
|
8058
7959
|
export interface PathsDictionary {
|
|
@@ -8765,6 +8666,18 @@ export interface PathsDictionary {
|
|
|
8765
8666
|
config?: AxiosRequestConfig
|
|
8766
8667
|
): OperationResponse<Paths.UpdateClassificationsForTaxonomy.Responses.$200>
|
|
8767
8668
|
}
|
|
8669
|
+
['/v1/clusterAssignment/{orgId}']: {
|
|
8670
|
+
/**
|
|
8671
|
+
* getElasticClusterForOrg - getElasticClusterForOrg
|
|
8672
|
+
*
|
|
8673
|
+
* Gets the Elastic cluster assignment by orgId.
|
|
8674
|
+
*/
|
|
8675
|
+
'get'(
|
|
8676
|
+
parameters?: Parameters<Paths.GetElasticClusterForOrg.PathParameters> | null,
|
|
8677
|
+
data?: any,
|
|
8678
|
+
config?: AxiosRequestConfig
|
|
8679
|
+
): OperationResponse<Paths.GetElasticClusterForOrg.Responses.$200>
|
|
8680
|
+
}
|
|
8768
8681
|
}
|
|
8769
8682
|
|
|
8770
8683
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -33,6 +33,10 @@
|
|
|
33
33
|
{
|
|
34
34
|
"name": "Taxonomy",
|
|
35
35
|
"description": "Entity classification with Taxonomies"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Elastic Cluster Assignment",
|
|
39
|
+
"description": "Elastic Cluster assignment for organizations"
|
|
36
40
|
}
|
|
37
41
|
],
|
|
38
42
|
"security": [
|
|
@@ -1959,6 +1963,44 @@
|
|
|
1959
1963
|
}
|
|
1960
1964
|
}
|
|
1961
1965
|
}
|
|
1966
|
+
},
|
|
1967
|
+
"/v1/clusterAssignment/{orgId}": {
|
|
1968
|
+
"get": {
|
|
1969
|
+
"operationId": "getElasticClusterForOrg",
|
|
1970
|
+
"summary": "getElasticClusterForOrg",
|
|
1971
|
+
"description": "Gets the Elastic cluster assignment by orgId.",
|
|
1972
|
+
"tags": [
|
|
1973
|
+
"Elastic Cluster Assignment"
|
|
1974
|
+
],
|
|
1975
|
+
"parameters": [
|
|
1976
|
+
{
|
|
1977
|
+
"in": "path",
|
|
1978
|
+
"name": "orgId",
|
|
1979
|
+
"description": "The organization to fetch the cluster assigment",
|
|
1980
|
+
"required": true,
|
|
1981
|
+
"schema": {
|
|
1982
|
+
"type": "string"
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
],
|
|
1986
|
+
"responses": {
|
|
1987
|
+
"200": {
|
|
1988
|
+
"description": "Success",
|
|
1989
|
+
"content": {
|
|
1990
|
+
"application/json": {
|
|
1991
|
+
"schema": {
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"view": {
|
|
1995
|
+
"$ref": "#/components/schemas/ESClusterAssignment"
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
1962
2004
|
}
|
|
1963
2005
|
},
|
|
1964
2006
|
"components": {
|
|
@@ -3690,10 +3732,6 @@
|
|
|
3690
3732
|
"type": "string",
|
|
3691
3733
|
"example": "MY_SETTING",
|
|
3692
3734
|
"description": "This capability should only be active when the setting is enabled"
|
|
3693
|
-
},
|
|
3694
|
-
"legacy": {
|
|
3695
|
-
"type": "boolean",
|
|
3696
|
-
"description": "Only show capability for legacy tenants (ivy)"
|
|
3697
3735
|
}
|
|
3698
3736
|
},
|
|
3699
3737
|
"required": [
|
|
@@ -3731,10 +3769,6 @@
|
|
|
3731
3769
|
"type": "string",
|
|
3732
3770
|
"example": "FF_MY_FEATURE_FLAG",
|
|
3733
3771
|
"description": "This dropdown item should only be active when the feature flag is enabled"
|
|
3734
|
-
},
|
|
3735
|
-
"legacy": {
|
|
3736
|
-
"type": "boolean",
|
|
3737
|
-
"description": "Only show item for legacy tenants (ivy)"
|
|
3738
3772
|
}
|
|
3739
3773
|
}
|
|
3740
3774
|
},
|
|
@@ -4123,16 +4157,6 @@
|
|
|
4123
4157
|
}
|
|
4124
4158
|
]
|
|
4125
4159
|
},
|
|
4126
|
-
"HydratedEntityItem": {
|
|
4127
|
-
"allOf": [
|
|
4128
|
-
{
|
|
4129
|
-
"$ref": "#/components/schemas/BaseEntity"
|
|
4130
|
-
},
|
|
4131
|
-
{
|
|
4132
|
-
"$ref": "#/components/schemas/HydratedEntity"
|
|
4133
|
-
}
|
|
4134
|
-
]
|
|
4135
|
-
},
|
|
4136
4160
|
"GetRelationsResp": {
|
|
4137
4161
|
"type": "array",
|
|
4138
4162
|
"items": {
|
|
@@ -4632,7 +4656,9 @@
|
|
|
4632
4656
|
"name": {
|
|
4633
4657
|
"description": "User-friendly identifier for the saved view",
|
|
4634
4658
|
"type": "string",
|
|
4635
|
-
"example": "View listing German"
|
|
4659
|
+
"example": "View listing German",
|
|
4660
|
+
"minLength": 1,
|
|
4661
|
+
"maxLength": 100
|
|
4636
4662
|
},
|
|
4637
4663
|
"org": {
|
|
4638
4664
|
"description": "Organisation ID a view belongs to",
|
|
@@ -4796,6 +4822,19 @@
|
|
|
4796
4822
|
}
|
|
4797
4823
|
}
|
|
4798
4824
|
}
|
|
4825
|
+
},
|
|
4826
|
+
"ESClusterAssignment": {
|
|
4827
|
+
"type": "object",
|
|
4828
|
+
"properties": {
|
|
4829
|
+
"orgId": {
|
|
4830
|
+
"type": "string",
|
|
4831
|
+
"description": "The organization for which the cluster assignment is returned"
|
|
4832
|
+
},
|
|
4833
|
+
"cluster": {
|
|
4834
|
+
"type": "string",
|
|
4835
|
+
"description": "Name of the elastic cluster the organization is assigned to"
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4799
4838
|
}
|
|
4800
4839
|
},
|
|
4801
4840
|
"parameters": {
|
package/dist/schema-model.d.ts
CHANGED
|
File without changes
|
package/dist/schema-model.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/entity-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.20.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",
|
|
@@ -45,25 +45,25 @@
|
|
|
45
45
|
"!*.config.js"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"axios": "^
|
|
48
|
+
"axios": "^1.6.2"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
52
52
|
"buffer": "^6.0.3",
|
|
53
53
|
"https-browserify": "^1.0.0",
|
|
54
|
-
"openapi-client-axios": "^7.1
|
|
54
|
+
"openapi-client-axios": "^7.5.1",
|
|
55
55
|
"stream-http": "^3.1.1",
|
|
56
56
|
"url": "^0.11.0",
|
|
57
57
|
"util": "^0.12.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/jest": "^26.0.20",
|
|
61
|
-
"axios": "^
|
|
61
|
+
"axios": "^1.6.2",
|
|
62
62
|
"copy-webpack-plugin": "^7.0.0",
|
|
63
63
|
"jest": "^26.6.3",
|
|
64
64
|
"json-loader": "^0.5.7",
|
|
65
65
|
"openapi-client-axios-typegen": "^7.4.1",
|
|
66
|
-
"openapicmd": "^1.
|
|
66
|
+
"openapicmd": "^2.1.0",
|
|
67
67
|
"ts-jest": "^26.5.0",
|
|
68
68
|
"ts-loader": "^8.0.14",
|
|
69
69
|
"ts-node": "^10.9.1",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"webpack-cli": "^4.4.0"
|
|
73
73
|
},
|
|
74
74
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
75
|
-
}
|
|
75
|
+
}
|