Skip to content

Commit 40e768f

Browse files
authored
feat(types): allow explicit action in UpdateConfigPayload (#86)
1 parent 7847656 commit 40e768f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@supabase/shared-types",
3-
"version": "0.1.74",
3+
"version": "0.1.75",
44
"description": "Shared Types for Supabase",
55
"scripts": {
66
"lint": "eslint . --ext .ts,.tsx",

src/events.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,16 @@ export interface RestartServicePayload {
137137
service_names: ServiceNames[]
138138
}
139139

140+
export enum ServicesUpdateActionType {
141+
Restart = 'restart',
142+
Reload = 'reload',
143+
None = 'none',
144+
}
145+
140146
export interface UpdateConfigPayload {
141147
project_id: number
142148
service_names: ServiceNames[]
143-
restart_services: boolean
149+
action: ServicesUpdateActionType
144150
database_id?: number
145151
}
146152

0 commit comments

Comments
 (0)