@epilot/entity-mapping-client 0.9.3 → 0.9.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var s=n(t(240));r.default=s.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":{}}},"responses":{}}},"/v1/mappings/{id}":{"get":{"operationId":"getConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/mappings/{id}/versions":{"get":{"operationId":"getAllVersions","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"post":{"operationId":"storeNewVersion","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/mappings/{id}/versions/{version}":{"get":{"operationId":"getConfigVersion","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}},"/v1/mappings:execute":{"post":{"operationId":"executeMapping","parameters":[{"name":"preview_mode","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/mappings:search":{"post":{"operationId":"searchConfigs","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/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"}],"responses":{}}},"/v1/relations:execute":{"post":{"operationId":"executeRelations","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/mappings/{id}":{"get":{"operationId":"getMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{},"servers":[{"url":"https://entity-mapping.sls.epilot.io"}]}')}},r={},t=function t(n){var s=r[n];if(void 0!==s)return s.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}(914),n=exports;for(var s in t)n[s]=t[s];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={466: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":{}}},"responses":{}}},"/v1/mappings/{id}":{"get":{"operationId":"getConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}}},"/v1/mappings/{id}/versions":{"get":{"operationId":"getAllVersions","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"post":{"operationId":"storeNewVersion","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/mappings/{id}/versions/{version}":{"get":{"operationId":"getConfigVersion","parameters":[{"name":"id","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}},"/v1/mappings:execute":{"post":{"operationId":"executeMapping","parameters":[{"name":"preview_mode","in":"query","required":false}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/mappings:search":{"post":{"operationId":"searchConfigs","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/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"}],"responses":{}}},"/v1/relations:execute":{"post":{"operationId":"executeRelations","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/mappings/{id}":{"get":{"operationId":"getMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"responses":{}},"put":{"operationId":"putMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}},"responses":{}}}},"components":{},"servers":[{"url":"https://entity-mapping.sls.epilot.io"}]}')},757:function(e,r,t){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var s=n(t(466));r.default=s.default}},r={},t=function t(n){var s=r[n];if(void 0!==s)return s.exports;var i=r[n]={exports:{}};return e[n].call(i.exports,i,i.exports,t),i.exports}(757),n=exports;for(var s in t)n[s]=t[s];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
package/dist/openapi.d.ts CHANGED
@@ -284,6 +284,10 @@ declare namespace Components {
284
284
  * Data Structure type of source
285
285
  */
286
286
  source_type: string;
287
+ /**
288
+ * A group this source belongs to. Used for grouping sources in the UI
289
+ */
290
+ group?: string;
287
291
  /**
288
292
  * Data Structure Type of the underlaying output value
289
293
  */
@@ -300,6 +304,10 @@ declare namespace Components {
300
304
  * Human readable type of the source
301
305
  */
302
306
  sub_title?: string;
307
+ /**
308
+ * Whether the source (block or attribute) is a repeatable, aka holds a list of values
309
+ */
310
+ repeatable?: boolean;
303
311
  target_settings?: {
304
312
  /**
305
313
  * Describes which actions the user can perform on each target, if specified. If not specified, all actions are allowed
@@ -761,6 +769,7 @@ declare namespace Paths {
761
769
  }
762
770
  }
763
771
 
772
+
764
773
  export interface OperationMethods {
765
774
  /**
766
775
  * storeConfig - storeConfig
@@ -1027,6 +1036,7 @@ export interface PathsDictionary {
1027
1036
 
1028
1037
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1029
1038
 
1039
+
1030
1040
  export type AppendValueMapper = Components.Schemas.AppendValueMapper;
1031
1041
  export type AttributeOrigin = Components.Schemas.AttributeOrigin;
1032
1042
  export type ConditionNode = Components.Schemas.ConditionNode;
package/dist/openapi.json CHANGED
@@ -1471,6 +1471,10 @@
1471
1471
  "type": "string",
1472
1472
  "description": "Data Structure type of source"
1473
1473
  },
1474
+ "group": {
1475
+ "type": "string",
1476
+ "description": "A group this source belongs to. Used for grouping sources in the UI"
1477
+ },
1474
1478
  "possible_target_types": {
1475
1479
  "type": "array",
1476
1480
  "items": {
@@ -1490,6 +1494,10 @@
1490
1494
  "type": "string",
1491
1495
  "description": "Human readable type of the source"
1492
1496
  },
1497
+ "repeatable": {
1498
+ "type": "boolean",
1499
+ "description": "Whether the source (block or attribute) is a repeatable, aka holds a list of values"
1500
+ },
1493
1501
  "target_settings": {
1494
1502
  "type": "object",
1495
1503
  "properties": {
@@ -1607,9 +1615,6 @@
1607
1615
  }
1608
1616
  },
1609
1617
  "servers": [
1610
- {
1611
- "url": "https://entity-mapping.sls.epilot.io"
1612
- },
1613
1618
  {
1614
1619
  "url": "https://entity-mapping.sls.epilot.io"
1615
1620
  }
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
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
+ "private": false,
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "git+https://github.com/epilot-dev/sdk-js.git",
@@ -32,7 +33,7 @@
32
33
  "build:watch": "npm run build && tsc -w",
33
34
  "prepublishOnly": "npm run typegen && npm run build",
34
35
  "release-alpha": "npm version prerelease --preid alpha",
35
- "lint": "../../node_modules/eslint/bin/eslint.js src"
36
+ "lint": "pnpm exec eslint src"
36
37
  },
37
38
  "files": [
38
39
  "*.js",
@@ -54,7 +55,7 @@
54
55
  "@dazn/lambda-powertools-correlation-ids": "^1.28.1",
55
56
  "buffer": "^6.0.3",
56
57
  "https-browserify": "^1.0.0",
57
- "openapi-client-axios": "^7.5.1",
58
+ "openapi-client-axios": "^7.6.0",
58
59
  "stream-http": "^3.1.1",
59
60
  "url": "^0.11.0",
60
61
  "util": "^0.12.3"
@@ -65,7 +66,7 @@
65
66
  "copy-webpack-plugin": "^7.0.0",
66
67
  "jest": "^28.1.3",
67
68
  "json-loader": "^0.5.7",
68
- "openapicmd": "^2.6.0",
69
+ "openapicmd": "^2.7.0",
69
70
  "ts-jest": "^28.0.6",
70
71
  "ts-loader": "^8.0.14",
71
72
  "ts-node": "^10.9.1",
@@ -74,4 +75,4 @@
74
75
  "webpack-cli": "^4.4.0"
75
76
  },
76
77
  "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
77
- }
78
+ }