@epilot/entity-mapping-client 0.5.1 → 0.6.1
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 +9 -2
- package/dist/openapi.d.ts +14 -11
- package/dist/openapi.json +34 -11
- package/package.json +4 -4
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":""},"servers":[{"url":"https://entity-mapping.sls.epilot.io"}],"paths":{"/v1/mappings":{"post":{"operationId":"storeConfig","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":""},"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})})();
|
|
@@ -6,13 +6,20 @@
|
|
|
6
6
|
},
|
|
7
7
|
"servers": [
|
|
8
8
|
{
|
|
9
|
-
"url": "https://entity-mapping.sls.epilot.io"
|
|
9
|
+
"url": "https://http://entity-mapping.sls.epilot.io/"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"paths": {
|
|
13
13
|
"/v1/mappings": {
|
|
14
14
|
"post": {
|
|
15
15
|
"operationId": "storeConfig",
|
|
16
|
+
"parameters": [
|
|
17
|
+
{
|
|
18
|
+
"name": "with_id",
|
|
19
|
+
"in": "query",
|
|
20
|
+
"required": false
|
|
21
|
+
}
|
|
22
|
+
],
|
|
16
23
|
"requestBody": {
|
|
17
24
|
"content": {
|
|
18
25
|
"application/json": {}
|
|
@@ -150,4 +157,4 @@
|
|
|
150
157
|
}
|
|
151
158
|
},
|
|
152
159
|
"components": {}
|
|
153
|
-
}
|
|
160
|
+
}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -67,11 +67,12 @@ declare namespace Components {
|
|
|
67
67
|
[name: string]: any;
|
|
68
68
|
_id?: string;
|
|
69
69
|
_schema?: string;
|
|
70
|
-
_title?: string;
|
|
70
|
+
_title?: string | null;
|
|
71
71
|
_org?: string;
|
|
72
|
-
_tags?: string[];
|
|
73
|
-
_created_at?: string;
|
|
74
|
-
_updated_at?: string;
|
|
72
|
+
_tags?: string[] | null;
|
|
73
|
+
_created_at?: string | null;
|
|
74
|
+
_updated_at?: string | null;
|
|
75
|
+
required?: any;
|
|
75
76
|
}
|
|
76
77
|
export interface EntityRef {
|
|
77
78
|
/**
|
|
@@ -265,7 +266,7 @@ declare namespace Components {
|
|
|
265
266
|
/**
|
|
266
267
|
* Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions
|
|
267
268
|
*/
|
|
268
|
-
locked?: "each" | "first"
|
|
269
|
+
locked?: "each" | "first";
|
|
269
270
|
/**
|
|
270
271
|
* Whether all source mappings flow into a single attribute (e.g. address)
|
|
271
272
|
*/
|
|
@@ -286,10 +287,6 @@ declare namespace Components {
|
|
|
286
287
|
value: string;
|
|
287
288
|
label: string;
|
|
288
289
|
initial_target_value?: string;
|
|
289
|
-
/**
|
|
290
|
-
* Whether the raw value should be used, or whether the value is enriched by a path
|
|
291
|
-
*/
|
|
292
|
-
raw?: boolean;
|
|
293
290
|
/**
|
|
294
291
|
* Data Structure Type of the underlaying output value
|
|
295
292
|
*/
|
|
@@ -627,6 +624,12 @@ declare namespace Paths {
|
|
|
627
624
|
}
|
|
628
625
|
}
|
|
629
626
|
namespace StoreConfig {
|
|
627
|
+
namespace Parameters {
|
|
628
|
+
export type WithId = string;
|
|
629
|
+
}
|
|
630
|
+
export interface QueryParameters {
|
|
631
|
+
with_id?: Parameters.WithId;
|
|
632
|
+
}
|
|
630
633
|
export type RequestBody = Components.Schemas.MappingConfig;
|
|
631
634
|
namespace Responses {
|
|
632
635
|
export type $201 = Components.Schemas.MappingConfig;
|
|
@@ -661,7 +664,7 @@ export interface OperationMethods {
|
|
|
661
664
|
* Store new MappingConfig
|
|
662
665
|
*/
|
|
663
666
|
'storeConfig'(
|
|
664
|
-
parameters?: Parameters<
|
|
667
|
+
parameters?: Parameters<Paths.StoreConfig.QueryParameters> | null,
|
|
665
668
|
data?: Paths.StoreConfig.RequestBody,
|
|
666
669
|
config?: AxiosRequestConfig
|
|
667
670
|
): OperationResponse<Paths.StoreConfig.Responses.$201>
|
|
@@ -765,7 +768,7 @@ export interface PathsDictionary {
|
|
|
765
768
|
* Store new MappingConfig
|
|
766
769
|
*/
|
|
767
770
|
'post'(
|
|
768
|
-
parameters?: Parameters<
|
|
771
|
+
parameters?: Parameters<Paths.StoreConfig.QueryParameters> | null,
|
|
769
772
|
data?: Paths.StoreConfig.RequestBody,
|
|
770
773
|
config?: AxiosRequestConfig
|
|
771
774
|
): OperationResponse<Paths.StoreConfig.Responses.$201>
|
package/dist/openapi.json
CHANGED
|
@@ -16,6 +16,12 @@
|
|
|
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
|
+
],
|
|
19
25
|
"paths": {
|
|
20
26
|
"/v1/mappings": {
|
|
21
27
|
"post": {
|
|
@@ -25,6 +31,17 @@
|
|
|
25
31
|
"tags": [
|
|
26
32
|
"mappings"
|
|
27
33
|
],
|
|
34
|
+
"parameters": [
|
|
35
|
+
{
|
|
36
|
+
"name": "with_id",
|
|
37
|
+
"in": "query",
|
|
38
|
+
"required": false,
|
|
39
|
+
"description": "Whether ids are part of the body or not",
|
|
40
|
+
"schema": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
28
45
|
"requestBody": {
|
|
29
46
|
"description": "Mapping Config to store",
|
|
30
47
|
"content": {
|
|
@@ -701,7 +718,8 @@
|
|
|
701
718
|
"type": "string"
|
|
702
719
|
},
|
|
703
720
|
"_title": {
|
|
704
|
-
"type": "string"
|
|
721
|
+
"type": "string",
|
|
722
|
+
"nullable": true
|
|
705
723
|
},
|
|
706
724
|
"_org": {
|
|
707
725
|
"type": "string"
|
|
@@ -710,14 +728,24 @@
|
|
|
710
728
|
"type": "array",
|
|
711
729
|
"items": {
|
|
712
730
|
"type": "string"
|
|
713
|
-
}
|
|
731
|
+
},
|
|
732
|
+
"nullable": true
|
|
714
733
|
},
|
|
715
734
|
"_created_at": {
|
|
716
|
-
"type": "string"
|
|
735
|
+
"type": "string",
|
|
736
|
+
"nullable": true
|
|
717
737
|
},
|
|
718
738
|
"_updated_at": {
|
|
719
|
-
"type": "string"
|
|
720
|
-
|
|
739
|
+
"type": "string",
|
|
740
|
+
"nullable": true
|
|
741
|
+
},
|
|
742
|
+
"required": [
|
|
743
|
+
"_id",
|
|
744
|
+
"_schema",
|
|
745
|
+
"_org",
|
|
746
|
+
"_created_at",
|
|
747
|
+
"_updated_at"
|
|
748
|
+
]
|
|
721
749
|
},
|
|
722
750
|
"additionalProperties": true
|
|
723
751
|
},
|
|
@@ -1326,8 +1354,7 @@
|
|
|
1326
1354
|
"type": "string",
|
|
1327
1355
|
"enum": [
|
|
1328
1356
|
"each",
|
|
1329
|
-
"first"
|
|
1330
|
-
"system_recommendation"
|
|
1357
|
+
"first"
|
|
1331
1358
|
],
|
|
1332
1359
|
"description": "Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions"
|
|
1333
1360
|
},
|
|
@@ -1383,10 +1410,6 @@
|
|
|
1383
1410
|
"initial_target_value": {
|
|
1384
1411
|
"type": "string"
|
|
1385
1412
|
},
|
|
1386
|
-
"raw": {
|
|
1387
|
-
"type": "boolean",
|
|
1388
|
-
"description": "Whether the raw value should be used, or whether the value is enriched by a path"
|
|
1389
|
-
},
|
|
1390
1413
|
"possible_target_types": {
|
|
1391
1414
|
"type": "array",
|
|
1392
1415
|
"items": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/entity-mapping-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
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",
|
|
@@ -53,7 +53,7 @@
|
|
|
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": "^
|
|
56
|
+
"openapi-client-axios": "^7.1.3",
|
|
57
57
|
"stream-http": "^3.1.1",
|
|
58
58
|
"url": "^0.11.0",
|
|
59
59
|
"util": "^0.12.3"
|
|
@@ -64,7 +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.
|
|
67
|
+
"openapi-client-axios-typegen": "^7.4.1",
|
|
68
68
|
"openapicmd": "^1.16.2",
|
|
69
69
|
"ts-jest": "^28.0.6",
|
|
70
70
|
"ts-loader": "^8.0.14",
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
"webpack-cli": "^4.4.0"
|
|
75
75
|
},
|
|
76
76
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
77
|
-
}
|
|
77
|
+
}
|