From 38cc2798b86ec5293e877333e10f3f2b858815dc Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Fri, 26 Apr 2024 11:09:39 -0500 Subject: [PATCH] fixup! Commit generated GraphQL files --- pages/GetAccountLists.generated.ts | 96 +- pages/accountLists/GetDashboard.generated.ts | 165 +- .../contacts/Contacts.generated.ts | 488 +- .../GetExpectedMonthlyTotals.generated.ts | 234 +- .../settings/organizations.generated.ts | 98 +- .../[accountListId]/tasks/Tasks.generated.ts | 341 +- .../tools/GetAppeals.generated.ts | 175 +- pages/api/auth/oktaSignIn.generated.ts | 75 +- pages/api/getDefaultAccount.generated.ts | 88 +- pages/api/graphql-rest.page.generated.ts | 7008 +++++++++++++---- .../Activity/Activity.generated.ts | 198 +- .../ActivitySummary.generated.ts | 104 +- .../AppointmentResults.generated.ts | 104 +- .../LoadCoachingDetail.generated.ts | 655 +- .../MonthlyCommitment.generated.ts | 82 +- .../OutstandingCommitments.generated.ts | 244 +- .../OutstandingNeeds.generated.ts | 267 +- .../TagsSummary/TagsSummary.generated.ts | 101 +- .../WeeklyReport/WeeklyReport.generated.ts | 102 +- .../CoachingRow/CoachingRow.generated.ts | 63 +- .../Coaching/LoadCoachingList.generated.ts | 200 +- .../Constants/LoadConstants.generated.ts | 267 +- .../CelebrationItems.generated.ts | 38 +- .../ContactDetailsHeader.generated.ts | 917 ++- .../ContactHeaderAddress.generated.ts | 43 +- .../ContactHeaderEmail.generated.ts | 37 +- .../ContactHeaderNewsletter.generated.ts | 18 +- .../ContactHeaderPhone.generated.ts | 42 +- .../ContactHeaderStatus.generated.ts | 106 +- .../ContactDetailsTab.generated.ts | 543 +- .../CreateContactAddress.generated.ts | 106 +- .../Mailing/ContactMailing.generated.ts | 97 +- .../EditContactAddress.generated.ts | 231 +- .../EditMailingInfoModal.generated.ts | 76 +- .../Mailing/SetPrimaryAddress.generated.ts | 111 +- .../Other/ContactOther.generated.ts | 78 +- .../EditContactOther.generated.ts | 286 +- .../ContactPartnerAccounts.generated.ts | 133 +- .../DeleteDonorAccount.generated.ts | 62 +- .../People/ContactPeople.generated.ts | 568 +- .../EditContactDetails.generated.ts | 493 +- .../PersonModal/PersonModal.generated.ts | 432 +- .../Tags/ContactTags.generated.ts | 149 +- .../ContactDonationsList.generated.ts | 168 +- .../ContactDonationsTab.generated.ts | 402 +- .../DonationsGraph.generated.ts | 135 +- .../EditPartnershipInfoModal.generated.ts | 214 +- .../ContactNotesTab.generated.ts | 147 +- .../ContactReferralTab.generated.ts | 145 +- .../ContactTasksTab.generated.ts | 147 +- .../SetTaskStarred.generated.ts | 73 +- .../UpdateUserOptions.generated.ts | 62 +- .../ContactFlow/GetUserOptions.generated.ts | 75 +- .../ContactRow/ContactRow.generated.ts | 103 +- .../AddTags/ContactsAddTags.generated.ts | 156 +- .../AddToAppealMutation.generated.ts | 67 +- .../GetAppealsForMassAction.generated.ts | 96 +- .../MassActionsUpdateContacts.generated.ts | 70 +- .../Emails/GetEmailsForExporting.generated.ts | 121 +- .../GetContactsForTags.generated.ts | 90 +- .../MassActionsUpdateContacts.generated.ts | 68 +- .../Merge/MassActionsMerge.generated.ts | 181 +- .../MergePeople/MergePeople.generated.ts | 377 +- .../SetContactStarred.generated.ts | 76 +- .../ThisWeek/GetThisWeek.generated.ts | 479 +- .../GetNewsletterContacts.generated.ts | 124 +- .../ExportPhysical.generated.ts | 49 +- .../NewsletterMenu.generated.ts | 70 +- .../GetWeeklyActivity.generated.ts | 197 +- .../WeeklyReportModal.generated.ts | 295 +- .../EditDonationModal.generated.ts | 457 +- .../Primary/TopBar/GetTopBar.generated.ts | 136 +- .../AddDonation/AddDonation.generated.ts | 152 +- .../CreateContact/CreateContact.generated.ts | 67 +- .../NavMenu/GetToolNotifcations.generated.ts | 193 +- ...knowledgeAllUserNotifications.generated.ts | 61 +- .../GetNotificationsQuery.generated.ts | 174 +- .../AcknowledgeUserNotification.generated.ts | 70 +- .../Items/SearchMenu/SearchMenu.generated.ts | 96 +- .../GetDesignationAccounts.generated.ts | 103 +- .../SetActiveDesignationAccount.generated.ts | 63 +- .../GetDonationGraph.generated.ts | 168 +- .../GetDonationsTable.generated.ts | 343 +- .../GetFourteenMonthReport.generated.ts | 229 +- .../PartnerGivingAnalysisReport.generated.ts | 132 +- .../GetEntryHistories.generated.ts | 103 +- .../GetFinancialAccounts.generated.ts | 144 +- .../SetActiveFinancialAccount.generated.ts | 58 +- .../InviteForm/InviteForm.generated.ts | 105 +- .../ManageAccountAccess.generated.ts | 146 +- .../ManageAccounts.generated.ts | 310 +- .../Accounts/MergeForm/MergeForm.generated.ts | 216 +- .../ResetAccount/ResetAccount.generated.ts | 67 +- .../ManageAccountAccess.generated.ts | 140 +- .../DeleteAccountListInvites.generated.ts | 61 +- .../DeleteAccountListsItems.generated.ts | 121 +- .../AccountLists/AccountLists.generated.ts | 308 +- .../Contacts/Contact.generated.ts | 309 +- .../ManageOrganizationAccess.generated.ts | 345 +- .../Chalkline/SendToChalkline.generated.ts | 49 +- .../Google/GoogleAccounts.generated.ts | 187 +- .../Modals/googleIntegrations.generated.ts | 282 +- .../updateGoogleIntegration.generated.ts | 94 +- .../integrations/Key/Key.generated.ts | 78 +- .../Mailchimp/MailchimpAccount.generated.ts | 342 +- .../Organization/Organizations.generated.ts | 453 +- .../PrayerlettersAccount.generated.ts | 180 +- .../notifications/Notifications.generated.ts | 177 +- .../UpdateNotifications.generated.ts | 83 +- .../GetAccountPreferences.generated.ts | 282 +- .../GetPersonalPreferences.generated.ts | 129 +- .../preferences/GetProfileInfo.generated.ts | 448 +- .../preferences/UpdateUser.generated.ts | 184 +- .../UpdateDefaultAccount.generated.ts | 68 +- .../UpdateAccountPreferences.generated.ts | 83 +- .../UpdatePersonalPreferences.generated.ts | 80 +- .../DeleteFilterModal.generated.ts | 58 +- .../Shared/Filters/FilterPanel.generated.ts | 208 +- .../SaveFilterModal.generated.ts | 66 +- .../TagsSection/Chip/DeleteTag.generated.ts | 52 +- .../MultiPageMenuItems.generated.ts | 74 +- .../AddTags/TasksAddTags.generated.ts | 234 +- .../MassActionsUpdateTasks.generated.ts | 170 +- .../Form/CreateTaskComment.generated.ts | 87 +- .../Item/DeleteTaskComment.generated.ts | 56 +- .../Item/UpdateTaskComment.generated.ts | 58 +- .../Comments/TaskListComments.generated.ts | 139 +- .../Form/Complete/CompleteTask.generated.ts | 75 +- .../ContactsAutocomplete.generated.ts | 86 +- .../TagsAutocomplete.generated.ts | 68 +- .../Task/Modal/Form/TaskModal.generated.ts | 266 +- .../Task/Modal/TaskModalTask.generated.ts | 156 +- .../Task/TaskRow/TaskRow.generated.ts | 88 +- .../Appeal/ChangePrimaryAppeal.generated.ts | 67 +- .../Tool/Appeal/CreateAppeal.generated.ts | 64 +- .../Tool/Appeal/GetContactTags.generated.ts | 72 +- .../GetInvalidStatuses.generated.ts | 100 +- .../UpdateInvalidStatus.generated.ts | 67 +- .../GetInvalidEmailAddresses.generated.ts | 168 +- .../GetInvalidAddresses.generated.ts | 175 +- .../GetInvalidPhoneNumbers.generated.ts | 168 +- .../GetInvalidNewsletter.generated.ts | 196 +- .../UpdateNewsletter.generated.ts | 72 +- .../GetContactDuplicates.generated.ts | 189 +- .../GetPersonDuplicates.generated.ts | 225 +- src/components/User/GetUser.generated.ts | 113 +- .../DonorAccountAutocomplete.generated.ts | 78 +- src/hooks/GetIdsForMassSelection.generated.ts | 249 +- 148 files changed, 21031 insertions(+), 10897 deletions(-) diff --git a/pages/GetAccountLists.generated.ts b/pages/GetAccountLists.generated.ts index 522d11b78..88684fbc4 100644 --- a/pages/GetAccountLists.generated.ts +++ b/pages/GetAccountLists.generated.ts @@ -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 - )> } - ) } -); +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( + GetAccountListsDocument, + options, + ); } - `; -export function useGetAccountListsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListsDocument, options); - } -export function useGetAccountListsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListsDocument, options); - } -export type GetAccountListsQueryHookResult = ReturnType; -export type GetAccountListsLazyQueryHookResult = ReturnType; -export type GetAccountListsQueryResult = Apollo.QueryResult; \ No newline at end of file +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 +>; diff --git a/pages/accountLists/GetDashboard.generated.ts b/pages/accountLists/GetDashboard.generated.ts index b9f29f723..c3cb055bb 100644 --- a/pages/accountLists/GetDashboard.generated.ts +++ b/pages/accountLists/GetDashboard.generated.ts @@ -7,74 +7,109 @@ export type GetDashboardQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetDashboardQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - ), accountList: ( - { __typename?: 'AccountList' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & Pick - ), reportsDonationHistories: ( - { __typename?: 'DonationHistories' } - & Pick - & { periods: Array<( - { __typename?: 'DonationHistoriesPeriod' } - & Pick - & { totals: Array<( - { __typename?: 'Total' } - & Pick - )> } - )> } - ) } -); - +export type GetDashboardQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick; + 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( + GetDashboardDocument, + options, + ); } - `; -export function useGetDashboardQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDashboardDocument, options); - } -export function useGetDashboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDashboardDocument, options); - } -export type GetDashboardQueryHookResult = ReturnType; -export type GetDashboardLazyQueryHookResult = ReturnType; -export type GetDashboardQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetDashboardLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDashboardQuery, + GetDashboardQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetDashboardDocument, + options, + ); +} +export type GetDashboardQueryHookResult = ReturnType< + typeof useGetDashboardQuery +>; +export type GetDashboardLazyQueryHookResult = ReturnType< + typeof useGetDashboardLazyQuery +>; +export type GetDashboardQueryResult = Apollo.QueryResult< + GetDashboardQuery, + GetDashboardQueryVariables +>; diff --git a/pages/accountLists/[accountListId]/contacts/Contacts.generated.ts b/pages/accountLists/[accountListId]/contacts/Contacts.generated.ts index 94b5799b5..bcf36a5f4 100644 --- a/pages/accountLists/[accountListId]/contacts/Contacts.generated.ts +++ b/pages/accountLists/[accountListId]/contacts/Contacts.generated.ts @@ -2,7 +2,10 @@ import * as Types from '../../../../src/graphql/types.generated'; import { gql } from '@apollo/client'; import { ContactRowFragmentDoc } from '../../../../src/components/Contacts/ContactRow/ContactRow.generated'; -import { FilterPanelGroupFragmentDoc, UserOptionFragmentDoc } from '../../../../src/components/Shared/Filters/FilterPanel.generated'; +import { + FilterPanelGroupFragmentDoc, + UserOptionFragmentDoc, +} from '../../../../src/components/Shared/Filters/FilterPanel.generated'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type ContactsQueryVariables = Types.Exact<{ @@ -12,189 +15,336 @@ export type ContactsQueryVariables = Types.Exact<{ first?: Types.InputMaybe; }>; - -export type ContactsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - )> } - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ), allContacts: ( - { __typename?: 'ContactConnection' } - & Pick - ) } -); +export type ContactsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'avatar' + | 'name' + | 'status' + | 'pledgeAmount' + | 'pledgeFrequency' + | 'pledgeCurrency' + | 'pledgeReceived' + | 'lateAt' + | 'sendNewsletter' + | 'starred' + | 'uncompletedTasksCount' + > & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'id' + | 'street' + | 'city' + | 'state' + | 'postalCode' + | 'country' + | 'geo' + | 'source' + | 'createdAt' + > + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'anniversaryMonth' + | 'anniversaryDay' + | 'birthdayDay' + | 'birthdayMonth' + > + >; + }; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + allContacts: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + >; +}; export type ContactFiltersQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type ContactFiltersQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { contactFilterGroups: Array<( - { __typename?: 'FilterGroup' } - & Pick - & { filters: Array<( - { __typename: 'CheckboxFilter' } - & Pick - ) | ( - { __typename: 'DaterangeFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'MultiselectFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'NumericRangeFilter' } - & Pick - ) | ( - { __typename: 'RadioFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'TextFilter' } - & Pick - & { options?: Types.Maybe - )>> } - )> } - )>, partnerGivingAnalysisFilterGroups: Array<( - { __typename?: 'FilterGroup' } - & Pick - & { filters: Array<( - { __typename: 'CheckboxFilter' } - & Pick - ) | ( - { __typename: 'DaterangeFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'MultiselectFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'NumericRangeFilter' } - & Pick - ) | ( - { __typename: 'RadioFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'TextFilter' } - & Pick - & { options?: Types.Maybe - )>> } - )> } - )> } - ), userOptions: Array<( - { __typename?: 'Option' } - & Pick - )> } -); - +export type ContactFiltersQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' + > & { + contactFilterGroups: Array< + { __typename?: 'FilterGroup' } & Pick< + Types.FilterGroup, + 'name' | 'featured' + > & { + filters: Array< + | ({ __typename: 'CheckboxFilter' } & Pick< + Types.CheckboxFilter, + 'filterKey' | 'title' + >) + | ({ __typename: 'DaterangeFilter' } & Pick< + Types.DaterangeFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'DateRangeOption' } & Pick< + Types.DateRangeOption, + 'name' | 'rangeEnd' | 'rangeStart' + > + > + >; + }) + | ({ __typename: 'MultiselectFilter' } & Pick< + Types.MultiselectFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'NumericRangeFilter' } & Pick< + Types.NumericRangeFilter, + | 'min' + | 'minLabel' + | 'max' + | 'maxLabel' + | 'title' + | 'filterKey' + >) + | ({ __typename: 'RadioFilter' } & Pick< + Types.RadioFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'TextFilter' } & Pick< + Types.TextFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + >; + } + >; + partnerGivingAnalysisFilterGroups: Array< + { __typename?: 'FilterGroup' } & Pick< + Types.FilterGroup, + 'name' | 'featured' + > & { + filters: Array< + | ({ __typename: 'CheckboxFilter' } & Pick< + Types.CheckboxFilter, + 'filterKey' | 'title' + >) + | ({ __typename: 'DaterangeFilter' } & Pick< + Types.DaterangeFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'DateRangeOption' } & Pick< + Types.DateRangeOption, + 'name' | 'rangeEnd' | 'rangeStart' + > + > + >; + }) + | ({ __typename: 'MultiselectFilter' } & Pick< + Types.MultiselectFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'NumericRangeFilter' } & Pick< + Types.NumericRangeFilter, + | 'min' + | 'minLabel' + | 'max' + | 'maxLabel' + | 'title' + | 'filterKey' + >) + | ({ __typename: 'RadioFilter' } & Pick< + Types.RadioFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'TextFilter' } & Pick< + Types.TextFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + >; + } + >; + }; + userOptions: Array< + { __typename?: 'Option' } & Pick + >; +}; export const ContactsDocument = gql` - query Contacts($accountListId: ID!, $contactsFilters: ContactFilterSetInput, $after: String, $first: Int) { - contacts( - accountListId: $accountListId - contactsFilter: $contactsFilters - after: $after - first: $first + query Contacts( + $accountListId: ID! + $contactsFilters: ContactFilterSetInput + $after: String + $first: Int ) { - nodes { - id - avatar - ...ContactRow + contacts( + accountListId: $accountListId + contactsFilter: $contactsFilters + after: $after + first: $first + ) { + nodes { + id + avatar + ...ContactRow + } + totalCount + pageInfo { + endCursor + hasNextPage + } } - totalCount - pageInfo { - endCursor - hasNextPage + allContacts: contacts(accountListId: $accountListId, after: $after) { + totalCount } } - allContacts: contacts(accountListId: $accountListId, after: $after) { - totalCount - } + ${ContactRowFragmentDoc} +`; +export function useContactsQuery( + baseOptions: Apollo.QueryHookOptions, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ContactsDocument, + options, + ); +} +export function useContactsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactsQuery, + ContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + ContactsDocument, + options, + ); } - ${ContactRowFragmentDoc}`; -export function useContactsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactsDocument, options); - } -export function useContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactsDocument, options); - } export type ContactsQueryHookResult = ReturnType; -export type ContactsLazyQueryHookResult = ReturnType; -export type ContactsQueryResult = Apollo.QueryResult; +export type ContactsLazyQueryHookResult = ReturnType< + typeof useContactsLazyQuery +>; +export type ContactsQueryResult = Apollo.QueryResult< + ContactsQuery, + ContactsQueryVariables +>; export const ContactFiltersDocument = gql` - query ContactFilters($accountListId: ID!) { - accountList(id: $accountListId) { - id - contactFilterGroups { - ...FilterPanelGroup + query ContactFilters($accountListId: ID!) { + accountList(id: $accountListId) { + id + contactFilterGroups { + ...FilterPanelGroup + } + partnerGivingAnalysisFilterGroups { + ...FilterPanelGroup + } } - partnerGivingAnalysisFilterGroups { - ...FilterPanelGroup + userOptions { + ...UserOption } } - userOptions { - ...UserOption - } + ${FilterPanelGroupFragmentDoc} + ${UserOptionFragmentDoc} +`; +export function useContactFiltersQuery( + baseOptions: Apollo.QueryHookOptions< + ContactFiltersQuery, + ContactFiltersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ContactFiltersDocument, + options, + ); } - ${FilterPanelGroupFragmentDoc} -${UserOptionFragmentDoc}`; -export function useContactFiltersQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactFiltersDocument, options); - } -export function useContactFiltersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactFiltersDocument, options); - } -export type ContactFiltersQueryHookResult = ReturnType; -export type ContactFiltersLazyQueryHookResult = ReturnType; -export type ContactFiltersQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useContactFiltersLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactFiltersQuery, + ContactFiltersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + ContactFiltersDocument, + options, + ); +} +export type ContactFiltersQueryHookResult = ReturnType< + typeof useContactFiltersQuery +>; +export type ContactFiltersLazyQueryHookResult = ReturnType< + typeof useContactFiltersLazyQuery +>; +export type ContactFiltersQueryResult = Apollo.QueryResult< + ContactFiltersQuery, + ContactFiltersQueryVariables +>; diff --git a/pages/accountLists/[accountListId]/reports/GetExpectedMonthlyTotals.generated.ts b/pages/accountLists/[accountListId]/reports/GetExpectedMonthlyTotals.generated.ts index be1cec543..d4e4b46a9 100644 --- a/pages/accountLists/[accountListId]/reports/GetExpectedMonthlyTotals.generated.ts +++ b/pages/accountLists/[accountListId]/reports/GetExpectedMonthlyTotals.generated.ts @@ -5,95 +5,171 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type GetExpectedMonthlyTotalsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - designationAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + designationAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; }>; +export type GetExpectedMonthlyTotalsQuery = { __typename?: 'Query' } & { + expectedMonthlyTotalReport: { + __typename?: 'ExpectedMonthlyTotalReport'; + } & Pick & { + received: { __typename?: 'ExpectedMonthlyTotalGroup' } & Pick< + Types.ExpectedMonthlyTotalGroup, + 'total' + > & { + donations: Array< + { __typename?: 'ExpectedMonthlyTotalDonation' } & Pick< + Types.ExpectedMonthlyTotalDonation, + | 'contactId' + | 'contactName' + | 'contactStatus' + | 'convertedAmount' + | 'convertedCurrency' + | 'donationAmount' + | 'donationCurrency' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + > + >; + }; + likely: { __typename?: 'ExpectedMonthlyTotalGroup' } & Pick< + Types.ExpectedMonthlyTotalGroup, + 'total' + > & { + donations: Array< + { __typename?: 'ExpectedMonthlyTotalDonation' } & Pick< + Types.ExpectedMonthlyTotalDonation, + | 'contactId' + | 'contactName' + | 'contactStatus' + | 'convertedAmount' + | 'convertedCurrency' + | 'donationAmount' + | 'donationCurrency' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + > + >; + }; + unlikely: { __typename?: 'ExpectedMonthlyTotalGroup' } & Pick< + Types.ExpectedMonthlyTotalGroup, + 'total' + > & { + donations: Array< + { __typename?: 'ExpectedMonthlyTotalDonation' } & Pick< + Types.ExpectedMonthlyTotalDonation, + | 'contactId' + | 'contactName' + | 'contactStatus' + | 'convertedAmount' + | 'convertedCurrency' + | 'donationAmount' + | 'donationCurrency' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + > + >; + }; + }; +}; -export type GetExpectedMonthlyTotalsQuery = ( - { __typename?: 'Query' } - & { expectedMonthlyTotalReport: ( - { __typename?: 'ExpectedMonthlyTotalReport' } - & Pick - & { received: ( - { __typename?: 'ExpectedMonthlyTotalGroup' } - & Pick - & { donations: Array<( - { __typename?: 'ExpectedMonthlyTotalDonation' } - & Pick - )> } - ), likely: ( - { __typename?: 'ExpectedMonthlyTotalGroup' } - & Pick - & { donations: Array<( - { __typename?: 'ExpectedMonthlyTotalDonation' } - & Pick - )> } - ), unlikely: ( - { __typename?: 'ExpectedMonthlyTotalGroup' } - & Pick - & { donations: Array<( - { __typename?: 'ExpectedMonthlyTotalDonation' } - & Pick - )> } - ) } - ) } -); - -export type ExpectedDonationRowFragment = ( - { __typename?: 'ExpectedMonthlyTotalDonation' } - & Pick -); +export type ExpectedDonationRowFragment = { + __typename?: 'ExpectedMonthlyTotalDonation'; +} & Pick< + Types.ExpectedMonthlyTotalDonation, + | 'contactId' + | 'contactName' + | 'contactStatus' + | 'convertedAmount' + | 'convertedCurrency' + | 'donationAmount' + | 'donationCurrency' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' +>; export const ExpectedDonationRowFragmentDoc = gql` - fragment ExpectedDonationRow on ExpectedMonthlyTotalDonation { - contactId - contactName - contactStatus - convertedAmount - convertedCurrency - donationAmount - donationCurrency - pledgeAmount - pledgeCurrency - pledgeFrequency -} - `; + fragment ExpectedDonationRow on ExpectedMonthlyTotalDonation { + contactId + contactName + contactStatus + convertedAmount + convertedCurrency + donationAmount + donationCurrency + pledgeAmount + pledgeCurrency + pledgeFrequency + } +`; export const GetExpectedMonthlyTotalsDocument = gql` - query GetExpectedMonthlyTotals($accountListId: ID!, $designationAccountIds: [ID!]) { - expectedMonthlyTotalReport( - accountListId: $accountListId - designationAccountId: $designationAccountIds + query GetExpectedMonthlyTotals( + $accountListId: ID! + $designationAccountIds: [ID!] ) { - received { - donations { - ...ExpectedDonationRow + expectedMonthlyTotalReport( + accountListId: $accountListId + designationAccountId: $designationAccountIds + ) { + received { + donations { + ...ExpectedDonationRow + } + total } - total - } - likely { - donations { - ...ExpectedDonationRow + likely { + donations { + ...ExpectedDonationRow + } + total } - total - } - unlikely { - donations { - ...ExpectedDonationRow + unlikely { + donations { + ...ExpectedDonationRow + } + total } - total + currency } - currency } + ${ExpectedDonationRowFragmentDoc} +`; +export function useGetExpectedMonthlyTotalsQuery( + baseOptions: Apollo.QueryHookOptions< + GetExpectedMonthlyTotalsQuery, + GetExpectedMonthlyTotalsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetExpectedMonthlyTotalsQuery, + GetExpectedMonthlyTotalsQueryVariables + >(GetExpectedMonthlyTotalsDocument, options); } - ${ExpectedDonationRowFragmentDoc}`; -export function useGetExpectedMonthlyTotalsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetExpectedMonthlyTotalsDocument, options); - } -export function useGetExpectedMonthlyTotalsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetExpectedMonthlyTotalsDocument, options); - } -export type GetExpectedMonthlyTotalsQueryHookResult = ReturnType; -export type GetExpectedMonthlyTotalsLazyQueryHookResult = ReturnType; -export type GetExpectedMonthlyTotalsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetExpectedMonthlyTotalsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetExpectedMonthlyTotalsQuery, + GetExpectedMonthlyTotalsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetExpectedMonthlyTotalsQuery, + GetExpectedMonthlyTotalsQueryVariables + >(GetExpectedMonthlyTotalsDocument, options); +} +export type GetExpectedMonthlyTotalsQueryHookResult = ReturnType< + typeof useGetExpectedMonthlyTotalsQuery +>; +export type GetExpectedMonthlyTotalsLazyQueryHookResult = ReturnType< + typeof useGetExpectedMonthlyTotalsLazyQuery +>; +export type GetExpectedMonthlyTotalsQueryResult = Apollo.QueryResult< + GetExpectedMonthlyTotalsQuery, + GetExpectedMonthlyTotalsQueryVariables +>; diff --git a/pages/accountLists/[accountListId]/settings/organizations.generated.ts b/pages/accountLists/[accountListId]/settings/organizations.generated.ts index 2abb88fb5..676af8220 100644 --- a/pages/accountLists/[accountListId]/settings/organizations.generated.ts +++ b/pages/accountLists/[accountListId]/settings/organizations.generated.ts @@ -3,48 +3,72 @@ 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 SettingsOrganizationFragment = ( - { __typename?: 'Organizations' } - & Pick -); +export type SettingsOrganizationFragment = { + __typename?: 'Organizations'; +} & Pick; -export type OrganizationsQueryVariables = Types.Exact<{ [key: string]: never; }>; +export type OrganizationsQueryVariables = Types.Exact<{ [key: string]: never }>; - -export type OrganizationsQuery = ( - { __typename?: 'Query' } - & { getOrganizations: ( - { __typename?: 'AllOrganizations' } - & { organizations: Array - )>> } - ) } -); +export type OrganizationsQuery = { __typename?: 'Query' } & { + getOrganizations: { __typename?: 'AllOrganizations' } & { + organizations: Array< + Types.Maybe< + { __typename?: 'Organizations' } & Pick< + Types.Organizations, + 'id' | 'name' + > + > + >; + }; +}; export const SettingsOrganizationFragmentDoc = gql` - fragment SettingsOrganization on Organizations { - id - name -} - `; + fragment SettingsOrganization on Organizations { + id + name + } +`; export const OrganizationsDocument = gql` - query Organizations { - getOrganizations { - organizations { - ...SettingsOrganization + query Organizations { + getOrganizations { + organizations { + ...SettingsOrganization + } } } + ${SettingsOrganizationFragmentDoc} +`; +export function useOrganizationsQuery( + baseOptions?: Apollo.QueryHookOptions< + OrganizationsQuery, + OrganizationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + OrganizationsDocument, + options, + ); } - ${SettingsOrganizationFragmentDoc}`; -export function useOrganizationsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrganizationsDocument, options); - } -export function useOrganizationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrganizationsDocument, options); - } -export type OrganizationsQueryHookResult = ReturnType; -export type OrganizationsLazyQueryHookResult = ReturnType; -export type OrganizationsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useOrganizationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + OrganizationsQuery, + OrganizationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + OrganizationsDocument, + options, + ); +} +export type OrganizationsQueryHookResult = ReturnType< + typeof useOrganizationsQuery +>; +export type OrganizationsLazyQueryHookResult = ReturnType< + typeof useOrganizationsLazyQuery +>; +export type OrganizationsQueryResult = Apollo.QueryResult< + OrganizationsQuery, + OrganizationsQueryVariables +>; diff --git a/pages/accountLists/[accountListId]/tasks/Tasks.generated.ts b/pages/accountLists/[accountListId]/tasks/Tasks.generated.ts index 2333f247d..62bb1b797 100644 --- a/pages/accountLists/[accountListId]/tasks/Tasks.generated.ts +++ b/pages/accountLists/[accountListId]/tasks/Tasks.generated.ts @@ -2,7 +2,10 @@ import * as Types from '../../../../src/graphql/types.generated'; import { gql } from '@apollo/client'; import { TaskRowFragmentDoc } from '../../../../src/components/Task/TaskRow/TaskRow.generated'; -import { FilterPanelGroupFragmentDoc, UserOptionFragmentDoc } from '../../../../src/components/Shared/Filters/FilterPanel.generated'; +import { + FilterPanelGroupFragmentDoc, + UserOptionFragmentDoc, +} from '../../../../src/components/Shared/Filters/FilterPanel.generated'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type TasksQueryVariables = Types.Exact<{ @@ -11,144 +14,234 @@ export type TasksQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type TasksQuery = ( - { __typename?: 'Query' } - & { tasks: ( - { __typename?: 'TaskConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ), allTasks: ( - { __typename?: 'TaskConnection' } - & Pick - ) } -); +export type TasksQuery = { __typename?: 'Query' } & { + tasks: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' + > & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + allTasks: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; +}; export type TaskFiltersQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type TaskFiltersQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { taskFilterGroups: Array<( - { __typename?: 'FilterGroup' } - & Pick - & { filters: Array<( - { __typename: 'CheckboxFilter' } - & Pick - ) | ( - { __typename: 'DaterangeFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'MultiselectFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'NumericRangeFilter' } - & Pick - ) | ( - { __typename: 'RadioFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'TextFilter' } - & Pick - & { options?: Types.Maybe - )>> } - )> } - )> } - ), userOptions: Array<( - { __typename?: 'Option' } - & Pick - )> } -); - +export type TaskFiltersQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' + > & { + taskFilterGroups: Array< + { __typename?: 'FilterGroup' } & Pick< + Types.FilterGroup, + 'name' | 'featured' + > & { + filters: Array< + | ({ __typename: 'CheckboxFilter' } & Pick< + Types.CheckboxFilter, + 'filterKey' | 'title' + >) + | ({ __typename: 'DaterangeFilter' } & Pick< + Types.DaterangeFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'DateRangeOption' } & Pick< + Types.DateRangeOption, + 'name' | 'rangeEnd' | 'rangeStart' + > + > + >; + }) + | ({ __typename: 'MultiselectFilter' } & Pick< + Types.MultiselectFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'NumericRangeFilter' } & Pick< + Types.NumericRangeFilter, + | 'min' + | 'minLabel' + | 'max' + | 'maxLabel' + | 'title' + | 'filterKey' + >) + | ({ __typename: 'RadioFilter' } & Pick< + Types.RadioFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'TextFilter' } & Pick< + Types.TextFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + >; + } + >; + }; + userOptions: Array< + { __typename?: 'Option' } & Pick + >; +}; export const TasksDocument = gql` - query Tasks($accountListId: ID!, $tasksFilter: TaskFilterSetInput, $after: String) { - tasks(accountListId: $accountListId, tasksFilter: $tasksFilter, after: $after) { - nodes { - ...TaskRow + query Tasks( + $accountListId: ID! + $tasksFilter: TaskFilterSetInput + $after: String + ) { + tasks( + accountListId: $accountListId + tasksFilter: $tasksFilter + after: $after + ) { + nodes { + ...TaskRow + } + totalCount + pageInfo { + endCursor + hasNextPage + } } - totalCount - pageInfo { - endCursor - hasNextPage + allTasks: tasks(accountListId: $accountListId) { + totalCount } } - allTasks: tasks(accountListId: $accountListId) { - totalCount - } + ${TaskRowFragmentDoc} +`; +export function useTasksQuery( + baseOptions: Apollo.QueryHookOptions, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + TasksDocument, + options, + ); +} +export function useTasksLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + TasksDocument, + options, + ); } - ${TaskRowFragmentDoc}`; -export function useTasksQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TasksDocument, options); - } -export function useTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TasksDocument, options); - } export type TasksQueryHookResult = ReturnType; export type TasksLazyQueryHookResult = ReturnType; -export type TasksQueryResult = Apollo.QueryResult; +export type TasksQueryResult = Apollo.QueryResult< + TasksQuery, + TasksQueryVariables +>; export const TaskFiltersDocument = gql` - query TaskFilters($accountListId: ID!) { - accountList(id: $accountListId) { - id - taskFilterGroups { - ...FilterPanelGroup + query TaskFilters($accountListId: ID!) { + accountList(id: $accountListId) { + id + taskFilterGroups { + ...FilterPanelGroup + } + } + userOptions { + ...UserOption } } - userOptions { - ...UserOption - } + ${FilterPanelGroupFragmentDoc} + ${UserOptionFragmentDoc} +`; +export function useTaskFiltersQuery( + baseOptions: Apollo.QueryHookOptions< + TaskFiltersQuery, + TaskFiltersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + TaskFiltersDocument, + options, + ); +} +export function useTaskFiltersLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + TaskFiltersQuery, + TaskFiltersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + TaskFiltersDocument, + options, + ); } - ${FilterPanelGroupFragmentDoc} -${UserOptionFragmentDoc}`; -export function useTaskFiltersQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TaskFiltersDocument, options); - } -export function useTaskFiltersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TaskFiltersDocument, options); - } export type TaskFiltersQueryHookResult = ReturnType; -export type TaskFiltersLazyQueryHookResult = ReturnType; -export type TaskFiltersQueryResult = Apollo.QueryResult; \ No newline at end of file +export type TaskFiltersLazyQueryHookResult = ReturnType< + typeof useTaskFiltersLazyQuery +>; +export type TaskFiltersQueryResult = Apollo.QueryResult< + TaskFiltersQuery, + TaskFiltersQueryVariables +>; diff --git a/pages/accountLists/[accountListId]/tools/GetAppeals.generated.ts b/pages/accountLists/[accountListId]/tools/GetAppeals.generated.ts index 5dbe3eee4..4d769860e 100644 --- a/pages/accountLists/[accountListId]/tools/GetAppeals.generated.ts +++ b/pages/accountLists/[accountListId]/tools/GetAppeals.generated.ts @@ -8,75 +8,124 @@ export type GetAppealsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; +export type GetAppealsQuery = { __typename?: 'Query' } & { + primaryAppeal: { __typename?: 'AppealConnection' } & { + nodes: Array< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + | 'id' + | 'name' + | 'amount' + | 'amountCurrency' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountTotal' + > + >; + }; + regularAppeals: { __typename?: 'AppealConnection' } & { + nodes: Array< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + | 'id' + | 'name' + | 'amount' + | 'amountCurrency' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountTotal' + > + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; -export type GetAppealsQuery = ( - { __typename?: 'Query' } - & { primaryAppeal: ( - { __typename?: 'AppealConnection' } - & { nodes: Array<( - { __typename?: 'Appeal' } - & Pick - )> } - ), regularAppeals: ( - { __typename?: 'AppealConnection' } - & { nodes: Array<( - { __typename?: 'Appeal' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - -export type AppealFieldsFragment = ( - { __typename?: 'Appeal' } - & Pick -); +export type AppealFieldsFragment = { __typename?: 'Appeal' } & Pick< + Types.Appeal, + | 'id' + | 'name' + | 'amount' + | 'amountCurrency' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountTotal' +>; export const AppealFieldsFragmentDoc = gql` - fragment AppealFields on Appeal { - id - name - amount - amountCurrency - pledgesAmountNotReceivedNotProcessed - pledgesAmountReceivedNotProcessed - pledgesAmountProcessed - pledgesAmountTotal -} - `; -export const GetAppealsDocument = gql` - query GetAppeals($accountListId: ID!, $after: String) { - primaryAppeal: appeals(accountListId: $accountListId, primary: true, first: 1) { - nodes { - ...AppealFields - } + fragment AppealFields on Appeal { + id + name + amount + amountCurrency + pledgesAmountNotReceivedNotProcessed + pledgesAmountReceivedNotProcessed + pledgesAmountProcessed + pledgesAmountTotal } - regularAppeals: appeals( - accountListId: $accountListId - primary: false - first: 50 - after: $after - ) { - nodes { - ...AppealFields +`; +export const GetAppealsDocument = gql` + query GetAppeals($accountListId: ID!, $after: String) { + primaryAppeal: appeals( + accountListId: $accountListId + primary: true + first: 1 + ) { + nodes { + ...AppealFields + } } - pageInfo { - endCursor - hasNextPage + regularAppeals: appeals( + accountListId: $accountListId + primary: false + first: 50 + after: $after + ) { + nodes { + ...AppealFields + } + pageInfo { + endCursor + hasNextPage + } } } + ${AppealFieldsFragmentDoc} +`; +export function useGetAppealsQuery( + baseOptions: Apollo.QueryHookOptions< + GetAppealsQuery, + GetAppealsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetAppealsDocument, + options, + ); +} +export function useGetAppealsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAppealsQuery, + GetAppealsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetAppealsDocument, + options, + ); } - ${AppealFieldsFragmentDoc}`; -export function useGetAppealsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAppealsDocument, options); - } -export function useGetAppealsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAppealsDocument, options); - } export type GetAppealsQueryHookResult = ReturnType; -export type GetAppealsLazyQueryHookResult = ReturnType; -export type GetAppealsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetAppealsLazyQueryHookResult = ReturnType< + typeof useGetAppealsLazyQuery +>; +export type GetAppealsQueryResult = Apollo.QueryResult< + GetAppealsQuery, + GetAppealsQueryVariables +>; diff --git a/pages/api/auth/oktaSignIn.generated.ts b/pages/api/auth/oktaSignIn.generated.ts index 0cb1c326a..6d0648658 100644 --- a/pages/api/auth/oktaSignIn.generated.ts +++ b/pages/api/auth/oktaSignIn.generated.ts @@ -7,37 +7,54 @@ export type OktaSignInMutationVariables = Types.Exact<{ accessToken: Types.Scalars['String']['input']; }>; - -export type OktaSignInMutation = ( - { __typename?: 'Mutation' } - & { oktaSignIn?: Types.Maybe<( - { __typename?: 'OktaSignInMutationPayload' } - & Pick - & { user?: Types.Maybe<( - { __typename?: 'User' } - & Pick - & { name: Types.User['firstName'] } - )> } - )> } -); - +export type OktaSignInMutation = { __typename?: 'Mutation' } & { + oktaSignIn?: Types.Maybe< + { __typename?: 'OktaSignInMutationPayload' } & Pick< + Types.OktaSignInMutationPayload, + 'token' + > & { + user?: Types.Maybe< + { __typename?: 'User' } & Pick & { + name: Types.User['firstName']; + } + >; + } + >; +}; export const OktaSignInDocument = gql` - mutation oktaSignIn($accessToken: String!) { - oktaSignIn(input: {accessToken: $accessToken}) { - token - user { - id - name: firstName + mutation oktaSignIn($accessToken: String!) { + oktaSignIn(input: { accessToken: $accessToken }) { + token + user { + id + name: firstName + } } } +`; +export type OktaSignInMutationFn = Apollo.MutationFunction< + OktaSignInMutation, + OktaSignInMutationVariables +>; +export function useOktaSignInMutation( + baseOptions?: Apollo.MutationHookOptions< + OktaSignInMutation, + OktaSignInMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + OktaSignInDocument, + options, + ); } - `; -export type OktaSignInMutationFn = Apollo.MutationFunction; -export function useOktaSignInMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(OktaSignInDocument, options); - } -export type OktaSignInMutationHookResult = ReturnType; -export type OktaSignInMutationResult = Apollo.MutationResult; -export type OktaSignInMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type OktaSignInMutationHookResult = ReturnType< + typeof useOktaSignInMutation +>; +export type OktaSignInMutationResult = + Apollo.MutationResult; +export type OktaSignInMutationOptions = Apollo.BaseMutationOptions< + OktaSignInMutation, + OktaSignInMutationVariables +>; diff --git a/pages/api/getDefaultAccount.generated.ts b/pages/api/getDefaultAccount.generated.ts index 8c184b31b..cd6192395 100644 --- a/pages/api/getDefaultAccount.generated.ts +++ b/pages/api/getDefaultAccount.generated.ts @@ -3,44 +3,62 @@ 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 GetDefaultAccountQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetDefaultAccountQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - ), accountLists: ( - { __typename?: 'AccountListConnection' } - & { nodes: Array<( - { __typename?: 'AccountList' } - & Pick - )> } - ) } -); +export type GetDefaultAccountQueryVariables = Types.Exact<{ + [key: string]: never; +}>; +export type GetDefaultAccountQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick; + accountLists: { __typename?: 'AccountListConnection' } & { + nodes: Array< + { __typename?: 'AccountList' } & Pick + >; + }; +}; export const GetDefaultAccountDocument = gql` - query GetDefaultAccount { - user { - defaultAccountList - } - accountLists(first: 1) { - nodes { - id + query GetDefaultAccount { + user { + defaultAccountList + } + accountLists(first: 1) { + nodes { + id + } } } +`; +export function useGetDefaultAccountQuery( + baseOptions?: Apollo.QueryHookOptions< + GetDefaultAccountQuery, + GetDefaultAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetDefaultAccountQuery, + GetDefaultAccountQueryVariables + >(GetDefaultAccountDocument, options); } - `; -export function useGetDefaultAccountQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDefaultAccountDocument, options); - } -export function useGetDefaultAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDefaultAccountDocument, options); - } -export type GetDefaultAccountQueryHookResult = ReturnType; -export type GetDefaultAccountLazyQueryHookResult = ReturnType; -export type GetDefaultAccountQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetDefaultAccountLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDefaultAccountQuery, + GetDefaultAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDefaultAccountQuery, + GetDefaultAccountQueryVariables + >(GetDefaultAccountDocument, options); +} +export type GetDefaultAccountQueryHookResult = ReturnType< + typeof useGetDefaultAccountQuery +>; +export type GetDefaultAccountLazyQueryHookResult = ReturnType< + typeof useGetDefaultAccountLazyQuery +>; +export type GetDefaultAccountQueryResult = Apollo.QueryResult< + GetDefaultAccountQuery, + GetDefaultAccountQueryVariables +>; diff --git a/pages/api/graphql-rest.page.generated.ts b/pages/api/graphql-rest.page.generated.ts index fee6cb829..127428f30 100644 --- a/pages/api/graphql-rest.page.generated.ts +++ b/pages/api/graphql-rest.page.generated.ts @@ -1,24 +1,43 @@ -import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql'; +import { + GraphQLResolveInfo, + GraphQLScalarType, + GraphQLScalarTypeConfig, +} from 'graphql'; import { Context } from './graphql-rest.page'; export type Maybe = T | null; export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; -export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; -export type RequireFields = Omit & { [P in K]-?: NonNullable }; +export type Exact = { + [K in keyof T]: T[K]; +}; +export type MakeOptional = Omit & { + [SubKey in K]?: Maybe; +}; +export type MakeMaybe = Omit & { + [SubKey in K]: Maybe; +}; +export type MakeEmpty< + T extends { [key: string]: unknown }, + K extends keyof T, +> = { [_ in K]?: never }; +export type Incremental = + | T + | { + [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never; + }; +export type RequireFields = Omit & { + [P in K]-?: NonNullable; +}; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string; output: string; } - String: { input: string; output: string; } - Boolean: { input: boolean; output: boolean; } - Int: { input: number; output: number; } - Float: { input: number; output: number; } + ID: { input: string; output: string }; + String: { input: string; output: string }; + Boolean: { input: boolean; output: boolean }; + Int: { input: number; output: number }; + Float: { input: number; output: number }; /** An ISO 8601-encoded date */ - ISO8601Date: { input: string; output: string; } + ISO8601Date: { input: string; output: string }; /** An ISO 8601-encoded datetime */ - ISO8601DateTime: { input: string; output: string; } + ISO8601DateTime: { input: string; output: string }; }; export type AccountList = { @@ -52,12 +71,10 @@ export type AccountList = { weeksOnMpd: Scalars['Int']['output']; }; - export type AccountListChurchesArgs = { search?: InputMaybe; }; - export type AccountListCoachesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -65,7 +82,6 @@ export type AccountListCoachesArgs = { last?: InputMaybe; }; - export type AccountListContactsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -74,7 +90,6 @@ export type AccountListContactsArgs = { last?: InputMaybe; }; - export type AccountListUsersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -438,7 +453,7 @@ export enum ActionEnum { /** this action should navigate to a specific location (use args to determine destination) */ Go = 'go', /** this action should dispatch an event to adobe analytics (use args to determine event to dispatch) */ - Track = 'track' + Track = 'track', } export enum ActionStyleEnum { @@ -461,7 +476,7 @@ export enum ActionStyleEnum { /** announcement should be colored as a success button */ Success = 'success', /** action should be colored as a warning button */ - Warning = 'warning' + Warning = 'warning', } export type ActivityResults = { @@ -501,7 +516,7 @@ export enum ActivityTypeEnum { TalkToInPerson = 'TALK_TO_IN_PERSON', TextMessage = 'TEXT_MESSAGE', Thank = 'THANK', - ToDo = 'TO_DO' + ToDo = 'TO_DO', } export type Address = { @@ -717,7 +732,6 @@ export type Appeal = { updatedAt: Scalars['ISO8601DateTime']['output']; }; - export type AppealPledgesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -944,7 +958,6 @@ export type CoachingAccountList = { weeksOnMpd: Scalars['Int']['output']; }; - export type CoachingAccountListCoachesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -952,7 +965,6 @@ export type CoachingAccountListCoachesArgs = { last?: InputMaybe; }; - export type CoachingAccountListContactsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -961,7 +973,6 @@ export type CoachingAccountListContactsArgs = { last?: InputMaybe; }; - export type CoachingAccountListUsersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1029,7 +1040,6 @@ export type CoachingAppeal = { updatedAt: Scalars['ISO8601DateTime']['output']; }; - export type CoachingAppealPledgesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1261,7 +1271,6 @@ export type Contact = { website?: Maybe; }; - export type ContactAddressesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1269,7 +1278,6 @@ export type ContactAddressesArgs = { last?: InputMaybe; }; - export type ContactContactDonorAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1277,7 +1285,6 @@ export type ContactContactDonorAccountsArgs = { last?: InputMaybe; }; - export type ContactContactReferralsByMeArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1285,7 +1292,6 @@ export type ContactContactReferralsByMeArgs = { last?: InputMaybe; }; - export type ContactContactReferralsToMeArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1293,7 +1299,6 @@ export type ContactContactReferralsToMeArgs = { last?: InputMaybe; }; - export type ContactDonationsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1301,7 +1306,6 @@ export type ContactDonationsArgs = { last?: InputMaybe; }; - export type ContactPeopleArgs = { after?: InputMaybe; before?: InputMaybe; @@ -1524,7 +1528,7 @@ export enum ContactFilterNewsletterEnum { None = 'NONE', NoValue = 'NO_VALUE', Physical = 'PHYSICAL', - PhysicalOnly = 'PHYSICAL_ONLY' + PhysicalOnly = 'PHYSICAL_ONLY', } export type ContactFilterNotesInput = { @@ -1535,7 +1539,7 @@ export type ContactFilterNotesInput = { export enum ContactFilterPledgeReceivedEnum { Any = 'ANY', NotReceived = 'NOT_RECEIVED', - Received = 'RECEIVED' + Received = 'RECEIVED', } export type ContactFilterSetInput = { @@ -1713,7 +1717,7 @@ export enum ContactFilterStatusEnum { PartnerPray = 'PARTNER_PRAY', PartnerSpecial = 'PARTNER_SPECIAL', ResearchAbandoned = 'RESEARCH_ABANDONED', - Unresponsive = 'UNRESPONSIVE' + Unresponsive = 'UNRESPONSIVE', } export type ContactPeople = { @@ -1760,7 +1764,7 @@ export enum ContactPhaseEnum { Connections = 'CONNECTIONS', FollowUp = 'FOLLOW_UP', Initiation = 'INITIATION', - PartnerCare = 'PARTNER_CARE' + PartnerCare = 'PARTNER_CARE', } export type ContactPrimaryAddress = { @@ -1789,12 +1793,12 @@ export enum ContactSortEnum { /** sorts by contacts with active status and name */ ActiveStatusAndName = 'ACTIVE_STATUS_AND_NAME', NameAsc = 'NAME_ASC', - NameDesc = 'NAME_DESC' + NameDesc = 'NAME_DESC', } export enum ContactSourceEnum { GiveSite = 'GIVE_SITE', - Mpdx = 'MPDX' + Mpdx = 'MPDX', } export type ContactUpdateInput = { @@ -2044,7 +2048,7 @@ export enum DisplayMethodEnum { /** announcement should be displayed as a banner across the top of the screen */ Banner = 'banner', /** announcement should be displayed as a popup modal */ - Modal = 'modal' + Modal = 'modal', } export type Donation = { @@ -2203,7 +2207,6 @@ export type DonorAccount = { updatedAt: Scalars['ISO8601DateTime']['output']; }; - export type DonorAccountContactsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2324,17 +2327,17 @@ export type ExportDataInput = { export enum ExportFormatEnum { Csv = 'csv', Pdf = 'pdf', - Xlsx = 'xlsx' + Xlsx = 'xlsx', } export enum ExportLabelTypeEnum { Avery5160 = 'Avery5160', - Avery7160 = 'Avery7160' + Avery7160 = 'Avery7160', } export enum ExportSortEnum { Name = 'name', - Zip = 'zip' + Zip = 'zip', } export type FacebookAccount = { @@ -2440,7 +2443,6 @@ export type FinancialAccount = { updatedAt: Scalars['ISO8601DateTime']['output']; }; - export type FinancialAccountCategoriesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -2535,7 +2537,7 @@ export type FourteenMonthReportCurrencyGroupTotalsMonth = { export enum FourteenMonthReportCurrencyType { Donor = 'donor', - Salary = 'salary' + Salary = 'salary', } export type GoogleAccountAttributes = { @@ -2580,9 +2582,13 @@ export type GoogleAccountIntegrationCalendarsInput = { export type GoogleAccountIntegrationInput = { calendarId?: InputMaybe; calendarIntegration?: InputMaybe; - calendarIntegrations?: InputMaybe>>; + calendarIntegrations?: InputMaybe< + Array> + >; calendarName?: InputMaybe; - calendars?: InputMaybe>>; + calendars?: InputMaybe< + Array> + >; createdAt?: InputMaybe; id?: InputMaybe; overwrite?: InputMaybe; @@ -2620,7 +2626,7 @@ export type Invite = { export enum InviteTypeEnum { Coach = 'COACH', - User = 'USER' + User = 'USER', } export type KeyAccount = { @@ -2636,7 +2642,7 @@ export type KeyAccount = { export enum LikelyToGiveEnum { LeastLikely = 'LEAST_LIKELY', Likely = 'LIKELY', - MostLikely = 'MOST_LIKELY' + MostLikely = 'MOST_LIKELY', } export type LinkedinAccount = { @@ -2690,7 +2696,9 @@ export type MailchimpAccount = { autoLogCampaigns: Scalars['Boolean']['output']; createdAt?: Maybe; id: Scalars['ID']['output']; - listsAvailableForNewsletters?: Maybe>>; + listsAvailableForNewsletters?: Maybe< + Array> + >; listsLink: Scalars['String']['output']; listsPresent: Scalars['Boolean']['output']; primaryListId?: Maybe; @@ -2834,387 +2842,310 @@ export type Mutation = { userKeySignIn?: Maybe; }; - export type MutationAcknowledgeAllUserNotificationsArgs = { input: AcknowledgeAllUserNotificationsMutationInput; }; - export type MutationAcknowledgeAnnouncementArgs = { input: AcknowledgeAnnouncementMutationInput; }; - export type MutationAcknowledgeUserNotificationArgs = { input: AcknowledgeUserNotificationMutationInput; }; - export type MutationAdminDeleteOrganizationCoachArgs = { input: AdminDeleteOrganizationCoachInput; }; - export type MutationAdminDeleteOrganizationInviteArgs = { input: AdminDeleteOrganizationInviteInput; }; - export type MutationAdminDeleteOrganizationUserArgs = { input: AdminDeleteOrganizationUserInput; }; - export type MutationAnonymizeContactArgs = { input: ContactAnonymizeMutationInput; }; - export type MutationApiOauthSignInArgs = { input: ApiOauthSignInMutationInput; }; - export type MutationAssignContactsToAppealArgs = { input: AssignContactsToAppealMutationInput; }; - export type MutationCancelAccountListInviteArgs = { input: CancelAccountListInviteInput; }; - export type MutationCreateAccountListInviteArgs = { input: CreateAccountListInviteInput; }; - export type MutationCreateAddressArgs = { input: AddressCreateMutationInput; }; - export type MutationCreateAppealArgs = { input: AppealCreateMutationInput; }; - export type MutationCreateContactArgs = { input: ContactCreateMutationInput; }; - export type MutationCreateDonationArgs = { input: DonationCreateMutationInput; }; - export type MutationCreateGoogleIntegrationArgs = { input: CreateGoogleIntegrationInput; }; - export type MutationCreateOrUpdateUserOptionArgs = { input: CreateOrUpdateOptionMutationInput; }; - export type MutationCreateOrganizationAccountArgs = { input: OrganizationAccountCreateMutationInput; }; - export type MutationCreateOrganizationInviteArgs = { input: CreateOrganizationInviteInput; }; - export type MutationCreatePersonArgs = { input: PersonCreateMutationInput; }; - export type MutationCreateTaskArgs = { input: TaskCreateMutationInput; }; - export type MutationCreateTaskCommentArgs = { input: TaskCommentCreateMutationInput; }; - export type MutationCreateTasksArgs = { input: TasksCreateMutationInput; }; - export type MutationDeleteAccountListCoachArgs = { input: AccountListCoachDeleteMutationInput; }; - export type MutationDeleteAccountListUserArgs = { input: AccountListUserDeleteMutationInput; }; - export type MutationDeleteAddressArgs = { input: AddressDeleteMutationInput; }; - export type MutationDeleteAppealArgs = { input: AppealDeleteMutationInput; }; - export type MutationDeleteCommentArgs = { input: CommentDeleteMutationInput; }; - export type MutationDeleteContactArgs = { input: ContactDeleteMutationInput; }; - export type MutationDeleteDonationArgs = { input: DonationDeleteMutationInput; }; - export type MutationDeleteGoogleAccountArgs = { input: DeleteGoogleAccountInput; }; - export type MutationDeleteMailchimpAccountArgs = { input: DeleteMailchimpAccountInput; }; - export type MutationDeleteOrganizationAccountArgs = { input: OrganizationAccountDeleteMutationInput; }; - export type MutationDeleteOrganizationContactArgs = { input: DeleteOrganizationContactInput; }; - export type MutationDeletePersonArgs = { input: PersonDeleteMutationInput; }; - export type MutationDeletePrayerlettersAccountArgs = { input: DeletePrayerlettersAccountInput; }; - export type MutationDeleteTagsArgs = { input: DeleteTagsInput; }; - export type MutationDeleteTaskArgs = { input: TaskDeleteMutationInput; }; - export type MutationDeleteTasksArgs = { input: TasksDeleteMutationInput; }; - export type MutationDeleteUserArgs = { input: UserDeleteMutationInput; }; - export type MutationDeleteUserOptionArgs = { input: UserOptionDeleteMutationInput; }; - export type MutationDestroyDonorAccountArgs = { input: ContactDestroyDonorAccountInput; }; - export type MutationDestroyOrganizationAdminArgs = { input: DeleteOrganizationAdminInput; }; - export type MutationDestroyOrganizationInviteArgs = { input: DeleteOrganizationInviteInput; }; - export type MutationExportContactsArgs = { input: ExportContactsInput; }; - export type MutationExportDataArgs = { input: ExportDataInput; }; - export type MutationMergeAccountListArgs = { input: AccountListMergeMutationInput; }; - export type MutationMergeContactsArgs = { input: MergeContactsInput; }; - export type MutationMergePeopleArgs = { input: MergePeopleMutationInput; }; - export type MutationOktaSignInArgs = { input: OktaSignInMutationInput; }; - export type MutationResetAccountListArgs = { input: AccountListResetMutationInput; }; - export type MutationSaveCoachingAnswerArgs = { input: SaveCoachingAnswerInput; }; - export type MutationSendToChalklineArgs = { input: SendToChalklineInput; }; - export type MutationSetActiveDesignationAccountArgs = { input: SetActiveDesignationAccountInput; }; - export type MutationSetActiveFinancialAccountArgs = { input: SetActiveFinancialAccountInput; }; - export type MutationSetContactPrimaryAddressArgs = { input: ContactPrimaryAddressInput; }; - export type MutationSyncGoogleAccountArgs = { input: SyncGoogleAccountInput; }; - export type MutationSyncMailchimpAccountArgs = { input: SyncMailchimpAccountInput; }; - export type MutationSyncOrganizationAccountArgs = { input: OrganizationAccountSyncMutationInput; }; - export type MutationSyncPrayerlettersAccountArgs = { input: SyncPrayerlettersAccountInput; }; - export type MutationUpdateAccountListArgs = { input: AccountListUpdateMutationInput; }; - export type MutationUpdateAddressArgs = { input: AddressUpdateMutationInput; }; - export type MutationUpdateAppealArgs = { input: AppealUpdateMutationInput; }; - export type MutationUpdateCommentArgs = { input: CommentUpdateMutationInput; }; - export type MutationUpdateContactArgs = { input: ContactUpdateMutationInput; }; - export type MutationUpdateContactsArgs = { input: ContactsUpdateMutationInput; }; - export type MutationUpdateDonationArgs = { input: DonationUpdateMutationInput; }; - export type MutationUpdateGoogleIntegrationArgs = { input: UpdateGoogleIntegrationInput; }; - export type MutationUpdateMailchimpAccountArgs = { input: UpdateMailchimpAccountInput; }; - export type MutationUpdateNotificationPreferencesArgs = { input: NotificationPreferencesUpdateMutationInput; }; - export type MutationUpdateOrganizationAccountArgs = { input: OrganizationAccountUpdateMutationInput; }; - export type MutationUpdatePersonArgs = { input: PersonUpdateMutationInput; }; - export type MutationUpdatePreferenceArgs = { input: UserPreferenceUpdateMutationInput; }; - export type MutationUpdateTaskArgs = { input: TaskUpdateMutationInput; }; - export type MutationUpdateTasksArgs = { input: TasksUpdateMutationInput; }; - export type MutationUpdateUserArgs = { input: UserUpdateMutationInput; }; - export type MutationUserKeySignInArgs = { input: UserKeySignInMutationInput; }; @@ -3319,7 +3250,7 @@ export type NotificationPreferencesUpdateMutationPayload = { export enum NotificationTimeUnitEnum { Days = 'DAYS', Hours = 'HOURS', - Minutes = 'MINUTES' + Minutes = 'MINUTES', } export type NotificationType = { @@ -3336,7 +3267,7 @@ export type NotificationType = { export enum NotificationTypeEnum { Both = 'BOTH', Email = 'EMAIL', - Mobile = 'MOBILE' + Mobile = 'MOBILE', } export enum NotificationTypeTypeEnum { @@ -3359,7 +3290,7 @@ export enum NotificationTypeTypeEnum { StoppedGiving = 'STOPPED_GIVING', ThankPartnerOncePerYear = 'THANK_PARTNER_ONCE_PER_YEAR', UpcomingAnniversary = 'UPCOMING_ANNIVERSARY', - UpcomingBirthday = 'UPCOMING_BIRTHDAY' + UpcomingBirthday = 'UPCOMING_BIRTHDAY', } export type NumericRangeFilter = Filter & { @@ -3690,7 +3621,6 @@ export type Person = { websites: WebsiteConnection; }; - export type PersonEmailAddressesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3698,7 +3628,6 @@ export type PersonEmailAddressesArgs = { last?: InputMaybe; }; - export type PersonFacebookAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3706,7 +3635,6 @@ export type PersonFacebookAccountsArgs = { last?: InputMaybe; }; - export type PersonFamilyRelationshipsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3714,7 +3642,6 @@ export type PersonFamilyRelationshipsArgs = { last?: InputMaybe; }; - export type PersonLinkedinAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3722,7 +3649,6 @@ export type PersonLinkedinAccountsArgs = { last?: InputMaybe; }; - export type PersonPhoneNumbersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3730,7 +3656,6 @@ export type PersonPhoneNumbersArgs = { last?: InputMaybe; }; - export type PersonTwitterAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -3738,7 +3663,6 @@ export type PersonTwitterAccountsArgs = { last?: InputMaybe; }; - export type PersonWebsitesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4035,7 +3959,6 @@ export type PersonWithParentContact = { websites: WebsiteConnection; }; - export type PersonWithParentContactEmailAddressesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4043,7 +3966,6 @@ export type PersonWithParentContactEmailAddressesArgs = { last?: InputMaybe; }; - export type PersonWithParentContactFacebookAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4051,7 +3973,6 @@ export type PersonWithParentContactFacebookAccountsArgs = { last?: InputMaybe; }; - export type PersonWithParentContactFamilyRelationshipsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4059,7 +3980,6 @@ export type PersonWithParentContactFamilyRelationshipsArgs = { last?: InputMaybe; }; - export type PersonWithParentContactLinkedinAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4067,7 +3987,6 @@ export type PersonWithParentContactLinkedinAccountsArgs = { last?: InputMaybe; }; - export type PersonWithParentContactPhoneNumbersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4075,7 +3994,6 @@ export type PersonWithParentContactPhoneNumbersArgs = { last?: InputMaybe; }; - export type PersonWithParentContactTwitterAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4083,7 +4001,6 @@ export type PersonWithParentContactTwitterAccountsArgs = { last?: InputMaybe; }; - export type PersonWithParentContactWebsitesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4183,7 +4100,7 @@ export enum PledgeFrequencyEnum { Every_6Months = 'EVERY_6_MONTHS', Monthly = 'MONTHLY', Quarterly = 'QUARTERLY', - Weekly = 'WEEKLY' + Weekly = 'WEEKLY', } export type PrayerlettersAccount = { @@ -4216,7 +4133,7 @@ export enum PreferredContactMethodEnum { PhoneCall = 'PHONE_CALL', Sms = 'SMS', WeChat = 'WE_CHAT', - WhatsApp = 'WHATS_APP' + WhatsApp = 'WHATS_APP', } export type Query = { @@ -4323,18 +4240,15 @@ export type Query = { userOrganizationAccounts: Array; }; - export type QueryAccountListArgs = { id: Scalars['ID']['input']; }; - export type QueryAccountListAnalyticsArgs = { accountListId: Scalars['ID']['input']; dateRange?: InputMaybe; }; - export type QueryAccountListCoachesArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4343,13 +4257,11 @@ export type QueryAccountListCoachesArgs = { last?: InputMaybe; }; - export type QueryAccountListDonorAccountsArgs = { accountListId: Scalars['ID']['input']; searchTerm: Scalars['String']['input']; }; - export type QueryAccountListInvitesArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4359,7 +4271,6 @@ export type QueryAccountListInvitesArgs = { last?: InputMaybe; }; - export type QueryAccountListUsersArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4368,7 +4279,6 @@ export type QueryAccountListUsersArgs = { last?: InputMaybe; }; - export type QueryAccountListsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4376,13 +4286,11 @@ export type QueryAccountListsArgs = { last?: InputMaybe; }; - export type QueryAddressArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryAddressesArgs = { accountListId: Scalars['ID']['input']; addressableId?: InputMaybe>; @@ -4393,13 +4301,11 @@ export type QueryAddressesArgs = { validValues?: InputMaybe; }; - export type QueryAppealArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryAppealsArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4409,24 +4315,20 @@ export type QueryAppealsArgs = { primary?: InputMaybe; }; - export type QueryAppointmentResultsArgs = { accountListId: Scalars['ID']['input']; endDate?: InputMaybe; range: Scalars['String']['input']; }; - export type QueryCanUserExportDataArgs = { accountListId: Scalars['ID']['input']; }; - export type QueryCoachingAccountListArgs = { id: Scalars['ID']['input']; }; - export type QueryCoachingAccountListsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -4434,19 +4336,16 @@ export type QueryCoachingAccountListsArgs = { last?: InputMaybe; }; - export type QueryCoachingAnswerSetsArgs = { accountListId: Scalars['ID']['input']; completed?: InputMaybe; }; - export type QueryContactArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryContactDuplicatesArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4456,7 +4355,6 @@ export type QueryContactDuplicatesArgs = { last?: InputMaybe; }; - export type QueryContactsArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4467,24 +4365,20 @@ export type QueryContactsArgs = { sortBy?: InputMaybe; }; - export type QueryCurrentCoachingAnswerSetArgs = { accountListId: Scalars['ID']['input']; organizationId: Scalars['ID']['input']; }; - export type QueryDesignationAccountsArgs = { accountListId: Scalars['ID']['input']; }; - export type QueryDonationArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryDonationsArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4496,25 +4390,21 @@ export type QueryDonationsArgs = { last?: InputMaybe; }; - export type QueryEntryHistoriesArgs = { accountListId: Scalars['ID']['input']; financialAccountIds: Array; }; - export type QueryExpectedMonthlyTotalReportArgs = { accountListId: Scalars['ID']['input']; designationAccountId?: InputMaybe>; }; - export type QueryFinancialAccountArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryFinancialAccountsArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4524,31 +4414,26 @@ export type QueryFinancialAccountsArgs = { last?: InputMaybe; }; - export type QueryFourteenMonthReportArgs = { accountListId: Scalars['ID']['input']; currencyType: FourteenMonthReportCurrencyType; designationAccountId?: InputMaybe>; }; - export type QueryGetDesignationDisplayNamesArgs = { accountListId: Scalars['ID']['input']; endDate?: InputMaybe; startDate?: InputMaybe; }; - export type QueryGoogleAccountIntegrationsArgs = { input: GoogleAccountIntegrationsInput; }; - export type QueryMailchimpAccountArgs = { input: MailchimpAccountInput; }; - export type QueryNotificationPreferencesArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4557,22 +4442,18 @@ export type QueryNotificationPreferencesArgs = { last?: InputMaybe; }; - export type QueryOrganizationAdminsArgs = { input: OrganizationAdminsInput; }; - export type QueryOrganizationInvitesArgs = { input: OrganizationInvitesInput; }; - export type QueryPartnerGivingAnalysisReportArgs = { input: PartnerGivingAnalysisReportInput; }; - export type QueryPeopleArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4582,13 +4463,11 @@ export type QueryPeopleArgs = { peopleFilter?: InputMaybe; }; - export type QueryPersonArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryPersonDuplicatesArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4598,24 +4477,20 @@ export type QueryPersonDuplicatesArgs = { last?: InputMaybe; }; - export type QueryPrayerlettersAccountArgs = { input: PrayerlettersAccountInput; }; - export type QueryReportPledgeHistoriesArgs = { accountListId: Scalars['ID']['input']; }; - export type QueryReportsActivityResultsArgs = { accountListId: Scalars['ID']['input']; endDate?: InputMaybe; range?: InputMaybe; }; - export type QueryReportsDonationHistoriesArgs = { accountListId: Scalars['ID']['input']; designationAccountId?: InputMaybe>; @@ -4624,21 +4499,18 @@ export type QueryReportsDonationHistoriesArgs = { range?: InputMaybe; }; - export type QueryReportsPeopleWithAnniversariesArgs = { accountListId: Scalars['ID']['input']; endDate?: InputMaybe; range?: InputMaybe; }; - export type QueryReportsPeopleWithBirthdaysArgs = { accountListId: Scalars['ID']['input']; endDate?: InputMaybe; range?: InputMaybe; }; - export type QueryReportsTagHistoriesArgs = { accountListId: Scalars['ID']['input']; association?: InputMaybe; @@ -4646,28 +4518,23 @@ export type QueryReportsTagHistoriesArgs = { range?: InputMaybe; }; - export type QuerySearchOrganizationsAccountListsArgs = { input: SearchOrganizationsAccountListsInput; }; - export type QuerySearchOrganizationsContactsArgs = { input: SearchOrganizationsContactsInput; }; - export type QueryTaskArgs = { accountListId: Scalars['ID']['input']; id: Scalars['ID']['input']; }; - export type QueryTaskAnalyticsArgs = { accountListId: Scalars['ID']['input']; }; - export type QueryTasksArgs = { accountListId: Scalars['ID']['input']; after?: InputMaybe; @@ -4678,7 +4545,6 @@ export type QueryTasksArgs = { tasksFilter?: InputMaybe; }; - export type QueryUserNotificationsArgs = { accountListId?: InputMaybe; after?: InputMaybe; @@ -4688,7 +4554,6 @@ export type QueryUserNotificationsArgs = { read?: InputMaybe; }; - export type QueryUserOptionsArgs = { key?: InputMaybe>; }; @@ -4705,7 +4570,7 @@ export enum ReasonEnum { SameDonorAccountNumber = 'SAME_DONOR_ACCOUNT_NUMBER', SimilarEmailAddresses = 'SIMILAR_EMAIL_ADDRESSES', SimilarNames = 'SIMILAR_NAMES', - SimilarPhoneNumbers = 'SIMILAR_PHONE_NUMBERS' + SimilarPhoneNumbers = 'SIMILAR_PHONE_NUMBERS', } export type Referral = { @@ -4962,7 +4827,7 @@ export type ReportsPledgeHistories = { export enum ReportsTagHistoriesAssociationEnum { Contacts = 'CONTACTS', - Tasks = 'TASKS' + Tasks = 'TASKS', } export enum ResultEnum { @@ -4972,7 +4837,7 @@ export enum ResultEnum { Done = 'DONE', /** special type when filtered by will return any task with no result */ None = 'NONE', - Received = 'RECEIVED' + Received = 'RECEIVED', } export type SaveCoachingAnswerInput = { @@ -5010,7 +4875,7 @@ export enum SendNewsletterEnum { Both = 'BOTH', Email = 'EMAIL', None = 'NONE', - Physical = 'PHYSICAL' + Physical = 'PHYSICAL', } export type SendToChalklineInput = { @@ -5037,7 +4902,7 @@ export type SetActiveFinancialAccountRest = { export enum SortDirection { Ascending = 'ASCENDING', - Descending = 'DESCENDING' + Descending = 'DESCENDING', } export enum StatusEnum { @@ -5054,7 +4919,7 @@ export enum StatusEnum { PartnerPray = 'PARTNER_PRAY', PartnerSpecial = 'PARTNER_SPECIAL', ResearchAbandoned = 'RESEARCH_ABANDONED', - Unresponsive = 'UNRESPONSIVE' + Unresponsive = 'UNRESPONSIVE', } export enum StyleEnum { @@ -5067,7 +4932,7 @@ export enum StyleEnum { /** announcement should be colored as successful */ Success = 'success', /** announcement should be colored as a warning */ - Warning = 'warning' + Warning = 'warning', } export type SyncGoogleAccountInput = { @@ -5128,7 +4993,6 @@ export type Task = { user?: Maybe; }; - export type TaskCommentsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5136,7 +5000,6 @@ export type TaskCommentsArgs = { last?: InputMaybe; }; - export type TaskContactsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5148,8 +5011,12 @@ export type TaskAnalytics = { __typename?: 'TaskAnalytics'; createdAt: Scalars['ISO8601DateTime']['output']; id: Scalars['ID']['output']; - lastElectronicNewsletterCompletedAt?: Maybe; - lastPhysicalNewsletterCompletedAt?: Maybe; + lastElectronicNewsletterCompletedAt?: Maybe< + Scalars['ISO8601DateTime']['output'] + >; + lastPhysicalNewsletterCompletedAt?: Maybe< + Scalars['ISO8601DateTime']['output'] + >; tasksOverdueOrDueTodayCounts: Array; totalTasksDueCount: Scalars['Int']['output']; type: Scalars['String']['output']; @@ -5362,7 +5229,7 @@ export type TaskFilterSetInput = { export enum TaskPhaseEnum { Appointment = 'APPOINTMENT', Initiation = 'INITIATION', - PartnerCare = 'PARTNER_CARE' + PartnerCare = 'PARTNER_CARE', } export enum TaskSortEnum { @@ -5375,7 +5242,7 @@ export enum TaskSortEnum { /** sort by start_at ASC */ StartAtAsc = 'START_AT_ASC', /** sort by start_at DESC */ - StartAtDesc = 'START_AT_DESC' + StartAtDesc = 'START_AT_DESC', } export type TaskUpdateInput = { @@ -5589,7 +5456,6 @@ export type User = { websites: WebsiteConnection; }; - export type UserAdministrativeOrganizationsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5597,7 +5463,6 @@ export type UserAdministrativeOrganizationsArgs = { last?: InputMaybe; }; - export type UserEmailAddressesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5605,7 +5470,6 @@ export type UserEmailAddressesArgs = { last?: InputMaybe; }; - export type UserFacebookAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5613,7 +5477,6 @@ export type UserFacebookAccountsArgs = { last?: InputMaybe; }; - export type UserFamilyRelationshipsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5621,7 +5484,6 @@ export type UserFamilyRelationshipsArgs = { last?: InputMaybe; }; - export type UserLinkedinAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5629,7 +5491,6 @@ export type UserLinkedinAccountsArgs = { last?: InputMaybe; }; - export type UserPhoneNumbersArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5637,7 +5498,6 @@ export type UserPhoneNumbersArgs = { last?: InputMaybe; }; - export type UserTwitterAccountsArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5645,7 +5505,6 @@ export type UserTwitterAccountsArgs = { last?: InputMaybe; }; - export type UserWebsitesArgs = { after?: InputMaybe; before?: InputMaybe; @@ -5748,7 +5607,6 @@ export type UserScopedToAccountList = { updatedAt: Scalars['ISO8601DateTime']['output']; }; - /** this is a User but visible fields are significantly limited. */ export type UserScopedToAccountListEmailAddressesArgs = { after?: InputMaybe; @@ -5757,7 +5615,6 @@ export type UserScopedToAccountListEmailAddressesArgs = { last?: InputMaybe; }; - /** this is a User but visible fields are significantly limited. */ export type UserScopedToAccountListPhoneNumbersArgs = { after?: InputMaybe; @@ -5879,36 +5736,53 @@ export type ResolversObject = WithIndex; export type ResolverTypeWrapper = Promise | T; - export type ResolverWithResolve = { resolve: ResolverFn; }; -export type Resolver = ResolverFn | ResolverWithResolve; +export type Resolver = + | ResolverFn + | ResolverWithResolve; export type ResolverFn = ( parent: TParent, args: TArgs, context: TContext, - info: GraphQLResolveInfo + info: GraphQLResolveInfo, ) => Promise | TResult; export type SubscriptionSubscribeFn = ( parent: TParent, args: TArgs, context: TContext, - info: GraphQLResolveInfo + info: GraphQLResolveInfo, ) => AsyncIterable | Promise>; export type SubscriptionResolveFn = ( parent: TParent, args: TArgs, context: TContext, - info: GraphQLResolveInfo + info: GraphQLResolveInfo, ) => TResult | Promise; -export interface SubscriptionSubscriberObject { - subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>; - resolve?: SubscriptionResolveFn; +export interface SubscriptionSubscriberObject< + TResult, + TKey extends string, + TParent, + TContext, + TArgs, +> { + subscribe: SubscriptionSubscribeFn< + { [key in TKey]: TResult }, + TParent, + TContext, + TArgs + >; + resolve?: SubscriptionResolveFn< + TResult, + { [key in TKey]: TResult }, + TContext, + TArgs + >; } export interface SubscriptionResolverObject { @@ -5916,37 +5790,66 @@ export interface SubscriptionResolverObject { resolve: SubscriptionResolveFn; } -export type SubscriptionObject = +export type SubscriptionObject< + TResult, + TKey extends string, + TParent, + TContext, + TArgs, +> = | SubscriptionSubscriberObject | SubscriptionResolverObject; -export type SubscriptionResolver = - | ((...args: any[]) => SubscriptionObject) +export type SubscriptionResolver< + TResult, + TKey extends string, + TParent = {}, + TContext = {}, + TArgs = {}, +> = + | (( + ...args: any[] + ) => SubscriptionObject) | SubscriptionObject; export type TypeResolveFn = ( parent: TParent, context: TContext, - info: GraphQLResolveInfo + info: GraphQLResolveInfo, ) => Maybe | Promise>; -export type IsTypeOfResolverFn = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise; +export type IsTypeOfResolverFn = ( + obj: T, + context: TContext, + info: GraphQLResolveInfo, +) => boolean | Promise; export type NextResolverFn = () => Promise; -export type DirectiveResolverFn = ( +export type DirectiveResolverFn< + TResult = {}, + TParent = {}, + TContext = {}, + TArgs = {}, +> = ( next: NextResolverFn, parent: TParent, args: TArgs, context: TContext, - info: GraphQLResolveInfo + info: GraphQLResolveInfo, ) => TResult | Promise; - /** Mapping of interface types */ -export type ResolversInterfaceTypes> = ResolversObject<{ - Filter: ( CheckboxFilter ) | ( DaterangeFilter ) | ( MultiselectFilter ) | ( NumericRangeFilter ) | ( RadioFilter ) | ( TextFilter ); -}>; +export type ResolversInterfaceTypes> = + ResolversObject<{ + Filter: + | CheckboxFilter + | DaterangeFilter + | MultiselectFilter + | NumericRangeFilter + | RadioFilter + | TextFilter; + }>; /** Mapping between all available schema types and the resolvers types */ export type ResolversTypes = ResolversObject<{ @@ -6166,7 +6069,9 @@ export type ResolversTypes = ResolversObject<{ FamilyRelationship: ResolverTypeWrapper; FamilyRelationshipConnection: ResolverTypeWrapper; FamilyRelationshipEdge: ResolverTypeWrapper; - Filter: ResolverTypeWrapper['Filter']>; + Filter: ResolverTypeWrapper< + ResolversInterfaceTypes['Filter'] + >; FilterGroup: ResolverTypeWrapper; FilterOption: ResolverTypeWrapper; FinancialAccount: ResolverTypeWrapper; @@ -6782,290 +6687,778 @@ export type ResolversParentTypes = ResolversObject<{ _Service: _Service; }>; -export type AccountListResolvers = ResolversObject<{ - activeMpdFinishAt?: Resolver, ParentType, ContextType>; - activeMpdMonthlyGoal?: Resolver, ParentType, ContextType>; - activeMpdStartAt?: Resolver, ParentType, ContextType>; - appeals?: Resolver>, ParentType, ContextType>; +export type AccountListResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountList'] = ResolversParentTypes['AccountList'], +> = ResolversObject<{ + activeMpdFinishAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + activeMpdMonthlyGoal?: Resolver< + Maybe, + ParentType, + ContextType + >; + activeMpdStartAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + appeals?: Resolver< + Maybe>, + ParentType, + ContextType + >; balance?: Resolver; - churches?: Resolver, ParentType, ContextType, Partial>; - coaches?: Resolver>; - contactFilterGroups?: Resolver, ParentType, ContextType>; - contactTagList?: Resolver, ParentType, ContextType>; - contacts?: Resolver>; - createdAt?: Resolver; + churches?: Resolver< + Array, + ParentType, + ContextType, + Partial + >; + coaches?: Resolver< + ResolversTypes['UserScopedToAccountListConnection'], + ParentType, + ContextType, + Partial + >; + contactFilterGroups?: Resolver< + Array, + ParentType, + ContextType + >; + contactTagList?: Resolver< + Array, + ParentType, + ContextType + >; + contacts?: Resolver< + ResolversTypes['ContactConnection'], + ParentType, + ContextType, + Partial + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; currency?: Resolver; - designationAccounts?: Resolver, ParentType, ContextType>; + designationAccounts?: Resolver< + Array, + ParentType, + ContextType + >; id?: Resolver; monthlyGoal?: Resolver, ParentType, ContextType>; name?: Resolver, ParentType, ContextType>; - partnerGivingAnalysisFilterGroups?: Resolver, ParentType, ContextType>; - primaryAppeal?: Resolver, ParentType, ContextType>; + partnerGivingAnalysisFilterGroups?: Resolver< + Array, + ParentType, + ContextType + >; + primaryAppeal?: Resolver< + Maybe, + ParentType, + ContextType + >; receivedPledges?: Resolver; - salaryOrganizationId?: Resolver, ParentType, ContextType>; - settings?: Resolver, ParentType, ContextType>; - taskFilterGroups?: Resolver, ParentType, ContextType>; - taskTagList?: Resolver, ParentType, ContextType>; + salaryOrganizationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + settings?: Resolver< + Maybe, + ParentType, + ContextType + >; + taskFilterGroups?: Resolver< + Array, + ParentType, + ContextType + >; + taskTagList?: Resolver< + Array, + ParentType, + ContextType + >; totalPledges?: Resolver; - updatedAt?: Resolver; - users?: Resolver>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + users?: Resolver< + ResolversTypes['UserScopedToAccountListConnection'], + ParentType, + ContextType, + Partial + >; weeksOnMpd?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListAnalyticsResolvers = ResolversObject<{ - appointments?: Resolver; - contacts?: Resolver; - correspondence?: Resolver; - electronic?: Resolver; - email?: Resolver; - endDate?: Resolver; - facebook?: Resolver; - phone?: Resolver; - startDate?: Resolver; - textMessage?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListCoachDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type AccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListAnalytics'] = ResolversParentTypes['AccountListAnalytics'], +> = ResolversObject<{ + appointments?: Resolver< + ResolversTypes['AppointmentsAccountListAnalytics'], + ParentType, + ContextType + >; + contacts?: Resolver< + ResolversTypes['ContactsAccountListAnalytics'], + ParentType, + ContextType + >; + correspondence?: Resolver< + ResolversTypes['CorrespondenceAccountListAnalytics'], + ParentType, + ContextType + >; + electronic?: Resolver< + ResolversTypes['ElectronicAccountListAnalytics'], + ParentType, + ContextType + >; + email?: Resolver< + ResolversTypes['EmailsAccountListAnalytics'], + ParentType, + ContextType + >; + endDate?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + facebook?: Resolver< + ResolversTypes['FacebookAccountListAnalytics'], + ParentType, + ContextType + >; + phone?: Resolver< + ResolversTypes['PhoneAccountListAnalytics'], + ParentType, + ContextType + >; + startDate?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + textMessage?: Resolver< + ResolversTypes['TextMessageAccountListAnalytics'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListCoachDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListCoachDeleteMutationPayload'] = ResolversParentTypes['AccountListCoachDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListCoachesResolvers = ResolversObject<{ - accountListsId?: Resolver, ParentType, ContextType>; - createdAt?: Resolver, ParentType, ContextType>; +export type AccountListCoachesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListCoaches'] = ResolversParentTypes['AccountListCoaches'], +> = ResolversObject<{ + accountListsId?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver, ParentType, ContextType>; - updatedInDbAt?: Resolver, ParentType, ContextType>; - userCoachesId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedInDbAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + userCoachesId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListConnection'] = ResolversParentTypes['AccountListConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListDesignationAccountsResolvers = ResolversObject<{ - displayName?: Resolver, ParentType, ContextType>; +export type AccountListDesignationAccountsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListDesignationAccounts'] = ResolversParentTypes['AccountListDesignationAccounts'], +> = ResolversObject<{ + displayName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; - organization?: Resolver, ParentType, ContextType>; + organization?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListDonorAccountResolvers = ResolversObject<{ +export type AccountListDonorAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListDonorAccount'] = ResolversParentTypes['AccountListDonorAccount'], +> = ResolversObject<{ accountNumber?: Resolver; displayName?: Resolver; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListEdgeResolvers = ResolversObject<{ +export type AccountListEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListEdge'] = ResolversParentTypes['AccountListEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListEmailAddressesResolvers = ResolversObject<{ +export type AccountListEmailAddressesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListEmailAddresses'] = ResolversParentTypes['AccountListEmailAddresses'], +> = ResolversObject<{ email?: Resolver, ParentType, ContextType>; id?: Resolver, ParentType, ContextType>; primary?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListInviteResolvers = ResolversObject<{ +export type AccountListInviteResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListInvite'] = ResolversParentTypes['AccountListInvite'], +> = ResolversObject<{ accountListId?: Resolver; - cancelledByUser?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + cancelledByUser?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - inviteUserAs?: Resolver, ParentType, ContextType>; - invitedByUser?: Resolver; + inviteUserAs?: Resolver< + Maybe, + ParentType, + ContextType + >; + invitedByUser?: Resolver< + ResolversTypes['UserScopedToAccountList'], + ParentType, + ContextType + >; recipientEmail?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListInviteConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListInviteConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListInviteConnection'] = ResolversParentTypes['AccountListInviteConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListInviteEdgeResolvers = ResolversObject<{ +export type AccountListInviteEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListInviteEdge'] = ResolversParentTypes['AccountListInviteEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListInvitedByUserResolvers = ResolversObject<{ - firstName?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListInvitedByUserResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListInvitedByUser'] = ResolversParentTypes['AccountListInvitedByUser'], +> = ResolversObject<{ + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; lastName?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListInvitesResolvers = ResolversObject<{ +export type AccountListInvitesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListInvites'] = ResolversParentTypes['AccountListInvites'], +> = ResolversObject<{ id?: Resolver, ParentType, ContextType>; - inviteUserAs?: Resolver, ParentType, ContextType>; - invitedByUser?: Resolver, ParentType, ContextType>; - recipientEmail?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListMergeMutationPayloadResolvers = ResolversObject<{ - accountList?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListOrganizationResolvers = ResolversObject<{ + inviteUserAs?: Resolver< + Maybe, + ParentType, + ContextType + >; + invitedByUser?: Resolver< + Maybe, + ParentType, + ContextType + >; + recipientEmail?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListMergeMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListMergeMutationPayload'] = ResolversParentTypes['AccountListMergeMutationPayload'], +> = ResolversObject<{ + accountList?: Resolver< + ResolversTypes['AccountList'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListOrganizationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListOrganization'] = ResolversParentTypes['AccountListOrganization'], +> = ResolversObject<{ id?: Resolver, ParentType, ContextType>; name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListResetMutationPayloadResolvers = ResolversObject<{ - accountList?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListSettingsResolvers = ResolversObject<{ - createdAt?: Resolver; +export type AccountListResetMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListResetMutationPayload'] = ResolversParentTypes['AccountListResetMutationPayload'], +> = ResolversObject<{ + accountList?: Resolver< + ResolversTypes['AccountList'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListSettingsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListSettings'] = ResolversParentTypes['AccountListSettings'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; currency?: Resolver, ParentType, ContextType>; - homeCountry?: Resolver, ParentType, ContextType>; + homeCountry?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; - monthlyGoal?: Resolver, ParentType, ContextType>; + monthlyGoal?: Resolver< + Maybe, + ParentType, + ContextType + >; tester?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListUpdateMutationPayloadResolvers = ResolversObject<{ - accountList?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListUserResolvers = ResolversObject<{ - createdAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUpdateMutationPayload'] = ResolversParentTypes['AccountListUpdateMutationPayload'], +> = ResolversObject<{ + accountList?: Resolver< + ResolversTypes['AccountList'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListUserResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUser'] = ResolversParentTypes['AccountListUser'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; - user?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListUserConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + user?: Resolver< + ResolversTypes['UserScopedToAccountList'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListUserConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUserConnection'] = ResolversParentTypes['AccountListUserConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListUserDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type AccountListUserDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUserDeleteMutationPayload'] = ResolversParentTypes['AccountListUserDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AccountListUserEdgeResolvers = ResolversObject<{ +export type AccountListUserEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUserEdge'] = ResolversParentTypes['AccountListUserEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AccountListUsersResolvers = ResolversObject<{ - allowDeletion?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AccountListUsersResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AccountListUsers'] = ResolversParentTypes['AccountListUsers'], +> = ResolversObject<{ + allowDeletion?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; - userEmailAddresses?: Resolver>>, ParentType, ContextType>; - userFirstName?: Resolver, ParentType, ContextType>; - userLastName?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AcknowledgeAllUserNotificationsMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - notificationIds?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AcknowledgeAnnouncementMutationPayloadResolvers = ResolversObject<{ - announcement?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AcknowledgeUserNotificationMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - notification?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ActionResolvers = ResolversObject<{ - action?: Resolver, ParentType, ContextType>; + userEmailAddresses?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + userFirstName?: Resolver< + Maybe, + ParentType, + ContextType + >; + userLastName?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AcknowledgeAllUserNotificationsMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AcknowledgeAllUserNotificationsMutationPayload'] = ResolversParentTypes['AcknowledgeAllUserNotificationsMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + notificationIds?: Resolver< + Array, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AcknowledgeAnnouncementMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AcknowledgeAnnouncementMutationPayload'] = ResolversParentTypes['AcknowledgeAnnouncementMutationPayload'], +> = ResolversObject<{ + announcement?: Resolver< + ResolversTypes['Announcement'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AcknowledgeUserNotificationMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AcknowledgeUserNotificationMutationPayload'] = ResolversParentTypes['AcknowledgeUserNotificationMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + notification?: Resolver< + ResolversTypes['UserNotification'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ActionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Action'] = ResolversParentTypes['Action'], +> = ResolversObject<{ + action?: Resolver< + Maybe, + ParentType, + ContextType + >; args?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; label?: Resolver; - style?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ActivityResultsResolvers = ResolversObject<{ - periods?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ActivityResultsPeriodResolvers = ResolversObject<{ - callsWithAppointmentNext?: Resolver; + style?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ActivityResultsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ActivityResults'] = ResolversParentTypes['ActivityResults'], +> = ResolversObject<{ + periods?: Resolver< + Array, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ActivityResultsPeriodResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ActivityResultsPeriod'] = ResolversParentTypes['ActivityResultsPeriod'], +> = ResolversObject<{ + callsWithAppointmentNext?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; completedCall?: Resolver; - completedPreCallLetter?: Resolver; - completedReminderLetter?: Resolver; - completedSupportLetter?: Resolver; + completedPreCallLetter?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + completedReminderLetter?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + completedSupportLetter?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; completedThank?: Resolver; dials?: Resolver; - electronicMessageSent?: Resolver; - electronicMessageWithAppointmentNext?: Resolver; + electronicMessageSent?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + electronicMessageWithAppointmentNext?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; endDate?: Resolver; startDate?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AddressResolvers = ResolversObject<{ +export type AddressResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Address'] = ResolversParentTypes['Address'], +> = ResolversObject<{ city?: Resolver, ParentType, ContextType>; country?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; geo?: Resolver, ParentType, ContextType>; historic?: Resolver; id?: Resolver; location?: Resolver, ParentType, ContextType>; - metroArea?: Resolver, ParentType, ContextType>; - postalCode?: Resolver, ParentType, ContextType>; - primaryMailingAddress?: Resolver; + metroArea?: Resolver< + Maybe, + ParentType, + ContextType + >; + postalCode?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryMailingAddress?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; region?: Resolver, ParentType, ContextType>; source?: Resolver; - sourceDonorAccount?: Resolver, ParentType, ContextType>; + sourceDonorAccount?: Resolver< + Maybe, + ParentType, + ContextType + >; state?: Resolver, ParentType, ContextType>; street?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; validValues?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AddressConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; +export type AddressConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressConnection'] = ResolversParentTypes['AddressConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7073,50 +7466,98 @@ export type AddressConnectionResolvers; }>; -export type AddressCreateMutationPayloadResolvers = ResolversObject<{ +export type AddressCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressCreateMutationPayload'] = ResolversParentTypes['AddressCreateMutationPayload'], +> = ResolversObject<{ address?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AddressDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AddressDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressDeleteMutationPayload'] = ResolversParentTypes['AddressDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AddressEdgeResolvers = ResolversObject<{ +export type AddressEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressEdge'] = ResolversParentTypes['AddressEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AddressUpdateMutationPayloadResolvers = ResolversObject<{ +export type AddressUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressUpdateMutationPayload'] = ResolversParentTypes['AddressUpdateMutationPayload'], +> = ResolversObject<{ address?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AddressWithPrimaryResolvers = ResolversObject<{ +export type AddressWithPrimaryResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AddressWithPrimary'] = ResolversParentTypes['AddressWithPrimary'], +> = ResolversObject<{ id?: Resolver; - primaryMailingAddress?: Resolver; + primaryMailingAddress?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AdminListResolvers = ResolversObject<{ +export type AdminListResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AdminList'] = ResolversParentTypes['AdminList'], +> = ResolversObject<{ firstName?: Resolver; id?: Resolver; lastName?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AllOrganizationsResolvers = ResolversObject<{ - organizations?: Resolver>, ParentType, ContextType>; - pagination?: Resolver; +export type AllOrganizationsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AllOrganizations'] = ResolversParentTypes['AllOrganizations'], +> = ResolversObject<{ + organizations?: Resolver< + Array>, + ParentType, + ContextType + >; + pagination?: Resolver< + ResolversTypes['AllOrganizationsPagination'], + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AllOrganizationsPaginationResolvers = ResolversObject<{ +export type AllOrganizationsPaginationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AllOrganizationsPagination'] = ResolversParentTypes['AllOrganizationsPagination'], +> = ResolversObject<{ page?: Resolver; perPage?: Resolver; totalCount?: Resolver; @@ -7124,47 +7565,116 @@ export type AllOrganizationsPaginationResolvers; }>; -export type AnnouncementResolvers = ResolversObject<{ +export type AnnouncementResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Announcement'] = ResolversParentTypes['Announcement'], +> = ResolversObject<{ actions?: Resolver, ParentType, ContextType>; body?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; - displayMethod?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + displayMethod?: Resolver< + ResolversTypes['DisplayMethodEnum'], + ParentType, + ContextType + >; id?: Resolver; imageUrl?: Resolver, ParentType, ContextType>; style?: Resolver, ParentType, ContextType>; title?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ApiOauthSignInMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ApiOauthSignInMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ApiOauthSignInMutationPayload'] = ResolversParentTypes['ApiOauthSignInMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; token?: Resolver, ParentType, ContextType>; user?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AppealResolvers = ResolversObject<{ +export type AppealResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Appeal'] = ResolversParentTypes['Appeal'], +> = ResolversObject<{ active?: Resolver; amount?: Resolver, ParentType, ContextType>; amountCurrency?: Resolver; - contactIds?: Resolver>, ParentType, ContextType>; - createdAt?: Resolver; - endDate?: Resolver, ParentType, ContextType>; + contactIds?: Resolver< + Maybe>, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + endDate?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver, ParentType, ContextType>; - pledges?: Resolver>; - pledgesAmountNotReceivedNotProcessed?: Resolver; - pledgesAmountProcessed?: Resolver; - pledgesAmountReceivedNotProcessed?: Resolver; - pledgesAmountTotal?: Resolver; + pledges?: Resolver< + ResolversTypes['PledgeConnection'], + ParentType, + ContextType, + Partial + >; + pledgesAmountNotReceivedNotProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountReceivedNotProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountTotal?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; primary?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AppealConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AppealConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppealConnection'] = ResolversParentTypes['AppealConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7172,67 +7682,141 @@ export type AppealConnectionResolvers; }>; -export type AppealCreateMutationPayloadResolvers = ResolversObject<{ +export type AppealCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppealCreateMutationPayload'] = ResolversParentTypes['AppealCreateMutationPayload'], +> = ResolversObject<{ appeal?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type AppealDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type AppealDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppealDeleteMutationPayload'] = ResolversParentTypes['AppealDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AppealEdgeResolvers = ResolversObject<{ +export type AppealEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppealEdge'] = ResolversParentTypes['AppealEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AppealUpdateMutationPayloadResolvers = ResolversObject<{ +export type AppealUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppealUpdateMutationPayload'] = ResolversParentTypes['AppealUpdateMutationPayload'], +> = ResolversObject<{ appeal?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AppointmentsAccountListAnalyticsResolvers = ResolversObject<{ +export type AppointmentsAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AppointmentsAccountListAnalytics'] = ResolversParentTypes['AppointmentsAccountListAnalytics'], +> = ResolversObject<{ completed?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type AssignContactsToAppealMutationPayloadResolvers = ResolversObject<{ +export type AssignContactsToAppealMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['AssignContactsToAppealMutationPayload'] = ResolversParentTypes['AssignContactsToAppealMutationPayload'], +> = ResolversObject<{ appeal?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CanUserExportDataResolvers = ResolversObject<{ +export type CanUserExportDataResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CanUserExportData'] = ResolversParentTypes['CanUserExportData'], +> = ResolversObject<{ allowed?: Resolver; - exportedAt?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CancelAccountListInvitePayloadResolvers = ResolversObject<{ - accountListInvite?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CategoryResolvers = ResolversObject<{ + exportedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CancelAccountListInvitePayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CancelAccountListInvitePayload'] = ResolversParentTypes['CancelAccountListInvitePayload'], +> = ResolversObject<{ + accountListInvite?: Resolver< + ResolversTypes['AccountListInvite'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CategoryResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Category'] = ResolversParentTypes['Category'], +> = ResolversObject<{ code?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; - entryType?: Resolver, ParentType, ContextType>; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + entryType?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver, ParentType, ContextType>; organizationId?: Resolver; remoteId?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CategoryConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CategoryConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CategoryConnection'] = ResolversParentTypes['CategoryConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7240,174 +7824,461 @@ export type CategoryConnectionResolvers; }>; -export type CategoryEdgeResolvers = ResolversObject<{ +export type CategoryEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CategoryEdge'] = ResolversParentTypes['CategoryEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CheckboxFilterResolvers = ResolversObject<{ +export type CheckboxFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CheckboxFilter'] = ResolversParentTypes['CheckboxFilter'], +> = ResolversObject<{ filterKey?: Resolver; title?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingAccountListResolvers = ResolversObject<{ - activeMpdFinishAt?: Resolver, ParentType, ContextType>; - activeMpdMonthlyGoal?: Resolver, ParentType, ContextType>; - activeMpdStartAt?: Resolver, ParentType, ContextType>; +export type CoachingAccountListResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAccountList'] = ResolversParentTypes['CoachingAccountList'], +> = ResolversObject<{ + activeMpdFinishAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + activeMpdMonthlyGoal?: Resolver< + Maybe, + ParentType, + ContextType + >; + activeMpdStartAt?: Resolver< + Maybe, + ParentType, + ContextType + >; balance?: Resolver; - coaches?: Resolver>; - contactTagList?: Resolver, ParentType, ContextType>; - contacts?: Resolver>; - createdAt?: Resolver; + coaches?: Resolver< + ResolversTypes['UserScopedToAccountListConnection'], + ParentType, + ContextType, + Partial + >; + contactTagList?: Resolver< + Array, + ParentType, + ContextType + >; + contacts?: Resolver< + ResolversTypes['CoachingContactConnection'], + ParentType, + ContextType, + Partial + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; currency?: Resolver; - designationAccounts?: Resolver, ParentType, ContextType>; + designationAccounts?: Resolver< + Array, + ParentType, + ContextType + >; id?: Resolver; monthlyGoal?: Resolver, ParentType, ContextType>; name?: Resolver, ParentType, ContextType>; - primaryAppeal?: Resolver, ParentType, ContextType>; + primaryAppeal?: Resolver< + Maybe, + ParentType, + ContextType + >; receivedPledges?: Resolver; - taskTagList?: Resolver, ParentType, ContextType>; + taskTagList?: Resolver< + Array, + ParentType, + ContextType + >; totalPledges?: Resolver; - updatedAt?: Resolver; - users?: Resolver>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + users?: Resolver< + ResolversTypes['UserScopedToAccountListConnection'], + ParentType, + ContextType, + Partial + >; weeksOnMpd?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingAccountListConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type CoachingAccountListConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAccountListConnection'] = ResolversParentTypes['CoachingAccountListConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingAccountListEdgeResolvers = ResolversObject<{ +export type CoachingAccountListEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAccountListEdge'] = ResolversParentTypes['CoachingAccountListEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingAnswerResolvers = ResolversObject<{ - createdAt?: Resolver; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingAnswerResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAnswer'] = ResolversParentTypes['CoachingAnswer'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - question?: Resolver; + question?: Resolver< + ResolversTypes['CoachingQuestion'], + ParentType, + ContextType + >; response?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingAnswerSetResolvers = ResolversObject<{ - answers?: Resolver, ParentType, ContextType>; - completedAt?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingAnswerSetResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAnswerSet'] = ResolversParentTypes['CoachingAnswerSet'], +> = ResolversObject<{ + answers?: Resolver< + Array, + ParentType, + ContextType + >; + completedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - questions?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingAppealResolvers = ResolversObject<{ + questions?: Resolver< + Array, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingAppealResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingAppeal'] = ResolversParentTypes['CoachingAppeal'], +> = ResolversObject<{ active?: Resolver; amount?: Resolver, ParentType, ContextType>; amountCurrency?: Resolver; - createdAt?: Resolver; - endDate?: Resolver, ParentType, ContextType>; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + endDate?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver, ParentType, ContextType>; - pledges?: Resolver>; - pledgesAmountNotReceivedNotProcessed?: Resolver; - pledgesAmountProcessed?: Resolver; - pledgesAmountReceivedNotProcessed?: Resolver; - pledgesAmountTotal?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingContactResolvers = ResolversObject<{ - contactPhase?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + pledges?: Resolver< + ResolversTypes['CoachingPledgeConnection'], + ParentType, + ContextType, + Partial + >; + pledgesAmountNotReceivedNotProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountReceivedNotProcessed?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + pledgesAmountTotal?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingContact'] = ResolversParentTypes['CoachingContact'], +> = ResolversObject<{ + contactPhase?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; name?: Resolver; - pledgeAmount?: Resolver, ParentType, ContextType>; - pledgeCurrency?: Resolver, ParentType, ContextType>; - pledgeCurrencySymbol?: Resolver, ParentType, ContextType>; - pledgeFrequency?: Resolver, ParentType, ContextType>; + pledgeAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeFrequency?: Resolver< + Maybe, + ParentType, + ContextType + >; pledgeReceived?: Resolver; - pledgeStartDate?: Resolver, ParentType, ContextType>; - status?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingContactConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + pledgeStartDate?: Resolver< + Maybe, + ParentType, + ContextType + >; + status?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingContactConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingContactConnection'] = ResolversParentTypes['CoachingContactConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingContactEdgeResolvers = ResolversObject<{ +export type CoachingContactEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingContactEdge'] = ResolversParentTypes['CoachingContactEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingPledgeResolvers = ResolversObject<{ +export type CoachingPledgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingPledge'] = ResolversParentTypes['CoachingPledge'], +> = ResolversObject<{ amount?: Resolver; - amountCurrency?: Resolver, ParentType, ContextType>; + amountCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; appeal?: Resolver; - contact?: Resolver; - createdAt?: Resolver; - expectedDate?: Resolver; + contact?: Resolver< + ResolversTypes['CoachingContact'], + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + expectedDate?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingPledgeConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingPledgeConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingPledgeConnection'] = ResolversParentTypes['CoachingPledgeConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CoachingPledgeEdgeResolvers = ResolversObject<{ +export type CoachingPledgeEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingPledgeEdge'] = ResolversParentTypes['CoachingPledgeEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CoachingQuestionResolvers = ResolversObject<{ - createdAt?: Resolver; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CoachingQuestionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CoachingQuestion'] = ResolversParentTypes['CoachingQuestion'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; position?: Resolver; prompt?: Resolver; required?: Resolver; - responseOptions?: Resolver>, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CommentResolvers = ResolversObject<{ + responseOptions?: Resolver< + Maybe>, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CommentResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Comment'] = ResolversParentTypes['Comment'], +> = ResolversObject<{ body?: Resolver; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; me?: Resolver; - person?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CommentConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + person?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CommentConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CommentConnection'] = ResolversParentTypes['CommentConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7415,110 +8286,360 @@ export type CommentConnectionResolvers; }>; -export type CommentDeleteMutationPayloadResolvers = ResolversObject<{ +export type CommentDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CommentDeleteMutationPayload'] = ResolversParentTypes['CommentDeleteMutationPayload'], +> = ResolversObject<{ id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CommentEdgeResolvers = ResolversObject<{ +export type CommentEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CommentEdge'] = ResolversParentTypes['CommentEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CommentUpdateMutationPayloadResolvers = ResolversObject<{ +export type CommentUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CommentUpdateMutationPayload'] = ResolversParentTypes['CommentUpdateMutationPayload'], +> = ResolversObject<{ id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ConstantResolvers = ResolversObject<{ - activities?: Resolver>, ParentType, ContextType>; - languages?: Resolver>, ParentType, ContextType>; - likelyToGiveOptions?: Resolver>, ParentType, ContextType>; - locales?: Resolver>, ParentType, ContextType>; - locations?: Resolver>, ParentType, ContextType>; - notificationTranslatedHashes?: Resolver>, ParentType, ContextType>; - pledgeCurrencies?: Resolver>, ParentType, ContextType>; - pledgeFrequencies?: Resolver>, ParentType, ContextType>; - pledgesReceived?: Resolver>, ParentType, ContextType>; - preferredContactMethods?: Resolver>, ParentType, ContextType>; - sendAppeals?: Resolver>, ParentType, ContextType>; - sendNewsletterOptions?: Resolver>, ParentType, ContextType>; - statuses?: Resolver>, ParentType, ContextType>; - times?: Resolver>, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ContactResolvers = ResolversObject<{ - addresses?: Resolver>; +export type ConstantResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Constant'] = ResolversParentTypes['Constant'], +> = ResolversObject<{ + activities?: Resolver< + Maybe>, + ParentType, + ContextType + >; + languages?: Resolver< + Maybe>, + ParentType, + ContextType + >; + likelyToGiveOptions?: Resolver< + Maybe>, + ParentType, + ContextType + >; + locales?: Resolver< + Maybe>, + ParentType, + ContextType + >; + locations?: Resolver< + Maybe>, + ParentType, + ContextType + >; + notificationTranslatedHashes?: Resolver< + Maybe>, + ParentType, + ContextType + >; + pledgeCurrencies?: Resolver< + Maybe>, + ParentType, + ContextType + >; + pledgeFrequencies?: Resolver< + Maybe>, + ParentType, + ContextType + >; + pledgesReceived?: Resolver< + Maybe>, + ParentType, + ContextType + >; + preferredContactMethods?: Resolver< + Maybe>, + ParentType, + ContextType + >; + sendAppeals?: Resolver< + Maybe>, + ParentType, + ContextType + >; + sendNewsletterOptions?: Resolver< + Maybe>, + ParentType, + ContextType + >; + statuses?: Resolver< + Maybe>, + ParentType, + ContextType + >; + times?: Resolver< + Maybe>, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Contact'] = ResolversParentTypes['Contact'], +> = ResolversObject<{ + addresses?: Resolver< + ResolversTypes['AddressConnection'], + ParentType, + ContextType, + Partial + >; avatar?: Resolver; - churchName?: Resolver, ParentType, ContextType>; - contactDonorAccounts?: Resolver>; - contactPhase?: Resolver, ParentType, ContextType>; - contactReferralsByMe?: Resolver>; - contactReferralsToMe?: Resolver>; - createdAt?: Resolver; + churchName?: Resolver< + Maybe, + ParentType, + ContextType + >; + contactDonorAccounts?: Resolver< + ResolversTypes['ContactDonorAccountConnection'], + ParentType, + ContextType, + Partial + >; + contactPhase?: Resolver< + Maybe, + ParentType, + ContextType + >; + contactReferralsByMe?: Resolver< + ResolversTypes['ReferralConnection'], + ParentType, + ContextType, + Partial + >; + contactReferralsToMe?: Resolver< + ResolversTypes['ReferralConnection'], + ParentType, + ContextType, + Partial + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; deceased?: Resolver; - donations?: Resolver>; - donorAccountIds?: Resolver>, ParentType, ContextType>; - envelopeGreeting?: Resolver, ParentType, ContextType>; + donations?: Resolver< + ResolversTypes['DonationConnection'], + ParentType, + ContextType, + Partial + >; + donorAccountIds?: Resolver< + Maybe>, + ParentType, + ContextType + >; + envelopeGreeting?: Resolver< + Maybe, + ParentType, + ContextType + >; greeting?: Resolver, ParentType, ContextType>; id?: Resolver; - lastDonation?: Resolver, ParentType, ContextType>; - lateAt?: Resolver, ParentType, ContextType>; - likelyToGive?: Resolver, ParentType, ContextType>; + lastDonation?: Resolver< + Maybe, + ParentType, + ContextType + >; + lateAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + likelyToGive?: Resolver< + Maybe, + ParentType, + ContextType + >; locale?: Resolver, ParentType, ContextType>; name?: Resolver; - nextAsk?: Resolver, ParentType, ContextType>; - noAppeals?: Resolver, ParentType, ContextType>; - noGiftAid?: Resolver, ParentType, ContextType>; + nextAsk?: Resolver< + Maybe, + ParentType, + ContextType + >; + noAppeals?: Resolver< + Maybe, + ParentType, + ContextType + >; + noGiftAid?: Resolver< + Maybe, + ParentType, + ContextType + >; notes?: Resolver, ParentType, ContextType>; - notesSavedAt?: Resolver, ParentType, ContextType>; - people?: Resolver>; - pledgeAmount?: Resolver, ParentType, ContextType>; - pledgeCurrency?: Resolver, ParentType, ContextType>; - pledgeCurrencySymbol?: Resolver, ParentType, ContextType>; - pledgeFrequency?: Resolver, ParentType, ContextType>; + notesSavedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + people?: Resolver< + ResolversTypes['PersonConnection'], + ParentType, + ContextType, + Partial + >; + pledgeAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeFrequency?: Resolver< + Maybe, + ParentType, + ContextType + >; pledgeReceived?: Resolver; - pledgeStartDate?: Resolver, ParentType, ContextType>; - preferredContactMethod?: Resolver, ParentType, ContextType>; - primaryAddress?: Resolver, ParentType, ContextType>; - primaryPerson?: Resolver, ParentType, ContextType>; - relationshipCode?: Resolver, ParentType, ContextType>; - sendNewsletter?: Resolver, ParentType, ContextType>; - source?: Resolver, ParentType, ContextType>; + pledgeStartDate?: Resolver< + Maybe, + ParentType, + ContextType + >; + preferredContactMethod?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryAddress?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryPerson?: Resolver< + Maybe, + ParentType, + ContextType + >; + relationshipCode?: Resolver< + Maybe, + ParentType, + ContextType + >; + sendNewsletter?: Resolver< + Maybe, + ParentType, + ContextType + >; + source?: Resolver< + Maybe, + ParentType, + ContextType + >; starred?: Resolver; - starredAt?: Resolver, ParentType, ContextType>; - status?: Resolver, ParentType, ContextType>; - statusValid?: Resolver, ParentType, ContextType>; - suggestedChanges?: Resolver, ParentType, ContextType>; + starredAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + status?: Resolver< + Maybe, + ParentType, + ContextType + >; + statusValid?: Resolver< + Maybe, + ParentType, + ContextType + >; + suggestedChanges?: Resolver< + Maybe, + ParentType, + ContextType + >; tagList?: Resolver, ParentType, ContextType>; timezone?: Resolver, ParentType, ContextType>; - totalDonations?: Resolver, ParentType, ContextType>; - uncompletedTasksCount?: Resolver; - updatedAt?: Resolver; - user?: Resolver, ParentType, ContextType>; + totalDonations?: Resolver< + Maybe, + ParentType, + ContextType + >; + uncompletedTasksCount?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + user?: Resolver< + Maybe, + ParentType, + ContextType + >; website?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactAddressesResolvers = ResolversObject<{ +export type ContactAddressesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactAddresses'] = ResolversParentTypes['ContactAddresses'], +> = ResolversObject<{ city?: Resolver, ParentType, ContextType>; - postalCode?: Resolver, ParentType, ContextType>; - primaryMailingAddress?: Resolver, ParentType, ContextType>; + postalCode?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryMailingAddress?: Resolver< + Maybe, + ParentType, + ContextType + >; state?: Resolver, ParentType, ContextType>; street?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactAnonymizeMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type ContactAnonymizeMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactAnonymizeMutationPayload'] = ResolversParentTypes['ContactAnonymizeMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; contact?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; +export type ContactConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactConnection'] = ResolversParentTypes['ContactConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7526,141 +8647,309 @@ export type ContactConnectionResolvers; }>; -export type ContactCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type ContactCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactCreateMutationPayload'] = ResolversParentTypes['ContactCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; contact?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type ContactDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDeleteMutationPayload'] = ResolversParentTypes['ContactDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactDestroyDonorAccountPayloadResolvers = ResolversObject<{ +export type ContactDestroyDonorAccountPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDestroyDonorAccountPayload'] = ResolversParentTypes['ContactDestroyDonorAccountPayload'], +> = ResolversObject<{ id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactDonorAccountResolvers = ResolversObject<{ - createdAt?: Resolver; - donorAccount?: Resolver; +export type ContactDonorAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDonorAccount'] = ResolversParentTypes['ContactDonorAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + donorAccount?: Resolver< + ResolversTypes['DonorAccount'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ContactDonorAccountConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ContactDonorAccountConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDonorAccountConnection'] = ResolversParentTypes['ContactDonorAccountConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactDonorAccountEdgeResolvers = ResolversObject<{ +export type ContactDonorAccountEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDonorAccountEdge'] = ResolversParentTypes['ContactDonorAccountEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ContactDuplicateResolvers = ResolversObject<{ - createdAt?: Resolver; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ContactDuplicateResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDuplicate'] = ResolversParentTypes['ContactDuplicate'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; ignore?: Resolver; reason?: Resolver; recordOne?: Resolver; recordTwo?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ContactDuplicateConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ContactDuplicateConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDuplicateConnection'] = ResolversParentTypes['ContactDuplicateConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactDuplicateEdgeResolvers = ResolversObject<{ +export type ContactDuplicateEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactDuplicateEdge'] = ResolversParentTypes['ContactDuplicateEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactEdgeResolvers = ResolversObject<{ +export type ContactEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactEdge'] = ResolversParentTypes['ContactEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactPeopleResolvers = ResolversObject<{ - deceased?: Resolver, ParentType, ContextType>; - emailAddresses?: Resolver>>, ParentType, ContextType>; - firstName?: Resolver, ParentType, ContextType>; +export type ContactPeopleResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPeople'] = ResolversParentTypes['ContactPeople'], +> = ResolversObject<{ + deceased?: Resolver< + Maybe, + ParentType, + ContextType + >; + emailAddresses?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; lastName?: Resolver, ParentType, ContextType>; - phoneNumbers?: Resolver>>, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ContactPeopleAccountListsResolvers = ResolversObject<{ - accountListUsers?: Resolver>>, ParentType, ContextType>; + phoneNumbers?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ContactPeopleAccountListsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPeopleAccountLists'] = ResolversParentTypes['ContactPeopleAccountLists'], +> = ResolversObject<{ + accountListUsers?: Resolver< + Maybe>>, + ParentType, + ContextType + >; name?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactPeopleAccountListsUsersResolvers = ResolversObject<{ - emailAddresses?: Resolver>>, ParentType, ContextType>; - firstName?: Resolver, ParentType, ContextType>; +export type ContactPeopleAccountListsUsersResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPeopleAccountListsUsers'] = ResolversParentTypes['ContactPeopleAccountListsUsers'], +> = ResolversObject<{ + emailAddresses?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; lastName?: Resolver, ParentType, ContextType>; - phoneNumbers?: Resolver>>, ParentType, ContextType>; + phoneNumbers?: Resolver< + Maybe>>, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactPeopleEmailAddressesResolvers = ResolversObject<{ +export type ContactPeopleEmailAddressesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPeopleEmailAddresses'] = ResolversParentTypes['ContactPeopleEmailAddresses'], +> = ResolversObject<{ email?: Resolver, ParentType, ContextType>; - historic?: Resolver, ParentType, ContextType>; + historic?: Resolver< + Maybe, + ParentType, + ContextType + >; primary?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactPeoplePhoneNumbersResolvers = ResolversObject<{ - historic?: Resolver, ParentType, ContextType>; +export type ContactPeoplePhoneNumbersResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPeoplePhoneNumbers'] = ResolversParentTypes['ContactPeoplePhoneNumbers'], +> = ResolversObject<{ + historic?: Resolver< + Maybe, + ParentType, + ContextType + >; number?: Resolver, ParentType, ContextType>; primary?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactPrimaryAddressResolvers = ResolversObject<{ - addresses?: Resolver, ParentType, ContextType>; +export type ContactPrimaryAddressResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactPrimaryAddress'] = ResolversParentTypes['ContactPrimaryAddress'], +> = ResolversObject<{ + addresses?: Resolver< + Array, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type ContactUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactUpdateMutationPayload'] = ResolversParentTypes['ContactUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; contact?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactsAccountListAnalyticsResolvers = ResolversObject<{ +export type ContactsAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactsAccountListAnalytics'] = ResolversParentTypes['ContactsAccountListAnalytics'], +> = ResolversObject<{ active?: Resolver; referrals?: Resolver; referralsOnHand?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ContactsUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - contacts?: Resolver, ParentType, ContextType>; +export type ContactsUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ContactsUpdateMutationPayload'] = ResolversParentTypes['ContactsUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + contacts?: Resolver< + Array, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CorrespondenceAccountListAnalyticsResolvers = ResolversObject<{ +export type CorrespondenceAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CorrespondenceAccountListAnalytics'] = ResolversParentTypes['CorrespondenceAccountListAnalytics'], +> = ResolversObject<{ newsletters?: Resolver; precall?: Resolver; reminders?: Resolver; @@ -7669,21 +8958,46 @@ export type CorrespondenceAccountListAnalyticsResolvers; }>; -export type CreateAccountListInvitePayloadResolvers = ResolversObject<{ - accountListInvite?: Resolver; - clientMutationId?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type CreateOrUpdateOptionMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type CreateAccountListInvitePayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CreateAccountListInvitePayload'] = ResolversParentTypes['CreateAccountListInvitePayload'], +> = ResolversObject<{ + accountListInvite?: Resolver< + ResolversTypes['AccountListInvite'], + ParentType, + ContextType + >; + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type CreateOrUpdateOptionMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['CreateOrUpdateOptionMutationPayload'] = ResolversParentTypes['CreateOrUpdateOptionMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; option?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type CurrencyResolvers = ResolversObject<{ +export type CurrencyResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Currency'] = ResolversParentTypes['Currency'], +> = ResolversObject<{ code?: Resolver, ParentType, ContextType>; - codeSymbolString?: Resolver, ParentType, ContextType>; + codeSymbolString?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; key?: Resolver, ParentType, ContextType>; name?: Resolver, ParentType, ContextType>; @@ -7692,82 +9006,192 @@ export type CurrencyResolvers; }>; -export type DateRangeOptionResolvers = ResolversObject<{ +export type DateRangeOptionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DateRangeOption'] = ResolversParentTypes['DateRangeOption'], +> = ResolversObject<{ name?: Resolver; - rangeEnd?: Resolver; - rangeStart?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type DaterangeFilterResolvers = ResolversObject<{ + rangeEnd?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + rangeStart?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type DaterangeFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DaterangeFilter'] = ResolversParentTypes['DaterangeFilter'], +> = ResolversObject<{ filterKey?: Resolver; - options?: Resolver>, ParentType, ContextType>; + options?: Resolver< + Maybe>, + ParentType, + ContextType + >; title?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DeleteTagsPayloadResolvers = ResolversObject<{ +export type DeleteTagsPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DeleteTagsPayload'] = ResolversParentTypes['DeleteTagsPayload'], +> = ResolversObject<{ id?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DeletionResponseResolvers = ResolversObject<{ +export type DeletionResponseResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DeletionResponse'] = ResolversParentTypes['DeletionResponse'], +> = ResolversObject<{ success?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DesignationAccountResolvers = ResolversObject<{ +export type DesignationAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DesignationAccount'] = ResolversParentTypes['DesignationAccount'], +> = ResolversObject<{ accountNumber?: Resolver; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; name?: Resolver; - organization?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type DesignationAccountRestResolvers = ResolversObject<{ + organization?: Resolver< + ResolversTypes['Organization'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type DesignationAccountRestResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DesignationAccountRest'] = ResolversParentTypes['DesignationAccountRest'], +> = ResolversObject<{ active?: Resolver; - balanceUpdatedAt?: Resolver; + balanceUpdatedAt?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; convertedBalance?: Resolver; currency?: Resolver; - designationNumber?: Resolver, ParentType, ContextType>; + designationNumber?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DesignationAccountsGroupResolvers = ResolversObject<{ - designationAccounts?: Resolver, ParentType, ContextType>; - organizationName?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type DesignationWithDisplayNameResolvers = ResolversObject<{ - displayName?: Resolver, ParentType, ContextType>; +export type DesignationAccountsGroupResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DesignationAccountsGroup'] = ResolversParentTypes['DesignationAccountsGroup'], +> = ResolversObject<{ + designationAccounts?: Resolver< + Array, + ParentType, + ContextType + >; + organizationName?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type DesignationWithDisplayNameResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DesignationWithDisplayName'] = ResolversParentTypes['DesignationWithDisplayName'], +> = ResolversObject<{ + displayName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DonationResolvers = ResolversObject<{ +export type DonationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Donation'] = ResolversParentTypes['Donation'], +> = ResolversObject<{ amount?: Resolver; appeal?: Resolver, ParentType, ContextType>; - appealAmount?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; - designationAccount?: Resolver; - donationDate?: Resolver; - donorAccount?: Resolver; + appealAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + designationAccount?: Resolver< + ResolversTypes['DesignationAccount'], + ParentType, + ContextType + >; + donationDate?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; + donorAccount?: Resolver< + ResolversTypes['DonorAccount'], + ParentType, + ContextType + >; id?: Resolver; memo?: Resolver, ParentType, ContextType>; - motivation?: Resolver, ParentType, ContextType>; - paymentMethod?: Resolver, ParentType, ContextType>; + motivation?: Resolver< + Maybe, + ParentType, + ContextType + >; + paymentMethod?: Resolver< + Maybe, + ParentType, + ContextType + >; remoteId?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type DonationConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type DonationConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationConnection'] = ResolversParentTypes['DonationConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -7775,34 +9199,73 @@ export type DonationConnectionResolvers; }>; -export type DonationCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type DonationCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationCreateMutationPayload'] = ResolversParentTypes['DonationCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; donation?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DonationDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type DonationDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationDeleteMutationPayload'] = ResolversParentTypes['DonationDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DonationEdgeResolvers = ResolversObject<{ +export type DonationEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationEdge'] = ResolversParentTypes['DonationEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DonationHistoriesResolvers = ResolversObject<{ +export type DonationHistoriesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationHistories'] = ResolversParentTypes['DonationHistories'], +> = ResolversObject<{ average?: Resolver; - averageIgnoreCurrent?: Resolver; - averageIgnoreCurrentAndZero?: Resolver; - averageIgnoreZero?: Resolver; - periods?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type DonationHistoriesPeriodResolvers = ResolversObject<{ + averageIgnoreCurrent?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + averageIgnoreCurrentAndZero?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + averageIgnoreZero?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + periods?: Resolver< + Array, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type DonationHistoriesPeriodResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationHistoriesPeriod'] = ResolversParentTypes['DonationHistoriesPeriod'], +> = ResolversObject<{ convertedTotal?: Resolver; endDate?: Resolver; startDate?: Resolver; @@ -7810,278 +9273,640 @@ export type DonationHistoriesPeriodResolvers; }>; -export type DonationUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type DonationUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonationUpdateMutationPayload'] = ResolversParentTypes['DonationUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; donation?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type DonorAccountResolvers = ResolversObject<{ +export type DonorAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['DonorAccount'] = ResolversParentTypes['DonorAccount'], +> = ResolversObject<{ accountNumber?: Resolver; - contacts?: Resolver>; - createdAt?: Resolver; + contacts?: Resolver< + ResolversTypes['ContactConnection'], + ParentType, + ContextType, + Partial + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; displayName?: Resolver; id?: Resolver; - organization?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ElectronicAccountListAnalyticsResolvers = ResolversObject<{ + organization?: Resolver< + ResolversTypes['Organization'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ElectronicAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ElectronicAccountListAnalytics'] = ResolversParentTypes['ElectronicAccountListAnalytics'], +> = ResolversObject<{ appointments?: Resolver; received?: Resolver; sent?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EmailAddressResolvers = ResolversObject<{ - createdAt?: Resolver; +export type EmailAddressResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EmailAddress'] = ResolversParentTypes['EmailAddress'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; email?: Resolver; historic?: Resolver; id?: Resolver; location?: Resolver, ParentType, ContextType>; primary?: Resolver; source?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; validValues?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EmailAddressConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type EmailAddressConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EmailAddressConnection'] = ResolversParentTypes['EmailAddressConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EmailAddressEdgeResolvers = ResolversObject<{ +export type EmailAddressEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EmailAddressEdge'] = ResolversParentTypes['EmailAddressEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EmailsAccountListAnalyticsResolvers = ResolversObject<{ +export type EmailsAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EmailsAccountListAnalytics'] = ResolversParentTypes['EmailsAccountListAnalytics'], +> = ResolversObject<{ received?: Resolver; sent?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EntryHistoriesGroupResolvers = ResolversObject<{ - entryHistories?: Resolver>, ParentType, ContextType>; +export type EntryHistoriesGroupResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EntryHistoriesGroup'] = ResolversParentTypes['EntryHistoriesGroup'], +> = ResolversObject<{ + entryHistories?: Resolver< + Maybe>, + ParentType, + ContextType + >; financialAccountId?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type EntryHistoryRestResolvers = ResolversObject<{ +export type EntryHistoryRestResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['EntryHistoryRest'] = ResolversParentTypes['EntryHistoryRest'], +> = ResolversObject<{ closingBalance?: Resolver; endDate?: Resolver; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ExpectedMonthlyTotalDonationResolvers = ResolversObject<{ - contactId?: Resolver, ParentType, ContextType>; - contactName?: Resolver, ParentType, ContextType>; - contactStatus?: Resolver, ParentType, ContextType>; - convertedAmount?: Resolver, ParentType, ContextType>; - convertedCurrency?: Resolver, ParentType, ContextType>; - convertedCurrencySymbol?: Resolver, ParentType, ContextType>; - donationAmount?: Resolver, ParentType, ContextType>; - donationCurrency?: Resolver, ParentType, ContextType>; - donationCurrencySymbol?: Resolver, ParentType, ContextType>; - pledgeAmount?: Resolver, ParentType, ContextType>; - pledgeCurrency?: Resolver, ParentType, ContextType>; - pledgeCurrencySymbol?: Resolver, ParentType, ContextType>; - pledgeFrequency?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ExpectedMonthlyTotalGroupResolvers = ResolversObject<{ - donations?: Resolver, ParentType, ContextType>; +export type ExpectedMonthlyTotalDonationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ExpectedMonthlyTotalDonation'] = ResolversParentTypes['ExpectedMonthlyTotalDonation'], +> = ResolversObject<{ + contactId?: Resolver< + Maybe, + ParentType, + ContextType + >; + contactName?: Resolver< + Maybe, + ParentType, + ContextType + >; + contactStatus?: Resolver< + Maybe, + ParentType, + ContextType + >; + convertedAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + convertedCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + convertedCurrencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + donationAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + donationCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + donationCurrencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeFrequency?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ExpectedMonthlyTotalGroupResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ExpectedMonthlyTotalGroup'] = ResolversParentTypes['ExpectedMonthlyTotalGroup'], +> = ResolversObject<{ + donations?: Resolver< + Array, + ParentType, + ContextType + >; total?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ExpectedMonthlyTotalReportResolvers = ResolversObject<{ +export type ExpectedMonthlyTotalReportResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ExpectedMonthlyTotalReport'] = ResolversParentTypes['ExpectedMonthlyTotalReport'], +> = ResolversObject<{ currency?: Resolver, ParentType, ContextType>; - currencySymbol?: Resolver, ParentType, ContextType>; - likely?: Resolver; - received?: Resolver; - unlikely?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FacebookAccountResolvers = ResolversObject<{ - createdAt?: Resolver; + currencySymbol?: Resolver< + Maybe, + ParentType, + ContextType + >; + likely?: Resolver< + ResolversTypes['ExpectedMonthlyTotalGroup'], + ParentType, + ContextType + >; + received?: Resolver< + ResolversTypes['ExpectedMonthlyTotalGroup'], + ParentType, + ContextType + >; + unlikely?: Resolver< + ResolversTypes['ExpectedMonthlyTotalGroup'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FacebookAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FacebookAccount'] = ResolversParentTypes['FacebookAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; username?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FacebookAccountConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type FacebookAccountConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FacebookAccountConnection'] = ResolversParentTypes['FacebookAccountConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FacebookAccountEdgeResolvers = ResolversObject<{ +export type FacebookAccountEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FacebookAccountEdge'] = ResolversParentTypes['FacebookAccountEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FacebookAccountListAnalyticsResolvers = ResolversObject<{ +export type FacebookAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FacebookAccountListAnalytics'] = ResolversParentTypes['FacebookAccountListAnalytics'], +> = ResolversObject<{ received?: Resolver; sent?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FamilyRelationshipResolvers = ResolversObject<{ - createdAt?: Resolver; +export type FamilyRelationshipResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FamilyRelationship'] = ResolversParentTypes['FamilyRelationship'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; relatedPerson?: Resolver; relationship?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FamilyRelationshipConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FamilyRelationshipConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FamilyRelationshipConnection'] = ResolversParentTypes['FamilyRelationshipConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FamilyRelationshipEdgeResolvers = ResolversObject<{ +export type FamilyRelationshipEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FamilyRelationshipEdge'] = ResolversParentTypes['FamilyRelationshipEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FilterResolvers = ResolversObject<{ - __resolveType: TypeResolveFn<'CheckboxFilter' | 'DaterangeFilter' | 'MultiselectFilter' | 'NumericRangeFilter' | 'RadioFilter' | 'TextFilter', ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Filter'] = ResolversParentTypes['Filter'], +> = ResolversObject<{ + __resolveType: TypeResolveFn< + | 'CheckboxFilter' + | 'DaterangeFilter' + | 'MultiselectFilter' + | 'NumericRangeFilter' + | 'RadioFilter' + | 'TextFilter', + ParentType, + ContextType + >; filterKey?: Resolver; title?: Resolver; }>; -export type FilterGroupResolvers = ResolversObject<{ - featured?: Resolver, ParentType, ContextType>; +export type FilterGroupResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FilterGroup'] = ResolversParentTypes['FilterGroup'], +> = ResolversObject<{ + featured?: Resolver< + Maybe, + ParentType, + ContextType + >; filters?: Resolver, ParentType, ContextType>; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FilterOptionResolvers = ResolversObject<{ +export type FilterOptionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FilterOption'] = ResolversParentTypes['FilterOption'], +> = ResolversObject<{ name?: Resolver; - placeholder?: Resolver, ParentType, ContextType>; + placeholder?: Resolver< + Maybe, + ParentType, + ContextType + >; value?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FinancialAccountResolvers = ResolversObject<{ +export type FinancialAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FinancialAccount'] = ResolversParentTypes['FinancialAccount'], +> = ResolversObject<{ active?: Resolver; balance?: Resolver; - categories?: Resolver>; + categories?: Resolver< + ResolversTypes['CategoryConnection'], + ParentType, + ContextType, + Partial + >; code?: Resolver; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; name?: Resolver, ParentType, ContextType>; - organization?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FinancialAccountConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + organization?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FinancialAccountConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FinancialAccountConnection'] = ResolversParentTypes['FinancialAccountConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FinancialAccountEdgeResolvers = ResolversObject<{ +export type FinancialAccountEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FinancialAccountEdge'] = ResolversParentTypes['FinancialAccountEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FourteenMonthReportResolvers = ResolversObject<{ - currencyGroups?: Resolver, ParentType, ContextType>; - currencyType?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FourteenMonthReportResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReport'] = ResolversParentTypes['FourteenMonthReport'], +> = ResolversObject<{ + currencyGroups?: Resolver< + Array, + ParentType, + ContextType + >; + currencyType?: Resolver< + Maybe, + ParentType, + ContextType + >; salaryCurrency?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FourteenMonthReportContactResolvers = ResolversObject<{ - accountNumbers?: Resolver, ParentType, ContextType>; +export type FourteenMonthReportContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportContact'] = ResolversParentTypes['FourteenMonthReportContact'], +> = ResolversObject<{ + accountNumbers?: Resolver< + Array, + ParentType, + ContextType + >; average?: Resolver; id?: Resolver; lateBy30Days?: Resolver; lateBy60Days?: Resolver; minimum?: Resolver; - months?: Resolver>, ParentType, ContextType>; + months?: Resolver< + Maybe>, + ParentType, + ContextType + >; name?: Resolver; - pledgeAmount?: Resolver, ParentType, ContextType>; - pledgeCurrency?: Resolver, ParentType, ContextType>; - pledgeFrequency?: Resolver, ParentType, ContextType>; + pledgeAmount?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; + pledgeFrequency?: Resolver< + Maybe, + ParentType, + ContextType + >; status?: Resolver, ParentType, ContextType>; total?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FourteenMonthReportContactDonationResolvers = ResolversObject<{ +export type FourteenMonthReportContactDonationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportContactDonation'] = ResolversParentTypes['FourteenMonthReportContactDonation'], +> = ResolversObject<{ amount?: Resolver; currency?: Resolver; date?: Resolver; - paymentMethod?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type FourteenMonthReportContactMonthsResolvers = ResolversObject<{ - donations?: Resolver, ParentType, ContextType>; + paymentMethod?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type FourteenMonthReportContactMonthsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportContactMonths'] = ResolversParentTypes['FourteenMonthReportContactMonths'], +> = ResolversObject<{ + donations?: Resolver< + Array, + ParentType, + ContextType + >; month?: Resolver; - salaryCurrencyTotal?: Resolver; + salaryCurrencyTotal?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; total?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FourteenMonthReportCurrencyGroupResolvers = ResolversObject<{ - contacts?: Resolver, ParentType, ContextType>; +export type FourteenMonthReportCurrencyGroupResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportCurrencyGroup'] = ResolversParentTypes['FourteenMonthReportCurrencyGroup'], +> = ResolversObject<{ + contacts?: Resolver< + Array, + ParentType, + ContextType + >; currency?: Resolver; - totals?: Resolver; + totals?: Resolver< + ResolversTypes['FourteenMonthReportCurrencyGroupTotals'], + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FourteenMonthReportCurrencyGroupTotalsResolvers = ResolversObject<{ +export type FourteenMonthReportCurrencyGroupTotalsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportCurrencyGroupTotals'] = ResolversParentTypes['FourteenMonthReportCurrencyGroupTotals'], +> = ResolversObject<{ average?: Resolver; minimum?: Resolver; - months?: Resolver, ParentType, ContextType>; + months?: Resolver< + Array, + ParentType, + ContextType + >; year?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type FourteenMonthReportCurrencyGroupTotalsMonthResolvers = ResolversObject<{ +export type FourteenMonthReportCurrencyGroupTotalsMonthResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['FourteenMonthReportCurrencyGroupTotalsMonth'] = ResolversParentTypes['FourteenMonthReportCurrencyGroupTotalsMonth'], +> = ResolversObject<{ month?: Resolver; total?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type GoogleAccountAttributesResolvers = ResolversObject<{ +export type GoogleAccountAttributesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['GoogleAccountAttributes'] = ResolversParentTypes['GoogleAccountAttributes'], +> = ResolversObject<{ createdAt?: Resolver; email?: Resolver; expiresAt?: Resolver; id?: Resolver; - lastDownload?: Resolver, ParentType, ContextType>; - lastEmailSync?: Resolver, ParentType, ContextType>; + lastDownload?: Resolver< + Maybe, + ParentType, + ContextType + >; + lastEmailSync?: Resolver< + Maybe, + ParentType, + ContextType + >; primary?: Resolver; remoteId?: Resolver; tokenExpired?: Resolver; @@ -8090,12 +9915,35 @@ export type GoogleAccountAttributesResolvers; }>; -export type GoogleAccountIntegrationResolvers = ResolversObject<{ - calendarId?: Resolver, ParentType, ContextType>; - calendarIntegration?: Resolver, ParentType, ContextType>; - calendarIntegrations?: Resolver>, ParentType, ContextType>; - calendarName?: Resolver, ParentType, ContextType>; - calendars?: Resolver>, ParentType, ContextType>; +export type GoogleAccountIntegrationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['GoogleAccountIntegration'] = ResolversParentTypes['GoogleAccountIntegration'], +> = ResolversObject<{ + calendarId?: Resolver< + Maybe, + ParentType, + ContextType + >; + calendarIntegration?: Resolver< + Maybe, + ParentType, + ContextType + >; + calendarIntegrations?: Resolver< + Array>, + ParentType, + ContextType + >; + calendarName?: Resolver< + Maybe, + ParentType, + ContextType + >; + calendars?: Resolver< + Array>, + ParentType, + ContextType + >; createdAt?: Resolver; id?: Resolver; updatedAt?: Resolver; @@ -8103,227 +9951,797 @@ export type GoogleAccountIntegrationResolvers; }>; -export type GoogleAccountIntegrationCalendarsResolvers = ResolversObject<{ +export type GoogleAccountIntegrationCalendarsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['GoogleAccountIntegrationCalendars'] = ResolversParentTypes['GoogleAccountIntegrationCalendars'], +> = ResolversObject<{ id?: Resolver; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export interface Iso8601DateScalarConfig extends GraphQLScalarTypeConfig { +export interface Iso8601DateScalarConfig + extends GraphQLScalarTypeConfig { name: 'ISO8601Date'; } -export interface Iso8601DateTimeScalarConfig extends GraphQLScalarTypeConfig { +export interface Iso8601DateTimeScalarConfig + extends GraphQLScalarTypeConfig { name: 'ISO8601DateTime'; } -export type IdKeyValueResolvers = ResolversObject<{ +export type IdKeyValueResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['IdKeyValue'] = ResolversParentTypes['IdKeyValue'], +> = ResolversObject<{ id?: Resolver, ParentType, ContextType>; key?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type IdValueResolvers = ResolversObject<{ +export type IdValueResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['IdValue'] = ResolversParentTypes['IdValue'], +> = ResolversObject<{ id?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type InviteResolvers = ResolversObject<{ - acceptedAt?: Resolver, ParentType, ContextType>; +export type InviteResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Invite'] = ResolversParentTypes['Invite'], +> = ResolversObject<{ + acceptedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; code?: Resolver; createdAt?: Resolver; id?: Resolver; - inviteUserAs?: Resolver, ParentType, ContextType>; - recipientEmail?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type KeyAccountResolvers = ResolversObject<{ - createdAt?: Resolver; + inviteUserAs?: Resolver< + Maybe, + ParentType, + ContextType + >; + recipientEmail?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type KeyAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['KeyAccount'] = ResolversParentTypes['KeyAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; email?: Resolver; - firstName?: Resolver, ParentType, ContextType>; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; lastName?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type LinkedinAccountResolvers = ResolversObject<{ - createdAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type LinkedinAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['LinkedinAccount'] = ResolversParentTypes['LinkedinAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - publicUrl?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type LinkedinAccountConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + publicUrl?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type LinkedinAccountConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['LinkedinAccountConnection'] = ResolversParentTypes['LinkedinAccountConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type LinkedinAccountEdgeResolvers = ResolversObject<{ +export type LinkedinAccountEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['LinkedinAccountEdge'] = ResolversParentTypes['LinkedinAccountEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ListsAvailableForNewslettersResolvers = ResolversObject<{ +export type ListsAvailableForNewslettersResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ListsAvailableForNewsletters'] = ResolversParentTypes['ListsAvailableForNewsletters'], +> = ResolversObject<{ id?: Resolver; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type LocaleResolvers = ResolversObject<{ - englishName?: Resolver, ParentType, ContextType>; - nativeName?: Resolver, ParentType, ContextType>; - shortName?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type MailchimpAccountResolvers = ResolversObject<{ +export type LocaleResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Locale'] = ResolversParentTypes['Locale'], +> = ResolversObject<{ + englishName?: Resolver< + Maybe, + ParentType, + ContextType + >; + nativeName?: Resolver< + Maybe, + ParentType, + ContextType + >; + shortName?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type MailchimpAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['MailchimpAccount'] = ResolversParentTypes['MailchimpAccount'], +> = ResolversObject<{ active?: Resolver; - autoLogCampaigns?: Resolver; - createdAt?: Resolver, ParentType, ContextType>; + autoLogCampaigns?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; + createdAt?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; - listsAvailableForNewsletters?: Resolver>>, ParentType, ContextType>; + listsAvailableForNewsletters?: Resolver< + Maybe>>, + ParentType, + ContextType + >; listsLink?: Resolver; listsPresent?: Resolver; - primaryListId?: Resolver, ParentType, ContextType>; - primaryListName?: Resolver, ParentType, ContextType>; + primaryListId?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryListName?: Resolver< + Maybe, + ParentType, + ContextType + >; updatedAt?: Resolver; updatedInDbAt?: Resolver; valid?: Resolver; validateKey?: Resolver; - validationError?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type MergePeopleMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + validationError?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type MergePeopleMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['MergePeopleMutationPayload'] = ResolversParentTypes['MergePeopleMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; contact?: Resolver; winner?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type MoneyResolvers = ResolversObject<{ +export type MoneyResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Money'] = ResolversParentTypes['Money'], +> = ResolversObject<{ amount?: Resolver; - conversionDate?: Resolver; + conversionDate?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; conversionRate?: Resolver; convertedAmount?: Resolver; - convertedCurrency?: Resolver; + convertedCurrency?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; currency?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type MultiselectFilterResolvers = ResolversObject<{ - defaultSelection?: Resolver, ParentType, ContextType>; +export type MultiselectFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['MultiselectFilter'] = ResolversParentTypes['MultiselectFilter'], +> = ResolversObject<{ + defaultSelection?: Resolver< + Maybe, + ParentType, + ContextType + >; filterKey?: Resolver; - options?: Resolver>, ParentType, ContextType>; + options?: Resolver< + Maybe>, + ParentType, + ContextType + >; title?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type MutationResolvers = ResolversObject<{ - acknowledgeAllUserNotifications?: Resolver, ParentType, ContextType, RequireFields>; - acknowledgeAnnouncement?: Resolver, ParentType, ContextType, RequireFields>; - acknowledgeUserNotification?: Resolver, ParentType, ContextType, RequireFields>; - adminDeleteOrganizationCoach?: Resolver>; - adminDeleteOrganizationInvite?: Resolver>; - adminDeleteOrganizationUser?: Resolver>; - anonymizeContact?: Resolver, ParentType, ContextType, RequireFields>; - apiOauthSignIn?: Resolver, ParentType, ContextType, RequireFields>; - assignContactsToAppeal?: Resolver, ParentType, ContextType, RequireFields>; - cancelAccountListInvite?: Resolver, ParentType, ContextType, RequireFields>; - createAccountListInvite?: Resolver, ParentType, ContextType, RequireFields>; - createAddress?: Resolver, ParentType, ContextType, RequireFields>; - createAppeal?: Resolver, ParentType, ContextType, RequireFields>; - createContact?: Resolver, ParentType, ContextType, RequireFields>; - createDonation?: Resolver, ParentType, ContextType, RequireFields>; - createGoogleIntegration?: Resolver>; - createOrUpdateUserOption?: Resolver, ParentType, ContextType, RequireFields>; - createOrganizationAccount?: Resolver, ParentType, ContextType, RequireFields>; - createOrganizationInvite?: Resolver>; - createPerson?: Resolver, ParentType, ContextType, RequireFields>; - createTask?: Resolver, ParentType, ContextType, RequireFields>; - createTaskComment?: Resolver, ParentType, ContextType, RequireFields>; - createTasks?: Resolver, ParentType, ContextType, RequireFields>; - deleteAccountListCoach?: Resolver, ParentType, ContextType, RequireFields>; - deleteAccountListUser?: Resolver, ParentType, ContextType, RequireFields>; - deleteAddress?: Resolver, ParentType, ContextType, RequireFields>; - deleteAppeal?: Resolver, ParentType, ContextType, RequireFields>; - deleteComment?: Resolver>; - deleteContact?: Resolver, ParentType, ContextType, RequireFields>; - deleteDonation?: Resolver, ParentType, ContextType, RequireFields>; - deleteGoogleAccount?: Resolver>; - deleteMailchimpAccount?: Resolver>; - deleteOrganizationAccount?: Resolver, ParentType, ContextType, RequireFields>; - deleteOrganizationContact?: Resolver>; - deletePerson?: Resolver, ParentType, ContextType, RequireFields>; - deletePrayerlettersAccount?: Resolver>; - deleteTags?: Resolver, ParentType, ContextType, RequireFields>; - deleteTask?: Resolver, ParentType, ContextType, RequireFields>; - deleteTasks?: Resolver, ParentType, ContextType, RequireFields>; - deleteUser?: Resolver, ParentType, ContextType, RequireFields>; - deleteUserOption?: Resolver, ParentType, ContextType, RequireFields>; - destroyDonorAccount?: Resolver, ParentType, ContextType, RequireFields>; - destroyOrganizationAdmin?: Resolver>; - destroyOrganizationInvite?: Resolver>; - exportContacts?: Resolver>; - exportData?: Resolver>; - mergeAccountList?: Resolver, ParentType, ContextType, RequireFields>; - mergeContacts?: Resolver>; - mergePeople?: Resolver, ParentType, ContextType, RequireFields>; - oktaSignIn?: Resolver, ParentType, ContextType, RequireFields>; - resetAccountList?: Resolver, ParentType, ContextType, RequireFields>; - saveCoachingAnswer?: Resolver>; - sendToChalkline?: Resolver>; - setActiveDesignationAccount?: Resolver>; - setActiveFinancialAccount?: Resolver>; - setContactPrimaryAddress?: Resolver>; - syncGoogleAccount?: Resolver, ParentType, ContextType, RequireFields>; - syncMailchimpAccount?: Resolver, ParentType, ContextType, RequireFields>; - syncOrganizationAccount?: Resolver, ParentType, ContextType, RequireFields>; - syncPrayerlettersAccount?: Resolver, ParentType, ContextType, RequireFields>; - updateAccountList?: Resolver, ParentType, ContextType, RequireFields>; - updateAddress?: Resolver, ParentType, ContextType, RequireFields>; - updateAppeal?: Resolver, ParentType, ContextType, RequireFields>; - updateComment?: Resolver>; - updateContact?: Resolver, ParentType, ContextType, RequireFields>; - updateContacts?: Resolver, ParentType, ContextType, RequireFields>; - updateDonation?: Resolver, ParentType, ContextType, RequireFields>; - updateGoogleIntegration?: Resolver>; - updateMailchimpAccount?: Resolver>; - updateNotificationPreferences?: Resolver, ParentType, ContextType, RequireFields>; - updateOrganizationAccount?: Resolver, ParentType, ContextType, RequireFields>; - updatePerson?: Resolver, ParentType, ContextType, RequireFields>; - updatePreference?: Resolver, ParentType, ContextType, RequireFields>; - updateTask?: Resolver, ParentType, ContextType, RequireFields>; - updateTasks?: Resolver, ParentType, ContextType, RequireFields>; - updateUser?: Resolver, ParentType, ContextType, RequireFields>; - userKeySignIn?: Resolver, ParentType, ContextType, RequireFields>; -}>; - -export type NotificationResolvers = ResolversObject<{ +export type MutationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation'], +> = ResolversObject<{ + acknowledgeAllUserNotifications?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + acknowledgeAnnouncement?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + acknowledgeUserNotification?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + adminDeleteOrganizationCoach?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + adminDeleteOrganizationInvite?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + adminDeleteOrganizationUser?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + anonymizeContact?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + apiOauthSignIn?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + assignContactsToAppeal?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + cancelAccountListInvite?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createAccountListInvite?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createAddress?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createAppeal?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createContact?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createDonation?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createGoogleIntegration?: Resolver< + ResolversTypes['GoogleAccountIntegration'], + ParentType, + ContextType, + RequireFields + >; + createOrUpdateUserOption?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createOrganizationAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createOrganizationInvite?: Resolver< + ResolversTypes['Invite'], + ParentType, + ContextType, + RequireFields + >; + createPerson?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createTask?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createTaskComment?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + createTasks?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteAccountListCoach?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteAccountListUser?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteAddress?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteAppeal?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteComment?: Resolver< + ResolversTypes['CommentDeleteMutationPayload'], + ParentType, + ContextType, + RequireFields + >; + deleteContact?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteDonation?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteGoogleAccount?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + deleteMailchimpAccount?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + deleteOrganizationAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteOrganizationContact?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + deletePerson?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deletePrayerlettersAccount?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + deleteTags?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteTask?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteTasks?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteUser?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + deleteUserOption?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + destroyDonorAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + destroyOrganizationAdmin?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + destroyOrganizationInvite?: Resolver< + ResolversTypes['DeletionResponse'], + ParentType, + ContextType, + RequireFields + >; + exportContacts?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType, + RequireFields + >; + exportData?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType, + RequireFields + >; + mergeAccountList?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + mergeContacts?: Resolver< + ResolversTypes['ID'], + ParentType, + ContextType, + RequireFields + >; + mergePeople?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + oktaSignIn?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + resetAccountList?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + saveCoachingAnswer?: Resolver< + ResolversTypes['CoachingAnswer'], + ParentType, + ContextType, + RequireFields + >; + sendToChalkline?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType, + RequireFields + >; + setActiveDesignationAccount?: Resolver< + ResolversTypes['DesignationAccountRest'], + ParentType, + ContextType, + RequireFields + >; + setActiveFinancialAccount?: Resolver< + ResolversTypes['SetActiveFinancialAccountRest'], + ParentType, + ContextType, + RequireFields + >; + setContactPrimaryAddress?: Resolver< + ResolversTypes['ContactPrimaryAddress'], + ParentType, + ContextType, + RequireFields + >; + syncGoogleAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + syncMailchimpAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + syncOrganizationAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + syncPrayerlettersAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateAccountList?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateAddress?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateAppeal?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateComment?: Resolver< + ResolversTypes['CommentUpdateMutationPayload'], + ParentType, + ContextType, + RequireFields + >; + updateContact?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateContacts?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateDonation?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateGoogleIntegration?: Resolver< + ResolversTypes['GoogleAccountIntegration'], + ParentType, + ContextType, + RequireFields + >; + updateMailchimpAccount?: Resolver< + ResolversTypes['MailchimpAccount'], + ParentType, + ContextType, + RequireFields + >; + updateNotificationPreferences?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateOrganizationAccount?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updatePerson?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updatePreference?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateTask?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateTasks?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + updateUser?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + userKeySignIn?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; +}>; + +export type NotificationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Notification'] = ResolversParentTypes['Notification'], +> = ResolversObject<{ cleared?: Resolver; contact?: Resolver; - createdAt?: Resolver; - donation?: Resolver, ParentType, ContextType>; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + donation?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; - notificationType?: Resolver; - occurredAt?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type NotificationConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + notificationType?: Resolver< + ResolversTypes['NotificationType'], + ParentType, + ContextType + >; + occurredAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type NotificationConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationConnection'] = ResolversParentTypes['NotificationConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; @@ -8331,58 +10749,139 @@ export type NotificationConnectionResolvers; }>; -export type NotificationEdgeResolvers = ResolversObject<{ +export type NotificationEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationEdge'] = ResolversParentTypes['NotificationEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type NotificationPreferenceResolvers = ResolversObject<{ +export type NotificationPreferenceResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationPreference'] = ResolversParentTypes['NotificationPreference'], +> = ResolversObject<{ accountListId?: Resolver; app?: Resolver; - createdAt?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; email?: Resolver; id?: Resolver; - notificationType?: Resolver; + notificationType?: Resolver< + ResolversTypes['NotificationType'], + ParentType, + ContextType + >; task?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; userId?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type NotificationPreferenceConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type NotificationPreferenceConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationPreferenceConnection'] = ResolversParentTypes['NotificationPreferenceConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type NotificationPreferenceEdgeResolvers = ResolversObject<{ +export type NotificationPreferenceEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationPreferenceEdge'] = ResolversParentTypes['NotificationPreferenceEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type NotificationPreferencesUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - notificationPreferences?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type NotificationTypeResolvers = ResolversObject<{ - createdAt?: Resolver; - descriptionTemplate?: Resolver; - emailDescriptionTemplate?: Resolver; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type NotificationPreferencesUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationPreferencesUpdateMutationPayload'] = ResolversParentTypes['NotificationPreferencesUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + notificationPreferences?: Resolver< + Array, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type NotificationTypeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NotificationType'] = ResolversParentTypes['NotificationType'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + descriptionTemplate?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; + emailDescriptionTemplate?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; id?: Resolver; - type?: Resolver; - updatedAt?: Resolver; - userNotificationTitleTemplate?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type NumericRangeFilterResolvers = ResolversObject<{ + type?: Resolver< + ResolversTypes['NotificationTypeTypeEnum'], + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + userNotificationTitleTemplate?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type NumericRangeFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['NumericRangeFilter'] = ResolversParentTypes['NumericRangeFilter'], +> = ResolversObject<{ filterKey?: Resolver; max?: Resolver; maxLabel?: Resolver; @@ -8392,140 +10891,351 @@ export type NumericRangeFilterResolvers; }>; -export type OktaSignInMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type OktaSignInMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OktaSignInMutationPayload'] = ResolversParentTypes['OktaSignInMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; token?: Resolver, ParentType, ContextType>; user?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OptionResolvers = ResolversObject<{ - createdAt?: Resolver; +export type OptionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Option'] = ResolversParentTypes['Option'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; key?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; value?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationResolvers = ResolversObject<{ +export type OrganizationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Organization'] = ResolversParentTypes['Organization'], +> = ResolversObject<{ apiClass?: Resolver; - createdAt?: Resolver; - disableNewUsers?: Resolver, ParentType, ContextType>; - giftAidPercentage?: Resolver, ParentType, ContextType>; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + disableNewUsers?: Resolver< + Maybe, + ParentType, + ContextType + >; + giftAidPercentage?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver; oauth?: Resolver; - organizationType?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type OrganizationAccountResolvers = ResolversObject<{ - createdAt?: Resolver; + organizationType?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type OrganizationAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccount'] = ResolversParentTypes['OrganizationAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - lastDownload?: Resolver, ParentType, ContextType>; - lastDownloadAttemptAt?: Resolver, ParentType, ContextType>; - lastDownloadedAt?: Resolver, ParentType, ContextType>; - latestDonationDate?: Resolver, ParentType, ContextType>; - organization?: Resolver; + lastDownload?: Resolver< + Maybe, + ParentType, + ContextType + >; + lastDownloadAttemptAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + lastDownloadedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + latestDonationDate?: Resolver< + Maybe, + ParentType, + ContextType + >; + organization?: Resolver< + ResolversTypes['Organization'], + ParentType, + ContextType + >; person?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; username?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationAccountCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - organizationAccount?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type OrganizationAccountDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type OrganizationAccountCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccountCreateMutationPayload'] = ResolversParentTypes['OrganizationAccountCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + organizationAccount?: Resolver< + ResolversTypes['OrganizationAccount'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type OrganizationAccountDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccountDeleteMutationPayload'] = ResolversParentTypes['OrganizationAccountDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationAccountListCoachesResolvers = ResolversObject<{ - coachEmailAddresses?: Resolver>>, ParentType, ContextType>; - coachFirstName?: Resolver, ParentType, ContextType>; - coachLastName?: Resolver, ParentType, ContextType>; +export type OrganizationAccountListCoachesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccountListCoaches'] = ResolversParentTypes['OrganizationAccountListCoaches'], +> = ResolversObject<{ + coachEmailAddresses?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + coachFirstName?: Resolver< + Maybe, + ParentType, + ContextType + >; + coachLastName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationAccountSyncMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - organizationAccount?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type OrganizationAccountUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; - organizationAccount?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type OrganizationConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type OrganizationAccountSyncMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccountSyncMutationPayload'] = ResolversParentTypes['OrganizationAccountSyncMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + organizationAccount?: Resolver< + ResolversTypes['OrganizationAccount'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type OrganizationAccountUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationAccountUpdateMutationPayload'] = ResolversParentTypes['OrganizationAccountUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; + organizationAccount?: Resolver< + ResolversTypes['OrganizationAccount'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type OrganizationConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationConnection'] = ResolversParentTypes['OrganizationConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationEdgeResolvers = ResolversObject<{ +export type OrganizationEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationEdge'] = ResolversParentTypes['OrganizationEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationsResolvers = ResolversObject<{ +export type OrganizationsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Organizations'] = ResolversParentTypes['Organizations'], +> = ResolversObject<{ id?: Resolver; name?: Resolver; type?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationsAccountListResolvers = ResolversObject<{ - accountListCoachInvites?: Resolver>>, ParentType, ContextType>; - accountListCoaches?: Resolver>>, ParentType, ContextType>; - accountListUsers?: Resolver>>, ParentType, ContextType>; - accountListUsersInvites?: Resolver>>, ParentType, ContextType>; - designationAccounts?: Resolver>>, ParentType, ContextType>; +export type OrganizationsAccountListResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationsAccountList'] = ResolversParentTypes['OrganizationsAccountList'], +> = ResolversObject<{ + accountListCoachInvites?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + accountListCoaches?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + accountListUsers?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + accountListUsersInvites?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + designationAccounts?: Resolver< + Maybe>>, + ParentType, + ContextType + >; id?: Resolver; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type OrganizationsContactResolvers = ResolversObject<{ - accountList?: Resolver, ParentType, ContextType>; - addresses?: Resolver>, ParentType, ContextType>; +export type OrganizationsContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OrganizationsContact'] = ResolversParentTypes['OrganizationsContact'], +> = ResolversObject<{ + accountList?: Resolver< + Maybe, + ParentType, + ContextType + >; + addresses?: Resolver< + Array>, + ParentType, + ContextType + >; allowDeletion?: Resolver; id?: Resolver; name?: Resolver; - people?: Resolver>, ParentType, ContextType>; - squareAvatar?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type OverdueOrDueTodayTaskAnalyticResolvers = ResolversObject<{ + people?: Resolver< + Array>, + ParentType, + ContextType + >; + squareAvatar?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type OverdueOrDueTodayTaskAnalyticResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['OverdueOrDueTodayTaskAnalytic'] = ResolversParentTypes['OverdueOrDueTodayTaskAnalytic'], +> = ResolversObject<{ count?: Resolver; label?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PageInfoResolvers = ResolversObject<{ - endCursor?: Resolver, ParentType, ContextType>; +export type PageInfoResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PageInfo'] = ResolversParentTypes['PageInfo'], +> = ResolversObject<{ + endCursor?: Resolver< + Maybe, + ParentType, + ContextType + >; hasNextPage?: Resolver; - hasPreviousPage?: Resolver; - startCursor?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type PaginationResolvers = ResolversObject<{ + hasPreviousPage?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; + startCursor?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type PaginationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Pagination'] = ResolversParentTypes['Pagination'], +> = ResolversObject<{ page?: Resolver; perPage?: Resolver; totalCount?: Resolver; @@ -8533,28 +11243,69 @@ export type PaginationResolvers; }>; -export type PartnerGivingAnalysisReportResolvers = ResolversObject<{ - contacts?: Resolver, ParentType, ContextType>; - pagination?: Resolver; +export type PartnerGivingAnalysisReportResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PartnerGivingAnalysisReport'] = ResolversParentTypes['PartnerGivingAnalysisReport'], +> = ResolversObject<{ + contacts?: Resolver< + Array, + ParentType, + ContextType + >; + pagination?: Resolver< + ResolversTypes['PartnerGivingAnalysisReportPagination'], + ParentType, + ContextType + >; totalContacts?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PartnerGivingAnalysisReportContactResolvers = ResolversObject<{ - donationPeriodAverage?: Resolver; - donationPeriodCount?: Resolver; - donationPeriodSum?: Resolver; +export type PartnerGivingAnalysisReportContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PartnerGivingAnalysisReportContact'] = ResolversParentTypes['PartnerGivingAnalysisReportContact'], +> = ResolversObject<{ + donationPeriodAverage?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + donationPeriodCount?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + donationPeriodSum?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; id?: Resolver; - lastDonationAmount?: Resolver; - lastDonationCurrency?: Resolver; - lastDonationDate?: Resolver; + lastDonationAmount?: Resolver< + ResolversTypes['Float'], + ParentType, + ContextType + >; + lastDonationCurrency?: Resolver< + ResolversTypes['String'], + ParentType, + ContextType + >; + lastDonationDate?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; name?: Resolver; pledgeCurrency?: Resolver; totalDonations?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PartnerGivingAnalysisReportPaginationResolvers = ResolversObject<{ +export type PartnerGivingAnalysisReportPaginationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PartnerGivingAnalysisReportPagination'] = ResolversParentTypes['PartnerGivingAnalysisReportPagination'], +> = ResolversObject<{ page?: Resolver; pageSize?: Resolver; totalItems?: Resolver; @@ -8562,55 +11313,174 @@ export type PartnerGivingAnalysisReportPaginationResolvers; }>; -export type PeopleResolvers = ResolversObject<{ - periods?: Resolver, ParentType, ContextType>; +export type PeopleResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['People'] = ResolversParentTypes['People'], +> = ResolversObject<{ + periods?: Resolver< + Array, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PeoplePeriodResolvers = ResolversObject<{ +export type PeoplePeriodResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PeoplePeriod'] = ResolversParentTypes['PeoplePeriod'], +> = ResolversObject<{ endDate?: Resolver; - people?: Resolver, ParentType, ContextType>; + people?: Resolver< + Array, + ParentType, + ContextType + >; startDate?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonResolvers = ResolversObject<{ - almaMater?: Resolver, ParentType, ContextType>; - anniversaryDay?: Resolver, ParentType, ContextType>; - anniversaryMonth?: Resolver, ParentType, ContextType>; - anniversaryYear?: Resolver, ParentType, ContextType>; +export type PersonResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Person'] = ResolversParentTypes['Person'], +> = ResolversObject<{ + almaMater?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryDay?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryYear?: Resolver< + Maybe, + ParentType, + ContextType + >; avatar?: Resolver; birthdayDay?: Resolver, ParentType, ContextType>; - birthdayMonth?: Resolver, ParentType, ContextType>; - birthdayYear?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + birthdayMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + birthdayYear?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; deceased?: Resolver; - emailAddresses?: Resolver>; + emailAddresses?: Resolver< + ResolversTypes['EmailAddressConnection'], + ParentType, + ContextType, + Partial + >; employer?: Resolver, ParentType, ContextType>; - facebookAccounts?: Resolver>; - familyRelationships?: Resolver>; - firstName?: Resolver, ParentType, ContextType>; + facebookAccounts?: Resolver< + ResolversTypes['FacebookAccountConnection'], + ParentType, + ContextType, + Partial + >; + familyRelationships?: Resolver< + ResolversTypes['FamilyRelationshipConnection'], + ParentType, + ContextType, + Partial + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; gender?: Resolver, ParentType, ContextType>; id?: Resolver; lastName?: Resolver, ParentType, ContextType>; - legalFirstName?: Resolver, ParentType, ContextType>; - linkedinAccounts?: Resolver>; - maritalStatus?: Resolver, ParentType, ContextType>; - occupation?: Resolver, ParentType, ContextType>; - optoutEnewsletter?: Resolver; - phoneNumbers?: Resolver>; - primaryEmailAddress?: Resolver, ParentType, ContextType>; - primaryPhoneNumber?: Resolver, ParentType, ContextType>; + legalFirstName?: Resolver< + Maybe, + ParentType, + ContextType + >; + linkedinAccounts?: Resolver< + ResolversTypes['LinkedinAccountConnection'], + ParentType, + ContextType, + Partial + >; + maritalStatus?: Resolver< + Maybe, + ParentType, + ContextType + >; + occupation?: Resolver< + Maybe, + ParentType, + ContextType + >; + optoutEnewsletter?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; + phoneNumbers?: Resolver< + ResolversTypes['PhoneNumberConnection'], + ParentType, + ContextType, + Partial + >; + primaryEmailAddress?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryPhoneNumber?: Resolver< + Maybe, + ParentType, + ContextType + >; suffix?: Resolver, ParentType, ContextType>; title?: Resolver, ParentType, ContextType>; - twitterAccounts?: Resolver>; - updatedAt?: Resolver; - websites?: Resolver>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type PersonConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + twitterAccounts?: Resolver< + ResolversTypes['TwitterAccountConnection'], + ParentType, + ContextType, + Partial + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + websites?: Resolver< + ResolversTypes['WebsiteConnection'], + ParentType, + ContextType, + Partial + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type PersonConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonConnection'] = ResolversParentTypes['PersonConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -8618,93 +11488,247 @@ export type PersonConnectionResolvers; }>; -export type PersonCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type PersonCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonCreateMutationPayload'] = ResolversParentTypes['PersonCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; person?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type PersonDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonDeleteMutationPayload'] = ResolversParentTypes['PersonDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonDuplicateResolvers = ResolversObject<{ - createdAt?: Resolver; +export type PersonDuplicateResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonDuplicate'] = ResolversParentTypes['PersonDuplicate'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; ignore?: Resolver; reason?: Resolver; recordOne?: Resolver; recordTwo?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type PersonDuplicateConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type PersonDuplicateConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonDuplicateConnection'] = ResolversParentTypes['PersonDuplicateConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonDuplicateEdgeResolvers = ResolversObject<{ +export type PersonDuplicateEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonDuplicateEdge'] = ResolversParentTypes['PersonDuplicateEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonEdgeResolvers = ResolversObject<{ +export type PersonEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonEdge'] = ResolversParentTypes['PersonEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type PersonUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonUpdateMutationPayload'] = ResolversParentTypes['PersonUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; person?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PersonWithParentContactResolvers = ResolversObject<{ - almaMater?: Resolver, ParentType, ContextType>; - anniversaryDay?: Resolver, ParentType, ContextType>; - anniversaryMonth?: Resolver, ParentType, ContextType>; - anniversaryYear?: Resolver, ParentType, ContextType>; +export type PersonWithParentContactResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PersonWithParentContact'] = ResolversParentTypes['PersonWithParentContact'], +> = ResolversObject<{ + almaMater?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryDay?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryYear?: Resolver< + Maybe, + ParentType, + ContextType + >; avatar?: Resolver; birthdayDay?: Resolver, ParentType, ContextType>; - birthdayMonth?: Resolver, ParentType, ContextType>; - birthdayYear?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + birthdayMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + birthdayYear?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; deceased?: Resolver; - emailAddresses?: Resolver>; + emailAddresses?: Resolver< + ResolversTypes['EmailAddressConnection'], + ParentType, + ContextType, + Partial + >; employer?: Resolver, ParentType, ContextType>; - facebookAccounts?: Resolver>; - familyRelationships?: Resolver>; - firstName?: Resolver, ParentType, ContextType>; + facebookAccounts?: Resolver< + ResolversTypes['FacebookAccountConnection'], + ParentType, + ContextType, + Partial + >; + familyRelationships?: Resolver< + ResolversTypes['FamilyRelationshipConnection'], + ParentType, + ContextType, + Partial + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; gender?: Resolver, ParentType, ContextType>; id?: Resolver; lastName?: Resolver, ParentType, ContextType>; - legalFirstName?: Resolver, ParentType, ContextType>; - linkedinAccounts?: Resolver>; - maritalStatus?: Resolver, ParentType, ContextType>; - occupation?: Resolver, ParentType, ContextType>; - optoutEnewsletter?: Resolver; + legalFirstName?: Resolver< + Maybe, + ParentType, + ContextType + >; + linkedinAccounts?: Resolver< + ResolversTypes['LinkedinAccountConnection'], + ParentType, + ContextType, + Partial + >; + maritalStatus?: Resolver< + Maybe, + ParentType, + ContextType + >; + occupation?: Resolver< + Maybe, + ParentType, + ContextType + >; + optoutEnewsletter?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; parentContact?: Resolver; - phoneNumbers?: Resolver>; - primaryEmailAddress?: Resolver, ParentType, ContextType>; - primaryPhoneNumber?: Resolver, ParentType, ContextType>; + phoneNumbers?: Resolver< + ResolversTypes['PhoneNumberConnection'], + ParentType, + ContextType, + Partial + >; + primaryEmailAddress?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryPhoneNumber?: Resolver< + Maybe, + ParentType, + ContextType + >; suffix?: Resolver, ParentType, ContextType>; title?: Resolver, ParentType, ContextType>; - twitterAccounts?: Resolver>; - updatedAt?: Resolver; - websites?: Resolver>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type PhoneAccountListAnalyticsResolvers = ResolversObject<{ + twitterAccounts?: Resolver< + ResolversTypes['TwitterAccountConnection'], + ParentType, + ContextType, + Partial + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + websites?: Resolver< + ResolversTypes['WebsiteConnection'], + ParentType, + ContextType, + Partial + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type PhoneAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PhoneAccountListAnalytics'] = ResolversParentTypes['PhoneAccountListAnalytics'], +> = ResolversObject<{ appointments?: Resolver; attempted?: Resolver; completed?: Resolver; @@ -8713,48 +11737,103 @@ export type PhoneAccountListAnalyticsResolvers; }>; -export type PhoneNumberResolvers = ResolversObject<{ - createdAt?: Resolver; +export type PhoneNumberResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PhoneNumber'] = ResolversParentTypes['PhoneNumber'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; historic?: Resolver; id?: Resolver; location?: Resolver, ParentType, ContextType>; number?: Resolver, ParentType, ContextType>; primary?: Resolver; source?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; validValues?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PhoneNumberConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; +export type PhoneNumberConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PhoneNumberConnection'] = ResolversParentTypes['PhoneNumberConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PhoneNumberEdgeResolvers = ResolversObject<{ +export type PhoneNumberEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PhoneNumberEdge'] = ResolversParentTypes['PhoneNumberEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PledgeResolvers = ResolversObject<{ +export type PledgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Pledge'] = ResolversParentTypes['Pledge'], +> = ResolversObject<{ amount?: Resolver; - amountCurrency?: Resolver, ParentType, ContextType>; + amountCurrency?: Resolver< + Maybe, + ParentType, + ContextType + >; appeal?: Resolver; contact?: Resolver; - createdAt?: Resolver; - expectedDate?: Resolver; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + expectedDate?: Resolver< + ResolversTypes['ISO8601Date'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type PledgeConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type PledgeConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PledgeConnection'] = ResolversParentTypes['PledgeConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -8762,115 +11841,490 @@ export type PledgeConnectionResolvers; }>; -export type PledgeEdgeResolvers = ResolversObject<{ +export type PledgeEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PledgeEdge'] = ResolversParentTypes['PledgeEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PrayerlettersAccountResolvers = ResolversObject<{ +export type PrayerlettersAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['PrayerlettersAccount'] = ResolversParentTypes['PrayerlettersAccount'], +> = ResolversObject<{ validToken?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type PreferenceResolvers = ResolversObject<{ - contactsFilter?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; - hourToSendNotifications?: Resolver, ParentType, ContextType>; +export type PreferenceResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Preference'] = ResolversParentTypes['Preference'], +> = ResolversObject<{ + contactsFilter?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + hourToSendNotifications?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; locale?: Resolver, ParentType, ContextType>; - localeDisplay?: Resolver, ParentType, ContextType>; - tabOrders?: Resolver, ParentType, ContextType>; - tasksFilter?: Resolver, ParentType, ContextType>; + localeDisplay?: Resolver< + Maybe, + ParentType, + ContextType + >; + tabOrders?: Resolver< + Maybe, + ParentType, + ContextType + >; + tasksFilter?: Resolver< + Maybe, + ParentType, + ContextType + >; timeZone?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type QueryResolvers = ResolversObject<{ +export type QueryResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query'], +> = ResolversObject<{ _service?: Resolver; - accountList?: Resolver>; - accountListAnalytics?: Resolver>; - accountListCoaches?: Resolver>; - accountListDonorAccounts?: Resolver>, ParentType, ContextType, RequireFields>; - accountListInvites?: Resolver>; - accountListUsers?: Resolver>; - accountLists?: Resolver>; - address?: Resolver>; - addresses?: Resolver>; - announcements?: Resolver, ParentType, ContextType>; - appeal?: Resolver>; - appeals?: Resolver>; - appointmentResults?: Resolver, ParentType, ContextType, RequireFields>; - canUserExportData?: Resolver>; - coachingAccountList?: Resolver>; - coachingAccountLists?: Resolver>; - coachingAnswerSets?: Resolver, ParentType, ContextType, RequireFields>; + accountList?: Resolver< + ResolversTypes['AccountList'], + ParentType, + ContextType, + RequireFields + >; + accountListAnalytics?: Resolver< + ResolversTypes['AccountListAnalytics'], + ParentType, + ContextType, + RequireFields + >; + accountListCoaches?: Resolver< + ResolversTypes['UserScopedToAccountListConnection'], + ParentType, + ContextType, + RequireFields + >; + accountListDonorAccounts?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields< + QueryAccountListDonorAccountsArgs, + 'accountListId' | 'searchTerm' + > + >; + accountListInvites?: Resolver< + ResolversTypes['AccountListInviteConnection'], + ParentType, + ContextType, + RequireFields + >; + accountListUsers?: Resolver< + ResolversTypes['AccountListUserConnection'], + ParentType, + ContextType, + RequireFields + >; + accountLists?: Resolver< + ResolversTypes['AccountListConnection'], + ParentType, + ContextType, + Partial + >; + address?: Resolver< + ResolversTypes['Address'], + ParentType, + ContextType, + RequireFields + >; + addresses?: Resolver< + ResolversTypes['AddressConnection'], + ParentType, + ContextType, + RequireFields + >; + announcements?: Resolver< + Array, + ParentType, + ContextType + >; + appeal?: Resolver< + ResolversTypes['Appeal'], + ParentType, + ContextType, + RequireFields + >; + appeals?: Resolver< + ResolversTypes['AppealConnection'], + ParentType, + ContextType, + RequireFields + >; + appointmentResults?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + >; + canUserExportData?: Resolver< + ResolversTypes['CanUserExportData'], + ParentType, + ContextType, + RequireFields + >; + coachingAccountList?: Resolver< + ResolversTypes['CoachingAccountList'], + ParentType, + ContextType, + RequireFields + >; + coachingAccountLists?: Resolver< + ResolversTypes['CoachingAccountListConnection'], + ParentType, + ContextType, + Partial + >; + coachingAnswerSets?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + >; constant?: Resolver; - contact?: Resolver>; - contactDuplicates?: Resolver>; - contacts?: Resolver>; - currentCoachingAnswerSet?: Resolver>; - designationAccounts?: Resolver, ParentType, ContextType, RequireFields>; - donation?: Resolver>; - donations?: Resolver>; - entryHistories?: Resolver>, ParentType, ContextType, RequireFields>; - expectedMonthlyTotalReport?: Resolver>; - financialAccount?: Resolver>; - financialAccounts?: Resolver>; - fourteenMonthReport?: Resolver>; - getAccountListCoaches?: Resolver>>, ParentType, ContextType>; - getDesignationDisplayNames?: Resolver>>, ParentType, ContextType, RequireFields>; - getOrganizations?: Resolver; - googleAccountIntegrations?: Resolver>, ParentType, ContextType, RequireFields>; - googleAccounts?: Resolver>, ParentType, ContextType>; - mailchimpAccount?: Resolver>>, ParentType, ContextType, RequireFields>; - notificationPreferences?: Resolver>; - notificationTypes?: Resolver, ParentType, ContextType>; - organizationAdmins?: Resolver>, ParentType, ContextType, RequireFields>; - organizationInvites?: Resolver>, ParentType, ContextType, RequireFields>; - organizations?: Resolver, ParentType, ContextType>; - partnerGivingAnalysisReport?: Resolver>; - people?: Resolver>; - person?: Resolver>; - personDuplicates?: Resolver>; - prayerlettersAccount?: Resolver>>, ParentType, ContextType, RequireFields>; - reportPledgeHistories?: Resolver>>, ParentType, ContextType, RequireFields>; - reportsActivityResults?: Resolver>; - reportsDonationHistories?: Resolver>; - reportsPeopleWithAnniversaries?: Resolver>; - reportsPeopleWithBirthdays?: Resolver>; - reportsTagHistories?: Resolver>; - searchOrganizationsAccountLists?: Resolver>; - searchOrganizationsContacts?: Resolver>; - task?: Resolver>; - taskAnalytics?: Resolver>; - tasks?: Resolver>; + contact?: Resolver< + ResolversTypes['Contact'], + ParentType, + ContextType, + RequireFields + >; + contactDuplicates?: Resolver< + ResolversTypes['ContactDuplicateConnection'], + ParentType, + ContextType, + RequireFields + >; + contacts?: Resolver< + ResolversTypes['ContactConnection'], + ParentType, + ContextType, + RequireFields + >; + currentCoachingAnswerSet?: Resolver< + ResolversTypes['CoachingAnswerSet'], + ParentType, + ContextType, + RequireFields< + QueryCurrentCoachingAnswerSetArgs, + 'accountListId' | 'organizationId' + > + >; + designationAccounts?: Resolver< + Array, + ParentType, + ContextType, + RequireFields + >; + donation?: Resolver< + ResolversTypes['Donation'], + ParentType, + ContextType, + RequireFields + >; + donations?: Resolver< + ResolversTypes['DonationConnection'], + ParentType, + ContextType, + RequireFields + >; + entryHistories?: Resolver< + Maybe>, + ParentType, + ContextType, + RequireFields< + QueryEntryHistoriesArgs, + 'accountListId' | 'financialAccountIds' + > + >; + expectedMonthlyTotalReport?: Resolver< + ResolversTypes['ExpectedMonthlyTotalReport'], + ParentType, + ContextType, + RequireFields + >; + financialAccount?: Resolver< + ResolversTypes['FinancialAccount'], + ParentType, + ContextType, + RequireFields + >; + financialAccounts?: Resolver< + ResolversTypes['FinancialAccountConnection'], + ParentType, + ContextType, + RequireFields + >; + fourteenMonthReport?: Resolver< + ResolversTypes['FourteenMonthReport'], + ParentType, + ContextType, + RequireFields< + QueryFourteenMonthReportArgs, + 'accountListId' | 'currencyType' + > + >; + getAccountListCoaches?: Resolver< + Maybe>>, + ParentType, + ContextType + >; + getDesignationDisplayNames?: Resolver< + Maybe>>, + ParentType, + ContextType, + RequireFields + >; + getOrganizations?: Resolver< + ResolversTypes['AllOrganizations'], + ParentType, + ContextType + >; + googleAccountIntegrations?: Resolver< + Array>, + ParentType, + ContextType, + RequireFields + >; + googleAccounts?: Resolver< + Array>, + ParentType, + ContextType + >; + mailchimpAccount?: Resolver< + Maybe>>, + ParentType, + ContextType, + RequireFields + >; + notificationPreferences?: Resolver< + ResolversTypes['NotificationPreferenceConnection'], + ParentType, + ContextType, + RequireFields + >; + notificationTypes?: Resolver< + Array, + ParentType, + ContextType + >; + organizationAdmins?: Resolver< + Array>, + ParentType, + ContextType, + RequireFields + >; + organizationInvites?: Resolver< + Array>, + ParentType, + ContextType, + RequireFields + >; + organizations?: Resolver< + Array, + ParentType, + ContextType + >; + partnerGivingAnalysisReport?: Resolver< + ResolversTypes['PartnerGivingAnalysisReport'], + ParentType, + ContextType, + RequireFields + >; + people?: Resolver< + ResolversTypes['PersonConnection'], + ParentType, + ContextType, + RequireFields + >; + person?: Resolver< + ResolversTypes['Person'], + ParentType, + ContextType, + RequireFields + >; + personDuplicates?: Resolver< + ResolversTypes['PersonDuplicateConnection'], + ParentType, + ContextType, + RequireFields + >; + prayerlettersAccount?: Resolver< + Maybe>>, + ParentType, + ContextType, + RequireFields + >; + reportPledgeHistories?: Resolver< + Maybe>>, + ParentType, + ContextType, + RequireFields + >; + reportsActivityResults?: Resolver< + ResolversTypes['ActivityResults'], + ParentType, + ContextType, + RequireFields + >; + reportsDonationHistories?: Resolver< + ResolversTypes['DonationHistories'], + ParentType, + ContextType, + RequireFields + >; + reportsPeopleWithAnniversaries?: Resolver< + ResolversTypes['People'], + ParentType, + ContextType, + RequireFields< + QueryReportsPeopleWithAnniversariesArgs, + 'accountListId' | 'range' + > + >; + reportsPeopleWithBirthdays?: Resolver< + ResolversTypes['People'], + ParentType, + ContextType, + RequireFields< + QueryReportsPeopleWithBirthdaysArgs, + 'accountListId' | 'range' + > + >; + reportsTagHistories?: Resolver< + ResolversTypes['TagHistories'], + ParentType, + ContextType, + RequireFields + >; + searchOrganizationsAccountLists?: Resolver< + ResolversTypes['SearchOrganizationsAccountListsResponse'], + ParentType, + ContextType, + RequireFields + >; + searchOrganizationsContacts?: Resolver< + ResolversTypes['SearchOrganizationsContactsResponse'], + ParentType, + ContextType, + RequireFields + >; + task?: Resolver< + ResolversTypes['Task'], + ParentType, + ContextType, + RequireFields + >; + taskAnalytics?: Resolver< + ResolversTypes['TaskAnalytics'], + ParentType, + ContextType, + RequireFields + >; + tasks?: Resolver< + ResolversTypes['TaskConnection'], + ParentType, + ContextType, + RequireFields + >; user?: Resolver; - userNotifications?: Resolver>; - userOptions?: Resolver, ParentType, ContextType, Partial>; - userOrganizationAccounts?: Resolver, ParentType, ContextType>; -}>; - -export type RadioFilterResolvers = ResolversObject<{ - defaultSelection?: Resolver, ParentType, ContextType>; + userNotifications?: Resolver< + ResolversTypes['NotificationConnection'], + ParentType, + ContextType, + Partial + >; + userOptions?: Resolver< + Array, + ParentType, + ContextType, + Partial + >; + userOrganizationAccounts?: Resolver< + Array, + ParentType, + ContextType + >; +}>; + +export type RadioFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['RadioFilter'] = ResolversParentTypes['RadioFilter'], +> = ResolversObject<{ + defaultSelection?: Resolver< + Maybe, + ParentType, + ContextType + >; filterKey?: Resolver; - options?: Resolver>, ParentType, ContextType>; + options?: Resolver< + Maybe>, + ParentType, + ContextType + >; title?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ReferralResolvers = ResolversObject<{ - createdAt?: Resolver; +export type ReferralResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Referral'] = ResolversParentTypes['Referral'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; referredBy?: Resolver; referredTo?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ReferralConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ReferralConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ReferralConnection'] = ResolversParentTypes['ReferralConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -8878,123 +12332,304 @@ export type ReferralConnectionResolvers; }>; -export type ReferralEdgeResolvers = ResolversObject<{ +export type ReferralEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ReferralEdge'] = ResolversParentTypes['ReferralEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type ReportsAppointmentResultsPeriodResolvers = ResolversObject<{ - appointmentsScheduled?: Resolver; - endDate?: Resolver; +export type ReportsAppointmentResultsPeriodResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ReportsAppointmentResultsPeriod'] = ResolversParentTypes['ReportsAppointmentResultsPeriod'], +> = ResolversObject<{ + appointmentsScheduled?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + endDate?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; groupAppointments?: Resolver; id?: Resolver; - individualAppointments?: Resolver; + individualAppointments?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; monthlyDecrease?: Resolver; monthlyIncrease?: Resolver; newMonthlyPartners?: Resolver; newSpecialPledges?: Resolver; pledgeIncrease?: Resolver; specialGifts?: Resolver; - startDate?: Resolver; + startDate?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; type?: Resolver; - weeklyIndividualAppointmentGoal?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type ReportsPledgeHistoriesResolvers = ResolversObject<{ - createdAt?: Resolver, ParentType, ContextType>; - endDate?: Resolver, ParentType, ContextType>; + weeklyIndividualAppointmentGoal?: Resolver< + ResolversTypes['Int'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type ReportsPledgeHistoriesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['ReportsPledgeHistories'] = ResolversParentTypes['ReportsPledgeHistories'], +> = ResolversObject<{ + createdAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + endDate?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; pledged?: Resolver, ParentType, ContextType>; recieved?: Resolver, ParentType, ContextType>; - startDate?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver, ParentType, ContextType>; - updatedInDbAt?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type SearchOrganizationsAccountListsResponseResolvers = ResolversObject<{ - accountLists?: Resolver>, ParentType, ContextType>; + startDate?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedInDbAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type SearchOrganizationsAccountListsResponseResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['SearchOrganizationsAccountListsResponse'] = ResolversParentTypes['SearchOrganizationsAccountListsResponse'], +> = ResolversObject<{ + accountLists?: Resolver< + Array>, + ParentType, + ContextType + >; pagination?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type SearchOrganizationsContactsResponseResolvers = ResolversObject<{ - contacts?: Resolver>, ParentType, ContextType>; +export type SearchOrganizationsContactsResponseResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['SearchOrganizationsContactsResponse'] = ResolversParentTypes['SearchOrganizationsContactsResponse'], +> = ResolversObject<{ + contacts?: Resolver< + Array>, + ParentType, + ContextType + >; pagination?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type SetActiveFinancialAccountRestResolvers = ResolversObject<{ +export type SetActiveFinancialAccountRestResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['SetActiveFinancialAccountRest'] = ResolversParentTypes['SetActiveFinancialAccountRest'], +> = ResolversObject<{ active?: Resolver; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TagResolvers = ResolversObject<{ +export type TagResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Tag'] = ResolversParentTypes['Tag'], +> = ResolversObject<{ count?: Resolver; id?: Resolver; name?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TagHistoriesResolvers = ResolversObject<{ - periods?: Resolver, ParentType, ContextType>; +export type TagHistoriesResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TagHistories'] = ResolversParentTypes['TagHistories'], +> = ResolversObject<{ + periods?: Resolver< + Array, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TagHistoriesPeriodResolvers = ResolversObject<{ +export type TagHistoriesPeriodResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TagHistoriesPeriod'] = ResolversParentTypes['TagHistoriesPeriod'], +> = ResolversObject<{ endDate?: Resolver; startDate?: Resolver; tags?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TaskResolvers = ResolversObject<{ - activityType?: Resolver, ParentType, ContextType>; - comments?: Resolver>; - completedAt?: Resolver, ParentType, ContextType>; - contactIds?: Resolver, ParentType, ContextType>; - contacts?: Resolver>; - createdAt?: Resolver; +export type TaskResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Task'] = ResolversParentTypes['Task'], +> = ResolversObject<{ + activityType?: Resolver< + Maybe, + ParentType, + ContextType + >; + comments?: Resolver< + ResolversTypes['CommentConnection'], + ParentType, + ContextType, + Partial + >; + completedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + contactIds?: Resolver< + Array, + ParentType, + ContextType + >; + contacts?: Resolver< + ResolversTypes['ContactConnection'], + ParentType, + ContextType, + Partial + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; location?: Resolver, ParentType, ContextType>; - nextAction?: Resolver, ParentType, ContextType>; - notificationTimeBefore?: Resolver, ParentType, ContextType>; - notificationTimeUnit?: Resolver, ParentType, ContextType>; - notificationType?: Resolver, ParentType, ContextType>; - result?: Resolver, ParentType, ContextType>; + nextAction?: Resolver< + Maybe, + ParentType, + ContextType + >; + notificationTimeBefore?: Resolver< + Maybe, + ParentType, + ContextType + >; + notificationTimeUnit?: Resolver< + Maybe, + ParentType, + ContextType + >; + notificationType?: Resolver< + Maybe, + ParentType, + ContextType + >; + result?: Resolver< + Maybe, + ParentType, + ContextType + >; starred?: Resolver; - startAt?: Resolver, ParentType, ContextType>; + startAt?: Resolver< + Maybe, + ParentType, + ContextType + >; subject?: Resolver; tagList?: Resolver, ParentType, ContextType>; - taskPhase?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - user?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type TaskAnalyticsResolvers = ResolversObject<{ - createdAt?: Resolver; + taskPhase?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + user?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type TaskAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskAnalytics'] = ResolversParentTypes['TaskAnalytics'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - lastElectronicNewsletterCompletedAt?: Resolver, ParentType, ContextType>; - lastPhysicalNewsletterCompletedAt?: Resolver, ParentType, ContextType>; - tasksOverdueOrDueTodayCounts?: Resolver, ParentType, ContextType>; + lastElectronicNewsletterCompletedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + lastPhysicalNewsletterCompletedAt?: Resolver< + Maybe, + ParentType, + ContextType + >; + tasksOverdueOrDueTodayCounts?: Resolver< + Array, + ParentType, + ContextType + >; totalTasksDueCount?: Resolver; type?: Resolver; - updatedAt?: Resolver; - updatedInDbAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type TaskCommentCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + updatedInDbAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type TaskCommentCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskCommentCreateMutationPayload'] = ResolversParentTypes['TaskCommentCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; comment?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TaskConnectionResolvers = ResolversObject<{ +export type TaskConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskConnection'] = ResolversParentTypes['TaskConnection'], +> = ResolversObject<{ edges?: Resolver, ParentType, ContextType>; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; @@ -9003,216 +12638,540 @@ export type TaskConnectionResolvers; }>; -export type TaskCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TaskCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskCreateMutationPayload'] = ResolversParentTypes['TaskCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; task?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TaskDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TaskDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskDeleteMutationPayload'] = ResolversParentTypes['TaskDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TaskEdgeResolvers = ResolversObject<{ +export type TaskEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskEdge'] = ResolversParentTypes['TaskEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TaskUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TaskUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TaskUpdateMutationPayload'] = ResolversParentTypes['TaskUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; task?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TasksCreateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TasksCreateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TasksCreateMutationPayload'] = ResolversParentTypes['TasksCreateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; tasks?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TasksDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TasksDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TasksDeleteMutationPayload'] = ResolversParentTypes['TasksDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; ids?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TasksUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type TasksUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TasksUpdateMutationPayload'] = ResolversParentTypes['TasksUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; tasks?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TextFilterResolvers = ResolversObject<{ +export type TextFilterResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TextFilter'] = ResolversParentTypes['TextFilter'], +> = ResolversObject<{ filterKey?: Resolver; - options?: Resolver>, ParentType, ContextType>; + options?: Resolver< + Maybe>, + ParentType, + ContextType + >; title?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TextMessageAccountListAnalyticsResolvers = ResolversObject<{ +export type TextMessageAccountListAnalyticsResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TextMessageAccountListAnalytics'] = ResolversParentTypes['TextMessageAccountListAnalytics'], +> = ResolversObject<{ received?: Resolver; sent?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TimeResolvers = ResolversObject<{ +export type TimeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Time'] = ResolversParentTypes['Time'], +> = ResolversObject<{ key?: Resolver, ParentType, ContextType>; value?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TotalResolvers = ResolversObject<{ +export type TotalResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Total'] = ResolversParentTypes['Total'], +> = ResolversObject<{ amount?: Resolver; convertedAmount?: Resolver; currency?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TwitterAccountResolvers = ResolversObject<{ - createdAt?: Resolver; +export type TwitterAccountResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TwitterAccount'] = ResolversParentTypes['TwitterAccount'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - screenName?: Resolver, ParentType, ContextType>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type TwitterAccountConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + screenName?: Resolver< + Maybe, + ParentType, + ContextType + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type TwitterAccountConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TwitterAccountConnection'] = ResolversParentTypes['TwitterAccountConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type TwitterAccountEdgeResolvers = ResolversObject<{ +export type TwitterAccountEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['TwitterAccountEdge'] = ResolversParentTypes['TwitterAccountEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserResolvers = ResolversObject<{ +export type UserResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User'], +> = ResolversObject<{ admin?: Resolver; - administrativeOrganizations?: Resolver>; - almaMater?: Resolver, ParentType, ContextType>; - anniversaryDay?: Resolver, ParentType, ContextType>; - anniversaryMonth?: Resolver, ParentType, ContextType>; - anniversaryYear?: Resolver, ParentType, ContextType>; + administrativeOrganizations?: Resolver< + ResolversTypes['OrganizationConnection'], + ParentType, + ContextType, + Partial + >; + almaMater?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryDay?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + anniversaryYear?: Resolver< + Maybe, + ParentType, + ContextType + >; avatar?: Resolver; birthdayDay?: Resolver, ParentType, ContextType>; - birthdayMonth?: Resolver, ParentType, ContextType>; - birthdayYear?: Resolver, ParentType, ContextType>; - createdAt?: Resolver; + birthdayMonth?: Resolver< + Maybe, + ParentType, + ContextType + >; + birthdayYear?: Resolver< + Maybe, + ParentType, + ContextType + >; + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; deceased?: Resolver; - defaultAccountList?: Resolver, ParentType, ContextType>; + defaultAccountList?: Resolver< + Maybe, + ParentType, + ContextType + >; developer?: Resolver; - emailAddresses?: Resolver>; + emailAddresses?: Resolver< + ResolversTypes['EmailAddressConnection'], + ParentType, + ContextType, + Partial + >; employer?: Resolver, ParentType, ContextType>; - facebookAccounts?: Resolver>; - familyRelationships?: Resolver>; - firstName?: Resolver, ParentType, ContextType>; + facebookAccounts?: Resolver< + ResolversTypes['FacebookAccountConnection'], + ParentType, + ContextType, + Partial + >; + familyRelationships?: Resolver< + ResolversTypes['FamilyRelationshipConnection'], + ParentType, + ContextType, + Partial + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; gender?: Resolver, ParentType, ContextType>; id?: Resolver; - keyAccounts?: Resolver, ParentType, ContextType>; + keyAccounts?: Resolver< + Array, + ParentType, + ContextType + >; lastName?: Resolver, ParentType, ContextType>; - legalFirstName?: Resolver, ParentType, ContextType>; - linkedinAccounts?: Resolver>; - localeDisplay?: Resolver, ParentType, ContextType>; - maritalStatus?: Resolver, ParentType, ContextType>; - occupation?: Resolver, ParentType, ContextType>; - optoutEnewsletter?: Resolver; - phoneNumbers?: Resolver>; - preferences?: Resolver, ParentType, ContextType>; - primaryEmailAddress?: Resolver, ParentType, ContextType>; - primaryPhoneNumber?: Resolver, ParentType, ContextType>; + legalFirstName?: Resolver< + Maybe, + ParentType, + ContextType + >; + linkedinAccounts?: Resolver< + ResolversTypes['LinkedinAccountConnection'], + ParentType, + ContextType, + Partial + >; + localeDisplay?: Resolver< + Maybe, + ParentType, + ContextType + >; + maritalStatus?: Resolver< + Maybe, + ParentType, + ContextType + >; + occupation?: Resolver< + Maybe, + ParentType, + ContextType + >; + optoutEnewsletter?: Resolver< + ResolversTypes['Boolean'], + ParentType, + ContextType + >; + phoneNumbers?: Resolver< + ResolversTypes['PhoneNumberConnection'], + ParentType, + ContextType, + Partial + >; + preferences?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryEmailAddress?: Resolver< + Maybe, + ParentType, + ContextType + >; + primaryPhoneNumber?: Resolver< + Maybe, + ParentType, + ContextType + >; setup?: Resolver, ParentType, ContextType>; suffix?: Resolver, ParentType, ContextType>; title?: Resolver, ParentType, ContextType>; - twitterAccounts?: Resolver>; - updatedAt?: Resolver; - websites?: Resolver>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type UserDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + twitterAccounts?: Resolver< + ResolversTypes['TwitterAccountConnection'], + ParentType, + ContextType, + Partial + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + websites?: Resolver< + ResolversTypes['WebsiteConnection'], + ParentType, + ContextType, + Partial + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type UserDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserDeleteMutationPayload'] = ResolversParentTypes['UserDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserKeySignInMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type UserKeySignInMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserKeySignInMutationPayload'] = ResolversParentTypes['UserKeySignInMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; token?: Resolver, ParentType, ContextType>; user?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserNotificationResolvers = ResolversObject<{ - createdAt?: Resolver; +export type UserNotificationResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserNotification'] = ResolversParentTypes['UserNotification'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - notification?: Resolver; + notification?: Resolver< + ResolversTypes['Notification'], + ParentType, + ContextType + >; read?: Resolver; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type UserOptionDeleteMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type UserOptionDeleteMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserOptionDeleteMutationPayload'] = ResolversParentTypes['UserOptionDeleteMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserPreferenceUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; +export type UserPreferenceUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserPreferenceUpdateMutationPayload'] = ResolversParentTypes['UserPreferenceUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; preference?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserScopedToAccountListResolvers = ResolversObject<{ - createdAt?: Resolver; - emailAddresses?: Resolver>; - firstName?: Resolver, ParentType, ContextType>; +export type UserScopedToAccountListResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserScopedToAccountList'] = ResolversParentTypes['UserScopedToAccountList'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + emailAddresses?: Resolver< + ResolversTypes['EmailAddressConnection'], + ParentType, + ContextType, + Partial + >; + firstName?: Resolver< + Maybe, + ParentType, + ContextType + >; id?: Resolver; lastName?: Resolver, ParentType, ContextType>; - phoneNumbers?: Resolver>; - updatedAt?: Resolver; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type UserScopedToAccountListConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; - nodes?: Resolver, ParentType, ContextType>; + phoneNumbers?: Resolver< + ResolversTypes['PhoneNumberConnection'], + ParentType, + ContextType, + Partial + >; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type UserScopedToAccountListConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserScopedToAccountListConnection'] = ResolversParentTypes['UserScopedToAccountListConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; + nodes?: Resolver< + Array, + ParentType, + ContextType + >; pageInfo?: Resolver; totalCount?: Resolver; totalPageCount?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type UserScopedToAccountListEdgeResolvers = ResolversObject<{ +export type UserScopedToAccountListEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserScopedToAccountListEdge'] = ResolversParentTypes['UserScopedToAccountListEdge'], +> = ResolversObject<{ cursor?: Resolver; - node?: Resolver, ParentType, ContextType>; - __isTypeOf?: IsTypeOfResolverFn; -}>; - -export type UserUpdateMutationPayloadResolvers = ResolversObject<{ - clientMutationId?: Resolver, ParentType, ContextType>; + node?: Resolver< + Maybe, + ParentType, + ContextType + >; + __isTypeOf?: IsTypeOfResolverFn; +}>; + +export type UserUpdateMutationPayloadResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['UserUpdateMutationPayload'] = ResolversParentTypes['UserUpdateMutationPayload'], +> = ResolversObject<{ + clientMutationId?: Resolver< + Maybe, + ParentType, + ContextType + >; user?: Resolver; __isTypeOf?: IsTypeOfResolverFn; }>; -export type WebsiteResolvers = ResolversObject<{ - createdAt?: Resolver; +export type WebsiteResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['Website'] = ResolversParentTypes['Website'], +> = ResolversObject<{ + createdAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; id?: Resolver; - updatedAt?: Resolver; + updatedAt?: Resolver< + ResolversTypes['ISO8601DateTime'], + ParentType, + ContextType + >; url?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type WebsiteConnectionResolvers = ResolversObject<{ - edges?: Resolver, ParentType, ContextType>; +export type WebsiteConnectionResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['WebsiteConnection'] = ResolversParentTypes['WebsiteConnection'], +> = ResolversObject<{ + edges?: Resolver< + Array, + ParentType, + ContextType + >; nodes?: Resolver, ParentType, ContextType>; pageInfo?: Resolver; totalCount?: Resolver; @@ -9220,13 +13179,19 @@ export type WebsiteConnectionResolvers; }>; -export type WebsiteEdgeResolvers = ResolversObject<{ +export type WebsiteEdgeResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['WebsiteEdge'] = ResolversParentTypes['WebsiteEdge'], +> = ResolversObject<{ cursor?: Resolver; node?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; -export type _ServiceResolvers = ResolversObject<{ +export type _ServiceResolvers< + ContextType = Context, + ParentType extends ResolversParentTypes['_Service'] = ResolversParentTypes['_Service'], +> = ResolversObject<{ sdl?: Resolver, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }>; @@ -9496,4 +13461,3 @@ export type Resolvers = ResolversObject<{ WebsiteEdge?: WebsiteEdgeResolvers; _Service?: _ServiceResolvers; }>; - diff --git a/src/components/Coaching/CoachingDetail/Activity/Activity.generated.ts b/src/components/Coaching/CoachingDetail/Activity/Activity.generated.ts index c1dd838c4..932fcc0de 100644 --- a/src/components/Coaching/CoachingDetail/Activity/Activity.generated.ts +++ b/src/components/Coaching/CoachingDetail/Activity/Activity.generated.ts @@ -8,93 +8,121 @@ export type CoachingDetailActivityQueryVariables = Types.Exact<{ dateRange: Types.Scalars['String']['input']; }>; - -export type CoachingDetailActivityQuery = ( - { __typename?: 'Query' } - & { accountListAnalytics: ( - { __typename?: 'AccountListAnalytics' } - & { appointments: ( - { __typename?: 'AppointmentsAccountListAnalytics' } - & Pick - ), contacts: ( - { __typename?: 'ContactsAccountListAnalytics' } - & Pick - ), correspondence: ( - { __typename?: 'CorrespondenceAccountListAnalytics' } - & Pick - ), electronic: ( - { __typename?: 'ElectronicAccountListAnalytics' } - & Pick - ), email: ( - { __typename?: 'EmailsAccountListAnalytics' } - & Pick - ), facebook: ( - { __typename?: 'FacebookAccountListAnalytics' } - & Pick - ), phone: ( - { __typename?: 'PhoneAccountListAnalytics' } - & Pick - ), textMessage: ( - { __typename?: 'TextMessageAccountListAnalytics' } - & Pick - ) } - ) } -); - +export type CoachingDetailActivityQuery = { __typename?: 'Query' } & { + accountListAnalytics: { __typename?: 'AccountListAnalytics' } & { + appointments: { __typename?: 'AppointmentsAccountListAnalytics' } & Pick< + Types.AppointmentsAccountListAnalytics, + 'completed' + >; + contacts: { __typename?: 'ContactsAccountListAnalytics' } & Pick< + Types.ContactsAccountListAnalytics, + 'active' | 'referrals' | 'referralsOnHand' + >; + correspondence: { + __typename?: 'CorrespondenceAccountListAnalytics'; + } & Pick< + Types.CorrespondenceAccountListAnalytics, + 'precall' | 'reminders' | 'supportLetters' | 'thankYous' | 'newsletters' + >; + electronic: { __typename?: 'ElectronicAccountListAnalytics' } & Pick< + Types.ElectronicAccountListAnalytics, + 'appointments' | 'received' | 'sent' + >; + email: { __typename?: 'EmailsAccountListAnalytics' } & Pick< + Types.EmailsAccountListAnalytics, + 'received' | 'sent' + >; + facebook: { __typename?: 'FacebookAccountListAnalytics' } & Pick< + Types.FacebookAccountListAnalytics, + 'received' | 'sent' + >; + phone: { __typename?: 'PhoneAccountListAnalytics' } & Pick< + Types.PhoneAccountListAnalytics, + 'attempted' | 'appointments' | 'completed' | 'received' | 'talkToInPerson' + >; + textMessage: { __typename?: 'TextMessageAccountListAnalytics' } & Pick< + Types.TextMessageAccountListAnalytics, + 'received' | 'sent' + >; + }; +}; export const CoachingDetailActivityDocument = gql` - query CoachingDetailActivity($accountListId: ID!, $dateRange: String!) { - accountListAnalytics(accountListId: $accountListId, dateRange: $dateRange) { - appointments { - completed - } - contacts { - active - referrals - referralsOnHand - } - correspondence { - precall - reminders - supportLetters - thankYous - newsletters - } - electronic { - appointments - received - sent - } - email { - received - sent - } - facebook { - received - sent - } - phone { - attempted - appointments - completed - received - talkToInPerson - } - textMessage { - received - sent + query CoachingDetailActivity($accountListId: ID!, $dateRange: String!) { + accountListAnalytics(accountListId: $accountListId, dateRange: $dateRange) { + appointments { + completed + } + contacts { + active + referrals + referralsOnHand + } + correspondence { + precall + reminders + supportLetters + thankYous + newsletters + } + electronic { + appointments + received + sent + } + email { + received + sent + } + facebook { + received + sent + } + phone { + attempted + appointments + completed + received + talkToInPerson + } + textMessage { + received + sent + } } } +`; +export function useCoachingDetailActivityQuery( + baseOptions: Apollo.QueryHookOptions< + CoachingDetailActivityQuery, + CoachingDetailActivityQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + CoachingDetailActivityQuery, + CoachingDetailActivityQueryVariables + >(CoachingDetailActivityDocument, options); } - `; -export function useCoachingDetailActivityQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CoachingDetailActivityDocument, options); - } -export function useCoachingDetailActivityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CoachingDetailActivityDocument, options); - } -export type CoachingDetailActivityQueryHookResult = ReturnType; -export type CoachingDetailActivityLazyQueryHookResult = ReturnType; -export type CoachingDetailActivityQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useCoachingDetailActivityLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + CoachingDetailActivityQuery, + CoachingDetailActivityQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + CoachingDetailActivityQuery, + CoachingDetailActivityQueryVariables + >(CoachingDetailActivityDocument, options); +} +export type CoachingDetailActivityQueryHookResult = ReturnType< + typeof useCoachingDetailActivityQuery +>; +export type CoachingDetailActivityLazyQueryHookResult = ReturnType< + typeof useCoachingDetailActivityLazyQuery +>; +export type CoachingDetailActivityQueryResult = Apollo.QueryResult< + CoachingDetailActivityQuery, + CoachingDetailActivityQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/ActivitySummary/ActivitySummary.generated.ts b/src/components/Coaching/CoachingDetail/ActivitySummary/ActivitySummary.generated.ts index 3f1b4e198..85942df06 100644 --- a/src/components/Coaching/CoachingDetail/ActivitySummary/ActivitySummary.generated.ts +++ b/src/components/Coaching/CoachingDetail/ActivitySummary/ActivitySummary.generated.ts @@ -8,45 +8,75 @@ export type ActivitySummaryQueryVariables = Types.Exact<{ range: Types.Scalars['String']['input']; }>; - -export type ActivitySummaryQuery = ( - { __typename?: 'Query' } - & { reportsActivityResults: ( - { __typename?: 'ActivityResults' } - & { periods: Array<( - { __typename?: 'ActivityResultsPeriod' } - & Pick - )> } - ) } -); - +export type ActivitySummaryQuery = { __typename?: 'Query' } & { + reportsActivityResults: { __typename?: 'ActivityResults' } & { + periods: Array< + { __typename?: 'ActivityResultsPeriod' } & Pick< + Types.ActivityResultsPeriod, + | 'callsWithAppointmentNext' + | 'completedCall' + | 'completedPreCallLetter' + | 'completedReminderLetter' + | 'completedSupportLetter' + | 'completedThank' + | 'dials' + | 'electronicMessageSent' + | 'electronicMessageWithAppointmentNext' + | 'startDate' + > + >; + }; +}; export const ActivitySummaryDocument = gql` - query ActivitySummary($accountListId: ID!, $range: String!) { - reportsActivityResults(accountListId: $accountListId, range: $range) { - periods { - callsWithAppointmentNext - completedCall - completedPreCallLetter - completedReminderLetter - completedSupportLetter - completedThank - dials - electronicMessageSent - electronicMessageWithAppointmentNext - startDate + query ActivitySummary($accountListId: ID!, $range: String!) { + reportsActivityResults(accountListId: $accountListId, range: $range) { + periods { + callsWithAppointmentNext + completedCall + completedPreCallLetter + completedReminderLetter + completedSupportLetter + completedThank + dials + electronicMessageSent + electronicMessageWithAppointmentNext + startDate + } } } +`; +export function useActivitySummaryQuery( + baseOptions: Apollo.QueryHookOptions< + ActivitySummaryQuery, + ActivitySummaryQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ActivitySummaryDocument, + options, + ); } - `; -export function useActivitySummaryQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ActivitySummaryDocument, options); - } -export function useActivitySummaryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ActivitySummaryDocument, options); - } -export type ActivitySummaryQueryHookResult = ReturnType; -export type ActivitySummaryLazyQueryHookResult = ReturnType; -export type ActivitySummaryQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useActivitySummaryLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ActivitySummaryQuery, + ActivitySummaryQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + ActivitySummaryQuery, + ActivitySummaryQueryVariables + >(ActivitySummaryDocument, options); +} +export type ActivitySummaryQueryHookResult = ReturnType< + typeof useActivitySummaryQuery +>; +export type ActivitySummaryLazyQueryHookResult = ReturnType< + typeof useActivitySummaryLazyQuery +>; +export type ActivitySummaryQueryResult = Apollo.QueryResult< + ActivitySummaryQuery, + ActivitySummaryQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/AppointmentResults/AppointmentResults.generated.ts b/src/components/Coaching/CoachingDetail/AppointmentResults/AppointmentResults.generated.ts index 29201e2c0..046c82dca 100644 --- a/src/components/Coaching/CoachingDetail/AppointmentResults/AppointmentResults.generated.ts +++ b/src/components/Coaching/CoachingDetail/AppointmentResults/AppointmentResults.generated.ts @@ -9,43 +9,77 @@ export type AppointmentResultsQueryVariables = Types.Exact<{ range: Types.Scalars['String']['input']; }>; - -export type AppointmentResultsQuery = ( - { __typename?: 'Query' } - & { appointmentResults: Array<( - { __typename?: 'ReportsAppointmentResultsPeriod' } - & Pick - )> } -); - +export type AppointmentResultsQuery = { __typename?: 'Query' } & { + appointmentResults: Array< + { __typename?: 'ReportsAppointmentResultsPeriod' } & Pick< + Types.ReportsAppointmentResultsPeriod, + | 'id' + | 'startDate' + | 'appointmentsScheduled' + | 'individualAppointments' + | 'monthlyDecrease' + | 'monthlyIncrease' + | 'newMonthlyPartners' + | 'newSpecialPledges' + | 'specialGifts' + > + >; +}; export const AppointmentResultsDocument = gql` - query AppointmentResults($accountListId: ID!, $endDate: String, $range: String!) { - appointmentResults( - accountListId: $accountListId - endDate: $endDate - range: $range + query AppointmentResults( + $accountListId: ID! + $endDate: String + $range: String! ) { - id - startDate - appointmentsScheduled - individualAppointments - monthlyDecrease - monthlyIncrease - newMonthlyPartners - newSpecialPledges - specialGifts + appointmentResults( + accountListId: $accountListId + endDate: $endDate + range: $range + ) { + id + startDate + appointmentsScheduled + individualAppointments + monthlyDecrease + monthlyIncrease + newMonthlyPartners + newSpecialPledges + specialGifts + } } +`; +export function useAppointmentResultsQuery( + baseOptions: Apollo.QueryHookOptions< + AppointmentResultsQuery, + AppointmentResultsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + AppointmentResultsQuery, + AppointmentResultsQueryVariables + >(AppointmentResultsDocument, options); +} +export function useAppointmentResultsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + AppointmentResultsQuery, + AppointmentResultsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + AppointmentResultsQuery, + AppointmentResultsQueryVariables + >(AppointmentResultsDocument, options); } - `; -export function useAppointmentResultsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AppointmentResultsDocument, options); - } -export function useAppointmentResultsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AppointmentResultsDocument, options); - } -export type AppointmentResultsQueryHookResult = ReturnType; -export type AppointmentResultsLazyQueryHookResult = ReturnType; -export type AppointmentResultsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type AppointmentResultsQueryHookResult = ReturnType< + typeof useAppointmentResultsQuery +>; +export type AppointmentResultsLazyQueryHookResult = ReturnType< + typeof useAppointmentResultsLazyQuery +>; +export type AppointmentResultsQueryResult = Apollo.QueryResult< + AppointmentResultsQuery, + AppointmentResultsQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/LoadCoachingDetail.generated.ts b/src/components/Coaching/CoachingDetail/LoadCoachingDetail.generated.ts index 229806e53..f1a96d71e 100644 --- a/src/components/Coaching/CoachingDetail/LoadCoachingDetail.generated.ts +++ b/src/components/Coaching/CoachingDetail/LoadCoachingDetail.generated.ts @@ -4,299 +4,440 @@ import { gql } from '@apollo/client'; import { DonationGraphHistoriesFragmentDoc } from '../../Reports/DonationsReport/GetDonationGraph.generated'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type UserContactInfoFragment = ( - { __typename?: 'UserScopedToAccountList' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } -); +export type UserContactInfoFragment = { + __typename?: 'UserScopedToAccountList'; +} & Pick & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'location' | 'primary' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'location' | 'primary' + > + >; + }; + }; export type LoadCoachingDetailQueryVariables = Types.Exact<{ coachingAccountListId: Types.Scalars['ID']['input']; }>; - -export type LoadCoachingDetailQuery = ( - { __typename?: 'Query' } - & { coachingAccountList: ( - { __typename?: 'CoachingAccountList' } - & Pick - & { designationAccounts: Array<( - { __typename?: 'DesignationAccount' } - & Pick - )>, primaryAppeal?: Types.Maybe<( - { __typename?: 'CoachingAppeal' } - & Pick - )>, coaches: ( - { __typename?: 'UserScopedToAccountListConnection' } - & { nodes: Array<( - { __typename?: 'UserScopedToAccountList' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } - )> } - ), users: ( - { __typename?: 'UserScopedToAccountListConnection' } - & { nodes: Array<( - { __typename?: 'UserScopedToAccountList' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } - )> } - ) } - ) } -); +export type LoadCoachingDetailQuery = { __typename?: 'Query' } & { + coachingAccountList: { __typename?: 'CoachingAccountList' } & Pick< + Types.CoachingAccountList, + | 'id' + | 'name' + | 'currency' + | 'monthlyGoal' + | 'balance' + | 'activeMpdStartAt' + | 'activeMpdFinishAt' + | 'activeMpdMonthlyGoal' + | 'weeksOnMpd' + | 'receivedPledges' + | 'totalPledges' + > & { + designationAccounts: Array< + { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'accountNumber' + > + >; + primaryAppeal?: Types.Maybe< + { __typename?: 'CoachingAppeal' } & Pick< + Types.CoachingAppeal, + | 'id' + | 'name' + | 'amount' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountReceivedNotProcessed' + > + >; + coaches: { __typename?: 'UserScopedToAccountListConnection' } & { + nodes: Array< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'location' | 'primary' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'location' | 'primary' + > + >; + }; + } + >; + }; + users: { __typename?: 'UserScopedToAccountListConnection' } & { + nodes: Array< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'location' | 'primary' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'location' | 'primary' + > + >; + }; + } + >; + }; + }; +}; export type LoadAccountListCoachingDetailQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type LoadAccountListCoachingDetailQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { designationAccounts: Array<( - { __typename?: 'DesignationAccount' } - & Pick - )>, primaryAppeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, coaches: ( - { __typename?: 'UserScopedToAccountListConnection' } - & { nodes: Array<( - { __typename?: 'UserScopedToAccountList' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } - )> } - ), users: ( - { __typename?: 'UserScopedToAccountListConnection' } - & { nodes: Array<( - { __typename?: 'UserScopedToAccountList' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } - )> } - ) } - ) } -); +export type LoadAccountListCoachingDetailQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + | 'id' + | 'name' + | 'currency' + | 'monthlyGoal' + | 'balance' + | 'activeMpdStartAt' + | 'activeMpdFinishAt' + | 'activeMpdMonthlyGoal' + | 'weeksOnMpd' + | 'receivedPledges' + | 'totalPledges' + > & { + designationAccounts: Array< + { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'accountNumber' + > + >; + primaryAppeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + | 'id' + | 'name' + | 'amount' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountReceivedNotProcessed' + > + >; + coaches: { __typename?: 'UserScopedToAccountListConnection' } & { + nodes: Array< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'location' | 'primary' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'location' | 'primary' + > + >; + }; + } + >; + }; + users: { __typename?: 'UserScopedToAccountListConnection' } & { + nodes: Array< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'location' | 'primary' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'location' | 'primary' + > + >; + }; + } + >; + }; + }; +}; export type GetCoachingDonationGraphQueryVariables = Types.Exact<{ coachingAccountListId: Types.Scalars['ID']['input']; }>; - -export type GetCoachingDonationGraphQuery = ( - { __typename?: 'Query' } - & { reportsDonationHistories: ( - { __typename?: 'DonationHistories' } - & Pick - & { periods: Array<( - { __typename?: 'DonationHistoriesPeriod' } - & Pick - & { totals: Array<( - { __typename?: 'Total' } - & Pick - )> } - )> } - ) } -); +export type GetCoachingDonationGraphQuery = { __typename?: 'Query' } & { + 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 UserContactInfoFragmentDoc = gql` - fragment UserContactInfo on UserScopedToAccountList { - id - firstName - lastName - emailAddresses { - nodes { - id - email - location - primary + fragment UserContactInfo on UserScopedToAccountList { + id + firstName + lastName + emailAddresses { + nodes { + id + email + location + primary + } } - } - phoneNumbers { - nodes { - id - number - location - primary + phoneNumbers { + nodes { + id + number + location + primary + } } } -} - `; +`; export const LoadCoachingDetailDocument = gql` - query LoadCoachingDetail($coachingAccountListId: ID!) { - coachingAccountList(id: $coachingAccountListId) { - id - name - designationAccounts { - id - accountNumber - } - primaryAppeal { + query LoadCoachingDetail($coachingAccountListId: ID!) { + coachingAccountList(id: $coachingAccountListId) { id name - amount - pledgesAmountNotReceivedNotProcessed - pledgesAmountProcessed - pledgesAmountReceivedNotProcessed - } - currency - monthlyGoal - balance - activeMpdStartAt - activeMpdFinishAt - activeMpdMonthlyGoal - weeksOnMpd - receivedPledges - totalPledges - coaches { - nodes { - ...UserContactInfo + designationAccounts { + id + accountNumber } - } - users { - nodes { - ...UserContactInfo + primaryAppeal { + id + name + amount + pledgesAmountNotReceivedNotProcessed + pledgesAmountProcessed + pledgesAmountReceivedNotProcessed + } + currency + monthlyGoal + balance + activeMpdStartAt + activeMpdFinishAt + activeMpdMonthlyGoal + weeksOnMpd + receivedPledges + totalPledges + coaches { + nodes { + ...UserContactInfo + } + } + users { + nodes { + ...UserContactInfo + } } } } + ${UserContactInfoFragmentDoc} +`; +export function useLoadCoachingDetailQuery( + baseOptions: Apollo.QueryHookOptions< + LoadCoachingDetailQuery, + LoadCoachingDetailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadCoachingDetailQuery, + LoadCoachingDetailQueryVariables + >(LoadCoachingDetailDocument, options); } - ${UserContactInfoFragmentDoc}`; -export function useLoadCoachingDetailQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadCoachingDetailDocument, options); - } -export function useLoadCoachingDetailLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadCoachingDetailDocument, options); - } -export type LoadCoachingDetailQueryHookResult = ReturnType; -export type LoadCoachingDetailLazyQueryHookResult = ReturnType; -export type LoadCoachingDetailQueryResult = Apollo.QueryResult; +export function useLoadCoachingDetailLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadCoachingDetailQuery, + LoadCoachingDetailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadCoachingDetailQuery, + LoadCoachingDetailQueryVariables + >(LoadCoachingDetailDocument, options); +} +export type LoadCoachingDetailQueryHookResult = ReturnType< + typeof useLoadCoachingDetailQuery +>; +export type LoadCoachingDetailLazyQueryHookResult = ReturnType< + typeof useLoadCoachingDetailLazyQuery +>; +export type LoadCoachingDetailQueryResult = Apollo.QueryResult< + LoadCoachingDetailQuery, + LoadCoachingDetailQueryVariables +>; export const LoadAccountListCoachingDetailDocument = gql` - query LoadAccountListCoachingDetail($accountListId: ID!) { - accountList(id: $accountListId) { - id - name - designationAccounts { - id - accountNumber - } - primaryAppeal { + query LoadAccountListCoachingDetail($accountListId: ID!) { + accountList(id: $accountListId) { id name - amount - pledgesAmountNotReceivedNotProcessed - pledgesAmountProcessed - pledgesAmountReceivedNotProcessed - } - currency - monthlyGoal - balance - activeMpdStartAt - activeMpdFinishAt - activeMpdMonthlyGoal - weeksOnMpd - receivedPledges - totalPledges - coaches { - nodes { - ...UserContactInfo + designationAccounts { + id + accountNumber } - } - users { - nodes { - ...UserContactInfo + primaryAppeal { + id + name + amount + pledgesAmountNotReceivedNotProcessed + pledgesAmountProcessed + pledgesAmountReceivedNotProcessed + } + currency + monthlyGoal + balance + activeMpdStartAt + activeMpdFinishAt + activeMpdMonthlyGoal + weeksOnMpd + receivedPledges + totalPledges + coaches { + nodes { + ...UserContactInfo + } + } + users { + nodes { + ...UserContactInfo + } } } } + ${UserContactInfoFragmentDoc} +`; +export function useLoadAccountListCoachingDetailQuery( + baseOptions: Apollo.QueryHookOptions< + LoadAccountListCoachingDetailQuery, + LoadAccountListCoachingDetailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadAccountListCoachingDetailQuery, + LoadAccountListCoachingDetailQueryVariables + >(LoadAccountListCoachingDetailDocument, options); } - ${UserContactInfoFragmentDoc}`; -export function useLoadAccountListCoachingDetailQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadAccountListCoachingDetailDocument, options); - } -export function useLoadAccountListCoachingDetailLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadAccountListCoachingDetailDocument, options); - } -export type LoadAccountListCoachingDetailQueryHookResult = ReturnType; -export type LoadAccountListCoachingDetailLazyQueryHookResult = ReturnType; -export type LoadAccountListCoachingDetailQueryResult = Apollo.QueryResult; +export function useLoadAccountListCoachingDetailLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadAccountListCoachingDetailQuery, + LoadAccountListCoachingDetailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadAccountListCoachingDetailQuery, + LoadAccountListCoachingDetailQueryVariables + >(LoadAccountListCoachingDetailDocument, options); +} +export type LoadAccountListCoachingDetailQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingDetailQuery +>; +export type LoadAccountListCoachingDetailLazyQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingDetailLazyQuery +>; +export type LoadAccountListCoachingDetailQueryResult = Apollo.QueryResult< + LoadAccountListCoachingDetailQuery, + LoadAccountListCoachingDetailQueryVariables +>; export const GetCoachingDonationGraphDocument = gql` - query GetCoachingDonationGraph($coachingAccountListId: ID!) { - reportsDonationHistories(accountListId: $coachingAccountListId) { - ...DonationGraphHistories + query GetCoachingDonationGraph($coachingAccountListId: ID!) { + reportsDonationHistories(accountListId: $coachingAccountListId) { + ...DonationGraphHistories + } } + ${DonationGraphHistoriesFragmentDoc} +`; +export function useGetCoachingDonationGraphQuery( + baseOptions: Apollo.QueryHookOptions< + GetCoachingDonationGraphQuery, + GetCoachingDonationGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetCoachingDonationGraphQuery, + GetCoachingDonationGraphQueryVariables + >(GetCoachingDonationGraphDocument, options); } - ${DonationGraphHistoriesFragmentDoc}`; -export function useGetCoachingDonationGraphQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetCoachingDonationGraphDocument, options); - } -export function useGetCoachingDonationGraphLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetCoachingDonationGraphDocument, options); - } -export type GetCoachingDonationGraphQueryHookResult = ReturnType; -export type GetCoachingDonationGraphLazyQueryHookResult = ReturnType; -export type GetCoachingDonationGraphQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetCoachingDonationGraphLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetCoachingDonationGraphQuery, + GetCoachingDonationGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetCoachingDonationGraphQuery, + GetCoachingDonationGraphQueryVariables + >(GetCoachingDonationGraphDocument, options); +} +export type GetCoachingDonationGraphQueryHookResult = ReturnType< + typeof useGetCoachingDonationGraphQuery +>; +export type GetCoachingDonationGraphLazyQueryHookResult = ReturnType< + typeof useGetCoachingDonationGraphLazyQuery +>; +export type GetCoachingDonationGraphQueryResult = Apollo.QueryResult< + GetCoachingDonationGraphQuery, + GetCoachingDonationGraphQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/MonthlyCommitment/MonthlyCommitment.generated.ts b/src/components/Coaching/CoachingDetail/MonthlyCommitment/MonthlyCommitment.generated.ts index 83a93258b..6eb3b8244 100644 --- a/src/components/Coaching/CoachingDetail/MonthlyCommitment/MonthlyCommitment.generated.ts +++ b/src/components/Coaching/CoachingDetail/MonthlyCommitment/MonthlyCommitment.generated.ts @@ -7,35 +7,61 @@ export type GetReportsPledgeHistoriesQueryVariables = Types.Exact<{ coachingId: Types.Scalars['ID']['input']; }>; - -export type GetReportsPledgeHistoriesQuery = ( - { __typename?: 'Query' } - & { reportPledgeHistories?: Types.Maybe - )>>> } -); - +export type GetReportsPledgeHistoriesQuery = { __typename?: 'Query' } & { + reportPledgeHistories?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'ReportsPledgeHistories' } & Pick< + Types.ReportsPledgeHistories, + 'id' | 'startDate' | 'endDate' | 'pledged' | 'recieved' + > + > + > + >; +}; export const GetReportsPledgeHistoriesDocument = gql` - query GetReportsPledgeHistories($coachingId: ID!) { - reportPledgeHistories(accountListId: $coachingId) { - id - startDate - endDate - pledged - recieved + query GetReportsPledgeHistories($coachingId: ID!) { + reportPledgeHistories(accountListId: $coachingId) { + id + startDate + endDate + pledged + recieved + } } +`; +export function useGetReportsPledgeHistoriesQuery( + baseOptions: Apollo.QueryHookOptions< + GetReportsPledgeHistoriesQuery, + GetReportsPledgeHistoriesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetReportsPledgeHistoriesQuery, + GetReportsPledgeHistoriesQueryVariables + >(GetReportsPledgeHistoriesDocument, options); +} +export function useGetReportsPledgeHistoriesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetReportsPledgeHistoriesQuery, + GetReportsPledgeHistoriesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetReportsPledgeHistoriesQuery, + GetReportsPledgeHistoriesQueryVariables + >(GetReportsPledgeHistoriesDocument, options); } - `; -export function useGetReportsPledgeHistoriesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetReportsPledgeHistoriesDocument, options); - } -export function useGetReportsPledgeHistoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetReportsPledgeHistoriesDocument, options); - } -export type GetReportsPledgeHistoriesQueryHookResult = ReturnType; -export type GetReportsPledgeHistoriesLazyQueryHookResult = ReturnType; -export type GetReportsPledgeHistoriesQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetReportsPledgeHistoriesQueryHookResult = ReturnType< + typeof useGetReportsPledgeHistoriesQuery +>; +export type GetReportsPledgeHistoriesLazyQueryHookResult = ReturnType< + typeof useGetReportsPledgeHistoriesLazyQuery +>; +export type GetReportsPledgeHistoriesQueryResult = Apollo.QueryResult< + GetReportsPledgeHistoriesQuery, + GetReportsPledgeHistoriesQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.generated.ts b/src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.generated.ts index 71d3520bb..b88c9a180 100644 --- a/src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.generated.ts +++ b/src/components/Coaching/CoachingDetail/OutstandingCommitments/OutstandingCommitments.generated.ts @@ -8,111 +8,173 @@ export type LoadCoachingCommitmentsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type LoadCoachingCommitmentsQuery = ( - { __typename?: 'Query' } - & { coachingAccountList: ( - { __typename?: 'CoachingAccountList' } - & Pick - & { contacts: ( - { __typename?: 'CoachingContactConnection' } - & { nodes: Array<( - { __typename?: 'CoachingContact' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - ) } -); +export type LoadCoachingCommitmentsQuery = { __typename?: 'Query' } & { + coachingAccountList: { __typename?: 'CoachingAccountList' } & Pick< + Types.CoachingAccountList, + 'id' + > & { + contacts: { __typename?: 'CoachingContactConnection' } & { + nodes: Array< + { __typename?: 'CoachingContact' } & Pick< + Types.CoachingContact, + | 'id' + | 'name' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeStartDate' + | 'pledgeFrequency' + > + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + }; +}; export type LoadAccountListCoachingCommitmentsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; after?: Types.InputMaybe; }>; - -export type LoadAccountListCoachingCommitmentsQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - ) } -); - +export type LoadAccountListCoachingCommitmentsQuery = { + __typename?: 'Query'; +} & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeStartDate' + | 'pledgeFrequency' + > + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + }; +}; export const LoadCoachingCommitmentsDocument = gql` - query LoadCoachingCommitments($coachingAccountListId: ID!, $after: String) { - coachingAccountList(id: $coachingAccountListId) { - id - contacts(first: 8, after: $after, filter: {pledge: "outstanding"}) { - nodes { - id - name - pledgeAmount - pledgeCurrency - pledgeStartDate - pledgeFrequency - } - pageInfo { - endCursor - hasNextPage + query LoadCoachingCommitments($coachingAccountListId: ID!, $after: String) { + coachingAccountList(id: $coachingAccountListId) { + id + contacts(first: 8, after: $after, filter: { pledge: "outstanding" }) { + nodes { + id + name + pledgeAmount + pledgeCurrency + pledgeStartDate + pledgeFrequency + } + pageInfo { + endCursor + hasNextPage + } } } } +`; +export function useLoadCoachingCommitmentsQuery( + baseOptions: Apollo.QueryHookOptions< + LoadCoachingCommitmentsQuery, + LoadCoachingCommitmentsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadCoachingCommitmentsQuery, + LoadCoachingCommitmentsQueryVariables + >(LoadCoachingCommitmentsDocument, options); } - `; -export function useLoadCoachingCommitmentsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadCoachingCommitmentsDocument, options); - } -export function useLoadCoachingCommitmentsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadCoachingCommitmentsDocument, options); - } -export type LoadCoachingCommitmentsQueryHookResult = ReturnType; -export type LoadCoachingCommitmentsLazyQueryHookResult = ReturnType; -export type LoadCoachingCommitmentsQueryResult = Apollo.QueryResult; +export function useLoadCoachingCommitmentsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadCoachingCommitmentsQuery, + LoadCoachingCommitmentsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadCoachingCommitmentsQuery, + LoadCoachingCommitmentsQueryVariables + >(LoadCoachingCommitmentsDocument, options); +} +export type LoadCoachingCommitmentsQueryHookResult = ReturnType< + typeof useLoadCoachingCommitmentsQuery +>; +export type LoadCoachingCommitmentsLazyQueryHookResult = ReturnType< + typeof useLoadCoachingCommitmentsLazyQuery +>; +export type LoadCoachingCommitmentsQueryResult = Apollo.QueryResult< + LoadCoachingCommitmentsQuery, + LoadCoachingCommitmentsQueryVariables +>; export const LoadAccountListCoachingCommitmentsDocument = gql` - query LoadAccountListCoachingCommitments($accountListId: ID!, $after: String) { - accountList(id: $accountListId) { - id - contacts(first: 8, after: $after, filter: {pledge: "outstanding"}) { - nodes { - id - name - pledgeAmount - pledgeCurrency - pledgeStartDate - pledgeFrequency - } - pageInfo { - endCursor - hasNextPage + query LoadAccountListCoachingCommitments( + $accountListId: ID! + $after: String + ) { + accountList(id: $accountListId) { + id + contacts(first: 8, after: $after, filter: { pledge: "outstanding" }) { + nodes { + id + name + pledgeAmount + pledgeCurrency + pledgeStartDate + pledgeFrequency + } + pageInfo { + endCursor + hasNextPage + } } } } +`; +export function useLoadAccountListCoachingCommitmentsQuery( + baseOptions: Apollo.QueryHookOptions< + LoadAccountListCoachingCommitmentsQuery, + LoadAccountListCoachingCommitmentsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadAccountListCoachingCommitmentsQuery, + LoadAccountListCoachingCommitmentsQueryVariables + >(LoadAccountListCoachingCommitmentsDocument, options); } - `; -export function useLoadAccountListCoachingCommitmentsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadAccountListCoachingCommitmentsDocument, options); - } -export function useLoadAccountListCoachingCommitmentsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadAccountListCoachingCommitmentsDocument, options); - } -export type LoadAccountListCoachingCommitmentsQueryHookResult = ReturnType; -export type LoadAccountListCoachingCommitmentsLazyQueryHookResult = ReturnType; -export type LoadAccountListCoachingCommitmentsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useLoadAccountListCoachingCommitmentsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadAccountListCoachingCommitmentsQuery, + LoadAccountListCoachingCommitmentsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadAccountListCoachingCommitmentsQuery, + LoadAccountListCoachingCommitmentsQueryVariables + >(LoadAccountListCoachingCommitmentsDocument, options); +} +export type LoadAccountListCoachingCommitmentsQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingCommitmentsQuery +>; +export type LoadAccountListCoachingCommitmentsLazyQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingCommitmentsLazyQuery +>; +export type LoadAccountListCoachingCommitmentsQueryResult = Apollo.QueryResult< + LoadAccountListCoachingCommitmentsQuery, + LoadAccountListCoachingCommitmentsQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.generated.ts b/src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.generated.ts index 0b9bfe632..d03d28f74 100644 --- a/src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.generated.ts +++ b/src/components/Coaching/CoachingDetail/OutstandingNeeds/OutstandingNeeds.generated.ts @@ -8,137 +8,186 @@ export type LoadCoachingNeedsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type LoadCoachingNeedsQuery = ( - { __typename?: 'Query' } - & { coachingAccountList: ( - { __typename?: 'CoachingAccountList' } - & Pick - & { primaryAppeal?: Types.Maybe<( - { __typename?: 'CoachingAppeal' } - & Pick - & { pledges: ( - { __typename?: 'CoachingPledgeConnection' } - & { nodes: Array<( - { __typename?: 'CoachingPledge' } - & Pick - & { contact: ( - { __typename?: 'CoachingContact' } - & Pick - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - )> } - ) } -); +export type LoadCoachingNeedsQuery = { __typename?: 'Query' } & { + coachingAccountList: { __typename?: 'CoachingAccountList' } & Pick< + Types.CoachingAccountList, + 'id' + > & { + primaryAppeal?: Types.Maybe< + { __typename?: 'CoachingAppeal' } & Pick & { + pledges: { __typename?: 'CoachingPledgeConnection' } & { + nodes: Array< + { __typename?: 'CoachingPledge' } & Pick< + Types.CoachingPledge, + 'id' | 'amount' | 'amountCurrency' | 'expectedDate' + > & { + contact: { __typename?: 'CoachingContact' } & Pick< + Types.CoachingContact, + 'id' | 'name' + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + } + >; + }; +}; export type LoadAccountListCoachingNeedsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; after?: Types.InputMaybe; }>; - -export type LoadAccountListCoachingNeedsQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { primaryAppeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - & { pledges: ( - { __typename?: 'PledgeConnection' } - & { nodes: Array<( - { __typename?: 'Pledge' } - & Pick - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - )> } - ) } -); - +export type LoadAccountListCoachingNeedsQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' + > & { + primaryAppeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick & { + pledges: { __typename?: 'PledgeConnection' } & { + nodes: Array< + { __typename?: 'Pledge' } & Pick< + Types.Pledge, + 'id' | 'amount' | 'amountCurrency' | 'expectedDate' + > & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + } + >; + }; +}; export const LoadCoachingNeedsDocument = gql` - query LoadCoachingNeeds($coachingAccountListId: ID!, $after: String) { - coachingAccountList(id: $coachingAccountListId) { - id - primaryAppeal { + query LoadCoachingNeeds($coachingAccountListId: ID!, $after: String) { + coachingAccountList(id: $coachingAccountListId) { id - pledges(first: 8, after: $after) { - nodes { - id - amount - amountCurrency - expectedDate - contact { + primaryAppeal { + id + pledges(first: 8, after: $after) { + nodes { id - name + amount + amountCurrency + expectedDate + contact { + id + name + } + } + pageInfo { + endCursor + hasNextPage } - } - pageInfo { - endCursor - hasNextPage } } } } +`; +export function useLoadCoachingNeedsQuery( + baseOptions: Apollo.QueryHookOptions< + LoadCoachingNeedsQuery, + LoadCoachingNeedsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadCoachingNeedsQuery, + LoadCoachingNeedsQueryVariables + >(LoadCoachingNeedsDocument, options); } - `; -export function useLoadCoachingNeedsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadCoachingNeedsDocument, options); - } -export function useLoadCoachingNeedsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadCoachingNeedsDocument, options); - } -export type LoadCoachingNeedsQueryHookResult = ReturnType; -export type LoadCoachingNeedsLazyQueryHookResult = ReturnType; -export type LoadCoachingNeedsQueryResult = Apollo.QueryResult; +export function useLoadCoachingNeedsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadCoachingNeedsQuery, + LoadCoachingNeedsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadCoachingNeedsQuery, + LoadCoachingNeedsQueryVariables + >(LoadCoachingNeedsDocument, options); +} +export type LoadCoachingNeedsQueryHookResult = ReturnType< + typeof useLoadCoachingNeedsQuery +>; +export type LoadCoachingNeedsLazyQueryHookResult = ReturnType< + typeof useLoadCoachingNeedsLazyQuery +>; +export type LoadCoachingNeedsQueryResult = Apollo.QueryResult< + LoadCoachingNeedsQuery, + LoadCoachingNeedsQueryVariables +>; export const LoadAccountListCoachingNeedsDocument = gql` - query LoadAccountListCoachingNeeds($accountListId: ID!, $after: String) { - accountList(id: $accountListId) { - id - primaryAppeal { + query LoadAccountListCoachingNeeds($accountListId: ID!, $after: String) { + accountList(id: $accountListId) { id - pledges(first: 8, after: $after) { - nodes { - id - amount - amountCurrency - expectedDate - contact { + primaryAppeal { + id + pledges(first: 8, after: $after) { + nodes { id - name + amount + amountCurrency + expectedDate + contact { + id + name + } + } + pageInfo { + endCursor + hasNextPage } - } - pageInfo { - endCursor - hasNextPage } } } } +`; +export function useLoadAccountListCoachingNeedsQuery( + baseOptions: Apollo.QueryHookOptions< + LoadAccountListCoachingNeedsQuery, + LoadAccountListCoachingNeedsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + LoadAccountListCoachingNeedsQuery, + LoadAccountListCoachingNeedsQueryVariables + >(LoadAccountListCoachingNeedsDocument, options); } - `; -export function useLoadAccountListCoachingNeedsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadAccountListCoachingNeedsDocument, options); - } -export function useLoadAccountListCoachingNeedsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadAccountListCoachingNeedsDocument, options); - } -export type LoadAccountListCoachingNeedsQueryHookResult = ReturnType; -export type LoadAccountListCoachingNeedsLazyQueryHookResult = ReturnType; -export type LoadAccountListCoachingNeedsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useLoadAccountListCoachingNeedsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadAccountListCoachingNeedsQuery, + LoadAccountListCoachingNeedsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadAccountListCoachingNeedsQuery, + LoadAccountListCoachingNeedsQueryVariables + >(LoadAccountListCoachingNeedsDocument, options); +} +export type LoadAccountListCoachingNeedsQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingNeedsQuery +>; +export type LoadAccountListCoachingNeedsLazyQueryHookResult = ReturnType< + typeof useLoadAccountListCoachingNeedsLazyQuery +>; +export type LoadAccountListCoachingNeedsQueryResult = Apollo.QueryResult< + LoadAccountListCoachingNeedsQuery, + LoadAccountListCoachingNeedsQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/TagsSummary/TagsSummary.generated.ts b/src/components/Coaching/CoachingDetail/TagsSummary/TagsSummary.generated.ts index 70c7ce466..d76e92bbc 100644 --- a/src/components/Coaching/CoachingDetail/TagsSummary/TagsSummary.generated.ts +++ b/src/components/Coaching/CoachingDetail/TagsSummary/TagsSummary.generated.ts @@ -9,50 +9,73 @@ export type TagsSummaryQueryVariables = Types.Exact<{ association: Types.ReportsTagHistoriesAssociationEnum; }>; - -export type TagsSummaryQuery = ( - { __typename?: 'Query' } - & { reportsTagHistories: ( - { __typename?: 'TagHistories' } - & { periods: Array<( - { __typename?: 'TagHistoriesPeriod' } - & Pick - & { tags: Array<( - { __typename?: 'Tag' } - & Pick - )> } - )> } - ) } -); - +export type TagsSummaryQuery = { __typename?: 'Query' } & { + reportsTagHistories: { __typename?: 'TagHistories' } & { + periods: Array< + { __typename?: 'TagHistoriesPeriod' } & Pick< + Types.TagHistoriesPeriod, + 'startDate' | 'endDate' + > & { + tags: Array< + { __typename?: 'Tag' } & Pick + >; + } + >; + }; +}; export const TagsSummaryDocument = gql` - query TagsSummary($accountListId: ID!, $range: String!, $association: ReportsTagHistoriesAssociationEnum!) { - reportsTagHistories( - accountListId: $accountListId - range: $range - association: $association + query TagsSummary( + $accountListId: ID! + $range: String! + $association: ReportsTagHistoriesAssociationEnum! ) { - periods { - startDate - endDate - tags { - id - count - name + reportsTagHistories( + accountListId: $accountListId + range: $range + association: $association + ) { + periods { + startDate + endDate + tags { + id + count + name + } } } } +`; +export function useTagsSummaryQuery( + baseOptions: Apollo.QueryHookOptions< + TagsSummaryQuery, + TagsSummaryQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + TagsSummaryDocument, + options, + ); +} +export function useTagsSummaryLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + TagsSummaryQuery, + TagsSummaryQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + TagsSummaryDocument, + options, + ); } - `; -export function useTagsSummaryQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TagsSummaryDocument, options); - } -export function useTagsSummaryLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TagsSummaryDocument, options); - } export type TagsSummaryQueryHookResult = ReturnType; -export type TagsSummaryLazyQueryHookResult = ReturnType; -export type TagsSummaryQueryResult = Apollo.QueryResult; \ No newline at end of file +export type TagsSummaryLazyQueryHookResult = ReturnType< + typeof useTagsSummaryLazyQuery +>; +export type TagsSummaryQueryResult = Apollo.QueryResult< + TagsSummaryQuery, + TagsSummaryQueryVariables +>; diff --git a/src/components/Coaching/CoachingDetail/WeeklyReport/WeeklyReport.generated.ts b/src/components/Coaching/CoachingDetail/WeeklyReport/WeeklyReport.generated.ts index 3937e9f7f..df23127da 100644 --- a/src/components/Coaching/CoachingDetail/WeeklyReport/WeeklyReport.generated.ts +++ b/src/components/Coaching/CoachingDetail/WeeklyReport/WeeklyReport.generated.ts @@ -7,49 +7,75 @@ export type WeeklyReportsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type WeeklyReportsQuery = ( - { __typename?: 'Query' } - & { coachingAnswerSets: Array<( - { __typename?: 'CoachingAnswerSet' } - & Pick - & { answers: Array<( - { __typename?: 'CoachingAnswer' } - & Pick - & { question: ( - { __typename?: 'CoachingQuestion' } - & Pick - ) } - )> } - )> } -); - +export type WeeklyReportsQuery = { __typename?: 'Query' } & { + coachingAnswerSets: Array< + { __typename?: 'CoachingAnswerSet' } & Pick< + Types.CoachingAnswerSet, + 'id' | 'completedAt' + > & { + answers: Array< + { __typename?: 'CoachingAnswer' } & Pick< + Types.CoachingAnswer, + 'id' | 'response' + > & { + question: { __typename?: 'CoachingQuestion' } & Pick< + Types.CoachingQuestion, + 'id' | 'position' | 'prompt' + >; + } + >; + } + >; +}; export const WeeklyReportsDocument = gql` - query WeeklyReports($accountListId: ID!) { - coachingAnswerSets(accountListId: $accountListId, completed: true) { - id - answers { + query WeeklyReports($accountListId: ID!) { + coachingAnswerSets(accountListId: $accountListId, completed: true) { id - response - question { + answers { id - position - prompt + response + question { + id + position + prompt + } } + completedAt } - completedAt } +`; +export function useWeeklyReportsQuery( + baseOptions: Apollo.QueryHookOptions< + WeeklyReportsQuery, + WeeklyReportsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + WeeklyReportsDocument, + options, + ); } - `; -export function useWeeklyReportsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(WeeklyReportsDocument, options); - } -export function useWeeklyReportsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(WeeklyReportsDocument, options); - } -export type WeeklyReportsQueryHookResult = ReturnType; -export type WeeklyReportsLazyQueryHookResult = ReturnType; -export type WeeklyReportsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useWeeklyReportsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + WeeklyReportsQuery, + WeeklyReportsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + WeeklyReportsDocument, + options, + ); +} +export type WeeklyReportsQueryHookResult = ReturnType< + typeof useWeeklyReportsQuery +>; +export type WeeklyReportsLazyQueryHookResult = ReturnType< + typeof useWeeklyReportsLazyQuery +>; +export type WeeklyReportsQueryResult = Apollo.QueryResult< + WeeklyReportsQuery, + WeeklyReportsQueryVariables +>; diff --git a/src/components/Coaching/CoachingRow/CoachingRow.generated.ts b/src/components/Coaching/CoachingRow/CoachingRow.generated.ts index 05bd4cd72..9a929977f 100644 --- a/src/components/Coaching/CoachingRow/CoachingRow.generated.ts +++ b/src/components/Coaching/CoachingRow/CoachingRow.generated.ts @@ -8,30 +8,47 @@ export type DeleteCoachingAccountListMutationVariables = Types.Exact<{ coachId: Types.Scalars['ID']['input']; }>; - -export type DeleteCoachingAccountListMutation = ( - { __typename?: 'Mutation' } - & { deleteAccountListCoach?: Types.Maybe<( - { __typename?: 'AccountListCoachDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteCoachingAccountListMutation = { __typename?: 'Mutation' } & { + deleteAccountListCoach?: Types.Maybe< + { __typename?: 'AccountListCoachDeleteMutationPayload' } & Pick< + Types.AccountListCoachDeleteMutationPayload, + 'id' + > + >; +}; export const DeleteCoachingAccountListDocument = gql` - mutation DeleteCoachingAccountList($accountListId: ID!, $coachId: ID!) { - deleteAccountListCoach( - input: {accountListId: $accountListId, coachId: $coachId} - ) { - id + mutation DeleteCoachingAccountList($accountListId: ID!, $coachId: ID!) { + deleteAccountListCoach( + input: { accountListId: $accountListId, coachId: $coachId } + ) { + id + } } +`; +export type DeleteCoachingAccountListMutationFn = Apollo.MutationFunction< + DeleteCoachingAccountListMutation, + DeleteCoachingAccountListMutationVariables +>; +export function useDeleteCoachingAccountListMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteCoachingAccountListMutation, + DeleteCoachingAccountListMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteCoachingAccountListMutation, + DeleteCoachingAccountListMutationVariables + >(DeleteCoachingAccountListDocument, options); } - `; -export type DeleteCoachingAccountListMutationFn = Apollo.MutationFunction; -export function useDeleteCoachingAccountListMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteCoachingAccountListDocument, options); - } -export type DeleteCoachingAccountListMutationHookResult = ReturnType; -export type DeleteCoachingAccountListMutationResult = Apollo.MutationResult; -export type DeleteCoachingAccountListMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteCoachingAccountListMutationHookResult = ReturnType< + typeof useDeleteCoachingAccountListMutation +>; +export type DeleteCoachingAccountListMutationResult = + Apollo.MutationResult; +export type DeleteCoachingAccountListMutationOptions = + Apollo.BaseMutationOptions< + DeleteCoachingAccountListMutation, + DeleteCoachingAccountListMutationVariables + >; diff --git a/src/components/Coaching/LoadCoachingList.generated.ts b/src/components/Coaching/LoadCoachingList.generated.ts index 68c0d7fbc..cd9ebeed7 100644 --- a/src/components/Coaching/LoadCoachingList.generated.ts +++ b/src/components/Coaching/LoadCoachingList.generated.ts @@ -3,83 +3,145 @@ import * as Types from '../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type LoadCoachingListQueryVariables = Types.Exact<{ [key: string]: never; }>; +export type LoadCoachingListQueryVariables = Types.Exact<{ + [key: string]: never; +}>; +export type LoadCoachingListQuery = { __typename?: 'Query' } & { + coachingAccountLists: { __typename?: 'CoachingAccountListConnection' } & Pick< + Types.CoachingAccountListConnection, + 'totalCount' | 'totalPageCount' + > & { + nodes: Array< + { __typename?: 'CoachingAccountList' } & Pick< + Types.CoachingAccountList, + | 'id' + | 'name' + | 'currency' + | 'monthlyGoal' + | 'balance' + | 'receivedPledges' + | 'totalPledges' + > & { + primaryAppeal?: Types.Maybe< + { __typename?: 'CoachingAppeal' } & Pick< + Types.CoachingAppeal, + | 'active' + | 'amount' + | 'amountCurrency' + | 'id' + | 'name' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountTotal' + > + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'startCursor' | 'endCursor' | 'hasNextPage' | 'hasPreviousPage' + >; + }; +}; -export type LoadCoachingListQuery = ( - { __typename?: 'Query' } - & { coachingAccountLists: ( - { __typename?: 'CoachingAccountListConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'CoachingAccountList' } - & Pick - & { primaryAppeal?: Types.Maybe<( - { __typename?: 'CoachingAppeal' } - & Pick - )> } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - -export type CoachedPersonFragment = ( - { __typename?: 'CoachingAccountList' } - & Pick - & { primaryAppeal?: Types.Maybe<( - { __typename?: 'CoachingAppeal' } - & Pick - )> } -); +export type CoachedPersonFragment = { + __typename?: 'CoachingAccountList'; +} & Pick< + Types.CoachingAccountList, + | 'id' + | 'name' + | 'currency' + | 'monthlyGoal' + | 'balance' + | 'receivedPledges' + | 'totalPledges' +> & { + primaryAppeal?: Types.Maybe< + { __typename?: 'CoachingAppeal' } & Pick< + Types.CoachingAppeal, + | 'active' + | 'amount' + | 'amountCurrency' + | 'id' + | 'name' + | 'pledgesAmountNotReceivedNotProcessed' + | 'pledgesAmountProcessed' + | 'pledgesAmountTotal' + > + >; + }; export const CoachedPersonFragmentDoc = gql` - fragment CoachedPerson on CoachingAccountList { - id - name - primaryAppeal { - active - amount - amountCurrency + fragment CoachedPerson on CoachingAccountList { id name - pledgesAmountNotReceivedNotProcessed - pledgesAmountProcessed - pledgesAmountTotal + primaryAppeal { + active + amount + amountCurrency + id + name + pledgesAmountNotReceivedNotProcessed + pledgesAmountProcessed + pledgesAmountTotal + } + currency + monthlyGoal + balance + receivedPledges + totalPledges } - currency - monthlyGoal - balance - receivedPledges - totalPledges -} - `; +`; export const LoadCoachingListDocument = gql` - query LoadCoachingList { - coachingAccountLists(first: 25) { - nodes { - ...CoachedPerson - } - totalCount - totalPageCount - pageInfo { - startCursor - endCursor - hasNextPage - hasPreviousPage + query LoadCoachingList { + coachingAccountLists(first: 25) { + nodes { + ...CoachedPerson + } + totalCount + totalPageCount + pageInfo { + startCursor + endCursor + hasNextPage + hasPreviousPage + } } } + ${CoachedPersonFragmentDoc} +`; +export function useLoadCoachingListQuery( + baseOptions?: Apollo.QueryHookOptions< + LoadCoachingListQuery, + LoadCoachingListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + LoadCoachingListDocument, + options, + ); } - ${CoachedPersonFragmentDoc}`; -export function useLoadCoachingListQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadCoachingListDocument, options); - } -export function useLoadCoachingListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadCoachingListDocument, options); - } -export type LoadCoachingListQueryHookResult = ReturnType; -export type LoadCoachingListLazyQueryHookResult = ReturnType; -export type LoadCoachingListQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useLoadCoachingListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadCoachingListQuery, + LoadCoachingListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + LoadCoachingListQuery, + LoadCoachingListQueryVariables + >(LoadCoachingListDocument, options); +} +export type LoadCoachingListQueryHookResult = ReturnType< + typeof useLoadCoachingListQuery +>; +export type LoadCoachingListLazyQueryHookResult = ReturnType< + typeof useLoadCoachingListLazyQuery +>; +export type LoadCoachingListQueryResult = Apollo.QueryResult< + LoadCoachingListQuery, + LoadCoachingListQueryVariables +>; diff --git a/src/components/Constants/LoadConstants.generated.ts b/src/components/Constants/LoadConstants.generated.ts index 61d4def3b..95c8d24a5 100644 --- a/src/components/Constants/LoadConstants.generated.ts +++ b/src/components/Constants/LoadConstants.generated.ts @@ -3,125 +3,160 @@ import * as Types from '../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type LoadConstantsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type LoadConstantsQuery = ( - { __typename?: 'Query' } - & { constant: ( - { __typename?: 'Constant' } - & { activities?: Types.Maybe - )>>, languages?: Types.Maybe - )>>, locales?: Types.Maybe - )>>, likelyToGiveOptions?: Types.Maybe - )>>, locations?: Types.Maybe - )>>, pledgeCurrencies?: Types.Maybe - )>>, pledgeFrequencies?: Types.Maybe - )>>, pledgesReceived?: Types.Maybe - )>>, preferredContactMethods?: Types.Maybe - )>>, sendAppeals?: Types.Maybe - )>>, sendNewsletterOptions?: Types.Maybe - )>>, statuses?: Types.Maybe - )>>, times?: Types.Maybe - )>> } - ) } -); +export type LoadConstantsQueryVariables = Types.Exact<{ [key: string]: never }>; +export type LoadConstantsQuery = { __typename?: 'Query' } & { + constant: { __typename?: 'Constant' } & { + activities?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + languages?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + locales?: Types.Maybe< + Array< + { __typename?: 'Locale' } & Pick< + Types.Locale, + 'englishName' | 'nativeName' | 'shortName' + > + > + >; + likelyToGiveOptions?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + locations?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + pledgeCurrencies?: Types.Maybe< + Array< + { __typename?: 'Currency' } & Pick< + Types.Currency, + 'codeSymbolString' | 'name' | 'code' + > + > + >; + pledgeFrequencies?: Types.Maybe< + Array< + { __typename?: 'IdKeyValue' } & Pick< + Types.IdKeyValue, + 'id' | 'key' | 'value' + > + > + >; + pledgesReceived?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + preferredContactMethods?: Types.Maybe< + Array< + { __typename?: 'IdKeyValue' } & Pick + > + >; + sendAppeals?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + sendNewsletterOptions?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + statuses?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + times?: Types.Maybe< + Array<{ __typename?: 'Time' } & Pick> + >; + }; +}; export const LoadConstantsDocument = gql` - query LoadConstants { - constant { - activities { - id - value - } - languages { - id - value - } - locales { - englishName - nativeName - shortName - } - likelyToGiveOptions { - id - value - } - locations { - id - } - pledgeCurrencies { - codeSymbolString - name - code - } - pledgeFrequencies { - id - key - value - } - pledgesReceived { - id - value - } - preferredContactMethods { - id - value - } - sendAppeals { - id - value - } - sendNewsletterOptions { - id - value - } - statuses { - id - value - } - times { - key - value + query LoadConstants { + constant { + activities { + id + value + } + languages { + id + value + } + locales { + englishName + nativeName + shortName + } + likelyToGiveOptions { + id + value + } + locations { + id + } + pledgeCurrencies { + codeSymbolString + name + code + } + pledgeFrequencies { + id + key + value + } + pledgesReceived { + id + value + } + preferredContactMethods { + id + value + } + sendAppeals { + id + value + } + sendNewsletterOptions { + id + value + } + statuses { + id + value + } + times { + key + value + } } } +`; +export function useLoadConstantsQuery( + baseOptions?: Apollo.QueryHookOptions< + LoadConstantsQuery, + LoadConstantsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + LoadConstantsDocument, + options, + ); } - `; -export function useLoadConstantsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(LoadConstantsDocument, options); - } -export function useLoadConstantsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(LoadConstantsDocument, options); - } -export type LoadConstantsQueryHookResult = ReturnType; -export type LoadConstantsLazyQueryHookResult = ReturnType; -export type LoadConstantsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useLoadConstantsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + LoadConstantsQuery, + LoadConstantsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + LoadConstantsDocument, + options, + ); +} +export type LoadConstantsQueryHookResult = ReturnType< + typeof useLoadConstantsQuery +>; +export type LoadConstantsLazyQueryHookResult = ReturnType< + typeof useLoadConstantsLazyQuery +>; +export type LoadConstantsQueryResult = Apollo.QueryResult< + LoadConstantsQuery, + LoadConstantsQueryVariables +>; diff --git a/src/components/Contacts/CelebrationIcons/CelebrationItems.generated.ts b/src/components/Contacts/CelebrationIcons/CelebrationItems.generated.ts index 6c610b163..fdac0eb55 100644 --- a/src/components/Contacts/CelebrationIcons/CelebrationItems.generated.ts +++ b/src/components/Contacts/CelebrationIcons/CelebrationItems.generated.ts @@ -1,26 +1,26 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type CelebrationItemsFragment = ( - { __typename?: 'Contact' } - & { people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - )> } - ) } -); +export type CelebrationItemsFragment = { __typename?: 'Contact' } & { + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + 'anniversaryMonth' | 'anniversaryDay' | 'birthdayDay' | 'birthdayMonth' + > + >; + }; +}; export const CelebrationItemsFragmentDoc = gql` - fragment CelebrationItems on Contact { - people(first: 25) { - nodes { - anniversaryMonth - anniversaryDay - birthdayDay - birthdayMonth + fragment CelebrationItems on Contact { + people(first: 25) { + nodes { + anniversaryMonth + anniversaryDay + birthdayDay + birthdayMonth + } } } -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactDetailsHeader.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactDetailsHeader.generated.ts index 2759da431..3cd21bf0c 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactDetailsHeader.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactDetailsHeader.generated.ts @@ -9,333 +9,614 @@ import { ContactHeaderStatusFragmentDoc } from './ContactHeaderSection/ContactHe import { ContactHeaderNewsletterFragmentDoc } from './ContactHeaderSection/ContactHeaderNewsletter.generated'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type ContactDetailsHeaderFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ), addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - )> } - ), primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )>, lastDonation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - ) } - )> } - ) } -); +export type ContactDetailsHeaderFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'avatar' + | 'name' + | 'starred' + | 'greeting' + | 'envelopeGreeting' + | 'sendNewsletter' + | 'status' + | 'lateAt' + | 'nextAsk' + | 'pledgeReceived' + | 'pledgeStartDate' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'totalDonations' + | 'noAppeals' + | 'source' + | 'likelyToGive' +> & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'firstName' + | 'lastName' + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'gender' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' | 'id' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'number' | 'location' | 'id' | 'primary' | 'source' + > + >; + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + }; + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + > + >; + }; + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'id' | 'street' | 'city' | 'state' | 'postalCode' | 'country' + > + >; + lastDonation?: Types.Maybe< + { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + } + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + >; + } + >; + }; + }; export type GetContactDetailsHeaderQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; contactId: Types.Scalars['ID']['input']; }>; - -export type GetContactDetailsHeaderQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ), addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - )> } - ), primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )>, lastDonation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - ) } - )> } - ) } - ) } -); +export type GetContactDetailsHeaderQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'avatar' + | 'name' + | 'starred' + | 'greeting' + | 'envelopeGreeting' + | 'sendNewsletter' + | 'status' + | 'lateAt' + | 'nextAsk' + | 'pledgeReceived' + | 'pledgeStartDate' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'totalDonations' + | 'noAppeals' + | 'source' + | 'likelyToGive' + > & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'firstName' + | 'lastName' + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'gender' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' | 'id' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'number' | 'location' | 'id' | 'primary' | 'source' + > + >; + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + }; + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + > + >; + }; + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'id' | 'street' | 'city' | 'state' | 'postalCode' | 'country' + > + >; + lastDonation?: Types.Maybe< + { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + } + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + >; + } + >; + }; + }; +}; export const ContactDetailsHeaderFragmentDoc = gql` - fragment ContactDetailsHeader on Contact { - id - avatar - name - primaryPerson { - firstName - lastName + fragment ContactDetailsHeader on Contact { + id + avatar + name + primaryPerson { + firstName + lastName + } + starred + ...ContactDetails + ...ContactHeaderAddress + ...ContactHeaderEmail + ...ContactHeaderPhone + ...ContactHeaderStatus + ...ContactHeaderNewsletter } - starred - ...ContactDetails - ...ContactHeaderAddress - ...ContactHeaderEmail - ...ContactHeaderPhone - ...ContactHeaderStatus - ...ContactHeaderNewsletter -} - ${ContactDetailsFragmentDoc} -${ContactHeaderAddressFragmentDoc} -${ContactHeaderEmailFragmentDoc} -${ContactHeaderPhoneFragmentDoc} -${ContactHeaderStatusFragmentDoc} -${ContactHeaderNewsletterFragmentDoc}`; + ${ContactDetailsFragmentDoc} + ${ContactHeaderAddressFragmentDoc} + ${ContactHeaderEmailFragmentDoc} + ${ContactHeaderPhoneFragmentDoc} + ${ContactHeaderStatusFragmentDoc} + ${ContactHeaderNewsletterFragmentDoc} +`; export const GetContactDetailsHeaderDocument = gql` - query GetContactDetailsHeader($accountListId: ID!, $contactId: ID!) { - contact(accountListId: $accountListId, id: $contactId) { - ...ContactDetailsHeader + query GetContactDetailsHeader($accountListId: ID!, $contactId: ID!) { + contact(accountListId: $accountListId, id: $contactId) { + ...ContactDetailsHeader + } } + ${ContactDetailsHeaderFragmentDoc} +`; +export function useGetContactDetailsHeaderQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactDetailsHeaderQuery, + GetContactDetailsHeaderQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactDetailsHeaderQuery, + GetContactDetailsHeaderQueryVariables + >(GetContactDetailsHeaderDocument, options); } - ${ContactDetailsHeaderFragmentDoc}`; -export function useGetContactDetailsHeaderQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactDetailsHeaderDocument, options); - } -export function useGetContactDetailsHeaderLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactDetailsHeaderDocument, options); - } -export type GetContactDetailsHeaderQueryHookResult = ReturnType; -export type GetContactDetailsHeaderLazyQueryHookResult = ReturnType; -export type GetContactDetailsHeaderQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactDetailsHeaderLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactDetailsHeaderQuery, + GetContactDetailsHeaderQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactDetailsHeaderQuery, + GetContactDetailsHeaderQueryVariables + >(GetContactDetailsHeaderDocument, options); +} +export type GetContactDetailsHeaderQueryHookResult = ReturnType< + typeof useGetContactDetailsHeaderQuery +>; +export type GetContactDetailsHeaderLazyQueryHookResult = ReturnType< + typeof useGetContactDetailsHeaderLazyQuery +>; +export type GetContactDetailsHeaderQueryResult = Apollo.QueryResult< + GetContactDetailsHeaderQuery, + GetContactDetailsHeaderQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderAddress.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderAddress.generated.ts index f2e63a73d..57c560013 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderAddress.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderAddress.generated.ts @@ -1,27 +1,30 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactHeaderAddressFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } -); +export type ContactHeaderAddressFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'envelopeGreeting' | 'name' +> & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'id' | 'street' | 'city' | 'state' | 'postalCode' | 'country' + > + >; + }; export const ContactHeaderAddressFragmentDoc = gql` - fragment ContactHeaderAddress on Contact { - id - envelopeGreeting - name - primaryAddress { + fragment ContactHeaderAddress on Contact { id - street - city - state - postalCode - country + envelopeGreeting + name + primaryAddress { + id + street + city + state + postalCode + country + } } -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderEmail.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderEmail.generated.ts index 00ea03655..1bb5b8c38 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderEmail.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderEmail.generated.ts @@ -1,25 +1,26 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactHeaderEmailFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - )> } -); +export type ContactHeaderEmailFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' +> & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick + >; + } + >; + }; export const ContactHeaderEmailFragmentDoc = gql` - fragment ContactHeaderEmail on Contact { - id - primaryPerson { - primaryEmailAddress { - email + fragment ContactHeaderEmail on Contact { + id + primaryPerson { + primaryEmailAddress { + email + } } } -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderNewsletter.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderNewsletter.generated.ts index 96a8a783a..3f21975da 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderNewsletter.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderNewsletter.generated.ts @@ -1,14 +1,14 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactHeaderNewsletterFragment = ( - { __typename?: 'Contact' } - & Pick -); +export type ContactHeaderNewsletterFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'sendNewsletter' +>; export const ContactHeaderNewsletterFragmentDoc = gql` - fragment ContactHeaderNewsletter on Contact { - id - sendNewsletter -} - `; \ No newline at end of file + fragment ContactHeaderNewsletter on Contact { + id + sendNewsletter + } +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderPhone.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderPhone.generated.ts index 65879f443..f69f84631 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderPhone.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderPhone.generated.ts @@ -1,26 +1,30 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactHeaderPhoneFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & { primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - )> } -); +export type ContactHeaderPhoneFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' +> & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & { + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'number' | 'location' + > + >; + } + >; + }; export const ContactHeaderPhoneFragmentDoc = gql` - fragment ContactHeaderPhone on Contact { - id - primaryPerson { - primaryPhoneNumber { - number - location + fragment ContactHeaderPhone on Contact { + id + primaryPerson { + primaryPhoneNumber { + number + location + } } } -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderStatus.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderStatus.generated.ts index ab0754672..6ef6e234c 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderStatus.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/ContactHeaderSection/ContactHeaderStatus.generated.ts @@ -2,47 +2,69 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import { ContactDonorAccountsFragmentDoc } from '../../ContactDonationsTab/ContactDonationsTab.generated'; -export type ContactHeaderStatusFragment = ( - { __typename?: 'Contact' } - & Pick - & { lastDonation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - ) } - )> } - ) } -); +export type ContactHeaderStatusFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'status' + | 'lateAt' + | 'name' + | 'nextAsk' + | 'pledgeReceived' + | 'pledgeStartDate' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'totalDonations' + | 'noAppeals' + | 'sendNewsletter' + | 'source' + | 'likelyToGive' +> & { + lastDonation?: Types.Maybe< + { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + } + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + >; + } + >; + }; + }; export const ContactHeaderStatusFragmentDoc = gql` - fragment ContactHeaderStatus on Contact { - id - status - lateAt - ...ContactDonorAccounts -} - ${ContactDonorAccountsFragmentDoc}`; \ No newline at end of file + fragment ContactHeaderStatus on Contact { + id + status + lateAt + ...ContactDonorAccounts + } + ${ContactDonorAccountsFragmentDoc} +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/ContactDetailsTab.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/ContactDetailsTab.generated.ts index a0a644365..a392e40df 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/ContactDetailsTab.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/ContactDetailsTab.generated.ts @@ -12,206 +12,371 @@ export type ContactDetailsTabQueryVariables = Types.Exact<{ contactId: Types.Scalars['ID']['input']; }>; - -export type ContactDetailsTabQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ), contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - & { sourceDonorAccount?: Types.Maybe<( - { __typename?: 'DonorAccount' } - & Pick - )> } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { organization: ( - { __typename?: 'Organization' } - & Pick - ) } - ) } - )> } - ) } - ) } -); +export type ContactDetailsTabQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'tagList' + | 'greeting' + | 'envelopeGreeting' + | 'preferredContactMethod' + | 'locale' + | 'timezone' + | 'churchName' + | 'website' + | 'sendNewsletter' + > & { + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'lastName' | 'id' + > + >; + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + }; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + | 'createdAt' + > & { + sourceDonorAccount?: Types.Maybe< + { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'accountNumber' + > + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + > & { + organization: { __typename?: 'Organization' } & Pick< + Types.Organization, + 'id' | 'name' + >; + }; + } + >; + }; + }; +}; export type DeleteContactMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; contactId: Types.Scalars['ID']['input']; }>; - -export type DeleteContactMutation = ( - { __typename?: 'Mutation' } - & { deleteContact?: Types.Maybe<( - { __typename?: 'ContactDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteContactMutation = { __typename?: 'Mutation' } & { + deleteContact?: Types.Maybe< + { __typename?: 'ContactDeleteMutationPayload' } & Pick< + Types.ContactDeleteMutationPayload, + 'id' + > + >; +}; export const ContactDetailsTabDocument = gql` - query ContactDetailsTab($accountListId: ID!, $contactId: ID!) { - contact(accountListId: $accountListId, id: $contactId) { - id - name - tagList - user { - firstName - lastName + query ContactDetailsTab($accountListId: ID!, $contactId: ID!) { + contact(accountListId: $accountListId, id: $contactId) { + id + name + tagList + user { + firstName + lastName + } + ...ContactPeople + ...ContactOther + ...ContactMailing + ...ContactPartnerAccounts } - ...ContactPeople - ...ContactOther - ...ContactMailing - ...ContactPartnerAccounts } + ${ContactPeopleFragmentDoc} + ${ContactOtherFragmentDoc} + ${ContactMailingFragmentDoc} + ${ContactPartnerAccountsFragmentDoc} +`; +export function useContactDetailsTabQuery( + baseOptions: Apollo.QueryHookOptions< + ContactDetailsTabQuery, + ContactDetailsTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + ContactDetailsTabQuery, + ContactDetailsTabQueryVariables + >(ContactDetailsTabDocument, options); } - ${ContactPeopleFragmentDoc} -${ContactOtherFragmentDoc} -${ContactMailingFragmentDoc} -${ContactPartnerAccountsFragmentDoc}`; -export function useContactDetailsTabQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactDetailsTabDocument, options); - } -export function useContactDetailsTabLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactDetailsTabDocument, options); - } -export type ContactDetailsTabQueryHookResult = ReturnType; -export type ContactDetailsTabLazyQueryHookResult = ReturnType; -export type ContactDetailsTabQueryResult = Apollo.QueryResult; +export function useContactDetailsTabLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactDetailsTabQuery, + ContactDetailsTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + ContactDetailsTabQuery, + ContactDetailsTabQueryVariables + >(ContactDetailsTabDocument, options); +} +export type ContactDetailsTabQueryHookResult = ReturnType< + typeof useContactDetailsTabQuery +>; +export type ContactDetailsTabLazyQueryHookResult = ReturnType< + typeof useContactDetailsTabLazyQuery +>; +export type ContactDetailsTabQueryResult = Apollo.QueryResult< + ContactDetailsTabQuery, + ContactDetailsTabQueryVariables +>; export const DeleteContactDocument = gql` - mutation DeleteContact($accountListId: ID!, $contactId: ID!) { - deleteContact(input: {accountListId: $accountListId, id: $contactId}) { - id + mutation DeleteContact($accountListId: ID!, $contactId: ID!) { + deleteContact(input: { accountListId: $accountListId, id: $contactId }) { + id + } } +`; +export type DeleteContactMutationFn = Apollo.MutationFunction< + DeleteContactMutation, + DeleteContactMutationVariables +>; +export function useDeleteContactMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteContactMutation, + DeleteContactMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteContactMutation, + DeleteContactMutationVariables + >(DeleteContactDocument, options); } - `; -export type DeleteContactMutationFn = Apollo.MutationFunction; -export function useDeleteContactMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteContactDocument, options); - } -export type DeleteContactMutationHookResult = ReturnType; -export type DeleteContactMutationResult = Apollo.MutationResult; -export type DeleteContactMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteContactMutationHookResult = ReturnType< + typeof useDeleteContactMutation +>; +export type DeleteContactMutationResult = + Apollo.MutationResult; +export type DeleteContactMutationOptions = Apollo.BaseMutationOptions< + DeleteContactMutation, + DeleteContactMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/AddAddressModal/CreateContactAddress.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/AddAddressModal/CreateContactAddress.generated.ts index c2091b788..b01c4c3c6 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/AddAddressModal/CreateContactAddress.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/AddAddressModal/CreateContactAddress.generated.ts @@ -8,45 +8,77 @@ export type CreateContactAddressMutationVariables = Types.Exact<{ attributes: Types.AddressCreateInput; }>; - -export type CreateContactAddressMutation = ( - { __typename?: 'Mutation' } - & { createAddress?: Types.Maybe<( - { __typename?: 'AddressCreateMutationPayload' } - & { address: ( - { __typename?: 'Address' } - & Pick - ) } - )> } -); - +export type CreateContactAddressMutation = { __typename?: 'Mutation' } & { + createAddress?: Types.Maybe< + { __typename?: 'AddressCreateMutationPayload' } & { + address: { __typename?: 'Address' } & Pick< + Types.Address, + | 'id' + | 'city' + | 'country' + | 'historic' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + | 'createdAt' + >; + } + >; +}; export const CreateContactAddressDocument = gql` - mutation CreateContactAddress($accountListId: ID!, $attributes: AddressCreateInput!) { - createAddress(input: {accountListId: $accountListId, attributes: $attributes}) { - address { - id - city - country - historic - location - metroArea - postalCode - primaryMailingAddress - region - source - state - street - createdAt + mutation CreateContactAddress( + $accountListId: ID! + $attributes: AddressCreateInput! + ) { + createAddress( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + address { + id + city + country + historic + location + metroArea + postalCode + primaryMailingAddress + region + source + state + street + createdAt + } } } +`; +export type CreateContactAddressMutationFn = Apollo.MutationFunction< + CreateContactAddressMutation, + CreateContactAddressMutationVariables +>; +export function useCreateContactAddressMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateContactAddressMutation, + CreateContactAddressMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateContactAddressMutation, + CreateContactAddressMutationVariables + >(CreateContactAddressDocument, options); } - `; -export type CreateContactAddressMutationFn = Apollo.MutationFunction; -export function useCreateContactAddressMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateContactAddressDocument, options); - } -export type CreateContactAddressMutationHookResult = ReturnType; -export type CreateContactAddressMutationResult = Apollo.MutationResult; -export type CreateContactAddressMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateContactAddressMutationHookResult = ReturnType< + typeof useCreateContactAddressMutation +>; +export type CreateContactAddressMutationResult = + Apollo.MutationResult; +export type CreateContactAddressMutationOptions = Apollo.BaseMutationOptions< + CreateContactAddressMutation, + CreateContactAddressMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/ContactMailing.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/ContactMailing.generated.ts index c6937deb1..6df198a05 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/ContactMailing.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/ContactMailing.generated.ts @@ -1,48 +1,65 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactMailingFragment = ( - { __typename?: 'Contact' } - & Pick - & { addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - & { sourceDonorAccount?: Types.Maybe<( - { __typename?: 'DonorAccount' } - & Pick - )> } - )> } - ) } -); +export type ContactMailingFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'greeting' | 'envelopeGreeting' | 'sendNewsletter' +> & { + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + | 'createdAt' + > & { + sourceDonorAccount?: Types.Maybe< + { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'accountNumber' + > + >; + } + >; + }; + }; export const ContactMailingFragmentDoc = gql` - fragment ContactMailing on Contact { - id - name - addresses(first: 25) { - nodes { - city - country - historic - id - location - metroArea - postalCode - primaryMailingAddress - region - source - sourceDonorAccount { - accountNumber + fragment ContactMailing on Contact { + id + name + addresses(first: 25) { + nodes { + city + country + historic + id + location + metroArea + postalCode + primaryMailingAddress + region + source + sourceDonorAccount { + accountNumber + } + state + street + createdAt } - state - street - createdAt } + greeting + envelopeGreeting + sendNewsletter } - greeting - envelopeGreeting - sendNewsletter -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddress.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddress.generated.ts index 3d06959b9..3985c27a1 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddress.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddress.generated.ts @@ -8,110 +8,173 @@ export type DonationServicesEmailQueryVariables = Types.Exact<{ contactId: Types.Scalars['ID']['input']; }>; - -export type DonationServicesEmailQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ), user: ( - { __typename?: 'User' } - & Pick - ) } -); +export type DonationServicesEmailQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick; + user: { __typename?: 'User' } & Pick; +}; export type UpdateContactAddressMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.AddressUpdateInput; }>; - -export type UpdateContactAddressMutation = ( - { __typename?: 'Mutation' } - & { updateAddress?: Types.Maybe<( - { __typename?: 'AddressUpdateMutationPayload' } - & { address: ( - { __typename?: 'Address' } - & Pick - ) } - )> } -); +export type UpdateContactAddressMutation = { __typename?: 'Mutation' } & { + updateAddress?: Types.Maybe< + { __typename?: 'AddressUpdateMutationPayload' } & { + address: { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'state' + | 'street' + >; + } + >; +}; export type DeleteContactAddressMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; id: Types.Scalars['ID']['input']; }>; - -export type DeleteContactAddressMutation = ( - { __typename?: 'Mutation' } - & { deleteAddress?: Types.Maybe<( - { __typename?: 'AddressDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteContactAddressMutation = { __typename?: 'Mutation' } & { + deleteAddress?: Types.Maybe< + { __typename?: 'AddressDeleteMutationPayload' } & Pick< + Types.AddressDeleteMutationPayload, + 'id' + > + >; +}; export const DonationServicesEmailDocument = gql` - query DonationServicesEmail($accountListId: ID!, $contactId: ID!) { - contact(accountListId: $accountListId, id: $contactId) { - name - } - user { - firstName + query DonationServicesEmail($accountListId: ID!, $contactId: ID!) { + contact(accountListId: $accountListId, id: $contactId) { + name + } + user { + firstName + } } +`; +export function useDonationServicesEmailQuery( + baseOptions: Apollo.QueryHookOptions< + DonationServicesEmailQuery, + DonationServicesEmailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + DonationServicesEmailQuery, + DonationServicesEmailQueryVariables + >(DonationServicesEmailDocument, options); } - `; -export function useDonationServicesEmailQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(DonationServicesEmailDocument, options); - } -export function useDonationServicesEmailLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(DonationServicesEmailDocument, options); - } -export type DonationServicesEmailQueryHookResult = ReturnType; -export type DonationServicesEmailLazyQueryHookResult = ReturnType; -export type DonationServicesEmailQueryResult = Apollo.QueryResult; +export function useDonationServicesEmailLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + DonationServicesEmailQuery, + DonationServicesEmailQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + DonationServicesEmailQuery, + DonationServicesEmailQueryVariables + >(DonationServicesEmailDocument, options); +} +export type DonationServicesEmailQueryHookResult = ReturnType< + typeof useDonationServicesEmailQuery +>; +export type DonationServicesEmailLazyQueryHookResult = ReturnType< + typeof useDonationServicesEmailLazyQuery +>; +export type DonationServicesEmailQueryResult = Apollo.QueryResult< + DonationServicesEmailQuery, + DonationServicesEmailQueryVariables +>; export const UpdateContactAddressDocument = gql` - mutation UpdateContactAddress($accountListId: ID!, $attributes: AddressUpdateInput!) { - updateAddress(input: {accountListId: $accountListId, attributes: $attributes}) { - address { - city - country - historic - id - location - metroArea - postalCode - primaryMailingAddress - region - state - street + mutation UpdateContactAddress( + $accountListId: ID! + $attributes: AddressUpdateInput! + ) { + updateAddress( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + address { + city + country + historic + id + location + metroArea + postalCode + primaryMailingAddress + region + state + street + } } } +`; +export type UpdateContactAddressMutationFn = Apollo.MutationFunction< + UpdateContactAddressMutation, + UpdateContactAddressMutationVariables +>; +export function useUpdateContactAddressMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactAddressMutation, + UpdateContactAddressMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactAddressMutation, + UpdateContactAddressMutationVariables + >(UpdateContactAddressDocument, options); } - `; -export type UpdateContactAddressMutationFn = Apollo.MutationFunction; -export function useUpdateContactAddressMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactAddressDocument, options); - } -export type UpdateContactAddressMutationHookResult = ReturnType; -export type UpdateContactAddressMutationResult = Apollo.MutationResult; -export type UpdateContactAddressMutationOptions = Apollo.BaseMutationOptions; +export type UpdateContactAddressMutationHookResult = ReturnType< + typeof useUpdateContactAddressMutation +>; +export type UpdateContactAddressMutationResult = + Apollo.MutationResult; +export type UpdateContactAddressMutationOptions = Apollo.BaseMutationOptions< + UpdateContactAddressMutation, + UpdateContactAddressMutationVariables +>; export const DeleteContactAddressDocument = gql` - mutation DeleteContactAddress($accountListId: ID!, $id: ID!) { - deleteAddress(input: {accountListId: $accountListId, id: $id}) { - id + mutation DeleteContactAddress($accountListId: ID!, $id: ID!) { + deleteAddress(input: { accountListId: $accountListId, id: $id }) { + id + } } +`; +export type DeleteContactAddressMutationFn = Apollo.MutationFunction< + DeleteContactAddressMutation, + DeleteContactAddressMutationVariables +>; +export function useDeleteContactAddressMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteContactAddressMutation, + DeleteContactAddressMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteContactAddressMutation, + DeleteContactAddressMutationVariables + >(DeleteContactAddressDocument, options); } - `; -export type DeleteContactAddressMutationFn = Apollo.MutationFunction; -export function useDeleteContactAddressMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteContactAddressDocument, options); - } -export type DeleteContactAddressMutationHookResult = ReturnType; -export type DeleteContactAddressMutationResult = Apollo.MutationResult; -export type DeleteContactAddressMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteContactAddressMutationHookResult = ReturnType< + typeof useDeleteContactAddressMutation +>; +export type DeleteContactAddressMutationResult = + Apollo.MutationResult; +export type DeleteContactAddressMutationOptions = Apollo.BaseMutationOptions< + DeleteContactAddressMutation, + DeleteContactAddressMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditMailingInfoModal/EditMailingInfoModal.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditMailingInfoModal/EditMailingInfoModal.generated.ts index 76363064e..253605fc5 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditMailingInfoModal/EditMailingInfoModal.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditMailingInfoModal/EditMailingInfoModal.generated.ts @@ -8,36 +8,56 @@ export type EditMailingInfoMutationVariables = Types.Exact<{ attributes: Types.ContactUpdateInput; }>; - -export type EditMailingInfoMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type EditMailingInfoMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'greeting' | 'envelopeGreeting' | 'sendNewsletter' + >; + } + >; +}; export const EditMailingInfoDocument = gql` - mutation EditMailingInfo($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id - greeting - envelopeGreeting - sendNewsletter + mutation EditMailingInfo( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { + id + greeting + envelopeGreeting + sendNewsletter + } } } +`; +export type EditMailingInfoMutationFn = Apollo.MutationFunction< + EditMailingInfoMutation, + EditMailingInfoMutationVariables +>; +export function useEditMailingInfoMutation( + baseOptions?: Apollo.MutationHookOptions< + EditMailingInfoMutation, + EditMailingInfoMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + EditMailingInfoMutation, + EditMailingInfoMutationVariables + >(EditMailingInfoDocument, options); } - `; -export type EditMailingInfoMutationFn = Apollo.MutationFunction; -export function useEditMailingInfoMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(EditMailingInfoDocument, options); - } -export type EditMailingInfoMutationHookResult = ReturnType; -export type EditMailingInfoMutationResult = Apollo.MutationResult; -export type EditMailingInfoMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type EditMailingInfoMutationHookResult = ReturnType< + typeof useEditMailingInfoMutation +>; +export type EditMailingInfoMutationResult = + Apollo.MutationResult; +export type EditMailingInfoMutationOptions = Apollo.BaseMutationOptions< + EditMailingInfoMutation, + EditMailingInfoMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/SetPrimaryAddress.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/SetPrimaryAddress.generated.ts index 11378a912..fcabbfd29 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/SetPrimaryAddress.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/SetPrimaryAddress.generated.ts @@ -3,65 +3,82 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type PrimaryMailingAddressFragment = ( - { __typename?: 'Address' } - & Pick -); +export type PrimaryMailingAddressFragment = { __typename?: 'Address' } & Pick< + Types.Address, + 'primaryMailingAddress' +>; -export type ContactPrimaryAddressRelationFragment = ( - { __typename?: 'Contact' } - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } -); +export type ContactPrimaryAddressRelationFragment = { + __typename?: 'Contact'; +} & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick + >; +}; export type SetContactPrimaryAddressMutationVariables = Types.Exact<{ contactId: Types.Scalars['ID']['input']; primaryAddressId?: Types.InputMaybe; }>; - -export type SetContactPrimaryAddressMutation = ( - { __typename?: 'Mutation' } - & { setContactPrimaryAddress: ( - { __typename?: 'ContactPrimaryAddress' } - & { addresses: Array<( - { __typename?: 'AddressWithPrimary' } - & Pick - )> } - ) } -); +export type SetContactPrimaryAddressMutation = { __typename?: 'Mutation' } & { + setContactPrimaryAddress: { __typename?: 'ContactPrimaryAddress' } & { + addresses: Array< + { __typename?: 'AddressWithPrimary' } & Pick< + Types.AddressWithPrimary, + 'id' | 'primaryMailingAddress' + > + >; + }; +}; export const PrimaryMailingAddressFragmentDoc = gql` - fragment PrimaryMailingAddress on Address { - primaryMailingAddress -} - `; + fragment PrimaryMailingAddress on Address { + primaryMailingAddress + } +`; export const ContactPrimaryAddressRelationFragmentDoc = gql` - fragment ContactPrimaryAddressRelation on Contact { - primaryAddress { - id + fragment ContactPrimaryAddressRelation on Contact { + primaryAddress { + id + } } -} - `; +`; export const SetContactPrimaryAddressDocument = gql` - mutation SetContactPrimaryAddress($contactId: ID!, $primaryAddressId: ID) { - setContactPrimaryAddress( - input: {contactId: $contactId, primaryAddressId: $primaryAddressId} - ) { - addresses { - id - primaryMailingAddress + mutation SetContactPrimaryAddress($contactId: ID!, $primaryAddressId: ID) { + setContactPrimaryAddress( + input: { contactId: $contactId, primaryAddressId: $primaryAddressId } + ) { + addresses { + id + primaryMailingAddress + } } } +`; +export type SetContactPrimaryAddressMutationFn = Apollo.MutationFunction< + SetContactPrimaryAddressMutation, + SetContactPrimaryAddressMutationVariables +>; +export function useSetContactPrimaryAddressMutation( + baseOptions?: Apollo.MutationHookOptions< + SetContactPrimaryAddressMutation, + SetContactPrimaryAddressMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SetContactPrimaryAddressMutation, + SetContactPrimaryAddressMutationVariables + >(SetContactPrimaryAddressDocument, options); } - `; -export type SetContactPrimaryAddressMutationFn = Apollo.MutationFunction; -export function useSetContactPrimaryAddressMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SetContactPrimaryAddressDocument, options); - } -export type SetContactPrimaryAddressMutationHookResult = ReturnType; -export type SetContactPrimaryAddressMutationResult = Apollo.MutationResult; -export type SetContactPrimaryAddressMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SetContactPrimaryAddressMutationHookResult = ReturnType< + typeof useSetContactPrimaryAddressMutation +>; +export type SetContactPrimaryAddressMutationResult = + Apollo.MutationResult; +export type SetContactPrimaryAddressMutationOptions = + Apollo.BaseMutationOptions< + SetContactPrimaryAddressMutation, + SetContactPrimaryAddressMutationVariables + >; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/ContactOther.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/ContactOther.generated.ts index 546237b36..fac8a438c 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/ContactOther.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/ContactOther.generated.ts @@ -1,46 +1,54 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactOtherFragment = ( - { __typename?: 'Contact' } - & Pick - & { user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ) } -); +export type ContactOtherFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'preferredContactMethod' + | 'locale' + | 'timezone' + | 'churchName' + | 'website' +> & { + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + }; export const ContactOtherFragmentDoc = gql` - fragment ContactOther on Contact { - id - preferredContactMethod - locale - timezone - churchName - website - user { + fragment ContactOther on Contact { id - firstName - lastName - } - contactReferralsToMe(first: 10) { - nodes { + preferredContactMethod + locale + timezone + churchName + website + user { id - referredBy { + firstName + lastName + } + contactReferralsToMe(first: 10) { + nodes { id - name + referredBy { + id + name + } } } } -} - `; \ No newline at end of file +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated.ts index 248e88df6..575de32dc 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Other/EditContactOtherModal/EditContactOther.generated.ts @@ -7,142 +7,212 @@ export type AssigneeOptionsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type AssigneeOptionsQuery = ( - { __typename?: 'Query' } - & { accountListUsers: ( - { __typename?: 'AccountListUserConnection' } - & { nodes: Array<( - { __typename?: 'AccountListUser' } - & { user: ( - { __typename?: 'UserScopedToAccountList' } - & Pick - ) } - )> } - ) } -); +export type AssigneeOptionsQuery = { __typename?: 'Query' } & { + accountListUsers: { __typename?: 'AccountListUserConnection' } & { + nodes: Array< + { __typename?: 'AccountListUser' } & { + user: { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + >; + } + >; + }; +}; export type ChurchOptionsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; search?: Types.InputMaybe; }>; - -export type ChurchOptionsQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); +export type ChurchOptionsQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'churches' + >; +}; export type UpdateContactOtherMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.ContactUpdateInput; }>; - -export type UpdateContactOtherMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ) } - ) } - )> } -); - +export type UpdateContactOtherMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'churchName' + | 'locale' + | 'preferredContactMethod' + | 'timezone' + | 'website' + > & { + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + }; + } + >; +}; export const AssigneeOptionsDocument = gql` - query AssigneeOptions($accountListId: ID!) { - accountListUsers(accountListId: $accountListId, first: 25) { - nodes { - user { - id - firstName - lastName + query AssigneeOptions($accountListId: ID!) { + accountListUsers(accountListId: $accountListId, first: 25) { + nodes { + user { + id + firstName + lastName + } } } } +`; +export function useAssigneeOptionsQuery( + baseOptions: Apollo.QueryHookOptions< + AssigneeOptionsQuery, + AssigneeOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + AssigneeOptionsDocument, + options, + ); } - `; -export function useAssigneeOptionsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AssigneeOptionsDocument, options); - } -export function useAssigneeOptionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AssigneeOptionsDocument, options); - } -export type AssigneeOptionsQueryHookResult = ReturnType; -export type AssigneeOptionsLazyQueryHookResult = ReturnType; -export type AssigneeOptionsQueryResult = Apollo.QueryResult; +export function useAssigneeOptionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + AssigneeOptionsQuery, + AssigneeOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + AssigneeOptionsQuery, + AssigneeOptionsQueryVariables + >(AssigneeOptionsDocument, options); +} +export type AssigneeOptionsQueryHookResult = ReturnType< + typeof useAssigneeOptionsQuery +>; +export type AssigneeOptionsLazyQueryHookResult = ReturnType< + typeof useAssigneeOptionsLazyQuery +>; +export type AssigneeOptionsQueryResult = Apollo.QueryResult< + AssigneeOptionsQuery, + AssigneeOptionsQueryVariables +>; export const ChurchOptionsDocument = gql` - query ChurchOptions($accountListId: ID!, $search: String) { - accountList(id: $accountListId) { - churches(search: $search) + query ChurchOptions($accountListId: ID!, $search: String) { + accountList(id: $accountListId) { + churches(search: $search) + } } +`; +export function useChurchOptionsQuery( + baseOptions: Apollo.QueryHookOptions< + ChurchOptionsQuery, + ChurchOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ChurchOptionsDocument, + options, + ); } - `; -export function useChurchOptionsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ChurchOptionsDocument, options); - } -export function useChurchOptionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ChurchOptionsDocument, options); - } -export type ChurchOptionsQueryHookResult = ReturnType; -export type ChurchOptionsLazyQueryHookResult = ReturnType; -export type ChurchOptionsQueryResult = Apollo.QueryResult; +export function useChurchOptionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ChurchOptionsQuery, + ChurchOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + ChurchOptionsDocument, + options, + ); +} +export type ChurchOptionsQueryHookResult = ReturnType< + typeof useChurchOptionsQuery +>; +export type ChurchOptionsLazyQueryHookResult = ReturnType< + typeof useChurchOptionsLazyQuery +>; +export type ChurchOptionsQueryResult = Apollo.QueryResult< + ChurchOptionsQuery, + ChurchOptionsQueryVariables +>; export const UpdateContactOtherDocument = gql` - mutation UpdateContactOther($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id - user { + mutation UpdateContactOther( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { id - firstName - lastName - } - churchName - locale - preferredContactMethod - timezone - website - contactReferralsToMe(first: 10) { - nodes { + user { id - referredBy { + firstName + lastName + } + churchName + locale + preferredContactMethod + timezone + website + contactReferralsToMe(first: 10) { + nodes { id - name + referredBy { + id + name + } } } } } } +`; +export type UpdateContactOtherMutationFn = Apollo.MutationFunction< + UpdateContactOtherMutation, + UpdateContactOtherMutationVariables +>; +export function useUpdateContactOtherMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactOtherMutation, + UpdateContactOtherMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactOtherMutation, + UpdateContactOtherMutationVariables + >(UpdateContactOtherDocument, options); } - `; -export type UpdateContactOtherMutationFn = Apollo.MutationFunction; -export function useUpdateContactOtherMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactOtherDocument, options); - } -export type UpdateContactOtherMutationHookResult = ReturnType; -export type UpdateContactOtherMutationResult = Apollo.MutationResult; -export type UpdateContactOtherMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateContactOtherMutationHookResult = ReturnType< + typeof useUpdateContactOtherMutation +>; +export type UpdateContactOtherMutationResult = + Apollo.MutationResult; +export type UpdateContactOtherMutationOptions = Apollo.BaseMutationOptions< + UpdateContactOtherMutation, + UpdateContactOtherMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/ContactPartnerAccounts.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/ContactPartnerAccounts.generated.ts index 901f0a239..46c78afa7 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/ContactPartnerAccounts.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/ContactPartnerAccounts.generated.ts @@ -3,73 +3,98 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type ContactPartnerAccountsFragment = ( - { __typename?: 'Contact' } - & Pick - & { contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { organization: ( - { __typename?: 'Organization' } - & Pick - ) } - ) } - )> } - ) } -); +export type ContactPartnerAccountsFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' +> & { + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + > & { + organization: { __typename?: 'Organization' } & Pick< + Types.Organization, + 'id' | 'name' + >; + }; + } + >; + }; + }; export type GetAccountListSalaryOrganizationQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetAccountListSalaryOrganizationQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); +export type GetAccountListSalaryOrganizationQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'salaryOrganizationId' + >; +}; export const ContactPartnerAccountsFragmentDoc = gql` - fragment ContactPartnerAccounts on Contact { - id - contactDonorAccounts(first: 25) { - nodes { - id - donorAccount { + fragment ContactPartnerAccounts on Contact { + id + contactDonorAccounts(first: 25) { + nodes { id - displayName - accountNumber - organization { + donorAccount { id - name + displayName + accountNumber + organization { + id + name + } } } } } -} - `; +`; export const GetAccountListSalaryOrganizationDocument = gql` - query GetAccountListSalaryOrganization($accountListId: ID!) { - accountList(id: $accountListId) { - salaryOrganizationId + query GetAccountListSalaryOrganization($accountListId: ID!) { + accountList(id: $accountListId) { + salaryOrganizationId + } } +`; +export function useGetAccountListSalaryOrganizationQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountListSalaryOrganizationQuery, + GetAccountListSalaryOrganizationQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountListSalaryOrganizationQuery, + GetAccountListSalaryOrganizationQueryVariables + >(GetAccountListSalaryOrganizationDocument, options); } - `; -export function useGetAccountListSalaryOrganizationQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListSalaryOrganizationDocument, options); - } -export function useGetAccountListSalaryOrganizationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListSalaryOrganizationDocument, options); - } -export type GetAccountListSalaryOrganizationQueryHookResult = ReturnType; -export type GetAccountListSalaryOrganizationLazyQueryHookResult = ReturnType; -export type GetAccountListSalaryOrganizationQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetAccountListSalaryOrganizationLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountListSalaryOrganizationQuery, + GetAccountListSalaryOrganizationQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountListSalaryOrganizationQuery, + GetAccountListSalaryOrganizationQueryVariables + >(GetAccountListSalaryOrganizationDocument, options); +} +export type GetAccountListSalaryOrganizationQueryHookResult = ReturnType< + typeof useGetAccountListSalaryOrganizationQuery +>; +export type GetAccountListSalaryOrganizationLazyQueryHookResult = ReturnType< + typeof useGetAccountListSalaryOrganizationLazyQuery +>; +export type GetAccountListSalaryOrganizationQueryResult = Apollo.QueryResult< + GetAccountListSalaryOrganizationQuery, + GetAccountListSalaryOrganizationQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/DeleteDonorAccount.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/DeleteDonorAccount.generated.ts index 0877e0a6b..26162a409 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/DeleteDonorAccount.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/PartnerAccounts/DeleteDonorAccount.generated.ts @@ -8,30 +8,46 @@ export type DeleteDonorAccountMutationVariables = Types.Exact<{ donorAccountId: Types.Scalars['ID']['input']; }>; - -export type DeleteDonorAccountMutation = ( - { __typename?: 'Mutation' } - & { destroyDonorAccount?: Types.Maybe<( - { __typename?: 'ContactDestroyDonorAccountPayload' } - & Pick - )> } -); - +export type DeleteDonorAccountMutation = { __typename?: 'Mutation' } & { + destroyDonorAccount?: Types.Maybe< + { __typename?: 'ContactDestroyDonorAccountPayload' } & Pick< + Types.ContactDestroyDonorAccountPayload, + 'id' + > + >; +}; export const DeleteDonorAccountDocument = gql` - mutation DeleteDonorAccount($contactId: ID!, $donorAccountId: ID!) { - destroyDonorAccount( - input: {contactId: $contactId, donorAccountId: $donorAccountId} - ) { - id + mutation DeleteDonorAccount($contactId: ID!, $donorAccountId: ID!) { + destroyDonorAccount( + input: { contactId: $contactId, donorAccountId: $donorAccountId } + ) { + id + } } +`; +export type DeleteDonorAccountMutationFn = Apollo.MutationFunction< + DeleteDonorAccountMutation, + DeleteDonorAccountMutationVariables +>; +export function useDeleteDonorAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteDonorAccountMutation, + DeleteDonorAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteDonorAccountMutation, + DeleteDonorAccountMutationVariables + >(DeleteDonorAccountDocument, options); } - `; -export type DeleteDonorAccountMutationFn = Apollo.MutationFunction; -export function useDeleteDonorAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteDonorAccountDocument, options); - } -export type DeleteDonorAccountMutationHookResult = ReturnType; -export type DeleteDonorAccountMutationResult = Apollo.MutationResult; -export type DeleteDonorAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteDonorAccountMutationHookResult = ReturnType< + typeof useDeleteDonorAccountMutation +>; +export type DeleteDonorAccountMutationResult = + Apollo.MutationResult; +export type DeleteDonorAccountMutationOptions = Apollo.BaseMutationOptions< + DeleteDonorAccountMutation, + DeleteDonorAccountMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/ContactPeople.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/ContactPeople.generated.ts index bffa76a47..841d62d85 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/ContactPeople.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/ContactPeople.generated.ts @@ -1,250 +1,368 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type ContactPeopleFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ) } -); +export type ContactPeopleFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'greeting' | 'envelopeGreeting' +> & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + }; + }; -export type ContactPersonFragment = ( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } -); +export type ContactPersonFragment = { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' +> & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + }; export const ContactPersonFragmentDoc = gql` - fragment ContactPerson on Person { - id - avatar - almaMater - anniversaryDay - anniversaryMonth - anniversaryYear - birthdayDay - birthdayMonth - birthdayYear - deceased - emailAddresses(first: 25) { - nodes { + fragment ContactPerson on Person { + id + avatar + almaMater + anniversaryDay + anniversaryMonth + anniversaryYear + birthdayDay + birthdayMonth + birthdayYear + deceased + emailAddresses(first: 25) { + nodes { + id + email + historic + primary + location + source + } + } + employer + facebookAccounts(first: 25) { + nodes { + id + username + } + } + firstName + gender + lastName + legalFirstName + linkedinAccounts(first: 25) { + nodes { + id + publicUrl + } + } + maritalStatus + occupation + optoutEnewsletter + phoneNumbers(first: 25) { + nodes { + id + historic + number + primary + location + source + } + } + primaryEmailAddress { id email - historic primary location source } - } - employer - facebookAccounts(first: 25) { - nodes { - id - username - } - } - firstName - gender - lastName - legalFirstName - linkedinAccounts(first: 25) { - nodes { - id - publicUrl - } - } - maritalStatus - occupation - optoutEnewsletter - phoneNumbers(first: 25) { - nodes { + primaryPhoneNumber { id - historic number primary location source } - } - primaryEmailAddress { - id - email - primary - location - source - } - primaryPhoneNumber { - id - number - primary - location - source - } - suffix - title - twitterAccounts(first: 25) { - nodes { - id - screenName + suffix + title + twitterAccounts(first: 25) { + nodes { + id + screenName + } } - } - websites { - nodes { - id - url + websites { + nodes { + id + url + } } } -} - `; +`; export const ContactPeopleFragmentDoc = gql` - fragment ContactPeople on Contact { - id - name - greeting - envelopeGreeting - primaryPerson { - ...ContactPerson - } - people(first: 25) { - nodes { + fragment ContactPeople on Contact { + id + name + greeting + envelopeGreeting + primaryPerson { ...ContactPerson } + people(first: 25) { + nodes { + ...ContactPerson + } + } } -} - ${ContactPersonFragmentDoc}`; \ No newline at end of file + ${ContactPersonFragmentDoc} +`; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/EditContactDetailsModal/EditContactDetails.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/EditContactDetailsModal/EditContactDetails.generated.ts index 7154a141c..e2dcb67e4 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/EditContactDetailsModal/EditContactDetails.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/EditContactDetailsModal/EditContactDetails.generated.ts @@ -10,193 +10,332 @@ export type UpdateContactDetailsMutationVariables = Types.Exact<{ attributes: Types.ContactUpdateInput; }>; +export type UpdateContactDetailsMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'greeting' | 'envelopeGreeting' | 'sendNewsletter' + > & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' + > + >; + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + | 'createdAt' + > & { + sourceDonorAccount?: Types.Maybe< + { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'accountNumber' + > + >; + } + >; + }; + }; + } + >; +}; -export type UpdateContactDetailsMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - )>, addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - & { sourceDonorAccount?: Types.Maybe<( - { __typename?: 'DonorAccount' } - & Pick - )> } - )> } - ) } - ) } - )> } -); - -export type ContactDetailsFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ), addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - )> } - ) } -); +export type ContactDetailsFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'greeting' | 'envelopeGreeting' | 'sendNewsletter' +> & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + } + >; + }; + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'city' + | 'country' + | 'historic' + | 'id' + | 'location' + | 'metroArea' + | 'postalCode' + | 'primaryMailingAddress' + | 'region' + | 'source' + | 'state' + | 'street' + > + >; + }; + }; export const ContactDetailsFragmentDoc = gql` - fragment ContactDetails on Contact { - id - name - primaryPerson { - ...ContactPerson - } - people(first: 25) { - nodes { + fragment ContactDetails on Contact { + id + name + primaryPerson { ...ContactPerson } - } - addresses(first: 25) { - nodes { - city - country - historic - id - location - metroArea - postalCode - primaryMailingAddress - region - source - state - street + people(first: 25) { + nodes { + ...ContactPerson + } } + addresses(first: 25) { + nodes { + city + country + historic + id + location + metroArea + postalCode + primaryMailingAddress + region + source + state + street + } + } + greeting + envelopeGreeting + sendNewsletter } - greeting - envelopeGreeting - sendNewsletter -} - ${ContactPersonFragmentDoc}`; + ${ContactPersonFragmentDoc} +`; export const UpdateContactDetailsDocument = gql` - mutation UpdateContactDetails($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id - name - primaryPerson { + mutation UpdateContactDetails( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { id - firstName - lastName + name + primaryPerson { + id + firstName + lastName + } + ...ContactMailing } - ...ContactMailing } } + ${ContactMailingFragmentDoc} +`; +export type UpdateContactDetailsMutationFn = Apollo.MutationFunction< + UpdateContactDetailsMutation, + UpdateContactDetailsMutationVariables +>; +export function useUpdateContactDetailsMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactDetailsMutation, + UpdateContactDetailsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactDetailsMutation, + UpdateContactDetailsMutationVariables + >(UpdateContactDetailsDocument, options); } - ${ContactMailingFragmentDoc}`; -export type UpdateContactDetailsMutationFn = Apollo.MutationFunction; -export function useUpdateContactDetailsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactDetailsDocument, options); - } -export type UpdateContactDetailsMutationHookResult = ReturnType; -export type UpdateContactDetailsMutationResult = Apollo.MutationResult; -export type UpdateContactDetailsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateContactDetailsMutationHookResult = ReturnType< + typeof useUpdateContactDetailsMutation +>; +export type UpdateContactDetailsMutationResult = + Apollo.MutationResult; +export type UpdateContactDetailsMutationOptions = Apollo.BaseMutationOptions< + UpdateContactDetailsMutation, + UpdateContactDetailsMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/PersonModal/PersonModal.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/PersonModal/PersonModal.generated.ts index d1d2f9597..0aa35d85d 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/PersonModal/PersonModal.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/People/Items/PersonModal/PersonModal.generated.ts @@ -9,182 +9,304 @@ export type UpdatePersonMutationVariables = Types.Exact<{ attributes: Types.PersonUpdateInput; }>; - -export type UpdatePersonMutation = ( - { __typename?: 'Mutation' } - & { updatePerson?: Types.Maybe<( - { __typename?: 'PersonUpdateMutationPayload' } - & { person: ( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - ) } - )> } -); +export type UpdatePersonMutation = { __typename?: 'Mutation' } & { + updatePerson?: Types.Maybe< + { __typename?: 'PersonUpdateMutationPayload' } & { + person: { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + }; + } + >; +}; export type CreatePersonMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.PersonCreateInput; }>; - -export type CreatePersonMutation = ( - { __typename?: 'Mutation' } - & { createPerson?: Types.Maybe<( - { __typename?: 'PersonCreateMutationPayload' } - & { person: ( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - ) } - )> } -); +export type CreatePersonMutation = { __typename?: 'Mutation' } & { + createPerson?: Types.Maybe< + { __typename?: 'PersonCreateMutationPayload' } & { + person: { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'historic' | 'primary' | 'location' | 'source' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'historic' | 'number' | 'primary' | 'location' | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + }; + } + >; +}; export type DeletePersonMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; id: Types.Scalars['ID']['input']; }>; - -export type DeletePersonMutation = ( - { __typename?: 'Mutation' } - & { deletePerson?: Types.Maybe<( - { __typename?: 'PersonDeleteMutationPayload' } - & Pick - )> } -); - +export type DeletePersonMutation = { __typename?: 'Mutation' } & { + deletePerson?: Types.Maybe< + { __typename?: 'PersonDeleteMutationPayload' } & Pick< + Types.PersonDeleteMutationPayload, + 'id' + > + >; +}; export const UpdatePersonDocument = gql` - mutation UpdatePerson($accountListId: ID!, $attributes: PersonUpdateInput!) { - updatePerson(input: {accountListId: $accountListId, attributes: $attributes}) { - person { - ...ContactPerson + mutation UpdatePerson($accountListId: ID!, $attributes: PersonUpdateInput!) { + updatePerson( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + person { + ...ContactPerson + } } } + ${ContactPersonFragmentDoc} +`; +export type UpdatePersonMutationFn = Apollo.MutationFunction< + UpdatePersonMutation, + UpdatePersonMutationVariables +>; +export function useUpdatePersonMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdatePersonMutation, + UpdatePersonMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdatePersonMutation, + UpdatePersonMutationVariables + >(UpdatePersonDocument, options); } - ${ContactPersonFragmentDoc}`; -export type UpdatePersonMutationFn = Apollo.MutationFunction; -export function useUpdatePersonMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdatePersonDocument, options); - } -export type UpdatePersonMutationHookResult = ReturnType; -export type UpdatePersonMutationResult = Apollo.MutationResult; -export type UpdatePersonMutationOptions = Apollo.BaseMutationOptions; +export type UpdatePersonMutationHookResult = ReturnType< + typeof useUpdatePersonMutation +>; +export type UpdatePersonMutationResult = + Apollo.MutationResult; +export type UpdatePersonMutationOptions = Apollo.BaseMutationOptions< + UpdatePersonMutation, + UpdatePersonMutationVariables +>; export const CreatePersonDocument = gql` - mutation CreatePerson($accountListId: ID!, $attributes: PersonCreateInput!) { - createPerson(input: {accountListId: $accountListId, attributes: $attributes}) { - person { - ...ContactPerson + mutation CreatePerson($accountListId: ID!, $attributes: PersonCreateInput!) { + createPerson( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + person { + ...ContactPerson + } } } + ${ContactPersonFragmentDoc} +`; +export type CreatePersonMutationFn = Apollo.MutationFunction< + CreatePersonMutation, + CreatePersonMutationVariables +>; +export function useCreatePersonMutation( + baseOptions?: Apollo.MutationHookOptions< + CreatePersonMutation, + CreatePersonMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreatePersonMutation, + CreatePersonMutationVariables + >(CreatePersonDocument, options); } - ${ContactPersonFragmentDoc}`; -export type CreatePersonMutationFn = Apollo.MutationFunction; -export function useCreatePersonMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreatePersonDocument, options); - } -export type CreatePersonMutationHookResult = ReturnType; -export type CreatePersonMutationResult = Apollo.MutationResult; -export type CreatePersonMutationOptions = Apollo.BaseMutationOptions; +export type CreatePersonMutationHookResult = ReturnType< + typeof useCreatePersonMutation +>; +export type CreatePersonMutationResult = + Apollo.MutationResult; +export type CreatePersonMutationOptions = Apollo.BaseMutationOptions< + CreatePersonMutation, + CreatePersonMutationVariables +>; export const DeletePersonDocument = gql` - mutation DeletePerson($accountListId: ID!, $id: ID!) { - deletePerson(input: {accountListId: $accountListId, id: $id}) { - id + mutation DeletePerson($accountListId: ID!, $id: ID!) { + deletePerson(input: { accountListId: $accountListId, id: $id }) { + id + } } +`; +export type DeletePersonMutationFn = Apollo.MutationFunction< + DeletePersonMutation, + DeletePersonMutationVariables +>; +export function useDeletePersonMutation( + baseOptions?: Apollo.MutationHookOptions< + DeletePersonMutation, + DeletePersonMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeletePersonMutation, + DeletePersonMutationVariables + >(DeletePersonDocument, options); } - `; -export type DeletePersonMutationFn = Apollo.MutationFunction; -export function useDeletePersonMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeletePersonDocument, options); - } -export type DeletePersonMutationHookResult = ReturnType; -export type DeletePersonMutationResult = Apollo.MutationResult; -export type DeletePersonMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeletePersonMutationHookResult = ReturnType< + typeof useDeletePersonMutation +>; +export type DeletePersonMutationResult = + Apollo.MutationResult; +export type DeletePersonMutationOptions = Apollo.BaseMutationOptions< + DeletePersonMutation, + DeletePersonMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDetailsTab/Tags/ContactTags.generated.ts b/src/components/Contacts/ContactDetails/ContactDetailsTab/Tags/ContactTags.generated.ts index 83a4f18d3..b84f0edc0 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsTab/Tags/ContactTags.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDetailsTab/Tags/ContactTags.generated.ts @@ -6,71 +6,116 @@ const defaultOptions = {} as const; export type UpdateContactTagsMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; contactId: Types.Scalars['ID']['input']; - tagList: Array | Types.Scalars['String']['input']; + tagList: + | Array + | Types.Scalars['String']['input']; }>; - -export type UpdateContactTagsMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); +export type UpdateContactTagsMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'tagList' + >; + } + >; +}; export type GetContactTagListQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetContactTagListQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); - +export type GetContactTagListQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'contactTagList' + >; +}; export const UpdateContactTagsDocument = gql` - mutation UpdateContactTags($accountListId: ID!, $contactId: ID!, $tagList: [String!]!) { - updateContact( - input: {accountListId: $accountListId, attributes: {id: $contactId, tagList: $tagList}} + mutation UpdateContactTags( + $accountListId: ID! + $contactId: ID! + $tagList: [String!]! ) { - contact { - id - tagList + updateContact( + input: { + accountListId: $accountListId + attributes: { id: $contactId, tagList: $tagList } + } + ) { + contact { + id + tagList + } } } +`; +export type UpdateContactTagsMutationFn = Apollo.MutationFunction< + UpdateContactTagsMutation, + UpdateContactTagsMutationVariables +>; +export function useUpdateContactTagsMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactTagsMutation, + UpdateContactTagsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactTagsMutation, + UpdateContactTagsMutationVariables + >(UpdateContactTagsDocument, options); } - `; -export type UpdateContactTagsMutationFn = Apollo.MutationFunction; -export function useUpdateContactTagsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactTagsDocument, options); - } -export type UpdateContactTagsMutationHookResult = ReturnType; -export type UpdateContactTagsMutationResult = Apollo.MutationResult; -export type UpdateContactTagsMutationOptions = Apollo.BaseMutationOptions; +export type UpdateContactTagsMutationHookResult = ReturnType< + typeof useUpdateContactTagsMutation +>; +export type UpdateContactTagsMutationResult = + Apollo.MutationResult; +export type UpdateContactTagsMutationOptions = Apollo.BaseMutationOptions< + UpdateContactTagsMutation, + UpdateContactTagsMutationVariables +>; export const GetContactTagListDocument = gql` - query GetContactTagList($accountListId: ID!) { - accountList(id: $accountListId) { - id - contactTagList + query GetContactTagList($accountListId: ID!) { + accountList(id: $accountListId) { + id + contactTagList + } } +`; +export function useGetContactTagListQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactTagListQuery, + GetContactTagListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactTagListQuery, + GetContactTagListQueryVariables + >(GetContactTagListDocument, options); } - `; -export function useGetContactTagListQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactTagListDocument, options); - } -export function useGetContactTagListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactTagListDocument, options); - } -export type GetContactTagListQueryHookResult = ReturnType; -export type GetContactTagListLazyQueryHookResult = ReturnType; -export type GetContactTagListQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactTagListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactTagListQuery, + GetContactTagListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactTagListQuery, + GetContactTagListQueryVariables + >(GetContactTagListDocument, options); +} +export type GetContactTagListQueryHookResult = ReturnType< + typeof useGetContactTagListQuery +>; +export type GetContactTagListLazyQueryHookResult = ReturnType< + typeof useGetContactTagListLazyQuery +>; +export type GetContactTagListQueryResult = Apollo.QueryResult< + GetContactTagListQuery, + GetContactTagListQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsList/ContactDonationsList.generated.ts b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsList/ContactDonationsList.generated.ts index 5ffcfa860..1317d9049 100644 --- a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsList/ContactDonationsList.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsList/ContactDonationsList.generated.ts @@ -11,77 +11,109 @@ export type ContactDonationsListQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type ContactDonationsListQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { donations: ( - { __typename?: 'DonationConnection' } - & { nodes: Array<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, appealAmount?: Types.Maybe<( - { __typename?: 'Money' } - & Pick - )>, donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - ), designationAccount: ( - { __typename?: 'DesignationAccount' } - & Pick - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - ) } -); - +export type ContactDonationsListQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick & { + donations: { __typename?: 'DonationConnection' } & { + nodes: Array< + { __typename?: 'Donation' } & Pick< + Types.Donation, + | 'id' + | 'donationDate' + | 'paymentMethod' + | 'memo' + | 'motivation' + | 'remoteId' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'currency' | 'convertedAmount' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + appealAmount?: Types.Maybe< + { __typename?: 'Money' } & Pick + >; + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + }; + designationAccount: { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'name' + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor' + >; + }; + }; +}; export const ContactDonationsListDocument = gql` - query ContactDonationsList($accountListId: ID!, $contactId: ID!, $after: String) { - contact(accountListId: $accountListId, id: $contactId) { - id - donations(first: 13, after: $after) { - nodes { - ...ContactDonation - ...EditDonationModalDonation - } - pageInfo { - endCursor - hasNextPage - hasPreviousPage - startCursor + query ContactDonationsList( + $accountListId: ID! + $contactId: ID! + $after: String + ) { + contact(accountListId: $accountListId, id: $contactId) { + id + donations(first: 13, after: $after) { + nodes { + ...ContactDonation + ...EditDonationModalDonation + } + pageInfo { + endCursor + hasNextPage + hasPreviousPage + startCursor + } } } } + ${ContactDonationFragmentDoc} + ${EditDonationModalDonationFragmentDoc} +`; +export function useContactDonationsListQuery( + baseOptions: Apollo.QueryHookOptions< + ContactDonationsListQuery, + ContactDonationsListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + ContactDonationsListQuery, + ContactDonationsListQueryVariables + >(ContactDonationsListDocument, options); } - ${ContactDonationFragmentDoc} -${EditDonationModalDonationFragmentDoc}`; -export function useContactDonationsListQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactDonationsListDocument, options); - } -export function useContactDonationsListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactDonationsListDocument, options); - } -export type ContactDonationsListQueryHookResult = ReturnType; -export type ContactDonationsListLazyQueryHookResult = ReturnType; -export type ContactDonationsListQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useContactDonationsListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactDonationsListQuery, + ContactDonationsListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + ContactDonationsListQuery, + ContactDonationsListQueryVariables + >(ContactDonationsListDocument, options); +} +export type ContactDonationsListQueryHookResult = ReturnType< + typeof useContactDonationsListQuery +>; +export type ContactDonationsListLazyQueryHookResult = ReturnType< + typeof useContactDonationsListLazyQuery +>; +export type ContactDonationsListQueryResult = Apollo.QueryResult< + ContactDonationsListQuery, + ContactDonationsListQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.generated.ts b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.generated.ts index 9dac24adb..824258a1d 100644 --- a/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDonationsTab/ContactDonationsTab.generated.ts @@ -8,193 +8,257 @@ export type GetContactDonationsQueryVariables = Types.Exact<{ contactId: Types.Scalars['ID']['input']; }>; +export type GetContactDonationsQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'nextAsk' + | 'pledgeReceived' + | 'pledgeStartDate' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'totalDonations' + | 'noAppeals' + | 'sendNewsletter' + | 'status' + | 'source' + | 'likelyToGive' + > & { + lastDonation?: Types.Maybe< + { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + } + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + >; + } + >; + }; + }; +}; -export type GetContactDonationsQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { lastDonation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - ) } - )> } - ) } - ) } -); - -export type ContactDonorAccountsFragment = ( - { __typename?: 'Contact' } - & Pick - & { lastDonation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - )>, contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ), contactDonorAccounts: ( - { __typename?: 'ContactDonorAccountConnection' } - & { nodes: Array<( - { __typename?: 'ContactDonorAccount' } - & Pick - & { donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - ) } - )> } - ) } -); +export type ContactDonorAccountsFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'nextAsk' + | 'pledgeReceived' + | 'pledgeStartDate' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'totalDonations' + | 'noAppeals' + | 'sendNewsletter' + | 'status' + | 'source' + | 'likelyToGive' +> & { + lastDonation?: Types.Maybe< + { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + } + >; + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + contactDonorAccounts: { __typename?: 'ContactDonorAccountConnection' } & { + nodes: Array< + { __typename?: 'ContactDonorAccount' } & Pick< + Types.ContactDonorAccount, + 'id' + > & { + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' | 'accountNumber' + >; + } + >; + }; + }; -export type ContactDonationFragment = ( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } -); +export type ContactDonationFragment = { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' +> & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + }; -export type DonationMoneyFragment = ( - { __typename?: 'Money' } - & Pick -); +export type DonationMoneyFragment = { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'currency' | 'convertedCurrency' +>; -export type ContactDonorAccountFragment = ( - { __typename?: 'DonorAccount' } - & Pick -); +export type ContactDonorAccountFragment = { + __typename?: 'DonorAccount'; +} & Pick; export const DonationMoneyFragmentDoc = gql` - fragment DonationMoney on Money { - amount - convertedAmount - currency - convertedCurrency -} - `; -export const ContactDonationFragmentDoc = gql` - fragment ContactDonation on Donation { - id - donationDate - paymentMethod - amount { - ...DonationMoney + fragment DonationMoney on Money { + amount + convertedAmount + currency + convertedCurrency } - appeal { +`; +export const ContactDonationFragmentDoc = gql` + fragment ContactDonation on Donation { id - name + donationDate + paymentMethod + amount { + ...DonationMoney + } + appeal { + id + name + } } -} - ${DonationMoneyFragmentDoc}`; + ${DonationMoneyFragmentDoc} +`; export const ContactDonorAccountFragmentDoc = gql` - fragment ContactDonorAccount on DonorAccount { - id - displayName - accountNumber -} - `; -export const ContactDonorAccountsFragmentDoc = gql` - fragment ContactDonorAccounts on Contact { - id - name - nextAsk - pledgeReceived - pledgeStartDate - pledgeAmount - pledgeCurrency - pledgeFrequency - totalDonations - noAppeals - sendNewsletter - status - source - likelyToGive - lastDonation { - ...ContactDonation + fragment ContactDonorAccount on DonorAccount { + id + displayName + accountNumber } - contactReferralsToMe(first: 10) { - nodes { - id - referredBy { +`; +export const ContactDonorAccountsFragmentDoc = gql` + fragment ContactDonorAccounts on Contact { + id + name + nextAsk + pledgeReceived + pledgeStartDate + pledgeAmount + pledgeCurrency + pledgeFrequency + totalDonations + noAppeals + sendNewsletter + status + source + likelyToGive + lastDonation { + ...ContactDonation + } + contactReferralsToMe(first: 10) { + nodes { id - name + referredBy { + id + name + } } } - } - contactDonorAccounts(first: 25) { - nodes { - id - donorAccount { - ...ContactDonorAccount + contactDonorAccounts(first: 25) { + nodes { + id + donorAccount { + ...ContactDonorAccount + } } } } -} - ${ContactDonationFragmentDoc} -${ContactDonorAccountFragmentDoc}`; + ${ContactDonationFragmentDoc} + ${ContactDonorAccountFragmentDoc} +`; export const GetContactDonationsDocument = gql` - query GetContactDonations($accountListId: ID!, $contactId: ID!) { - contact(accountListId: $accountListId, id: $contactId) { - id - ...ContactDonorAccounts - name - lastDonation { - ...ContactDonation + query GetContactDonations($accountListId: ID!, $contactId: ID!) { + contact(accountListId: $accountListId, id: $contactId) { + id + ...ContactDonorAccounts + name + lastDonation { + ...ContactDonation + } } } + ${ContactDonorAccountsFragmentDoc} + ${ContactDonationFragmentDoc} +`; +export function useGetContactDonationsQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactDonationsQuery, + GetContactDonationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactDonationsQuery, + GetContactDonationsQueryVariables + >(GetContactDonationsDocument, options); } - ${ContactDonorAccountsFragmentDoc} -${ContactDonationFragmentDoc}`; -export function useGetContactDonationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactDonationsDocument, options); - } -export function useGetContactDonationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactDonationsDocument, options); - } -export type GetContactDonationsQueryHookResult = ReturnType; -export type GetContactDonationsLazyQueryHookResult = ReturnType; -export type GetContactDonationsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactDonationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactDonationsQuery, + GetContactDonationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactDonationsQuery, + GetContactDonationsQueryVariables + >(GetContactDonationsDocument, options); +} +export type GetContactDonationsQueryHookResult = ReturnType< + typeof useGetContactDonationsQuery +>; +export type GetContactDonationsLazyQueryHookResult = ReturnType< + typeof useGetContactDonationsLazyQuery +>; +export type GetContactDonationsQueryResult = Apollo.QueryResult< + GetContactDonationsQuery, + GetContactDonationsQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDonationsTab/DonationsGraph/DonationsGraph.generated.ts b/src/components/Contacts/ContactDetails/ContactDonationsTab/DonationsGraph/DonationsGraph.generated.ts index ef402154e..9850c8144 100644 --- a/src/components/Contacts/ContactDetails/ContactDonationsTab/DonationsGraph/DonationsGraph.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDonationsTab/DonationsGraph/DonationsGraph.generated.ts @@ -5,64 +5,93 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type GetDonationsGraphQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - donorAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + donorAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; }>; - -export type GetDonationsGraphQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ), reportsDonationHistories: ( - { __typename?: 'DonationHistories' } - & Pick - & { periods: Array<( - { __typename?: 'DonationHistoriesPeriod' } - & Pick - & { totals: Array<( - { __typename?: 'Total' } - & Pick - )> } - )> } - ) } -); - +export type GetDonationsGraphQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'currency' + >; + reportsDonationHistories: { __typename?: 'DonationHistories' } & Pick< + Types.DonationHistories, + 'average' | 'averageIgnoreCurrent' | 'averageIgnoreCurrentAndZero' + > & { + periods: Array< + { __typename?: 'DonationHistoriesPeriod' } & Pick< + Types.DonationHistoriesPeriod, + 'convertedTotal' | 'endDate' | 'startDate' + > & { + totals: Array< + { __typename?: 'Total' } & Pick< + Types.Total, + 'amount' | 'convertedAmount' | 'currency' + > + >; + } + >; + }; +}; export const GetDonationsGraphDocument = gql` - query GetDonationsGraph($accountListId: ID!, $donorAccountIds: [ID!]) { - accountList(id: $accountListId) { - currency - } - reportsDonationHistories( - accountListId: $accountListId - donorAccountId: $donorAccountIds - range: "24m" - ) { - average - averageIgnoreCurrent - averageIgnoreCurrentAndZero - periods { - totals { - amount - convertedAmount - currency + query GetDonationsGraph($accountListId: ID!, $donorAccountIds: [ID!]) { + accountList(id: $accountListId) { + currency + } + reportsDonationHistories( + accountListId: $accountListId + donorAccountId: $donorAccountIds + range: "24m" + ) { + average + averageIgnoreCurrent + averageIgnoreCurrentAndZero + periods { + totals { + amount + convertedAmount + currency + } + convertedTotal + endDate + startDate } - convertedTotal - endDate - startDate } } +`; +export function useGetDonationsGraphQuery( + baseOptions: Apollo.QueryHookOptions< + GetDonationsGraphQuery, + GetDonationsGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetDonationsGraphQuery, + GetDonationsGraphQueryVariables + >(GetDonationsGraphDocument, options); } - `; -export function useGetDonationsGraphQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDonationsGraphDocument, options); - } -export function useGetDonationsGraphLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDonationsGraphDocument, options); - } -export type GetDonationsGraphQueryHookResult = ReturnType; -export type GetDonationsGraphLazyQueryHookResult = ReturnType; -export type GetDonationsGraphQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetDonationsGraphLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDonationsGraphQuery, + GetDonationsGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDonationsGraphQuery, + GetDonationsGraphQueryVariables + >(GetDonationsGraphDocument, options); +} +export type GetDonationsGraphQueryHookResult = ReturnType< + typeof useGetDonationsGraphQuery +>; +export type GetDonationsGraphLazyQueryHookResult = ReturnType< + typeof useGetDonationsGraphLazyQuery +>; +export type GetDonationsGraphQueryResult = Apollo.QueryResult< + GetDonationsGraphQuery, + GetDonationsGraphQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactDonationsTab/PartnershipInfo/EditPartnershipInfoModal/EditPartnershipInfoModal.generated.ts b/src/components/Contacts/ContactDetails/ContactDonationsTab/PartnershipInfo/EditPartnershipInfoModal/EditPartnershipInfoModal.generated.ts index 08586910c..90c035079 100644 --- a/src/components/Contacts/ContactDetails/ContactDonationsTab/PartnershipInfo/EditPartnershipInfoModal/EditPartnershipInfoModal.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactDonationsTab/PartnershipInfo/EditPartnershipInfoModal/EditPartnershipInfoModal.generated.ts @@ -8,104 +8,156 @@ export type UpdateContactPartnershipMutationVariables = Types.Exact<{ attributes: Types.ContactUpdateInput; }>; - -export type UpdateContactPartnershipMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { contactReferralsToMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredBy: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - ) } - ) } - )> } -); +export type UpdateContactPartnershipMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'status' + | 'pledgeAmount' + | 'pledgeFrequency' + | 'pledgeCurrency' + | 'pledgeStartDate' + | 'nextAsk' + | 'noAppeals' + | 'sendNewsletter' + | 'likelyToGive' + > & { + contactReferralsToMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick & { + referredBy: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + }; + }; + } + >; +}; export type GetDataForPartnershipInfoModalQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; contactsFilter?: Types.InputMaybe; }>; - -export type GetDataForPartnershipInfoModalQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetDataForPartnershipInfoModalQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; +}; export const UpdateContactPartnershipDocument = gql` - mutation UpdateContactPartnership($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id - status - pledgeAmount - pledgeFrequency - pledgeCurrency - pledgeStartDate - nextAsk - noAppeals - sendNewsletter - contactReferralsToMe(first: 10) { - nodes { - id - referredBy { + mutation UpdateContactPartnership( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { + id + status + pledgeAmount + pledgeFrequency + pledgeCurrency + pledgeStartDate + nextAsk + noAppeals + sendNewsletter + contactReferralsToMe(first: 10) { + nodes { id - name + referredBy { + id + name + } } } + likelyToGive } - likelyToGive } } +`; +export type UpdateContactPartnershipMutationFn = Apollo.MutationFunction< + UpdateContactPartnershipMutation, + UpdateContactPartnershipMutationVariables +>; +export function useUpdateContactPartnershipMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactPartnershipMutation, + UpdateContactPartnershipMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactPartnershipMutation, + UpdateContactPartnershipMutationVariables + >(UpdateContactPartnershipDocument, options); } - `; -export type UpdateContactPartnershipMutationFn = Apollo.MutationFunction; -export function useUpdateContactPartnershipMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactPartnershipDocument, options); - } -export type UpdateContactPartnershipMutationHookResult = ReturnType; -export type UpdateContactPartnershipMutationResult = Apollo.MutationResult; -export type UpdateContactPartnershipMutationOptions = Apollo.BaseMutationOptions; +export type UpdateContactPartnershipMutationHookResult = ReturnType< + typeof useUpdateContactPartnershipMutation +>; +export type UpdateContactPartnershipMutationResult = + Apollo.MutationResult; +export type UpdateContactPartnershipMutationOptions = + Apollo.BaseMutationOptions< + UpdateContactPartnershipMutation, + UpdateContactPartnershipMutationVariables + >; export const GetDataForPartnershipInfoModalDocument = gql` - query GetDataForPartnershipInfoModal($accountListId: ID!, $contactsFilter: ContactFilterSetInput) { - contacts( - accountListId: $accountListId - contactsFilter: $contactsFilter - first: 10 + query GetDataForPartnershipInfoModal( + $accountListId: ID! + $contactsFilter: ContactFilterSetInput ) { - nodes { - id - name + contacts( + accountListId: $accountListId + contactsFilter: $contactsFilter + first: 10 + ) { + nodes { + id + name + } } } +`; +export function useGetDataForPartnershipInfoModalQuery( + baseOptions: Apollo.QueryHookOptions< + GetDataForPartnershipInfoModalQuery, + GetDataForPartnershipInfoModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetDataForPartnershipInfoModalQuery, + GetDataForPartnershipInfoModalQueryVariables + >(GetDataForPartnershipInfoModalDocument, options); } - `; -export function useGetDataForPartnershipInfoModalQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDataForPartnershipInfoModalDocument, options); - } -export function useGetDataForPartnershipInfoModalLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDataForPartnershipInfoModalDocument, options); - } -export type GetDataForPartnershipInfoModalQueryHookResult = ReturnType; -export type GetDataForPartnershipInfoModalLazyQueryHookResult = ReturnType; -export type GetDataForPartnershipInfoModalQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetDataForPartnershipInfoModalLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDataForPartnershipInfoModalQuery, + GetDataForPartnershipInfoModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDataForPartnershipInfoModalQuery, + GetDataForPartnershipInfoModalQueryVariables + >(GetDataForPartnershipInfoModalDocument, options); +} +export type GetDataForPartnershipInfoModalQueryHookResult = ReturnType< + typeof useGetDataForPartnershipInfoModalQuery +>; +export type GetDataForPartnershipInfoModalLazyQueryHookResult = ReturnType< + typeof useGetDataForPartnershipInfoModalLazyQuery +>; +export type GetDataForPartnershipInfoModalQueryResult = Apollo.QueryResult< + GetDataForPartnershipInfoModalQuery, + GetDataForPartnershipInfoModalQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactNotesTab/ContactNotesTab.generated.ts b/src/components/Contacts/ContactDetails/ContactNotesTab/ContactNotesTab.generated.ts index abb37d188..66f0dcf66 100644 --- a/src/components/Contacts/ContactDetails/ContactNotesTab/ContactNotesTab.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactNotesTab/ContactNotesTab.generated.ts @@ -8,14 +8,12 @@ export type GetContactNotesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetContactNotesQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } -); +export type GetContactNotesQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'notes' | 'notesSavedAt' + >; +}; export type UpdateContactNotesMutationVariables = Types.Exact<{ contactId: Types.Scalars['ID']['input']; @@ -23,56 +21,101 @@ export type UpdateContactNotesMutationVariables = Types.Exact<{ notes: Types.Scalars['String']['input']; }>; - -export type UpdateContactNotesMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type UpdateContactNotesMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'notesSavedAt' + >; + } + >; +}; export const GetContactNotesDocument = gql` - query GetContactNotes($contactId: ID!, $accountListId: ID!) { - contact(id: $contactId, accountListId: $accountListId) { - id - notes - notesSavedAt + query GetContactNotes($contactId: ID!, $accountListId: ID!) { + contact(id: $contactId, accountListId: $accountListId) { + id + notes + notesSavedAt + } } +`; +export function useGetContactNotesQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactNotesQuery, + GetContactNotesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetContactNotesDocument, + options, + ); } - `; -export function useGetContactNotesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactNotesDocument, options); - } -export function useGetContactNotesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactNotesDocument, options); - } -export type GetContactNotesQueryHookResult = ReturnType; -export type GetContactNotesLazyQueryHookResult = ReturnType; -export type GetContactNotesQueryResult = Apollo.QueryResult; +export function useGetContactNotesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactNotesQuery, + GetContactNotesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactNotesQuery, + GetContactNotesQueryVariables + >(GetContactNotesDocument, options); +} +export type GetContactNotesQueryHookResult = ReturnType< + typeof useGetContactNotesQuery +>; +export type GetContactNotesLazyQueryHookResult = ReturnType< + typeof useGetContactNotesLazyQuery +>; +export type GetContactNotesQueryResult = Apollo.QueryResult< + GetContactNotesQuery, + GetContactNotesQueryVariables +>; export const UpdateContactNotesDocument = gql` - mutation UpdateContactNotes($contactId: ID!, $accountListId: ID!, $notes: String!) { - updateContact( - input: {accountListId: $accountListId, attributes: {id: $contactId, notes: $notes}} + mutation UpdateContactNotes( + $contactId: ID! + $accountListId: ID! + $notes: String! ) { - contact { - id - notesSavedAt + updateContact( + input: { + accountListId: $accountListId + attributes: { id: $contactId, notes: $notes } + } + ) { + contact { + id + notesSavedAt + } } } +`; +export type UpdateContactNotesMutationFn = Apollo.MutationFunction< + UpdateContactNotesMutation, + UpdateContactNotesMutationVariables +>; +export function useUpdateContactNotesMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactNotesMutation, + UpdateContactNotesMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactNotesMutation, + UpdateContactNotesMutationVariables + >(UpdateContactNotesDocument, options); } - `; -export type UpdateContactNotesMutationFn = Apollo.MutationFunction; -export function useUpdateContactNotesMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactNotesDocument, options); - } -export type UpdateContactNotesMutationHookResult = ReturnType; -export type UpdateContactNotesMutationResult = Apollo.MutationResult; -export type UpdateContactNotesMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateContactNotesMutationHookResult = ReturnType< + typeof useUpdateContactNotesMutation +>; +export type UpdateContactNotesMutationResult = + Apollo.MutationResult; +export type UpdateContactNotesMutationOptions = Apollo.BaseMutationOptions< + UpdateContactNotesMutation, + UpdateContactNotesMutationVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactReferralTab/ContactReferralTab.generated.ts b/src/components/Contacts/ContactDetails/ContactReferralTab/ContactReferralTab.generated.ts index c3f25f4cf..446eb29bd 100644 --- a/src/components/Contacts/ContactDetails/ContactReferralTab/ContactReferralTab.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactReferralTab/ContactReferralTab.generated.ts @@ -9,73 +9,98 @@ export type ContactReferralTabQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; +export type ContactReferralTabQuery = { __typename?: 'Query' } & { + contact: { __typename?: 'Contact' } & Pick & { + contactReferralsByMe: { __typename?: 'ReferralConnection' } & { + nodes: Array< + { __typename?: 'Referral' } & Pick< + Types.Referral, + 'id' | 'createdAt' + > & { + referredTo: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; + }; +}; -export type ContactReferralTabQuery = ( - { __typename?: 'Query' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { contactReferralsByMe: ( - { __typename?: 'ReferralConnection' } - & { nodes: Array<( - { __typename?: 'Referral' } - & Pick - & { referredTo: ( - { __typename?: 'Contact' } - & Pick - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } - ) } -); - -export type ContactReferralFragment = ( - { __typename?: 'Referral' } - & Pick - & { referredTo: ( - { __typename?: 'Contact' } - & Pick - ) } -); +export type ContactReferralFragment = { __typename?: 'Referral' } & Pick< + Types.Referral, + 'id' | 'createdAt' +> & { + referredTo: { __typename?: 'Contact' } & Pick; + }; export const ContactReferralFragmentDoc = gql` - fragment ContactReferral on Referral { - id - createdAt - referredTo { + fragment ContactReferral on Referral { id - name + createdAt + referredTo { + id + name + } } -} - `; +`; export const ContactReferralTabDocument = gql` - query ContactReferralTab($accountListId: ID!, $contactId: ID!, $after: String) { - contact(accountListId: $accountListId, id: $contactId) { - id - name - contactReferralsByMe(first: 25, after: $after) { - nodes { - ...ContactReferral - } - pageInfo { - endCursor - hasNextPage + query ContactReferralTab( + $accountListId: ID! + $contactId: ID! + $after: String + ) { + contact(accountListId: $accountListId, id: $contactId) { + id + name + contactReferralsByMe(first: 25, after: $after) { + nodes { + ...ContactReferral + } + pageInfo { + endCursor + hasNextPage + } } } } + ${ContactReferralFragmentDoc} +`; +export function useContactReferralTabQuery( + baseOptions: Apollo.QueryHookOptions< + ContactReferralTabQuery, + ContactReferralTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + ContactReferralTabQuery, + ContactReferralTabQueryVariables + >(ContactReferralTabDocument, options); } - ${ContactReferralFragmentDoc}`; -export function useContactReferralTabQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactReferralTabDocument, options); - } -export function useContactReferralTabLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactReferralTabDocument, options); - } -export type ContactReferralTabQueryHookResult = ReturnType; -export type ContactReferralTabLazyQueryHookResult = ReturnType; -export type ContactReferralTabQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useContactReferralTabLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactReferralTabQuery, + ContactReferralTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + ContactReferralTabQuery, + ContactReferralTabQueryVariables + >(ContactReferralTabDocument, options); +} +export type ContactReferralTabQueryHookResult = ReturnType< + typeof useContactReferralTabQuery +>; +export type ContactReferralTabLazyQueryHookResult = ReturnType< + typeof useContactReferralTabLazyQuery +>; +export type ContactReferralTabQueryResult = Apollo.QueryResult< + ContactReferralTabQuery, + ContactReferralTabQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactTasksTab/ContactTasksTab.generated.ts b/src/components/Contacts/ContactDetails/ContactTasksTab/ContactTasksTab.generated.ts index 32af56e00..8eee30e97 100644 --- a/src/components/Contacts/ContactDetails/ContactTasksTab/ContactTasksTab.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactTasksTab/ContactTasksTab.generated.ts @@ -10,63 +10,102 @@ export type ContactTasksTabQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type ContactTasksTabQuery = ( - { __typename?: 'Query' } - & { tasks: ( - { __typename?: 'TaskConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - +export type ContactTasksTabQuery = { __typename?: 'Query' } & { + tasks: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' + > & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export const ContactTasksTabDocument = gql` - query ContactTasksTab($accountListId: ID!, $tasksFilter: TaskFilterSetInput, $after: String) { - tasks( - accountListId: $accountListId - tasksFilter: $tasksFilter - first: 25 - after: $after + query ContactTasksTab( + $accountListId: ID! + $tasksFilter: TaskFilterSetInput + $after: String ) { - nodes { - ...TaskRow - } - pageInfo { - endCursor - hasNextPage + tasks( + accountListId: $accountListId + tasksFilter: $tasksFilter + first: 25 + after: $after + ) { + nodes { + ...TaskRow + } + pageInfo { + endCursor + hasNextPage + } + totalCount } - totalCount } + ${TaskRowFragmentDoc} +`; +export function useContactTasksTabQuery( + baseOptions: Apollo.QueryHookOptions< + ContactTasksTabQuery, + ContactTasksTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ContactTasksTabDocument, + options, + ); } - ${TaskRowFragmentDoc}`; -export function useContactTasksTabQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactTasksTabDocument, options); - } -export function useContactTasksTabLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactTasksTabDocument, options); - } -export type ContactTasksTabQueryHookResult = ReturnType; -export type ContactTasksTabLazyQueryHookResult = ReturnType; -export type ContactTasksTabQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useContactTasksTabLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactTasksTabQuery, + ContactTasksTabQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + ContactTasksTabQuery, + ContactTasksTabQueryVariables + >(ContactTasksTabDocument, options); +} +export type ContactTasksTabQueryHookResult = ReturnType< + typeof useContactTasksTabQuery +>; +export type ContactTasksTabLazyQueryHookResult = ReturnType< + typeof useContactTasksTabLazyQuery +>; +export type ContactTasksTabQueryResult = Apollo.QueryResult< + ContactTasksTabQuery, + ContactTasksTabQueryVariables +>; diff --git a/src/components/Contacts/ContactDetails/ContactTasksTab/StarTaskIconButton/SetTaskStarred.generated.ts b/src/components/Contacts/ContactDetails/ContactTasksTab/StarTaskIconButton/SetTaskStarred.generated.ts index da7a09974..4af1ef683 100644 --- a/src/components/Contacts/ContactDetails/ContactTasksTab/StarTaskIconButton/SetTaskStarred.generated.ts +++ b/src/components/Contacts/ContactDetails/ContactTasksTab/StarTaskIconButton/SetTaskStarred.generated.ts @@ -9,36 +9,55 @@ export type SetTaskStarredMutationVariables = Types.Exact<{ starred: Types.Scalars['Boolean']['input']; }>; - -export type SetTaskStarredMutation = ( - { __typename?: 'Mutation' } - & { updateTask?: Types.Maybe<( - { __typename?: 'TaskUpdateMutationPayload' } - & { task: ( - { __typename?: 'Task' } - & Pick - ) } - )> } -); - +export type SetTaskStarredMutation = { __typename?: 'Mutation' } & { + updateTask?: Types.Maybe< + { __typename?: 'TaskUpdateMutationPayload' } & { + task: { __typename?: 'Task' } & Pick; + } + >; +}; export const SetTaskStarredDocument = gql` - mutation SetTaskStarred($accountListId: ID!, $taskId: ID!, $starred: Boolean!) { - updateTask( - input: {accountListId: $accountListId, attributes: {id: $taskId, starred: $starred}} + mutation SetTaskStarred( + $accountListId: ID! + $taskId: ID! + $starred: Boolean! ) { - task { - id - starred + updateTask( + input: { + accountListId: $accountListId + attributes: { id: $taskId, starred: $starred } + } + ) { + task { + id + starred + } } } +`; +export type SetTaskStarredMutationFn = Apollo.MutationFunction< + SetTaskStarredMutation, + SetTaskStarredMutationVariables +>; +export function useSetTaskStarredMutation( + baseOptions?: Apollo.MutationHookOptions< + SetTaskStarredMutation, + SetTaskStarredMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SetTaskStarredMutation, + SetTaskStarredMutationVariables + >(SetTaskStarredDocument, options); } - `; -export type SetTaskStarredMutationFn = Apollo.MutationFunction; -export function useSetTaskStarredMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SetTaskStarredDocument, options); - } -export type SetTaskStarredMutationHookResult = ReturnType; -export type SetTaskStarredMutationResult = Apollo.MutationResult; -export type SetTaskStarredMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SetTaskStarredMutationHookResult = ReturnType< + typeof useSetTaskStarredMutation +>; +export type SetTaskStarredMutationResult = + Apollo.MutationResult; +export type SetTaskStarredMutationOptions = Apollo.BaseMutationOptions< + SetTaskStarredMutation, + SetTaskStarredMutationVariables +>; diff --git a/src/components/Contacts/ContactFlow/ContactFlowSetup/UpdateUserOptions.generated.ts b/src/components/Contacts/ContactFlow/ContactFlowSetup/UpdateUserOptions.generated.ts index 50de383c2..a1a890ad3 100644 --- a/src/components/Contacts/ContactFlow/ContactFlowSetup/UpdateUserOptions.generated.ts +++ b/src/components/Contacts/ContactFlow/ContactFlowSetup/UpdateUserOptions.generated.ts @@ -8,33 +8,45 @@ export type UpdateUserOptionsMutationVariables = Types.Exact<{ value: Types.Scalars['String']['input']; }>; - -export type UpdateUserOptionsMutation = ( - { __typename?: 'Mutation' } - & { createOrUpdateUserOption?: Types.Maybe<( - { __typename?: 'CreateOrUpdateOptionMutationPayload' } - & { option: ( - { __typename?: 'Option' } - & Pick - ) } - )> } -); - +export type UpdateUserOptionsMutation = { __typename?: 'Mutation' } & { + createOrUpdateUserOption?: Types.Maybe< + { __typename?: 'CreateOrUpdateOptionMutationPayload' } & { + option: { __typename?: 'Option' } & Pick; + } + >; +}; export const UpdateUserOptionsDocument = gql` - mutation UpdateUserOptions($key: String!, $value: String!) { - createOrUpdateUserOption(input: {key: $key, value: $value}) { - option { - id + mutation UpdateUserOptions($key: String!, $value: String!) { + createOrUpdateUserOption(input: { key: $key, value: $value }) { + option { + id + } } } +`; +export type UpdateUserOptionsMutationFn = Apollo.MutationFunction< + UpdateUserOptionsMutation, + UpdateUserOptionsMutationVariables +>; +export function useUpdateUserOptionsMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateUserOptionsMutation, + UpdateUserOptionsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateUserOptionsMutation, + UpdateUserOptionsMutationVariables + >(UpdateUserOptionsDocument, options); } - `; -export type UpdateUserOptionsMutationFn = Apollo.MutationFunction; -export function useUpdateUserOptionsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateUserOptionsDocument, options); - } -export type UpdateUserOptionsMutationHookResult = ReturnType; -export type UpdateUserOptionsMutationResult = Apollo.MutationResult; -export type UpdateUserOptionsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateUserOptionsMutationHookResult = ReturnType< + typeof useUpdateUserOptionsMutation +>; +export type UpdateUserOptionsMutationResult = + Apollo.MutationResult; +export type UpdateUserOptionsMutationOptions = Apollo.BaseMutationOptions< + UpdateUserOptionsMutation, + UpdateUserOptionsMutationVariables +>; diff --git a/src/components/Contacts/ContactFlow/GetUserOptions.generated.ts b/src/components/Contacts/ContactFlow/GetUserOptions.generated.ts index 82aed148e..e9e010fbe 100644 --- a/src/components/Contacts/ContactFlow/GetUserOptions.generated.ts +++ b/src/components/Contacts/ContactFlow/GetUserOptions.generated.ts @@ -3,35 +3,56 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetUserOptionsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetUserOptionsQuery = ( - { __typename?: 'Query' } - & { userOptions: Array<( - { __typename?: 'Option' } - & Pick - )> } -); +export type GetUserOptionsQueryVariables = Types.Exact<{ + [key: string]: never; +}>; +export type GetUserOptionsQuery = { __typename?: 'Query' } & { + userOptions: Array< + { __typename?: 'Option' } & Pick + >; +}; export const GetUserOptionsDocument = gql` - query GetUserOptions { - userOptions { - id - key - value + query GetUserOptions { + userOptions { + id + key + value + } } +`; +export function useGetUserOptionsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetUserOptionsQuery, + GetUserOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetUserOptionsDocument, + options, + ); +} +export function useGetUserOptionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUserOptionsQuery, + GetUserOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetUserOptionsDocument, + options, + ); } - `; -export function useGetUserOptionsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetUserOptionsDocument, options); - } -export function useGetUserOptionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetUserOptionsDocument, options); - } -export type GetUserOptionsQueryHookResult = ReturnType; -export type GetUserOptionsLazyQueryHookResult = ReturnType; -export type GetUserOptionsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetUserOptionsQueryHookResult = ReturnType< + typeof useGetUserOptionsQuery +>; +export type GetUserOptionsLazyQueryHookResult = ReturnType< + typeof useGetUserOptionsLazyQuery +>; +export type GetUserOptionsQueryResult = Apollo.QueryResult< + GetUserOptionsQuery, + GetUserOptionsQueryVariables +>; diff --git a/src/components/Contacts/ContactRow/ContactRow.generated.ts b/src/components/Contacts/ContactRow/ContactRow.generated.ts index eace9ed06..af4f3b4cd 100644 --- a/src/components/Contacts/ContactRow/ContactRow.generated.ts +++ b/src/components/Contacts/ContactRow/ContactRow.generated.ts @@ -2,45 +2,72 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; import { CelebrationItemsFragmentDoc } from '../CelebrationIcons/CelebrationItems.generated'; -export type ContactRowFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - )> } - ) } -); +export type ContactRowFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'status' + | 'pledgeAmount' + | 'pledgeFrequency' + | 'pledgeCurrency' + | 'pledgeReceived' + | 'lateAt' + | 'sendNewsletter' + | 'starred' + | 'uncompletedTasksCount' +> & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'id' + | 'street' + | 'city' + | 'state' + | 'postalCode' + | 'country' + | 'geo' + | 'source' + | 'createdAt' + > + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'anniversaryMonth' + | 'anniversaryDay' + | 'birthdayDay' + | 'birthdayMonth' + > + >; + }; + }; export const ContactRowFragmentDoc = gql` - fragment ContactRow on Contact { - id - name - primaryAddress { + fragment ContactRow on Contact { id - street - city - state - postalCode - country - geo - source - createdAt + name + primaryAddress { + id + street + city + state + postalCode + country + geo + source + createdAt + } + status + pledgeAmount + pledgeFrequency + pledgeCurrency + pledgeReceived + lateAt + sendNewsletter + starred + uncompletedTasksCount + ...CelebrationItems } - status - pledgeAmount - pledgeFrequency - pledgeCurrency - pledgeReceived - lateAt - sendNewsletter - starred - uncompletedTasksCount - ...CelebrationItems -} - ${CelebrationItemsFragmentDoc}`; \ No newline at end of file + ${CelebrationItemsFragmentDoc} +`; diff --git a/src/components/Contacts/MassActions/AddTags/ContactsAddTags.generated.ts b/src/components/Contacts/MassActions/AddTags/ContactsAddTags.generated.ts index 1f3afe3a7..82e646290 100644 --- a/src/components/Contacts/MassActions/AddTags/ContactsAddTags.generated.ts +++ b/src/components/Contacts/MassActions/AddTags/ContactsAddTags.generated.ts @@ -8,76 +8,118 @@ export type ContactsAddTagsMutationVariables = Types.Exact<{ attributes: Array | Types.ContactUpdateInput; }>; - -export type ContactsAddTagsMutation = ( - { __typename?: 'Mutation' } - & { updateContacts?: Types.Maybe<( - { __typename?: 'ContactsUpdateMutationPayload' } - & { contacts: Array<( - { __typename?: 'Contact' } - & Pick - )> } - )> } -); +export type ContactsAddTagsMutation = { __typename?: 'Mutation' } & { + updateContacts?: Types.Maybe< + { __typename?: 'ContactsUpdateMutationPayload' } & { + contacts: Array<{ __typename?: 'Contact' } & Pick>; + } + >; +}; export type GetContactsForAddingTagsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - contactIds: Array | Types.Scalars['ID']['input']; + contactIds: + | Array + | Types.Scalars['ID']['input']; numContactIds: Types.Scalars['Int']['input']; }>; - -export type GetContactsForAddingTagsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetContactsForAddingTagsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; +}; export const ContactsAddTagsDocument = gql` - mutation ContactsAddTags($accountListId: ID!, $attributes: [ContactUpdateInput!]!) { - updateContacts(input: {accountListId: $accountListId, attributes: $attributes}) { - contacts { - id + mutation ContactsAddTags( + $accountListId: ID! + $attributes: [ContactUpdateInput!]! + ) { + updateContacts( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contacts { + id + } } } +`; +export type ContactsAddTagsMutationFn = Apollo.MutationFunction< + ContactsAddTagsMutation, + ContactsAddTagsMutationVariables +>; +export function useContactsAddTagsMutation( + baseOptions?: Apollo.MutationHookOptions< + ContactsAddTagsMutation, + ContactsAddTagsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + ContactsAddTagsMutation, + ContactsAddTagsMutationVariables + >(ContactsAddTagsDocument, options); } - `; -export type ContactsAddTagsMutationFn = Apollo.MutationFunction; -export function useContactsAddTagsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ContactsAddTagsDocument, options); - } -export type ContactsAddTagsMutationHookResult = ReturnType; -export type ContactsAddTagsMutationResult = Apollo.MutationResult; -export type ContactsAddTagsMutationOptions = Apollo.BaseMutationOptions; +export type ContactsAddTagsMutationHookResult = ReturnType< + typeof useContactsAddTagsMutation +>; +export type ContactsAddTagsMutationResult = + Apollo.MutationResult; +export type ContactsAddTagsMutationOptions = Apollo.BaseMutationOptions< + ContactsAddTagsMutation, + ContactsAddTagsMutationVariables +>; export const GetContactsForAddingTagsDocument = gql` - query GetContactsForAddingTags($accountListId: ID!, $contactIds: [ID!]!, $numContactIds: Int!) { - contacts( - accountListId: $accountListId - contactsFilter: {ids: $contactIds} - first: $numContactIds + query GetContactsForAddingTags( + $accountListId: ID! + $contactIds: [ID!]! + $numContactIds: Int! ) { - nodes { - id - tagList + contacts( + accountListId: $accountListId + contactsFilter: { ids: $contactIds } + first: $numContactIds + ) { + nodes { + id + tagList + } } } +`; +export function useGetContactsForAddingTagsQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactsForAddingTagsQuery, + GetContactsForAddingTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactsForAddingTagsQuery, + GetContactsForAddingTagsQueryVariables + >(GetContactsForAddingTagsDocument, options); } - `; -export function useGetContactsForAddingTagsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactsForAddingTagsDocument, options); - } -export function useGetContactsForAddingTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactsForAddingTagsDocument, options); - } -export type GetContactsForAddingTagsQueryHookResult = ReturnType; -export type GetContactsForAddingTagsLazyQueryHookResult = ReturnType; -export type GetContactsForAddingTagsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactsForAddingTagsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactsForAddingTagsQuery, + GetContactsForAddingTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactsForAddingTagsQuery, + GetContactsForAddingTagsQueryVariables + >(GetContactsForAddingTagsDocument, options); +} +export type GetContactsForAddingTagsQueryHookResult = ReturnType< + typeof useGetContactsForAddingTagsQuery +>; +export type GetContactsForAddingTagsLazyQueryHookResult = ReturnType< + typeof useGetContactsForAddingTagsLazyQuery +>; +export type GetContactsForAddingTagsQueryResult = Apollo.QueryResult< + GetContactsForAddingTagsQuery, + GetContactsForAddingTagsQueryVariables +>; diff --git a/src/components/Contacts/MassActions/AddToAppeal/AddToAppealMutation.generated.ts b/src/components/Contacts/MassActions/AddToAppeal/AddToAppealMutation.generated.ts index 521ba991a..6a4ebf054 100644 --- a/src/components/Contacts/MassActions/AddToAppeal/AddToAppealMutation.generated.ts +++ b/src/components/Contacts/MassActions/AddToAppeal/AddToAppealMutation.generated.ts @@ -8,35 +8,50 @@ export type AddToAppealMutationVariables = Types.Exact<{ attributes: Types.AssignContactsToAppealInput; }>; - -export type AddToAppealMutation = ( - { __typename?: 'Mutation' } - & { assignContactsToAppeal?: Types.Maybe<( - { __typename?: 'AssignContactsToAppealMutationPayload' } - & { appeal: ( - { __typename?: 'Appeal' } - & Pick - ) } - )> } -); - +export type AddToAppealMutation = { __typename?: 'Mutation' } & { + assignContactsToAppeal?: Types.Maybe< + { __typename?: 'AssignContactsToAppealMutationPayload' } & { + appeal: { __typename?: 'Appeal' } & Pick; + } + >; +}; export const AddToAppealDocument = gql` - mutation AddToAppeal($accountListId: ID!, $attributes: AssignContactsToAppealInput!) { - assignContactsToAppeal( - input: {accountListId: $accountListId, attributes: $attributes} + mutation AddToAppeal( + $accountListId: ID! + $attributes: AssignContactsToAppealInput! ) { - appeal { - id + assignContactsToAppeal( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + appeal { + id + } } } +`; +export type AddToAppealMutationFn = Apollo.MutationFunction< + AddToAppealMutation, + AddToAppealMutationVariables +>; +export function useAddToAppealMutation( + baseOptions?: Apollo.MutationHookOptions< + AddToAppealMutation, + AddToAppealMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + AddToAppealDocument, + options, + ); } - `; -export type AddToAppealMutationFn = Apollo.MutationFunction; -export function useAddToAppealMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AddToAppealDocument, options); - } -export type AddToAppealMutationHookResult = ReturnType; -export type AddToAppealMutationResult = Apollo.MutationResult; -export type AddToAppealMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AddToAppealMutationHookResult = ReturnType< + typeof useAddToAppealMutation +>; +export type AddToAppealMutationResult = + Apollo.MutationResult; +export type AddToAppealMutationOptions = Apollo.BaseMutationOptions< + AddToAppealMutation, + AddToAppealMutationVariables +>; diff --git a/src/components/Contacts/MassActions/AddToAppeal/GetAppealsForMassAction.generated.ts b/src/components/Contacts/MassActions/AddToAppeal/GetAppealsForMassAction.generated.ts index 254fcf19c..b50353b28 100644 --- a/src/components/Contacts/MassActions/AddToAppeal/GetAppealsForMassAction.generated.ts +++ b/src/components/Contacts/MassActions/AddToAppeal/GetAppealsForMassAction.generated.ts @@ -8,45 +8,67 @@ export type GetAppealsForMassActionQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type GetAppealsForMassActionQuery = ( - { __typename?: 'Query' } - & { appeals: ( - { __typename?: 'AppealConnection' } - & { nodes: Array<( - { __typename?: 'Appeal' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - +export type GetAppealsForMassActionQuery = { __typename?: 'Query' } & { + appeals: { __typename?: 'AppealConnection' } & { + nodes: Array< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + 'id' | 'name' | 'contactIds' + > + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export const GetAppealsForMassActionDocument = gql` - query GetAppealsForMassAction($accountListId: ID!, $after: String) { - appeals(accountListId: $accountListId, first: 25, after: $after) { - nodes { - id - name - contactIds - } - pageInfo { - endCursor - hasNextPage + query GetAppealsForMassAction($accountListId: ID!, $after: String) { + appeals(accountListId: $accountListId, first: 25, after: $after) { + nodes { + id + name + contactIds + } + pageInfo { + endCursor + hasNextPage + } } } +`; +export function useGetAppealsForMassActionQuery( + baseOptions: Apollo.QueryHookOptions< + GetAppealsForMassActionQuery, + GetAppealsForMassActionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAppealsForMassActionQuery, + GetAppealsForMassActionQueryVariables + >(GetAppealsForMassActionDocument, options); } - `; -export function useGetAppealsForMassActionQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAppealsForMassActionDocument, options); - } -export function useGetAppealsForMassActionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAppealsForMassActionDocument, options); - } -export type GetAppealsForMassActionQueryHookResult = ReturnType; -export type GetAppealsForMassActionLazyQueryHookResult = ReturnType; -export type GetAppealsForMassActionQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetAppealsForMassActionLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAppealsForMassActionQuery, + GetAppealsForMassActionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAppealsForMassActionQuery, + GetAppealsForMassActionQueryVariables + >(GetAppealsForMassActionDocument, options); +} +export type GetAppealsForMassActionQueryHookResult = ReturnType< + typeof useGetAppealsForMassActionQuery +>; +export type GetAppealsForMassActionLazyQueryHookResult = ReturnType< + typeof useGetAppealsForMassActionLazyQuery +>; +export type GetAppealsForMassActionQueryResult = Apollo.QueryResult< + GetAppealsForMassActionQuery, + GetAppealsForMassActionQueryVariables +>; diff --git a/src/components/Contacts/MassActions/EditFields/MassActionsUpdateContacts.generated.ts b/src/components/Contacts/MassActions/EditFields/MassActionsUpdateContacts.generated.ts index 9a70d0f64..fd1c61a59 100644 --- a/src/components/Contacts/MassActions/EditFields/MassActionsUpdateContacts.generated.ts +++ b/src/components/Contacts/MassActions/EditFields/MassActionsUpdateContacts.generated.ts @@ -8,33 +8,53 @@ export type MassActionsUpdateContactFieldsMutationVariables = Types.Exact<{ attributes: Array | Types.ContactUpdateInput; }>; - -export type MassActionsUpdateContactFieldsMutation = ( - { __typename?: 'Mutation' } - & { updateContacts?: Types.Maybe<( - { __typename?: 'ContactsUpdateMutationPayload' } - & { contacts: Array<( - { __typename?: 'Contact' } - & Pick - )> } - )> } -); - +export type MassActionsUpdateContactFieldsMutation = { + __typename?: 'Mutation'; +} & { + updateContacts?: Types.Maybe< + { __typename?: 'ContactsUpdateMutationPayload' } & { + contacts: Array<{ __typename?: 'Contact' } & Pick>; + } + >; +}; export const MassActionsUpdateContactFieldsDocument = gql` - mutation MassActionsUpdateContactFields($accountListId: ID!, $attributes: [ContactUpdateInput!]!) { - updateContacts(input: {accountListId: $accountListId, attributes: $attributes}) { - contacts { - id + mutation MassActionsUpdateContactFields( + $accountListId: ID! + $attributes: [ContactUpdateInput!]! + ) { + updateContacts( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contacts { + id + } } } +`; +export type MassActionsUpdateContactFieldsMutationFn = Apollo.MutationFunction< + MassActionsUpdateContactFieldsMutation, + MassActionsUpdateContactFieldsMutationVariables +>; +export function useMassActionsUpdateContactFieldsMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsUpdateContactFieldsMutation, + MassActionsUpdateContactFieldsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsUpdateContactFieldsMutation, + MassActionsUpdateContactFieldsMutationVariables + >(MassActionsUpdateContactFieldsDocument, options); } - `; -export type MassActionsUpdateContactFieldsMutationFn = Apollo.MutationFunction; -export function useMassActionsUpdateContactFieldsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsUpdateContactFieldsDocument, options); - } -export type MassActionsUpdateContactFieldsMutationHookResult = ReturnType; -export type MassActionsUpdateContactFieldsMutationResult = Apollo.MutationResult; -export type MassActionsUpdateContactFieldsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type MassActionsUpdateContactFieldsMutationHookResult = ReturnType< + typeof useMassActionsUpdateContactFieldsMutation +>; +export type MassActionsUpdateContactFieldsMutationResult = + Apollo.MutationResult; +export type MassActionsUpdateContactFieldsMutationOptions = + Apollo.BaseMutationOptions< + MassActionsUpdateContactFieldsMutation, + MassActionsUpdateContactFieldsMutationVariables + >; diff --git a/src/components/Contacts/MassActions/Exports/Emails/GetEmailsForExporting.generated.ts b/src/components/Contacts/MassActions/Exports/Emails/GetEmailsForExporting.generated.ts index 040500efa..59f7d5d99 100644 --- a/src/components/Contacts/MassActions/Exports/Emails/GetEmailsForExporting.generated.ts +++ b/src/components/Contacts/MassActions/Exports/Emails/GetEmailsForExporting.generated.ts @@ -5,62 +5,89 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type GetEmailsForExportingQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - contactIds: Array | Types.Scalars['ID']['input']; + contactIds: + | Array + | Types.Scalars['ID']['input']; numContactIds: Types.Scalars['Int']['input']; }>; - -export type GetEmailsForExportingQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - )> } - ) } - )> } - ) } -); - +export type GetEmailsForExportingQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick & { + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' + > + >; + } + >; + }; + } + >; + }; +}; export const GetEmailsForExportingDocument = gql` - query GetEmailsForExporting($accountListId: ID!, $contactIds: [ID!]!, $numContactIds: Int!) { - contacts( - accountListId: $accountListId - contactsFilter: {ids: $contactIds} - first: $numContactIds + query GetEmailsForExporting( + $accountListId: ID! + $contactIds: [ID!]! + $numContactIds: Int! ) { - nodes { - id - people(first: 25) { - nodes { - primaryEmailAddress { - id - email + contacts( + accountListId: $accountListId + contactsFilter: { ids: $contactIds } + first: $numContactIds + ) { + nodes { + id + people(first: 25) { + nodes { + primaryEmailAddress { + id + email + } } } } } } +`; +export function useGetEmailsForExportingQuery( + baseOptions: Apollo.QueryHookOptions< + GetEmailsForExportingQuery, + GetEmailsForExportingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetEmailsForExportingQuery, + GetEmailsForExportingQueryVariables + >(GetEmailsForExportingDocument, options); } - `; -export function useGetEmailsForExportingQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetEmailsForExportingDocument, options); - } -export function useGetEmailsForExportingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetEmailsForExportingDocument, options); - } -export type GetEmailsForExportingQueryHookResult = ReturnType; -export type GetEmailsForExportingLazyQueryHookResult = ReturnType; -export type GetEmailsForExportingQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetEmailsForExportingLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetEmailsForExportingQuery, + GetEmailsForExportingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetEmailsForExportingQuery, + GetEmailsForExportingQueryVariables + >(GetEmailsForExportingDocument, options); +} +export type GetEmailsForExportingQueryHookResult = ReturnType< + typeof useGetEmailsForExportingQuery +>; +export type GetEmailsForExportingLazyQueryHookResult = ReturnType< + typeof useGetEmailsForExportingLazyQuery +>; +export type GetEmailsForExportingQueryResult = Apollo.QueryResult< + GetEmailsForExportingQuery, + GetEmailsForExportingQueryVariables +>; diff --git a/src/components/Contacts/MassActions/GetContactsForTags.generated.ts b/src/components/Contacts/MassActions/GetContactsForTags.generated.ts index 499893b61..56206ff8f 100644 --- a/src/components/Contacts/MassActions/GetContactsForTags.generated.ts +++ b/src/components/Contacts/MassActions/GetContactsForTags.generated.ts @@ -5,45 +5,69 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type GetContactsForTagsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - contactIds: Array | Types.Scalars['ID']['input']; + contactIds: + | Array + | Types.Scalars['ID']['input']; numContactIds: Types.Scalars['Int']['input']; }>; - -export type GetContactsForTagsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetContactsForTagsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; +}; export const GetContactsForTagsDocument = gql` - query GetContactsForTags($accountListId: ID!, $contactIds: [ID!]!, $numContactIds: Int!) { - contacts( - accountListId: $accountListId - contactsFilter: {ids: $contactIds} - first: $numContactIds + query GetContactsForTags( + $accountListId: ID! + $contactIds: [ID!]! + $numContactIds: Int! ) { - nodes { - id - tagList + contacts( + accountListId: $accountListId + contactsFilter: { ids: $contactIds } + first: $numContactIds + ) { + nodes { + id + tagList + } } } +`; +export function useGetContactsForTagsQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactsForTagsQuery, + GetContactsForTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactsForTagsQuery, + GetContactsForTagsQueryVariables + >(GetContactsForTagsDocument, options); } - `; -export function useGetContactsForTagsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactsForTagsDocument, options); - } -export function useGetContactsForTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactsForTagsDocument, options); - } -export type GetContactsForTagsQueryHookResult = ReturnType; -export type GetContactsForTagsLazyQueryHookResult = ReturnType; -export type GetContactsForTagsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactsForTagsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactsForTagsQuery, + GetContactsForTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactsForTagsQuery, + GetContactsForTagsQueryVariables + >(GetContactsForTagsDocument, options); +} +export type GetContactsForTagsQueryHookResult = ReturnType< + typeof useGetContactsForTagsQuery +>; +export type GetContactsForTagsLazyQueryHookResult = ReturnType< + typeof useGetContactsForTagsLazyQuery +>; +export type GetContactsForTagsQueryResult = Apollo.QueryResult< + GetContactsForTagsQuery, + GetContactsForTagsQueryVariables +>; diff --git a/src/components/Contacts/MassActions/MassActionsUpdateContacts.generated.ts b/src/components/Contacts/MassActions/MassActionsUpdateContacts.generated.ts index 508fe0f4e..426c8a769 100644 --- a/src/components/Contacts/MassActions/MassActionsUpdateContacts.generated.ts +++ b/src/components/Contacts/MassActions/MassActionsUpdateContacts.generated.ts @@ -8,33 +8,51 @@ export type MassActionsUpdateContactsMutationVariables = Types.Exact<{ attributes: Array | Types.ContactUpdateInput; }>; - -export type MassActionsUpdateContactsMutation = ( - { __typename?: 'Mutation' } - & { updateContacts?: Types.Maybe<( - { __typename?: 'ContactsUpdateMutationPayload' } - & { contacts: Array<( - { __typename?: 'Contact' } - & Pick - )> } - )> } -); - +export type MassActionsUpdateContactsMutation = { __typename?: 'Mutation' } & { + updateContacts?: Types.Maybe< + { __typename?: 'ContactsUpdateMutationPayload' } & { + contacts: Array<{ __typename?: 'Contact' } & Pick>; + } + >; +}; export const MassActionsUpdateContactsDocument = gql` - mutation MassActionsUpdateContacts($accountListId: ID!, $attributes: [ContactUpdateInput!]!) { - updateContacts(input: {accountListId: $accountListId, attributes: $attributes}) { - contacts { - id + mutation MassActionsUpdateContacts( + $accountListId: ID! + $attributes: [ContactUpdateInput!]! + ) { + updateContacts( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contacts { + id + } } } +`; +export type MassActionsUpdateContactsMutationFn = Apollo.MutationFunction< + MassActionsUpdateContactsMutation, + MassActionsUpdateContactsMutationVariables +>; +export function useMassActionsUpdateContactsMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsUpdateContactsMutation, + MassActionsUpdateContactsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsUpdateContactsMutation, + MassActionsUpdateContactsMutationVariables + >(MassActionsUpdateContactsDocument, options); } - `; -export type MassActionsUpdateContactsMutationFn = Apollo.MutationFunction; -export function useMassActionsUpdateContactsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsUpdateContactsDocument, options); - } -export type MassActionsUpdateContactsMutationHookResult = ReturnType; -export type MassActionsUpdateContactsMutationResult = Apollo.MutationResult; -export type MassActionsUpdateContactsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type MassActionsUpdateContactsMutationHookResult = ReturnType< + typeof useMassActionsUpdateContactsMutation +>; +export type MassActionsUpdateContactsMutationResult = + Apollo.MutationResult; +export type MassActionsUpdateContactsMutationOptions = + Apollo.BaseMutationOptions< + MassActionsUpdateContactsMutation, + MassActionsUpdateContactsMutationVariables + >; diff --git a/src/components/Contacts/MassActions/Merge/MassActionsMerge.generated.ts b/src/components/Contacts/MassActions/Merge/MassActionsMerge.generated.ts index a3af53ebd..07641ff0c 100644 --- a/src/components/Contacts/MassActions/Merge/MassActionsMerge.generated.ts +++ b/src/components/Contacts/MassActions/Merge/MassActionsMerge.generated.ts @@ -4,87 +4,138 @@ import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type MassActionsMergeMutationVariables = Types.Exact<{ - loserContactIds: Array | Types.Scalars['ID']['input']; + loserContactIds: + | Array + | Types.Scalars['ID']['input']; winnerContactId: Types.Scalars['ID']['input']; }>; - -export type MassActionsMergeMutation = ( - { __typename?: 'Mutation' } - & Pick -); +export type MassActionsMergeMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'mergeContacts' +>; export type GetContactsForMergingQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - contactIds: Array | Types.Scalars['ID']['input']; + contactIds: + | Array + | Types.Scalars['ID']['input']; numContactIds: Types.Scalars['Int']['input']; }>; - -export type GetContactsForMergingQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } - )> } - ) } -); - +export type GetContactsForMergingQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'avatar' | 'name' | 'createdAt' | 'status' + > & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'id' | 'street' | 'city' | 'state' | 'postalCode' | 'source' + > + >; + } + >; + }; +}; export const MassActionsMergeDocument = gql` - mutation MassActionsMerge($loserContactIds: [ID!]!, $winnerContactId: ID!) { - mergeContacts( - input: {loserContactIds: $loserContactIds, winnerContactId: $winnerContactId} - ) -} - `; -export type MassActionsMergeMutationFn = Apollo.MutationFunction; -export function useMassActionsMergeMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsMergeDocument, options); + mutation MassActionsMerge($loserContactIds: [ID!]!, $winnerContactId: ID!) { + mergeContacts( + input: { + loserContactIds: $loserContactIds + winnerContactId: $winnerContactId } -export type MassActionsMergeMutationHookResult = ReturnType; -export type MassActionsMergeMutationResult = Apollo.MutationResult; -export type MassActionsMergeMutationOptions = Apollo.BaseMutationOptions; + ) + } +`; +export type MassActionsMergeMutationFn = Apollo.MutationFunction< + MassActionsMergeMutation, + MassActionsMergeMutationVariables +>; +export function useMassActionsMergeMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsMergeMutation, + MassActionsMergeMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsMergeMutation, + MassActionsMergeMutationVariables + >(MassActionsMergeDocument, options); +} +export type MassActionsMergeMutationHookResult = ReturnType< + typeof useMassActionsMergeMutation +>; +export type MassActionsMergeMutationResult = + Apollo.MutationResult; +export type MassActionsMergeMutationOptions = Apollo.BaseMutationOptions< + MassActionsMergeMutation, + MassActionsMergeMutationVariables +>; export const GetContactsForMergingDocument = gql` - query GetContactsForMerging($accountListId: ID!, $contactIds: [ID!]!, $numContactIds: Int!) { - contacts( - accountListId: $accountListId - contactsFilter: {ids: $contactIds} - first: $numContactIds + query GetContactsForMerging( + $accountListId: ID! + $contactIds: [ID!]! + $numContactIds: Int! ) { - nodes { - id - avatar - name - primaryAddress { + contacts( + accountListId: $accountListId + contactsFilter: { ids: $contactIds } + first: $numContactIds + ) { + nodes { id - street - city - state - postalCode - source + avatar + name + primaryAddress { + id + street + city + state + postalCode + source + } + createdAt + status } - createdAt - status } } +`; +export function useGetContactsForMergingQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactsForMergingQuery, + GetContactsForMergingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactsForMergingQuery, + GetContactsForMergingQueryVariables + >(GetContactsForMergingDocument, options); } - `; -export function useGetContactsForMergingQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactsForMergingDocument, options); - } -export function useGetContactsForMergingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactsForMergingDocument, options); - } -export type GetContactsForMergingQueryHookResult = ReturnType; -export type GetContactsForMergingLazyQueryHookResult = ReturnType; -export type GetContactsForMergingQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactsForMergingLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactsForMergingQuery, + GetContactsForMergingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactsForMergingQuery, + GetContactsForMergingQueryVariables + >(GetContactsForMergingDocument, options); +} +export type GetContactsForMergingQueryHookResult = ReturnType< + typeof useGetContactsForMergingQuery +>; +export type GetContactsForMergingLazyQueryHookResult = ReturnType< + typeof useGetContactsForMergingLazyQuery +>; +export type GetContactsForMergingQueryResult = Apollo.QueryResult< + GetContactsForMergingQuery, + GetContactsForMergingQueryVariables +>; diff --git a/src/components/Contacts/MassActions/MergePeople/MergePeople.generated.ts b/src/components/Contacts/MassActions/MergePeople/MergePeople.generated.ts index b01a944ca..3037ee023 100644 --- a/src/components/Contacts/MassActions/MergePeople/MergePeople.generated.ts +++ b/src/components/Contacts/MassActions/MergePeople/MergePeople.generated.ts @@ -10,131 +10,264 @@ export type MassActionsMergePeopleMutationVariables = Types.Exact<{ loserIds: Array | Types.Scalars['ID']['input']; }>; - -export type MassActionsMergePeopleMutation = ( - { __typename?: 'Mutation' } - & { mergePeople?: Types.Maybe<( - { __typename?: 'MergePeopleMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )>, people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ) } - )> } - ) } - ) } - )> } -); - +export type MassActionsMergePeopleMutation = { __typename?: 'Mutation' } & { + mergePeople?: Types.Maybe< + { __typename?: 'MergePeopleMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'greeting' | 'envelopeGreeting' + > & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { + __typename?: 'FacebookAccountConnection'; + } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { + __typename?: 'LinkedinAccountConnection'; + } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick< + Types.Website, + 'id' | 'url' + > + >; + }; + } + >; + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + | 'id' + | 'avatar' + | 'almaMater' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'anniversaryYear' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'deceased' + | 'employer' + | 'firstName' + | 'gender' + | 'lastName' + | 'legalFirstName' + | 'maritalStatus' + | 'occupation' + | 'optoutEnewsletter' + | 'suffix' + | 'title' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + | 'id' + | 'email' + | 'historic' + | 'primary' + | 'location' + | 'source' + > + >; + }; + facebookAccounts: { + __typename?: 'FacebookAccountConnection'; + } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + linkedinAccounts: { + __typename?: 'LinkedinAccountConnection'; + } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + | 'id' + | 'historic' + | 'number' + | 'primary' + | 'location' + | 'source' + > + >; + }; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + twitterAccounts: { + __typename?: 'TwitterAccountConnection'; + } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick< + Types.Website, + 'id' | 'url' + > + >; + }; + } + >; + }; + }; + } + >; +}; export const MassActionsMergePeopleDocument = gql` - mutation MassActionsMergePeople($accountListId: ID!, $winnerId: ID!, $loserIds: [ID!]!) { - mergePeople( - input: {accountListId: $accountListId, winnerId: $winnerId, loserIds: $loserIds} + mutation MassActionsMergePeople( + $accountListId: ID! + $winnerId: ID! + $loserIds: [ID!]! ) { - contact { - ...ContactPeople + mergePeople( + input: { + accountListId: $accountListId + winnerId: $winnerId + loserIds: $loserIds + } + ) { + contact { + ...ContactPeople + } } } + ${ContactPeopleFragmentDoc} +`; +export type MassActionsMergePeopleMutationFn = Apollo.MutationFunction< + MassActionsMergePeopleMutation, + MassActionsMergePeopleMutationVariables +>; +export function useMassActionsMergePeopleMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsMergePeopleMutation, + MassActionsMergePeopleMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsMergePeopleMutation, + MassActionsMergePeopleMutationVariables + >(MassActionsMergePeopleDocument, options); } - ${ContactPeopleFragmentDoc}`; -export type MassActionsMergePeopleMutationFn = Apollo.MutationFunction; -export function useMassActionsMergePeopleMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsMergePeopleDocument, options); - } -export type MassActionsMergePeopleMutationHookResult = ReturnType; -export type MassActionsMergePeopleMutationResult = Apollo.MutationResult; -export type MassActionsMergePeopleMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type MassActionsMergePeopleMutationHookResult = ReturnType< + typeof useMassActionsMergePeopleMutation +>; +export type MassActionsMergePeopleMutationResult = + Apollo.MutationResult; +export type MassActionsMergePeopleMutationOptions = Apollo.BaseMutationOptions< + MassActionsMergePeopleMutation, + MassActionsMergePeopleMutationVariables +>; diff --git a/src/components/Contacts/StarContactIconButton/SetContactStarred.generated.ts b/src/components/Contacts/StarContactIconButton/SetContactStarred.generated.ts index e75b796d1..3039b7a33 100644 --- a/src/components/Contacts/StarContactIconButton/SetContactStarred.generated.ts +++ b/src/components/Contacts/StarContactIconButton/SetContactStarred.generated.ts @@ -9,36 +9,58 @@ export type SetContactStarredMutationVariables = Types.Exact<{ starred: Types.Scalars['Boolean']['input']; }>; - -export type SetContactStarredMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type SetContactStarredMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'starred' + >; + } + >; +}; export const SetContactStarredDocument = gql` - mutation SetContactStarred($accountListId: ID!, $contactId: ID!, $starred: Boolean!) { - updateContact( - input: {accountListId: $accountListId, attributes: {id: $contactId, starred: $starred}} + mutation SetContactStarred( + $accountListId: ID! + $contactId: ID! + $starred: Boolean! ) { - contact { - id - starred + updateContact( + input: { + accountListId: $accountListId + attributes: { id: $contactId, starred: $starred } + } + ) { + contact { + id + starred + } } } +`; +export type SetContactStarredMutationFn = Apollo.MutationFunction< + SetContactStarredMutation, + SetContactStarredMutationVariables +>; +export function useSetContactStarredMutation( + baseOptions?: Apollo.MutationHookOptions< + SetContactStarredMutation, + SetContactStarredMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SetContactStarredMutation, + SetContactStarredMutationVariables + >(SetContactStarredDocument, options); } - `; -export type SetContactStarredMutationFn = Apollo.MutationFunction; -export function useSetContactStarredMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SetContactStarredDocument, options); - } -export type SetContactStarredMutationHookResult = ReturnType; -export type SetContactStarredMutationResult = Apollo.MutationResult; -export type SetContactStarredMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SetContactStarredMutationHookResult = ReturnType< + typeof useSetContactStarredMutation +>; +export type SetContactStarredMutationResult = + Apollo.MutationResult; +export type SetContactStarredMutationOptions = Apollo.BaseMutationOptions< + SetContactStarredMutation, + SetContactStarredMutationVariables +>; diff --git a/src/components/Dashboard/ThisWeek/GetThisWeek.generated.ts b/src/components/Dashboard/ThisWeek/GetThisWeek.generated.ts index 4e896a72f..00221d39c 100644 --- a/src/components/Dashboard/ThisWeek/GetThisWeek.generated.ts +++ b/src/components/Dashboard/ThisWeek/GetThisWeek.generated.ts @@ -11,232 +11,301 @@ export type GetThisWeekQueryVariables = Types.Exact<{ twoWeeksAgo: Types.Scalars['ISO8601Date']['input']; }>; - -export type GetThisWeekQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { primaryAppeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )> } - ), dueTasks: ( - { __typename?: 'TaskConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - )> } - ), prayerRequestTasks: ( - { __typename?: 'TaskConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - )> } - ), latePledgeContacts: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), reportsPeopleWithBirthdays: ( - { __typename?: 'People' } - & { periods: Array<( - { __typename?: 'PeoplePeriod' } - & { people: Array<( - { __typename?: 'PersonWithParentContact' } - & Pick - & { parentContact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - )> } - ), reportsPeopleWithAnniversaries: ( - { __typename?: 'People' } - & { periods: Array<( - { __typename?: 'PeoplePeriod' } - & { people: Array<( - { __typename?: 'PersonWithParentContact' } - & Pick - & { parentContact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } - )> } - ), recentReferrals: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), onHandReferrals: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetThisWeekQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' + > & { + primaryAppeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + | 'id' + | 'name' + | 'amount' + | 'pledgesAmountTotal' + | 'pledgesAmountProcessed' + | 'amountCurrency' + > + >; + }; + dueTasks: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + 'id' | 'subject' | 'activityType' | 'startAt' | 'completedAt' + > & { + contacts: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + > + >; + }; + } + >; + }; + prayerRequestTasks: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + 'id' | 'subject' | 'activityType' | 'startAt' | 'completedAt' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + } + >; + }; + latePledgeContacts: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'lateAt' + > + >; + }; + reportsPeopleWithBirthdays: { __typename?: 'People' } & { + periods: Array< + { __typename?: 'PeoplePeriod' } & { + people: Array< + { __typename?: 'PersonWithParentContact' } & Pick< + Types.PersonWithParentContact, + 'id' | 'birthdayDay' | 'birthdayMonth' | 'firstName' | 'lastName' + > & { + parentContact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + } + >; + }; + reportsPeopleWithAnniversaries: { __typename?: 'People' } & { + periods: Array< + { __typename?: 'PeoplePeriod' } & { + people: Array< + { __typename?: 'PersonWithParentContact' } & Pick< + Types.PersonWithParentContact, + 'id' | 'anniversaryDay' | 'anniversaryMonth' + > & { + parentContact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + } + >; + } + >; + }; + recentReferrals: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + onHandReferrals: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; +}; export const GetThisWeekDocument = gql` - query GetThisWeek($accountListId: ID!, $endOfDay: ISO8601DateTime!, $today: ISO8601Date!, $threeWeeksFromNow: ISO8601Date!, $twoWeeksAgo: ISO8601Date!) { - accountList(id: $accountListId) { - id - primaryAppeal { - id - name - amount - pledgesAmountTotal - pledgesAmountProcessed - amountCurrency - } - } - dueTasks: tasks( - accountListId: $accountListId - first: 3 - tasksFilter: {startAt: {max: $endOfDay}, completed: false} + query GetThisWeek( + $accountListId: ID! + $endOfDay: ISO8601DateTime! + $today: ISO8601Date! + $threeWeeksFromNow: ISO8601Date! + $twoWeeksAgo: ISO8601Date! ) { - nodes { + accountList(id: $accountListId) { id - subject - activityType - startAt - completedAt - contacts { - nodes { - id - name - } - totalCount + primaryAppeal { + id + name + amount + pledgesAmountTotal + pledgesAmountProcessed + amountCurrency } } - totalCount - } - prayerRequestTasks: tasks( - accountListId: $accountListId - first: 2 - tasksFilter: {activityType: PRAYER_REQUEST, completed: false} - ) { - nodes { - id - subject - activityType - startAt - completedAt - contacts { - nodes { - name + dueTasks: tasks( + accountListId: $accountListId + first: 3 + tasksFilter: { startAt: { max: $endOfDay }, completed: false } + ) { + nodes { + id + subject + activityType + startAt + completedAt + contacts { + nodes { + id + name + } + totalCount } } + totalCount } - totalCount - } - latePledgeContacts: contacts( - accountListId: $accountListId - first: 3 - contactsFilter: {lateAt: {max: $today}, status: PARTNER_FINANCIAL, pledgeReceived: RECEIVED} - sortBy: ACTIVE_STATUS_AND_NAME - ) { - nodes { - id - name - lateAt + prayerRequestTasks: tasks( + accountListId: $accountListId + first: 2 + tasksFilter: { activityType: PRAYER_REQUEST, completed: false } + ) { + nodes { + id + subject + activityType + startAt + completedAt + contacts { + nodes { + name + } + } + } + totalCount } - totalCount - } - reportsPeopleWithBirthdays( - accountListId: $accountListId - range: "4w" - endDate: $threeWeeksFromNow - ) { - periods { - people { + latePledgeContacts: contacts( + accountListId: $accountListId + first: 3 + contactsFilter: { + lateAt: { max: $today } + status: PARTNER_FINANCIAL + pledgeReceived: RECEIVED + } + sortBy: ACTIVE_STATUS_AND_NAME + ) { + nodes { id - birthdayDay - birthdayMonth - firstName - lastName - parentContact { + name + lateAt + } + totalCount + } + reportsPeopleWithBirthdays( + accountListId: $accountListId + range: "4w" + endDate: $threeWeeksFromNow + ) { + periods { + people { id - name + birthdayDay + birthdayMonth + firstName + lastName + parentContact { + id + name + } } } } - } - reportsPeopleWithAnniversaries( - accountListId: $accountListId - range: "4w" - endDate: $threeWeeksFromNow - ) { - periods { - people { - id - anniversaryDay - anniversaryMonth - parentContact { + reportsPeopleWithAnniversaries( + accountListId: $accountListId + range: "4w" + endDate: $threeWeeksFromNow + ) { + periods { + people { id - name + anniversaryDay + anniversaryMonth + parentContact { + id + name + } } } } - } - recentReferrals: contacts( - accountListId: $accountListId - first: 3 - contactsFilter: {referrer: ["any"], createdAt: {min: $twoWeeksAgo}} - sortBy: ACTIVE_STATUS_AND_NAME - ) { - nodes { - id - name + recentReferrals: contacts( + accountListId: $accountListId + first: 3 + contactsFilter: { referrer: ["any"], createdAt: { min: $twoWeeksAgo } } + sortBy: ACTIVE_STATUS_AND_NAME + ) { + nodes { + id + name + } + totalCount } - totalCount - } - onHandReferrals: contacts( - accountListId: $accountListId - first: 3 - contactsFilter: {status: [NEVER_CONTACTED, ASK_IN_FUTURE, CULTIVATE_RELATIONSHIP, CONTACT_FOR_APPOINTMENT], referrer: ["any"]} - sortBy: ACTIVE_STATUS_AND_NAME - ) { - nodes { - id - name + onHandReferrals: contacts( + accountListId: $accountListId + first: 3 + contactsFilter: { + status: [ + NEVER_CONTACTED + ASK_IN_FUTURE + CULTIVATE_RELATIONSHIP + CONTACT_FOR_APPOINTMENT + ] + referrer: ["any"] + } + sortBy: ACTIVE_STATUS_AND_NAME + ) { + nodes { + id + name + } + totalCount } - totalCount } +`; +export function useGetThisWeekQuery( + baseOptions: Apollo.QueryHookOptions< + GetThisWeekQuery, + GetThisWeekQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetThisWeekDocument, + options, + ); +} +export function useGetThisWeekLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetThisWeekQuery, + GetThisWeekQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetThisWeekDocument, + options, + ); } - `; -export function useGetThisWeekQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetThisWeekDocument, options); - } -export function useGetThisWeekLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetThisWeekDocument, options); - } export type GetThisWeekQueryHookResult = ReturnType; -export type GetThisWeekLazyQueryHookResult = ReturnType; -export type GetThisWeekQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetThisWeekLazyQueryHookResult = ReturnType< + typeof useGetThisWeekLazyQuery +>; +export type GetThisWeekQueryResult = Apollo.QueryResult< + GetThisWeekQuery, + GetThisWeekQueryVariables +>; diff --git a/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportEmail/GetNewsletterContacts.generated.ts b/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportEmail/GetNewsletterContacts.generated.ts index 64e48706d..af01c7d4c 100644 --- a/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportEmail/GetNewsletterContacts.generated.ts +++ b/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportEmail/GetNewsletterContacts.generated.ts @@ -8,63 +8,85 @@ export type GetEmailNewsletterContactsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type GetEmailNewsletterContactsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - )> } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - +export type GetEmailNewsletterContactsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick & { + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' + > + >; + } + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export const GetEmailNewsletterContactsDocument = gql` - query GetEmailNewsletterContacts($accountListId: ID!, $after: String) { - contacts( - accountListId: $accountListId - contactsFilter: {newsletter: EMAIL, status: ACTIVE} - first: 100 - after: $after - ) { - nodes { - id - primaryPerson { + query GetEmailNewsletterContacts($accountListId: ID!, $after: String) { + contacts( + accountListId: $accountListId + contactsFilter: { newsletter: EMAIL, status: ACTIVE } + first: 100 + after: $after + ) { + nodes { id - primaryEmailAddress { + primaryPerson { id - email + primaryEmailAddress { + id + email + } } } - } - pageInfo { - endCursor - hasNextPage + pageInfo { + endCursor + hasNextPage + } } } +`; +export function useGetEmailNewsletterContactsQuery( + baseOptions: Apollo.QueryHookOptions< + GetEmailNewsletterContactsQuery, + GetEmailNewsletterContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetEmailNewsletterContactsQuery, + GetEmailNewsletterContactsQueryVariables + >(GetEmailNewsletterContactsDocument, options); } - `; -export function useGetEmailNewsletterContactsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetEmailNewsletterContactsDocument, options); - } -export function useGetEmailNewsletterContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetEmailNewsletterContactsDocument, options); - } -export type GetEmailNewsletterContactsQueryHookResult = ReturnType; -export type GetEmailNewsletterContactsLazyQueryHookResult = ReturnType; -export type GetEmailNewsletterContactsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetEmailNewsletterContactsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetEmailNewsletterContactsQuery, + GetEmailNewsletterContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetEmailNewsletterContactsQuery, + GetEmailNewsletterContactsQueryVariables + >(GetEmailNewsletterContactsDocument, options); +} +export type GetEmailNewsletterContactsQueryHookResult = ReturnType< + typeof useGetEmailNewsletterContactsQuery +>; +export type GetEmailNewsletterContactsLazyQueryHookResult = ReturnType< + typeof useGetEmailNewsletterContactsLazyQuery +>; +export type GetEmailNewsletterContactsQueryResult = Apollo.QueryResult< + GetEmailNewsletterContactsQuery, + GetEmailNewsletterContactsQueryVariables +>; diff --git a/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportPhysical/ExportPhysical.generated.ts b/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportPhysical/ExportPhysical.generated.ts index f3c734bb7..5d917e567 100644 --- a/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportPhysical/ExportPhysical.generated.ts +++ b/src/components/Dashboard/ThisWeek/NewsletterMenu/MenuItems/ExportPhysical/ExportPhysical.generated.ts @@ -7,23 +7,38 @@ export type CreateExportedContactsMutationVariables = Types.Exact<{ input: Types.ExportContactsInput; }>; - -export type CreateExportedContactsMutation = ( - { __typename?: 'Mutation' } - & Pick -); - +export type CreateExportedContactsMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'exportContacts' +>; export const CreateExportedContactsDocument = gql` - mutation CreateExportedContacts($input: ExportContactsInput!) { - exportContacts(input: $input) + mutation CreateExportedContacts($input: ExportContactsInput!) { + exportContacts(input: $input) + } +`; +export type CreateExportedContactsMutationFn = Apollo.MutationFunction< + CreateExportedContactsMutation, + CreateExportedContactsMutationVariables +>; +export function useCreateExportedContactsMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateExportedContactsMutation, + CreateExportedContactsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateExportedContactsMutation, + CreateExportedContactsMutationVariables + >(CreateExportedContactsDocument, options); } - `; -export type CreateExportedContactsMutationFn = Apollo.MutationFunction; -export function useCreateExportedContactsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateExportedContactsDocument, options); - } -export type CreateExportedContactsMutationHookResult = ReturnType; -export type CreateExportedContactsMutationResult = Apollo.MutationResult; -export type CreateExportedContactsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateExportedContactsMutationHookResult = ReturnType< + typeof useCreateExportedContactsMutation +>; +export type CreateExportedContactsMutationResult = + Apollo.MutationResult; +export type CreateExportedContactsMutationOptions = Apollo.BaseMutationOptions< + CreateExportedContactsMutation, + CreateExportedContactsMutationVariables +>; diff --git a/src/components/Dashboard/ThisWeek/NewsletterMenu/NewsletterMenu.generated.ts b/src/components/Dashboard/ThisWeek/NewsletterMenu/NewsletterMenu.generated.ts index b26c7f749..f0b8ae4e3 100644 --- a/src/components/Dashboard/ThisWeek/NewsletterMenu/NewsletterMenu.generated.ts +++ b/src/components/Dashboard/ThisWeek/NewsletterMenu/NewsletterMenu.generated.ts @@ -7,32 +7,52 @@ export type GetTaskAnalyticsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetTaskAnalyticsQuery = ( - { __typename?: 'Query' } - & { taskAnalytics: ( - { __typename?: 'TaskAnalytics' } - & Pick - ) } -); - +export type GetTaskAnalyticsQuery = { __typename?: 'Query' } & { + taskAnalytics: { __typename?: 'TaskAnalytics' } & Pick< + Types.TaskAnalytics, + 'lastElectronicNewsletterCompletedAt' | 'lastPhysicalNewsletterCompletedAt' + >; +}; export const GetTaskAnalyticsDocument = gql` - query GetTaskAnalytics($accountListId: ID!) { - taskAnalytics(accountListId: $accountListId) { - lastElectronicNewsletterCompletedAt - lastPhysicalNewsletterCompletedAt + query GetTaskAnalytics($accountListId: ID!) { + taskAnalytics(accountListId: $accountListId) { + lastElectronicNewsletterCompletedAt + lastPhysicalNewsletterCompletedAt + } } +`; +export function useGetTaskAnalyticsQuery( + baseOptions: Apollo.QueryHookOptions< + GetTaskAnalyticsQuery, + GetTaskAnalyticsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetTaskAnalyticsDocument, + options, + ); +} +export function useGetTaskAnalyticsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTaskAnalyticsQuery, + GetTaskAnalyticsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetTaskAnalyticsQuery, + GetTaskAnalyticsQueryVariables + >(GetTaskAnalyticsDocument, options); } - `; -export function useGetTaskAnalyticsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTaskAnalyticsDocument, options); - } -export function useGetTaskAnalyticsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTaskAnalyticsDocument, options); - } -export type GetTaskAnalyticsQueryHookResult = ReturnType; -export type GetTaskAnalyticsLazyQueryHookResult = ReturnType; -export type GetTaskAnalyticsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetTaskAnalyticsQueryHookResult = ReturnType< + typeof useGetTaskAnalyticsQuery +>; +export type GetTaskAnalyticsLazyQueryHookResult = ReturnType< + typeof useGetTaskAnalyticsLazyQuery +>; +export type GetTaskAnalyticsQueryResult = Apollo.QueryResult< + GetTaskAnalyticsQuery, + GetTaskAnalyticsQueryVariables +>; diff --git a/src/components/Dashboard/ThisWeek/WeeklyActivity/GetWeeklyActivity.generated.ts b/src/components/Dashboard/ThisWeek/WeeklyActivity/GetWeeklyActivity.generated.ts index 571a5dbbf..fa8af4ccb 100644 --- a/src/components/Dashboard/ThisWeek/WeeklyActivity/GetWeeklyActivity.generated.ts +++ b/src/components/Dashboard/ThisWeek/WeeklyActivity/GetWeeklyActivity.generated.ts @@ -9,79 +9,134 @@ export type GetWeeklyActivityQueryVariables = Types.Exact<{ endOfWeek: Types.Scalars['ISO8601DateTime']['input']; }>; - -export type GetWeeklyActivityQuery = ( - { __typename?: 'Query' } - & { completedCalls: ( - { __typename?: 'TaskConnection' } - & Pick - ), callsThatProducedAppointments: ( - { __typename?: 'TaskConnection' } - & Pick - ), completedMessages: ( - { __typename?: 'TaskConnection' } - & Pick - ), messagesThatProducedAppointments: ( - { __typename?: 'TaskConnection' } - & Pick - ), completedAppointments: ( - { __typename?: 'TaskConnection' } - & Pick - ), completedCorrespondence: ( - { __typename?: 'TaskConnection' } - & Pick - ) } -); - +export type GetWeeklyActivityQuery = { __typename?: 'Query' } & { + completedCalls: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; + callsThatProducedAppointments: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; + completedMessages: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; + messagesThatProducedAppointments: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; + completedAppointments: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; + completedCorrespondence: { __typename?: 'TaskConnection' } & Pick< + Types.TaskConnection, + 'totalCount' + >; +}; export const GetWeeklyActivityDocument = gql` - query GetWeeklyActivity($accountListId: ID!, $startOfWeek: ISO8601DateTime!, $endOfWeek: ISO8601DateTime!) { - completedCalls: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: CALL, result: [COMPLETED, DONE]} - ) { - totalCount - } - callsThatProducedAppointments: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: CALL, result: [COMPLETED, DONE], nextAction: APPOINTMENT} - ) { - totalCount - } - completedMessages: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: [EMAIL, FACEBOOK_MESSAGE, TEXT_MESSAGE], result: [COMPLETED, DONE]} - ) { - totalCount - } - messagesThatProducedAppointments: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: [EMAIL, FACEBOOK_MESSAGE, TEXT_MESSAGE], result: [COMPLETED, DONE], nextAction: APPOINTMENT} - ) { - totalCount - } - completedAppointments: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: APPOINTMENT, result: [COMPLETED, DONE]} + query GetWeeklyActivity( + $accountListId: ID! + $startOfWeek: ISO8601DateTime! + $endOfWeek: ISO8601DateTime! ) { - totalCount - } - completedCorrespondence: tasks( - accountListId: $accountListId - tasksFilter: {completedAt: {min: $startOfWeek, max: $endOfWeek}, activityType: [PRE_CALL_LETTER, REMINDER_LETTER, SUPPORT_LETTER, THANK], result: [COMPLETED, DONE]} - ) { - totalCount + completedCalls: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: CALL + result: [COMPLETED, DONE] + } + ) { + totalCount + } + callsThatProducedAppointments: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: CALL + result: [COMPLETED, DONE] + nextAction: APPOINTMENT + } + ) { + totalCount + } + completedMessages: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: [EMAIL, FACEBOOK_MESSAGE, TEXT_MESSAGE] + result: [COMPLETED, DONE] + } + ) { + totalCount + } + messagesThatProducedAppointments: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: [EMAIL, FACEBOOK_MESSAGE, TEXT_MESSAGE] + result: [COMPLETED, DONE] + nextAction: APPOINTMENT + } + ) { + totalCount + } + completedAppointments: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: APPOINTMENT + result: [COMPLETED, DONE] + } + ) { + totalCount + } + completedCorrespondence: tasks( + accountListId: $accountListId + tasksFilter: { + completedAt: { min: $startOfWeek, max: $endOfWeek } + activityType: [PRE_CALL_LETTER, REMINDER_LETTER, SUPPORT_LETTER, THANK] + result: [COMPLETED, DONE] + } + ) { + totalCount + } } +`; +export function useGetWeeklyActivityQuery( + baseOptions: Apollo.QueryHookOptions< + GetWeeklyActivityQuery, + GetWeeklyActivityQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetWeeklyActivityQuery, + GetWeeklyActivityQueryVariables + >(GetWeeklyActivityDocument, options); } - `; -export function useGetWeeklyActivityQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetWeeklyActivityDocument, options); - } -export function useGetWeeklyActivityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetWeeklyActivityDocument, options); - } -export type GetWeeklyActivityQueryHookResult = ReturnType; -export type GetWeeklyActivityLazyQueryHookResult = ReturnType; -export type GetWeeklyActivityQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetWeeklyActivityLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetWeeklyActivityQuery, + GetWeeklyActivityQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetWeeklyActivityQuery, + GetWeeklyActivityQueryVariables + >(GetWeeklyActivityDocument, options); +} +export type GetWeeklyActivityQueryHookResult = ReturnType< + typeof useGetWeeklyActivityQuery +>; +export type GetWeeklyActivityLazyQueryHookResult = ReturnType< + typeof useGetWeeklyActivityLazyQuery +>; +export type GetWeeklyActivityQueryResult = Apollo.QueryResult< + GetWeeklyActivityQuery, + GetWeeklyActivityQueryVariables +>; diff --git a/src/components/Dashboard/ThisWeek/WeeklyActivity/WeeklyReportModal/WeeklyReportModal.generated.ts b/src/components/Dashboard/ThisWeek/WeeklyActivity/WeeklyReportModal/WeeklyReportModal.generated.ts index 94ee6772a..55e4c155f 100644 --- a/src/components/Dashboard/ThisWeek/WeeklyActivity/WeeklyReportModal/WeeklyReportModal.generated.ts +++ b/src/components/Dashboard/ThisWeek/WeeklyActivity/WeeklyReportModal/WeeklyReportModal.generated.ts @@ -3,48 +3,53 @@ import * as Types from '../../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type WeeklyReportCoachingQuestionFragment = ( - { __typename?: 'CoachingQuestion' } - & Pick -); +export type WeeklyReportCoachingQuestionFragment = { + __typename?: 'CoachingQuestion'; +} & Pick< + Types.CoachingQuestion, + 'id' | 'position' | 'prompt' | 'required' | 'responseOptions' +>; export type AccountListOrganizationQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type AccountListOrganizationQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); +export type AccountListOrganizationQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'salaryOrganizationId' + >; +}; export type CurrentCoachingAnswerSetQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; organizationId: Types.Scalars['ID']['input']; }>; - -export type CurrentCoachingAnswerSetQuery = ( - { __typename?: 'Query' } - & { currentCoachingAnswerSet: ( - { __typename?: 'CoachingAnswerSet' } - & Pick - & { answers: Array<( - { __typename?: 'CoachingAnswer' } - & Pick - & { question: ( - { __typename?: 'CoachingQuestion' } - & Pick - ) } - )>, questions: Array<( - { __typename?: 'CoachingQuestion' } - & Pick - )> } - ) } -); +export type CurrentCoachingAnswerSetQuery = { __typename?: 'Query' } & { + currentCoachingAnswerSet: { __typename?: 'CoachingAnswerSet' } & Pick< + Types.CoachingAnswerSet, + 'id' | 'completedAt' + > & { + answers: Array< + { __typename?: 'CoachingAnswer' } & Pick< + Types.CoachingAnswer, + 'id' | 'response' + > & { + question: { __typename?: 'CoachingQuestion' } & Pick< + Types.CoachingQuestion, + 'id' + >; + } + >; + questions: Array< + { __typename?: 'CoachingQuestion' } & Pick< + Types.CoachingQuestion, + 'id' | 'position' | 'prompt' | 'required' | 'responseOptions' + > + >; + }; +}; export type SaveCoachingAnswerMutationVariables = Types.Exact<{ answerSetId: Types.Scalars['String']['input']; @@ -53,97 +58,171 @@ export type SaveCoachingAnswerMutationVariables = Types.Exact<{ questionId: Types.Scalars['String']['input']; }>; - -export type SaveCoachingAnswerMutation = ( - { __typename?: 'Mutation' } - & { saveCoachingAnswer: ( - { __typename?: 'CoachingAnswer' } - & Pick - & { question: ( - { __typename?: 'CoachingQuestion' } - & Pick - ) } - ) } -); +export type SaveCoachingAnswerMutation = { __typename?: 'Mutation' } & { + saveCoachingAnswer: { __typename?: 'CoachingAnswer' } & Pick< + Types.CoachingAnswer, + 'id' | 'response' + > & { + question: { __typename?: 'CoachingQuestion' } & Pick< + Types.CoachingQuestion, + 'id' | 'position' | 'prompt' | 'required' | 'responseOptions' + >; + }; +}; export const WeeklyReportCoachingQuestionFragmentDoc = gql` - fragment WeeklyReportCoachingQuestion on CoachingQuestion { - id - position - prompt - required - responseOptions -} - `; -export const AccountListOrganizationDocument = gql` - query AccountListOrganization($accountListId: ID!) { - accountList(id: $accountListId) { + fragment WeeklyReportCoachingQuestion on CoachingQuestion { id - salaryOrganizationId + position + prompt + required + responseOptions } +`; +export const AccountListOrganizationDocument = gql` + query AccountListOrganization($accountListId: ID!) { + accountList(id: $accountListId) { + id + salaryOrganizationId + } + } +`; +export function useAccountListOrganizationQuery( + baseOptions: Apollo.QueryHookOptions< + AccountListOrganizationQuery, + AccountListOrganizationQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + AccountListOrganizationQuery, + AccountListOrganizationQueryVariables + >(AccountListOrganizationDocument, options); } - `; -export function useAccountListOrganizationQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountListOrganizationDocument, options); - } -export function useAccountListOrganizationLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountListOrganizationDocument, options); - } -export type AccountListOrganizationQueryHookResult = ReturnType; -export type AccountListOrganizationLazyQueryHookResult = ReturnType; -export type AccountListOrganizationQueryResult = Apollo.QueryResult; +export function useAccountListOrganizationLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + AccountListOrganizationQuery, + AccountListOrganizationQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + AccountListOrganizationQuery, + AccountListOrganizationQueryVariables + >(AccountListOrganizationDocument, options); +} +export type AccountListOrganizationQueryHookResult = ReturnType< + typeof useAccountListOrganizationQuery +>; +export type AccountListOrganizationLazyQueryHookResult = ReturnType< + typeof useAccountListOrganizationLazyQuery +>; +export type AccountListOrganizationQueryResult = Apollo.QueryResult< + AccountListOrganizationQuery, + AccountListOrganizationQueryVariables +>; export const CurrentCoachingAnswerSetDocument = gql` - query CurrentCoachingAnswerSet($accountListId: ID!, $organizationId: ID!) { - currentCoachingAnswerSet( - accountListId: $accountListId - organizationId: $organizationId - ) { - id - answers { + query CurrentCoachingAnswerSet($accountListId: ID!, $organizationId: ID!) { + currentCoachingAnswerSet( + accountListId: $accountListId + organizationId: $organizationId + ) { id - response - question { + answers { id + response + question { + id + } + } + completedAt + questions { + ...WeeklyReportCoachingQuestion } - } - completedAt - questions { - ...WeeklyReportCoachingQuestion } } + ${WeeklyReportCoachingQuestionFragmentDoc} +`; +export function useCurrentCoachingAnswerSetQuery( + baseOptions: Apollo.QueryHookOptions< + CurrentCoachingAnswerSetQuery, + CurrentCoachingAnswerSetQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + CurrentCoachingAnswerSetQuery, + CurrentCoachingAnswerSetQueryVariables + >(CurrentCoachingAnswerSetDocument, options); } - ${WeeklyReportCoachingQuestionFragmentDoc}`; -export function useCurrentCoachingAnswerSetQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CurrentCoachingAnswerSetDocument, options); - } -export function useCurrentCoachingAnswerSetLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CurrentCoachingAnswerSetDocument, options); - } -export type CurrentCoachingAnswerSetQueryHookResult = ReturnType; -export type CurrentCoachingAnswerSetLazyQueryHookResult = ReturnType; -export type CurrentCoachingAnswerSetQueryResult = Apollo.QueryResult; +export function useCurrentCoachingAnswerSetLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + CurrentCoachingAnswerSetQuery, + CurrentCoachingAnswerSetQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + CurrentCoachingAnswerSetQuery, + CurrentCoachingAnswerSetQueryVariables + >(CurrentCoachingAnswerSetDocument, options); +} +export type CurrentCoachingAnswerSetQueryHookResult = ReturnType< + typeof useCurrentCoachingAnswerSetQuery +>; +export type CurrentCoachingAnswerSetLazyQueryHookResult = ReturnType< + typeof useCurrentCoachingAnswerSetLazyQuery +>; +export type CurrentCoachingAnswerSetQueryResult = Apollo.QueryResult< + CurrentCoachingAnswerSetQuery, + CurrentCoachingAnswerSetQueryVariables +>; export const SaveCoachingAnswerDocument = gql` - mutation SaveCoachingAnswer($answerSetId: String!, $answerId: String, $response: String!, $questionId: String!) { - saveCoachingAnswer( - input: {answerSetId: $answerSetId, answerId: $answerId, response: $response, questionId: $questionId} + mutation SaveCoachingAnswer( + $answerSetId: String! + $answerId: String + $response: String! + $questionId: String! ) { - id - response - question { - ...WeeklyReportCoachingQuestion + saveCoachingAnswer( + input: { + answerSetId: $answerSetId + answerId: $answerId + response: $response + questionId: $questionId + } + ) { + id + response + question { + ...WeeklyReportCoachingQuestion + } } } + ${WeeklyReportCoachingQuestionFragmentDoc} +`; +export type SaveCoachingAnswerMutationFn = Apollo.MutationFunction< + SaveCoachingAnswerMutation, + SaveCoachingAnswerMutationVariables +>; +export function useSaveCoachingAnswerMutation( + baseOptions?: Apollo.MutationHookOptions< + SaveCoachingAnswerMutation, + SaveCoachingAnswerMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SaveCoachingAnswerMutation, + SaveCoachingAnswerMutationVariables + >(SaveCoachingAnswerDocument, options); } - ${WeeklyReportCoachingQuestionFragmentDoc}`; -export type SaveCoachingAnswerMutationFn = Apollo.MutationFunction; -export function useSaveCoachingAnswerMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SaveCoachingAnswerDocument, options); - } -export type SaveCoachingAnswerMutationHookResult = ReturnType; -export type SaveCoachingAnswerMutationResult = Apollo.MutationResult; -export type SaveCoachingAnswerMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SaveCoachingAnswerMutationHookResult = ReturnType< + typeof useSaveCoachingAnswerMutation +>; +export type SaveCoachingAnswerMutationResult = + Apollo.MutationResult; +export type SaveCoachingAnswerMutationOptions = Apollo.BaseMutationOptions< + SaveCoachingAnswerMutation, + SaveCoachingAnswerMutationVariables +>; diff --git a/src/components/EditDonationModal/EditDonationModal.generated.ts b/src/components/EditDonationModal/EditDonationModal.generated.ts index d1778a057..7dada9114 100644 --- a/src/components/EditDonationModal/EditDonationModal.generated.ts +++ b/src/components/EditDonationModal/EditDonationModal.generated.ts @@ -3,233 +3,318 @@ import * as Types from '../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type EditDonationModalDonationFragment = ( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, appealAmount?: Types.Maybe<( - { __typename?: 'Money' } - & Pick - )>, donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - ), designationAccount: ( - { __typename?: 'DesignationAccount' } - & Pick - ) } -); +export type EditDonationModalDonationFragment = { + __typename?: 'Donation'; +} & Pick< + Types.Donation, + 'id' | 'donationDate' | 'memo' | 'motivation' | 'paymentMethod' | 'remoteId' +> & { + amount: { __typename?: 'Money' } & Pick; + appeal?: Types.Maybe<{ __typename?: 'Appeal' } & Pick>; + appealAmount?: Types.Maybe< + { __typename?: 'Money' } & Pick + >; + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array<{ __typename?: 'Contact' } & Pick>; + }; + }; + designationAccount: { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'name' + >; + }; export type GetDesignationAccountsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetDesignationAccountsQuery = ( - { __typename?: 'Query' } - & { designationAccounts: Array<( - { __typename?: 'DesignationAccountsGroup' } - & { designationAccounts: Array<( - { __typename?: 'DesignationAccountRest' } - & Pick - )> } - )> } -); +export type GetDesignationAccountsQuery = { __typename?: 'Query' } & { + designationAccounts: Array< + { __typename?: 'DesignationAccountsGroup' } & { + designationAccounts: Array< + { __typename?: 'DesignationAccountRest' } & Pick< + Types.DesignationAccountRest, + 'id' | 'name' | 'active' + > + >; + } + >; +}; export type EditDonationModalGetAppealsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; after?: Types.InputMaybe; }>; - -export type EditDonationModalGetAppealsQuery = ( - { __typename?: 'Query' } - & { appeals: ( - { __typename?: 'AppealConnection' } - & { nodes: Array<( - { __typename?: 'Appeal' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); +export type EditDonationModalGetAppealsQuery = { __typename?: 'Query' } & { + appeals: { __typename?: 'AppealConnection' } & { + nodes: Array<{ __typename?: 'Appeal' } & Pick>; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export type UpdateDonationMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.DonationUpdateInput; }>; - -export type UpdateDonationMutation = ( - { __typename?: 'Mutation' } - & { updateDonation?: Types.Maybe<( - { __typename?: 'DonationUpdateMutationPayload' } - & { donation: ( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, appealAmount?: Types.Maybe<( - { __typename?: 'Money' } - & Pick - )>, donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - ), designationAccount: ( - { __typename?: 'DesignationAccount' } - & Pick - ) } - ) } - )> } -); +export type UpdateDonationMutation = { __typename?: 'Mutation' } & { + updateDonation?: Types.Maybe< + { __typename?: 'DonationUpdateMutationPayload' } & { + donation: { __typename?: 'Donation' } & Pick< + Types.Donation, + | 'id' + | 'donationDate' + | 'memo' + | 'motivation' + | 'paymentMethod' + | 'remoteId' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'currency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + appealAmount?: Types.Maybe< + { __typename?: 'Money' } & Pick + >; + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + }; + designationAccount: { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'name' + >; + }; + } + >; +}; export type DeleteDonationMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; id: Types.Scalars['ID']['input']; }>; - -export type DeleteDonationMutation = ( - { __typename?: 'Mutation' } - & { deleteDonation?: Types.Maybe<( - { __typename?: 'DonationDeleteMutationPayload' } - & Pick - )> } -); +export type DeleteDonationMutation = { __typename?: 'Mutation' } & { + deleteDonation?: Types.Maybe< + { __typename?: 'DonationDeleteMutationPayload' } & Pick< + Types.DonationDeleteMutationPayload, + 'id' + > + >; +}; export const EditDonationModalDonationFragmentDoc = gql` - fragment EditDonationModalDonation on Donation { - id - amount { - amount - currency - } - appeal { - id - } - appealAmount { - amount - } - donationDate - donorAccount { + fragment EditDonationModalDonation on Donation { id - contacts(first: 25) { - nodes { - id - } + amount { + amount + currency } - displayName - } - designationAccount { - id - name - } - memo - motivation - paymentMethod - remoteId -} - `; -export const GetDesignationAccountsDocument = gql` - query GetDesignationAccounts($accountListId: ID!) { - designationAccounts(accountListId: $accountListId) { - designationAccounts { + appeal { id - name - active } - } -} - `; -export function useGetDesignationAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDesignationAccountsDocument, options); - } -export function useGetDesignationAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDesignationAccountsDocument, options); + appealAmount { + amount + } + donationDate + donorAccount { + id + contacts(first: 25) { + nodes { + id } -export type GetDesignationAccountsQueryHookResult = ReturnType; -export type GetDesignationAccountsLazyQueryHookResult = ReturnType; -export type GetDesignationAccountsQueryResult = Apollo.QueryResult; -export const EditDonationModalGetAppealsDocument = gql` - query EditDonationModalGetAppeals($accountListId: ID!, $after: String) { - appeals(accountListId: $accountListId, first: 50, after: $after) { - nodes { + } + displayName + } + designationAccount { id name } - pageInfo { - endCursor - hasNextPage + memo + motivation + paymentMethod + remoteId + } +`; +export const GetDesignationAccountsDocument = gql` + query GetDesignationAccounts($accountListId: ID!) { + designationAccounts(accountListId: $accountListId) { + designationAccounts { + id + name + active + } } } +`; +export function useGetDesignationAccountsQuery( + baseOptions: Apollo.QueryHookOptions< + GetDesignationAccountsQuery, + GetDesignationAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetDesignationAccountsQuery, + GetDesignationAccountsQueryVariables + >(GetDesignationAccountsDocument, options); +} +export function useGetDesignationAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDesignationAccountsQuery, + GetDesignationAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDesignationAccountsQuery, + GetDesignationAccountsQueryVariables + >(GetDesignationAccountsDocument, options); } - `; -export function useEditDonationModalGetAppealsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(EditDonationModalGetAppealsDocument, options); +export type GetDesignationAccountsQueryHookResult = ReturnType< + typeof useGetDesignationAccountsQuery +>; +export type GetDesignationAccountsLazyQueryHookResult = ReturnType< + typeof useGetDesignationAccountsLazyQuery +>; +export type GetDesignationAccountsQueryResult = Apollo.QueryResult< + GetDesignationAccountsQuery, + GetDesignationAccountsQueryVariables +>; +export const EditDonationModalGetAppealsDocument = gql` + query EditDonationModalGetAppeals($accountListId: ID!, $after: String) { + appeals(accountListId: $accountListId, first: 50, after: $after) { + nodes { + id + name + } + pageInfo { + endCursor + hasNextPage } -export function useEditDonationModalGetAppealsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(EditDonationModalGetAppealsDocument, options); - } -export type EditDonationModalGetAppealsQueryHookResult = ReturnType; -export type EditDonationModalGetAppealsLazyQueryHookResult = ReturnType; -export type EditDonationModalGetAppealsQueryResult = Apollo.QueryResult; -export const UpdateDonationDocument = gql` - mutation UpdateDonation($accountListId: ID!, $attributes: DonationUpdateInput!) { - updateDonation(input: {accountListId: $accountListId, attributes: $attributes}) { - donation { - ...EditDonationModalDonation } } +`; +export function useEditDonationModalGetAppealsQuery( + baseOptions: Apollo.QueryHookOptions< + EditDonationModalGetAppealsQuery, + EditDonationModalGetAppealsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + EditDonationModalGetAppealsQuery, + EditDonationModalGetAppealsQueryVariables + >(EditDonationModalGetAppealsDocument, options); +} +export function useEditDonationModalGetAppealsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + EditDonationModalGetAppealsQuery, + EditDonationModalGetAppealsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + EditDonationModalGetAppealsQuery, + EditDonationModalGetAppealsQueryVariables + >(EditDonationModalGetAppealsDocument, options); } - ${EditDonationModalDonationFragmentDoc}`; -export type UpdateDonationMutationFn = Apollo.MutationFunction; -export function useUpdateDonationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateDonationDocument, options); +export type EditDonationModalGetAppealsQueryHookResult = ReturnType< + typeof useEditDonationModalGetAppealsQuery +>; +export type EditDonationModalGetAppealsLazyQueryHookResult = ReturnType< + typeof useEditDonationModalGetAppealsLazyQuery +>; +export type EditDonationModalGetAppealsQueryResult = Apollo.QueryResult< + EditDonationModalGetAppealsQuery, + EditDonationModalGetAppealsQueryVariables +>; +export const UpdateDonationDocument = gql` + mutation UpdateDonation( + $accountListId: ID! + $attributes: DonationUpdateInput! + ) { + updateDonation( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + donation { + ...EditDonationModalDonation } -export type UpdateDonationMutationHookResult = ReturnType; -export type UpdateDonationMutationResult = Apollo.MutationResult; -export type UpdateDonationMutationOptions = Apollo.BaseMutationOptions; + } + } + ${EditDonationModalDonationFragmentDoc} +`; +export type UpdateDonationMutationFn = Apollo.MutationFunction< + UpdateDonationMutation, + UpdateDonationMutationVariables +>; +export function useUpdateDonationMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateDonationMutation, + UpdateDonationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateDonationMutation, + UpdateDonationMutationVariables + >(UpdateDonationDocument, options); +} +export type UpdateDonationMutationHookResult = ReturnType< + typeof useUpdateDonationMutation +>; +export type UpdateDonationMutationResult = + Apollo.MutationResult; +export type UpdateDonationMutationOptions = Apollo.BaseMutationOptions< + UpdateDonationMutation, + UpdateDonationMutationVariables +>; export const DeleteDonationDocument = gql` - mutation DeleteDonation($accountListId: ID!, $id: ID!) { - deleteDonation(input: {accountListId: $accountListId, id: $id}) { - id + mutation DeleteDonation($accountListId: ID!, $id: ID!) { + deleteDonation(input: { accountListId: $accountListId, id: $id }) { + id + } } +`; +export type DeleteDonationMutationFn = Apollo.MutationFunction< + DeleteDonationMutation, + DeleteDonationMutationVariables +>; +export function useDeleteDonationMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteDonationMutation, + DeleteDonationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteDonationMutation, + DeleteDonationMutationVariables + >(DeleteDonationDocument, options); } - `; -export type DeleteDonationMutationFn = Apollo.MutationFunction; -export function useDeleteDonationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteDonationDocument, options); - } -export type DeleteDonationMutationHookResult = ReturnType; -export type DeleteDonationMutationResult = Apollo.MutationResult; -export type DeleteDonationMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteDonationMutationHookResult = ReturnType< + typeof useDeleteDonationMutation +>; +export type DeleteDonationMutationResult = + Apollo.MutationResult; +export type DeleteDonationMutationOptions = Apollo.BaseMutationOptions< + DeleteDonationMutation, + DeleteDonationMutationVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/GetTopBar.generated.ts b/src/components/Layouts/Primary/TopBar/GetTopBar.generated.ts index 09a62fa01..df7718286 100644 --- a/src/components/Layouts/Primary/TopBar/GetTopBar.generated.ts +++ b/src/components/Layouts/Primary/TopBar/GetTopBar.generated.ts @@ -3,70 +3,94 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetTopBarQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetTopBarQuery = ( - { __typename?: 'Query' } - & { accountLists: ( - { __typename?: 'AccountListConnection' } - & { nodes: Array<( - { __typename?: 'AccountList' } - & Pick - )> } - ), user: ( - { __typename?: 'User' } - & Pick - & { keyAccounts: Array<( - { __typename?: 'KeyAccount' } - & Pick - )>, administrativeOrganizations: ( - { __typename?: 'OrganizationConnection' } - & { nodes: Array<( - { __typename?: 'Organization' } - & Pick - )> } - ) } - ) } -); +export type GetTopBarQueryVariables = Types.Exact<{ [key: string]: never }>; +export type GetTopBarQuery = { __typename?: 'Query' } & { + accountLists: { __typename?: 'AccountListConnection' } & { + nodes: Array< + { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' | 'salaryOrganizationId' + > + >; + }; + user: { __typename?: 'User' } & Pick< + Types.User, + | 'id' + | 'firstName' + | 'lastName' + | 'admin' + | 'developer' + | 'defaultAccountList' + > & { + keyAccounts: Array< + { __typename?: 'KeyAccount' } & Pick + >; + administrativeOrganizations: { __typename?: 'OrganizationConnection' } & { + nodes: Array< + { __typename?: 'Organization' } & Pick + >; + }; + }; +}; export const GetTopBarDocument = gql` - query GetTopBar { - accountLists(first: 50) { - nodes { - id - name - salaryOrganizationId + query GetTopBar { + accountLists(first: 50) { + nodes { + id + name + salaryOrganizationId + } } - } - user { - id - firstName - lastName - admin - developer - defaultAccountList - keyAccounts { + user { id - email - } - administrativeOrganizations(first: 25) { - nodes { + firstName + lastName + admin + developer + defaultAccountList + keyAccounts { id + email + } + administrativeOrganizations(first: 25) { + nodes { + id + } } } } +`; +export function useGetTopBarQuery( + baseOptions?: Apollo.QueryHookOptions< + GetTopBarQuery, + GetTopBarQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetTopBarDocument, + options, + ); +} +export function useGetTopBarLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTopBarQuery, + GetTopBarQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetTopBarDocument, + options, + ); } - `; -export function useGetTopBarQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTopBarDocument, options); - } -export function useGetTopBarLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTopBarDocument, options); - } export type GetTopBarQueryHookResult = ReturnType; -export type GetTopBarLazyQueryHookResult = ReturnType; -export type GetTopBarQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetTopBarLazyQueryHookResult = ReturnType< + typeof useGetTopBarLazyQuery +>; +export type GetTopBarQueryResult = Apollo.QueryResult< + GetTopBarQuery, + GetTopBarQueryVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/AddDonation/AddDonation.generated.ts b/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/AddDonation/AddDonation.generated.ts index 4951a1303..c7df5fbbd 100644 --- a/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/AddDonation/AddDonation.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/AddDonation/AddDonation.generated.ts @@ -7,75 +7,115 @@ export type GetDonationModalQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetDonationModalQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { appeals?: Types.Maybe - )>> } - ) } -); +export type GetDonationModalQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'currency' + > & { + appeals?: Types.Maybe< + Array< + { __typename?: 'Appeal' } & Pick< + Types.Appeal, + 'active' | 'name' | 'id' + > + > + >; + }; +}; export type AddDonationMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.DonationCreateInput; }>; - -export type AddDonationMutation = ( - { __typename?: 'Mutation' } - & { createDonation?: Types.Maybe<( - { __typename?: 'DonationCreateMutationPayload' } - & { donation: ( - { __typename?: 'Donation' } - & Pick - ) } - )> } -); - +export type AddDonationMutation = { __typename?: 'Mutation' } & { + createDonation?: Types.Maybe< + { __typename?: 'DonationCreateMutationPayload' } & { + donation: { __typename?: 'Donation' } & Pick; + } + >; +}; export const GetDonationModalDocument = gql` - query GetDonationModal($accountListId: ID!) { - accountList(id: $accountListId) { - id - currency - appeals { - active - name + query GetDonationModal($accountListId: ID!) { + accountList(id: $accountListId) { id + currency + appeals { + active + name + id + } } } +`; +export function useGetDonationModalQuery( + baseOptions: Apollo.QueryHookOptions< + GetDonationModalQuery, + GetDonationModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetDonationModalDocument, + options, + ); } - `; -export function useGetDonationModalQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDonationModalDocument, options); - } -export function useGetDonationModalLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDonationModalDocument, options); - } -export type GetDonationModalQueryHookResult = ReturnType; -export type GetDonationModalLazyQueryHookResult = ReturnType; -export type GetDonationModalQueryResult = Apollo.QueryResult; +export function useGetDonationModalLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDonationModalQuery, + GetDonationModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDonationModalQuery, + GetDonationModalQueryVariables + >(GetDonationModalDocument, options); +} +export type GetDonationModalQueryHookResult = ReturnType< + typeof useGetDonationModalQuery +>; +export type GetDonationModalLazyQueryHookResult = ReturnType< + typeof useGetDonationModalLazyQuery +>; +export type GetDonationModalQueryResult = Apollo.QueryResult< + GetDonationModalQuery, + GetDonationModalQueryVariables +>; export const AddDonationDocument = gql` - mutation AddDonation($accountListId: ID!, $attributes: DonationCreateInput!) { - createDonation(input: {accountListId: $accountListId, attributes: $attributes}) { - donation { - id + mutation AddDonation($accountListId: ID!, $attributes: DonationCreateInput!) { + createDonation( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + donation { + id + } } } +`; +export type AddDonationMutationFn = Apollo.MutationFunction< + AddDonationMutation, + AddDonationMutationVariables +>; +export function useAddDonationMutation( + baseOptions?: Apollo.MutationHookOptions< + AddDonationMutation, + AddDonationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + AddDonationDocument, + options, + ); } - `; -export type AddDonationMutationFn = Apollo.MutationFunction; -export function useAddDonationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AddDonationDocument, options); - } -export type AddDonationMutationHookResult = ReturnType; -export type AddDonationMutationResult = Apollo.MutationResult; -export type AddDonationMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AddDonationMutationHookResult = ReturnType< + typeof useAddDonationMutation +>; +export type AddDonationMutationResult = + Apollo.MutationResult; +export type AddDonationMutationOptions = Apollo.BaseMutationOptions< + AddDonationMutation, + AddDonationMutationVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/CreateContact/CreateContact.generated.ts b/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/CreateContact/CreateContact.generated.ts index 8dda2d9a2..890891b47 100644 --- a/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/CreateContact/CreateContact.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/AddMenu/Items/CreateContact/CreateContact.generated.ts @@ -8,33 +8,50 @@ export type CreateContactMutationVariables = Types.Exact<{ attributes: Types.ContactCreateInput; }>; - -export type CreateContactMutation = ( - { __typename?: 'Mutation' } - & { createContact?: Types.Maybe<( - { __typename?: 'ContactCreateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type CreateContactMutation = { __typename?: 'Mutation' } & { + createContact?: Types.Maybe< + { __typename?: 'ContactCreateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick; + } + >; +}; export const CreateContactDocument = gql` - mutation CreateContact($accountListId: ID!, $attributes: ContactCreateInput!) { - createContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id + mutation CreateContact( + $accountListId: ID! + $attributes: ContactCreateInput! + ) { + createContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { + id + } } } +`; +export type CreateContactMutationFn = Apollo.MutationFunction< + CreateContactMutation, + CreateContactMutationVariables +>; +export function useCreateContactMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateContactMutation, + CreateContactMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateContactMutation, + CreateContactMutationVariables + >(CreateContactDocument, options); } - `; -export type CreateContactMutationFn = Apollo.MutationFunction; -export function useCreateContactMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateContactDocument, options); - } -export type CreateContactMutationHookResult = ReturnType; -export type CreateContactMutationResult = Apollo.MutationResult; -export type CreateContactMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateContactMutationHookResult = ReturnType< + typeof useCreateContactMutation +>; +export type CreateContactMutationResult = + Apollo.MutationResult; +export type CreateContactMutationOptions = Apollo.BaseMutationOptions< + CreateContactMutation, + CreateContactMutationVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/Items/NavMenu/GetToolNotifcations.generated.ts b/src/components/Layouts/Primary/TopBar/Items/NavMenu/GetToolNotifcations.generated.ts index a1df41ae5..7aab4573e 100644 --- a/src/components/Layouts/Primary/TopBar/Items/NavMenu/GetToolNotifcations.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/NavMenu/GetToolNotifcations.generated.ts @@ -7,82 +7,125 @@ export type GetToolNotificationsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetToolNotificationsQuery = ( - { __typename?: 'Query' } - & { fixCommitmentInfo: ( - { __typename?: 'ContactConnection' } - & Pick - ), fixMailingAddresses: ( - { __typename?: 'ContactConnection' } - & Pick - ), fixSendNewsletter: ( - { __typename?: 'ContactConnection' } - & Pick - ), fixEmailAddresses: ( - { __typename?: 'PersonConnection' } - & Pick - ), fixPhoneNumbers: ( - { __typename?: 'PersonConnection' } - & Pick - ), mergeContacts: ( - { __typename?: 'ContactDuplicateConnection' } - & Pick - ), mergePeople: ( - { __typename?: 'PersonDuplicateConnection' } - & Pick - ) } -); - +export type GetToolNotificationsQuery = { __typename?: 'Query' } & { + fixCommitmentInfo: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + >; + fixMailingAddresses: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + >; + fixSendNewsletter: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + >; + fixEmailAddresses: { __typename?: 'PersonConnection' } & Pick< + Types.PersonConnection, + 'totalCount' + >; + fixPhoneNumbers: { __typename?: 'PersonConnection' } & Pick< + Types.PersonConnection, + 'totalCount' + >; + mergeContacts: { __typename?: 'ContactDuplicateConnection' } & Pick< + Types.ContactDuplicateConnection, + 'totalCount' + >; + mergePeople: { __typename?: 'PersonDuplicateConnection' } & Pick< + Types.PersonDuplicateConnection, + 'totalCount' + >; +}; export const GetToolNotificationsDocument = gql` - query GetToolNotifications($accountListId: ID!) { - fixCommitmentInfo: contacts( - accountListId: $accountListId - contactsFilter: {statusValid: false} - ) { - totalCount - } - fixMailingAddresses: contacts( - accountListId: $accountListId - contactsFilter: {addressValid: false} - ) { - totalCount - } - fixSendNewsletter: contacts( - accountListId: $accountListId - contactsFilter: {newsletter: NO_VALUE, status: [PARTNER_FINANCIAL, PARTNER_SPECIAL, PARTNER_PRAY]} - ) { - totalCount - } - fixEmailAddresses: people( - accountListId: $accountListId - peopleFilter: {emailAddressValid: false, deceased: false, contactStatus: [ACTIVE]} - ) { - totalCount - } - fixPhoneNumbers: people( - accountListId: $accountListId - peopleFilter: {phoneNumberValid: false, deceased: false, contactStatus: [ACTIVE]} - ) { - totalCount - } - mergeContacts: contactDuplicates(accountListId: $accountListId, ignore: false) { - totalCount - } - mergePeople: personDuplicates(accountListId: $accountListId, ignore: false) { - totalCount + query GetToolNotifications($accountListId: ID!) { + fixCommitmentInfo: contacts( + accountListId: $accountListId + contactsFilter: { statusValid: false } + ) { + totalCount + } + fixMailingAddresses: contacts( + accountListId: $accountListId + contactsFilter: { addressValid: false } + ) { + totalCount + } + fixSendNewsletter: contacts( + accountListId: $accountListId + contactsFilter: { + newsletter: NO_VALUE + status: [PARTNER_FINANCIAL, PARTNER_SPECIAL, PARTNER_PRAY] + } + ) { + totalCount + } + fixEmailAddresses: people( + accountListId: $accountListId + peopleFilter: { + emailAddressValid: false + deceased: false + contactStatus: [ACTIVE] + } + ) { + totalCount + } + fixPhoneNumbers: people( + accountListId: $accountListId + peopleFilter: { + phoneNumberValid: false + deceased: false + contactStatus: [ACTIVE] + } + ) { + totalCount + } + mergeContacts: contactDuplicates( + accountListId: $accountListId + ignore: false + ) { + totalCount + } + mergePeople: personDuplicates( + accountListId: $accountListId + ignore: false + ) { + totalCount + } } +`; +export function useGetToolNotificationsQuery( + baseOptions: Apollo.QueryHookOptions< + GetToolNotificationsQuery, + GetToolNotificationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetToolNotificationsQuery, + GetToolNotificationsQueryVariables + >(GetToolNotificationsDocument, options); } - `; -export function useGetToolNotificationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetToolNotificationsDocument, options); - } -export function useGetToolNotificationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetToolNotificationsDocument, options); - } -export type GetToolNotificationsQueryHookResult = ReturnType; -export type GetToolNotificationsLazyQueryHookResult = ReturnType; -export type GetToolNotificationsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetToolNotificationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetToolNotificationsQuery, + GetToolNotificationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetToolNotificationsQuery, + GetToolNotificationsQueryVariables + >(GetToolNotificationsDocument, options); +} +export type GetToolNotificationsQueryHookResult = ReturnType< + typeof useGetToolNotificationsQuery +>; +export type GetToolNotificationsLazyQueryHookResult = ReturnType< + typeof useGetToolNotificationsLazyQuery +>; +export type GetToolNotificationsQueryResult = Apollo.QueryResult< + GetToolNotificationsQuery, + GetToolNotificationsQueryVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/AcknowledgeAllUserNotifications.generated.ts b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/AcknowledgeAllUserNotifications.generated.ts index d2f81a23f..59b79ca2f 100644 --- a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/AcknowledgeAllUserNotifications.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/AcknowledgeAllUserNotifications.generated.ts @@ -7,28 +7,47 @@ export type AcknowledgeAllUserNotificationsMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type AcknowledgeAllUserNotificationsMutation = ( - { __typename?: 'Mutation' } - & { acknowledgeAllUserNotifications?: Types.Maybe<( - { __typename?: 'AcknowledgeAllUserNotificationsMutationPayload' } - & Pick - )> } -); - +export type AcknowledgeAllUserNotificationsMutation = { + __typename?: 'Mutation'; +} & { + acknowledgeAllUserNotifications?: Types.Maybe< + { __typename?: 'AcknowledgeAllUserNotificationsMutationPayload' } & Pick< + Types.AcknowledgeAllUserNotificationsMutationPayload, + 'notificationIds' + > + >; +}; export const AcknowledgeAllUserNotificationsDocument = gql` - mutation AcknowledgeAllUserNotifications($accountListId: ID!) { - acknowledgeAllUserNotifications(input: {accountListId: $accountListId}) { - notificationIds + mutation AcknowledgeAllUserNotifications($accountListId: ID!) { + acknowledgeAllUserNotifications(input: { accountListId: $accountListId }) { + notificationIds + } } +`; +export type AcknowledgeAllUserNotificationsMutationFn = Apollo.MutationFunction< + AcknowledgeAllUserNotificationsMutation, + AcknowledgeAllUserNotificationsMutationVariables +>; +export function useAcknowledgeAllUserNotificationsMutation( + baseOptions?: Apollo.MutationHookOptions< + AcknowledgeAllUserNotificationsMutation, + AcknowledgeAllUserNotificationsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + AcknowledgeAllUserNotificationsMutation, + AcknowledgeAllUserNotificationsMutationVariables + >(AcknowledgeAllUserNotificationsDocument, options); } - `; -export type AcknowledgeAllUserNotificationsMutationFn = Apollo.MutationFunction; -export function useAcknowledgeAllUserNotificationsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AcknowledgeAllUserNotificationsDocument, options); - } -export type AcknowledgeAllUserNotificationsMutationHookResult = ReturnType; -export type AcknowledgeAllUserNotificationsMutationResult = Apollo.MutationResult; -export type AcknowledgeAllUserNotificationsMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AcknowledgeAllUserNotificationsMutationHookResult = ReturnType< + typeof useAcknowledgeAllUserNotificationsMutation +>; +export type AcknowledgeAllUserNotificationsMutationResult = + Apollo.MutationResult; +export type AcknowledgeAllUserNotificationsMutationOptions = + Apollo.BaseMutationOptions< + AcknowledgeAllUserNotificationsMutation, + AcknowledgeAllUserNotificationsMutationVariables + >; diff --git a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/GetNotificationsQuery.generated.ts b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/GetNotificationsQuery.generated.ts index c776fe4d0..bd2d04423 100644 --- a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/GetNotificationsQuery.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/GetNotificationsQuery.generated.ts @@ -8,84 +8,112 @@ export type GetNotificationsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type GetNotificationsQuery = ( - { __typename?: 'Query' } - & { userNotifications: ( - { __typename?: 'NotificationConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'UserNotification' } - & Pick - & { notification: ( - { __typename?: 'Notification' } - & Pick - & { contact: ( - { __typename?: 'Contact' } - & Pick - ), donation?: Types.Maybe<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ) } - )>, notificationType: ( - { __typename?: 'NotificationType' } - & Pick - ) } - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - +export type GetNotificationsQuery = { __typename?: 'Query' } & { + userNotifications: { __typename?: 'NotificationConnection' } & Pick< + Types.NotificationConnection, + 'unreadCount' + > & { + nodes: Array< + { __typename?: 'UserNotification' } & Pick< + Types.UserNotification, + 'id' | 'read' + > & { + notification: { __typename?: 'Notification' } & Pick< + Types.Notification, + 'occurredAt' + > & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' + >; + donation?: Types.Maybe< + { __typename?: 'Donation' } & Pick & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'currency' | 'conversionDate' + >; + } + >; + notificationType: { __typename?: 'NotificationType' } & Pick< + Types.NotificationType, + 'id' | 'type' | 'descriptionTemplate' + >; + }; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export const GetNotificationsDocument = gql` - query GetNotifications($accountListId: ID!, $after: String) { - userNotifications(accountListId: $accountListId, after: $after, first: 20) { - nodes { - id - read - notification { - occurredAt - contact { - id - name - } - donation { - id - amount { - amount - currency - conversionDate + query GetNotifications($accountListId: ID!, $after: String) { + userNotifications(accountListId: $accountListId, after: $after, first: 20) { + nodes { + id + read + notification { + occurredAt + contact { + id + name + } + donation { + id + amount { + amount + currency + conversionDate + } + } + notificationType { + id + type + descriptionTemplate } - } - notificationType { - id - type - descriptionTemplate } } + pageInfo { + endCursor + hasNextPage + } + unreadCount } - pageInfo { - endCursor - hasNextPage - } - unreadCount } +`; +export function useGetNotificationsQuery( + baseOptions: Apollo.QueryHookOptions< + GetNotificationsQuery, + GetNotificationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetNotificationsDocument, + options, + ); } - `; -export function useGetNotificationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetNotificationsDocument, options); - } -export function useGetNotificationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetNotificationsDocument, options); - } -export type GetNotificationsQueryHookResult = ReturnType; -export type GetNotificationsLazyQueryHookResult = ReturnType; -export type GetNotificationsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetNotificationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetNotificationsQuery, + GetNotificationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetNotificationsQuery, + GetNotificationsQueryVariables + >(GetNotificationsDocument, options); +} +export type GetNotificationsQueryHookResult = ReturnType< + typeof useGetNotificationsQuery +>; +export type GetNotificationsLazyQueryHookResult = ReturnType< + typeof useGetNotificationsLazyQuery +>; +export type GetNotificationsQueryResult = Apollo.QueryResult< + GetNotificationsQuery, + GetNotificationsQueryVariables +>; diff --git a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/Item/AcknowledgeUserNotification.generated.ts b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/Item/AcknowledgeUserNotification.generated.ts index 704119de0..d9e201509 100644 --- a/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/Item/AcknowledgeUserNotification.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/NotificationMenu/Item/AcknowledgeUserNotification.generated.ts @@ -7,34 +7,52 @@ export type AcknowledgeUserNotificationMutationVariables = Types.Exact<{ notificationId: Types.Scalars['ID']['input']; }>; - -export type AcknowledgeUserNotificationMutation = ( - { __typename?: 'Mutation' } - & { acknowledgeUserNotification?: Types.Maybe<( - { __typename?: 'AcknowledgeUserNotificationMutationPayload' } - & { notification: ( - { __typename?: 'UserNotification' } - & Pick - ) } - )> } -); - +export type AcknowledgeUserNotificationMutation = { + __typename?: 'Mutation'; +} & { + acknowledgeUserNotification?: Types.Maybe< + { __typename?: 'AcknowledgeUserNotificationMutationPayload' } & { + notification: { __typename?: 'UserNotification' } & Pick< + Types.UserNotification, + 'id' | 'read' + >; + } + >; +}; export const AcknowledgeUserNotificationDocument = gql` - mutation AcknowledgeUserNotification($notificationId: ID!) { - acknowledgeUserNotification(input: {notificationId: $notificationId}) { - notification { - id - read + mutation AcknowledgeUserNotification($notificationId: ID!) { + acknowledgeUserNotification(input: { notificationId: $notificationId }) { + notification { + id + read + } } } +`; +export type AcknowledgeUserNotificationMutationFn = Apollo.MutationFunction< + AcknowledgeUserNotificationMutation, + AcknowledgeUserNotificationMutationVariables +>; +export function useAcknowledgeUserNotificationMutation( + baseOptions?: Apollo.MutationHookOptions< + AcknowledgeUserNotificationMutation, + AcknowledgeUserNotificationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + AcknowledgeUserNotificationMutation, + AcknowledgeUserNotificationMutationVariables + >(AcknowledgeUserNotificationDocument, options); } - `; -export type AcknowledgeUserNotificationMutationFn = Apollo.MutationFunction; -export function useAcknowledgeUserNotificationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AcknowledgeUserNotificationDocument, options); - } -export type AcknowledgeUserNotificationMutationHookResult = ReturnType; -export type AcknowledgeUserNotificationMutationResult = Apollo.MutationResult; -export type AcknowledgeUserNotificationMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AcknowledgeUserNotificationMutationHookResult = ReturnType< + typeof useAcknowledgeUserNotificationMutation +>; +export type AcknowledgeUserNotificationMutationResult = + Apollo.MutationResult; +export type AcknowledgeUserNotificationMutationOptions = + Apollo.BaseMutationOptions< + AcknowledgeUserNotificationMutation, + AcknowledgeUserNotificationMutationVariables + >; diff --git a/src/components/Layouts/Primary/TopBar/Items/SearchMenu/SearchMenu.generated.ts b/src/components/Layouts/Primary/TopBar/Items/SearchMenu/SearchMenu.generated.ts index 2d6043f47..47ecf14db 100644 --- a/src/components/Layouts/Primary/TopBar/Items/SearchMenu/SearchMenu.generated.ts +++ b/src/components/Layouts/Primary/TopBar/Items/SearchMenu/SearchMenu.generated.ts @@ -8,44 +8,70 @@ export type GetSearchMenuContactsQueryVariables = Types.Exact<{ contactsFilter?: Types.InputMaybe; }>; - -export type GetSearchMenuContactsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetSearchMenuContactsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & Pick< + Types.ContactConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' + > + >; + }; +}; export const GetSearchMenuContactsDocument = gql` - query GetSearchMenuContacts($accountListId: ID!, $contactsFilter: ContactFilterSetInput) { - contacts( - accountListId: $accountListId - contactsFilter: $contactsFilter - first: 5 + query GetSearchMenuContacts( + $accountListId: ID! + $contactsFilter: ContactFilterSetInput ) { - nodes { - id - name - status + contacts( + accountListId: $accountListId + contactsFilter: $contactsFilter + first: 5 + ) { + nodes { + id + name + status + } + totalCount } - totalCount } +`; +export function useGetSearchMenuContactsQuery( + baseOptions: Apollo.QueryHookOptions< + GetSearchMenuContactsQuery, + GetSearchMenuContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetSearchMenuContactsQuery, + GetSearchMenuContactsQueryVariables + >(GetSearchMenuContactsDocument, options); } - `; -export function useGetSearchMenuContactsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetSearchMenuContactsDocument, options); - } -export function useGetSearchMenuContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetSearchMenuContactsDocument, options); - } -export type GetSearchMenuContactsQueryHookResult = ReturnType; -export type GetSearchMenuContactsLazyQueryHookResult = ReturnType; -export type GetSearchMenuContactsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetSearchMenuContactsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetSearchMenuContactsQuery, + GetSearchMenuContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetSearchMenuContactsQuery, + GetSearchMenuContactsQueryVariables + >(GetSearchMenuContactsDocument, options); +} +export type GetSearchMenuContactsQueryHookResult = ReturnType< + typeof useGetSearchMenuContactsQuery +>; +export type GetSearchMenuContactsLazyQueryHookResult = ReturnType< + typeof useGetSearchMenuContactsLazyQuery +>; +export type GetSearchMenuContactsQueryResult = Apollo.QueryResult< + GetSearchMenuContactsQuery, + GetSearchMenuContactsQueryVariables +>; diff --git a/src/components/Reports/DesignationAccountsReport/GetDesignationAccounts.generated.ts b/src/components/Reports/DesignationAccountsReport/GetDesignationAccounts.generated.ts index 245e4c3e9..3303cb5bc 100644 --- a/src/components/Reports/DesignationAccountsReport/GetDesignationAccounts.generated.ts +++ b/src/components/Reports/DesignationAccountsReport/GetDesignationAccounts.generated.ts @@ -7,44 +7,75 @@ export type DesignationAccountsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type DesignationAccountsQuery = ( - { __typename?: 'Query' } - & { designationAccounts: Array<( - { __typename?: 'DesignationAccountsGroup' } - & Pick - & { designationAccounts: Array<( - { __typename?: 'DesignationAccountRest' } - & Pick - )> } - )> } -); - +export type DesignationAccountsQuery = { __typename?: 'Query' } & { + designationAccounts: Array< + { __typename?: 'DesignationAccountsGroup' } & Pick< + Types.DesignationAccountsGroup, + 'organizationName' + > & { + designationAccounts: Array< + { __typename?: 'DesignationAccountRest' } & Pick< + Types.DesignationAccountRest, + | 'active' + | 'balanceUpdatedAt' + | 'convertedBalance' + | 'currency' + | 'designationNumber' + | 'id' + | 'name' + > + >; + } + >; +}; export const DesignationAccountsDocument = gql` - query DesignationAccounts($accountListId: ID!) { - designationAccounts(accountListId: $accountListId) { - organizationName - designationAccounts { - active - balanceUpdatedAt - convertedBalance - currency - designationNumber - id - name + query DesignationAccounts($accountListId: ID!) { + designationAccounts(accountListId: $accountListId) { + organizationName + designationAccounts { + active + balanceUpdatedAt + convertedBalance + currency + designationNumber + id + name + } } } +`; +export function useDesignationAccountsQuery( + baseOptions: Apollo.QueryHookOptions< + DesignationAccountsQuery, + DesignationAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + DesignationAccountsQuery, + DesignationAccountsQueryVariables + >(DesignationAccountsDocument, options); } - `; -export function useDesignationAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(DesignationAccountsDocument, options); - } -export function useDesignationAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(DesignationAccountsDocument, options); - } -export type DesignationAccountsQueryHookResult = ReturnType; -export type DesignationAccountsLazyQueryHookResult = ReturnType; -export type DesignationAccountsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useDesignationAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + DesignationAccountsQuery, + DesignationAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + DesignationAccountsQuery, + DesignationAccountsQueryVariables + >(DesignationAccountsDocument, options); +} +export type DesignationAccountsQueryHookResult = ReturnType< + typeof useDesignationAccountsQuery +>; +export type DesignationAccountsLazyQueryHookResult = ReturnType< + typeof useDesignationAccountsLazyQuery +>; +export type DesignationAccountsQueryResult = Apollo.QueryResult< + DesignationAccountsQuery, + DesignationAccountsQueryVariables +>; diff --git a/src/components/Reports/DesignationAccountsReport/SetActiveDesignationAccount.generated.ts b/src/components/Reports/DesignationAccountsReport/SetActiveDesignationAccount.generated.ts index d17f35647..718dd2a3f 100644 --- a/src/components/Reports/DesignationAccountsReport/SetActiveDesignationAccount.generated.ts +++ b/src/components/Reports/DesignationAccountsReport/SetActiveDesignationAccount.generated.ts @@ -7,29 +7,48 @@ export type SetActiveDesignationAccountMutationVariables = Types.Exact<{ input: Types.SetActiveDesignationAccountInput; }>; - -export type SetActiveDesignationAccountMutation = ( - { __typename?: 'Mutation' } - & { setActiveDesignationAccount: ( - { __typename?: 'DesignationAccountRest' } - & Pick - ) } -); - +export type SetActiveDesignationAccountMutation = { + __typename?: 'Mutation'; +} & { + setActiveDesignationAccount: { __typename?: 'DesignationAccountRest' } & Pick< + Types.DesignationAccountRest, + 'active' | 'id' + >; +}; export const SetActiveDesignationAccountDocument = gql` - mutation SetActiveDesignationAccount($input: SetActiveDesignationAccountInput!) { - setActiveDesignationAccount(input: $input) { - active - id + mutation SetActiveDesignationAccount( + $input: SetActiveDesignationAccountInput! + ) { + setActiveDesignationAccount(input: $input) { + active + id + } } +`; +export type SetActiveDesignationAccountMutationFn = Apollo.MutationFunction< + SetActiveDesignationAccountMutation, + SetActiveDesignationAccountMutationVariables +>; +export function useSetActiveDesignationAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SetActiveDesignationAccountMutation, + SetActiveDesignationAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SetActiveDesignationAccountMutation, + SetActiveDesignationAccountMutationVariables + >(SetActiveDesignationAccountDocument, options); } - `; -export type SetActiveDesignationAccountMutationFn = Apollo.MutationFunction; -export function useSetActiveDesignationAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SetActiveDesignationAccountDocument, options); - } -export type SetActiveDesignationAccountMutationHookResult = ReturnType; -export type SetActiveDesignationAccountMutationResult = Apollo.MutationResult; -export type SetActiveDesignationAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SetActiveDesignationAccountMutationHookResult = ReturnType< + typeof useSetActiveDesignationAccountMutation +>; +export type SetActiveDesignationAccountMutationResult = + Apollo.MutationResult; +export type SetActiveDesignationAccountMutationOptions = + Apollo.BaseMutationOptions< + SetActiveDesignationAccountMutation, + SetActiveDesignationAccountMutationVariables + >; diff --git a/src/components/Reports/DonationsReport/GetDonationGraph.generated.ts b/src/components/Reports/DonationsReport/GetDonationGraph.generated.ts index bdfdbccd3..14f98df8f 100644 --- a/src/components/Reports/DonationsReport/GetDonationGraph.generated.ts +++ b/src/components/Reports/DonationsReport/GetDonationGraph.generated.ts @@ -5,79 +5,115 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type GetDonationGraphQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - designationAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + designationAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; }>; +export type GetDonationGraphQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'currency' | 'monthlyGoal' | 'totalPledges' + >; + 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 GetDonationGraphQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ), reportsDonationHistories: ( - { __typename?: 'DonationHistories' } - & Pick - & { periods: Array<( - { __typename?: 'DonationHistoriesPeriod' } - & Pick - & { totals: Array<( - { __typename?: 'Total' } - & Pick - )> } - )> } - ) } -); - -export type DonationGraphHistoriesFragment = ( - { __typename?: 'DonationHistories' } - & Pick - & { periods: Array<( - { __typename?: 'DonationHistoriesPeriod' } - & Pick - & { totals: Array<( - { __typename?: 'Total' } - & Pick - )> } - )> } -); +export type DonationGraphHistoriesFragment = { + __typename?: 'DonationHistories'; +} & Pick & { + periods: Array< + { __typename?: 'DonationHistoriesPeriod' } & Pick< + Types.DonationHistoriesPeriod, + 'startDate' | 'convertedTotal' + > & { + totals: Array< + { __typename?: 'Total' } & Pick< + Types.Total, + 'currency' | 'convertedAmount' + > + >; + } + >; + }; export const DonationGraphHistoriesFragmentDoc = gql` - fragment DonationGraphHistories on DonationHistories { - averageIgnoreCurrent - periods { - startDate - convertedTotal - totals { - currency - convertedAmount + fragment DonationGraphHistories on DonationHistories { + averageIgnoreCurrent + periods { + startDate + convertedTotal + totals { + currency + convertedAmount + } } } -} - `; +`; export const GetDonationGraphDocument = gql` - query GetDonationGraph($accountListId: ID!, $designationAccountIds: [ID!]) { - accountList(id: $accountListId) { - id - currency - monthlyGoal - totalPledges - } - reportsDonationHistories( - accountListId: $accountListId - designationAccountId: $designationAccountIds - ) { - ...DonationGraphHistories + query GetDonationGraph($accountListId: ID!, $designationAccountIds: [ID!]) { + accountList(id: $accountListId) { + id + currency + monthlyGoal + totalPledges + } + reportsDonationHistories( + accountListId: $accountListId + designationAccountId: $designationAccountIds + ) { + ...DonationGraphHistories + } } + ${DonationGraphHistoriesFragmentDoc} +`; +export function useGetDonationGraphQuery( + baseOptions: Apollo.QueryHookOptions< + GetDonationGraphQuery, + GetDonationGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetDonationGraphDocument, + options, + ); } - ${DonationGraphHistoriesFragmentDoc}`; -export function useGetDonationGraphQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDonationGraphDocument, options); - } -export function useGetDonationGraphLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDonationGraphDocument, options); - } -export type GetDonationGraphQueryHookResult = ReturnType; -export type GetDonationGraphLazyQueryHookResult = ReturnType; -export type GetDonationGraphQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetDonationGraphLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDonationGraphQuery, + GetDonationGraphQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDonationGraphQuery, + GetDonationGraphQueryVariables + >(GetDonationGraphDocument, options); +} +export type GetDonationGraphQueryHookResult = ReturnType< + typeof useGetDonationGraphQuery +>; +export type GetDonationGraphLazyQueryHookResult = ReturnType< + typeof useGetDonationGraphLazyQuery +>; +export type GetDonationGraphQueryResult = Apollo.QueryResult< + GetDonationGraphQuery, + GetDonationGraphQueryVariables +>; diff --git a/src/components/Reports/DonationsReport/GetDonationsTable.generated.ts b/src/components/Reports/DonationsReport/GetDonationsTable.generated.ts index 8362e634a..ba0f94372 100644 --- a/src/components/Reports/DonationsReport/GetDonationsTable.generated.ts +++ b/src/components/Reports/DonationsReport/GetDonationsTable.generated.ts @@ -10,165 +10,228 @@ export type GetDonationsTableQueryVariables = Types.Exact<{ after?: Types.InputMaybe; startDate?: Types.InputMaybe; endDate?: Types.InputMaybe; - designationAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + designationAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; }>; +export type GetDonationsTableQuery = { __typename?: 'Query' } & { + donations: { __typename?: 'DonationConnection' } & Pick< + Types.DonationConnection, + 'totalCount' + > & { + nodes: Array< + { __typename?: 'Donation' } & Pick< + Types.Donation, + | 'id' + | 'donationDate' + | 'memo' + | 'motivation' + | 'paymentMethod' + | 'remoteId' + > & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'currency' | 'convertedAmount' | 'convertedCurrency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + appealAmount?: Types.Maybe< + { __typename?: 'Money' } & Pick + >; + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + }; + designationAccount: { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'name' + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; -export type GetDonationsTableQuery = ( - { __typename?: 'Query' } - & { donations: ( - { __typename?: 'DonationConnection' } - & Pick - & { nodes: Array<( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, appealAmount?: Types.Maybe<( - { __typename?: 'Money' } - & Pick - )>, donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - ), designationAccount: ( - { __typename?: 'DesignationAccount' } - & Pick - ) } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - -export type DonationTableRowFragment = ( - { __typename?: 'Donation' } - & Pick - & { amount: ( - { __typename?: 'Money' } - & Pick - ), appeal?: Types.Maybe<( - { __typename?: 'Appeal' } - & Pick - )>, donorAccount: ( - { __typename?: 'DonorAccount' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } - ), designationAccount: ( - { __typename?: 'DesignationAccount' } - & Pick - ) } -); +export type DonationTableRowFragment = { __typename?: 'Donation' } & Pick< + Types.Donation, + 'id' | 'donationDate' | 'paymentMethod' +> & { + amount: { __typename?: 'Money' } & Pick< + Types.Money, + 'amount' | 'convertedAmount' | 'convertedCurrency' | 'currency' + >; + appeal?: Types.Maybe< + { __typename?: 'Appeal' } & Pick + >; + donorAccount: { __typename?: 'DonorAccount' } & Pick< + Types.DonorAccount, + 'id' | 'displayName' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array<{ __typename?: 'Contact' } & Pick>; + }; + }; + designationAccount: { __typename?: 'DesignationAccount' } & Pick< + Types.DesignationAccount, + 'id' | 'name' + >; + }; export type GetAccountListCurrencyQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetAccountListCurrencyQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); +export type GetAccountListCurrencyQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'currency' + >; +}; export const DonationTableRowFragmentDoc = gql` - fragment DonationTableRow on Donation { - id - amount { - amount - convertedAmount - convertedCurrency - currency - } - appeal { + fragment DonationTableRow on Donation { id - name - } - donationDate - donorAccount { - id - contacts(first: 25) { - nodes { - id + amount { + amount + convertedAmount + convertedCurrency + currency + } + appeal { + id + name + } + donationDate + donorAccount { + id + contacts(first: 25) { + nodes { + id + } } + displayName } - displayName - } - designationAccount { - id - name + designationAccount { + id + name + } + paymentMethod } - paymentMethod -} - `; +`; export const GetDonationsTableDocument = gql` - query GetDonationsTable($accountListId: ID!, $pageSize: Int!, $after: String, $startDate: ISO8601Date, $endDate: ISO8601Date, $designationAccountIds: [ID!]) { - donations( - accountListId: $accountListId - donationDate: {max: $endDate, min: $startDate} - designationAccountId: $designationAccountIds - first: $pageSize - after: $after + query GetDonationsTable( + $accountListId: ID! + $pageSize: Int! + $after: String + $startDate: ISO8601Date + $endDate: ISO8601Date + $designationAccountIds: [ID!] ) { - nodes { - ...EditDonationModalDonation - ...DonationTableRow - } - pageInfo { - endCursor - hasNextPage + donations( + accountListId: $accountListId + donationDate: { max: $endDate, min: $startDate } + designationAccountId: $designationAccountIds + first: $pageSize + after: $after + ) { + nodes { + ...EditDonationModalDonation + ...DonationTableRow + } + pageInfo { + endCursor + hasNextPage + } + totalCount } - totalCount } + ${EditDonationModalDonationFragmentDoc} + ${DonationTableRowFragmentDoc} +`; +export function useGetDonationsTableQuery( + baseOptions: Apollo.QueryHookOptions< + GetDonationsTableQuery, + GetDonationsTableQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetDonationsTableQuery, + GetDonationsTableQueryVariables + >(GetDonationsTableDocument, options); } - ${EditDonationModalDonationFragmentDoc} -${DonationTableRowFragmentDoc}`; -export function useGetDonationsTableQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDonationsTableDocument, options); - } -export function useGetDonationsTableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDonationsTableDocument, options); - } -export type GetDonationsTableQueryHookResult = ReturnType; -export type GetDonationsTableLazyQueryHookResult = ReturnType; -export type GetDonationsTableQueryResult = Apollo.QueryResult; +export function useGetDonationsTableLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDonationsTableQuery, + GetDonationsTableQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDonationsTableQuery, + GetDonationsTableQueryVariables + >(GetDonationsTableDocument, options); +} +export type GetDonationsTableQueryHookResult = ReturnType< + typeof useGetDonationsTableQuery +>; +export type GetDonationsTableLazyQueryHookResult = ReturnType< + typeof useGetDonationsTableLazyQuery +>; +export type GetDonationsTableQueryResult = Apollo.QueryResult< + GetDonationsTableQuery, + GetDonationsTableQueryVariables +>; export const GetAccountListCurrencyDocument = gql` - query GetAccountListCurrency($accountListId: ID!) { - accountList(id: $accountListId) { - id - currency + query GetAccountListCurrency($accountListId: ID!) { + accountList(id: $accountListId) { + id + currency + } } +`; +export function useGetAccountListCurrencyQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountListCurrencyQuery, + GetAccountListCurrencyQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountListCurrencyQuery, + GetAccountListCurrencyQueryVariables + >(GetAccountListCurrencyDocument, options); } - `; -export function useGetAccountListCurrencyQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListCurrencyDocument, options); - } -export function useGetAccountListCurrencyLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListCurrencyDocument, options); - } -export type GetAccountListCurrencyQueryHookResult = ReturnType; -export type GetAccountListCurrencyLazyQueryHookResult = ReturnType; -export type GetAccountListCurrencyQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetAccountListCurrencyLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountListCurrencyQuery, + GetAccountListCurrencyQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountListCurrencyQuery, + GetAccountListCurrencyQueryVariables + >(GetAccountListCurrencyDocument, options); +} +export type GetAccountListCurrencyQueryHookResult = ReturnType< + typeof useGetAccountListCurrencyQuery +>; +export type GetAccountListCurrencyLazyQueryHookResult = ReturnType< + typeof useGetAccountListCurrencyLazyQuery +>; +export type GetAccountListCurrencyQueryResult = Apollo.QueryResult< + GetAccountListCurrencyQuery, + GetAccountListCurrencyQueryVariables +>; diff --git a/src/components/Reports/FourteenMonthReports/GetFourteenMonthReport.generated.ts b/src/components/Reports/FourteenMonthReports/GetFourteenMonthReport.generated.ts index 27368269d..239c2ec47 100644 --- a/src/components/Reports/FourteenMonthReports/GetFourteenMonthReport.generated.ts +++ b/src/components/Reports/FourteenMonthReports/GetFourteenMonthReport.generated.ts @@ -5,100 +5,163 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type FourteenMonthReportQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - designationAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + designationAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; currencyType: Types.FourteenMonthReportCurrencyType; }>; - -export type FourteenMonthReportQuery = ( - { __typename?: 'Query' } - & { fourteenMonthReport: ( - { __typename?: 'FourteenMonthReport' } - & Pick - & { currencyGroups: Array<( - { __typename?: 'FourteenMonthReportCurrencyGroup' } - & Pick - & { totals: ( - { __typename?: 'FourteenMonthReportCurrencyGroupTotals' } - & Pick - & { months: Array<( - { __typename?: 'FourteenMonthReportCurrencyGroupTotalsMonth' } - & Pick - )> } - ), contacts: Array<( - { __typename?: 'FourteenMonthReportContact' } - & Pick - & { months?: Types.Maybe - & { donations: Array<( - { __typename?: 'FourteenMonthReportContactDonation' } - & Pick - )> } - )>> } - )> } - )> } - ) } -); - +export type FourteenMonthReportQuery = { __typename?: 'Query' } & { + fourteenMonthReport: { __typename?: 'FourteenMonthReport' } & Pick< + Types.FourteenMonthReport, + 'currencyType' | 'salaryCurrency' + > & { + currencyGroups: Array< + { __typename?: 'FourteenMonthReportCurrencyGroup' } & Pick< + Types.FourteenMonthReportCurrencyGroup, + 'currency' + > & { + totals: { + __typename?: 'FourteenMonthReportCurrencyGroupTotals'; + } & Pick< + Types.FourteenMonthReportCurrencyGroupTotals, + 'year' | 'average' | 'minimum' + > & { + months: Array< + { + __typename?: 'FourteenMonthReportCurrencyGroupTotalsMonth'; + } & Pick< + Types.FourteenMonthReportCurrencyGroupTotalsMonth, + 'month' | 'total' + > + >; + }; + contacts: Array< + { __typename?: 'FourteenMonthReportContact' } & Pick< + Types.FourteenMonthReportContact, + | 'id' + | 'name' + | 'total' + | 'average' + | 'minimum' + | 'accountNumbers' + | 'lateBy30Days' + | 'lateBy60Days' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + | 'status' + > & { + months?: Types.Maybe< + Array< + { + __typename?: 'FourteenMonthReportContactMonths'; + } & Pick< + Types.FourteenMonthReportContactMonths, + 'month' | 'total' | 'salaryCurrencyTotal' + > & { + donations: Array< + { + __typename?: 'FourteenMonthReportContactDonation'; + } & Pick< + Types.FourteenMonthReportContactDonation, + 'amount' | 'currency' | 'date' | 'paymentMethod' + > + >; + } + > + >; + } + >; + } + >; + }; +}; export const FourteenMonthReportDocument = gql` - query FourteenMonthReport($accountListId: ID!, $designationAccountIds: [ID!], $currencyType: FourteenMonthReportCurrencyType!) { - fourteenMonthReport( - accountListId: $accountListId - designationAccountId: $designationAccountIds - currencyType: $currencyType + query FourteenMonthReport( + $accountListId: ID! + $designationAccountIds: [ID!] + $currencyType: FourteenMonthReportCurrencyType! ) { - currencyType - salaryCurrency - currencyGroups { - currency - totals { - year - months { - month - total + fourteenMonthReport( + accountListId: $accountListId + designationAccountId: $designationAccountIds + currencyType: $currencyType + ) { + currencyType + salaryCurrency + currencyGroups { + currency + totals { + year + months { + month + total + } + average + minimum } - average - minimum - } - contacts { - id - name - total - average - minimum - months { - month + contacts { + id + name total - salaryCurrencyTotal - donations { - amount - currency - date - paymentMethod + average + minimum + months { + month + total + salaryCurrencyTotal + donations { + amount + currency + date + paymentMethod + } } + accountNumbers + lateBy30Days + lateBy60Days + pledgeAmount + pledgeCurrency + pledgeFrequency + status } - accountNumbers - lateBy30Days - lateBy60Days - pledgeAmount - pledgeCurrency - pledgeFrequency - status } } } +`; +export function useFourteenMonthReportQuery( + baseOptions: Apollo.QueryHookOptions< + FourteenMonthReportQuery, + FourteenMonthReportQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + FourteenMonthReportQuery, + FourteenMonthReportQueryVariables + >(FourteenMonthReportDocument, options); } - `; -export function useFourteenMonthReportQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(FourteenMonthReportDocument, options); - } -export function useFourteenMonthReportLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(FourteenMonthReportDocument, options); - } -export type FourteenMonthReportQueryHookResult = ReturnType; -export type FourteenMonthReportLazyQueryHookResult = ReturnType; -export type FourteenMonthReportQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useFourteenMonthReportLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + FourteenMonthReportQuery, + FourteenMonthReportQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + FourteenMonthReportQuery, + FourteenMonthReportQueryVariables + >(FourteenMonthReportDocument, options); +} +export type FourteenMonthReportQueryHookResult = ReturnType< + typeof useFourteenMonthReportQuery +>; +export type FourteenMonthReportLazyQueryHookResult = ReturnType< + typeof useFourteenMonthReportLazyQuery +>; +export type FourteenMonthReportQueryResult = Apollo.QueryResult< + FourteenMonthReportQuery, + FourteenMonthReportQueryVariables +>; diff --git a/src/components/Reports/PartnerGivingAnalysisReport/PartnerGivingAnalysisReport.generated.ts b/src/components/Reports/PartnerGivingAnalysisReport/PartnerGivingAnalysisReport.generated.ts index 725b2eb9b..bfeddb127 100644 --- a/src/components/Reports/PartnerGivingAnalysisReport/PartnerGivingAnalysisReport.generated.ts +++ b/src/components/Reports/PartnerGivingAnalysisReport/PartnerGivingAnalysisReport.generated.ts @@ -7,56 +7,92 @@ export type GetPartnerGivingAnalysisReportQueryVariables = Types.Exact<{ input: Types.PartnerGivingAnalysisReportInput; }>; - -export type GetPartnerGivingAnalysisReportQuery = ( - { __typename?: 'Query' } - & { partnerGivingAnalysisReport: ( - { __typename?: 'PartnerGivingAnalysisReport' } - & Pick - & { contacts: Array<( - { __typename?: 'PartnerGivingAnalysisReportContact' } - & Pick - )>, pagination: ( - { __typename?: 'PartnerGivingAnalysisReportPagination' } - & Pick - ) } - ) } -); - +export type GetPartnerGivingAnalysisReportQuery = { __typename?: 'Query' } & { + partnerGivingAnalysisReport: { + __typename?: 'PartnerGivingAnalysisReport'; + } & Pick & { + contacts: Array< + { __typename?: 'PartnerGivingAnalysisReportContact' } & Pick< + Types.PartnerGivingAnalysisReportContact, + | 'id' + | 'donationPeriodAverage' + | 'donationPeriodCount' + | 'donationPeriodSum' + | 'lastDonationAmount' + | 'lastDonationCurrency' + | 'lastDonationDate' + | 'name' + | 'pledgeCurrency' + | 'totalDonations' + > + >; + pagination: { + __typename?: 'PartnerGivingAnalysisReportPagination'; + } & Pick< + Types.PartnerGivingAnalysisReportPagination, + 'page' | 'pageSize' | 'totalItems' | 'totalPages' + >; + }; +}; export const GetPartnerGivingAnalysisReportDocument = gql` - query GetPartnerGivingAnalysisReport($input: PartnerGivingAnalysisReportInput!) { - partnerGivingAnalysisReport(input: $input) { - contacts { - id - donationPeriodAverage - donationPeriodCount - donationPeriodSum - lastDonationAmount - lastDonationCurrency - lastDonationDate - name - pledgeCurrency - totalDonations - } - pagination { - page - pageSize - totalItems - totalPages + query GetPartnerGivingAnalysisReport( + $input: PartnerGivingAnalysisReportInput! + ) { + partnerGivingAnalysisReport(input: $input) { + contacts { + id + donationPeriodAverage + donationPeriodCount + donationPeriodSum + lastDonationAmount + lastDonationCurrency + lastDonationDate + name + pledgeCurrency + totalDonations + } + pagination { + page + pageSize + totalItems + totalPages + } + totalContacts } - totalContacts } +`; +export function useGetPartnerGivingAnalysisReportQuery( + baseOptions: Apollo.QueryHookOptions< + GetPartnerGivingAnalysisReportQuery, + GetPartnerGivingAnalysisReportQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetPartnerGivingAnalysisReportQuery, + GetPartnerGivingAnalysisReportQueryVariables + >(GetPartnerGivingAnalysisReportDocument, options); } - `; -export function useGetPartnerGivingAnalysisReportQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetPartnerGivingAnalysisReportDocument, options); - } -export function useGetPartnerGivingAnalysisReportLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetPartnerGivingAnalysisReportDocument, options); - } -export type GetPartnerGivingAnalysisReportQueryHookResult = ReturnType; -export type GetPartnerGivingAnalysisReportLazyQueryHookResult = ReturnType; -export type GetPartnerGivingAnalysisReportQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetPartnerGivingAnalysisReportLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetPartnerGivingAnalysisReportQuery, + GetPartnerGivingAnalysisReportQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetPartnerGivingAnalysisReportQuery, + GetPartnerGivingAnalysisReportQueryVariables + >(GetPartnerGivingAnalysisReportDocument, options); +} +export type GetPartnerGivingAnalysisReportQueryHookResult = ReturnType< + typeof useGetPartnerGivingAnalysisReportQuery +>; +export type GetPartnerGivingAnalysisReportLazyQueryHookResult = ReturnType< + typeof useGetPartnerGivingAnalysisReportLazyQuery +>; +export type GetPartnerGivingAnalysisReportQueryResult = Apollo.QueryResult< + GetPartnerGivingAnalysisReportQuery, + GetPartnerGivingAnalysisReportQueryVariables +>; diff --git a/src/components/Reports/ResponsibilityCentersReport/GetEntryHistories.generated.ts b/src/components/Reports/ResponsibilityCentersReport/GetEntryHistories.generated.ts index 545d99772..d612923c9 100644 --- a/src/components/Reports/ResponsibilityCentersReport/GetEntryHistories.generated.ts +++ b/src/components/Reports/ResponsibilityCentersReport/GetEntryHistories.generated.ts @@ -5,46 +5,77 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type EntryHistoriesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - financialAccountIds: Array | Types.Scalars['ID']['input']; + financialAccountIds: + | Array + | Types.Scalars['ID']['input']; }>; - -export type EntryHistoriesQuery = ( - { __typename?: 'Query' } - & { entryHistories?: Types.Maybe - & { entryHistories?: Types.Maybe - )>> } - )>> } -); - +export type EntryHistoriesQuery = { __typename?: 'Query' } & { + entryHistories?: Types.Maybe< + Array< + { __typename?: 'EntryHistoriesGroup' } & Pick< + Types.EntryHistoriesGroup, + 'financialAccountId' + > & { + entryHistories?: Types.Maybe< + Array< + { __typename?: 'EntryHistoryRest' } & Pick< + Types.EntryHistoryRest, + 'closingBalance' | 'endDate' | 'id' + > + > + >; + } + > + >; +}; export const EntryHistoriesDocument = gql` - query EntryHistories($accountListId: ID!, $financialAccountIds: [ID!]!) { - entryHistories( - accountListId: $accountListId - financialAccountIds: $financialAccountIds - ) { - financialAccountId - entryHistories { - closingBalance - endDate - id + query EntryHistories($accountListId: ID!, $financialAccountIds: [ID!]!) { + entryHistories( + accountListId: $accountListId + financialAccountIds: $financialAccountIds + ) { + financialAccountId + entryHistories { + closingBalance + endDate + id + } } } +`; +export function useEntryHistoriesQuery( + baseOptions: Apollo.QueryHookOptions< + EntryHistoriesQuery, + EntryHistoriesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + EntryHistoriesDocument, + options, + ); } - `; -export function useEntryHistoriesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(EntryHistoriesDocument, options); - } -export function useEntryHistoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(EntryHistoriesDocument, options); - } -export type EntryHistoriesQueryHookResult = ReturnType; -export type EntryHistoriesLazyQueryHookResult = ReturnType; -export type EntryHistoriesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useEntryHistoriesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + EntryHistoriesQuery, + EntryHistoriesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + EntryHistoriesDocument, + options, + ); +} +export type EntryHistoriesQueryHookResult = ReturnType< + typeof useEntryHistoriesQuery +>; +export type EntryHistoriesLazyQueryHookResult = ReturnType< + typeof useEntryHistoriesLazyQuery +>; +export type EntryHistoriesQueryResult = Apollo.QueryResult< + EntryHistoriesQuery, + EntryHistoriesQueryVariables +>; diff --git a/src/components/Reports/ResponsibilityCentersReport/GetFinancialAccounts.generated.ts b/src/components/Reports/ResponsibilityCentersReport/GetFinancialAccounts.generated.ts index 86cb9402a..cde00b27a 100644 --- a/src/components/Reports/ResponsibilityCentersReport/GetFinancialAccounts.generated.ts +++ b/src/components/Reports/ResponsibilityCentersReport/GetFinancialAccounts.generated.ts @@ -5,71 +5,103 @@ import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; export type FinancialAccountsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - designationAccountIds?: Types.InputMaybe | Types.Scalars['ID']['input']>; + designationAccountIds?: Types.InputMaybe< + Array | Types.Scalars['ID']['input'] + >; after?: Types.InputMaybe; }>; - -export type FinancialAccountsQuery = ( - { __typename?: 'Query' } - & { financialAccounts: ( - { __typename?: 'FinancialAccountConnection' } - & { nodes: Array<( - { __typename?: 'FinancialAccount' } - & Pick - & { balance: ( - { __typename?: 'Money' } - & Pick - ), organization?: Types.Maybe<( - { __typename?: 'Organization' } - & Pick - )> } - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); - +export type FinancialAccountsQuery = { __typename?: 'Query' } & { + financialAccounts: { __typename?: 'FinancialAccountConnection' } & { + nodes: Array< + { __typename?: 'FinancialAccount' } & Pick< + Types.FinancialAccount, + 'active' | 'code' | 'id' | 'name' | 'updatedAt' + > & { + balance: { __typename?: 'Money' } & Pick< + Types.Money, + 'conversionDate' | 'convertedAmount' | 'convertedCurrency' + >; + organization?: Types.Maybe< + { __typename?: 'Organization' } & Pick< + Types.Organization, + 'id' | 'name' + > + >; + } + >; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export const FinancialAccountsDocument = gql` - query FinancialAccounts($accountListId: ID!, $designationAccountIds: [ID!], $after: String) { - financialAccounts( - accountListId: $accountListId - designationAccountId: $designationAccountIds - after: $after + query FinancialAccounts( + $accountListId: ID! + $designationAccountIds: [ID!] + $after: String ) { - nodes { - active - balance { - conversionDate - convertedAmount - convertedCurrency - } - code - id - name - organization { + financialAccounts( + accountListId: $accountListId + designationAccountId: $designationAccountIds + after: $after + ) { + nodes { + active + balance { + conversionDate + convertedAmount + convertedCurrency + } + code id name + organization { + id + name + } + updatedAt + } + pageInfo { + endCursor + hasNextPage } - updatedAt - } - pageInfo { - endCursor - hasNextPage } } +`; +export function useFinancialAccountsQuery( + baseOptions: Apollo.QueryHookOptions< + FinancialAccountsQuery, + FinancialAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + FinancialAccountsQuery, + FinancialAccountsQueryVariables + >(FinancialAccountsDocument, options); } - `; -export function useFinancialAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(FinancialAccountsDocument, options); - } -export function useFinancialAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(FinancialAccountsDocument, options); - } -export type FinancialAccountsQueryHookResult = ReturnType; -export type FinancialAccountsLazyQueryHookResult = ReturnType; -export type FinancialAccountsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useFinancialAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + FinancialAccountsQuery, + FinancialAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + FinancialAccountsQuery, + FinancialAccountsQueryVariables + >(FinancialAccountsDocument, options); +} +export type FinancialAccountsQueryHookResult = ReturnType< + typeof useFinancialAccountsQuery +>; +export type FinancialAccountsLazyQueryHookResult = ReturnType< + typeof useFinancialAccountsLazyQuery +>; +export type FinancialAccountsQueryResult = Apollo.QueryResult< + FinancialAccountsQuery, + FinancialAccountsQueryVariables +>; diff --git a/src/components/Reports/ResponsibilityCentersReport/SetActiveFinancialAccount.generated.ts b/src/components/Reports/ResponsibilityCentersReport/SetActiveFinancialAccount.generated.ts index 6915464bc..7a12ab5c2 100644 --- a/src/components/Reports/ResponsibilityCentersReport/SetActiveFinancialAccount.generated.ts +++ b/src/components/Reports/ResponsibilityCentersReport/SetActiveFinancialAccount.generated.ts @@ -7,29 +7,43 @@ export type SetActiveFinancialAccountMutationVariables = Types.Exact<{ input: Types.SetActiveFinancialAccountInput; }>; - -export type SetActiveFinancialAccountMutation = ( - { __typename?: 'Mutation' } - & { setActiveFinancialAccount: ( - { __typename?: 'SetActiveFinancialAccountRest' } - & Pick - ) } -); - +export type SetActiveFinancialAccountMutation = { __typename?: 'Mutation' } & { + setActiveFinancialAccount: { + __typename?: 'SetActiveFinancialAccountRest'; + } & Pick; +}; export const SetActiveFinancialAccountDocument = gql` - mutation SetActiveFinancialAccount($input: SetActiveFinancialAccountInput!) { - setActiveFinancialAccount(input: $input) { - active - id + mutation SetActiveFinancialAccount($input: SetActiveFinancialAccountInput!) { + setActiveFinancialAccount(input: $input) { + active + id + } } +`; +export type SetActiveFinancialAccountMutationFn = Apollo.MutationFunction< + SetActiveFinancialAccountMutation, + SetActiveFinancialAccountMutationVariables +>; +export function useSetActiveFinancialAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SetActiveFinancialAccountMutation, + SetActiveFinancialAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SetActiveFinancialAccountMutation, + SetActiveFinancialAccountMutationVariables + >(SetActiveFinancialAccountDocument, options); } - `; -export type SetActiveFinancialAccountMutationFn = Apollo.MutationFunction; -export function useSetActiveFinancialAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SetActiveFinancialAccountDocument, options); - } -export type SetActiveFinancialAccountMutationHookResult = ReturnType; -export type SetActiveFinancialAccountMutationResult = Apollo.MutationResult; -export type SetActiveFinancialAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SetActiveFinancialAccountMutationHookResult = ReturnType< + typeof useSetActiveFinancialAccountMutation +>; +export type SetActiveFinancialAccountMutationResult = + Apollo.MutationResult; +export type SetActiveFinancialAccountMutationOptions = + Apollo.BaseMutationOptions< + SetActiveFinancialAccountMutation, + SetActiveFinancialAccountMutationVariables + >; diff --git a/src/components/Settings/Accounts/InviteForm/InviteForm.generated.ts b/src/components/Settings/Accounts/InviteForm/InviteForm.generated.ts index b7067fd82..afde43867 100644 --- a/src/components/Settings/Accounts/InviteForm/InviteForm.generated.ts +++ b/src/components/Settings/Accounts/InviteForm/InviteForm.generated.ts @@ -7,53 +7,72 @@ export type CreateAccountListInviteMutationVariables = Types.Exact<{ input: Types.CreateAccountListInviteInput; }>; - -export type CreateAccountListInviteMutation = ( - { __typename?: 'Mutation' } - & { createAccountListInvite?: Types.Maybe<( - { __typename?: 'CreateAccountListInvitePayload' } - & { accountListInvite: ( - { __typename?: 'AccountListInvite' } - & Pick - & { cancelledByUser?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, invitedByUser: ( - { __typename?: 'UserScopedToAccountList' } - & Pick - ) } - ) } - )> } -); - +export type CreateAccountListInviteMutation = { __typename?: 'Mutation' } & { + createAccountListInvite?: Types.Maybe< + { __typename?: 'CreateAccountListInvitePayload' } & { + accountListInvite: { __typename?: 'AccountListInvite' } & Pick< + Types.AccountListInvite, + 'id' | 'accountListId' | 'inviteUserAs' | 'recipientEmail' + > & { + cancelledByUser?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'id' | 'lastName' + > + >; + invitedByUser: { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'id' | 'lastName' + >; + }; + } + >; +}; export const CreateAccountListInviteDocument = gql` - mutation CreateAccountListInvite($input: CreateAccountListInviteInput!) { - createAccountListInvite(input: $input) { - accountListInvite { - id - accountListId - cancelledByUser { - firstName + mutation CreateAccountListInvite($input: CreateAccountListInviteInput!) { + createAccountListInvite(input: $input) { + accountListInvite { id - lastName + accountListId + cancelledByUser { + firstName + id + lastName + } + inviteUserAs + invitedByUser { + firstName + id + lastName + } + recipientEmail } - inviteUserAs - invitedByUser { - firstName - id - lastName - } - recipientEmail } } +`; +export type CreateAccountListInviteMutationFn = Apollo.MutationFunction< + CreateAccountListInviteMutation, + CreateAccountListInviteMutationVariables +>; +export function useCreateAccountListInviteMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateAccountListInviteMutation, + CreateAccountListInviteMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateAccountListInviteMutation, + CreateAccountListInviteMutationVariables + >(CreateAccountListInviteDocument, options); } - `; -export type CreateAccountListInviteMutationFn = Apollo.MutationFunction; -export function useCreateAccountListInviteMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateAccountListInviteDocument, options); - } -export type CreateAccountListInviteMutationHookResult = ReturnType; -export type CreateAccountListInviteMutationResult = Apollo.MutationResult; -export type CreateAccountListInviteMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateAccountListInviteMutationHookResult = ReturnType< + typeof useCreateAccountListInviteMutation +>; +export type CreateAccountListInviteMutationResult = + Apollo.MutationResult; +export type CreateAccountListInviteMutationOptions = Apollo.BaseMutationOptions< + CreateAccountListInviteMutation, + CreateAccountListInviteMutationVariables +>; diff --git a/src/components/Settings/Accounts/ManageAccountAccess/ManageAccountAccess.generated.ts b/src/components/Settings/Accounts/ManageAccountAccess/ManageAccountAccess.generated.ts index 6328ebbae..c30e68189 100644 --- a/src/components/Settings/Accounts/ManageAccountAccess/ManageAccountAccess.generated.ts +++ b/src/components/Settings/Accounts/ManageAccountAccess/ManageAccountAccess.generated.ts @@ -7,73 +7,109 @@ export type GetAccountsSharingWithQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetAccountsSharingWithQuery = ( - { __typename?: 'Query' } - & { accountListUsers: ( - { __typename?: 'AccountListUserConnection' } - & { nodes: Array<( - { __typename?: 'AccountListUser' } - & Pick - & { user: ( - { __typename?: 'UserScopedToAccountList' } - & Pick - ) } - )> } - ) } -); +export type GetAccountsSharingWithQuery = { __typename?: 'Query' } & { + accountListUsers: { __typename?: 'AccountListUserConnection' } & { + nodes: Array< + { __typename?: 'AccountListUser' } & Pick & { + user: { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + >; + } + >; + }; +}; export type DeleteAccountListUserMutationVariables = Types.Exact<{ input: Types.AccountListUserDeleteMutationInput; }>; - -export type DeleteAccountListUserMutation = ( - { __typename?: 'Mutation' } - & { deleteAccountListUser?: Types.Maybe<( - { __typename?: 'AccountListUserDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteAccountListUserMutation = { __typename?: 'Mutation' } & { + deleteAccountListUser?: Types.Maybe< + { __typename?: 'AccountListUserDeleteMutationPayload' } & Pick< + Types.AccountListUserDeleteMutationPayload, + 'id' + > + >; +}; export const GetAccountsSharingWithDocument = gql` - query GetAccountsSharingWith($accountListId: ID!) { - accountListUsers(accountListId: $accountListId, first: 50) { - nodes { - user { + query GetAccountsSharingWith($accountListId: ID!) { + accountListUsers(accountListId: $accountListId, first: 50) { + nodes { + user { + id + firstName + lastName + } id - firstName - lastName } - id } } +`; +export function useGetAccountsSharingWithQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountsSharingWithQuery, + GetAccountsSharingWithQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountsSharingWithQuery, + GetAccountsSharingWithQueryVariables + >(GetAccountsSharingWithDocument, options); } - `; -export function useGetAccountsSharingWithQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountsSharingWithDocument, options); - } -export function useGetAccountsSharingWithLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountsSharingWithDocument, options); - } -export type GetAccountsSharingWithQueryHookResult = ReturnType; -export type GetAccountsSharingWithLazyQueryHookResult = ReturnType; -export type GetAccountsSharingWithQueryResult = Apollo.QueryResult; +export function useGetAccountsSharingWithLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountsSharingWithQuery, + GetAccountsSharingWithQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountsSharingWithQuery, + GetAccountsSharingWithQueryVariables + >(GetAccountsSharingWithDocument, options); +} +export type GetAccountsSharingWithQueryHookResult = ReturnType< + typeof useGetAccountsSharingWithQuery +>; +export type GetAccountsSharingWithLazyQueryHookResult = ReturnType< + typeof useGetAccountsSharingWithLazyQuery +>; +export type GetAccountsSharingWithQueryResult = Apollo.QueryResult< + GetAccountsSharingWithQuery, + GetAccountsSharingWithQueryVariables +>; export const DeleteAccountListUserDocument = gql` - mutation DeleteAccountListUser($input: AccountListUserDeleteMutationInput!) { - deleteAccountListUser(input: $input) { - id + mutation DeleteAccountListUser($input: AccountListUserDeleteMutationInput!) { + deleteAccountListUser(input: $input) { + id + } } +`; +export type DeleteAccountListUserMutationFn = Apollo.MutationFunction< + DeleteAccountListUserMutation, + DeleteAccountListUserMutationVariables +>; +export function useDeleteAccountListUserMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteAccountListUserMutation, + DeleteAccountListUserMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteAccountListUserMutation, + DeleteAccountListUserMutationVariables + >(DeleteAccountListUserDocument, options); } - `; -export type DeleteAccountListUserMutationFn = Apollo.MutationFunction; -export function useDeleteAccountListUserMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteAccountListUserDocument, options); - } -export type DeleteAccountListUserMutationHookResult = ReturnType; -export type DeleteAccountListUserMutationResult = Apollo.MutationResult; -export type DeleteAccountListUserMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteAccountListUserMutationHookResult = ReturnType< + typeof useDeleteAccountListUserMutation +>; +export type DeleteAccountListUserMutationResult = + Apollo.MutationResult; +export type DeleteAccountListUserMutationOptions = Apollo.BaseMutationOptions< + DeleteAccountListUserMutation, + DeleteAccountListUserMutationVariables +>; diff --git a/src/components/Settings/Accounts/ManageAccounts/ManageAccounts.generated.ts b/src/components/Settings/Accounts/ManageAccounts/ManageAccounts.generated.ts index 5e4c3dae2..10ce718d2 100644 --- a/src/components/Settings/Accounts/ManageAccounts/ManageAccounts.generated.ts +++ b/src/components/Settings/Accounts/ManageAccounts/ManageAccounts.generated.ts @@ -3,158 +3,222 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetUserIdQueryVariables = Types.Exact<{ [key: string]: never; }>; +export type GetUserIdQueryVariables = Types.Exact<{ [key: string]: never }>; +export type GetUserIdQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick; +}; -export type GetUserIdQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - ) } -); - -export type SharedAccountUserFragment = ( - { __typename?: 'UserScopedToAccountList' } - & Pick -); +export type SharedAccountUserFragment = { + __typename?: 'UserScopedToAccountList'; +} & Pick; export type GetAccountListInvitesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; inviteType: Types.InviteTypeEnum; }>; - -export type GetAccountListInvitesQuery = ( - { __typename?: 'Query' } - & { accountListInvites: ( - { __typename?: 'AccountListInviteConnection' } - & { nodes: Array<( - { __typename?: 'AccountListInvite' } - & Pick - & { cancelledByUser?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, invitedByUser: ( - { __typename?: 'UserScopedToAccountList' } - & Pick - ) } - )> } - ) } -); +export type GetAccountListInvitesQuery = { __typename?: 'Query' } & { + accountListInvites: { __typename?: 'AccountListInviteConnection' } & { + nodes: Array< + { __typename?: 'AccountListInvite' } & Pick< + Types.AccountListInvite, + 'id' | 'accountListId' | 'inviteUserAs' | 'recipientEmail' + > & { + cancelledByUser?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'lastName' | 'id' + > + >; + invitedByUser: { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'lastName' | 'id' + >; + } + >; + }; +}; export type CancelAccountListInviteMutationVariables = Types.Exact<{ input: Types.CancelAccountListInviteInput; }>; - -export type CancelAccountListInviteMutation = ( - { __typename?: 'Mutation' } - & { cancelAccountListInvite?: Types.Maybe<( - { __typename?: 'CancelAccountListInvitePayload' } - & { accountListInvite: ( - { __typename?: 'AccountListInvite' } - & Pick - & { cancelledByUser?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )>, invitedByUser: ( - { __typename?: 'UserScopedToAccountList' } - & Pick - ) } - ) } - )> } -); +export type CancelAccountListInviteMutation = { __typename?: 'Mutation' } & { + cancelAccountListInvite?: Types.Maybe< + { __typename?: 'CancelAccountListInvitePayload' } & { + accountListInvite: { __typename?: 'AccountListInvite' } & Pick< + Types.AccountListInvite, + 'accountListId' | 'id' | 'recipientEmail' | 'inviteUserAs' + > & { + cancelledByUser?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'id' | 'lastName' + > + >; + invitedByUser: { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'id' | 'lastName' + >; + }; + } + >; +}; export const SharedAccountUserFragmentDoc = gql` - fragment SharedAccountUser on UserScopedToAccountList { - id - firstName - lastName -} - `; -export const GetUserIdDocument = gql` - query GetUserId { - user { + fragment SharedAccountUser on UserScopedToAccountList { id + firstName + lastName } +`; +export const GetUserIdDocument = gql` + query GetUserId { + user { + id + } + } +`; +export function useGetUserIdQuery( + baseOptions?: Apollo.QueryHookOptions< + GetUserIdQuery, + GetUserIdQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetUserIdDocument, + options, + ); +} +export function useGetUserIdLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUserIdQuery, + GetUserIdQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetUserIdDocument, + options, + ); } - `; -export function useGetUserIdQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetUserIdDocument, options); - } -export function useGetUserIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetUserIdDocument, options); - } export type GetUserIdQueryHookResult = ReturnType; -export type GetUserIdLazyQueryHookResult = ReturnType; -export type GetUserIdQueryResult = Apollo.QueryResult; +export type GetUserIdLazyQueryHookResult = ReturnType< + typeof useGetUserIdLazyQuery +>; +export type GetUserIdQueryResult = Apollo.QueryResult< + GetUserIdQuery, + GetUserIdQueryVariables +>; export const GetAccountListInvitesDocument = gql` - query GetAccountListInvites($accountListId: ID!, $inviteType: InviteTypeEnum!) { - accountListInvites( - accountListId: $accountListId - inviteType: $inviteType - first: 50 + query GetAccountListInvites( + $accountListId: ID! + $inviteType: InviteTypeEnum! ) { - nodes { - id - accountListId - cancelledByUser { - firstName - lastName - id - } - inviteUserAs - invitedByUser { - firstName - lastName + accountListInvites( + accountListId: $accountListId + inviteType: $inviteType + first: 50 + ) { + nodes { id + accountListId + cancelledByUser { + firstName + lastName + id + } + inviteUserAs + invitedByUser { + firstName + lastName + id + } + recipientEmail } - recipientEmail } } +`; +export function useGetAccountListInvitesQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountListInvitesQuery, + GetAccountListInvitesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountListInvitesQuery, + GetAccountListInvitesQueryVariables + >(GetAccountListInvitesDocument, options); } - `; -export function useGetAccountListInvitesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListInvitesDocument, options); - } -export function useGetAccountListInvitesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListInvitesDocument, options); - } -export type GetAccountListInvitesQueryHookResult = ReturnType; -export type GetAccountListInvitesLazyQueryHookResult = ReturnType; -export type GetAccountListInvitesQueryResult = Apollo.QueryResult; +export function useGetAccountListInvitesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountListInvitesQuery, + GetAccountListInvitesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountListInvitesQuery, + GetAccountListInvitesQueryVariables + >(GetAccountListInvitesDocument, options); +} +export type GetAccountListInvitesQueryHookResult = ReturnType< + typeof useGetAccountListInvitesQuery +>; +export type GetAccountListInvitesLazyQueryHookResult = ReturnType< + typeof useGetAccountListInvitesLazyQuery +>; +export type GetAccountListInvitesQueryResult = Apollo.QueryResult< + GetAccountListInvitesQuery, + GetAccountListInvitesQueryVariables +>; export const CancelAccountListInviteDocument = gql` - mutation CancelAccountListInvite($input: CancelAccountListInviteInput!) { - cancelAccountListInvite(input: $input) { - accountListInvite { - accountListId - id - recipientEmail - cancelledByUser { - firstName - id - lastName - } - inviteUserAs - invitedByUser { - firstName + mutation CancelAccountListInvite($input: CancelAccountListInviteInput!) { + cancelAccountListInvite(input: $input) { + accountListInvite { + accountListId id - lastName + recipientEmail + cancelledByUser { + firstName + id + lastName + } + inviteUserAs + invitedByUser { + firstName + id + lastName + } } } } +`; +export type CancelAccountListInviteMutationFn = Apollo.MutationFunction< + CancelAccountListInviteMutation, + CancelAccountListInviteMutationVariables +>; +export function useCancelAccountListInviteMutation( + baseOptions?: Apollo.MutationHookOptions< + CancelAccountListInviteMutation, + CancelAccountListInviteMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CancelAccountListInviteMutation, + CancelAccountListInviteMutationVariables + >(CancelAccountListInviteDocument, options); } - `; -export type CancelAccountListInviteMutationFn = Apollo.MutationFunction; -export function useCancelAccountListInviteMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CancelAccountListInviteDocument, options); - } -export type CancelAccountListInviteMutationHookResult = ReturnType; -export type CancelAccountListInviteMutationResult = Apollo.MutationResult; -export type CancelAccountListInviteMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CancelAccountListInviteMutationHookResult = ReturnType< + typeof useCancelAccountListInviteMutation +>; +export type CancelAccountListInviteMutationResult = + Apollo.MutationResult; +export type CancelAccountListInviteMutationOptions = Apollo.BaseMutationOptions< + CancelAccountListInviteMutation, + CancelAccountListInviteMutationVariables +>; diff --git a/src/components/Settings/Accounts/MergeForm/MergeForm.generated.ts b/src/components/Settings/Accounts/MergeForm/MergeForm.generated.ts index 09b9e5b04..0175bf361 100644 --- a/src/components/Settings/Accounts/MergeForm/MergeForm.generated.ts +++ b/src/components/Settings/Accounts/MergeForm/MergeForm.generated.ts @@ -3,106 +3,164 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetAccountListsForMergingQueryVariables = Types.Exact<{ [key: string]: never; }>; - +export type GetAccountListsForMergingQueryVariables = Types.Exact<{ + [key: string]: never; +}>; -export type GetAccountListsForMergingQuery = ( - { __typename?: 'Query' } - & { accountLists: ( - { __typename?: 'AccountListConnection' } - & { nodes: Array<( - { __typename?: 'AccountList' } - & Pick - )> } - ) } -); +export type GetAccountListsForMergingQuery = { __typename?: 'Query' } & { + accountLists: { __typename?: 'AccountListConnection' } & { + nodes: Array< + { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' | 'currency' + > + >; + }; +}; export type AccountListQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type AccountListQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); +export type AccountListQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' + >; +}; export type MergeAccountListMutationVariables = Types.Exact<{ input: Types.AccountListMergeMutationInput; }>; - -export type MergeAccountListMutation = ( - { __typename?: 'Mutation' } - & { mergeAccountList?: Types.Maybe<( - { __typename?: 'AccountListMergeMutationPayload' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } - )> } -); - +export type MergeAccountListMutation = { __typename?: 'Mutation' } & { + mergeAccountList?: Types.Maybe< + { __typename?: 'AccountListMergeMutationPayload' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' + >; + } + >; +}; export const GetAccountListsForMergingDocument = gql` - query GetAccountListsForMerging { - accountLists(first: 50) { - nodes { - id - name - currency + query GetAccountListsForMerging { + accountLists(first: 50) { + nodes { + id + name + currency + } } } +`; +export function useGetAccountListsForMergingQuery( + baseOptions?: Apollo.QueryHookOptions< + GetAccountListsForMergingQuery, + GetAccountListsForMergingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountListsForMergingQuery, + GetAccountListsForMergingQueryVariables + >(GetAccountListsForMergingDocument, options); } - `; -export function useGetAccountListsForMergingQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListsForMergingDocument, options); - } -export function useGetAccountListsForMergingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListsForMergingDocument, options); - } -export type GetAccountListsForMergingQueryHookResult = ReturnType; -export type GetAccountListsForMergingLazyQueryHookResult = ReturnType; -export type GetAccountListsForMergingQueryResult = Apollo.QueryResult; +export function useGetAccountListsForMergingLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountListsForMergingQuery, + GetAccountListsForMergingQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountListsForMergingQuery, + GetAccountListsForMergingQueryVariables + >(GetAccountListsForMergingDocument, options); +} +export type GetAccountListsForMergingQueryHookResult = ReturnType< + typeof useGetAccountListsForMergingQuery +>; +export type GetAccountListsForMergingLazyQueryHookResult = ReturnType< + typeof useGetAccountListsForMergingLazyQuery +>; +export type GetAccountListsForMergingQueryResult = Apollo.QueryResult< + GetAccountListsForMergingQuery, + GetAccountListsForMergingQueryVariables +>; export const AccountListDocument = gql` - query AccountList($accountListId: ID!) { - accountList(id: $accountListId) { - id - name + query AccountList($accountListId: ID!) { + accountList(id: $accountListId) { + id + name + } } +`; +export function useAccountListQuery( + baseOptions: Apollo.QueryHookOptions< + AccountListQuery, + AccountListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + AccountListDocument, + options, + ); +} +export function useAccountListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + AccountListQuery, + AccountListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + AccountListDocument, + options, + ); } - `; -export function useAccountListQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(AccountListDocument, options); - } -export function useAccountListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(AccountListDocument, options); - } export type AccountListQueryHookResult = ReturnType; -export type AccountListLazyQueryHookResult = ReturnType; -export type AccountListQueryResult = Apollo.QueryResult; +export type AccountListLazyQueryHookResult = ReturnType< + typeof useAccountListLazyQuery +>; +export type AccountListQueryResult = Apollo.QueryResult< + AccountListQuery, + AccountListQueryVariables +>; export const MergeAccountListDocument = gql` - mutation MergeAccountList($input: AccountListMergeMutationInput!) { - mergeAccountList(input: $input) { - accountList { - id - name + mutation MergeAccountList($input: AccountListMergeMutationInput!) { + mergeAccountList(input: $input) { + accountList { + id + name + } } } +`; +export type MergeAccountListMutationFn = Apollo.MutationFunction< + MergeAccountListMutation, + MergeAccountListMutationVariables +>; +export function useMergeAccountListMutation( + baseOptions?: Apollo.MutationHookOptions< + MergeAccountListMutation, + MergeAccountListMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MergeAccountListMutation, + MergeAccountListMutationVariables + >(MergeAccountListDocument, options); } - `; -export type MergeAccountListMutationFn = Apollo.MutationFunction; -export function useMergeAccountListMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MergeAccountListDocument, options); - } -export type MergeAccountListMutationHookResult = ReturnType; -export type MergeAccountListMutationResult = Apollo.MutationResult; -export type MergeAccountListMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type MergeAccountListMutationHookResult = ReturnType< + typeof useMergeAccountListMutation +>; +export type MergeAccountListMutationResult = + Apollo.MutationResult; +export type MergeAccountListMutationOptions = Apollo.BaseMutationOptions< + MergeAccountListMutation, + MergeAccountListMutationVariables +>; diff --git a/src/components/Settings/Admin/ResetAccount/ResetAccount.generated.ts b/src/components/Settings/Admin/ResetAccount/ResetAccount.generated.ts index b47d3d5ca..af1fdbd96 100644 --- a/src/components/Settings/Admin/ResetAccount/ResetAccount.generated.ts +++ b/src/components/Settings/Admin/ResetAccount/ResetAccount.generated.ts @@ -7,34 +7,49 @@ export type ResetAccountListMutationVariables = Types.Exact<{ input: Types.AccountListResetMutationInput; }>; - -export type ResetAccountListMutation = ( - { __typename?: 'Mutation' } - & { resetAccountList?: Types.Maybe<( - { __typename?: 'AccountListResetMutationPayload' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } - )> } -); - +export type ResetAccountListMutation = { __typename?: 'Mutation' } & { + resetAccountList?: Types.Maybe< + { __typename?: 'AccountListResetMutationPayload' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' + >; + } + >; +}; export const ResetAccountListDocument = gql` - mutation ResetAccountList($input: AccountListResetMutationInput!) { - resetAccountList(input: $input) { - accountList { - id - name + mutation ResetAccountList($input: AccountListResetMutationInput!) { + resetAccountList(input: $input) { + accountList { + id + name + } } } +`; +export type ResetAccountListMutationFn = Apollo.MutationFunction< + ResetAccountListMutation, + ResetAccountListMutationVariables +>; +export function useResetAccountListMutation( + baseOptions?: Apollo.MutationHookOptions< + ResetAccountListMutation, + ResetAccountListMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + ResetAccountListMutation, + ResetAccountListMutationVariables + >(ResetAccountListDocument, options); } - `; -export type ResetAccountListMutationFn = Apollo.MutationFunction; -export function useResetAccountListMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ResetAccountListDocument, options); - } -export type ResetAccountListMutationHookResult = ReturnType; -export type ResetAccountListMutationResult = Apollo.MutationResult; -export type ResetAccountListMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type ResetAccountListMutationHookResult = ReturnType< + typeof useResetAccountListMutation +>; +export type ResetAccountListMutationResult = + Apollo.MutationResult; +export type ResetAccountListMutationOptions = Apollo.BaseMutationOptions< + ResetAccountListMutation, + ResetAccountListMutationVariables +>; diff --git a/src/components/Settings/Coaches/ManageCoachesAccess/ManageAccountAccess.generated.ts b/src/components/Settings/Coaches/ManageCoachesAccess/ManageAccountAccess.generated.ts index 0475d0d69..e2ce4f87f 100644 --- a/src/components/Settings/Coaches/ManageCoachesAccess/ManageAccountAccess.generated.ts +++ b/src/components/Settings/Coaches/ManageCoachesAccess/ManageAccountAccess.generated.ts @@ -7,66 +7,106 @@ export type GetAccountListCoachesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetAccountListCoachesQuery = ( - { __typename?: 'Query' } - & { accountListCoaches: ( - { __typename?: 'UserScopedToAccountListConnection' } - & { nodes: Array<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - ) } -); +export type GetAccountListCoachesQuery = { __typename?: 'Query' } & { + accountListCoaches: { __typename?: 'UserScopedToAccountListConnection' } & { + nodes: Array< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'firstName' | 'lastName' | 'id' + > + >; + }; +}; export type DeleteAccountListCoachMutationVariables = Types.Exact<{ input: Types.AccountListCoachDeleteMutationInput; }>; - -export type DeleteAccountListCoachMutation = ( - { __typename?: 'Mutation' } - & { deleteAccountListCoach?: Types.Maybe<( - { __typename?: 'AccountListCoachDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteAccountListCoachMutation = { __typename?: 'Mutation' } & { + deleteAccountListCoach?: Types.Maybe< + { __typename?: 'AccountListCoachDeleteMutationPayload' } & Pick< + Types.AccountListCoachDeleteMutationPayload, + 'id' + > + >; +}; export const GetAccountListCoachesDocument = gql` - query GetAccountListCoaches($accountListId: ID!) { - accountListCoaches(accountListId: $accountListId, first: 50) { - nodes { - firstName - lastName - id + query GetAccountListCoaches($accountListId: ID!) { + accountListCoaches(accountListId: $accountListId, first: 50) { + nodes { + firstName + lastName + id + } } } +`; +export function useGetAccountListCoachesQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountListCoachesQuery, + GetAccountListCoachesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountListCoachesQuery, + GetAccountListCoachesQueryVariables + >(GetAccountListCoachesDocument, options); } - `; -export function useGetAccountListCoachesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountListCoachesDocument, options); - } -export function useGetAccountListCoachesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountListCoachesDocument, options); - } -export type GetAccountListCoachesQueryHookResult = ReturnType; -export type GetAccountListCoachesLazyQueryHookResult = ReturnType; -export type GetAccountListCoachesQueryResult = Apollo.QueryResult; +export function useGetAccountListCoachesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountListCoachesQuery, + GetAccountListCoachesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountListCoachesQuery, + GetAccountListCoachesQueryVariables + >(GetAccountListCoachesDocument, options); +} +export type GetAccountListCoachesQueryHookResult = ReturnType< + typeof useGetAccountListCoachesQuery +>; +export type GetAccountListCoachesLazyQueryHookResult = ReturnType< + typeof useGetAccountListCoachesLazyQuery +>; +export type GetAccountListCoachesQueryResult = Apollo.QueryResult< + GetAccountListCoachesQuery, + GetAccountListCoachesQueryVariables +>; export const DeleteAccountListCoachDocument = gql` - mutation DeleteAccountListCoach($input: AccountListCoachDeleteMutationInput!) { - deleteAccountListCoach(input: $input) { - id + mutation DeleteAccountListCoach( + $input: AccountListCoachDeleteMutationInput! + ) { + deleteAccountListCoach(input: $input) { + id + } } +`; +export type DeleteAccountListCoachMutationFn = Apollo.MutationFunction< + DeleteAccountListCoachMutation, + DeleteAccountListCoachMutationVariables +>; +export function useDeleteAccountListCoachMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteAccountListCoachMutation, + DeleteAccountListCoachMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteAccountListCoachMutation, + DeleteAccountListCoachMutationVariables + >(DeleteAccountListCoachDocument, options); } - `; -export type DeleteAccountListCoachMutationFn = Apollo.MutationFunction; -export function useDeleteAccountListCoachMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteAccountListCoachDocument, options); - } -export type DeleteAccountListCoachMutationHookResult = ReturnType; -export type DeleteAccountListCoachMutationResult = Apollo.MutationResult; -export type DeleteAccountListCoachMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteAccountListCoachMutationHookResult = ReturnType< + typeof useDeleteAccountListCoachMutation +>; +export type DeleteAccountListCoachMutationResult = + Apollo.MutationResult; +export type DeleteAccountListCoachMutationOptions = Apollo.BaseMutationOptions< + DeleteAccountListCoachMutation, + DeleteAccountListCoachMutationVariables +>; diff --git a/src/components/Settings/Organization/AccountLists/AccountListRow/AccountListInvites/DeleteAccountListInvites.generated.ts b/src/components/Settings/Organization/AccountLists/AccountListRow/AccountListInvites/DeleteAccountListInvites.generated.ts index f0f8264ea..38ba7afa2 100644 --- a/src/components/Settings/Organization/AccountLists/AccountListRow/AccountListInvites/DeleteAccountListInvites.generated.ts +++ b/src/components/Settings/Organization/AccountLists/AccountListRow/AccountListInvites/DeleteAccountListInvites.generated.ts @@ -7,28 +7,47 @@ export type AdminDeleteOrganizationInviteMutationVariables = Types.Exact<{ input: Types.AdminDeleteOrganizationInviteInput; }>; - -export type AdminDeleteOrganizationInviteMutation = ( - { __typename?: 'Mutation' } - & { adminDeleteOrganizationInvite: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); - +export type AdminDeleteOrganizationInviteMutation = { + __typename?: 'Mutation'; +} & { + adminDeleteOrganizationInvite: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export const AdminDeleteOrganizationInviteDocument = gql` - mutation AdminDeleteOrganizationInvite($input: AdminDeleteOrganizationInviteInput!) { - adminDeleteOrganizationInvite(input: $input) { - success + mutation AdminDeleteOrganizationInvite( + $input: AdminDeleteOrganizationInviteInput! + ) { + adminDeleteOrganizationInvite(input: $input) { + success + } } +`; +export type AdminDeleteOrganizationInviteMutationFn = Apollo.MutationFunction< + AdminDeleteOrganizationInviteMutation, + AdminDeleteOrganizationInviteMutationVariables +>; +export function useAdminDeleteOrganizationInviteMutation( + baseOptions?: Apollo.MutationHookOptions< + AdminDeleteOrganizationInviteMutation, + AdminDeleteOrganizationInviteMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + AdminDeleteOrganizationInviteMutation, + AdminDeleteOrganizationInviteMutationVariables + >(AdminDeleteOrganizationInviteDocument, options); } - `; -export type AdminDeleteOrganizationInviteMutationFn = Apollo.MutationFunction; -export function useAdminDeleteOrganizationInviteMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AdminDeleteOrganizationInviteDocument, options); - } -export type AdminDeleteOrganizationInviteMutationHookResult = ReturnType; -export type AdminDeleteOrganizationInviteMutationResult = Apollo.MutationResult; -export type AdminDeleteOrganizationInviteMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AdminDeleteOrganizationInviteMutationHookResult = ReturnType< + typeof useAdminDeleteOrganizationInviteMutation +>; +export type AdminDeleteOrganizationInviteMutationResult = + Apollo.MutationResult; +export type AdminDeleteOrganizationInviteMutationOptions = + Apollo.BaseMutationOptions< + AdminDeleteOrganizationInviteMutation, + AdminDeleteOrganizationInviteMutationVariables + >; diff --git a/src/components/Settings/Organization/AccountLists/AccountListRow/DeleteAccountListsItems.generated.ts b/src/components/Settings/Organization/AccountLists/AccountListRow/DeleteAccountListsItems.generated.ts index cd6356918..f3bf3e71f 100644 --- a/src/components/Settings/Organization/AccountLists/AccountListRow/DeleteAccountListsItems.generated.ts +++ b/src/components/Settings/Organization/AccountLists/AccountListRow/DeleteAccountListsItems.generated.ts @@ -7,56 +7,95 @@ export type AdminDeleteOrganizationUserMutationVariables = Types.Exact<{ input: Types.AdminDeleteOrganizationUserInput; }>; - -export type AdminDeleteOrganizationUserMutation = ( - { __typename?: 'Mutation' } - & { adminDeleteOrganizationUser: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); +export type AdminDeleteOrganizationUserMutation = { + __typename?: 'Mutation'; +} & { + adminDeleteOrganizationUser: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export type AdminDeleteOrganizationCoachMutationVariables = Types.Exact<{ input: Types.AdminDeleteOrganizationCoachInput; }>; - -export type AdminDeleteOrganizationCoachMutation = ( - { __typename?: 'Mutation' } - & { adminDeleteOrganizationCoach: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); - +export type AdminDeleteOrganizationCoachMutation = { + __typename?: 'Mutation'; +} & { + adminDeleteOrganizationCoach: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export const AdminDeleteOrganizationUserDocument = gql` - mutation AdminDeleteOrganizationUser($input: AdminDeleteOrganizationUserInput!) { - adminDeleteOrganizationUser(input: $input) { - success + mutation AdminDeleteOrganizationUser( + $input: AdminDeleteOrganizationUserInput! + ) { + adminDeleteOrganizationUser(input: $input) { + success + } } +`; +export type AdminDeleteOrganizationUserMutationFn = Apollo.MutationFunction< + AdminDeleteOrganizationUserMutation, + AdminDeleteOrganizationUserMutationVariables +>; +export function useAdminDeleteOrganizationUserMutation( + baseOptions?: Apollo.MutationHookOptions< + AdminDeleteOrganizationUserMutation, + AdminDeleteOrganizationUserMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + AdminDeleteOrganizationUserMutation, + AdminDeleteOrganizationUserMutationVariables + >(AdminDeleteOrganizationUserDocument, options); } - `; -export type AdminDeleteOrganizationUserMutationFn = Apollo.MutationFunction; -export function useAdminDeleteOrganizationUserMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AdminDeleteOrganizationUserDocument, options); - } -export type AdminDeleteOrganizationUserMutationHookResult = ReturnType; -export type AdminDeleteOrganizationUserMutationResult = Apollo.MutationResult; -export type AdminDeleteOrganizationUserMutationOptions = Apollo.BaseMutationOptions; +export type AdminDeleteOrganizationUserMutationHookResult = ReturnType< + typeof useAdminDeleteOrganizationUserMutation +>; +export type AdminDeleteOrganizationUserMutationResult = + Apollo.MutationResult; +export type AdminDeleteOrganizationUserMutationOptions = + Apollo.BaseMutationOptions< + AdminDeleteOrganizationUserMutation, + AdminDeleteOrganizationUserMutationVariables + >; export const AdminDeleteOrganizationCoachDocument = gql` - mutation AdminDeleteOrganizationCoach($input: AdminDeleteOrganizationCoachInput!) { - adminDeleteOrganizationCoach(input: $input) { - success + mutation AdminDeleteOrganizationCoach( + $input: AdminDeleteOrganizationCoachInput! + ) { + adminDeleteOrganizationCoach(input: $input) { + success + } } +`; +export type AdminDeleteOrganizationCoachMutationFn = Apollo.MutationFunction< + AdminDeleteOrganizationCoachMutation, + AdminDeleteOrganizationCoachMutationVariables +>; +export function useAdminDeleteOrganizationCoachMutation( + baseOptions?: Apollo.MutationHookOptions< + AdminDeleteOrganizationCoachMutation, + AdminDeleteOrganizationCoachMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + AdminDeleteOrganizationCoachMutation, + AdminDeleteOrganizationCoachMutationVariables + >(AdminDeleteOrganizationCoachDocument, options); } - `; -export type AdminDeleteOrganizationCoachMutationFn = Apollo.MutationFunction; -export function useAdminDeleteOrganizationCoachMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(AdminDeleteOrganizationCoachDocument, options); - } -export type AdminDeleteOrganizationCoachMutationHookResult = ReturnType; -export type AdminDeleteOrganizationCoachMutationResult = Apollo.MutationResult; -export type AdminDeleteOrganizationCoachMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type AdminDeleteOrganizationCoachMutationHookResult = ReturnType< + typeof useAdminDeleteOrganizationCoachMutation +>; +export type AdminDeleteOrganizationCoachMutationResult = + Apollo.MutationResult; +export type AdminDeleteOrganizationCoachMutationOptions = + Apollo.BaseMutationOptions< + AdminDeleteOrganizationCoachMutation, + AdminDeleteOrganizationCoachMutationVariables + >; diff --git a/src/components/Settings/Organization/AccountLists/AccountLists.generated.ts b/src/components/Settings/Organization/AccountLists/AccountLists.generated.ts index 0ed5fc09e..ab6865490 100644 --- a/src/components/Settings/Organization/AccountLists/AccountLists.generated.ts +++ b/src/components/Settings/Organization/AccountLists/AccountLists.generated.ts @@ -7,131 +7,217 @@ export type SearchOrganizationsAccountListsQueryVariables = Types.Exact<{ input: Types.SearchOrganizationsAccountListsInput; }>; - -export type SearchOrganizationsAccountListsQuery = ( - { __typename?: 'Query' } - & { searchOrganizationsAccountLists: ( - { __typename?: 'SearchOrganizationsAccountListsResponse' } - & { pagination: ( - { __typename?: 'Pagination' } - & Pick - ), accountLists: Array - & { designationAccounts?: Types.Maybe - & { organization?: Types.Maybe<( - { __typename?: 'AccountListOrganization' } - & Pick - )> } - )>>>, accountListUsersInvites?: Types.Maybe - & { invitedByUser?: Types.Maybe<( - { __typename?: 'AccountListInvitedByUser' } - & Pick - )> } - )>>>, accountListUsers?: Types.Maybe - & { userEmailAddresses?: Types.Maybe - )>>> } - )>>>, accountListCoaches?: Types.Maybe - & { coachEmailAddresses?: Types.Maybe - )>>> } - )>>>, accountListCoachInvites?: Types.Maybe - & { invitedByUser?: Types.Maybe<( - { __typename?: 'AccountListInvitedByUser' } - & Pick - )> } - )>>> } - )>> } - ) } -); - +export type SearchOrganizationsAccountListsQuery = { __typename?: 'Query' } & { + searchOrganizationsAccountLists: { + __typename?: 'SearchOrganizationsAccountListsResponse'; + } & { + pagination: { __typename?: 'Pagination' } & Pick< + Types.Pagination, + 'page' | 'perPage' | 'totalCount' | 'totalPages' + >; + accountLists: Array< + Types.Maybe< + { __typename?: 'OrganizationsAccountList' } & Pick< + Types.OrganizationsAccountList, + 'name' | 'id' + > & { + designationAccounts?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListDesignationAccounts' } & Pick< + Types.AccountListDesignationAccounts, + 'id' | 'displayName' + > & { + organization?: Types.Maybe< + { __typename?: 'AccountListOrganization' } & Pick< + Types.AccountListOrganization, + 'id' | 'name' + > + >; + } + > + > + >; + accountListUsersInvites?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListInvites' } & Pick< + Types.AccountListInvites, + 'id' | 'inviteUserAs' | 'recipientEmail' + > & { + invitedByUser?: Types.Maybe< + { __typename?: 'AccountListInvitedByUser' } & Pick< + Types.AccountListInvitedByUser, + 'id' | 'firstName' | 'lastName' + > + >; + } + > + > + >; + accountListUsers?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListUsers' } & Pick< + Types.AccountListUsers, + 'id' | 'userFirstName' | 'userLastName' | 'allowDeletion' + > & { + userEmailAddresses?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListEmailAddresses' } & Pick< + Types.AccountListEmailAddresses, + 'id' | 'email' | 'primary' + > + > + > + >; + } + > + > + >; + accountListCoaches?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'OrganizationAccountListCoaches' } & Pick< + Types.OrganizationAccountListCoaches, + 'id' | 'coachFirstName' | 'coachLastName' + > & { + coachEmailAddresses?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListEmailAddresses' } & Pick< + Types.AccountListEmailAddresses, + 'id' | 'email' | 'primary' + > + > + > + >; + } + > + > + >; + accountListCoachInvites?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'AccountListInvites' } & Pick< + Types.AccountListInvites, + 'id' | 'inviteUserAs' | 'recipientEmail' + > & { + invitedByUser?: Types.Maybe< + { __typename?: 'AccountListInvitedByUser' } & Pick< + Types.AccountListInvitedByUser, + 'id' | 'firstName' | 'lastName' + > + >; + } + > + > + >; + } + > + >; + }; +}; export const SearchOrganizationsAccountListsDocument = gql` - query SearchOrganizationsAccountLists($input: SearchOrganizationsAccountListsInput!) { - searchOrganizationsAccountLists(input: $input) { - pagination { - page - perPage - totalCount - totalPages - } - accountLists { - name - id - designationAccounts { + query SearchOrganizationsAccountLists( + $input: SearchOrganizationsAccountListsInput! + ) { + searchOrganizationsAccountLists(input: $input) { + pagination { + page + perPage + totalCount + totalPages + } + accountLists { + name id - displayName - organization { + designationAccounts { id - name + displayName + organization { + id + name + } } - } - accountListUsersInvites { - id - inviteUserAs - recipientEmail - invitedByUser { + accountListUsersInvites { id - firstName - lastName + inviteUserAs + recipientEmail + invitedByUser { + id + firstName + lastName + } } - } - accountListUsers { - id - userFirstName - userLastName - allowDeletion - userEmailAddresses { + accountListUsers { id - email - primary + userFirstName + userLastName + allowDeletion + userEmailAddresses { + id + email + primary + } } - } - accountListCoaches { - id - coachFirstName - coachLastName - coachEmailAddresses { + accountListCoaches { id - email - primary + coachFirstName + coachLastName + coachEmailAddresses { + id + email + primary + } } - } - accountListCoachInvites { - id - inviteUserAs - recipientEmail - invitedByUser { + accountListCoachInvites { id - firstName - lastName + inviteUserAs + recipientEmail + invitedByUser { + id + firstName + lastName + } } } } } +`; +export function useSearchOrganizationsAccountListsQuery( + baseOptions: Apollo.QueryHookOptions< + SearchOrganizationsAccountListsQuery, + SearchOrganizationsAccountListsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + SearchOrganizationsAccountListsQuery, + SearchOrganizationsAccountListsQueryVariables + >(SearchOrganizationsAccountListsDocument, options); } - `; -export function useSearchOrganizationsAccountListsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(SearchOrganizationsAccountListsDocument, options); - } -export function useSearchOrganizationsAccountListsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(SearchOrganizationsAccountListsDocument, options); - } -export type SearchOrganizationsAccountListsQueryHookResult = ReturnType; -export type SearchOrganizationsAccountListsLazyQueryHookResult = ReturnType; -export type SearchOrganizationsAccountListsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useSearchOrganizationsAccountListsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + SearchOrganizationsAccountListsQuery, + SearchOrganizationsAccountListsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + SearchOrganizationsAccountListsQuery, + SearchOrganizationsAccountListsQueryVariables + >(SearchOrganizationsAccountListsDocument, options); +} +export type SearchOrganizationsAccountListsQueryHookResult = ReturnType< + typeof useSearchOrganizationsAccountListsQuery +>; +export type SearchOrganizationsAccountListsLazyQueryHookResult = ReturnType< + typeof useSearchOrganizationsAccountListsLazyQuery +>; +export type SearchOrganizationsAccountListsQueryResult = Apollo.QueryResult< + SearchOrganizationsAccountListsQuery, + SearchOrganizationsAccountListsQueryVariables +>; diff --git a/src/components/Settings/Organization/Contacts/Contact.generated.ts b/src/components/Settings/Organization/Contacts/Contact.generated.ts index 38fa8ff10..d28be6b7c 100644 --- a/src/components/Settings/Organization/Contacts/Contact.generated.ts +++ b/src/components/Settings/Organization/Contacts/Contact.generated.ts @@ -7,136 +7,227 @@ export type DeleteOrganizationContactMutationVariables = Types.Exact<{ input: Types.DeleteOrganizationContactInput; }>; - -export type DeleteOrganizationContactMutation = ( - { __typename?: 'Mutation' } - & { deleteOrganizationContact: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); +export type DeleteOrganizationContactMutation = { __typename?: 'Mutation' } & { + deleteOrganizationContact: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export type SearchOrganizationsContactsQueryVariables = Types.Exact<{ input: Types.SearchOrganizationsContactsInput; }>; - -export type SearchOrganizationsContactsQuery = ( - { __typename?: 'Query' } - & { searchOrganizationsContacts: ( - { __typename?: 'SearchOrganizationsContactsResponse' } - & { contacts: Array - & { people: Array - & { emailAddresses?: Types.Maybe - )>>>, phoneNumbers?: Types.Maybe - )>>> } - )>>, accountList?: Types.Maybe<( - { __typename?: 'ContactPeopleAccountLists' } - & Pick - & { accountListUsers?: Types.Maybe - & { emailAddresses?: Types.Maybe - )>>> } - )>>> } - )>, addresses: Array - )>> } - )>>, pagination: ( - { __typename?: 'Pagination' } - & Pick - ) } - ) } -); - +export type SearchOrganizationsContactsQuery = { __typename?: 'Query' } & { + searchOrganizationsContacts: { + __typename?: 'SearchOrganizationsContactsResponse'; + } & { + contacts: Array< + Types.Maybe< + { __typename?: 'OrganizationsContact' } & Pick< + Types.OrganizationsContact, + 'allowDeletion' | 'id' | 'name' | 'squareAvatar' + > & { + people: Array< + Types.Maybe< + { __typename?: 'ContactPeople' } & Pick< + Types.ContactPeople, + 'firstName' | 'lastName' | 'deceased' + > & { + emailAddresses?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'ContactPeopleEmailAddresses' } & Pick< + Types.ContactPeopleEmailAddresses, + 'email' | 'primary' | 'historic' + > + > + > + >; + phoneNumbers?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'ContactPeoplePhoneNumbers' } & Pick< + Types.ContactPeoplePhoneNumbers, + 'number' | 'primary' | 'historic' + > + > + > + >; + } + > + >; + accountList?: Types.Maybe< + { __typename?: 'ContactPeopleAccountLists' } & Pick< + Types.ContactPeopleAccountLists, + 'name' + > & { + accountListUsers?: Types.Maybe< + Array< + Types.Maybe< + { + __typename?: 'ContactPeopleAccountListsUsers'; + } & Pick< + Types.ContactPeopleAccountListsUsers, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses?: Types.Maybe< + Array< + Types.Maybe< + { + __typename?: 'ContactPeopleEmailAddresses'; + } & Pick< + Types.ContactPeopleEmailAddresses, + 'email' | 'primary' | 'historic' + > + > + > + >; + } + > + > + >; + } + >; + addresses: Array< + Types.Maybe< + { __typename?: 'ContactAddresses' } & Pick< + Types.ContactAddresses, + | 'primaryMailingAddress' + | 'street' + | 'city' + | 'state' + | 'postalCode' + > + > + >; + } + > + >; + pagination: { __typename?: 'Pagination' } & Pick< + Types.Pagination, + 'page' | 'perPage' | 'totalCount' | 'totalPages' + >; + }; +}; export const DeleteOrganizationContactDocument = gql` - mutation DeleteOrganizationContact($input: DeleteOrganizationContactInput!) { - deleteOrganizationContact(input: $input) { - success + mutation DeleteOrganizationContact($input: DeleteOrganizationContactInput!) { + deleteOrganizationContact(input: $input) { + success + } } +`; +export type DeleteOrganizationContactMutationFn = Apollo.MutationFunction< + DeleteOrganizationContactMutation, + DeleteOrganizationContactMutationVariables +>; +export function useDeleteOrganizationContactMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteOrganizationContactMutation, + DeleteOrganizationContactMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteOrganizationContactMutation, + DeleteOrganizationContactMutationVariables + >(DeleteOrganizationContactDocument, options); } - `; -export type DeleteOrganizationContactMutationFn = Apollo.MutationFunction; -export function useDeleteOrganizationContactMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteOrganizationContactDocument, options); - } -export type DeleteOrganizationContactMutationHookResult = ReturnType; -export type DeleteOrganizationContactMutationResult = Apollo.MutationResult; -export type DeleteOrganizationContactMutationOptions = Apollo.BaseMutationOptions; +export type DeleteOrganizationContactMutationHookResult = ReturnType< + typeof useDeleteOrganizationContactMutation +>; +export type DeleteOrganizationContactMutationResult = + Apollo.MutationResult; +export type DeleteOrganizationContactMutationOptions = + Apollo.BaseMutationOptions< + DeleteOrganizationContactMutation, + DeleteOrganizationContactMutationVariables + >; export const SearchOrganizationsContactsDocument = gql` - query SearchOrganizationsContacts($input: SearchOrganizationsContactsInput!) { - searchOrganizationsContacts(input: $input) { - contacts { - allowDeletion - id - name - squareAvatar - people { - firstName - lastName - deceased - emailAddresses { - email - primary - historic - } - phoneNumbers { - number - primary - historic - } - } - accountList { + query SearchOrganizationsContacts($input: SearchOrganizationsContactsInput!) { + searchOrganizationsContacts(input: $input) { + contacts { + allowDeletion + id name - accountListUsers { - id + squareAvatar + people { firstName lastName + deceased emailAddresses { email primary historic } + phoneNumbers { + number + primary + historic + } + } + accountList { + name + accountListUsers { + id + firstName + lastName + emailAddresses { + email + primary + historic + } + } + } + addresses { + primaryMailingAddress + street + city + state + postalCode } } - addresses { - primaryMailingAddress - street - city - state - postalCode + pagination { + page + perPage + totalCount + totalPages } } - pagination { - page - perPage - totalCount - totalPages - } } +`; +export function useSearchOrganizationsContactsQuery( + baseOptions: Apollo.QueryHookOptions< + SearchOrganizationsContactsQuery, + SearchOrganizationsContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + SearchOrganizationsContactsQuery, + SearchOrganizationsContactsQueryVariables + >(SearchOrganizationsContactsDocument, options); } - `; -export function useSearchOrganizationsContactsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(SearchOrganizationsContactsDocument, options); - } -export function useSearchOrganizationsContactsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(SearchOrganizationsContactsDocument, options); - } -export type SearchOrganizationsContactsQueryHookResult = ReturnType; -export type SearchOrganizationsContactsLazyQueryHookResult = ReturnType; -export type SearchOrganizationsContactsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useSearchOrganizationsContactsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + SearchOrganizationsContactsQuery, + SearchOrganizationsContactsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + SearchOrganizationsContactsQuery, + SearchOrganizationsContactsQueryVariables + >(SearchOrganizationsContactsDocument, options); +} +export type SearchOrganizationsContactsQueryHookResult = ReturnType< + typeof useSearchOrganizationsContactsQuery +>; +export type SearchOrganizationsContactsLazyQueryHookResult = ReturnType< + typeof useSearchOrganizationsContactsLazyQuery +>; +export type SearchOrganizationsContactsQueryResult = Apollo.QueryResult< + SearchOrganizationsContactsQuery, + SearchOrganizationsContactsQueryVariables +>; diff --git a/src/components/Settings/Organization/ManageOrganizationAccess/ManageOrganizationAccess.generated.ts b/src/components/Settings/Organization/ManageOrganizationAccess/ManageOrganizationAccess.generated.ts index 02771e926..3d3b761e2 100644 --- a/src/components/Settings/Organization/ManageOrganizationAccess/ManageOrganizationAccess.generated.ts +++ b/src/components/Settings/Organization/ManageOrganizationAccess/ManageOrganizationAccess.generated.ts @@ -7,158 +7,265 @@ export type OrganizationAdminsQueryVariables = Types.Exact<{ input: Types.OrganizationAdminsInput; }>; - -export type OrganizationAdminsQuery = ( - { __typename?: 'Query' } - & { organizationAdmins: Array - )>> } -); +export type OrganizationAdminsQuery = { __typename?: 'Query' } & { + organizationAdmins: Array< + Types.Maybe< + { __typename?: 'AdminList' } & Pick< + Types.AdminList, + 'id' | 'firstName' | 'lastName' + > + > + >; +}; export type OrganizationInvitesQueryVariables = Types.Exact<{ input: Types.OrganizationInvitesInput; }>; - -export type OrganizationInvitesQuery = ( - { __typename?: 'Query' } - & { organizationInvites: Array - )>> } -); +export type OrganizationInvitesQuery = { __typename?: 'Query' } & { + organizationInvites: Array< + Types.Maybe< + { __typename?: 'Invite' } & Pick< + Types.Invite, + | 'id' + | 'acceptedAt' + | 'createdAt' + | 'code' + | 'inviteUserAs' + | 'recipientEmail' + > + > + >; +}; export type DestroyOrganizationAdminMutationVariables = Types.Exact<{ input: Types.DeleteOrganizationAdminInput; }>; - -export type DestroyOrganizationAdminMutation = ( - { __typename?: 'Mutation' } - & { destroyOrganizationAdmin: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); +export type DestroyOrganizationAdminMutation = { __typename?: 'Mutation' } & { + destroyOrganizationAdmin: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export type DestroyOrganizationInviteMutationVariables = Types.Exact<{ input: Types.DeleteOrganizationInviteInput; }>; - -export type DestroyOrganizationInviteMutation = ( - { __typename?: 'Mutation' } - & { destroyOrganizationInvite: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); +export type DestroyOrganizationInviteMutation = { __typename?: 'Mutation' } & { + destroyOrganizationInvite: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export type CreateOrganizationInviteMutationVariables = Types.Exact<{ input: Types.CreateOrganizationInviteInput; }>; - -export type CreateOrganizationInviteMutation = ( - { __typename?: 'Mutation' } - & { createOrganizationInvite: ( - { __typename?: 'Invite' } - & Pick - ) } -); - +export type CreateOrganizationInviteMutation = { __typename?: 'Mutation' } & { + createOrganizationInvite: { __typename?: 'Invite' } & Pick< + Types.Invite, + | 'id' + | 'recipientEmail' + | 'inviteUserAs' + | 'acceptedAt' + | 'code' + | 'createdAt' + >; +}; export const OrganizationAdminsDocument = gql` - query OrganizationAdmins($input: OrganizationAdminsInput!) { - organizationAdmins(input: $input) { - id - firstName - lastName + query OrganizationAdmins($input: OrganizationAdminsInput!) { + organizationAdmins(input: $input) { + id + firstName + lastName + } } +`; +export function useOrganizationAdminsQuery( + baseOptions: Apollo.QueryHookOptions< + OrganizationAdminsQuery, + OrganizationAdminsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + OrganizationAdminsQuery, + OrganizationAdminsQueryVariables + >(OrganizationAdminsDocument, options); } - `; -export function useOrganizationAdminsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrganizationAdminsDocument, options); - } -export function useOrganizationAdminsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrganizationAdminsDocument, options); - } -export type OrganizationAdminsQueryHookResult = ReturnType; -export type OrganizationAdminsLazyQueryHookResult = ReturnType; -export type OrganizationAdminsQueryResult = Apollo.QueryResult; +export function useOrganizationAdminsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + OrganizationAdminsQuery, + OrganizationAdminsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + OrganizationAdminsQuery, + OrganizationAdminsQueryVariables + >(OrganizationAdminsDocument, options); +} +export type OrganizationAdminsQueryHookResult = ReturnType< + typeof useOrganizationAdminsQuery +>; +export type OrganizationAdminsLazyQueryHookResult = ReturnType< + typeof useOrganizationAdminsLazyQuery +>; +export type OrganizationAdminsQueryResult = Apollo.QueryResult< + OrganizationAdminsQuery, + OrganizationAdminsQueryVariables +>; export const OrganizationInvitesDocument = gql` - query OrganizationInvites($input: OrganizationInvitesInput!) { - organizationInvites(input: $input) { - id - acceptedAt - createdAt - code - inviteUserAs - recipientEmail + query OrganizationInvites($input: OrganizationInvitesInput!) { + organizationInvites(input: $input) { + id + acceptedAt + createdAt + code + inviteUserAs + recipientEmail + } } +`; +export function useOrganizationInvitesQuery( + baseOptions: Apollo.QueryHookOptions< + OrganizationInvitesQuery, + OrganizationInvitesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + OrganizationInvitesQuery, + OrganizationInvitesQueryVariables + >(OrganizationInvitesDocument, options); +} +export function useOrganizationInvitesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + OrganizationInvitesQuery, + OrganizationInvitesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + OrganizationInvitesQuery, + OrganizationInvitesQueryVariables + >(OrganizationInvitesDocument, options); } - `; -export function useOrganizationInvitesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(OrganizationInvitesDocument, options); - } -export function useOrganizationInvitesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(OrganizationInvitesDocument, options); - } -export type OrganizationInvitesQueryHookResult = ReturnType; -export type OrganizationInvitesLazyQueryHookResult = ReturnType; -export type OrganizationInvitesQueryResult = Apollo.QueryResult; +export type OrganizationInvitesQueryHookResult = ReturnType< + typeof useOrganizationInvitesQuery +>; +export type OrganizationInvitesLazyQueryHookResult = ReturnType< + typeof useOrganizationInvitesLazyQuery +>; +export type OrganizationInvitesQueryResult = Apollo.QueryResult< + OrganizationInvitesQuery, + OrganizationInvitesQueryVariables +>; export const DestroyOrganizationAdminDocument = gql` - mutation DestroyOrganizationAdmin($input: DeleteOrganizationAdminInput!) { - destroyOrganizationAdmin(input: $input) { - success + mutation DestroyOrganizationAdmin($input: DeleteOrganizationAdminInput!) { + destroyOrganizationAdmin(input: $input) { + success + } } +`; +export type DestroyOrganizationAdminMutationFn = Apollo.MutationFunction< + DestroyOrganizationAdminMutation, + DestroyOrganizationAdminMutationVariables +>; +export function useDestroyOrganizationAdminMutation( + baseOptions?: Apollo.MutationHookOptions< + DestroyOrganizationAdminMutation, + DestroyOrganizationAdminMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DestroyOrganizationAdminMutation, + DestroyOrganizationAdminMutationVariables + >(DestroyOrganizationAdminDocument, options); } - `; -export type DestroyOrganizationAdminMutationFn = Apollo.MutationFunction; -export function useDestroyOrganizationAdminMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DestroyOrganizationAdminDocument, options); - } -export type DestroyOrganizationAdminMutationHookResult = ReturnType; -export type DestroyOrganizationAdminMutationResult = Apollo.MutationResult; -export type DestroyOrganizationAdminMutationOptions = Apollo.BaseMutationOptions; +export type DestroyOrganizationAdminMutationHookResult = ReturnType< + typeof useDestroyOrganizationAdminMutation +>; +export type DestroyOrganizationAdminMutationResult = + Apollo.MutationResult; +export type DestroyOrganizationAdminMutationOptions = + Apollo.BaseMutationOptions< + DestroyOrganizationAdminMutation, + DestroyOrganizationAdminMutationVariables + >; export const DestroyOrganizationInviteDocument = gql` - mutation DestroyOrganizationInvite($input: DeleteOrganizationInviteInput!) { - destroyOrganizationInvite(input: $input) { - success + mutation DestroyOrganizationInvite($input: DeleteOrganizationInviteInput!) { + destroyOrganizationInvite(input: $input) { + success + } } +`; +export type DestroyOrganizationInviteMutationFn = Apollo.MutationFunction< + DestroyOrganizationInviteMutation, + DestroyOrganizationInviteMutationVariables +>; +export function useDestroyOrganizationInviteMutation( + baseOptions?: Apollo.MutationHookOptions< + DestroyOrganizationInviteMutation, + DestroyOrganizationInviteMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DestroyOrganizationInviteMutation, + DestroyOrganizationInviteMutationVariables + >(DestroyOrganizationInviteDocument, options); } - `; -export type DestroyOrganizationInviteMutationFn = Apollo.MutationFunction; -export function useDestroyOrganizationInviteMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DestroyOrganizationInviteDocument, options); - } -export type DestroyOrganizationInviteMutationHookResult = ReturnType; -export type DestroyOrganizationInviteMutationResult = Apollo.MutationResult; -export type DestroyOrganizationInviteMutationOptions = Apollo.BaseMutationOptions; +export type DestroyOrganizationInviteMutationHookResult = ReturnType< + typeof useDestroyOrganizationInviteMutation +>; +export type DestroyOrganizationInviteMutationResult = + Apollo.MutationResult; +export type DestroyOrganizationInviteMutationOptions = + Apollo.BaseMutationOptions< + DestroyOrganizationInviteMutation, + DestroyOrganizationInviteMutationVariables + >; export const CreateOrganizationInviteDocument = gql` - mutation CreateOrganizationInvite($input: CreateOrganizationInviteInput!) { - createOrganizationInvite(input: $input) { - id - recipientEmail - inviteUserAs - acceptedAt - code - createdAt + mutation CreateOrganizationInvite($input: CreateOrganizationInviteInput!) { + createOrganizationInvite(input: $input) { + id + recipientEmail + inviteUserAs + acceptedAt + code + createdAt + } } +`; +export type CreateOrganizationInviteMutationFn = Apollo.MutationFunction< + CreateOrganizationInviteMutation, + CreateOrganizationInviteMutationVariables +>; +export function useCreateOrganizationInviteMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateOrganizationInviteMutation, + CreateOrganizationInviteMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateOrganizationInviteMutation, + CreateOrganizationInviteMutationVariables + >(CreateOrganizationInviteDocument, options); } - `; -export type CreateOrganizationInviteMutationFn = Apollo.MutationFunction; -export function useCreateOrganizationInviteMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateOrganizationInviteDocument, options); - } -export type CreateOrganizationInviteMutationHookResult = ReturnType; -export type CreateOrganizationInviteMutationResult = Apollo.MutationResult; -export type CreateOrganizationInviteMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateOrganizationInviteMutationHookResult = ReturnType< + typeof useCreateOrganizationInviteMutation +>; +export type CreateOrganizationInviteMutationResult = + Apollo.MutationResult; +export type CreateOrganizationInviteMutationOptions = + Apollo.BaseMutationOptions< + CreateOrganizationInviteMutation, + CreateOrganizationInviteMutationVariables + >; diff --git a/src/components/Settings/integrations/Chalkline/SendToChalkline.generated.ts b/src/components/Settings/integrations/Chalkline/SendToChalkline.generated.ts index 207875655..9d9170fc0 100644 --- a/src/components/Settings/integrations/Chalkline/SendToChalkline.generated.ts +++ b/src/components/Settings/integrations/Chalkline/SendToChalkline.generated.ts @@ -7,23 +7,38 @@ export type SendToChalklineMutationVariables = Types.Exact<{ input: Types.SendToChalklineInput; }>; - -export type SendToChalklineMutation = ( - { __typename?: 'Mutation' } - & Pick -); - +export type SendToChalklineMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'sendToChalkline' +>; export const SendToChalklineDocument = gql` - mutation SendToChalkline($input: SendToChalklineInput!) { - sendToChalkline(input: $input) + mutation SendToChalkline($input: SendToChalklineInput!) { + sendToChalkline(input: $input) + } +`; +export type SendToChalklineMutationFn = Apollo.MutationFunction< + SendToChalklineMutation, + SendToChalklineMutationVariables +>; +export function useSendToChalklineMutation( + baseOptions?: Apollo.MutationHookOptions< + SendToChalklineMutation, + SendToChalklineMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SendToChalklineMutation, + SendToChalklineMutationVariables + >(SendToChalklineDocument, options); } - `; -export type SendToChalklineMutationFn = Apollo.MutationFunction; -export function useSendToChalklineMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SendToChalklineDocument, options); - } -export type SendToChalklineMutationHookResult = ReturnType; -export type SendToChalklineMutationResult = Apollo.MutationResult; -export type SendToChalklineMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SendToChalklineMutationHookResult = ReturnType< + typeof useSendToChalklineMutation +>; +export type SendToChalklineMutationResult = + Apollo.MutationResult; +export type SendToChalklineMutationOptions = Apollo.BaseMutationOptions< + SendToChalklineMutation, + SendToChalklineMutationVariables +>; diff --git a/src/components/Settings/integrations/Google/GoogleAccounts.generated.ts b/src/components/Settings/integrations/Google/GoogleAccounts.generated.ts index 309f98ef1..80d0b81ed 100644 --- a/src/components/Settings/integrations/Google/GoogleAccounts.generated.ts +++ b/src/components/Settings/integrations/Google/GoogleAccounts.generated.ts @@ -3,88 +3,145 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GoogleAccountsQueryVariables = Types.Exact<{ [key: string]: never; }>; - +export type GoogleAccountsQueryVariables = Types.Exact<{ + [key: string]: never; +}>; -export type GoogleAccountsQuery = ( - { __typename?: 'Query' } - & { googleAccounts: Array - )>> } -); +export type GoogleAccountsQuery = { __typename?: 'Query' } & { + googleAccounts: Array< + Types.Maybe< + { __typename?: 'GoogleAccountAttributes' } & Pick< + Types.GoogleAccountAttributes, + 'email' | 'primary' | 'remoteId' | 'id' | 'tokenExpired' + > + > + >; +}; export type SyncGoogleAccountMutationVariables = Types.Exact<{ input: Types.SyncGoogleAccountInput; }>; - -export type SyncGoogleAccountMutation = ( - { __typename?: 'Mutation' } - & Pick -); +export type SyncGoogleAccountMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'syncGoogleAccount' +>; export type DeleteGoogleAccountMutationVariables = Types.Exact<{ input: Types.DeleteGoogleAccountInput; }>; - -export type DeleteGoogleAccountMutation = ( - { __typename?: 'Mutation' } - & { deleteGoogleAccount: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); - +export type DeleteGoogleAccountMutation = { __typename?: 'Mutation' } & { + deleteGoogleAccount: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export const GoogleAccountsDocument = gql` - query GoogleAccounts { - googleAccounts { - email - primary - remoteId - id - tokenExpired + query GoogleAccounts { + googleAccounts { + email + primary + remoteId + id + tokenExpired + } } +`; +export function useGoogleAccountsQuery( + baseOptions?: Apollo.QueryHookOptions< + GoogleAccountsQuery, + GoogleAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GoogleAccountsDocument, + options, + ); +} +export function useGoogleAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GoogleAccountsQuery, + GoogleAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GoogleAccountsDocument, + options, + ); } - `; -export function useGoogleAccountsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GoogleAccountsDocument, options); - } -export function useGoogleAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GoogleAccountsDocument, options); - } -export type GoogleAccountsQueryHookResult = ReturnType; -export type GoogleAccountsLazyQueryHookResult = ReturnType; -export type GoogleAccountsQueryResult = Apollo.QueryResult; +export type GoogleAccountsQueryHookResult = ReturnType< + typeof useGoogleAccountsQuery +>; +export type GoogleAccountsLazyQueryHookResult = ReturnType< + typeof useGoogleAccountsLazyQuery +>; +export type GoogleAccountsQueryResult = Apollo.QueryResult< + GoogleAccountsQuery, + GoogleAccountsQueryVariables +>; export const SyncGoogleAccountDocument = gql` - mutation SyncGoogleAccount($input: SyncGoogleAccountInput!) { - syncGoogleAccount(input: $input) + mutation SyncGoogleAccount($input: SyncGoogleAccountInput!) { + syncGoogleAccount(input: $input) + } +`; +export type SyncGoogleAccountMutationFn = Apollo.MutationFunction< + SyncGoogleAccountMutation, + SyncGoogleAccountMutationVariables +>; +export function useSyncGoogleAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SyncGoogleAccountMutation, + SyncGoogleAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SyncGoogleAccountMutation, + SyncGoogleAccountMutationVariables + >(SyncGoogleAccountDocument, options); } - `; -export type SyncGoogleAccountMutationFn = Apollo.MutationFunction; -export function useSyncGoogleAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SyncGoogleAccountDocument, options); - } -export type SyncGoogleAccountMutationHookResult = ReturnType; -export type SyncGoogleAccountMutationResult = Apollo.MutationResult; -export type SyncGoogleAccountMutationOptions = Apollo.BaseMutationOptions; +export type SyncGoogleAccountMutationHookResult = ReturnType< + typeof useSyncGoogleAccountMutation +>; +export type SyncGoogleAccountMutationResult = + Apollo.MutationResult; +export type SyncGoogleAccountMutationOptions = Apollo.BaseMutationOptions< + SyncGoogleAccountMutation, + SyncGoogleAccountMutationVariables +>; export const DeleteGoogleAccountDocument = gql` - mutation DeleteGoogleAccount($input: DeleteGoogleAccountInput!) { - deleteGoogleAccount(input: $input) { - success + mutation DeleteGoogleAccount($input: DeleteGoogleAccountInput!) { + deleteGoogleAccount(input: $input) { + success + } } +`; +export type DeleteGoogleAccountMutationFn = Apollo.MutationFunction< + DeleteGoogleAccountMutation, + DeleteGoogleAccountMutationVariables +>; +export function useDeleteGoogleAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteGoogleAccountMutation, + DeleteGoogleAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteGoogleAccountMutation, + DeleteGoogleAccountMutationVariables + >(DeleteGoogleAccountDocument, options); } - `; -export type DeleteGoogleAccountMutationFn = Apollo.MutationFunction; -export function useDeleteGoogleAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteGoogleAccountDocument, options); - } -export type DeleteGoogleAccountMutationHookResult = ReturnType; -export type DeleteGoogleAccountMutationResult = Apollo.MutationResult; -export type DeleteGoogleAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteGoogleAccountMutationHookResult = ReturnType< + typeof useDeleteGoogleAccountMutation +>; +export type DeleteGoogleAccountMutationResult = + Apollo.MutationResult; +export type DeleteGoogleAccountMutationOptions = Apollo.BaseMutationOptions< + DeleteGoogleAccountMutation, + DeleteGoogleAccountMutationVariables +>; diff --git a/src/components/Settings/integrations/Google/Modals/googleIntegrations.generated.ts b/src/components/Settings/integrations/Google/Modals/googleIntegrations.generated.ts index 6a11efb5c..cb83d2757 100644 --- a/src/components/Settings/integrations/Google/Modals/googleIntegrations.generated.ts +++ b/src/components/Settings/integrations/Google/Modals/googleIntegrations.generated.ts @@ -7,124 +7,208 @@ export type GoogleAccountIntegrationsQueryVariables = Types.Exact<{ input: Types.GoogleAccountIntegrationsInput; }>; +export type GoogleAccountIntegrationsQuery = { __typename?: 'Query' } & { + googleAccountIntegrations: Array< + Types.Maybe< + { __typename?: 'GoogleAccountIntegration' } & Pick< + Types.GoogleAccountIntegration, + | 'calendarId' + | 'calendarIntegration' + | 'calendarIntegrations' + | 'calendarName' + | 'createdAt' + | 'updatedAt' + | 'id' + | 'updatedInDbAt' + > & { + calendars: Array< + Types.Maybe< + { __typename?: 'GoogleAccountIntegrationCalendars' } & Pick< + Types.GoogleAccountIntegrationCalendars, + 'id' | 'name' + > + > + >; + } + > + >; +}; -export type GoogleAccountIntegrationsQuery = ( - { __typename?: 'Query' } - & { googleAccountIntegrations: Array - & { calendars: Array - )>> } - )>> } -); - -export type GetIntegrationActivitiesQueryVariables = Types.Exact<{ [key: string]: never; }>; - +export type GetIntegrationActivitiesQueryVariables = Types.Exact<{ + [key: string]: never; +}>; -export type GetIntegrationActivitiesQuery = ( - { __typename?: 'Query' } - & { constant: ( - { __typename?: 'Constant' } - & { activities?: Types.Maybe - )>> } - ) } -); +export type GetIntegrationActivitiesQuery = { __typename?: 'Query' } & { + constant: { __typename?: 'Constant' } & { + activities?: Types.Maybe< + Array<{ __typename?: 'IdValue' } & Pick> + >; + }; +}; export type CreateGoogleIntegrationMutationVariables = Types.Exact<{ input: Types.CreateGoogleIntegrationInput; }>; - -export type CreateGoogleIntegrationMutation = ( - { __typename?: 'Mutation' } - & { createGoogleIntegration: ( - { __typename?: 'GoogleAccountIntegration' } - & Pick - & { calendars: Array - )>> } - ) } -); - +export type CreateGoogleIntegrationMutation = { __typename?: 'Mutation' } & { + createGoogleIntegration: { __typename?: 'GoogleAccountIntegration' } & Pick< + Types.GoogleAccountIntegration, + | 'calendarId' + | 'calendarIntegration' + | 'calendarIntegrations' + | 'calendarName' + | 'createdAt' + | 'updatedAt' + | 'id' + | 'updatedInDbAt' + > & { + calendars: Array< + Types.Maybe< + { __typename?: 'GoogleAccountIntegrationCalendars' } & Pick< + Types.GoogleAccountIntegrationCalendars, + 'id' | 'name' + > + > + >; + }; +}; export const GoogleAccountIntegrationsDocument = gql` - query GoogleAccountIntegrations($input: GoogleAccountIntegrationsInput!) { - googleAccountIntegrations(input: $input) { - calendarId - calendarIntegration - calendarIntegrations - calendarName - calendars { + query GoogleAccountIntegrations($input: GoogleAccountIntegrationsInput!) { + googleAccountIntegrations(input: $input) { + calendarId + calendarIntegration + calendarIntegrations + calendarName + calendars { + id + name + } + createdAt + updatedAt id - name + updatedInDbAt } - createdAt - updatedAt - id - updatedInDbAt } +`; +export function useGoogleAccountIntegrationsQuery( + baseOptions: Apollo.QueryHookOptions< + GoogleAccountIntegrationsQuery, + GoogleAccountIntegrationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GoogleAccountIntegrationsQuery, + GoogleAccountIntegrationsQueryVariables + >(GoogleAccountIntegrationsDocument, options); } - `; -export function useGoogleAccountIntegrationsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GoogleAccountIntegrationsDocument, options); - } -export function useGoogleAccountIntegrationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GoogleAccountIntegrationsDocument, options); - } -export type GoogleAccountIntegrationsQueryHookResult = ReturnType; -export type GoogleAccountIntegrationsLazyQueryHookResult = ReturnType; -export type GoogleAccountIntegrationsQueryResult = Apollo.QueryResult; +export function useGoogleAccountIntegrationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GoogleAccountIntegrationsQuery, + GoogleAccountIntegrationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GoogleAccountIntegrationsQuery, + GoogleAccountIntegrationsQueryVariables + >(GoogleAccountIntegrationsDocument, options); +} +export type GoogleAccountIntegrationsQueryHookResult = ReturnType< + typeof useGoogleAccountIntegrationsQuery +>; +export type GoogleAccountIntegrationsLazyQueryHookResult = ReturnType< + typeof useGoogleAccountIntegrationsLazyQuery +>; +export type GoogleAccountIntegrationsQueryResult = Apollo.QueryResult< + GoogleAccountIntegrationsQuery, + GoogleAccountIntegrationsQueryVariables +>; export const GetIntegrationActivitiesDocument = gql` - query GetIntegrationActivities { - constant { - activities { - id - value + query GetIntegrationActivities { + constant { + activities { + id + value + } } } +`; +export function useGetIntegrationActivitiesQuery( + baseOptions?: Apollo.QueryHookOptions< + GetIntegrationActivitiesQuery, + GetIntegrationActivitiesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetIntegrationActivitiesQuery, + GetIntegrationActivitiesQueryVariables + >(GetIntegrationActivitiesDocument, options); } - `; -export function useGetIntegrationActivitiesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetIntegrationActivitiesDocument, options); - } -export function useGetIntegrationActivitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetIntegrationActivitiesDocument, options); - } -export type GetIntegrationActivitiesQueryHookResult = ReturnType; -export type GetIntegrationActivitiesLazyQueryHookResult = ReturnType; -export type GetIntegrationActivitiesQueryResult = Apollo.QueryResult; +export function useGetIntegrationActivitiesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetIntegrationActivitiesQuery, + GetIntegrationActivitiesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetIntegrationActivitiesQuery, + GetIntegrationActivitiesQueryVariables + >(GetIntegrationActivitiesDocument, options); +} +export type GetIntegrationActivitiesQueryHookResult = ReturnType< + typeof useGetIntegrationActivitiesQuery +>; +export type GetIntegrationActivitiesLazyQueryHookResult = ReturnType< + typeof useGetIntegrationActivitiesLazyQuery +>; +export type GetIntegrationActivitiesQueryResult = Apollo.QueryResult< + GetIntegrationActivitiesQuery, + GetIntegrationActivitiesQueryVariables +>; export const CreateGoogleIntegrationDocument = gql` - mutation CreateGoogleIntegration($input: CreateGoogleIntegrationInput!) { - createGoogleIntegration(input: $input) { - calendarId - calendarIntegration - calendarIntegrations - calendarName - calendars { + mutation CreateGoogleIntegration($input: CreateGoogleIntegrationInput!) { + createGoogleIntegration(input: $input) { + calendarId + calendarIntegration + calendarIntegrations + calendarName + calendars { + id + name + } + createdAt + updatedAt id - name + updatedInDbAt } - createdAt - updatedAt - id - updatedInDbAt } +`; +export type CreateGoogleIntegrationMutationFn = Apollo.MutationFunction< + CreateGoogleIntegrationMutation, + CreateGoogleIntegrationMutationVariables +>; +export function useCreateGoogleIntegrationMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateGoogleIntegrationMutation, + CreateGoogleIntegrationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateGoogleIntegrationMutation, + CreateGoogleIntegrationMutationVariables + >(CreateGoogleIntegrationDocument, options); } - `; -export type CreateGoogleIntegrationMutationFn = Apollo.MutationFunction; -export function useCreateGoogleIntegrationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateGoogleIntegrationDocument, options); - } -export type CreateGoogleIntegrationMutationHookResult = ReturnType; -export type CreateGoogleIntegrationMutationResult = Apollo.MutationResult; -export type CreateGoogleIntegrationMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateGoogleIntegrationMutationHookResult = ReturnType< + typeof useCreateGoogleIntegrationMutation +>; +export type CreateGoogleIntegrationMutationResult = + Apollo.MutationResult; +export type CreateGoogleIntegrationMutationOptions = Apollo.BaseMutationOptions< + CreateGoogleIntegrationMutation, + CreateGoogleIntegrationMutationVariables +>; diff --git a/src/components/Settings/integrations/Google/Modals/updateGoogleIntegration.generated.ts b/src/components/Settings/integrations/Google/Modals/updateGoogleIntegration.generated.ts index d256c7adf..ec893ce60 100644 --- a/src/components/Settings/integrations/Google/Modals/updateGoogleIntegration.generated.ts +++ b/src/components/Settings/integrations/Google/Modals/updateGoogleIntegration.generated.ts @@ -7,43 +7,69 @@ export type UpdateGoogleIntegrationMutationVariables = Types.Exact<{ input: Types.UpdateGoogleIntegrationInput; }>; - -export type UpdateGoogleIntegrationMutation = ( - { __typename?: 'Mutation' } - & { updateGoogleIntegration: ( - { __typename?: 'GoogleAccountIntegration' } - & Pick - & { calendars: Array - )>> } - ) } -); - +export type UpdateGoogleIntegrationMutation = { __typename?: 'Mutation' } & { + updateGoogleIntegration: { __typename?: 'GoogleAccountIntegration' } & Pick< + Types.GoogleAccountIntegration, + | 'calendarId' + | 'calendarIntegration' + | 'calendarIntegrations' + | 'calendarName' + | 'createdAt' + | 'updatedAt' + | 'id' + | 'updatedInDbAt' + > & { + calendars: Array< + Types.Maybe< + { __typename?: 'GoogleAccountIntegrationCalendars' } & Pick< + Types.GoogleAccountIntegrationCalendars, + 'id' | 'name' + > + > + >; + }; +}; export const UpdateGoogleIntegrationDocument = gql` - mutation UpdateGoogleIntegration($input: UpdateGoogleIntegrationInput!) { - updateGoogleIntegration(input: $input) { - calendarId - calendarIntegration - calendarIntegrations - calendarName - calendars { + mutation UpdateGoogleIntegration($input: UpdateGoogleIntegrationInput!) { + updateGoogleIntegration(input: $input) { + calendarId + calendarIntegration + calendarIntegrations + calendarName + calendars { + id + name + } + createdAt + updatedAt id - name + updatedInDbAt } - createdAt - updatedAt - id - updatedInDbAt } +`; +export type UpdateGoogleIntegrationMutationFn = Apollo.MutationFunction< + UpdateGoogleIntegrationMutation, + UpdateGoogleIntegrationMutationVariables +>; +export function useUpdateGoogleIntegrationMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateGoogleIntegrationMutation, + UpdateGoogleIntegrationMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateGoogleIntegrationMutation, + UpdateGoogleIntegrationMutationVariables + >(UpdateGoogleIntegrationDocument, options); } - `; -export type UpdateGoogleIntegrationMutationFn = Apollo.MutationFunction; -export function useUpdateGoogleIntegrationMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateGoogleIntegrationDocument, options); - } -export type UpdateGoogleIntegrationMutationHookResult = ReturnType; -export type UpdateGoogleIntegrationMutationResult = Apollo.MutationResult; -export type UpdateGoogleIntegrationMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateGoogleIntegrationMutationHookResult = ReturnType< + typeof useUpdateGoogleIntegrationMutation +>; +export type UpdateGoogleIntegrationMutationResult = + Apollo.MutationResult; +export type UpdateGoogleIntegrationMutationOptions = Apollo.BaseMutationOptions< + UpdateGoogleIntegrationMutation, + UpdateGoogleIntegrationMutationVariables +>; diff --git a/src/components/Settings/integrations/Key/Key.generated.ts b/src/components/Settings/integrations/Key/Key.generated.ts index fcace8a54..db45634cf 100644 --- a/src/components/Settings/integrations/Key/Key.generated.ts +++ b/src/components/Settings/integrations/Key/Key.generated.ts @@ -3,38 +3,58 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetKeyAccountsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetKeyAccountsQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & { keyAccounts: Array<( - { __typename?: 'KeyAccount' } - & Pick - )> } - ) } -); +export type GetKeyAccountsQueryVariables = Types.Exact<{ + [key: string]: never; +}>; +export type GetKeyAccountsQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & { + keyAccounts: Array< + { __typename?: 'KeyAccount' } & Pick + >; + }; +}; export const GetKeyAccountsDocument = gql` - query GetKeyAccounts { - user { - keyAccounts { - email + query GetKeyAccounts { + user { + keyAccounts { + email + } } } +`; +export function useGetKeyAccountsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetKeyAccountsQuery, + GetKeyAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetKeyAccountsDocument, + options, + ); } - `; -export function useGetKeyAccountsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetKeyAccountsDocument, options); - } -export function useGetKeyAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetKeyAccountsDocument, options); - } -export type GetKeyAccountsQueryHookResult = ReturnType; -export type GetKeyAccountsLazyQueryHookResult = ReturnType; -export type GetKeyAccountsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetKeyAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetKeyAccountsQuery, + GetKeyAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetKeyAccountsDocument, + options, + ); +} +export type GetKeyAccountsQueryHookResult = ReturnType< + typeof useGetKeyAccountsQuery +>; +export type GetKeyAccountsLazyQueryHookResult = ReturnType< + typeof useGetKeyAccountsLazyQuery +>; +export type GetKeyAccountsQueryResult = Apollo.QueryResult< + GetKeyAccountsQuery, + GetKeyAccountsQueryVariables +>; diff --git a/src/components/Settings/integrations/Mailchimp/MailchimpAccount.generated.ts b/src/components/Settings/integrations/Mailchimp/MailchimpAccount.generated.ts index ddaee6c20..d12389c83 100644 --- a/src/components/Settings/integrations/Mailchimp/MailchimpAccount.generated.ts +++ b/src/components/Settings/integrations/Mailchimp/MailchimpAccount.generated.ts @@ -7,150 +7,260 @@ export type MailchimpAccountQueryVariables = Types.Exact<{ input: Types.MailchimpAccountInput; }>; - -export type MailchimpAccountQuery = ( - { __typename?: 'Query' } - & { mailchimpAccount?: Types.Maybe - & { listsAvailableForNewsletters?: Types.Maybe - )>>> } - )>>> } -); +export type MailchimpAccountQuery = { __typename?: 'Query' } & { + mailchimpAccount?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'MailchimpAccount' } & Pick< + Types.MailchimpAccount, + | 'id' + | 'active' + | 'autoLogCampaigns' + | 'createdAt' + | 'listsLink' + | 'listsPresent' + | 'primaryListId' + | 'primaryListName' + | 'updatedAt' + | 'updatedInDbAt' + | 'valid' + | 'validateKey' + | 'validationError' + > & { + listsAvailableForNewsletters?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'ListsAvailableForNewsletters' } & Pick< + Types.ListsAvailableForNewsletters, + 'id' | 'name' + > + > + > + >; + } + > + > + >; +}; export type UpdateMailchimpAccountMutationVariables = Types.Exact<{ input: Types.UpdateMailchimpAccountInput; }>; - -export type UpdateMailchimpAccountMutation = ( - { __typename?: 'Mutation' } - & { updateMailchimpAccount: ( - { __typename?: 'MailchimpAccount' } - & Pick - & { listsAvailableForNewsletters?: Types.Maybe - )>>> } - ) } -); +export type UpdateMailchimpAccountMutation = { __typename?: 'Mutation' } & { + updateMailchimpAccount: { __typename?: 'MailchimpAccount' } & Pick< + Types.MailchimpAccount, + | 'id' + | 'active' + | 'autoLogCampaigns' + | 'createdAt' + | 'listsLink' + | 'listsPresent' + | 'primaryListId' + | 'primaryListName' + | 'updatedAt' + | 'updatedInDbAt' + | 'valid' + | 'validateKey' + | 'validationError' + > & { + listsAvailableForNewsletters?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'ListsAvailableForNewsletters' } & Pick< + Types.ListsAvailableForNewsletters, + 'id' | 'name' + > + > + > + >; + }; +}; export type SyncMailchimpAccountMutationVariables = Types.Exact<{ input: Types.SyncMailchimpAccountInput; }>; - -export type SyncMailchimpAccountMutation = ( - { __typename?: 'Mutation' } - & Pick -); +export type SyncMailchimpAccountMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'syncMailchimpAccount' +>; export type DeleteMailchimpAccountMutationVariables = Types.Exact<{ input: Types.DeleteMailchimpAccountInput; }>; - -export type DeleteMailchimpAccountMutation = ( - { __typename?: 'Mutation' } - & { deleteMailchimpAccount: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); - +export type DeleteMailchimpAccountMutation = { __typename?: 'Mutation' } & { + deleteMailchimpAccount: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export const MailchimpAccountDocument = gql` - query MailchimpAccount($input: MailchimpAccountInput!) { - mailchimpAccount(input: $input) { - id - active - autoLogCampaigns - createdAt - listsAvailableForNewsletters { + query MailchimpAccount($input: MailchimpAccountInput!) { + mailchimpAccount(input: $input) { id - name + active + autoLogCampaigns + createdAt + listsAvailableForNewsletters { + id + name + } + listsLink + listsPresent + primaryListId + primaryListName + updatedAt + updatedInDbAt + valid + validateKey + validationError } - listsLink - listsPresent - primaryListId - primaryListName - updatedAt - updatedInDbAt - valid - validateKey - validationError } +`; +export function useMailchimpAccountQuery( + baseOptions: Apollo.QueryHookOptions< + MailchimpAccountQuery, + MailchimpAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + MailchimpAccountDocument, + options, + ); } - `; -export function useMailchimpAccountQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(MailchimpAccountDocument, options); - } -export function useMailchimpAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(MailchimpAccountDocument, options); - } -export type MailchimpAccountQueryHookResult = ReturnType; -export type MailchimpAccountLazyQueryHookResult = ReturnType; -export type MailchimpAccountQueryResult = Apollo.QueryResult; +export function useMailchimpAccountLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + MailchimpAccountQuery, + MailchimpAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + MailchimpAccountQuery, + MailchimpAccountQueryVariables + >(MailchimpAccountDocument, options); +} +export type MailchimpAccountQueryHookResult = ReturnType< + typeof useMailchimpAccountQuery +>; +export type MailchimpAccountLazyQueryHookResult = ReturnType< + typeof useMailchimpAccountLazyQuery +>; +export type MailchimpAccountQueryResult = Apollo.QueryResult< + MailchimpAccountQuery, + MailchimpAccountQueryVariables +>; export const UpdateMailchimpAccountDocument = gql` - mutation UpdateMailchimpAccount($input: UpdateMailchimpAccountInput!) { - updateMailchimpAccount(input: $input) { - id - active - autoLogCampaigns - createdAt - listsAvailableForNewsletters { + mutation UpdateMailchimpAccount($input: UpdateMailchimpAccountInput!) { + updateMailchimpAccount(input: $input) { id - name + active + autoLogCampaigns + createdAt + listsAvailableForNewsletters { + id + name + } + listsLink + listsPresent + primaryListId + primaryListName + updatedAt + updatedInDbAt + valid + validateKey + validationError } - listsLink - listsPresent - primaryListId - primaryListName - updatedAt - updatedInDbAt - valid - validateKey - validationError } +`; +export type UpdateMailchimpAccountMutationFn = Apollo.MutationFunction< + UpdateMailchimpAccountMutation, + UpdateMailchimpAccountMutationVariables +>; +export function useUpdateMailchimpAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateMailchimpAccountMutation, + UpdateMailchimpAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateMailchimpAccountMutation, + UpdateMailchimpAccountMutationVariables + >(UpdateMailchimpAccountDocument, options); } - `; -export type UpdateMailchimpAccountMutationFn = Apollo.MutationFunction; -export function useUpdateMailchimpAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateMailchimpAccountDocument, options); - } -export type UpdateMailchimpAccountMutationHookResult = ReturnType; -export type UpdateMailchimpAccountMutationResult = Apollo.MutationResult; -export type UpdateMailchimpAccountMutationOptions = Apollo.BaseMutationOptions; +export type UpdateMailchimpAccountMutationHookResult = ReturnType< + typeof useUpdateMailchimpAccountMutation +>; +export type UpdateMailchimpAccountMutationResult = + Apollo.MutationResult; +export type UpdateMailchimpAccountMutationOptions = Apollo.BaseMutationOptions< + UpdateMailchimpAccountMutation, + UpdateMailchimpAccountMutationVariables +>; export const SyncMailchimpAccountDocument = gql` - mutation SyncMailchimpAccount($input: SyncMailchimpAccountInput!) { - syncMailchimpAccount(input: $input) + mutation SyncMailchimpAccount($input: SyncMailchimpAccountInput!) { + syncMailchimpAccount(input: $input) + } +`; +export type SyncMailchimpAccountMutationFn = Apollo.MutationFunction< + SyncMailchimpAccountMutation, + SyncMailchimpAccountMutationVariables +>; +export function useSyncMailchimpAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SyncMailchimpAccountMutation, + SyncMailchimpAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SyncMailchimpAccountMutation, + SyncMailchimpAccountMutationVariables + >(SyncMailchimpAccountDocument, options); } - `; -export type SyncMailchimpAccountMutationFn = Apollo.MutationFunction; -export function useSyncMailchimpAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SyncMailchimpAccountDocument, options); - } -export type SyncMailchimpAccountMutationHookResult = ReturnType; -export type SyncMailchimpAccountMutationResult = Apollo.MutationResult; -export type SyncMailchimpAccountMutationOptions = Apollo.BaseMutationOptions; +export type SyncMailchimpAccountMutationHookResult = ReturnType< + typeof useSyncMailchimpAccountMutation +>; +export type SyncMailchimpAccountMutationResult = + Apollo.MutationResult; +export type SyncMailchimpAccountMutationOptions = Apollo.BaseMutationOptions< + SyncMailchimpAccountMutation, + SyncMailchimpAccountMutationVariables +>; export const DeleteMailchimpAccountDocument = gql` - mutation DeleteMailchimpAccount($input: DeleteMailchimpAccountInput!) { - deleteMailchimpAccount(input: $input) { - success + mutation DeleteMailchimpAccount($input: DeleteMailchimpAccountInput!) { + deleteMailchimpAccount(input: $input) { + success + } } +`; +export type DeleteMailchimpAccountMutationFn = Apollo.MutationFunction< + DeleteMailchimpAccountMutation, + DeleteMailchimpAccountMutationVariables +>; +export function useDeleteMailchimpAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteMailchimpAccountMutation, + DeleteMailchimpAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteMailchimpAccountMutation, + DeleteMailchimpAccountMutationVariables + >(DeleteMailchimpAccountDocument, options); } - `; -export type DeleteMailchimpAccountMutationFn = Apollo.MutationFunction; -export function useDeleteMailchimpAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteMailchimpAccountDocument, options); - } -export type DeleteMailchimpAccountMutationHookResult = ReturnType; -export type DeleteMailchimpAccountMutationResult = Apollo.MutationResult; -export type DeleteMailchimpAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteMailchimpAccountMutationHookResult = ReturnType< + typeof useDeleteMailchimpAccountMutation +>; +export type DeleteMailchimpAccountMutationResult = + Apollo.MutationResult; +export type DeleteMailchimpAccountMutationOptions = Apollo.BaseMutationOptions< + DeleteMailchimpAccountMutation, + DeleteMailchimpAccountMutationVariables +>; diff --git a/src/components/Settings/integrations/Organization/Organizations.generated.ts b/src/components/Settings/integrations/Organization/Organizations.generated.ts index b330561e1..f947d8ba0 100644 --- a/src/components/Settings/integrations/Organization/Organizations.generated.ts +++ b/src/components/Settings/integrations/Organization/Organizations.generated.ts @@ -3,215 +3,342 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetOrganizationsQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetOrganizationsQuery = ( - { __typename?: 'Query' } - & { organizations: Array<( - { __typename?: 'Organization' } - & Pick - )> } -); +export type GetOrganizationsQueryVariables = Types.Exact<{ + [key: string]: never; +}>; -export type GetUsersOrganizationsAccountsQueryVariables = Types.Exact<{ [key: string]: never; }>; +export type GetOrganizationsQuery = { __typename?: 'Query' } & { + organizations: Array< + { __typename?: 'Organization' } & Pick< + Types.Organization, + | 'id' + | 'name' + | 'apiClass' + | 'oauth' + | 'giftAidPercentage' + | 'disableNewUsers' + > + >; +}; +export type GetUsersOrganizationsAccountsQueryVariables = Types.Exact<{ + [key: string]: never; +}>; -export type GetUsersOrganizationsAccountsQuery = ( - { __typename?: 'Query' } - & { userOrganizationAccounts: Array<( - { __typename?: 'OrganizationAccount' } - & Pick - & { organization: ( - { __typename?: 'Organization' } - & Pick - ) } - )> } -); +export type GetUsersOrganizationsAccountsQuery = { __typename?: 'Query' } & { + userOrganizationAccounts: Array< + { __typename?: 'OrganizationAccount' } & Pick< + Types.OrganizationAccount, + 'latestDonationDate' | 'lastDownloadedAt' | 'username' | 'id' + > & { + organization: { __typename?: 'Organization' } & Pick< + Types.Organization, + 'apiClass' | 'id' | 'name' | 'oauth' + >; + } + >; +}; export type DeleteOrganizationAccountMutationVariables = Types.Exact<{ input: Types.OrganizationAccountDeleteMutationInput; }>; - -export type DeleteOrganizationAccountMutation = ( - { __typename?: 'Mutation' } - & { deleteOrganizationAccount?: Types.Maybe<( - { __typename?: 'OrganizationAccountDeleteMutationPayload' } - & Pick - )> } -); +export type DeleteOrganizationAccountMutation = { __typename?: 'Mutation' } & { + deleteOrganizationAccount?: Types.Maybe< + { __typename?: 'OrganizationAccountDeleteMutationPayload' } & Pick< + Types.OrganizationAccountDeleteMutationPayload, + 'id' + > + >; +}; export type CreateOrganizationAccountMutationVariables = Types.Exact<{ input: Types.OrganizationAccountCreateMutationInput; }>; - -export type CreateOrganizationAccountMutation = ( - { __typename?: 'Mutation' } - & { createOrganizationAccount?: Types.Maybe<( - { __typename?: 'OrganizationAccountCreateMutationPayload' } - & { organizationAccount: ( - { __typename?: 'OrganizationAccount' } - & Pick - & { person: ( - { __typename?: 'Person' } - & Pick - ) } - ) } - )> } -); +export type CreateOrganizationAccountMutation = { __typename?: 'Mutation' } & { + createOrganizationAccount?: Types.Maybe< + { __typename?: 'OrganizationAccountCreateMutationPayload' } & { + organizationAccount: { __typename?: 'OrganizationAccount' } & Pick< + Types.OrganizationAccount, + 'id' | 'username' + > & { person: { __typename?: 'Person' } & Pick }; + } + >; +}; export type SyncOrganizationAccountMutationVariables = Types.Exact<{ input: Types.OrganizationAccountSyncMutationInput; }>; - -export type SyncOrganizationAccountMutation = ( - { __typename?: 'Mutation' } - & { syncOrganizationAccount?: Types.Maybe<( - { __typename?: 'OrganizationAccountSyncMutationPayload' } - & { organizationAccount: ( - { __typename?: 'OrganizationAccount' } - & Pick - ) } - )> } -); +export type SyncOrganizationAccountMutation = { __typename?: 'Mutation' } & { + syncOrganizationAccount?: Types.Maybe< + { __typename?: 'OrganizationAccountSyncMutationPayload' } & { + organizationAccount: { __typename?: 'OrganizationAccount' } & Pick< + Types.OrganizationAccount, + 'id' + >; + } + >; +}; export type UpdateOrganizationAccountMutationVariables = Types.Exact<{ input: Types.OrganizationAccountUpdateMutationInput; }>; - -export type UpdateOrganizationAccountMutation = ( - { __typename?: 'Mutation' } - & { updateOrganizationAccount?: Types.Maybe<( - { __typename?: 'OrganizationAccountUpdateMutationPayload' } - & { organizationAccount: ( - { __typename?: 'OrganizationAccount' } - & Pick - ) } - )> } -); - +export type UpdateOrganizationAccountMutation = { __typename?: 'Mutation' } & { + updateOrganizationAccount?: Types.Maybe< + { __typename?: 'OrganizationAccountUpdateMutationPayload' } & { + organizationAccount: { __typename?: 'OrganizationAccount' } & Pick< + Types.OrganizationAccount, + 'id' + >; + } + >; +}; export const GetOrganizationsDocument = gql` - query getOrganizations { - organizations { - id - name - apiClass - oauth - giftAidPercentage - disableNewUsers - } -} - `; -export function useGetOrganizationsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetOrganizationsDocument, options); - } -export function useGetOrganizationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetOrganizationsDocument, options); - } -export type GetOrganizationsQueryHookResult = ReturnType; -export type GetOrganizationsLazyQueryHookResult = ReturnType; -export type GetOrganizationsQueryResult = Apollo.QueryResult; -export const GetUsersOrganizationsAccountsDocument = gql` - query GetUsersOrganizationsAccounts { - userOrganizationAccounts { - organization { - apiClass + query getOrganizations { + organizations { id name + apiClass oauth + giftAidPercentage + disableNewUsers } - latestDonationDate - lastDownloadedAt - username - id } +`; +export function useGetOrganizationsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetOrganizationsQuery, + GetOrganizationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetOrganizationsDocument, + options, + ); +} +export function useGetOrganizationsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetOrganizationsQuery, + GetOrganizationsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetOrganizationsQuery, + GetOrganizationsQueryVariables + >(GetOrganizationsDocument, options); } - `; -export function useGetUsersOrganizationsAccountsQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetUsersOrganizationsAccountsDocument, options); +export type GetOrganizationsQueryHookResult = ReturnType< + typeof useGetOrganizationsQuery +>; +export type GetOrganizationsLazyQueryHookResult = ReturnType< + typeof useGetOrganizationsLazyQuery +>; +export type GetOrganizationsQueryResult = Apollo.QueryResult< + GetOrganizationsQuery, + GetOrganizationsQueryVariables +>; +export const GetUsersOrganizationsAccountsDocument = gql` + query GetUsersOrganizationsAccounts { + userOrganizationAccounts { + organization { + apiClass + id + name + oauth } -export function useGetUsersOrganizationsAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetUsersOrganizationsAccountsDocument, options); - } -export type GetUsersOrganizationsAccountsQueryHookResult = ReturnType; -export type GetUsersOrganizationsAccountsLazyQueryHookResult = ReturnType; -export type GetUsersOrganizationsAccountsQueryResult = Apollo.QueryResult; + latestDonationDate + lastDownloadedAt + username + id + } + } +`; +export function useGetUsersOrganizationsAccountsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetUsersOrganizationsAccountsQuery, + GetUsersOrganizationsAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetUsersOrganizationsAccountsQuery, + GetUsersOrganizationsAccountsQueryVariables + >(GetUsersOrganizationsAccountsDocument, options); +} +export function useGetUsersOrganizationsAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUsersOrganizationsAccountsQuery, + GetUsersOrganizationsAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetUsersOrganizationsAccountsQuery, + GetUsersOrganizationsAccountsQueryVariables + >(GetUsersOrganizationsAccountsDocument, options); +} +export type GetUsersOrganizationsAccountsQueryHookResult = ReturnType< + typeof useGetUsersOrganizationsAccountsQuery +>; +export type GetUsersOrganizationsAccountsLazyQueryHookResult = ReturnType< + typeof useGetUsersOrganizationsAccountsLazyQuery +>; +export type GetUsersOrganizationsAccountsQueryResult = Apollo.QueryResult< + GetUsersOrganizationsAccountsQuery, + GetUsersOrganizationsAccountsQueryVariables +>; export const DeleteOrganizationAccountDocument = gql` - mutation DeleteOrganizationAccount($input: OrganizationAccountDeleteMutationInput!) { - deleteOrganizationAccount(input: $input) { - id + mutation DeleteOrganizationAccount( + $input: OrganizationAccountDeleteMutationInput! + ) { + deleteOrganizationAccount(input: $input) { + id + } } +`; +export type DeleteOrganizationAccountMutationFn = Apollo.MutationFunction< + DeleteOrganizationAccountMutation, + DeleteOrganizationAccountMutationVariables +>; +export function useDeleteOrganizationAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteOrganizationAccountMutation, + DeleteOrganizationAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteOrganizationAccountMutation, + DeleteOrganizationAccountMutationVariables + >(DeleteOrganizationAccountDocument, options); } - `; -export type DeleteOrganizationAccountMutationFn = Apollo.MutationFunction; -export function useDeleteOrganizationAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteOrganizationAccountDocument, options); - } -export type DeleteOrganizationAccountMutationHookResult = ReturnType; -export type DeleteOrganizationAccountMutationResult = Apollo.MutationResult; -export type DeleteOrganizationAccountMutationOptions = Apollo.BaseMutationOptions; +export type DeleteOrganizationAccountMutationHookResult = ReturnType< + typeof useDeleteOrganizationAccountMutation +>; +export type DeleteOrganizationAccountMutationResult = + Apollo.MutationResult; +export type DeleteOrganizationAccountMutationOptions = + Apollo.BaseMutationOptions< + DeleteOrganizationAccountMutation, + DeleteOrganizationAccountMutationVariables + >; export const CreateOrganizationAccountDocument = gql` - mutation CreateOrganizationAccount($input: OrganizationAccountCreateMutationInput!) { - createOrganizationAccount(input: $input) { - organizationAccount { - id - username - person { + mutation CreateOrganizationAccount( + $input: OrganizationAccountCreateMutationInput! + ) { + createOrganizationAccount(input: $input) { + organizationAccount { id + username + person { + id + } } } } +`; +export type CreateOrganizationAccountMutationFn = Apollo.MutationFunction< + CreateOrganizationAccountMutation, + CreateOrganizationAccountMutationVariables +>; +export function useCreateOrganizationAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateOrganizationAccountMutation, + CreateOrganizationAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateOrganizationAccountMutation, + CreateOrganizationAccountMutationVariables + >(CreateOrganizationAccountDocument, options); } - `; -export type CreateOrganizationAccountMutationFn = Apollo.MutationFunction; -export function useCreateOrganizationAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateOrganizationAccountDocument, options); - } -export type CreateOrganizationAccountMutationHookResult = ReturnType; -export type CreateOrganizationAccountMutationResult = Apollo.MutationResult; -export type CreateOrganizationAccountMutationOptions = Apollo.BaseMutationOptions; +export type CreateOrganizationAccountMutationHookResult = ReturnType< + typeof useCreateOrganizationAccountMutation +>; +export type CreateOrganizationAccountMutationResult = + Apollo.MutationResult; +export type CreateOrganizationAccountMutationOptions = + Apollo.BaseMutationOptions< + CreateOrganizationAccountMutation, + CreateOrganizationAccountMutationVariables + >; export const SyncOrganizationAccountDocument = gql` - mutation SyncOrganizationAccount($input: OrganizationAccountSyncMutationInput!) { - syncOrganizationAccount(input: $input) { - organizationAccount { - id + mutation SyncOrganizationAccount( + $input: OrganizationAccountSyncMutationInput! + ) { + syncOrganizationAccount(input: $input) { + organizationAccount { + id + } } } +`; +export type SyncOrganizationAccountMutationFn = Apollo.MutationFunction< + SyncOrganizationAccountMutation, + SyncOrganizationAccountMutationVariables +>; +export function useSyncOrganizationAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SyncOrganizationAccountMutation, + SyncOrganizationAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SyncOrganizationAccountMutation, + SyncOrganizationAccountMutationVariables + >(SyncOrganizationAccountDocument, options); } - `; -export type SyncOrganizationAccountMutationFn = Apollo.MutationFunction; -export function useSyncOrganizationAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SyncOrganizationAccountDocument, options); - } -export type SyncOrganizationAccountMutationHookResult = ReturnType; -export type SyncOrganizationAccountMutationResult = Apollo.MutationResult; -export type SyncOrganizationAccountMutationOptions = Apollo.BaseMutationOptions; +export type SyncOrganizationAccountMutationHookResult = ReturnType< + typeof useSyncOrganizationAccountMutation +>; +export type SyncOrganizationAccountMutationResult = + Apollo.MutationResult; +export type SyncOrganizationAccountMutationOptions = Apollo.BaseMutationOptions< + SyncOrganizationAccountMutation, + SyncOrganizationAccountMutationVariables +>; export const UpdateOrganizationAccountDocument = gql` - mutation UpdateOrganizationAccount($input: OrganizationAccountUpdateMutationInput!) { - updateOrganizationAccount(input: $input) { - organizationAccount { - id + mutation UpdateOrganizationAccount( + $input: OrganizationAccountUpdateMutationInput! + ) { + updateOrganizationAccount(input: $input) { + organizationAccount { + id + } } } +`; +export type UpdateOrganizationAccountMutationFn = Apollo.MutationFunction< + UpdateOrganizationAccountMutation, + UpdateOrganizationAccountMutationVariables +>; +export function useUpdateOrganizationAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateOrganizationAccountMutation, + UpdateOrganizationAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateOrganizationAccountMutation, + UpdateOrganizationAccountMutationVariables + >(UpdateOrganizationAccountDocument, options); } - `; -export type UpdateOrganizationAccountMutationFn = Apollo.MutationFunction; -export function useUpdateOrganizationAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateOrganizationAccountDocument, options); - } -export type UpdateOrganizationAccountMutationHookResult = ReturnType; -export type UpdateOrganizationAccountMutationResult = Apollo.MutationResult; -export type UpdateOrganizationAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateOrganizationAccountMutationHookResult = ReturnType< + typeof useUpdateOrganizationAccountMutation +>; +export type UpdateOrganizationAccountMutationResult = + Apollo.MutationResult; +export type UpdateOrganizationAccountMutationOptions = + Apollo.BaseMutationOptions< + UpdateOrganizationAccountMutation, + UpdateOrganizationAccountMutationVariables + >; diff --git a/src/components/Settings/integrations/Prayerletters/PrayerlettersAccount.generated.ts b/src/components/Settings/integrations/Prayerletters/PrayerlettersAccount.generated.ts index 7b4fe0d33..8f824a4de 100644 --- a/src/components/Settings/integrations/Prayerletters/PrayerlettersAccount.generated.ts +++ b/src/components/Settings/integrations/Prayerletters/PrayerlettersAccount.generated.ts @@ -7,82 +7,142 @@ export type PrayerlettersAccountQueryVariables = Types.Exact<{ input: Types.PrayerlettersAccountInput; }>; - -export type PrayerlettersAccountQuery = ( - { __typename?: 'Query' } - & { prayerlettersAccount?: Types.Maybe - )>>> } -); +export type PrayerlettersAccountQuery = { __typename?: 'Query' } & { + prayerlettersAccount?: Types.Maybe< + Array< + Types.Maybe< + { __typename?: 'PrayerlettersAccount' } & Pick< + Types.PrayerlettersAccount, + 'validToken' + > + > + > + >; +}; export type SyncPrayerlettersAccountMutationVariables = Types.Exact<{ input: Types.SyncPrayerlettersAccountInput; }>; - -export type SyncPrayerlettersAccountMutation = ( - { __typename?: 'Mutation' } - & Pick -); +export type SyncPrayerlettersAccountMutation = { + __typename?: 'Mutation'; +} & Pick; export type DeletePrayerlettersAccountMutationVariables = Types.Exact<{ input: Types.DeletePrayerlettersAccountInput; }>; - -export type DeletePrayerlettersAccountMutation = ( - { __typename?: 'Mutation' } - & { deletePrayerlettersAccount: ( - { __typename?: 'DeletionResponse' } - & Pick - ) } -); - +export type DeletePrayerlettersAccountMutation = { __typename?: 'Mutation' } & { + deletePrayerlettersAccount: { __typename?: 'DeletionResponse' } & Pick< + Types.DeletionResponse, + 'success' + >; +}; export const PrayerlettersAccountDocument = gql` - query PrayerlettersAccount($input: PrayerlettersAccountInput!) { - prayerlettersAccount(input: $input) { - validToken + query PrayerlettersAccount($input: PrayerlettersAccountInput!) { + prayerlettersAccount(input: $input) { + validToken + } } +`; +export function usePrayerlettersAccountQuery( + baseOptions: Apollo.QueryHookOptions< + PrayerlettersAccountQuery, + PrayerlettersAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + PrayerlettersAccountQuery, + PrayerlettersAccountQueryVariables + >(PrayerlettersAccountDocument, options); +} +export function usePrayerlettersAccountLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + PrayerlettersAccountQuery, + PrayerlettersAccountQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + PrayerlettersAccountQuery, + PrayerlettersAccountQueryVariables + >(PrayerlettersAccountDocument, options); } - `; -export function usePrayerlettersAccountQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(PrayerlettersAccountDocument, options); - } -export function usePrayerlettersAccountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(PrayerlettersAccountDocument, options); - } -export type PrayerlettersAccountQueryHookResult = ReturnType; -export type PrayerlettersAccountLazyQueryHookResult = ReturnType; -export type PrayerlettersAccountQueryResult = Apollo.QueryResult; +export type PrayerlettersAccountQueryHookResult = ReturnType< + typeof usePrayerlettersAccountQuery +>; +export type PrayerlettersAccountLazyQueryHookResult = ReturnType< + typeof usePrayerlettersAccountLazyQuery +>; +export type PrayerlettersAccountQueryResult = Apollo.QueryResult< + PrayerlettersAccountQuery, + PrayerlettersAccountQueryVariables +>; export const SyncPrayerlettersAccountDocument = gql` - mutation SyncPrayerlettersAccount($input: SyncPrayerlettersAccountInput!) { - syncPrayerlettersAccount(input: $input) + mutation SyncPrayerlettersAccount($input: SyncPrayerlettersAccountInput!) { + syncPrayerlettersAccount(input: $input) + } +`; +export type SyncPrayerlettersAccountMutationFn = Apollo.MutationFunction< + SyncPrayerlettersAccountMutation, + SyncPrayerlettersAccountMutationVariables +>; +export function useSyncPrayerlettersAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + SyncPrayerlettersAccountMutation, + SyncPrayerlettersAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + SyncPrayerlettersAccountMutation, + SyncPrayerlettersAccountMutationVariables + >(SyncPrayerlettersAccountDocument, options); } - `; -export type SyncPrayerlettersAccountMutationFn = Apollo.MutationFunction; -export function useSyncPrayerlettersAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SyncPrayerlettersAccountDocument, options); - } -export type SyncPrayerlettersAccountMutationHookResult = ReturnType; -export type SyncPrayerlettersAccountMutationResult = Apollo.MutationResult; -export type SyncPrayerlettersAccountMutationOptions = Apollo.BaseMutationOptions; +export type SyncPrayerlettersAccountMutationHookResult = ReturnType< + typeof useSyncPrayerlettersAccountMutation +>; +export type SyncPrayerlettersAccountMutationResult = + Apollo.MutationResult; +export type SyncPrayerlettersAccountMutationOptions = + Apollo.BaseMutationOptions< + SyncPrayerlettersAccountMutation, + SyncPrayerlettersAccountMutationVariables + >; export const DeletePrayerlettersAccountDocument = gql` - mutation DeletePrayerlettersAccount($input: DeletePrayerlettersAccountInput!) { - deletePrayerlettersAccount(input: $input) { - success + mutation DeletePrayerlettersAccount( + $input: DeletePrayerlettersAccountInput! + ) { + deletePrayerlettersAccount(input: $input) { + success + } } +`; +export type DeletePrayerlettersAccountMutationFn = Apollo.MutationFunction< + DeletePrayerlettersAccountMutation, + DeletePrayerlettersAccountMutationVariables +>; +export function useDeletePrayerlettersAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + DeletePrayerlettersAccountMutation, + DeletePrayerlettersAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeletePrayerlettersAccountMutation, + DeletePrayerlettersAccountMutationVariables + >(DeletePrayerlettersAccountDocument, options); } - `; -export type DeletePrayerlettersAccountMutationFn = Apollo.MutationFunction; -export function useDeletePrayerlettersAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeletePrayerlettersAccountDocument, options); - } -export type DeletePrayerlettersAccountMutationHookResult = ReturnType; -export type DeletePrayerlettersAccountMutationResult = Apollo.MutationResult; -export type DeletePrayerlettersAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeletePrayerlettersAccountMutationHookResult = ReturnType< + typeof useDeletePrayerlettersAccountMutation +>; +export type DeletePrayerlettersAccountMutationResult = + Apollo.MutationResult; +export type DeletePrayerlettersAccountMutationOptions = + Apollo.BaseMutationOptions< + DeletePrayerlettersAccountMutation, + DeletePrayerlettersAccountMutationVariables + >; diff --git a/src/components/Settings/notifications/Notifications.generated.ts b/src/components/Settings/notifications/Notifications.generated.ts index 500c11307..7f8525b0b 100644 --- a/src/components/Settings/notifications/Notifications.generated.ts +++ b/src/components/Settings/notifications/Notifications.generated.ts @@ -7,79 +7,128 @@ export type NotificationsPreferencesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type NotificationsPreferencesQuery = { __typename?: 'Query' } & { + notificationPreferences: { + __typename?: 'NotificationPreferenceConnection'; + } & { + nodes: Array< + { __typename?: 'NotificationPreference' } & Pick< + Types.NotificationPreference, + 'id' | 'app' | 'email' | 'task' + > & { + notificationType: { __typename?: 'NotificationType' } & Pick< + Types.NotificationType, + 'id' | 'descriptionTemplate' | 'type' + >; + } + >; + }; +}; -export type NotificationsPreferencesQuery = ( - { __typename?: 'Query' } - & { notificationPreferences: ( - { __typename?: 'NotificationPreferenceConnection' } - & { nodes: Array<( - { __typename?: 'NotificationPreference' } - & Pick - & { notificationType: ( - { __typename?: 'NotificationType' } - & Pick - ) } - )> } - ) } -); - -export type NotificationTypesQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type NotificationTypesQuery = ( - { __typename?: 'Query' } - & { notificationTypes: Array<( - { __typename?: 'NotificationType' } - & Pick - )> } -); +export type NotificationTypesQueryVariables = Types.Exact<{ + [key: string]: never; +}>; +export type NotificationTypesQuery = { __typename?: 'Query' } & { + notificationTypes: Array< + { __typename?: 'NotificationType' } & Pick< + Types.NotificationType, + 'id' | 'type' | 'descriptionTemplate' + > + >; +}; export const NotificationsPreferencesDocument = gql` - query NotificationsPreferences($accountListId: ID!) { - notificationPreferences(accountListId: $accountListId) { - nodes { - id - app - email - notificationType { + query NotificationsPreferences($accountListId: ID!) { + notificationPreferences(accountListId: $accountListId) { + nodes { id - descriptionTemplate - type + app + email + notificationType { + id + descriptionTemplate + type + } + task } - task } } +`; +export function useNotificationsPreferencesQuery( + baseOptions: Apollo.QueryHookOptions< + NotificationsPreferencesQuery, + NotificationsPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + NotificationsPreferencesQuery, + NotificationsPreferencesQueryVariables + >(NotificationsPreferencesDocument, options); } - `; -export function useNotificationsPreferencesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(NotificationsPreferencesDocument, options); - } -export function useNotificationsPreferencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(NotificationsPreferencesDocument, options); - } -export type NotificationsPreferencesQueryHookResult = ReturnType; -export type NotificationsPreferencesLazyQueryHookResult = ReturnType; -export type NotificationsPreferencesQueryResult = Apollo.QueryResult; +export function useNotificationsPreferencesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + NotificationsPreferencesQuery, + NotificationsPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + NotificationsPreferencesQuery, + NotificationsPreferencesQueryVariables + >(NotificationsPreferencesDocument, options); +} +export type NotificationsPreferencesQueryHookResult = ReturnType< + typeof useNotificationsPreferencesQuery +>; +export type NotificationsPreferencesLazyQueryHookResult = ReturnType< + typeof useNotificationsPreferencesLazyQuery +>; +export type NotificationsPreferencesQueryResult = Apollo.QueryResult< + NotificationsPreferencesQuery, + NotificationsPreferencesQueryVariables +>; export const NotificationTypesDocument = gql` - query NotificationTypes { - notificationTypes { - id - type - descriptionTemplate + query NotificationTypes { + notificationTypes { + id + type + descriptionTemplate + } } +`; +export function useNotificationTypesQuery( + baseOptions?: Apollo.QueryHookOptions< + NotificationTypesQuery, + NotificationTypesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + NotificationTypesQuery, + NotificationTypesQueryVariables + >(NotificationTypesDocument, options); } - `; -export function useNotificationTypesQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(NotificationTypesDocument, options); - } -export function useNotificationTypesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(NotificationTypesDocument, options); - } -export type NotificationTypesQueryHookResult = ReturnType; -export type NotificationTypesLazyQueryHookResult = ReturnType; -export type NotificationTypesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useNotificationTypesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + NotificationTypesQuery, + NotificationTypesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + NotificationTypesQuery, + NotificationTypesQueryVariables + >(NotificationTypesDocument, options); +} +export type NotificationTypesQueryHookResult = ReturnType< + typeof useNotificationTypesQuery +>; +export type NotificationTypesLazyQueryHookResult = ReturnType< + typeof useNotificationTypesLazyQuery +>; +export type NotificationTypesQueryResult = Apollo.QueryResult< + NotificationTypesQuery, + NotificationTypesQueryVariables +>; diff --git a/src/components/Settings/notifications/UpdateNotifications.generated.ts b/src/components/Settings/notifications/UpdateNotifications.generated.ts index 2a1b70c57..6ce410f8e 100644 --- a/src/components/Settings/notifications/UpdateNotifications.generated.ts +++ b/src/components/Settings/notifications/UpdateNotifications.generated.ts @@ -7,40 +7,63 @@ export type UpdateNotificationPreferencesMutationVariables = Types.Exact<{ input: Types.NotificationPreferencesUpdateMutationInput; }>; - -export type UpdateNotificationPreferencesMutation = ( - { __typename?: 'Mutation' } - & { updateNotificationPreferences?: Types.Maybe<( - { __typename?: 'NotificationPreferencesUpdateMutationPayload' } - & { notificationPreferences: Array<( - { __typename?: 'NotificationPreference' } - & Pick - & { notificationType: ( - { __typename?: 'NotificationType' } - & Pick - ) } - )> } - )> } -); - +export type UpdateNotificationPreferencesMutation = { + __typename?: 'Mutation'; +} & { + updateNotificationPreferences?: Types.Maybe< + { __typename?: 'NotificationPreferencesUpdateMutationPayload' } & { + notificationPreferences: Array< + { __typename?: 'NotificationPreference' } & Pick< + Types.NotificationPreference, + 'id' + > & { + notificationType: { __typename?: 'NotificationType' } & Pick< + Types.NotificationType, + 'id' + >; + } + >; + } + >; +}; export const UpdateNotificationPreferencesDocument = gql` - mutation UpdateNotificationPreferences($input: NotificationPreferencesUpdateMutationInput!) { - updateNotificationPreferences(input: $input) { - notificationPreferences { - id - notificationType { + mutation UpdateNotificationPreferences( + $input: NotificationPreferencesUpdateMutationInput! + ) { + updateNotificationPreferences(input: $input) { + notificationPreferences { id + notificationType { + id + } } } } +`; +export type UpdateNotificationPreferencesMutationFn = Apollo.MutationFunction< + UpdateNotificationPreferencesMutation, + UpdateNotificationPreferencesMutationVariables +>; +export function useUpdateNotificationPreferencesMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateNotificationPreferencesMutation, + UpdateNotificationPreferencesMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateNotificationPreferencesMutation, + UpdateNotificationPreferencesMutationVariables + >(UpdateNotificationPreferencesDocument, options); } - `; -export type UpdateNotificationPreferencesMutationFn = Apollo.MutationFunction; -export function useUpdateNotificationPreferencesMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateNotificationPreferencesDocument, options); - } -export type UpdateNotificationPreferencesMutationHookResult = ReturnType; -export type UpdateNotificationPreferencesMutationResult = Apollo.MutationResult; -export type UpdateNotificationPreferencesMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateNotificationPreferencesMutationHookResult = ReturnType< + typeof useUpdateNotificationPreferencesMutation +>; +export type UpdateNotificationPreferencesMutationResult = + Apollo.MutationResult; +export type UpdateNotificationPreferencesMutationOptions = + Apollo.BaseMutationOptions< + UpdateNotificationPreferencesMutation, + UpdateNotificationPreferencesMutationVariables + >; diff --git a/src/components/Settings/preferences/GetAccountPreferences.generated.ts b/src/components/Settings/preferences/GetAccountPreferences.generated.ts index 08bcd71d5..beaa09239 100644 --- a/src/components/Settings/preferences/GetAccountPreferences.generated.ts +++ b/src/components/Settings/preferences/GetAccountPreferences.generated.ts @@ -3,136 +3,208 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type AccountListFragment = ( - { __typename?: 'AccountList' } - & Pick - & { settings?: Types.Maybe<( - { __typename?: 'AccountListSettings' } - & Pick - )> } -); +export type AccountListFragment = { __typename?: 'AccountList' } & Pick< + Types.AccountList, + | 'id' + | 'name' + | 'activeMpdMonthlyGoal' + | 'activeMpdFinishAt' + | 'activeMpdStartAt' + | 'salaryOrganizationId' +> & { + settings?: Types.Maybe< + { __typename?: 'AccountListSettings' } & Pick< + Types.AccountListSettings, + 'currency' | 'homeCountry' | 'monthlyGoal' | 'tester' + > + >; + }; export type GetAccountPreferencesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetAccountPreferencesQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - ), accountList: ( - { __typename?: 'AccountList' } - & Pick - & { settings?: Types.Maybe<( - { __typename?: 'AccountListSettings' } - & Pick - )> } - ), accountLists: ( - { __typename?: 'AccountListConnection' } - & { nodes: Array<( - { __typename?: 'AccountList' } - & Pick - )> } - ) } -); +export type GetAccountPreferencesQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick; + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + | 'id' + | 'name' + | 'activeMpdMonthlyGoal' + | 'activeMpdFinishAt' + | 'activeMpdStartAt' + | 'salaryOrganizationId' + > & { + settings?: Types.Maybe< + { __typename?: 'AccountListSettings' } & Pick< + Types.AccountListSettings, + 'currency' | 'homeCountry' | 'monthlyGoal' | 'tester' + > + >; + }; + accountLists: { __typename?: 'AccountListConnection' } & { + nodes: Array< + { __typename?: 'AccountList' } & Pick + >; + }; +}; export type CanUserExportDataQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type CanUserExportDataQuery = ( - { __typename?: 'Query' } - & { canUserExportData: ( - { __typename?: 'CanUserExportData' } - & Pick - ) } -); +export type CanUserExportDataQuery = { __typename?: 'Query' } & { + canUserExportData: { __typename?: 'CanUserExportData' } & Pick< + Types.CanUserExportData, + 'allowed' | 'exportedAt' + >; +}; export type ExportDataMutationVariables = Types.Exact<{ input: Types.ExportDataInput; }>; - -export type ExportDataMutation = ( - { __typename?: 'Mutation' } - & Pick -); +export type ExportDataMutation = { __typename?: 'Mutation' } & Pick< + Types.Mutation, + 'exportData' +>; export const AccountListFragmentDoc = gql` - fragment AccountList on AccountList { - id - name - activeMpdMonthlyGoal - activeMpdFinishAt - activeMpdStartAt - salaryOrganizationId - settings { - currency - homeCountry - monthlyGoal - tester - } -} - `; -export const GetAccountPreferencesDocument = gql` - query GetAccountPreferences($accountListId: ID!) { - user { + fragment AccountList on AccountList { id + name + activeMpdMonthlyGoal + activeMpdFinishAt + activeMpdStartAt + salaryOrganizationId + settings { + currency + homeCountry + monthlyGoal + tester + } } - accountList(id: $accountListId) { - ...AccountList - } - accountLists { - nodes { - name +`; +export const GetAccountPreferencesDocument = gql` + query GetAccountPreferences($accountListId: ID!) { + user { id } + accountList(id: $accountListId) { + ...AccountList + } + accountLists { + nodes { + name + id + } + } } + ${AccountListFragmentDoc} +`; +export function useGetAccountPreferencesQuery( + baseOptions: Apollo.QueryHookOptions< + GetAccountPreferencesQuery, + GetAccountPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetAccountPreferencesQuery, + GetAccountPreferencesQueryVariables + >(GetAccountPreferencesDocument, options); } - ${AccountListFragmentDoc}`; -export function useGetAccountPreferencesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetAccountPreferencesDocument, options); - } -export function useGetAccountPreferencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetAccountPreferencesDocument, options); - } -export type GetAccountPreferencesQueryHookResult = ReturnType; -export type GetAccountPreferencesLazyQueryHookResult = ReturnType; -export type GetAccountPreferencesQueryResult = Apollo.QueryResult; +export function useGetAccountPreferencesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetAccountPreferencesQuery, + GetAccountPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetAccountPreferencesQuery, + GetAccountPreferencesQueryVariables + >(GetAccountPreferencesDocument, options); +} +export type GetAccountPreferencesQueryHookResult = ReturnType< + typeof useGetAccountPreferencesQuery +>; +export type GetAccountPreferencesLazyQueryHookResult = ReturnType< + typeof useGetAccountPreferencesLazyQuery +>; +export type GetAccountPreferencesQueryResult = Apollo.QueryResult< + GetAccountPreferencesQuery, + GetAccountPreferencesQueryVariables +>; export const CanUserExportDataDocument = gql` - query CanUserExportData($accountListId: ID!) { - canUserExportData(accountListId: $accountListId) { - allowed - exportedAt + query CanUserExportData($accountListId: ID!) { + canUserExportData(accountListId: $accountListId) { + allowed + exportedAt + } } +`; +export function useCanUserExportDataQuery( + baseOptions: Apollo.QueryHookOptions< + CanUserExportDataQuery, + CanUserExportDataQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + CanUserExportDataQuery, + CanUserExportDataQueryVariables + >(CanUserExportDataDocument, options); } - `; -export function useCanUserExportDataQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(CanUserExportDataDocument, options); - } -export function useCanUserExportDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(CanUserExportDataDocument, options); - } -export type CanUserExportDataQueryHookResult = ReturnType; -export type CanUserExportDataLazyQueryHookResult = ReturnType; -export type CanUserExportDataQueryResult = Apollo.QueryResult; +export function useCanUserExportDataLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + CanUserExportDataQuery, + CanUserExportDataQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + CanUserExportDataQuery, + CanUserExportDataQueryVariables + >(CanUserExportDataDocument, options); +} +export type CanUserExportDataQueryHookResult = ReturnType< + typeof useCanUserExportDataQuery +>; +export type CanUserExportDataLazyQueryHookResult = ReturnType< + typeof useCanUserExportDataLazyQuery +>; +export type CanUserExportDataQueryResult = Apollo.QueryResult< + CanUserExportDataQuery, + CanUserExportDataQueryVariables +>; export const ExportDataDocument = gql` - mutation ExportData($input: ExportDataInput!) { - exportData(input: $input) + mutation ExportData($input: ExportDataInput!) { + exportData(input: $input) + } +`; +export type ExportDataMutationFn = Apollo.MutationFunction< + ExportDataMutation, + ExportDataMutationVariables +>; +export function useExportDataMutation( + baseOptions?: Apollo.MutationHookOptions< + ExportDataMutation, + ExportDataMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + ExportDataDocument, + options, + ); } - `; -export type ExportDataMutationFn = Apollo.MutationFunction; -export function useExportDataMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ExportDataDocument, options); - } -export type ExportDataMutationHookResult = ReturnType; -export type ExportDataMutationResult = Apollo.MutationResult; -export type ExportDataMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type ExportDataMutationHookResult = ReturnType< + typeof useExportDataMutation +>; +export type ExportDataMutationResult = + Apollo.MutationResult; +export type ExportDataMutationOptions = Apollo.BaseMutationOptions< + ExportDataMutation, + ExportDataMutationVariables +>; diff --git a/src/components/Settings/preferences/GetPersonalPreferences.generated.ts b/src/components/Settings/preferences/GetPersonalPreferences.generated.ts index 051117c2e..9e386f255 100644 --- a/src/components/Settings/preferences/GetPersonalPreferences.generated.ts +++ b/src/components/Settings/preferences/GetPersonalPreferences.generated.ts @@ -7,62 +7,89 @@ export type GetPersonalPreferencesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetPersonalPreferencesQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - & { preferences?: Types.Maybe<( - { __typename?: 'Preference' } - & Pick - )> } - ), accountList: ( - { __typename?: 'AccountList' } - & Pick - ), accountLists: ( - { __typename?: 'AccountListConnection' } - & { nodes: Array<( - { __typename?: 'AccountList' } - & Pick - )> } - ) } -); - +export type GetPersonalPreferencesQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + 'id' | 'defaultAccountList' + > & { + preferences?: Types.Maybe< + { __typename?: 'Preference' } & Pick< + Types.Preference, + | 'id' + | 'timeZone' + | 'localeDisplay' + | 'locale' + | 'hourToSendNotifications' + > + >; + }; + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' + >; + accountLists: { __typename?: 'AccountListConnection' } & { + nodes: Array< + { __typename?: 'AccountList' } & Pick + >; + }; +}; export const GetPersonalPreferencesDocument = gql` - query GetPersonalPreferences($accountListId: ID!) { - user { - id - defaultAccountList - preferences { + query GetPersonalPreferences($accountListId: ID!) { + user { id - timeZone - localeDisplay - locale - hourToSendNotifications + defaultAccountList + preferences { + id + timeZone + localeDisplay + locale + hourToSendNotifications + } } - } - accountList(id: $accountListId) { - id - name - } - accountLists { - nodes { - name + accountList(id: $accountListId) { id + name + } + accountLists { + nodes { + name + id + } } } +`; +export function useGetPersonalPreferencesQuery( + baseOptions: Apollo.QueryHookOptions< + GetPersonalPreferencesQuery, + GetPersonalPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetPersonalPreferencesQuery, + GetPersonalPreferencesQueryVariables + >(GetPersonalPreferencesDocument, options); } - `; -export function useGetPersonalPreferencesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetPersonalPreferencesDocument, options); - } -export function useGetPersonalPreferencesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetPersonalPreferencesDocument, options); - } -export type GetPersonalPreferencesQueryHookResult = ReturnType; -export type GetPersonalPreferencesLazyQueryHookResult = ReturnType; -export type GetPersonalPreferencesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetPersonalPreferencesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetPersonalPreferencesQuery, + GetPersonalPreferencesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetPersonalPreferencesQuery, + GetPersonalPreferencesQueryVariables + >(GetPersonalPreferencesDocument, options); +} +export type GetPersonalPreferencesQueryHookResult = ReturnType< + typeof useGetPersonalPreferencesQuery +>; +export type GetPersonalPreferencesLazyQueryHookResult = ReturnType< + typeof useGetPersonalPreferencesLazyQuery +>; +export type GetPersonalPreferencesQueryResult = Apollo.QueryResult< + GetPersonalPreferencesQuery, + GetPersonalPreferencesQueryVariables +>; diff --git a/src/components/Settings/preferences/GetProfileInfo.generated.ts b/src/components/Settings/preferences/GetProfileInfo.generated.ts index f260738da..21bed236a 100644 --- a/src/components/Settings/preferences/GetProfileInfo.generated.ts +++ b/src/components/Settings/preferences/GetProfileInfo.generated.ts @@ -3,205 +3,295 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type UserFragmentFragment = ( - { __typename?: 'User' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ) } -); +export type UserFragmentFragment = { __typename?: 'User' } & Pick< + Types.User, + | 'lastName' + | 'firstName' + | 'legalFirstName' + | 'title' + | 'suffix' + | 'id' + | 'occupation' + | 'employer' + | 'anniversaryYear' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'almaMater' + | 'maritalStatus' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'gender' + | 'avatar' +> & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + }; -export type GetProfileInfoQueryVariables = Types.Exact<{ [key: string]: never; }>; +export type GetProfileInfoQueryVariables = Types.Exact<{ + [key: string]: never; +}>; - -export type GetProfileInfoQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ) } - ) } -); +export type GetProfileInfoQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + | 'deceased' + | 'optoutEnewsletter' + | 'lastName' + | 'firstName' + | 'legalFirstName' + | 'title' + | 'suffix' + | 'id' + | 'occupation' + | 'employer' + | 'anniversaryYear' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'almaMater' + | 'maritalStatus' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'gender' + | 'avatar' + > & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + }; +}; export const UserFragmentFragmentDoc = gql` - fragment UserFragment on User { - lastName - firstName - legalFirstName - title - suffix - id - occupation - employer - anniversaryYear - anniversaryDay - anniversaryMonth - almaMater - maritalStatus - birthdayDay - birthdayMonth - birthdayYear - gender - avatar - primaryEmailAddress { - id - email - primary - location - source - } - primaryPhoneNumber { + fragment UserFragment on User { + lastName + firstName + legalFirstName + title + suffix id - number - primary - location - source - } - phoneNumbers { - nodes { + occupation + employer + anniversaryYear + anniversaryDay + anniversaryMonth + almaMater + maritalStatus + birthdayDay + birthdayMonth + birthdayYear + gender + avatar + primaryEmailAddress { id - number + email primary location source - historic } - } - emailAddresses { - nodes { + primaryPhoneNumber { id - email + number primary location source - historic } - } - twitterAccounts { - nodes { - id - screenName + phoneNumbers { + nodes { + id + number + primary + location + source + historic + } } - } - websites { - nodes { - url - id + emailAddresses { + nodes { + id + email + primary + location + source + historic + } } - } - linkedinAccounts { - nodes { - id - publicUrl + twitterAccounts { + nodes { + id + screenName + } } - } - facebookAccounts { - nodes { - id - username + websites { + nodes { + url + id + } + } + linkedinAccounts { + nodes { + id + publicUrl + } + } + facebookAccounts { + nodes { + id + username + } } } -} - `; +`; export const GetProfileInfoDocument = gql` - query GetProfileInfo { - user { - ...UserFragment - deceased - optoutEnewsletter + query GetProfileInfo { + user { + ...UserFragment + deceased + optoutEnewsletter + } } + ${UserFragmentFragmentDoc} +`; +export function useGetProfileInfoQuery( + baseOptions?: Apollo.QueryHookOptions< + GetProfileInfoQuery, + GetProfileInfoQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetProfileInfoDocument, + options, + ); } - ${UserFragmentFragmentDoc}`; -export function useGetProfileInfoQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetProfileInfoDocument, options); - } -export function useGetProfileInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetProfileInfoDocument, options); - } -export type GetProfileInfoQueryHookResult = ReturnType; -export type GetProfileInfoLazyQueryHookResult = ReturnType; -export type GetProfileInfoQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetProfileInfoLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetProfileInfoQuery, + GetProfileInfoQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetProfileInfoDocument, + options, + ); +} +export type GetProfileInfoQueryHookResult = ReturnType< + typeof useGetProfileInfoQuery +>; +export type GetProfileInfoLazyQueryHookResult = ReturnType< + typeof useGetProfileInfoLazyQuery +>; +export type GetProfileInfoQueryResult = Apollo.QueryResult< + GetProfileInfoQuery, + GetProfileInfoQueryVariables +>; diff --git a/src/components/Settings/preferences/UpdateUser.generated.ts b/src/components/Settings/preferences/UpdateUser.generated.ts index cf00f1fc0..4153a11f5 100644 --- a/src/components/Settings/preferences/UpdateUser.generated.ts +++ b/src/components/Settings/preferences/UpdateUser.generated.ts @@ -8,76 +8,124 @@ export type UpdateUserMutationVariables = Types.Exact<{ attributes: Types.UserUpdateInput; }>; - -export type UpdateUserMutation = ( - { __typename?: 'Mutation' } - & { updateUser?: Types.Maybe<( - { __typename?: 'UserUpdateMutationPayload' } - & { user: ( - { __typename?: 'User' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )>, primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ), emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), twitterAccounts: ( - { __typename?: 'TwitterAccountConnection' } - & { nodes: Array<( - { __typename?: 'TwitterAccount' } - & Pick - )> } - ), websites: ( - { __typename?: 'WebsiteConnection' } - & { nodes: Array<( - { __typename?: 'Website' } - & Pick - )> } - ), linkedinAccounts: ( - { __typename?: 'LinkedinAccountConnection' } - & { nodes: Array<( - { __typename?: 'LinkedinAccount' } - & Pick - )> } - ), facebookAccounts: ( - { __typename?: 'FacebookAccountConnection' } - & { nodes: Array<( - { __typename?: 'FacebookAccount' } - & Pick - )> } - ) } - ) } - )> } -); - +export type UpdateUserMutation = { __typename?: 'Mutation' } & { + updateUser?: Types.Maybe< + { __typename?: 'UserUpdateMutationPayload' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + | 'lastName' + | 'firstName' + | 'legalFirstName' + | 'title' + | 'suffix' + | 'id' + | 'occupation' + | 'employer' + | 'anniversaryYear' + | 'anniversaryDay' + | 'anniversaryMonth' + | 'almaMater' + | 'maritalStatus' + | 'birthdayDay' + | 'birthdayMonth' + | 'birthdayYear' + | 'gender' + | 'avatar' + > & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' + > + >; + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' + > + >; + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'number' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'email' | 'primary' | 'location' | 'source' | 'historic' + > + >; + }; + twitterAccounts: { __typename?: 'TwitterAccountConnection' } & { + nodes: Array< + { __typename?: 'TwitterAccount' } & Pick< + Types.TwitterAccount, + 'id' | 'screenName' + > + >; + }; + websites: { __typename?: 'WebsiteConnection' } & { + nodes: Array< + { __typename?: 'Website' } & Pick + >; + }; + linkedinAccounts: { __typename?: 'LinkedinAccountConnection' } & { + nodes: Array< + { __typename?: 'LinkedinAccount' } & Pick< + Types.LinkedinAccount, + 'id' | 'publicUrl' + > + >; + }; + facebookAccounts: { __typename?: 'FacebookAccountConnection' } & { + nodes: Array< + { __typename?: 'FacebookAccount' } & Pick< + Types.FacebookAccount, + 'id' | 'username' + > + >; + }; + }; + } + >; +}; export const UpdateUserDocument = gql` - mutation UpdateUser($attributes: UserUpdateInput!) { - updateUser(input: {attributes: $attributes}) { - user { - ...UserFragment + mutation UpdateUser($attributes: UserUpdateInput!) { + updateUser(input: { attributes: $attributes }) { + user { + ...UserFragment + } } } + ${UserFragmentFragmentDoc} +`; +export type UpdateUserMutationFn = Apollo.MutationFunction< + UpdateUserMutation, + UpdateUserMutationVariables +>; +export function useUpdateUserMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateUserMutation, + UpdateUserMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + UpdateUserDocument, + options, + ); } - ${UserFragmentFragmentDoc}`; -export type UpdateUserMutationFn = Apollo.MutationFunction; -export function useUpdateUserMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateUserDocument, options); - } -export type UpdateUserMutationHookResult = ReturnType; -export type UpdateUserMutationResult = Apollo.MutationResult; -export type UpdateUserMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateUserMutationHookResult = ReturnType< + typeof useUpdateUserMutation +>; +export type UpdateUserMutationResult = + Apollo.MutationResult; +export type UpdateUserMutationOptions = Apollo.BaseMutationOptions< + UpdateUserMutation, + UpdateUserMutationVariables +>; diff --git a/src/components/Settings/preferences/accordions/DefaultAccountAccordion/UpdateDefaultAccount.generated.ts b/src/components/Settings/preferences/accordions/DefaultAccountAccordion/UpdateDefaultAccount.generated.ts index edb948938..6f371bd16 100644 --- a/src/components/Settings/preferences/accordions/DefaultAccountAccordion/UpdateDefaultAccount.generated.ts +++ b/src/components/Settings/preferences/accordions/DefaultAccountAccordion/UpdateDefaultAccount.generated.ts @@ -7,34 +7,50 @@ export type UpdateUserDefaultAccountMutationVariables = Types.Exact<{ input: Types.UserUpdateMutationInput; }>; - -export type UpdateUserDefaultAccountMutation = ( - { __typename?: 'Mutation' } - & { updateUser?: Types.Maybe<( - { __typename?: 'UserUpdateMutationPayload' } - & { user: ( - { __typename?: 'User' } - & Pick - ) } - )> } -); - +export type UpdateUserDefaultAccountMutation = { __typename?: 'Mutation' } & { + updateUser?: Types.Maybe< + { __typename?: 'UserUpdateMutationPayload' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + 'id' | 'defaultAccountList' + >; + } + >; +}; export const UpdateUserDefaultAccountDocument = gql` - mutation UpdateUserDefaultAccount($input: UserUpdateMutationInput!) { - updateUser(input: $input) { - user { - id - defaultAccountList + mutation UpdateUserDefaultAccount($input: UserUpdateMutationInput!) { + updateUser(input: $input) { + user { + id + defaultAccountList + } } } +`; +export type UpdateUserDefaultAccountMutationFn = Apollo.MutationFunction< + UpdateUserDefaultAccountMutation, + UpdateUserDefaultAccountMutationVariables +>; +export function useUpdateUserDefaultAccountMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateUserDefaultAccountMutation, + UpdateUserDefaultAccountMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateUserDefaultAccountMutation, + UpdateUserDefaultAccountMutationVariables + >(UpdateUserDefaultAccountDocument, options); } - `; -export type UpdateUserDefaultAccountMutationFn = Apollo.MutationFunction; -export function useUpdateUserDefaultAccountMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateUserDefaultAccountDocument, options); - } -export type UpdateUserDefaultAccountMutationHookResult = ReturnType; -export type UpdateUserDefaultAccountMutationResult = Apollo.MutationResult; -export type UpdateUserDefaultAccountMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateUserDefaultAccountMutationHookResult = ReturnType< + typeof useUpdateUserDefaultAccountMutation +>; +export type UpdateUserDefaultAccountMutationResult = + Apollo.MutationResult; +export type UpdateUserDefaultAccountMutationOptions = + Apollo.BaseMutationOptions< + UpdateUserDefaultAccountMutation, + UpdateUserDefaultAccountMutationVariables + >; diff --git a/src/components/Settings/preferences/accordions/UpdateAccountPreferences.generated.ts b/src/components/Settings/preferences/accordions/UpdateAccountPreferences.generated.ts index a7d1fb6e7..b5ba1d5f3 100644 --- a/src/components/Settings/preferences/accordions/UpdateAccountPreferences.generated.ts +++ b/src/components/Settings/preferences/accordions/UpdateAccountPreferences.generated.ts @@ -8,37 +8,62 @@ export type UpdateAccountPreferencesMutationVariables = Types.Exact<{ input: Types.AccountListUpdateMutationInput; }>; - -export type UpdateAccountPreferencesMutation = ( - { __typename?: 'Mutation' } - & { updateAccountList?: Types.Maybe<( - { __typename?: 'AccountListUpdateMutationPayload' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - & { settings?: Types.Maybe<( - { __typename?: 'AccountListSettings' } - & Pick - )> } - ) } - )> } -); - +export type UpdateAccountPreferencesMutation = { __typename?: 'Mutation' } & { + updateAccountList?: Types.Maybe< + { __typename?: 'AccountListUpdateMutationPayload' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + | 'id' + | 'name' + | 'activeMpdMonthlyGoal' + | 'activeMpdFinishAt' + | 'activeMpdStartAt' + | 'salaryOrganizationId' + > & { + settings?: Types.Maybe< + { __typename?: 'AccountListSettings' } & Pick< + Types.AccountListSettings, + 'currency' | 'homeCountry' | 'monthlyGoal' | 'tester' + > + >; + }; + } + >; +}; export const UpdateAccountPreferencesDocument = gql` - mutation UpdateAccountPreferences($input: AccountListUpdateMutationInput!) { - updateAccountList(input: $input) { - accountList { - ...AccountList + mutation UpdateAccountPreferences($input: AccountListUpdateMutationInput!) { + updateAccountList(input: $input) { + accountList { + ...AccountList + } } } + ${AccountListFragmentDoc} +`; +export type UpdateAccountPreferencesMutationFn = Apollo.MutationFunction< + UpdateAccountPreferencesMutation, + UpdateAccountPreferencesMutationVariables +>; +export function useUpdateAccountPreferencesMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateAccountPreferencesMutation, + UpdateAccountPreferencesMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateAccountPreferencesMutation, + UpdateAccountPreferencesMutationVariables + >(UpdateAccountPreferencesDocument, options); } - ${AccountListFragmentDoc}`; -export type UpdateAccountPreferencesMutationFn = Apollo.MutationFunction; -export function useUpdateAccountPreferencesMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateAccountPreferencesDocument, options); - } -export type UpdateAccountPreferencesMutationHookResult = ReturnType; -export type UpdateAccountPreferencesMutationResult = Apollo.MutationResult; -export type UpdateAccountPreferencesMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateAccountPreferencesMutationHookResult = ReturnType< + typeof useUpdateAccountPreferencesMutation +>; +export type UpdateAccountPreferencesMutationResult = + Apollo.MutationResult; +export type UpdateAccountPreferencesMutationOptions = + Apollo.BaseMutationOptions< + UpdateAccountPreferencesMutation, + UpdateAccountPreferencesMutationVariables + >; diff --git a/src/components/Settings/preferences/accordions/UpdatePersonalPreferences.generated.ts b/src/components/Settings/preferences/accordions/UpdatePersonalPreferences.generated.ts index 68150ca4f..36f8a7506 100644 --- a/src/components/Settings/preferences/accordions/UpdatePersonalPreferences.generated.ts +++ b/src/components/Settings/preferences/accordions/UpdatePersonalPreferences.generated.ts @@ -7,37 +7,59 @@ export type UpdatePersonalPreferencesMutationVariables = Types.Exact<{ input: Types.UserPreferenceUpdateMutationInput; }>; - -export type UpdatePersonalPreferencesMutation = ( - { __typename?: 'Mutation' } - & { updatePreference?: Types.Maybe<( - { __typename?: 'UserPreferenceUpdateMutationPayload' } - & { preference: ( - { __typename?: 'Preference' } - & Pick - ) } - )> } -); - +export type UpdatePersonalPreferencesMutation = { __typename?: 'Mutation' } & { + updatePreference?: Types.Maybe< + { __typename?: 'UserPreferenceUpdateMutationPayload' } & { + preference: { __typename?: 'Preference' } & Pick< + Types.Preference, + | 'id' + | 'hourToSendNotifications' + | 'locale' + | 'localeDisplay' + | 'timeZone' + >; + } + >; +}; export const UpdatePersonalPreferencesDocument = gql` - mutation UpdatePersonalPreferences($input: UserPreferenceUpdateMutationInput!) { - updatePreference(input: $input) { - preference { - id - hourToSendNotifications - locale - localeDisplay - timeZone + mutation UpdatePersonalPreferences( + $input: UserPreferenceUpdateMutationInput! + ) { + updatePreference(input: $input) { + preference { + id + hourToSendNotifications + locale + localeDisplay + timeZone + } } } +`; +export type UpdatePersonalPreferencesMutationFn = Apollo.MutationFunction< + UpdatePersonalPreferencesMutation, + UpdatePersonalPreferencesMutationVariables +>; +export function useUpdatePersonalPreferencesMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdatePersonalPreferencesMutation, + UpdatePersonalPreferencesMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdatePersonalPreferencesMutation, + UpdatePersonalPreferencesMutationVariables + >(UpdatePersonalPreferencesDocument, options); } - `; -export type UpdatePersonalPreferencesMutationFn = Apollo.MutationFunction; -export function useUpdatePersonalPreferencesMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdatePersonalPreferencesDocument, options); - } -export type UpdatePersonalPreferencesMutationHookResult = ReturnType; -export type UpdatePersonalPreferencesMutationResult = Apollo.MutationResult; -export type UpdatePersonalPreferencesMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdatePersonalPreferencesMutationHookResult = ReturnType< + typeof useUpdatePersonalPreferencesMutation +>; +export type UpdatePersonalPreferencesMutationResult = + Apollo.MutationResult; +export type UpdatePersonalPreferencesMutationOptions = + Apollo.BaseMutationOptions< + UpdatePersonalPreferencesMutation, + UpdatePersonalPreferencesMutationVariables + >; diff --git a/src/components/Shared/Filters/DeleteFilterModal/DeleteFilterModal.generated.ts b/src/components/Shared/Filters/DeleteFilterModal/DeleteFilterModal.generated.ts index a93e348fc..31292f9a0 100644 --- a/src/components/Shared/Filters/DeleteFilterModal/DeleteFilterModal.generated.ts +++ b/src/components/Shared/Filters/DeleteFilterModal/DeleteFilterModal.generated.ts @@ -7,28 +7,44 @@ export type DeleteUserOptionMutationVariables = Types.Exact<{ input: Types.UserOptionDeleteMutationInput; }>; - -export type DeleteUserOptionMutation = ( - { __typename?: 'Mutation' } - & { deleteUserOption?: Types.Maybe<( - { __typename?: 'UserOptionDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteUserOptionMutation = { __typename?: 'Mutation' } & { + deleteUserOption?: Types.Maybe< + { __typename?: 'UserOptionDeleteMutationPayload' } & Pick< + Types.UserOptionDeleteMutationPayload, + 'id' + > + >; +}; export const DeleteUserOptionDocument = gql` - mutation DeleteUserOption($input: UserOptionDeleteMutationInput!) { - deleteUserOption(input: $input) { - id + mutation DeleteUserOption($input: UserOptionDeleteMutationInput!) { + deleteUserOption(input: $input) { + id + } } +`; +export type DeleteUserOptionMutationFn = Apollo.MutationFunction< + DeleteUserOptionMutation, + DeleteUserOptionMutationVariables +>; +export function useDeleteUserOptionMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteUserOptionMutation, + DeleteUserOptionMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteUserOptionMutation, + DeleteUserOptionMutationVariables + >(DeleteUserOptionDocument, options); } - `; -export type DeleteUserOptionMutationFn = Apollo.MutationFunction; -export function useDeleteUserOptionMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteUserOptionDocument, options); - } -export type DeleteUserOptionMutationHookResult = ReturnType; -export type DeleteUserOptionMutationResult = Apollo.MutationResult; -export type DeleteUserOptionMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteUserOptionMutationHookResult = ReturnType< + typeof useDeleteUserOptionMutation +>; +export type DeleteUserOptionMutationResult = + Apollo.MutationResult; +export type DeleteUserOptionMutationOptions = Apollo.BaseMutationOptions< + DeleteUserOptionMutation, + DeleteUserOptionMutationVariables +>; diff --git a/src/components/Shared/Filters/FilterPanel.generated.ts b/src/components/Shared/Filters/FilterPanel.generated.ts index 80d117dfe..9ee209f0a 100644 --- a/src/components/Shared/Filters/FilterPanel.generated.ts +++ b/src/components/Shared/Filters/FilterPanel.generated.ts @@ -1,103 +1,131 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type FilterPanelGroupFragment = ( - { __typename?: 'FilterGroup' } - & Pick - & { filters: Array<( - { __typename: 'CheckboxFilter' } - & Pick - ) | ( - { __typename: 'DaterangeFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'MultiselectFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'NumericRangeFilter' } - & Pick - ) | ( - { __typename: 'RadioFilter' } - & Pick - & { options?: Types.Maybe - )>> } - ) | ( - { __typename: 'TextFilter' } - & Pick - & { options?: Types.Maybe - )>> } - )> } -); +export type FilterPanelGroupFragment = { __typename?: 'FilterGroup' } & Pick< + Types.FilterGroup, + 'name' | 'featured' +> & { + filters: Array< + | ({ __typename: 'CheckboxFilter' } & Pick< + Types.CheckboxFilter, + 'filterKey' | 'title' + >) + | ({ __typename: 'DaterangeFilter' } & Pick< + Types.DaterangeFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'DateRangeOption' } & Pick< + Types.DateRangeOption, + 'name' | 'rangeEnd' | 'rangeStart' + > + > + >; + }) + | ({ __typename: 'MultiselectFilter' } & Pick< + Types.MultiselectFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'NumericRangeFilter' } & Pick< + Types.NumericRangeFilter, + 'min' | 'minLabel' | 'max' | 'maxLabel' | 'title' | 'filterKey' + >) + | ({ __typename: 'RadioFilter' } & Pick< + Types.RadioFilter, + 'defaultSelection' | 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + | ({ __typename: 'TextFilter' } & Pick< + Types.TextFilter, + 'filterKey' | 'title' + > & { + options?: Types.Maybe< + Array< + { __typename?: 'FilterOption' } & Pick< + Types.FilterOption, + 'name' | 'placeholder' | 'value' + > + > + >; + }) + >; + }; -export type UserOptionFragment = ( - { __typename?: 'Option' } - & Pick -); +export type UserOptionFragment = { __typename?: 'Option' } & Pick< + Types.Option, + 'id' | 'key' | 'value' +>; export const FilterPanelGroupFragmentDoc = gql` - fragment FilterPanelGroup on FilterGroup { - name - featured - filters { - __typename - filterKey - title - ... on DaterangeFilter { - options { - name - rangeEnd - rangeStart + fragment FilterPanelGroup on FilterGroup { + name + featured + filters { + __typename + filterKey + title + ... on DaterangeFilter { + options { + name + rangeEnd + rangeStart + } } - } - ... on MultiselectFilter { - defaultSelection - options { - name - placeholder - value + ... on MultiselectFilter { + defaultSelection + options { + name + placeholder + value + } } - } - ... on NumericRangeFilter { - min - minLabel - max - maxLabel - title - } - ... on RadioFilter { - defaultSelection - options { - name - placeholder - value + ... on NumericRangeFilter { + min + minLabel + max + maxLabel + title } - } - ... on TextFilter { - options { - name - placeholder - value + ... on RadioFilter { + defaultSelection + options { + name + placeholder + value + } + } + ... on TextFilter { + options { + name + placeholder + value + } } } } -} - `; +`; export const UserOptionFragmentDoc = gql` - fragment UserOption on Option { - id - key - value -} - `; \ No newline at end of file + fragment UserOption on Option { + id + key + value + } +`; diff --git a/src/components/Shared/Filters/SaveFilterModal/SaveFilterModal.generated.ts b/src/components/Shared/Filters/SaveFilterModal/SaveFilterModal.generated.ts index e694ee71b..c4dba61e9 100644 --- a/src/components/Shared/Filters/SaveFilterModal/SaveFilterModal.generated.ts +++ b/src/components/Shared/Filters/SaveFilterModal/SaveFilterModal.generated.ts @@ -8,33 +8,49 @@ export type SaveFilterMutationVariables = Types.Exact<{ input: Types.CreateOrUpdateOptionMutationInput; }>; - -export type SaveFilterMutation = ( - { __typename?: 'Mutation' } - & { createOrUpdateUserOption?: Types.Maybe<( - { __typename?: 'CreateOrUpdateOptionMutationPayload' } - & { option: ( - { __typename?: 'Option' } - & Pick - ) } - )> } -); - +export type SaveFilterMutation = { __typename?: 'Mutation' } & { + createOrUpdateUserOption?: Types.Maybe< + { __typename?: 'CreateOrUpdateOptionMutationPayload' } & { + option: { __typename?: 'Option' } & Pick< + Types.Option, + 'id' | 'key' | 'value' + >; + } + >; +}; export const SaveFilterDocument = gql` - mutation SaveFilter($input: CreateOrUpdateOptionMutationInput!) { - createOrUpdateUserOption(input: $input) { - option { - ...UserOption + mutation SaveFilter($input: CreateOrUpdateOptionMutationInput!) { + createOrUpdateUserOption(input: $input) { + option { + ...UserOption + } } } + ${UserOptionFragmentDoc} +`; +export type SaveFilterMutationFn = Apollo.MutationFunction< + SaveFilterMutation, + SaveFilterMutationVariables +>; +export function useSaveFilterMutation( + baseOptions?: Apollo.MutationHookOptions< + SaveFilterMutation, + SaveFilterMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + SaveFilterDocument, + options, + ); } - ${UserOptionFragmentDoc}`; -export type SaveFilterMutationFn = Apollo.MutationFunction; -export function useSaveFilterMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(SaveFilterDocument, options); - } -export type SaveFilterMutationHookResult = ReturnType; -export type SaveFilterMutationResult = Apollo.MutationResult; -export type SaveFilterMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type SaveFilterMutationHookResult = ReturnType< + typeof useSaveFilterMutation +>; +export type SaveFilterMutationResult = + Apollo.MutationResult; +export type SaveFilterMutationOptions = Apollo.BaseMutationOptions< + SaveFilterMutation, + SaveFilterMutationVariables +>; diff --git a/src/components/Shared/Filters/TagsSection/Chip/DeleteTag.generated.ts b/src/components/Shared/Filters/TagsSection/Chip/DeleteTag.generated.ts index 289b57f3b..f7d855ca7 100644 --- a/src/components/Shared/Filters/TagsSection/Chip/DeleteTag.generated.ts +++ b/src/components/Shared/Filters/TagsSection/Chip/DeleteTag.generated.ts @@ -8,28 +8,40 @@ export type DeleteTagMutationVariables = Types.Exact<{ page: Types.Scalars['String']['input']; }>; - -export type DeleteTagMutation = ( - { __typename?: 'Mutation' } - & { deleteTags?: Types.Maybe<( - { __typename?: 'DeleteTagsPayload' } - & Pick - )> } -); - +export type DeleteTagMutation = { __typename?: 'Mutation' } & { + deleteTags?: Types.Maybe< + { __typename?: 'DeleteTagsPayload' } & Pick + >; +}; export const DeleteTagDocument = gql` - mutation DeleteTag($tagName: String!, $page: String!) { - deleteTags(input: {tagName: $tagName, page: $page}) { - id + mutation DeleteTag($tagName: String!, $page: String!) { + deleteTags(input: { tagName: $tagName, page: $page }) { + id + } } +`; +export type DeleteTagMutationFn = Apollo.MutationFunction< + DeleteTagMutation, + DeleteTagMutationVariables +>; +export function useDeleteTagMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteTagMutation, + DeleteTagMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + DeleteTagDocument, + options, + ); } - `; -export type DeleteTagMutationFn = Apollo.MutationFunction; -export function useDeleteTagMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteTagDocument, options); - } -export type DeleteTagMutationHookResult = ReturnType; +export type DeleteTagMutationHookResult = ReturnType< + typeof useDeleteTagMutation +>; export type DeleteTagMutationResult = Apollo.MutationResult; -export type DeleteTagMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteTagMutationOptions = Apollo.BaseMutationOptions< + DeleteTagMutation, + DeleteTagMutationVariables +>; diff --git a/src/components/Shared/MultiPageLayout/MultiPageMenu/MultiPageMenuItems.generated.ts b/src/components/Shared/MultiPageLayout/MultiPageMenu/MultiPageMenuItems.generated.ts index 91c71c3c2..9c4753b79 100644 --- a/src/components/Shared/MultiPageLayout/MultiPageMenu/MultiPageMenuItems.generated.ts +++ b/src/components/Shared/MultiPageLayout/MultiPageMenu/MultiPageMenuItems.generated.ts @@ -3,35 +3,55 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetUserAccessQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetUserAccessQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - ) } -); +export type GetUserAccessQueryVariables = Types.Exact<{ [key: string]: never }>; +export type GetUserAccessQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + 'id' | 'admin' | 'developer' + >; +}; export const GetUserAccessDocument = gql` - query GetUserAccess { - user { - id - admin - developer + query GetUserAccess { + user { + id + admin + developer + } } +`; +export function useGetUserAccessQuery( + baseOptions?: Apollo.QueryHookOptions< + GetUserAccessQuery, + GetUserAccessQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetUserAccessDocument, + options, + ); +} +export function useGetUserAccessLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUserAccessQuery, + GetUserAccessQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetUserAccessDocument, + options, + ); } - `; -export function useGetUserAccessQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetUserAccessDocument, options); - } -export function useGetUserAccessLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetUserAccessDocument, options); - } -export type GetUserAccessQueryHookResult = ReturnType; -export type GetUserAccessLazyQueryHookResult = ReturnType; -export type GetUserAccessQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetUserAccessQueryHookResult = ReturnType< + typeof useGetUserAccessQuery +>; +export type GetUserAccessLazyQueryHookResult = ReturnType< + typeof useGetUserAccessLazyQuery +>; +export type GetUserAccessQueryResult = Apollo.QueryResult< + GetUserAccessQuery, + GetUserAccessQueryVariables +>; diff --git a/src/components/Task/MassActions/AddTags/TasksAddTags.generated.ts b/src/components/Task/MassActions/AddTags/TasksAddTags.generated.ts index f36c599fa..4a3800fd0 100644 --- a/src/components/Task/MassActions/AddTags/TasksAddTags.generated.ts +++ b/src/components/Task/MassActions/AddTags/TasksAddTags.generated.ts @@ -8,17 +8,13 @@ export type TasksAddTagsMutationVariables = Types.Exact<{ attributes: Array | Types.TaskUpdateInput; }>; - -export type TasksAddTagsMutation = ( - { __typename?: 'Mutation' } - & { updateTasks?: Types.Maybe<( - { __typename?: 'TasksUpdateMutationPayload' } - & { tasks: Array<( - { __typename?: 'Task' } - & Pick - )> } - )> } -); +export type TasksAddTagsMutation = { __typename?: 'Mutation' } & { + updateTasks?: Types.Maybe< + { __typename?: 'TasksUpdateMutationPayload' } & { + tasks: Array<{ __typename?: 'Task' } & Pick>; + } + >; +}; export type GetTasksForAddingTagsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; @@ -27,98 +23,160 @@ export type GetTasksForAddingTagsQueryVariables = Types.Exact<{ after?: Types.InputMaybe; }>; - -export type GetTasksForAddingTagsQuery = ( - { __typename?: 'Query' } - & { tasks: ( - { __typename?: 'TaskConnection' } - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - )>, pageInfo: ( - { __typename?: 'PageInfo' } - & Pick - ) } - ) } -); +export type GetTasksForAddingTagsQuery = { __typename?: 'Query' } & { + tasks: { __typename?: 'TaskConnection' } & { + nodes: Array<{ __typename?: 'Task' } & Pick>; + pageInfo: { __typename?: 'PageInfo' } & Pick< + Types.PageInfo, + 'endCursor' | 'hasNextPage' + >; + }; +}; export type GetTaskTagListQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetTaskTagListQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); - +export type GetTaskTagListQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'taskTagList' + >; +}; export const TasksAddTagsDocument = gql` - mutation TasksAddTags($accountListId: ID!, $attributes: [TaskUpdateInput!]!) { - updateTasks(input: {accountListId: $accountListId, attributes: $attributes}) { - tasks { - id + mutation TasksAddTags($accountListId: ID!, $attributes: [TaskUpdateInput!]!) { + updateTasks( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + tasks { + id + } } } +`; +export type TasksAddTagsMutationFn = Apollo.MutationFunction< + TasksAddTagsMutation, + TasksAddTagsMutationVariables +>; +export function useTasksAddTagsMutation( + baseOptions?: Apollo.MutationHookOptions< + TasksAddTagsMutation, + TasksAddTagsMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + TasksAddTagsMutation, + TasksAddTagsMutationVariables + >(TasksAddTagsDocument, options); } - `; -export type TasksAddTagsMutationFn = Apollo.MutationFunction; -export function useTasksAddTagsMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(TasksAddTagsDocument, options); - } -export type TasksAddTagsMutationHookResult = ReturnType; -export type TasksAddTagsMutationResult = Apollo.MutationResult; -export type TasksAddTagsMutationOptions = Apollo.BaseMutationOptions; +export type TasksAddTagsMutationHookResult = ReturnType< + typeof useTasksAddTagsMutation +>; +export type TasksAddTagsMutationResult = + Apollo.MutationResult; +export type TasksAddTagsMutationOptions = Apollo.BaseMutationOptions< + TasksAddTagsMutation, + TasksAddTagsMutationVariables +>; export const GetTasksForAddingTagsDocument = gql` - query GetTasksForAddingTags($accountListId: ID!, $taskIds: [ID!]!, $numTaskIds: Int!, $after: String) { - tasks( - accountListId: $accountListId - tasksFilter: {ids: $taskIds} - first: $numTaskIds - after: $after + query GetTasksForAddingTags( + $accountListId: ID! + $taskIds: [ID!]! + $numTaskIds: Int! + $after: String ) { - nodes { - id - tagList - } - pageInfo { - endCursor - hasNextPage + tasks( + accountListId: $accountListId + tasksFilter: { ids: $taskIds } + first: $numTaskIds + after: $after + ) { + nodes { + id + tagList + } + pageInfo { + endCursor + hasNextPage + } } } +`; +export function useGetTasksForAddingTagsQuery( + baseOptions: Apollo.QueryHookOptions< + GetTasksForAddingTagsQuery, + GetTasksForAddingTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetTasksForAddingTagsQuery, + GetTasksForAddingTagsQueryVariables + >(GetTasksForAddingTagsDocument, options); } - `; -export function useGetTasksForAddingTagsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTasksForAddingTagsDocument, options); - } -export function useGetTasksForAddingTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTasksForAddingTagsDocument, options); - } -export type GetTasksForAddingTagsQueryHookResult = ReturnType; -export type GetTasksForAddingTagsLazyQueryHookResult = ReturnType; -export type GetTasksForAddingTagsQueryResult = Apollo.QueryResult; +export function useGetTasksForAddingTagsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTasksForAddingTagsQuery, + GetTasksForAddingTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetTasksForAddingTagsQuery, + GetTasksForAddingTagsQueryVariables + >(GetTasksForAddingTagsDocument, options); +} +export type GetTasksForAddingTagsQueryHookResult = ReturnType< + typeof useGetTasksForAddingTagsQuery +>; +export type GetTasksForAddingTagsLazyQueryHookResult = ReturnType< + typeof useGetTasksForAddingTagsLazyQuery +>; +export type GetTasksForAddingTagsQueryResult = Apollo.QueryResult< + GetTasksForAddingTagsQuery, + GetTasksForAddingTagsQueryVariables +>; export const GetTaskTagListDocument = gql` - query GetTaskTagList($accountListId: ID!) { - accountList(id: $accountListId) { - id - taskTagList + query GetTaskTagList($accountListId: ID!) { + accountList(id: $accountListId) { + id + taskTagList + } } +`; +export function useGetTaskTagListQuery( + baseOptions: Apollo.QueryHookOptions< + GetTaskTagListQuery, + GetTaskTagListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetTaskTagListDocument, + options, + ); } - `; -export function useGetTaskTagListQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTaskTagListDocument, options); - } -export function useGetTaskTagListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTaskTagListDocument, options); - } -export type GetTaskTagListQueryHookResult = ReturnType; -export type GetTaskTagListLazyQueryHookResult = ReturnType; -export type GetTaskTagListQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetTaskTagListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTaskTagListQuery, + GetTaskTagListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetTaskTagListDocument, + options, + ); +} +export type GetTaskTagListQueryHookResult = ReturnType< + typeof useGetTaskTagListQuery +>; +export type GetTaskTagListLazyQueryHookResult = ReturnType< + typeof useGetTaskTagListLazyQuery +>; +export type GetTaskTagListQueryResult = Apollo.QueryResult< + GetTaskTagListQuery, + GetTaskTagListQueryVariables +>; diff --git a/src/components/Task/MassActions/MassActionsUpdateTasks.generated.ts b/src/components/Task/MassActions/MassActionsUpdateTasks.generated.ts index 439f9676f..92cd5383f 100644 --- a/src/components/Task/MassActions/MassActionsUpdateTasks.generated.ts +++ b/src/components/Task/MassActions/MassActionsUpdateTasks.generated.ts @@ -9,75 +9,127 @@ export type MassActionsUpdateTasksMutationVariables = Types.Exact<{ attributes: Array | Types.TaskUpdateInput; }>; - -export type MassActionsUpdateTasksMutation = ( - { __typename?: 'Mutation' } - & { updateTasks?: Types.Maybe<( - { __typename?: 'TasksUpdateMutationPayload' } - & { tasks: Array<( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - )> } - )> } -); +export type MassActionsUpdateTasksMutation = { __typename?: 'Mutation' } & { + updateTasks?: Types.Maybe< + { __typename?: 'TasksUpdateMutationPayload' } & { + tasks: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' + > & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + } + >; + } + >; +}; export type MassActionsDeleteTasksMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; - ids: Array | Types.Scalars['String']['input']; + ids: + | Array + | Types.Scalars['String']['input']; }>; - -export type MassActionsDeleteTasksMutation = ( - { __typename?: 'Mutation' } - & { deleteTasks?: Types.Maybe<( - { __typename?: 'TasksDeleteMutationPayload' } - & Pick - )> } -); - +export type MassActionsDeleteTasksMutation = { __typename?: 'Mutation' } & { + deleteTasks?: Types.Maybe< + { __typename?: 'TasksDeleteMutationPayload' } & Pick< + Types.TasksDeleteMutationPayload, + 'ids' + > + >; +}; export const MassActionsUpdateTasksDocument = gql` - mutation MassActionsUpdateTasks($accountListId: ID!, $attributes: [TaskUpdateInput!]!) { - updateTasks(input: {accountListId: $accountListId, attributes: $attributes}) { - tasks { - ...TaskRow + mutation MassActionsUpdateTasks( + $accountListId: ID! + $attributes: [TaskUpdateInput!]! + ) { + updateTasks( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + tasks { + ...TaskRow + } } } + ${TaskRowFragmentDoc} +`; +export type MassActionsUpdateTasksMutationFn = Apollo.MutationFunction< + MassActionsUpdateTasksMutation, + MassActionsUpdateTasksMutationVariables +>; +export function useMassActionsUpdateTasksMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsUpdateTasksMutation, + MassActionsUpdateTasksMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsUpdateTasksMutation, + MassActionsUpdateTasksMutationVariables + >(MassActionsUpdateTasksDocument, options); } - ${TaskRowFragmentDoc}`; -export type MassActionsUpdateTasksMutationFn = Apollo.MutationFunction; -export function useMassActionsUpdateTasksMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsUpdateTasksDocument, options); - } -export type MassActionsUpdateTasksMutationHookResult = ReturnType; -export type MassActionsUpdateTasksMutationResult = Apollo.MutationResult; -export type MassActionsUpdateTasksMutationOptions = Apollo.BaseMutationOptions; +export type MassActionsUpdateTasksMutationHookResult = ReturnType< + typeof useMassActionsUpdateTasksMutation +>; +export type MassActionsUpdateTasksMutationResult = + Apollo.MutationResult; +export type MassActionsUpdateTasksMutationOptions = Apollo.BaseMutationOptions< + MassActionsUpdateTasksMutation, + MassActionsUpdateTasksMutationVariables +>; export const MassActionsDeleteTasksDocument = gql` - mutation MassActionsDeleteTasks($accountListId: ID!, $ids: [String!]!) { - deleteTasks(input: {accountListId: $accountListId, ids: $ids}) { - ids + mutation MassActionsDeleteTasks($accountListId: ID!, $ids: [String!]!) { + deleteTasks(input: { accountListId: $accountListId, ids: $ids }) { + ids + } } +`; +export type MassActionsDeleteTasksMutationFn = Apollo.MutationFunction< + MassActionsDeleteTasksMutation, + MassActionsDeleteTasksMutationVariables +>; +export function useMassActionsDeleteTasksMutation( + baseOptions?: Apollo.MutationHookOptions< + MassActionsDeleteTasksMutation, + MassActionsDeleteTasksMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + MassActionsDeleteTasksMutation, + MassActionsDeleteTasksMutationVariables + >(MassActionsDeleteTasksDocument, options); } - `; -export type MassActionsDeleteTasksMutationFn = Apollo.MutationFunction; -export function useMassActionsDeleteTasksMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(MassActionsDeleteTasksDocument, options); - } -export type MassActionsDeleteTasksMutationHookResult = ReturnType; -export type MassActionsDeleteTasksMutationResult = Apollo.MutationResult; -export type MassActionsDeleteTasksMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type MassActionsDeleteTasksMutationHookResult = ReturnType< + typeof useMassActionsDeleteTasksMutation +>; +export type MassActionsDeleteTasksMutationResult = + Apollo.MutationResult; +export type MassActionsDeleteTasksMutationOptions = Apollo.BaseMutationOptions< + MassActionsDeleteTasksMutation, + MassActionsDeleteTasksMutationVariables +>; diff --git a/src/components/Task/Modal/Comments/Form/CreateTaskComment.generated.ts b/src/components/Task/Modal/Comments/Form/CreateTaskComment.generated.ts index a00c8dacb..dfaf552e7 100644 --- a/src/components/Task/Modal/Comments/Form/CreateTaskComment.generated.ts +++ b/src/components/Task/Modal/Comments/Form/CreateTaskComment.generated.ts @@ -10,39 +10,66 @@ export type CreateTaskCommentMutationVariables = Types.Exact<{ attributes: Types.TaskCommentCreateInput; }>; - -export type CreateTaskCommentMutation = ( - { __typename?: 'Mutation' } - & { createTaskComment?: Types.Maybe<( - { __typename?: 'TaskCommentCreateMutationPayload' } - & { comment: ( - { __typename?: 'Comment' } - & Pick - & { person?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - ) } - )> } -); - +export type CreateTaskCommentMutation = { __typename?: 'Mutation' } & { + createTaskComment?: Types.Maybe< + { __typename?: 'TaskCommentCreateMutationPayload' } & { + comment: { __typename?: 'Comment' } & Pick< + Types.Comment, + 'id' | 'body' | 'updatedAt' | 'me' + > & { + person?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + }; + } + >; +}; export const CreateTaskCommentDocument = gql` - mutation CreateTaskComment($accountListId: ID!, $taskId: ID!, $attributes: TaskCommentCreateInput!) { - createTaskComment( - input: {accountListId: $accountListId, taskId: $taskId, attributes: $attributes} + mutation CreateTaskComment( + $accountListId: ID! + $taskId: ID! + $attributes: TaskCommentCreateInput! ) { - comment { - ...TaskModalComment + createTaskComment( + input: { + accountListId: $accountListId + taskId: $taskId + attributes: $attributes + } + ) { + comment { + ...TaskModalComment + } } } + ${TaskModalCommentFragmentDoc} +`; +export type CreateTaskCommentMutationFn = Apollo.MutationFunction< + CreateTaskCommentMutation, + CreateTaskCommentMutationVariables +>; +export function useCreateTaskCommentMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateTaskCommentMutation, + CreateTaskCommentMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateTaskCommentMutation, + CreateTaskCommentMutationVariables + >(CreateTaskCommentDocument, options); } - ${TaskModalCommentFragmentDoc}`; -export type CreateTaskCommentMutationFn = Apollo.MutationFunction; -export function useCreateTaskCommentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateTaskCommentDocument, options); - } -export type CreateTaskCommentMutationHookResult = ReturnType; -export type CreateTaskCommentMutationResult = Apollo.MutationResult; -export type CreateTaskCommentMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateTaskCommentMutationHookResult = ReturnType< + typeof useCreateTaskCommentMutation +>; +export type CreateTaskCommentMutationResult = + Apollo.MutationResult; +export type CreateTaskCommentMutationOptions = Apollo.BaseMutationOptions< + CreateTaskCommentMutation, + CreateTaskCommentMutationVariables +>; diff --git a/src/components/Task/Modal/Comments/Item/DeleteTaskComment.generated.ts b/src/components/Task/Modal/Comments/Item/DeleteTaskComment.generated.ts index ad484f44d..ad018b218 100644 --- a/src/components/Task/Modal/Comments/Item/DeleteTaskComment.generated.ts +++ b/src/components/Task/Modal/Comments/Item/DeleteTaskComment.generated.ts @@ -8,28 +8,42 @@ export type DeleteCommentMutationVariables = Types.Exact<{ commentId: Types.Scalars['ID']['input']; }>; - -export type DeleteCommentMutation = ( - { __typename?: 'Mutation' } - & { deleteComment: ( - { __typename?: 'CommentDeleteMutationPayload' } - & Pick - ) } -); - +export type DeleteCommentMutation = { __typename?: 'Mutation' } & { + deleteComment: { __typename?: 'CommentDeleteMutationPayload' } & Pick< + Types.CommentDeleteMutationPayload, + 'id' + >; +}; export const DeleteCommentDocument = gql` - mutation DeleteComment($taskId: ID!, $commentId: ID!) { - deleteComment(input: {taskId: $taskId, commentId: $commentId}) { - id + mutation DeleteComment($taskId: ID!, $commentId: ID!) { + deleteComment(input: { taskId: $taskId, commentId: $commentId }) { + id + } } +`; +export type DeleteCommentMutationFn = Apollo.MutationFunction< + DeleteCommentMutation, + DeleteCommentMutationVariables +>; +export function useDeleteCommentMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteCommentMutation, + DeleteCommentMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + DeleteCommentMutation, + DeleteCommentMutationVariables + >(DeleteCommentDocument, options); } - `; -export type DeleteCommentMutationFn = Apollo.MutationFunction; -export function useDeleteCommentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteCommentDocument, options); - } -export type DeleteCommentMutationHookResult = ReturnType; -export type DeleteCommentMutationResult = Apollo.MutationResult; -export type DeleteCommentMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteCommentMutationHookResult = ReturnType< + typeof useDeleteCommentMutation +>; +export type DeleteCommentMutationResult = + Apollo.MutationResult; +export type DeleteCommentMutationOptions = Apollo.BaseMutationOptions< + DeleteCommentMutation, + DeleteCommentMutationVariables +>; diff --git a/src/components/Task/Modal/Comments/Item/UpdateTaskComment.generated.ts b/src/components/Task/Modal/Comments/Item/UpdateTaskComment.generated.ts index 4c48ea508..a3c9dbb66 100644 --- a/src/components/Task/Modal/Comments/Item/UpdateTaskComment.generated.ts +++ b/src/components/Task/Modal/Comments/Item/UpdateTaskComment.generated.ts @@ -9,28 +9,44 @@ export type UpdateCommentMutationVariables = Types.Exact<{ body: Types.Scalars['String']['input']; }>; - -export type UpdateCommentMutation = ( - { __typename?: 'Mutation' } - & { updateComment: ( - { __typename?: 'CommentUpdateMutationPayload' } - & Pick - ) } -); - +export type UpdateCommentMutation = { __typename?: 'Mutation' } & { + updateComment: { __typename?: 'CommentUpdateMutationPayload' } & Pick< + Types.CommentUpdateMutationPayload, + 'id' + >; +}; export const UpdateCommentDocument = gql` - mutation UpdateComment($taskId: ID!, $commentId: ID!, $body: String!) { - updateComment(input: {taskId: $taskId, commentId: $commentId, body: $body}) { - id + mutation UpdateComment($taskId: ID!, $commentId: ID!, $body: String!) { + updateComment( + input: { taskId: $taskId, commentId: $commentId, body: $body } + ) { + id + } } +`; +export type UpdateCommentMutationFn = Apollo.MutationFunction< + UpdateCommentMutation, + UpdateCommentMutationVariables +>; +export function useUpdateCommentMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateCommentMutation, + UpdateCommentMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateCommentMutation, + UpdateCommentMutationVariables + >(UpdateCommentDocument, options); } - `; -export type UpdateCommentMutationFn = Apollo.MutationFunction; -export function useUpdateCommentMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateCommentDocument, options); - } -export type UpdateCommentMutationHookResult = ReturnType; -export type UpdateCommentMutationResult = Apollo.MutationResult; -export type UpdateCommentMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateCommentMutationHookResult = ReturnType< + typeof useUpdateCommentMutation +>; +export type UpdateCommentMutationResult = + Apollo.MutationResult; +export type UpdateCommentMutationOptions = Apollo.BaseMutationOptions< + UpdateCommentMutation, + UpdateCommentMutationVariables +>; diff --git a/src/components/Task/Modal/Comments/TaskListComments.generated.ts b/src/components/Task/Modal/Comments/TaskListComments.generated.ts index 887dbe9f5..54e284af5 100644 --- a/src/components/Task/Modal/Comments/TaskListComments.generated.ts +++ b/src/components/Task/Modal/Comments/TaskListComments.generated.ts @@ -3,73 +3,102 @@ import * as Types from '../../../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type TaskModalCommentFragment = ( - { __typename?: 'Comment' } - & Pick - & { person?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } -); +export type TaskModalCommentFragment = { __typename?: 'Comment' } & Pick< + Types.Comment, + 'id' | 'body' | 'updatedAt' | 'me' +> & { + person?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + }; export type GetCommentsForTaskModalCommentListQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; taskId: Types.Scalars['ID']['input']; }>; - -export type GetCommentsForTaskModalCommentListQuery = ( - { __typename?: 'Query' } - & { task: ( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & { nodes: Array<( - { __typename?: 'Comment' } - & Pick - & { person?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - )> } - ) } - ) } -); +export type GetCommentsForTaskModalCommentListQuery = { + __typename?: 'Query'; +} & { + task: { __typename?: 'Task' } & Pick & { + comments: { __typename?: 'CommentConnection' } & { + nodes: Array< + { __typename?: 'Comment' } & Pick< + Types.Comment, + 'id' | 'body' | 'updatedAt' | 'me' + > & { + person?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + } + >; + }; + }; +}; export const TaskModalCommentFragmentDoc = gql` - fragment TaskModalComment on Comment { - id - body - updatedAt - me - person { + fragment TaskModalComment on Comment { id - firstName - lastName + body + updatedAt + me + person { + id + firstName + lastName + } } -} - `; +`; export const GetCommentsForTaskModalCommentListDocument = gql` - query GetCommentsForTaskModalCommentList($accountListId: ID!, $taskId: ID!) { - task(accountListId: $accountListId, id: $taskId) { - id - comments(first: 25) { - nodes { - ...TaskModalComment + query GetCommentsForTaskModalCommentList($accountListId: ID!, $taskId: ID!) { + task(accountListId: $accountListId, id: $taskId) { + id + comments(first: 25) { + nodes { + ...TaskModalComment + } } } } + ${TaskModalCommentFragmentDoc} +`; +export function useGetCommentsForTaskModalCommentListQuery( + baseOptions: Apollo.QueryHookOptions< + GetCommentsForTaskModalCommentListQuery, + GetCommentsForTaskModalCommentListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetCommentsForTaskModalCommentListQuery, + GetCommentsForTaskModalCommentListQueryVariables + >(GetCommentsForTaskModalCommentListDocument, options); } - ${TaskModalCommentFragmentDoc}`; -export function useGetCommentsForTaskModalCommentListQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetCommentsForTaskModalCommentListDocument, options); - } -export function useGetCommentsForTaskModalCommentListLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetCommentsForTaskModalCommentListDocument, options); - } -export type GetCommentsForTaskModalCommentListQueryHookResult = ReturnType; -export type GetCommentsForTaskModalCommentListLazyQueryHookResult = ReturnType; -export type GetCommentsForTaskModalCommentListQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetCommentsForTaskModalCommentListLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetCommentsForTaskModalCommentListQuery, + GetCommentsForTaskModalCommentListQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetCommentsForTaskModalCommentListQuery, + GetCommentsForTaskModalCommentListQueryVariables + >(GetCommentsForTaskModalCommentListDocument, options); +} +export type GetCommentsForTaskModalCommentListQueryHookResult = ReturnType< + typeof useGetCommentsForTaskModalCommentListQuery +>; +export type GetCommentsForTaskModalCommentListLazyQueryHookResult = ReturnType< + typeof useGetCommentsForTaskModalCommentListLazyQuery +>; +export type GetCommentsForTaskModalCommentListQueryResult = Apollo.QueryResult< + GetCommentsForTaskModalCommentListQuery, + GetCommentsForTaskModalCommentListQueryVariables +>; diff --git a/src/components/Task/Modal/Form/Complete/CompleteTask.generated.ts b/src/components/Task/Modal/Form/Complete/CompleteTask.generated.ts index 4b2c2381a..84b7a1936 100644 --- a/src/components/Task/Modal/Form/Complete/CompleteTask.generated.ts +++ b/src/components/Task/Modal/Form/Complete/CompleteTask.generated.ts @@ -8,37 +8,54 @@ export type CompleteTaskMutationVariables = Types.Exact<{ attributes: Types.TaskUpdateInput; }>; - -export type CompleteTaskMutation = ( - { __typename?: 'Mutation' } - & { updateTask?: Types.Maybe<( - { __typename?: 'TaskUpdateMutationPayload' } - & { task: ( - { __typename?: 'Task' } - & Pick - ) } - )> } -); - +export type CompleteTaskMutation = { __typename?: 'Mutation' } & { + updateTask?: Types.Maybe< + { __typename?: 'TaskUpdateMutationPayload' } & { + task: { __typename?: 'Task' } & Pick< + Types.Task, + 'id' | 'result' | 'nextAction' | 'tagList' | 'completedAt' + >; + } + >; +}; export const CompleteTaskDocument = gql` - mutation CompleteTask($accountListId: ID!, $attributes: TaskUpdateInput!) { - updateTask(input: {accountListId: $accountListId, attributes: $attributes}) { - task { - id - result - nextAction - tagList - completedAt + mutation CompleteTask($accountListId: ID!, $attributes: TaskUpdateInput!) { + updateTask( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + task { + id + result + nextAction + tagList + completedAt + } } } +`; +export type CompleteTaskMutationFn = Apollo.MutationFunction< + CompleteTaskMutation, + CompleteTaskMutationVariables +>; +export function useCompleteTaskMutation( + baseOptions?: Apollo.MutationHookOptions< + CompleteTaskMutation, + CompleteTaskMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CompleteTaskMutation, + CompleteTaskMutationVariables + >(CompleteTaskDocument, options); } - `; -export type CompleteTaskMutationFn = Apollo.MutationFunction; -export function useCompleteTaskMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CompleteTaskDocument, options); - } -export type CompleteTaskMutationHookResult = ReturnType; -export type CompleteTaskMutationResult = Apollo.MutationResult; -export type CompleteTaskMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CompleteTaskMutationHookResult = ReturnType< + typeof useCompleteTaskMutation +>; +export type CompleteTaskMutationResult = + Apollo.MutationResult; +export type CompleteTaskMutationOptions = Apollo.BaseMutationOptions< + CompleteTaskMutation, + CompleteTaskMutationVariables +>; diff --git a/src/components/Task/Modal/Form/Inputs/ContactsAutocomplete/ContactsAutocomplete.generated.ts b/src/components/Task/Modal/Form/Inputs/ContactsAutocomplete/ContactsAutocomplete.generated.ts index 00668518c..43b2b20f9 100644 --- a/src/components/Task/Modal/Form/Inputs/ContactsAutocomplete/ContactsAutocomplete.generated.ts +++ b/src/components/Task/Modal/Form/Inputs/ContactsAutocomplete/ContactsAutocomplete.generated.ts @@ -9,41 +9,63 @@ export type ContactOptionsQueryVariables = Types.Exact<{ first: Types.Scalars['Int']['input']; }>; - -export type ContactOptionsQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type ContactOptionsQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; +}; export const ContactOptionsDocument = gql` - query ContactOptions($accountListId: ID!, $contactsFilters: ContactFilterSetInput, $first: Int!) { - contacts( - accountListId: $accountListId - contactsFilter: $contactsFilters - first: $first + query ContactOptions( + $accountListId: ID! + $contactsFilters: ContactFilterSetInput + $first: Int! ) { - nodes { - id - name + contacts( + accountListId: $accountListId + contactsFilter: $contactsFilters + first: $first + ) { + nodes { + id + name + } } } +`; +export function useContactOptionsQuery( + baseOptions: Apollo.QueryHookOptions< + ContactOptionsQuery, + ContactOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + ContactOptionsDocument, + options, + ); } - `; -export function useContactOptionsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(ContactOptionsDocument, options); - } -export function useContactOptionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(ContactOptionsDocument, options); - } -export type ContactOptionsQueryHookResult = ReturnType; -export type ContactOptionsLazyQueryHookResult = ReturnType; -export type ContactOptionsQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useContactOptionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + ContactOptionsQuery, + ContactOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + ContactOptionsDocument, + options, + ); +} +export type ContactOptionsQueryHookResult = ReturnType< + typeof useContactOptionsQuery +>; +export type ContactOptionsLazyQueryHookResult = ReturnType< + typeof useContactOptionsLazyQuery +>; +export type ContactOptionsQueryResult = Apollo.QueryResult< + ContactOptionsQuery, + ContactOptionsQueryVariables +>; diff --git a/src/components/Task/Modal/Form/Inputs/TagsAutocomplete/TagsAutocomplete.generated.ts b/src/components/Task/Modal/Form/Inputs/TagsAutocomplete/TagsAutocomplete.generated.ts index f21ca5c9c..40cc0bf6a 100644 --- a/src/components/Task/Modal/Form/Inputs/TagsAutocomplete/TagsAutocomplete.generated.ts +++ b/src/components/Task/Modal/Form/Inputs/TagsAutocomplete/TagsAutocomplete.generated.ts @@ -8,33 +8,51 @@ export type TagOptionsQueryVariables = Types.Exact<{ contact: Types.Scalars['Boolean']['input']; }>; - -export type TagOptionsQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Types.MakeOptional, 'contactTagList' | 'taskTagList'> - ) } -); - +export type TagOptionsQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Types.MakeOptional< + Pick, + 'contactTagList' | 'taskTagList' + >; +}; export const TagOptionsDocument = gql` - query TagOptions($accountListId: ID!, $contact: Boolean!) { - accountList(id: $accountListId) { - id - contactTagList @include(if: $contact) - taskTagList @skip(if: $contact) + query TagOptions($accountListId: ID!, $contact: Boolean!) { + accountList(id: $accountListId) { + id + contactTagList @include(if: $contact) + taskTagList @skip(if: $contact) + } } +`; +export function useTagOptionsQuery( + baseOptions: Apollo.QueryHookOptions< + TagOptionsQuery, + TagOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + TagOptionsDocument, + options, + ); +} +export function useTagOptionsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + TagOptionsQuery, + TagOptionsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + TagOptionsDocument, + options, + ); } - `; -export function useTagOptionsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(TagOptionsDocument, options); - } -export function useTagOptionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(TagOptionsDocument, options); - } export type TagOptionsQueryHookResult = ReturnType; -export type TagOptionsLazyQueryHookResult = ReturnType; -export type TagOptionsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type TagOptionsLazyQueryHookResult = ReturnType< + typeof useTagOptionsLazyQuery +>; +export type TagOptionsQueryResult = Apollo.QueryResult< + TagOptionsQuery, + TagOptionsQueryVariables +>; diff --git a/src/components/Task/Modal/Form/TaskModal.generated.ts b/src/components/Task/Modal/Form/TaskModal.generated.ts index 371846a7f..7193232c1 100644 --- a/src/components/Task/Modal/Form/TaskModal.generated.ts +++ b/src/components/Task/Modal/Form/TaskModal.generated.ts @@ -9,122 +9,198 @@ export type CreateTasksMutationVariables = Types.Exact<{ attributes: Types.TaskCreateInput; }>; - -export type CreateTasksMutation = ( - { __typename?: 'Mutation' } - & { createTasks?: Types.Maybe<( - { __typename?: 'TasksCreateMutationPayload' } - & { tasks: Array<( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - )> } - )> } -); +export type CreateTasksMutation = { __typename?: 'Mutation' } & { + createTasks?: Types.Maybe< + { __typename?: 'TasksCreateMutationPayload' } & { + tasks: Array< + { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' + > & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + } + >; + } + >; +}; export type UpdateTaskMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; attributes: Types.TaskUpdateInput; }>; - -export type UpdateTaskMutation = ( - { __typename?: 'Mutation' } - & { updateTask?: Types.Maybe<( - { __typename?: 'TaskUpdateMutationPayload' } - & { task: ( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - ) } - )> } -); +export type UpdateTaskMutation = { __typename?: 'Mutation' } & { + updateTask?: Types.Maybe< + { __typename?: 'TaskUpdateMutationPayload' } & { + task: { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' + > & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + }; + } + >; +}; export type DeleteTaskMutationVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; id: Types.Scalars['ID']['input']; }>; - -export type DeleteTaskMutation = ( - { __typename?: 'Mutation' } - & { deleteTask?: Types.Maybe<( - { __typename?: 'TaskDeleteMutationPayload' } - & Pick - )> } -); - +export type DeleteTaskMutation = { __typename?: 'Mutation' } & { + deleteTask?: Types.Maybe< + { __typename?: 'TaskDeleteMutationPayload' } & Pick< + Types.TaskDeleteMutationPayload, + 'id' + > + >; +}; export const CreateTasksDocument = gql` - mutation CreateTasks($accountListId: ID!, $attributes: TaskCreateInput!) { - createTasks(input: {accountListId: $accountListId, attributes: $attributes}) { - tasks { - ...TaskRow + mutation CreateTasks($accountListId: ID!, $attributes: TaskCreateInput!) { + createTasks( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + tasks { + ...TaskRow + } } } + ${TaskRowFragmentDoc} +`; +export type CreateTasksMutationFn = Apollo.MutationFunction< + CreateTasksMutation, + CreateTasksMutationVariables +>; +export function useCreateTasksMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateTasksMutation, + CreateTasksMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + CreateTasksDocument, + options, + ); } - ${TaskRowFragmentDoc}`; -export type CreateTasksMutationFn = Apollo.MutationFunction; -export function useCreateTasksMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateTasksDocument, options); - } -export type CreateTasksMutationHookResult = ReturnType; -export type CreateTasksMutationResult = Apollo.MutationResult; -export type CreateTasksMutationOptions = Apollo.BaseMutationOptions; +export type CreateTasksMutationHookResult = ReturnType< + typeof useCreateTasksMutation +>; +export type CreateTasksMutationResult = + Apollo.MutationResult; +export type CreateTasksMutationOptions = Apollo.BaseMutationOptions< + CreateTasksMutation, + CreateTasksMutationVariables +>; export const UpdateTaskDocument = gql` - mutation UpdateTask($accountListId: ID!, $attributes: TaskUpdateInput!) { - updateTask(input: {accountListId: $accountListId, attributes: $attributes}) { - task { - ...TaskRow + mutation UpdateTask($accountListId: ID!, $attributes: TaskUpdateInput!) { + updateTask( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + task { + ...TaskRow + } } } + ${TaskRowFragmentDoc} +`; +export type UpdateTaskMutationFn = Apollo.MutationFunction< + UpdateTaskMutation, + UpdateTaskMutationVariables +>; +export function useUpdateTaskMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateTaskMutation, + UpdateTaskMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + UpdateTaskDocument, + options, + ); } - ${TaskRowFragmentDoc}`; -export type UpdateTaskMutationFn = Apollo.MutationFunction; -export function useUpdateTaskMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateTaskDocument, options); - } -export type UpdateTaskMutationHookResult = ReturnType; -export type UpdateTaskMutationResult = Apollo.MutationResult; -export type UpdateTaskMutationOptions = Apollo.BaseMutationOptions; +export type UpdateTaskMutationHookResult = ReturnType< + typeof useUpdateTaskMutation +>; +export type UpdateTaskMutationResult = + Apollo.MutationResult; +export type UpdateTaskMutationOptions = Apollo.BaseMutationOptions< + UpdateTaskMutation, + UpdateTaskMutationVariables +>; export const DeleteTaskDocument = gql` - mutation DeleteTask($accountListId: ID!, $id: ID!) { - deleteTask(input: {accountListId: $accountListId, id: $id}) { - id + mutation DeleteTask($accountListId: ID!, $id: ID!) { + deleteTask(input: { accountListId: $accountListId, id: $id }) { + id + } } +`; +export type DeleteTaskMutationFn = Apollo.MutationFunction< + DeleteTaskMutation, + DeleteTaskMutationVariables +>; +export function useDeleteTaskMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteTaskMutation, + DeleteTaskMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + DeleteTaskDocument, + options, + ); } - `; -export type DeleteTaskMutationFn = Apollo.MutationFunction; -export function useDeleteTaskMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteTaskDocument, options); - } -export type DeleteTaskMutationHookResult = ReturnType; -export type DeleteTaskMutationResult = Apollo.MutationResult; -export type DeleteTaskMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type DeleteTaskMutationHookResult = ReturnType< + typeof useDeleteTaskMutation +>; +export type DeleteTaskMutationResult = + Apollo.MutationResult; +export type DeleteTaskMutationOptions = Apollo.BaseMutationOptions< + DeleteTaskMutation, + DeleteTaskMutationVariables +>; diff --git a/src/components/Task/Modal/TaskModalTask.generated.ts b/src/components/Task/Modal/TaskModalTask.generated.ts index 456d4f387..5c9f562fa 100644 --- a/src/components/Task/Modal/TaskModalTask.generated.ts +++ b/src/components/Task/Modal/TaskModalTask.generated.ts @@ -9,69 +9,107 @@ export type GetTaskForTaskModalQueryVariables = Types.Exact<{ includeComments: Types.Scalars['Boolean']['input']; }>; - -export type GetTaskForTaskModalQuery = ( - { __typename?: 'Query' } - & { task: ( - { __typename?: 'Task' } - & Pick - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), comments?: ( - { __typename?: 'CommentConnection' } - & Pick - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } - ) } -); - +export type GetTaskForTaskModalQuery = { __typename?: 'Query' } & { + task: { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'subject' + | 'location' + | 'startAt' + | 'completedAt' + | 'result' + | 'nextAction' + | 'tagList' + | 'notificationTimeBefore' + | 'notificationType' + | 'notificationTimeUnit' + > & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + comments?: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + }; +}; export const GetTaskForTaskModalDocument = gql` - query GetTaskForTaskModal($accountListId: ID!, $taskId: ID!, $includeComments: Boolean!) { - task(accountListId: $accountListId, id: $taskId) { - id - activityType - subject - location - startAt - completedAt - result - nextAction - tagList - contacts(first: 25) { - nodes { + query GetTaskForTaskModal( + $accountListId: ID! + $taskId: ID! + $includeComments: Boolean! + ) { + task(accountListId: $accountListId, id: $taskId) { + id + activityType + subject + location + startAt + completedAt + result + nextAction + tagList + contacts(first: 25) { + nodes { + id + name + } + } + comments @include(if: $includeComments) { + totalCount + } + user { id - name + firstName + lastName } + notificationTimeBefore + notificationType + notificationTimeUnit } - comments @include(if: $includeComments) { - totalCount - } - user { - id - firstName - lastName - } - notificationTimeBefore - notificationType - notificationTimeUnit } +`; +export function useGetTaskForTaskModalQuery( + baseOptions: Apollo.QueryHookOptions< + GetTaskForTaskModalQuery, + GetTaskForTaskModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetTaskForTaskModalQuery, + GetTaskForTaskModalQueryVariables + >(GetTaskForTaskModalDocument, options); } - `; -export function useGetTaskForTaskModalQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTaskForTaskModalDocument, options); - } -export function useGetTaskForTaskModalLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTaskForTaskModalDocument, options); - } -export type GetTaskForTaskModalQueryHookResult = ReturnType; -export type GetTaskForTaskModalLazyQueryHookResult = ReturnType; -export type GetTaskForTaskModalQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetTaskForTaskModalLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTaskForTaskModalQuery, + GetTaskForTaskModalQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetTaskForTaskModalQuery, + GetTaskForTaskModalQueryVariables + >(GetTaskForTaskModalDocument, options); +} +export type GetTaskForTaskModalQueryHookResult = ReturnType< + typeof useGetTaskForTaskModalQuery +>; +export type GetTaskForTaskModalLazyQueryHookResult = ReturnType< + typeof useGetTaskForTaskModalLazyQuery +>; +export type GetTaskForTaskModalQueryResult = Apollo.QueryResult< + GetTaskForTaskModalQuery, + GetTaskForTaskModalQueryVariables +>; diff --git a/src/components/Task/TaskRow/TaskRow.generated.ts b/src/components/Task/TaskRow/TaskRow.generated.ts index c2e6db8cd..6394bf951 100644 --- a/src/components/Task/TaskRow/TaskRow.generated.ts +++ b/src/components/Task/TaskRow/TaskRow.generated.ts @@ -1,47 +1,57 @@ import * as Types from '../../../graphql/types.generated'; import { gql } from '@apollo/client'; -export type TaskRowFragment = ( - { __typename?: 'Task' } - & Pick - & { comments: ( - { __typename?: 'CommentConnection' } - & Pick - ), contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ), user?: Types.Maybe<( - { __typename?: 'UserScopedToAccountList' } - & Pick - )> } -); +export type TaskRowFragment = { __typename?: 'Task' } & Pick< + Types.Task, + | 'id' + | 'activityType' + | 'startAt' + | 'completedAt' + | 'result' + | 'starred' + | 'subject' + | 'tagList' +> & { + comments: { __typename?: 'CommentConnection' } & Pick< + Types.CommentConnection, + 'totalCount' + >; + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick + >; + }; + user?: Types.Maybe< + { __typename?: 'UserScopedToAccountList' } & Pick< + Types.UserScopedToAccountList, + 'id' | 'firstName' | 'lastName' + > + >; + }; export const TaskRowFragmentDoc = gql` - fragment TaskRow on Task { - id - activityType - startAt - completedAt - comments { - totalCount - } - contacts(first: 25) { - nodes { + fragment TaskRow on Task { + id + activityType + startAt + completedAt + comments { + totalCount + } + contacts(first: 25) { + nodes { + id + name + } + } + result + starred + subject + tagList + user { id - name + firstName + lastName } } - result - starred - subject - tagList - user { - id - firstName - lastName - } -} - `; \ No newline at end of file +`; diff --git a/src/components/Tool/Appeal/ChangePrimaryAppeal.generated.ts b/src/components/Tool/Appeal/ChangePrimaryAppeal.generated.ts index 2775b7218..fa7038831 100644 --- a/src/components/Tool/Appeal/ChangePrimaryAppeal.generated.ts +++ b/src/components/Tool/Appeal/ChangePrimaryAppeal.generated.ts @@ -8,35 +8,50 @@ export type ChangePrimaryAppealMutationVariables = Types.Exact<{ attributes: Types.AppealUpdateInput; }>; - -export type ChangePrimaryAppealMutation = ( - { __typename?: 'Mutation' } - & { setPrimary?: Types.Maybe<( - { __typename?: 'AppealUpdateMutationPayload' } - & { appeal: ( - { __typename?: 'Appeal' } - & Pick - ) } - )> } -); - +export type ChangePrimaryAppealMutation = { __typename?: 'Mutation' } & { + setPrimary?: Types.Maybe< + { __typename?: 'AppealUpdateMutationPayload' } & { + appeal: { __typename?: 'Appeal' } & Pick; + } + >; +}; export const ChangePrimaryAppealDocument = gql` - mutation ChangePrimaryAppeal($accountListId: ID!, $attributes: AppealUpdateInput!) { - setPrimary: updateAppeal( - input: {accountListId: $accountListId, attributes: $attributes} + mutation ChangePrimaryAppeal( + $accountListId: ID! + $attributes: AppealUpdateInput! ) { - appeal { - id + setPrimary: updateAppeal( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + appeal { + id + } } } +`; +export type ChangePrimaryAppealMutationFn = Apollo.MutationFunction< + ChangePrimaryAppealMutation, + ChangePrimaryAppealMutationVariables +>; +export function useChangePrimaryAppealMutation( + baseOptions?: Apollo.MutationHookOptions< + ChangePrimaryAppealMutation, + ChangePrimaryAppealMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + ChangePrimaryAppealMutation, + ChangePrimaryAppealMutationVariables + >(ChangePrimaryAppealDocument, options); } - `; -export type ChangePrimaryAppealMutationFn = Apollo.MutationFunction; -export function useChangePrimaryAppealMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(ChangePrimaryAppealDocument, options); - } -export type ChangePrimaryAppealMutationHookResult = ReturnType; -export type ChangePrimaryAppealMutationResult = Apollo.MutationResult; -export type ChangePrimaryAppealMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type ChangePrimaryAppealMutationHookResult = ReturnType< + typeof useChangePrimaryAppealMutation +>; +export type ChangePrimaryAppealMutationResult = + Apollo.MutationResult; +export type ChangePrimaryAppealMutationOptions = Apollo.BaseMutationOptions< + ChangePrimaryAppealMutation, + ChangePrimaryAppealMutationVariables +>; diff --git a/src/components/Tool/Appeal/CreateAppeal.generated.ts b/src/components/Tool/Appeal/CreateAppeal.generated.ts index ef35f5835..347582b25 100644 --- a/src/components/Tool/Appeal/CreateAppeal.generated.ts +++ b/src/components/Tool/Appeal/CreateAppeal.generated.ts @@ -8,33 +8,47 @@ export type CreateAppealMutationVariables = Types.Exact<{ attributes: Types.AppealCreateInput; }>; - -export type CreateAppealMutation = ( - { __typename?: 'Mutation' } - & { createAppeal?: Types.Maybe<( - { __typename?: 'AppealCreateMutationPayload' } - & { appeal: ( - { __typename?: 'Appeal' } - & Pick - ) } - )> } -); - +export type CreateAppealMutation = { __typename?: 'Mutation' } & { + createAppeal?: Types.Maybe< + { __typename?: 'AppealCreateMutationPayload' } & { + appeal: { __typename?: 'Appeal' } & Pick; + } + >; +}; export const CreateAppealDocument = gql` - mutation CreateAppeal($accountListId: ID!, $attributes: AppealCreateInput!) { - createAppeal(input: {accountListId: $accountListId, attributes: $attributes}) { - appeal { - id + mutation CreateAppeal($accountListId: ID!, $attributes: AppealCreateInput!) { + createAppeal( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + appeal { + id + } } } +`; +export type CreateAppealMutationFn = Apollo.MutationFunction< + CreateAppealMutation, + CreateAppealMutationVariables +>; +export function useCreateAppealMutation( + baseOptions?: Apollo.MutationHookOptions< + CreateAppealMutation, + CreateAppealMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + CreateAppealMutation, + CreateAppealMutationVariables + >(CreateAppealDocument, options); } - `; -export type CreateAppealMutationFn = Apollo.MutationFunction; -export function useCreateAppealMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateAppealDocument, options); - } -export type CreateAppealMutationHookResult = ReturnType; -export type CreateAppealMutationResult = Apollo.MutationResult; -export type CreateAppealMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type CreateAppealMutationHookResult = ReturnType< + typeof useCreateAppealMutation +>; +export type CreateAppealMutationResult = + Apollo.MutationResult; +export type CreateAppealMutationOptions = Apollo.BaseMutationOptions< + CreateAppealMutation, + CreateAppealMutationVariables +>; diff --git a/src/components/Tool/Appeal/GetContactTags.generated.ts b/src/components/Tool/Appeal/GetContactTags.generated.ts index db5ba2e57..e28e50cfd 100644 --- a/src/components/Tool/Appeal/GetContactTags.generated.ts +++ b/src/components/Tool/Appeal/GetContactTags.generated.ts @@ -7,33 +7,53 @@ export type GetContactTagsQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetContactTagsQuery = ( - { __typename?: 'Query' } - & { accountList: ( - { __typename?: 'AccountList' } - & Pick - ) } -); - +export type GetContactTagsQuery = { __typename?: 'Query' } & { + accountList: { __typename?: 'AccountList' } & Pick< + Types.AccountList, + 'id' | 'name' | 'contactTagList' + >; +}; export const GetContactTagsDocument = gql` - query GetContactTags($accountListId: ID!) { - accountList(id: $accountListId) { - id - name - contactTagList + query GetContactTags($accountListId: ID!) { + accountList(id: $accountListId) { + id + name + contactTagList + } } +`; +export function useGetContactTagsQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactTagsQuery, + GetContactTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetContactTagsDocument, + options, + ); +} +export function useGetContactTagsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactTagsQuery, + GetContactTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetContactTagsDocument, + options, + ); } - `; -export function useGetContactTagsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactTagsDocument, options); - } -export function useGetContactTagsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactTagsDocument, options); - } -export type GetContactTagsQueryHookResult = ReturnType; -export type GetContactTagsLazyQueryHookResult = ReturnType; -export type GetContactTagsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetContactTagsQueryHookResult = ReturnType< + typeof useGetContactTagsQuery +>; +export type GetContactTagsLazyQueryHookResult = ReturnType< + typeof useGetContactTagsLazyQuery +>; +export type GetContactTagsQueryResult = Apollo.QueryResult< + GetContactTagsQuery, + GetContactTagsQueryVariables +>; diff --git a/src/components/Tool/FixCommitmentInfo/GetInvalidStatuses.generated.ts b/src/components/Tool/FixCommitmentInfo/GetInvalidStatuses.generated.ts index 4015bec9a..944d6b2c3 100644 --- a/src/components/Tool/FixCommitmentInfo/GetInvalidStatuses.generated.ts +++ b/src/components/Tool/FixCommitmentInfo/GetInvalidStatuses.generated.ts @@ -7,45 +7,71 @@ export type GetInvalidStatusesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; - -export type GetInvalidStatusesQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); - +export type GetInvalidStatusesQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + | 'id' + | 'name' + | 'status' + | 'pledgeAmount' + | 'pledgeCurrency' + | 'pledgeFrequency' + > + >; + }; +}; export const GetInvalidStatusesDocument = gql` - query GetInvalidStatuses($accountListId: ID!) { - contacts( - accountListId: $accountListId - contactsFilter: {statusValid: false} - first: 100 - ) { - nodes { - id - name - status - pledgeAmount - pledgeCurrency - pledgeFrequency + query GetInvalidStatuses($accountListId: ID!) { + contacts( + accountListId: $accountListId + contactsFilter: { statusValid: false } + first: 100 + ) { + nodes { + id + name + status + pledgeAmount + pledgeCurrency + pledgeFrequency + } } } +`; +export function useGetInvalidStatusesQuery( + baseOptions: Apollo.QueryHookOptions< + GetInvalidStatusesQuery, + GetInvalidStatusesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetInvalidStatusesQuery, + GetInvalidStatusesQueryVariables + >(GetInvalidStatusesDocument, options); } - `; -export function useGetInvalidStatusesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetInvalidStatusesDocument, options); - } -export function useGetInvalidStatusesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetInvalidStatusesDocument, options); - } -export type GetInvalidStatusesQueryHookResult = ReturnType; -export type GetInvalidStatusesLazyQueryHookResult = ReturnType; -export type GetInvalidStatusesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetInvalidStatusesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetInvalidStatusesQuery, + GetInvalidStatusesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetInvalidStatusesQuery, + GetInvalidStatusesQueryVariables + >(GetInvalidStatusesDocument, options); +} +export type GetInvalidStatusesQueryHookResult = ReturnType< + typeof useGetInvalidStatusesQuery +>; +export type GetInvalidStatusesLazyQueryHookResult = ReturnType< + typeof useGetInvalidStatusesLazyQuery +>; +export type GetInvalidStatusesQueryResult = Apollo.QueryResult< + GetInvalidStatusesQuery, + GetInvalidStatusesQueryVariables +>; diff --git a/src/components/Tool/FixCommitmentInfo/UpdateInvalidStatus.generated.ts b/src/components/Tool/FixCommitmentInfo/UpdateInvalidStatus.generated.ts index fa8156b83..28d1429d4 100644 --- a/src/components/Tool/FixCommitmentInfo/UpdateInvalidStatus.generated.ts +++ b/src/components/Tool/FixCommitmentInfo/UpdateInvalidStatus.generated.ts @@ -8,33 +8,50 @@ export type UpdateInvalidStatusMutationVariables = Types.Exact<{ attributes: Types.ContactUpdateInput; }>; - -export type UpdateInvalidStatusMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type UpdateInvalidStatusMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick; + } + >; +}; export const UpdateInvalidStatusDocument = gql` - mutation UpdateInvalidStatus($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id + mutation UpdateInvalidStatus( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { + id + } } } +`; +export type UpdateInvalidStatusMutationFn = Apollo.MutationFunction< + UpdateInvalidStatusMutation, + UpdateInvalidStatusMutationVariables +>; +export function useUpdateInvalidStatusMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateInvalidStatusMutation, + UpdateInvalidStatusMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateInvalidStatusMutation, + UpdateInvalidStatusMutationVariables + >(UpdateInvalidStatusDocument, options); } - `; -export type UpdateInvalidStatusMutationFn = Apollo.MutationFunction; -export function useUpdateInvalidStatusMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateInvalidStatusDocument, options); - } -export type UpdateInvalidStatusMutationHookResult = ReturnType; -export type UpdateInvalidStatusMutationResult = Apollo.MutationResult; -export type UpdateInvalidStatusMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateInvalidStatusMutationHookResult = ReturnType< + typeof useUpdateInvalidStatusMutation +>; +export type UpdateInvalidStatusMutationResult = + Apollo.MutationResult; +export type UpdateInvalidStatusMutationOptions = Apollo.BaseMutationOptions< + UpdateInvalidStatusMutation, + UpdateInvalidStatusMutationVariables +>; diff --git a/src/components/Tool/FixEmailAddresses/GetInvalidEmailAddresses.generated.ts b/src/components/Tool/FixEmailAddresses/GetInvalidEmailAddresses.generated.ts index 565378d76..fc92f7c42 100644 --- a/src/components/Tool/FixEmailAddresses/GetInvalidEmailAddresses.generated.ts +++ b/src/components/Tool/FixEmailAddresses/GetInvalidEmailAddresses.generated.ts @@ -7,84 +7,112 @@ export type GetInvalidEmailAddressesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type GetInvalidEmailAddressesQuery = { __typename?: 'Query' } & { + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' + > & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'primary' | 'email' | 'updatedAt' | 'source' + > + >; + }; + } + >; + }; +}; -export type GetInvalidEmailAddressesQuery = ( - { __typename?: 'Query' } - & { people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ) } - )> } - ) } -); - -export type PersonInvalidEmailFragment = ( - { __typename?: 'Person' } - & Pick - & { emailAddresses: ( - { __typename?: 'EmailAddressConnection' } - & { nodes: Array<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ) } -); +export type PersonInvalidEmailFragment = { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' +> & { + emailAddresses: { __typename?: 'EmailAddressConnection' } & { + nodes: Array< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'primary' | 'email' | 'updatedAt' | 'source' + > + >; + }; + }; -export type PersonEmailAddressFragment = ( - { __typename?: 'EmailAddress' } - & Pick -); +export type PersonEmailAddressFragment = { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'id' | 'primary' | 'email' | 'updatedAt' | 'source' +>; export const PersonEmailAddressFragmentDoc = gql` - fragment PersonEmailAddress on EmailAddress { - id - primary - email - updatedAt - source -} - `; + fragment PersonEmailAddress on EmailAddress { + id + primary + email + updatedAt + source + } +`; export const PersonInvalidEmailFragmentDoc = gql` - fragment PersonInvalidEmail on Person { - id - firstName - lastName - emailAddresses(first: 25) { - nodes { - ...PersonEmailAddress + fragment PersonInvalidEmail on Person { + id + firstName + lastName + emailAddresses(first: 25) { + nodes { + ...PersonEmailAddress + } } } -} - ${PersonEmailAddressFragmentDoc}`; + ${PersonEmailAddressFragmentDoc} +`; export const GetInvalidEmailAddressesDocument = gql` - query GetInvalidEmailAddresses($accountListId: ID!) { - people( - accountListId: $accountListId - peopleFilter: {emailAddressValid: false} - first: 50 - ) { - nodes { - ...PersonInvalidEmail + query GetInvalidEmailAddresses($accountListId: ID!) { + people( + accountListId: $accountListId + peopleFilter: { emailAddressValid: false } + first: 50 + ) { + nodes { + ...PersonInvalidEmail + } } } + ${PersonInvalidEmailFragmentDoc} +`; +export function useGetInvalidEmailAddressesQuery( + baseOptions: Apollo.QueryHookOptions< + GetInvalidEmailAddressesQuery, + GetInvalidEmailAddressesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetInvalidEmailAddressesQuery, + GetInvalidEmailAddressesQueryVariables + >(GetInvalidEmailAddressesDocument, options); } - ${PersonInvalidEmailFragmentDoc}`; -export function useGetInvalidEmailAddressesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetInvalidEmailAddressesDocument, options); - } -export function useGetInvalidEmailAddressesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetInvalidEmailAddressesDocument, options); - } -export type GetInvalidEmailAddressesQueryHookResult = ReturnType; -export type GetInvalidEmailAddressesLazyQueryHookResult = ReturnType; -export type GetInvalidEmailAddressesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetInvalidEmailAddressesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetInvalidEmailAddressesQuery, + GetInvalidEmailAddressesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetInvalidEmailAddressesQuery, + GetInvalidEmailAddressesQueryVariables + >(GetInvalidEmailAddressesDocument, options); +} +export type GetInvalidEmailAddressesQueryHookResult = ReturnType< + typeof useGetInvalidEmailAddressesQuery +>; +export type GetInvalidEmailAddressesLazyQueryHookResult = ReturnType< + typeof useGetInvalidEmailAddressesLazyQuery +>; +export type GetInvalidEmailAddressesQueryResult = Apollo.QueryResult< + GetInvalidEmailAddressesQuery, + GetInvalidEmailAddressesQueryVariables +>; diff --git a/src/components/Tool/FixMailingAddresses/GetInvalidAddresses.generated.ts b/src/components/Tool/FixMailingAddresses/GetInvalidAddresses.generated.ts index 6a19623ee..2714e3f15 100644 --- a/src/components/Tool/FixMailingAddresses/GetInvalidAddresses.generated.ts +++ b/src/components/Tool/FixMailingAddresses/GetInvalidAddresses.generated.ts @@ -7,75 +7,124 @@ export type InvalidAddressesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type InvalidAddressesQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' + > & { + addresses: { __typename?: 'AddressConnection' } & { + nodes: Array< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'id' + | 'street' + | 'city' + | 'state' + | 'region' + | 'metroArea' + | 'country' + | 'postalCode' + | 'primaryMailingAddress' + | 'source' + | 'location' + | 'createdAt' + | 'historic' + > + >; + }; + } + >; + }; +}; -export type InvalidAddressesQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { addresses: ( - { __typename?: 'AddressConnection' } - & { nodes: Array<( - { __typename?: 'Address' } - & Pick - )> } - ) } - )> } - ) } -); - -export type ContactAddressFragment = ( - { __typename?: 'Address' } - & Pick -); +export type ContactAddressFragment = { __typename?: 'Address' } & Pick< + Types.Address, + | 'id' + | 'street' + | 'city' + | 'state' + | 'region' + | 'metroArea' + | 'country' + | 'postalCode' + | 'primaryMailingAddress' + | 'source' + | 'location' + | 'createdAt' + | 'historic' +>; export const ContactAddressFragmentDoc = gql` - fragment ContactAddress on Address { - id - street - city - state - region - metroArea - country - postalCode - primaryMailingAddress - source - location - createdAt - historic -} - `; + fragment ContactAddress on Address { + id + street + city + state + region + metroArea + country + postalCode + primaryMailingAddress + source + location + createdAt + historic + } +`; export const InvalidAddressesDocument = gql` - query InvalidAddresses($accountListId: ID!) { - contacts( - accountListId: $accountListId - contactsFilter: {addressValid: false} - first: 100 - ) { - nodes { - id - name - status - addresses(first: 25) { - nodes { - ...ContactAddress + query InvalidAddresses($accountListId: ID!) { + contacts( + accountListId: $accountListId + contactsFilter: { addressValid: false } + first: 100 + ) { + nodes { + id + name + status + addresses(first: 25) { + nodes { + ...ContactAddress + } } } } } + ${ContactAddressFragmentDoc} +`; +export function useInvalidAddressesQuery( + baseOptions: Apollo.QueryHookOptions< + InvalidAddressesQuery, + InvalidAddressesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + InvalidAddressesDocument, + options, + ); } - ${ContactAddressFragmentDoc}`; -export function useInvalidAddressesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(InvalidAddressesDocument, options); - } -export function useInvalidAddressesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(InvalidAddressesDocument, options); - } -export type InvalidAddressesQueryHookResult = ReturnType; -export type InvalidAddressesLazyQueryHookResult = ReturnType; -export type InvalidAddressesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useInvalidAddressesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + InvalidAddressesQuery, + InvalidAddressesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + InvalidAddressesQuery, + InvalidAddressesQueryVariables + >(InvalidAddressesDocument, options); +} +export type InvalidAddressesQueryHookResult = ReturnType< + typeof useInvalidAddressesQuery +>; +export type InvalidAddressesLazyQueryHookResult = ReturnType< + typeof useInvalidAddressesLazyQuery +>; +export type InvalidAddressesQueryResult = Apollo.QueryResult< + InvalidAddressesQuery, + InvalidAddressesQueryVariables +>; diff --git a/src/components/Tool/FixPhoneNumbers/GetInvalidPhoneNumbers.generated.ts b/src/components/Tool/FixPhoneNumbers/GetInvalidPhoneNumbers.generated.ts index 0e6a6f9fe..19b376cde 100644 --- a/src/components/Tool/FixPhoneNumbers/GetInvalidPhoneNumbers.generated.ts +++ b/src/components/Tool/FixPhoneNumbers/GetInvalidPhoneNumbers.generated.ts @@ -7,84 +7,112 @@ export type GetInvalidPhoneNumbersQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type GetInvalidPhoneNumbersQuery = { __typename?: 'Query' } & { + people: { __typename?: 'PersonConnection' } & { + nodes: Array< + { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' + > & { + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'primary' | 'number' | 'updatedAt' | 'source' + > + >; + }; + } + >; + }; +}; -export type GetInvalidPhoneNumbersQuery = ( - { __typename?: 'Query' } - & { people: ( - { __typename?: 'PersonConnection' } - & { nodes: Array<( - { __typename?: 'Person' } - & Pick - & { phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } - )> } - ) } -); - -export type PersonInvalidNumberFragment = ( - { __typename?: 'Person' } - & Pick - & { phoneNumbers: ( - { __typename?: 'PhoneNumberConnection' } - & { nodes: Array<( - { __typename?: 'PhoneNumber' } - & Pick - )> } - ) } -); +export type PersonInvalidNumberFragment = { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' +> & { + phoneNumbers: { __typename?: 'PhoneNumberConnection' } & { + nodes: Array< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'primary' | 'number' | 'updatedAt' | 'source' + > + >; + }; + }; -export type PersonPhoneNumberFragment = ( - { __typename?: 'PhoneNumber' } - & Pick -); +export type PersonPhoneNumberFragment = { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'id' | 'primary' | 'number' | 'updatedAt' | 'source' +>; export const PersonPhoneNumberFragmentDoc = gql` - fragment PersonPhoneNumber on PhoneNumber { - id - primary - number - updatedAt - source -} - `; + fragment PersonPhoneNumber on PhoneNumber { + id + primary + number + updatedAt + source + } +`; export const PersonInvalidNumberFragmentDoc = gql` - fragment PersonInvalidNumber on Person { - id - firstName - lastName - phoneNumbers(first: 25) { - nodes { - ...PersonPhoneNumber + fragment PersonInvalidNumber on Person { + id + firstName + lastName + phoneNumbers(first: 25) { + nodes { + ...PersonPhoneNumber + } } } -} - ${PersonPhoneNumberFragmentDoc}`; + ${PersonPhoneNumberFragmentDoc} +`; export const GetInvalidPhoneNumbersDocument = gql` - query GetInvalidPhoneNumbers($accountListId: ID!) { - people( - accountListId: $accountListId - peopleFilter: {phoneNumberValid: false} - first: 50 - ) { - nodes { - ...PersonInvalidNumber + query GetInvalidPhoneNumbers($accountListId: ID!) { + people( + accountListId: $accountListId + peopleFilter: { phoneNumberValid: false } + first: 50 + ) { + nodes { + ...PersonInvalidNumber + } } } + ${PersonInvalidNumberFragmentDoc} +`; +export function useGetInvalidPhoneNumbersQuery( + baseOptions: Apollo.QueryHookOptions< + GetInvalidPhoneNumbersQuery, + GetInvalidPhoneNumbersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetInvalidPhoneNumbersQuery, + GetInvalidPhoneNumbersQueryVariables + >(GetInvalidPhoneNumbersDocument, options); } - ${PersonInvalidNumberFragmentDoc}`; -export function useGetInvalidPhoneNumbersQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetInvalidPhoneNumbersDocument, options); - } -export function useGetInvalidPhoneNumbersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetInvalidPhoneNumbersDocument, options); - } -export type GetInvalidPhoneNumbersQueryHookResult = ReturnType; -export type GetInvalidPhoneNumbersLazyQueryHookResult = ReturnType; -export type GetInvalidPhoneNumbersQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetInvalidPhoneNumbersLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetInvalidPhoneNumbersQuery, + GetInvalidPhoneNumbersQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetInvalidPhoneNumbersQuery, + GetInvalidPhoneNumbersQueryVariables + >(GetInvalidPhoneNumbersDocument, options); +} +export type GetInvalidPhoneNumbersQueryHookResult = ReturnType< + typeof useGetInvalidPhoneNumbersQuery +>; +export type GetInvalidPhoneNumbersLazyQueryHookResult = ReturnType< + typeof useGetInvalidPhoneNumbersLazyQuery +>; +export type GetInvalidPhoneNumbersQueryResult = Apollo.QueryResult< + GetInvalidPhoneNumbersQuery, + GetInvalidPhoneNumbersQueryVariables +>; diff --git a/src/components/Tool/FixSendNewsletter/GetInvalidNewsletter.generated.ts b/src/components/Tool/FixSendNewsletter/GetInvalidNewsletter.generated.ts index 0f067dcc7..c201d1133 100644 --- a/src/components/Tool/FixSendNewsletter/GetInvalidNewsletter.generated.ts +++ b/src/components/Tool/FixSendNewsletter/GetInvalidNewsletter.generated.ts @@ -7,93 +7,133 @@ export type GetInvalidNewsletterQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type GetInvalidNewsletterQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array< + { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' | 'source' + > & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + | 'street' + | 'city' + | 'state' + | 'postalCode' + | 'source' + | 'createdAt' + > + >; + primaryPerson?: Types.Maybe< + { __typename?: 'Person' } & Pick< + Types.Person, + 'firstName' | 'lastName' + > & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' + > + >; + } + >; + } + >; + }; +}; -export type GetInvalidNewsletterQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )>, primaryPerson?: Types.Maybe<( - { __typename?: 'Person' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - )> } - )> } - ) } -); - -export type ContactPrimaryAddressFragment = ( - { __typename?: 'Address' } - & Pick -); +export type ContactPrimaryAddressFragment = { __typename?: 'Address' } & Pick< + Types.Address, + 'street' | 'city' | 'state' | 'postalCode' | 'source' | 'createdAt' +>; -export type ContactPrimaryPersonFragment = ( - { __typename?: 'Person' } - & Pick - & { primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } -); +export type ContactPrimaryPersonFragment = { __typename?: 'Person' } & Pick< + Types.Person, + 'firstName' | 'lastName' +> & { + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick + >; + }; export const ContactPrimaryAddressFragmentDoc = gql` - fragment ContactPrimaryAddress on Address { - street - city - state - postalCode - source - createdAt -} - `; + fragment ContactPrimaryAddress on Address { + street + city + state + postalCode + source + createdAt + } +`; export const ContactPrimaryPersonFragmentDoc = gql` - fragment ContactPrimaryPerson on Person { - firstName - lastName - primaryEmailAddress { - email + fragment ContactPrimaryPerson on Person { + firstName + lastName + primaryEmailAddress { + email + } } -} - `; +`; export const GetInvalidNewsletterDocument = gql` - query GetInvalidNewsletter($accountListId: ID!) { - contacts( - accountListId: $accountListId - contactsFilter: {newsletter: NO_VALUE, status: [PARTNER_FINANCIAL, PARTNER_SPECIAL, PARTNER_PRAY]} - first: 100 - ) { - nodes { - id - name - status - source - primaryAddress { - ...ContactPrimaryAddress + query GetInvalidNewsletter($accountListId: ID!) { + contacts( + accountListId: $accountListId + contactsFilter: { + newsletter: NO_VALUE + status: [PARTNER_FINANCIAL, PARTNER_SPECIAL, PARTNER_PRAY] } - primaryPerson { - ...ContactPrimaryPerson + first: 100 + ) { + nodes { + id + name + status + source + primaryAddress { + ...ContactPrimaryAddress + } + primaryPerson { + ...ContactPrimaryPerson + } } } } + ${ContactPrimaryAddressFragmentDoc} + ${ContactPrimaryPersonFragmentDoc} +`; +export function useGetInvalidNewsletterQuery( + baseOptions: Apollo.QueryHookOptions< + GetInvalidNewsletterQuery, + GetInvalidNewsletterQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetInvalidNewsletterQuery, + GetInvalidNewsletterQueryVariables + >(GetInvalidNewsletterDocument, options); } - ${ContactPrimaryAddressFragmentDoc} -${ContactPrimaryPersonFragmentDoc}`; -export function useGetInvalidNewsletterQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetInvalidNewsletterDocument, options); - } -export function useGetInvalidNewsletterLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetInvalidNewsletterDocument, options); - } -export type GetInvalidNewsletterQueryHookResult = ReturnType; -export type GetInvalidNewsletterLazyQueryHookResult = ReturnType; -export type GetInvalidNewsletterQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetInvalidNewsletterLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetInvalidNewsletterQuery, + GetInvalidNewsletterQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetInvalidNewsletterQuery, + GetInvalidNewsletterQueryVariables + >(GetInvalidNewsletterDocument, options); +} +export type GetInvalidNewsletterQueryHookResult = ReturnType< + typeof useGetInvalidNewsletterQuery +>; +export type GetInvalidNewsletterLazyQueryHookResult = ReturnType< + typeof useGetInvalidNewsletterLazyQuery +>; +export type GetInvalidNewsletterQueryResult = Apollo.QueryResult< + GetInvalidNewsletterQuery, + GetInvalidNewsletterQueryVariables +>; diff --git a/src/components/Tool/FixSendNewsletter/UpdateNewsletter.generated.ts b/src/components/Tool/FixSendNewsletter/UpdateNewsletter.generated.ts index 6d0df8a5c..7ced93a4c 100644 --- a/src/components/Tool/FixSendNewsletter/UpdateNewsletter.generated.ts +++ b/src/components/Tool/FixSendNewsletter/UpdateNewsletter.generated.ts @@ -8,34 +8,54 @@ export type UpdateContactNewsletterMutationVariables = Types.Exact<{ attributes: Types.ContactUpdateInput; }>; - -export type UpdateContactNewsletterMutation = ( - { __typename?: 'Mutation' } - & { updateContact?: Types.Maybe<( - { __typename?: 'ContactUpdateMutationPayload' } - & { contact: ( - { __typename?: 'Contact' } - & Pick - ) } - )> } -); - +export type UpdateContactNewsletterMutation = { __typename?: 'Mutation' } & { + updateContact?: Types.Maybe< + { __typename?: 'ContactUpdateMutationPayload' } & { + contact: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'sendNewsletter' + >; + } + >; +}; export const UpdateContactNewsletterDocument = gql` - mutation UpdateContactNewsletter($accountListId: ID!, $attributes: ContactUpdateInput!) { - updateContact(input: {accountListId: $accountListId, attributes: $attributes}) { - contact { - id - sendNewsletter + mutation UpdateContactNewsletter( + $accountListId: ID! + $attributes: ContactUpdateInput! + ) { + updateContact( + input: { accountListId: $accountListId, attributes: $attributes } + ) { + contact { + id + sendNewsletter + } } } +`; +export type UpdateContactNewsletterMutationFn = Apollo.MutationFunction< + UpdateContactNewsletterMutation, + UpdateContactNewsletterMutationVariables +>; +export function useUpdateContactNewsletterMutation( + baseOptions?: Apollo.MutationHookOptions< + UpdateContactNewsletterMutation, + UpdateContactNewsletterMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation< + UpdateContactNewsletterMutation, + UpdateContactNewsletterMutationVariables + >(UpdateContactNewsletterDocument, options); } - `; -export type UpdateContactNewsletterMutationFn = Apollo.MutationFunction; -export function useUpdateContactNewsletterMutation(baseOptions?: Apollo.MutationHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateContactNewsletterDocument, options); - } -export type UpdateContactNewsletterMutationHookResult = ReturnType; -export type UpdateContactNewsletterMutationResult = Apollo.MutationResult; -export type UpdateContactNewsletterMutationOptions = Apollo.BaseMutationOptions; \ No newline at end of file +export type UpdateContactNewsletterMutationHookResult = ReturnType< + typeof useUpdateContactNewsletterMutation +>; +export type UpdateContactNewsletterMutationResult = + Apollo.MutationResult; +export type UpdateContactNewsletterMutationOptions = Apollo.BaseMutationOptions< + UpdateContactNewsletterMutation, + UpdateContactNewsletterMutationVariables +>; diff --git a/src/components/Tool/MergeContacts/GetContactDuplicates.generated.ts b/src/components/Tool/MergeContacts/GetContactDuplicates.generated.ts index 2131b8cc7..8edbb6a29 100644 --- a/src/components/Tool/MergeContacts/GetContactDuplicates.generated.ts +++ b/src/components/Tool/MergeContacts/GetContactDuplicates.generated.ts @@ -7,91 +7,126 @@ export type GetContactDuplicatesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type GetContactDuplicatesQuery = { __typename?: 'Query' } & { + contactDuplicates: { __typename?: 'ContactDuplicateConnection' } & { + nodes: Array< + { __typename?: 'ContactDuplicate' } & Pick< + Types.ContactDuplicate, + 'id' | 'reason' + > & { + recordOne: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' | 'source' | 'createdAt' + > & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'street' | 'city' | 'state' | 'postalCode' + > + >; + }; + recordTwo: { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' | 'source' | 'createdAt' + > & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'street' | 'city' | 'state' | 'postalCode' + > + >; + }; + } + >; + }; +}; -export type GetContactDuplicatesQuery = ( - { __typename?: 'Query' } - & { contactDuplicates: ( - { __typename?: 'ContactDuplicateConnection' } - & { nodes: Array<( - { __typename?: 'ContactDuplicate' } - & Pick - & { recordOne: ( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } - ), recordTwo: ( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } - ) } - )> } - ) } -); - -export type BasicAddressInfoFragment = ( - { __typename?: 'Address' } - & Pick -); +export type BasicAddressInfoFragment = { __typename?: 'Address' } & Pick< + Types.Address, + 'street' | 'city' | 'state' | 'postalCode' +>; -export type RecordInfoFragment = ( - { __typename?: 'Contact' } - & Pick - & { primaryAddress?: Types.Maybe<( - { __typename?: 'Address' } - & Pick - )> } -); +export type RecordInfoFragment = { __typename?: 'Contact' } & Pick< + Types.Contact, + 'id' | 'name' | 'status' | 'source' | 'createdAt' +> & { + primaryAddress?: Types.Maybe< + { __typename?: 'Address' } & Pick< + Types.Address, + 'street' | 'city' | 'state' | 'postalCode' + > + >; + }; export const BasicAddressInfoFragmentDoc = gql` - fragment BasicAddressInfo on Address { - street - city - state - postalCode -} - `; + fragment BasicAddressInfo on Address { + street + city + state + postalCode + } +`; export const RecordInfoFragmentDoc = gql` - fragment RecordInfo on Contact { - id - name - status - source - createdAt - primaryAddress { - ...BasicAddressInfo + fragment RecordInfo on Contact { + id + name + status + source + createdAt + primaryAddress { + ...BasicAddressInfo + } } -} - ${BasicAddressInfoFragmentDoc}`; + ${BasicAddressInfoFragmentDoc} +`; export const GetContactDuplicatesDocument = gql` - query GetContactDuplicates($accountListId: ID!) { - contactDuplicates(accountListId: $accountListId, first: 50) { - nodes { - id - reason - recordOne { - ...RecordInfo - } - recordTwo { - ...RecordInfo + query GetContactDuplicates($accountListId: ID!) { + contactDuplicates(accountListId: $accountListId, first: 50) { + nodes { + id + reason + recordOne { + ...RecordInfo + } + recordTwo { + ...RecordInfo + } } } } + ${RecordInfoFragmentDoc} +`; +export function useGetContactDuplicatesQuery( + baseOptions: Apollo.QueryHookOptions< + GetContactDuplicatesQuery, + GetContactDuplicatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetContactDuplicatesQuery, + GetContactDuplicatesQueryVariables + >(GetContactDuplicatesDocument, options); } - ${RecordInfoFragmentDoc}`; -export function useGetContactDuplicatesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetContactDuplicatesDocument, options); - } -export function useGetContactDuplicatesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetContactDuplicatesDocument, options); - } -export type GetContactDuplicatesQueryHookResult = ReturnType; -export type GetContactDuplicatesLazyQueryHookResult = ReturnType; -export type GetContactDuplicatesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetContactDuplicatesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetContactDuplicatesQuery, + GetContactDuplicatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetContactDuplicatesQuery, + GetContactDuplicatesQueryVariables + >(GetContactDuplicatesDocument, options); +} +export type GetContactDuplicatesQueryHookResult = ReturnType< + typeof useGetContactDuplicatesQuery +>; +export type GetContactDuplicatesLazyQueryHookResult = ReturnType< + typeof useGetContactDuplicatesLazyQuery +>; +export type GetContactDuplicatesQueryResult = Apollo.QueryResult< + GetContactDuplicatesQuery, + GetContactDuplicatesQueryVariables +>; diff --git a/src/components/Tool/MergePeople/GetPersonDuplicates.generated.ts b/src/components/Tool/MergePeople/GetPersonDuplicates.generated.ts index 2ab3d4b8a..911d157a2 100644 --- a/src/components/Tool/MergePeople/GetPersonDuplicates.generated.ts +++ b/src/components/Tool/MergePeople/GetPersonDuplicates.generated.ts @@ -7,110 +7,147 @@ export type GetPersonDuplicatesQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; }>; +export type GetPersonDuplicatesQuery = { __typename?: 'Query' } & { + personDuplicates: { __typename?: 'PersonDuplicateConnection' } & { + nodes: Array< + { __typename?: 'PersonDuplicate' } & Pick< + Types.PersonDuplicate, + 'id' | 'reason' + > & { + recordOne: { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' | 'createdAt' + > & { + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'number' + > + >; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' + > + >; + }; + recordTwo: { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' | 'createdAt' + > & { + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick< + Types.PhoneNumber, + 'number' + > + >; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' + > + >; + }; + } + >; + }; +}; -export type GetPersonDuplicatesQuery = ( - { __typename?: 'Query' } - & { personDuplicates: ( - { __typename?: 'PersonDuplicateConnection' } - & { nodes: Array<( - { __typename?: 'PersonDuplicate' } - & Pick - & { recordOne: ( - { __typename?: 'Person' } - & Pick - & { primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ), recordTwo: ( - { __typename?: 'Person' } - & Pick - & { primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } - ) } - )> } - ) } -); - -export type BasicEmailInfoFragment = ( - { __typename?: 'EmailAddress' } - & Pick -); +export type BasicEmailInfoFragment = { __typename?: 'EmailAddress' } & Pick< + Types.EmailAddress, + 'email' +>; -export type BasicPhoneNumberInfoFragment = ( - { __typename?: 'PhoneNumber' } - & Pick -); +export type BasicPhoneNumberInfoFragment = { + __typename?: 'PhoneNumber'; +} & Pick; -export type PersonInfoFragment = ( - { __typename?: 'Person' } - & Pick - & { primaryPhoneNumber?: Types.Maybe<( - { __typename?: 'PhoneNumber' } - & Pick - )>, primaryEmailAddress?: Types.Maybe<( - { __typename?: 'EmailAddress' } - & Pick - )> } -); +export type PersonInfoFragment = { __typename?: 'Person' } & Pick< + Types.Person, + 'id' | 'firstName' | 'lastName' | 'createdAt' +> & { + primaryPhoneNumber?: Types.Maybe< + { __typename?: 'PhoneNumber' } & Pick + >; + primaryEmailAddress?: Types.Maybe< + { __typename?: 'EmailAddress' } & Pick + >; + }; export const BasicPhoneNumberInfoFragmentDoc = gql` - fragment BasicPhoneNumberInfo on PhoneNumber { - number -} - `; + fragment BasicPhoneNumberInfo on PhoneNumber { + number + } +`; export const BasicEmailInfoFragmentDoc = gql` - fragment BasicEmailInfo on EmailAddress { - email -} - `; -export const PersonInfoFragmentDoc = gql` - fragment PersonInfo on Person { - id - firstName - lastName - createdAt - primaryPhoneNumber { - ...BasicPhoneNumberInfo + fragment BasicEmailInfo on EmailAddress { + email } - primaryEmailAddress { - ...BasicEmailInfo +`; +export const PersonInfoFragmentDoc = gql` + fragment PersonInfo on Person { + id + firstName + lastName + createdAt + primaryPhoneNumber { + ...BasicPhoneNumberInfo + } + primaryEmailAddress { + ...BasicEmailInfo + } } -} - ${BasicPhoneNumberInfoFragmentDoc} -${BasicEmailInfoFragmentDoc}`; + ${BasicPhoneNumberInfoFragmentDoc} + ${BasicEmailInfoFragmentDoc} +`; export const GetPersonDuplicatesDocument = gql` - query GetPersonDuplicates($accountListId: ID!) { - personDuplicates(accountListId: $accountListId, first: 50) { - nodes { - id - reason - recordOne { - ...PersonInfo - } - recordTwo { - ...PersonInfo + query GetPersonDuplicates($accountListId: ID!) { + personDuplicates(accountListId: $accountListId, first: 50) { + nodes { + id + reason + recordOne { + ...PersonInfo + } + recordTwo { + ...PersonInfo + } } } } + ${PersonInfoFragmentDoc} +`; +export function useGetPersonDuplicatesQuery( + baseOptions: Apollo.QueryHookOptions< + GetPersonDuplicatesQuery, + GetPersonDuplicatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetPersonDuplicatesQuery, + GetPersonDuplicatesQueryVariables + >(GetPersonDuplicatesDocument, options); } - ${PersonInfoFragmentDoc}`; -export function useGetPersonDuplicatesQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetPersonDuplicatesDocument, options); - } -export function useGetPersonDuplicatesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetPersonDuplicatesDocument, options); - } -export type GetPersonDuplicatesQueryHookResult = ReturnType; -export type GetPersonDuplicatesLazyQueryHookResult = ReturnType; -export type GetPersonDuplicatesQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetPersonDuplicatesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetPersonDuplicatesQuery, + GetPersonDuplicatesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetPersonDuplicatesQuery, + GetPersonDuplicatesQueryVariables + >(GetPersonDuplicatesDocument, options); +} +export type GetPersonDuplicatesQueryHookResult = ReturnType< + typeof useGetPersonDuplicatesQuery +>; +export type GetPersonDuplicatesLazyQueryHookResult = ReturnType< + typeof useGetPersonDuplicatesLazyQuery +>; +export type GetPersonDuplicatesQueryResult = Apollo.QueryResult< + GetPersonDuplicatesQuery, + GetPersonDuplicatesQueryVariables +>; diff --git a/src/components/User/GetUser.generated.ts b/src/components/User/GetUser.generated.ts index e23f25364..beb400b11 100644 --- a/src/components/User/GetUser.generated.ts +++ b/src/components/User/GetUser.generated.ts @@ -3,63 +3,78 @@ import * as Types from '../../graphql/types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; const defaultOptions = {} as const; -export type GetUserQueryVariables = Types.Exact<{ [key: string]: never; }>; - - -export type GetUserQuery = ( - { __typename?: 'Query' } - & { user: ( - { __typename?: 'User' } - & Pick - & { keyAccounts: Array<( - { __typename?: 'KeyAccount' } - & Pick - )>, preferences?: Types.Maybe<( - { __typename?: 'Preference' } - & { language: Types.Preference['locale'], locale: Types.Preference['localeDisplay'] } - )>, administrativeOrganizations: ( - { __typename?: 'OrganizationConnection' } - & { nodes: Array<( - { __typename?: 'Organization' } - & Pick - )> } - ) } - ) } -); +export type GetUserQueryVariables = Types.Exact<{ [key: string]: never }>; +export type GetUserQuery = { __typename?: 'Query' } & { + user: { __typename?: 'User' } & Pick< + Types.User, + 'id' | 'firstName' | 'lastName' | 'admin' | 'developer' + > & { + keyAccounts: Array< + { __typename?: 'KeyAccount' } & Pick + >; + preferences?: Types.Maybe< + { __typename?: 'Preference' } & { + language: Types.Preference['locale']; + locale: Types.Preference['localeDisplay']; + } + >; + administrativeOrganizations: { __typename?: 'OrganizationConnection' } & { + nodes: Array< + { __typename?: 'Organization' } & Pick + >; + }; + }; +}; export const GetUserDocument = gql` - query GetUser { - user { - id - firstName - lastName - admin - developer - keyAccounts { + query GetUser { + user { id - email - } - preferences { - language: locale - locale: localeDisplay - } - administrativeOrganizations(first: 25) { - nodes { + firstName + lastName + admin + developer + keyAccounts { id + email + } + preferences { + language: locale + locale: localeDisplay + } + administrativeOrganizations(first: 25) { + nodes { + id + } } } } +`; +export function useGetUserQuery( + baseOptions?: Apollo.QueryHookOptions, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetUserDocument, + options, + ); +} +export function useGetUserLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUserQuery, + GetUserQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetUserDocument, + options, + ); } - `; -export function useGetUserQuery(baseOptions?: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetUserDocument, options); - } -export function useGetUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetUserDocument, options); - } export type GetUserQueryHookResult = ReturnType; export type GetUserLazyQueryHookResult = ReturnType; -export type GetUserQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetUserQueryResult = Apollo.QueryResult< + GetUserQuery, + GetUserQueryVariables +>; diff --git a/src/components/common/DonorAccountAutocomplete/DonorAccountAutocomplete.generated.ts b/src/components/common/DonorAccountAutocomplete/DonorAccountAutocomplete.generated.ts index 2549c92dc..8941fbb54 100644 --- a/src/components/common/DonorAccountAutocomplete/DonorAccountAutocomplete.generated.ts +++ b/src/components/common/DonorAccountAutocomplete/DonorAccountAutocomplete.generated.ts @@ -8,33 +8,59 @@ export type GetDonorAccountsQueryVariables = Types.Exact<{ searchTerm: Types.Scalars['String']['input']; }>; - -export type GetDonorAccountsQuery = ( - { __typename?: 'Query' } - & { accountListDonorAccounts?: Types.Maybe - & { name: Types.AccountListDonorAccount['displayName'] } - )>> } -); - +export type GetDonorAccountsQuery = { __typename?: 'Query' } & { + accountListDonorAccounts?: Types.Maybe< + Array< + { __typename?: 'AccountListDonorAccount' } & Pick< + Types.AccountListDonorAccount, + 'id' + > & { name: Types.AccountListDonorAccount['displayName'] } + > + >; +}; export const GetDonorAccountsDocument = gql` - query GetDonorAccounts($accountListId: ID!, $searchTerm: String!) { - accountListDonorAccounts(accountListId: $accountListId, searchTerm: $searchTerm) { - id - name: displayName + query GetDonorAccounts($accountListId: ID!, $searchTerm: String!) { + accountListDonorAccounts( + accountListId: $accountListId + searchTerm: $searchTerm + ) { + id + name: displayName + } } +`; +export function useGetDonorAccountsQuery( + baseOptions: Apollo.QueryHookOptions< + GetDonorAccountsQuery, + GetDonorAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetDonorAccountsDocument, + options, + ); +} +export function useGetDonorAccountsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetDonorAccountsQuery, + GetDonorAccountsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetDonorAccountsQuery, + GetDonorAccountsQueryVariables + >(GetDonorAccountsDocument, options); } - `; -export function useGetDonorAccountsQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetDonorAccountsDocument, options); - } -export function useGetDonorAccountsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetDonorAccountsDocument, options); - } -export type GetDonorAccountsQueryHookResult = ReturnType; -export type GetDonorAccountsLazyQueryHookResult = ReturnType; -export type GetDonorAccountsQueryResult = Apollo.QueryResult; \ No newline at end of file +export type GetDonorAccountsQueryHookResult = ReturnType< + typeof useGetDonorAccountsQuery +>; +export type GetDonorAccountsLazyQueryHookResult = ReturnType< + typeof useGetDonorAccountsLazyQuery +>; +export type GetDonorAccountsQueryResult = Apollo.QueryResult< + GetDonorAccountsQuery, + GetDonorAccountsQueryVariables +>; diff --git a/src/hooks/GetIdsForMassSelection.generated.ts b/src/hooks/GetIdsForMassSelection.generated.ts index de4b116a6..abe241e7e 100644 --- a/src/hooks/GetIdsForMassSelection.generated.ts +++ b/src/hooks/GetIdsForMassSelection.generated.ts @@ -9,17 +9,11 @@ export type GetIdsForMassSelectionQueryVariables = Types.Exact<{ contactsFilters?: Types.InputMaybe; }>; - -export type GetIdsForMassSelectionQuery = ( - { __typename?: 'Query' } - & { contacts: ( - { __typename?: 'ContactConnection' } - & { nodes: Array<( - { __typename?: 'Contact' } - & Pick - )> } - ) } -); +export type GetIdsForMassSelectionQuery = { __typename?: 'Query' } & { + contacts: { __typename?: 'ContactConnection' } & { + nodes: Array<{ __typename?: 'Contact' } & Pick>; + }; +}; export type GetTaskIdsForMassSelectionQueryVariables = Types.Exact<{ accountListId: Types.Scalars['ID']['input']; @@ -27,96 +21,175 @@ export type GetTaskIdsForMassSelectionQueryVariables = Types.Exact<{ tasksFilter?: Types.InputMaybe; }>; +export type GetTaskIdsForMassSelectionQuery = { __typename?: 'Query' } & { + tasks: { __typename?: 'TaskConnection' } & { + nodes: Array<{ __typename?: 'Task' } & Pick>; + }; +}; -export type GetTaskIdsForMassSelectionQuery = ( - { __typename?: 'Query' } - & { tasks: ( - { __typename?: 'TaskConnection' } - & { nodes: Array<( - { __typename?: 'Task' } - & Pick - )> } - ) } -); - -export type GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables = Types.Exact<{ - input: Types.PartnerGivingAnalysisReportInput; -}>; - - -export type GetPartnerGivingAnalysisIdsForMassSelectionQuery = ( - { __typename?: 'Query' } - & { partnerGivingAnalysisReport: ( - { __typename?: 'PartnerGivingAnalysisReport' } - & { contacts: Array<( - { __typename?: 'PartnerGivingAnalysisReportContact' } - & Pick - )> } - ) } -); +export type GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables = + Types.Exact<{ + input: Types.PartnerGivingAnalysisReportInput; + }>; +export type GetPartnerGivingAnalysisIdsForMassSelectionQuery = { + __typename?: 'Query'; +} & { + partnerGivingAnalysisReport: { + __typename?: 'PartnerGivingAnalysisReport'; + } & { + contacts: Array< + { __typename?: 'PartnerGivingAnalysisReportContact' } & Pick< + Types.PartnerGivingAnalysisReportContact, + 'id' + > + >; + }; +}; export const GetIdsForMassSelectionDocument = gql` - query GetIdsForMassSelection($accountListId: ID!, $first: Int!, $contactsFilters: ContactFilterSetInput) { - contacts( - accountListId: $accountListId - first: $first - contactsFilter: $contactsFilters + query GetIdsForMassSelection( + $accountListId: ID! + $first: Int! + $contactsFilters: ContactFilterSetInput ) { - nodes { - id + contacts( + accountListId: $accountListId + first: $first + contactsFilter: $contactsFilters + ) { + nodes { + id + } } } +`; +export function useGetIdsForMassSelectionQuery( + baseOptions: Apollo.QueryHookOptions< + GetIdsForMassSelectionQuery, + GetIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetIdsForMassSelectionQuery, + GetIdsForMassSelectionQueryVariables + >(GetIdsForMassSelectionDocument, options); } - `; -export function useGetIdsForMassSelectionQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetIdsForMassSelectionDocument, options); - } -export function useGetIdsForMassSelectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetIdsForMassSelectionDocument, options); - } -export type GetIdsForMassSelectionQueryHookResult = ReturnType; -export type GetIdsForMassSelectionLazyQueryHookResult = ReturnType; -export type GetIdsForMassSelectionQueryResult = Apollo.QueryResult; +export function useGetIdsForMassSelectionLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetIdsForMassSelectionQuery, + GetIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetIdsForMassSelectionQuery, + GetIdsForMassSelectionQueryVariables + >(GetIdsForMassSelectionDocument, options); +} +export type GetIdsForMassSelectionQueryHookResult = ReturnType< + typeof useGetIdsForMassSelectionQuery +>; +export type GetIdsForMassSelectionLazyQueryHookResult = ReturnType< + typeof useGetIdsForMassSelectionLazyQuery +>; +export type GetIdsForMassSelectionQueryResult = Apollo.QueryResult< + GetIdsForMassSelectionQuery, + GetIdsForMassSelectionQueryVariables +>; export const GetTaskIdsForMassSelectionDocument = gql` - query GetTaskIdsForMassSelection($accountListId: ID!, $first: Int!, $tasksFilter: TaskFilterSetInput) { - tasks(accountListId: $accountListId, first: $first, tasksFilter: $tasksFilter) { - nodes { - id + query GetTaskIdsForMassSelection( + $accountListId: ID! + $first: Int! + $tasksFilter: TaskFilterSetInput + ) { + tasks( + accountListId: $accountListId + first: $first + tasksFilter: $tasksFilter + ) { + nodes { + id + } } } +`; +export function useGetTaskIdsForMassSelectionQuery( + baseOptions: Apollo.QueryHookOptions< + GetTaskIdsForMassSelectionQuery, + GetTaskIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetTaskIdsForMassSelectionQuery, + GetTaskIdsForMassSelectionQueryVariables + >(GetTaskIdsForMassSelectionDocument, options); } - `; -export function useGetTaskIdsForMassSelectionQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetTaskIdsForMassSelectionDocument, options); - } -export function useGetTaskIdsForMassSelectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetTaskIdsForMassSelectionDocument, options); - } -export type GetTaskIdsForMassSelectionQueryHookResult = ReturnType; -export type GetTaskIdsForMassSelectionLazyQueryHookResult = ReturnType; -export type GetTaskIdsForMassSelectionQueryResult = Apollo.QueryResult; +export function useGetTaskIdsForMassSelectionLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetTaskIdsForMassSelectionQuery, + GetTaskIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetTaskIdsForMassSelectionQuery, + GetTaskIdsForMassSelectionQueryVariables + >(GetTaskIdsForMassSelectionDocument, options); +} +export type GetTaskIdsForMassSelectionQueryHookResult = ReturnType< + typeof useGetTaskIdsForMassSelectionQuery +>; +export type GetTaskIdsForMassSelectionLazyQueryHookResult = ReturnType< + typeof useGetTaskIdsForMassSelectionLazyQuery +>; +export type GetTaskIdsForMassSelectionQueryResult = Apollo.QueryResult< + GetTaskIdsForMassSelectionQuery, + GetTaskIdsForMassSelectionQueryVariables +>; export const GetPartnerGivingAnalysisIdsForMassSelectionDocument = gql` - query GetPartnerGivingAnalysisIdsForMassSelection($input: PartnerGivingAnalysisReportInput!) { - partnerGivingAnalysisReport(input: $input) { - contacts { - id + query GetPartnerGivingAnalysisIdsForMassSelection( + $input: PartnerGivingAnalysisReportInput! + ) { + partnerGivingAnalysisReport(input: $input) { + contacts { + id + } } } +`; +export function useGetPartnerGivingAnalysisIdsForMassSelectionQuery( + baseOptions: Apollo.QueryHookOptions< + GetPartnerGivingAnalysisIdsForMassSelectionQuery, + GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetPartnerGivingAnalysisIdsForMassSelectionQuery, + GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables + >(GetPartnerGivingAnalysisIdsForMassSelectionDocument, options); } - `; -export function useGetPartnerGivingAnalysisIdsForMassSelectionQuery(baseOptions: Apollo.QueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetPartnerGivingAnalysisIdsForMassSelectionDocument, options); - } -export function useGetPartnerGivingAnalysisIdsForMassSelectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { - const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetPartnerGivingAnalysisIdsForMassSelectionDocument, options); - } -export type GetPartnerGivingAnalysisIdsForMassSelectionQueryHookResult = ReturnType; -export type GetPartnerGivingAnalysisIdsForMassSelectionLazyQueryHookResult = ReturnType; -export type GetPartnerGivingAnalysisIdsForMassSelectionQueryResult = Apollo.QueryResult; \ No newline at end of file +export function useGetPartnerGivingAnalysisIdsForMassSelectionLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetPartnerGivingAnalysisIdsForMassSelectionQuery, + GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetPartnerGivingAnalysisIdsForMassSelectionQuery, + GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables + >(GetPartnerGivingAnalysisIdsForMassSelectionDocument, options); +} +export type GetPartnerGivingAnalysisIdsForMassSelectionQueryHookResult = + ReturnType; +export type GetPartnerGivingAnalysisIdsForMassSelectionLazyQueryHookResult = + ReturnType; +export type GetPartnerGivingAnalysisIdsForMassSelectionQueryResult = + Apollo.QueryResult< + GetPartnerGivingAnalysisIdsForMassSelectionQuery, + GetPartnerGivingAnalysisIdsForMassSelectionQueryVariables + >;