Skip to content

Commit

Permalink
chore: update root scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Jan 25, 2024
1 parent b2ce2e7 commit bf11f27
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 7 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,25 @@
"web"
],
"scripts": {
"postinstall": "cd workers && poetry install",
"postinstall": "yarn workers:install && yarn ops:install",
"codegen": "yarn web:codegen && yarn ops:codegen",
"build": "yarn web:build && yarn workers:build",
"dev": "npx concurrently \"yarn web:dev\" \"yarn workers:dev\" \"yarn events:dev\" -k -n web,workers,events",
"web:codegen": "cd web && yarn db:generate-types",
"web:build": "yarn web:env && cd web && yarn build",
"web:dev": "yarn web:env && cd web && yarn dev",
"web:env": "if [ \"$CICD\" != \"true\" ]; then cp .env ./web/.env; fi",
"db:start": "cd web && yarn db:start",
"db:reset": "cd web && yarn db:reset",
"db:stop": "cd web && yarn db:stop",
"workers:install": "cd workers && poetry install",
"workers:build": "cd workers && poetry run build-check",
"workers:dev": "yarn workers:env && cd workers && poetry run python -m uvicorn fund_public_goods.main:app --reload",
"workers:env": "if [ \"$CICD\" != \"true\" ]; then cp .env ./workers/.env; fi",
"workers:types": "cd ops && poetry run generate-types",
"events:dev": "npx inngest-cli dev"
"events:dev": "npx inngest-cli dev",
"ops:install": "cd ops && poetry install",
"ops:codegen": "cd ops && poetry run generate-types"
},
"dependencies": {
"concurrently": "8.2.2",
Expand Down
151 changes: 147 additions & 4 deletions web/supabase/dbTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,145 @@ export type Json =
export interface Database {
public: {
Tables: {
applications: {
Row: {
answers: Json | null
created_at: number
id: string
network: number
project_id: string
recipient: string
round: string
}
Insert: {
answers?: Json | null
created_at: number
id: string
network: number
project_id: string
recipient: string
round: string
}
Update: {
answers?: Json | null
created_at?: number
id?: string
network?: number
project_id?: string
recipient?: string
round?: string
}
Relationships: [
{
foreignKeyName: "applications_project_id_fkey"
columns: ["project_id"]
isOneToOne: false
referencedRelation: "projects"
referencedColumns: ["id"]
}
]
}
gitcoin_applications: {
Row: {
created_at: number
data: Json
id: string
pointer: string
project_id: string
protocol: number
round_id: string
}
Insert: {
created_at: number
data: Json
id: string
pointer: string
project_id: string
protocol: number
round_id: string
}
Update: {
created_at?: number
data?: Json
id?: string
pointer?: string
project_id?: string
protocol?: number
round_id?: string
}
Relationships: [
{
foreignKeyName: "gitcoin_applications_project_id_fkey"
columns: ["project_id"]
isOneToOne: false
referencedRelation: "gitcoin_projects"
referencedColumns: ["id"]
}
]
}
gitcoin_indexing_jobs: {
Row: {
created_at: string
error: string | null
id: string
is_failed: boolean
is_running: boolean
last_updated_at: string
network_id: number
skip_projects: number
skip_rounds: number
url: string
}
Insert: {
created_at?: string
error?: string | null
id?: string
is_failed?: boolean
is_running?: boolean
last_updated_at?: string
network_id: number
skip_projects?: number
skip_rounds?: number
url: string
}
Update: {
created_at?: string
error?: string | null
id?: string
is_failed?: boolean
is_running?: boolean
last_updated_at?: string
network_id?: number
skip_projects?: number
skip_rounds?: number
url?: string
}
Relationships: []
}
gitcoin_projects: {
Row: {
created_at: string
data: Json
id: string
pointer: string
protocol: number
}
Insert: {
created_at?: string
data: Json
id: string
pointer: string
protocol: number
}
Update: {
created_at?: string
data?: Json
id?: string
pointer?: string
protocol?: number
}
Relationships: []
}
logs: {
Row: {
created_at: string
Expand Down Expand Up @@ -42,21 +181,18 @@ export interface Database {
Row: {
description: string | null
id: string
recipient: string | null
title: string | null
website: string | null
}
Insert: {
description?: string | null
id?: string
recipient?: string | null
id: string
title?: string | null
website?: string | null
}
Update: {
description?: string | null
id?: string
recipient?: string | null
title?: string | null
website?: string | null
}
Expand Down Expand Up @@ -123,6 +259,13 @@ export interface Database {
weight?: number | null
}
Relationships: [
{
foreignKeyName: "strategy_entries_project_id_fkey"
columns: ["project_id"]
isOneToOne: false
referencedRelation: "projects"
referencedColumns: ["id"]
},
{
foreignKeyName: "strategy_entries_run_id_fkey"
columns: ["run_id"]
Expand Down
1 change: 0 additions & 1 deletion workers/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ langchain-community = "^0.0.13"

[tool.poetry.group.dev.dependencies]
mypy = "1.8.0"
omymodels = "^0.15.1"
types-requests = "^2.31.0.20240106"

[tool.mypy]
Expand Down

0 comments on commit bf11f27

Please sign in to comment.