Skip to content

Commit

Permalink
chore: move types to shared folder in infra (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcodez authored Feb 26, 2024
1 parent 356544a commit cb74f5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.61",
"version": "0.1.62",
"description": "Shared Types for Supabase",
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
Expand Down
44 changes: 0 additions & 44 deletions src/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,6 @@ export interface UpdateSupabaseApiKeyPayload {
next_api_key_supabase_encrypted: string
}

export enum InitializationPayloadVersion {
Version1 = 1,
Version2 = 2,
}

export enum InitializationType {
NewProject = 'new_project',
Restore = 'restore',
}

export enum ProjectDbInstanceSize {
NANO = 'nano',
MICRO = 'micro',
SMALL = 'small',
MEDIUM = 'medium',
LARGE = 'large',
XLARGE = 'xlarge',
XLARGE_2 = '2xlarge',
XLARGE_4 = '4xlarge',
XLARGE_8 = '8xlarge',
XLARGE_12 = '12xlarge',
XLARGE_16 = '16xlarge',
}

export interface ProjectInitializationBasePayload {
anon_key_encrypted: string
api_id: string
initialization_type: InitializationType
payload_version: InitializationPayloadVersion
project_id: number
service_key_encrypted: string
database_id: number
desired_instance_size?: ProjectDbInstanceSize
}

export interface NewProjectInitializationPayload extends ProjectInitializationBasePayload {
auth_site_url: string
db_sql: string
}

export interface RestoreProjectPayload extends ProjectInitializationBasePayload {
backup_id: number
}

export enum BackupSchedulePayloadType {
Create = 'create',
Update = 'update',
Expand Down

0 comments on commit cb74f5a

Please sign in to comment.