Skip to content

Commit

Permalink
feat(MyEvent.Addons): include allow userTicketAddon (#73)
Browse files Browse the repository at this point in the history
## Summary
### Include Addons to claim on My Event Details
  • Loading branch information
joseglego authored Nov 30, 2024
1 parent 58331ad commit 23670b5
Show file tree
Hide file tree
Showing 11 changed files with 810 additions and 11 deletions.
22 changes: 19 additions & 3 deletions app/api/gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-
const documents = {
"query FetchExampleEvents($input: PaginatedInputEventsSearchInput!) {\n searchEvents(input: $input) {\n data {\n id\n description\n community {\n id\n name\n }\n tags {\n id\n name\n description\n }\n }\n }\n}":
types.FetchExampleEventsDocument,
"query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}":
"mutation claimUserTicketAddons($addonsClaims: [ClaimUserTicketAddonInput!]!) {\n claimUserTicketAddons(addonsClaims: $addonsClaims) {\n __typename\n ... on PurchaseOrder {\n __typename\n id\n status\n userTicketAddons {\n id\n approvalStatus\n redemptionStatus\n }\n }\n ... on RedeemUserTicketAddonsError {\n __typename\n error\n errorMessage\n }\n }\n}":
types.ClaimUserTicketAddonsDocument,
"query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n userTicketAddons {\n addonId\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}":
types.MyEventDocument,
"query myEventAddons($eventId: String!) {\n searchAddons(eventId: $eventId) {\n id\n description\n isFree\n maxPerTicket\n name\n totalStock\n constraints {\n id\n addonId\n relatedAddonId\n constraintType\n }\n ticketAddons {\n id\n addonId\n orderDisplay\n ticketId\n }\n }\n}":
types.MyEventAddonsDocument,
"mutation transferTicket($ticketId: String!, $input: UserTicketTransferInfoInput!) {\n transferMyTicketToUser(ticketId: $ticketId, input: $input) {\n id\n status\n expirationDate\n transferMessage\n sender {\n email\n name\n }\n recipient {\n email\n name\n }\n userTicket {\n id\n approvalStatus\n }\n }\n}":
types.TransferTicketDocument,
"query myEvents($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n address\n previewImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n ticketTemplate {\n description\n id\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}":
Expand Down Expand Up @@ -69,8 +73,20 @@ export function graphql(
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: "query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}",
): (typeof documents)["query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}"];
source: "mutation claimUserTicketAddons($addonsClaims: [ClaimUserTicketAddonInput!]!) {\n claimUserTicketAddons(addonsClaims: $addonsClaims) {\n __typename\n ... on PurchaseOrder {\n __typename\n id\n status\n userTicketAddons {\n id\n approvalStatus\n redemptionStatus\n }\n }\n ... on RedeemUserTicketAddonsError {\n __typename\n error\n errorMessage\n }\n }\n}",
): (typeof documents)["mutation claimUserTicketAddons($addonsClaims: [ClaimUserTicketAddonInput!]!) {\n claimUserTicketAddons(addonsClaims: $addonsClaims) {\n __typename\n ... on PurchaseOrder {\n __typename\n id\n status\n userTicketAddons {\n id\n approvalStatus\n redemptionStatus\n }\n }\n ... on RedeemUserTicketAddonsError {\n __typename\n error\n errorMessage\n }\n }\n}"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: "query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n userTicketAddons {\n addonId\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}",
): (typeof documents)["query myEvent($input: PaginatedInputEventsSearchInput!, $userTicketSearchInput: EventsTicketsSearchInput) {\n searchEvents(input: $input) {\n data {\n id\n name\n description\n startDateTime\n endDateTime\n address\n publicShareURL\n previewImage {\n url\n }\n bannerImage {\n url\n }\n mobileBannerImage {\n url\n }\n community {\n id\n name\n }\n status\n usersTickets(input: $userTicketSearchInput) {\n id\n approvalStatus\n paymentStatus\n redemptionStatus\n createdAt\n publicId\n ticketTemplate {\n id\n name\n description\n }\n userTicketAddons {\n addonId\n }\n }\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
export function graphql(
source: "query myEventAddons($eventId: String!) {\n searchAddons(eventId: $eventId) {\n id\n description\n isFree\n maxPerTicket\n name\n totalStock\n constraints {\n id\n addonId\n relatedAddonId\n constraintType\n }\n ticketAddons {\n id\n addonId\n orderDisplay\n ticketId\n }\n }\n}",
): (typeof documents)["query myEventAddons($eventId: String!) {\n searchAddons(eventId: $eventId) {\n id\n description\n isFree\n maxPerTicket\n name\n totalStock\n constraints {\n id\n addonId\n relatedAddonId\n constraintType\n }\n ticketAddons {\n id\n addonId\n orderDisplay\n ticketId\n }\n }\n}"];
/**
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
*/
Expand Down
Loading

0 comments on commit 23670b5

Please sign in to comment.