@epilot/entity-client 4.29.1 → 4.29.3

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/openapi.json CHANGED
@@ -253,6 +253,15 @@
253
253
  "type": "string"
254
254
  }
255
255
  },
256
+ "_manifest": {
257
+ "type": "array",
258
+ "description": "Manifest ID used to create/update the entity",
259
+ "items": {
260
+ "type": "string",
261
+ "format": "uuid",
262
+ "example": "123e4567-e89b-12d3-a456-426614174000"
263
+ }
264
+ },
256
265
  "_created_at": {
257
266
  "readOnly": true,
258
267
  "type": "string",
@@ -730,6 +739,9 @@
730
739
  {
731
740
  "$ref": "#/components/parameters/ActivityIdQueryParam"
732
741
  },
742
+ {
743
+ "$ref": "#/components/parameters/FillActivityQueryParam"
744
+ },
733
745
  {
734
746
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
735
747
  }
@@ -861,6 +873,9 @@
861
873
  {
862
874
  "$ref": "#/components/parameters/ActivityIdQueryParam"
863
875
  },
876
+ {
877
+ "$ref": "#/components/parameters/FillActivityQueryParam"
878
+ },
864
879
  {
865
880
  "$ref": "#/components/parameters/DryRunQueryParam"
866
881
  },
@@ -1037,6 +1052,9 @@
1037
1052
  {
1038
1053
  "$ref": "#/components/parameters/ActivityIdQueryParam"
1039
1054
  },
1055
+ {
1056
+ "$ref": "#/components/parameters/FillActivityQueryParam"
1057
+ },
1040
1058
  {
1041
1059
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
1042
1060
  }
@@ -1081,6 +1099,9 @@
1081
1099
  {
1082
1100
  "$ref": "#/components/parameters/ActivityIdQueryParam"
1083
1101
  },
1102
+ {
1103
+ "$ref": "#/components/parameters/FillActivityQueryParam"
1104
+ },
1084
1105
  {
1085
1106
  "$ref": "#/components/parameters/DryRunQueryParam"
1086
1107
  },
@@ -1559,6 +1580,9 @@
1559
1580
  },
1560
1581
  {
1561
1582
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
1583
+ },
1584
+ {
1585
+ "$ref": "#/components/parameters/ActivityIdQueryParam"
1562
1586
  }
1563
1587
  ],
1564
1588
  "requestBody": {
@@ -1619,6 +1643,9 @@
1619
1643
  },
1620
1644
  {
1621
1645
  "$ref": "#/components/parameters/AsyncOperationQueryParam"
1646
+ },
1647
+ {
1648
+ "$ref": "#/components/parameters/ActivityIdQueryParam"
1622
1649
  }
1623
1650
  ],
1624
1651
  "requestBody": {
@@ -2708,6 +2735,37 @@
2708
2735
  }
2709
2736
  }
2710
2737
  },
2738
+ "/v1/entity/schemas/attributes": {
2739
+ "post": {
2740
+ "operationId": "createSchemaAttribute",
2741
+ "summary": "createSchemaAttribute",
2742
+ "description": "Create a schema attribute",
2743
+ "tags": [
2744
+ "Schemas"
2745
+ ],
2746
+ "requestBody": {
2747
+ "content": {
2748
+ "application/json": {
2749
+ "schema": {
2750
+ "$ref": "#/components/schemas/AttributeWithCompositeID"
2751
+ }
2752
+ }
2753
+ }
2754
+ },
2755
+ "responses": {
2756
+ "201": {
2757
+ "description": "Success",
2758
+ "content": {
2759
+ "application/json": {
2760
+ "schema": {
2761
+ "$ref": "#/components/schemas/AttributeWithCompositeID"
2762
+ }
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ }
2768
+ },
2711
2769
  "/v1/entity/schemas/attributes/{composite_id}": {
2712
2770
  "get": {
2713
2771
  "operationId": "getSchemaAttribute",
@@ -2818,6 +2876,37 @@
2818
2876
  }
2819
2877
  }
2820
2878
  },
2879
+ "/v1/entity/schemas/capabilities": {
2880
+ "post": {
2881
+ "operationId": "createSchemaCapability",
2882
+ "summary": "createSchemaCapability",
2883
+ "description": "Create a schema capability",
2884
+ "tags": [
2885
+ "Schemas"
2886
+ ],
2887
+ "requestBody": {
2888
+ "content": {
2889
+ "application/json": {
2890
+ "schema": {
2891
+ "$ref": "#/components/schemas/EntityCapabilityWithCompositeID"
2892
+ }
2893
+ }
2894
+ }
2895
+ },
2896
+ "responses": {
2897
+ "201": {
2898
+ "description": "Success",
2899
+ "content": {
2900
+ "application/json": {
2901
+ "schema": {
2902
+ "$ref": "#/components/schemas/EntityCapabilityWithCompositeID"
2903
+ }
2904
+ }
2905
+ }
2906
+ }
2907
+ }
2908
+ }
2909
+ },
2821
2910
  "/v1/entity/schemas/capabilities/{composite_id}": {
2822
2911
  "get": {
2823
2912
  "operationId": "getSchemaCapability",
@@ -2928,6 +3017,37 @@
2928
3017
  }
2929
3018
  }
2930
3019
  },
3020
+ "/v1/entity/schemas/group": {
3021
+ "post": {
3022
+ "operationId": "createSchemaGroup",
3023
+ "summary": "createSchemaGroup",
3024
+ "description": "Create a schema group",
3025
+ "tags": [
3026
+ "Schemas"
3027
+ ],
3028
+ "requestBody": {
3029
+ "content": {
3030
+ "application/json": {
3031
+ "schema": {
3032
+ "$ref": "#/components/schemas/EntitySchemaGroupWithCompositeID"
3033
+ }
3034
+ }
3035
+ }
3036
+ },
3037
+ "responses": {
3038
+ "201": {
3039
+ "description": "Success",
3040
+ "content": {
3041
+ "application/json": {
3042
+ "schema": {
3043
+ "$ref": "#/components/schemas/EntitySchemaGroupWithCompositeID"
3044
+ }
3045
+ }
3046
+ }
3047
+ }
3048
+ }
3049
+ }
3050
+ },
2931
3051
  "/v1/entity/schemas/group/{composite_id}": {
2932
3052
  "get": {
2933
3053
  "operationId": "getSchemaGroup",
@@ -3372,6 +3492,39 @@
3372
3492
  }
3373
3493
  ]
3374
3494
  },
3495
+ "GenerateEntityTableAIFiltersRequest": {
3496
+ "type": "object",
3497
+ "properties": {
3498
+ "prompt": {
3499
+ "type": "string",
3500
+ "description": "The prompt to generate the filters",
3501
+ "example": "Show me all contacts that are not customers",
3502
+ "maxLength": 300
3503
+ },
3504
+ "main_entity_slug": {
3505
+ "type": "string",
3506
+ "description": "The main entity slug",
3507
+ "example": "order"
3508
+ },
3509
+ "filter_options": {
3510
+ "type": "array",
3511
+ "items": {
3512
+ "$ref": "#/components/schemas/EntityTableFilterOption"
3513
+ }
3514
+ }
3515
+ },
3516
+ "required": [
3517
+ "prompt",
3518
+ "main_entity_slug",
3519
+ "filter_options"
3520
+ ]
3521
+ },
3522
+ "GenerateEntityTableAIFiltersResponse": {
3523
+ "type": "array",
3524
+ "items": {
3525
+ "$ref": "#/components/schemas/EntityTableFilterSearch"
3526
+ }
3527
+ },
3375
3528
  "EntityTableFilterSearch": {
3376
3529
  "type": "object",
3377
3530
  "properties": {
@@ -3500,8 +3653,7 @@
3500
3653
  }
3501
3654
  },
3502
3655
  "required": [
3503
- "label",
3504
- "id"
3656
+ "label"
3505
3657
  ]
3506
3658
  },
3507
3659
  "EntitySchemaGroupWithCompositeID": {
@@ -3517,6 +3669,11 @@
3517
3669
  "type": "string",
3518
3670
  "readOnly": true,
3519
3671
  "example": "contact:e18a532b-ae79-4d86-a6a5-e5dbfb579d14"
3672
+ },
3673
+ "schema": {
3674
+ "type": "string",
3675
+ "description": "Schema slug the group belongs to",
3676
+ "example": "contact"
3520
3677
  }
3521
3678
  }
3522
3679
  }
@@ -3623,6 +3780,11 @@
3623
3780
  "type": "string",
3624
3781
  "readOnly": true,
3625
3782
  "example": "contact:97644baa-083f-4e49-9188-fcff2ecaad7d"
3783
+ },
3784
+ "schema": {
3785
+ "type": "string",
3786
+ "description": "Schema slug the attribute belongs to",
3787
+ "example": "contact"
3626
3788
  }
3627
3789
  }
3628
3790
  }
@@ -4934,6 +5096,11 @@
4934
5096
  "type": "string",
4935
5097
  "readOnly": true,
4936
5098
  "example": "contact:97644baa-083f-4e49-9188-fcff2ecaad7d"
5099
+ },
5100
+ "schema": {
5101
+ "type": "string",
5102
+ "description": "Schema slug the capability belongs to",
5103
+ "example": "contact"
4937
5104
  }
4938
5105
  }
4939
5106
  }
@@ -5162,6 +5329,16 @@
5162
5329
  "type": "string"
5163
5330
  },
5164
5331
  "nullable": true
5332
+ },
5333
+ "_manifest": {
5334
+ "type": "array",
5335
+ "description": "Manifest ID used to create/update the entity",
5336
+ "items": {
5337
+ "type": "string",
5338
+ "format": "uuid",
5339
+ "example": "123e4567-e89b-12d3-a456-426614174000"
5340
+ },
5341
+ "nullable": true
5165
5342
  }
5166
5343
  },
5167
5344
  "example": {
@@ -5191,7 +5368,10 @@
5191
5368
  "delete": [
5192
5369
  "org:456"
5193
5370
  ]
5194
- }
5371
+ },
5372
+ "_manifest": [
5373
+ "123e4567-e89b-12d3-a456-426614174000"
5374
+ ]
5195
5375
  }
5196
5376
  },
5197
5377
  "EntityOwner": {
@@ -5419,6 +5599,26 @@
5419
5599
  "errors"
5420
5600
  ]
5421
5601
  },
5602
+ "EntityValidationResult": {
5603
+ "oneOf": [
5604
+ {
5605
+ "$ref": "#/components/schemas/EntityValidationResultSuccess"
5606
+ },
5607
+ {
5608
+ "$ref": "#/components/schemas/EntityValidationResultError"
5609
+ }
5610
+ ]
5611
+ },
5612
+ "HydratedEntityItem": {
5613
+ "allOf": [
5614
+ {
5615
+ "$ref": "#/components/schemas/BaseEntity"
5616
+ },
5617
+ {
5618
+ "$ref": "#/components/schemas/HydratedEntity"
5619
+ }
5620
+ ]
5621
+ },
5422
5622
  "GetRelationsResp": {
5423
5623
  "type": "array",
5424
5624
  "items": {
@@ -5730,8 +5930,18 @@
5730
5930
  "type": "object",
5731
5931
  "properties": {
5732
5932
  "sort": {
5733
- "type": "string",
5734
- "example": "_created_at:desc"
5933
+ "description": "You can pass one sort field or an array of sort fields. Each sort field can be a string",
5934
+ "oneOf": [
5935
+ {
5936
+ "type": "string"
5937
+ },
5938
+ {
5939
+ "type": "array",
5940
+ "items": {
5941
+ "type": "string"
5942
+ }
5943
+ }
5944
+ ]
5735
5945
  },
5736
5946
  "from": {
5737
5947
  "type": "integer",
@@ -5973,6 +6183,11 @@
5973
6183
  "schema": "contact"
5974
6184
  }
5975
6185
  }
6186
+ },
6187
+ "pending": {
6188
+ "type": "boolean",
6189
+ "description": "Indicates whether the activity is in the pending state.\nPending activities are not yet visible in the activity feed and events are not yet dispatched.\n",
6190
+ "default": false
5976
6191
  }
5977
6192
  },
5978
6193
  "required": [
@@ -6377,6 +6592,11 @@
6377
6592
  "type": "string",
6378
6593
  "example": "taxonomy-slug:classification-slug"
6379
6594
  },
6595
+ "ClassificationSlug": {
6596
+ "type": "string",
6597
+ "description": "URL-friendly identifier for the classification",
6598
+ "example": "wallbox-pv"
6599
+ },
6380
6600
  "TaxonomySlug": {
6381
6601
  "type": "string",
6382
6602
  "description": "URL-friendly name for taxonomy",
@@ -6413,6 +6633,19 @@
6413
6633
  }
6414
6634
  }
6415
6635
  },
6636
+ "ESClusterAssignment": {
6637
+ "type": "object",
6638
+ "properties": {
6639
+ "orgId": {
6640
+ "type": "string",
6641
+ "description": "The organization for which the cluster assignment is returned"
6642
+ },
6643
+ "cluster": {
6644
+ "type": "string",
6645
+ "description": "Name of the elastic cluster the organization is assigned to"
6646
+ }
6647
+ }
6648
+ },
6416
6649
  "SettingFlag": {
6417
6650
  "type": "object",
6418
6651
  "properties": {
@@ -6460,6 +6693,15 @@
6460
6693
  "example": "price"
6461
6694
  }
6462
6695
  },
6696
+ "TaxonomySlugQueryParam": {
6697
+ "name": "taxonomySlug",
6698
+ "description": "Taxonomy slug",
6699
+ "in": "query",
6700
+ "schema": {
6701
+ "type": "string"
6702
+ },
6703
+ "required": true
6704
+ },
6463
6705
  "TaxonomySlugPathParam": {
6464
6706
  "name": "taxonomySlug",
6465
6707
  "description": "Taxonomy slug",
@@ -6615,6 +6857,16 @@
6615
6857
  "type": "boolean",
6616
6858
  "default": false
6617
6859
  }
6860
+ },
6861
+ "FillActivityQueryParam": {
6862
+ "name": "fill_activity",
6863
+ "description": "Update the diff and entity for the custom activity included in the query.\nPending state on activity is automatically ended when activity is filled.\n",
6864
+ "in": "query",
6865
+ "required": false,
6866
+ "schema": {
6867
+ "type": "boolean",
6868
+ "default": false
6869
+ }
6618
6870
  }
6619
6871
  },
6620
6872
  "examples": {
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-client",
3
- "version": "4.29.1",
3
+ "version": "4.29.3",
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",
@@ -27,7 +27,7 @@
27
27
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity.yaml",
28
28
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
29
29
  "build": "tsc && npm run build:patch && npm run bundle-definition",
30
- "build:patch": "sed -i '/^__exportStar.*openapi.*$/d' dist/index.js",
30
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
31
31
  "build:watch": "npm run build && tsc -w",
32
32
  "release-alpha": "npm version prerelease --preid alpha",
33
33
  "lint": "../../node_modules/eslint/bin/eslint.js src"
@@ -71,5 +71,5 @@
71
71
  "webpack": "^5.18.0",
72
72
  "webpack-cli": "^4.4.0"
73
73
  },
74
- "gitHead": "cb7e6acc938eb178e531c19834ea8bd0d6445e6f"
74
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
75
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2022 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.