Skip to content

Commit

Permalink
name change and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
fforres committed Jul 2, 2024
1 parent f38dd9b commit 9478adb
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 42 deletions.
8 changes: 4 additions & 4 deletions app/api/gql/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import type { TypedDocumentNode as DocumentNode } from "@graphql-typed-document-
const documents = {
"query FetchExampleEvents {\n events {\n id\n description\n community {\n id\n name\n }\n tags {\n id\n name\n description\n }\n }\n}":
types.FetchExampleEventsDocument,
"query misTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}":
types.MisTicketsDocument,
"query myTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}":
types.MyTicketsDocument,
"mutation createPurchaseOrder($input: TicketClaimInput!) {\n claimUserTicket(input: $input) {\n __typename\n ... on PurchaseOrder {\n __typename\n id\n currency {\n id\n }\n finalPrice\n paymentLink\n status\n tickets {\n id\n approvalStatus\n redemptionStatus\n paymentStatus\n }\n }\n ... on RedeemUserTicketError {\n __typename\n error\n errorMessage\n }\n }\n}":
types.CreatePurchaseOrderDocument,
"fragment EventTicketFragment on Ticket {\n id\n name\n description\n quantity\n isFree\n startDateTime\n status\n isUnlimited\n prices {\n id\n amount\n currency {\n currency\n id\n }\n }\n}":
Expand Down Expand Up @@ -49,8 +49,8 @@ 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 misTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}",
): (typeof documents)["query misTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}"];
source: "query myTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\n }\n pagination {\n currentPage\n pageSize\n totalPages\n totalRecords\n }\n }\n}",
): (typeof documents)["query myTickets($input: PaginatedInputMyTicketsSearchValues!) {\n myTickets(input: $input) {\n data {\n approvalStatus\n id\n paymentStatus\n redemptionStatus\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.
*/
Expand Down
10 changes: 5 additions & 5 deletions app/api/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,11 +856,11 @@ export type FetchExampleEventsQuery = {
}>;
};

export type MisTicketsQueryVariables = Exact<{
export type MyTicketsQueryVariables = Exact<{
input: PaginatedInputMyTicketsSearchValues;
}>;

export type MisTicketsQuery = {
export type MyTicketsQuery = {
myTickets: {
data: Array<{
approvalStatus: TicketApprovalStatus;
Expand Down Expand Up @@ -1050,13 +1050,13 @@ export const FetchExampleEventsDocument = {
FetchExampleEventsQuery,
FetchExampleEventsQueryVariables
>;
export const MisTicketsDocument = {
export const MyTicketsDocument = {
kind: "Document",
definitions: [
{
kind: "OperationDefinition",
operation: "query",
name: { kind: "Name", value: "misTickets" },
name: { kind: "Name", value: "myTickets" },
variableDefinitions: [
{
kind: "VariableDefinition",
Expand Down Expand Up @@ -1149,7 +1149,7 @@ export const MisTicketsDocument = {
},
},
],
} as unknown as DocumentNode<MisTicketsQuery, MisTicketsQueryVariables>;
} as unknown as DocumentNode<MyTicketsQuery, MyTicketsQueryVariables>;
export const CreatePurchaseOrderDocument = {
kind: "Document",
definitions: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import * as Types from '../../../api/gql/graphql';
import { gql } from "graphql-tag";
import * as Apollo from "@apollo/client";
const defaultOptions = {} as const;
export type MisTicketsQueryVariables = Types.Exact<{
export type MyTicketsQueryVariables = Types.Exact<{
input: Types.PaginatedInputMyTicketsSearchValues;
}>;

export type MisTicketsQuery = {
export type MyTicketsQuery = {
__typename?: "Query";
myTickets: {
__typename?: "PaginatedUserTicket";
Expand All @@ -33,8 +33,8 @@ export type MisTicketsQuery = {
};
};

export const MisTicketsDocument = gql`
query misTickets($input: PaginatedInputMyTicketsSearchValues!) {
export const MyTicketsDocument = gql`
query myTickets($input: PaginatedInputMyTicketsSearchValues!) {
myTickets(input: $input) {
data {
approvalStatus
Expand All @@ -53,69 +53,69 @@ export const MisTicketsDocument = gql`
`;

/**
* __useMisTicketsQuery__
* __useMyTicketsQuery__
*
* To run a query within a React component, call `useMisTicketsQuery` and pass it any options that fit your needs.
* When your component renders, `useMisTicketsQuery` returns an object from Apollo Client that contains loading, error, and data properties
* To run a query within a React component, call `useMyTicketsQuery` and pass it any options that fit your needs.
* When your component renders, `useMyTicketsQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
*
* @example
* const { data, loading, error } = useMisTicketsQuery({
* const { data, loading, error } = useMyTicketsQuery({
* variables: {
* input: // value for 'input'
* },
* });
*/
export function useMisTicketsQuery(
export function useMyTicketsQuery(
baseOptions: Apollo.QueryHookOptions<
MisTicketsQuery,
MisTicketsQueryVariables
MyTicketsQuery,
MyTicketsQueryVariables
> &
(
| { variables: MisTicketsQueryVariables; skip?: boolean }
| { variables: MyTicketsQueryVariables; skip?: boolean }
| { skip: boolean }
),
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<MisTicketsQuery, MisTicketsQueryVariables>(
MisTicketsDocument,
return Apollo.useQuery<MyTicketsQuery, MyTicketsQueryVariables>(
MyTicketsDocument,
options,
);
}
export function useMisTicketsLazyQuery(
export function useMyTicketsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
MisTicketsQuery,
MisTicketsQueryVariables
MyTicketsQuery,
MyTicketsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<MisTicketsQuery, MisTicketsQueryVariables>(
MisTicketsDocument,
return Apollo.useLazyQuery<MyTicketsQuery, MyTicketsQueryVariables>(
MyTicketsDocument,
options,
);
}
export function useMisTicketsSuspenseQuery(
export function useMyTicketsSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
MisTicketsQuery,
MisTicketsQueryVariables
MyTicketsQuery,
MyTicketsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<MisTicketsQuery, MisTicketsQueryVariables>(
MisTicketsDocument,
return Apollo.useSuspenseQuery<MyTicketsQuery, MyTicketsQueryVariables>(
MyTicketsDocument,
options,
);
}
export type MisTicketsQueryHookResult = ReturnType<typeof useMisTicketsQuery>;
export type MisTicketsLazyQueryHookResult = ReturnType<
typeof useMisTicketsLazyQuery
export type MyTicketsQueryHookResult = ReturnType<typeof useMyTicketsQuery>;
export type MyTicketsLazyQueryHookResult = ReturnType<
typeof useMyTicketsLazyQuery
>;
export type MisTicketsSuspenseQueryHookResult = ReturnType<
typeof useMisTicketsSuspenseQuery
export type MyTicketsSuspenseQueryHookResult = ReturnType<
typeof useMyTicketsSuspenseQuery
>;
export type MisTicketsQueryResult = Apollo.QueryResult<
MisTicketsQuery,
MisTicketsQueryVariables
export type MyTicketsQueryResult = Apollo.QueryResult<
MyTicketsQuery,
MyTicketsQueryVariables
>;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query misTickets($input: PaginatedInputMyTicketsSearchValues!) {
query myTickets($input: PaginatedInputMyTicketsSearchValues!) {
myTickets(input: $input) {
data {
approvalStatus
Expand Down

0 comments on commit 9478adb

Please sign in to comment.