Skip to content

Commit

Permalink
shovel-config-ts: add notification
Browse files Browse the repository at this point in the history
fixes: #254
  • Loading branch information
ryandotsmith committed May 7, 2024
1 parent 031593b commit 1b563ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shovel-config-ts/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@indexsupply/shovel-config",
"description": "Types and functions for building a Shovel config file.",
"version": "0.0.14",
"version": "0.0.16",
"exports": "./src/index.ts"
}
2 changes: 1 addition & 1 deletion shovel-config-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "0.0.14",
"version": "0.0.16",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "Types and functions for building a Shovel config file.",
Expand Down
9 changes: 7 additions & 2 deletions shovel-config-ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,18 @@ export type SourceReference = {
start: EnvRef | bigint;
};

export type Notification = {
columns: string[];
};

export type Integration = {
name: string;
enabled: boolean;
sources: SourceReference[];
table: Table;
block: BlockData[];
event: Event;
notification?: Notification;
block?: BlockData[];
event?: Event;
};

export type Dashboard = {
Expand Down
2 changes: 2 additions & 0 deletions shovel-config-ts/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ test("makeConfig", () => {
sources: [{ name: mainnet.name, start: 0n }],
table: transfersTable,
block: [],
notification: {columns: ["from", "to", "value"]},
event: {
type: "event",
name: "Transfer",
Expand Down Expand Up @@ -76,6 +77,7 @@ test("makeConfig", () => {
},
],
},
notification: {columns: ["from", "to", "value"]},
block: [],
event: {
type: "event",
Expand Down

0 comments on commit 1b563ac

Please sign in to comment.