From e4bb666267d65fc36dece5247d62a5ec45ebfde2 Mon Sep 17 00:00:00 2001 From: zkldi Date: Sat, 6 Nov 2021 19:54:33 +0000 Subject: [PATCH] Add game playtype props to webhooks. --- common/src/webhooks.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/src/webhooks.ts b/common/src/webhooks.ts index 67972ea97..fa5a011ac 100644 --- a/common/src/webhooks.ts +++ b/common/src/webhooks.ts @@ -1,3 +1,4 @@ +import { Game, Playtypes } from "."; import { GameClassSets } from "./game-classes"; import { GoalImportStat, IDStrings, integer, MilestoneImportStat } from "./types"; @@ -11,6 +12,8 @@ export interface WebhookEventClassUpdateV1 { set: GameClassSets[IDStrings]; old: integer | null; new: integer | null; + game: Game; + playtype: Playtypes[Game]; }; } @@ -24,6 +27,8 @@ export interface WebhookEventGoalAchievedV1 { goalID: string; old: GoalImportStat; new: GoalImportStat; + game: Game; + playtype: Playtypes[Game]; }; } @@ -37,6 +42,8 @@ export interface WebhookEventMilestoneAchievedV1 { milestoneID: string; old: MilestoneImportStat; new: MilestoneImportStat; + game: Game; + playtype: Playtypes[Game]; }; }