@epilot/entity-mapping-client 0.8.6 → 0.9.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/LICENSE ADDED
@@ -0,0 +1,21 @@
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.
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":""},"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":{}}}}},"/v2/mappings/{id}":{"get":{"operationId":"getMappingConfig","parameters":[{"name":"id","in":"path","required":true}]},"put":{"operationId":"putMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"requestBody":{"content":{"application/json":{}}}}}},"components":{}}')}},t={},r=function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,r),a.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":{}}}}},"/v2/mappings/{id}":{"get":{"operationId":"getMappingConfig","parameters":[{"name":"id","in":"path","required":true}]},"put":{"operationId":"putMappingConfig","parameters":[{"name":"id","in":"path","required":true}],"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 a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,r),a.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
@@ -1,3 +1,3 @@
1
- export type { Client, Components, Paths, PathsDictionary, OperationMethods } from './openapi';
2
1
  export type { OpenAPIClient, OpenAPIClientAxios, Document } from 'openapi-client-axios';
3
2
  export * from './client';
3
+ export * from './openapi';
package/dist/index.js CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
+ __exportStar(require("./openapi"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -178,5 +178,10 @@
178
178
  }
179
179
  }
180
180
  },
181
- "components": {}
182
- }
181
+ "components": {},
182
+ "servers": [
183
+ {
184
+ "url": "https://entity-mapping.sls.epilot.io"
185
+ }
186
+ ]
187
+ }
package/dist/openapi.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  /* eslint-disable */
2
+
2
3
  import type {
3
4
  OpenAPIClient,
4
5
  Parameters,
5
6
  UnknownParamsObject,
6
7
  OperationResponse,
7
8
  AxiosRequestConfig,
8
- } from 'openapi-client-axios';
9
+ } from 'openapi-client-axios';
9
10
 
10
11
  declare namespace Components {
11
12
  namespace Schemas {
@@ -38,7 +39,7 @@ declare namespace Components {
38
39
  /**
39
40
  * Origin of an attribute.
40
41
  */
41
- export type AttributeOrigin = "system_recommendation" | "user_manually";
42
+ export type AttributeOrigin = "system_recommendation" | "user_manually" | "entity_updating_system_recommendation";
42
43
  export interface ConditionNode {
43
44
  source?: string;
44
45
  value?: string | number | {
@@ -1025,3 +1026,44 @@ export interface PathsDictionary {
1025
1026
  }
1026
1027
 
1027
1028
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1029
+
1030
+ export type AppendValueMapper = Components.Schemas.AppendValueMapper;
1031
+ export type AttributeOrigin = Components.Schemas.AttributeOrigin;
1032
+ export type ConditionNode = Components.Schemas.ConditionNode;
1033
+ export type CopyValueMapper = Components.Schemas.CopyValueMapper;
1034
+ export type Entity = Components.Schemas.Entity;
1035
+ export type EntityRef = Components.Schemas.EntityRef;
1036
+ export type ExecuteMappingReq = Components.Schemas.ExecuteMappingReq;
1037
+ export type ExecuteMappingResp = Components.Schemas.ExecuteMappingResp;
1038
+ export type ExecuteRelationsReq = Components.Schemas.ExecuteRelationsReq;
1039
+ export type ExecuteRelationsResp = Components.Schemas.ExecuteRelationsResp;
1040
+ export type JourneyRef = Components.Schemas.JourneyRef;
1041
+ export type Loop_Index_String = Components.Schemas.LoopIndexString;
1042
+ export type MapCondition = Components.Schemas.MapCondition;
1043
+ export type MappingAttribute = Components.Schemas.MappingAttribute;
1044
+ export type MappingAttributeMode = Components.Schemas.MappingAttributeMode;
1045
+ export type MappingAttributeV2 = Components.Schemas.MappingAttributeV2;
1046
+ export type MappingConfig = Components.Schemas.MappingConfig;
1047
+ export type MappingConfigCommonFields = Components.Schemas.MappingConfigCommonFields;
1048
+ export type MappingConfigV2 = Components.Schemas.MappingConfigV2;
1049
+ export type MappingConfigs = Components.Schemas.MappingConfigs;
1050
+ export type MappingConfigsResp = Components.Schemas.MappingConfigsResp;
1051
+ export type MappingFailure = Components.Schemas.MappingFailure;
1052
+ export type MappingHistoryEntry = Components.Schemas.MappingHistoryEntry;
1053
+ export type MappingHistoryResp = Components.Schemas.MappingHistoryResp;
1054
+ export type MappingSource = Components.Schemas.MappingSource;
1055
+ export type MappingSourceProperty = Components.Schemas.MappingSourceProperty;
1056
+ export type MappingSourceTargetType = Components.Schemas.MappingSourceTargetType;
1057
+ export type MappingWarning = Components.Schemas.MappingWarning;
1058
+ export type NewRelationItem = Components.Schemas.NewRelationItem;
1059
+ export type OperationNode = Components.Schemas.OperationNode;
1060
+ export type OperationObjectNode = Components.Schemas.OperationObjectNode;
1061
+ export type Owner = Components.Schemas.Owner;
1062
+ export type PrimitiveJSONValue = Components.Schemas.PrimitiveJSONValue;
1063
+ export type RandomOperation = Components.Schemas.RandomOperation;
1064
+ export type RelationAttribute = Components.Schemas.RelationAttribute;
1065
+ export type RelationItem = Components.Schemas.RelationItem;
1066
+ export type SearchMappingReq = Components.Schemas.SearchMappingReq;
1067
+ export type SetValueMapper = Components.Schemas.SetValueMapper;
1068
+ export type SourceConfig = Components.Schemas.SourceConfig;
1069
+ export type TargetConfig = Components.Schemas.TargetConfig;
package/dist/openapi.json CHANGED
@@ -1181,7 +1181,8 @@
1181
1181
  "description": "Origin of an attribute.",
1182
1182
  "enum": [
1183
1183
  "system_recommendation",
1184
- "user_manually"
1184
+ "user_manually",
1185
+ "entity_updating_system_recommendation"
1185
1186
  ]
1186
1187
  },
1187
1188
  "OperationNode": {
@@ -1602,5 +1603,10 @@
1602
1603
  ]
1603
1604
  }
1604
1605
  }
1605
- }
1606
- }
1606
+ },
1607
+ "servers": [
1608
+ {
1609
+ "url": "https://entity-mapping.sls.epilot.io"
1610
+ }
1611
+ ]
1612
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.8.6",
3
+ "version": "0.9.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",
@@ -25,8 +25,8 @@
25
25
  "test": "jest",
26
26
  "typescript": "tsc",
27
27
  "bundle-definition": "webpack",
28
- "openapi": "node ../../scripts/update-openapi.js /Users/mohannad/epilot/entity-mapping-api/openapi.yml",
29
- "typegen": "echo '/* eslint-disable */' > src/openapi.d.ts && typegen ./src/openapi.json >> src/openapi.d.ts",
28
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml",
29
+ "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
30
  "build": "tsc && npm run bundle-definition",
31
31
  "build:watch": "npm run build && tsc -w",
32
32
  "prepublishOnly": "npm run typegen && npm run build",
@@ -64,8 +64,7 @@
64
64
  "copy-webpack-plugin": "^7.0.0",
65
65
  "jest": "^28.1.3",
66
66
  "json-loader": "^0.5.7",
67
- "openapi-client-axios-typegen": "^7.4.1",
68
- "openapicmd": "^2.1.0",
67
+ "openapicmd": "^2.6.0",
69
68
  "ts-jest": "^28.0.6",
70
69
  "ts-loader": "^8.0.14",
71
70
  "ts-node": "^10.9.1",
@@ -73,5 +72,5 @@
73
72
  "webpack": "^5.18.0",
74
73
  "webpack-cli": "^4.4.0"
75
74
  },
76
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
77
- }
75
+ "gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
76
+ }