@epilot/integration-toolkit-client 1.0.2 → 1.0.4

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
@@ -879,6 +879,17 @@ declare namespace Components {
879
879
  * Optional ID that identifies the specific request for debugging purposes
880
880
  */
881
881
  correlation_id?: string;
882
+ /**
883
+ * Optional override for the stage 1 FIFO message group ID used when queuing
884
+ * the events for processing. Defaults to `INTEGRATION#<hash(integration_id)>`,
885
+ * which strictly serializes all events from one integration. Provide a
886
+ * finer-grained value (e.g. including a use case slug or a payload-derived key)
887
+ * to pin related events to the same group while letting unrelated events process
888
+ * in parallel. Downstream stage 2 still serializes per-entity via its own
889
+ * message group ID.
890
+ *
891
+ */
892
+ group_id?: string;
882
893
  /**
883
894
  * List of ERP events to process
884
895
  */
@@ -1362,7 +1373,7 @@ declare namespace Components {
1362
1373
  /**
1363
1374
  * Field to group the bucket breakdown by
1364
1375
  */
1365
- group_by?: "use_case_type";
1376
+ group_by?: "use_case_type" | "use_case";
1366
1377
  }
1367
1378
  /**
1368
1379
  * Configuration for inbound use cases (ERP to epilot)
@@ -3392,9 +3403,13 @@ declare namespace Components {
3392
3403
  }
3393
3404
  export interface TimeSeriesBreakdownItemV2 {
3394
3405
  /**
3395
- * Use case type for the breakdown item
3406
+ * Present when grouping by use_case_type
3396
3407
  */
3397
- use_case_type: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
3408
+ use_case_type?: "inbound" | "outbound" | "file_proxy" | "managed_call" | "secure_proxy";
3409
+ /**
3410
+ * Present when grouping by use_case. Unknown historical IDs are collapsed into "__unknown__"
3411
+ */
3412
+ use_case_id?: string;
3398
3413
  /**
3399
3414
  * Number of successful events in the breakdown item
3400
3415
  */
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.2",
5
+ "version": "1.0.4",
6
6
  "description": "API for integrating with external systems in a standardised way."
7
7
  },
8
8
  "tags": [
@@ -3043,6 +3043,11 @@
3043
3043
  "type": "string",
3044
3044
  "description": "Optional ID that identifies the specific request for debugging purposes"
3045
3045
  },
3046
+ "group_id": {
3047
+ "type": "string",
3048
+ "description": "Optional override for the stage 1 FIFO message group ID used when queuing\nthe events for processing. Defaults to `INTEGRATION#<hash(integration_id)>`,\nwhich strictly serializes all events from one integration. Provide a\nfiner-grained value (e.g. including a use case slug or a payload-derived key)\nto pin related events to the same group while letting unrelated events process\nin parallel. Downstream stage 2 still serializes per-entity via its own\nmessage group ID.\n",
3049
+ "maxLength": 128
3050
+ },
3046
3051
  "events": {
3047
3052
  "type": "array",
3048
3053
  "description": "List of ERP events to process",
@@ -7453,7 +7458,8 @@
7453
7458
  "group_by": {
7454
7459
  "type": "string",
7455
7460
  "enum": [
7456
- "use_case_type"
7461
+ "use_case_type",
7462
+ "use_case"
7457
7463
  ],
7458
7464
  "description": "Field to group the bucket breakdown by"
7459
7465
  }
@@ -7462,7 +7468,6 @@
7462
7468
  "TimeSeriesBreakdownItemV2": {
7463
7469
  "type": "object",
7464
7470
  "required": [
7465
- "use_case_type",
7466
7471
  "success_count",
7467
7472
  "error_count",
7468
7473
  "warning_count",
@@ -7479,7 +7484,11 @@
7479
7484
  "managed_call",
7480
7485
  "secure_proxy"
7481
7486
  ],
7482
- "description": "Use case type for the breakdown item"
7487
+ "description": "Present when grouping by use_case_type"
7488
+ },
7489
+ "use_case_id": {
7490
+ "type": "string",
7491
+ "description": "Present when grouping by use_case. Unknown historical IDs are collapsed into \"__unknown__\""
7483
7492
  },
7484
7493
  "success_count": {
7485
7494
  "type": "integer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/integration-toolkit-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Client library for epilot Integration Toolkit API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,7 +63,7 @@
63
63
  "axios": "^1.13.5",
64
64
  "copy-webpack-plugin": "^7.0.0",
65
65
  "json-loader": "^0.5.7",
66
- "openapicmd": "^2.7.0",
66
+ "openapicmd": "^2.9.2",
67
67
  "ts-loader": "^8.0.14",
68
68
  "ts-node": "^10.9.1",
69
69
  "typescript": "^4.1.3",