@epilot/entity-mapping-client 0.7.0 → 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/client.d.ts CHANGED
File without changes
package/dist/client.js CHANGED
File without changes
File without changes
@@ -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":""},"servers":[{"url":"https://http://entity-mapping.sls.epilot.io/"}],"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":{}}')}},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})})();
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})})();
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
@@ -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.7.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
- "repsitory": {
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"
@@ -73,5 +73,5 @@
73
73
  "webpack": "^5.18.0",
74
74
  "webpack-cli": "^4.4.0"
75
75
  },
76
- "gitHead": "87e13b737363092db3b30c32df8e0507f7348697"
76
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
77
77
  }
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.