@epilot/erp-integration-client 0.25.0 → 0.26.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/.claude/settings.local.json +7 -0
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +37 -4
- package/dist/openapi.json +64 -6
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={330(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(466));t.default=o.default},466(e){e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://erp-integration-api.sls.epilot.io"}],"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":{"deprecated":true,"operationId":"processErpUpdatesEvents","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/erp/updates/events":{"post":{"deprecated":true,"operationId":"processErpUpdatesEventsV2","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v3/erp/updates/events":{"post":{"operationId":"processErpUpdatesEventsV3","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/erp/updates/mapping_simulation":{"post":{"operationId":"simulateMappingV2","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/erp/updates/mapping_simulation":{"post":{"operationId":"simulateMapping","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations":{"get":{"operationId":"listIntegrations","responses":{}},"post":{"operationId":"createIntegration","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}":{"get":{"operationId":"getIntegration","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateIntegration","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteIntegration","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}}},"/v1/integrations/{integrationId}/events":{"post":{"operationId":"queryEvents","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/events/replay":{"post":{"operationId":"replayEvents","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/use-cases":{"get":{"operationId":"listUseCases","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}},"post":{"operationId":"createUseCase","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/use-cases/{useCaseId}":{"get":{"operationId":"getUseCase","parameters":[{"name":"integrationId","in":"path","required":true},{"name":"useCaseId","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateUseCase","parameters":[{"name":"integrationId","in":"path","required":true},{"name":"useCaseId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteUseCase","parameters":[{"name":"integrationId","in":"path","required":true},{"name":"useCaseId","in":"path","required":true}],"responses":{}}},"/v1/integrations/{integrationId}/use-cases/{useCaseId}/history":{"get":{"operationId":"listUseCaseHistory","parameters":[{"name":"integrationId","in":"path","required":true},{"name":"useCaseId","in":"path","required":true},{"name":"cursor","in":"query","required":false}],"responses":{}}},"/v2/integrations":{"get":{"operationId":"listIntegrationsV2","responses":{}},"post":{"operationId":"createIntegrationV2","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/integrations/{integrationId}":{"get":{"operationId":"getIntegrationV2","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateIntegrationV2","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteIntegrationV2","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}}},"/v1/integrations/{integrationId}/app-mapping":{"put":{"operationId":"setIntegrationAppMapping","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteIntegrationAppMapping","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/monitoring/inbound-events":{"post":{"operationId":"queryInboundMonitoringEvents","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/monitoring/stats":{"post":{"operationId":"getMonitoringStats","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/monitoring/timeseries":{"post":{"operationId":"getMonitoringTimeSeries","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/outbound-status":{"get":{"operationId":"getOutboundStatus","parameters":[{"name":"integrationId","in":"path","required":true}],"responses":{}}},"/v1/integrations/{integrationId}/monitoring/access-logs":{"post":{"operationId":"queryAccessLogs","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/integrations/{integrationId}/monitoring/outbound-events":{"post":{"operationId":"queryOutboundMonitoringEvents","parameters":[{"name":"integrationId","in":"path","required":true}],"requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}}},"components":{"responses":{"BadRequest":{"content":{"application/json":{}}},"NotFound":{"content":{"application/json":{}}},"Unauthorized":{"content":{"application/json":{}}},"InternalServerError":{"content":{"application/json":{}}},"QueryInboundMonitoringEventsResponse":{"content":{"application/json":{}}},"GetMonitoringStatsResponse":{"content":{"application/json":{}}},"GetMonitoringTimeSeriesResponse":{"content":{"application/json":{}}},"QueryAccessLogsResponse":{"content":{"application/json":{}}},"QueryOutboundMonitoringEventsResponse":{"content":{"application/json":{}}},"ReplayEventsResponse":{"content":{"application/json":{}}},"ERPUpdatesResponse":{"content":{"application/json":{}}},"TriggerWebhookResponse":{"content":{"application/json":{}}},"QueryEventsResponse":{"content":{"application/json":{}}}}}}')}},t={},n=function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(330),r=exports;for(var o in n)r[o]=n[o];n.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
package/dist/openapi.d.ts
CHANGED
|
@@ -199,10 +199,6 @@ declare namespace Components {
|
|
|
199
199
|
* Maximum age (in minutes) of data before it is considered stale and eligible for refresh
|
|
200
200
|
*/
|
|
201
201
|
freshnessThresholdMinutes?: number;
|
|
202
|
-
/**
|
|
203
|
-
* Minimum interval (in minutes) between consecutive sync operations to prevent excessive API calls
|
|
204
|
-
*/
|
|
205
|
-
minIntervalBetweenSyncsMinutes?: number;
|
|
206
202
|
}
|
|
207
203
|
export interface CreateFileProxyUseCaseRequest {
|
|
208
204
|
/**
|
|
@@ -617,6 +613,40 @@ declare namespace Components {
|
|
|
617
613
|
*/
|
|
618
614
|
response_type: "json" | "binary";
|
|
619
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* Auto-constructs a file proxy download URL. orgId and integrationId are injected from context.
|
|
618
|
+
*/
|
|
619
|
+
export interface FileProxyUrlConfig {
|
|
620
|
+
/**
|
|
621
|
+
* UUID of the file_proxy use case. Maps to useCaseId query parameter.
|
|
622
|
+
*/
|
|
623
|
+
use_case_id: string;
|
|
624
|
+
/**
|
|
625
|
+
* Custom query parameters. Keys become URL param names, values resolved from payload.
|
|
626
|
+
*/
|
|
627
|
+
params?: {
|
|
628
|
+
[name: string]: /* Parameter for file proxy URL. Exactly one of field, constant, or jsonataExpression must be set. */ FileProxyUrlParam;
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Parameter for file proxy URL. Exactly one of field, constant, or jsonataExpression must be set.
|
|
633
|
+
*/
|
|
634
|
+
export type FileProxyUrlParam = /* Parameter for file proxy URL. Exactly one of field, constant, or jsonataExpression must be set. */ {
|
|
635
|
+
/**
|
|
636
|
+
* Source field name or JSONPath expression (if starts with $)
|
|
637
|
+
*/
|
|
638
|
+
field: string;
|
|
639
|
+
} | {
|
|
640
|
+
/**
|
|
641
|
+
* Constant value (any type, stringified for URL)
|
|
642
|
+
*/
|
|
643
|
+
constant: any;
|
|
644
|
+
} | {
|
|
645
|
+
/**
|
|
646
|
+
* JSONata expression for transformation
|
|
647
|
+
*/
|
|
648
|
+
jsonataExpression: string;
|
|
649
|
+
};
|
|
620
650
|
export interface FileProxyUseCase {
|
|
621
651
|
/**
|
|
622
652
|
* Unique identifier for the use case
|
|
@@ -1116,6 +1146,7 @@ declare namespace Components {
|
|
|
1116
1146
|
*
|
|
1117
1147
|
*/
|
|
1118
1148
|
RelationRefsConfig;
|
|
1149
|
+
file_proxy_url?: /* Auto-constructs a file proxy download URL. orgId and integrationId are injected from context. */ FileProxyUrlConfig;
|
|
1119
1150
|
}
|
|
1120
1151
|
export interface IntegrationFieldV1 {
|
|
1121
1152
|
/**
|
|
@@ -3819,6 +3850,8 @@ export type FileProxyAuth = Components.Schemas.FileProxyAuth;
|
|
|
3819
3850
|
export type FileProxyParam = Components.Schemas.FileProxyParam;
|
|
3820
3851
|
export type FileProxyResponseConfig = Components.Schemas.FileProxyResponseConfig;
|
|
3821
3852
|
export type FileProxyStep = Components.Schemas.FileProxyStep;
|
|
3853
|
+
export type FileProxyUrlConfig = Components.Schemas.FileProxyUrlConfig;
|
|
3854
|
+
export type FileProxyUrlParam = Components.Schemas.FileProxyUrlParam;
|
|
3822
3855
|
export type FileProxyUseCase = Components.Schemas.FileProxyUseCase;
|
|
3823
3856
|
export type FileProxyUseCaseConfiguration = Components.Schemas.FileProxyUseCaseConfiguration;
|
|
3824
3857
|
export type FileProxyUseCaseHistoryEntry = Components.Schemas.FileProxyUseCaseHistoryEntry;
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "ERP Integration API",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.41.0",
|
|
6
6
|
"description": "API for integrating with ERP systems, handling tracking acknowledgments, triggering ERP processes, and processing ERP updates."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -2690,11 +2690,6 @@
|
|
|
2690
2690
|
"type": "integer",
|
|
2691
2691
|
"minimum": 1,
|
|
2692
2692
|
"description": "Maximum age (in minutes) of data before it is considered stale and eligible for refresh"
|
|
2693
|
-
},
|
|
2694
|
-
"minIntervalBetweenSyncsMinutes": {
|
|
2695
|
-
"type": "integer",
|
|
2696
|
-
"minimum": 1,
|
|
2697
|
-
"description": "Minimum interval (in minutes) between consecutive sync operations to prevent excessive API calls"
|
|
2698
2693
|
}
|
|
2699
2694
|
}
|
|
2700
2695
|
},
|
|
@@ -3050,6 +3045,69 @@
|
|
|
3050
3045
|
},
|
|
3051
3046
|
"relation_refs": {
|
|
3052
3047
|
"$ref": "#/components/schemas/RelationRefsConfig"
|
|
3048
|
+
},
|
|
3049
|
+
"file_proxy_url": {
|
|
3050
|
+
"$ref": "#/components/schemas/FileProxyUrlConfig"
|
|
3051
|
+
}
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
"FileProxyUrlParam": {
|
|
3055
|
+
"description": "Parameter for file proxy URL. Exactly one of field, constant, or jsonataExpression must be set.",
|
|
3056
|
+
"oneOf": [
|
|
3057
|
+
{
|
|
3058
|
+
"type": "object",
|
|
3059
|
+
"required": [
|
|
3060
|
+
"field"
|
|
3061
|
+
],
|
|
3062
|
+
"properties": {
|
|
3063
|
+
"field": {
|
|
3064
|
+
"type": "string",
|
|
3065
|
+
"description": "Source field name or JSONPath expression (if starts with $)"
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
},
|
|
3069
|
+
{
|
|
3070
|
+
"type": "object",
|
|
3071
|
+
"required": [
|
|
3072
|
+
"constant"
|
|
3073
|
+
],
|
|
3074
|
+
"properties": {
|
|
3075
|
+
"constant": {
|
|
3076
|
+
"description": "Constant value (any type, stringified for URL)"
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
},
|
|
3080
|
+
{
|
|
3081
|
+
"type": "object",
|
|
3082
|
+
"required": [
|
|
3083
|
+
"jsonataExpression"
|
|
3084
|
+
],
|
|
3085
|
+
"properties": {
|
|
3086
|
+
"jsonataExpression": {
|
|
3087
|
+
"type": "string",
|
|
3088
|
+
"description": "JSONata expression for transformation"
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
]
|
|
3093
|
+
},
|
|
3094
|
+
"FileProxyUrlConfig": {
|
|
3095
|
+
"type": "object",
|
|
3096
|
+
"required": [
|
|
3097
|
+
"use_case_id"
|
|
3098
|
+
],
|
|
3099
|
+
"description": "Auto-constructs a file proxy download URL. orgId and integrationId are injected from context.",
|
|
3100
|
+
"properties": {
|
|
3101
|
+
"use_case_id": {
|
|
3102
|
+
"type": "string",
|
|
3103
|
+
"description": "UUID of the file_proxy use case. Maps to useCaseId query parameter."
|
|
3104
|
+
},
|
|
3105
|
+
"params": {
|
|
3106
|
+
"type": "object",
|
|
3107
|
+
"description": "Custom query parameters. Keys become URL param names, values resolved from payload.",
|
|
3108
|
+
"additionalProperties": {
|
|
3109
|
+
"$ref": "#/components/schemas/FileProxyUrlParam"
|
|
3110
|
+
}
|
|
3053
3111
|
}
|
|
3054
3112
|
}
|
|
3055
3113
|
},
|