@epilot/erp-integration-client 0.24.3 → 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/openapi.d.ts +97 -46
- package/dist/openapi.json +552 -591
- package/package.json +1 -1
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
|
/**
|
|
@@ -252,15 +248,15 @@ declare namespace Components {
|
|
|
252
248
|
*/
|
|
253
249
|
description?: string;
|
|
254
250
|
/**
|
|
255
|
-
* List of access token IDs
|
|
251
|
+
* List of access token IDs associated with this integration
|
|
256
252
|
*/
|
|
257
253
|
access_token_ids?: string[];
|
|
258
254
|
/**
|
|
259
|
-
* List of app IDs
|
|
255
|
+
* List of app IDs associated with this integration
|
|
260
256
|
*/
|
|
261
257
|
app_ids?: string[];
|
|
262
258
|
/**
|
|
263
|
-
* Configuration defining environment variables needed by this integration
|
|
259
|
+
* Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
|
|
264
260
|
*/
|
|
265
261
|
environment_config?: EnvironmentFieldConfig[];
|
|
266
262
|
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
@@ -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
|
|
@@ -952,6 +982,14 @@ declare namespace Components {
|
|
|
952
982
|
* Organization ID
|
|
953
983
|
*/
|
|
954
984
|
orgId: string;
|
|
985
|
+
/**
|
|
986
|
+
* ISO-8601 timestamp when the integration was created
|
|
987
|
+
*/
|
|
988
|
+
created_at: string; // date-time
|
|
989
|
+
/**
|
|
990
|
+
* ISO-8601 timestamp when the integration was last updated
|
|
991
|
+
*/
|
|
992
|
+
updated_at: string; // date-time
|
|
955
993
|
/**
|
|
956
994
|
* Integration name
|
|
957
995
|
*/
|
|
@@ -973,14 +1011,6 @@ declare namespace Components {
|
|
|
973
1011
|
*/
|
|
974
1012
|
environment_config?: EnvironmentFieldConfig[];
|
|
975
1013
|
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
976
|
-
/**
|
|
977
|
-
* ISO-8601 timestamp when the integration was created
|
|
978
|
-
*/
|
|
979
|
-
created_at: string; // date-time
|
|
980
|
-
/**
|
|
981
|
-
* ISO-8601 timestamp when the integration was last updated
|
|
982
|
-
*/
|
|
983
|
-
updated_at: string; // date-time
|
|
984
1014
|
}
|
|
985
1015
|
export interface IntegrationAppMapping {
|
|
986
1016
|
/**
|
|
@@ -1016,6 +1046,29 @@ declare namespace Components {
|
|
|
1016
1046
|
};
|
|
1017
1047
|
};
|
|
1018
1048
|
}
|
|
1049
|
+
export interface IntegrationEditableFields {
|
|
1050
|
+
/**
|
|
1051
|
+
* Integration name
|
|
1052
|
+
*/
|
|
1053
|
+
name?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* Optional description of the integration
|
|
1056
|
+
*/
|
|
1057
|
+
description?: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* List of access token IDs associated with this integration
|
|
1060
|
+
*/
|
|
1061
|
+
access_token_ids?: string[];
|
|
1062
|
+
/**
|
|
1063
|
+
* List of app IDs associated with this integration
|
|
1064
|
+
*/
|
|
1065
|
+
app_ids?: string[];
|
|
1066
|
+
/**
|
|
1067
|
+
* Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
|
|
1068
|
+
*/
|
|
1069
|
+
environment_config?: EnvironmentFieldConfig[];
|
|
1070
|
+
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
1071
|
+
}
|
|
1019
1072
|
export interface IntegrationEntity {
|
|
1020
1073
|
/**
|
|
1021
1074
|
* Target entity schema (e.g., 'contact', 'contract')
|
|
@@ -1093,6 +1146,7 @@ declare namespace Components {
|
|
|
1093
1146
|
*
|
|
1094
1147
|
*/
|
|
1095
1148
|
RelationRefsConfig;
|
|
1149
|
+
file_proxy_url?: /* Auto-constructs a file proxy download URL. orgId and integrationId are injected from context. */ FileProxyUrlConfig;
|
|
1096
1150
|
}
|
|
1097
1151
|
export interface IntegrationFieldV1 {
|
|
1098
1152
|
/**
|
|
@@ -1181,6 +1235,14 @@ declare namespace Components {
|
|
|
1181
1235
|
* Organization ID
|
|
1182
1236
|
*/
|
|
1183
1237
|
orgId: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* ISO-8601 timestamp when the integration was created
|
|
1240
|
+
*/
|
|
1241
|
+
created_at: string; // date-time
|
|
1242
|
+
/**
|
|
1243
|
+
* ISO-8601 timestamp when the integration was last updated
|
|
1244
|
+
*/
|
|
1245
|
+
updated_at: string; // date-time
|
|
1184
1246
|
/**
|
|
1185
1247
|
* Integration name
|
|
1186
1248
|
*/
|
|
@@ -1193,19 +1255,19 @@ declare namespace Components {
|
|
|
1193
1255
|
* List of access token IDs associated with this integration
|
|
1194
1256
|
*/
|
|
1195
1257
|
access_token_ids?: string[];
|
|
1196
|
-
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
1197
1258
|
/**
|
|
1198
|
-
*
|
|
1259
|
+
* List of app IDs associated with this integration
|
|
1199
1260
|
*/
|
|
1200
|
-
|
|
1261
|
+
app_ids?: string[];
|
|
1201
1262
|
/**
|
|
1202
|
-
*
|
|
1263
|
+
* Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
|
|
1203
1264
|
*/
|
|
1204
|
-
|
|
1265
|
+
environment_config?: EnvironmentFieldConfig[];
|
|
1266
|
+
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
1205
1267
|
/**
|
|
1206
|
-
*
|
|
1268
|
+
* All use cases belonging to this integration
|
|
1207
1269
|
*/
|
|
1208
|
-
|
|
1270
|
+
use_cases: UseCase[];
|
|
1209
1271
|
}
|
|
1210
1272
|
export interface MappingSimulationRequest {
|
|
1211
1273
|
mapping_configuration: IntegrationConfigurationV1 | IntegrationConfigurationV2;
|
|
@@ -2260,29 +2322,7 @@ declare namespace Components {
|
|
|
2260
2322
|
type?: "inbound";
|
|
2261
2323
|
configuration?: /* Configuration for inbound use cases (ERP to epilot) */ InboundIntegrationEventConfiguration;
|
|
2262
2324
|
}
|
|
2263
|
-
export
|
|
2264
|
-
/**
|
|
2265
|
-
* Integration name
|
|
2266
|
-
*/
|
|
2267
|
-
name?: string;
|
|
2268
|
-
/**
|
|
2269
|
-
* Optional description of the integration
|
|
2270
|
-
*/
|
|
2271
|
-
description?: string;
|
|
2272
|
-
/**
|
|
2273
|
-
* List of access token IDs to associate with this integration
|
|
2274
|
-
*/
|
|
2275
|
-
access_token_ids?: string[];
|
|
2276
|
-
/**
|
|
2277
|
-
* List of app IDs to associate with this integration
|
|
2278
|
-
*/
|
|
2279
|
-
app_ids?: string[];
|
|
2280
|
-
/**
|
|
2281
|
-
* Configuration defining environment variables needed by this integration
|
|
2282
|
-
*/
|
|
2283
|
-
environment_config?: EnvironmentFieldConfig[];
|
|
2284
|
-
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
2285
|
-
}
|
|
2325
|
+
export type UpdateIntegrationRequest = IntegrationEditableFields;
|
|
2286
2326
|
export interface UpdateOutboundUseCaseRequest {
|
|
2287
2327
|
/**
|
|
2288
2328
|
* Use case name
|
|
@@ -2332,9 +2372,17 @@ declare namespace Components {
|
|
|
2332
2372
|
*/
|
|
2333
2373
|
description?: string;
|
|
2334
2374
|
/**
|
|
2335
|
-
* List of access token IDs
|
|
2375
|
+
* List of access token IDs associated with this integration
|
|
2336
2376
|
*/
|
|
2337
2377
|
access_token_ids?: string[];
|
|
2378
|
+
/**
|
|
2379
|
+
* List of app IDs associated with this integration
|
|
2380
|
+
*/
|
|
2381
|
+
app_ids?: string[];
|
|
2382
|
+
/**
|
|
2383
|
+
* Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
|
|
2384
|
+
*/
|
|
2385
|
+
environment_config?: EnvironmentFieldConfig[];
|
|
2338
2386
|
settings?: /* Settings for the integration */ IntegrationSettings;
|
|
2339
2387
|
/**
|
|
2340
2388
|
* Full list of use cases (declarative). This replaces ALL existing use cases.
|
|
@@ -3802,6 +3850,8 @@ export type FileProxyAuth = Components.Schemas.FileProxyAuth;
|
|
|
3802
3850
|
export type FileProxyParam = Components.Schemas.FileProxyParam;
|
|
3803
3851
|
export type FileProxyResponseConfig = Components.Schemas.FileProxyResponseConfig;
|
|
3804
3852
|
export type FileProxyStep = Components.Schemas.FileProxyStep;
|
|
3853
|
+
export type FileProxyUrlConfig = Components.Schemas.FileProxyUrlConfig;
|
|
3854
|
+
export type FileProxyUrlParam = Components.Schemas.FileProxyUrlParam;
|
|
3805
3855
|
export type FileProxyUseCase = Components.Schemas.FileProxyUseCase;
|
|
3806
3856
|
export type FileProxyUseCaseConfiguration = Components.Schemas.FileProxyUseCaseConfiguration;
|
|
3807
3857
|
export type FileProxyUseCaseHistoryEntry = Components.Schemas.FileProxyUseCaseHistoryEntry;
|
|
@@ -3815,6 +3865,7 @@ export type Integration = Components.Schemas.Integration;
|
|
|
3815
3865
|
export type IntegrationAppMapping = Components.Schemas.IntegrationAppMapping;
|
|
3816
3866
|
export type IntegrationConfigurationV1 = Components.Schemas.IntegrationConfigurationV1;
|
|
3817
3867
|
export type IntegrationConfigurationV2 = Components.Schemas.IntegrationConfigurationV2;
|
|
3868
|
+
export type IntegrationEditableFields = Components.Schemas.IntegrationEditableFields;
|
|
3818
3869
|
export type IntegrationEntity = Components.Schemas.IntegrationEntity;
|
|
3819
3870
|
export type IntegrationEntityField = Components.Schemas.IntegrationEntityField;
|
|
3820
3871
|
export type IntegrationFieldV1 = Components.Schemas.IntegrationFieldV1;
|