Skip to content

Commit 4f4ad95

Browse files
chore(erp): update types
1 parent aff2272 commit 4f4ad95

File tree

3 files changed

+63
-8
lines changed

3 files changed

+63
-8
lines changed

clients/erp-integration-client/src/openapi.d.ts

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ declare namespace Components {
193193
* Optional description of the integration
194194
*/
195195
description?: string;
196+
/**
197+
* List of access token IDs to associate with this integration
198+
*/
199+
access_token_ids?: string[];
196200
}
197201
export interface CreateOutboundUseCaseRequest {
198202
/**
@@ -600,6 +604,10 @@ declare namespace Components {
600604
* Optional description of the integration
601605
*/
602606
description?: string;
607+
/**
608+
* List of access token IDs associated with this integration
609+
*/
610+
access_token_ids?: string[];
603611
/**
604612
* ISO-8601 timestamp when the integration was created
605613
*/
@@ -779,6 +787,10 @@ declare namespace Components {
779787
* Optional description of the integration
780788
*/
781789
description?: string;
790+
/**
791+
* List of access token IDs associated with this integration
792+
*/
793+
access_token_ids?: string[];
782794
/**
783795
* All use cases belonging to this integration
784796
*/
@@ -1193,11 +1205,14 @@ declare namespace Components {
11931205
}
11941206
export interface QueryAccessLogsRequest {
11951207
/**
1196-
* Filter by access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk')
1208+
* Filter by a specific access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk').
1209+
* Must be one of the access_token_ids linked to the integration.
1210+
* If omitted, returns logs for all access tokens linked to the integration.
1211+
*
11971212
* example:
11981213
* api_5ZugdRXasLfWBypHi93Fk
11991214
*/
1200-
token_id: string;
1215+
token_id?: string;
12011216
/**
12021217
* Filter by service name (e.g., 'entity', 'metering', 'submission-api')
12031218
* example:
@@ -1741,6 +1756,10 @@ declare namespace Components {
17411756
* Optional description of the integration
17421757
*/
17431758
description?: string;
1759+
/**
1760+
* List of access token IDs to associate with this integration
1761+
*/
1762+
access_token_ids?: string[];
17441763
}
17451764
export interface UpdateOutboundUseCaseRequest {
17461765
/**
@@ -1790,6 +1809,10 @@ declare namespace Components {
17901809
* Optional description of the integration
17911810
*/
17921811
description?: string;
1812+
/**
1813+
* List of access token IDs to associate with this integration
1814+
*/
1815+
access_token_ids?: string[];
17931816
/**
17941817
* Full list of use cases (declarative). This replaces ALL existing use cases.
17951818
* - Use cases with an `id` field matching an existing use case will be updated

clients/erp-integration-client/src/openapi.json

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.3",
33
"info": {
44
"title": "ERP Integration API",
5-
"version": "0.26.0",
5+
"version": "0.27.0",
66
"description": "API for integrating with ERP systems, handling tracking acknowledgments, triggering ERP processes, and processing ERP updates."
77
},
88
"tags": [
@@ -2378,6 +2378,13 @@
23782378
"type": "string",
23792379
"description": "Optional description of the integration"
23802380
},
2381+
"access_token_ids": {
2382+
"type": "array",
2383+
"description": "List of access token IDs associated with this integration",
2384+
"items": {
2385+
"type": "string"
2386+
}
2387+
},
23812388
"created_at": {
23822389
"type": "string",
23832390
"format": "date-time",
@@ -2406,6 +2413,13 @@
24062413
"type": "string",
24072414
"maxLength": 1000,
24082415
"description": "Optional description of the integration"
2416+
},
2417+
"access_token_ids": {
2418+
"type": "array",
2419+
"description": "List of access token IDs to associate with this integration",
2420+
"items": {
2421+
"type": "string"
2422+
}
24092423
}
24102424
}
24112425
},
@@ -2422,6 +2436,13 @@
24222436
"type": "string",
24232437
"maxLength": 1000,
24242438
"description": "Optional description of the integration"
2439+
},
2440+
"access_token_ids": {
2441+
"type": "array",
2442+
"description": "List of access token IDs to associate with this integration",
2443+
"items": {
2444+
"type": "string"
2445+
}
24252446
}
24262447
}
24272448
},
@@ -3769,6 +3790,13 @@
37693790
"type": "string",
37703791
"description": "Optional description of the integration"
37713792
},
3793+
"access_token_ids": {
3794+
"type": "array",
3795+
"description": "List of access token IDs associated with this integration",
3796+
"items": {
3797+
"type": "string"
3798+
}
3799+
},
37723800
"use_cases": {
37733801
"type": "array",
37743802
"description": "All use cases belonging to this integration",
@@ -3806,6 +3834,13 @@
38063834
"maxLength": 1000,
38073835
"description": "Optional description of the integration"
38083836
},
3837+
"access_token_ids": {
3838+
"type": "array",
3839+
"description": "List of access token IDs to associate with this integration",
3840+
"items": {
3841+
"type": "string"
3842+
}
3843+
},
38093844
"use_cases": {
38103845
"type": "array",
38113846
"description": "Full list of use cases (declarative). This replaces ALL existing use cases.\n- Use cases with an `id` field matching an existing use case will be updated\n- Use cases without an `id` or with a non-matching `id` will be created\n- Existing use cases not in this list will be deleted\n",
@@ -4077,13 +4112,10 @@
40774112
},
40784113
"QueryAccessLogsRequest": {
40794114
"type": "object",
4080-
"required": [
4081-
"token_id"
4082-
],
40834115
"properties": {
40844116
"token_id": {
40854117
"type": "string",
4086-
"description": "Filter by access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk')",
4118+
"description": "Filter by a specific access token ID (e.g., 'api_5ZugdRXasLfWBypHi93Fk').\nMust be one of the access_token_ids linked to the integration.\nIf omitted, returns logs for all access tokens linked to the integration.\n",
40874119
"example": "api_5ZugdRXasLfWBypHi93Fk"
40884120
},
40894121
"service": {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)