@epilot/entity-mapping-client 0.5.1 → 0.6.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/definition.js +1 -1
- package/dist/openapi-runtime.json +8 -6
- package/dist/openapi.d.ts +14 -11
- package/dist/openapi.json +28 -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":""},"
|
|
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":{}}')}},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})})();
|
|
@@ -4,15 +4,17 @@
|
|
|
4
4
|
"title": "",
|
|
5
5
|
"version": ""
|
|
6
6
|
},
|
|
7
|
-
"servers": [
|
|
8
|
-
{
|
|
9
|
-
"url": "https://entity-mapping.sls.epilot.io"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
7
|
"paths": {
|
|
13
8
|
"/v1/mappings": {
|
|
14
9
|
"post": {
|
|
15
10
|
"operationId": "storeConfig",
|
|
11
|
+
"parameters": [
|
|
12
|
+
{
|
|
13
|
+
"name": "with_id",
|
|
14
|
+
"in": "query",
|
|
15
|
+
"required": false
|
|
16
|
+
}
|
|
17
|
+
],
|
|
16
18
|
"requestBody": {
|
|
17
19
|
"content": {
|
|
18
20
|
"application/json": {}
|
|
@@ -150,4 +152,4 @@
|
|
|
150
152
|
}
|
|
151
153
|
},
|
|
152
154
|
"components": {}
|
|
153
|
-
}
|
|
155
|
+
}
|
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
|
@@ -25,6 +25,17 @@
|
|
|
25
25
|
"tags": [
|
|
26
26
|
"mappings"
|
|
27
27
|
],
|
|
28
|
+
"parameters": [
|
|
29
|
+
{
|
|
30
|
+
"name": "with_id",
|
|
31
|
+
"in": "query",
|
|
32
|
+
"required": false,
|
|
33
|
+
"description": "Whether ids are part of the body or not",
|
|
34
|
+
"schema": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
],
|
|
28
39
|
"requestBody": {
|
|
29
40
|
"description": "Mapping Config to store",
|
|
30
41
|
"content": {
|
|
@@ -701,7 +712,8 @@
|
|
|
701
712
|
"type": "string"
|
|
702
713
|
},
|
|
703
714
|
"_title": {
|
|
704
|
-
"type": "string"
|
|
715
|
+
"type": "string",
|
|
716
|
+
"nullable": true
|
|
705
717
|
},
|
|
706
718
|
"_org": {
|
|
707
719
|
"type": "string"
|
|
@@ -710,14 +722,24 @@
|
|
|
710
722
|
"type": "array",
|
|
711
723
|
"items": {
|
|
712
724
|
"type": "string"
|
|
713
|
-
}
|
|
725
|
+
},
|
|
726
|
+
"nullable": true
|
|
714
727
|
},
|
|
715
728
|
"_created_at": {
|
|
716
|
-
"type": "string"
|
|
729
|
+
"type": "string",
|
|
730
|
+
"nullable": true
|
|
717
731
|
},
|
|
718
732
|
"_updated_at": {
|
|
719
|
-
"type": "string"
|
|
720
|
-
|
|
733
|
+
"type": "string",
|
|
734
|
+
"nullable": true
|
|
735
|
+
},
|
|
736
|
+
"required": [
|
|
737
|
+
"_id",
|
|
738
|
+
"_schema",
|
|
739
|
+
"_org",
|
|
740
|
+
"_created_at",
|
|
741
|
+
"_updated_at"
|
|
742
|
+
]
|
|
721
743
|
},
|
|
722
744
|
"additionalProperties": true
|
|
723
745
|
},
|
|
@@ -1326,8 +1348,7 @@
|
|
|
1326
1348
|
"type": "string",
|
|
1327
1349
|
"enum": [
|
|
1328
1350
|
"each",
|
|
1329
|
-
"first"
|
|
1330
|
-
"system_recommendation"
|
|
1351
|
+
"first"
|
|
1331
1352
|
],
|
|
1332
1353
|
"description": "Whether its a read-only ui or not. Can be each target, or only the first. Overwrites uiActions"
|
|
1333
1354
|
},
|
|
@@ -1383,10 +1404,6 @@
|
|
|
1383
1404
|
"initial_target_value": {
|
|
1384
1405
|
"type": "string"
|
|
1385
1406
|
},
|
|
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
1407
|
"possible_target_types": {
|
|
1391
1408
|
"type": "array",
|
|
1392
1409
|
"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.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",
|
|
@@ -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
|
+
}
|