Updated webhook type

This commit is contained in:
DrMint 2024-07-25 00:06:39 +02:00
parent 7d6f5ffb70
commit 3582a48bd1
1 changed files with 24 additions and 8 deletions

View File

@ -1,8 +1,24 @@
import type { Collections } from "./constants"; export type EndpointChange = {
url: string;
export type AfterOperationWebHookMessage = { } & (
collection: Collections; | { type: "getConfig" }
id?: string; | { type: "getFolder"; slug: string }
addedDependantIds: string[]; | { type: "getLanguages" }
urls: string[]; | { type: "getCurrencies" }
}; | { type: "getWordings" }
| { type: "getPage"; slug: string }
| { type: "getCollectible"; slug: string }
| { type: "getCollectibleScans"; slug: string }
| { type: "getCollectibleScanPage"; slug: string; index: string }
| { type: "getCollectibleGallery"; slug: string }
| { type: "getCollectibleGalleryImage"; slug: string; index: string }
| { type: "getChronologyEvents" }
| { type: "getChronologyEventByID"; id: string }
| { type: "getImageByID"; id: string }
| { type: "getAudioByID"; id: string }
| { type: "getVideoByID"; id: string }
| { type: "getFileByID"; id: string }
| { type: "getRecorderByID"; id: string }
| { type: "getAllSdkUrls" }
| { type: "getAllIds" }
);