@epilot/erp-integration-client 0.20.2 → 0.23.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 +0 -24
- package/dist/openapi.d.ts +6 -118
- package/dist/openapi.json +13 -201
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
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}/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":{}}},"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})})();
|
|
@@ -427,25 +427,6 @@
|
|
|
427
427
|
"responses": {}
|
|
428
428
|
}
|
|
429
429
|
},
|
|
430
|
-
"/v1/integrations/{integrationId}/monitoring/timeseries": {
|
|
431
|
-
"post": {
|
|
432
|
-
"operationId": "getMonitoringTimeSeries",
|
|
433
|
-
"parameters": [
|
|
434
|
-
{
|
|
435
|
-
"name": "integrationId",
|
|
436
|
-
"in": "path",
|
|
437
|
-
"required": true
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
"requestBody": {
|
|
441
|
-
"required": true,
|
|
442
|
-
"content": {
|
|
443
|
-
"application/json": {}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"responses": {}
|
|
447
|
-
}
|
|
448
|
-
},
|
|
449
430
|
"/v1/integrations/{integrationId}/outbound-status": {
|
|
450
431
|
"get": {
|
|
451
432
|
"operationId": "getOutboundStatus",
|
|
@@ -530,11 +511,6 @@
|
|
|
530
511
|
"application/json": {}
|
|
531
512
|
}
|
|
532
513
|
},
|
|
533
|
-
"GetMonitoringTimeSeriesResponse": {
|
|
534
|
-
"content": {
|
|
535
|
-
"application/json": {}
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
514
|
"QueryAccessLogsResponse": {
|
|
539
515
|
"content": {
|
|
540
516
|
"application/json": {}
|
package/dist/openapi.d.ts
CHANGED
|
@@ -18,31 +18,13 @@ declare namespace Components {
|
|
|
18
18
|
*/
|
|
19
19
|
event_id: string;
|
|
20
20
|
/**
|
|
21
|
-
* Processing status for the event (skipped indicates duplicate deduplication_id
|
|
21
|
+
* Processing status for the event (skipped indicates duplicate deduplication_id)
|
|
22
22
|
*/
|
|
23
|
-
status: "success" | "error" | "skipped"
|
|
23
|
+
status: "success" | "error" | "skipped";
|
|
24
24
|
message?: string;
|
|
25
25
|
}[];
|
|
26
26
|
}
|
|
27
27
|
export type GetMonitoringStatsResponse = Schemas.MonitoringStats;
|
|
28
|
-
export interface GetMonitoringTimeSeriesResponse {
|
|
29
|
-
/**
|
|
30
|
-
* The time bucket interval used for aggregation
|
|
31
|
-
*/
|
|
32
|
-
interval: "5m" | "10m" | "30m" | "1h" | "3h" | "1d";
|
|
33
|
-
/**
|
|
34
|
-
* Start date of the time series
|
|
35
|
-
*/
|
|
36
|
-
from_date: string; // date-time
|
|
37
|
-
/**
|
|
38
|
-
* End date of the time series
|
|
39
|
-
*/
|
|
40
|
-
to_date: string; // date-time
|
|
41
|
-
/**
|
|
42
|
-
* List of time-series buckets with event counts
|
|
43
|
-
*/
|
|
44
|
-
buckets: Schemas.TimeSeriesBucket[];
|
|
45
|
-
}
|
|
46
28
|
export type InternalServerError = Schemas.ErrorResponseBase;
|
|
47
29
|
export type NotFound = Schemas.ErrorResponseBase;
|
|
48
30
|
export interface QueryAccessLogsResponse {
|
|
@@ -496,32 +478,6 @@ declare namespace Components {
|
|
|
496
478
|
*/
|
|
497
479
|
outbound_group_by?: ("event_name" | "status" | "webhook_config_id" | "date")[];
|
|
498
480
|
}
|
|
499
|
-
export interface GetMonitoringTimeSeriesRequest {
|
|
500
|
-
/**
|
|
501
|
-
* Start date for the time series (inclusive)
|
|
502
|
-
* example:
|
|
503
|
-
* 2025-01-01T00:00:00Z
|
|
504
|
-
*/
|
|
505
|
-
from_date: string; // date-time
|
|
506
|
-
/**
|
|
507
|
-
* End date for the time series (inclusive). Defaults to current time if not specified.
|
|
508
|
-
* example:
|
|
509
|
-
* 2025-01-31T23:59:59Z
|
|
510
|
-
*/
|
|
511
|
-
to_date?: string; // date-time
|
|
512
|
-
/**
|
|
513
|
-
* The time bucket interval for aggregation
|
|
514
|
-
* example:
|
|
515
|
-
* 1h
|
|
516
|
-
*/
|
|
517
|
-
interval: "5m" | "10m" | "30m" | "1h" | "3h" | "1d";
|
|
518
|
-
/**
|
|
519
|
-
* Filter by event direction. Defaults to both.
|
|
520
|
-
* example:
|
|
521
|
-
* both
|
|
522
|
-
*/
|
|
523
|
-
direction?: "inbound" | "outbound" | "both";
|
|
524
|
-
}
|
|
525
481
|
/**
|
|
526
482
|
* Configuration for inbound use cases (ERP to epilot)
|
|
527
483
|
*/
|
|
@@ -966,7 +922,7 @@ declare namespace Components {
|
|
|
966
922
|
};
|
|
967
923
|
};
|
|
968
924
|
/**
|
|
969
|
-
* Meter reading attributes
|
|
925
|
+
* Meter reading attributes (external_id, timestamp, source, value, etc.)
|
|
970
926
|
*/
|
|
971
927
|
attributes: {
|
|
972
928
|
[name: string]: any;
|
|
@@ -1821,31 +1777,6 @@ declare namespace Components {
|
|
|
1821
1777
|
*/
|
|
1822
1778
|
overwrite?: boolean;
|
|
1823
1779
|
}
|
|
1824
|
-
export interface TimeSeriesBucket {
|
|
1825
|
-
/**
|
|
1826
|
-
* The start timestamp of the bucket
|
|
1827
|
-
*/
|
|
1828
|
-
timestamp: string; // date-time
|
|
1829
|
-
/**
|
|
1830
|
-
* Inbound event counts for this bucket. Null when direction is outbound.
|
|
1831
|
-
*/
|
|
1832
|
-
inbound?: {
|
|
1833
|
-
success_count?: number;
|
|
1834
|
-
error_count?: number;
|
|
1835
|
-
warning_count?: number;
|
|
1836
|
-
skipped_count?: number;
|
|
1837
|
-
total_count?: number;
|
|
1838
|
-
} | null;
|
|
1839
|
-
/**
|
|
1840
|
-
* Outbound event counts for this bucket. Null when direction is inbound.
|
|
1841
|
-
*/
|
|
1842
|
-
outbound?: {
|
|
1843
|
-
success_count?: number;
|
|
1844
|
-
error_count?: number;
|
|
1845
|
-
pending_count?: number;
|
|
1846
|
-
total_count?: number;
|
|
1847
|
-
} | null;
|
|
1848
|
-
}
|
|
1849
1780
|
export interface TriggerErpActionRequest {
|
|
1850
1781
|
/**
|
|
1851
1782
|
* Unique identifier of the current automation execution
|
|
@@ -2261,22 +2192,6 @@ declare namespace Paths {
|
|
|
2261
2192
|
export type $500 = Components.Responses.InternalServerError;
|
|
2262
2193
|
}
|
|
2263
2194
|
}
|
|
2264
|
-
namespace GetMonitoringTimeSeries {
|
|
2265
|
-
namespace Parameters {
|
|
2266
|
-
export type IntegrationId = string; // uuid
|
|
2267
|
-
}
|
|
2268
|
-
export interface PathParameters {
|
|
2269
|
-
integrationId: Parameters.IntegrationId /* uuid */;
|
|
2270
|
-
}
|
|
2271
|
-
export type RequestBody = Components.Schemas.GetMonitoringTimeSeriesRequest;
|
|
2272
|
-
namespace Responses {
|
|
2273
|
-
export type $200 = Components.Responses.GetMonitoringTimeSeriesResponse;
|
|
2274
|
-
export type $400 = Components.Responses.BadRequest;
|
|
2275
|
-
export type $401 = Components.Responses.Unauthorized;
|
|
2276
|
-
export type $404 = Components.Responses.NotFound;
|
|
2277
|
-
export type $500 = Components.Responses.InternalServerError;
|
|
2278
|
-
}
|
|
2279
|
-
}
|
|
2280
2195
|
namespace GetOutboundStatus {
|
|
2281
2196
|
namespace Parameters {
|
|
2282
2197
|
export type IntegrationId = string; // uuid
|
|
@@ -2400,6 +2315,7 @@ declare namespace Paths {
|
|
|
2400
2315
|
export type $200 = Components.Responses.ERPUpdatesResponse;
|
|
2401
2316
|
export type $400 = Components.Responses.BadRequest;
|
|
2402
2317
|
export type $401 = Components.Responses.Unauthorized;
|
|
2318
|
+
export type $422 = Components.Responses.ERPUpdatesResponse;
|
|
2403
2319
|
export type $500 = Components.Responses.InternalServerError;
|
|
2404
2320
|
}
|
|
2405
2321
|
}
|
|
@@ -2409,6 +2325,7 @@ declare namespace Paths {
|
|
|
2409
2325
|
export type $200 = Components.Responses.ERPUpdatesResponse;
|
|
2410
2326
|
export type $400 = Components.Responses.BadRequest;
|
|
2411
2327
|
export type $401 = Components.Responses.Unauthorized;
|
|
2328
|
+
export type $422 = Components.Responses.ERPUpdatesResponse;
|
|
2412
2329
|
export type $500 = Components.Responses.InternalServerError;
|
|
2413
2330
|
}
|
|
2414
2331
|
}
|
|
@@ -2418,6 +2335,7 @@ declare namespace Paths {
|
|
|
2418
2335
|
export type $200 = Components.Responses.ERPUpdatesResponse;
|
|
2419
2336
|
export type $400 = Components.Responses.BadRequest;
|
|
2420
2337
|
export type $401 = Components.Responses.Unauthorized;
|
|
2338
|
+
export type $422 = Components.Responses.ERPUpdatesResponse;
|
|
2421
2339
|
export type $500 = Components.Responses.InternalServerError;
|
|
2422
2340
|
}
|
|
2423
2341
|
}
|
|
@@ -2944,19 +2862,6 @@ export interface OperationMethods {
|
|
|
2944
2862
|
data?: Paths.GetMonitoringStats.RequestBody,
|
|
2945
2863
|
config?: AxiosRequestConfig
|
|
2946
2864
|
): OperationResponse<Paths.GetMonitoringStats.Responses.$200>
|
|
2947
|
-
/**
|
|
2948
|
-
* getMonitoringTimeSeries - getMonitoringTimeSeries
|
|
2949
|
-
*
|
|
2950
|
-
* Get time-series aggregated event counts for monitoring charts.
|
|
2951
|
-
* Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
|
|
2952
|
-
* Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
|
|
2953
|
-
*
|
|
2954
|
-
*/
|
|
2955
|
-
'getMonitoringTimeSeries'(
|
|
2956
|
-
parameters?: Parameters<Paths.GetMonitoringTimeSeries.PathParameters> | null,
|
|
2957
|
-
data?: Paths.GetMonitoringTimeSeries.RequestBody,
|
|
2958
|
-
config?: AxiosRequestConfig
|
|
2959
|
-
): OperationResponse<Paths.GetMonitoringTimeSeries.Responses.$200>
|
|
2960
2865
|
/**
|
|
2961
2866
|
* getOutboundStatus - getOutboundStatus
|
|
2962
2867
|
*
|
|
@@ -3362,21 +3267,6 @@ export interface PathsDictionary {
|
|
|
3362
3267
|
config?: AxiosRequestConfig
|
|
3363
3268
|
): OperationResponse<Paths.GetMonitoringStats.Responses.$200>
|
|
3364
3269
|
}
|
|
3365
|
-
['/v1/integrations/{integrationId}/monitoring/timeseries']: {
|
|
3366
|
-
/**
|
|
3367
|
-
* getMonitoringTimeSeries - getMonitoringTimeSeries
|
|
3368
|
-
*
|
|
3369
|
-
* Get time-series aggregated event counts for monitoring charts.
|
|
3370
|
-
* Returns pre-bucketed counts at configurable intervals for both inbound and outbound events.
|
|
3371
|
-
* Maximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.
|
|
3372
|
-
*
|
|
3373
|
-
*/
|
|
3374
|
-
'post'(
|
|
3375
|
-
parameters?: Parameters<Paths.GetMonitoringTimeSeries.PathParameters> | null,
|
|
3376
|
-
data?: Paths.GetMonitoringTimeSeries.RequestBody,
|
|
3377
|
-
config?: AxiosRequestConfig
|
|
3378
|
-
): OperationResponse<Paths.GetMonitoringTimeSeries.Responses.$200>
|
|
3379
|
-
}
|
|
3380
3270
|
['/v1/integrations/{integrationId}/outbound-status']: {
|
|
3381
3271
|
/**
|
|
3382
3272
|
* getOutboundStatus - getOutboundStatus
|
|
@@ -3445,7 +3335,6 @@ export type ErpUpdatesEventsV2Request = Components.Schemas.ErpUpdatesEventsV2Req
|
|
|
3445
3335
|
export type ErpUpdatesEventsV3Request = Components.Schemas.ErpUpdatesEventsV3Request;
|
|
3446
3336
|
export type ErrorResponseBase = Components.Schemas.ErrorResponseBase;
|
|
3447
3337
|
export type GetMonitoringStatsRequest = Components.Schemas.GetMonitoringStatsRequest;
|
|
3448
|
-
export type GetMonitoringTimeSeriesRequest = Components.Schemas.GetMonitoringTimeSeriesRequest;
|
|
3449
3338
|
export type InboundIntegrationEventConfiguration = Components.Schemas.InboundIntegrationEventConfiguration;
|
|
3450
3339
|
export type InboundMonitoringEvent = Components.Schemas.InboundMonitoringEvent;
|
|
3451
3340
|
export type InboundUseCase = Components.Schemas.InboundUseCase;
|
|
@@ -3488,7 +3377,6 @@ export type RelationUniqueIdField = Components.Schemas.RelationUniqueIdField;
|
|
|
3488
3377
|
export type RepeatableFieldType = Components.Schemas.RepeatableFieldType;
|
|
3489
3378
|
export type ReplayEventsRequest = Components.Schemas.ReplayEventsRequest;
|
|
3490
3379
|
export type SetIntegrationAppMappingRequest = Components.Schemas.SetIntegrationAppMappingRequest;
|
|
3491
|
-
export type TimeSeriesBucket = Components.Schemas.TimeSeriesBucket;
|
|
3492
3380
|
export type TriggerErpActionRequest = Components.Schemas.TriggerErpActionRequest;
|
|
3493
3381
|
export type TriggerWebhookResp = Components.Schemas.TriggerWebhookResp;
|
|
3494
3382
|
export type UpdateInboundUseCaseRequest = Components.Schemas.UpdateInboundUseCaseRequest;
|
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.32.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": [
|
|
@@ -215,6 +215,9 @@
|
|
|
215
215
|
"401": {
|
|
216
216
|
"$ref": "#/components/responses/Unauthorized"
|
|
217
217
|
},
|
|
218
|
+
"422": {
|
|
219
|
+
"$ref": "#/components/responses/ERPUpdatesResponse"
|
|
220
|
+
},
|
|
218
221
|
"500": {
|
|
219
222
|
"$ref": "#/components/responses/InternalServerError"
|
|
220
223
|
}
|
|
@@ -271,6 +274,9 @@
|
|
|
271
274
|
"401": {
|
|
272
275
|
"$ref": "#/components/responses/Unauthorized"
|
|
273
276
|
},
|
|
277
|
+
"422": {
|
|
278
|
+
"$ref": "#/components/responses/ERPUpdatesResponse"
|
|
279
|
+
},
|
|
274
280
|
"500": {
|
|
275
281
|
"$ref": "#/components/responses/InternalServerError"
|
|
276
282
|
}
|
|
@@ -324,6 +330,9 @@
|
|
|
324
330
|
"401": {
|
|
325
331
|
"$ref": "#/components/responses/Unauthorized"
|
|
326
332
|
},
|
|
333
|
+
"422": {
|
|
334
|
+
"$ref": "#/components/responses/ERPUpdatesResponse"
|
|
335
|
+
},
|
|
327
336
|
"500": {
|
|
328
337
|
"$ref": "#/components/responses/InternalServerError"
|
|
329
338
|
}
|
|
@@ -2056,56 +2065,6 @@
|
|
|
2056
2065
|
}
|
|
2057
2066
|
}
|
|
2058
2067
|
},
|
|
2059
|
-
"/v1/integrations/{integrationId}/monitoring/timeseries": {
|
|
2060
|
-
"post": {
|
|
2061
|
-
"operationId": "getMonitoringTimeSeries",
|
|
2062
|
-
"summary": "getMonitoringTimeSeries",
|
|
2063
|
-
"description": "Get time-series aggregated event counts for monitoring charts.\nReturns pre-bucketed counts at configurable intervals for both inbound and outbound events.\nMaximum of 200 buckets per request. Returns 400 if the time range and interval would exceed this limit.\n",
|
|
2064
|
-
"tags": [
|
|
2065
|
-
"monitoring",
|
|
2066
|
-
"integrations"
|
|
2067
|
-
],
|
|
2068
|
-
"parameters": [
|
|
2069
|
-
{
|
|
2070
|
-
"name": "integrationId",
|
|
2071
|
-
"in": "path",
|
|
2072
|
-
"required": true,
|
|
2073
|
-
"description": "The integration ID",
|
|
2074
|
-
"schema": {
|
|
2075
|
-
"type": "string",
|
|
2076
|
-
"format": "uuid"
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
],
|
|
2080
|
-
"requestBody": {
|
|
2081
|
-
"required": true,
|
|
2082
|
-
"content": {
|
|
2083
|
-
"application/json": {
|
|
2084
|
-
"schema": {
|
|
2085
|
-
"$ref": "#/components/schemas/GetMonitoringTimeSeriesRequest"
|
|
2086
|
-
}
|
|
2087
|
-
}
|
|
2088
|
-
}
|
|
2089
|
-
},
|
|
2090
|
-
"responses": {
|
|
2091
|
-
"200": {
|
|
2092
|
-
"$ref": "#/components/responses/GetMonitoringTimeSeriesResponse"
|
|
2093
|
-
},
|
|
2094
|
-
"400": {
|
|
2095
|
-
"$ref": "#/components/responses/BadRequest"
|
|
2096
|
-
},
|
|
2097
|
-
"401": {
|
|
2098
|
-
"$ref": "#/components/responses/Unauthorized"
|
|
2099
|
-
},
|
|
2100
|
-
"404": {
|
|
2101
|
-
"$ref": "#/components/responses/NotFound"
|
|
2102
|
-
},
|
|
2103
|
-
"500": {
|
|
2104
|
-
"$ref": "#/components/responses/InternalServerError"
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
},
|
|
2109
2068
|
"/v1/integrations/{integrationId}/outbound-status": {
|
|
2110
2069
|
"get": {
|
|
2111
2070
|
"operationId": "getOutboundStatus",
|
|
@@ -3253,7 +3212,7 @@
|
|
|
3253
3212
|
"attributes": {
|
|
3254
3213
|
"type": "object",
|
|
3255
3214
|
"additionalProperties": true,
|
|
3256
|
-
"description": "Meter reading attributes
|
|
3215
|
+
"description": "Meter reading attributes (external_id, timestamp, source, value, etc.)"
|
|
3257
3216
|
}
|
|
3258
3217
|
}
|
|
3259
3218
|
},
|
|
@@ -4531,105 +4490,6 @@
|
|
|
4531
4490
|
}
|
|
4532
4491
|
}
|
|
4533
4492
|
},
|
|
4534
|
-
"GetMonitoringTimeSeriesRequest": {
|
|
4535
|
-
"type": "object",
|
|
4536
|
-
"required": [
|
|
4537
|
-
"from_date",
|
|
4538
|
-
"interval"
|
|
4539
|
-
],
|
|
4540
|
-
"properties": {
|
|
4541
|
-
"from_date": {
|
|
4542
|
-
"type": "string",
|
|
4543
|
-
"format": "date-time",
|
|
4544
|
-
"description": "Start date for the time series (inclusive)",
|
|
4545
|
-
"example": "2025-01-01T00:00:00Z"
|
|
4546
|
-
},
|
|
4547
|
-
"to_date": {
|
|
4548
|
-
"type": "string",
|
|
4549
|
-
"format": "date-time",
|
|
4550
|
-
"description": "End date for the time series (inclusive). Defaults to current time if not specified.",
|
|
4551
|
-
"example": "2025-01-31T23:59:59Z"
|
|
4552
|
-
},
|
|
4553
|
-
"interval": {
|
|
4554
|
-
"type": "string",
|
|
4555
|
-
"enum": [
|
|
4556
|
-
"5m",
|
|
4557
|
-
"10m",
|
|
4558
|
-
"30m",
|
|
4559
|
-
"1h",
|
|
4560
|
-
"3h",
|
|
4561
|
-
"1d"
|
|
4562
|
-
],
|
|
4563
|
-
"description": "The time bucket interval for aggregation",
|
|
4564
|
-
"example": "1h"
|
|
4565
|
-
},
|
|
4566
|
-
"direction": {
|
|
4567
|
-
"type": "string",
|
|
4568
|
-
"enum": [
|
|
4569
|
-
"inbound",
|
|
4570
|
-
"outbound",
|
|
4571
|
-
"both"
|
|
4572
|
-
],
|
|
4573
|
-
"default": "both",
|
|
4574
|
-
"description": "Filter by event direction. Defaults to both.",
|
|
4575
|
-
"example": "both"
|
|
4576
|
-
}
|
|
4577
|
-
}
|
|
4578
|
-
},
|
|
4579
|
-
"TimeSeriesBucket": {
|
|
4580
|
-
"type": "object",
|
|
4581
|
-
"required": [
|
|
4582
|
-
"timestamp"
|
|
4583
|
-
],
|
|
4584
|
-
"properties": {
|
|
4585
|
-
"timestamp": {
|
|
4586
|
-
"type": "string",
|
|
4587
|
-
"format": "date-time",
|
|
4588
|
-
"description": "The start timestamp of the bucket"
|
|
4589
|
-
},
|
|
4590
|
-
"inbound": {
|
|
4591
|
-
"type": "object",
|
|
4592
|
-
"nullable": true,
|
|
4593
|
-
"description": "Inbound event counts for this bucket. Null when direction is outbound.",
|
|
4594
|
-
"properties": {
|
|
4595
|
-
"success_count": {
|
|
4596
|
-
"type": "integer"
|
|
4597
|
-
},
|
|
4598
|
-
"error_count": {
|
|
4599
|
-
"type": "integer"
|
|
4600
|
-
},
|
|
4601
|
-
"warning_count": {
|
|
4602
|
-
"type": "integer"
|
|
4603
|
-
},
|
|
4604
|
-
"skipped_count": {
|
|
4605
|
-
"type": "integer"
|
|
4606
|
-
},
|
|
4607
|
-
"total_count": {
|
|
4608
|
-
"type": "integer"
|
|
4609
|
-
}
|
|
4610
|
-
}
|
|
4611
|
-
},
|
|
4612
|
-
"outbound": {
|
|
4613
|
-
"type": "object",
|
|
4614
|
-
"nullable": true,
|
|
4615
|
-
"description": "Outbound event counts for this bucket. Null when direction is inbound.",
|
|
4616
|
-
"properties": {
|
|
4617
|
-
"success_count": {
|
|
4618
|
-
"type": "integer"
|
|
4619
|
-
},
|
|
4620
|
-
"error_count": {
|
|
4621
|
-
"type": "integer"
|
|
4622
|
-
},
|
|
4623
|
-
"pending_count": {
|
|
4624
|
-
"type": "integer"
|
|
4625
|
-
},
|
|
4626
|
-
"total_count": {
|
|
4627
|
-
"type": "integer"
|
|
4628
|
-
}
|
|
4629
|
-
}
|
|
4630
|
-
}
|
|
4631
|
-
}
|
|
4632
|
-
},
|
|
4633
4493
|
"QueryOutboundMonitoringEventsRequest": {
|
|
4634
4494
|
"type": "object",
|
|
4635
4495
|
"properties": {
|
|
@@ -5070,53 +4930,6 @@
|
|
|
5070
4930
|
}
|
|
5071
4931
|
}
|
|
5072
4932
|
},
|
|
5073
|
-
"GetMonitoringTimeSeriesResponse": {
|
|
5074
|
-
"description": "Time-series aggregated event counts retrieved successfully",
|
|
5075
|
-
"content": {
|
|
5076
|
-
"application/json": {
|
|
5077
|
-
"schema": {
|
|
5078
|
-
"type": "object",
|
|
5079
|
-
"required": [
|
|
5080
|
-
"interval",
|
|
5081
|
-
"from_date",
|
|
5082
|
-
"to_date",
|
|
5083
|
-
"buckets"
|
|
5084
|
-
],
|
|
5085
|
-
"properties": {
|
|
5086
|
-
"interval": {
|
|
5087
|
-
"type": "string",
|
|
5088
|
-
"enum": [
|
|
5089
|
-
"5m",
|
|
5090
|
-
"10m",
|
|
5091
|
-
"30m",
|
|
5092
|
-
"1h",
|
|
5093
|
-
"3h",
|
|
5094
|
-
"1d"
|
|
5095
|
-
],
|
|
5096
|
-
"description": "The time bucket interval used for aggregation"
|
|
5097
|
-
},
|
|
5098
|
-
"from_date": {
|
|
5099
|
-
"type": "string",
|
|
5100
|
-
"format": "date-time",
|
|
5101
|
-
"description": "Start date of the time series"
|
|
5102
|
-
},
|
|
5103
|
-
"to_date": {
|
|
5104
|
-
"type": "string",
|
|
5105
|
-
"format": "date-time",
|
|
5106
|
-
"description": "End date of the time series"
|
|
5107
|
-
},
|
|
5108
|
-
"buckets": {
|
|
5109
|
-
"type": "array",
|
|
5110
|
-
"items": {
|
|
5111
|
-
"$ref": "#/components/schemas/TimeSeriesBucket"
|
|
5112
|
-
},
|
|
5113
|
-
"description": "List of time-series buckets with event counts"
|
|
5114
|
-
}
|
|
5115
|
-
}
|
|
5116
|
-
}
|
|
5117
|
-
}
|
|
5118
|
-
}
|
|
5119
|
-
},
|
|
5120
4933
|
"QueryAccessLogsResponse": {
|
|
5121
4934
|
"description": "Access logs queried successfully",
|
|
5122
4935
|
"content": {
|
|
@@ -5239,10 +5052,9 @@
|
|
|
5239
5052
|
"enum": [
|
|
5240
5053
|
"success",
|
|
5241
5054
|
"error",
|
|
5242
|
-
"skipped"
|
|
5243
|
-
"ignored"
|
|
5055
|
+
"skipped"
|
|
5244
5056
|
],
|
|
5245
|
-
"description": "Processing status for the event (skipped indicates duplicate deduplication_id
|
|
5057
|
+
"description": "Processing status for the event (skipped indicates duplicate deduplication_id)"
|
|
5246
5058
|
},
|
|
5247
5059
|
"message": {
|
|
5248
5060
|
"type": "string"
|