Skip to content

Commit

Permalink
fixup! Commit generated GraphQL files
Browse files Browse the repository at this point in the history
  • Loading branch information
canac committed Apr 26, 2024
1 parent b8d9086 commit 38cc279
Show file tree
Hide file tree
Showing 148 changed files with 21,031 additions and 10,897 deletions.
96 changes: 62 additions & 34 deletions pages/GetAccountLists.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,71 @@ import * as Types from '../src/graphql/types.generated';
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
const defaultOptions = {} as const;
export type GetAccountListsQueryVariables = Types.Exact<{ [key: string]: never; }>;


export type GetAccountListsQuery = (
{ __typename?: 'Query' }
& { accountLists: (
{ __typename?: 'AccountListConnection' }
& { nodes: Array<(
{ __typename?: 'AccountList' }
& Pick<Types.AccountList, 'id' | 'name' | 'monthlyGoal' | 'receivedPledges' | 'totalPledges' | 'currency'>
)> }
) }
);
export type GetAccountListsQueryVariables = Types.Exact<{
[key: string]: never;
}>;

export type GetAccountListsQuery = { __typename?: 'Query' } & {
accountLists: { __typename?: 'AccountListConnection' } & {
nodes: Array<
{ __typename?: 'AccountList' } & Pick<
Types.AccountList,
| 'id'
| 'name'
| 'monthlyGoal'
| 'receivedPledges'
| 'totalPledges'
| 'currency'
>
>;
};
};

export const GetAccountListsDocument = gql`
query GetAccountLists {
accountLists(first: 50) {
nodes {
id
name
monthlyGoal
receivedPledges
totalPledges
currency
query GetAccountLists {
accountLists(first: 50) {
nodes {
id
name
monthlyGoal
receivedPledges
totalPledges
currency
}
}
}
`;
export function useGetAccountListsQuery(
baseOptions?: Apollo.QueryHookOptions<
GetAccountListsQuery,
GetAccountListsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<GetAccountListsQuery, GetAccountListsQueryVariables>(
GetAccountListsDocument,
options,
);
}
`;
export function useGetAccountListsQuery(baseOptions?: Apollo.QueryHookOptions<GetAccountListsQuery, GetAccountListsQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<GetAccountListsQuery, GetAccountListsQueryVariables>(GetAccountListsDocument, options);
}
export function useGetAccountListsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetAccountListsQuery, GetAccountListsQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<GetAccountListsQuery, GetAccountListsQueryVariables>(GetAccountListsDocument, options);
}
export type GetAccountListsQueryHookResult = ReturnType<typeof useGetAccountListsQuery>;
export type GetAccountListsLazyQueryHookResult = ReturnType<typeof useGetAccountListsLazyQuery>;
export type GetAccountListsQueryResult = Apollo.QueryResult<GetAccountListsQuery, GetAccountListsQueryVariables>;
export function useGetAccountListsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetAccountListsQuery,
GetAccountListsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
GetAccountListsQuery,
GetAccountListsQueryVariables
>(GetAccountListsDocument, options);
}
export type GetAccountListsQueryHookResult = ReturnType<
typeof useGetAccountListsQuery
>;
export type GetAccountListsLazyQueryHookResult = ReturnType<
typeof useGetAccountListsLazyQuery
>;
export type GetAccountListsQueryResult = Apollo.QueryResult<
GetAccountListsQuery,
GetAccountListsQueryVariables
>;
165 changes: 100 additions & 65 deletions pages/accountLists/GetDashboard.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,74 +7,109 @@ export type GetDashboardQueryVariables = Types.Exact<{
accountListId: Types.Scalars['ID']['input'];
}>;


export type GetDashboardQuery = (
{ __typename?: 'Query' }
& { user: (
{ __typename?: 'User' }
& Pick<Types.User, 'firstName'>
), accountList: (
{ __typename?: 'AccountList' }
& Pick<Types.AccountList, 'id' | 'name' | 'monthlyGoal' | 'receivedPledges' | 'totalPledges' | 'currency' | 'balance'>
), contacts: (
{ __typename?: 'ContactConnection' }
& Pick<Types.ContactConnection, 'totalCount'>
), reportsDonationHistories: (
{ __typename?: 'DonationHistories' }
& Pick<Types.DonationHistories, 'averageIgnoreCurrent'>
& { periods: Array<(
{ __typename?: 'DonationHistoriesPeriod' }
& Pick<Types.DonationHistoriesPeriod, 'startDate' | 'convertedTotal'>
& { totals: Array<(
{ __typename?: 'Total' }
& Pick<Types.Total, 'currency' | 'convertedAmount'>
)> }
)> }
) }
);

export type GetDashboardQuery = { __typename?: 'Query' } & {
user: { __typename?: 'User' } & Pick<Types.User, 'firstName'>;
accountList: { __typename?: 'AccountList' } & Pick<
Types.AccountList,
| 'id'
| 'name'
| 'monthlyGoal'
| 'receivedPledges'
| 'totalPledges'
| 'currency'
| 'balance'
>;
contacts: { __typename?: 'ContactConnection' } & Pick<
Types.ContactConnection,
'totalCount'
>;
reportsDonationHistories: { __typename?: 'DonationHistories' } & Pick<
Types.DonationHistories,
'averageIgnoreCurrent'
> & {
periods: Array<
{ __typename?: 'DonationHistoriesPeriod' } & Pick<
Types.DonationHistoriesPeriod,
'startDate' | 'convertedTotal'
> & {
totals: Array<
{ __typename?: 'Total' } & Pick<
Types.Total,
'currency' | 'convertedAmount'
>
>;
}
>;
};
};

export const GetDashboardDocument = gql`
query GetDashboard($accountListId: ID!) {
user {
firstName
}
accountList(id: $accountListId) {
id
name
monthlyGoal
receivedPledges
totalPledges
currency
balance
}
contacts(
accountListId: $accountListId
contactsFilter: {pledgeReceived: NOT_RECEIVED, status: PARTNER_FINANCIAL}
) {
totalCount
}
reportsDonationHistories(accountListId: $accountListId) {
averageIgnoreCurrent
periods {
startDate
convertedTotal
totals {
currency
convertedAmount
query GetDashboard($accountListId: ID!) {
user {
firstName
}
accountList(id: $accountListId) {
id
name
monthlyGoal
receivedPledges
totalPledges
currency
balance
}
contacts(
accountListId: $accountListId
contactsFilter: {
pledgeReceived: NOT_RECEIVED
status: PARTNER_FINANCIAL
}
) {
totalCount
}
reportsDonationHistories(accountListId: $accountListId) {
averageIgnoreCurrent
periods {
startDate
convertedTotal
totals {
currency
convertedAmount
}
}
}
}
`;
export function useGetDashboardQuery(
baseOptions: Apollo.QueryHookOptions<
GetDashboardQuery,
GetDashboardQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<GetDashboardQuery, GetDashboardQueryVariables>(
GetDashboardDocument,
options,
);
}
`;
export function useGetDashboardQuery(baseOptions: Apollo.QueryHookOptions<GetDashboardQuery, GetDashboardQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<GetDashboardQuery, GetDashboardQueryVariables>(GetDashboardDocument, options);
}
export function useGetDashboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<GetDashboardQuery, GetDashboardQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<GetDashboardQuery, GetDashboardQueryVariables>(GetDashboardDocument, options);
}
export type GetDashboardQueryHookResult = ReturnType<typeof useGetDashboardQuery>;
export type GetDashboardLazyQueryHookResult = ReturnType<typeof useGetDashboardLazyQuery>;
export type GetDashboardQueryResult = Apollo.QueryResult<GetDashboardQuery, GetDashboardQueryVariables>;
export function useGetDashboardLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetDashboardQuery,
GetDashboardQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<GetDashboardQuery, GetDashboardQueryVariables>(
GetDashboardDocument,
options,
);
}
export type GetDashboardQueryHookResult = ReturnType<
typeof useGetDashboardQuery
>;
export type GetDashboardLazyQueryHookResult = ReturnType<
typeof useGetDashboardLazyQuery
>;
export type GetDashboardQueryResult = Apollo.QueryResult<
GetDashboardQuery,
GetDashboardQueryVariables
>;
Loading

0 comments on commit 38cc279

Please sign in to comment.