You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add status field to Event schema and comprehensive tests
Add missing 'status' field to Event schema in OpenAPI specification
and generate updated TypeScript SDK with proper type definitions.
Changes:
- Updated Event schema in OpenAPI spec to include 'status' field
(enum: success | failed)
- Regenerated TypeScript SDK with new EventStatus type
- Added comprehensive test suite for event status field validation
- Updated all destination tests to use proper SDK types
- Added SDK regeneration script for consistent build process
The API was already returning the status field in event responses,
but it was not documented in the OpenAPI spec, causing SDK clients
to not have access to this field. This change aligns the spec with
the actual API behavior.
Tests verify:
- Status field is present in events from listByDestination
- Status field is present in single event retrieval
- Status field is present in tenant-wide event lists
- Status values are valid (success or failed)
Fixes#490
Related to PR #491
Copy file name to clipboardExpand all lines: sdks/outpost-typescript/docs/models/components/event.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ let value: Event = {
14
14
metadata: {
15
15
"source": "crm",
16
16
},
17
+
status: "success",
17
18
data: {
18
19
"user_id": "userid",
19
20
"status": "active",
@@ -31,4 +32,5 @@ let value: Event = {
31
32
|`time`|[Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)|:heavy_minus_sign:| Time the event was received/processed. | 2024-01-01T00:00:00Z |
32
33
|`successfulAt`|[Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)|:heavy_minus_sign:| Time the event was successfully delivered. | 2024-01-01T00:00:00Z |
33
34
|`metadata`| Record<string, *string*> |:heavy_minus_sign:| Key-value string pairs of metadata associated with the event. | {<br/>"source": "crm"<br/>} |
0 commit comments