@epilot/entity-client 4.0.2 → 4.0.5
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.d.ts +50 -3
- package/dist/openapi.json +56 -1
- package/package-lock.json +18839 -0
- package/package.json +3 -3
package/dist/openapi.d.ts
CHANGED
|
@@ -1082,6 +1082,12 @@ declare namespace Components {
|
|
|
1082
1082
|
* 123
|
|
1083
1083
|
*/
|
|
1084
1084
|
org: string;
|
|
1085
|
+
activity_id?: /**
|
|
1086
|
+
* See https://github.com/ulid/spec
|
|
1087
|
+
* example:
|
|
1088
|
+
* 01F130Q52Q6MWSNS8N2AVXV4JN
|
|
1089
|
+
*/
|
|
1090
|
+
ActivityId /* ulid */;
|
|
1085
1091
|
operation: "createEntity" | "updateEntity" | "deleteEntity";
|
|
1086
1092
|
/**
|
|
1087
1093
|
* example:
|
|
@@ -1189,6 +1195,7 @@ declare namespace Components {
|
|
|
1189
1195
|
table_view?: EntityViewConfig;
|
|
1190
1196
|
create_view?: EntityViewConfig;
|
|
1191
1197
|
edit_view?: EntityViewConfig;
|
|
1198
|
+
single_view?: EntityViewConfig;
|
|
1192
1199
|
list_item?: {
|
|
1193
1200
|
summary_attributes?: (/**
|
|
1194
1201
|
* Represents an expanded version of an attribute to be displayed in the list item summary.
|
|
@@ -1198,7 +1205,7 @@ declare namespace Components {
|
|
|
1198
1205
|
* "label": "Price components"
|
|
1199
1206
|
* "value": "{{item.prices.length}} price components"
|
|
1200
1207
|
* "show_as_tag": true
|
|
1201
|
-
* "render_condition": "is_composite_price =
|
|
1208
|
+
* "render_condition": "is_composite_price = "true""
|
|
1202
1209
|
* }
|
|
1203
1210
|
* ```
|
|
1204
1211
|
* The value field supports handlebar expressions from which you can pick any field from the entity state.
|
|
@@ -1401,6 +1408,7 @@ declare namespace Components {
|
|
|
1401
1408
|
table_view?: EntityViewConfig;
|
|
1402
1409
|
create_view?: EntityViewConfig;
|
|
1403
1410
|
edit_view?: EntityViewConfig;
|
|
1411
|
+
single_view?: EntityViewConfig;
|
|
1404
1412
|
list_item?: {
|
|
1405
1413
|
summary_attributes?: (/**
|
|
1406
1414
|
* Represents an expanded version of an attribute to be displayed in the list item summary.
|
|
@@ -1410,7 +1418,7 @@ declare namespace Components {
|
|
|
1410
1418
|
* "label": "Price components"
|
|
1411
1419
|
* "value": "{{item.prices.length}} price components"
|
|
1412
1420
|
* "show_as_tag": true
|
|
1413
|
-
* "render_condition": "is_composite_price =
|
|
1421
|
+
* "render_condition": "is_composite_price = "true""
|
|
1414
1422
|
* }
|
|
1415
1423
|
* ```
|
|
1416
1424
|
* The value field supports handlebar expressions from which you can pick any field from the entity state.
|
|
@@ -1622,6 +1630,10 @@ declare namespace Components {
|
|
|
1622
1630
|
export interface EntityViewDisabled {
|
|
1623
1631
|
view_type?: "disabled";
|
|
1624
1632
|
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Export Job Id to get the result
|
|
1635
|
+
*/
|
|
1636
|
+
export type ExportJobId = string;
|
|
1625
1637
|
/**
|
|
1626
1638
|
* File or Image Attachment
|
|
1627
1639
|
*/
|
|
@@ -3076,7 +3088,7 @@ declare namespace Components {
|
|
|
3076
3088
|
* "label": "Price components"
|
|
3077
3089
|
* "value": "{{item.prices.length}} price components"
|
|
3078
3090
|
* "show_as_tag": true
|
|
3079
|
-
* "render_condition": "is_composite_price =
|
|
3091
|
+
* "render_condition": "is_composite_price = "true""
|
|
3080
3092
|
* }
|
|
3081
3093
|
* ```
|
|
3082
3094
|
* The value field supports handlebar expressions from which you can pick any field from the entity state.
|
|
@@ -3592,6 +3604,19 @@ declare namespace Paths {
|
|
|
3592
3604
|
}
|
|
3593
3605
|
}
|
|
3594
3606
|
}
|
|
3607
|
+
namespace ExportEntities {
|
|
3608
|
+
namespace Parameters {
|
|
3609
|
+
export type JobId = /* Export Job Id to get the result */ Components.Schemas.ExportJobId;
|
|
3610
|
+
}
|
|
3611
|
+
export interface QueryParameters {
|
|
3612
|
+
job_id?: Parameters.JobId;
|
|
3613
|
+
}
|
|
3614
|
+
export type RequestBody = Components.Schemas.EntitySearchParams;
|
|
3615
|
+
namespace Responses {
|
|
3616
|
+
export interface $201 {
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
}
|
|
3595
3620
|
namespace GetActivity {
|
|
3596
3621
|
namespace Parameters {
|
|
3597
3622
|
export type Id = /**
|
|
@@ -4299,6 +4324,16 @@ export interface OperationMethods {
|
|
|
4299
4324
|
data?: any,
|
|
4300
4325
|
config?: AxiosRequestConfig
|
|
4301
4326
|
): OperationResponse<Paths.DeleteRelation.Responses.$204>
|
|
4327
|
+
/**
|
|
4328
|
+
* exportEntities - exportEntities
|
|
4329
|
+
*
|
|
4330
|
+
* create export file of entities
|
|
4331
|
+
*/
|
|
4332
|
+
'exportEntities'(
|
|
4333
|
+
parameters?: Parameters<Paths.ExportEntities.QueryParameters> | null,
|
|
4334
|
+
data?: Paths.ExportEntities.RequestBody,
|
|
4335
|
+
config?: AxiosRequestConfig
|
|
4336
|
+
): OperationResponse<Paths.ExportEntities.Responses.$201>
|
|
4302
4337
|
}
|
|
4303
4338
|
|
|
4304
4339
|
export interface PathsDictionary {
|
|
@@ -4700,6 +4735,18 @@ export interface PathsDictionary {
|
|
|
4700
4735
|
config?: AxiosRequestConfig
|
|
4701
4736
|
): OperationResponse<Paths.DeleteRelation.Responses.$204>
|
|
4702
4737
|
}
|
|
4738
|
+
['/v1/entity:export']: {
|
|
4739
|
+
/**
|
|
4740
|
+
* exportEntities - exportEntities
|
|
4741
|
+
*
|
|
4742
|
+
* create export file of entities
|
|
4743
|
+
*/
|
|
4744
|
+
'post'(
|
|
4745
|
+
parameters?: Parameters<Paths.ExportEntities.QueryParameters> | null,
|
|
4746
|
+
data?: Paths.ExportEntities.RequestBody,
|
|
4747
|
+
config?: AxiosRequestConfig
|
|
4748
|
+
): OperationResponse<Paths.ExportEntities.Responses.$201>
|
|
4749
|
+
}
|
|
4703
4750
|
}
|
|
4704
4751
|
|
|
4705
4752
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -14,9 +14,17 @@
|
|
|
14
14
|
"name": "Entities",
|
|
15
15
|
"description": "CRUD Access for Entities"
|
|
16
16
|
},
|
|
17
|
+
{
|
|
18
|
+
"name": "Relations",
|
|
19
|
+
"description": "Entity Relationships"
|
|
20
|
+
},
|
|
17
21
|
{
|
|
18
22
|
"name": "Activity",
|
|
19
23
|
"description": "Entity Events"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Export",
|
|
27
|
+
"description": "Export and Import entities via files"
|
|
20
28
|
}
|
|
21
29
|
],
|
|
22
30
|
"security": [
|
|
@@ -1240,6 +1248,40 @@
|
|
|
1240
1248
|
}
|
|
1241
1249
|
}
|
|
1242
1250
|
}
|
|
1251
|
+
},
|
|
1252
|
+
"/v1/entity:export": {
|
|
1253
|
+
"post": {
|
|
1254
|
+
"operationId": "exportEntities",
|
|
1255
|
+
"summary": "exportEntities",
|
|
1256
|
+
"description": "create export file of entities",
|
|
1257
|
+
"tags": [
|
|
1258
|
+
"Export"
|
|
1259
|
+
],
|
|
1260
|
+
"parameters": [
|
|
1261
|
+
{
|
|
1262
|
+
"in": "query",
|
|
1263
|
+
"name": "job_id",
|
|
1264
|
+
"description": "Export Job Id to get the result",
|
|
1265
|
+
"schema": {
|
|
1266
|
+
"$ref": "#/components/schemas/ExportJobId"
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
],
|
|
1270
|
+
"requestBody": {
|
|
1271
|
+
"content": {
|
|
1272
|
+
"application/json": {
|
|
1273
|
+
"schema": {
|
|
1274
|
+
"$ref": "#/components/schemas/EntitySearchParams"
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"responses": {
|
|
1280
|
+
"201": {
|
|
1281
|
+
"description": "created export url and download url"
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1243
1285
|
}
|
|
1244
1286
|
},
|
|
1245
1287
|
"components": {
|
|
@@ -1258,6 +1300,10 @@
|
|
|
1258
1300
|
}
|
|
1259
1301
|
},
|
|
1260
1302
|
"schemas": {
|
|
1303
|
+
"ExportJobId": {
|
|
1304
|
+
"description": "Export Job Id to get the result",
|
|
1305
|
+
"type": "string"
|
|
1306
|
+
},
|
|
1261
1307
|
"SchemaId": {
|
|
1262
1308
|
"description": "Generated uuid for schema",
|
|
1263
1309
|
"type": "string",
|
|
@@ -1328,6 +1374,9 @@
|
|
|
1328
1374
|
"edit_view": {
|
|
1329
1375
|
"$ref": "#/components/schemas/EntityViewConfig"
|
|
1330
1376
|
},
|
|
1377
|
+
"single_view": {
|
|
1378
|
+
"$ref": "#/components/schemas/EntityViewConfig"
|
|
1379
|
+
},
|
|
1331
1380
|
"list_item": {
|
|
1332
1381
|
"type": "object",
|
|
1333
1382
|
"properties": {
|
|
@@ -2592,7 +2641,7 @@
|
|
|
2592
2641
|
]
|
|
2593
2642
|
},
|
|
2594
2643
|
"SummaryAttribute": {
|
|
2595
|
-
"description": "Represents an expanded version of an attribute to be displayed in the list item summary.\nThis configuration can be used in the following way:\n```js\n{\n \"label\": \"Price components\"\n \"value\": \"{{item.prices.length}} price components\"\n \"show_as_tag\": true\n \"render_condition\": \"is_composite_price =
|
|
2644
|
+
"description": "Represents an expanded version of an attribute to be displayed in the list item summary.\nThis configuration can be used in the following way:\n```js\n{\n \"label\": \"Price components\"\n \"value\": \"{{item.prices.length}} price components\"\n \"show_as_tag\": true\n \"render_condition\": \"is_composite_price = \"true\"\"\n}\n```\nThe value field supports handlebar expressions from which you can pick any field from the entity state.\n",
|
|
2596
2645
|
"type": "object",
|
|
2597
2646
|
"properties": {
|
|
2598
2647
|
"label": {
|
|
@@ -3311,6 +3360,9 @@
|
|
|
3311
3360
|
"type": "string",
|
|
3312
3361
|
"example": "123"
|
|
3313
3362
|
},
|
|
3363
|
+
"activity_id": {
|
|
3364
|
+
"$ref": "#/components/schemas/ActivityId"
|
|
3365
|
+
},
|
|
3314
3366
|
"operation": {
|
|
3315
3367
|
"type": "string",
|
|
3316
3368
|
"enum": [
|
|
@@ -4030,6 +4082,9 @@
|
|
|
4030
4082
|
}
|
|
4031
4083
|
},
|
|
4032
4084
|
"servers": [
|
|
4085
|
+
{
|
|
4086
|
+
"url": "https://entity.sls.epilot.io"
|
|
4087
|
+
},
|
|
4033
4088
|
{
|
|
4034
4089
|
"url": "https://entity.sls.epilot.io"
|
|
4035
4090
|
}
|