@epilot/entity-mapping-client 0.6.1 → 0.8.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 +6 -6
- package/dist/openapi.d.ts +6 -0
- package/dist/openapi.json +29 -7
- package/package.json +6 -6
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,r){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/mappings":{"post":{"operationId":"storeConfig","parameters":[{"name":"with_id","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/mappings/{id}":{"get":{"operationId":"getConfig","parameters":[{"name":"id","in":"path","required":true}]},"delete":{"operationId":"deleteConfig","parameters":[{"name":"id","in":"path","required":true}]}},"/v1/mappings/{id}/versions":{"get":{"operationId":"getAllVersions","parameters":[{"name":"id","in":"path","required":true}]},"post":{"operationId":"storeNewVersion","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}}},"/v1/mappings/{id}/versions/{version}":{"get":{"operationId":"getConfigVersion","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"path","required":true}]}},"/v1/mappings:execute":{"post":{"operationId":"executeMapping","parameters":[{"name":"preview_mode","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}}}},"/v1/mappings:search":{"post":{"operationId":"searchConfigs","requestBody":{"content":{"application/json":{}}}}},"/v1/mappings/history":{"get":{"operationId":"queryMappingHistory","parameters":[{"in":"query","name":"from","required":false},{"in":"query","name":"to","required":false},{"in":"query","name":"targetEntityId"},{"in":"query","name":"sourceEntityId"}]}},"/v1/relations:execute":{"post":{"operationId":"executeRelations","requestBody":{"content":{"application/json":{}}}}}},"components":{},"servers":[{"url":"https://entity-mapping.sls.epilot.io/"}]}')}},t={},r=function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,r),o.exports}(914),i=exports;for(var n in r)i[n]=r[n];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
"title": "",
|
|
5
5
|
"version": ""
|
|
6
6
|
},
|
|
7
|
-
"servers": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://http://entity-mapping.sls.epilot.io/"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
7
|
"paths": {
|
|
13
8
|
"/v1/mappings": {
|
|
14
9
|
"post": {
|
|
@@ -156,5 +151,10 @@
|
|
|
156
151
|
}
|
|
157
152
|
}
|
|
158
153
|
},
|
|
159
|
-
"components": {}
|
|
154
|
+
"components": {},
|
|
155
|
+
"servers": [
|
|
156
|
+
{
|
|
157
|
+
"url": "https://entity-mapping.sls.epilot.io/"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
160
|
}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -102,6 +102,7 @@ declare namespace Components {
|
|
|
102
102
|
export interface ExecuteMappingResp {
|
|
103
103
|
mapped_entities: Entity[];
|
|
104
104
|
failures?: MappingFailure[];
|
|
105
|
+
warnings?: MappingWarning[];
|
|
105
106
|
}
|
|
106
107
|
/**
|
|
107
108
|
* Build relations between a source entity and one or more target entities, dynamically identified
|
|
@@ -293,6 +294,11 @@ declare namespace Components {
|
|
|
293
294
|
possible_target_types?: MappingSourceTargetType[];
|
|
294
295
|
}
|
|
295
296
|
export type MappingSourceTargetType = "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect";
|
|
297
|
+
export interface MappingWarning {
|
|
298
|
+
explanation: string;
|
|
299
|
+
context?: string;
|
|
300
|
+
id?: string;
|
|
301
|
+
}
|
|
296
302
|
export interface NewRelationItem {
|
|
297
303
|
source_entity_id: string;
|
|
298
304
|
target_entity_id: string;
|
package/dist/openapi.json
CHANGED
|
@@ -16,12 +16,6 @@
|
|
|
16
16
|
"EpilotAuth": []
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
-
"servers": [
|
|
20
|
-
{
|
|
21
|
-
"url": "https://http://entity-mapping.sls.epilot.io/",
|
|
22
|
-
"description": "Production Server"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
19
|
"paths": {
|
|
26
20
|
"/v1/mappings": {
|
|
27
21
|
"post": {
|
|
@@ -682,6 +676,12 @@
|
|
|
682
676
|
"items": {
|
|
683
677
|
"$ref": "#/components/schemas/MappingFailure"
|
|
684
678
|
}
|
|
679
|
+
},
|
|
680
|
+
"warnings": {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {
|
|
683
|
+
"$ref": "#/components/schemas/MappingWarning"
|
|
684
|
+
}
|
|
685
685
|
}
|
|
686
686
|
},
|
|
687
687
|
"required": [
|
|
@@ -708,6 +708,23 @@
|
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
710
|
},
|
|
711
|
+
"MappingWarning": {
|
|
712
|
+
"type": "object",
|
|
713
|
+
"properties": {
|
|
714
|
+
"explanation": {
|
|
715
|
+
"type": "string"
|
|
716
|
+
},
|
|
717
|
+
"context": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
},
|
|
720
|
+
"id": {
|
|
721
|
+
"type": "string"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"required": [
|
|
725
|
+
"explanation"
|
|
726
|
+
]
|
|
727
|
+
},
|
|
711
728
|
"Entity": {
|
|
712
729
|
"type": "object",
|
|
713
730
|
"properties": {
|
|
@@ -1441,5 +1458,10 @@
|
|
|
1441
1458
|
]
|
|
1442
1459
|
}
|
|
1443
1460
|
}
|
|
1444
|
-
}
|
|
1461
|
+
},
|
|
1462
|
+
"servers": [
|
|
1463
|
+
{
|
|
1464
|
+
"url": "https://entity-mapping.sls.epilot.io/"
|
|
1465
|
+
}
|
|
1466
|
+
]
|
|
1445
1467
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/entity-mapping-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "JavaScript client library for the ePilot Entity Mapping API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"author": "ePilot GmbH",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"
|
|
9
|
+
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/epilot-dev/sdk-js.git",
|
|
12
12
|
"directory": "clients/entity-mapping-client"
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
"!*.config.js"
|
|
48
48
|
],
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"axios": "^
|
|
50
|
+
"axios": "^1.6.2"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@dazn/lambda-powertools-correlation-ids": "^1.28.1",
|
|
54
54
|
"buffer": "^6.0.3",
|
|
55
55
|
"https-browserify": "^1.0.0",
|
|
56
|
-
"openapi-client-axios": "^7.1
|
|
56
|
+
"openapi-client-axios": "^7.5.1",
|
|
57
57
|
"stream-http": "^3.1.1",
|
|
58
58
|
"url": "^0.11.0",
|
|
59
59
|
"util": "^0.12.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/jest": "^28.1.3",
|
|
63
|
-
"axios": "^
|
|
63
|
+
"axios": "^1.6.2",
|
|
64
64
|
"copy-webpack-plugin": "^7.0.0",
|
|
65
65
|
"jest": "^28.1.3",
|
|
66
66
|
"json-loader": "^0.5.7",
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
"webpack-cli": "^4.4.0"
|
|
75
75
|
},
|
|
76
76
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
77
|
-
}
|
|
77
|
+
}
|