shared-library/payload/webhooks.ts

26 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-07-26 05:40:33 +00:00
import type { SDKEndpointNames } from "./sdk";
2024-07-24 22:06:39 +00:00
export type EndpointChange = {
url: string;
} & (
2024-07-26 05:40:33 +00:00
| { type: SDKEndpointNames.getWebsiteConfig }
| { type: SDKEndpointNames.getFolder; slug: string }
| { type: SDKEndpointNames.getLanguages }
| { type: SDKEndpointNames.getCurrencies }
| { type: SDKEndpointNames.getWordings }
| { type: SDKEndpointNames.getPage; slug: string }
| { type: SDKEndpointNames.getCollectible; slug: string }
| { type: SDKEndpointNames.getCollectibleScans; slug: string }
| { type: SDKEndpointNames.getCollectibleScanPage; slug: string; index: string }
| { type: SDKEndpointNames.getCollectibleGallery; slug: string }
| { type: SDKEndpointNames.getCollectibleGalleryImage; slug: string; index: string }
| { type: SDKEndpointNames.getChronologyEvents }
| { type: SDKEndpointNames.getChronologyEventByID; id: string }
| { type: SDKEndpointNames.getImageByID; id: string }
| { type: SDKEndpointNames.getAudioByID; id: string }
| { type: SDKEndpointNames.getVideoByID; id: string }
| { type: SDKEndpointNames.getFileByID; id: string }
| { type: SDKEndpointNames.getRecorderByID; id: string }
);