@epilot/entity-mapping-client 0.5.0 → 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/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":""},"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":""},"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})})();
package/dist/index.d.ts CHANGED
File without changes
package/dist/index.js CHANGED
File without changes
@@ -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
  /**
@@ -623,6 +624,12 @@ declare namespace Paths {
623
624
  }
624
625
  }
625
626
  namespace StoreConfig {
627
+ namespace Parameters {
628
+ export type WithId = string;
629
+ }
630
+ export interface QueryParameters {
631
+ with_id?: Parameters.WithId;
632
+ }
626
633
  export type RequestBody = Components.Schemas.MappingConfig;
627
634
  namespace Responses {
628
635
  export type $201 = Components.Schemas.MappingConfig;
@@ -657,7 +664,7 @@ export interface OperationMethods {
657
664
  * Store new MappingConfig
658
665
  */
659
666
  'storeConfig'(
660
- parameters?: Parameters<UnknownParamsObject> | null,
667
+ parameters?: Parameters<Paths.StoreConfig.QueryParameters> | null,
661
668
  data?: Paths.StoreConfig.RequestBody,
662
669
  config?: AxiosRequestConfig
663
670
  ): OperationResponse<Paths.StoreConfig.Responses.$201>
@@ -761,7 +768,7 @@ export interface PathsDictionary {
761
768
  * Store new MappingConfig
762
769
  */
763
770
  'post'(
764
- parameters?: Parameters<UnknownParamsObject> | null,
771
+ parameters?: Parameters<Paths.StoreConfig.QueryParameters> | null,
765
772
  data?: Paths.StoreConfig.RequestBody,
766
773
  config?: AxiosRequestConfig
767
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.5.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": "^6.0.0",
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.2.0",
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
+ }