@epilot/entity-client 6.10.1 → 6.11.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +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 +19 -1
- package/dist/openapi.d.ts +632 -14
- package/dist/openapi.json +275 -6
- package/dist/schema-model.d.ts +0 -0
- package/dist/schema-model.js +0 -0
- package/package.json +16 -15
- package/LICENSE +0 -21
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Entity API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.1.0",
|
|
6
6
|
"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"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -2523,6 +2523,44 @@
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
},
|
|
2526
|
+
"/v1/entity:graph": {
|
|
2527
|
+
"post": {
|
|
2528
|
+
"operationId": "traverseEntityGraph",
|
|
2529
|
+
"summary": "Traverse Entity Graph",
|
|
2530
|
+
"description": "Traverse an entity relationship graph starting from a seed entity.\n\nDefine the shape of the graph using nodes (entity schemas) and edges (relationships with cardinality).\nThe API will traverse the graph bidirectionally and return all discovered entity IDs.\n\nExample: Find all entities connected to a contact through portal_user -> contact -> billing_account -> files\n",
|
|
2531
|
+
"tags": [
|
|
2532
|
+
"Relations"
|
|
2533
|
+
],
|
|
2534
|
+
"requestBody": {
|
|
2535
|
+
"required": true,
|
|
2536
|
+
"content": {
|
|
2537
|
+
"application/json": {
|
|
2538
|
+
"schema": {
|
|
2539
|
+
"$ref": "#/components/schemas/GraphQueryRequest"
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
"responses": {
|
|
2545
|
+
"200": {
|
|
2546
|
+
"description": "Graph traversal result",
|
|
2547
|
+
"content": {
|
|
2548
|
+
"application/json": {
|
|
2549
|
+
"schema": {
|
|
2550
|
+
"$ref": "#/components/schemas/GraphQueryResponse"
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
"400": {
|
|
2556
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
2557
|
+
},
|
|
2558
|
+
"404": {
|
|
2559
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
},
|
|
2526
2564
|
"/v1/entity/views": {
|
|
2527
2565
|
"get": {
|
|
2528
2566
|
"operationId": "listSavedViews",
|
|
@@ -2944,11 +2982,13 @@
|
|
|
2944
2982
|
},
|
|
2945
2983
|
{
|
|
2946
2984
|
"in": "query",
|
|
2985
|
+
"x-implemented": false,
|
|
2947
2986
|
"name": "permanent",
|
|
2948
|
-
"description": "If true, the taxonomy will be permanently deleted",
|
|
2987
|
+
"description": "⚠️ NOT IMPLEMENTED - If true, the taxonomy will be permanently deleted",
|
|
2949
2988
|
"schema": {
|
|
2950
2989
|
"type": "boolean"
|
|
2951
|
-
}
|
|
2990
|
+
},
|
|
2991
|
+
"default": false
|
|
2952
2992
|
}
|
|
2953
2993
|
],
|
|
2954
2994
|
"responses": {
|
|
@@ -3398,7 +3438,7 @@
|
|
|
3398
3438
|
"description": "ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).",
|
|
3399
3439
|
"type": "string",
|
|
3400
3440
|
"format": "date-time",
|
|
3401
|
-
"example": "2023-01-01T00:00:
|
|
3441
|
+
"example": "2023-01-01T00:00:00Z"
|
|
3402
3442
|
}
|
|
3403
3443
|
},
|
|
3404
3444
|
{
|
|
@@ -5149,6 +5189,11 @@
|
|
|
5149
5189
|
}
|
|
5150
5190
|
}
|
|
5151
5191
|
},
|
|
5192
|
+
"explicit_searchable": {
|
|
5193
|
+
"type": "boolean",
|
|
5194
|
+
"description": "When set to true, this attribute will always be searchable regardless of\nthe ELASTIC_MAX_SEARCH_FIELDS limit. Use this for critical search fields\nthat must always be included in search operations.\n",
|
|
5195
|
+
"default": false
|
|
5196
|
+
},
|
|
5152
5197
|
"repeatable": {
|
|
5153
5198
|
"description": "The attribute is a repeatable",
|
|
5154
5199
|
"type": "boolean"
|
|
@@ -7842,6 +7887,204 @@
|
|
|
7842
7887
|
],
|
|
7843
7888
|
"description": "The parameters for importing entities."
|
|
7844
7889
|
},
|
|
7890
|
+
"GraphQueryRequest": {
|
|
7891
|
+
"type": "object",
|
|
7892
|
+
"required": [
|
|
7893
|
+
"seed",
|
|
7894
|
+
"graph"
|
|
7895
|
+
],
|
|
7896
|
+
"properties": {
|
|
7897
|
+
"seed": {
|
|
7898
|
+
"$ref": "#/components/schemas/GraphSeed"
|
|
7899
|
+
},
|
|
7900
|
+
"graph": {
|
|
7901
|
+
"$ref": "#/components/schemas/GraphDefinition"
|
|
7902
|
+
},
|
|
7903
|
+
"hydrate": {
|
|
7904
|
+
"type": "boolean",
|
|
7905
|
+
"description": "If true, return full entity objects in entityNodes instead of just entity IDs in nodes",
|
|
7906
|
+
"default": false
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
},
|
|
7910
|
+
"GraphSeed": {
|
|
7911
|
+
"type": "object",
|
|
7912
|
+
"required": [
|
|
7913
|
+
"entity_id",
|
|
7914
|
+
"node_id"
|
|
7915
|
+
],
|
|
7916
|
+
"properties": {
|
|
7917
|
+
"entity_id": {
|
|
7918
|
+
"$ref": "#/components/schemas/EntityId"
|
|
7919
|
+
},
|
|
7920
|
+
"node_id": {
|
|
7921
|
+
"type": "string",
|
|
7922
|
+
"description": "The node ID in the graph definition that corresponds to the seed entity",
|
|
7923
|
+
"example": "contact"
|
|
7924
|
+
}
|
|
7925
|
+
}
|
|
7926
|
+
},
|
|
7927
|
+
"GraphDefinition": {
|
|
7928
|
+
"type": "object",
|
|
7929
|
+
"required": [
|
|
7930
|
+
"nodes",
|
|
7931
|
+
"edges"
|
|
7932
|
+
],
|
|
7933
|
+
"properties": {
|
|
7934
|
+
"nodes": {
|
|
7935
|
+
"type": "array",
|
|
7936
|
+
"description": "List of node definitions in the graph",
|
|
7937
|
+
"items": {
|
|
7938
|
+
"$ref": "#/components/schemas/GraphNode"
|
|
7939
|
+
},
|
|
7940
|
+
"example": [
|
|
7941
|
+
{
|
|
7942
|
+
"id": "portal_user",
|
|
7943
|
+
"schema": "portal_user",
|
|
7944
|
+
"cardinality": "one"
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
"id": "contact",
|
|
7948
|
+
"schema": "contact",
|
|
7949
|
+
"cardinality": "one"
|
|
7950
|
+
},
|
|
7951
|
+
{
|
|
7952
|
+
"id": "billing_accounts",
|
|
7953
|
+
"schema": "account",
|
|
7954
|
+
"cardinality": "many"
|
|
7955
|
+
}
|
|
7956
|
+
]
|
|
7957
|
+
},
|
|
7958
|
+
"edges": {
|
|
7959
|
+
"type": "array",
|
|
7960
|
+
"description": "List of edge definitions connecting nodes",
|
|
7961
|
+
"items": {
|
|
7962
|
+
"$ref": "#/components/schemas/GraphEdge"
|
|
7963
|
+
},
|
|
7964
|
+
"example": [
|
|
7965
|
+
{
|
|
7966
|
+
"from": "portal_user",
|
|
7967
|
+
"to": "contact"
|
|
7968
|
+
},
|
|
7969
|
+
{
|
|
7970
|
+
"from": "contact",
|
|
7971
|
+
"to": "billing_accounts"
|
|
7972
|
+
}
|
|
7973
|
+
]
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
},
|
|
7977
|
+
"GraphNode": {
|
|
7978
|
+
"type": "object",
|
|
7979
|
+
"required": [
|
|
7980
|
+
"id",
|
|
7981
|
+
"schema"
|
|
7982
|
+
],
|
|
7983
|
+
"properties": {
|
|
7984
|
+
"id": {
|
|
7985
|
+
"type": "string",
|
|
7986
|
+
"description": "Unique identifier for this node in the graph definition",
|
|
7987
|
+
"example": "contact"
|
|
7988
|
+
},
|
|
7989
|
+
"schema": {
|
|
7990
|
+
"type": "string",
|
|
7991
|
+
"description": "Entity schema slug for this node",
|
|
7992
|
+
"example": "contact"
|
|
7993
|
+
},
|
|
7994
|
+
"cardinality": {
|
|
7995
|
+
"type": "string",
|
|
7996
|
+
"enum": [
|
|
7997
|
+
"one",
|
|
7998
|
+
"many"
|
|
7999
|
+
],
|
|
8000
|
+
"description": "Optional cardinality for this node when used with hydrate=true:\n- \"one\": Node can only contain one entity, return single Entity object in entityNodes\n- \"many\": Node can contain multiple entities, return array of Entity objects in entityNodes\nIf not specified, defaults to \"many\" (returns array). The seed node always returns a single entity regardless of this setting.\n",
|
|
8001
|
+
"example": "one"
|
|
8002
|
+
}
|
|
8003
|
+
}
|
|
8004
|
+
},
|
|
8005
|
+
"GraphEdge": {
|
|
8006
|
+
"type": "object",
|
|
8007
|
+
"required": [
|
|
8008
|
+
"from",
|
|
8009
|
+
"to"
|
|
8010
|
+
],
|
|
8011
|
+
"properties": {
|
|
8012
|
+
"from": {
|
|
8013
|
+
"type": "string",
|
|
8014
|
+
"description": "Source node ID",
|
|
8015
|
+
"example": "contact"
|
|
8016
|
+
},
|
|
8017
|
+
"to": {
|
|
8018
|
+
"type": "string",
|
|
8019
|
+
"description": "Target node ID",
|
|
8020
|
+
"example": "billing_account"
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
},
|
|
8024
|
+
"GraphQueryResponse": {
|
|
8025
|
+
"type": "object",
|
|
8026
|
+
"properties": {
|
|
8027
|
+
"nodes": {
|
|
8028
|
+
"type": "object",
|
|
8029
|
+
"description": "Map of node IDs to arrays of entity IDs found for that node (present when hydrate=false)",
|
|
8030
|
+
"additionalProperties": {
|
|
8031
|
+
"type": "array",
|
|
8032
|
+
"items": {
|
|
8033
|
+
"$ref": "#/components/schemas/EntityId"
|
|
8034
|
+
}
|
|
8035
|
+
},
|
|
8036
|
+
"example": {
|
|
8037
|
+
"portal_user": [
|
|
8038
|
+
"550e8400-e29b-41d4-a716-446655440001"
|
|
8039
|
+
],
|
|
8040
|
+
"contact": [
|
|
8041
|
+
"550e8400-e29b-41d4-a716-446655440002"
|
|
8042
|
+
],
|
|
8043
|
+
"billing_accounts": [
|
|
8044
|
+
"550e8400-e29b-41d4-a716-446655440003",
|
|
8045
|
+
"550e8400-e29b-41d4-a716-446655440004"
|
|
8046
|
+
]
|
|
8047
|
+
}
|
|
8048
|
+
},
|
|
8049
|
+
"entityNodes": {
|
|
8050
|
+
"type": "object",
|
|
8051
|
+
"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",
|
|
8052
|
+
"additionalProperties": {
|
|
8053
|
+
"oneOf": [
|
|
8054
|
+
{
|
|
8055
|
+
"$ref": "#/components/schemas/Entity"
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
"type": "array",
|
|
8059
|
+
"items": {
|
|
8060
|
+
"$ref": "#/components/schemas/Entity"
|
|
8061
|
+
}
|
|
8062
|
+
}
|
|
8063
|
+
]
|
|
8064
|
+
}
|
|
8065
|
+
},
|
|
8066
|
+
"edges": {
|
|
8067
|
+
"type": "array",
|
|
8068
|
+
"description": "List of edges as defined in the request",
|
|
8069
|
+
"items": {
|
|
8070
|
+
"$ref": "#/components/schemas/GraphEdge"
|
|
8071
|
+
},
|
|
8072
|
+
"example": [
|
|
8073
|
+
{
|
|
8074
|
+
"from": "portal_user",
|
|
8075
|
+
"to": "contact"
|
|
8076
|
+
},
|
|
8077
|
+
{
|
|
8078
|
+
"from": "contact",
|
|
8079
|
+
"to": "billing_accounts"
|
|
8080
|
+
}
|
|
8081
|
+
]
|
|
8082
|
+
}
|
|
8083
|
+
},
|
|
8084
|
+
"required": [
|
|
8085
|
+
"edges"
|
|
8086
|
+
]
|
|
8087
|
+
},
|
|
7845
8088
|
"EntitySearchResults": {
|
|
7846
8089
|
"type": "object",
|
|
7847
8090
|
"properties": {
|
|
@@ -7996,13 +8239,16 @@
|
|
|
7996
8239
|
}
|
|
7997
8240
|
}
|
|
7998
8241
|
},
|
|
8242
|
+
"ActivityType": {
|
|
8243
|
+
"type": "string",
|
|
8244
|
+
"description": "A type for the activity. Used to categorize activities in the activity feed and for event subscriptions.\n\nBuilt-in entity activity types (custom activities can be defined as well):\n- EntityCreated\n- EntityUpdated\n- EntityDeleted\n- EntitySoftDeleted\n- EntityRestored\n- RelationsAdded\n- RelationsRemoved\n- RelationsSoftDeleted\n- RelationsRestored\n- RelationsDeleted\n"
|
|
8245
|
+
},
|
|
7999
8246
|
"Activity": {
|
|
8000
8247
|
"type": "object",
|
|
8001
8248
|
"additionalProperties": false,
|
|
8002
8249
|
"properties": {
|
|
8003
8250
|
"type": {
|
|
8004
|
-
"
|
|
8005
|
-
"example": "MyCustomActivity"
|
|
8251
|
+
"$ref": "#/components/schemas/ActivityType"
|
|
8006
8252
|
},
|
|
8007
8253
|
"title": {
|
|
8008
8254
|
"type": "string",
|
|
@@ -8050,6 +8296,9 @@
|
|
|
8050
8296
|
"activity_id": {
|
|
8051
8297
|
"$ref": "#/components/schemas/ActivityId"
|
|
8052
8298
|
},
|
|
8299
|
+
"activity_type": {
|
|
8300
|
+
"$ref": "#/components/schemas/ActivityType"
|
|
8301
|
+
},
|
|
8053
8302
|
"operation": {
|
|
8054
8303
|
"type": "string",
|
|
8055
8304
|
"enum": [
|
|
@@ -9612,6 +9861,26 @@
|
|
|
9612
9861
|
}
|
|
9613
9862
|
},
|
|
9614
9863
|
"responses": {
|
|
9864
|
+
"BadRequestError": {
|
|
9865
|
+
"description": "Bad request - invalid input parameters",
|
|
9866
|
+
"content": {
|
|
9867
|
+
"application/json": {
|
|
9868
|
+
"schema": {
|
|
9869
|
+
"allOf": [
|
|
9870
|
+
{
|
|
9871
|
+
"$ref": "#/components/schemas/ErrorObject"
|
|
9872
|
+
},
|
|
9873
|
+
{
|
|
9874
|
+
"example": {
|
|
9875
|
+
"status": 400,
|
|
9876
|
+
"error": "Bad Request"
|
|
9877
|
+
}
|
|
9878
|
+
}
|
|
9879
|
+
]
|
|
9880
|
+
}
|
|
9881
|
+
}
|
|
9882
|
+
}
|
|
9883
|
+
},
|
|
9615
9884
|
"NotFoundError": {
|
|
9616
9885
|
"description": "The requested resource was not found",
|
|
9617
9886
|
"content": {
|
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": "6.
|
|
3
|
+
"version": "6.11.0-rc.2",
|
|
4
4
|
"description": "JavaScript client library for the epilot Core Entity API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
"sdk",
|
|
22
22
|
"entity"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"typescript": "tsc",
|
|
27
|
+
"bundle-definition": "webpack",
|
|
28
|
+
"prepublishOnly": "npm run typegen && npm run build",
|
|
29
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
|
|
30
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
31
|
+
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
32
|
+
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
33
|
+
"build:watch": "npm run build && tsc -w",
|
|
34
|
+
"release-alpha": "npm version prerelease --preid alpha",
|
|
35
|
+
"lint": "pnpm exec eslint src"
|
|
36
|
+
},
|
|
24
37
|
"files": [
|
|
25
38
|
"*.js",
|
|
26
39
|
"*.d.ts",
|
|
@@ -60,17 +73,5 @@
|
|
|
60
73
|
"webpack": "^5.18.0",
|
|
61
74
|
"webpack-cli": "^4.4.0"
|
|
62
75
|
},
|
|
63
|
-
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
64
|
-
|
|
65
|
-
"test": "jest",
|
|
66
|
-
"typescript": "tsc",
|
|
67
|
-
"bundle-definition": "webpack",
|
|
68
|
-
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
|
|
69
|
-
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
70
|
-
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
71
|
-
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
72
|
-
"build:watch": "npm run build && tsc -w",
|
|
73
|
-
"release-alpha": "npm version prerelease --preid alpha",
|
|
74
|
-
"lint": "pnpm exec eslint src"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
76
|
+
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
77
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 epilot GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|