@epilot/entity-mapping-client 0.9.0 → 0.9.2

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Client library for epilot [Entity API](https://docs.epilot.io/api/entity)
9
9
 
10
- Uses [`openapi-client-axios`](https://github.com/anttiviljami/openapi-client-axios)
10
+ Uses [`openapi-client-axios`](https://github.com/openapistack/openapi-client-axios)
11
11
 
12
12
  ## Installation
13
13
 
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":{},"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})})();
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})})();
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
@@ -15,5 +15,4 @@ 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);
19
18
  //# sourceMappingURL=index.js.map
@@ -19,7 +19,8 @@
19
19
  "content": {
20
20
  "application/json": {}
21
21
  }
22
- }
22
+ },
23
+ "responses": {}
23
24
  }
24
25
  },
25
26
  "/v1/mappings/{id}": {
@@ -31,7 +32,8 @@
31
32
  "in": "path",
32
33
  "required": true
33
34
  }
34
- ]
35
+ ],
36
+ "responses": {}
35
37
  },
36
38
  "delete": {
37
39
  "operationId": "deleteConfig",
@@ -41,7 +43,8 @@
41
43
  "in": "path",
42
44
  "required": true
43
45
  }
44
- ]
46
+ ],
47
+ "responses": {}
45
48
  }
46
49
  },
47
50
  "/v1/mappings/{id}/versions": {
@@ -53,7 +56,8 @@
53
56
  "in": "path",
54
57
  "required": true
55
58
  }
56
- ]
59
+ ],
60
+ "responses": {}
57
61
  },
58
62
  "post": {
59
63
  "operationId": "storeNewVersion",
@@ -68,7 +72,8 @@
68
72
  "content": {
69
73
  "application/json": {}
70
74
  }
71
- }
75
+ },
76
+ "responses": {}
72
77
  }
73
78
  },
74
79
  "/v1/mappings/{id}/versions/{version}": {
@@ -85,7 +90,8 @@
85
90
  "in": "path",
86
91
  "required": true
87
92
  }
88
- ]
93
+ ],
94
+ "responses": {}
89
95
  }
90
96
  },
91
97
  "/v1/mappings:execute": {
@@ -102,7 +108,8 @@
102
108
  "content": {
103
109
  "application/json": {}
104
110
  }
105
- }
111
+ },
112
+ "responses": {}
106
113
  }
107
114
  },
108
115
  "/v1/mappings:search": {
@@ -112,7 +119,8 @@
112
119
  "content": {
113
120
  "application/json": {}
114
121
  }
115
- }
122
+ },
123
+ "responses": {}
116
124
  }
117
125
  },
118
126
  "/v1/mappings/history": {
@@ -137,7 +145,8 @@
137
145
  "in": "query",
138
146
  "name": "sourceEntityId"
139
147
  }
140
- ]
148
+ ],
149
+ "responses": {}
141
150
  }
142
151
  },
143
152
  "/v1/relations:execute": {
@@ -147,7 +156,8 @@
147
156
  "content": {
148
157
  "application/json": {}
149
158
  }
150
- }
159
+ },
160
+ "responses": {}
151
161
  }
152
162
  },
153
163
  "/v2/mappings/{id}": {
@@ -159,7 +169,8 @@
159
169
  "in": "path",
160
170
  "required": true
161
171
  }
162
- ]
172
+ ],
173
+ "responses": {}
163
174
  },
164
175
  "put": {
165
176
  "operationId": "putMappingConfig",
@@ -174,7 +185,8 @@
174
185
  "content": {
175
186
  "application/json": {}
176
187
  }
177
- }
188
+ },
189
+ "responses": {}
178
190
  }
179
191
  }
180
192
  },
@@ -184,4 +196,4 @@
184
196
  "url": "https://entity-mapping.sls.epilot.io"
185
197
  }
186
198
  ]
187
- }
199
+ }
package/dist/openapi.d.ts CHANGED
@@ -338,7 +338,7 @@ declare namespace Components {
338
338
  */
339
339
  raw?: boolean;
340
340
  }
341
- export type MappingSourceTargetType = "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect";
341
+ export type MappingSourceTargetType = "string" | "date" | "datetime" | "boolean" | "number" | "image" | "file" | "address" | "email" | "phone" | "select" | "multiselect" | "payment";
342
342
  export interface MappingWarning {
343
343
  explanation: string;
344
344
  context?: string;
package/dist/openapi.json CHANGED
@@ -1599,14 +1599,18 @@
1599
1599
  "email",
1600
1600
  "phone",
1601
1601
  "select",
1602
- "multiselect"
1602
+ "multiselect",
1603
+ "payment"
1603
1604
  ]
1604
1605
  }
1605
1606
  }
1606
1607
  },
1607
1608
  "servers": [
1609
+ {
1610
+ "url": "https://entity-mapping.sls.epilot.io"
1611
+ },
1608
1612
  {
1609
1613
  "url": "https://entity-mapping.sls.epilot.io"
1610
1614
  }
1611
1615
  ]
1612
- }
1616
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",
@@ -27,7 +27,8 @@
27
27
  "bundle-definition": "webpack",
28
28
  "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml",
29
29
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
30
- "build": "tsc && npm run bundle-definition",
30
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
31
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
31
32
  "build:watch": "npm run build && tsc -w",
32
33
  "prepublishOnly": "npm run typegen && npm run build",
33
34
  "release-alpha": "npm version prerelease --preid alpha",
@@ -72,5 +73,5 @@
72
73
  "webpack": "^5.18.0",
73
74
  "webpack-cli": "^4.4.0"
74
75
  },
75
- "gitHead": "6c12dc4aaf7ddf60ad11c6f596fb478559fa3052"
76
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
76
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.