@epilot/entity-client 4.31.1 → 4.32.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.
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +32 -0
- package/dist/openapi.d.ts +349 -4
- package/dist/openapi.json +287 -2
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -744,6 +744,9 @@
|
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
746
|
"$ref": "#/components/parameters/AsyncOperationQueryParam"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
747
750
|
}
|
|
748
751
|
],
|
|
749
752
|
"requestBody": {
|
|
@@ -800,6 +803,16 @@
|
|
|
800
803
|
}
|
|
801
804
|
}
|
|
802
805
|
}
|
|
806
|
+
},
|
|
807
|
+
"422": {
|
|
808
|
+
"description": "Entity validation error when `?validate=true`",
|
|
809
|
+
"content": {
|
|
810
|
+
"application/json": {
|
|
811
|
+
"schema": {
|
|
812
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
803
816
|
}
|
|
804
817
|
}
|
|
805
818
|
}
|
|
@@ -858,6 +871,60 @@
|
|
|
858
871
|
}
|
|
859
872
|
}
|
|
860
873
|
},
|
|
874
|
+
"/v2/entity/{slug}:validate": {
|
|
875
|
+
"post": {
|
|
876
|
+
"operationId": "validateEntityV2",
|
|
877
|
+
"summary": "validateEntityV2",
|
|
878
|
+
"description": "Validates an entity against the schema.",
|
|
879
|
+
"tags": [
|
|
880
|
+
"Entities"
|
|
881
|
+
],
|
|
882
|
+
"parameters": [
|
|
883
|
+
{
|
|
884
|
+
"$ref": "#/components/parameters/EntitySlugPathPriceParam"
|
|
885
|
+
}
|
|
886
|
+
],
|
|
887
|
+
"requestBody": {
|
|
888
|
+
"content": {
|
|
889
|
+
"application/json": {
|
|
890
|
+
"schema": {
|
|
891
|
+
"$ref": "#/components/schemas/Entity"
|
|
892
|
+
},
|
|
893
|
+
"examples": {
|
|
894
|
+
"Valid Price": {
|
|
895
|
+
"$ref": "#/components/examples/PriceEntity"
|
|
896
|
+
},
|
|
897
|
+
"Invalid Price": {
|
|
898
|
+
"$ref": "#/components/examples/EmptyGenericEntity"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"responses": {
|
|
905
|
+
"200": {
|
|
906
|
+
"description": "Success",
|
|
907
|
+
"content": {
|
|
908
|
+
"application/json": {
|
|
909
|
+
"schema": {
|
|
910
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultSuccess"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
"422": {
|
|
916
|
+
"description": "Error",
|
|
917
|
+
"content": {
|
|
918
|
+
"application/json": {
|
|
919
|
+
"schema": {
|
|
920
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
},
|
|
861
928
|
"/v1/entity/{slug}:upsert": {
|
|
862
929
|
"patch": {
|
|
863
930
|
"operationId": "upsertEntity",
|
|
@@ -882,6 +949,9 @@
|
|
|
882
949
|
{
|
|
883
950
|
"$ref": "#/components/parameters/AsyncOperationQueryParam"
|
|
884
951
|
},
|
|
952
|
+
{
|
|
953
|
+
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
954
|
+
},
|
|
885
955
|
{
|
|
886
956
|
"name": "strict",
|
|
887
957
|
"description": "Strict mode = return 409 if more than one entity is matched",
|
|
@@ -948,6 +1018,16 @@
|
|
|
948
1018
|
},
|
|
949
1019
|
"409": {
|
|
950
1020
|
"description": "Conflict: multiple entities were matched with `unique_key`"
|
|
1021
|
+
},
|
|
1022
|
+
"422": {
|
|
1023
|
+
"description": "Entity validation error when `?validate=true`",
|
|
1024
|
+
"content": {
|
|
1025
|
+
"application/json": {
|
|
1026
|
+
"schema": {
|
|
1027
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
951
1031
|
}
|
|
952
1032
|
}
|
|
953
1033
|
}
|
|
@@ -1109,6 +1189,9 @@
|
|
|
1109
1189
|
},
|
|
1110
1190
|
{
|
|
1111
1191
|
"$ref": "#/components/parameters/AsyncOperationQueryParam"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
1112
1195
|
}
|
|
1113
1196
|
],
|
|
1114
1197
|
"requestBody": {
|
|
@@ -1131,6 +1214,16 @@
|
|
|
1131
1214
|
}
|
|
1132
1215
|
}
|
|
1133
1216
|
}
|
|
1217
|
+
},
|
|
1218
|
+
"422": {
|
|
1219
|
+
"description": "Entity validation error when `?validate=true`",
|
|
1220
|
+
"content": {
|
|
1221
|
+
"application/json": {
|
|
1222
|
+
"schema": {
|
|
1223
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1134
1227
|
}
|
|
1135
1228
|
}
|
|
1136
1229
|
},
|
|
@@ -1159,6 +1252,9 @@
|
|
|
1159
1252
|
},
|
|
1160
1253
|
{
|
|
1161
1254
|
"$ref": "#/components/parameters/AsyncOperationQueryParam"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
1162
1258
|
}
|
|
1163
1259
|
],
|
|
1164
1260
|
"requestBody": {
|
|
@@ -1185,6 +1281,16 @@
|
|
|
1185
1281
|
},
|
|
1186
1282
|
"409": {
|
|
1187
1283
|
"description": "Conflict: newer version exists"
|
|
1284
|
+
},
|
|
1285
|
+
"422": {
|
|
1286
|
+
"description": "Entity validation error when `?validate=true`",
|
|
1287
|
+
"content": {
|
|
1288
|
+
"application/json": {
|
|
1289
|
+
"schema": {
|
|
1290
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1188
1294
|
}
|
|
1189
1295
|
}
|
|
1190
1296
|
},
|
|
@@ -2031,7 +2137,7 @@
|
|
|
2031
2137
|
"post": {
|
|
2032
2138
|
"operationId": "exportEntities",
|
|
2033
2139
|
"summary": "exportEntities",
|
|
2034
|
-
"description": "
|
|
2140
|
+
"description": "Export entity data in a CSV-format. The export will export data as close as possible to what is visible on Entity UI tables.\nThe values exported as in some cases, transformed to human-readable values.\n\nTo force the export of raw values, use the `#` prefix in front of your field name when specifying the field on the `fields` param.\n",
|
|
2035
2141
|
"tags": [
|
|
2036
2142
|
"Export"
|
|
2037
2143
|
],
|
|
@@ -3431,6 +3537,15 @@
|
|
|
3431
3537
|
"type": "string",
|
|
3432
3538
|
"example": "Contacts"
|
|
3433
3539
|
},
|
|
3540
|
+
"description": {
|
|
3541
|
+
"type": "string",
|
|
3542
|
+
"example": "Example description"
|
|
3543
|
+
},
|
|
3544
|
+
"docs_url": {
|
|
3545
|
+
"type": "string",
|
|
3546
|
+
"format": "uri",
|
|
3547
|
+
"example": "https://docs.epilot.io/docs/pricing/entities"
|
|
3548
|
+
},
|
|
3434
3549
|
"published": {
|
|
3435
3550
|
"type": "boolean",
|
|
3436
3551
|
"example": false
|
|
@@ -3834,6 +3949,16 @@
|
|
|
3834
3949
|
"$ref": "#/components/schemas/ClassificationId"
|
|
3835
3950
|
}
|
|
3836
3951
|
},
|
|
3952
|
+
"_manifest": {
|
|
3953
|
+
"type": "array",
|
|
3954
|
+
"description": "Manifest ID used to create/update the schema group",
|
|
3955
|
+
"items": {
|
|
3956
|
+
"type": "string",
|
|
3957
|
+
"format": "uuid",
|
|
3958
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
3959
|
+
},
|
|
3960
|
+
"nullable": true
|
|
3961
|
+
},
|
|
3837
3962
|
"feature_flag": {
|
|
3838
3963
|
"type": "string",
|
|
3839
3964
|
"example": "FF_MY_FEATURE_FLAG",
|
|
@@ -4073,6 +4198,16 @@
|
|
|
4073
4198
|
"$ref": "#/components/schemas/ClassificationId"
|
|
4074
4199
|
}
|
|
4075
4200
|
},
|
|
4201
|
+
"_manifest": {
|
|
4202
|
+
"type": "array",
|
|
4203
|
+
"description": "Manifest ID used to create/update the schema attribute",
|
|
4204
|
+
"items": {
|
|
4205
|
+
"type": "string",
|
|
4206
|
+
"format": "uuid",
|
|
4207
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
4208
|
+
},
|
|
4209
|
+
"nullable": true
|
|
4210
|
+
},
|
|
4076
4211
|
"constraints": {
|
|
4077
4212
|
"type": "object",
|
|
4078
4213
|
"description": "A set of constraints applicable to the attribute.\nThese constraints should and will be enforced by the attribute renderer.\n",
|
|
@@ -5199,10 +5334,25 @@
|
|
|
5199
5334
|
"top_divider",
|
|
5200
5335
|
"bottom_divider"
|
|
5201
5336
|
]
|
|
5337
|
+
},
|
|
5338
|
+
"_purpose": {
|
|
5339
|
+
"type": "array",
|
|
5340
|
+
"items": {
|
|
5341
|
+
"$ref": "#/components/schemas/ClassificationId"
|
|
5342
|
+
}
|
|
5343
|
+
},
|
|
5344
|
+
"_manifest": {
|
|
5345
|
+
"type": "array",
|
|
5346
|
+
"description": "Manifest ID used to create/update the schema group headline",
|
|
5347
|
+
"items": {
|
|
5348
|
+
"type": "string",
|
|
5349
|
+
"format": "uuid",
|
|
5350
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
5351
|
+
},
|
|
5352
|
+
"nullable": true
|
|
5202
5353
|
}
|
|
5203
5354
|
},
|
|
5204
5355
|
"required": [
|
|
5205
|
-
"id",
|
|
5206
5356
|
"name",
|
|
5207
5357
|
"label",
|
|
5208
5358
|
"group",
|
|
@@ -5268,6 +5418,16 @@
|
|
|
5268
5418
|
"$ref": "#/components/schemas/ClassificationId"
|
|
5269
5419
|
}
|
|
5270
5420
|
},
|
|
5421
|
+
"_manifest": {
|
|
5422
|
+
"type": "array",
|
|
5423
|
+
"description": "Manifest ID used to create/update the schema capabilility",
|
|
5424
|
+
"items": {
|
|
5425
|
+
"type": "string",
|
|
5426
|
+
"format": "uuid",
|
|
5427
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
5428
|
+
},
|
|
5429
|
+
"nullable": true
|
|
5430
|
+
},
|
|
5271
5431
|
"ui_hooks": {
|
|
5272
5432
|
"type": "array",
|
|
5273
5433
|
"items": {
|
|
@@ -5890,6 +6050,112 @@
|
|
|
5890
6050
|
}
|
|
5891
6051
|
]
|
|
5892
6052
|
},
|
|
6053
|
+
"EntityValidationV2Error": {
|
|
6054
|
+
"type": "object",
|
|
6055
|
+
"properties": {
|
|
6056
|
+
"keyword": {
|
|
6057
|
+
"type": "string",
|
|
6058
|
+
"description": "validation keyword."
|
|
6059
|
+
},
|
|
6060
|
+
"instance_path": {
|
|
6061
|
+
"type": "string",
|
|
6062
|
+
"description": "JSON Pointer to the location in the data instance (e.g., `\"/prop/1/subProp\"`)."
|
|
6063
|
+
},
|
|
6064
|
+
"schema_path": {
|
|
6065
|
+
"type": "string",
|
|
6066
|
+
"description": "JSON Pointer to the location of the failing keyword in the schema."
|
|
6067
|
+
},
|
|
6068
|
+
"params": {
|
|
6069
|
+
"type": "object",
|
|
6070
|
+
"description": "Additional information about error.",
|
|
6071
|
+
"additionalProperties": true
|
|
6072
|
+
},
|
|
6073
|
+
"property_name": {
|
|
6074
|
+
"type": "string",
|
|
6075
|
+
"description": "Set for errors in `propertyNames` keyword schema. `instance_path` still points to the object in this case."
|
|
6076
|
+
},
|
|
6077
|
+
"message": {
|
|
6078
|
+
"type": "string",
|
|
6079
|
+
"description": "The error message."
|
|
6080
|
+
},
|
|
6081
|
+
"schema": {
|
|
6082
|
+
"type": "object",
|
|
6083
|
+
"description": "The value of the failing keyword in the schema."
|
|
6084
|
+
},
|
|
6085
|
+
"parent_schema": {
|
|
6086
|
+
"type": "object",
|
|
6087
|
+
"description": "The schema containing the keyword.",
|
|
6088
|
+
"additionalProperties": true
|
|
6089
|
+
},
|
|
6090
|
+
"data": {
|
|
6091
|
+
"type": "object",
|
|
6092
|
+
"description": "The data validated by the keyword.",
|
|
6093
|
+
"additionalProperties": true
|
|
6094
|
+
}
|
|
6095
|
+
},
|
|
6096
|
+
"required": [
|
|
6097
|
+
"keyword",
|
|
6098
|
+
"instance_path",
|
|
6099
|
+
"schema_path",
|
|
6100
|
+
"params"
|
|
6101
|
+
]
|
|
6102
|
+
},
|
|
6103
|
+
"EntityValidationV2ResultSuccess": {
|
|
6104
|
+
"type": "object",
|
|
6105
|
+
"description": "Validation result for a successful validation",
|
|
6106
|
+
"properties": {
|
|
6107
|
+
"status": {
|
|
6108
|
+
"type": "string",
|
|
6109
|
+
"enum": [
|
|
6110
|
+
"success"
|
|
6111
|
+
]
|
|
6112
|
+
},
|
|
6113
|
+
"errors": {
|
|
6114
|
+
"type": "array",
|
|
6115
|
+
"maxItems": 0,
|
|
6116
|
+
"items": {
|
|
6117
|
+
"$ref": "#/components/schemas/EntityValidationV2Error"
|
|
6118
|
+
}
|
|
6119
|
+
}
|
|
6120
|
+
},
|
|
6121
|
+
"required": [
|
|
6122
|
+
"status",
|
|
6123
|
+
"errors"
|
|
6124
|
+
]
|
|
6125
|
+
},
|
|
6126
|
+
"EntityValidationV2ResultError": {
|
|
6127
|
+
"type": "object",
|
|
6128
|
+
"description": "Validation result for a failed validation",
|
|
6129
|
+
"properties": {
|
|
6130
|
+
"status": {
|
|
6131
|
+
"type": "string",
|
|
6132
|
+
"enum": [
|
|
6133
|
+
"error"
|
|
6134
|
+
]
|
|
6135
|
+
},
|
|
6136
|
+
"errors": {
|
|
6137
|
+
"type": "array",
|
|
6138
|
+
"minItems": 1,
|
|
6139
|
+
"items": {
|
|
6140
|
+
"$ref": "#/components/schemas/EntityValidationV2Error"
|
|
6141
|
+
}
|
|
6142
|
+
}
|
|
6143
|
+
},
|
|
6144
|
+
"required": [
|
|
6145
|
+
"status",
|
|
6146
|
+
"errors"
|
|
6147
|
+
]
|
|
6148
|
+
},
|
|
6149
|
+
"EntityValidationV2Result": {
|
|
6150
|
+
"oneOf": [
|
|
6151
|
+
{
|
|
6152
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultSuccess"
|
|
6153
|
+
},
|
|
6154
|
+
{
|
|
6155
|
+
"$ref": "#/components/schemas/EntityValidationV2ResultError"
|
|
6156
|
+
}
|
|
6157
|
+
]
|
|
6158
|
+
},
|
|
5893
6159
|
"HydratedEntityItem": {
|
|
5894
6160
|
"allOf": [
|
|
5895
6161
|
{
|
|
@@ -6880,6 +7146,16 @@
|
|
|
6880
7146
|
"updated_at": {
|
|
6881
7147
|
"type": "string",
|
|
6882
7148
|
"format": "date-time"
|
|
7149
|
+
},
|
|
7150
|
+
"_manifest": {
|
|
7151
|
+
"type": "array",
|
|
7152
|
+
"description": "Manifest ID used to create/update the taxonomy classification",
|
|
7153
|
+
"items": {
|
|
7154
|
+
"type": "string",
|
|
7155
|
+
"format": "uuid",
|
|
7156
|
+
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
7157
|
+
},
|
|
7158
|
+
"nullable": true
|
|
6883
7159
|
}
|
|
6884
7160
|
},
|
|
6885
7161
|
"required": [
|
|
@@ -7176,6 +7452,15 @@
|
|
|
7176
7452
|
"type": "boolean",
|
|
7177
7453
|
"default": false
|
|
7178
7454
|
}
|
|
7455
|
+
},
|
|
7456
|
+
"ValidateEntityQueryParam": {
|
|
7457
|
+
"name": "validate",
|
|
7458
|
+
"description": "When true, enables entity validation against the entity schema.",
|
|
7459
|
+
"in": "query",
|
|
7460
|
+
"schema": {
|
|
7461
|
+
"default": false,
|
|
7462
|
+
"type": "boolean"
|
|
7463
|
+
}
|
|
7179
7464
|
}
|
|
7180
7465
|
},
|
|
7181
7466
|
"examples": {
|