@epilot/erp-integration-client 0.5.0 → 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={330:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(466));t.default=r.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/erp/tracking/acknowledgement":{"post":{"operationId":"acknowledgeTracking","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/erp/trigger":{"post":{"operationId":"triggerErp","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/erp/updates/events":{"post":{"operationId":"processErpUpdatesEvents","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/erp/updates/mapping_simulation":{"post":{"operationId":"simulateMapping","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"BadRequest":{"content":{"application/json":{}}},"Unauthorized":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"ERPUpdatesResponse":{"content":{"application/json":{}}},"TriggerWebhookResponse":{"content":{"application/json":{}}}}},"servers":[{"url":"https://erp-integration-api.sls.epilot.io"}]}')}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}(330),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={390:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(o(466));t.default=r.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"paths":{"/v1/erp/tracking/acknowledgement":{"post":{"operationId":"acknowledgeTracking","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/erp/trigger":{"post":{"operationId":"triggerErp","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/erp/updates/events":{"post":{"operationId":"processErpUpdatesEvents","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/erp/updates/mapping_simulation":{"post":{"operationId":"simulateMapping","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"BadRequest":{"content":{"application/json":{}}},"Unauthorized":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"ERPUpdatesResponse":{"content":{"application/json":{}}},"TriggerWebhookResponse":{"content":{"application/json":{}}}}},"servers":[{"url":"https://erp-integration-api.sls.epilot.io"}]}')}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n].call(s.exports,s,s.exports,o),s.exports}(390),n=exports;for(var r in o)n[r]=o[r];o.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
package/dist/openapi.d.ts CHANGED
@@ -246,7 +246,7 @@ declare namespace Paths {
246
246
  /**
247
247
  * Unique identifier mappings for this entity
248
248
  */
249
- uniqueIdentifiers: {
249
+ unique_identifiers: {
250
250
  [name: string]: any;
251
251
  };
252
252
  /**
@@ -280,7 +280,7 @@ declare namespace Paths {
280
280
 
281
281
  export interface OperationMethods {
282
282
  /**
283
- * acknowledgeTracking - Acknowledge receival of ERP tracking record
283
+ * acknowledgeTracking - acknowledgeTracking
284
284
  *
285
285
  * Acknowledges an ERP tracking record by removing it from the tracking table, requires public authentication
286
286
  */
@@ -290,7 +290,7 @@ export interface OperationMethods {
290
290
  config?: AxiosRequestConfig
291
291
  ): OperationResponse<Paths.AcknowledgeTracking.Responses.$200>
292
292
  /**
293
- * triggerErp - Trigger ERP integration
293
+ * triggerErp - triggerErp
294
294
  *
295
295
  * Triggers the ERP integration process
296
296
  */
@@ -300,7 +300,7 @@ export interface OperationMethods {
300
300
  config?: AxiosRequestConfig
301
301
  ): OperationResponse<Paths.TriggerErp.Responses.$200>
302
302
  /**
303
- * processErpUpdatesEvents - Process ERP system updates
303
+ * processErpUpdatesEvents - processErpUpdatesEvents
304
304
  *
305
305
  * Handles updates from ERP systems and tracks them appropriately
306
306
  */
@@ -310,7 +310,7 @@ export interface OperationMethods {
310
310
  config?: AxiosRequestConfig
311
311
  ): OperationResponse<Paths.ProcessErpUpdatesEvents.Responses.$200>
312
312
  /**
313
- * simulateMapping - Simulate ERP mapping transformation
313
+ * simulateMapping - simulateMapping
314
314
  *
315
315
  * Test mapping configuration by transforming a payload using the provided mapping rules without persisting data
316
316
  */
@@ -324,7 +324,7 @@ export interface OperationMethods {
324
324
  export interface PathsDictionary {
325
325
  ['/v1/erp/tracking/acknowledgement']: {
326
326
  /**
327
- * acknowledgeTracking - Acknowledge receival of ERP tracking record
327
+ * acknowledgeTracking - acknowledgeTracking
328
328
  *
329
329
  * Acknowledges an ERP tracking record by removing it from the tracking table, requires public authentication
330
330
  */
@@ -336,7 +336,7 @@ export interface PathsDictionary {
336
336
  }
337
337
  ['/v1/erp/trigger']: {
338
338
  /**
339
- * triggerErp - Trigger ERP integration
339
+ * triggerErp - triggerErp
340
340
  *
341
341
  * Triggers the ERP integration process
342
342
  */
@@ -348,7 +348,7 @@ export interface PathsDictionary {
348
348
  }
349
349
  ['/v1/erp/updates/events']: {
350
350
  /**
351
- * processErpUpdatesEvents - Process ERP system updates
351
+ * processErpUpdatesEvents - processErpUpdatesEvents
352
352
  *
353
353
  * Handles updates from ERP systems and tracks them appropriately
354
354
  */
@@ -360,7 +360,7 @@ export interface PathsDictionary {
360
360
  }
361
361
  ['/v1/erp/updates/mapping_simulation']: {
362
362
  /**
363
- * simulateMapping - Simulate ERP mapping transformation
363
+ * simulateMapping - simulateMapping
364
364
  *
365
365
  * Test mapping configuration by transforming a payload using the provided mapping rules without persisting data
366
366
  */
package/dist/openapi.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "/v1/erp/tracking/acknowledgement": {
25
25
  "post": {
26
26
  "operationId": "acknowledgeTracking",
27
- "summary": "Acknowledge receival of ERP tracking record",
27
+ "summary": "acknowledgeTracking",
28
28
  "description": "Acknowledges an ERP tracking record by removing it from the tracking table, requires public authentication",
29
29
  "tags": [
30
30
  "erp"
@@ -81,7 +81,7 @@
81
81
  "/v1/erp/trigger": {
82
82
  "post": {
83
83
  "operationId": "triggerErp",
84
- "summary": "Trigger ERP integration",
84
+ "summary": "triggerErp",
85
85
  "description": "Triggers the ERP integration process",
86
86
  "tags": [
87
87
  "erp",
@@ -116,7 +116,7 @@
116
116
  "/v1/erp/updates/events": {
117
117
  "post": {
118
118
  "operationId": "processErpUpdatesEvents",
119
- "summary": "Process ERP system updates",
119
+ "summary": "processErpUpdatesEvents",
120
120
  "description": "Handles updates from ERP systems and tracks them appropriately",
121
121
  "tags": [
122
122
  "erp"
@@ -261,7 +261,7 @@
261
261
  "/v1/erp/updates/mapping_simulation": {
262
262
  "post": {
263
263
  "operationId": "simulateMapping",
264
- "summary": "Simulate ERP mapping transformation",
264
+ "summary": "simulateMapping",
265
265
  "description": "Test mapping configuration by transforming a payload using the provided mapping rules without persisting data",
266
266
  "tags": [
267
267
  "erp"
@@ -418,7 +418,7 @@
418
418
  "type": "object",
419
419
  "required": [
420
420
  "entity_slug",
421
- "uniqueIdentifiers",
421
+ "unique_identifiers",
422
422
  "attributes"
423
423
  ],
424
424
  "properties": {
@@ -426,7 +426,7 @@
426
426
  "type": "string",
427
427
  "description": "The entity type slug"
428
428
  },
429
- "uniqueIdentifiers": {
429
+ "unique_identifiers": {
430
430
  "type": "object",
431
431
  "description": "Unique identifier mappings for this entity",
432
432
  "additionalProperties": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/erp-integration-client",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Client library for ePilot ERP Integration API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,18 +22,6 @@
22
22
  "erp",
23
23
  "integration"
24
24
  ],
25
- "scripts": {
26
- "test": "jest",
27
- "typescript": "tsc",
28
- "bundle-definition": "webpack",
29
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/erp-integration.yaml",
30
- "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
31
- "build": "tsc && npm run build:patch && npm run bundle-definition",
32
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
33
- "build:watch": "npm run build && tsc -w",
34
- "prepublishOnly": "npm run typegen && npm run build",
35
- "lint": "pnpm exec eslint src"
36
- },
37
25
  "files": [
38
26
  "*.js",
39
27
  "*.d.ts",
@@ -54,7 +42,7 @@
54
42
  "@dazn/lambda-powertools-correlation-ids": "^1.28.1",
55
43
  "buffer": "^6.0.3",
56
44
  "https-browserify": "^1.0.0",
57
- "openapi-client-axios": "^7.6.0",
45
+ "openapi-client-axios": "^7.8.0",
58
46
  "stream-http": "^3.1.1",
59
47
  "url": "^0.11.0",
60
48
  "util": "^0.12.3"
@@ -72,5 +60,16 @@
72
60
  "typescript": "^4.1.3",
73
61
  "webpack": "^5.18.0",
74
62
  "webpack-cli": "^4.4.0"
63
+ },
64
+ "scripts": {
65
+ "test": "jest",
66
+ "typescript": "tsc",
67
+ "bundle-definition": "webpack",
68
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/erp-integration.yaml",
69
+ "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
70
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
71
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
72
+ "build:watch": "npm run build && tsc -w",
73
+ "lint": "pnpm exec eslint src"
75
74
  }
76
- }
75
+ }