@epilot/erp-integration-client 0.1.0 → 0.2.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 +11 -0
- package/dist/openapi.d.ts +41 -0
- package/dist/openapi.json +55 -3
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={187:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(466));t.default=n.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":{}}}},"components":{},"servers":[{"url":"https://erp-integration-api.sls.epilot.io"}]}')}},t={},r=function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}(187),o=exports;for(var n in r)o[n]=r[n];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={187:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(466));t.default=n.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":{"content":{"application/json":{}}},"responses":{}}}},"components":{},"servers":[{"url":"https://erp-integration-api.sls.epilot.io"}]}')}},t={},r=function r(o){var n=t[o];if(void 0!==n)return n.exports;var s=t[o]={exports:{}};return e[o].call(s.exports,s,s.exports,r),s.exports}(187),o=exports;for(var n in r)o[n]=r[n];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -30,6 +30,25 @@ declare namespace Paths {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
namespace TriggerErp {
|
|
34
|
+
export interface RequestBody {
|
|
35
|
+
/**
|
|
36
|
+
* The Webhook that relates to this service action.
|
|
37
|
+
*/
|
|
38
|
+
webhookId: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Responses {
|
|
41
|
+
export interface $200 {
|
|
42
|
+
message?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface $400 {
|
|
45
|
+
}
|
|
46
|
+
export interface $401 {
|
|
47
|
+
}
|
|
48
|
+
export interface $500 {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
33
52
|
}
|
|
34
53
|
|
|
35
54
|
|
|
@@ -44,6 +63,16 @@ export interface OperationMethods {
|
|
|
44
63
|
data?: Paths.AcknowledgeTracking.RequestBody,
|
|
45
64
|
config?: AxiosRequestConfig
|
|
46
65
|
): OperationResponse<Paths.AcknowledgeTracking.Responses.$200>
|
|
66
|
+
/**
|
|
67
|
+
* triggerErp - Trigger ERP integration
|
|
68
|
+
*
|
|
69
|
+
* Triggers the ERP integration process
|
|
70
|
+
*/
|
|
71
|
+
'triggerErp'(
|
|
72
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
73
|
+
data?: Paths.TriggerErp.RequestBody,
|
|
74
|
+
config?: AxiosRequestConfig
|
|
75
|
+
): OperationResponse<Paths.TriggerErp.Responses.$200>
|
|
47
76
|
}
|
|
48
77
|
|
|
49
78
|
export interface PathsDictionary {
|
|
@@ -59,6 +88,18 @@ export interface PathsDictionary {
|
|
|
59
88
|
config?: AxiosRequestConfig
|
|
60
89
|
): OperationResponse<Paths.AcknowledgeTracking.Responses.$200>
|
|
61
90
|
}
|
|
91
|
+
['/v1/erp/trigger']: {
|
|
92
|
+
/**
|
|
93
|
+
* triggerErp - Trigger ERP integration
|
|
94
|
+
*
|
|
95
|
+
* Triggers the ERP integration process
|
|
96
|
+
*/
|
|
97
|
+
'post'(
|
|
98
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
99
|
+
data?: Paths.TriggerErp.RequestBody,
|
|
100
|
+
config?: AxiosRequestConfig
|
|
101
|
+
): OperationResponse<Paths.TriggerErp.Responses.$200>
|
|
102
|
+
}
|
|
62
103
|
}
|
|
63
104
|
|
|
64
105
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
package/dist/openapi.json
CHANGED
|
@@ -72,6 +72,61 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
},
|
|
76
|
+
"/v1/erp/trigger": {
|
|
77
|
+
"post": {
|
|
78
|
+
"operationId": "triggerErp",
|
|
79
|
+
"summary": "Trigger ERP integration",
|
|
80
|
+
"description": "Triggers the ERP integration process",
|
|
81
|
+
"tags": [
|
|
82
|
+
"erp",
|
|
83
|
+
"trigger"
|
|
84
|
+
],
|
|
85
|
+
"requestBody": {
|
|
86
|
+
"content": {
|
|
87
|
+
"application/json": {
|
|
88
|
+
"schema": {
|
|
89
|
+
"type": "object",
|
|
90
|
+
"required": [
|
|
91
|
+
"webhookId"
|
|
92
|
+
],
|
|
93
|
+
"properties": {
|
|
94
|
+
"webhookId": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "The Webhook that relates to this service action."
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"responses": {
|
|
104
|
+
"200": {
|
|
105
|
+
"description": "Success - if the ERP Toolkit was triggered successfully",
|
|
106
|
+
"content": {
|
|
107
|
+
"application/json": {
|
|
108
|
+
"schema": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"message": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"400": {
|
|
120
|
+
"description": "Bad request - missing webhookId"
|
|
121
|
+
},
|
|
122
|
+
"401": {
|
|
123
|
+
"description": "Unauthorized - invalid or missing token"
|
|
124
|
+
},
|
|
125
|
+
"500": {
|
|
126
|
+
"description": "Server error processing the request"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
75
130
|
}
|
|
76
131
|
},
|
|
77
132
|
"components": {
|
|
@@ -91,9 +146,6 @@
|
|
|
91
146
|
}
|
|
92
147
|
},
|
|
93
148
|
"servers": [
|
|
94
|
-
{
|
|
95
|
-
"url": "https://erp-integration-api.sls.epilot.io"
|
|
96
|
-
},
|
|
97
149
|
{
|
|
98
150
|
"url": "https://erp-integration-api.sls.epilot.io"
|
|
99
151
|
}
|