@epilot/integration-toolkit-client 1.0.1 → 1.0.3

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/openapi.d.ts CHANGED
@@ -1359,6 +1359,10 @@ declare namespace Components {
1359
1359
  * Filter by use case type
1360
1360
  */
1361
1361
  use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
1362
+ /**
1363
+ * Field to group the bucket breakdown by
1364
+ */
1365
+ group_by?: "use_case_type" | "use_case";
1362
1366
  }
1363
1367
  /**
1364
1368
  * Configuration for inbound use cases (ERP to epilot)
@@ -3386,6 +3390,36 @@ declare namespace Components {
3386
3390
  */
3387
3391
  overwrite?: boolean;
3388
3392
  }
3393
+ export interface TimeSeriesBreakdownItemV2 {
3394
+ /**
3395
+ * Present when grouping by use_case_type
3396
+ */
3397
+ use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
3398
+ /**
3399
+ * Present when grouping by use_case. Unknown historical IDs are collapsed into "__unknown__"
3400
+ */
3401
+ use_case_id?: string;
3402
+ /**
3403
+ * Number of successful events in the breakdown item
3404
+ */
3405
+ success_count: number;
3406
+ /**
3407
+ * Number of error events in the breakdown item
3408
+ */
3409
+ error_count: number;
3410
+ /**
3411
+ * Number of warning events in the breakdown item
3412
+ */
3413
+ warning_count: number;
3414
+ /**
3415
+ * Number of skipped events in the breakdown item
3416
+ */
3417
+ skipped_count: number;
3418
+ /**
3419
+ * Total events in the breakdown item
3420
+ */
3421
+ total_count: number;
3422
+ }
3389
3423
  export interface TimeSeriesBucket {
3390
3424
  /**
3391
3425
  * The start timestamp of the bucket
@@ -3436,6 +3470,10 @@ declare namespace Components {
3436
3470
  * Total events in the bucket
3437
3471
  */
3438
3472
  total_count: number;
3473
+ /**
3474
+ * Statistics breakdown by the requested group_by field for this bucket
3475
+ */
3476
+ breakdown?: TimeSeriesBreakdownItemV2[];
3439
3477
  }
3440
3478
  export interface TriggerErpActionRequest {
3441
3479
  /**
@@ -5735,6 +5773,7 @@ export type SecureProxyUseCase = Components.Schemas.SecureProxyUseCase;
5735
5773
  export type SecureProxyUseCaseConfiguration = Components.Schemas.SecureProxyUseCaseConfiguration;
5736
5774
  export type SecureProxyUseCaseHistoryEntry = Components.Schemas.SecureProxyUseCaseHistoryEntry;
5737
5775
  export type SetIntegrationAppMappingRequest = Components.Schemas.SetIntegrationAppMappingRequest;
5776
+ export type TimeSeriesBreakdownItemV2 = Components.Schemas.TimeSeriesBreakdownItemV2;
5738
5777
  export type TimeSeriesBucket = Components.Schemas.TimeSeriesBucket;
5739
5778
  export type TimeSeriesBucketV2 = Components.Schemas.TimeSeriesBucketV2;
5740
5779
  export type TriggerErpActionRequest = Components.Schemas.TriggerErpActionRequest;
package/dist/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
4
  "title": "Integration Toolkit API",
5
- "version": "1.0.1",
5
+ "version": "1.0.3",
6
6
  "description": "API for integrating with external systems in a standardised way."
7
7
  },
8
8
  "tags": [
@@ -7449,6 +7449,61 @@
7449
7449
  "secure_proxy"
7450
7450
  ],
7451
7451
  "description": "Filter by use case type"
7452
+ },
7453
+ "group_by": {
7454
+ "type": "string",
7455
+ "enum": [
7456
+ "use_case_type",
7457
+ "use_case"
7458
+ ],
7459
+ "description": "Field to group the bucket breakdown by"
7460
+ }
7461
+ }
7462
+ },
7463
+ "TimeSeriesBreakdownItemV2": {
7464
+ "type": "object",
7465
+ "required": [
7466
+ "success_count",
7467
+ "error_count",
7468
+ "warning_count",
7469
+ "skipped_count",
7470
+ "total_count"
7471
+ ],
7472
+ "properties": {
7473
+ "use_case_type": {
7474
+ "type": "string",
7475
+ "enum": [
7476
+ "inbound",
7477
+ "outbound",
7478
+ "file_proxy",
7479
+ "managed_call",
7480
+ "secure_proxy"
7481
+ ],
7482
+ "description": "Present when grouping by use_case_type"
7483
+ },
7484
+ "use_case_id": {
7485
+ "type": "string",
7486
+ "description": "Present when grouping by use_case. Unknown historical IDs are collapsed into \"__unknown__\""
7487
+ },
7488
+ "success_count": {
7489
+ "type": "integer",
7490
+ "description": "Number of successful events in the breakdown item"
7491
+ },
7492
+ "error_count": {
7493
+ "type": "integer",
7494
+ "description": "Number of error events in the breakdown item"
7495
+ },
7496
+ "warning_count": {
7497
+ "type": "integer",
7498
+ "description": "Number of warning events in the breakdown item"
7499
+ },
7500
+ "skipped_count": {
7501
+ "type": "integer",
7502
+ "description": "Number of skipped events in the breakdown item"
7503
+ },
7504
+ "total_count": {
7505
+ "type": "integer",
7506
+ "description": "Total events in the breakdown item"
7452
7507
  }
7453
7508
  }
7454
7509
  },
@@ -7483,6 +7538,13 @@
7483
7538
  "total_count": {
7484
7539
  "type": "integer",
7485
7540
  "description": "Total events in the bucket"
7541
+ },
7542
+ "breakdown": {
7543
+ "type": "array",
7544
+ "description": "Statistics breakdown by the requested group_by field for this bucket",
7545
+ "items": {
7546
+ "$ref": "#/components/schemas/TimeSeriesBreakdownItemV2"
7547
+ }
7486
7548
  }
7487
7549
  }
7488
7550
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/integration-toolkit-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Client library for epilot Integration Toolkit API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",