Skip to content

Commit 5cd8e77

Browse files
author
José Carneiro
committed
chore(entity-api): update client with latest changes, bump version
1 parent 24d5f08 commit 5cd8e77

File tree

4 files changed

+119
-7
lines changed

4 files changed

+119
-7
lines changed

clients/entity-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@epilot/entity-client",
3-
"version": "6.13.0",
3+
"version": "6.14.0",
44
"description": "JavaScript client library for the epilot Core Entity API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

clients/entity-client/src/openapi-runtime.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
{
1313
"in": "query",
1414
"name": "unpublished"
15+
},
16+
{
17+
"in": "query",
18+
"name": "exclude",
19+
"style": "form",
20+
"explode": false
1521
}
1622
],
1723
"responses": {}

clients/entity-client/src/openapi.d.ts

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4946,8 +4946,8 @@ declare namespace Components {
49464946
};
49474947
/**
49484948
* Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).
4949-
* The seed node always returns a single Entity object.
4950-
* Other nodes return a single Entity object if they contain exactly one entity, or an array of Entity objects if they contain multiple entities.
4949+
* The seed node and nodes with cardinality="one" return a single Entity object, or null if no entity was found.
4950+
* Nodes with cardinality="many" return an array of Entity objects.
49514951
*
49524952
* example:
49534953
* {
@@ -5007,7 +5007,7 @@ declare namespace Components {
50075007
* ]
50085008
* }
50095009
*/
5010-
Entity | /**
5010+
NullableEntity | /**
50115011
* example:
50125012
* {
50135013
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
@@ -6308,6 +6308,88 @@ declare namespace Components {
63086308
*/
63096309
allow_any?: boolean;
63106310
}
6311+
/**
6312+
* example:
6313+
* {
6314+
* "_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
6315+
* "_org": "123",
6316+
* "_owners": [
6317+
* {
6318+
* "org_id": "123",
6319+
* "user_id": "123"
6320+
* }
6321+
* ],
6322+
* "_schema": "contact",
6323+
* "_tags": [
6324+
* "example",
6325+
* "mock"
6326+
* ],
6327+
* "_created_at": "2021-02-09T12:41:43.662Z",
6328+
* "_updated_at": "2021-02-09T12:41:43.662Z",
6329+
* "_acl": {
6330+
* "view": [
6331+
* "org:456",
6332+
* "org:789"
6333+
* ],
6334+
* "edit": [
6335+
* "org:456"
6336+
* ],
6337+
* "delete": [
6338+
* "org:456"
6339+
* ]
6340+
* },
6341+
* "_manifest": [
6342+
* "123e4567-e89b-12d3-a456-426614174000"
6343+
* ]
6344+
* }
6345+
*/
6346+
export type NullableEntity = {
6347+
[name: string]: any;
6348+
_id?: string; // uuid
6349+
/**
6350+
* Organization Id the entity belongs to
6351+
*/
6352+
_org?: string;
6353+
_owners?: /**
6354+
* The user / organization owning this entity.
6355+
*
6356+
* Note: Owner implicitly has access to the entity regardless of ACLs.
6357+
*
6358+
*/
6359+
EntityOwner[];
6360+
_schema?: /**
6361+
* URL-friendly identifier for the entity schema
6362+
* example:
6363+
* contact
6364+
*/
6365+
EntitySlug /* ^[a-zA-Z0-9_-]+$ */;
6366+
/**
6367+
* Title of entity
6368+
*/
6369+
_title?: string | null;
6370+
_tags?: string[] | null;
6371+
_created_at?: string | null; // date-time
6372+
_updated_at?: string | null; // date-time
6373+
_deleted_at?: string | null; // date-time
6374+
/**
6375+
* Access control list (ACL) for an entity. Defines sharing access to external orgs or users.
6376+
*/
6377+
_acl?: {
6378+
[name: string]: any;
6379+
view?: string[];
6380+
edit?: string[];
6381+
delete?: string[];
6382+
};
6383+
_purpose?: string[] | null;
6384+
/**
6385+
* Automatically computed purpose names from _purpose attribute
6386+
*/
6387+
_purpose_name?: string[] | null;
6388+
/**
6389+
* Manifest ID used to create/update the entity
6390+
*/
6391+
_manifest?: string /* uuid */[] | null;
6392+
} | null;
63116393
/**
63126394
* Numeric input
63136395
*/
@@ -12274,10 +12356,12 @@ declare namespace Paths {
1227412356
}
1227512357
namespace ListSchemas {
1227612358
namespace Parameters {
12359+
export type Exclude = string[];
1227712360
export type Unpublished = boolean;
1227812361
}
1227912362
export interface QueryParameters {
1228012363
unpublished?: Parameters.Unpublished;
12364+
exclude?: Parameters.Exclude;
1228112365
}
1228212366
namespace Responses {
1228312367
export interface $200 {
@@ -15890,6 +15974,7 @@ export type LinkAttribute = Components.Schemas.LinkAttribute;
1589015974
export type ListSavedViewsResults = Components.Schemas.ListSavedViewsResults;
1589115975
export type MessageEmailAddressAttribute = Components.Schemas.MessageEmailAddressAttribute;
1589215976
export type MultiSelectAttribute = Components.Schemas.MultiSelectAttribute;
15977+
export type NullableEntity = Components.Schemas.NullableEntity;
1589315978
export type NumberAttribute = Components.Schemas.NumberAttribute;
1589415979
export type OrderedListAttribute = Components.Schemas.OrderedListAttribute;
1589515980
export type PartnerOrganisationAttribute = Components.Schemas.PartnerOrganisationAttribute;

clients/entity-client/src/openapi.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.2",
33
"info": {
44
"title": "Entity API",
5-
"version": "2.7.0",
5+
"version": "2.8.0",
66
"description": "Flexible data layer for epilot Entities.\n\nUse this API configure and access your business objects like Contacts, Opportunities and Products.\n\n[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)\n"
77
},
88
"tags": [
@@ -70,6 +70,19 @@
7070
"type": "boolean",
7171
"default": false
7272
}
73+
},
74+
{
75+
"in": "query",
76+
"name": "exclude",
77+
"description": "List of schema slugs to exclude from the results. Accepts a comma-separated list of slugs to exclude from the results.",
78+
"schema": {
79+
"type": "array",
80+
"items": {
81+
"type": "string"
82+
}
83+
},
84+
"style": "form",
85+
"explode": false
7386
}
7487
],
7588
"tags": [
@@ -7056,6 +7069,14 @@
70567069
]
70577070
}
70587071
},
7072+
"NullableEntity": {
7073+
"nullable": true,
7074+
"allOf": [
7075+
{
7076+
"$ref": "#/components/schemas/Entity"
7077+
}
7078+
]
7079+
},
70597080
"EntityOwner": {
70607081
"description": "The user / organization owning this entity.\n\nNote: Owner implicitly has access to the entity regardless of ACLs.\n",
70617082
"type": "object",
@@ -8097,11 +8118,11 @@
80978118
},
80988119
"entityNodes": {
80998120
"type": "object",
8100-
"description": "Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).\nThe seed node always returns a single Entity object.\nOther nodes return a single Entity object if they contain exactly one entity, or an array of Entity objects if they contain multiple entities.\n",
8121+
"description": "Map of node IDs to entity objects or arrays of entity objects (present when hydrate=true).\nThe seed node and nodes with cardinality=\"one\" return a single Entity object, or null if no entity was found.\nNodes with cardinality=\"many\" return an array of Entity objects.\n",
81018122
"additionalProperties": {
81028123
"oneOf": [
81038124
{
8104-
"$ref": "#/components/schemas/Entity"
8125+
"$ref": "#/components/schemas/NullableEntity"
81058126
},
81068127
{
81078128
"type": "array",

0 commit comments

Comments
 (0)