Skip to content

Commit 168d4b5

Browse files
authored
Update creation flow. (#219)
1 parent 7a2cbeb commit 168d4b5

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/generated/schema.gql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ input TicketCreateInput {
892892
description: String
893893
endDateTime: DateTime
894894
eventId: String!
895+
externalLink: String
896+
imageLink: String
895897

896898
"""
897899
If the ticket is free, the price submitted will be ignored.

src/generated/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,8 @@ export type TicketCreateInput = {
916916
description?: InputMaybe<Scalars["String"]["input"]>;
917917
endDateTime?: InputMaybe<Scalars["DateTime"]["input"]>;
918918
eventId: Scalars["String"]["input"];
919+
externalLink?: InputMaybe<Scalars["String"]["input"]>;
920+
imageLink?: InputMaybe<Scalars["String"]["input"]>;
919921
/** If the ticket is free, the price submitted will be ignored. */
920922
isFree: Scalars["Boolean"]["input"];
921923
name: Scalars["String"]["input"];

src/schema/ticket/mutations.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ const TicketCreateInput = builder.inputType("TicketCreateInput", {
6666
requiresApproval: t.boolean({
6767
required: false,
6868
}),
69+
imageLink: t.string({
70+
required: false,
71+
}),
72+
externalLink: t.string({
73+
required: false,
74+
}),
6975
quantity: t.int({
7076
required: false,
7177
}),
@@ -231,6 +237,8 @@ builder.mutationField("createTicket", (t) =>
231237
eventId: input.eventId,
232238
isUnlimited: input.unlimitedTickets,
233239
isFree: input.isFree,
240+
imageLink: input.imageLink,
241+
externalLink: input.externalLink,
234242
tags: [
235243
...new Set(input.tags?.map((tag) => tag.trim().toLowerCase())),
236244
],

0 commit comments

Comments
 (0)