From 8bcca0d43efc5a1ebec0675e5034951c6bbd60df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20P=C3=B6hland?= Date: Wed, 21 Aug 2024 10:58:34 +0200 Subject: [PATCH] add new event types --- src/types/event.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/types/event.ts b/src/types/event.ts index dc2d333..0cf1cc2 100644 --- a/src/types/event.ts +++ b/src/types/event.ts @@ -37,3 +37,36 @@ export interface IEventDoc { alternativeTitle?: string } } + +export interface ITicketDoc { + dataType: 'event-ticket-profile' + eventId: string + name: string + description: string + profile: string + royalties: number + badgeColor: string + characteristics: {} + maxLimit: number + userLimit: number + soldCount: number + createdAt: number + id: string +} + +export interface ITicketStageDoc { + ticketId: string + name: string + startTime: number + endTime: number + maxLimit: number + userLimit: number + isEnabled: boolean + isWhitelist: boolean + requiredApproval: boolean + prices: { + tokenIdentifier: string + tokenNonce: number + amount: string + }[] +}