File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
packages/repository/src/types Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ import {
16
16
RoundRole ,
17
17
} from "./round.types.js" ;
18
18
19
- export type Changeset =
19
+ //TODO: see if in the future we move out of inline object types for changesets
20
+
21
+ type ProjectChangeset =
20
22
| {
21
23
type : "InsertProject" ;
22
24
args : {
@@ -60,7 +62,9 @@ export type Changeset =
60
62
args : {
61
63
projectRole : Pick < ProjectRole , "chainId" | "projectId" | "role" | "address" > ;
62
64
} ;
63
- }
65
+ } ;
66
+
67
+ type RoundChangeset =
64
68
| {
65
69
type : "InsertRound" ;
66
70
args : {
@@ -123,7 +127,9 @@ export type Changeset =
123
127
args : {
124
128
roundRole : Pick < RoundRole , "chainId" | "roundId" | "role" | "address" > ;
125
129
} ;
126
- }
130
+ } ;
131
+
132
+ type ApplicationChangeset =
127
133
| {
128
134
type : "InsertApplication" ;
129
135
args : NewApplication ;
@@ -137,3 +143,7 @@ export type Changeset =
137
143
application : PartialApplication ;
138
144
} ;
139
145
} ;
146
+
147
+ //TODO: add changeset for Donation and Payout tables
148
+
149
+ export type Changeset = ProjectChangeset | RoundChangeset | ApplicationChangeset ;
You can’t perform that action at this time.
0 commit comments