Skip to content

Commit ddc4209

Browse files
committed
upcoming: [DPS-35271] clean up not needed fields from types
1 parent ca47bf5 commit ddc4209

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/api-v4": Upcoming Features
3+
---
4+
5+
Clean up Delivery Stream and Destination interfaces ([#13038](https://github.com/linode/manager/pull/13038))

packages/api-v4/src/delivery/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ export interface AuditData {
2020
}
2121

2222
export interface Stream extends AuditData {
23-
destinations: Destination[];
23+
destinations: DestinationCore[];
2424
details: StreamDetailsType;
2525
id: number;
2626
label: string;
27-
primary_destination_id: number;
2827
status: StreamStatus;
29-
stream_audit_id: number;
3028
type: StreamType;
3129
version: string;
3230
}
@@ -46,11 +44,14 @@ export const destinationType = {
4644
export type DestinationType =
4745
(typeof destinationType)[keyof typeof destinationType];
4846

49-
export interface Destination extends AuditData {
47+
export interface DestinationCore {
5048
details: DestinationDetails;
5149
id: number;
5250
label: string;
5351
type: DestinationType;
52+
}
53+
54+
export interface Destination extends DestinationCore, AuditData {
5455
version: string;
5556
}
5657

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@linode/manager": Upcoming Features
3+
---
4+
5+
Update Delivery Stream factory ([#13038](https://github.com/linode/manager/pull/13038))

packages/manager/src/factories/delivery.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export const streamFactory = Factory.Sync.makeFactory<Stream>({
3030
updated_by: 'username',
3131
id: Factory.each((id) => id),
3232
label: Factory.each((id) => `Stream ${id}`),
33-
primary_destination_id: 1,
3433
status: 'active',
35-
stream_audit_id: 1,
3634
type: streamType.AuditLogs,
3735
version: '1.0',
3836
created: '2025-07-30',

0 commit comments

Comments
 (0)