diff --git a/src/generated/schema.gql b/src/generated/schema.gql index fb475bff..cac90261 100644 --- a/src/generated/schema.gql +++ b/src/generated/schema.gql @@ -892,6 +892,8 @@ input TicketCreateInput { description: String endDateTime: DateTime eventId: String! + externalLink: String + imageLink: String """ If the ticket is free, the price submitted will be ignored. diff --git a/src/generated/types.ts b/src/generated/types.ts index 807cc38c..97c76da2 100644 --- a/src/generated/types.ts +++ b/src/generated/types.ts @@ -916,6 +916,8 @@ export type TicketCreateInput = { description?: InputMaybe; endDateTime?: InputMaybe; eventId: Scalars["String"]["input"]; + externalLink?: InputMaybe; + imageLink?: InputMaybe; /** If the ticket is free, the price submitted will be ignored. */ isFree: Scalars["Boolean"]["input"]; name: Scalars["String"]["input"]; diff --git a/src/schema/ticket/mutations.ts b/src/schema/ticket/mutations.ts index b62287ff..4e88931a 100644 --- a/src/schema/ticket/mutations.ts +++ b/src/schema/ticket/mutations.ts @@ -66,6 +66,12 @@ const TicketCreateInput = builder.inputType("TicketCreateInput", { requiresApproval: t.boolean({ required: false, }), + imageLink: t.string({ + required: false, + }), + externalLink: t.string({ + required: false, + }), quantity: t.int({ required: false, }), @@ -231,6 +237,8 @@ builder.mutationField("createTicket", (t) => eventId: input.eventId, isUnlimited: input.unlimitedTickets, isFree: input.isFree, + imageLink: input.imageLink, + externalLink: input.externalLink, tags: [ ...new Set(input.tags?.map((tag) => tag.trim().toLowerCase())), ],