Skip to content

Commit 5871feb

Browse files
authored
(BEDS-94) better client notification dummy (#901)
1 parent e55729f commit 5871feb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/pkg/api/types/notifications.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ type InternalPutUserNotificationSettingsPairedDevicesResponse ApiDataResponse[No
166166
type NotificationSettingsClient struct {
167167
Id uint64 `json:"id"`
168168
Name string `json:"name"`
169-
Category string `json:"category"`
169+
Category string `json:"category" tstype:"'execution_layer' | 'consensus_layer' | 'other'" faker:"oneof: execution_layer, consensus_layer, other"`
170170
IsSubscribed bool `json:"is_subscribed"`
171171
}
172172

@@ -196,7 +196,7 @@ type NotificationSettings struct {
196196
GeneralSettings NotificationSettingsGeneral `json:"general_settings"`
197197
Networks []NotificationNetwork `json:"networks"`
198198
PairedDevices []NotificationPairedDevice `json:"paired_devices"`
199-
Clients []NotificationSettingsClient `json:"clients"`
199+
Clients []NotificationSettingsClient `json:"clients" faker:"slice_len=10"`
200200
}
201201
type InternalGetUserNotificationSettingsResponse ApiDataResponse[NotificationSettings]
202202

frontend/types/api/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export type InternalPutUserNotificationSettingsPairedDevicesResponse = ApiDataRe
160160
export interface NotificationSettingsClient {
161161
id: number /* uint64 */;
162162
name: string;
163-
category: string;
163+
category: 'execution_layer' | 'consensus_layer' | 'other';
164164
is_subscribed: boolean;
165165
}
166166
export type InternalPutUserNotificationSettingsClientResponse = ApiDataResponse<NotificationSettingsClient>;

0 commit comments

Comments
 (0)