@epilot/erp-integration-client 0.24.3 → 0.25.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.
@@ -1 +1 @@
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})})();
1
+ (()=>{"use strict";var e={390:function(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}(390),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
@@ -252,15 +252,15 @@ declare namespace Components {
252
252
  */
253
253
  description?: string;
254
254
  /**
255
- * List of access token IDs to associate with this integration
255
+ * List of access token IDs associated with this integration
256
256
  */
257
257
  access_token_ids?: string[];
258
258
  /**
259
- * List of app IDs to associate with this integration
259
+ * List of app IDs associated with this integration
260
260
  */
261
261
  app_ids?: string[];
262
262
  /**
263
- * Configuration defining environment variables needed by this integration
263
+ * Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
264
264
  */
265
265
  environment_config?: EnvironmentFieldConfig[];
266
266
  settings?: /* Settings for the integration */ IntegrationSettings;
@@ -952,6 +952,14 @@ declare namespace Components {
952
952
  * Organization ID
953
953
  */
954
954
  orgId: string;
955
+ /**
956
+ * ISO-8601 timestamp when the integration was created
957
+ */
958
+ created_at: string; // date-time
959
+ /**
960
+ * ISO-8601 timestamp when the integration was last updated
961
+ */
962
+ updated_at: string; // date-time
955
963
  /**
956
964
  * Integration name
957
965
  */
@@ -973,14 +981,6 @@ declare namespace Components {
973
981
  */
974
982
  environment_config?: EnvironmentFieldConfig[];
975
983
  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
984
  }
985
985
  export interface IntegrationAppMapping {
986
986
  /**
@@ -1016,6 +1016,29 @@ declare namespace Components {
1016
1016
  };
1017
1017
  };
1018
1018
  }
1019
+ export interface IntegrationEditableFields {
1020
+ /**
1021
+ * Integration name
1022
+ */
1023
+ name?: string;
1024
+ /**
1025
+ * Optional description of the integration
1026
+ */
1027
+ description?: string;
1028
+ /**
1029
+ * List of access token IDs associated with this integration
1030
+ */
1031
+ access_token_ids?: string[];
1032
+ /**
1033
+ * List of app IDs associated with this integration
1034
+ */
1035
+ app_ids?: string[];
1036
+ /**
1037
+ * Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
1038
+ */
1039
+ environment_config?: EnvironmentFieldConfig[];
1040
+ settings?: /* Settings for the integration */ IntegrationSettings;
1041
+ }
1019
1042
  export interface IntegrationEntity {
1020
1043
  /**
1021
1044
  * Target entity schema (e.g., 'contact', 'contract')
@@ -1181,6 +1204,14 @@ declare namespace Components {
1181
1204
  * Organization ID
1182
1205
  */
1183
1206
  orgId: string;
1207
+ /**
1208
+ * ISO-8601 timestamp when the integration was created
1209
+ */
1210
+ created_at: string; // date-time
1211
+ /**
1212
+ * ISO-8601 timestamp when the integration was last updated
1213
+ */
1214
+ updated_at: string; // date-time
1184
1215
  /**
1185
1216
  * Integration name
1186
1217
  */
@@ -1193,19 +1224,19 @@ declare namespace Components {
1193
1224
  * List of access token IDs associated with this integration
1194
1225
  */
1195
1226
  access_token_ids?: string[];
1196
- settings?: /* Settings for the integration */ IntegrationSettings;
1197
1227
  /**
1198
- * All use cases belonging to this integration
1228
+ * List of app IDs associated with this integration
1199
1229
  */
1200
- use_cases: UseCase[];
1230
+ app_ids?: string[];
1201
1231
  /**
1202
- * ISO-8601 timestamp when the integration was created
1232
+ * Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
1203
1233
  */
1204
- created_at: string; // date-time
1234
+ environment_config?: EnvironmentFieldConfig[];
1235
+ settings?: /* Settings for the integration */ IntegrationSettings;
1205
1236
  /**
1206
- * ISO-8601 timestamp when the integration was last updated
1237
+ * All use cases belonging to this integration
1207
1238
  */
1208
- updated_at: string; // date-time
1239
+ use_cases: UseCase[];
1209
1240
  }
1210
1241
  export interface MappingSimulationRequest {
1211
1242
  mapping_configuration: IntegrationConfigurationV1 | IntegrationConfigurationV2;
@@ -2260,29 +2291,7 @@ declare namespace Components {
2260
2291
  type?: "inbound";
2261
2292
  configuration?: /* Configuration for inbound use cases (ERP to epilot) */ InboundIntegrationEventConfiguration;
2262
2293
  }
2263
- export interface UpdateIntegrationRequest {
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
- }
2294
+ export type UpdateIntegrationRequest = IntegrationEditableFields;
2286
2295
  export interface UpdateOutboundUseCaseRequest {
2287
2296
  /**
2288
2297
  * Use case name
@@ -2332,9 +2341,17 @@ declare namespace Components {
2332
2341
  */
2333
2342
  description?: string;
2334
2343
  /**
2335
- * List of access token IDs to associate with this integration
2344
+ * List of access token IDs associated with this integration
2336
2345
  */
2337
2346
  access_token_ids?: string[];
2347
+ /**
2348
+ * List of app IDs associated with this integration
2349
+ */
2350
+ app_ids?: string[];
2351
+ /**
2352
+ * Configuration defining environment variables needed by this integration. Values are stored in the Environments API.
2353
+ */
2354
+ environment_config?: EnvironmentFieldConfig[];
2338
2355
  settings?: /* Settings for the integration */ IntegrationSettings;
2339
2356
  /**
2340
2357
  * Full list of use cases (declarative). This replaces ALL existing use cases.
@@ -3815,6 +3832,7 @@ export type Integration = Components.Schemas.Integration;
3815
3832
  export type IntegrationAppMapping = Components.Schemas.IntegrationAppMapping;
3816
3833
  export type IntegrationConfigurationV1 = Components.Schemas.IntegrationConfigurationV1;
3817
3834
  export type IntegrationConfigurationV2 = Components.Schemas.IntegrationConfigurationV2;
3835
+ export type IntegrationEditableFields = Components.Schemas.IntegrationEditableFields;
3818
3836
  export type IntegrationEntity = Components.Schemas.IntegrationEntity;
3819
3837
  export type IntegrationEntityField = Components.Schemas.IntegrationEntityField;
3820
3838
  export type IntegrationFieldV1 = Components.Schemas.IntegrationFieldV1;