Skip to content

Commit

Permalink
feat(types): allow explicit action in UpdateConfigPayload (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete authored Nov 14, 2024
1 parent 7847656 commit 40e768f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@supabase/shared-types",
"version": "0.1.74",
"version": "0.1.75",
"description": "Shared Types for Supabase",
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
Expand Down
8 changes: 7 additions & 1 deletion src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ export interface RestartServicePayload {
service_names: ServiceNames[]
}

export enum ServicesUpdateActionType {
Restart = 'restart',
Reload = 'reload',
None = 'none',
}

export interface UpdateConfigPayload {
project_id: number
service_names: ServiceNames[]
restart_services: boolean
action: ServicesUpdateActionType
database_id?: number
}

Expand Down

0 comments on commit 40e768f

Please sign in to comment.