diff --git a/components/AccountHoverCard.tsx b/components/AccountHoverCard.tsx index aa790011aaa..606dd5f4db6 100644 --- a/components/AccountHoverCard.tsx +++ b/components/AccountHoverCard.tsx @@ -9,7 +9,8 @@ import { FormattedDate, FormattedMessage } from 'react-intl'; import { isIndividualAccount } from '../lib/collective'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { Account, AccountWithHost, UserContextualMembershipsQuery } from '../lib/graphql/types/v2/graphql'; +import type { UserContextualMembershipsQuery } from '../lib/graphql/types/v2/graphql'; +import type { Account, AccountWithHost } from '../lib/graphql/types/v2/schema'; import { getCollectivePageRoute } from '../lib/url-helpers'; import PrivateInfoIcon from './icons/PrivateInfoIcon'; diff --git a/components/AccountingCategorySelect.tsx b/components/AccountingCategorySelect.tsx index 27cad54ba02..5d27acb40f0 100644 --- a/components/AccountingCategorySelect.tsx +++ b/components/AccountingCategorySelect.tsx @@ -4,8 +4,8 @@ import { Check, ChevronDown, Sparkles } from 'lucide-react'; import type { IntlShape } from 'react-intl'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; -import type { Account, AccountingCategory, Expense, ExpenseType, Host } from '../lib/graphql/types/v2/graphql'; -import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../lib/graphql/types/v2/graphql'; +import type { Account, AccountingCategory, Expense, ExpenseType, Host } from '../lib/graphql/types/v2/schema'; +import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../lib/hooks/useAsyncCall'; import useLoggedInUser from '../lib/hooks/useLoggedInUser'; import { fetchExpenseCategoryPredictions } from '../lib/ml-service'; diff --git a/components/AvatarWithLink.tsx b/components/AvatarWithLink.tsx index 33214141fce..0ab91b3c5c5 100644 --- a/components/AvatarWithLink.tsx +++ b/components/AvatarWithLink.tsx @@ -1,7 +1,7 @@ import React from 'react'; import styled from 'styled-components'; -import type { Account } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import { getAvatarBorderRadius } from '../lib/image-utils'; import Avatar from './Avatar'; diff --git a/components/CreateVirtualCardBtn.tsx b/components/CreateVirtualCardBtn.tsx index 7841b5e1fcd..af078fc47c6 100644 --- a/components/CreateVirtualCardBtn.tsx +++ b/components/CreateVirtualCardBtn.tsx @@ -1,7 +1,7 @@ import React, { Fragment } from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Account } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import EditVirtualCardModal from './edit-collective/EditVirtualCardModal'; import { useToast } from './ui/useToast'; diff --git a/components/Currency.tsx b/components/Currency.tsx index 2df1b6d9b34..ca99cbc4672 100644 --- a/components/Currency.tsx +++ b/components/Currency.tsx @@ -3,7 +3,7 @@ import { useIntl } from 'react-intl'; import { ZERO_DECIMAL_CURRENCIES } from '../lib/constants/currency'; import { formatCurrency, getCurrencySymbol } from '../lib/currency-utils'; -import type { Currency as CurrencyEnum } from '../lib/graphql/types/v2/graphql'; +import type { Currency as CurrencyEnum } from '../lib/graphql/types/v2/schema'; import { cn } from '../lib/utils'; type CurrencyProps = { diff --git a/components/EditOrderModal.tsx b/components/EditOrderModal.tsx index 2d220ffe013..960417a1b8f 100644 --- a/components/EditOrderModal.tsx +++ b/components/EditOrderModal.tsx @@ -10,12 +10,8 @@ import { formatCurrency } from '../lib/currency-utils'; import { getIntervalFromContributionFrequency } from '../lib/date-utils'; import { getErrorFromGraphqlException, i18nGraphqlException } from '../lib/errors'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { - AccountReferenceInput, - EditPaymentMethodModalQuery, - PaymentMethod, - SetupIntentInput, -} from '../lib/graphql/types/v2/graphql'; +import type { EditPaymentMethodModalQuery } from '../lib/graphql/types/v2/graphql'; +import type { AccountReferenceInput, PaymentMethod, SetupIntentInput } from '../lib/graphql/types/v2/schema'; import { DEFAULT_MINIMUM_AMOUNT } from '../lib/tier-utils'; import AddFundsModal from './dashboard/sections/collectives/AddFundsModal'; diff --git a/components/EditTags.tsx b/components/EditTags.tsx index 62093d9068f..4fe5e17f367 100644 --- a/components/EditTags.tsx +++ b/components/EditTags.tsx @@ -6,7 +6,7 @@ import { Search, Tags, TagsIcon } from 'lucide-react'; import { FormattedMessage, useIntl } from 'react-intl'; import { API_V2_CONTEXT } from '../lib/graphql/helpers'; -import type { AccountReferenceInput, InputMaybe, Scalars } from '../lib/graphql/types/v2/graphql'; +import type { AccountReferenceInput, InputMaybe, Scalars } from '../lib/graphql/types/v2/schema'; import useDebouncedSearch from '../lib/hooks/useDebouncedSearch'; import { Button } from './ui/Button'; diff --git a/components/EditTagsModal.tsx b/components/EditTagsModal.tsx index acc90d59de3..2a10eca160b 100644 --- a/components/EditTagsModal.tsx +++ b/components/EditTagsModal.tsx @@ -5,7 +5,7 @@ import { FormattedMessage } from 'react-intl'; import { IGNORED_TAGS } from '../lib/constants/collectives'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { Collective } from '../lib/graphql/types/v2/graphql'; +import type { Collective } from '../lib/graphql/types/v2/schema'; import { editTagsMutation } from '../lib/graphql/v1/mutations'; import { toast } from './ui/useToast'; diff --git a/components/ExchangeRate.tsx b/components/ExchangeRate.tsx index 20599c50be7..ef2f6fb3870 100644 --- a/components/ExchangeRate.tsx +++ b/components/ExchangeRate.tsx @@ -3,7 +3,7 @@ import { round } from 'lodash'; import { InfoIcon } from 'lucide-react'; import { useIntl } from 'react-intl'; -import type { CurrencyExchangeRate, CurrencyExchangeRateInput } from '../lib/graphql/types/v2/graphql'; +import type { CurrencyExchangeRate, CurrencyExchangeRateInput } from '../lib/graphql/types/v2/schema'; import { cn } from '../lib/utils'; import { Input } from './ui/Input'; diff --git a/components/ExportTransactionsCSVModal.tsx b/components/ExportTransactionsCSVModal.tsx index 0cb9792b8c7..de72c5a1dc4 100644 --- a/components/ExportTransactionsCSVModal.tsx +++ b/components/ExportTransactionsCSVModal.tsx @@ -16,7 +16,7 @@ import { HOST_OMITTED_FIELDS, LEGACY_FIELD_OPTIONS as FIELD_OPTIONS, } from '../lib/export-csv/transactions-csv'; -import type { Account } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../lib/hooks/useAsyncCall'; import { getFromLocalStorage, LOCAL_STORAGE_KEYS } from '../lib/local-storage'; import { parseToBoolean } from '../lib/utils'; diff --git a/components/FollowButton.tsx b/components/FollowButton.tsx index 986fe3b0b3a..6244e10a9e0 100644 --- a/components/FollowButton.tsx +++ b/components/FollowButton.tsx @@ -6,8 +6,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { CollectiveType } from '../lib/constants/collectives'; import { i18nGraphqlException } from '../lib/errors'; import { API_V2_CONTEXT } from '../lib/graphql/helpers'; -import type { Account } from '../lib/graphql/types/v2/graphql'; -import { MemberRole } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; +import { MemberRole } from '../lib/graphql/types/v2/schema'; import useLoggedInUser from '../lib/hooks/useLoggedInUser'; import { cn } from '../lib/utils'; diff --git a/components/FormattedMoneyAmount.tsx b/components/FormattedMoneyAmount.tsx index b8a26c17b9c..d6ef1d7b88d 100644 --- a/components/FormattedMoneyAmount.tsx +++ b/components/FormattedMoneyAmount.tsx @@ -5,7 +5,7 @@ import { FormattedMessage } from 'react-intl'; import { CurrencyPrecision } from '../lib/constants/currency-precision'; import INTERVALS from '../lib/constants/intervals'; import { getIntervalFromContributionFrequency } from '../lib/date-utils'; -import type { Currency as GraphQLCurrency, TierFrequency } from '../lib/graphql/types/v2/graphql'; +import type { Currency as GraphQLCurrency, TierFrequency } from '../lib/graphql/types/v2/schema'; import { cn } from '../lib/utils'; import Currency from './Currency'; diff --git a/components/GiftCard.tsx b/components/GiftCard.tsx index bf4aa20924d..02f0390c90c 100644 --- a/components/GiftCard.tsx +++ b/components/GiftCard.tsx @@ -3,7 +3,7 @@ import { Clock } from 'lucide-react'; import { FormattedDate, FormattedMessage } from 'react-intl'; import type { GraphQLV1Collective } from '../lib/custom_typings/GraphQLV1Collective'; -import type { Currency as GraphQLCurrency } from '../lib/graphql/types/v2/graphql'; +import type { Currency as GraphQLCurrency } from '../lib/graphql/types/v2/schema'; import CollectiveCard from './gift-cards/CollectiveCard'; import Currency from './Currency'; diff --git a/components/InputTypeCountry.js b/components/InputTypeCountry.js index 19c9d6ae6d4..349626125dd 100644 --- a/components/InputTypeCountry.js +++ b/components/InputTypeCountry.js @@ -6,7 +6,7 @@ import memoizeOne from 'memoize-one'; import { FormattedMessage, injectIntl } from 'react-intl'; import fetchGeoLocation from '../lib/geolocation_api'; -import { CountryIso } from '../lib/graphql/types/v2/graphql'; +import { CountryIso } from '../lib/graphql/types/v2/schema'; import { getIntlDisplayNames } from '../lib/i18n'; import { Flex } from './Grid'; diff --git a/components/OCFBanner.tsx b/components/OCFBanner.tsx index e5fe3cf7c4c..95108926fbf 100644 --- a/components/OCFBanner.tsx +++ b/components/OCFBanner.tsx @@ -5,11 +5,8 @@ import { FormattedMessage } from 'react-intl'; import { checkIfOCF } from '../lib/collective'; import { API_V2_CONTEXT } from '../lib/graphql/helpers'; -import type { - Account, - OcfTransitionBannerQuery, - OcfTransitionBannerQueryVariables, -} from '../lib/graphql/types/v2/graphql'; +import type { OcfTransitionBannerQuery, OcfTransitionBannerQueryVariables } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import useLoggedInUser from '../lib/hooks/useLoggedInUser'; import { getCollectivePageRoute, getDashboardRoute } from '../lib/url-helpers'; import { cn } from '../lib/utils'; diff --git a/components/PaymentMethodLabel.tsx b/components/PaymentMethodLabel.tsx index 2693ae183ec..4d119293cb2 100644 --- a/components/PaymentMethodLabel.tsx +++ b/components/PaymentMethodLabel.tsx @@ -6,8 +6,8 @@ import SiWise from '@icons-pack/react-simple-icons/icons/SiWise'; import clsx from 'clsx'; import { useIntl } from 'react-intl'; -import type { PaymentMethodType } from '../lib/graphql/types/v2/graphql'; -import { PaymentMethodService } from '../lib/graphql/types/v2/graphql'; +import type { PaymentMethodType } from '../lib/graphql/types/v2/schema'; +import { PaymentMethodService } from '../lib/graphql/types/v2/schema'; import { i18nPaymentMethodService } from '../lib/i18n/payment-method-service'; import { i18nPaymentMethodType } from '../lib/i18n/payment-method-type'; diff --git a/components/PayoutMethodIcon.tsx b/components/PayoutMethodIcon.tsx index 4ecb3f83b78..8b6f757f688 100644 --- a/components/PayoutMethodIcon.tsx +++ b/components/PayoutMethodIcon.tsx @@ -3,8 +3,8 @@ import { Paypal } from '@styled-icons/fa-brands/Paypal'; import { MoneyCheck } from '@styled-icons/fa-solid/MoneyCheck'; import { Landmark } from 'lucide-react'; -import type { PayoutMethod } from '../lib/graphql/types/v2/graphql'; -import { PayoutMethodType } from '../lib/graphql/types/v2/graphql'; +import type { PayoutMethod } from '../lib/graphql/types/v2/schema'; +import { PayoutMethodType } from '../lib/graphql/types/v2/schema'; import Image from './Image'; diff --git a/components/PayoutMethodLabel.tsx b/components/PayoutMethodLabel.tsx index 266d7e4df80..201b9395bb6 100644 --- a/components/PayoutMethodLabel.tsx +++ b/components/PayoutMethodLabel.tsx @@ -2,8 +2,8 @@ import React from 'react'; import { truncate } from 'lodash'; import { defineMessages, FormattedMessage } from 'react-intl'; -import type { PayoutMethod } from '../lib/graphql/types/v2/graphql'; -import { PayoutMethodType } from '../lib/graphql/types/v2/graphql'; +import type { PayoutMethod } from '../lib/graphql/types/v2/schema'; +import { PayoutMethodType } from '../lib/graphql/types/v2/schema'; import { PayoutMethodIcon } from './PayoutMethodIcon'; diff --git a/components/StackedAvatars.tsx b/components/StackedAvatars.tsx index 613c9d4e275..b1efe71c827 100644 --- a/components/StackedAvatars.tsx +++ b/components/StackedAvatars.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { Account } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import Avatar from './Avatar'; import LinkCollective from './LinkCollective'; diff --git a/components/StyledAmountPicker.tsx b/components/StyledAmountPicker.tsx index 4965d526d33..b302b0e7053 100644 --- a/components/StyledAmountPicker.tsx +++ b/components/StyledAmountPicker.tsx @@ -3,7 +3,7 @@ import { css } from '@styled-system/css'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; -import type { Currency as CurrencyEnum } from '../lib/graphql/types/v2/graphql'; +import type { Currency as CurrencyEnum } from '../lib/graphql/types/v2/schema'; import Currency from './Currency'; import { Flex } from './Grid'; diff --git a/components/StyledDropzone.tsx b/components/StyledDropzone.tsx index 952720808a7..a6b16487c6e 100644 --- a/components/StyledDropzone.tsx +++ b/components/StyledDropzone.tsx @@ -9,7 +9,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import styled, { css } from 'styled-components'; import { v4 as uuid } from 'uuid'; -import type { OcrParsingOptionsInput, UploadedFileKind, UploadFileResult } from '../lib/graphql/types/v2/graphql'; +import type { OcrParsingOptionsInput, UploadedFileKind, UploadFileResult } from '../lib/graphql/types/v2/schema'; import { useGraphQLFileUploader } from '../lib/hooks/useGraphQLFileUploader'; import { useImageUploader } from '../lib/hooks/useImageUploader'; diff --git a/components/accept-financial-contributions/ApplyToHostCard.tsx b/components/accept-financial-contributions/ApplyToHostCard.tsx index 11537efb9cb..df4eec93a09 100644 --- a/components/accept-financial-contributions/ApplyToHostCard.tsx +++ b/components/accept-financial-contributions/ApplyToHostCard.tsx @@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import { confettiFireworks } from '../../lib/confettis'; -import type { Account, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host } from '../../lib/graphql/types/v2/schema'; import ApplyToHostModal from '../ApplyToHostModal'; import { Box, Flex } from '../Grid'; diff --git a/components/accept-financial-contributions/FeaturedFiscalHostResults.tsx b/components/accept-financial-contributions/FeaturedFiscalHostResults.tsx index 268990936e6..2e0c1547da4 100644 --- a/components/accept-financial-contributions/FeaturedFiscalHostResults.tsx +++ b/components/accept-financial-contributions/FeaturedFiscalHostResults.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; -import type { Account, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host } from '../../lib/graphql/types/v2/schema'; import { Flex, Grid } from '../Grid'; import StyledCard from '../StyledCard'; diff --git a/components/accept-financial-contributions/FindAHostSearch.tsx b/components/accept-financial-contributions/FindAHostSearch.tsx index 4929956991b..969c5014459 100644 --- a/components/accept-financial-contributions/FindAHostSearch.tsx +++ b/components/accept-financial-contributions/FindAHostSearch.tsx @@ -4,7 +4,7 @@ import { take } from 'lodash'; import { FormattedMessage } from 'react-intl'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host } from '../../lib/graphql/types/v2/schema'; import { Box, Flex } from '../Grid'; import Loading from '../Loading'; diff --git a/components/accept-financial-contributions/OtherFiscalHostResults.tsx b/components/accept-financial-contributions/OtherFiscalHostResults.tsx index e1c8a42f2d9..da3ee42a33e 100644 --- a/components/accept-financial-contributions/OtherFiscalHostResults.tsx +++ b/components/accept-financial-contributions/OtherFiscalHostResults.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; -import type { Account, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host } from '../../lib/graphql/types/v2/schema'; import { Box, Flex, Grid } from '../Grid'; import { P } from '../Text'; diff --git a/components/accept-financial-contributions/StartAcceptingFinancialContributionsPage.tsx b/components/accept-financial-contributions/StartAcceptingFinancialContributionsPage.tsx index 676fa6e8703..f808479987a 100644 --- a/components/accept-financial-contributions/StartAcceptingFinancialContributionsPage.tsx +++ b/components/accept-financial-contributions/StartAcceptingFinancialContributionsPage.tsx @@ -3,7 +3,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import styled from 'styled-components'; import { Currency } from '../../lib/constants/currency'; -import type { Collective } from '../../lib/graphql/types/v2/graphql'; +import type { Collective } from '../../lib/graphql/types/v2/schema'; import useDebounced from '../../lib/hooks/useDebounced'; import Container from '../Container'; diff --git a/components/agreements/Agreement.tsx b/components/agreements/Agreement.tsx index c095375c316..b6aaf364dde 100644 --- a/components/agreements/Agreement.tsx +++ b/components/agreements/Agreement.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Agreement as GraphQLAgreement } from '../../lib/graphql/types/v2/graphql'; +import type { Agreement as GraphQLAgreement } from '../../lib/graphql/types/v2/schema'; import AttachedFiles from '../attached-files/AttachedFiles'; import Avatar from '../Avatar'; diff --git a/components/agreements/AgreementDrawer.tsx b/components/agreements/AgreementDrawer.tsx index cfdc15241d2..d6e0c754dcb 100644 --- a/components/agreements/AgreementDrawer.tsx +++ b/components/agreements/AgreementDrawer.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { Agreement as GraphQLAgreement } from '../../lib/graphql/types/v2/graphql'; +import type { Agreement as GraphQLAgreement } from '../../lib/graphql/types/v2/schema'; import { Drawer } from '../Drawer'; import FilesViewerModal from '../FilesViewerModal'; diff --git a/components/agreements/AgreementForm.tsx b/components/agreements/AgreementForm.tsx index 95e1d57e6ba..05f56fb7afe 100644 --- a/components/agreements/AgreementForm.tsx +++ b/components/agreements/AgreementForm.tsx @@ -10,7 +10,7 @@ import { stripTime } from '../../lib/date-utils'; import { i18nGraphqlException } from '../../lib/errors'; import { requireFields } from '../../lib/form-utils'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, Agreement } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Agreement } from '../../lib/graphql/types/v2/schema'; import AttachedFilesForm from '../attached-files/AttachedFilesForm'; import CollectivePickerAsync from '../CollectivePickerAsync'; diff --git a/components/agreements/AgreementsTable.tsx b/components/agreements/AgreementsTable.tsx index 1ec4f75fb87..24703adfff4 100644 --- a/components/agreements/AgreementsTable.tsx +++ b/components/agreements/AgreementsTable.tsx @@ -2,7 +2,7 @@ import React from 'react'; import type { ColumnDef, TableMeta } from '@tanstack/react-table'; import { FormattedMessage } from 'react-intl'; -import type { Agreement } from '../../lib/graphql/types/v2/graphql'; +import type { Agreement } from '../../lib/graphql/types/v2/schema'; import { AccountHoverCard } from '../AccountHoverCard'; import Avatar from '../Avatar'; diff --git a/components/attached-files/AttachedFiles.tsx b/components/attached-files/AttachedFiles.tsx index 8cb4c1457e5..72385ed1012 100644 --- a/components/attached-files/AttachedFiles.tsx +++ b/components/attached-files/AttachedFiles.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { getDefaultFileName } from '../../lib/expenses'; -import type { FileInfo } from '../../lib/graphql/types/v2/graphql'; +import type { FileInfo } from '../../lib/graphql/types/v2/schema'; import { Box, Flex } from '../Grid'; import LocalFilePreview from '../LocalFilePreview'; diff --git a/components/budget/ExpenseBudgetItem.js b/components/budget/ExpenseBudgetItem.js index 53a8efaf3d3..64efd96d302 100644 --- a/components/budget/ExpenseBudgetItem.js +++ b/components/budget/ExpenseBudgetItem.js @@ -9,7 +9,7 @@ import { space } from 'styled-system'; import expenseTypes from '../../lib/constants/expenseTypes'; import { getFilesFromExpense } from '../../lib/expenses'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { PREVIEW_FEATURE_KEYS } from '../../lib/preview-features'; import { AmountPropTypeShape } from '../../lib/prop-types'; diff --git a/components/budget/filters/AmountFilter.tsx b/components/budget/filters/AmountFilter.tsx index 6ead84bbea3..487a1eaed67 100644 --- a/components/budget/filters/AmountFilter.tsx +++ b/components/budget/filters/AmountFilter.tsx @@ -3,7 +3,7 @@ import type { IntlShape } from 'react-intl'; import { defineMessages, useIntl } from 'react-intl'; import { formatCurrency } from '../../../lib/currency-utils'; -import type { Currency } from '../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../lib/graphql/types/v2/schema'; import { StyledSelectFilter } from '../../StyledSelectFilter'; diff --git a/components/collective-page/hero/HeroSocialLinks.tsx b/components/collective-page/hero/HeroSocialLinks.tsx index 8dd24cda402..acc4410cb44 100644 --- a/components/collective-page/hero/HeroSocialLinks.tsx +++ b/components/collective-page/hero/HeroSocialLinks.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { SocialLink } from '../../../lib/graphql/types/v2/graphql'; +import type { SocialLink } from '../../../lib/graphql/types/v2/schema'; import { iconForSocialLinkType } from '../../../lib/social-links'; import StyledLink from '../../StyledLink'; diff --git a/components/collective-page/sections/Updates.tsx b/components/collective-page/sections/Updates.tsx index 93e27ff573d..7245c784121 100644 --- a/components/collective-page/sections/Updates.tsx +++ b/components/collective-page/sections/Updates.tsx @@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { Account, Update } from '../../../lib/graphql/types/v2/graphql'; +import type { Account, Update } from '../../../lib/graphql/types/v2/schema'; import { getCollectivePageRoute, getDashboardRoute } from '../../../lib/url-helpers'; import { formatDate } from '../../../lib/utils'; diff --git a/components/contribution-flow/PaymentMethodList.tsx b/components/contribution-flow/PaymentMethodList.tsx index 04f3f692b5b..6197e5192ae 100644 --- a/components/contribution-flow/PaymentMethodList.tsx +++ b/components/contribution-flow/PaymentMethodList.tsx @@ -9,8 +9,8 @@ import styled, { css } from 'styled-components'; import { getGQLV2FrequencyFromInterval } from '../../lib/constants/intervals'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, CaptchaInput, Host, Individual } from '../../lib/graphql/types/v2/graphql'; -import { PaymentMethodLegacyType } from '../../lib/graphql/types/v2/graphql'; +import type { Account, CaptchaInput, Host, Individual } from '../../lib/graphql/types/v2/schema'; +import { PaymentMethodLegacyType } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { getStripe } from '../../lib/stripe'; import usePaymentIntent from '../../lib/stripe/usePaymentIntent'; diff --git a/components/contribution-flow/PlatformTipContainer.tsx b/components/contribution-flow/PlatformTipContainer.tsx index 4ceec1f459e..31db5f07622 100644 --- a/components/contribution-flow/PlatformTipContainer.tsx +++ b/components/contribution-flow/PlatformTipContainer.tsx @@ -3,7 +3,7 @@ import clsx from 'clsx'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { formatCurrency } from '../../lib/currency-utils'; -import type { Currency } from '../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../lib/graphql/types/v2/schema'; import theme from '../../lib/theme'; import { Box, Flex } from '../Grid'; diff --git a/components/contribution-flow/utils.js b/components/contribution-flow/utils.js index a8bc46bb115..9fd0b548b92 100644 --- a/components/contribution-flow/utils.js +++ b/components/contribution-flow/utils.js @@ -13,7 +13,7 @@ import { } from '../../lib/constants/payment-methods'; import roles from '../../lib/constants/roles'; import { TierTypes } from '../../lib/constants/tiers-types'; -import { PaymentMethodService, PaymentMethodType } from '../../lib/graphql/types/v2/graphql'; +import { PaymentMethodService, PaymentMethodType } from '../../lib/graphql/types/v2/schema'; import { getPaymentMethodName } from '../../lib/payment_method_label'; import { getPaymentMethodIcon, diff --git a/components/contributions/ConfirmContributionForm.tsx b/components/contributions/ConfirmContributionForm.tsx index ad39944e94f..7516c169c85 100644 --- a/components/contributions/ConfirmContributionForm.tsx +++ b/components/contributions/ConfirmContributionForm.tsx @@ -8,7 +8,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { getCurrentLocalDateStr } from '../../lib/date-utils'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { TaxInput } from '../../lib/graphql/types/v2/graphql'; +import type { TaxInput } from '../../lib/graphql/types/v2/schema'; import { i18nTaxType } from '../../lib/i18n/taxes'; import Container from '../Container'; diff --git a/components/contributions/ContributionDrawer.tsx b/components/contributions/ContributionDrawer.tsx index 111a90ddf8b..988b8d39767 100644 --- a/components/contributions/ContributionDrawer.tsx +++ b/components/contributions/ContributionDrawer.tsx @@ -7,7 +7,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import type { GetActions } from '../../lib/actions/types'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; import type { ContributionDrawerQuery, ContributionDrawerQueryVariables } from '../../lib/graphql/types/v2/graphql'; -import { ContributionFrequency, OrderStatus } from '../../lib/graphql/types/v2/graphql'; +import { ContributionFrequency, OrderStatus } from '../../lib/graphql/types/v2/schema'; import useClipboard from '../../lib/hooks/useClipboard'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { i18nPaymentMethodProviderType } from '../../lib/i18n/payment-method-provider-type'; diff --git a/components/contributions/ContributionTimeline.tsx b/components/contributions/ContributionTimeline.tsx index 1dab5c5dc61..255e2165219 100644 --- a/components/contributions/ContributionTimeline.tsx +++ b/components/contributions/ContributionTimeline.tsx @@ -21,7 +21,7 @@ import { import { FormattedMessage, useIntl } from 'react-intl'; import type { ContributionDrawerQuery } from '../../lib/graphql/types/v2/graphql'; -import { ActivityType, ContributionFrequency, OrderStatus, TransactionKind } from '../../lib/graphql/types/v2/graphql'; +import { ActivityType, ContributionFrequency, OrderStatus, TransactionKind } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import type LoggedInUser from '../../lib/LoggedInUser'; import { getDashboardRoute } from '../../lib/url-helpers'; diff --git a/components/conversations/Comment.js b/components/conversations/Comment.js index 69501ec1364..9bd7157cca2 100644 --- a/components/conversations/Comment.js +++ b/components/conversations/Comment.js @@ -1,7 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { CommentType } from '../../lib/graphql/types/v2/graphql'; +import { CommentType } from '../../lib/graphql/types/v2/schema'; import Container from '../Container'; import { Box, Flex } from '../Grid'; diff --git a/components/conversations/CommentMetadata.tsx b/components/conversations/CommentMetadata.tsx index 0a282188dec..470bc5d8600 100644 --- a/components/conversations/CommentMetadata.tsx +++ b/components/conversations/CommentMetadata.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import { type Comment, CommentType } from '../../lib/graphql/types/v2/graphql'; +import { type Comment, CommentType } from '../../lib/graphql/types/v2/schema'; import Avatar from '../Avatar'; import DateTime from '../DateTime'; diff --git a/components/conversations/SmallThreadActivity.tsx b/components/conversations/SmallThreadActivity.tsx index c1bd84b88dd..f2f9b826e0b 100644 --- a/components/conversations/SmallThreadActivity.tsx +++ b/components/conversations/SmallThreadActivity.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { useTheme } from 'styled-components'; -import type { Activity } from '../../lib/graphql/types/v2/graphql'; +import type { Activity } from '../../lib/graphql/types/v2/schema'; import { AccountHoverCard } from '../AccountHoverCard'; import Avatar from '../Avatar'; diff --git a/components/conversations/Thread.js b/components/conversations/Thread.js index 931c1919b0a..d48cea2e11b 100644 --- a/components/conversations/Thread.js +++ b/components/conversations/Thread.js @@ -4,7 +4,7 @@ import { NotepadText } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; import styled, { withTheme } from 'styled-components'; -import { CommentType } from '../../lib/graphql/types/v2/graphql'; +import { CommentType } from '../../lib/graphql/types/v2/schema'; import { cn } from '../../lib/utils'; import Container from '../Container'; diff --git a/components/conversations/types.ts b/components/conversations/types.ts index bb5f2d8f4c4..8cdf6a40b7f 100644 --- a/components/conversations/types.ts +++ b/components/conversations/types.ts @@ -1,4 +1,5 @@ -import type { AccountType, CommentFieldsFragment, CommentType } from '../../lib/graphql/types/v2/graphql'; +import type { CommentFieldsFragment } from '../../lib/graphql/types/v2/graphql'; +import type { AccountType, CommentType } from '../../lib/graphql/types/v2/schema'; type CommentItem = CommentFieldsFragment; diff --git a/components/crowdfunding-redesign/SocialLinks.tsx b/components/crowdfunding-redesign/SocialLinks.tsx index a10071a4322..fc04deae1d4 100644 --- a/components/crowdfunding-redesign/SocialLinks.tsx +++ b/components/crowdfunding-redesign/SocialLinks.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { SocialLink } from '../../lib/graphql/types/v2/graphql'; +import type { SocialLink } from '../../lib/graphql/types/v2/schema'; import { iconForSocialLinkType } from '../../lib/social-links'; import Link from '../Link'; diff --git a/components/crowdfunding-redesign/Tiers.tsx b/components/crowdfunding-redesign/Tiers.tsx index a37e8777890..e9c796e6f1b 100644 --- a/components/crowdfunding-redesign/Tiers.tsx +++ b/components/crowdfunding-redesign/Tiers.tsx @@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl'; import { getPrecisionFromAmount, graphqlAmountValueInCents } from '../../lib/currency-utils'; import { isPastEvent } from '../../lib/events'; -import { TierFrequency } from '../../lib/graphql/types/v2/graphql'; +import { TierFrequency } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { isTierExpired } from '../../lib/tier-utils'; diff --git a/components/crowdfunding-redesign/finances/Finances.tsx b/components/crowdfunding-redesign/finances/Finances.tsx index 31596359446..07d4870dd65 100644 --- a/components/crowdfunding-redesign/finances/Finances.tsx +++ b/components/crowdfunding-redesign/finances/Finances.tsx @@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl'; import { z } from 'zod'; import { API_V2_CONTEXT } from '../../../lib/graphql/helpers'; -import { TimeUnit } from '../../../lib/graphql/types/v2/graphql'; +import { TimeUnit } from '../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../lib/hooks/useQueryFilter'; import { childAccountFilter } from '../../dashboard/filters/ChildAccountFilter'; diff --git a/components/crowdfunding-redesign/helpers.ts b/components/crowdfunding-redesign/helpers.ts index 9cf21730ea3..eca547b173f 100644 --- a/components/crowdfunding-redesign/helpers.ts +++ b/components/crowdfunding-redesign/helpers.ts @@ -1,7 +1,7 @@ import { get } from 'lodash'; import { z } from 'zod'; -import type { Account } from '../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../lib/graphql/types/v2/schema'; import { toast } from '../ui/useToast'; diff --git a/components/dashboard/ExportHostedCollectivesCSVModal.tsx b/components/dashboard/ExportHostedCollectivesCSVModal.tsx index 5e7d2b88e7f..853d8581811 100644 --- a/components/dashboard/ExportHostedCollectivesCSVModal.tsx +++ b/components/dashboard/ExportHostedCollectivesCSVModal.tsx @@ -21,11 +21,8 @@ import { } from '../../lib/export-csv/hosted-collectives-csv'; import type { CSVField } from '../../lib/export-csv/transactions-csv'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { - Account, - HostReportsPageQueryVariables, - TransactionsPageQueryVariables, -} from '../../lib/graphql/types/v2/graphql'; +import type { HostReportsPageQueryVariables, TransactionsPageQueryVariables } from '../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../../lib/hooks/useAsyncCall'; import type { useQueryFilterReturnType } from '../../lib/hooks/useQueryFilter'; import { getFromLocalStorage, LOCAL_STORAGE_KEYS } from '../../lib/local-storage'; diff --git a/components/dashboard/ExportTransactionsCSVModal.tsx b/components/dashboard/ExportTransactionsCSVModal.tsx index 30d9c826e1a..9a256f56e4d 100644 --- a/components/dashboard/ExportTransactionsCSVModal.tsx +++ b/components/dashboard/ExportTransactionsCSVModal.tsx @@ -24,11 +24,8 @@ import { PLATFORM_PRESETS, } from '../../lib/export-csv/transactions-csv'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { - Account, - HostReportsPageQueryVariables, - TransactionsPageQueryVariables, -} from '../../lib/graphql/types/v2/graphql'; +import type { HostReportsPageQueryVariables, TransactionsPageQueryVariables } from '../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../../lib/hooks/useAsyncCall'; import type { useQueryFilterReturnType } from '../../lib/hooks/useQueryFilter'; import { getFromLocalStorage, LOCAL_STORAGE_KEYS } from '../../lib/local-storage'; diff --git a/components/dashboard/Menu.tsx b/components/dashboard/Menu.tsx index 8e991e2a196..5d581b2388a 100644 --- a/components/dashboard/Menu.tsx +++ b/components/dashboard/Menu.tsx @@ -30,7 +30,7 @@ import hasFeature, { FEATURES } from '../../lib/allowed-features'; import { isHostAccount, isIndividualAccount, isSelfHostedAccount } from '../../lib/collective'; import { isOneOfTypes, isType } from '../../lib/collective-sections'; import { CollectiveType } from '../../lib/constants/collectives'; -import { ConnectedAccountService } from '../../lib/graphql/types/v2/graphql'; +import { ConnectedAccountService } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { PREVIEW_FEATURE_KEYS } from '../../lib/preview-features'; import { getCollectivePageRoute } from '../../lib/url-helpers'; diff --git a/components/dashboard/filters/AccountFilter.tsx b/components/dashboard/filters/AccountFilter.tsx index bb362043452..77fcefdd39f 100644 --- a/components/dashboard/filters/AccountFilter.tsx +++ b/components/dashboard/filters/AccountFilter.tsx @@ -5,7 +5,8 @@ import { z } from 'zod'; import type { FilterComponentProps, FilterConfig } from '../../../lib/filters/filter-types'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { Account, AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../lib/graphql/types/v2/schema'; import { AccountHoverCard, accountHoverCardFields } from '../../AccountHoverCard'; import Avatar from '../../Avatar'; diff --git a/components/dashboard/filters/AmountFilter/AmountFilterValue.tsx b/components/dashboard/filters/AmountFilter/AmountFilterValue.tsx index 8cee5cb3fd2..65a03ceb7b4 100644 --- a/components/dashboard/filters/AmountFilter/AmountFilterValue.tsx +++ b/components/dashboard/filters/AmountFilter/AmountFilterValue.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Currency } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../../lib/graphql/types/v2/schema'; import FormattedMoneyAmount from '../../../FormattedMoneyAmount'; diff --git a/components/dashboard/filters/ChildAccountFilter.tsx b/components/dashboard/filters/ChildAccountFilter.tsx index 98c8a0349b4..cd4274a480f 100644 --- a/components/dashboard/filters/ChildAccountFilter.tsx +++ b/components/dashboard/filters/ChildAccountFilter.tsx @@ -3,7 +3,7 @@ import { defineMessage } from 'react-intl'; import { z } from 'zod'; import type { FilterComponentProps, FilterConfig } from '../../../lib/filters/filter-types'; -import type { Account } from '../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../lib/graphql/types/v2/schema'; import ComboSelectFilter from './ComboSelectFilter'; import { AccountRenderer } from './HostedAccountFilter'; diff --git a/components/dashboard/filters/ExpectedFundsFilter.tsx b/components/dashboard/filters/ExpectedFundsFilter.tsx index e308a6f353d..b1afb4dfe0f 100644 --- a/components/dashboard/filters/ExpectedFundsFilter.tsx +++ b/components/dashboard/filters/ExpectedFundsFilter.tsx @@ -3,7 +3,7 @@ import { defineMessage, FormattedMessage } from 'react-intl'; import { z } from 'zod'; import type { FilterConfig } from '../../../lib/filters/filter-types'; -import { ExpectedFundsFilter } from '../../../lib/graphql/types/v2/graphql'; +import { ExpectedFundsFilter } from '../../../lib/graphql/types/v2/schema'; import ComboSelectFilter from './ComboSelectFilter'; diff --git a/components/dashboard/filters/HostedAccountFilter.tsx b/components/dashboard/filters/HostedAccountFilter.tsx index 9305632194c..963b0978dc4 100644 --- a/components/dashboard/filters/HostedAccountFilter.tsx +++ b/components/dashboard/filters/HostedAccountFilter.tsx @@ -5,7 +5,8 @@ import { z } from 'zod'; import type { FilterComponentProps, FilterConfig } from '../../../lib/filters/filter-types'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { Account, AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../lib/graphql/types/v2/schema'; import { AccountHoverCard, accountHoverCardFields } from '../../AccountHoverCard'; import Avatar from '../../Avatar'; diff --git a/components/dashboard/filters/HostsFilter.tsx b/components/dashboard/filters/HostsFilter.tsx index 6fd6b1a7b51..4fd7ce9f8bd 100644 --- a/components/dashboard/filters/HostsFilter.tsx +++ b/components/dashboard/filters/HostsFilter.tsx @@ -5,7 +5,8 @@ import { z } from 'zod'; import type { FilterComponentProps, FilterConfig } from '../../../lib/filters/filter-types'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { Account, AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { AccountHoverCardFieldsFragment, AccountQuery } from '../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../lib/graphql/types/v2/schema'; import { AccountHoverCard, accountHoverCardFields } from '../../AccountHoverCard'; import Avatar from '../../Avatar'; diff --git a/components/dashboard/filters/PaymentMethodFilter.tsx b/components/dashboard/filters/PaymentMethodFilter.tsx index 23421256789..78c14d9d91b 100644 --- a/components/dashboard/filters/PaymentMethodFilter.tsx +++ b/components/dashboard/filters/PaymentMethodFilter.tsx @@ -3,7 +3,7 @@ import { defineMessage, FormattedMessage } from 'react-intl'; import { z } from 'zod'; import type { FilterConfig } from '../../../lib/filters/filter-types'; -import { PaymentMethodService, PaymentMethodType } from '../../../lib/graphql/types/v2/graphql'; +import { PaymentMethodService, PaymentMethodType } from '../../../lib/graphql/types/v2/schema'; import { i18nPaymentMethodService } from '../../../lib/i18n/payment-method-service'; import { i18nPaymentMethodType } from '../../../lib/i18n/payment-method-type'; diff --git a/components/dashboard/filters/PeriodCompareFilter/index.tsx b/components/dashboard/filters/PeriodCompareFilter/index.tsx index 5d2e25e087f..06a33070afe 100644 --- a/components/dashboard/filters/PeriodCompareFilter/index.tsx +++ b/components/dashboard/filters/PeriodCompareFilter/index.tsx @@ -10,7 +10,7 @@ import type { z } from 'zod'; import { getDayjsIsoUnit, getDayjsOpUnit } from '../../../../lib/date-utils'; import dayjs from '../../../../lib/dayjs'; import type { FilterConfig } from '../../../../lib/filters/filter-types'; -import { TimeUnit } from '../../../../lib/graphql/types/v2/graphql'; +import { TimeUnit } from '../../../../lib/graphql/types/v2/schema'; import { i18nPeriodFilterCompare, i18nPeriodFilterType, diff --git a/components/dashboard/filters/PeriodCompareFilter/schema.tsx b/components/dashboard/filters/PeriodCompareFilter/schema.tsx index f3d6b8ad5a3..4e583967047 100644 --- a/components/dashboard/filters/PeriodCompareFilter/schema.tsx +++ b/components/dashboard/filters/PeriodCompareFilter/schema.tsx @@ -1,7 +1,7 @@ import { z } from 'zod'; import { SimpleDateString } from '../../../../lib/filters/schemas'; -import { TimeUnit } from '../../../../lib/graphql/types/v2/graphql'; +import { TimeUnit } from '../../../../lib/graphql/types/v2/schema'; export enum PeriodFilterType { TODAY = 'TODAY', diff --git a/components/dashboard/filters/SortFilter.tsx b/components/dashboard/filters/SortFilter.tsx index c023a920726..22d9d8aeaa0 100644 --- a/components/dashboard/filters/SortFilter.tsx +++ b/components/dashboard/filters/SortFilter.tsx @@ -14,7 +14,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { z } from 'zod'; import type { FilterComponentProps, FilterConfig } from '../../../lib/filters/filter-types'; -import { DateTimeField, OrderByFieldType, OrderDirection } from '../../../lib/graphql/types/v2/graphql'; +import { DateTimeField, OrderByFieldType, OrderDirection } from '../../../lib/graphql/types/v2/schema'; import { parseChronologicalOrderInput } from '../../expenses/filters/ExpensesOrder'; import { Button } from '../../ui/Button'; diff --git a/components/dashboard/sections/ActivityLog/ActivitiesTable.tsx b/components/dashboard/sections/ActivityLog/ActivitiesTable.tsx index 7f567f031ec..36109e52c1d 100644 --- a/components/dashboard/sections/ActivityLog/ActivitiesTable.tsx +++ b/components/dashboard/sections/ActivityLog/ActivitiesTable.tsx @@ -2,7 +2,7 @@ import React from 'react'; import type { ColumnDef, TableMeta } from '@tanstack/react-table'; import { FormattedMessage } from 'react-intl'; -import type { Activity } from '../../../../lib/graphql/types/v2/graphql'; +import type { Activity } from '../../../../lib/graphql/types/v2/schema'; import { BREAKPOINTS, useWindowResize } from '../../../../lib/hooks/useWindowResize'; import DateTime from '../../../DateTime'; diff --git a/components/dashboard/sections/ActivityLog/ActivityDetails.tsx b/components/dashboard/sections/ActivityLog/ActivityDetails.tsx index 98272a51431..fc58263f525 100644 --- a/components/dashboard/sections/ActivityLog/ActivityDetails.tsx +++ b/components/dashboard/sections/ActivityLog/ActivityDetails.tsx @@ -4,7 +4,7 @@ import { isEmpty } from 'lodash'; import { defineMessage, useIntl } from 'react-intl'; import styled from 'styled-components'; -import type { Activity } from '../../../../lib/graphql/types/v2/graphql'; +import type { Activity } from '../../../../lib/graphql/types/v2/schema'; import { Box } from '../../../Grid'; diff --git a/components/dashboard/sections/ActivityLog/ActivityDetailsDrawer.tsx b/components/dashboard/sections/ActivityLog/ActivityDetailsDrawer.tsx index 22e4de14167..56f0685c84a 100644 --- a/components/dashboard/sections/ActivityLog/ActivityDetailsDrawer.tsx +++ b/components/dashboard/sections/ActivityLog/ActivityDetailsDrawer.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; -import type { Activity } from '../../../../lib/graphql/types/v2/graphql'; +import type { Activity } from '../../../../lib/graphql/types/v2/schema'; import Avatar from '../../../Avatar'; import DateTime from '../../../DateTime'; diff --git a/components/dashboard/sections/ActivityLog/ActivityUser.tsx b/components/dashboard/sections/ActivityLog/ActivityUser.tsx index 050516f43eb..7d3f8fa9ada 100644 --- a/components/dashboard/sections/ActivityLog/ActivityUser.tsx +++ b/components/dashboard/sections/ActivityLog/ActivityUser.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Activity } from '../../../../lib/graphql/types/v2/graphql'; +import type { Activity } from '../../../../lib/graphql/types/v2/schema'; import Avatar from '../../../Avatar'; diff --git a/components/dashboard/sections/Contributors.tsx b/components/dashboard/sections/Contributors.tsx index 1dcba196f36..a2b8ce66cf7 100644 --- a/components/dashboard/sections/Contributors.tsx +++ b/components/dashboard/sections/Contributors.tsx @@ -7,7 +7,7 @@ import { fetchCSVFileFromRESTService } from '../../../lib/api'; import type { FilterConfig } from '../../../lib/filters/filter-types'; import { integer, isMulti } from '../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../lib/graphql/helpers'; -import { MemberRole } from '../../../lib/graphql/types/v2/graphql'; +import { MemberRole } from '../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../lib/hooks/useQueryFilter'; import { capitalize, sortSelectOptions } from '../../../lib/utils'; diff --git a/components/dashboard/sections/HostDashboardAgreements.tsx b/components/dashboard/sections/HostDashboardAgreements.tsx index 1008b472d5e..56e6aba137e 100644 --- a/components/dashboard/sections/HostDashboardAgreements.tsx +++ b/components/dashboard/sections/HostDashboardAgreements.tsx @@ -7,7 +7,8 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables } from '../../../lib/filters/filter-types'; import { integer } from '../../../lib/filters/schemas'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { Agreement, HostAgreementsQueryVariables } from '../../../lib/graphql/types/v2/graphql'; +import type { HostAgreementsQueryVariables } from '../../../lib/graphql/types/v2/graphql'; +import type { Agreement } from '../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../lib/hooks/useLoggedInUser'; import useQueryFilter from '../../../lib/hooks/useQueryFilter'; diff --git a/components/dashboard/sections/HostVirtualCardRequests.tsx b/components/dashboard/sections/HostVirtualCardRequests.tsx index 664bf48018c..c7ac4e926d3 100644 --- a/components/dashboard/sections/HostVirtualCardRequests.tsx +++ b/components/dashboard/sections/HostVirtualCardRequests.tsx @@ -6,13 +6,9 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables, Views } from '../../../lib/filters/filter-types'; import { isMulti, limit, offset } from '../../../lib/filters/schemas'; import { API_V2_CONTEXT, gql } from '../../../lib/graphql/helpers'; -import type { - Account, - Host, - HostVirtualCardRequestsQueryVariables, - VirtualCardRequestCollection, -} from '../../../lib/graphql/types/v2/graphql'; -import { VirtualCardRequestStatus } from '../../../lib/graphql/types/v2/graphql'; +import type { HostVirtualCardRequestsQueryVariables } from '../../../lib/graphql/types/v2/graphql'; +import type { Account, Host, VirtualCardRequestCollection } from '../../../lib/graphql/types/v2/schema'; +import { VirtualCardRequestStatus } from '../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../lib/hooks/useQueryFilter'; import { i18nVirtualCardRequestStatus } from '../../../lib/i18n/virtual-card-request'; import { sortSelectOptions } from '../../../lib/utils'; diff --git a/components/dashboard/sections/Team.tsx b/components/dashboard/sections/Team.tsx index 38da77d3e97..d5b0553a0e4 100644 --- a/components/dashboard/sections/Team.tsx +++ b/components/dashboard/sections/Team.tsx @@ -16,7 +16,7 @@ import type { AccountWithParent, Member, MemberInvitation, -} from '../../../lib/graphql/types/v2/graphql'; +} from '../../../lib/graphql/types/v2/schema'; import formatMemberRole from '../../../lib/i18n/member-role'; import { getCollectivePageRoute } from '../../../lib/url-helpers'; diff --git a/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx b/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx index 7d2292e7a01..69e551a13e1 100644 --- a/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx +++ b/components/dashboard/sections/accounting/AccountingCategoriesTable.tsx @@ -5,11 +5,11 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { CollectiveType } from '../../../../lib/constants/collectives'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { - AccountingCategory, AccountingCategoryTableQuery, AccountingCategoryTableQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; -import { AccountingCategoryKind } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountingCategory } from '../../../../lib/graphql/types/v2/schema'; +import { AccountingCategoryKind } from '../../../../lib/graphql/types/v2/schema'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { I18nItalic } from '../../../I18nFormatters'; diff --git a/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx b/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx index 48c91daad0b..52ba5c34a7d 100644 --- a/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx +++ b/components/dashboard/sections/accounting/AccountingCategoryDrawer.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; -import type { AccountingCategory } from '../../../../lib/graphql/types/v2/graphql'; -import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountingCategory } from '../../../../lib/graphql/types/v2/schema'; +import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../../../../lib/graphql/types/v2/schema'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { Drawer, DrawerActions, DrawerHeader } from '../../../Drawer'; diff --git a/components/dashboard/sections/accounting/AccountingCategoryForm.tsx b/components/dashboard/sections/accounting/AccountingCategoryForm.tsx index d9af12e4961..1493badf46d 100644 --- a/components/dashboard/sections/accounting/AccountingCategoryForm.tsx +++ b/components/dashboard/sections/accounting/AccountingCategoryForm.tsx @@ -7,7 +7,7 @@ import { AccountingCategoryAppliesTo, AccountingCategoryKind, ExpenseType, -} from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import RichTextEditor from '../../../RichTextEditor'; diff --git a/components/dashboard/sections/accounting/CreateAccountingCategoryModal.tsx b/components/dashboard/sections/accounting/CreateAccountingCategoryModal.tsx index 9e41fb4d7f0..eca80a9b0f3 100644 --- a/components/dashboard/sections/accounting/CreateAccountingCategoryModal.tsx +++ b/components/dashboard/sections/accounting/CreateAccountingCategoryModal.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; -import type { AccountingCategory } from '../../../../lib/graphql/types/v2/graphql'; -import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountingCategory } from '../../../../lib/graphql/types/v2/schema'; +import { AccountingCategoryAppliesTo, AccountingCategoryKind } from '../../../../lib/graphql/types/v2/schema'; import StyledButton from '../../../StyledButton'; import StyledModal, { ModalBody, ModalFooter, ModalHeader } from '../../../StyledModal'; diff --git a/components/dashboard/sections/accounting/index.tsx b/components/dashboard/sections/accounting/index.tsx index 5cec8f09054..ec2a3a6d0f5 100644 --- a/components/dashboard/sections/accounting/index.tsx +++ b/components/dashboard/sections/accounting/index.tsx @@ -9,11 +9,11 @@ import { CollectiveType } from '../../../../lib/constants/collectives'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { - AccountingCategory, AdminAccountingCategoriesQuery, AdminAccountingCategoriesQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; -import { AccountingCategoryKind } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountingCategory } from '../../../../lib/graphql/types/v2/schema'; +import { AccountingCategoryKind } from '../../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; diff --git a/components/dashboard/sections/accounts/AccountDetails.tsx b/components/dashboard/sections/accounts/AccountDetails.tsx index 6abc9d6109c..1a7081d5b3f 100644 --- a/components/dashboard/sections/accounts/AccountDetails.tsx +++ b/components/dashboard/sections/accounts/AccountDetails.tsx @@ -8,7 +8,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { CollectiveType } from '../../../../lib/constants/collectives'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { AccountWithHost, HostedCollectiveFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; +import type { HostedCollectiveFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountWithHost } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { i18nTransactionKind } from '../../../../lib/i18n/transaction'; diff --git a/components/dashboard/sections/accounts/InternalTransferModal.tsx b/components/dashboard/sections/accounts/InternalTransferModal.tsx index 3dd388d5d93..8fea64af74e 100644 --- a/components/dashboard/sections/accounts/InternalTransferModal.tsx +++ b/components/dashboard/sections/accounts/InternalTransferModal.tsx @@ -8,7 +8,7 @@ import { getAccountReferenceInput } from '../../../../lib/collective'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { DashboardAccountsQueryFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; -import { Currency } from '../../../../lib/graphql/types/v2/graphql'; +import { Currency } from '../../../../lib/graphql/types/v2/schema'; import CollectivePicker from '../../../CollectivePicker'; import FormattedMoneyAmount from '../../../FormattedMoneyAmount'; diff --git a/components/dashboard/sections/accounts/index.tsx b/components/dashboard/sections/accounts/index.tsx index 1d7bcd62e73..93580a64d7a 100644 --- a/components/dashboard/sections/accounts/index.tsx +++ b/components/dashboard/sections/accounts/index.tsx @@ -11,10 +11,10 @@ import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib import { integer } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { - Collective, DashboardAccountsQueryFieldsFragment, HostedCollectivesQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Collective } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import { Drawer } from '../../../Drawer'; @@ -57,9 +57,7 @@ const filters: FilterComponentConfigs> = { const Accounts = ({ accountSlug, subpath }: DashboardSectionProps) => { const intl = useIntl(); const router = useRouter(); - const [showCollectiveOverview, setShowCollectiveOverview] = React.useState( - subpath[0], - ); + const [showCollectiveOverview, setShowCollectiveOverview] = React.useState(subpath[0]); const [showInternalTransferModal, setShowInternalTransferModal] = React.useState(false); const { data: metadata, refetch: refetchMetadata } = useQuery(accountsMetadataQuery, { variables: { accountSlug }, diff --git a/components/dashboard/sections/collectives/AddFundsModal.tsx b/components/dashboard/sections/collectives/AddFundsModal.tsx index 71171efc1ff..926b8ce9c2c 100644 --- a/components/dashboard/sections/collectives/AddFundsModal.tsx +++ b/components/dashboard/sections/collectives/AddFundsModal.tsx @@ -20,7 +20,7 @@ import type { Order, Tier, TransactionReferenceInput, -} from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { i18nTaxType } from '../../../../lib/i18n/taxes'; diff --git a/components/dashboard/sections/collectives/AllCollectives.tsx b/components/dashboard/sections/collectives/AllCollectives.tsx index a07af575317..6071a480606 100644 --- a/components/dashboard/sections/collectives/AllCollectives.tsx +++ b/components/dashboard/sections/collectives/AllCollectives.tsx @@ -9,8 +9,9 @@ import { CollectiveType } from '../../../../lib/constants/collectives'; import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib/filters/filter-types'; import { integer, isMulti } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Collective, HostedCollectivesQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { HostFeeStructure } from '../../../../lib/graphql/types/v2/graphql'; +import type { HostedCollectivesQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Collective } from '../../../../lib/graphql/types/v2/schema'; +import { HostFeeStructure } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; @@ -94,9 +95,7 @@ const filters: FilterComponentConfigs> = { const AllCollectives = ({ subpath }: Omit) => { const intl = useIntl(); const router = useRouter(); - const [showCollectiveOverview, setShowCollectiveOverview] = React.useState( - subpath[0], - ); + const [showCollectiveOverview, setShowCollectiveOverview] = React.useState(subpath[0]); const query = useMemo(() => omit(router.query, ['slug', 'section', 'subpath']), [router.query]); const pushSubpath = subpath => { diff --git a/components/dashboard/sections/collectives/CollectiveDetails.tsx b/components/dashboard/sections/collectives/CollectiveDetails.tsx index d78c7449ce6..81ff32acd4a 100644 --- a/components/dashboard/sections/collectives/CollectiveDetails.tsx +++ b/components/dashboard/sections/collectives/CollectiveDetails.tsx @@ -12,11 +12,8 @@ import { CollectiveType } from '../../../../lib/constants/collectives'; import EXPENSE_TYPE from '../../../../lib/constants/expenseTypes'; import { HOST_FEE_STRUCTURE } from '../../../../lib/constants/host-fee-structure'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { - AccountWithHost, - HostedCollectiveFieldsFragment, - HostedCollectivesQuery, -} from '../../../../lib/graphql/types/v2/graphql'; +import type { HostedCollectiveFieldsFragment, HostedCollectivesQuery } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountWithHost } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { formatHostFeeStructure } from '../../../../lib/i18n/host-fee-structure'; diff --git a/components/dashboard/sections/collectives/FreezeAccountModal.tsx b/components/dashboard/sections/collectives/FreezeAccountModal.tsx index c4bc4e98419..e3b673e7557 100644 --- a/components/dashboard/sections/collectives/FreezeAccountModal.tsx +++ b/components/dashboard/sections/collectives/FreezeAccountModal.tsx @@ -7,7 +7,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { getAccountReferenceInput } from '../../../../lib/collective'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../../../lib/graphql/helpers'; -import type { Account } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../../lib/graphql/types/v2/schema'; import { collectivePageQuery } from '../../../collective-page/graphql/queries'; import MessageBoxGraphqlError from '../../../MessageBoxGraphqlError'; diff --git a/components/dashboard/sections/collectives/HostApplicationDrawer.tsx b/components/dashboard/sections/collectives/HostApplicationDrawer.tsx index 69f2904367e..d4ecffdd1d1 100644 --- a/components/dashboard/sections/collectives/HostApplicationDrawer.tsx +++ b/components/dashboard/sections/collectives/HostApplicationDrawer.tsx @@ -11,7 +11,7 @@ import type { HostApplicationThreadQuery, HostApplicationThreadQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; -import { HostApplicationStatus, ProcessHostApplicationAction } from '../../../../lib/graphql/types/v2/graphql'; +import { HostApplicationStatus, ProcessHostApplicationAction } from '../../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; import { i18nCustomApplicationFormLabel } from '../../../../lib/i18n/custom-application-form'; diff --git a/components/dashboard/sections/collectives/HostApplications.tsx b/components/dashboard/sections/collectives/HostApplications.tsx index c23eacd837d..b46b47bb652 100644 --- a/components/dashboard/sections/collectives/HostApplications.tsx +++ b/components/dashboard/sections/collectives/HostApplications.tsx @@ -9,7 +9,7 @@ import type { FilterComponentConfigs, FiltersToVariables, Views } from '../../.. import { isMulti, limit, offset } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { HostApplicationsQuery, HostApplicationsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { HostApplicationStatus, LastCommentBy } from '../../../../lib/graphql/types/v2/graphql'; +import { HostApplicationStatus, LastCommentBy } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import i18nHostApplicationStatus from '../../../../lib/i18n/host-application-status'; import { LastCommentByFilterLabels } from '../../../../lib/i18n/last-comment-by-filter'; diff --git a/components/dashboard/sections/collectives/HostApplicationsTable.tsx b/components/dashboard/sections/collectives/HostApplicationsTable.tsx index 2ce77df43cc..6653e2e3935 100644 --- a/components/dashboard/sections/collectives/HostApplicationsTable.tsx +++ b/components/dashboard/sections/collectives/HostApplicationsTable.tsx @@ -2,11 +2,8 @@ import React from 'react'; import type { ColumnDef, TableMeta } from '@tanstack/react-table'; import { FormattedMessage } from 'react-intl'; -import type { - HostApplication, - HostApplicationFieldsFragment, - HostApplicationStatus, -} from '../../../../lib/graphql/types/v2/graphql'; +import type { HostApplicationFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; +import type { HostApplication, HostApplicationStatus } from '../../../../lib/graphql/types/v2/schema'; import { AccountHoverCard } from '../../../AccountHoverCard'; import Avatar from '../../../Avatar'; diff --git a/components/dashboard/sections/collectives/HostedCollectives.tsx b/components/dashboard/sections/collectives/HostedCollectives.tsx index 23ab8278379..b4f6c558881 100644 --- a/components/dashboard/sections/collectives/HostedCollectives.tsx +++ b/components/dashboard/sections/collectives/HostedCollectives.tsx @@ -9,8 +9,9 @@ import { CollectiveType, HostedCollectiveTypes } from '../../../../lib/constants import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib/filters/filter-types'; import { integer, isMulti } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Collective, HostedCollectivesQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { HostFeeStructure } from '../../../../lib/graphql/types/v2/graphql'; +import type { HostedCollectivesQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Collective } from '../../../../lib/graphql/types/v2/schema'; +import { HostFeeStructure } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { formatHostFeeStructure } from '../../../../lib/i18n/host-fee-structure'; @@ -116,9 +117,7 @@ const HostedCollectives = ({ accountSlug: hostSlug, subpath }: DashboardSectionP const intl = useIntl(); const router = useRouter(); const [displayExportCSVModal, setDisplayExportCSVModal] = React.useState(false); - const [showCollectiveOverview, setShowCollectiveOverview] = React.useState( - subpath[0], - ); + const [showCollectiveOverview, setShowCollectiveOverview] = React.useState(subpath[0]); const { data: metadata, refetch: refetchMetadata } = useQuery(hostedCollectivesMetadataQuery, { variables: { hostSlug }, fetchPolicy: typeof window !== 'undefined' ? 'cache-and-network' : 'cache-first', diff --git a/components/dashboard/sections/collectives/common.tsx b/components/dashboard/sections/collectives/common.tsx index a80c3f03151..15e1f6d69e3 100644 --- a/components/dashboard/sections/collectives/common.tsx +++ b/components/dashboard/sections/collectives/common.tsx @@ -20,7 +20,8 @@ import type { IntlShape } from 'react-intl'; import { FormattedDate, FormattedMessage } from 'react-intl'; import { HOST_FEE_STRUCTURE } from '../../../../lib/constants/host-fee-structure'; -import type { AccountWithHost, HostedCollectiveFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; +import type { HostedCollectiveFieldsFragment } from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountWithHost } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { getDashboardRoute } from '../../../../lib/url-helpers'; diff --git a/components/dashboard/sections/contributions/Contributions.tsx b/components/dashboard/sections/contributions/Contributions.tsx index 9e9fc35ae61..6df43cc4b13 100644 --- a/components/dashboard/sections/contributions/Contributions.tsx +++ b/components/dashboard/sections/contributions/Contributions.tsx @@ -17,7 +17,7 @@ import { ExpectedFundsFilter, OrderStatus, PaymentMethodType, -} from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import i18nOrderStatus from '../../../../lib/i18n/order-status'; diff --git a/components/dashboard/sections/contributions/PausedIncomingContributionsMessage.tsx b/components/dashboard/sections/contributions/PausedIncomingContributionsMessage.tsx index 9f068447f1e..0322c7a87a0 100644 --- a/components/dashboard/sections/contributions/PausedIncomingContributionsMessage.tsx +++ b/components/dashboard/sections/contributions/PausedIncomingContributionsMessage.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Account, AccountWithContributions, AccountWithParent } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, AccountWithContributions, AccountWithParent } from '../../../../lib/graphql/types/v2/schema'; import { getDashboardRoute } from '../../../../lib/url-helpers'; import { getI18nLink } from '../../../I18nFormatters'; diff --git a/components/dashboard/sections/contributions/filters.tsx b/components/dashboard/sections/contributions/filters.tsx index bce17a283f3..464c27e23c8 100644 --- a/components/dashboard/sections/contributions/filters.tsx +++ b/components/dashboard/sections/contributions/filters.tsx @@ -4,8 +4,9 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib/filters/filter-types'; import { integer, isMulti } from '../../../../lib/filters/schemas'; -import type { Currency, DashboardRecurringContributionsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { ContributionFrequency, OrderStatus } from '../../../../lib/graphql/types/v2/graphql'; +import type { DashboardRecurringContributionsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../../lib/graphql/types/v2/schema'; +import { ContributionFrequency, OrderStatus } from '../../../../lib/graphql/types/v2/schema'; import i18nOrderStatus from '../../../../lib/i18n/order-status'; import { sortSelectOptions } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/expenses/ExpensePipelineOverview.tsx b/components/dashboard/sections/expenses/ExpensePipelineOverview.tsx index 7960ab2e29c..7529cdc3eff 100644 --- a/components/dashboard/sections/expenses/ExpensePipelineOverview.tsx +++ b/components/dashboard/sections/expenses/ExpensePipelineOverview.tsx @@ -8,7 +8,7 @@ import { FormattedMessage } from 'react-intl'; import { connectAccount } from '../../../../lib/api'; import { createError, ERROR } from '../../../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../../../lib/graphql/helpers'; -import type { Amount, ExpenseCollection, Host } from '../../../../lib/graphql/types/v2/graphql'; +import type { Amount, ExpenseCollection, Host } from '../../../../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../../../../lib/hooks/useAsyncCall'; import { getDashboardUrl } from '../../../../lib/stripe/dashboard'; diff --git a/components/dashboard/sections/expenses/HostCreateExpenseModal.tsx b/components/dashboard/sections/expenses/HostCreateExpenseModal.tsx index 52438c54641..2191a75b8dd 100644 --- a/components/dashboard/sections/expenses/HostCreateExpenseModal.tsx +++ b/components/dashboard/sections/expenses/HostCreateExpenseModal.tsx @@ -14,8 +14,8 @@ import type { TransactionsImport, TransactionsImportRow, TransactionsImportStats, -} from '../../../../lib/graphql/types/v2/graphql'; -import { Currency, ExpenseType } from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; +import { Currency, ExpenseType } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { isValidUrl } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/expenses/HostDashboardExpenses.tsx b/components/dashboard/sections/expenses/HostDashboardExpenses.tsx index 9601626d9d2..2a846844d07 100644 --- a/components/dashboard/sections/expenses/HostDashboardExpenses.tsx +++ b/components/dashboard/sections/expenses/HostDashboardExpenses.tsx @@ -11,7 +11,7 @@ import type { AccountHoverCardFieldsFragment, HostDashboardExpensesQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; -import { ExpenseStatusFilter, LastCommentBy, PayoutMethodType } from '../../../../lib/graphql/types/v2/graphql'; +import { ExpenseStatusFilter, LastCommentBy, PayoutMethodType } from '../../../../lib/graphql/types/v2/schema'; import { A, ARROW_DOWN_KEY, diff --git a/components/dashboard/sections/expenses/PayExpensesScheduledForPaymentButton.tsx b/components/dashboard/sections/expenses/PayExpensesScheduledForPaymentButton.tsx index 3214756a25b..bc2ffc401bb 100644 --- a/components/dashboard/sections/expenses/PayExpensesScheduledForPaymentButton.tsx +++ b/components/dashboard/sections/expenses/PayExpensesScheduledForPaymentButton.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { addAuthTokenToHeader } from '../../../../lib/api'; import { API_V2_CONTEXT, gql } from '../../../../lib/graphql/helpers'; -import type { Host } from '../../../../lib/graphql/types/v2/graphql'; +import type { Host } from '../../../../lib/graphql/types/v2/schema'; import { getWebsiteUrl } from '../../../../lib/utils'; import ConfirmationModal from '../../../ConfirmationModal'; diff --git a/components/dashboard/sections/expenses/ReceivedExpenses.tsx b/components/dashboard/sections/expenses/ReceivedExpenses.tsx index 87dfcdf3846..0b725700cd0 100644 --- a/components/dashboard/sections/expenses/ReceivedExpenses.tsx +++ b/components/dashboard/sections/expenses/ReceivedExpenses.tsx @@ -7,12 +7,8 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib/filters/filter-types'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import { - type Account, - type ExpensesPageQueryVariables, - ExpenseStatusFilter, - PayoutMethodType, -} from '../../../../lib/graphql/types/v2/graphql'; +import { type ExpensesPageQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import { type Account, ExpenseStatusFilter, PayoutMethodType } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import ExpensesList from '../../../expenses/ExpensesList'; diff --git a/components/dashboard/sections/expenses/filters.tsx b/components/dashboard/sections/expenses/filters.tsx index 80d93ab3166..04ffb1e7e54 100644 --- a/components/dashboard/sections/expenses/filters.tsx +++ b/components/dashboard/sections/expenses/filters.tsx @@ -7,15 +7,15 @@ import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib import { boolean, isMulti, limit, offset } from '../../../../lib/filters/schemas'; import type { AccountExpensesQueryVariables, - Currency, HostDashboardExpensesQueryVariables, } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../../lib/graphql/types/v2/schema'; import { ExpenseStatusFilter, ExpenseType, LastCommentBy, PayoutMethodType, -} from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; import { i18nExpenseStatus, i18nExpenseType } from '../../../../lib/i18n/expense'; import { LastCommentByFilterLabels } from '../../../../lib/i18n/last-comment-by-filter'; import i18nPayoutMethodType from '../../../../lib/i18n/payout-method-type'; diff --git a/components/dashboard/sections/expenses/reports/HostExpensesReportView.tsx b/components/dashboard/sections/expenses/reports/HostExpensesReportView.tsx index b97f3229234..fc45e4018d9 100644 --- a/components/dashboard/sections/expenses/reports/HostExpensesReportView.tsx +++ b/components/dashboard/sections/expenses/reports/HostExpensesReportView.tsx @@ -8,10 +8,10 @@ import { z } from 'zod'; import { boolean } from '../../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../../lib/graphql/helpers'; import { - ExpenseStatus, type HostExpensesReportQuery, type HostExpensesReportQueryVariables, } from '../../../../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../../lib/hooks/useQueryFilter'; import FormattedMoneyAmount from '../../../../FormattedMoneyAmount'; diff --git a/components/dashboard/sections/legal-documents/HostDashboardTaxForms.tsx b/components/dashboard/sections/legal-documents/HostDashboardTaxForms.tsx index 29452ef4fa2..88d8cd2d6a2 100644 --- a/components/dashboard/sections/legal-documents/HostDashboardTaxForms.tsx +++ b/components/dashboard/sections/legal-documents/HostDashboardTaxForms.tsx @@ -7,7 +7,7 @@ import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib import { integer, isMulti } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT, gql } from '../../../../lib/graphql/helpers'; import type { HostTaxFormsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { LegalDocumentRequestStatus } from '../../../../lib/graphql/types/v2/graphql'; +import { LegalDocumentRequestStatus } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import { i18nLegalDocumentStatus } from '../../../../lib/i18n/legal-document'; import { sortSelectOptions } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/legal-documents/InvalidateTaxFormModal.tsx b/components/dashboard/sections/legal-documents/InvalidateTaxFormModal.tsx index 62269e0f807..cdaf020c47b 100644 --- a/components/dashboard/sections/legal-documents/InvalidateTaxFormModal.tsx +++ b/components/dashboard/sections/legal-documents/InvalidateTaxFormModal.tsx @@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/schema'; import LinkCollective from '../../../LinkCollective'; import type { BaseModalProps } from '../../../ModalContext'; diff --git a/components/dashboard/sections/legal-documents/LegalDocumentDrawer.tsx b/components/dashboard/sections/legal-documents/LegalDocumentDrawer.tsx index d115e09a343..650c4dbeba5 100644 --- a/components/dashboard/sections/legal-documents/LegalDocumentDrawer.tsx +++ b/components/dashboard/sections/legal-documents/LegalDocumentDrawer.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import type { GetActions } from '../../../../lib/actions/types'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Account, LegalDocument } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, LegalDocument } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { getCollectivePageRoute, getDashboardRoute } from '../../../../lib/url-helpers'; diff --git a/components/dashboard/sections/legal-documents/LegalDocumentServiceBadge.tsx b/components/dashboard/sections/legal-documents/LegalDocumentServiceBadge.tsx index 809e52f0c8b..e6b9a514543 100644 --- a/components/dashboard/sections/legal-documents/LegalDocumentServiceBadge.tsx +++ b/components/dashboard/sections/legal-documents/LegalDocumentServiceBadge.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { startCase } from 'lodash'; -import type { LegalDocumentService } from '../../../../lib/graphql/types/v2/graphql'; +import type { LegalDocumentService } from '../../../../lib/graphql/types/v2/schema'; import { WebsiteName } from '../../../I18nFormatters'; import { Badge } from '../../../ui/Badge'; diff --git a/components/dashboard/sections/legal-documents/LegalDocumentStatusBadge.tsx b/components/dashboard/sections/legal-documents/LegalDocumentStatusBadge.tsx index c6d86c871fd..d590b08fa4c 100644 --- a/components/dashboard/sections/legal-documents/LegalDocumentStatusBadge.tsx +++ b/components/dashboard/sections/legal-documents/LegalDocumentStatusBadge.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { useIntl } from 'react-intl'; -import { LegalDocumentRequestStatus } from '../../../../lib/graphql/types/v2/graphql'; +import { LegalDocumentRequestStatus } from '../../../../lib/graphql/types/v2/schema'; import { i18nLegalDocumentStatus } from '../../../../lib/i18n/legal-document'; import { Badge } from '../../../ui/Badge'; diff --git a/components/dashboard/sections/legal-documents/LegalDocumentsTable.tsx b/components/dashboard/sections/legal-documents/LegalDocumentsTable.tsx index a59d69024ac..9646bf6c89a 100644 --- a/components/dashboard/sections/legal-documents/LegalDocumentsTable.tsx +++ b/components/dashboard/sections/legal-documents/LegalDocumentsTable.tsx @@ -4,7 +4,7 @@ import type { IntlShape } from 'react-intl'; import { FormattedMessage, useIntl } from 'react-intl'; import type { GetActions } from '../../../../lib/actions/types'; -import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../../lib/i18n/collective-type'; import { AccountHoverCard } from '../../../AccountHoverCard'; diff --git a/components/dashboard/sections/legal-documents/UploadTaxFormModal.tsx b/components/dashboard/sections/legal-documents/UploadTaxFormModal.tsx index 79121829131..8ece5ddb832 100644 --- a/components/dashboard/sections/legal-documents/UploadTaxFormModal.tsx +++ b/components/dashboard/sections/legal-documents/UploadTaxFormModal.tsx @@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Host, LegalDocument } from '../../../../lib/graphql/types/v2/schema'; import { getMessageForRejectedDropzoneFiles } from '../../../../lib/hooks/useImageUploader'; import type { BaseModalProps } from '../../../ModalContext'; diff --git a/components/dashboard/sections/legal-documents/actions.tsx b/components/dashboard/sections/legal-documents/actions.tsx index a1a8860908c..55766c6a97a 100644 --- a/components/dashboard/sections/legal-documents/actions.tsx +++ b/components/dashboard/sections/legal-documents/actions.tsx @@ -4,7 +4,7 @@ import { useIntl } from 'react-intl'; import type { GetActions } from '../../../../lib/actions/types'; import { downloadLegalDocument } from '../../../../lib/api'; import { formatErrorMessage } from '../../../../lib/errors'; -import type { Host, LegalDocument } from '../../../../lib/graphql/types/v2/graphql'; +import type { Host, LegalDocument } from '../../../../lib/graphql/types/v2/schema'; import { useTwoFactorAuthenticationPrompt } from '../../../../lib/two-factor-authentication/TwoFactorAuthenticationContext'; import { Sentry } from '../../../../server/sentry'; diff --git a/components/dashboard/sections/overview/AccountTable.tsx b/components/dashboard/sections/overview/AccountTable.tsx index 37b329ffee2..e239dbcd7ca 100644 --- a/components/dashboard/sections/overview/AccountTable.tsx +++ b/components/dashboard/sections/overview/AccountTable.tsx @@ -7,11 +7,8 @@ import { ArrowDown10, ArrowDownZA, ArrowUp10, ArrowUpZA } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { - AccountMetricsFragment, - Currency, - OverviewMetricsQueryVariables, -} from '../../../../lib/graphql/types/v2/graphql'; +import type { AccountMetricsFragment, OverviewMetricsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../../lib/graphql/types/v2/schema'; import type { useQueryFilterReturnType } from '../../../../lib/hooks/useQueryFilter'; import { getCollectivePageRoute } from '../../../../lib/url-helpers'; diff --git a/components/dashboard/sections/overview/ComparisonChart.tsx b/components/dashboard/sections/overview/ComparisonChart.tsx index 265a1b1fe8e..9a4c3e2fdca 100644 --- a/components/dashboard/sections/overview/ComparisonChart.tsx +++ b/components/dashboard/sections/overview/ComparisonChart.tsx @@ -8,7 +8,7 @@ import { useIntl } from 'react-intl'; import { formatAmountForLegend } from '../../../../lib/charts'; import { getDayjsIsoUnit } from '../../../../lib/date-utils'; import dayjs from '../../../../lib/dayjs'; -import type { Currency, TimeSeriesAmount } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency, TimeSeriesAmount } from '../../../../lib/graphql/types/v2/schema'; import MessageBox from '../../../MessageBox'; import { formatPeriod } from '../../filters/PeriodCompareFilter'; diff --git a/components/dashboard/sections/overview/Metric.tsx b/components/dashboard/sections/overview/Metric.tsx index 27b6e348252..4f2f973a7d0 100644 --- a/components/dashboard/sections/overview/Metric.tsx +++ b/components/dashboard/sections/overview/Metric.tsx @@ -4,7 +4,7 @@ import { isNil } from 'lodash'; import { ArrowDownRight, ArrowUpRight } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; -import type { Amount, Currency, TimeSeriesAmount } from '../../../../lib/graphql/types/v2/graphql'; +import type { Amount, Currency, TimeSeriesAmount } from '../../../../lib/graphql/types/v2/schema'; import FormattedMoneyAmount from '../../../FormattedMoneyAmount'; import { InfoTooltipIcon } from '../../../InfoTooltipIcon'; diff --git a/components/dashboard/sections/reports/preview/LegacyColumnRows.tsx b/components/dashboard/sections/reports/preview/LegacyColumnRows.tsx index dcf03a917b0..6f2233a6663 100644 --- a/components/dashboard/sections/reports/preview/LegacyColumnRows.tsx +++ b/components/dashboard/sections/reports/preview/LegacyColumnRows.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { CornerDownRight } from 'lucide-react'; import { defineMessage, useIntl } from 'react-intl'; -import { TransactionKind } from '../../../../../lib/graphql/types/v2/graphql'; +import { TransactionKind } from '../../../../../lib/graphql/types/v2/schema'; import FormattedMoneyAmount from '../../../../FormattedMoneyAmount'; import { InfoTooltipIcon } from '../../../../InfoTooltipIcon'; diff --git a/components/dashboard/sections/reports/preview/ReportPeriodSelector.tsx b/components/dashboard/sections/reports/preview/ReportPeriodSelector.tsx index b86b76406a6..c0b85b1d2c0 100644 --- a/components/dashboard/sections/reports/preview/ReportPeriodSelector.tsx +++ b/components/dashboard/sections/reports/preview/ReportPeriodSelector.tsx @@ -7,8 +7,8 @@ import { z } from 'zod'; import { getDayjsIsoUnit } from '../../../../../lib/date-utils'; import dayjs from '../../../../../lib/dayjs'; import type { FilterComponentProps } from '../../../../../lib/filters/filter-types'; -import type { Host } from '../../../../../lib/graphql/types/v2/graphql'; -import { TimeUnit } from '../../../../../lib/graphql/types/v2/graphql'; +import type { Host } from '../../../../../lib/graphql/types/v2/schema'; +import { TimeUnit } from '../../../../../lib/graphql/types/v2/schema'; import { Button } from '../../../../ui/Button'; import { Label } from '../../../../ui/Label'; diff --git a/components/dashboard/sections/reports/preview/helpers.ts b/components/dashboard/sections/reports/preview/helpers.ts index 55746e6a890..8a3961b9bd0 100644 --- a/components/dashboard/sections/reports/preview/helpers.ts +++ b/components/dashboard/sections/reports/preview/helpers.ts @@ -2,7 +2,7 @@ import { isNil } from 'lodash'; import { getDayjsIsoUnit } from '../../../../../lib/date-utils'; import dayjs from '../../../../../lib/dayjs'; -import type { TimeUnit } from '../../../../../lib/graphql/types/v2/graphql'; +import type { TimeUnit } from '../../../../../lib/graphql/types/v2/schema'; import { DateFilterType } from '../../../filters/DateFilter/schema'; import type { FilterValues as HostTransactionsFilterValues } from '../../transactions/HostTransactions'; diff --git a/components/dashboard/sections/reports/preview/report-builder/build-report.ts b/components/dashboard/sections/reports/preview/report-builder/build-report.ts index 412d47a7030..61009db562d 100644 --- a/components/dashboard/sections/reports/preview/report-builder/build-report.ts +++ b/components/dashboard/sections/reports/preview/report-builder/build-report.ts @@ -1,6 +1,6 @@ import { pick } from 'lodash'; -import type { TransactionReport } from '../../../../../../lib/graphql/types/v2/graphql'; +import type { TransactionReport } from '../../../../../../lib/graphql/types/v2/schema'; import { ReportSection } from '../types'; diff --git a/components/dashboard/sections/reports/preview/report-builder/computational-groups.ts b/components/dashboard/sections/reports/preview/report-builder/computational-groups.ts index 8b42d26ed75..d4ae90d8634 100644 --- a/components/dashboard/sections/reports/preview/report-builder/computational-groups.ts +++ b/components/dashboard/sections/reports/preview/report-builder/computational-groups.ts @@ -1,4 +1,4 @@ -import { ExpenseType, TransactionKind, TransactionType } from '../../../../../../lib/graphql/types/v2/graphql'; +import { ExpenseType, TransactionKind, TransactionType } from '../../../../../../lib/graphql/types/v2/schema'; import type { Group, GroupFilter } from '../types'; import { ReportSection } from '../types'; diff --git a/components/dashboard/sections/reports/preview/report-builder/predefined-groups.ts b/components/dashboard/sections/reports/preview/report-builder/predefined-groups.ts index 67506951d6d..928fdbeeb3a 100644 --- a/components/dashboard/sections/reports/preview/report-builder/predefined-groups.ts +++ b/components/dashboard/sections/reports/preview/report-builder/predefined-groups.ts @@ -1,4 +1,4 @@ -import { ExpenseType, TransactionKind, TransactionType } from '../../../../../../lib/graphql/types/v2/graphql'; +import { ExpenseType, TransactionKind, TransactionType } from '../../../../../../lib/graphql/types/v2/schema'; import type { Group } from '../types'; import { ReportSection } from '../types'; diff --git a/components/dashboard/sections/reports/preview/types.ts b/components/dashboard/sections/reports/preview/types.ts index 7b29321cb00..53a44afd5c6 100644 --- a/components/dashboard/sections/reports/preview/types.ts +++ b/components/dashboard/sections/reports/preview/types.ts @@ -1,4 +1,4 @@ -import type { ExpenseType, TransactionKind, TransactionType } from '../../../../../lib/graphql/types/v2/graphql'; +import type { ExpenseType, TransactionKind, TransactionType } from '../../../../../lib/graphql/types/v2/schema'; export enum ReportSection { CONTRIBUTIONS = 'CONTRIBUTIONS', diff --git a/components/dashboard/sections/tax-information/W8BenEForm.tsx b/components/dashboard/sections/tax-information/W8BenEForm.tsx index a80a6a481dd..f30f21d4dd9 100644 --- a/components/dashboard/sections/tax-information/W8BenEForm.tsx +++ b/components/dashboard/sections/tax-information/W8BenEForm.tsx @@ -4,7 +4,7 @@ import { merge, pick } from 'lodash'; import { z } from 'zod'; import { splitName } from '../../../../lib/collective'; -import type { CountryIso } from '../../../../lib/graphql/types/v2/graphql'; +import type { CountryIso } from '../../../../lib/graphql/types/v2/schema'; import type LoggedInUser from '../../../../lib/LoggedInUser'; import { cn } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/tax-information/W8BenForm.tsx b/components/dashboard/sections/tax-information/W8BenForm.tsx index 489f2302041..d3692135309 100644 --- a/components/dashboard/sections/tax-information/W8BenForm.tsx +++ b/components/dashboard/sections/tax-information/W8BenForm.tsx @@ -6,7 +6,7 @@ import { z } from 'zod'; import { splitName } from '../../../../lib/collective'; import dayjs from '../../../../lib/dayjs'; -import type { CountryIso } from '../../../../lib/graphql/types/v2/graphql'; +import type { CountryIso } from '../../../../lib/graphql/types/v2/schema'; import { i18nCountryName } from '../../../../lib/i18n'; import type LoggedInUser from '../../../../lib/LoggedInUser'; import { cn } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/transactions-imports/AddFundsModalFromTransactionsImportRow.tsx b/components/dashboard/sections/transactions-imports/AddFundsModalFromTransactionsImportRow.tsx index 12a4dd98825..72d435bc6ff 100644 --- a/components/dashboard/sections/transactions-imports/AddFundsModalFromTransactionsImportRow.tsx +++ b/components/dashboard/sections/transactions-imports/AddFundsModalFromTransactionsImportRow.tsx @@ -6,7 +6,7 @@ import type { TransactionsImport, TransactionsImportRow, TransactionsImportStats, -} from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; import type { BaseModalProps } from '../../../ModalContext'; import AddFundsModal from '../collectives/AddFundsModal'; diff --git a/components/dashboard/sections/transactions-imports/MatchContributionDialog.tsx b/components/dashboard/sections/transactions-imports/MatchContributionDialog.tsx index 5970527026d..3ada5943945 100644 --- a/components/dashboard/sections/transactions-imports/MatchContributionDialog.tsx +++ b/components/dashboard/sections/transactions-imports/MatchContributionDialog.tsx @@ -12,8 +12,8 @@ import type { TransactionsImport, TransactionsImportRow, TransactionsImportStats, -} from '../../../../lib/graphql/types/v2/graphql'; -import { OrderStatus } from '../../../../lib/graphql/types/v2/graphql'; +} from '../../../../lib/graphql/types/v2/schema'; +import { OrderStatus } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import i18nOrderStatus from '../../../../lib/i18n/order-status'; import { i18nPendingOrderPaymentMethodTypes } from '../../../../lib/i18n/pending-order-payment-method-type'; diff --git a/components/dashboard/sections/transactions-imports/StepMapCSVColumns.tsx b/components/dashboard/sections/transactions-imports/StepMapCSVColumns.tsx index c6bb3c23564..011822da573 100644 --- a/components/dashboard/sections/transactions-imports/StepMapCSVColumns.tsx +++ b/components/dashboard/sections/transactions-imports/StepMapCSVColumns.tsx @@ -7,7 +7,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../../../lib/errors'; import { formatFileSize } from '../../../../lib/file-utils'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import { type Amount, Currency, type TransactionsImportRowCreateInput } from '../../../../lib/graphql/types/v2/graphql'; +import { type Amount, Currency, type TransactionsImportRowCreateInput } from '../../../../lib/graphql/types/v2/schema'; import { applyCSVConfig, getDefaultCSVConfig, guessCSVColumnsConfig, parseTransactionsCSVFile } from './lib/parse-csv'; import type { CSVConfig } from './lib/types'; import { ACCEPTED_DATE_FORMATS, ACCEPTED_NUMBER_FORMATS } from './lib/types'; diff --git a/components/dashboard/sections/transactions-imports/SuggestedContributionsTable.tsx b/components/dashboard/sections/transactions-imports/SuggestedContributionsTable.tsx index 05975264eee..f269c781c16 100644 --- a/components/dashboard/sections/transactions-imports/SuggestedContributionsTable.tsx +++ b/components/dashboard/sections/transactions-imports/SuggestedContributionsTable.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Banknote } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; -import type { Account, Amount, Order, OrderStatus } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account, Amount, Order, OrderStatus } from '../../../../lib/graphql/types/v2/schema'; import Avatar from '../../../Avatar'; import DateTime from '../../../DateTime'; diff --git a/components/dashboard/sections/transactions-imports/TransactionsImport.tsx b/components/dashboard/sections/transactions-imports/TransactionsImport.tsx index a244befcd86..f32d60448ab 100644 --- a/components/dashboard/sections/transactions-imports/TransactionsImport.tsx +++ b/components/dashboard/sections/transactions-imports/TransactionsImport.tsx @@ -26,11 +26,10 @@ import type { FilterConfig } from '../../../../lib/filters/filter-types'; import { integer } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import { - type Amount, type TransactionsImportQuery, type TransactionsImportQueryVariables, - TransactionsImportRowStatus, } from '../../../../lib/graphql/types/v2/graphql'; +import { type Amount, TransactionsImportRowStatus } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import { i18nTransactionsRowStatus } from '../../../../lib/i18n/transactions-import-row'; import { cn, sortSelectOptions } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/transactions-imports/TransactionsImportRowDetailsAccordion.tsx b/components/dashboard/sections/transactions-imports/TransactionsImportRowDetailsAccordion.tsx index 0ea6eb0a82a..580c6a45276 100644 --- a/components/dashboard/sections/transactions-imports/TransactionsImportRowDetailsAccordion.tsx +++ b/components/dashboard/sections/transactions-imports/TransactionsImportRowDetailsAccordion.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { isEmpty } from 'lodash'; import { FormattedMessage } from 'react-intl'; -import type { TransactionsImportRow } from '../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsImportRow } from '../../../../lib/graphql/types/v2/schema'; import DateTime from '../../../DateTime'; import FormattedMoneyAmount from '../../../FormattedMoneyAmount'; diff --git a/components/dashboard/sections/transactions-imports/TransactionsImportRowStatusBadge.tsx b/components/dashboard/sections/transactions-imports/TransactionsImportRowStatusBadge.tsx index 4927c09e95d..6f4b7b2ed3a 100644 --- a/components/dashboard/sections/transactions-imports/TransactionsImportRowStatusBadge.tsx +++ b/components/dashboard/sections/transactions-imports/TransactionsImportRowStatusBadge.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { useIntl } from 'react-intl'; -import type { TransactionsImportRow } from '../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsImportRow } from '../../../../lib/graphql/types/v2/schema'; import { i18nTransactionsRowStatus } from '../../../../lib/i18n/transactions-import-row'; import { Badge } from '../../../ui/Badge'; diff --git a/components/dashboard/sections/transactions-imports/TransactionsImportSettingsModal.tsx b/components/dashboard/sections/transactions-imports/TransactionsImportSettingsModal.tsx index 3ec8c934f85..6e5c12221ac 100644 --- a/components/dashboard/sections/transactions-imports/TransactionsImportSettingsModal.tsx +++ b/components/dashboard/sections/transactions-imports/TransactionsImportSettingsModal.tsx @@ -8,7 +8,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { TransactionsImport } from '../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsImport } from '../../../../lib/graphql/types/v2/schema'; import { AlertDialog, diff --git a/components/dashboard/sections/transactions-imports/TransactionsImportsTable.tsx b/components/dashboard/sections/transactions-imports/TransactionsImportsTable.tsx index b7c17f16e6b..cb9ed610fbb 100644 --- a/components/dashboard/sections/transactions-imports/TransactionsImportsTable.tsx +++ b/components/dashboard/sections/transactions-imports/TransactionsImportsTable.tsx @@ -7,7 +7,7 @@ import { z } from 'zod'; import { integer } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { TransactionsImport } from '../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsImport } from '../../../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; import { usePlaidConnectDialog } from '../../../../lib/hooks/usePlaidConnectDialog'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; diff --git a/components/dashboard/sections/transactions-imports/lib/actions.tsx b/components/dashboard/sections/transactions-imports/lib/actions.tsx index a5e52bb9913..a433c6a2aaa 100644 --- a/components/dashboard/sections/transactions-imports/lib/actions.tsx +++ b/components/dashboard/sections/transactions-imports/lib/actions.tsx @@ -7,7 +7,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import type { GetActions } from '../../../../../lib/actions/types'; import { i18nGraphqlException } from '../../../../../lib/errors'; import { API_V2_CONTEXT } from '../../../../../lib/graphql/helpers'; -import type { TransactionsImportRow } from '../../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsImportRow } from '../../../../../lib/graphql/types/v2/schema'; import { useModal } from '../../../../ModalContext'; import StyledSpinner from '../../../../StyledSpinner'; diff --git a/components/dashboard/sections/transactions-imports/lib/parse-csv.ts b/components/dashboard/sections/transactions-imports/lib/parse-csv.ts index c48f5ebd7e0..3f385e18424 100644 --- a/components/dashboard/sections/transactions-imports/lib/parse-csv.ts +++ b/components/dashboard/sections/transactions-imports/lib/parse-csv.ts @@ -3,7 +3,7 @@ import { deburr, uniq, words } from 'lodash'; import type { IntlShape } from 'react-intl'; import dayjs from '../../../../../lib/dayjs'; -import type { Currency, TransactionsImportRowCreateInput } from '../../../../../lib/graphql/types/v2/graphql'; +import type { Currency, TransactionsImportRowCreateInput } from '../../../../../lib/graphql/types/v2/schema'; import { toNegative } from '../../../../../lib/math'; import type { CSVConfig } from './types'; diff --git a/components/dashboard/sections/transactions-imports/lib/types.ts b/components/dashboard/sections/transactions-imports/lib/types.ts index 8c06345ebb6..f682244e10d 100644 --- a/components/dashboard/sections/transactions-imports/lib/types.ts +++ b/components/dashboard/sections/transactions-imports/lib/types.ts @@ -1,4 +1,4 @@ -import type { Currency } from '../../../../../lib/graphql/types/v2/graphql'; +import type { Currency } from '../../../../../lib/graphql/types/v2/schema'; export const ACCEPTED_DATE_FORMATS = [ undefined, // ISO 8601 diff --git a/components/dashboard/sections/transactions/TransactionsTable.tsx b/components/dashboard/sections/transactions/TransactionsTable.tsx index 24bec775cd8..32f17cb5ad2 100644 --- a/components/dashboard/sections/transactions/TransactionsTable.tsx +++ b/components/dashboard/sections/transactions/TransactionsTable.tsx @@ -6,7 +6,7 @@ import { AlertTriangle, ArrowLeft, ArrowRight, Undo } from 'lucide-react'; import { defineMessage, FormattedMessage } from 'react-intl'; import type { TransactionsTableQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { DateTimeField } from '../../../../lib/graphql/types/v2/graphql'; +import { DateTimeField } from '../../../../lib/graphql/types/v2/schema'; import { useDrawer } from '../../../../lib/hooks/useDrawer'; import useLocalStorage from '../../../../lib/hooks/useLocalStorage'; import useLoggedInUser from '../../../../lib/hooks/useLoggedInUser'; diff --git a/components/dashboard/sections/transactions/filters.tsx b/components/dashboard/sections/transactions/filters.tsx index 580441df3a9..311c28bdbff 100644 --- a/components/dashboard/sections/transactions/filters.tsx +++ b/components/dashboard/sections/transactions/filters.tsx @@ -5,12 +5,9 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib/filters/filter-types'; import { boolean, integer, isMulti, limit, offset } from '../../../../lib/filters/schemas'; -import type { - Currency, - PaymentMethodType, - TransactionsTableQueryVariables, -} from '../../../../lib/graphql/types/v2/graphql'; -import { ExpenseType, TransactionKind, TransactionType } from '../../../../lib/graphql/types/v2/graphql'; +import type { TransactionsTableQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Currency, PaymentMethodType } from '../../../../lib/graphql/types/v2/schema'; +import { ExpenseType, TransactionKind, TransactionType } from '../../../../lib/graphql/types/v2/schema'; import { i18nExpenseType } from '../../../../lib/i18n/expense'; import { i18nHasDebt } from '../../../../lib/i18n/has-debt'; import { i18nIsRefund } from '../../../../lib/i18n/is-refund'; diff --git a/components/dashboard/sections/updates/common.tsx b/components/dashboard/sections/updates/common.tsx index 6177a4e0e51..0a9723d38f0 100644 --- a/components/dashboard/sections/updates/common.tsx +++ b/components/dashboard/sections/updates/common.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Update } from '../../../../lib/graphql/types/v2/graphql'; -import { UpdateAudience } from '../../../../lib/graphql/types/v2/graphql'; +import type { Update } from '../../../../lib/graphql/types/v2/schema'; +import { UpdateAudience } from '../../../../lib/graphql/types/v2/schema'; import { elementFromClass } from '../../../../lib/react-utils'; import { formatDate } from '../../../../lib/utils'; diff --git a/components/dashboard/sections/updates/index.tsx b/components/dashboard/sections/updates/index.tsx index 429aa321f4e..0f52b630f90 100644 --- a/components/dashboard/sections/updates/index.tsx +++ b/components/dashboard/sections/updates/index.tsx @@ -7,7 +7,8 @@ import { z } from 'zod'; import type { FilterComponentConfigs, FiltersToVariables, Views } from '../../../../lib/filters/filter-types'; import { integer } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; -import type { Account, UpdatesDashboardQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { UpdatesDashboardQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import { getDashboardRoute } from '../../../../lib/url-helpers'; diff --git a/components/dashboard/sections/virtual-cards/VirtualCards.tsx b/components/dashboard/sections/virtual-cards/VirtualCards.tsx index b5f0d97a517..5982852b803 100644 --- a/components/dashboard/sections/virtual-cards/VirtualCards.tsx +++ b/components/dashboard/sections/virtual-cards/VirtualCards.tsx @@ -9,7 +9,7 @@ import type { FilterComponentConfigs, FiltersToVariables } from '../../../../lib import { integer, isMulti } from '../../../../lib/filters/schemas'; import { API_V2_CONTEXT } from '../../../../lib/graphql/helpers'; import type { AccountVirtualCardsQueryVariables } from '../../../../lib/graphql/types/v2/graphql'; -import { VirtualCardStatus } from '../../../../lib/graphql/types/v2/graphql'; +import { VirtualCardStatus } from '../../../../lib/graphql/types/v2/schema'; import useQueryFilter from '../../../../lib/hooks/useQueryFilter'; import { sortSelectOptions } from '../../../../lib/utils'; import { VirtualCardStatusI18n } from '../../../../lib/virtual-cards/constants'; diff --git a/components/edit-collective/EditConnectedAccount.js b/components/edit-collective/EditConnectedAccount.js index eeb92e214fe..44152460edc 100644 --- a/components/edit-collective/EditConnectedAccount.js +++ b/components/edit-collective/EditConnectedAccount.js @@ -7,7 +7,7 @@ import { withRouter } from 'next/router'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import { connectAccount, connectAccountCallback, disconnectAccount } from '../../lib/api'; -import { ConnectedAccountService } from '../../lib/graphql/types/v2/graphql'; +import { ConnectedAccountService } from '../../lib/graphql/types/v2/schema'; import { getFromLocalStorage, LOCAL_STORAGE_KEYS } from '../../lib/local-storage'; import { getWebsiteUrl, isValidUrl, parseToBoolean } from '../../lib/utils'; diff --git a/components/edit-collective/EditVirtualCardModal.tsx b/components/edit-collective/EditVirtualCardModal.tsx index f07b2c2f883..19334d22906 100644 --- a/components/edit-collective/EditVirtualCardModal.tsx +++ b/components/edit-collective/EditVirtualCardModal.tsx @@ -8,8 +8,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import roles from '../../lib/constants/roles'; import { graphqlAmountValueInCents } from '../../lib/currency-utils'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, VirtualCard, VirtualCardRequest } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/graphql'; +import type { Account, VirtualCard, VirtualCardRequest } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { VirtualCardLimitIntervalDescriptionsI18n, diff --git a/components/edit-collective/RequestVirtualCardModal.js b/components/edit-collective/RequestVirtualCardModal.js index 3f120f5b353..9b384cf35d0 100644 --- a/components/edit-collective/RequestVirtualCardModal.js +++ b/components/edit-collective/RequestVirtualCardModal.js @@ -6,7 +6,7 @@ import { useFormik } from 'formik'; import { FormattedMessage, useIntl } from 'react-intl'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/graphql'; +import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/schema'; import { VirtualCardLimitIntervalDescriptionsI18n, VirtualCardLimitIntervalI18n, diff --git a/components/edit-collective/SocialLinksFormField.tsx b/components/edit-collective/SocialLinksFormField.tsx index e60a4d8213b..d86fc9ee60c 100644 --- a/components/edit-collective/SocialLinksFormField.tsx +++ b/components/edit-collective/SocialLinksFormField.tsx @@ -8,8 +8,8 @@ import { DragIndicator } from '@styled-icons/material/DragIndicator'; import { sortBy } from 'lodash'; import { FormattedMessage } from 'react-intl'; -import type { SocialLink, SocialLinkInput } from '../../lib/graphql/types/v2/graphql'; -import { SocialLinkType } from '../../lib/graphql/types/v2/graphql'; +import type { SocialLink, SocialLinkInput } from '../../lib/graphql/types/v2/schema'; +import { SocialLinkType } from '../../lib/graphql/types/v2/schema'; import { SocialLinkLabel } from '../../lib/social-links'; import { isValidUrl } from '../../lib/utils'; diff --git a/components/edit-collective/VirtualCard.js b/components/edit-collective/VirtualCard.js index a39c5d5b72c..6c120282ff7 100644 --- a/components/edit-collective/VirtualCard.js +++ b/components/edit-collective/VirtualCard.js @@ -10,7 +10,7 @@ import { margin } from 'styled-system'; import { formatCurrency } from '../../lib/currency-utils'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/graphql'; +import { VirtualCardLimitInterval } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { getAvailableLimitString } from '../../lib/i18n/virtual-card-spending-limit'; import { getDashboardObjectIdURL } from '../../lib/stripe/dashboard'; diff --git a/components/edit-collective/sections/ManagePaymentMethods.tsx b/components/edit-collective/sections/ManagePaymentMethods.tsx index c34ea15b690..9bfaaf516e3 100644 --- a/components/edit-collective/sections/ManagePaymentMethods.tsx +++ b/components/edit-collective/sections/ManagePaymentMethods.tsx @@ -11,11 +11,11 @@ import { PAYMENT_METHOD_TYPE } from '../../../lib/constants/payment-methods'; import { i18nGraphqlException } from '../../../lib/errors'; import { API_V2_CONTEXT, gql, gqlV1 } from '../../../lib/graphql/helpers'; import type { - Account, ConfirmOrderMutation, ManagePaymentMethodsQuery, ManagePaymentMethodsQueryVariables, } from '../../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../../lib/graphql/types/v2/schema'; import { getPaymentMethodName } from '../../../lib/payment_method_label'; import { getPaymentMethodIcon, diff --git a/components/expenses/AddNewAttachedFilesButton.tsx b/components/expenses/AddNewAttachedFilesButton.tsx index e6f034b6ad2..9e1eb209995 100644 --- a/components/expenses/AddNewAttachedFilesButton.tsx +++ b/components/expenses/AddNewAttachedFilesButton.tsx @@ -3,7 +3,7 @@ import type { FileRejection } from 'react-dropzone'; import Dropzone from 'react-dropzone'; import { FormattedMessage, useIntl } from 'react-intl'; -import type { OcrParsingOptionsInput, UploadFileResult } from '../../lib/graphql/types/v2/graphql'; +import type { OcrParsingOptionsInput, UploadFileResult } from '../../lib/graphql/types/v2/schema'; import { useGraphQLFileUploader } from '../../lib/hooks/useGraphQLFileUploader'; import { getMessageForRejectedDropzoneFiles, useImageUploader } from '../../lib/hooks/useImageUploader'; import { attachmentDropzoneParams } from './lib/attachments'; diff --git a/components/expenses/AdminExpenseStatusTag.js b/components/expenses/AdminExpenseStatusTag.js index b6f7c172c42..78e5b33a2e6 100644 --- a/components/expenses/AdminExpenseStatusTag.js +++ b/components/expenses/AdminExpenseStatusTag.js @@ -6,7 +6,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { Manager, Popper, Reference } from 'react-popper'; import styled from 'styled-components'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import useGlobalBlur from '../../lib/hooks/useGlobalBlur'; import useKeyboardKey, { ESCAPE_KEY } from '../../lib/hooks/useKeyboardKey'; import { i18nExpenseStatus } from '../../lib/i18n/expense'; diff --git a/components/expenses/ApproveExpenseModal.tsx b/components/expenses/ApproveExpenseModal.tsx index e969b66d6ea..10f80f015fa 100644 --- a/components/expenses/ApproveExpenseModal.tsx +++ b/components/expenses/ApproveExpenseModal.tsx @@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { Account, Expense, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Expense, Host } from '../../lib/graphql/types/v2/schema'; import AccountingCategorySelect from '../AccountingCategorySelect'; import ConfirmationModal from '../ConfirmationModal'; diff --git a/components/expenses/ConfirmProcessExpenseModal.tsx b/components/expenses/ConfirmProcessExpenseModal.tsx index d1152de1a49..90de87dbc32 100644 --- a/components/expenses/ConfirmProcessExpenseModal.tsx +++ b/components/expenses/ConfirmProcessExpenseModal.tsx @@ -4,7 +4,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import useProcessExpense from '../../lib/expenses/useProcessExpense'; -import type { Expense } from '../../lib/graphql/types/v2/graphql'; +import type { Expense } from '../../lib/graphql/types/v2/schema'; import { Flex } from '../Grid'; import MessageBox from '../MessageBox'; diff --git a/components/expenses/DeclineExpenseInviteButton.tsx b/components/expenses/DeclineExpenseInviteButton.tsx index 98695978a98..ffcebd33fab 100644 --- a/components/expenses/DeclineExpenseInviteButton.tsx +++ b/components/expenses/DeclineExpenseInviteButton.tsx @@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl'; import z from 'zod'; import useProcessExpense from '../../lib/expenses/useProcessExpense'; -import type { Expense } from '../../lib/graphql/types/v2/graphql'; +import type { Expense } from '../../lib/graphql/types/v2/schema'; import { useFormikZod } from '../FormikZod'; import ConfirmationModal from '../NewConfirmationModal'; diff --git a/components/expenses/ExpenseAccountingCategoryPill.tsx b/components/expenses/ExpenseAccountingCategoryPill.tsx index 9c641dd4f49..4305f2c39db 100644 --- a/components/expenses/ExpenseAccountingCategoryPill.tsx +++ b/components/expenses/ExpenseAccountingCategoryPill.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { Account, AccountingCategory, Expense, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, AccountingCategory, Expense, Host } from '../../lib/graphql/types/v2/schema'; import { cn } from '../../lib/utils'; import AccountingCategorySelect from '../AccountingCategorySelect'; diff --git a/components/expenses/ExpenseAttachedFilesForm.tsx b/components/expenses/ExpenseAttachedFilesForm.tsx index bdd57312519..3d58c70be85 100644 --- a/components/expenses/ExpenseAttachedFilesForm.tsx +++ b/components/expenses/ExpenseAttachedFilesForm.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { uniqBy } from 'lodash'; import { FormattedMessage } from 'react-intl'; -import type { Account } from '../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../lib/graphql/types/v2/schema'; import { attachmentDropzoneParams } from './lib/attachments'; import { Flex } from '../Grid'; diff --git a/components/expenses/ExpenseFormPayeeSignUpStep.js b/components/expenses/ExpenseFormPayeeSignUpStep.js index 02de85e43d8..ab7e23ea622 100644 --- a/components/expenses/ExpenseFormPayeeSignUpStep.js +++ b/components/expenses/ExpenseFormPayeeSignUpStep.js @@ -13,7 +13,7 @@ import { EMPTY_ARRAY } from '../../lib/constants/utils'; import { ERROR, isErrorType } from '../../lib/errors'; import { formatFormErrorMessage } from '../../lib/form-utils'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import { ExpenseLockableFields } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseLockableFields } from '../../lib/graphql/types/v2/schema'; import { flattenObjectDeep } from '../../lib/utils'; import { Box, Flex, Grid } from '../Grid'; diff --git a/components/expenses/ExpenseStatusTag.js b/components/expenses/ExpenseStatusTag.js index d9a4d31a993..ddef2b49a47 100644 --- a/components/expenses/ExpenseStatusTag.js +++ b/components/expenses/ExpenseStatusTag.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, useIntl } from 'react-intl'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import { i18nExpenseStatus } from '../../lib/i18n/expense'; import { getDashboardRoute } from '../../lib/url-helpers'; diff --git a/components/expenses/ExpenseSummaryAdditionalInformation.js b/components/expenses/ExpenseSummaryAdditionalInformation.js index 017fd70820e..4a6de7f931f 100644 --- a/components/expenses/ExpenseSummaryAdditionalInformation.js +++ b/components/expenses/ExpenseSummaryAdditionalInformation.js @@ -8,7 +8,7 @@ import { formatAccountName } from '../../lib/collective'; import { CollectiveType } from '../../lib/constants/collectives'; import expenseTypes from '../../lib/constants/expenseTypes'; import { INVITE, PayoutMethodType, VIRTUAL_CARD } from '../../lib/constants/payout-method'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../lib/i18n/collective-type'; import { getDashboardRoute } from '../../lib/url-helpers'; diff --git a/components/expenses/ExpensesFilters.js b/components/expenses/ExpensesFilters.js index ff60a2a85b1..fed73433d2d 100644 --- a/components/expenses/ExpensesFilters.js +++ b/components/expenses/ExpensesFilters.js @@ -5,7 +5,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import styled from 'styled-components'; import { encodeDateInterval } from '../../lib/date-utils'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import AmountFilter from '../budget/filters/AmountFilter'; import PeriodFilter from '../filters/PeriodFilter'; diff --git a/components/expenses/MarkExpenseAsUnpaidButton.tsx b/components/expenses/MarkExpenseAsUnpaidButton.tsx index 46f3bc1ee67..fa8a34f82d2 100644 --- a/components/expenses/MarkExpenseAsUnpaidButton.tsx +++ b/components/expenses/MarkExpenseAsUnpaidButton.tsx @@ -3,8 +3,8 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import useProcessExpense from '../../lib/expenses/useProcessExpense'; -import type { Expense } from '../../lib/graphql/types/v2/graphql'; -import { ExpenseStatus, MarkAsUnPaidExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import type { Expense } from '../../lib/graphql/types/v2/schema'; +import { ExpenseStatus, MarkAsUnPaidExpenseStatus } from '../../lib/graphql/types/v2/schema'; import { i18nExpenseStatus } from '../../lib/i18n/expense'; import ConfirmationModal from '../ConfirmationModal'; diff --git a/components/expenses/PayExpenseModal.tsx b/components/expenses/PayExpenseModal.tsx index 57f9fda63a2..1f7645be715 100644 --- a/components/expenses/PayExpenseModal.tsx +++ b/components/expenses/PayExpenseModal.tsx @@ -15,7 +15,7 @@ import { PayoutMethodType } from '../../lib/constants/payout-method'; import { formatCurrency } from '../../lib/currency-utils'; import { createError, ERROR } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, Expense, Host } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Expense, Host } from '../../lib/graphql/types/v2/schema'; import { i18nPaymentMethodService } from '../../lib/i18n/payment-method-service'; import i18nPayoutMethodType from '../../lib/i18n/payout-method-type'; import { i18nTaxType } from '../../lib/i18n/taxes'; diff --git a/components/expenses/filters/ExpensesStatusFilter.js b/components/expenses/filters/ExpensesStatusFilter.js index a3e51f774e6..cc7b7d753c0 100644 --- a/components/expenses/filters/ExpensesStatusFilter.js +++ b/components/expenses/filters/ExpensesStatusFilter.js @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; -import { ExpenseStatus } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../../lib/graphql/types/v2/schema'; import { i18nExpenseStatus } from '../../../lib/i18n/expense'; import { sortSelectOptions } from '../../../lib/utils'; diff --git a/components/expenses/lib/accounting-categories.ts b/components/expenses/lib/accounting-categories.ts index eaf60a81128..fc86290933f 100644 --- a/components/expenses/lib/accounting-categories.ts +++ b/components/expenses/lib/accounting-categories.ts @@ -1,6 +1,6 @@ import { get } from 'lodash'; -import type { Account, Expense, Host, Policies } from '../../../lib/graphql/types/v2/graphql'; +import type { Account, Expense, Host, Policies } from '../../../lib/graphql/types/v2/schema'; import type LoggedInUser from '../../../lib/LoggedInUser'; import { getPolicy } from '../../../lib/policies'; diff --git a/components/expenses/lib/attachments.ts b/components/expenses/lib/attachments.ts index 74619558019..c1ef101b9d5 100644 --- a/components/expenses/lib/attachments.ts +++ b/components/expenses/lib/attachments.ts @@ -1,4 +1,4 @@ -import { ExpenseType } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../../lib/graphql/types/v2/schema'; import { DROPZONE_ACCEPT_ALL } from '../../StyledDropzone'; diff --git a/components/expenses/lib/items.ts b/components/expenses/lib/items.ts index b4fac8d75ff..5b0834b55b4 100644 --- a/components/expenses/lib/items.ts +++ b/components/expenses/lib/items.ts @@ -2,7 +2,7 @@ import type { FormikProps } from 'formik'; import { omit } from 'lodash'; import { v4 as uuid } from 'uuid'; -import { ExpenseType } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../../lib/graphql/types/v2/schema'; import type { ExpenseFormValues, ExpenseItemFormValues } from '../types/FormValues'; diff --git a/components/expenses/lib/ocr.ts b/components/expenses/lib/ocr.ts index 1b4a25da45c..007acd3c9f5 100644 --- a/components/expenses/lib/ocr.ts +++ b/components/expenses/lib/ocr.ts @@ -1,7 +1,7 @@ import type { FormikProps } from 'formik'; import { cloneDeep, get, isNil, set } from 'lodash'; -import type { Account, ExpenseType, UploadFileResult } from '../../../lib/graphql/types/v2/graphql'; +import type { Account, ExpenseType, UploadFileResult } from '../../../lib/graphql/types/v2/schema'; import type { ExpenseFormValues, ExpenseItemFormValues } from '../types/FormValues'; diff --git a/components/expenses/list/SubmittedExpenseListItem.tsx b/components/expenses/list/SubmittedExpenseListItem.tsx index d14118cf428..396987cfdf1 100644 --- a/components/expenses/list/SubmittedExpenseListItem.tsx +++ b/components/expenses/list/SubmittedExpenseListItem.tsx @@ -5,7 +5,7 @@ import { Check, Copy, Ellipsis, Link } from 'lucide-react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import type { ExpensePageExpenseFieldsFragment } from '../../../lib/graphql/types/v2/graphql'; -import { ExpenseStatus } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../../lib/graphql/types/v2/schema'; import useClipboard from '../../../lib/hooks/useClipboard'; import useLoggedInUser from '../../../lib/hooks/useLoggedInUser'; import { i18nExpenseType } from '../../../lib/i18n/expense'; diff --git a/components/expenses/types/FormValues.ts b/components/expenses/types/FormValues.ts index 44c65bc6a0a..c6b198afd44 100644 --- a/components/expenses/types/FormValues.ts +++ b/components/expenses/types/FormValues.ts @@ -4,7 +4,7 @@ import type { ExpenseType, PayoutMethodType, UploadFileResult, -} from '../../../lib/graphql/types/v2/graphql'; +} from '../../../lib/graphql/types/v2/schema'; export interface ExpenseItemFormValues { id?: string; diff --git a/components/legal-documents/DownloadLegalDocument.tsx b/components/legal-documents/DownloadLegalDocument.tsx index 99e96ed3435..cf086123660 100644 --- a/components/legal-documents/DownloadLegalDocument.tsx +++ b/components/legal-documents/DownloadLegalDocument.tsx @@ -3,7 +3,7 @@ import { useIntl } from 'react-intl'; import { downloadLegalDocument } from '../../lib/api'; import { formatErrorMessage } from '../../lib/errors'; -import type { Account, LegalDocument } from '../../lib/graphql/types/v2/graphql'; +import type { Account, LegalDocument } from '../../lib/graphql/types/v2/schema'; import { useTwoFactorAuthenticationPrompt } from '../../lib/two-factor-authentication/TwoFactorAuthenticationContext'; import { Sentry } from '../../server/sentry'; diff --git a/components/onboarding-modal/OnboardingModal.js b/components/onboarding-modal/OnboardingModal.js index dc3c3618e57..cca345601d4 100644 --- a/components/onboarding-modal/OnboardingModal.js +++ b/components/onboarding-modal/OnboardingModal.js @@ -10,7 +10,7 @@ import styled from 'styled-components'; import { confettiFireworks } from '../../lib/confettis'; import { getErrorFromGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import { SocialLinkType } from '../../lib/graphql/types/v2/graphql'; +import { SocialLinkType } from '../../lib/graphql/types/v2/schema'; import { editCollectiveContactMutation, editCollectiveMembersMutation } from '../../lib/graphql/v1/mutations'; import { compose, isValidUrl } from '../../lib/utils'; diff --git a/components/orders/OrderAccountingCategoryPill.tsx b/components/orders/OrderAccountingCategoryPill.tsx index 7e6b896a79f..80a9f81931e 100644 --- a/components/orders/OrderAccountingCategoryPill.tsx +++ b/components/orders/OrderAccountingCategoryPill.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; -import type { Account, AccountingCategory, Host, Order } from '../../lib/graphql/types/v2/graphql'; +import type { Account, AccountingCategory, Host, Order } from '../../lib/graphql/types/v2/schema'; import { cn } from '../../lib/utils'; import AccountingCategorySelect from '../AccountingCategorySelect'; diff --git a/components/orders/PaymentMethodPicker.tsx b/components/orders/PaymentMethodPicker.tsx index 17cf852a38f..ea841b426b6 100644 --- a/components/orders/PaymentMethodPicker.tsx +++ b/components/orders/PaymentMethodPicker.tsx @@ -12,15 +12,9 @@ import clsx from 'clsx'; import { FormattedMessage, useIntl } from 'react-intl'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { - Account, - Host, - Order, - PaymentMethod, - PaymentMethodPickerQuery, - PaymentMethodType, -} from '../../lib/graphql/types/v2/graphql'; -import { PaymentMethodLegacyType, PaymentMethodService } from '../../lib/graphql/types/v2/graphql'; +import type { PaymentMethodPickerQuery } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host, Order, PaymentMethod, PaymentMethodType } from '../../lib/graphql/types/v2/schema'; +import { PaymentMethodLegacyType, PaymentMethodService } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { getPaymentMethodName } from '../../lib/payment_method_label'; import { diff --git a/components/personal-token/lib.js b/components/personal-token/lib.js index daae841ff62..8a65ced14a0 100644 --- a/components/personal-token/lib.js +++ b/components/personal-token/lib.js @@ -1,5 +1,5 @@ import { verifyFieldLength } from '../../lib/form-utils'; -import { OAuthScope } from '../../lib/graphql/types/v2/graphql'; +import { OAuthScope } from '../../lib/graphql/types/v2/schema'; export const validatePersonalTokenValues = (intl, values) => { const errors = {}; diff --git a/components/root-actions/ClearCacheForAccountForm.tsx b/components/root-actions/ClearCacheForAccountForm.tsx index 6096a0f1f3d..9d5094b0d2f 100644 --- a/components/root-actions/ClearCacheForAccountForm.tsx +++ b/components/root-actions/ClearCacheForAccountForm.tsx @@ -6,7 +6,7 @@ import { useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; import type { ClearCacheMutation, ClearCacheMutationVariables } from '../../lib/graphql/types/v2/graphql'; -import { AccountCacheType } from '../../lib/graphql/types/v2/graphql'; +import { AccountCacheType } from '../../lib/graphql/types/v2/schema'; import CollectivePickerAsync from '../CollectivePickerAsync'; import DashboardHeader from '../dashboard/DashboardHeader'; diff --git a/components/search/ExpenseResult.tsx b/components/search/ExpenseResult.tsx index 38de0361fc5..ef6e6f7b5b9 100644 --- a/components/search/ExpenseResult.tsx +++ b/components/search/ExpenseResult.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { useIntl } from 'react-intl'; -import { ExpenseType } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../lib/graphql/types/v2/schema'; import { i18nExpenseType } from '../../lib/i18n/expense'; import Avatar from '../Avatar'; diff --git a/components/search/useRecentlyVisited.ts b/components/search/useRecentlyVisited.ts index 9209b9eadc4..4967bbe86a0 100644 --- a/components/search/useRecentlyVisited.ts +++ b/components/search/useRecentlyVisited.ts @@ -9,7 +9,7 @@ import { ExpenseType, TransactionKind, TransactionType, -} from '../../lib/graphql/types/v2/graphql'; +} from '../../lib/graphql/types/v2/schema'; import useLocalStorage from '../../lib/hooks/useLocalStorage'; import { LOCAL_STORAGE_KEYS } from '../../lib/local-storage'; diff --git a/components/submit-expense/PayoutMethodDetails.tsx b/components/submit-expense/PayoutMethodDetails.tsx index dfc29261b81..a4833ad961b 100644 --- a/components/submit-expense/PayoutMethodDetails.tsx +++ b/components/submit-expense/PayoutMethodDetails.tsx @@ -4,8 +4,8 @@ import { startCase, upperCase } from 'lodash'; import { ChevronDown } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; -import type { PayoutMethod } from '../../lib/graphql/types/v2/graphql'; -import { PayoutMethodType } from '../../lib/graphql/types/v2/graphql'; +import type { PayoutMethod } from '../../lib/graphql/types/v2/schema'; +import { PayoutMethodType } from '../../lib/graphql/types/v2/schema'; import PrivateInfoIcon from '../icons/PrivateInfoIcon'; import LoadingPlaceholder from '../LoadingPlaceholder'; diff --git a/components/submit-expense/SubmitExpenseFlow.tsx b/components/submit-expense/SubmitExpenseFlow.tsx index bd768239b07..09a99872d73 100644 --- a/components/submit-expense/SubmitExpenseFlow.tsx +++ b/components/submit-expense/SubmitExpenseFlow.tsx @@ -14,15 +14,14 @@ import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; import type { CreateExpenseFromDashboardMutation, CreateExpenseFromDashboardMutationVariables, - Currency, CurrencyExchangeRateInput, EditExpenseFromDashboardMutation, EditExpenseFromDashboardMutationVariables, InviteExpenseFromDashboardMutation, InviteExpenseFromDashboardMutationVariables, - RecurringExpenseInterval, } from '../../lib/graphql/types/v2/graphql'; -import { ExpenseStatus, ExpenseType, PayoutMethodType } from '../../lib/graphql/types/v2/graphql'; +import type { Currency, RecurringExpenseInterval } from '../../lib/graphql/types/v2/schema'; +import { ExpenseStatus, ExpenseType, PayoutMethodType } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { Survey, SURVEY_KEY } from '../Survey'; diff --git a/components/submit-expense/form/ExpenseAccountItem.tsx b/components/submit-expense/form/ExpenseAccountItem.tsx index c53ccfd78d1..cbfe2753394 100644 --- a/components/submit-expense/form/ExpenseAccountItem.tsx +++ b/components/submit-expense/form/ExpenseAccountItem.tsx @@ -3,7 +3,8 @@ import { gql, useQuery } from '@apollo/client'; import { FormattedMessage, useIntl } from 'react-intl'; import { API_V2_CONTEXT } from '../../../lib/graphql/helpers'; -import { type AccountItemQuery, AccountType } from '../../../lib/graphql/types/v2/graphql'; +import { type AccountItemQuery } from '../../../lib/graphql/types/v2/graphql'; +import { AccountType } from '../../../lib/graphql/types/v2/schema'; import formatCollectiveType from '../../../lib/i18n/collective-type'; import { cn } from '../../../lib/utils'; diff --git a/components/submit-expense/form/ExpenseItemsSection.tsx b/components/submit-expense/form/ExpenseItemsSection.tsx index 60d4ce59b55..d7cf86efc79 100644 --- a/components/submit-expense/form/ExpenseItemsSection.tsx +++ b/components/submit-expense/form/ExpenseItemsSection.tsx @@ -5,8 +5,8 @@ import { Lock, Trash2 } from 'lucide-react'; import type { IntlShape } from 'react-intl'; import { FormattedMessage, useIntl } from 'react-intl'; -import type { Currency, CurrencyExchangeRateInput } from '../../../lib/graphql/types/v2/graphql'; -import { CurrencyExchangeRateSourceType } from '../../../lib/graphql/types/v2/graphql'; +import type { Currency, CurrencyExchangeRateInput } from '../../../lib/graphql/types/v2/schema'; +import { CurrencyExchangeRateSourceType } from '../../../lib/graphql/types/v2/schema'; import { i18nTaxType } from '../../../lib/i18n/taxes'; import { attachmentDropzoneParams } from '../../expenses/lib/attachments'; import { diff --git a/components/submit-expense/form/PayoutMethodSection.tsx b/components/submit-expense/form/PayoutMethodSection.tsx index dda12aa609d..8f4bf0efaf4 100644 --- a/components/submit-expense/form/PayoutMethodSection.tsx +++ b/components/submit-expense/form/PayoutMethodSection.tsx @@ -11,7 +11,7 @@ import type { SavePayoutMethodMutation, SavePayoutMethodMutationVariables, } from '../../../lib/graphql/types/v2/graphql'; -import { PayoutMethodType } from '../../../lib/graphql/types/v2/graphql'; +import { PayoutMethodType } from '../../../lib/graphql/types/v2/schema'; import ConfirmationModal, { CONFIRMATION_MODAL_TERMINATE } from '../../ConfirmationModal'; import PayoutMethodForm, { validatePayoutMethod } from '../../expenses/PayoutMethodForm'; diff --git a/components/submit-expense/form/SummarySection.tsx b/components/submit-expense/form/SummarySection.tsx index 93b7e598ca1..6074cec976c 100644 --- a/components/submit-expense/form/SummarySection.tsx +++ b/components/submit-expense/form/SummarySection.tsx @@ -3,7 +3,7 @@ import { omit, round } from 'lodash'; import { AtSign, Building, Contact, Globe, Lock, Mail } from 'lucide-react'; import { FormattedDate, FormattedMessage, useIntl } from 'react-intl'; -import { ExpenseType } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../../lib/graphql/types/v2/schema'; import { RecurringExpenseIntervals } from '../../../lib/i18n/expense'; import { i18nTaxType } from '../../../lib/i18n/taxes'; import { getExpenseExchangeRateWarningOrError, getTaxAmount, isTaxRateValid } from '../../expenses/lib/utils'; diff --git a/components/submit-expense/form/TypeOfExpenseSection.tsx b/components/submit-expense/form/TypeOfExpenseSection.tsx index d7152a0c9ef..21c2c0fcf73 100644 --- a/components/submit-expense/form/TypeOfExpenseSection.tsx +++ b/components/submit-expense/form/TypeOfExpenseSection.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; -import { ExpenseType } from '../../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../../lib/graphql/types/v2/schema'; import { attachmentDropzoneParams } from '../../expenses/lib/attachments'; import StyledDropzone from '../../StyledDropzone'; diff --git a/components/submit-expense/form/WhoIsGettingPaidSection.tsx b/components/submit-expense/form/WhoIsGettingPaidSection.tsx index ccabcdf469e..87666f4fda6 100644 --- a/components/submit-expense/form/WhoIsGettingPaidSection.tsx +++ b/components/submit-expense/form/WhoIsGettingPaidSection.tsx @@ -7,7 +7,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { CollectiveType } from '../../../lib/constants/collectives'; import { i18nGraphqlException } from '../../../lib/errors'; import { gqlV1 } from '../../../lib/graphql/helpers'; -import { AccountType } from '../../../lib/graphql/types/v2/graphql'; +import { AccountType } from '../../../lib/graphql/types/v2/schema'; import CollectivePicker from '../../CollectivePicker'; import CollectivePickerAsync from '../../CollectivePickerAsync'; diff --git a/components/submit-expense/useExpenseForm.ts b/components/submit-expense/useExpenseForm.ts index ac54f3860bf..6bbd5cdd6fa 100644 --- a/components/submit-expense/useExpenseForm.ts +++ b/components/submit-expense/useExpenseForm.ts @@ -17,7 +17,6 @@ import { AccountTypesWithHost } from '../../lib/constants/collectives'; import { getPayoutProfiles } from '../../lib/expenses'; import { API_V2_CONTEXT } from '../../lib/graphql/helpers'; import type { - Amount, ExpenseFormExchangeRatesQuery, ExpenseFormExchangeRatesQueryVariables, ExpenseFormSchemaHostFieldsFragment, @@ -26,7 +25,8 @@ import type { ExpenseVendorFieldsFragment, LocationInput, } from '../../lib/graphql/types/v2/graphql'; -import { Currency, ExpenseStatus, ExpenseType, PayoutMethodType } from '../../lib/graphql/types/v2/graphql'; +import type { Amount } from '../../lib/graphql/types/v2/schema'; +import { Currency, ExpenseStatus, ExpenseType, PayoutMethodType } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import type LoggedInUser from '../../lib/LoggedInUser'; import { isValidEmail } from '../../lib/utils'; diff --git a/components/table/ColumnHeader.tsx b/components/table/ColumnHeader.tsx index 6718bc5a766..e11f2d99838 100644 --- a/components/table/ColumnHeader.tsx +++ b/components/table/ColumnHeader.tsx @@ -4,7 +4,7 @@ import clsx from 'clsx'; import { ArrowDown10, ArrowDownZA, ArrowUp10, ArrowUpDown, ArrowUpZA, CheckIcon, EyeOff, Filter } from 'lucide-react'; import { FormattedMessage, useIntl } from 'react-intl'; -import { OrderDirection } from '../../lib/graphql/types/v2/graphql'; +import { OrderDirection } from '../../lib/graphql/types/v2/schema'; import { SetFilter } from '../dashboard/filters/FilterDropdown'; import { Button } from '../ui/Button'; diff --git a/components/table/data-table.d.ts b/components/table/data-table.d.ts index f8093d9ab32..58727c4a5dc 100644 --- a/components/table/data-table.d.ts +++ b/components/table/data-table.d.ts @@ -5,7 +5,7 @@ import type { RefObject } from 'react'; import type { IntlShape, MessageDescriptor } from 'react-intl'; import type { GetActions } from '../../lib/actions/types'; -import type { Account } from '../../lib/graphql/types/v2/graphql'; +import type { Account } from '../../lib/graphql/types/v2/schema'; import type { useQueryFilterReturnType } from '../../lib/hooks/useQueryFilter'; declare module '@tanstack/react-table' { interface ColumnMeta { diff --git a/components/taxes/TaxesFormikFields.tsx b/components/taxes/TaxesFormikFields.tsx index b4af61fb67b..39b5d337986 100644 --- a/components/taxes/TaxesFormikFields.tsx +++ b/components/taxes/TaxesFormikFields.tsx @@ -8,7 +8,7 @@ import { useIntl } from 'react-intl'; import type { OCError } from '../../lib/errors'; import { createError, ERROR } from '../../lib/errors'; import { verifyValueInRange } from '../../lib/form-utils'; -import type { ExpenseTaxInput, TaxInput } from '../../lib/graphql/types/v2/graphql'; +import type { ExpenseTaxInput, TaxInput } from '../../lib/graphql/types/v2/schema'; import { i18nTaxType } from '../../lib/i18n/taxes'; import { Flex } from '../Grid'; diff --git a/components/transactions/TransactionDetails.js b/components/transactions/TransactionDetails.js index 550659d39fa..49b217d3df9 100644 --- a/components/transactions/TransactionDetails.js +++ b/components/transactions/TransactionDetails.js @@ -7,7 +7,7 @@ import styled, { css } from 'styled-components'; import { ORDER_STATUS } from '../../lib/constants/order-status'; import { TransactionKind, TransactionTypes } from '../../lib/constants/transactions'; -import { ExpenseType } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseType } from '../../lib/graphql/types/v2/schema'; import { useAsyncCall } from '../../lib/hooks/useAsyncCall'; import { renderDetailsString, saveInvoice } from '../../lib/transactions'; diff --git a/components/transactions/TransactionItem.js b/components/transactions/TransactionItem.js index 25614f75374..5733b091156 100644 --- a/components/transactions/TransactionItem.js +++ b/components/transactions/TransactionItem.js @@ -10,7 +10,7 @@ import styled from 'styled-components'; import { ORDER_STATUS } from '../../lib/constants/order-status'; import { TransactionKind, TransactionTypes } from '../../lib/constants/transactions'; import { formatCurrency } from '../../lib/currency-utils'; -import { ExpenseStatus } from '../../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../../lib/graphql/types/v2/schema'; import useLoggedInUser from '../../lib/hooks/useLoggedInUser'; import { i18nTransactionKind, i18nTransactionType } from '../../lib/i18n/transaction'; import { getCollectivePageRoute } from '../../lib/url-helpers'; diff --git a/components/two-factor-authentication/AuthenticatorSettings.tsx b/components/two-factor-authentication/AuthenticatorSettings.tsx index 280191c5fa3..e57861ae04a 100644 --- a/components/two-factor-authentication/AuthenticatorSettings.tsx +++ b/components/two-factor-authentication/AuthenticatorSettings.tsx @@ -9,8 +9,8 @@ import styled from 'styled-components'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; -import { TwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; +import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/schema'; +import { TwoFactorMethod } from '../../lib/graphql/types/v2/schema'; import { Box, Flex } from '../Grid'; import StyledButton from '../StyledButton'; diff --git a/components/two-factor-authentication/DevicesSettings.tsx b/components/two-factor-authentication/DevicesSettings.tsx index fe05ebb54ca..d4c39dbd2f5 100644 --- a/components/two-factor-authentication/DevicesSettings.tsx +++ b/components/two-factor-authentication/DevicesSettings.tsx @@ -5,8 +5,8 @@ import { PlusIcon } from 'lucide-react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; import { TwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; +import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/schema'; import { Box, Flex } from '../Grid'; import StyledButton from '../StyledButton'; diff --git a/components/two-factor-authentication/ResetTwoFactorButton.tsx b/components/two-factor-authentication/ResetTwoFactorButton.tsx index 7b4d9d73a02..2b066ef0658 100644 --- a/components/two-factor-authentication/ResetTwoFactorButton.tsx +++ b/components/two-factor-authentication/ResetTwoFactorButton.tsx @@ -4,7 +4,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Individual } from '../../lib/graphql/types/v2/graphql'; +import type { Individual } from '../../lib/graphql/types/v2/schema'; import { TwoFactorAuthenticationHeader } from '../../lib/two-factor-authentication'; import { useTwoFactorAuthenticationPrompt } from '../../lib/two-factor-authentication/TwoFactorAuthenticationContext'; diff --git a/components/two-factor-authentication/TwoFactorAuthenticationSettings.tsx b/components/two-factor-authentication/TwoFactorAuthenticationSettings.tsx index e6a797f18c1..f63b9b5ad8b 100644 --- a/components/two-factor-authentication/TwoFactorAuthenticationSettings.tsx +++ b/components/two-factor-authentication/TwoFactorAuthenticationSettings.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; -import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; +import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/schema'; import { Box } from '../Grid'; import { P } from '../Text'; diff --git a/components/two-factor-authentication/UserTwoFactorMethodItem.tsx b/components/two-factor-authentication/UserTwoFactorMethodItem.tsx index 85f651b13ce..a70904b9d9c 100644 --- a/components/two-factor-authentication/UserTwoFactorMethodItem.tsx +++ b/components/two-factor-authentication/UserTwoFactorMethodItem.tsx @@ -5,7 +5,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; +import type { Individual, UserTwoFactorMethod } from '../../lib/graphql/types/v2/schema'; import theme from '../../lib/theme'; import ConfirmationModal, { CONFIRMATION_MODAL_TERMINATE } from '../ConfirmationModal'; diff --git a/components/vendors/VendorDetails.tsx b/components/vendors/VendorDetails.tsx index 8f808df70bd..809da1508fe 100644 --- a/components/vendors/VendorDetails.tsx +++ b/components/vendors/VendorDetails.tsx @@ -3,7 +3,7 @@ import type { PropsWithChildren } from 'react'; import { createPortal } from 'react-dom'; import { FormattedDate, FormattedMessage } from 'react-intl'; -import type { Host } from '../../lib/graphql/types/v2/graphql'; +import type { Host } from '../../lib/graphql/types/v2/schema'; import { elementFromClass } from '../../lib/react-utils'; import Avatar from '../Avatar'; diff --git a/components/vendors/VendorForm.tsx b/components/vendors/VendorForm.tsx index 6992f4a70e4..27e9b98239b 100644 --- a/components/vendors/VendorForm.tsx +++ b/components/vendors/VendorForm.tsx @@ -12,7 +12,7 @@ import { i18nGraphqlException } from '../../lib/errors'; import { requireFields, verifyEmailPattern, verifyURLPattern } from '../../lib/form-utils'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; import type { DashboardVendorsQuery } from '../../lib/graphql/types/v2/graphql'; -import { UploadedFileKind } from '../../lib/graphql/types/v2/graphql'; +import { UploadedFileKind } from '../../lib/graphql/types/v2/schema'; import { useImageUploader } from '../../lib/hooks/useImageUploader'; import { elementFromClass } from '../../lib/react-utils'; import { cn, omitDeep } from '../../lib/utils'; diff --git a/components/virtual-card-requests/VirtualCardRequestCard.tsx b/components/virtual-card-requests/VirtualCardRequestCard.tsx index e95377747b4..1beb6114d9c 100644 --- a/components/virtual-card-requests/VirtualCardRequestCard.tsx +++ b/components/virtual-card-requests/VirtualCardRequestCard.tsx @@ -1,8 +1,8 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; -import type { VirtualCardRequest } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/graphql'; +import type { VirtualCardRequest } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/schema'; import { getSpendingLimitShortString } from '../../lib/i18n/virtual-card-spending-limit'; import DateTime from '../DateTime'; diff --git a/components/virtual-card-requests/VirtualCardRequestDrawer.tsx b/components/virtual-card-requests/VirtualCardRequestDrawer.tsx index 8a98839fec6..83b0ef50595 100644 --- a/components/virtual-card-requests/VirtualCardRequestDrawer.tsx +++ b/components/virtual-card-requests/VirtualCardRequestDrawer.tsx @@ -4,8 +4,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { VirtualCardRequest } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/graphql'; +import type { VirtualCardRequest } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/schema'; import { i18nVirtualCardRequestStatus } from '../../lib/i18n/virtual-card-request'; import { getSpendingLimitShortString } from '../../lib/i18n/virtual-card-spending-limit'; diff --git a/components/virtual-card-requests/VirtualCardRequestsTable.tsx b/components/virtual-card-requests/VirtualCardRequestsTable.tsx index 0dfd6f0a51c..038552bc16f 100644 --- a/components/virtual-card-requests/VirtualCardRequestsTable.tsx +++ b/components/virtual-card-requests/VirtualCardRequestsTable.tsx @@ -6,8 +6,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { Account, VirtualCardRequest } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/graphql'; +import type { Account, VirtualCardRequest } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardRequestStatus } from '../../lib/graphql/types/v2/schema'; import { useWindowResize } from '../../lib/hooks/useWindowResize'; import { i18nVirtualCardRequestStatus } from '../../lib/i18n/virtual-card-request'; import { getSpendingLimitShortString } from '../../lib/i18n/virtual-card-spending-limit'; diff --git a/components/virtual-cards/VirtualCardDrawer.tsx b/components/virtual-cards/VirtualCardDrawer.tsx index 2760fb9429a..6281dc2744b 100644 --- a/components/virtual-cards/VirtualCardDrawer.tsx +++ b/components/virtual-cards/VirtualCardDrawer.tsx @@ -4,8 +4,8 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; import { API_V2_CONTEXT, gql } from '../../lib/graphql/helpers'; -import type { VirtualCard as GraphQLVirtualCard } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardStatus } from '../../lib/graphql/types/v2/graphql'; +import type { VirtualCard as GraphQLVirtualCard } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardStatus } from '../../lib/graphql/types/v2/schema'; import { getAvailableLimitShortString } from '../../lib/i18n/virtual-card-spending-limit'; import { accountHoverCardFields } from '../AccountHoverCard'; diff --git a/components/virtual-cards/VirtualCardsTable.tsx b/components/virtual-cards/VirtualCardsTable.tsx index 984b39e071f..6bc0f4634cd 100644 --- a/components/virtual-cards/VirtualCardsTable.tsx +++ b/components/virtual-cards/VirtualCardsTable.tsx @@ -4,8 +4,8 @@ import type { IntlShape } from 'react-intl'; import { FormattedMessage, useIntl } from 'react-intl'; import { i18nGraphqlException } from '../../lib/errors'; -import type { Account, Host, VirtualCard as GraphQLVirtualCard } from '../../lib/graphql/types/v2/graphql'; -import { VirtualCardStatus } from '../../lib/graphql/types/v2/graphql'; +import type { Account, Host, VirtualCard as GraphQLVirtualCard } from '../../lib/graphql/types/v2/schema'; +import { VirtualCardStatus } from '../../lib/graphql/types/v2/schema'; import { useWindowResize } from '../../lib/hooks/useWindowResize'; import { getAvailableLimitShortString } from '../../lib/i18n/virtual-card-spending-limit'; diff --git a/lib/LoggedInUser.ts b/lib/LoggedInUser.ts index 4ac5cc6d70a..f2f905148a5 100644 --- a/lib/LoggedInUser.ts +++ b/lib/LoggedInUser.ts @@ -3,13 +3,8 @@ import { get, uniqBy } from 'lodash'; import { CollectiveType } from './constants/collectives'; import type { ReverseCompatibleMemberRole } from './constants/roles'; import type { GraphQLV1Collective } from './custom_typings/GraphQLV1Collective'; -import { - type Account, - type AccountWithParent, - type CommentFieldsFragment, - MemberRole, - type Update, -} from './graphql/types/v2/graphql'; +import { type CommentFieldsFragment } from './graphql/types/v2/graphql'; +import { type Account, type AccountWithParent, MemberRole, type Update } from './graphql/types/v2/schema'; import type { PREVIEW_FEATURE_KEYS, PreviewFeature } from './preview-features'; import { previewFeatures } from './preview-features'; diff --git a/lib/__tests__/ocr.test.js b/lib/__tests__/ocr.test.js index 51eef2d9744..95c299a395e 100644 --- a/lib/__tests__/ocr.test.js +++ b/lib/__tests__/ocr.test.js @@ -4,7 +4,7 @@ import { updateExpenseFormWithUploadResult, } from '../../components/expenses/lib/ocr'; -import { ExpenseType } from '../graphql/types/v2/graphql'; +import { ExpenseType } from '../graphql/types/v2/schema'; const uploadResult = { file: { url: 'https://example.com/file.pdf' }, diff --git a/lib/constants/collectives.ts b/lib/constants/collectives.ts index ad3ba4ad9b2..4ce8d5bc86a 100644 --- a/lib/constants/collectives.ts +++ b/lib/constants/collectives.ts @@ -1,6 +1,6 @@ import { invert, omit } from 'lodash'; -import { AccountType } from '../graphql/types/v2/graphql'; +import { AccountType } from '../graphql/types/v2/schema'; export const CollectiveType = { COLLECTIVE: 'COLLECTIVE', diff --git a/lib/constants/currency.js b/lib/constants/currency.js index f1de1a68148..ab8e6da07ca 100644 --- a/lib/constants/currency.js +++ b/lib/constants/currency.js @@ -1,4 +1,4 @@ -import { Currency as CurrencyEnum } from '../graphql/types/v2/graphql'; +import { Currency as CurrencyEnum } from '../graphql/types/v2/schema'; export const Currency = Object.values(CurrencyEnum); diff --git a/lib/constants/intervals.ts b/lib/constants/intervals.ts index e8293b289f5..fc81afbf765 100644 --- a/lib/constants/intervals.ts +++ b/lib/constants/intervals.ts @@ -1,4 +1,4 @@ -import { TierFrequency } from '../graphql/types/v2/graphql'; +import { TierFrequency } from '../graphql/types/v2/schema'; const INTERVALS = { oneTime: 'oneTime', diff --git a/lib/constants/roles.ts b/lib/constants/roles.ts index 275c571b40d..2656efb6284 100644 --- a/lib/constants/roles.ts +++ b/lib/constants/roles.ts @@ -1,4 +1,4 @@ -import { MemberRole as GraphQLV2MemberRole } from '../graphql/types/v2/graphql'; +import { MemberRole as GraphQLV2MemberRole } from '../graphql/types/v2/schema'; enum GraphQLV1MemberRole { HOST = 'HOST', // holds money on behalf of the collective diff --git a/lib/currency-utils.ts b/lib/currency-utils.ts index 0fe4c099075..661635218b2 100644 --- a/lib/currency-utils.ts +++ b/lib/currency-utils.ts @@ -3,8 +3,8 @@ import { isNil, round } from 'lodash'; import { ZERO_DECIMAL_CURRENCIES } from './constants/currency'; import { CurrencyPrecision } from './constants/currency-precision'; -import type { Amount, CurrencyExchangeRate, CurrencyExchangeRateInput } from './graphql/types/v2/graphql'; -import { Currency } from './graphql/types/v2/graphql'; +import type { Amount, CurrencyExchangeRate, CurrencyExchangeRateInput } from './graphql/types/v2/schema'; +import { Currency } from './graphql/types/v2/schema'; export type Options = { locale?: string; diff --git a/lib/date-utils.ts b/lib/date-utils.ts index 86cc0b5bffe..6d977ad9f8d 100644 --- a/lib/date-utils.ts +++ b/lib/date-utils.ts @@ -3,8 +3,8 @@ import { padStart } from 'lodash'; import INTERVALS from './constants/intervals'; import { PAYMENT_METHOD_SERVICE } from './constants/payment-methods'; -import type { TierFrequency } from './graphql/types/v2/graphql'; -import { TimeUnit } from './graphql/types/v2/graphql'; +import type { TierFrequency } from './graphql/types/v2/schema'; +import { TimeUnit } from './graphql/types/v2/schema'; import dayjs from './dayjs'; /** diff --git a/lib/expenses/useProcessExpense.ts b/lib/expenses/useProcessExpense.ts index 829aeac162c..bff3788679b 100644 --- a/lib/expenses/useProcessExpense.ts +++ b/lib/expenses/useProcessExpense.ts @@ -4,7 +4,7 @@ import { useMutation } from '@apollo/client'; import { expensePageExpenseFieldsFragment } from '../../components/expenses/graphql/fragments'; import { API_V2_CONTEXT, gql } from '../graphql/helpers'; -import type { Expense, ProcessExpensePaymentParams } from '../graphql/types/v2/graphql'; +import type { Expense, ProcessExpensePaymentParams } from '../graphql/types/v2/schema'; type ProcessExpenseAction = (params?: { paymentParams?: ProcessExpensePaymentParams; diff --git a/lib/graphql/schemaV2.graphql b/lib/graphql/schemaV2.graphql index e2f68a65ded..36b64060356 100644 --- a/lib/graphql/schemaV2.graphql +++ b/lib/graphql/schemaV2.graphql @@ -416,6 +416,11 @@ interface Account { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -2931,6 +2936,11 @@ type Host implements Account & AccountWithContributions { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -8082,6 +8092,11 @@ type Bot implements Account { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -8949,6 +8964,11 @@ type Collective implements Account & AccountWithHost & AccountWithContributions """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -10365,6 +10385,11 @@ type Event implements Account & AccountWithHost & AccountWithContributions & Acc """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -11501,6 +11526,11 @@ type Individual implements Account { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -12574,6 +12604,11 @@ type Organization implements Account & AccountWithContributions { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -13554,6 +13589,11 @@ type Vendor implements Account & AccountWithContributions { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -15193,6 +15233,11 @@ type Query { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -17173,6 +17218,11 @@ type Fund implements Account & AccountWithHost & AccountWithContributions { """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -18187,6 +18237,11 @@ type Project implements Account & AccountWithHost & AccountWithContributions & A """ searchTerm: String + """ + If true, return transactions with debt attached, if false transactions without debt attached. + """ + hasDebt: Boolean + """ Only return transactions with an Expense attached """ @@ -19212,6 +19267,11 @@ type Mutation { Set to true to disable contributions to this project. Host admins will still be able to add funds. """ disableContributions: Boolean! = false + + """ + Set to true to disable expenses for this project. + """ + disableExpenses: Boolean! = false ): Project """ diff --git a/lib/graphql/types/v2/gql.ts b/lib/graphql/types/v2/gql.ts index ecde0db5a4e..7b393f4b504 100644 --- a/lib/graphql/types/v2/gql.ts +++ b/lib/graphql/types/v2/gql.ts @@ -11,6 +11,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ * 3. It does not support dead code elimination, so it will add unused operations. * * Therefore it is highly recommended to use the babel or swc plugin for production. + * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size */ const documents = { "\n fragment AccountHoverCardFields on Account {\n id\n name\n slug\n type\n description\n imageUrl\n isHost\n isArchived\n ... on Individual {\n isGuest\n }\n ... on AccountWithHost {\n host {\n id\n slug\n }\n approvedAt\n }\n\n ... on AccountWithParent {\n parent {\n id\n slug\n }\n }\n }\n": types.AccountHoverCardFieldsFragmentDoc, @@ -156,7 +157,7 @@ const documents = { "\n mutation RejectTransaction($transaction: TransactionReferenceInput!, $message: String) {\n rejectTransaction(transaction: $transaction, message: $message) {\n id\n order {\n id\n status\n activities {\n nodes {\n id\n type\n createdAt\n }\n }\n transactions {\n id\n createdAt\n }\n }\n }\n }\n": types.RejectTransactionDocument, "\n mutation RefundTransaction($transaction: TransactionReferenceInput!, $ignoreBalanceCheck: Boolean) {\n refundTransaction(transaction: $transaction, ignoreBalanceCheck: $ignoreBalanceCheck) {\n id\n order {\n id\n status\n activities {\n nodes {\n id\n type\n createdAt\n }\n }\n transactions {\n id\n createdAt\n }\n }\n expense {\n id\n status\n }\n }\n }\n": types.RefundTransactionDocument, "\n fragment TransactionsTableQueryCollectionFragment on TransactionCollection {\n totalCount\n offset\n limit\n nodes {\n id\n legacyId\n uuid\n kind\n amount {\n currency\n valueInCents\n }\n netAmount {\n currency\n valueInCents\n }\n group\n type\n description\n createdAt\n clearedAt\n isRefunded\n isRefund\n isOrderRejected\n isInReview\n isDisputed\n refundTransaction {\n id\n group\n }\n host {\n id\n slug\n legacyId\n type\n }\n account {\n id\n name\n slug\n isIncognito\n imageUrl\n type\n ...AccountHoverCardFields\n }\n oppositeAccount {\n id\n name\n slug\n isIncognito\n imageUrl\n type\n ...AccountHoverCardFields\n }\n toAccount {\n id\n slug\n }\n expense {\n id\n type\n }\n permissions {\n id\n canRefund\n canDownloadInvoice\n canReject\n }\n }\n }\n \n": types.TransactionsTableQueryCollectionFragmentFragmentDoc, - "\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n": types.TransactionsTableDocument, + "\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $hasDebt: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n hasDebt: $hasDebt\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n": types.TransactionsTableDocument, "\n mutation DashboardDeleteUpdate($id: String!) {\n deleteUpdate(id: $id) {\n id\n ...UpdateFields\n }\n }\n \n": types.DashboardDeleteUpdateDocument, "\n mutation DashboardPublishUpdate($id: String!, $notificationAudience: UpdateAudience) {\n publishUpdate(id: $id, notificationAudience: $notificationAudience) {\n id\n ...UpdateFields\n }\n }\n \n": types.DashboardPublishUpdateDocument, "\n mutation DashboardUnpublishUpdate($id: String!) {\n unpublishUpdate(id: $id) {\n id\n ...UpdateFields\n }\n }\n \n": types.DashboardUnpublishUpdateDocument, @@ -843,7 +844,7 @@ export function graphql(source: "\n fragment TransactionsTableQueryCollectionFr /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n"): (typeof documents)["\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n"]; +export function graphql(source: "\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $hasDebt: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n hasDebt: $hasDebt\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n"): (typeof documents)["\n query TransactionsTable(\n $hostAccount: AccountReferenceInput\n $account: [AccountReferenceInput!]\n $excludeAccount: [AccountReferenceInput!]\n $limit: Int!\n $offset: Int!\n $type: TransactionType\n $paymentMethodType: [PaymentMethodType]\n $paymentMethodService: [PaymentMethodService]\n $minAmount: Int\n $maxAmount: Int\n $dateFrom: DateTime\n $dateTo: DateTime\n $clearedFrom: DateTime\n $clearedTo: DateTime\n $searchTerm: String\n $kind: [TransactionKind]\n $includeIncognitoTransactions: Boolean\n $includeGiftCardTransactions: Boolean\n $includeChildrenTransactions: Boolean\n $virtualCard: [VirtualCardReferenceInput]\n $sort: ChronologicalOrderInput\n $group: [String]\n $includeHost: Boolean\n $expenseType: [ExpenseType]\n $expense: ExpenseReferenceInput\n $order: OrderReferenceInput\n $isRefund: Boolean\n $hasDebt: Boolean\n $merchantId: [String]\n $accountingCategory: [String]\n ) {\n transactions(\n host: $hostAccount\n account: $account\n excludeAccount: $excludeAccount\n limit: $limit\n offset: $offset\n type: $type\n paymentMethodType: $paymentMethodType\n paymentMethodService: $paymentMethodService\n minAmount: $minAmount\n maxAmount: $maxAmount\n dateFrom: $dateFrom\n dateTo: $dateTo\n clearedFrom: $clearedFrom\n clearedTo: $clearedTo\n searchTerm: $searchTerm\n kind: $kind\n includeIncognitoTransactions: $includeIncognitoTransactions\n includeGiftCardTransactions: $includeGiftCardTransactions\n includeChildrenTransactions: $includeChildrenTransactions\n includeDebts: true\n virtualCard: $virtualCard\n orderBy: $sort\n group: $group\n includeHost: $includeHost\n expenseType: $expenseType\n expense: $expense\n order: $order\n isRefund: $isRefund\n hasDebt: $hasDebt\n merchantId: $merchantId\n accountingCategory: $accountingCategory\n ) {\n ...TransactionsTableQueryCollectionFragment\n }\n }\n \n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/lib/graphql/types/v2/graphql.ts b/lib/graphql/types/v2/graphql.ts index 4ac3fd13f7a..781a7577f79 100644 --- a/lib/graphql/types/v2/graphql.ts +++ b/lib/graphql/types/v2/graphql.ts @@ -36,427 +36,12 @@ export type Scalars = { Upload: { input: any; output: any; } }; -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type Account = { - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Categories set by Open Collective to help moderation. */ - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...) */ - connectedAccounts?: Maybe>>; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** The public id identifying the account (ie: 5v08jk63-w4g9nbpz-j7qmyder-p7ozax5g) */ - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - /** - * The internal database identifier of the collective (ie: 580) - * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. - */ - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** Get pending member invitations for this account */ - memberInvitations?: Maybe>>; - memberOf?: Maybe; - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this account can use to pay for Orders */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this account can use to get paid */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - /** The type of the account (BOT/COLLECTIVE/EVENT/ORGANIZATION/INDIVIDUAL/VENDOR) */ - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - /** The time of last update */ - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountMemberInvitationsArgs = { - role?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ -export type AccountVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - export enum AccountCacheType { CLOUDFLARE = 'CLOUDFLARE', CONTRIBUTORS = 'CONTRIBUTORS', GRAPHQL_QUERIES = 'GRAPHQL_QUERIES' } -/** A collection of "Accounts" */ -export type AccountCollection = Collection & { - __typename?: 'AccountCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - export enum AccountFreezeAction { FREEZE = 'FREEZE', UNFREEZE = 'UNFREEZE' @@ -468,18 +53,6 @@ export enum AccountOrdersFilter { OUTGOING = 'OUTGOING' } -/** Fields for the user permissions on an account */ -export type AccountPermissions = { - __typename?: 'AccountPermissions'; - /** Whether the current user can add funds to this account */ - addFunds: Permission; - /** Whether the current user can download this account's payment receipts */ - canDownloadPaymentReceipts: Permission; - /** Whether the current user can contact this account */ - contact: Permission; - id: Scalars['String']['output']; -}; - export type AccountReferenceInput = { /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; @@ -492,460 +65,59 @@ export type AccountReferenceInput = { slug?: InputMaybe; }; -/** Stats for the Account */ -export type AccountStats = { - __typename?: 'AccountStats'; - /** @deprecated 2022-10-21: Use activeRecurringContributionsV2 while we migrate to better semantics. */ - activeRecurringContributions?: Maybe; - /** Returns some statistics about active recurring contributions, broken down by frequency */ - activeRecurringContributionsBreakdown: Array; - /** @deprecated 2024-03-04: Use activeRecurringContributionsBreakdown while we migrate to better semantics. */ - activeRecurringContributionsV2?: Maybe; - /** Amount pledged time series */ - amountPledgedTimeSeries: TimeSeriesAmount; - /** Amount of money in cents in the currency of the collective */ - balance: Amount; - /** Balance time series */ - balanceTimeSeries: TimeSeriesAmount; - /** - * Amount of money in cents in the currency of the collective currently available to spend - * @deprecated 2022-12-13: Use balance + withBlockedFunds instead - */ - balanceWithBlockedFunds: Amount; - /** - * The consolidated amount of all the events and projects combined. - * @deprecated 2022-09-02: Use balance + includeChildren instead - */ - consolidatedBalance: Amount; - /** Return amount stats for contributions (default, and only for now: one-time vs recurring) */ - contributionsAmount?: Maybe>>; - /** Return amount time series for contributions (default, and only for now: one-time vs recurring) */ - contributionsAmountTimeSeries: TimeSeriesAmount; - contributionsCount: Scalars['Int']['output']; - contributorsCount: Scalars['Int']['output']; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** History of the expense tags used by this collective. */ - expensesTagsTimeSeries: TimeSeriesAmount; - id?: Maybe; - /** Average amount spent per month based on the last 90 days */ - monthlySpending: Amount; - /** Total amount received */ - totalAmountReceived: Amount; - /** Total amount received time series */ - totalAmountReceivedTimeSeries: TimeSeriesAmount; - /** Total amount spent */ - totalAmountSpent: Amount; - /** - * Total net amount received - * @deprecated 2022-12-13: Use totalAmountReceived + net=true instead - */ - totalNetAmountReceived: Amount; - /** - * Total net amount received time series - * @deprecated 2022-12-13: Use totalAmountReceivedTimeSeries + net=true instead - */ - totalNetAmountReceivedTimeSeries: TimeSeriesAmount; - /** Total of paid expenses to the account, filter per expense type */ - totalPaidExpenses: Amount; - yearlyBudget: Amount; - /** @deprecated 2023-03-01: This field will be removed soon, please use totalMoneyManaged */ - yearlyBudgetManaged: Amount; -}; - - -/** Stats for the Account */ -export type AccountStatsActiveRecurringContributionsBreakdownArgs = { - frequency?: InputMaybe; - includeChildren?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsActiveRecurringContributionsV2Args = { - frequency?: ContributionFrequency; -}; - - -/** Stats for the Account */ -export type AccountStatsAmountPledgedTimeSeriesArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeExpectedFunds?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsBalanceArgs = { - currency?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - withBlockedFunds?: InputMaybe; -}; - +/** All account types */ +export enum AccountType { + BOT = 'BOT', + COLLECTIVE = 'COLLECTIVE', + EVENT = 'EVENT', + FUND = 'FUND', + INDIVIDUAL = 'INDIVIDUAL', + ORGANIZATION = 'ORGANIZATION', + PROJECT = 'PROJECT', + VENDOR = 'VENDOR' +} -/** Stats for the Account */ -export type AccountStatsBalanceTimeSeriesArgs = { +export type AccountUpdateInput = { currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - net?: InputMaybe; - periodInMonths?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsContributionsAmountArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; -}; - - -/** Stats for the Account */ -export type AccountStatsContributionsAmountTimeSeriesArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - timeUnit?: InputMaybe; + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id: Scalars['String']['input']; }; +export enum AccountingCategoryAppliesTo { + HOST = 'HOST', + HOSTED_COLLECTIVES = 'HOSTED_COLLECTIVES' +} -/** Stats for the Account */ -export type AccountStatsContributionsCountArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; +/** Input for creating or updating an account category */ +export type AccountingCategoryInput = { + /** If the category is applicable to the Host or Hosted Collectives */ + appliesTo?: AccountingCategoryAppliesTo; + /** The code of the accounting category */ + code?: InputMaybe; + /** If meant for expenses, the types of expenses this category applies to */ + expensesTypes?: InputMaybe>>; + /** A friendly name for non-accountants (i.e. expense submitters and collective admins) */ + friendlyName?: InputMaybe; + /** Whether this category is only meant for the host admins */ + hostOnly?: Scalars['Boolean']['input']; + /** The ID of the accounting category to edit */ + id?: InputMaybe; + instructions?: InputMaybe; + kind?: AccountingCategoryKind; + /** The technical name of the accounting category */ + name?: InputMaybe; }; +export enum AccountingCategoryKind { + ADDED_FUNDS = 'ADDED_FUNDS', + CONTRIBUTION = 'CONTRIBUTION', + EXPENSE = 'EXPENSE' +} -/** Stats for the Account */ -export type AccountStatsContributorsCountArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsExpensesTagsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - limit?: Scalars['Int']['input']; - truncate?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsExpensesTagsTimeSeriesArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalAmountReceivedArgs = { - currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - net?: InputMaybe; - periodInMonths?: InputMaybe; - useCache?: Scalars['Boolean']['input']; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalAmountReceivedTimeSeriesArgs = { - currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - net?: InputMaybe; - periodInMonths?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalAmountSpentArgs = { - currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - includeGiftCards?: InputMaybe; - kind?: InputMaybe>>; - net?: InputMaybe; - periodInMonths?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalNetAmountReceivedArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - periodInMonths?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalNetAmountReceivedTimeSeriesArgs = { - currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeChildren?: InputMaybe; - kind?: InputMaybe>>; - periodInMonths?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** Stats for the Account */ -export type AccountStatsTotalPaidExpensesArgs = { - currency?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expenseType?: InputMaybe>>; -}; - -/** All account types */ -export enum AccountType { - BOT = 'BOT', - COLLECTIVE = 'COLLECTIVE', - EVENT = 'EVENT', - FUND = 'FUND', - INDIVIDUAL = 'INDIVIDUAL', - ORGANIZATION = 'ORGANIZATION', - PROJECT = 'PROJECT', - VENDOR = 'VENDOR' -} - -export type AccountUpdateInput = { - currency?: InputMaybe; - /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id: Scalars['String']['input']; -}; - -/** An account that can receive financial contributions */ -export type AccountWithContributions = { - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; -}; - - -/** An account that can receive financial contributions */ -export type AccountWithContributionsActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** An account that can receive financial contributions */ -export type AccountWithContributionsContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** An account that can receive financial contributions */ -export type AccountWithContributionsTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** An account that can receive financial contributions */ -export type AccountWithContributionsTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - -/** An account that can be hosted by a Host */ -export type AccountWithHost = { - /** Date of approval by the Fiscal Host. */ - approvedAt?: Maybe; - /** Returns the Fiscal Host */ - host?: Maybe; - /** Returns agreements this account has with its host, or null if not enough permissions. */ - hostAgreements?: Maybe; - /** Returns the Fiscal Host application */ - hostApplication?: Maybe; - /** Fees percentage that the host takes for this collective */ - hostFeePercent?: Maybe; - /** Describe how the host charges the collective */ - hostFeesStructure?: Maybe; - /** Returns whether it's active: can accept financial contributions and pay expenses. */ - isActive: Scalars['Boolean']['output']; - /** Returns whether it's approved by the Fiscal Host */ - isApproved: Scalars['Boolean']['output']; - /** Fees percentage that the platform takes for this collective */ - platformFeePercent?: Maybe; - summary?: Maybe; - /** Date when the collective was last unfrozen by current Fiscal Host */ - unfrozenAt?: Maybe; -}; - - -/** An account that can be hosted by a Host */ -export type AccountWithHostHostAgreementsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** An account that can be hosted by a Host */ -export type AccountWithHostHostFeePercentArgs = { - paymentMethodService?: InputMaybe; - paymentMethodType?: InputMaybe; -}; - - -/** An account that can be hosted by a Host */ -export type AccountWithHostSummaryArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; -}; - -/** An account that has a parent account */ -export type AccountWithParent = { - /** The Account parenting this account */ - parent?: Maybe; -}; - -/** Fields for an accounting category */ -export type AccountingCategory = { - __typename?: 'AccountingCategory'; - /** The account this category belongs to */ - account: Host; - /** If the category is applicable to the Host or Hosted Collectives */ - appliesTo: AccountingCategoryAppliesTo; - /** The code of the accounting category */ - code: Scalars['String']['output']; - /** The time of creation of this accounting category */ - createdAt: Scalars['DateTime']['output']; - /** If meant for expenses, the types of expenses this category applies to */ - expensesTypes?: Maybe>>; - /** A friendly name for non-accountants (i.e. expense submitters and collective admins) */ - friendlyName?: Maybe; - /** Whether this category is only meant for the host admins */ - hostOnly: Scalars['Boolean']['output']; - id: Scalars['String']['output']; - /** Instructions for the expense submitters */ - instructions?: Maybe; - /** The kind of transactions this category applies to */ - kind?: Maybe; - /** The technical name of the accounting category */ - name: Scalars['String']['output']; -}; - -export enum AccountingCategoryAppliesTo { - HOST = 'HOST', - HOSTED_COLLECTIVES = 'HOSTED_COLLECTIVES' -} - -/** A collection of "Accounting Categories" */ -export type AccountingCategoryCollection = Collection & { - __typename?: 'AccountingCategoryCollection'; - limit?: Maybe; - /** The Accounting Categories */ - nodes: Array; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Input for creating or updating an account category */ -export type AccountingCategoryInput = { - /** If the category is applicable to the Host or Hosted Collectives */ - appliesTo?: AccountingCategoryAppliesTo; - /** The code of the accounting category */ - code?: InputMaybe; - /** If meant for expenses, the types of expenses this category applies to */ - expensesTypes?: InputMaybe>>; - /** A friendly name for non-accountants (i.e. expense submitters and collective admins) */ - friendlyName?: InputMaybe; - /** Whether this category is only meant for the host admins */ - hostOnly?: Scalars['Boolean']['input']; - /** The ID of the accounting category to edit */ - id?: InputMaybe; - instructions?: InputMaybe; - kind?: AccountingCategoryKind; - /** The technical name of the accounting category */ - name?: InputMaybe; -}; - -export enum AccountingCategoryKind { - ADDED_FUNDS = 'ADDED_FUNDS', - CONTRIBUTION = 'CONTRIBUTION', - EXPENSE = 'EXPENSE' -} - -/** Reference to an accounting category */ -export type AccountingCategoryReferenceInput = { - /** The ID of the accounting category */ - id: Scalars['NonEmptyString']['input']; -}; - -/** An activity describing something that happened on the platform */ -export type Activity = { - __typename?: 'Activity'; - /** The account targeted by this activity, if any */ - account?: Maybe; - /** The conversation related to this activity, if any */ - conversation?: Maybe; - /** The date on which the ConnectedAccount was created */ - createdAt: Scalars['DateTime']['output']; - /** Data attached to this activity (if any) */ - data: Scalars['JSON']['output']; - /** The expense related to this activity, if any */ - expense?: Maybe; - /** The account that authored by this activity, if any */ - fromAccount?: Maybe; - /** The host under which this activity happened, if any */ - host?: Maybe; - /** Unique identifier for this activity */ - id: Scalars['String']['output']; - /** The person who triggered the action, if any */ - individual?: Maybe; - /** Specifies whether this is a system generated activity */ - isSystem: Scalars['Boolean']['output']; - /** The order related to this activity, if any */ - order?: Maybe; - /** The transaction related to this activity, if any */ - transaction?: Maybe; - /** The type of the activity */ - type: ActivityType; - /** The update related to this activity, if any */ - update?: Maybe; +/** Reference to an accounting category */ +export type AccountingCategoryReferenceInput = { + /** The ID of the accounting category */ + id: Scalars['NonEmptyString']['input']; }; export enum ActivityAndClassesType { @@ -1108,34 +280,6 @@ export enum ActivityClassType { VIRTUAL_CARDS = 'VIRTUAL_CARDS' } -/** A collection of "Activities" */ -export type ActivityCollection = Collection & { - __typename?: 'ActivityCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - -export type ActivitySubscription = { - __typename?: 'ActivitySubscription'; - /** The account which this notification setting is applied to */ - account?: Maybe; - /** Wheter this notification setting is active or not */ - active: Scalars['Boolean']['output']; - /** The channel this setting is notifying through */ - channel: ActivityChannel; - createdAt: Scalars['DateTime']['output']; - /** Unique identifier for this notification setting */ - id: Scalars['String']['output']; - /** The user who defined the setting */ - individual: Individual; - /** The type of Activity this setting is notifying about */ - type: Scalars['String']['output']; - /** If channel supports, this is the webhook URL we submit the notification to */ - webhookUrl?: Maybe; -}; - export enum ActivityType { ACCOUNTING_CATEGORIES_EDITED = 'ACCOUNTING_CATEGORIES_EDITED', ACTIVATED_COLLECTIVE_AS_HOST = 'ACTIVATED_COLLECTIVE_AS_HOST', @@ -1271,40 +415,6 @@ export enum ActivityType { WEBHOOK_STRIPE_RECEIVED = 'WEBHOOK_STRIPE_RECEIVED' } -/** Response for the addTwoFactorAuthTokenToIndividual mutation */ -export type AddTwoFactorAuthTokenToIndividualResponse = { - __typename?: 'AddTwoFactorAuthTokenToIndividualResponse'; - /** The Individual that the 2FA has been enabled for */ - account: Individual; - /** The recovery codes for the Individual to write down */ - recoveryCodes?: Maybe>>; -}; - -/** An agreement */ -export type Agreement = { - __typename?: 'Agreement'; - account: Account; - attachment?: Maybe; - /** The time of creation of this agreement */ - createdAt: Scalars['DateTime']['output']; - createdBy?: Maybe; - expiresAt?: Maybe; - host: Host; - id?: Maybe; - /** Additional notes about the agreement for the host admins */ - notes?: Maybe; - title: Scalars['String']['output']; -}; - -/** A collection of "Agreement" */ -export type AgreementCollection = Collection & { - __typename?: 'AgreementCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - export type AgreementReferenceInput = { /** The public id identifying the agreement (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; @@ -1312,16 +422,6 @@ export type AgreementReferenceInput = { legacyId?: InputMaybe; }; -/** A financial amount. */ -export type Amount = { - __typename?: 'Amount'; - currency?: Maybe; - /** If the amount was generated from a currency conversion, this field contains details about the conversion */ - exchangeRate?: Maybe; - value?: Maybe; - valueInCents?: Maybe; -}; - /** Input type for an amount with the value and currency */ export type AmountInput = { /** The currency string */ @@ -1342,37 +442,6 @@ export type AmountRangeInput = { lte?: InputMaybe; }; -/** Statistics with amounts */ -export type AmountStats = { - __typename?: 'AmountStats'; - /** Total amount for this label */ - amount: Amount; - /** Number of entries for this label */ - count?: Maybe; - /** Name/Label for the amount */ - label: Scalars['String']['output']; -}; - -/** An OAuth application. */ -export type Application = { - __typename?: 'Application'; - account: Account; - /** @deprecated 2022-06-16: This Application object will only be used for OAuth tokens. Use PersonalToken for user tokens */ - apiKey?: Maybe; - clientId?: Maybe; - clientSecret?: Maybe; - description?: Maybe; - id: Scalars['String']['output']; - legacyId: Scalars['Int']['output']; - name?: Maybe; - oAuthAuthorization?: Maybe; - /** Whether this application is allowed to directly use operations that would normally require 2FA */ - preAuthorize2FA: Scalars['Boolean']['output']; - redirectUri?: Maybe; - /** @deprecated 2022-06-16: This Application object will only be used for OAuth tokens. Use PersonalToken for user tokens */ - type?: Maybe; -}; - /** Input type for Application */ export type ApplicationCreateInput = { /** The account to use as the owner of the application. Defaults to currently logged in user. */ @@ -1417,8988 +486,1329 @@ export enum AveragePeriod { YEAR = 'YEAR' } -export type BanAccountResponse = { - __typename?: 'BanAccountResponse'; - /** The accounts impacted by the mutation */ - accounts: Array; - /** Whether the accounts can be banned */ - isAllowed: Scalars['Boolean']['output']; - /** A summary of the changes */ - message?: Maybe; -}; - -/** This represents a Bot account */ -export type Bot = Account & { - __typename?: 'Bot'; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents a Bot account */ -export type BotActivitySubscriptionsArgs = { - channel?: InputMaybe; +/** Captcha related information */ +export type CaptchaInput = { + /** Catpcha provider */ + provider: CaptchaProvider; + /** Captcha validation token */ + token: Scalars['String']['input']; }; +/** Implemented Captcha Providers */ +export enum CaptchaProvider { + HCAPTCHA = 'HCAPTCHA', + RECAPTCHA = 'RECAPTCHA', + TURNSTILE = 'TURNSTILE' +} -/** This represents a Bot account */ -export type BotBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; +/** Input to order results chronologically */ +export type ChronologicalOrderInput = { + /** Ordering direction. */ + direction?: OrderDirection; + /** Field to chronologically order by. */ + field?: DateTimeField; }; - -/** This represents a Bot account */ -export type BotChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; +export type CollectiveCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: InputMaybe; + /** The profile avatar image */ + image?: InputMaybe; + location?: InputMaybe; + name: Scalars['String']['input']; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: InputMaybe; + settings?: InputMaybe; + slug: Scalars['String']['input']; + tags?: InputMaybe>>; }; +export enum CollectiveFeatureStatus { + /** The feature is enabled and is actively used */ + ACTIVE = 'ACTIVE', + /** The feature is enabled, but there is no data for it */ + AVAILABLE = 'AVAILABLE', + /** The feature is disabled, but can be enabled by an admin */ + DISABLED = 'DISABLED', + /** The feature is disabled and cannot be activated for this account */ + UNSUPPORTED = 'UNSUPPORTED' +} -/** This represents a Bot account */ -export type BotConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; +/** Input to create a comment. You can only specify one entity type: expense, conversation, update or host application */ +export type CommentCreateInput = { + /** @deprecated 2022-08-26: Please use "conversation" */ + ConversationId?: InputMaybe; + conversation?: InputMaybe; + /** If your comment is linked to an expense, set it here */ + expense?: InputMaybe; + /** If your comment is linked to an host application, set it here */ + hostApplication?: InputMaybe; + html?: InputMaybe; + /** If your comment is linked to an order, set it here */ + order?: InputMaybe; + /** The type of the comment */ + type?: InputMaybe; + update?: InputMaybe; }; - -/** This represents a Bot account */ -export type BotConversationsTagsArgs = { - limit?: Scalars['Int']['input']; +export type CommentReferenceInput = { + /** The public id identifying the comment */ + id?: InputMaybe; }; +/** All supported comment contexts */ +export enum CommentType { + /** Default regular comment */ + COMMENT = 'COMMENT', + /** Comment is visible only to host admins */ + PRIVATE_NOTE = 'PRIVATE_NOTE' +} -/** This represents a Bot account */ -export type BotDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; +export type CommentUpdateInput = { + html?: InputMaybe; + id: Scalars['String']['input']; }; - -/** This represents a Bot account */ -export type BotExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents a Bot account */ -export type BotFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Bot account */ -export type BotOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents a Bot account */ -export type BotUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents a Bot account */ -export type BotVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Bot account */ -export type BotVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents a Bot account */ -export type BotWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type Collective_Minimum_Admins = { - __typename?: 'COLLECTIVE_MINIMUM_ADMINS'; - applies?: Maybe; - freeze?: Maybe; - numberOfAdmins?: Maybe; +export type ConnectedAccountCreateInput = { + /** Optional Client ID for the token or secret */ + clientId?: InputMaybe; + /** Private data related to the connected account */ + data?: InputMaybe; + /** Refresh token for the connected account */ + refreshToken?: InputMaybe; + /** Service which the connected account belongs to */ + service?: InputMaybe; + /** Public data related to the connected account */ + settings?: InputMaybe; + /** Secret token used to call service */ + token?: InputMaybe; + /** Optional username for the connected account */ + username?: InputMaybe; }; -/** Captcha related information */ -export type CaptchaInput = { - /** Catpcha provider */ - provider: CaptchaProvider; - /** Captcha validation token */ - token: Scalars['String']['input']; +export type ConnectedAccountReferenceInput = { + /** The public id identifying the connected account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the account (ie: 580) */ + legacyId?: InputMaybe; }; -/** Implemented Captcha Providers */ -export enum CaptchaProvider { - HCAPTCHA = 'HCAPTCHA', - RECAPTCHA = 'RECAPTCHA', - TURNSTILE = 'TURNSTILE' +/** All supported services a user can connect with */ +export enum ConnectedAccountService { + github = 'github', + /** @deprecated Not using this service anymore */ + meetup = 'meetup', + paypal = 'paypal', + plaid = 'plaid', + /** @deprecated Not using this service anymore */ + privacy = 'privacy', + stripe = 'stripe', + stripe_customer = 'stripe_customer', + thegivingblock = 'thegivingblock', + transferwise = 'transferwise', + twitter = 'twitter' } -/** Input to order results chronologically */ -export type ChronologicalOrderInput = { - /** Ordering direction. */ - direction?: OrderDirection; - /** Field to chronologically order by. */ - field?: DateTimeField; -}; - -/** Collection interface shared by all collection types */ -export type Collection = { - limit?: Maybe; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** This represents a Collective account */ -export type Collective = Account & AccountWithContributions & AccountWithHost & { - __typename?: 'Collective'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - /** Date of approval by the Fiscal Host. */ - approvedAt?: Maybe; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Returns the Fiscal Host */ - host?: Maybe; - /** Returns agreements this account has with its host, or null if not enough permissions. */ - hostAgreements?: Maybe; - /** Returns the Fiscal Host application */ - hostApplication?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** Fees percentage that the host takes for this collective */ - hostFeePercent?: Maybe; - /** Describe how the host charges the collective */ - hostFeesStructure?: Maybe; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether it's active: can accept financial contributions and pay expenses. */ - isActive: Scalars['Boolean']['output']; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether it's approved by the Fiscal Host */ - isApproved: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - summary?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date when the collective was last unfrozen by current Fiscal Host */ - unfrozenAt?: Maybe; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents a Collective account */ -export type CollectiveActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveHostAgreementsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - +export enum ContributionFrequency { + MONTHLY = 'MONTHLY', + ONETIME = 'ONETIME', + YEARLY = 'YEARLY' +} -/** This represents a Collective account */ -export type CollectiveHostFeePercentArgs = { - paymentMethodService?: InputMaybe; - paymentMethodType?: InputMaybe; +export type ConversationReferenceInput = { + /** The public id identifying the conversation */ + id?: InputMaybe; + legacyId?: InputMaybe; }; - -/** This represents a Collective account */ -export type CollectiveImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectivePaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveSummaryArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents a Collective account */ -export type CollectiveUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents a Collective account */ -export type CollectiveVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Collective account */ -export type CollectiveVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents a Collective account */ -export type CollectiveWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type CollectiveCreateInput = { - /** The profile background image, for the banner and social media sharing */ - backgroundImage?: InputMaybe; - description: Scalars['String']['input']; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: InputMaybe; - /** The profile avatar image */ - image?: InputMaybe; - location?: InputMaybe; - name: Scalars['String']['input']; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: InputMaybe; - settings?: InputMaybe; - slug: Scalars['String']['input']; - tags?: InputMaybe>>; -}; - -export enum CollectiveFeatureStatus { - /** The feature is enabled and is actively used */ - ACTIVE = 'ACTIVE', - /** The feature is enabled, but there is no data for it */ - AVAILABLE = 'AVAILABLE', - /** The feature is disabled, but can be enabled by an admin */ - DISABLED = 'DISABLED', - /** The feature is disabled and cannot be activated for this account */ - UNSUPPORTED = 'UNSUPPORTED' -} - -/** Describes the features enabled and available for this account */ -export type CollectiveFeatures = { - __typename?: 'CollectiveFeatures'; - ABOUT?: Maybe; - ALIPAY?: Maybe; - ALL?: Maybe; - COLLECTIVE_GOALS?: Maybe; - CONNECTED_ACCOUNTS?: Maybe; - CONTACT_COLLECTIVE?: Maybe; - CONTACT_FORM?: Maybe; - CONVERSATIONS?: Maybe; - CREATE_COLLECTIVE?: Maybe; - EMAIL_NOTIFICATIONS_PANEL?: Maybe; - EMIT_GIFT_CARDS?: Maybe; - EVENTS?: Maybe; - HOST_DASHBOARD?: Maybe; - MULTI_CURRENCY_EXPENSES?: Maybe; - ORDER?: Maybe; - PAYPAL_DONATIONS?: Maybe; - PAYPAL_PAYOUTS?: Maybe; - PROJECTS?: Maybe; - RECEIVE_EXPENSES?: Maybe; - RECEIVE_FINANCIAL_CONTRIBUTIONS?: Maybe; - RECEIVE_HOST_APPLICATIONS?: Maybe; - RECURRING_CONTRIBUTIONS?: Maybe; - REQUEST_VIRTUAL_CARDS?: Maybe; - STRIPE_PAYMENT_INTENT?: Maybe; - TEAM?: Maybe; - TOP_FINANCIAL_CONTRIBUTORS?: Maybe; - TRANSACTIONS?: Maybe; - TRANSFERWISE?: Maybe; - UPDATES?: Maybe; - USE_EXPENSES?: Maybe; - USE_PAYMENT_METHODS?: Maybe; - VIRTUAL_CARDS?: Maybe; - /** The id of the account */ - id: Scalars['String']['output']; -}; - -/** This represents an Comment */ -export type Comment = { - __typename?: 'Comment'; - account?: Maybe; - createdAt?: Maybe; - fromAccount?: Maybe; - html?: Maybe; - id?: Maybe; - /** Returns a map of reactions counts for this comment */ - reactions?: Maybe; - /** The type of this comment */ - type: CommentType; - /** Returns the list of reactions added to this comment by logged in user */ - userReactions?: Maybe>>; -}; - -/** A collection of "Comments" */ -export type CommentCollection = Collection & { - __typename?: 'CommentCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Input to create a comment. You can only specify one entity type: expense, conversation, update or host application */ -export type CommentCreateInput = { - /** @deprecated 2022-08-26: Please use "conversation" */ - ConversationId?: InputMaybe; - conversation?: InputMaybe; - /** If your comment is linked to an expense, set it here */ - expense?: InputMaybe; - /** If your comment is linked to an host application, set it here */ - hostApplication?: InputMaybe; - html?: InputMaybe; - /** If your comment is linked to an order, set it here */ - order?: InputMaybe; - /** The type of the comment */ - type?: InputMaybe; - update?: InputMaybe; -}; - -export type CommentReferenceInput = { - /** The public id identifying the comment */ - id?: InputMaybe; -}; - -/** All supported comment contexts */ -export enum CommentType { - /** Default regular comment */ - COMMENT = 'COMMENT', - /** Comment is visible only to host admins */ - PRIVATE_NOTE = 'PRIVATE_NOTE' -} - -export type CommentUpdateInput = { - html?: InputMaybe; - id: Scalars['String']['input']; -}; - -/** Response for the confirmGuestAccount mutation */ -export type ConfirmGuestAccountResponse = { - __typename?: 'ConfirmGuestAccountResponse'; - /** A token that can be used to sign in */ - accessToken: Scalars['String']['output']; - /** The validated account */ - account: Account; -}; - -/** This represents a Connected Account */ -export type ConnectedAccount = { - __typename?: 'ConnectedAccount'; - /** The date on which the ConnectedAccount was created */ - createdAt: Scalars['DateTime']['output']; - /** Unique identifier for this connected account */ - id: Scalars['String']['output']; - /** - * The internal database identifier of the Connected Account (ie: 580) - * @deprecated 2020-05-01: should only be used during the transition to GraphQL API v2. - */ - legacyId?: Maybe; - service: ConnectedAccountService; - settings?: Maybe; - /** The date on which the ConnectedAccount was last updated */ - updatedAt: Scalars['DateTime']['output']; -}; - -export type ConnectedAccountCreateInput = { - /** Optional Client ID for the token or secret */ - clientId?: InputMaybe; - /** Private data related to the connected account */ - data?: InputMaybe; - /** Refresh token for the connected account */ - refreshToken?: InputMaybe; - /** Service which the connected account belongs to */ - service?: InputMaybe; - /** Public data related to the connected account */ - settings?: InputMaybe; - /** Secret token used to call service */ - token?: InputMaybe; - /** Optional username for the connected account */ - username?: InputMaybe; -}; - -export type ConnectedAccountReferenceInput = { - /** The public id identifying the connected account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The internal id of the account (ie: 580) */ - legacyId?: InputMaybe; -}; - -/** All supported services a user can connect with */ -export enum ConnectedAccountService { - github = 'github', - /** @deprecated Not using this service anymore */ - meetup = 'meetup', - paypal = 'paypal', - plaid = 'plaid', - /** @deprecated Not using this service anymore */ - privacy = 'privacy', - stripe = 'stripe', - stripe_customer = 'stripe_customer', - thegivingblock = 'thegivingblock', - transferwise = 'transferwise', - twitter = 'twitter' -} - -export enum ContributionFrequency { - MONTHLY = 'MONTHLY', - ONETIME = 'ONETIME', - YEARLY = 'YEARLY' -} - -/** Contribution statistics related to the given accounts */ -export type ContributionStats = { - __typename?: 'ContributionStats'; - /** The total number of contributions */ - contributionsCount: Scalars['Int']['output']; - /** The daily average income */ - dailyAverageIncomeAmount: Amount; - /** Number of one time contributions */ - oneTimeContributionsCount: Scalars['Int']['output']; - /** Number of recurring contributions */ - recurringContributionsCount: Scalars['Int']['output']; -}; - -/** - * - * A person or an entity that contributes financially or by any other mean to the mission - * of the collective. While "Member" is dedicated to permissions, this type is meant - * to surface all the public contributors and properly groups contributors who are part of - * multiple tiers. - * - */ -export type Contributor = { - __typename?: 'Contributor'; - account?: Maybe; - /** - * If the contributor has a page on Open Collective, this is the slug to link to it. Always null for incognito contributors - * @deprecated 2024-08-26: Use account.slug instead - */ - collectiveSlug?: Maybe; - /** Description of how the member contribute. Will usually be a tier name, or "design" or "code". */ - description?: Maybe; - /** A unique identifier for this member */ - id: Scalars['String']['output']; - /** - * Contributor avatar or logo - * @deprecated 2024-08-26: Use account.image instead - */ - image?: Maybe; - /** True if the contributor is a collective admin */ - isAdmin: Scalars['Boolean']['output']; - /** True if the contributor is a financial contributor */ - isBacker: Scalars['Boolean']['output']; - /** True if the contributor is a core contributor */ - isCore: Scalars['Boolean']['output']; - /** - * Defines if the contributors wants to be incognito (name not displayed) - * @deprecated 2024-08-26: Use account.isIncognito instead - */ - isIncognito: Scalars['Boolean']['output']; - /** - * Name of the contributor - * @deprecated 2024-08-26: Use account.name instead - */ - name: Scalars['String']['output']; - /** A public message from contributors to describe their contributions */ - publicMessage?: Maybe; - /** All the roles for a given contributor */ - roles?: Maybe>>; - /** Member join date */ - since: Scalars['DateTime']['output']; - /** How much money the user has contributed */ - totalAmountContributed: Amount; - /** - * How much money the user has contributed for this (in cents, using collective currency) - * @deprecated 2024-08-26: Use totalAmountContributed instead - */ - totalAmountDonated: Scalars['Int']['output']; - /** - * Whether the contributor is an individual, an organization... - * @deprecated 2024-08-26: Use account.type instead - */ - type: Scalars['String']['output']; -}; - - -/** - * - * A person or an entity that contributes financially or by any other mean to the mission - * of the collective. While "Member" is dedicated to permissions, this type is meant - * to surface all the public contributors and properly groups contributors who are part of - * multiple tiers. - * - */ -export type ContributorImageArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - -/** A collection of "Contributor" */ -export type ContributorCollection = Collection & { - __typename?: 'ContributorCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** A conversation thread */ -export type Conversation = { - __typename?: 'Conversation'; - account?: Maybe; - /** The root comment / starter for this conversation */ - body?: Maybe; - /** List the comments for this conversation. Not backed by a loader, don't use this in lists. */ - comments: CommentCollection; - createdAt: Scalars['DateTime']['output']; - followers: AccountCollection; - fromAccount?: Maybe; - id: Scalars['String']['output']; - slug: Scalars['String']['output']; - stats?: Maybe; - summary: Scalars['String']['output']; - tags?: Maybe>>; - title: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; -}; - - -/** A conversation thread */ -export type ConversationCommentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** A conversation thread */ -export type ConversationFollowersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -/** A collection of "Conversations" */ -export type ConversationCollection = Collection & { - __typename?: 'ConversationCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -export type ConversationReferenceInput = { - /** The public id identifying the conversation */ - id?: InputMaybe; - legacyId?: InputMaybe; -}; - -export type ConversationStats = { - __typename?: 'ConversationStats'; - /** Total number of comments for this conversation */ - commentsCount?: Maybe; - id: Scalars['String']['output']; -}; - -/** Two-letters country code following ISO3166_1 */ -export enum CountryIso { - /** Andorra */ - AD = 'AD', - /** The United Arab Emirates */ - AE = 'AE', - /** Afghanistan */ - AF = 'AF', - /** Antigua and Barbuda */ - AG = 'AG', - /** Anguilla */ - AI = 'AI', - /** Albania */ - AL = 'AL', - /** Armenia */ - AM = 'AM', - /** Angola */ - AO = 'AO', - /** Antarctica */ - AQ = 'AQ', - /** Argentina */ - AR = 'AR', - /** American Samoa */ - AS = 'AS', - /** Austria */ - AT = 'AT', - /** Australia */ - AU = 'AU', - /** Aruba */ - AW = 'AW', - /** Åland Islands */ - AX = 'AX', - /** Azerbaijan */ - AZ = 'AZ', - /** Bosnia and Herzegovina */ - BA = 'BA', - /** Barbados */ - BB = 'BB', - /** Bangladesh */ - BD = 'BD', - /** Belgium */ - BE = 'BE', - /** Burkina */ - BF = 'BF', - /** Bulgaria */ - BG = 'BG', - /** Bahrain */ - BH = 'BH', - /** Burundi */ - BI = 'BI', - /** Benin */ - BJ = 'BJ', - /** Saint Barthélemy */ - BL = 'BL', - /** Bermuda */ - BM = 'BM', - /** Brunei */ - BN = 'BN', - /** Bolivia */ - BO = 'BO', - /** Bonaire, Sint Eustatius and Saba */ - BQ = 'BQ', - /** Brazil */ - BR = 'BR', - /** The Bahamas */ - BS = 'BS', - /** Bhutan */ - BT = 'BT', - /** Bouvet Island */ - BV = 'BV', - /** Botswana */ - BW = 'BW', - /** Belarus */ - BY = 'BY', - /** Belize */ - BZ = 'BZ', - /** Canada */ - CA = 'CA', - /** Cocos Islands */ - CC = 'CC', - /** The Democratic Republic of the Congo */ - CD = 'CD', - /** The Central African Republic */ - CF = 'CF', - /** The Congo */ - CG = 'CG', - /** Switzerland */ - CH = 'CH', - /** Côte d'Ivoire */ - CI = 'CI', - /** Cook Islands */ - CK = 'CK', - /** Chile */ - CL = 'CL', - /** Cameroon */ - CM = 'CM', - /** China */ - CN = 'CN', - /** Colombia */ - CO = 'CO', - /** Costa Rica */ - CR = 'CR', - /** Cuba */ - CU = 'CU', - /** Cape Verde */ - CV = 'CV', - /** Curaçao */ - CW = 'CW', - /** Christmas Island */ - CX = 'CX', - /** Cyprus */ - CY = 'CY', - /** The Czech Republic */ - CZ = 'CZ', - /** Germany */ - DE = 'DE', - /** Djibouti */ - DJ = 'DJ', - /** Denmark */ - DK = 'DK', - /** Dominica */ - DM = 'DM', - /** The Dominican Republic */ - DO = 'DO', - /** Algeria */ - DZ = 'DZ', - /** Ecuador */ - EC = 'EC', - /** Estonia */ - EE = 'EE', - /** Egypt */ - EG = 'EG', - /** Western Sahara */ - EH = 'EH', - /** Eritrea */ - ER = 'ER', - /** Spain */ - ES = 'ES', - /** Ethiopia */ - ET = 'ET', - /** Finland */ - FI = 'FI', - /** Fiji */ - FJ = 'FJ', - /** Falkland Islands */ - FK = 'FK', - /** Micronesia */ - FM = 'FM', - /** Faroe Islands */ - FO = 'FO', - /** France */ - FR = 'FR', - /** Gabon */ - GA = 'GA', - /** The United Kingdom */ - GB = 'GB', - /** Grenada */ - GD = 'GD', - /** Georgia */ - GE = 'GE', - /** French Guiana */ - GF = 'GF', - /** Guernsey */ - GG = 'GG', - /** Ghana */ - GH = 'GH', - /** Gibraltar */ - GI = 'GI', - /** Greenland */ - GL = 'GL', - /** The Gambia */ - GM = 'GM', - /** Guinea */ - GN = 'GN', - /** Guadeloupe */ - GP = 'GP', - /** Equatorial Guinea */ - GQ = 'GQ', - /** Greece */ - GR = 'GR', - /** South Georgia and The South Sandwich Islands */ - GS = 'GS', - /** Guatemala */ - GT = 'GT', - /** Guam */ - GU = 'GU', - /** Guinea-Bissau */ - GW = 'GW', - /** Guyana */ - GY = 'GY', - /** Hong Kong */ - HK = 'HK', - /** Heard Island and McDonald Islands */ - HM = 'HM', - /** Honduras */ - HN = 'HN', - /** Croatia */ - HR = 'HR', - /** Haiti */ - HT = 'HT', - /** Hungary */ - HU = 'HU', - /** Indonesia */ - ID = 'ID', - /** Ireland */ - IE = 'IE', - /** Israel */ - IL = 'IL', - /** Isle of Man */ - IM = 'IM', - /** India */ - IN = 'IN', - /** The British Indian Ocean Territory */ - IO = 'IO', - /** Iraq */ - IQ = 'IQ', - /** Iran */ - IR = 'IR', - /** Iceland */ - IS = 'IS', - /** Italy */ - IT = 'IT', - /** Jersey */ - JE = 'JE', - /** Jamaica */ - JM = 'JM', - /** Jordan */ - JO = 'JO', - /** Japan */ - JP = 'JP', - /** Kenya */ - KE = 'KE', - /** Kyrgyzstan */ - KG = 'KG', - /** Cambodia */ - KH = 'KH', - /** Kiribati */ - KI = 'KI', - /** The Comoros */ - KM = 'KM', - /** Saint Kitts and Nevis */ - KN = 'KN', - /** The Democratic People's Republic of Korea */ - KP = 'KP', - /** The Republic of Korea */ - KR = 'KR', - /** Kuwait */ - KW = 'KW', - /** Cayman Islands */ - KY = 'KY', - /** Kazakhstan */ - KZ = 'KZ', - /** Laos */ - LA = 'LA', - /** Lebanon */ - LB = 'LB', - /** Saint Lucia */ - LC = 'LC', - /** Liechtenstein */ - LI = 'LI', - /** Sri Lanka */ - LK = 'LK', - /** Liberia */ - LR = 'LR', - /** Lesotho */ - LS = 'LS', - /** Lithuania */ - LT = 'LT', - /** Luxembourg */ - LU = 'LU', - /** Latvia */ - LV = 'LV', - /** Libya */ - LY = 'LY', - /** Morocco */ - MA = 'MA', - /** Monaco */ - MC = 'MC', - /** Moldova */ - MD = 'MD', - /** Montenegro */ - ME = 'ME', - /** Saint Martin */ - MF = 'MF', - /** Madagascar */ - MG = 'MG', - /** The Marshall Islands */ - MH = 'MH', - /** Macedonia */ - MK = 'MK', - /** Mali */ - ML = 'ML', - /** Myanmar */ - MM = 'MM', - /** Mongolia */ - MN = 'MN', - /** Macao */ - MO = 'MO', - /** Northern Mariana Islands */ - MP = 'MP', - /** Martinique */ - MQ = 'MQ', - /** Mauritania */ - MR = 'MR', - /** Montserrat */ - MS = 'MS', - /** Malta */ - MT = 'MT', - /** Mauritius */ - MU = 'MU', - /** Maldives */ - MV = 'MV', - /** Malawi */ - MW = 'MW', - /** Mexico */ - MX = 'MX', - /** Malaysia */ - MY = 'MY', - /** Mozambique */ - MZ = 'MZ', - /** Namibia */ - NA = 'NA', - /** New Caledonia */ - NC = 'NC', - /** The Niger */ - NE = 'NE', - /** Norfolk Island */ - NF = 'NF', - /** Nigeria */ - NG = 'NG', - /** Nicaragua */ - NI = 'NI', - /** The Netherlands */ - NL = 'NL', - /** Norway */ - NO = 'NO', - /** Nepal */ - NP = 'NP', - /** Nauru */ - NR = 'NR', - /** Niue */ - NU = 'NU', - /** New Zealand */ - NZ = 'NZ', - /** Oman */ - OM = 'OM', - /** Panama */ - PA = 'PA', - /** Peru */ - PE = 'PE', - /** French Polynesia */ - PF = 'PF', - /** Papua New Guinea */ - PG = 'PG', - /** The Philippines */ - PH = 'PH', - /** Pakistan */ - PK = 'PK', - /** Poland */ - PL = 'PL', - /** Saint Pierre and Miquelon */ - PM = 'PM', - /** Pitcairn */ - PN = 'PN', - /** Puerto Rico */ - PR = 'PR', - /** The Occupied Palestinian Territory */ - PS = 'PS', - /** Portugal */ - PT = 'PT', - /** Palau */ - PW = 'PW', - /** Paraguay */ - PY = 'PY', - /** Qatar */ - QA = 'QA', - /** Réunion */ - RE = 'RE', - /** Romania */ - RO = 'RO', - /** Serbia */ - RS = 'RS', - /** Russia */ - RU = 'RU', - /** Rwanda */ - RW = 'RW', - /** Saudi Arabia */ - SA = 'SA', - /** Solomon Islands */ - SB = 'SB', - /** Seychelles */ - SC = 'SC', - /** The Sudan */ - SD = 'SD', - /** Sweden */ - SE = 'SE', - /** Singapore */ - SG = 'SG', - /** Saint Helena */ - SH = 'SH', - /** Slovenia */ - SI = 'SI', - /** Svalbard and Jan Mayen */ - SJ = 'SJ', - /** Slovakia */ - SK = 'SK', - /** Sierra Leone */ - SL = 'SL', - /** San Marino */ - SM = 'SM', - /** Senegal */ - SN = 'SN', - /** Somalia */ - SO = 'SO', - /** Suriname */ - SR = 'SR', - /** South Sudan */ - SS = 'SS', - /** Sao Tome and Principe */ - ST = 'ST', - /** El Salvador */ - SV = 'SV', - /** Sint Maarten */ - SX = 'SX', - /** Syria */ - SY = 'SY', - /** Swaziland */ - SZ = 'SZ', - /** Turks and Caicos Islands */ - TC = 'TC', - /** Chad */ - TD = 'TD', - /** The French Southern Territories */ - TF = 'TF', - /** Togo */ - TG = 'TG', - /** Thailand */ - TH = 'TH', - /** Tajikistan */ - TJ = 'TJ', - /** Tokelau */ - TK = 'TK', - /** Timor-Leste */ - TL = 'TL', - /** Turkmenistan */ - TM = 'TM', - /** Tunisia */ - TN = 'TN', - /** Tonga */ - TO = 'TO', - /** Turkey */ - TR = 'TR', - /** Trinidad and Tobago */ - TT = 'TT', - /** Tuvalu */ - TV = 'TV', - /** Taiwan */ - TW = 'TW', - /** Tanzania */ - TZ = 'TZ', - /** Ukraine */ - UA = 'UA', - /** Uganda */ - UG = 'UG', - /** United States Minor Outlying Islands */ - UM = 'UM', - /** The United States */ - US = 'US', - /** Uruguay */ - UY = 'UY', - /** Uzbekistan */ - UZ = 'UZ', - /** The Holy See */ - VA = 'VA', - /** Saint Vincent and The Grenadines */ - VC = 'VC', - /** Venezuela */ - VE = 'VE', - /** British Virgin Islands */ - VG = 'VG', - /** US Virgin Islands */ - VI = 'VI', - /** Viet Nam */ - VN = 'VN', - /** Vanuatu */ - VU = 'VU', - /** Wallis and Futuna */ - WF = 'WF', - /** Samoa */ - WS = 'WS', - /** Yemen */ - YE = 'YE', - /** Mayotte */ - YT = 'YT', - /** South Africa */ - ZA = 'ZA', - /** Zambia */ - ZM = 'ZM', - /** Zimbabwe */ - ZW = 'ZW' -} - -/** This represents a Credit transaction */ -export type Credit = Transaction & { - __typename?: 'Credit'; - /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ - account?: Maybe; - amount: Amount; - amountInHostCurrency: Amount; - balanceInHostCurrency?: Maybe; - clearedAt?: Maybe; - createdAt?: Maybe; - description?: Maybe; - expense?: Maybe; - fromAccount?: Maybe; - /** Account that emitted the gift card used for this transaction (if any) */ - giftCardEmitterAccount?: Maybe; - group: Scalars['String']['output']; - host?: Maybe; - /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ - hostCurrencyFxRate?: Maybe; - hostFee: Amount; - id: Scalars['String']['output']; - invoiceTemplate?: Maybe; - isDisputed?: Maybe; - isInReview?: Maybe; - isOrderRejected: Scalars['Boolean']['output']; - isRefund?: Maybe; - isRefunded?: Maybe; - kind?: Maybe; - legacyId: Scalars['Int']['output']; - /** Merchant ID related to the Transaction (Stripe, PayPal, Wise, Privacy) */ - merchantId?: Maybe; - netAmount: Amount; - netAmountInHostCurrency: Amount; - /** The account on the opposite side of the transaction (CREDIT -> sender, DEBIT -> recipient) */ - oppositeAccount?: Maybe; - /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ - oppositeTransaction?: Maybe; - order?: Maybe; - paymentMethod?: Maybe; - /** Payment Processor Fee (usually in host currency) */ - paymentProcessorFee: Amount; - paymentProcessorUrl?: Maybe; - payoutMethod?: Maybe; - /** The permissions given to current logged in user for this transaction */ - permissions: TransactionPermissions; - platformFee: Amount; - refundTransaction?: Maybe; - relatedTransactions: Array>; - taxAmount: Amount; - /** If a tax is set, this field will contain more info about the tax */ - taxInfo?: Maybe; - toAccount?: Maybe; - type: TransactionType; - updatedAt?: Maybe; - /** @deprecated 2021-08-15: Use id instead. */ - uuid: Scalars['String']['output']; -}; - - -/** This represents a Credit transaction */ -export type CreditDescriptionArgs = { - dynamic?: InputMaybe; - full?: InputMaybe; -}; - - -/** This represents a Credit transaction */ -export type CreditHostFeeArgs = { - fetchHostFee?: InputMaybe; -}; - - -/** This represents a Credit transaction */ -export type CreditNetAmountArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** This represents a Credit transaction */ -export type CreditNetAmountInHostCurrencyArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** This represents a Credit transaction */ -export type CreditPaymentProcessorFeeArgs = { - fetchPaymentProcessorFee?: InputMaybe; -}; - - -/** This represents a Credit transaction */ -export type CreditRelatedTransactionsArgs = { - kind?: InputMaybe>>; -}; - - -/** This represents a Credit transaction */ -export type CreditTaxAmountArgs = { - fetchTax?: InputMaybe; -}; - -export type CreditCardCreateInput = { - /** @deprecated 2022-11-22: the `token` parameter is sufficient */ - brand?: InputMaybe; - /** @deprecated 2022-11-22: the `token` parameter is sufficient */ - country?: InputMaybe; - /** @deprecated 2022-11-22: the `token` parameter is sufficient */ - expMonth?: InputMaybe; - /** @deprecated 2022-11-22: the `token` parameter is sufficient */ - expYear?: InputMaybe; - /** @deprecated 2022-11-22: the field was not used since 2017 */ - fullName?: InputMaybe; - /** @deprecated 2022-11-22: the `token` parameter is sufficient */ - funding?: InputMaybe; - token: Scalars['String']['input']; - zip?: InputMaybe; -}; - -export type CreditCardWithStripeError = { - __typename?: 'CreditCardWithStripeError'; - /** The payment method created */ - paymentMethod: PaymentMethod; - /** This field will be set if there was an error with Stripe during strong customer authentication */ - stripeError?: Maybe; -}; - -/** All supported currencies */ -export enum Currency { - /** UAE Dirham */ - AED = 'AED', - /** Afghani */ - AFN = 'AFN', - /** Lek */ - ALL = 'ALL', - /** Armenian Dram */ - AMD = 'AMD', - /** Netherlands Antillean Guilder */ - ANG = 'ANG', - /** Kwanza */ - AOA = 'AOA', - /** Argentine Peso */ - ARS = 'ARS', - /** Australian Dollar */ - AUD = 'AUD', - /** Aruban Florin */ - AWG = 'AWG', - /** Azerbaijanian Manat */ - AZN = 'AZN', - /** Convertible Mark */ - BAM = 'BAM', - /** Barbados Dollar */ - BBD = 'BBD', - /** Taka */ - BDT = 'BDT', - /** Bulgarian Lev */ - BGN = 'BGN', - /** Burundi Franc */ - BIF = 'BIF', - /** Bermudian Dollar */ - BMD = 'BMD', - /** Brunei Dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian Real */ - BRL = 'BRL', - /** Bahamian Dollar */ - BSD = 'BSD', - /** Pula */ - BWP = 'BWP', - /** Belarussian Ruble */ - BYN = 'BYN', - /** Belize Dollar */ - BZD = 'BZD', - /** Canadian Dollar */ - CAD = 'CAD', - /** Congolese Franc */ - CDF = 'CDF', - /** Swiss Franc */ - CHF = 'CHF', - /** Chilean Peso */ - CLP = 'CLP', - /** Yuan Renminbi */ - CNY = 'CNY', - /** Colombian Peso */ - COP = 'COP', - /** Costa Rican Colon */ - CRC = 'CRC', - /** Cabo Verde Escudo */ - CVE = 'CVE', - /** Czech Koruna */ - CZK = 'CZK', - /** Djibouti Franc */ - DJF = 'DJF', - /** Danish Krone */ - DKK = 'DKK', - /** Dominican Peso */ - DOP = 'DOP', - /** Algerian Dinar */ - DZD = 'DZD', - /** Egyptian Pound */ - EGP = 'EGP', - /** Ethiopian Birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji Dollar */ - FJD = 'FJD', - /** Falkland Islands Pound */ - FKP = 'FKP', - /** Pound Sterling */ - GBP = 'GBP', - /** Lari */ - GEL = 'GEL', - /** Gibraltar Pound */ - GIP = 'GIP', - /** Dalasi */ - GMD = 'GMD', - /** Guinea Franc */ - GNF = 'GNF', - /** Quetzal */ - GTQ = 'GTQ', - /** Guyana Dollar */ - GYD = 'GYD', - /** Hong Kong Dollar */ - HKD = 'HKD', - /** Lempira */ - HNL = 'HNL', - /** Kuna */ - HRK = 'HRK', - /** Gourde */ - HTG = 'HTG', - /** Forint */ - HUF = 'HUF', - /** Rupiah */ - IDR = 'IDR', - /** New Israeli Sheqel */ - ILS = 'ILS', - /** Indian Rupee */ - INR = 'INR', - /** Iceland Krona */ - ISK = 'ISK', - /** Jamaican Dollar */ - JMD = 'JMD', - /** Yen */ - JPY = 'JPY', - /** Kenyan Shilling */ - KES = 'KES', - /** Som */ - KGS = 'KGS', - /** Riel */ - KHR = 'KHR', - /** Comoro Franc */ - KMF = 'KMF', - /** Won */ - KRW = 'KRW', - /** Cayman Islands Dollar */ - KYD = 'KYD', - /** Tenge */ - KZT = 'KZT', - /** Kip */ - LAK = 'LAK', - /** Lebanese Pound */ - LBP = 'LBP', - /** Sri Lanka Rupee */ - LKR = 'LKR', - /** Liberian Dollar */ - LRD = 'LRD', - /** Loti */ - LSL = 'LSL', - /** Moroccan Dirham */ - MAD = 'MAD', - /** Moldovan Leu */ - MDL = 'MDL', - /** Malagasy Ariary */ - MGA = 'MGA', - /** Denar */ - MKD = 'MKD', - /** Kyat */ - MMK = 'MMK', - /** Tugrik */ - MNT = 'MNT', - /** Pataca */ - MOP = 'MOP', - /** Mauritius Rupee */ - MUR = 'MUR', - /** Rufiyaa */ - MVR = 'MVR', - /** Kwacha */ - MWK = 'MWK', - /** Mexican Peso */ - MXN = 'MXN', - /** Malaysian Ringgit */ - MYR = 'MYR', - /** Mozambique Metical */ - MZN = 'MZN', - /** Namibia Dollar */ - NAD = 'NAD', - /** Naira */ - NGN = 'NGN', - /** Cordoba Oro */ - NIO = 'NIO', - /** Norwegian Krone */ - NOK = 'NOK', - /** Nepalese Rupee */ - NPR = 'NPR', - /** New Zealand Dollar */ - NZD = 'NZD', - /** Balboa */ - PAB = 'PAB', - /** Nuevo Sol */ - PEN = 'PEN', - /** Kina */ - PGK = 'PGK', - /** Philippine Peso */ - PHP = 'PHP', - /** Pakistan Rupee */ - PKR = 'PKR', - /** Zloty */ - PLN = 'PLN', - /** Guarani */ - PYG = 'PYG', - /** Qatari Rial */ - QAR = 'QAR', - /** Romanian Leu */ - RON = 'RON', - /** Serbian Dinar */ - RSD = 'RSD', - /** Russian Ruble */ - RUB = 'RUB', - /** Rwanda Franc */ - RWF = 'RWF', - /** Saudi Riyal */ - SAR = 'SAR', - /** Solomon Islands Dollar */ - SBD = 'SBD', - /** Seychelles Rupee */ - SCR = 'SCR', - /** Swedish Krona */ - SEK = 'SEK', - /** Singapore Dollar */ - SGD = 'SGD', - /** Saint Helena Pound */ - SHP = 'SHP', - /** Leone */ - SLL = 'SLL', - /** Somali Shilling */ - SOS = 'SOS', - /** Surinam Dollar */ - SRD = 'SRD', - /** Lilangeni */ - SZL = 'SZL', - /** Baht */ - THB = 'THB', - /** Somoni */ - TJS = 'TJS', - /** Pa’anga */ - TOP = 'TOP', - /** Turkish Lira */ - TRY = 'TRY', - /** Trinidad and Tobago Dollar */ - TTD = 'TTD', - /** New Taiwan Dollar */ - TWD = 'TWD', - /** Tanzanian Shilling */ - TZS = 'TZS', - /** Hryvnia */ - UAH = 'UAH', - /** Uganda Shilling */ - UGX = 'UGX', - /** US Dollar */ - USD = 'USD', - /** Peso Uruguayo */ - UYU = 'UYU', - /** Uzbekistan Sum */ - UZS = 'UZS', - /** Dong */ - VND = 'VND', - /** Vatu */ - VUV = 'VUV', - /** Tala */ - WST = 'WST', - /** CFA Franc BEAC */ - XAF = 'XAF', - /** East Caribbean Dollar */ - XCD = 'XCD', - /** CFA Franc BCEAO */ - XOF = 'XOF', - /** CFP Franc */ - XPF = 'XPF', - /** Yemeni Rial */ - YER = 'YER', - /** Rand */ - ZAR = 'ZAR', - /** Zambian Kwacha */ - ZMW = 'ZMW' -} - -/** Fields for a currency fx rate */ -export type CurrencyExchangeRate = { - __typename?: 'CurrencyExchangeRate'; - /** Date of the FX rate */ - date: Scalars['DateTime']['output']; - fromCurrency: Currency; - /** Is the FX rate approximate or a fixed value? */ - isApproximate: Scalars['Boolean']['output']; - /** Where does the FX rate comes from */ - source: CurrencyExchangeRateSourceType; - toCurrency: Currency; - /** Exchange rate value as a scalar (e.g 1.15 or 0.86) */ - value: Scalars['Float']['output']; -}; - -/** Fields for a currency exchange rate */ -export type CurrencyExchangeRateInput = { - /** Date of the FX rate */ - date: Scalars['DateTime']['input']; - fromCurrency: Currency; - /** Where does the FX rate comes from */ - source: CurrencyExchangeRateSourceType; - toCurrency: Currency; - /** Exchange rate value as a float (e.g 1.15 or 0.86) */ - value: Scalars['Float']['input']; -}; - -/** Request for a currency exchange rate */ -export type CurrencyExchangeRateRequest = { - /** Date of the exchange rate. Defaults to now. */ - date?: InputMaybe; - /** Currency to convert from */ - fromCurrency: Currency; - /** Currency to convert to */ - toCurrency: Currency; -}; - -/** Where does the FX rate come from */ -export enum CurrencyExchangeRateSourceType { - /** Open Collective internal system, relying on caching and 3rd party APIs */ - OPENCOLLECTIVE = 'OPENCOLLECTIVE', - /** PayPal API */ - PAYPAL = 'PAYPAL', - /** User-provided exchange rate */ - USER = 'USER', - /** Wise API */ - WISE = 'WISE' -} - -/** All possible DateTime fields for a resource */ -export enum DateTimeField { - /** The creation time of a resource */ - CREATED_AT = 'CREATED_AT', - /** Transactions only: The date when a transaction was cleared by the payment processor */ - EFFECTIVE_DATE = 'EFFECTIVE_DATE', - /** Orders only: The date when an order was last charged, defaults to createdAt if never charged */ - LAST_CHARGED_AT = 'LAST_CHARGED_AT' -} - -/** This represents a Debit transaction */ -export type Debit = Transaction & { - __typename?: 'Debit'; - /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ - account?: Maybe; - amount: Amount; - amountInHostCurrency: Amount; - balanceInHostCurrency?: Maybe; - clearedAt?: Maybe; - createdAt?: Maybe; - description?: Maybe; - expense?: Maybe; - fromAccount?: Maybe; - /** Account that emitted the gift card used for this transaction (if any) */ - giftCardEmitterAccount?: Maybe; - group: Scalars['String']['output']; - host?: Maybe; - /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ - hostCurrencyFxRate?: Maybe; - hostFee: Amount; - id: Scalars['String']['output']; - invoiceTemplate?: Maybe; - isDisputed?: Maybe; - isInReview?: Maybe; - isOrderRejected: Scalars['Boolean']['output']; - isRefund?: Maybe; - isRefunded?: Maybe; - kind?: Maybe; - legacyId: Scalars['Int']['output']; - /** Merchant ID related to the Transaction (Stripe, PayPal, Wise, Privacy) */ - merchantId?: Maybe; - netAmount: Amount; - netAmountInHostCurrency: Amount; - /** The account on the opposite side of the transaction (CREDIT -> sender, DEBIT -> recipient) */ - oppositeAccount?: Maybe; - /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ - oppositeTransaction?: Maybe; - order?: Maybe; - paymentMethod?: Maybe; - /** Payment Processor Fee (usually in host currency) */ - paymentProcessorFee: Amount; - paymentProcessorUrl?: Maybe; - payoutMethod?: Maybe; - /** The permissions given to current logged in user for this transaction */ - permissions: TransactionPermissions; - platformFee: Amount; - refundTransaction?: Maybe; - relatedTransactions: Array>; - taxAmount: Amount; - /** If a tax is set, this field will contain more info about the tax */ - taxInfo?: Maybe; - toAccount?: Maybe; - type: TransactionType; - updatedAt?: Maybe; - /** @deprecated 2021-08-15: Use id instead. */ - uuid: Scalars['String']['output']; -}; - - -/** This represents a Debit transaction */ -export type DebitDescriptionArgs = { - dynamic?: InputMaybe; - full?: InputMaybe; -}; - - -/** This represents a Debit transaction */ -export type DebitHostFeeArgs = { - fetchHostFee?: InputMaybe; -}; - - -/** This represents a Debit transaction */ -export type DebitNetAmountArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** This represents a Debit transaction */ -export type DebitNetAmountInHostCurrencyArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** This represents a Debit transaction */ -export type DebitPaymentProcessorFeeArgs = { - fetchPaymentProcessorFee?: InputMaybe; -}; - - -/** This represents a Debit transaction */ -export type DebitRelatedTransactionsArgs = { - kind?: InputMaybe>>; -}; - - -/** This represents a Debit transaction */ -export type DebitTaxAmountArgs = { - fetchTax?: InputMaybe; -}; - -/** Which data should be copied when duplicating the account */ -export type DuplicateAccountDataTypeInput = { - admins?: Scalars['Boolean']['input']; - events?: Scalars['Boolean']['input']; - projects?: Scalars['Boolean']['input']; - tiers?: Scalars['Boolean']['input']; -}; - -export type Expense_Author_Cannot_Approve = { - __typename?: 'EXPENSE_AUTHOR_CANNOT_APPROVE'; - amountInCents?: Maybe; - appliesToHostedCollectives?: Maybe; - appliesToSingleAdminCollectives?: Maybe; - enabled?: Maybe; -}; - -export type Expense_Categorization = { - __typename?: 'EXPENSE_CATEGORIZATION'; - requiredForCollectiveAdmins?: Maybe; - requiredForExpenseSubmitters?: Maybe; -}; - -export type Expense_Policies = { - __typename?: 'EXPENSE_POLICIES'; - invoicePolicy?: Maybe; - receiptPolicy?: Maybe; - titlePolicy?: Maybe; -}; - -export type EmojiReactionResponse = { - __typename?: 'EmojiReactionResponse'; - /** Reference to the comment corresponding to the emojis */ - comment?: Maybe; - /** Reference to the update corresponding to the emojis */ - update?: Maybe; -}; - -/** This represents an Event account */ -export type Event = Account & AccountWithContributions & AccountWithHost & AccountWithParent & { - __typename?: 'Event'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - /** Date of approval by the Fiscal Host. */ - approvedAt?: Maybe; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** The Event end date and time */ - endsAt?: Maybe; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Returns the Fiscal Host */ - host?: Maybe; - /** Returns agreements this account has with its host, or null if not enough permissions. */ - hostAgreements?: Maybe; - /** Returns the Fiscal Host application */ - hostApplication?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** Fees percentage that the host takes for this collective */ - hostFeePercent?: Maybe; - /** Describe how the host charges the collective */ - hostFeesStructure?: Maybe; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether it's active: can accept financial contributions and pay expenses. */ - isActive: Scalars['Boolean']['output']; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether it's approved by the Fiscal Host */ - isApproved: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** The Account parenting this account */ - parent?: Maybe; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - /** The Event start date and time */ - startsAt?: Maybe; - stats?: Maybe; - summary?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Timezone of the Event (TZ database format, e.g. UTC or Europe/Berlin) */ - timezone?: Maybe; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date when the collective was last unfrozen by current Fiscal Host */ - unfrozenAt?: Maybe; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Event account */ -export type EventActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventHostAgreementsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventHostFeePercentArgs = { - paymentMethodService?: InputMaybe; - paymentMethodType?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventSummaryArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents an Event account */ -export type EventUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Event account */ -export type EventVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Event account */ -export type EventVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents an Event account */ -export type EventWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type EventCreateInput = { - /** The profile background image, for the banner and social media sharing */ - backgroundImage?: InputMaybe; - description?: InputMaybe; - /** The Event end date and time */ - endsAt: Scalars['DateTime']['input']; - /** The profile avatar image */ - image?: InputMaybe; - name: Scalars['String']['input']; - settings?: InputMaybe; - slug?: InputMaybe; - /** The Event start date and time */ - startsAt: Scalars['DateTime']['input']; - tags?: InputMaybe>>; - /** Timezone of the Event (TZ database format, e.g. UTC or Europe/Berlin) */ - timezone: Scalars['String']['input']; -}; - -/** Expected funds filter (ALL_EXPECTED_FUNDS, ONLY_PENDING, ONLY_MANUAL) */ -export enum ExpectedFundsFilter { - ALL_EXPECTED_FUNDS = 'ALL_EXPECTED_FUNDS', - ONLY_MANUAL = 'ONLY_MANUAL', - ONLY_PENDING = 'ONLY_PENDING' -} - -/** This represents an Expense */ -export type Expense = { - __typename?: 'Expense'; - /** The account where the expense was submitted */ - account: Account; - /** - * The exchange rate between the expense currency and the account currency - * @deprecated 2022-02-09: Please use amountV2 - */ - accountCurrencyFxRate: Scalars['Float']['output']; - /** The accounting category attached to this expense */ - accountingCategory?: Maybe; - /** The list of activities (ie. approved, edited, etc) for this expense ordered by date ascending */ - activities: Array; - /** - * Total amount of the expense (sum of the item's amounts). - * @deprecated 2022-02-09: Please use amountV2 - */ - amount: Scalars['Int']['output']; - /** Total amount of the expense */ - amountV2?: Maybe; - /** The accounts who approved this expense */ - approvedBy: Array>; - /** (Optional) files attached to the expense */ - attachedFiles?: Maybe>; - /** Returns the list of comments for this expense, or `null` if user is not allowed to see them */ - comments?: Maybe; - /** The time of creation */ - createdAt: Scalars['DateTime']['output']; - /** The account who created this expense */ - createdByAccount?: Maybe; - /** Currency that should be used for the payout */ - currency: Currency; - /** Custom data for this expense */ - customData?: Maybe; - /** Title/main description for this expense */ - description: Scalars['String']['output']; - /** Drafted field values that were still not persisted */ - draft?: Maybe; - /** [Host Admin only] Key to access the draft of this expense */ - draftKey?: Maybe; - /** The fees payer for this expense */ - feesPayer: FeesPayer; - /** The account from where the expense was paid */ - host?: Maybe; - id: Scalars['String']['output']; - /** Information to display on the invoice. Only visible to user and admins. */ - invoiceInfo?: Maybe; - items?: Maybe>>; - /** Legacy ID as returned by API V1. Avoid relying on this field as it may be removed in the future. */ - legacyId: Scalars['Int']['output']; - /** Returns the list of legal documents attached to this expense. Must be logged in as a host admin. */ - legalDocuments?: Maybe; - /** Fields that cannot be edited on this expense */ - lockedFields?: Maybe>>; - /** Longer description for this expense */ - longDescription?: Maybe; - /** The merchant ID for this expense */ - merchantId?: Maybe; - /** Whether this expense is on hold */ - onHold?: Maybe; - /** The account who paid this expense */ - paidBy?: Maybe; - /** The account being paid by this expense */ - payee: Account; - /** The address of the payee */ - payeeLocation?: Maybe; - paymentMethod?: Maybe; - /** The payout method to use for this expense */ - payoutMethod?: Maybe; - /** The permissions given to current logged in user for this expense */ - permissions: ExpensePermissions; - /** Additional information about the payment as HTML. Only visible to user and admins. */ - privateMessage?: Maybe; - quote?: Maybe; - recurringExpense?: Maybe; - /** User-provided reference number or any other identifier that references the invoice */ - reference?: Maybe; - /** The account that requested this expense to be submitted */ - requestedByAccount?: Maybe; - /** Returns the list of legal documents required from the payee before the expense can be payed. Must be logged in. */ - requiredLegalDocuments?: Maybe>>; - /** [Admin only] Security checks for this expense. Only available to expenses under trusted hosts. */ - securityChecks?: Maybe>>; - /** The state of the expense (pending, approved, paid, rejected...etc) */ - status: ExpenseStatus; - tags: Array>; - /** Taxes applied to this expense */ - taxes: Array>; - /** The reference text used in the payment transfer */ - transferReference?: Maybe; - /** Whether this expense is a receipt or an invoice */ - type: ExpenseType; - validateTransferRequirements?: Maybe>>; - /** If available, this field will contain a breakdown of the expense values depending on who edited it */ - valuesByRole?: Maybe; - /** The virtual card used to pay for this charge */ - virtualCard?: Maybe; -}; - - -/** This represents an Expense */ -export type ExpenseAmountV2Args = { - currencySource?: InputMaybe; -}; - - -/** This represents an Expense */ -export type ExpenseCommentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; -}; - - -/** This represents an Expense */ -export type ExpenseLegalDocumentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Expense */ -export type ExpenseValidateTransferRequirementsArgs = { - details?: InputMaybe; -}; - -/** Fields for an expense's attached file */ -export type ExpenseAttachedFile = { - __typename?: 'ExpenseAttachedFile'; - /** Unique identifier for this file */ - id: Scalars['String']['output']; - /** The file info associated with this item (if any) */ - info?: Maybe; - /** - * The original filename - * @deprecated 2023-01-23: We're moving this field to "file.name" - */ - name?: Maybe; - url?: Maybe; -}; - -export type ExpenseAttachedFileInput = { - /** ID of the file */ - id?: InputMaybe; - /** - * Original filename - * @deprecated 2023-02-02: This must now be provided when uploading the file. This parameter will be ignored. - */ - name?: InputMaybe; - /** URL of the file */ - url: Scalars['URL']['input']; -}; - -/** A collection of "Expenses" */ -export type ExpenseCollection = Collection & { - __typename?: 'ExpenseCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalAmount?: Maybe; - totalCount?: Maybe; -}; - -export type ExpenseCollectionTotalAmount = { - __typename?: 'ExpenseCollectionTotalAmount'; - amount?: Maybe; - amountsByCurrency?: Maybe>>; -}; - - -export type ExpenseCollectionTotalAmountAmountArgs = { - currency?: InputMaybe; -}; - -export type ExpenseCreateInput = { - /** The accounting category this expense belongs to */ - accountingCategory?: InputMaybe; - /** (Optional) A list of files that you want to attach to this expense */ - attachedFiles?: InputMaybe>; - /** Currency that should be used for the payout. Defaults to the account currency */ - currency?: InputMaybe; - /** Custom data to be stored in the expense */ - customData?: InputMaybe; - /** Main title of the expense */ - description: Scalars['String']['input']; - /** Custom information to print on the invoice */ - invoiceInfo?: InputMaybe; - /** The list of items for this expense. Total amount will be computed from them. */ - items?: InputMaybe>>; - /** Longer text to attach to the expense */ - longDescription?: InputMaybe; - /** Account to reimburse */ - payee: AccountReferenceInput; - /** The address of the payee */ - payeeLocation?: InputMaybe; - /** The payout method that will be used to reimburse the expense */ - payoutMethod: PayoutMethodInput; - /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ - privateMessage?: InputMaybe; - /** User-provided reference number or any other identifier that references the invoice */ - reference?: InputMaybe; - /** Tags associated to the expense (ie. Food, Engineering...) */ - tags?: InputMaybe>>; - /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ - tax?: InputMaybe>>; - /** The type of the expense */ - type: ExpenseType; -}; - -/** All supported expense currency sources */ -export enum ExpenseCurrencySource { - /** The expense currency expressed as the account currency */ - ACCOUNT = 'ACCOUNT', - /** The expense currency expressed as the expense currency */ - CREATED_BY_ACCOUNT = 'CREATED_BY_ACCOUNT', - /** The expense currency expressed as the expense currency */ - EXPENSE = 'EXPENSE', - /** The expense currency expressed as the host currency */ - HOST = 'HOST' -} - -/** Describes the role in which an account is involved in an expense. This is used to filter */ -export enum ExpenseDirection { - /** Received: The account is the one who received the expense and the one who's paying for it. */ - RECEIVED = 'RECEIVED', - /** Submitted: The account is the one who submitted the expense and possibly the beneficiary. */ - SUBMITTED = 'SUBMITTED' -} - -export type ExpenseInviteDraftInput = { - /** The accounting category this expense belongs to */ - accountingCategory?: InputMaybe; - /** (Optional) A list of files that you want to attach to this expense */ - attachedFiles?: InputMaybe>>; - /** Currency that should be used for the payout. Defaults to the account currency */ - currency?: InputMaybe; - /** Custom data to be stored in the expense */ - customData?: InputMaybe; - /** Main title of the expense */ - description?: InputMaybe; - /** Custom information to print on the invoice */ - invoiceInfo?: InputMaybe; - /** The list of items for this expense. Total amount will be computed from them. */ - items?: InputMaybe>>; - /** Longer text to attach to the expense */ - longDescription?: InputMaybe; - /** Account to reimburse */ - payee: ExpenseInvitee; - /** The address of the payee */ - payeeLocation?: InputMaybe; - /** The payout method that will be used to reimburse the expense */ - payoutMethod?: InputMaybe; - /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ - privateMessage?: InputMaybe; - /** Note to be sent to the invited user through email. */ - recipientNote?: InputMaybe; - /** User-provided reference number or any other identifier that references the invoice */ - reference?: InputMaybe; - /** Tags associated to the expense (ie. Food, Engineering...) */ - tags?: InputMaybe>>; - /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ - tax?: InputMaybe>>; - /** The type of the expense */ - type: ExpenseType; -}; - -export type ExpenseInvitee = { - email?: InputMaybe; - /** @deprecated 2023-04-12: Please use legacyId */ - id?: InputMaybe; - isInvite?: InputMaybe; - legacyId?: InputMaybe; - name?: InputMaybe; - organization?: InputMaybe; - slug?: InputMaybe; -}; - -export type ExpenseInviteeOrganizationInput = { - description?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - website?: InputMaybe; -}; - -/** Fields for an expense item */ -export type ExpenseItem = { - __typename?: 'ExpenseItem'; - /** - * Amount of this item - * @deprecated Please use `amountV2` - */ - amount: Scalars['Int']['output']; - /** Amount of this item */ - amountV2: Amount; - /** The date on which the item was created */ - createdAt: Scalars['DateTime']['output']; - /** A description for this item. Enforced for new items, but old expenses may not have one. */ - description?: Maybe; - /** The file associated with this item (if any) */ - file?: Maybe; - /** Unique identifier for this expense item */ - id: Scalars['String']['output']; - /** The date on which the expense took place */ - incurredAt: Scalars['DateTime']['output']; - /** If the item currency is different than the expense currency, this field will expose the average exchange rate for this date as recorded by Open Collective. Used to decide whether the value in `amountV2.exchangeRate` looks correct. */ - referenceExchangeRate?: Maybe; - /** The date on which the item was last updated */ - updatedAt: Scalars['DateTime']['output']; - url?: Maybe; -}; - -export type ExpenseItemCreateInput = { - /** - * Amount in cents - * @deprecated Please use `amountV2` - */ - amount?: InputMaybe; - /** Amount */ - amountV2?: InputMaybe; - /** What is this item about? */ - description: Scalars['String']['input']; - /** When was the money spent? */ - incurredAt?: InputMaybe; - /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ - url?: InputMaybe; -}; - -export type ExpenseItemInput = { - /** - * Amount in cents - * @deprecated Please use `amountV2` - */ - amount?: InputMaybe; - /** Amount */ - amountV2?: InputMaybe; - /** What is this item about? */ - description?: InputMaybe; - /** ID of the item */ - id?: InputMaybe; - /** When was the money spent? */ - incurredAt?: InputMaybe; - /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ - url?: InputMaybe; -}; - -export type ExpenseItemParsedFileInfo = { - __typename?: 'ExpenseItemParsedFileInfo'; - amount?: Maybe; - description?: Maybe; - incurredAt?: Maybe; - url?: Maybe; -}; - -/** All fields that can be locked on an expense draft */ -export enum ExpenseLockableFields { - /** Locks items' amount and currency, and it also blocks the hability to add new items. */ - AMOUNT = 'AMOUNT', - /** Locks the description field. */ - DESCRIPTION = 'DESCRIPTION', - /** Locks the payee field, if the user is not on the platform it locks its email. */ - PAYEE = 'PAYEE', - /** Locks the type field. */ - TYPE = 'TYPE' -} - -export type ExpenseParsedFileInfo = { - __typename?: 'ExpenseParsedFileInfo'; - amount?: Maybe; - confidence?: Maybe; - date?: Maybe; - description?: Maybe; - items: Array; -}; - -/** Fields for the user permissions on an expense */ -export type ExpensePermissions = { - __typename?: 'ExpensePermissions'; - approve: Permission; - /** Whether the current user can approve this expense */ - canApprove: Scalars['Boolean']['output']; - /** Whether the current user can comment and see comments for this expense */ - canComment: Scalars['Boolean']['output']; - /** Whether the user or the given draft key is allowed decline the expense invite */ - canDeclineExpenseInvite: Scalars['Boolean']['output']; - /** Whether the current user can edit the expense */ - canDelete: Scalars['Boolean']['output']; - canDownloadTaxForm: Scalars['Boolean']['output']; - /** Whether the current user can edit the expense */ - canEdit: Scalars['Boolean']['output']; - /** Whether the current user can edit the expense accounting category */ - canEditAccountingCategory: Scalars['Boolean']['output']; - /** Tags permissions are a bit different, and can be edited by admins even if the expense has already been paid */ - canEditTags: Scalars['Boolean']['output']; - canHold: Scalars['Boolean']['output']; - /** Whether the current user can mark this expense as incomplete */ - canMarkAsIncomplete: Scalars['Boolean']['output']; - /** Whether the current user can mark this expense as spam */ - canMarkAsSpam: Scalars['Boolean']['output']; - /** Whether the current user can mark this expense as unpaid */ - canMarkAsUnpaid: Scalars['Boolean']['output']; - /** Whether the current user can trigger the payment for this expense */ - canPay: Scalars['Boolean']['output']; - /** Whether the current user can reject this expense */ - canReject: Scalars['Boolean']['output']; - canRelease: Scalars['Boolean']['output']; - /** Whether the current user can the the invoice info for this expense */ - canSeeInvoiceInfo: Scalars['Boolean']['output']; - /** Whether the current user can see the private details of the payout method of this expense */ - canSeePayoutMethodPrivateDetails: Scalars['Boolean']['output']; - /** Whether the current user can unapprove this expense */ - canUnapprove: Scalars['Boolean']['output']; - /** Whether the current user can unschedule this expense payment */ - canUnschedulePayment: Scalars['Boolean']['output']; - canUsePrivateNote: Scalars['Boolean']['output']; - /** Whether the current user can verify this draft expense */ - canVerifyDraftExpense: Scalars['Boolean']['output']; - comment: Permission; - delete: Permission; - downloadTaxForm: Permission; - edit: Permission; - /** Whether the current user can edit the expense accounting category */ - editAccountingCategory: Scalars['Boolean']['output']; - editTags: Permission; - hold: Permission; - id: Scalars['String']['output']; - markAsSpam: Permission; - markAsUnpaid: Permission; - pay: Permission; - reject: Permission; - release: Permission; - seeInvoiceInfo: Permission; - unapprove: Permission; - unschedulePayment: Permission; - usePrivateNote: Permission; - verifyDraftExpense: Permission; -}; - - -/** Fields for the user permissions on an expense */ -export type ExpensePermissionsCanDeclineExpenseInviteArgs = { - draftKey?: InputMaybe; -}; - -/** All supported expense types */ -export enum ExpenseProcessAction { - /** To mark the expense as approved */ - APPROVE = 'APPROVE', - /** To decline an invited expense */ - DECLINE_INVITED_EXPENSE = 'DECLINE_INVITED_EXPENSE', - /** To put the expense on hold */ - HOLD = 'HOLD', - /** To mark the expense as incomplete and notify the payee it requires more information */ - MARK_AS_INCOMPLETE = 'MARK_AS_INCOMPLETE', - /** To mark the expense as spam */ - MARK_AS_SPAM = 'MARK_AS_SPAM', - /** To mark the expense as unpaid (marks the transaction as refunded) */ - MARK_AS_UNPAID = 'MARK_AS_UNPAID', - /** To trigger the payment */ - PAY = 'PAY', - /** To mark the expense as rejected */ - REJECT = 'REJECT', - /** To release the expense from hold */ - RELEASE = 'RELEASE', - /** To request re-approval of the expense, marking it as pending. */ - REQUEST_RE_APPROVAL = 'REQUEST_RE_APPROVAL', - /** To schedule the expense for payment */ - SCHEDULE_FOR_PAYMENT = 'SCHEDULE_FOR_PAYMENT', - /** To mark the expense as pending after it has been approved */ - UNAPPROVE = 'UNAPPROVE', - /** To unschedule the expense payment */ - UNSCHEDULE_PAYMENT = 'UNSCHEDULE_PAYMENT' -} - -/** Fields for an expense quote */ -export type ExpenseQuote = { - __typename?: 'ExpenseQuote'; - /** The date on which the item was created */ - estimatedDeliveryAt?: Maybe; - /** Amount of payment processor fee */ - paymentProcessorFeeAmount: Amount; - /** Amount of this item */ - sourceAmount: Amount; -}; - -export type ExpenseReferenceInput = { - /** The public id identifying the expense (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The internal id of the expense (ie: 580) */ - legacyId?: InputMaybe; -}; - -/** Expense statistics related to the given accounts */ -export type ExpenseStats = { - __typename?: 'ExpenseStats'; - /** The daily average paid in expenses */ - dailyAverageAmount: Amount; - /** The total number of expenses */ - expensesCount: Scalars['Int']['output']; - /** Number of grants */ - grantsCount: Scalars['Int']['output']; - /** Number of invoices */ - invoicesCount: Scalars['Int']['output']; - /** Number of reimbursements */ - reimbursementsCount: Scalars['Int']['output']; -}; - -export enum ExpenseStatus { - APPROVED = 'APPROVED', - CANCELED = 'CANCELED', - DRAFT = 'DRAFT', - ERROR = 'ERROR', - INCOMPLETE = 'INCOMPLETE', - INVITE_DECLINED = 'INVITE_DECLINED', - PAID = 'PAID', - PENDING = 'PENDING', - PROCESSING = 'PROCESSING', - REJECTED = 'REJECTED', - SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', - SPAM = 'SPAM', - UNVERIFIED = 'UNVERIFIED' -} - -/** Describes the values allowed to filter expenses, namely all the expense statuses and the special "READY_TO_PAY" value. */ -export enum ExpenseStatusFilter { - APPROVED = 'APPROVED', - CANCELED = 'CANCELED', - DRAFT = 'DRAFT', - ERROR = 'ERROR', - INCOMPLETE = 'INCOMPLETE', - INVITE_DECLINED = 'INVITE_DECLINED', - /** Only expenses that are on hold */ - ON_HOLD = 'ON_HOLD', - PAID = 'PAID', - PENDING = 'PENDING', - PROCESSING = 'PROCESSING', - /** Only expenses that are ready to be paid (must be approved, have the sufficiant balance and have the tax forms completed) */ - READY_TO_PAY = 'READY_TO_PAY', - REJECTED = 'REJECTED', - SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', - SPAM = 'SPAM', - UNVERIFIED = 'UNVERIFIED' -} - -/** Input to set taxes for an expense */ -export type ExpenseTaxInput = { - /** Tax identification number, if any */ - idNumber?: InputMaybe; - /** Tax rate as a float number between 0 and 1 */ - rate: Scalars['Float']['input']; - type: TaxType; -}; - -/** All supported expense types */ -export enum ExpenseType { - /** Credit Card Charge: Payment done using an issued (virtual) credit card issued by your Fiscal Host. */ - CHARGE = 'CHARGE', - /** Funding Request: Request funding for a project or initiative. */ - FUNDING_REQUEST = 'FUNDING_REQUEST', - /** Grant: Request funding for a project or initiative. */ - GRANT = 'GRANT', - /** Invoice: Charge for your time or get paid in advance. */ - INVOICE = 'INVOICE', - /** Receipt: Get paid back for a purchase already made. */ - RECEIPT = 'RECEIPT', - /** Settlement: expense generated by Open Collective to collect money owed by Fiscal Hosts. */ - SETTLEMENT = 'SETTLEMENT', - /** Unclassified expense */ - UNCLASSIFIED = 'UNCLASSIFIED' -} - -export type ExpenseUpdateInput = { - /** The accounting category this expense belongs to */ - accountingCategory?: InputMaybe; - /** (Optional) A list of files that you want to attach to this expense */ - attachedFiles?: InputMaybe>; - /** @deprecated 2020-04-08: Please use the items field - The list of items for this expense. Total amount will be computed from them. */ - attachments?: InputMaybe>>; - /** Currency that should be used for the payout. Defaults to the account currency */ - currency?: InputMaybe; - /** Custom data to be stored in the expense */ - customData?: InputMaybe; - /** Main title of the expense */ - description?: InputMaybe; - /** ID of the expense that you are trying to edit */ - id: Scalars['String']['input']; - /** Tax ID, VAT number...etc This information will be printed on your invoice. */ - invoiceInfo?: InputMaybe; - /** The list of items for this expense. Total amount will be computed from them. */ - items?: InputMaybe>>; - /** Longer text to attach to the expense */ - longDescription?: InputMaybe; - /** Account to reimburse */ - payee?: InputMaybe; - /** The address of the payee */ - payeeLocation?: InputMaybe; - /** The payout method that will be used to reimburse the expense */ - payoutMethod?: InputMaybe; - /** A private note that will be attached to your invoice, as HTML */ - privateMessage?: InputMaybe; - /** User-provided reference number or any other identifier that references the invoice */ - reference?: InputMaybe; - /** Tags associated to the expense (ie. Food, Engineering...) */ - tags?: InputMaybe>>; - /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ - tax?: InputMaybe>>; - /** The type of the expense */ - type?: InputMaybe; -}; - -export type ExpenseValuesByRole = { - __typename?: 'ExpenseValuesByRole'; - /** The values provided by the account admin(s) */ - accountAdmin?: Maybe; - /** The values provided by the host admin(s) */ - hostAdmin?: Maybe; - id: Scalars['NonEmptyString']['output']; - /** The values provided by the expense submitter(s) */ - submitter?: Maybe; -}; - -export type ExpenseValuesRoleDetails = { - __typename?: 'ExpenseValuesRoleDetails'; - accountingCategory?: Maybe; -}; - -/** All supported expense types */ -export enum FeesPayer { - /** The collective will be responsible for paying the fees */ - COLLECTIVE = 'COLLECTIVE', - /** The payee will be responsible for paying the fees (they'll be deduced from the total amount) */ - PAYEE = 'PAYEE' -} - -/** Exposes information about an uploaded file (image, pdf, etc.) */ -export type FileInfo = { - /** Unique identifier for the file */ - id: Scalars['String']['output']; - /** Name of the file */ - name?: Maybe; - /** Size of the file in bytes */ - size?: Maybe; - /** Mime type of the file */ - type: Scalars['String']['output']; - /** URL to access the file */ - url: Scalars['URL']['output']; -}; - -export type FollowAccountResult = { - __typename?: 'FollowAccountResult'; - individual: Individual; - member: Member; -}; - -/** This represents an Project account */ -export type Fund = Account & AccountWithContributions & AccountWithHost & { - __typename?: 'Fund'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - /** Date of approval by the Fiscal Host. */ - approvedAt?: Maybe; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Returns the Fiscal Host */ - host?: Maybe; - /** Returns agreements this account has with its host, or null if not enough permissions. */ - hostAgreements?: Maybe; - /** Returns the Fiscal Host application */ - hostApplication?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** Fees percentage that the host takes for this collective */ - hostFeePercent?: Maybe; - /** Describe how the host charges the collective */ - hostFeesStructure?: Maybe; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether it's active: can accept financial contributions and pay expenses. */ - isActive: Scalars['Boolean']['output']; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether it's approved by the Fiscal Host */ - isApproved: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - summary?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date when the collective was last unfrozen by current Fiscal Host */ - unfrozenAt?: Maybe; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Project account */ -export type FundActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundHostAgreementsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundHostFeePercentArgs = { - paymentMethodService?: InputMaybe; - paymentMethodType?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundSummaryArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents an Project account */ -export type FundUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Project account */ -export type FundVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type FundVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type FundWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type FundCreateInput = { - /** The profile background image, for the banner and social media sharing */ - backgroundImage?: InputMaybe; - description: Scalars['String']['input']; - /** The profile avatar image */ - image?: InputMaybe; - name: Scalars['String']['input']; - settings?: InputMaybe; - slug: Scalars['String']['input']; - tags?: InputMaybe>>; -}; - -export type GenericFileInfo = FileInfo & { - __typename?: 'GenericFileInfo'; - /** Unique identifier for the file */ - id: Scalars['String']['output']; - /** Name of the file */ - name?: Maybe; - /** Size of the file in bytes */ - size?: Maybe; - /** Mime type of the file */ - type: Scalars['String']['output']; - /** URL to access the file */ - url: Scalars['URL']['output']; -}; - -/** Input type for guest contributions */ -export type GuestInfoInput = { - /** Captcha validation for creating an order */ - captcha?: InputMaybe; - /** Contributor's email */ - email: Scalars['EmailAddress']['input']; - /** Legal name of the user */ - legalName?: InputMaybe; - /** Address of the user, mandatory when amount is above $5000. */ - location?: InputMaybe; - /** Display name of the user */ - name?: InputMaybe; -}; - -/** This represents an Host account */ -export type Host = Account & AccountWithContributions & { - __typename?: 'Host'; - /** List of accounting categories for this host */ - accountingCategories: AccountingCategoryCollection; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - bankAccount?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - contributionStats: ContributionStats; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenseStats: ExpenseStats; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns whether the host has any Stripe disputed orders */ - hasDisputedOrders?: Maybe; - /** Returns whether the host has any Stripe in review orders */ - hasInReviewOrders?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** Applications for this host */ - hostApplications: HostApplicationCollection; - /** EXPERIMENTAL (this may change or be removed) */ - hostExpensesReport?: Maybe; - hostFeePercent?: Maybe; - hostMetrics: HostMetrics; - hostMetricsTimeSeries: HostMetricsTimeSeries; - /** EXPERIMENTAL (this may change or be removed) */ - hostTransactionsReports?: Maybe; - /** Returns agreements with Hosted Accounts */ - hostedAccountAgreements: AgreementCollection; - /** Returns a list of accounts hosted by this host */ - hostedAccounts: HostedAccountCollection; - /** Returns legal documents hosted by this host */ - hostedLegalDocuments: LegalDocumentCollection; - hostedVirtualCardCollectives: AccountCollection; - hostedVirtualCardMerchants: AccountCollection; - hostedVirtualCards: VirtualCardCollection; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - isOpenToApplications?: Maybe; - /** Returns whether the host is trusted or not */ - isTrustedHost: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** If the host supports PayPal, this will contain the client ID to use in the frontend */ - paypalClientId?: Maybe; - /** Paypal preapproval info. Returns null if PayPal account is not connected. */ - paypalPreApproval?: Maybe; - /** - * Pending applications for this host - * @deprecated 2023-08-25: Deprecated in favour of host.hostApplications(status: PENDING). - */ - pendingApplications: HostApplicationCollection; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - plan: HostPlan; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** Returns a list of organizations that only transacted with this host and all its admins are also admins of this host. */ - potentialVendors: AccountCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - /** Returns the legal documents required by this host */ - requiredLegalDocuments: Array; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** Stripe connected account */ - stripe?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - /** The list of payment methods (Stripe, Paypal, manual bank transfer, etc ...) the Host can accept for its Collectives */ - supportedPaymentMethods?: Maybe>>; - /** The list of payout methods this Host accepts for its expenses */ - supportedPayoutMethods?: Maybe>>; - tags?: Maybe>>; - termsUrl?: Maybe; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - totalHostedAccounts?: Maybe; - /** @deprecated 2023-03-20: Renamed to totalHostedAccounts */ - totalHostedCollectives?: Maybe; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - /** Returns a list of transactions imports for this host */ - transactionsImports: TransactionsImportsCollection; - /** Returns a list of transactions imports sources for this host */ - transactionsImportsSources: Array>; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Returns a list of vendors that works with this host */ - vendors: VendorCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Host account */ -export type HostAccountingCategoriesArgs = { - account?: InputMaybe; - kind?: InputMaybe>; -}; - - -/** This represents an Host account */ -export type HostActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostContributionStatsArgs = { - account?: InputMaybe>; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostExpenseStatsArgs = { - account?: InputMaybe>; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostApplicationsArgs = { - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - searchTerm?: InputMaybe; - status?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostExpensesReportArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostMetricsArgs = { - account?: InputMaybe>; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostMetricsTimeSeriesArgs = { - account?: InputMaybe>; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostTransactionsReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostedAccountAgreementsArgs = { - accounts?: InputMaybe>>; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostHostedAccountsArgs = { - accountType?: InputMaybe>>; - balance?: InputMaybe; - consolidatedBalance?: InputMaybe; - currencies?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - isApproved?: InputMaybe; - isFrozen?: InputMaybe; - isUnhosted?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostHostedLegalDocumentsArgs = { - account?: InputMaybe>>; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - requestedAtFrom?: InputMaybe; - requestedAtTo?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostHostedVirtualCardCollectivesArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostHostedVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostHostedVirtualCardsArgs = { - collectiveAccountIds?: InputMaybe>>; - hasMissingReceipts?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - searchTerm?: InputMaybe; - spentAmountFrom?: InputMaybe; - spentAmountTo?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; - withExpensesDateFrom?: InputMaybe; - withExpensesDateTo?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostPendingApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostPotentialVendorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostTransactionsImportsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; -}; - - -/** This represents an Host account */ -export type HostUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents an Host account */ -export type HostUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostVendorsArgs = { - forAccount?: InputMaybe; - isArchived?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Host account */ -export type HostVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Host account */ -export type HostVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents an Host account */ -export type HostWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type HostApplication = { - __typename?: 'HostApplication'; - /** The account who applied to this host */ - account: Account; - /** Returns the list of comments for this host application, or `null` if user is not allowed to see them */ - comments?: Maybe; - /** The date on which the item was created */ - createdAt: Scalars['DateTime']['output']; - customData?: Maybe; - /** The host the collective applied to */ - host: Host; - id: Scalars['String']['output']; - message?: Maybe; - status?: Maybe; - /** The date on which the item was updated */ - updatedAt: Scalars['DateTime']['output']; -}; - - -export type HostApplicationCommentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; -}; - -/** A collection of "HostApplication" */ -export type HostApplicationCollection = Collection & { - __typename?: 'HostApplicationCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -export type HostApplicationReferenceInput = { - /** The public id identifying the host application (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; -}; - -export enum HostApplicationStatus { - APPROVED = 'APPROVED', - EXPIRED = 'EXPIRED', - PENDING = 'PENDING', - REJECTED = 'REJECTED' -} - -/** A collection of "Hosts" */ -export type HostCollection = Collection & { - __typename?: 'HostCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -export type HostExpensesReportNode = { - __typename?: 'HostExpensesReportNode'; - accountingCategory?: Maybe; - amount: Amount; - count: Scalars['Int']['output']; - date: Scalars['DateTime']['output']; - isHost: Scalars['Boolean']['output']; -}; - -/** EXPERIMENTAL (this may change or be deleted): Host expenses report */ -export type HostExpensesReports = { - __typename?: 'HostExpensesReports'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - nodes?: Maybe>; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -/** All supported expense types */ -export enum HostFeeStructure { - /** Custom fee for this Collective only */ - CUSTOM_FEE = 'CUSTOM_FEE', - /** Use global host fees */ - DEFAULT = 'DEFAULT', - /** Set a monthly retainer for this Collective */ - MONTHLY_RETAINER = 'MONTHLY_RETAINER' -} - -/** Host metrics related to collected and pending fees/tips. */ -export type HostMetrics = { - __typename?: 'HostMetrics'; - /** Amount in host fee shared with the platform */ - hostFeeShare?: Maybe; - /** Host fee sharing percent */ - hostFeeSharePercent?: Maybe; - /** Amount collected in host fees for given period */ - hostFees?: Maybe; - /** Amount in host fee shared requiring settlement */ - pendingHostFeeShare?: Maybe; - /** Amount collected in platform fees requiring settlement */ - pendingPlatformFees?: Maybe; - /** Amount collected in platform tips requiring settlement */ - pendingPlatformTips?: Maybe; - /** Amount collected in platform fees for given period */ - platformFees?: Maybe; - /** Amount collected in platform tips for given period */ - platformTips?: Maybe; - /** Amount in host fee shared not requiring settlement */ - settledHostFeeShare?: Maybe; - /** Total amount managed on behalf of hosted collectives */ - totalMoneyManaged?: Maybe; -}; - -/** Host metrics time series */ -export type HostMetricsTimeSeries = { - __typename?: 'HostMetricsTimeSeries'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - /** History of the share of host fees collected owed to Open Collective Inc. */ - hostFeeShare: TimeSeriesAmountWithSettlement; - /** History of the host fees collected */ - hostFees: TimeSeriesAmount; - /** History of the collected platform tips */ - platformTips: TimeSeriesAmount; - /** The interval between two data points */ - timeUnit: TimeUnit; - /** History of the total money managed by this host */ - totalMoneyManaged: TimeSeriesAmount; - /** History of the total money received by this host */ - totalReceived: TimeSeriesAmountWithKind; - /** History of the total money spent by this host */ - totalSpent: TimeSeriesAmountWithKind; -}; - -/** The name of the current plan and its characteristics. */ -export type HostPlan = { - __typename?: 'HostPlan'; - /** Whether this plan allows to use the added funds feature */ - addedFunds?: Maybe; - /** Amount limit for the added funds feature under this plan */ - addedFundsLimit?: Maybe; - /** Whether this plan allows to use the bank transfers feature */ - bankTransfers?: Maybe; - /** Amount limit for the bank transfers feature under this plan */ - bankTransfersLimit?: Maybe; - /** Whether this plan allows to use the host dashboard */ - hostDashboard?: Maybe; - /** Charge on revenues made through Host Fees. */ - hostFeeSharePercent?: Maybe; - /** Ability to charge Host Fees. */ - hostFees?: Maybe; - /** Number of collectives hosted */ - hostedCollectives?: Maybe; - /** Max number of collectives than can be hosted */ - hostedCollectivesLimit?: Maybe; - /** The public id identifying the account (ie: 5v08jk63-w4g9nbpz-j7qmyder-p7ozax5g) */ - id?: Maybe; - /** Whether this plan allows to use the manual payments feature */ - manualPayments?: Maybe; - /** The name of the plan */ - name?: Maybe; - /** Ability to collect Platform Tips. */ - platformTips?: Maybe; - /** Whether this plan allows to use the transferwise payouts feature */ - transferwisePayouts?: Maybe; - /** Amount limit for the transferwise payouts feature under this plan */ - transferwisePayoutsLimit?: Maybe; -}; - -export type HostTransactionReportNode = { - __typename?: 'HostTransactionReportNode'; - date: Scalars['DateTime']['output']; - managedFunds: TransactionReport; - operationalFunds: TransactionReport; -}; - -/** EXPERIMENTAL (this may change or be deleted): Host transaction report */ -export type HostTransactionReports = { - __typename?: 'HostTransactionReports'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - nodes?: Maybe>; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -/** A collection of hosted "Accounts" */ -export type HostedAccountCollection = Collection & { - __typename?: 'HostedAccountCollection'; - currencies?: Maybe>>; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummary = { - __typename?: 'HostedAccountSummary'; - /** Average calculated over the number of months/years the collective was approved or the number of months since dateFrom, whichever is less */ - contributionAverageCount?: Maybe; - /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ - contributionAverageTotal?: Maybe; - contributionCount?: Maybe; - contributionRefundedTotal?: Maybe; - contributionTotal?: Maybe; - /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ - expenseAverageCount?: Maybe; - /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ - expenseAverageTotal?: Maybe; - expenseCount?: Maybe; - expenseDistinctPayee?: Maybe; - expenseMaxValue?: Maybe; - expenseTotal?: Maybe; - hostFeeTotal?: Maybe; - receivedTotal?: Maybe; - receivedTotalAverage?: Maybe; - spentTotal?: Maybe; - spentTotalAverage?: Maybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummaryContributionAverageCountArgs = { - period?: InputMaybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummaryContributionAverageTotalArgs = { - period?: InputMaybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummaryExpenseAverageCountArgs = { - period?: InputMaybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummaryExpenseAverageTotalArgs = { - period?: InputMaybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummaryReceivedTotalAverageArgs = { - period?: InputMaybe; -}; - - -/** Return a summary of transaction info about a given account within the context of its current fiscal host */ -export type HostedAccountSummarySpentTotalAverageArgs = { - period?: InputMaybe; -}; - -/** Exposes information about an uploaded image file */ -export type ImageFileInfo = FileInfo & { - __typename?: 'ImageFileInfo'; - /** Blurhash of the image */ - blurHash?: Maybe; - /** If the file is an image, this will be the height of the image in pixels */ - height?: Maybe; - /** Unique identifier for the file */ - id: Scalars['String']['output']; - /** Name of the file */ - name?: Maybe; - /** Size of the file in bytes */ - size?: Maybe; - /** Mime type of the file */ - type: Scalars['String']['output']; - /** URL to access the file */ - url: Scalars['URL']['output']; - /** If the file is an image, this will be the width of the image in pixels */ - width?: Maybe; -}; - -export enum ImageFormat { - gif = 'gif', - jpg = 'jpg', - png = 'png', - svg = 'svg', - txt = 'txt' -} - -/** This represents an Individual account */ -export type Individual = Account & { - __typename?: 'Individual'; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Email for the account. For authenticated user: scope: "email". */ - email?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Has the account a password set? For authenticated user: scope: "account". */ - hasPassword?: Maybe; - hasSeenLatestChangelogEntry?: Maybe; - hasTwoFactorAuth?: Maybe; - /** If the individual is a host account, this will return the matching Host object */ - host?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - isFollowingConversation: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - isGuest: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** - * - * Address. This field is public for hosts, otherwise: - * - Users can see their own address - * - Hosts can see the address of users submitting expenses to their collectives - * - */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - newsletterOptIn?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - oAuthAuthorizations?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** The list of personal tokens created by this account. Admin only. Scope: "applications". */ - personalTokens?: Maybe; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - /** User two factor methods */ - twoFactorMethods?: Maybe>>; - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Individual account */ -export type IndividualActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualIsFollowingConversationArgs = { - id: Scalars['String']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualOAuthAuthorizationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualPersonalTokensArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents an Individual account */ -export type IndividualUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Individual account */ -export type IndividualVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Individual account */ -export type IndividualVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents an Individual account */ -export type IndividualWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type IndividualConfirmEmailResponse = { - __typename?: 'IndividualConfirmEmailResponse'; - /** The account that was confirmed */ - individual: Individual; - /** A new session token to use for the account. Only returned if user is signed in already. */ - sessionToken?: Maybe; -}; - -export type IndividualCreateInput = { - email: Scalars['String']['input']; - name: Scalars['String']['input']; -}; - -export type InviteMemberInput = { - description?: InputMaybe; - /** Reference to an account for the invitee */ - memberAccount?: InputMaybe; - /** Email and name of the invitee if no reference. */ - memberInfo?: InputMaybe; - /** Role of the invitee */ - role: MemberRole; - since?: InputMaybe; -}; - -/** Defines role of the last comment author */ -export enum LastCommentBy { - /** Collective Admin */ - COLLECTIVE_ADMIN = 'COLLECTIVE_ADMIN', - /** Fiscal Host Admin */ - HOST_ADMIN = 'HOST_ADMIN', - /** Expense Submitter */ - USER = 'USER' -} - -/** A legal document (e.g. W9, W8BEN, W8BEN-E) */ -export type LegalDocument = { - __typename?: 'LegalDocument'; - /** The account this legal document is for */ - account: Account; - /** URL to download the file. Must be logged in as a host with access to the document. The returned URL will be protected by authentication + 2FA. */ - documentLink?: Maybe; - /** Unique identifier for this legal document */ - id: Scalars['String']['output']; - /** Whether this legal document is expired */ - isExpired: Scalars['Boolean']['output']; - /** The date and time the request for this legal document was created */ - requestedAt: Scalars['DateTime']['output']; - /** The service that provided this legal document */ - service: LegalDocumentService; - /** The status of the request for this legal document */ - status: LegalDocumentRequestStatus; - /** The type of legal document */ - type: LegalDocumentType; - /** The date and time this legal document was last updated */ - updatedAt: Scalars['DateTime']['output']; - /** The year this legal document is for */ - year: Scalars['Int']['output']; -}; - -/** A collection of "LegalDocument" */ -export type LegalDocumentCollection = Collection & { - __typename?: 'LegalDocumentCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Status for a legal document */ -export enum LegalDocumentRequestStatus { - ERROR = 'ERROR', - INVALID = 'INVALID', - NOT_REQUESTED = 'NOT_REQUESTED', - RECEIVED = 'RECEIVED', - REQUESTED = 'REQUESTED' -} - -/** Type for a required legal document */ -export enum LegalDocumentService { - DROPBOX_FORMS = 'DROPBOX_FORMS', - OPENCOLLECTIVE = 'OPENCOLLECTIVE' -} - -/** Type for a required legal document */ -export enum LegalDocumentType { - /** US tax form (W9, W8BEN, W8BEN-E) */ - US_TAX_FORM = 'US_TAX_FORM' -} - -/** Type for Geographic location */ -export type Location = { - __typename?: 'Location'; - /** Postal address without country (eg. 12 opensource avenue, 7500 Paris) */ - address?: Maybe; - /** Two letters country code (eg. FR, BE...etc) */ - country?: Maybe; - /** Unique identifier for this location */ - id?: Maybe; - /** Latitude */ - lat?: Maybe; - /** Longitude */ - long?: Maybe; - /** A short name for the location (eg. Open Collective Headquarters) */ - name?: Maybe; - /** Structured JSON address */ - structured?: Maybe; -}; - -/** Input type for Geographic location */ -export type LocationInput = { - /** Postal address without country (eg. 12 opensource avenue, 7500 Paris) */ - address?: InputMaybe; - /** Two letters country code (eg. FR, BE...etc) */ - country?: InputMaybe; - /** Latitude */ - lat?: InputMaybe; - /** Longitude */ - long?: InputMaybe; - /** A short name for the location (eg. Open Collective Headquarters) */ - name?: InputMaybe; - /** Structured JSON address */ - structured?: InputMaybe; -}; - -export type Maximum_Virtual_Card_Limit_Amount_For_Interval = { - __typename?: 'MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL'; - ALL_TIME?: Maybe; - DAILY?: Maybe; - MONTHLY?: Maybe; - PER_AUTHORIZATION?: Maybe; - WEEKLY?: Maybe; - YEARLY?: Maybe; -}; - -export enum MarkAsUnPaidExpenseStatus { - APPROVED = 'APPROVED', - ERROR = 'ERROR', - INCOMPLETE = 'INCOMPLETE' -} - -/** This represents a Member relationship (ie: Organization backing a Collective) */ -export type Member = { - __typename?: 'Member'; - account?: Maybe; - createdAt?: Maybe; - /** Custom user description */ - description?: Maybe; - id?: Maybe; - /** If membership is inherited from parent collective */ - inherited?: Maybe; - /** Custom user message from member to the collective */ - publicMessage?: Maybe; - role?: Maybe; - since?: Maybe; - tier?: Maybe; - /** Total amount donated */ - totalDonations: Amount; - updatedAt?: Maybe; -}; - -/** A collection of "Members" (ie: Organization backing a Collective) */ -export type MemberCollection = Collection & { - __typename?: 'MemberCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** An invitation to join the members of a collective */ -export type MemberInvitation = { - __typename?: 'MemberInvitation'; - account: Account; - createdAt: Scalars['DateTime']['output']; - description?: Maybe; - id: Scalars['String']['output']; - /** The person who invited the member, if any */ - inviter?: Maybe; - memberAccount: Account; - role: MemberRole; - since?: Maybe; - tier?: Maybe; -}; - -export type MemberInvitationReferenceInput = { - /** The public id identifying the member invitation (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The internal id of the invitation (ie: 580) */ - legacyId?: InputMaybe; -}; - -/** This represents a MemberOf relationship (ie: Collective backed by an Organization) */ -export type MemberOf = { - __typename?: 'MemberOf'; - account?: Maybe; - createdAt?: Maybe; - /** Custom user description */ - description?: Maybe; - id?: Maybe; - /** If membership is inherited from parent collective */ - inherited?: Maybe; - /** Custom user message from member to the collective */ - publicMessage?: Maybe; - role?: Maybe; - since?: Maybe; - tier?: Maybe; - /** Total amount donated */ - totalDonations: Amount; - updatedAt?: Maybe; -}; - -/** A collection of "MemberOf" (ie: Collective backed by an Organization) */ -export type MemberOfCollection = Collection & { - __typename?: 'MemberOfCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - roles?: Maybe>>; - totalCount?: Maybe; -}; - -/** An existing member role and account type combination used used to filter collections */ -export type MemberOfCollectionRoles = { - __typename?: 'MemberOfCollectionRoles'; - role: MemberRole; - type: AccountType; -}; - -/** All member roles */ -export enum MemberRole { - ACCOUNTANT = 'ACCOUNTANT', - ADMIN = 'ADMIN', - ATTENDEE = 'ATTENDEE', - BACKER = 'BACKER', - CONNECTED_ACCOUNT = 'CONNECTED_ACCOUNT', - CONTRIBUTOR = 'CONTRIBUTOR', - FOLLOWER = 'FOLLOWER', - /** @deprecated 2022-09-12: This role does not exist anymore */ - FUNDRAISER = 'FUNDRAISER', - HOST = 'HOST', - MEMBER = 'MEMBER' -} - -export type MergeAccountsResponse = { - __typename?: 'MergeAccountsResponse'; - /** The resulting account */ - account: Account; - /** A message to display to the user about the result */ - message?: Maybe; -}; - -/** This is the root mutation */ -export type Mutation = { - __typename?: 'Mutation'; - /** Add an agreement for the given host account. Scope: "host". */ - addAgreement: Agreement; - /** Add a new payment method to be used with an Order. Scope: "orders". */ - addCreditCard: CreditCardWithStripeError; - /** Add an emoji reaction. Scope: "conversations", "expenses" or "updates". */ - addEmojiReaction: EmojiReactionResponse; - /** Add funds to the given account. Scope: "host". */ - addFunds: Order; - /** Adds a Stripe payment method */ - addStripePaymentMethodFromSetupIntent: PaymentMethod; - /** Add 2FA to the Individual if it does not have it. Scope: "account". */ - addTwoFactorAuthTokenToIndividual: AddTwoFactorAuthTokenToIndividualResponse; - /** Apply to an host with a collective. Scope: "account". */ - applyToHost: Account; - /** Assign Virtual Card information to existing hosted collective. Scope: "virtualCards". */ - assignNewVirtualCard: VirtualCard; - /** [Root only] Ban accounts */ - banAccount: BanAccountResponse; - /** Cancel an order. Scope: "orders". */ - cancelOrder?: Maybe; - /** [Root only] Clears the cache for a given account */ - clearCacheForAccount: Account; - /** Confirm a credit card is ready for use after strong customer authentication. Scope: "orders". */ - confirmCreditCard: CreditCardWithStripeError; - /** Confirm email for Individual. Scope: "account". */ - confirmEmail: IndividualConfirmEmailResponse; - /** Mark an account as confirmed */ - confirmGuestAccount: ConfirmGuestAccountResponse; - /** Confirm an order (strong customer authentication). Scope: "orders". */ - confirmOrder: OrderWithPayment; - /** Connect a Plaid account */ - connectPlaidAccount: PlaidConnectAccountResponse; - /** Convert an organization to a vendor */ - convertOrganizationToVendor: Vendor; - createApplication?: Maybe; - /** Create a Collective. Scope: "account". */ - createCollective?: Maybe; - /** Create a comment. Scope: "conversations", "expenses" or "updates". */ - createComment?: Maybe; - /** Connect external account to Open Collective Account. Scope: "connectedAccounts". */ - createConnectedAccount?: Maybe; - /** Create a conversation. Scope: "conversations". */ - createConversation?: Maybe; - /** Create an Event. Scope: "account". */ - createEvent?: Maybe; - /** Submit an expense to a collective. Scope: "expenses". */ - createExpense: Expense; - /** Create a Fund. Scope: "account". */ - createFund?: Maybe; - /** [Root only] Create a member entry directly. For non-root users, use `inviteMember` */ - createMember: Member; - /** To submit a new order. Scope: "orders". */ - createOrder: OrderWithPayment; - /** Create an Organization. Scope: "account". */ - createOrganization?: Maybe; - /** Creates a Stripe payment intent */ - createPaymentIntent: PaymentIntent; - /** Create a new Payout Method to get paid through the platform. Scope: "expenses". */ - createPayoutMethod?: Maybe; - /** To submit a new order. Scope: "orders". */ - createPendingOrder: Order; - createPersonalToken: PersonalToken; - /** Create a Project. Scope: "account". */ - createProject?: Maybe; - /** Creates a Stripe setup intent */ - createSetupIntent: SetupIntent; - /** Create a tier. */ - createTier: Tier; - /** Create a new import. To manually add transactions to it, use `importTransactions`. */ - createTransactionsImport: TransactionsImport; - /** Create update. Scope: "updates". */ - createUpdate: Update; - /** Create a new vendor for given host */ - createVendor: Vendor; - /** Create new Stripe Virtual Card for existing hosted collective. Scope: "virtualCards". */ - createVirtualCard: VirtualCard; - /** Create WebAuthn public key registration request options */ - createWebAuthnRegistrationOptions: Scalars['JSON']['output']; - /** Create webhook. Scope: "webhooks". */ - createWebhook?: Maybe; - /** Adds or removes a policy on a given account. Scope: "account". */ - deleteAccount?: Maybe; - /** Delete an agreement for the given host account. Scope: "host". */ - deleteAgreement: Agreement; - deleteApplication?: Maybe; - deleteComment?: Maybe; - /** Delete ConnectedAccount. Scope: "connectedAccounts". */ - deleteConnectedAccount?: Maybe; - /** Delete an expense. Only work if the expense is rejected - please check permissions.canDelete. Scope: "expenses". */ - deleteExpense: Expense; - deletePersonalToken?: Maybe; - /** Delete a tier. */ - deleteTier: Tier; - /** Delete an import and all its associated rows */ - deleteTransactionsImport: Scalars['Boolean']['output']; - /** Delete update. Scope: "updates". */ - deleteUpdate: Update; - /** Delete a vendor */ - deleteVendor: Scalars['Boolean']['output']; - /** Delete Virtual Card. Scope: "virtualCards". */ - deleteVirtualCard?: Maybe; - /** Delete webhook. Scope: "webhooks". */ - deleteWebhook?: Maybe; - /** Persist an Expense as a draft and invite someone to edit and submit it. Scope: "expenses". */ - draftExpenseAndInviteUser: Expense; - /** Duplicate an account. Scope: "account". */ - duplicateAccount: Account; - /** Edit key properties of an account. Scope: "account". */ - editAccount: Host; - /** An endpoint for hosts to edit the fees structure of their hosted accounts. Scope: "host". */ - editAccountFeeStructure: Account; - /** [Root only] Edits account flags (deleted, banned, archived, trusted host) */ - editAccountFlags: Account; - /** An endpoint for hosts to edit the freeze status of their hosted accounts. Scope: "host". */ - editAccountFreezeStatus: Account; - /** Edit the settings for the given account. Scope: "account" or "host". */ - editAccountSetting: Account; - /** [Root only] Edits account type from User to Organization */ - editAccountType: Account; - /** Edit an accounting category. Returns the account with the updated categories. */ - editAccountingCategories: Account; - /** Add funds to the given account. Scope: "host". */ - editAddedFunds: Order; - /** Edit an agreement for the given host account. Scope: "host". */ - editAgreement: Agreement; - /** Edit a comment. Scope: "conversations", "expenses" or "updates". */ - editComment?: Maybe; - /** Edit a conversation. Scope: "conversations". */ - editConversation?: Maybe; - /** To update an existing expense */ - editExpense: Expense; - /** Edit the status of a legal document */ - editLegalDocumentStatus: LegalDocument; - /** Edit an existing member of the Collective. Scope: "account". */ - editMember: Member; - /** Edit an existing member invitation of the Collective. Scope: "account". */ - editMemberInvitation?: Maybe; - /** To edit a pending order. Scope: "orders". */ - editPendingOrder: Order; - /** Edit the public message for the given Member of a Collective. Scope: "account". */ - editPublicMessage: Member; - /** Edit a tier. */ - editTier: Tier; - /** Edit an import */ - editTransactionsImport: TransactionsImport; - /** Edit 2FA method */ - editTwoFactorAuthenticationMethod: Individual; - /** Edit update. Scope: "updates". */ - editUpdate: Update; - /** Edit an existing vendor */ - editVendor: Vendor; - /** Edit existing Virtual Card information. Scope: "virtualCards". */ - editVirtualCard: VirtualCard; - /** Follows a given Collective. Scope: "account" */ - followAccount: FollowAccountResult; - /** Returns true if user is following, false otherwise. Must be authenticated. Scope: "conversations". */ - followConversation?: Maybe; - /** Generate a Plaid Link token */ - generatePlaidLinkToken: PlaidLinkTokenCreateResponse; - /** Import transactions, manually or from a CSV file */ - importTransactions: TransactionsImport; - /** Invite a new member to the Collective. Scope: "account". */ - inviteMember: MemberInvitation; - /** [Root only] Merge two accounts, returns the result account */ - mergeAccounts: MergeAccountsResponse; - /** [Root only] A mutation to move expenses from one account to another */ - moveExpenses: Array>; - /** [Root only] A mutation to move orders from one account to another */ - moveOrders: Array>; - /** Pause active Virtual Card. Scope: "virtualCards". */ - pauseVirtualCard: VirtualCard; - /** Process the expense with the given action. Scope: "expenses". */ - processExpense: Expense; - /** Reply to a host application. Scope: "host". */ - processHostApplication: ProcessHostApplicationResponse; - /** A mutation for the host to approve or reject an order. Scope: "orders". */ - processPendingOrder: Order; - /** Publish update. Scope: "updates". */ - publishUpdate: Update; - /** Refunds a transaction. Scope: "transactions". */ - refundTransaction?: Maybe; - /** Regenerate two factor authentication recovery codes */ - regenerateRecoveryCodes?: Maybe>; - /** Rejects transaction, removes member from Collective, and sends a message to the contributor. Scope: "transactions". */ - rejectTransaction: Transaction; - /** Reject a virtual card request. Scope: "virtualCards" */ - rejectVirtualCardRequest: VirtualCardRequest; - /** Remove an emoji reaction. Scope: "conversations", "expenses" or "updates". */ - removeEmojiReaction: EmojiReactionResponse; - /** Removes the host for an account */ - removeHost: Account; - /** Remove a member from the Collective. Scope: "account". */ - removeMember?: Maybe; - /** Remove the given payout method. Scope: "expenses". */ - removePayoutMethod: PayoutMethod; - /** Remove 2FA from the Individual if it has been enabled. Scope: "account". */ - removeTwoFactorAuthTokenFromIndividual: Individual; - /** Endpoint to accept or reject an invitation to become a member. Scope: "account". */ - replyToMemberInvitation: Scalars['Boolean']['output']; - /** Request Virtual Card to host. Scope: "virtualCards". */ - requestVirtualCard?: Maybe; - /** To re-send the invitation to complete a draft expense. Scope: "expenses". */ - resendDraftExpenseInvite: Expense; - /** Resume paused Virtual Card. Scope: "virtualCards". */ - resumeVirtualCard: VirtualCard; - /** Revoke an OAuth authorization. Scope: "account". */ - revokeOAuthAuthorization: OAuthAuthorization; - /** [Root only] Anonymizes an account */ - rootAnonymizeAccount: Account; - /** Sends an email for guest to confirm their emails and create their Open Collective account */ - sendGuestConfirmationEmail: Scalars['Boolean']['output']; - /** Send a message to an account. Scope: "account" */ - sendMessage?: Maybe; - /** Send In-App Survey response */ - sendSurveyResponse?: Maybe; - /** Update the time which the user viewed the changelog updates. Scope: "account". */ - setChangelogViewDate: Individual; - /** Set email notification subscription for requesting logged-in user */ - setEmailNotification?: Maybe; - /** Update newsletter opt-in preference. Scope: "account". */ - setNewsletterOptIn: Individual; - /** Set password to Individual. Scope: "account". 2FA. */ - setPassword: SetPasswordResponse; - /** Adds or removes a policy on a given account. Scope: "account". */ - setPolicies: Account; - setTags: TagResponse; - /** Starts or resumes the process of notifying contributors for their PAUSED contributions */ - startResumeOrdersProcess: Account; - /** Submit a legal document */ - submitLegalDocument: LegalDocument; - /** Manually request a sync for Plaid account */ - syncPlaidAccount: TransactionsImport; - /** Unfollows a given Collective. Scope: "account" */ - unfollowAccount: UnfollowAccountResult; - /** Unpublish update. Scope: "updates". */ - unpublishUpdate: Update; - updateApplication?: Maybe; - /** Update an Order's amount, tier, or payment method. Scope: "orders". */ - updateOrder?: Maybe; - /** Update the accounting category of an order. Scope: "orders". */ - updateOrderAccountingCategory: Order; - updatePersonalToken: PersonalToken; - /** Updates collective social links */ - updateSocialLinks: Array; - /** Update transactions import rows to set new values or mark them as dismissed */ - updateTransactionsImportRows: TransactionsImport; - /** Update webhook. Scope: "webhooks". */ - updateWebhook?: Maybe; - uploadFile: Array; -}; - - -/** This is the root mutation */ -export type MutationAddAgreementArgs = { - account: AccountReferenceInput; - attachment?: InputMaybe; - expiresAt?: InputMaybe; - host: AccountReferenceInput; - notes?: InputMaybe; - title: Scalars['NonEmptyString']['input']; -}; - - -/** This is the root mutation */ -export type MutationAddCreditCardArgs = { - account: AccountReferenceInput; - creditCardInfo: CreditCardCreateInput; - isSavedForLater?: InputMaybe; - name: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationAddEmojiReactionArgs = { - comment?: InputMaybe; - emoji: Scalars['String']['input']; - update?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationAddFundsArgs = { - account: AccountReferenceInput; - accountingCategory?: InputMaybe; - amount: AmountInput; - description: Scalars['String']['input']; - fromAccount: AccountReferenceInput; - hostFeePercent?: InputMaybe; - invoiceTemplate?: InputMaybe; - memo?: InputMaybe; - paymentProcessorFee?: InputMaybe; - processedAt?: InputMaybe; - tax?: InputMaybe; - tier?: InputMaybe; - transactionsImportRow?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationAddStripePaymentMethodFromSetupIntentArgs = { - account: AccountReferenceInput; - setupIntent: SetupIntentInput; -}; - - -/** This is the root mutation */ -export type MutationAddTwoFactorAuthTokenToIndividualArgs = { - account: AccountReferenceInput; - token: Scalars['String']['input']; - type?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationApplyToHostArgs = { - applicationData?: InputMaybe; - collective: AccountReferenceInput; - host: AccountReferenceInput; - inviteMembers?: InputMaybe>>; - message?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationAssignNewVirtualCardArgs = { - account: AccountReferenceInput; - assignee: AccountReferenceInput; - virtualCard: VirtualCardInput; -}; - - -/** This is the root mutation */ -export type MutationBanAccountArgs = { - account: Array; - dryRun: Scalars['Boolean']['input']; - includeAssociatedAccounts: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationCancelOrderArgs = { - order: OrderReferenceInput; - reason?: InputMaybe; - reasonCode?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationClearCacheForAccountArgs = { - account: AccountReferenceInput; - type?: Array>; -}; - - -/** This is the root mutation */ -export type MutationConfirmCreditCardArgs = { - paymentMethod: PaymentMethodReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationConfirmEmailArgs = { - token: Scalars['NonEmptyString']['input']; -}; - - -/** This is the root mutation */ -export type MutationConfirmGuestAccountArgs = { - email: Scalars['EmailAddress']['input']; - emailConfirmationToken: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationConfirmOrderArgs = { - guestToken?: InputMaybe; - order: OrderReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationConnectPlaidAccountArgs = { - host: AccountReferenceInput; - name?: InputMaybe; - publicToken: Scalars['String']['input']; - sourceName?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationConvertOrganizationToVendorArgs = { - host: AccountReferenceInput; - organization: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationCreateApplicationArgs = { - application: ApplicationCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateCollectiveArgs = { - applicationData?: InputMaybe; - collective: CollectiveCreateInput; - host?: InputMaybe; - inviteMembers?: InputMaybe>>; - message?: InputMaybe; - skipApprovalTestOnly?: InputMaybe; - skipDefaultAdmin?: InputMaybe; - testPayload?: InputMaybe; - user?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationCreateCommentArgs = { - comment: CommentCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateConnectedAccountArgs = { - account: AccountReferenceInput; - connectedAccount: ConnectedAccountCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateConversationArgs = { - CollectiveId?: InputMaybe; - account?: InputMaybe; - html: Scalars['String']['input']; - tags?: InputMaybe>>; - title: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationCreateEventArgs = { - account: AccountReferenceInput; - event: EventCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateExpenseArgs = { - account: AccountReferenceInput; - expense: ExpenseCreateInput; - privateComment?: InputMaybe; - recurring?: InputMaybe; - transactionsImportRow?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationCreateFundArgs = { - fund: FundCreateInput; - host?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationCreateMemberArgs = { - account: AccountReferenceInput; - description?: InputMaybe; - memberAccount: AccountReferenceInput; - role: MemberRole; - since?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationCreateOrderArgs = { - order: OrderCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateOrganizationArgs = { - inviteMembers?: InputMaybe>>; - organization: OrganizationCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreatePaymentIntentArgs = { - guestInfo?: InputMaybe; - paymentIntent: PaymentIntentInput; -}; - - -/** This is the root mutation */ -export type MutationCreatePayoutMethodArgs = { - account: AccountReferenceInput; - payoutMethod: PayoutMethodInput; -}; - - -/** This is the root mutation */ -export type MutationCreatePendingOrderArgs = { - order: PendingOrderCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreatePersonalTokenArgs = { - personalToken: PersonalTokenCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateProjectArgs = { - disableContributions?: Scalars['Boolean']['input']; - parent?: InputMaybe; - project: ProjectCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateSetupIntentArgs = { - account: AccountReferenceInput; - host: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationCreateTierArgs = { - account: AccountReferenceInput; - tier: TierCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateTransactionsImportArgs = { - account: AccountReferenceInput; - name: Scalars['NonEmptyString']['input']; - source: Scalars['NonEmptyString']['input']; - type: TransactionsImportType; -}; - - -/** This is the root mutation */ -export type MutationCreateUpdateArgs = { - update: UpdateCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateVendorArgs = { - host: AccountReferenceInput; - vendor: VendorCreateInput; -}; - - -/** This is the root mutation */ -export type MutationCreateVirtualCardArgs = { - account: AccountReferenceInput; - assignee: AccountReferenceInput; - limitAmount: AmountInput; - limitInterval: VirtualCardLimitInterval; - name: Scalars['String']['input']; - virtualCardRequest?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationCreateWebAuthnRegistrationOptionsArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationCreateWebhookArgs = { - webhook: WebhookCreateInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteAccountArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteAgreementArgs = { - agreement: AgreementReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteApplicationArgs = { - application: ApplicationReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteCommentArgs = { - id: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationDeleteConnectedAccountArgs = { - connectedAccount: ConnectedAccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteExpenseArgs = { - expense: ExpenseReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeletePersonalTokenArgs = { - personalToken: PersonalTokenReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteTierArgs = { - stopRecurringContributions?: Scalars['Boolean']['input']; - tier: TierReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteTransactionsImportArgs = { - id: Scalars['NonEmptyString']['input']; -}; - - -/** This is the root mutation */ -export type MutationDeleteUpdateArgs = { - id: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationDeleteVendorArgs = { - vendor: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteVirtualCardArgs = { - virtualCard: VirtualCardReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDeleteWebhookArgs = { - webhook: WebhookReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationDraftExpenseAndInviteUserArgs = { - account: AccountReferenceInput; - expense: ExpenseInviteDraftInput; - lockedFields?: InputMaybe>>; - skipInvite?: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationDuplicateAccountArgs = { - account: AccountReferenceInput; - connect?: Scalars['Boolean']['input']; - include?: InputMaybe; - newName?: InputMaybe; - newSlug?: InputMaybe; - oldName?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditAccountArgs = { - account: AccountUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationEditAccountFeeStructureArgs = { - account: AccountReferenceInput; - hostFeePercent: Scalars['Float']['input']; - isCustomFee: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationEditAccountFlagsArgs = { - account: AccountReferenceInput; - isArchived?: InputMaybe; - isTrustedHost?: InputMaybe; - isTwoFactorAuthEnabled?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditAccountFreezeStatusArgs = { - account: AccountReferenceInput; - action: AccountFreezeAction; - message?: InputMaybe; - messageForAccountAdmins?: InputMaybe; - messageForContributors?: InputMaybe; - pauseExistingRecurringContributions?: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationEditAccountSettingArgs = { - account: AccountReferenceInput; - key: Scalars['AccountSettingsKey']['input']; - value: Scalars['JSON']['input']; -}; - - -/** This is the root mutation */ -export type MutationEditAccountTypeArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationEditAccountingCategoriesArgs = { - account: AccountReferenceInput; - categories: Array; -}; - - -/** This is the root mutation */ -export type MutationEditAddedFundsArgs = { - account: AccountReferenceInput; - accountingCategory?: InputMaybe; - amount: AmountInput; - description: Scalars['String']['input']; - fromAccount: AccountReferenceInput; - hostFeePercent?: InputMaybe; - invoiceTemplate?: InputMaybe; - memo?: InputMaybe; - order: OrderReferenceInput; - paymentProcessorFee?: InputMaybe; - processedAt?: InputMaybe; - tax?: InputMaybe; - tier?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditAgreementArgs = { - agreement: AgreementReferenceInput; - attachment?: InputMaybe; - expiresAt?: InputMaybe; - notes?: InputMaybe; - title?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditCommentArgs = { - comment: CommentUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationEditConversationArgs = { - id: Scalars['String']['input']; - tags?: InputMaybe>>; - title: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationEditExpenseArgs = { - draftKey?: InputMaybe; - expense: ExpenseUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationEditLegalDocumentStatusArgs = { - file?: InputMaybe; - host: AccountReferenceInput; - id: Scalars['String']['input']; - message?: InputMaybe; - status: LegalDocumentRequestStatus; -}; - - -/** This is the root mutation */ -export type MutationEditMemberArgs = { - account: AccountReferenceInput; - description?: InputMaybe; - memberAccount: AccountReferenceInput; - role?: InputMaybe; - since?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditMemberInvitationArgs = { - account: AccountReferenceInput; - description?: InputMaybe; - memberAccount: AccountReferenceInput; - role?: InputMaybe; - since?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditPendingOrderArgs = { - order: PendingOrderEditInput; -}; - - -/** This is the root mutation */ -export type MutationEditPublicMessageArgs = { - fromAccount: AccountReferenceInput; - message?: InputMaybe; - toAccount: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationEditTierArgs = { - tier: TierUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationEditTransactionsImportArgs = { - id: Scalars['NonEmptyString']['input']; - name?: InputMaybe; - source?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationEditTwoFactorAuthenticationMethodArgs = { - name?: InputMaybe; - userTwoFactorMethod: UserTwoFactorMethodReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationEditUpdateArgs = { - update: UpdateUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationEditVendorArgs = { - archive?: InputMaybe; - vendor: VendorEditInput; -}; - - -/** This is the root mutation */ -export type MutationEditVirtualCardArgs = { - assignee?: InputMaybe; - limitAmount?: InputMaybe; - limitInterval?: InputMaybe; - name?: InputMaybe; - virtualCard: VirtualCardReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationFollowAccountArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationFollowConversationArgs = { - id: Scalars['String']['input']; - isActive?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationImportTransactionsArgs = { - csvConfig?: InputMaybe; - data: Array; - file?: InputMaybe; - id: Scalars['NonEmptyString']['input']; -}; - - -/** This is the root mutation */ -export type MutationInviteMemberArgs = { - account: AccountReferenceInput; - description?: InputMaybe; - memberAccount: AccountReferenceInput; - role: MemberRole; - since?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationMergeAccountsArgs = { - dryRun?: Scalars['Boolean']['input']; - fromAccount: AccountReferenceInput; - toAccount: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationMoveExpensesArgs = { - destinationAccount: AccountReferenceInput; - expenses: Array; -}; - - -/** This is the root mutation */ -export type MutationMoveOrdersArgs = { - fromAccount?: InputMaybe; - makeIncognito?: InputMaybe; - orders: Array; - tier?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationPauseVirtualCardArgs = { - virtualCard: VirtualCardReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationProcessExpenseArgs = { - action: ExpenseProcessAction; - draftKey?: InputMaybe; - expense: ExpenseReferenceInput; - message?: InputMaybe; - paymentParams?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationProcessHostApplicationArgs = { - account?: InputMaybe; - action: ProcessHostApplicationAction; - host?: InputMaybe; - hostApplication?: InputMaybe; - message?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationProcessPendingOrderArgs = { - action: ProcessOrderAction; - order: OrderUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationPublishUpdateArgs = { - id: Scalars['String']['input']; - notificationAudience?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationRefundTransactionArgs = { - ignoreBalanceCheck?: InputMaybe; - transaction: TransactionReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationRejectTransactionArgs = { - message?: InputMaybe; - transaction: TransactionReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationRejectVirtualCardRequestArgs = { - virtualCardRequest?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationRemoveEmojiReactionArgs = { - comment?: InputMaybe; - emoji: Scalars['String']['input']; - update?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationRemoveHostArgs = { - account: AccountReferenceInput; - message?: InputMaybe; - messageForContributors?: InputMaybe; - pauseContributions?: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationRemoveMemberArgs = { - account: AccountReferenceInput; - isInvitation?: InputMaybe; - memberAccount: AccountReferenceInput; - role: MemberRole; -}; - - -/** This is the root mutation */ -export type MutationRemovePayoutMethodArgs = { - payoutMethodId: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationRemoveTwoFactorAuthTokenFromIndividualArgs = { - account: AccountReferenceInput; - code?: InputMaybe; - type?: InputMaybe; - userTwoFactorMethod?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationReplyToMemberInvitationArgs = { - accept: Scalars['Boolean']['input']; - invitation: MemberInvitationReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationRequestVirtualCardArgs = { - account: AccountReferenceInput; - budget?: InputMaybe; - notes?: InputMaybe; - purpose?: InputMaybe; - spendingLimitAmount?: InputMaybe; - spendingLimitInterval?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationResendDraftExpenseInviteArgs = { - expense: ExpenseReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationResumeVirtualCardArgs = { - virtualCard: VirtualCardReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationRevokeOAuthAuthorizationArgs = { - oAuthAuthorization: OAuthAuthorizationReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationRootAnonymizeAccountArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationSendGuestConfirmationEmailArgs = { - email: Scalars['EmailAddress']['input']; -}; - - -/** This is the root mutation */ -export type MutationSendMessageArgs = { - account: AccountReferenceInput; - message: Scalars['NonEmptyString']['input']; - subject?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationSendSurveyResponseArgs = { - okToContact?: InputMaybe; - responseId: Scalars['String']['input']; - score: Scalars['Int']['input']; - surveyKey: Scalars['String']['input']; - text?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationSetChangelogViewDateArgs = { - changelogViewDate: Scalars['DateTime']['input']; -}; - - -/** This is the root mutation */ -export type MutationSetEmailNotificationArgs = { - account?: InputMaybe; - active: Scalars['Boolean']['input']; - type: ActivityAndClassesType; -}; - - -/** This is the root mutation */ -export type MutationSetNewsletterOptInArgs = { - newsletterOptIn: Scalars['Boolean']['input']; -}; - - -/** This is the root mutation */ -export type MutationSetPasswordArgs = { - currentPassword?: InputMaybe; - password: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationSetPoliciesArgs = { - account: AccountReferenceInput; - policies: PoliciesInput; -}; - - -/** This is the root mutation */ -export type MutationSetTagsArgs = { - expense?: InputMaybe; - order?: InputMaybe; - tags?: InputMaybe>>; -}; - - -/** This is the root mutation */ -export type MutationStartResumeOrdersProcessArgs = { - account: AccountReferenceInput; - message?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationSubmitLegalDocumentArgs = { - account: AccountReferenceInput; - formData: Scalars['JSON']['input']; - type: LegalDocumentType; -}; - - -/** This is the root mutation */ -export type MutationSyncPlaidAccountArgs = { - connectedAccount: ConnectedAccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationUnfollowAccountArgs = { - account: AccountReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationUnpublishUpdateArgs = { - id: Scalars['String']['input']; -}; - - -/** This is the root mutation */ -export type MutationUpdateApplicationArgs = { - application: ApplicationUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationUpdateOrderArgs = { - amount?: InputMaybe; - order: OrderReferenceInput; - paymentMethod?: InputMaybe; - paypalSubscriptionId?: InputMaybe; - tier?: InputMaybe; -}; - - -/** This is the root mutation */ -export type MutationUpdateOrderAccountingCategoryArgs = { - accountingCategory?: InputMaybe; - order: OrderReferenceInput; -}; - - -/** This is the root mutation */ -export type MutationUpdatePersonalTokenArgs = { - personalToken: PersonalTokenUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationUpdateSocialLinksArgs = { - account: AccountReferenceInput; - socialLinks: Array; -}; - - -/** This is the root mutation */ -export type MutationUpdateTransactionsImportRowsArgs = { - dismissAll?: InputMaybe; - id: Scalars['NonEmptyString']['input']; - restoreAll?: InputMaybe; - rows?: InputMaybe>; -}; - - -/** This is the root mutation */ -export type MutationUpdateWebhookArgs = { - webhook: WebhookUpdateInput; -}; - - -/** This is the root mutation */ -export type MutationUploadFileArgs = { - files: Array; -}; - -export type NewAccountOrReferenceInput = { - email?: InputMaybe; - /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** - * The internal id of the account (ie: 580) - * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. - */ - legacyId?: InputMaybe; - legalName?: InputMaybe; - name?: InputMaybe; - newsletterOptIn?: InputMaybe; - organization?: InputMaybe; - /** The slug identifying the account (ie: babel for https://opencollective.com/babel) */ - slug?: InputMaybe; -}; - -export type NewAccountOrganizationInput = { - description?: InputMaybe; - legalName?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - website?: InputMaybe; -}; - -/** A collection of "Application" */ -export type OAuthApplicationCollection = Collection & { - __typename?: 'OAuthApplicationCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** An OAuth authorization */ -export type OAuthAuthorization = { - __typename?: 'OAuthAuthorization'; - account: Individual; - application: Application; - /** The time of creation */ - createdAt: Scalars['DateTime']['output']; - /** The time of expiration */ - expiresAt: Scalars['DateTime']['output']; - id?: Maybe; - /** The last time of token was used */ - lastUsedAt?: Maybe; - /** Whether this OAuth token is allowed to directly use operations that would normally require 2FA */ - preAuthorize2FA: Scalars['Boolean']['output']; - /** The attached scopes. */ - scope?: Maybe>>; - /** The time of last update */ - updatedAt: Scalars['DateTime']['output']; -}; - -/** A collection of "OAuth Authorizations" */ -export type OAuthAuthorizationCollection = Collection & { - __typename?: 'OAuthAuthorizationCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -export type OAuthAuthorizationReferenceInput = { - /** The id identifying the OAuth Authorization (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; -}; - -/** All supported OAuth scopes */ -export enum OAuthScope { - /** Manage your account, collectives and organizations. */ - account = 'account', - /** Create and manage OAuth applications. */ - applications = 'applications', - /** Create and manage connected accounts. */ - connectedAccounts = 'connectedAccounts', - /** Create and manage conversations. */ - conversations = 'conversations', - /** Access your email address. */ - email = 'email', - /** Create and manage expenses, payout methods. */ - expenses = 'expenses', - /** Administrate fiscal hosts. */ - host = 'host', - /** Access your incognito account. */ - incognito = 'incognito', - /** Create and manage contributions, payment methods. */ - orders = 'orders', - /** Perform critical administrative operations. */ - root = 'root', - /** Refund and reject recorded transactions. */ - transactions = 'transactions', - /** Create and manage updates. */ - updates = 'updates', - /** Create and manage virtual cards. */ - virtualCards = 'virtualCards', - /** Create and manage webhooks */ - webhooks = 'webhooks' -} - -/** To configure the OCR parsing */ -export type OcrParsingOptionsInput = { - /** The currency that you'd like to use for the amounts */ - currency?: InputMaybe; -}; - -/** Order model */ -export type Order = { - __typename?: 'Order'; - /** The accounting category attached to this order */ - accountingCategory?: Maybe; - /** The list of activities (ie. approved, edited, etc) for this Order ordered by date ascending */ - activities: ActivityCollection; - /** Base order amount (without platform tip) */ - amount: Amount; - /** Returns the list of comments for this order, or `null` if user is not allowed to see them */ - comments?: Maybe; - createdAt?: Maybe; - /** The account who created this order */ - createdByAccount?: Maybe; - /** Custom data related to the order, based on the fields described by tier.customFields. Must be authenticated as an admin of the fromAccount or toAccount (returns null otherwise) */ - customData?: Maybe; - /** Data related to the order */ - data?: Maybe; - description?: Maybe; - frequency?: Maybe; - fromAccount?: Maybe; - /** Host fee percent attached to the Order. */ - hostFeePercent?: Maybe; - id: Scalars['String']['output']; - lastChargedAt?: Maybe; - legacyId: Scalars['Int']['output']; - /** This represents a MemberOf relationship (ie: Collective backed by an Individual) attached to the Order. */ - membership?: Maybe; - /** Memo field which adds additional details about the order. For example in added funds this can be a note to mark what method (cheque, money order) the funds were received. */ - memo?: Maybe; - /** Whether the order needs confirmation (3DSecure/SCA) */ - needsConfirmation?: Maybe; - nextChargeDate?: Maybe; - paymentMethod?: Maybe; - /** Payment processor fee attached to manually Added Funds. */ - paymentProcessorFee?: Maybe; - paymentProcessorUrl?: Maybe; - /** Data about the pending contribution */ - pendingContributionData?: Maybe; - /** The permissions given to current logged in user for this order */ - permissions: OrderPermissions; - /** Platform Tip attached to the Order. */ - platformTipAmount?: Maybe; - platformTipEligible?: Maybe; - /** Date the funds were received. */ - processedAt?: Maybe; - quantity?: Maybe; - status?: Maybe; - tags: Array>; - tax?: Maybe; - /** Tax amount */ - taxAmount?: Maybe; - /** @deprecated 2023-04-13: Please use `tax` instead. */ - taxes: Array>; - tier?: Maybe; - toAccount?: Maybe; - /** Total order amount, including all taxes and platform tip */ - totalAmount: Amount; - /** WARNING: Total amount donated between collectives, though there will be edge cases especially when looking on the Order level, as the order id is not used in calculating this. */ - totalDonations: Amount; - /** Transactions for this order ordered by createdAt ASC */ - transactions: Array>; - updatedAt?: Maybe; -}; - - -/** Order model */ -export type OrderCommentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; -}; - -/** Possible fields you can use to order by */ -export enum OrderByFieldType { - /** The financial activity of the collective (number of transactions) */ - ACTIVITY = 'ACTIVITY', - BALANCE = 'BALANCE', - CREATED_AT = 'CREATED_AT', - HOSTED_COLLECTIVES_COUNT = 'HOSTED_COLLECTIVES_COUNT', - HOST_RANK = 'HOST_RANK', - LAST_CHARGED_AT = 'LAST_CHARGED_AT', - MEMBER_COUNT = 'MEMBER_COUNT', - NAME = 'NAME', - RANK = 'RANK', - TOTAL_CONTRIBUTED = 'TOTAL_CONTRIBUTED' -} - -/** Input to order collection */ -export type OrderByInput = { - /** Ordering direction. */ - direction: OrderDirection; - /** Field to order by. */ - field: OrderByFieldType; -}; - -/** A collection of "Orders" */ -export type OrderCollection = Collection & { - __typename?: 'OrderCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Some context about how an order was created */ -export type OrderContextInput = { - /** Whether this order was created using the embedded contribution flow */ - isEmbed?: InputMaybe; - /** Whether this order was created using the new platform tip flow */ - isNewPlatformTipFlow?: InputMaybe; -}; - -/** Input to create a new order */ -export type OrderCreateInput = { - /** The contribution amount for 1 quantity, without platform contribution and taxes */ - amount: AmountInput; - /** Some context about how this order was created */ - context?: InputMaybe; - /** If the tier has some "customFields", use this field to set their values */ - customData?: InputMaybe; - /** Data related to this order */ - data?: InputMaybe; - frequency: ContributionFrequency; - /** The profile making the order. Can be null for guest contributions. */ - fromAccount?: InputMaybe; - /** Additional information about the contributing profile */ - fromAccountInfo?: InputMaybe; - /** Use this when fromAccount is null to pass the guest info */ - guestInfo?: InputMaybe; - /** Whether this is transferring the remaining balance from a project/event/collective */ - isBalanceTransfer?: InputMaybe; - /** The payment method used for this order */ - paymentMethod?: InputMaybe; - /** Platform tip attached to this order */ - platformTipAmount?: InputMaybe; - quantity?: Scalars['Int']['input']; - /** Tags associated to the order */ - tags?: InputMaybe>>; - /** The tax to apply to the order */ - tax?: InputMaybe; - /** - * Use this field to set the taxes associated to this order - * @deprecated 2023-04-11: Please use `tax` instead - */ - taxes?: InputMaybe>>; - /** The tier you are contributing to */ - tier?: InputMaybe; - /** The profile you want to contribute to */ - toAccount: AccountReferenceInput; -}; - -/** Possible directions in which to order a list of items */ -export enum OrderDirection { - ASC = 'ASC', - DESC = 'DESC' -} - -/** Some context about how an order was created */ -export type OrderFromAccountInfo = { - email?: InputMaybe; - legalName?: InputMaybe; - /** The location of the contributor. Account location will be updated with this address if different from the existing one. */ - location?: InputMaybe; - name?: InputMaybe; -}; - -/** The user or system that paused the order */ -export enum OrderPausedBy { - /** The collective */ - COLLECTIVE = 'COLLECTIVE', - /** The host of the collective */ - HOST = 'HOST', - /** The platform */ - PLATFORM = 'PLATFORM', - /** Individual who administers the account for this contribution */ - USER = 'USER' -} - -/** Fields for the user permissions on an order */ -export type OrderPermissions = { - __typename?: 'OrderPermissions'; - /** Whether the current user can comment on this order */ - canComment: Scalars['Boolean']['output']; - /** Whether the current user can edit this pending order */ - canEdit: Scalars['Boolean']['output']; - /** Whether the current user can mark this order as expired */ - canMarkAsExpired: Scalars['Boolean']['output']; - /** Whether the current user can mark this order as unpaid */ - canMarkAsPaid: Scalars['Boolean']['output']; - /** If paused, whether the current user can resume this order */ - canResume: Scalars['Boolean']['output']; - /** Whether the current user can see private activities for this order */ - canSeePrivateActivities: Scalars['Boolean']['output']; - /** Whether the current user can set tags on this order */ - canSetTags: Scalars['Boolean']['output']; - /** Whether the current user can update the accounting category of this order */ - canUpdateAccountingCategory: Scalars['Boolean']['output']; - id: Scalars['String']['output']; -}; - -export type OrderReferenceInput = { - /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The legacy public id identifying the order (ie: 4242) */ - legacyId?: InputMaybe; -}; - -/** All order statuses */ -export enum OrderStatus { - ACTIVE = 'ACTIVE', - CANCELLED = 'CANCELLED', - DISPUTED = 'DISPUTED', - ERROR = 'ERROR', - EXPIRED = 'EXPIRED', - IN_REVIEW = 'IN_REVIEW', - NEW = 'NEW', - PAID = 'PAID', - PAUSED = 'PAUSED', - PENDING = 'PENDING', - PROCESSING = 'PROCESSING', - REFUNDED = 'REFUNDED', - REJECTED = 'REJECTED', - REQUIRE_CLIENT_CONFIRMATION = 'REQUIRE_CLIENT_CONFIRMATION' -} - -export type OrderTax = { - __typename?: 'OrderTax'; - percentage: Scalars['Int']['output']; - type: OrderTaxType; -}; - -/** Input to set taxes for an order */ -export type OrderTaxInput = { - amount: AmountInput; - /** Country of the account ordering, to know from where to apply the tax */ - country?: InputMaybe; - /** Tax identification number, if any */ - idNumber?: InputMaybe; - type: OrderTaxType; -}; - -/** The type of a tax like GST, VAT, etc */ -export enum OrderTaxType { - /** New Zealand Good and Services Tax */ - GST = 'GST', - /** European Value Added Tax */ - VAT = 'VAT' -} - -export type OrderUpdateInput = { - /** Amount received by collective, excluding any tips, taxes or fees */ - amount?: InputMaybe; - /** Host fee percent to be applied to the order */ - hostFeePercent?: InputMaybe; - /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The legacy public id identifying the order (ie: 4242) */ - legacyId?: InputMaybe; - /** Amount paid in fees for the payment processor */ - paymentProcessorFee?: InputMaybe; - /** Amount intended as tip for the platform */ - platformTip?: InputMaybe; - /** Date the funds were received */ - processedAt?: InputMaybe; - /** The tax to apply to the order */ - tax?: InputMaybe; - /** Reference to the transaction import row to link the order to */ - transactionsImportRow?: InputMaybe; -}; - -export type OrderWithPayment = { - __typename?: 'OrderWithPayment'; - /** If donating as a guest, this will contain your guest token to confirm your order */ - guestToken?: Maybe; - /** The order created */ - order: Order; - /** This field will be set if the order was created but there was an error with Stripe during the payment */ - stripeError?: Maybe; -}; - -/** This represents an Organization account */ -export type Organization = Account & AccountWithContributions & { - __typename?: 'Organization'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** @deprecated 2022-07-18: This field is deprecated and will return null */ - email?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** If the organization is a host account, this will return the matching Host object */ - host?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** - * - * Address. This field is public for hosts, otherwise: - * - Users can see the addresses of the collectives they're admin of; if they are not an admin they can only see the country that the org belong to. - * - Hosts can see the address of organizations submitting expenses to their collectives. - * - */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Organization account */ -export type OrganizationActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents an Organization account */ -export type OrganizationUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents an Organization account */ -export type OrganizationVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Organization account */ -export type OrganizationVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents an Organization account */ -export type OrganizationWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type OrganizationCreateInput = { - /** The profile background image, for the banner and social media sharing */ - backgroundImage?: InputMaybe; - description: Scalars['String']['input']; - /** The profile avatar image */ - image?: InputMaybe; - legalName?: InputMaybe; - name: Scalars['String']['input']; - settings?: InputMaybe; - slug: Scalars['String']['input']; - /** @deprecated 2024-11-12: Please use socialLinks */ - website?: InputMaybe; -}; - -export type ParseUploadedFileResult = { - __typename?: 'ParseUploadedFileResult'; - /** The parsed expense information */ - expense?: Maybe; - /** A message describing the parsing result, usually an error message (if parsing failed) or some warnings */ - message?: Maybe; - /** Whether the parsing was successful */ - success: Scalars['Boolean']['output']; -}; - -/** A Stripe payment intent */ -export type PaymentIntent = { - __typename?: 'PaymentIntent'; - id: Scalars['String']['output']; - paymentIntentClientSecret: Scalars['String']['output']; - stripeAccount: Scalars['String']['output']; - stripeAccountPublishableSecret: Scalars['String']['output']; -}; - -/** Input to create a Stripe payment intent */ -export type PaymentIntentInput = { - amount: AmountInput; - frequency?: InputMaybe; - fromAccount?: InputMaybe; - toAccount: AccountReferenceInput; -}; - -/** PaymentMethod model */ -export type PaymentMethod = { - __typename?: 'PaymentMethod'; - account?: Maybe; - /** Returns the balance amount and the currency of this paymentMethod */ - balance: Amount; - createdAt?: Maybe; - data?: Maybe; - expiryDate?: Maybe; - id?: Maybe; - legacyId?: Maybe; - limitedToHosts?: Maybe>>; - /** For monthly gift cards, this field will return the monthly limit */ - monthlyLimit?: Maybe; - name?: Maybe; - /** Get all the orders associated with this payment method */ - orders?: Maybe; - /** - * Defines the type of the payment method. Meant to be moved to "type" in the future. - * @deprecated 2021-03-02: Please use service + type - */ - providerType?: Maybe; - service?: Maybe; - /** For gift cards, this field will return to the source payment method */ - sourcePaymentMethod?: Maybe; - type?: Maybe; -}; - - -/** PaymentMethod model */ -export type PaymentMethodOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - -/** An input to use for creating or retrieving payment methods */ -export type PaymentMethodInput = { - /** When creating a credit card, use this field to set its info */ - creditCardInfo?: InputMaybe; - /** The id assigned to the payment method */ - id?: InputMaybe; - /** Whether this payment method should be saved for future payments */ - isSavedForLater?: InputMaybe; - /** - * Type of this payment method - * @deprecated 2021-03-02: Please use service + type - */ - legacyType?: InputMaybe; - /** Name of this payment method */ - name?: InputMaybe; - /** @deprecated 2021-08-20: Please use type instead */ - newType?: InputMaybe; - /** The Payment Intent ID used in this checkout */ - paymentIntentId?: InputMaybe; - /** To pass when type is PAYPAL */ - paypalInfo?: InputMaybe; - /** Service of this payment method */ - service?: InputMaybe; - /** Type of this payment method */ - type?: InputMaybe; -}; - -export enum PaymentMethodLegacyType { - ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', - ADDED_FUNDS = 'ADDED_FUNDS', - ALIPAY = 'ALIPAY', - BACS_DEBIT = 'BACS_DEBIT', - BANCONTACT = 'BANCONTACT', - BANK_TRANSFER = 'BANK_TRANSFER', - CREDIT_CARD = 'CREDIT_CARD', - CRYPTO = 'CRYPTO', - GIFT_CARD = 'GIFT_CARD', - PAYMENT_INTENT = 'PAYMENT_INTENT', - PAYPAL = 'PAYPAL', - PREPAID_BUDGET = 'PREPAID_BUDGET', - SEPA_DEBIT = 'SEPA_DEBIT', - US_BANK_ACCOUNT = 'US_BANK_ACCOUNT' -} - -export type PaymentMethodReferenceInput = { - /** The id assigned to the payment method */ - id?: InputMaybe; -}; - -export enum PaymentMethodService { - OPENCOLLECTIVE = 'OPENCOLLECTIVE', - PAYPAL = 'PAYPAL', - STRIPE = 'STRIPE', - THEGIVINGBLOCK = 'THEGIVINGBLOCK', - WISE = 'WISE' -} - -export enum PaymentMethodType { - ADAPTIVE = 'ADAPTIVE', - ALIPAY = 'ALIPAY', - BACS_DEBIT = 'BACS_DEBIT', - BANCONTACT = 'BANCONTACT', - BANK_TRANSFER = 'BANK_TRANSFER', - COLLECTIVE = 'COLLECTIVE', - CREDITCARD = 'CREDITCARD', - CRYPTO = 'CRYPTO', - DEFAULT = 'DEFAULT', - GIFTCARD = 'GIFTCARD', - HOST = 'HOST', - LINK = 'LINK', - MANUAL = 'MANUAL', - PAYMENT = 'PAYMENT', - PAYMENT_INTENT = 'PAYMENT_INTENT', - PAYOUT = 'PAYOUT', - PREPAID = 'PREPAID', - SEPA_DEBIT = 'SEPA_DEBIT', - SUBSCRIPTION = 'SUBSCRIPTION', - SWISH = 'SWISH', - US_BANK_ACCOUNT = 'US_BANK_ACCOUNT', - VIRTUAL_CARD = 'VIRTUAL_CARD', - /** @deprecated Please use uppercase values */ - adaptive = 'adaptive', - /** @deprecated Please use uppercase values */ - alipay = 'alipay', - /** @deprecated Please use uppercase values */ - bacs_debit = 'bacs_debit', - /** @deprecated Please use uppercase values */ - bancontact = 'bancontact', - /** @deprecated Please use uppercase values */ - bank_transfer = 'bank_transfer', - /** @deprecated Please use uppercase values */ - collective = 'collective', - /** @deprecated Please use uppercase values */ - creditcard = 'creditcard', - /** @deprecated Please use uppercase values */ - crypto = 'crypto', - /** @deprecated Please use uppercase values */ - default = 'default', - /** @deprecated Please use uppercase values */ - giftcard = 'giftcard', - /** @deprecated Please use uppercase values */ - host = 'host', - /** @deprecated Please use uppercase values */ - link = 'link', - /** @deprecated Please use uppercase values */ - manual = 'manual', - /** @deprecated Please use uppercase values */ - payment = 'payment', - /** @deprecated Please use uppercase values */ - paymentintent = 'paymentintent', - /** @deprecated Please use uppercase values */ - payout = 'payout', - /** @deprecated Please use uppercase values */ - prepaid = 'prepaid', - /** @deprecated Please use uppercase values */ - sepa_debit = 'sepa_debit', - /** @deprecated Please use uppercase values */ - subscription = 'subscription', - /** @deprecated Please use uppercase values */ - swish = 'swish', - /** @deprecated Please use uppercase values */ - us_bank_account = 'us_bank_account', - /** @deprecated Please use uppercase values */ - virtual_card = 'virtual_card' -} - -/** A payout method */ -export type PayoutMethod = { - __typename?: 'PayoutMethod'; - /** The actual data for this payout method. Content depends on the type. */ - data?: Maybe; - /** Unique identifier for this payout method */ - id: Scalars['String']['output']; - /** Whether this payout method has been saved to be used for future payouts */ - isSaved?: Maybe; - /** A friendly name for users to easily find their payout methods */ - name?: Maybe; - /** The type of this payout method (usually the payment provider) */ - type?: Maybe; -}; - -export type PayoutMethodInput = { - data?: InputMaybe; - id?: InputMaybe; - isSaved?: InputMaybe; - legacyId?: InputMaybe; - name?: InputMaybe; - type?: InputMaybe; -}; - -export enum PayoutMethodType { - ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', - BANK_ACCOUNT = 'BANK_ACCOUNT', - CREDIT_CARD = 'CREDIT_CARD', - OTHER = 'OTHER', - PAYPAL = 'PAYPAL' -} - -export type PaypalPaymentInput = { - data?: InputMaybe; - orderId?: InputMaybe; - subscriptionId?: InputMaybe; - token?: InputMaybe; -}; - -/** A PayPal plan to associate with a contribution */ -export type PaypalPlan = { - __typename?: 'PaypalPlan'; - id: Scalars['String']['output']; -}; - -/** Input to create a new pending order */ -export type PendingOrderCreateInput = { - /** The accounting category of this order */ - accountingCategory?: InputMaybe; - /** The contribution amount, without platform contribution and taxes */ - amount: AmountInput; - /** Public order description */ - description?: InputMaybe; - /** When is the money expected? */ - expectedAt?: InputMaybe; - /** The profile making the contribution. */ - fromAccount: AccountReferenceInput; - /** Additional information about the contributing profile */ - fromAccountInfo?: InputMaybe; - /** Custom Host fee percent for this order */ - hostFeePercent?: InputMaybe; - /** Private memo for the host */ - memo?: InputMaybe; - /** Payment method expected for this order */ - paymentMethod?: InputMaybe; - /** External identifier for the order */ - ponumber?: InputMaybe; - /** The tax to apply to the order */ - tax?: InputMaybe; - /** The tier you are contributing to */ - tier?: InputMaybe; - /** The collective you want to contribute to */ - toAccount: AccountReferenceInput; -}; - -export type PendingOrderData = { - __typename?: 'PendingOrderData'; - expectedAt?: Maybe; - fromAccountInfo?: Maybe; - memo?: Maybe; - paymentMethod?: Maybe; - ponumber?: Maybe; -}; - -/** Input to edit an existing pending order */ -export type PendingOrderEditInput = { - /** The accounting category of this order */ - accountingCategory?: InputMaybe; - /** The contribution amount, without platform contribution and taxes */ - amount: AmountInput; - /** Public order description */ - description?: InputMaybe; - /** When is the money expected? */ - expectedAt?: InputMaybe; - /** The profile making the contribution. */ - fromAccount?: InputMaybe; - /** Additional information about the contributing profile */ - fromAccountInfo?: InputMaybe; - /** Custom Host fee percent for this order */ - hostFeePercent?: InputMaybe; - /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The legacy public id identifying the order (ie: 4242) */ - legacyId?: InputMaybe; - /** Private memo for the host */ - memo?: InputMaybe; - /** Payment method expected for this order */ - paymentMethod?: InputMaybe; - /** Platform tip attached to this order */ - platformTipAmount?: InputMaybe; - /** External identifier for the order */ - ponumber?: InputMaybe; - /** The tax to apply to the order */ - tax?: InputMaybe; - /** The tier you are contributing to */ - tier?: InputMaybe; -}; - -export type PendingOrderFromAccountInfo = { - __typename?: 'PendingOrderFromAccountInfo'; - email?: Maybe; - name?: Maybe; -}; - -export type Permission = { - __typename?: 'Permission'; - allowed: Scalars['Boolean']['output']; - reason?: Maybe; - reasonDetails?: Maybe; -}; - -/** A personal token */ -export type PersonalToken = { - __typename?: 'PersonalToken'; - /** The account that owns this personal token */ - account: Individual; - /** The date on which the personal token was created */ - createdAt?: Maybe; - /** The date on which the personal token expires */ - expiresAt?: Maybe; - /** Unique identifier for this personal token */ - id: Scalars['String']['output']; - /** A friendly name for users to easily find their personal tokens */ - name?: Maybe; - /** Whether this token is allowed to directly use operations that would normally require 2FA */ - preAuthorize2FA: Scalars['Boolean']['output']; - /** The scopes of the personal token */ - scope?: Maybe>>; - /** The personal token */ - token?: Maybe; - /** The date on which the personal token was last updated */ - updatedAt?: Maybe; -}; - -/** A collection of "PersonalToken" */ -export type PersonalTokenCollection = Collection & { - __typename?: 'PersonalTokenCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Input type for PersonalToken */ -export type PersonalTokenCreateInput = { - /** The account to use as the owner of the application. Defaults to currently logged in user. */ - account?: InputMaybe; - expiresAt?: InputMaybe; - name?: InputMaybe; - /** Whether this token is allowed to directly use operations that would normally require 2FA */ - preAuthorize2FA?: InputMaybe; - scope?: InputMaybe>>; -}; - -export type PersonalTokenReferenceInput = { - /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The legacy public id identifying the personal-token (ie: 4242) */ - legacyId?: InputMaybe; -}; - -/** Input type for PersonalToken */ -export type PersonalTokenUpdateInput = { - expiresAt?: InputMaybe; - /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ - id?: InputMaybe; - /** The legacy public id identifying the personal-token (ie: 4242) */ - legacyId?: InputMaybe; - name?: InputMaybe; - /** Whether this token is allowed to directly use operations that would normally require 2FA */ - preAuthorize2FA?: InputMaybe; - scope?: InputMaybe>>; -}; - -export type PlaidConnectAccountResponse = { - __typename?: 'PlaidConnectAccountResponse'; - /** The connected account that was created */ - connectedAccount: ConnectedAccount; - /** The transactions import that was created */ - transactionsImport: TransactionsImport; -}; - -export type PlaidLinkTokenCreateResponse = { - __typename?: 'PlaidLinkTokenCreateResponse'; - /** The expiration date for the link token in ISO 8601 format. */ - expiration: Scalars['String']['output']; - /** A URL of a Plaid-hosted Link flow that will use the Link token returned by this request. Only present if the client is enabled for Host */ - hostedLinkUrl?: Maybe; - /** The link token that will be used to initialize the Plaid Link flow. */ - linkToken: Scalars['String']['output']; - /** A unique identifier for the request, which can be used for troubleshooting. */ - requestId: Scalars['String']['output']; -}; - -export type Policies = { - __typename?: 'Policies'; - COLLECTIVE_ADMINS_CAN_REFUND?: Maybe; - COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS?: Maybe; - COLLECTIVE_MINIMUM_ADMINS?: Maybe; - EXPENSE_AUTHOR_CANNOT_APPROVE?: Maybe; - EXPENSE_CATEGORIZATION?: Maybe; - EXPENSE_POLICIES?: Maybe; - EXPENSE_PUBLIC_VENDORS?: Maybe; - MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL?: Maybe; - REQUIRE_2FA_FOR_ADMINS?: Maybe; - id?: Maybe; -}; - -export type PoliciesCollectiveExpenseAuthorCannotApprove = { - amountInCents?: InputMaybe; - appliesToHostedCollectives?: InputMaybe; - appliesToSingleAdminCollectives?: InputMaybe; - enabled?: InputMaybe; -}; - -export type PoliciesCollectiveMinimumAdminsInput = { - applies?: InputMaybe; - freeze?: InputMaybe; - numberOfAdmins?: InputMaybe; -}; - -export type PoliciesExpenseCategorizationInput = { - requiredForCollectiveAdmins?: InputMaybe; - requiredForExpenseSubmitters?: InputMaybe; -}; - -export type PoliciesExpensePolicies = { - invoicePolicy?: InputMaybe; - receiptPolicy?: InputMaybe; - titlePolicy?: InputMaybe; -}; - -export type PoliciesInput = { - COLLECTIVE_ADMINS_CAN_REFUND?: InputMaybe; - COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS?: InputMaybe; - COLLECTIVE_MINIMUM_ADMINS?: InputMaybe; - EXPENSE_AUTHOR_CANNOT_APPROVE?: InputMaybe; - EXPENSE_CATEGORIZATION?: InputMaybe; - EXPENSE_POLICIES?: InputMaybe; - EXPENSE_PUBLIC_VENDORS?: InputMaybe; - REQUIRE_2FA_FOR_ADMINS?: InputMaybe; -}; - -/** Defines how the policy is applied */ -export enum PolicyApplication { - ALL_COLLECTIVES = 'ALL_COLLECTIVES', - NEW_COLLECTIVES = 'NEW_COLLECTIVES' -} - -/** Parameters for paying an expense */ -export type ProcessExpensePaymentParams = { - /** Date funds were cleared on the fiscal host bank, Wise, PayPal, Stripe or any other external account holding these funds. */ - clearedAt?: InputMaybe; - /** Who is responsible for paying any due fees. */ - feesPayer?: InputMaybe; - /** Bypass automatic integrations (ie. PayPal, Transferwise) to process the expense manually */ - forceManual?: InputMaybe; - /** New expense status when triggering MARK_AS_UNPAID */ - markAsUnPaidStatus?: InputMaybe; - /** Payment method using for paying the expense */ - paymentMethodService?: InputMaybe; - /** The fee charged by payment processor in host currency */ - paymentProcessorFeeInHostCurrency?: InputMaybe; - /** Whether the payment processor fees should be refunded when triggering MARK_AS_UNPAID */ - shouldRefundPaymentProcessorFee?: InputMaybe; - /** The total amount paid in host currency */ - totalAmountPaidInHostCurrency?: InputMaybe; - /** Transfer details for fulfilling the expense */ - transfer?: InputMaybe; -}; - -export type ProcessExpenseTransferParams = { - /** Wise transfer details */ - details?: InputMaybe; -}; - -/** Action taken for an account application to the host */ -export enum ProcessHostApplicationAction { - /** Approve the account request to be hosted */ - APPROVE = 'APPROVE', - /** Rejects the account request to be hosted */ - REJECT = 'REJECT', - /** Sends a private message to the admins of the account */ - SEND_PRIVATE_MESSAGE = 'SEND_PRIVATE_MESSAGE', - /** Creates a public conversation */ - SEND_PUBLIC_MESSAGE = 'SEND_PUBLIC_MESSAGE' +/** Two-letters country code following ISO3166_1 */ +export enum CountryIso { + /** Andorra */ + AD = 'AD', + /** The United Arab Emirates */ + AE = 'AE', + /** Afghanistan */ + AF = 'AF', + /** Antigua and Barbuda */ + AG = 'AG', + /** Anguilla */ + AI = 'AI', + /** Albania */ + AL = 'AL', + /** Armenia */ + AM = 'AM', + /** Angola */ + AO = 'AO', + /** Antarctica */ + AQ = 'AQ', + /** Argentina */ + AR = 'AR', + /** American Samoa */ + AS = 'AS', + /** Austria */ + AT = 'AT', + /** Australia */ + AU = 'AU', + /** Aruba */ + AW = 'AW', + /** Åland Islands */ + AX = 'AX', + /** Azerbaijan */ + AZ = 'AZ', + /** Bosnia and Herzegovina */ + BA = 'BA', + /** Barbados */ + BB = 'BB', + /** Bangladesh */ + BD = 'BD', + /** Belgium */ + BE = 'BE', + /** Burkina */ + BF = 'BF', + /** Bulgaria */ + BG = 'BG', + /** Bahrain */ + BH = 'BH', + /** Burundi */ + BI = 'BI', + /** Benin */ + BJ = 'BJ', + /** Saint Barthélemy */ + BL = 'BL', + /** Bermuda */ + BM = 'BM', + /** Brunei */ + BN = 'BN', + /** Bolivia */ + BO = 'BO', + /** Bonaire, Sint Eustatius and Saba */ + BQ = 'BQ', + /** Brazil */ + BR = 'BR', + /** The Bahamas */ + BS = 'BS', + /** Bhutan */ + BT = 'BT', + /** Bouvet Island */ + BV = 'BV', + /** Botswana */ + BW = 'BW', + /** Belarus */ + BY = 'BY', + /** Belize */ + BZ = 'BZ', + /** Canada */ + CA = 'CA', + /** Cocos Islands */ + CC = 'CC', + /** The Democratic Republic of the Congo */ + CD = 'CD', + /** The Central African Republic */ + CF = 'CF', + /** The Congo */ + CG = 'CG', + /** Switzerland */ + CH = 'CH', + /** Côte d'Ivoire */ + CI = 'CI', + /** Cook Islands */ + CK = 'CK', + /** Chile */ + CL = 'CL', + /** Cameroon */ + CM = 'CM', + /** China */ + CN = 'CN', + /** Colombia */ + CO = 'CO', + /** Costa Rica */ + CR = 'CR', + /** Cuba */ + CU = 'CU', + /** Cape Verde */ + CV = 'CV', + /** Curaçao */ + CW = 'CW', + /** Christmas Island */ + CX = 'CX', + /** Cyprus */ + CY = 'CY', + /** The Czech Republic */ + CZ = 'CZ', + /** Germany */ + DE = 'DE', + /** Djibouti */ + DJ = 'DJ', + /** Denmark */ + DK = 'DK', + /** Dominica */ + DM = 'DM', + /** The Dominican Republic */ + DO = 'DO', + /** Algeria */ + DZ = 'DZ', + /** Ecuador */ + EC = 'EC', + /** Estonia */ + EE = 'EE', + /** Egypt */ + EG = 'EG', + /** Western Sahara */ + EH = 'EH', + /** Eritrea */ + ER = 'ER', + /** Spain */ + ES = 'ES', + /** Ethiopia */ + ET = 'ET', + /** Finland */ + FI = 'FI', + /** Fiji */ + FJ = 'FJ', + /** Falkland Islands */ + FK = 'FK', + /** Micronesia */ + FM = 'FM', + /** Faroe Islands */ + FO = 'FO', + /** France */ + FR = 'FR', + /** Gabon */ + GA = 'GA', + /** The United Kingdom */ + GB = 'GB', + /** Grenada */ + GD = 'GD', + /** Georgia */ + GE = 'GE', + /** French Guiana */ + GF = 'GF', + /** Guernsey */ + GG = 'GG', + /** Ghana */ + GH = 'GH', + /** Gibraltar */ + GI = 'GI', + /** Greenland */ + GL = 'GL', + /** The Gambia */ + GM = 'GM', + /** Guinea */ + GN = 'GN', + /** Guadeloupe */ + GP = 'GP', + /** Equatorial Guinea */ + GQ = 'GQ', + /** Greece */ + GR = 'GR', + /** South Georgia and The South Sandwich Islands */ + GS = 'GS', + /** Guatemala */ + GT = 'GT', + /** Guam */ + GU = 'GU', + /** Guinea-Bissau */ + GW = 'GW', + /** Guyana */ + GY = 'GY', + /** Hong Kong */ + HK = 'HK', + /** Heard Island and McDonald Islands */ + HM = 'HM', + /** Honduras */ + HN = 'HN', + /** Croatia */ + HR = 'HR', + /** Haiti */ + HT = 'HT', + /** Hungary */ + HU = 'HU', + /** Indonesia */ + ID = 'ID', + /** Ireland */ + IE = 'IE', + /** Israel */ + IL = 'IL', + /** Isle of Man */ + IM = 'IM', + /** India */ + IN = 'IN', + /** The British Indian Ocean Territory */ + IO = 'IO', + /** Iraq */ + IQ = 'IQ', + /** Iran */ + IR = 'IR', + /** Iceland */ + IS = 'IS', + /** Italy */ + IT = 'IT', + /** Jersey */ + JE = 'JE', + /** Jamaica */ + JM = 'JM', + /** Jordan */ + JO = 'JO', + /** Japan */ + JP = 'JP', + /** Kenya */ + KE = 'KE', + /** Kyrgyzstan */ + KG = 'KG', + /** Cambodia */ + KH = 'KH', + /** Kiribati */ + KI = 'KI', + /** The Comoros */ + KM = 'KM', + /** Saint Kitts and Nevis */ + KN = 'KN', + /** The Democratic People's Republic of Korea */ + KP = 'KP', + /** The Republic of Korea */ + KR = 'KR', + /** Kuwait */ + KW = 'KW', + /** Cayman Islands */ + KY = 'KY', + /** Kazakhstan */ + KZ = 'KZ', + /** Laos */ + LA = 'LA', + /** Lebanon */ + LB = 'LB', + /** Saint Lucia */ + LC = 'LC', + /** Liechtenstein */ + LI = 'LI', + /** Sri Lanka */ + LK = 'LK', + /** Liberia */ + LR = 'LR', + /** Lesotho */ + LS = 'LS', + /** Lithuania */ + LT = 'LT', + /** Luxembourg */ + LU = 'LU', + /** Latvia */ + LV = 'LV', + /** Libya */ + LY = 'LY', + /** Morocco */ + MA = 'MA', + /** Monaco */ + MC = 'MC', + /** Moldova */ + MD = 'MD', + /** Montenegro */ + ME = 'ME', + /** Saint Martin */ + MF = 'MF', + /** Madagascar */ + MG = 'MG', + /** The Marshall Islands */ + MH = 'MH', + /** Macedonia */ + MK = 'MK', + /** Mali */ + ML = 'ML', + /** Myanmar */ + MM = 'MM', + /** Mongolia */ + MN = 'MN', + /** Macao */ + MO = 'MO', + /** Northern Mariana Islands */ + MP = 'MP', + /** Martinique */ + MQ = 'MQ', + /** Mauritania */ + MR = 'MR', + /** Montserrat */ + MS = 'MS', + /** Malta */ + MT = 'MT', + /** Mauritius */ + MU = 'MU', + /** Maldives */ + MV = 'MV', + /** Malawi */ + MW = 'MW', + /** Mexico */ + MX = 'MX', + /** Malaysia */ + MY = 'MY', + /** Mozambique */ + MZ = 'MZ', + /** Namibia */ + NA = 'NA', + /** New Caledonia */ + NC = 'NC', + /** The Niger */ + NE = 'NE', + /** Norfolk Island */ + NF = 'NF', + /** Nigeria */ + NG = 'NG', + /** Nicaragua */ + NI = 'NI', + /** The Netherlands */ + NL = 'NL', + /** Norway */ + NO = 'NO', + /** Nepal */ + NP = 'NP', + /** Nauru */ + NR = 'NR', + /** Niue */ + NU = 'NU', + /** New Zealand */ + NZ = 'NZ', + /** Oman */ + OM = 'OM', + /** Panama */ + PA = 'PA', + /** Peru */ + PE = 'PE', + /** French Polynesia */ + PF = 'PF', + /** Papua New Guinea */ + PG = 'PG', + /** The Philippines */ + PH = 'PH', + /** Pakistan */ + PK = 'PK', + /** Poland */ + PL = 'PL', + /** Saint Pierre and Miquelon */ + PM = 'PM', + /** Pitcairn */ + PN = 'PN', + /** Puerto Rico */ + PR = 'PR', + /** The Occupied Palestinian Territory */ + PS = 'PS', + /** Portugal */ + PT = 'PT', + /** Palau */ + PW = 'PW', + /** Paraguay */ + PY = 'PY', + /** Qatar */ + QA = 'QA', + /** Réunion */ + RE = 'RE', + /** Romania */ + RO = 'RO', + /** Serbia */ + RS = 'RS', + /** Russia */ + RU = 'RU', + /** Rwanda */ + RW = 'RW', + /** Saudi Arabia */ + SA = 'SA', + /** Solomon Islands */ + SB = 'SB', + /** Seychelles */ + SC = 'SC', + /** The Sudan */ + SD = 'SD', + /** Sweden */ + SE = 'SE', + /** Singapore */ + SG = 'SG', + /** Saint Helena */ + SH = 'SH', + /** Slovenia */ + SI = 'SI', + /** Svalbard and Jan Mayen */ + SJ = 'SJ', + /** Slovakia */ + SK = 'SK', + /** Sierra Leone */ + SL = 'SL', + /** San Marino */ + SM = 'SM', + /** Senegal */ + SN = 'SN', + /** Somalia */ + SO = 'SO', + /** Suriname */ + SR = 'SR', + /** South Sudan */ + SS = 'SS', + /** Sao Tome and Principe */ + ST = 'ST', + /** El Salvador */ + SV = 'SV', + /** Sint Maarten */ + SX = 'SX', + /** Syria */ + SY = 'SY', + /** Swaziland */ + SZ = 'SZ', + /** Turks and Caicos Islands */ + TC = 'TC', + /** Chad */ + TD = 'TD', + /** The French Southern Territories */ + TF = 'TF', + /** Togo */ + TG = 'TG', + /** Thailand */ + TH = 'TH', + /** Tajikistan */ + TJ = 'TJ', + /** Tokelau */ + TK = 'TK', + /** Timor-Leste */ + TL = 'TL', + /** Turkmenistan */ + TM = 'TM', + /** Tunisia */ + TN = 'TN', + /** Tonga */ + TO = 'TO', + /** Turkey */ + TR = 'TR', + /** Trinidad and Tobago */ + TT = 'TT', + /** Tuvalu */ + TV = 'TV', + /** Taiwan */ + TW = 'TW', + /** Tanzania */ + TZ = 'TZ', + /** Ukraine */ + UA = 'UA', + /** Uganda */ + UG = 'UG', + /** United States Minor Outlying Islands */ + UM = 'UM', + /** The United States */ + US = 'US', + /** Uruguay */ + UY = 'UY', + /** Uzbekistan */ + UZ = 'UZ', + /** The Holy See */ + VA = 'VA', + /** Saint Vincent and The Grenadines */ + VC = 'VC', + /** Venezuela */ + VE = 'VE', + /** British Virgin Islands */ + VG = 'VG', + /** US Virgin Islands */ + VI = 'VI', + /** Viet Nam */ + VN = 'VN', + /** Vanuatu */ + VU = 'VU', + /** Wallis and Futuna */ + WF = 'WF', + /** Samoa */ + WS = 'WS', + /** Yemen */ + YE = 'YE', + /** Mayotte */ + YT = 'YT', + /** South Africa */ + ZA = 'ZA', + /** Zambia */ + ZM = 'ZM', + /** Zimbabwe */ + ZW = 'ZW' } -export type ProcessHostApplicationResponse = { - __typename?: 'ProcessHostApplicationResponse'; - /** The account that applied to the host */ - account: Account; - /** When sending a public message, this field will have the info about the conversation created */ - conversation?: Maybe; - hostApplication?: Maybe; +export type CreditCardCreateInput = { + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + brand?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + country?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + expMonth?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + expYear?: InputMaybe; + /** @deprecated 2022-11-22: the field was not used since 2017 */ + fullName?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + funding?: InputMaybe; + token: Scalars['String']['input']; + zip?: InputMaybe; }; -/** Action to apply on the order */ -export enum ProcessOrderAction { - /** To mark the order as expired */ - MARK_AS_EXPIRED = 'MARK_AS_EXPIRED', - /** To mark the order as paid */ - MARK_AS_PAID = 'MARK_AS_PAID' +/** All supported currencies */ +export enum Currency { + /** UAE Dirham */ + AED = 'AED', + /** Afghani */ + AFN = 'AFN', + /** Lek */ + ALL = 'ALL', + /** Armenian Dram */ + AMD = 'AMD', + /** Netherlands Antillean Guilder */ + ANG = 'ANG', + /** Kwanza */ + AOA = 'AOA', + /** Argentine Peso */ + ARS = 'ARS', + /** Australian Dollar */ + AUD = 'AUD', + /** Aruban Florin */ + AWG = 'AWG', + /** Azerbaijanian Manat */ + AZN = 'AZN', + /** Convertible Mark */ + BAM = 'BAM', + /** Barbados Dollar */ + BBD = 'BBD', + /** Taka */ + BDT = 'BDT', + /** Bulgarian Lev */ + BGN = 'BGN', + /** Burundi Franc */ + BIF = 'BIF', + /** Bermudian Dollar */ + BMD = 'BMD', + /** Brunei Dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian Real */ + BRL = 'BRL', + /** Bahamian Dollar */ + BSD = 'BSD', + /** Pula */ + BWP = 'BWP', + /** Belarussian Ruble */ + BYN = 'BYN', + /** Belize Dollar */ + BZD = 'BZD', + /** Canadian Dollar */ + CAD = 'CAD', + /** Congolese Franc */ + CDF = 'CDF', + /** Swiss Franc */ + CHF = 'CHF', + /** Chilean Peso */ + CLP = 'CLP', + /** Yuan Renminbi */ + CNY = 'CNY', + /** Colombian Peso */ + COP = 'COP', + /** Costa Rican Colon */ + CRC = 'CRC', + /** Cabo Verde Escudo */ + CVE = 'CVE', + /** Czech Koruna */ + CZK = 'CZK', + /** Djibouti Franc */ + DJF = 'DJF', + /** Danish Krone */ + DKK = 'DKK', + /** Dominican Peso */ + DOP = 'DOP', + /** Algerian Dinar */ + DZD = 'DZD', + /** Egyptian Pound */ + EGP = 'EGP', + /** Ethiopian Birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji Dollar */ + FJD = 'FJD', + /** Falkland Islands Pound */ + FKP = 'FKP', + /** Pound Sterling */ + GBP = 'GBP', + /** Lari */ + GEL = 'GEL', + /** Gibraltar Pound */ + GIP = 'GIP', + /** Dalasi */ + GMD = 'GMD', + /** Guinea Franc */ + GNF = 'GNF', + /** Quetzal */ + GTQ = 'GTQ', + /** Guyana Dollar */ + GYD = 'GYD', + /** Hong Kong Dollar */ + HKD = 'HKD', + /** Lempira */ + HNL = 'HNL', + /** Kuna */ + HRK = 'HRK', + /** Gourde */ + HTG = 'HTG', + /** Forint */ + HUF = 'HUF', + /** Rupiah */ + IDR = 'IDR', + /** New Israeli Sheqel */ + ILS = 'ILS', + /** Indian Rupee */ + INR = 'INR', + /** Iceland Krona */ + ISK = 'ISK', + /** Jamaican Dollar */ + JMD = 'JMD', + /** Yen */ + JPY = 'JPY', + /** Kenyan Shilling */ + KES = 'KES', + /** Som */ + KGS = 'KGS', + /** Riel */ + KHR = 'KHR', + /** Comoro Franc */ + KMF = 'KMF', + /** Won */ + KRW = 'KRW', + /** Cayman Islands Dollar */ + KYD = 'KYD', + /** Tenge */ + KZT = 'KZT', + /** Kip */ + LAK = 'LAK', + /** Lebanese Pound */ + LBP = 'LBP', + /** Sri Lanka Rupee */ + LKR = 'LKR', + /** Liberian Dollar */ + LRD = 'LRD', + /** Loti */ + LSL = 'LSL', + /** Moroccan Dirham */ + MAD = 'MAD', + /** Moldovan Leu */ + MDL = 'MDL', + /** Malagasy Ariary */ + MGA = 'MGA', + /** Denar */ + MKD = 'MKD', + /** Kyat */ + MMK = 'MMK', + /** Tugrik */ + MNT = 'MNT', + /** Pataca */ + MOP = 'MOP', + /** Mauritius Rupee */ + MUR = 'MUR', + /** Rufiyaa */ + MVR = 'MVR', + /** Kwacha */ + MWK = 'MWK', + /** Mexican Peso */ + MXN = 'MXN', + /** Malaysian Ringgit */ + MYR = 'MYR', + /** Mozambique Metical */ + MZN = 'MZN', + /** Namibia Dollar */ + NAD = 'NAD', + /** Naira */ + NGN = 'NGN', + /** Cordoba Oro */ + NIO = 'NIO', + /** Norwegian Krone */ + NOK = 'NOK', + /** Nepalese Rupee */ + NPR = 'NPR', + /** New Zealand Dollar */ + NZD = 'NZD', + /** Balboa */ + PAB = 'PAB', + /** Nuevo Sol */ + PEN = 'PEN', + /** Kina */ + PGK = 'PGK', + /** Philippine Peso */ + PHP = 'PHP', + /** Pakistan Rupee */ + PKR = 'PKR', + /** Zloty */ + PLN = 'PLN', + /** Guarani */ + PYG = 'PYG', + /** Qatari Rial */ + QAR = 'QAR', + /** Romanian Leu */ + RON = 'RON', + /** Serbian Dinar */ + RSD = 'RSD', + /** Russian Ruble */ + RUB = 'RUB', + /** Rwanda Franc */ + RWF = 'RWF', + /** Saudi Riyal */ + SAR = 'SAR', + /** Solomon Islands Dollar */ + SBD = 'SBD', + /** Seychelles Rupee */ + SCR = 'SCR', + /** Swedish Krona */ + SEK = 'SEK', + /** Singapore Dollar */ + SGD = 'SGD', + /** Saint Helena Pound */ + SHP = 'SHP', + /** Leone */ + SLL = 'SLL', + /** Somali Shilling */ + SOS = 'SOS', + /** Surinam Dollar */ + SRD = 'SRD', + /** Lilangeni */ + SZL = 'SZL', + /** Baht */ + THB = 'THB', + /** Somoni */ + TJS = 'TJS', + /** Pa’anga */ + TOP = 'TOP', + /** Turkish Lira */ + TRY = 'TRY', + /** Trinidad and Tobago Dollar */ + TTD = 'TTD', + /** New Taiwan Dollar */ + TWD = 'TWD', + /** Tanzanian Shilling */ + TZS = 'TZS', + /** Hryvnia */ + UAH = 'UAH', + /** Uganda Shilling */ + UGX = 'UGX', + /** US Dollar */ + USD = 'USD', + /** Peso Uruguayo */ + UYU = 'UYU', + /** Uzbekistan Sum */ + UZS = 'UZS', + /** Dong */ + VND = 'VND', + /** Vatu */ + VUV = 'VUV', + /** Tala */ + WST = 'WST', + /** CFA Franc BEAC */ + XAF = 'XAF', + /** East Caribbean Dollar */ + XCD = 'XCD', + /** CFA Franc BCEAO */ + XOF = 'XOF', + /** CFP Franc */ + XPF = 'XPF', + /** Yemeni Rial */ + YER = 'YER', + /** Rand */ + ZAR = 'ZAR', + /** Zambian Kwacha */ + ZMW = 'ZMW' } -/** This represents an Project account */ -export type Project = Account & AccountWithContributions & AccountWithHost & AccountWithParent & { - __typename?: 'Project'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - /** Date of approval by the Fiscal Host. */ - approvedAt?: Maybe; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Returns the Fiscal Host */ - host?: Maybe; - /** Returns agreements this account has with its host, or null if not enough permissions. */ - hostAgreements?: Maybe; - /** Returns the Fiscal Host application */ - hostApplication?: Maybe; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - /** Fees percentage that the host takes for this collective */ - hostFeePercent?: Maybe; - /** Describe how the host charges the collective */ - hostFeesStructure?: Maybe; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether it's active: can accept financial contributions and pay expenses. */ - isActive: Scalars['Boolean']['output']; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether it's approved by the Fiscal Host */ - isApproved: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** The Account parenting this account */ - parent?: Maybe; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - summary?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date when the collective was last unfrozen by current Fiscal Host */ - unfrozenAt?: Maybe; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents an Project account */ -export type ProjectActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type ProjectActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type ProjectConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type ProjectDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type ProjectExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type ProjectExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type ProjectFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectHostAgreementsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents an Project account */ -export type ProjectHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectHostFeePercentArgs = { - paymentMethodService?: InputMaybe; - paymentMethodType?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type ProjectMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents an Project account */ -export type ProjectMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents an Project account */ -export type ProjectMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; +/** Fields for a currency exchange rate */ +export type CurrencyExchangeRateInput = { + /** Date of the FX rate */ + date: Scalars['DateTime']['input']; + fromCurrency: Currency; + /** Where does the FX rate comes from */ + source: CurrencyExchangeRateSourceType; + toCurrency: Currency; + /** Exchange rate value as a float (e.g 1.15 or 0.86) */ + value: Scalars['Float']['input']; }; - -/** This represents an Project account */ -export type ProjectOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; +/** Request for a currency exchange rate */ +export type CurrencyExchangeRateRequest = { + /** Date of the exchange rate. Defaults to now. */ + date?: InputMaybe; + /** Currency to convert from */ + fromCurrency: Currency; + /** Currency to convert to */ + toCurrency: Currency; }; +/** Where does the FX rate come from */ +export enum CurrencyExchangeRateSourceType { + /** Open Collective internal system, relying on caching and 3rd party APIs */ + OPENCOLLECTIVE = 'OPENCOLLECTIVE', + /** PayPal API */ + PAYPAL = 'PAYPAL', + /** User-provided exchange rate */ + USER = 'USER', + /** Wise API */ + WISE = 'WISE' +} -/** This represents an Project account */ -export type ProjectOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - +/** All possible DateTime fields for a resource */ +export enum DateTimeField { + /** The creation time of a resource */ + CREATED_AT = 'CREATED_AT', + /** Transactions only: The date when a transaction was cleared by the payment processor */ + EFFECTIVE_DATE = 'EFFECTIVE_DATE', + /** Orders only: The date when an order was last charged, defaults to createdAt if never charged */ + LAST_CHARGED_AT = 'LAST_CHARGED_AT' +} -/** This represents an Project account */ -export type ProjectPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; +/** Which data should be copied when duplicating the account */ +export type DuplicateAccountDataTypeInput = { + admins?: Scalars['Boolean']['input']; + events?: Scalars['Boolean']['input']; + projects?: Scalars['Boolean']['input']; + tiers?: Scalars['Boolean']['input']; }; - -/** This represents an Project account */ -export type ProjectSummaryArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; +export type EventCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description?: InputMaybe; + /** The Event end date and time */ + endsAt: Scalars['DateTime']['input']; + /** The profile avatar image */ + image?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug?: InputMaybe; + /** The Event start date and time */ + startsAt: Scalars['DateTime']['input']; + tags?: InputMaybe>>; + /** Timezone of the Event (TZ database format, e.g. UTC or Europe/Berlin) */ + timezone: Scalars['String']['input']; }; +/** Expected funds filter (ALL_EXPECTED_FUNDS, ONLY_PENDING, ONLY_MANUAL) */ +export enum ExpectedFundsFilter { + ALL_EXPECTED_FUNDS = 'ALL_EXPECTED_FUNDS', + ONLY_MANUAL = 'ONLY_MANUAL', + ONLY_PENDING = 'ONLY_PENDING' +} -/** This represents an Project account */ -export type ProjectTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; +export type ExpenseAttachedFileInput = { + /** ID of the file */ + id?: InputMaybe; + /** + * Original filename + * @deprecated 2023-02-02: This must now be provided when uploading the file. This parameter will be ignored. + */ + name?: InputMaybe; + /** URL of the file */ + url: Scalars['URL']['input']; }; - -/** This represents an Project account */ -export type ProjectTotalFinancialContributorsArgs = { - accountType?: InputMaybe; +export type ExpenseCreateInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description: Scalars['String']['input']; + /** Custom information to print on the invoice */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee: AccountReferenceInput; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod: PayoutMethodInput; + /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ + privateMessage?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type: ExpenseType; }; +/** All supported expense currency sources */ +export enum ExpenseCurrencySource { + /** The expense currency expressed as the account currency */ + ACCOUNT = 'ACCOUNT', + /** The expense currency expressed as the expense currency */ + CREATED_BY_ACCOUNT = 'CREATED_BY_ACCOUNT', + /** The expense currency expressed as the expense currency */ + EXPENSE = 'EXPENSE', + /** The expense currency expressed as the host currency */ + HOST = 'HOST' +} + +/** Describes the role in which an account is involved in an expense. This is used to filter */ +export enum ExpenseDirection { + /** Received: The account is the one who received the expense and the one who's paying for it. */ + RECEIVED = 'RECEIVED', + /** Submitted: The account is the one who submitted the expense and possibly the beneficiary. */ + SUBMITTED = 'SUBMITTED' +} -/** This represents an Project account */ -export type ProjectTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; +export type ExpenseInviteDraftInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description?: InputMaybe; + /** Custom information to print on the invoice */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee: ExpenseInvitee; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod?: InputMaybe; + /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ + privateMessage?: InputMaybe; + /** Note to be sent to the invited user through email. */ + recipientNote?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type: ExpenseType; }; +export type ExpenseInvitee = { + email?: InputMaybe; + /** @deprecated 2023-04-12: Please use legacyId */ + id?: InputMaybe; + isInvite?: InputMaybe; + legacyId?: InputMaybe; + name?: InputMaybe; + organization?: InputMaybe; + slug?: InputMaybe; +}; -/** This represents an Project account */ -export type ProjectTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; +export type ExpenseInviteeOrganizationInput = { + description?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + website?: InputMaybe; }; +export type ExpenseItemCreateInput = { + /** + * Amount in cents + * @deprecated Please use `amountV2` + */ + amount?: InputMaybe; + /** Amount */ + amountV2?: InputMaybe; + /** What is this item about? */ + description: Scalars['String']['input']; + /** When was the money spent? */ + incurredAt?: InputMaybe; + /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ + url?: InputMaybe; +}; -/** This represents an Project account */ -export type ProjectTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; +export type ExpenseItemInput = { + /** + * Amount in cents + * @deprecated Please use `amountV2` + */ + amount?: InputMaybe; + /** Amount */ + amountV2?: InputMaybe; + /** What is this item about? */ + description?: InputMaybe; + /** ID of the item */ + id?: InputMaybe; + /** When was the money spent? */ + incurredAt?: InputMaybe; + /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ + url?: InputMaybe; }; +/** All fields that can be locked on an expense draft */ +export enum ExpenseLockableFields { + /** Locks items' amount and currency, and it also blocks the hability to add new items. */ + AMOUNT = 'AMOUNT', + /** Locks the description field. */ + DESCRIPTION = 'DESCRIPTION', + /** Locks the payee field, if the user is not on the platform it locks its email. */ + PAYEE = 'PAYEE', + /** Locks the type field. */ + TYPE = 'TYPE' +} + +/** All supported expense types */ +export enum ExpenseProcessAction { + /** To mark the expense as approved */ + APPROVE = 'APPROVE', + /** To decline an invited expense */ + DECLINE_INVITED_EXPENSE = 'DECLINE_INVITED_EXPENSE', + /** To put the expense on hold */ + HOLD = 'HOLD', + /** To mark the expense as incomplete and notify the payee it requires more information */ + MARK_AS_INCOMPLETE = 'MARK_AS_INCOMPLETE', + /** To mark the expense as spam */ + MARK_AS_SPAM = 'MARK_AS_SPAM', + /** To mark the expense as unpaid (marks the transaction as refunded) */ + MARK_AS_UNPAID = 'MARK_AS_UNPAID', + /** To trigger the payment */ + PAY = 'PAY', + /** To mark the expense as rejected */ + REJECT = 'REJECT', + /** To release the expense from hold */ + RELEASE = 'RELEASE', + /** To request re-approval of the expense, marking it as pending. */ + REQUEST_RE_APPROVAL = 'REQUEST_RE_APPROVAL', + /** To schedule the expense for payment */ + SCHEDULE_FOR_PAYMENT = 'SCHEDULE_FOR_PAYMENT', + /** To mark the expense as pending after it has been approved */ + UNAPPROVE = 'UNAPPROVE', + /** To unschedule the expense payment */ + UNSCHEDULE_PAYMENT = 'UNSCHEDULE_PAYMENT' +} -/** This represents an Project account */ -export type ProjectUnhostedAtArgs = { - host: AccountReferenceInput; +export type ExpenseReferenceInput = { + /** The public id identifying the expense (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the expense (ie: 580) */ + legacyId?: InputMaybe; }; +export enum ExpenseStatus { + APPROVED = 'APPROVED', + CANCELED = 'CANCELED', + DRAFT = 'DRAFT', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE', + INVITE_DECLINED = 'INVITE_DECLINED', + PAID = 'PAID', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + REJECTED = 'REJECTED', + SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', + SPAM = 'SPAM', + UNVERIFIED = 'UNVERIFIED' +} -/** This represents an Project account */ -export type ProjectUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - +/** Describes the values allowed to filter expenses, namely all the expense statuses and the special "READY_TO_PAY" value. */ +export enum ExpenseStatusFilter { + APPROVED = 'APPROVED', + CANCELED = 'CANCELED', + DRAFT = 'DRAFT', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE', + INVITE_DECLINED = 'INVITE_DECLINED', + /** Only expenses that are on hold */ + ON_HOLD = 'ON_HOLD', + PAID = 'PAID', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + /** Only expenses that are ready to be paid (must be approved, have the sufficiant balance and have the tax forms completed) */ + READY_TO_PAY = 'READY_TO_PAY', + REJECTED = 'REJECTED', + SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', + SPAM = 'SPAM', + UNVERIFIED = 'UNVERIFIED' +} -/** This represents an Project account */ -export type ProjectVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; +/** Input to set taxes for an expense */ +export type ExpenseTaxInput = { + /** Tax identification number, if any */ + idNumber?: InputMaybe; + /** Tax rate as a float number between 0 and 1 */ + rate: Scalars['Float']['input']; + type: TaxType; }; +/** All supported expense types */ +export enum ExpenseType { + /** Credit Card Charge: Payment done using an issued (virtual) credit card issued by your Fiscal Host. */ + CHARGE = 'CHARGE', + /** Funding Request: Request funding for a project or initiative. */ + FUNDING_REQUEST = 'FUNDING_REQUEST', + /** Grant: Request funding for a project or initiative. */ + GRANT = 'GRANT', + /** Invoice: Charge for your time or get paid in advance. */ + INVOICE = 'INVOICE', + /** Receipt: Get paid back for a purchase already made. */ + RECEIPT = 'RECEIPT', + /** Settlement: expense generated by Open Collective to collect money owed by Fiscal Hosts. */ + SETTLEMENT = 'SETTLEMENT', + /** Unclassified expense */ + UNCLASSIFIED = 'UNCLASSIFIED' +} -/** This represents an Project account */ -export type ProjectVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; +export type ExpenseUpdateInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>; + /** @deprecated 2020-04-08: Please use the items field - The list of items for this expense. Total amount will be computed from them. */ + attachments?: InputMaybe>>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description?: InputMaybe; + /** ID of the expense that you are trying to edit */ + id: Scalars['String']['input']; + /** Tax ID, VAT number...etc This information will be printed on your invoice. */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee?: InputMaybe; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod?: InputMaybe; + /** A private note that will be attached to your invoice, as HTML */ + privateMessage?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type?: InputMaybe; }; +/** All supported expense types */ +export enum FeesPayer { + /** The collective will be responsible for paying the fees */ + COLLECTIVE = 'COLLECTIVE', + /** The payee will be responsible for paying the fees (they'll be deduced from the total amount) */ + PAYEE = 'PAYEE' +} -/** This represents an Project account */ -export type ProjectWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -export type ProjectCreateInput = { +export type FundCreateInput = { /** The profile background image, for the banner and social media sharing */ backgroundImage?: InputMaybe; description: Scalars['String']['input']; @@ -10407,485 +1817,740 @@ export type ProjectCreateInput = { name: Scalars['String']['input']; settings?: InputMaybe; slug: Scalars['String']['input']; - /** The social links in order of preference */ - socialLinks?: InputMaybe>; tags?: InputMaybe>>; }; -/** This is the root query */ -export type Query = { - __typename?: 'Query'; - account?: Maybe; - accounts: AccountCollection; - activities: ActivityCollection; - application?: Maybe; - collective?: Maybe; - conversation?: Maybe; - /** Get exchange rates from Open Collective */ - currencyExchangeRate: Array; - event?: Maybe; - expense?: Maybe; - expenseTagStats: TagStatsCollection; - expenses: ExpenseCollection; - fund?: Maybe; - host?: Maybe; - hostApplication?: Maybe; - hosts?: Maybe; - individual?: Maybe; - loggedInAccount?: Maybe; - me?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - order?: Maybe; - orders: OrderCollection; - organization?: Maybe; - paypalPlan: PaypalPlan; - /** Get a personal token by reference */ - personalToken?: Maybe; - project?: Maybe; - /** [!] Warning: this query is currently in beta and the API might change */ - search: SearchResponse; - tagStats: TagStatsCollection; - tier?: Maybe; - /** Fetch a single transaction */ - transaction?: Maybe; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroup?: Maybe; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - transactions: TransactionCollection; - /** Fetch a transactions import */ - transactionsImport?: Maybe; - update?: Maybe; - /** This query currently returns only published updates */ - updates: UpdateCollection; - virtualCard?: Maybe; - virtualCardRequest?: Maybe; - virtualCardRequests: VirtualCardRequestCollection; +/** Input type for guest contributions */ +export type GuestInfoInput = { + /** Captcha validation for creating an order */ + captcha?: InputMaybe; + /** Contributor's email */ + email: Scalars['EmailAddress']['input']; + /** Legal name of the user */ + legalName?: InputMaybe; + /** Address of the user, mandatory when amount is above $5000. */ + location?: InputMaybe; + /** Display name of the user */ + name?: InputMaybe; }; - -/** This is the root query */ -export type QueryAccountArgs = { - githubHandle?: InputMaybe; +export type HostApplicationReferenceInput = { + /** The public id identifying the host application (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; }; +export enum HostApplicationStatus { + APPROVED = 'APPROVED', + EXPIRED = 'EXPIRED', + PENDING = 'PENDING', + REJECTED = 'REJECTED' +} -/** This is the root query */ -export type QueryAccountsArgs = { - consolidatedBalance?: InputMaybe; - country?: InputMaybe>>; - hasCustomContributionsEnabled?: InputMaybe; - host?: InputMaybe>>; - includeArchived?: InputMaybe; - includeVendorsForHost?: InputMaybe; - isActive?: InputMaybe; - isHost?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - parent?: InputMaybe>>; - searchTerm?: InputMaybe; - skipGuests?: InputMaybe; - skipRecentAccounts?: InputMaybe; - tag?: InputMaybe>>; - tagSearchOperator?: TagSearchOperator; - type?: InputMaybe>>; +/** All supported expense types */ +export enum HostFeeStructure { + /** Custom fee for this Collective only */ + CUSTOM_FEE = 'CUSTOM_FEE', + /** Use global host fees */ + DEFAULT = 'DEFAULT', + /** Set a monthly retainer for this Collective */ + MONTHLY_RETAINER = 'MONTHLY_RETAINER' +} + +export enum ImageFormat { + gif = 'gif', + jpg = 'jpg', + png = 'png', + svg = 'svg', + txt = 'txt' +} + +export type IndividualCreateInput = { + email: Scalars['String']['input']; + name: Scalars['String']['input']; +}; + +export type InviteMemberInput = { + description?: InputMaybe; + /** Reference to an account for the invitee */ + memberAccount?: InputMaybe; + /** Email and name of the invitee if no reference. */ + memberInfo?: InputMaybe; + /** Role of the invitee */ + role: MemberRole; + since?: InputMaybe; }; +/** Defines role of the last comment author */ +export enum LastCommentBy { + /** Collective Admin */ + COLLECTIVE_ADMIN = 'COLLECTIVE_ADMIN', + /** Fiscal Host Admin */ + HOST_ADMIN = 'HOST_ADMIN', + /** Expense Submitter */ + USER = 'USER' +} -/** This is the root query */ -export type QueryActivitiesArgs = { - account: Array; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeParentAccount?: Scalars['Boolean']['input']; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: Scalars['Boolean']['input']; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - timeline?: Scalars['Boolean']['input']; - type?: InputMaybe>; +/** Status for a legal document */ +export enum LegalDocumentRequestStatus { + ERROR = 'ERROR', + INVALID = 'INVALID', + NOT_REQUESTED = 'NOT_REQUESTED', + RECEIVED = 'RECEIVED', + REQUESTED = 'REQUESTED' +} + +/** Type for a required legal document */ +export enum LegalDocumentService { + DROPBOX_FORMS = 'DROPBOX_FORMS', + OPENCOLLECTIVE = 'OPENCOLLECTIVE' +} + +/** Type for a required legal document */ +export enum LegalDocumentType { + /** US tax form (W9, W8BEN, W8BEN-E) */ + US_TAX_FORM = 'US_TAX_FORM' +} + +/** Input type for Geographic location */ +export type LocationInput = { + /** Postal address without country (eg. 12 opensource avenue, 7500 Paris) */ + address?: InputMaybe; + /** Two letters country code (eg. FR, BE...etc) */ + country?: InputMaybe; + /** Latitude */ + lat?: InputMaybe; + /** Longitude */ + long?: InputMaybe; + /** A short name for the location (eg. Open Collective Headquarters) */ + name?: InputMaybe; + /** Structured JSON address */ + structured?: InputMaybe; }; +export enum MarkAsUnPaidExpenseStatus { + APPROVED = 'APPROVED', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE' +} -/** This is the root query */ -export type QueryApplicationArgs = { - clientId?: InputMaybe; +export type MemberInvitationReferenceInput = { + /** The public id identifying the member invitation (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; + /** The internal id of the invitation (ie: 580) */ legacyId?: InputMaybe; }; +/** All member roles */ +export enum MemberRole { + ACCOUNTANT = 'ACCOUNTANT', + ADMIN = 'ADMIN', + ATTENDEE = 'ATTENDEE', + BACKER = 'BACKER', + CONNECTED_ACCOUNT = 'CONNECTED_ACCOUNT', + CONTRIBUTOR = 'CONTRIBUTOR', + FOLLOWER = 'FOLLOWER', + /** @deprecated 2022-09-12: This role does not exist anymore */ + FUNDRAISER = 'FUNDRAISER', + HOST = 'HOST', + MEMBER = 'MEMBER' +} -/** This is the root query */ -export type QueryCollectiveArgs = { - githubHandle?: InputMaybe; +export type NewAccountOrReferenceInput = { + email?: InputMaybe; + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; + /** + * The internal id of the account (ie: 580) + * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. + */ + legacyId?: InputMaybe; + legalName?: InputMaybe; + name?: InputMaybe; + newsletterOptIn?: InputMaybe; + organization?: InputMaybe; + /** The slug identifying the account (ie: babel for https://opencollective.com/babel) */ slug?: InputMaybe; - throwIfMissing?: InputMaybe; -}; - - -/** This is the root query */ -export type QueryConversationArgs = { - id: Scalars['String']['input']; }; - -/** This is the root query */ -export type QueryCurrencyExchangeRateArgs = { - requests: Array; +export type NewAccountOrganizationInput = { + description?: InputMaybe; + legalName?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + website?: InputMaybe; }; - -/** This is the root query */ -export type QueryEventArgs = { - githubHandle?: InputMaybe; +export type OAuthAuthorizationReferenceInput = { + /** The id identifying the OAuth Authorization (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; }; +/** All supported OAuth scopes */ +export enum OAuthScope { + /** Manage your account, collectives and organizations. */ + account = 'account', + /** Create and manage OAuth applications. */ + applications = 'applications', + /** Create and manage connected accounts. */ + connectedAccounts = 'connectedAccounts', + /** Create and manage conversations. */ + conversations = 'conversations', + /** Access your email address. */ + email = 'email', + /** Create and manage expenses, payout methods. */ + expenses = 'expenses', + /** Administrate fiscal hosts. */ + host = 'host', + /** Access your incognito account. */ + incognito = 'incognito', + /** Create and manage contributions, payment methods. */ + orders = 'orders', + /** Perform critical administrative operations. */ + root = 'root', + /** Refund and reject recorded transactions. */ + transactions = 'transactions', + /** Create and manage updates. */ + updates = 'updates', + /** Create and manage virtual cards. */ + virtualCards = 'virtualCards', + /** Create and manage webhooks */ + webhooks = 'webhooks' +} -/** This is the root query */ -export type QueryExpenseArgs = { - draftKey?: InputMaybe; - expense?: InputMaybe; - id?: InputMaybe; +/** To configure the OCR parsing */ +export type OcrParsingOptionsInput = { + /** The currency that you'd like to use for the amounts */ + currency?: InputMaybe; }; +/** Possible fields you can use to order by */ +export enum OrderByFieldType { + /** The financial activity of the collective (number of transactions) */ + ACTIVITY = 'ACTIVITY', + BALANCE = 'BALANCE', + CREATED_AT = 'CREATED_AT', + HOSTED_COLLECTIVES_COUNT = 'HOSTED_COLLECTIVES_COUNT', + HOST_RANK = 'HOST_RANK', + LAST_CHARGED_AT = 'LAST_CHARGED_AT', + MEMBER_COUNT = 'MEMBER_COUNT', + NAME = 'NAME', + RANK = 'RANK', + TOTAL_CONTRIBUTED = 'TOTAL_CONTRIBUTED' +} -/** This is the root query */ -export type QueryExpenseTagStatsArgs = { - account?: InputMaybe; - host?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tagSearchTerm?: InputMaybe; +/** Input to order collection */ +export type OrderByInput = { + /** Ordering direction. */ + direction: OrderDirection; + /** Field to order by. */ + field: OrderByFieldType; }; +/** Some context about how an order was created */ +export type OrderContextInput = { + /** Whether this order was created using the embedded contribution flow */ + isEmbed?: InputMaybe; + /** Whether this order was created using the new platform tip flow */ + isNewPlatformTipFlow?: InputMaybe; +}; -/** This is the root query */ -export type QueryExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; +/** Input to create a new order */ +export type OrderCreateInput = { + /** The contribution amount for 1 quantity, without platform contribution and taxes */ + amount: AmountInput; + /** Some context about how this order was created */ + context?: InputMaybe; + /** If the tier has some "customFields", use this field to set their values */ customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; + /** Data related to this order */ + data?: InputMaybe; + frequency: ContributionFrequency; + /** The profile making the order. Can be null for guest contributions. */ fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Use this when fromAccount is null to pass the guest info */ + guestInfo?: InputMaybe; + /** Whether this is transferring the remaining balance from a project/event/collective */ + isBalanceTransfer?: InputMaybe; + /** The payment method used for this order */ + paymentMethod?: InputMaybe; + /** Platform tip attached to this order */ + platformTipAmount?: InputMaybe; + quantity?: Scalars['Int']['input']; + /** Tags associated to the order */ tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** + * Use this field to set the taxes associated to this order + * @deprecated 2023-04-11: Please use `tax` instead + */ + taxes?: InputMaybe>>; + /** The tier you are contributing to */ + tier?: InputMaybe; + /** The profile you want to contribute to */ + toAccount: AccountReferenceInput; }; +/** Possible directions in which to order a list of items */ +export enum OrderDirection { + ASC = 'ASC', + DESC = 'DESC' +} -/** This is the root query */ -export type QueryFundArgs = { - githubHandle?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; +/** Some context about how an order was created */ +export type OrderFromAccountInfo = { + email?: InputMaybe; + legalName?: InputMaybe; + /** The location of the contributor. Account location will be updated with this address if different from the existing one. */ + location?: InputMaybe; + name?: InputMaybe; }; +/** The user or system that paused the order */ +export enum OrderPausedBy { + /** The collective */ + COLLECTIVE = 'COLLECTIVE', + /** The host of the collective */ + HOST = 'HOST', + /** The platform */ + PLATFORM = 'PLATFORM', + /** Individual who administers the account for this contribution */ + USER = 'USER' +} -/** This is the root query */ -export type QueryHostArgs = { - githubHandle?: InputMaybe; +export type OrderReferenceInput = { + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; -}; - - -/** This is the root query */ -export type QueryHostApplicationArgs = { - hostApplication?: InputMaybe; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; }; +/** All order statuses */ +export enum OrderStatus { + ACTIVE = 'ACTIVE', + CANCELLED = 'CANCELLED', + DISPUTED = 'DISPUTED', + ERROR = 'ERROR', + EXPIRED = 'EXPIRED', + IN_REVIEW = 'IN_REVIEW', + NEW = 'NEW', + PAID = 'PAID', + PAUSED = 'PAUSED', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + REFUNDED = 'REFUNDED', + REJECTED = 'REJECTED', + REQUIRE_CLIENT_CONFIRMATION = 'REQUIRE_CLIENT_CONFIRMATION' +} -/** This is the root query */ -export type QueryHostsArgs = { - country?: InputMaybe>>; - currency?: InputMaybe; - includeArchived?: InputMaybe; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; - skipGuests?: InputMaybe; - skipRecentAccounts?: InputMaybe; - tag?: InputMaybe>>; - tagSearchOperator?: TagSearchOperator; - tags?: InputMaybe>>; +/** Input to set taxes for an order */ +export type OrderTaxInput = { + amount: AmountInput; + /** Country of the account ordering, to know from where to apply the tax */ + country?: InputMaybe; + /** Tax identification number, if any */ + idNumber?: InputMaybe; + type: OrderTaxType; }; +/** The type of a tax like GST, VAT, etc */ +export enum OrderTaxType { + /** New Zealand Good and Services Tax */ + GST = 'GST', + /** European Value Added Tax */ + VAT = 'VAT' +} -/** This is the root query */ -export type QueryIndividualArgs = { - githubHandle?: InputMaybe; +export type OrderUpdateInput = { + /** Amount received by collective, excluding any tips, taxes or fees */ + amount?: InputMaybe; + /** Host fee percent to be applied to the order */ + hostFeePercent?: InputMaybe; + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; -}; - - -/** This is the root query */ -export type QueryMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; + /** Amount paid in fees for the payment processor */ + paymentProcessorFee?: InputMaybe; + /** Amount intended as tip for the platform */ + platformTip?: InputMaybe; + /** Date the funds were received */ + processedAt?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** Reference to the transaction import row to link the order to */ + transactionsImportRow?: InputMaybe; }; - -/** This is the root query */ -export type QueryOrderArgs = { - order: OrderReferenceInput; +export type OrganizationCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** The profile avatar image */ + image?: InputMaybe; + legalName?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug: Scalars['String']['input']; + /** @deprecated 2024-11-12: Please use socialLinks */ + website?: InputMaybe; }; - -/** This is the root query */ -export type QueryOrdersArgs = { - account?: InputMaybe; - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; +/** Input to create a Stripe payment intent */ +export type PaymentIntentInput = { + amount: AmountInput; frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; + fromAccount?: InputMaybe; + toAccount: AccountReferenceInput; }; - -/** This is the root query */ -export type QueryOrganizationArgs = { - githubHandle?: InputMaybe; +/** An input to use for creating or retrieving payment methods */ +export type PaymentMethodInput = { + /** When creating a credit card, use this field to set its info */ + creditCardInfo?: InputMaybe; + /** The id assigned to the payment method */ id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; + /** Whether this payment method should be saved for future payments */ + isSavedForLater?: InputMaybe; + /** + * Type of this payment method + * @deprecated 2021-03-02: Please use service + type + */ + legacyType?: InputMaybe; + /** Name of this payment method */ + name?: InputMaybe; + /** @deprecated 2021-08-20: Please use type instead */ + newType?: InputMaybe; + /** The Payment Intent ID used in this checkout */ + paymentIntentId?: InputMaybe; + /** To pass when type is PAYPAL */ + paypalInfo?: InputMaybe; + /** Service of this payment method */ + service?: InputMaybe; + /** Type of this payment method */ + type?: InputMaybe; }; +export enum PaymentMethodLegacyType { + ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', + ADDED_FUNDS = 'ADDED_FUNDS', + ALIPAY = 'ALIPAY', + BACS_DEBIT = 'BACS_DEBIT', + BANCONTACT = 'BANCONTACT', + BANK_TRANSFER = 'BANK_TRANSFER', + CREDIT_CARD = 'CREDIT_CARD', + CRYPTO = 'CRYPTO', + GIFT_CARD = 'GIFT_CARD', + PAYMENT_INTENT = 'PAYMENT_INTENT', + PAYPAL = 'PAYPAL', + PREPAID_BUDGET = 'PREPAID_BUDGET', + SEPA_DEBIT = 'SEPA_DEBIT', + US_BANK_ACCOUNT = 'US_BANK_ACCOUNT' +} -/** This is the root query */ -export type QueryPaypalPlanArgs = { - account: AccountReferenceInput; - amount: AmountInput; - frequency: ContributionFrequency; - order?: InputMaybe; - tier?: InputMaybe; +export type PaymentMethodReferenceInput = { + /** The id assigned to the payment method */ + id?: InputMaybe; }; +export enum PaymentMethodService { + OPENCOLLECTIVE = 'OPENCOLLECTIVE', + PAYPAL = 'PAYPAL', + STRIPE = 'STRIPE', + THEGIVINGBLOCK = 'THEGIVINGBLOCK', + WISE = 'WISE' +} + +export enum PaymentMethodType { + ADAPTIVE = 'ADAPTIVE', + ALIPAY = 'ALIPAY', + BACS_DEBIT = 'BACS_DEBIT', + BANCONTACT = 'BANCONTACT', + BANK_TRANSFER = 'BANK_TRANSFER', + COLLECTIVE = 'COLLECTIVE', + CREDITCARD = 'CREDITCARD', + CRYPTO = 'CRYPTO', + DEFAULT = 'DEFAULT', + GIFTCARD = 'GIFTCARD', + HOST = 'HOST', + LINK = 'LINK', + MANUAL = 'MANUAL', + PAYMENT = 'PAYMENT', + PAYMENT_INTENT = 'PAYMENT_INTENT', + PAYOUT = 'PAYOUT', + PREPAID = 'PREPAID', + SEPA_DEBIT = 'SEPA_DEBIT', + SUBSCRIPTION = 'SUBSCRIPTION', + SWISH = 'SWISH', + US_BANK_ACCOUNT = 'US_BANK_ACCOUNT', + VIRTUAL_CARD = 'VIRTUAL_CARD', + /** @deprecated Please use uppercase values */ + adaptive = 'adaptive', + /** @deprecated Please use uppercase values */ + alipay = 'alipay', + /** @deprecated Please use uppercase values */ + bacs_debit = 'bacs_debit', + /** @deprecated Please use uppercase values */ + bancontact = 'bancontact', + /** @deprecated Please use uppercase values */ + bank_transfer = 'bank_transfer', + /** @deprecated Please use uppercase values */ + collective = 'collective', + /** @deprecated Please use uppercase values */ + creditcard = 'creditcard', + /** @deprecated Please use uppercase values */ + crypto = 'crypto', + /** @deprecated Please use uppercase values */ + default = 'default', + /** @deprecated Please use uppercase values */ + giftcard = 'giftcard', + /** @deprecated Please use uppercase values */ + host = 'host', + /** @deprecated Please use uppercase values */ + link = 'link', + /** @deprecated Please use uppercase values */ + manual = 'manual', + /** @deprecated Please use uppercase values */ + payment = 'payment', + /** @deprecated Please use uppercase values */ + paymentintent = 'paymentintent', + /** @deprecated Please use uppercase values */ + payout = 'payout', + /** @deprecated Please use uppercase values */ + prepaid = 'prepaid', + /** @deprecated Please use uppercase values */ + sepa_debit = 'sepa_debit', + /** @deprecated Please use uppercase values */ + subscription = 'subscription', + /** @deprecated Please use uppercase values */ + swish = 'swish', + /** @deprecated Please use uppercase values */ + us_bank_account = 'us_bank_account', + /** @deprecated Please use uppercase values */ + virtual_card = 'virtual_card' +} -/** This is the root query */ -export type QueryPersonalTokenArgs = { +export type PayoutMethodInput = { + data?: InputMaybe; id?: InputMaybe; + isSaved?: InputMaybe; legacyId?: InputMaybe; + name?: InputMaybe; + type?: InputMaybe; }; +export enum PayoutMethodType { + ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', + BANK_ACCOUNT = 'BANK_ACCOUNT', + CREDIT_CARD = 'CREDIT_CARD', + OTHER = 'OTHER', + PAYPAL = 'PAYPAL' +} -/** This is the root query */ -export type QueryProjectArgs = { - githubHandle?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; - throwIfMissing?: InputMaybe; +export type PaypalPaymentInput = { + data?: InputMaybe; + orderId?: InputMaybe; + subscriptionId?: InputMaybe; + token?: InputMaybe; }; - -/** This is the root query */ -export type QuerySearchArgs = { - account?: InputMaybe; - defaultLimit?: Scalars['Int']['input']; - host?: InputMaybe; - searchTerm: Scalars['String']['input']; - timeout?: Scalars['Int']['input']; +/** Input to create a new pending order */ +export type PendingOrderCreateInput = { + /** The accounting category of this order */ + accountingCategory?: InputMaybe; + /** The contribution amount, without platform contribution and taxes */ + amount: AmountInput; + /** Public order description */ + description?: InputMaybe; + /** When is the money expected? */ + expectedAt?: InputMaybe; + /** The profile making the contribution. */ + fromAccount: AccountReferenceInput; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Custom Host fee percent for this order */ + hostFeePercent?: InputMaybe; + /** Private memo for the host */ + memo?: InputMaybe; + /** Payment method expected for this order */ + paymentMethod?: InputMaybe; + /** External identifier for the order */ + ponumber?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** The tier you are contributing to */ + tier?: InputMaybe; + /** The collective you want to contribute to */ + toAccount: AccountReferenceInput; }; - -/** This is the root query */ -export type QueryTagStatsArgs = { - host?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; - tagSearchTerm?: InputMaybe; +/** Input to edit an existing pending order */ +export type PendingOrderEditInput = { + /** The accounting category of this order */ + accountingCategory?: InputMaybe; + /** The contribution amount, without platform contribution and taxes */ + amount: AmountInput; + /** Public order description */ + description?: InputMaybe; + /** When is the money expected? */ + expectedAt?: InputMaybe; + /** The profile making the contribution. */ + fromAccount?: InputMaybe; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Custom Host fee percent for this order */ + hostFeePercent?: InputMaybe; + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; + /** Private memo for the host */ + memo?: InputMaybe; + /** Payment method expected for this order */ + paymentMethod?: InputMaybe; + /** Platform tip attached to this order */ + platformTipAmount?: InputMaybe; + /** External identifier for the order */ + ponumber?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** The tier you are contributing to */ + tier?: InputMaybe; }; - -/** This is the root query */ -export type QueryTierArgs = { - throwIfMissing?: Scalars['Boolean']['input']; - tier: TierReferenceInput; +/** Input type for PersonalToken */ +export type PersonalTokenCreateInput = { + /** The account to use as the owner of the application. Defaults to currently logged in user. */ + account?: InputMaybe; + expiresAt?: InputMaybe; + name?: InputMaybe; + /** Whether this token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA?: InputMaybe; + scope?: InputMaybe>>; }; - -/** This is the root query */ -export type QueryTransactionArgs = { +export type PersonalTokenReferenceInput = { + /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; - transaction?: InputMaybe; + /** The legacy public id identifying the personal-token (ie: 4242) */ + legacyId?: InputMaybe; }; - -/** This is the root query */ -export type QueryTransactionGroupArgs = { - account: AccountReferenceInput; - groupId: Scalars['String']['input']; +/** Input type for PersonalToken */ +export type PersonalTokenUpdateInput = { + expiresAt?: InputMaybe; + /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the personal-token (ie: 4242) */ + legacyId?: InputMaybe; + name?: InputMaybe; + /** Whether this token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA?: InputMaybe; + scope?: InputMaybe>>; }; - -/** This is the root query */ -export type QueryTransactionGroupsArgs = { - account: AccountReferenceInput; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; +export type PoliciesCollectiveExpenseAuthorCannotApprove = { + amountInCents?: InputMaybe; + appliesToHostedCollectives?: InputMaybe; + appliesToSingleAdminCollectives?: InputMaybe; + enabled?: InputMaybe; }; - -/** This is the root query */ -export type QueryTransactionsArgs = { - account?: InputMaybe>; - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; +export type PoliciesCollectiveMinimumAdminsInput = { + applies?: InputMaybe; + freeze?: InputMaybe; + numberOfAdmins?: InputMaybe; }; - -/** This is the root query */ -export type QueryTransactionsImportArgs = { - id: Scalars['String']['input']; +export type PoliciesExpenseCategorizationInput = { + requiredForCollectiveAdmins?: InputMaybe; + requiredForExpenseSubmitters?: InputMaybe; }; - -/** This is the root query */ -export type QueryUpdateArgs = { - account?: InputMaybe; - id?: InputMaybe; - slug?: InputMaybe; +export type PoliciesExpensePolicies = { + invoicePolicy?: InputMaybe; + receiptPolicy?: InputMaybe; + titlePolicy?: InputMaybe; }; - -/** This is the root query */ -export type QueryUpdatesArgs = { - accountTag?: InputMaybe>>; - accountType?: InputMaybe>>; - host?: InputMaybe>>; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; +export type PoliciesInput = { + COLLECTIVE_ADMINS_CAN_REFUND?: InputMaybe; + COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS?: InputMaybe; + COLLECTIVE_MINIMUM_ADMINS?: InputMaybe; + EXPENSE_AUTHOR_CANNOT_APPROVE?: InputMaybe; + EXPENSE_CATEGORIZATION?: InputMaybe; + EXPENSE_POLICIES?: InputMaybe; + EXPENSE_PUBLIC_VENDORS?: InputMaybe; + REQUIRE_2FA_FOR_ADMINS?: InputMaybe; }; +/** Defines how the policy is applied */ +export enum PolicyApplication { + ALL_COLLECTIVES = 'ALL_COLLECTIVES', + NEW_COLLECTIVES = 'NEW_COLLECTIVES' +} -/** This is the root query */ -export type QueryVirtualCardArgs = { - throwIfMissing?: Scalars['Boolean']['input']; - virtualCard: VirtualCardReferenceInput; +/** Parameters for paying an expense */ +export type ProcessExpensePaymentParams = { + /** Date funds were cleared on the fiscal host bank, Wise, PayPal, Stripe or any other external account holding these funds. */ + clearedAt?: InputMaybe; + /** Who is responsible for paying any due fees. */ + feesPayer?: InputMaybe; + /** Bypass automatic integrations (ie. PayPal, Transferwise) to process the expense manually */ + forceManual?: InputMaybe; + /** New expense status when triggering MARK_AS_UNPAID */ + markAsUnPaidStatus?: InputMaybe; + /** Payment method using for paying the expense */ + paymentMethodService?: InputMaybe; + /** The fee charged by payment processor in host currency */ + paymentProcessorFeeInHostCurrency?: InputMaybe; + /** Whether the payment processor fees should be refunded when triggering MARK_AS_UNPAID */ + shouldRefundPaymentProcessorFee?: InputMaybe; + /** The total amount paid in host currency */ + totalAmountPaidInHostCurrency?: InputMaybe; + /** Transfer details for fulfilling the expense */ + transfer?: InputMaybe; }; - -/** This is the root query */ -export type QueryVirtualCardRequestArgs = { - throwIfMissing?: Scalars['Boolean']['input']; - virtualCardRequest: VirtualCardRequestReferenceInput; +export type ProcessExpenseTransferParams = { + /** Wise transfer details */ + details?: InputMaybe; }; +/** Action taken for an account application to the host */ +export enum ProcessHostApplicationAction { + /** Approve the account request to be hosted */ + APPROVE = 'APPROVE', + /** Rejects the account request to be hosted */ + REJECT = 'REJECT', + /** Sends a private message to the admins of the account */ + SEND_PRIVATE_MESSAGE = 'SEND_PRIVATE_MESSAGE', + /** Creates a public conversation */ + SEND_PUBLIC_MESSAGE = 'SEND_PUBLIC_MESSAGE' +} -/** This is the root query */ -export type QueryVirtualCardRequestsArgs = { - collective?: InputMaybe>>; - host: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - status?: InputMaybe>>; -}; +/** Action to apply on the order */ +export enum ProcessOrderAction { + /** To mark the order as expired */ + MARK_AS_EXPIRED = 'MARK_AS_EXPIRED', + /** To mark the order as paid */ + MARK_AS_PAID = 'MARK_AS_PAID' +} -/** A recurring expense object */ -export type RecurringExpense = { - __typename?: 'RecurringExpense'; - account: Account; - /** The time this expense will cease to be recurring */ - endsAt?: Maybe; - fromAccount: Account; - /** Unique identifier for this recurring expense */ - id: Scalars['String']['output']; - /** The interval in which this recurring expense is created */ - interval: RecurringExpenseInterval; - /** The last time this recurring expense was paid for */ - lastDraftedAt: Scalars['DateTime']['output']; - /** The last expense created by this recurring expense record paid for */ - lastExpenseCreated?: Maybe; +export type ProjectCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** The profile avatar image */ + image?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug: Scalars['String']['input']; + /** The social links in order of preference */ + socialLinks?: InputMaybe>; + tags?: InputMaybe>>; }; export type RecurringExpenseInput = { @@ -10904,109 +2569,6 @@ export enum RecurringExpenseInterval { year = 'year' } -export type SearchResponse = { - __typename?: 'SearchResponse'; - /** Search results */ - results: SearchResults; -}; - -/** Search results for all types */ -export type SearchResults = { - __typename?: 'SearchResults'; - /** Search results for Accounts */ - accounts?: Maybe; - /** Search results for Comments */ - comments?: Maybe; - /** Search results for Expenses */ - expenses?: Maybe; - /** Search results for HostApplications */ - hostApplications?: Maybe; - /** Search results for Orders */ - orders?: Maybe; - /** Search results for Tiers */ - tiers?: Maybe; - /** Search results for Transactions */ - transactions?: Maybe; - /** Search results for Updates */ - updates?: Maybe; -}; - - -/** Search results for all types */ -export type SearchResultsAccountsArgs = { - isHost?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; -}; - -export type SearchResultsAccounts = { - __typename?: 'SearchResultsAccounts'; - collection: AccountCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsComments = { - __typename?: 'SearchResultsComments'; - collection: CommentCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsExpenses = { - __typename?: 'SearchResultsExpenses'; - collection: ExpenseCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsHostApplications = { - __typename?: 'SearchResultsHostApplications'; - collection: HostApplicationCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsOrders = { - __typename?: 'SearchResultsOrders'; - collection: OrderCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsTiers = { - __typename?: 'SearchResultsTiers'; - collection: TierCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsTransactions = { - __typename?: 'SearchResultsTransactions'; - collection: TransactionCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SearchResultsUpdates = { - __typename?: 'SearchResultsUpdates'; - collection: UpdateCollection; - highlights?: Maybe; - maxScore: Scalars['Float']['output']; -}; - -export type SecurityCheck = { - __typename?: 'SecurityCheck'; - /** SecurityCheck details */ - details?: Maybe; - /** The SecurityCheck level */ - level: SecurityCheckLevel; - /** SecurityCheck description message */ - message: Scalars['String']['output']; - /** The SecurityCheck scope */ - scope: SecurityCheckScope; -}; - /** All supported SecurityCheck levels */ export enum SecurityCheckLevel { HIGH = 'HIGH', @@ -11023,41 +2585,12 @@ export enum SecurityCheckScope { USER = 'USER' } -export type SendMessageResult = { - __typename?: 'SendMessageResult'; - success?: Maybe; -}; - -export type SetPasswordResponse = { - __typename?: 'SetPasswordResponse'; - individual: Individual; - token?: Maybe; -}; - -/** A Stripe setup intent */ -export type SetupIntent = { - __typename?: 'SetupIntent'; - id: Scalars['String']['output']; - setupIntentClientSecret: Scalars['String']['output']; - stripeAccount: Scalars['String']['output']; - stripeAccountPublishableSecret: Scalars['String']['output']; -}; - /** A Stripe setup intent */ export type SetupIntentInput = { id: Scalars['String']['input']; stripeAccount: Scalars['String']['input']; }; -/** A social link */ -export type SocialLink = { - __typename?: 'SocialLink'; - createdAt?: Maybe; - type: SocialLinkType; - updatedAt?: Maybe; - url: Scalars['URL']['output']; -}; - export type SocialLinkInput = { type: SocialLinkType; url: Scalars['URL']['input']; @@ -11090,72 +2623,12 @@ export enum SocialLinkType { YOUTUBE = 'YOUTUBE' } -/** Stripe connected account properties */ -export type StripeConnectedAccount = { - __typename?: 'StripeConnectedAccount'; - issuingBalance?: Maybe; - username?: Maybe; -}; - -export type StripeError = { - __typename?: 'StripeError'; - account?: Maybe; - message?: Maybe; - response?: Maybe; -}; - -export type TagResponse = { - __typename?: 'TagResponse'; - expense?: Maybe; - order?: Maybe; -}; - /** The operator to use when searching with tags */ export enum TagSearchOperator { AND = 'AND', OR = 'OR' } -/** Statistics for a given tag */ -export type TagStat = { - __typename?: 'TagStat'; - /** Total amount for this tag */ - amount?: Maybe; - /** Number of entries for this tag */ - count: Scalars['Int']['output']; - /** An unique identifier for this tag */ - id: Scalars['String']['output']; - /** Name/Label of the tag */ - tag: Scalars['String']['output']; -}; - -/** A collection of "Tags" */ -export type TagStatsCollection = Collection & { - __typename?: 'TagStatsCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Information about a tax */ -export type TaxInfo = { - __typename?: 'TaxInfo'; - /** An unique identifier for this tax (GST, VAT, etc) */ - id: Scalars['String']['output']; - /** Tax ID number of the 3rd party receiving/paying the tax */ - idNumber?: Maybe; - /** - * Percentage applied, between 0-100 - * @deprecated Please use `rate` instead - */ - percentage: Scalars['Int']['output']; - /** Percentage applied, between 0-1 */ - rate: Scalars['Float']['output']; - /** Identifier for this tax (GST, VAT, etc) */ - type: OrderTaxType; -}; - /** Input to set taxes for an expense */ export type TaxInput = { /** An optional tax amount to make sure the tax displayed in your frontend matches the one calculated by the API */ @@ -11178,74 +2651,11 @@ export enum TaxType { VAT = 'VAT' } -/** Tier model */ -export type Tier = { - __typename?: 'Tier'; - amount: Amount; - amountType: TierAmountType; - /** Number of tickets available. Returns null if there is no limit. */ - availableQuantity?: Maybe; - button?: Maybe; - /** Returns a list of all the contributors for this tier */ - contributors: ContributorCollection; - currency?: Maybe; - customFields?: Maybe; - description?: Maybe; - endsAt?: Maybe; - frequency: TierFrequency; - goal: Amount; - id: Scalars['String']['output']; - /** @deprecated 2020-08-24: Please use "frequency" */ - interval?: Maybe; - invoiceTemplate?: Maybe; - legacyId: Scalars['Int']['output']; - /** A long, html-formatted description. */ - longDescription?: Maybe; - maxQuantity?: Maybe; - minimumAmount: Amount; - name?: Maybe; - /** Get all orders */ - orders: OrderCollection; - presets?: Maybe>>; - requireAddress: Scalars['Boolean']['output']; - singleTicket?: Maybe; - slug?: Maybe; - stats?: Maybe; - type: TierType; - useStandalonePage?: Maybe; - /** Link to a video (YouTube, Vimeo). */ - videoUrl?: Maybe; -}; - - -/** Tier model */ -export type TierContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** Tier model */ -export type TierOrdersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - status?: InputMaybe>>; -}; - export enum TierAmountType { FIXED = 'FIXED', FLEXIBLE = 'FLEXIBLE' } -/** A collection of "Tiers" */ -export type TierCollection = Collection & { - __typename?: 'TierCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - export type TierCreateInput = { amount?: InputMaybe; amountType: TierAmountType; @@ -11285,16 +2695,6 @@ export type TierReferenceInput = { legacyId?: InputMaybe; }; -/** Stats about a tier */ -export type TierStats = { - __typename?: 'TierStats'; - id: Scalars['String']['output']; - /** How much money is given for this tier for each tier.interval (monthly/yearly). For flexible tiers, this amount is a monthly average of contributions amount, taking into account both yearly and monthly subscriptions. */ - recurringAmount: Amount; - /** Total amount donated for this tier, in cents. */ - totalAmountReceived: Amount; -}; - export enum TierType { DONATION = 'DONATION', MEMBERSHIP = 'MEMBERSHIP', @@ -11325,76 +2725,6 @@ export type TierUpdateInput = { videoUrl?: InputMaybe; }; -export type TimeSeries = { - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -/** Amount time series */ -export type TimeSeriesAmount = TimeSeries & { - __typename?: 'TimeSeriesAmount'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - /** Time series data points */ - nodes: Array; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -export type TimeSeriesAmountNode = { - __typename?: 'TimeSeriesAmountNode'; - amount: Amount; - count?: Maybe; - date: Scalars['DateTime']['output']; - label?: Maybe; -}; - -/** Amounts with settlements time series */ -export type TimeSeriesAmountWithKind = TimeSeries & { - __typename?: 'TimeSeriesAmountWithKind'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - /** Time series data points */ - nodes: Array; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -export type TimeSeriesAmountWithKindNode = { - __typename?: 'TimeSeriesAmountWithKindNode'; - amount: Amount; - date: Scalars['DateTime']['output']; - kind: TransactionKind; -}; - -/** Amounts with settlements time series */ -export type TimeSeriesAmountWithSettlement = TimeSeries & { - __typename?: 'TimeSeriesAmountWithSettlement'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - /** Time series data points */ - nodes: Array; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - -export type TimeSeriesAmountWithSettlementNode = { - __typename?: 'TimeSeriesAmountWithSettlementNode'; - amount: Amount; - date: Scalars['DateTime']['output']; - settlementStatus: TransactionSettlementStatus; -}; - export enum TimeUnit { DAY = 'DAY', HOUR = 'HOUR', @@ -11403,146 +2733,8 @@ export enum TimeUnit { QUARTER = 'QUARTER', SECOND = 'SECOND', WEEK = 'WEEK', - YEAR = 'YEAR' -} - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type Transaction = { - account?: Maybe; - amount: Amount; - amountInHostCurrency: Amount; - /** The balance after the Transaction has run. Only for financially active accounts. */ - balanceInHostCurrency?: Maybe; - clearedAt?: Maybe; - createdAt?: Maybe; - description?: Maybe; - expense?: Maybe; - /** The sender of a transaction (on CREDIT = oppositeAccount, DEBIT = account) */ - fromAccount?: Maybe; - giftCardEmitterAccount?: Maybe; - group: Scalars['String']['output']; - host?: Maybe; - /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ - hostCurrencyFxRate?: Maybe; - hostFee?: Maybe; - id: Scalars['String']['output']; - invoiceTemplate?: Maybe; - isDisputed?: Maybe; - isInReview?: Maybe; - isOrderRejected: Scalars['Boolean']['output']; - isRefund?: Maybe; - isRefunded?: Maybe; - kind?: Maybe; - legacyId: Scalars['Int']['output']; - /** Merchant id related to the Transaction (Stripe, PayPal, Wise, Privacy) */ - merchantId?: Maybe; - netAmount: Amount; - netAmountInHostCurrency: Amount; - oppositeAccount?: Maybe; - /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ - oppositeTransaction?: Maybe; - order?: Maybe; - paymentMethod?: Maybe; - paymentProcessorFee?: Maybe; - paymentProcessorUrl?: Maybe; - payoutMethod?: Maybe; - permissions?: Maybe; - platformFee: Amount; - refundTransaction?: Maybe; - relatedTransactions: Array>; - taxAmount: Amount; - /** If a tax is set, this field will contain more info about the tax */ - taxInfo?: Maybe; - /** The recipient of a transaction (on CREDIT = account, DEBIT = oppositeAccount) */ - toAccount?: Maybe; - type: TransactionType; - updatedAt?: Maybe; - /** @deprecated 2021-08-15: Use id instead. */ - uuid: Scalars['String']['output']; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionDescriptionArgs = { - dynamic?: InputMaybe; - full?: InputMaybe; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionHostFeeArgs = { - fetchHostFee?: InputMaybe; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionNetAmountArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionNetAmountInHostCurrencyArgs = { - fetchHostFee?: InputMaybe; - fetchPaymentProcessorFee?: InputMaybe; - fetchTax?: InputMaybe; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionPaymentProcessorFeeArgs = { - fetchPaymentProcessorFee?: InputMaybe; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionRelatedTransactionsArgs = { - kind?: InputMaybe>>; -}; - - -/** Transaction interface shared by all kind of transactions (Debit, Credit) */ -export type TransactionTaxAmountArgs = { - fetchTax?: InputMaybe; -}; - -/** A collection of Transactions (Debit or Credit) */ -export type TransactionCollection = Collection & { - __typename?: 'TransactionCollection'; - kinds?: Maybe>>; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - /** The types of payment methods used in this collection, regardless of the pagination */ - paymentMethodTypes: Array>; - totalCount?: Maybe; -}; - -/** Transaction group */ -export type TransactionGroup = { - __typename?: 'TransactionGroup'; - /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ - account?: Maybe; - createdAt?: Maybe; - host?: Maybe; - id: Scalars['String']['output']; - /** The primary transaction in the group */ - primaryTransaction?: Maybe; - totalAmount: Amount; - /** The transactions in the group */ - transactions?: Maybe>>; -}; - -/** A collection of Transactions groups */ -export type TransactionGroupCollection = Collection & { - __typename?: 'TransactionGroupCollection'; - limit?: Maybe; - nodes: Array; - offset?: Maybe; - totalCount?: Maybe; -}; + YEAR = 'YEAR' +} export enum TransactionKind { ADDED_FUNDS = 'ADDED_FUNDS', @@ -11562,18 +2754,6 @@ export enum TransactionKind { TAX = 'TAX' } -/** Fields for the user permissions on an transaction */ -export type TransactionPermissions = { - __typename?: 'TransactionPermissions'; - /** Whether the current user can download this transaction's invoice */ - canDownloadInvoice: Scalars['Boolean']['output']; - /** Whether the current user can edit the transaction */ - canRefund: Scalars['Boolean']['output']; - /** Whether the current user can reject the transaction */ - canReject: Scalars['Boolean']['output']; - id: Scalars['String']['output']; -}; - export type TransactionReferenceInput = { /** The public id identifying the transaction (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ id?: InputMaybe; @@ -11581,28 +2761,6 @@ export type TransactionReferenceInput = { legacyId?: InputMaybe; }; -/** EXPERIMENTAL (this may change or be deleted) */ -export type TransactionReport = { - __typename?: 'TransactionReport'; - date?: Maybe; - endingBalance: Amount; - groups: Array>; - startingBalance: Amount; - totalChange: Amount; -}; - -/** EXPERIMENTAL (this may change or be deleted): Host transaction report */ -export type TransactionReports = { - __typename?: 'TransactionReports'; - /** The start date of the time series */ - dateFrom?: Maybe; - /** The end date of the time series */ - dateTo?: Maybe; - nodes?: Maybe>; - /** The interval between two data points */ - timeUnit: TimeUnit; -}; - export enum TransactionSettlementStatus { INVOICED = 'INVOICED', OWED = 'OWED', @@ -11615,95 +2773,6 @@ export enum TransactionType { DEBIT = 'DEBIT' } -/** EXPERIMENTAL (this may change or be deleted): Transaction amounts grouped by type, kind, isRefund, isHost, expenseType */ -export type TransactionsAmountGroup = { - __typename?: 'TransactionsAmountGroup'; - amount?: Maybe; - expenseType?: Maybe; - hostFee?: Maybe; - isHost?: Maybe; - isRefund?: Maybe; - kind?: Maybe; - netAmount?: Maybe; - paymentProcessorFee?: Maybe; - platformFee?: Maybe; - taxAmount?: Maybe; - type?: Maybe; -}; - -export type TransactionsImport = { - __typename?: 'TransactionsImport'; - /** Account that holds the import */ - account: Account; - /** Connected account linked to the import */ - connectedAccount?: Maybe; - /** When the import was created */ - createdAt: Scalars['DateTime']['output']; - /** Configuration for the CSV import */ - csvConfig?: Maybe; - /** URL of the import (e.g. link to the CSV file) */ - file?: Maybe; - /** The public id of the import */ - id: Scalars['String']['output']; - /** Whether the import is currently syncing */ - isSyncing: Scalars['Boolean']['output']; - /** When the import was last synced */ - lastSyncAt?: Maybe; - /** Cursor that defines where the last sync left off. Useful to know if there is new data to sync */ - lastSyncCursor?: Maybe; - /** Name of the import (e.g. "Contributions May 2021", "Tickets for Mautic Conference 2024") */ - name: Scalars['NonEmptyString']['output']; - /** List of rows in the import */ - rows: TransactionsImportRowCollection; - /** Source of the import (e.g. "Bank of America", "Eventbrite", etc...) */ - source: Scalars['NonEmptyString']['output']; - stats?: Maybe; - /** Type of the import */ - type: TransactionsImportType; - /** When the import was last updated */ - updatedAt: Scalars['DateTime']['output']; -}; - - -export type TransactionsImportRowsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; - status?: InputMaybe; -}; - -/** A row in a transactions import */ -export type TransactionsImportRow = { - __typename?: 'TransactionsImportRow'; - /** The amount of the row */ - amount: Amount; - /** The date of the row */ - date: Scalars['DateTime']['output']; - /** The description of the row */ - description: Scalars['String']['output']; - /** The expense associated with the row */ - expense?: Maybe; - /** The public id of the imported row */ - id: Scalars['String']['output']; - /** Whether the row has been dismissed */ - isDismissed: Scalars['Boolean']['output']; - /** The order associated with the row */ - order?: Maybe; - /** The raw data of the row */ - rawValue?: Maybe; - /** The source id of the row */ - sourceId: Scalars['NonEmptyString']['output']; -}; - -/** A collection of "TransactionsImportRow" */ -export type TransactionsImportRowCollection = Collection & { - __typename?: 'TransactionsImportRowCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - export type TransactionsImportRowCreateInput = { /** The amount of the row */ amount: AmountInput; @@ -11751,20 +2820,6 @@ export type TransactionsImportRowUpdateInput = { sourceId?: InputMaybe; }; -export type TransactionsImportStats = { - __typename?: 'TransactionsImportStats'; - /** Number of rows that have been converted to expenses */ - expenses: Scalars['Int']['output']; - /** Number of rows that have been ignored */ - ignored: Scalars['Int']['output']; - /** Number of rows that have been converted to orders */ - orders: Scalars['Int']['output']; - /** Number of rows that have been processed (either dismissed or converted to expenses or orders) */ - processed: Scalars['Int']['output']; - /** Total number of rows in the import */ - total: Scalars['Int']['output']; -}; - /** Type of the import */ export enum TransactionsImportType { CSV = 'CSV', @@ -11772,75 +2827,6 @@ export enum TransactionsImportType { PLAID = 'PLAID' } -/** A collection of "TransactionsImports" */ -export type TransactionsImportsCollection = Collection & { - __typename?: 'TransactionsImportsCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** TransferWise related properties for bank transfer. */ -export type TransferWise = { - __typename?: 'TransferWise'; - amountBatched?: Maybe; - availableCurrencies?: Maybe>>; - /** Transferwise balances. Returns null if Transferwise account is not connected. */ - balances?: Maybe>>; - /** Unique identifier for this Wise object */ - id: Scalars['String']['output']; - requiredFields?: Maybe>>; -}; - - -/** TransferWise related properties for bank transfer. */ -export type TransferWiseAvailableCurrenciesArgs = { - ignoreBlockedCurrencies?: InputMaybe; -}; - - -/** TransferWise related properties for bank transfer. */ -export type TransferWiseRequiredFieldsArgs = { - accountDetails?: InputMaybe; - currency: Scalars['String']['input']; -}; - -export type TransferWiseField = { - __typename?: 'TransferWiseField'; - group?: Maybe>>; - name?: Maybe; -}; - -export type TransferWiseFieldGroup = { - __typename?: 'TransferWiseFieldGroup'; - displayFormat?: Maybe; - example?: Maybe; - key?: Maybe; - maxLength?: Maybe; - minLength?: Maybe; - name?: Maybe; - refreshRequirementsOnChange?: Maybe; - required?: Maybe; - type?: Maybe; - validationAsync?: Maybe; - validationRegexp?: Maybe; - valuesAllowed?: Maybe>>; -}; - -export type TransferWiseFieldVatvkluesAllowed = { - __typename?: 'TransferWiseFieldVatvkluesAllowed'; - key?: Maybe; - name?: Maybe; -}; - -export type TransferWiseRequiredField = { - __typename?: 'TransferWiseRequiredField'; - fields?: Maybe>>; - title?: Maybe; - type?: Maybe; -}; - /** A two factor authentication method */ export enum TwoFactorMethod { TOTP = 'TOTP', @@ -11848,58 +2834,6 @@ export enum TwoFactorMethod { YUBIKEY_OTP = 'YUBIKEY_OTP' } -export type UnfollowAccountResult = { - __typename?: 'UnfollowAccountResult'; - individual: Individual; - member?: Maybe; -}; - -/** This represents an Update */ -export type Update = { - __typename?: 'Update'; - account?: Maybe; - /** Some stats about the target audience. Will be null if the update is already published or if you don't have enough permissions so see this information. Not backed by a loader, avoid using this field in lists. */ - audienceStats?: Maybe; - /** List the comments for this update. Not backed by a loader, don't use this in lists. */ - comments?: Maybe; - createdAt: Scalars['DateTime']['output']; - fromAccount?: Maybe; - html?: Maybe; - id: Scalars['String']['output']; - isChangelog: Scalars['Boolean']['output']; - isPrivate: Scalars['Boolean']['output']; - legacyId?: Maybe; - makePublicOn?: Maybe; - notificationAudience?: Maybe; - publishedAt?: Maybe; - /** Returns a map of reactions counts for this update */ - reactions?: Maybe; - slug: Scalars['String']['output']; - summary?: Maybe; - tags?: Maybe>>; - title: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; - /** Indicates whether or not the user is allowed to publish this update */ - userCanPublishUpdate: Scalars['Boolean']['output']; - /** Indicates whether or not the user is allowed to see the content of this update */ - userCanSeeUpdate: Scalars['Boolean']['output']; - /** Returns the list of reactions added to this update by logged in user */ - userReactions?: Maybe>>; -}; - - -/** This represents an Update */ -export type UpdateAudienceStatsArgs = { - audience?: InputMaybe; -}; - - -/** This represents an Update */ -export type UpdateCommentsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - /** Defines targets for an update */ export enum UpdateAudience { /** Will be sent to collective admins and financial contributors */ @@ -11912,19 +2846,6 @@ export enum UpdateAudience { NO_ONE = 'NO_ONE' } -/** Stats about the potential audience of an update */ -export type UpdateAudienceStats = { - __typename?: 'UpdateAudienceStats'; - collectives: Scalars['Int']['output']; - coreContributors: Scalars['Int']['output']; - hosted: Scalars['Int']['output']; - id: Scalars['String']['output']; - individuals: Scalars['Int']['output']; - organizations: Scalars['Int']['output']; - /** The total number of emails to send */ - total: Scalars['Int']['output']; -}; - /** Input to order updates chronologically */ export type UpdateChronologicalOrderInput = { /** Ordering direction. */ @@ -11933,15 +2854,6 @@ export type UpdateChronologicalOrderInput = { field?: UpdateDateTimeField; }; -/** A collection of "Updates" */ -export type UpdateCollection = Collection & { - __typename?: 'UpdateCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - /** Input type for UpdateType */ export type UpdateCreateInput = { account: AccountReferenceInput; @@ -11991,12 +2903,6 @@ export type UploadFileInput = { parsingOptions?: InputMaybe; }; -export type UploadFileResult = { - __typename?: 'UploadFileResult'; - file: FileInfo; - parsingResult?: Maybe; -}; - /** The kind of file that was uploaded */ export enum UploadedFileKind { ACCOUNT_AVATAR = 'ACCOUNT_AVATAR', @@ -12012,505 +2918,11 @@ export enum UploadedFileKind { UPDATE = 'UPDATE' } -/** User two factor authentication method */ -export type UserTwoFactorMethod = { - __typename?: 'UserTwoFactorMethod'; - createdAt: Scalars['DateTime']['output']; - description?: Maybe; - icon?: Maybe; - id: Scalars['String']['output']; - method: TwoFactorMethod; - name: Scalars['String']['output']; -}; - export type UserTwoFactorMethodReferenceInput = { id?: InputMaybe; legacyId?: InputMaybe; }; -/** This represents a Vendor account */ -export type Vendor = Account & AccountWithContributions & { - __typename?: 'Vendor'; - /** [!] Warning: this query is currently in beta and the API might change */ - activeContributors: AccountCollection; - /** List of activities that the logged-in user is subscribed for this collective */ - activitySubscriptions?: Maybe>>; - backgroundImageUrl?: Maybe; - /** Whether this account can have changelog updates */ - canHaveChangelogUpdates: Scalars['Boolean']['output']; - /** Returns true if the remote user can start the process to resume contributions for account */ - canStartResumeContributionsProcess: Scalars['Boolean']['output']; - categories: Array>; - childrenAccounts: AccountCollection; - /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ - connectedAccounts?: Maybe>>; - contributionPolicy?: Maybe; - /** All the persons and entities that contribute to this account */ - contributors: ContributorCollection; - conversations: ConversationCollection; - /** Returns conversation's tags for collective sorted by popularity */ - conversationsTags?: Maybe>>; - /** The time of creation */ - createdAt?: Maybe; - /** The account who created this order */ - createdByAccount?: Maybe; - /** The currency of the account */ - currency: Currency; - description?: Maybe; - /** If this account was duplicated, the accounts that were created from it */ - duplicatedAccounts: AccountCollection; - /** If created by duplication, the account from which this one was duplicated */ - duplicatedFromAccount?: Maybe; - /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ - emails?: Maybe>; - /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ - expensePolicy?: Maybe; - expenses: ExpenseCollection; - /** Returns expense tags for collective sorted by popularity */ - expensesTags?: Maybe>>; - /** Describes the features enabled and available for this account */ - features: CollectiveFeatures; - feed?: Maybe>>; - /** @deprecated 2022-06-03: Please use repositoryUrl */ - githubHandle?: Maybe; - /** Returns whether this account has any payout methods saved */ - hasPayoutMethod?: Maybe; - /** Returns true if the account has started the process to resume contributions */ - hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; - /** Host application requests */ - hostApplicationRequests: HostApplicationCollection; - id: Scalars['String']['output']; - imageUrl?: Maybe; - /** Returns whether the account accepts financial contributions. */ - isActive?: Maybe; - /** Returns true if the remote user is an admin of this account */ - isAdmin: Scalars['Boolean']['output']; - /** Returns whether this account is archived */ - isArchived: Scalars['Boolean']['output']; - /** Whether this account is frozen */ - isFrozen: Scalars['Boolean']['output']; - /** Returns whether the account is setup to Host collectives. */ - isHost: Scalars['Boolean']['output']; - /** Defines if the contributors wants to be incognito (name not displayed) */ - isIncognito: Scalars['Boolean']['output']; - legacyId: Scalars['Int']['output']; - /** The legal documents associated with this account */ - legalDocuments?: Maybe>>; - /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ - legalName?: Maybe; - /** The address associated to this account. This field is always public for collectives and events. */ - location?: Maybe; - longDescription?: Maybe; - /** [AUTHENTICATED] Returns the pending invitations */ - memberInvitations?: Maybe>>; - memberOf: MemberOfCollection; - /** Get all members (admins, members, backers, followers) */ - members: MemberCollection; - /** Public name */ - name?: Maybe; - /** The list of applications created by this account. Admin only. Scope: "applications". */ - oAuthApplications?: Maybe; - orders: OrderCollection; - /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ - parentAccount?: Maybe; - /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ - paymentMethods?: Maybe>>; - /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ - paymentMethodsWithPendingConfirmation?: Maybe>>; - /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ - payoutMethods?: Maybe>>; - /** Logged-in user permissions on an account */ - permissions: AccountPermissions; - /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ - platformContributionAvailable: Scalars['Boolean']['output']; - /** How much platform fees are charged for this account */ - platformFeePercent: Scalars['Float']['output']; - /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ - policies: Policies; - /** @deprecated 2023-01-16: Please use socialLinks */ - repositoryUrl?: Maybe; - settings: Scalars['JSON']['output']; - /** The slug identifying the account (ie: babel) */ - slug: Scalars['String']['output']; - socialLinks: Array; - stats?: Maybe; - /** The list of expense types supported by this account */ - supportedExpenseTypes: Array; - tags?: Maybe>>; - tiers: TierCollection; - /** Number of unique financial contributors. */ - totalFinancialContributors: Scalars['Int']['output']; - /** [!] Warning: this query is currently in beta and the API might change */ - transactionGroups: TransactionGroupCollection; - /** EXPERIMENTAL (this may change or be removed) */ - transactionReports?: Maybe; - transactions: TransactionCollection; - transferwise?: Maybe; - /** @deprecated 2023-01-16: Please use socialLinks */ - twitterHandle?: Maybe; - type: AccountType; - /** Date of unhosting by a given Fiscal Host. */ - unhostedAt?: Maybe; - updatedAt?: Maybe; - /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ - updates: UpdateCollection; - vendorInfo?: Maybe; - /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ - virtualCardMerchants?: Maybe; - /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ - virtualCards?: Maybe; - webhooks: WebhookCollection; - /** @deprecated 2023-01-16: Please use socialLinks */ - website?: Maybe; -}; - - -/** This represents a Vendor account */ -export type VendorActiveContributorsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - includeActiveRecurringContributions?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorActivitySubscriptionsArgs = { - channel?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorBackgroundImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorChildrenAccountsArgs = { - accountType?: InputMaybe>>; - isActive?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - searchTerm?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorContributorsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - roles?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorConversationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - tag?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorConversationsTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorDuplicatedAccountsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorExpensesArgs = { - account?: InputMaybe; - accountingCategory?: InputMaybe>>; - chargeHasReceipts?: InputMaybe; - createdByAccount?: InputMaybe; - customData?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - direction?: InputMaybe; - fromAccount?: InputMaybe; - host?: InputMaybe; - includeChildrenExpenses?: Scalars['Boolean']['input']; - lastCommentBy?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - payoutMethodType?: InputMaybe; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tag?: InputMaybe>>; - tags?: InputMaybe>>; - type?: InputMaybe; - types?: InputMaybe>>; - virtualCards?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorExpensesTagsArgs = { - limit?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorFeedArgs = { - classes?: InputMaybe>>; - dateTo?: InputMaybe; - limit?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorHostApplicationRequestsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - status?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorImageUrlArgs = { - format?: InputMaybe; - height?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorLegalDocumentsArgs = { - type?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorMemberInvitationsArgs = { - account?: InputMaybe; - memberAccount?: InputMaybe; - role?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorMemberOfArgs = { - account?: InputMaybe; - accountType?: InputMaybe>>; - hostFeesStructure?: InputMaybe; - includeIncognito?: InputMaybe; - isApproved?: InputMaybe; - isArchived?: InputMaybe; - isHostAccount?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: OrderByInput; - orderByRoles?: InputMaybe; - role?: InputMaybe>>; - searchTerm?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorMembersArgs = { - accountType?: InputMaybe>>; - email?: InputMaybe; - includeInherited?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - orderBy?: ChronologicalOrderInput; - role?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorOAuthApplicationsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorOrdersArgs = { - chargedDateFrom?: InputMaybe; - chargedDateTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - expectedDateFrom?: InputMaybe; - expectedDateTo?: InputMaybe; - expectedFundsFilter?: InputMaybe; - filter?: InputMaybe; - frequency?: InputMaybe; - includeChildrenAccounts?: Scalars['Boolean']['input']; - includeHostedAccounts?: InputMaybe; - includeIncognito?: InputMaybe; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - onlyActiveSubscriptions?: InputMaybe; - onlySubscriptions?: InputMaybe; - oppositeAccount?: InputMaybe; - orderBy?: ChronologicalOrderInput; - pausedBy?: InputMaybe>>; - paymentMethod?: InputMaybe; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - status?: InputMaybe>>; - tierSlug?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorPaymentMethodsArgs = { - enumType?: InputMaybe>>; - includeExpired?: InputMaybe; - service?: InputMaybe>>; - type?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorTiersArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorTotalFinancialContributorsArgs = { - accountType?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorTransactionGroupsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - kind?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - type?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorTransactionReportsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - timeUnit?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorTransactionsArgs = { - accountingCategory?: InputMaybe>>; - clearedFrom?: InputMaybe; - clearedTo?: InputMaybe; - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - excludeAccount?: InputMaybe>>; - expense?: InputMaybe; - expenseType?: InputMaybe>>; - fromAccount?: InputMaybe; - group?: InputMaybe>>; - hasExpense?: InputMaybe; - hasOrder?: InputMaybe; - host?: InputMaybe; - includeChildrenTransactions?: Scalars['Boolean']['input']; - includeDebts?: Scalars['Boolean']['input']; - includeGiftCardTransactions?: Scalars['Boolean']['input']; - includeHost?: Scalars['Boolean']['input']; - includeIncognitoTransactions?: Scalars['Boolean']['input']; - includeRegularTransactions?: Scalars['Boolean']['input']; - isRefund?: InputMaybe; - kind?: InputMaybe>>; - limit?: Scalars['Int']['input']; - maxAmount?: InputMaybe; - merchantId?: InputMaybe>>; - minAmount?: InputMaybe; - offset?: Scalars['Int']['input']; - order?: InputMaybe; - orderBy?: ChronologicalOrderInput; - paymentMethodService?: InputMaybe>>; - paymentMethodType?: InputMaybe>>; - searchTerm?: InputMaybe; - tags?: InputMaybe>>; - type?: InputMaybe; - virtualCard?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorUnhostedAtArgs = { - host: AccountReferenceInput; -}; - - -/** This represents a Vendor account */ -export type VendorUpdatesArgs = { - isDraft?: InputMaybe; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; - onlyChangelogUpdates?: InputMaybe; - onlyPublishedUpdates?: InputMaybe; - orderBy?: UpdateChronologicalOrderInput; - searchTerm?: InputMaybe; -}; - - -/** This represents a Vendor account */ -export type VendorVirtualCardMerchantsArgs = { - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - - -/** This represents a Vendor account */ -export type VendorVirtualCardsArgs = { - dateFrom?: InputMaybe; - dateTo?: InputMaybe; - limit?: Scalars['Int']['input']; - merchantAccount?: InputMaybe; - offset?: Scalars['Int']['input']; - orderBy?: InputMaybe; - state?: InputMaybe; - status?: InputMaybe>>; -}; - - -/** This represents a Vendor account */ -export type VendorWebhooksArgs = { - account: AccountReferenceInput; - limit?: Scalars['Int']['input']; - offset?: Scalars['Int']['input']; -}; - -/** A collection of Vendors */ -export type VendorCollection = Collection & { - __typename?: 'VendorCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - -/** Some context about the vendor contact person */ -export type VendorContact = { - __typename?: 'VendorContact'; - email?: Maybe; - name?: Maybe; -}; - /** Some context about the vendor contact person */ export type VendorContactInput = { email?: InputMaybe; @@ -12556,17 +2968,6 @@ export type VendorEditInput = { vendorInfo?: InputMaybe; }; -/** Some context about the vendor */ -export type VendorInfo = { - __typename?: 'VendorInfo'; - contact?: Maybe; - notes?: Maybe; - taxFormRequired?: Maybe; - taxFormUrl?: Maybe; - taxId?: Maybe; - taxType?: Maybe; -}; - /** Some context about the vendor */ export type VendorInfoInput = { contact?: InputMaybe; @@ -12577,38 +2978,6 @@ export type VendorInfoInput = { taxType?: InputMaybe; }; -/** A Virtual Card used to pay expenses */ -export type VirtualCard = { - __typename?: 'VirtualCard'; - account?: Maybe; - assignee?: Maybe; - createdAt?: Maybe; - currency?: Maybe; - data?: Maybe; - host?: Maybe; - id?: Maybe; - last4?: Maybe; - name?: Maybe; - privateData?: Maybe; - provider?: Maybe; - remainingLimit?: Maybe; - spendingLimitAmount?: Maybe; - spendingLimitInterval?: Maybe; - spendingLimitRenewsOn?: Maybe; - status?: Maybe; - updatedAt?: Maybe; - virtualCardRequest?: Maybe; -}; - -/** A collection of Virtual Cards */ -export type VirtualCardCollection = Collection & { - __typename?: 'VirtualCardCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - export type VirtualCardInput = { data?: InputMaybe; id?: InputMaybe; @@ -12636,33 +3005,6 @@ export type VirtualCardReferenceInput = { id?: InputMaybe; }; -/** A Virtual Card request */ -export type VirtualCardRequest = { - __typename?: 'VirtualCardRequest'; - account?: Maybe; - assignee?: Maybe; - createdAt?: Maybe; - currency?: Maybe; - host?: Maybe; - id: Scalars['String']['output']; - legacyId?: Maybe; - notes?: Maybe; - purpose?: Maybe; - spendingLimitAmount?: Maybe; - spendingLimitInterval?: Maybe; - status?: Maybe; - updatedAt?: Maybe; -}; - -/** A collection of "VirtualCardRequest" */ -export type VirtualCardRequestCollection = Collection & { - __typename?: 'VirtualCardRequestCollection'; - limit?: Maybe; - nodes?: Maybe>; - offset?: Maybe; - totalCount?: Maybe; -}; - export type VirtualCardRequestReferenceInput = { id?: InputMaybe; legacyId?: InputMaybe; @@ -12682,25 +3024,6 @@ export enum VirtualCardStatus { INACTIVE = 'INACTIVE' } -/** An webhook attached to an account */ -export type Webhook = { - __typename?: 'Webhook'; - account: Account; - activityType?: Maybe; - id: Scalars['String']['output']; - legacyId: Scalars['Int']['output']; - webhookUrl?: Maybe; -}; - -/** A collection of webhooks */ -export type WebhookCollection = Collection & { - __typename?: 'WebhookCollection'; - limit?: Maybe; - nodes?: Maybe>>; - offset?: Maybe; - totalCount?: Maybe; -}; - /** Input type for Webhooks */ export type WebhookCreateInput = { /** The account to attach the Webhook */ @@ -14151,6 +4474,7 @@ export type TransactionsTableQueryVariables = Exact<{ expense?: InputMaybe; order?: InputMaybe; isRefund?: InputMaybe; + hasDebt?: InputMaybe; merchantId?: InputMaybe> | InputMaybe>; accountingCategory?: InputMaybe> | InputMaybe>; }>; @@ -15186,7 +5510,7 @@ export const HostTransactionsMetaDataDocument = {"kind":"Document","definitions" export const TransactionDetailsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TransactionDetails"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionReferenceInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transaction"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"group"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"paymentProcessorFee"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fetchPaymentProcessorFee"},"value":{"kind":"BooleanValue","value":true}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"hostFee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"netAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxAmount"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fetchTax"},"value":{"kind":"BooleanValue","value":true}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"oppositeTransaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"paymentMethod"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"service"}}]}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"clearedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRefunded"}},{"kind":"Field","name":{"kind":"Name","value":"isRefund"}},{"kind":"Field","name":{"kind":"Name","value":"isInReview"}},{"kind":"Field","name":{"kind":"Name","value":"isDisputed"}},{"kind":"Field","name":{"kind":"Name","value":"isOrderRejected"}},{"kind":"Field","name":{"kind":"Name","value":"merchantId"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isIncognito"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithHost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"approvedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithParent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fromAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithParent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"toAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithHost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"oppositeAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"canRefund"}},{"kind":"Field","name":{"kind":"Name","value":"canDownloadInvoice"}},{"kind":"Field","name":{"kind":"Name","value":"canReject"}}]}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"processedAt"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fromAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accountingCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"friendlyName"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"feesPayer"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"comments"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"1"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payoutMethod"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdByAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"payee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accountingCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"friendlyName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"refundTransaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"group"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountHoverCardFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Account"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isHost"}},{"kind":"Field","name":{"kind":"Name","value":"isArchived"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Individual"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isGuest"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithHost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"approvedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithParent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}}]} as unknown as DocumentNode; export const RejectTransactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RejectTransaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionReferenceInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"message"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rejectTransaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transaction"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}}},{"kind":"Argument","name":{"kind":"Name","value":"message"},"value":{"kind":"Variable","name":{"kind":"Name","value":"message"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"activities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const RefundTransactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RefundTransaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionReferenceInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ignoreBalanceCheck"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"refundTransaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transaction"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transaction"}}},{"kind":"Argument","name":{"kind":"Name","value":"ignoreBalanceCheck"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ignoreBalanceCheck"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"activities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}}]}}]}}]}}]} as unknown as DocumentNode; -export const TransactionsTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TransactionsTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostAccount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"account"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"excludeAccount"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionType"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodType"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaymentMethodType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodService"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaymentMethodService"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minAmount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"maxAmount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dateFrom"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dateTo"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clearedFrom"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clearedTo"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"kind"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionKind"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeIncognitoTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeGiftCardTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeChildrenTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"virtualCard"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"VirtualCardReferenceInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sort"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChronologicalOrderInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"group"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeHost"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"expenseType"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExpenseType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"expense"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ExpenseReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"order"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OrderReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isRefund"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"merchantId"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountingCategory"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"host"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostAccount"}}},{"kind":"Argument","name":{"kind":"Name","value":"account"},"value":{"kind":"Variable","name":{"kind":"Name","value":"account"}}},{"kind":"Argument","name":{"kind":"Name","value":"excludeAccount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"excludeAccount"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}},{"kind":"Argument","name":{"kind":"Name","value":"paymentMethodType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodType"}}},{"kind":"Argument","name":{"kind":"Name","value":"paymentMethodService"},"value":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodService"}}},{"kind":"Argument","name":{"kind":"Name","value":"minAmount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"minAmount"}}},{"kind":"Argument","name":{"kind":"Name","value":"maxAmount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"maxAmount"}}},{"kind":"Argument","name":{"kind":"Name","value":"dateFrom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dateFrom"}}},{"kind":"Argument","name":{"kind":"Name","value":"dateTo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dateTo"}}},{"kind":"Argument","name":{"kind":"Name","value":"clearedFrom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clearedFrom"}}},{"kind":"Argument","name":{"kind":"Name","value":"clearedTo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clearedTo"}}},{"kind":"Argument","name":{"kind":"Name","value":"searchTerm"},"value":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}}},{"kind":"Argument","name":{"kind":"Name","value":"kind"},"value":{"kind":"Variable","name":{"kind":"Name","value":"kind"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeIncognitoTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeIncognitoTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeGiftCardTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeGiftCardTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeChildrenTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeChildrenTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeDebts"},"value":{"kind":"BooleanValue","value":true}},{"kind":"Argument","name":{"kind":"Name","value":"virtualCard"},"value":{"kind":"Variable","name":{"kind":"Name","value":"virtualCard"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sort"}}},{"kind":"Argument","name":{"kind":"Name","value":"group"},"value":{"kind":"Variable","name":{"kind":"Name","value":"group"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeHost"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeHost"}}},{"kind":"Argument","name":{"kind":"Name","value":"expenseType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"expenseType"}}},{"kind":"Argument","name":{"kind":"Name","value":"expense"},"value":{"kind":"Variable","name":{"kind":"Name","value":"expense"}}},{"kind":"Argument","name":{"kind":"Name","value":"order"},"value":{"kind":"Variable","name":{"kind":"Name","value":"order"}}},{"kind":"Argument","name":{"kind":"Name","value":"isRefund"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isRefund"}}},{"kind":"Argument","name":{"kind":"Name","value":"merchantId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"merchantId"}}},{"kind":"Argument","name":{"kind":"Name","value":"accountingCategory"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountingCategory"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableQueryCollectionFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountHoverCardFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Account"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isHost"}},{"kind":"Field","name":{"kind":"Name","value":"isArchived"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Individual"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isGuest"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithHost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"approvedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithParent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableQueryCollectionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionCollection"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"offset"}},{"kind":"Field","name":{"kind":"Name","value":"limit"}},{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}}]}},{"kind":"Field","name":{"kind":"Name","value":"netAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"clearedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRefunded"}},{"kind":"Field","name":{"kind":"Name","value":"isRefund"}},{"kind":"Field","name":{"kind":"Name","value":"isOrderRejected"}},{"kind":"Field","name":{"kind":"Name","value":"isInReview"}},{"kind":"Field","name":{"kind":"Name","value":"isDisputed"}},{"kind":"Field","name":{"kind":"Name","value":"refundTransaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"group"}}]}},{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isIncognito"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"oppositeAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isIncognito"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"canRefund"}},{"kind":"Field","name":{"kind":"Name","value":"canDownloadInvoice"}},{"kind":"Field","name":{"kind":"Name","value":"canReject"}}]}}]}}]}}]} as unknown as DocumentNode; +export const TransactionsTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TransactionsTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hostAccount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"account"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"excludeAccount"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountReferenceInput"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"offset"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"type"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionType"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodType"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaymentMethodType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodService"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"PaymentMethodService"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"minAmount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"maxAmount"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dateFrom"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"dateTo"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clearedFrom"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clearedTo"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"DateTime"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"kind"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionKind"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeIncognitoTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeGiftCardTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeChildrenTransactions"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"virtualCard"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"VirtualCardReferenceInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sort"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChronologicalOrderInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"group"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"includeHost"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"expenseType"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"ExpenseType"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"expense"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ExpenseReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"order"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"OrderReferenceInput"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isRefund"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"hasDebt"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"merchantId"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accountingCategory"}},"type":{"kind":"ListType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"host"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hostAccount"}}},{"kind":"Argument","name":{"kind":"Name","value":"account"},"value":{"kind":"Variable","name":{"kind":"Name","value":"account"}}},{"kind":"Argument","name":{"kind":"Name","value":"excludeAccount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"excludeAccount"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"offset"},"value":{"kind":"Variable","name":{"kind":"Name","value":"offset"}}},{"kind":"Argument","name":{"kind":"Name","value":"type"},"value":{"kind":"Variable","name":{"kind":"Name","value":"type"}}},{"kind":"Argument","name":{"kind":"Name","value":"paymentMethodType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodType"}}},{"kind":"Argument","name":{"kind":"Name","value":"paymentMethodService"},"value":{"kind":"Variable","name":{"kind":"Name","value":"paymentMethodService"}}},{"kind":"Argument","name":{"kind":"Name","value":"minAmount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"minAmount"}}},{"kind":"Argument","name":{"kind":"Name","value":"maxAmount"},"value":{"kind":"Variable","name":{"kind":"Name","value":"maxAmount"}}},{"kind":"Argument","name":{"kind":"Name","value":"dateFrom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dateFrom"}}},{"kind":"Argument","name":{"kind":"Name","value":"dateTo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"dateTo"}}},{"kind":"Argument","name":{"kind":"Name","value":"clearedFrom"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clearedFrom"}}},{"kind":"Argument","name":{"kind":"Name","value":"clearedTo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clearedTo"}}},{"kind":"Argument","name":{"kind":"Name","value":"searchTerm"},"value":{"kind":"Variable","name":{"kind":"Name","value":"searchTerm"}}},{"kind":"Argument","name":{"kind":"Name","value":"kind"},"value":{"kind":"Variable","name":{"kind":"Name","value":"kind"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeIncognitoTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeIncognitoTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeGiftCardTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeGiftCardTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeChildrenTransactions"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeChildrenTransactions"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeDebts"},"value":{"kind":"BooleanValue","value":true}},{"kind":"Argument","name":{"kind":"Name","value":"virtualCard"},"value":{"kind":"Variable","name":{"kind":"Name","value":"virtualCard"}}},{"kind":"Argument","name":{"kind":"Name","value":"orderBy"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sort"}}},{"kind":"Argument","name":{"kind":"Name","value":"group"},"value":{"kind":"Variable","name":{"kind":"Name","value":"group"}}},{"kind":"Argument","name":{"kind":"Name","value":"includeHost"},"value":{"kind":"Variable","name":{"kind":"Name","value":"includeHost"}}},{"kind":"Argument","name":{"kind":"Name","value":"expenseType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"expenseType"}}},{"kind":"Argument","name":{"kind":"Name","value":"expense"},"value":{"kind":"Variable","name":{"kind":"Name","value":"expense"}}},{"kind":"Argument","name":{"kind":"Name","value":"order"},"value":{"kind":"Variable","name":{"kind":"Name","value":"order"}}},{"kind":"Argument","name":{"kind":"Name","value":"isRefund"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isRefund"}}},{"kind":"Argument","name":{"kind":"Name","value":"hasDebt"},"value":{"kind":"Variable","name":{"kind":"Name","value":"hasDebt"}}},{"kind":"Argument","name":{"kind":"Name","value":"merchantId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"merchantId"}}},{"kind":"Argument","name":{"kind":"Name","value":"accountingCategory"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accountingCategory"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableQueryCollectionFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AccountHoverCardFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Account"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"isHost"}},{"kind":"Field","name":{"kind":"Name","value":"isArchived"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Individual"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"isGuest"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithHost"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"approvedAt"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AccountWithParent"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableQueryCollectionFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TransactionCollection"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"offset"}},{"kind":"Field","name":{"kind":"Name","value":"limit"}},{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"uuid"}},{"kind":"Field","name":{"kind":"Name","value":"kind"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}}]}},{"kind":"Field","name":{"kind":"Name","value":"netAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"valueInCents"}}]}},{"kind":"Field","name":{"kind":"Name","value":"group"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"clearedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isRefunded"}},{"kind":"Field","name":{"kind":"Name","value":"isRefund"}},{"kind":"Field","name":{"kind":"Name","value":"isOrderRejected"}},{"kind":"Field","name":{"kind":"Name","value":"isInReview"}},{"kind":"Field","name":{"kind":"Name","value":"isDisputed"}},{"kind":"Field","name":{"kind":"Name","value":"refundTransaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"group"}}]}},{"kind":"Field","name":{"kind":"Name","value":"host"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"legacyId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isIncognito"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"oppositeAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isIncognito"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AccountHoverCardFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"toAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"permissions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"canRefund"}},{"kind":"Field","name":{"kind":"Name","value":"canDownloadInvoice"}},{"kind":"Field","name":{"kind":"Name","value":"canReject"}}]}}]}}]}}]} as unknown as DocumentNode; export const DashboardDeleteUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DashboardDeleteUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UpdateFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UpdateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Update"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"isChangelog"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"makePublicOn"}},{"kind":"Field","name":{"kind":"Name","value":"notificationAudience"}},{"kind":"Field","name":{"kind":"Name","value":"userCanSeeUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"fromAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reactions"}},{"kind":"Field","name":{"kind":"Name","value":"userReactions"}}]}}]} as unknown as DocumentNode; export const DashboardPublishUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DashboardPublishUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"notificationAudience"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateAudience"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"publishUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"notificationAudience"},"value":{"kind":"Variable","name":{"kind":"Name","value":"notificationAudience"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UpdateFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UpdateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Update"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"isChangelog"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"makePublicOn"}},{"kind":"Field","name":{"kind":"Name","value":"notificationAudience"}},{"kind":"Field","name":{"kind":"Name","value":"userCanSeeUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"fromAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reactions"}},{"kind":"Field","name":{"kind":"Name","value":"userReactions"}}]}}]} as unknown as DocumentNode; export const DashboardUnpublishUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DashboardUnpublishUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"unpublishUpdate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UpdateFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UpdateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Update"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"isPrivate"}},{"kind":"Field","name":{"kind":"Name","value":"isChangelog"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"publishedAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"makePublicOn"}},{"kind":"Field","name":{"kind":"Name","value":"notificationAudience"}},{"kind":"Field","name":{"kind":"Name","value":"userCanSeeUpdate"}},{"kind":"Field","name":{"kind":"Name","value":"summary"}},{"kind":"Field","name":{"kind":"Name","value":"tags"}},{"kind":"Field","name":{"kind":"Name","value":"fromAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"slug"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"imageUrl"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reactions"}},{"kind":"Field","name":{"kind":"Name","value":"userReactions"}}]}}]} as unknown as DocumentNode; diff --git a/lib/graphql/types/v2/schema.ts b/lib/graphql/types/v2/schema.ts new file mode 100644 index 00000000000..6763888758b --- /dev/null +++ b/lib/graphql/types/v2/schema.ts @@ -0,0 +1,12744 @@ +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 }; +/** 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; } + /** Values that can be edited in Account's settings */ + AccountSettingsKey: { input: any; output: any; } + /** A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + Date: { input: any; output: any; } + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: { input: any; output: any; } + /** A field whose value conforms to the standard internet email address format as specified in RFC822: https://www.w3.org/Protocols/rfc822/. */ + EmailAddress: { input: any; output: any; } + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: { input: any; output: any; } + /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSONObject: { input: any; output: any; } + /** A string that cannot be passed as an empty value */ + NonEmptyString: { input: any; output: any; } + /** A positive float value between 0 and 100 */ + StrictPercentage: { input: any; output: any; } + /** A field whose value conforms to the standard URL format as specified in RFC3986: https://www.ietf.org/rfc/rfc3986.txt. */ + URL: { input: any; output: any; } + /** The `Upload` scalar type represents a file upload. */ + Upload: { input: any; output: any; } +}; + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type Account = { + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Categories set by Open Collective to help moderation. */ + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...) */ + connectedAccounts?: Maybe>>; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** The public id identifying the account (ie: 5v08jk63-w4g9nbpz-j7qmyder-p7ozax5g) */ + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + /** + * The internal database identifier of the collective (ie: 580) + * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. + */ + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** Get pending member invitations for this account */ + memberInvitations?: Maybe>>; + memberOf?: Maybe; + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this account can use to pay for Orders */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this account can use to get paid */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + /** The type of the account (BOT/COLLECTIVE/EVENT/ORGANIZATION/INDIVIDUAL/VENDOR) */ + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + /** The time of last update */ + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountMemberInvitationsArgs = { + role?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** Account interface shared by all kind of accounts (Bot, Collective, Event, User, Organization) */ +export type AccountVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + +export enum AccountCacheType { + CLOUDFLARE = 'CLOUDFLARE', + CONTRIBUTORS = 'CONTRIBUTORS', + GRAPHQL_QUERIES = 'GRAPHQL_QUERIES' +} + +/** A collection of "Accounts" */ +export type AccountCollection = Collection & { + __typename?: 'AccountCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export enum AccountFreezeAction { + FREEZE = 'FREEZE', + UNFREEZE = 'UNFREEZE' +} + +/** Account orders filter (INCOMING or OUTGOING) */ +export enum AccountOrdersFilter { + INCOMING = 'INCOMING', + OUTGOING = 'OUTGOING' +} + +/** Fields for the user permissions on an account */ +export type AccountPermissions = { + __typename?: 'AccountPermissions'; + /** Whether the current user can add funds to this account */ + addFunds: Permission; + /** Whether the current user can download this account's payment receipts */ + canDownloadPaymentReceipts: Permission; + /** Whether the current user can contact this account */ + contact: Permission; + id: Scalars['String']['output']; +}; + +export type AccountReferenceInput = { + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** + * The internal id of the account (ie: 580) + * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. + */ + legacyId?: InputMaybe; + /** The slug identifying the account (ie: babel for https://opencollective.com/babel) */ + slug?: InputMaybe; +}; + +/** Stats for the Account */ +export type AccountStats = { + __typename?: 'AccountStats'; + /** @deprecated 2022-10-21: Use activeRecurringContributionsV2 while we migrate to better semantics. */ + activeRecurringContributions?: Maybe; + /** Returns some statistics about active recurring contributions, broken down by frequency */ + activeRecurringContributionsBreakdown: Array; + /** @deprecated 2024-03-04: Use activeRecurringContributionsBreakdown while we migrate to better semantics. */ + activeRecurringContributionsV2?: Maybe; + /** Amount pledged time series */ + amountPledgedTimeSeries: TimeSeriesAmount; + /** Amount of money in cents in the currency of the collective */ + balance: Amount; + /** Balance time series */ + balanceTimeSeries: TimeSeriesAmount; + /** + * Amount of money in cents in the currency of the collective currently available to spend + * @deprecated 2022-12-13: Use balance + withBlockedFunds instead + */ + balanceWithBlockedFunds: Amount; + /** + * The consolidated amount of all the events and projects combined. + * @deprecated 2022-09-02: Use balance + includeChildren instead + */ + consolidatedBalance: Amount; + /** Return amount stats for contributions (default, and only for now: one-time vs recurring) */ + contributionsAmount?: Maybe>>; + /** Return amount time series for contributions (default, and only for now: one-time vs recurring) */ + contributionsAmountTimeSeries: TimeSeriesAmount; + contributionsCount: Scalars['Int']['output']; + contributorsCount: Scalars['Int']['output']; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** History of the expense tags used by this collective. */ + expensesTagsTimeSeries: TimeSeriesAmount; + id?: Maybe; + /** Average amount spent per month based on the last 90 days */ + monthlySpending: Amount; + /** Total amount received */ + totalAmountReceived: Amount; + /** Total amount received time series */ + totalAmountReceivedTimeSeries: TimeSeriesAmount; + /** Total amount spent */ + totalAmountSpent: Amount; + /** + * Total net amount received + * @deprecated 2022-12-13: Use totalAmountReceived + net=true instead + */ + totalNetAmountReceived: Amount; + /** + * Total net amount received time series + * @deprecated 2022-12-13: Use totalAmountReceivedTimeSeries + net=true instead + */ + totalNetAmountReceivedTimeSeries: TimeSeriesAmount; + /** Total of paid expenses to the account, filter per expense type */ + totalPaidExpenses: Amount; + yearlyBudget: Amount; + /** @deprecated 2023-03-01: This field will be removed soon, please use totalMoneyManaged */ + yearlyBudgetManaged: Amount; +}; + + +/** Stats for the Account */ +export type AccountStatsActiveRecurringContributionsBreakdownArgs = { + frequency?: InputMaybe; + includeChildren?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsActiveRecurringContributionsV2Args = { + frequency?: ContributionFrequency; +}; + + +/** Stats for the Account */ +export type AccountStatsAmountPledgedTimeSeriesArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeExpectedFunds?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsBalanceArgs = { + currency?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + withBlockedFunds?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsBalanceTimeSeriesArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + net?: InputMaybe; + periodInMonths?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsContributionsAmountArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; +}; + + +/** Stats for the Account */ +export type AccountStatsContributionsAmountTimeSeriesArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsContributionsCountArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsContributorsCountArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsExpensesTagsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + limit?: Scalars['Int']['input']; + truncate?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsExpensesTagsTimeSeriesArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalAmountReceivedArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + net?: InputMaybe; + periodInMonths?: InputMaybe; + useCache?: Scalars['Boolean']['input']; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalAmountReceivedTimeSeriesArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + net?: InputMaybe; + periodInMonths?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalAmountSpentArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + includeGiftCards?: InputMaybe; + kind?: InputMaybe>>; + net?: InputMaybe; + periodInMonths?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalNetAmountReceivedArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + periodInMonths?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalNetAmountReceivedTimeSeriesArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeChildren?: InputMaybe; + kind?: InputMaybe>>; + periodInMonths?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** Stats for the Account */ +export type AccountStatsTotalPaidExpensesArgs = { + currency?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expenseType?: InputMaybe>>; +}; + +/** All account types */ +export enum AccountType { + BOT = 'BOT', + COLLECTIVE = 'COLLECTIVE', + EVENT = 'EVENT', + FUND = 'FUND', + INDIVIDUAL = 'INDIVIDUAL', + ORGANIZATION = 'ORGANIZATION', + PROJECT = 'PROJECT', + VENDOR = 'VENDOR' +} + +export type AccountUpdateInput = { + currency?: InputMaybe; + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id: Scalars['String']['input']; +}; + +/** An account that can receive financial contributions */ +export type AccountWithContributions = { + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; +}; + + +/** An account that can receive financial contributions */ +export type AccountWithContributionsActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** An account that can receive financial contributions */ +export type AccountWithContributionsContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** An account that can receive financial contributions */ +export type AccountWithContributionsTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** An account that can receive financial contributions */ +export type AccountWithContributionsTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + +/** An account that can be hosted by a Host */ +export type AccountWithHost = { + /** Date of approval by the Fiscal Host. */ + approvedAt?: Maybe; + /** Returns the Fiscal Host */ + host?: Maybe; + /** Returns agreements this account has with its host, or null if not enough permissions. */ + hostAgreements?: Maybe; + /** Returns the Fiscal Host application */ + hostApplication?: Maybe; + /** Fees percentage that the host takes for this collective */ + hostFeePercent?: Maybe; + /** Describe how the host charges the collective */ + hostFeesStructure?: Maybe; + /** Returns whether it's active: can accept financial contributions and pay expenses. */ + isActive: Scalars['Boolean']['output']; + /** Returns whether it's approved by the Fiscal Host */ + isApproved: Scalars['Boolean']['output']; + /** Fees percentage that the platform takes for this collective */ + platformFeePercent?: Maybe; + summary?: Maybe; + /** Date when the collective was last unfrozen by current Fiscal Host */ + unfrozenAt?: Maybe; +}; + + +/** An account that can be hosted by a Host */ +export type AccountWithHostHostAgreementsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** An account that can be hosted by a Host */ +export type AccountWithHostHostFeePercentArgs = { + paymentMethodService?: InputMaybe; + paymentMethodType?: InputMaybe; +}; + + +/** An account that can be hosted by a Host */ +export type AccountWithHostSummaryArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + +/** An account that has a parent account */ +export type AccountWithParent = { + /** The Account parenting this account */ + parent?: Maybe; +}; + +/** Fields for an accounting category */ +export type AccountingCategory = { + __typename?: 'AccountingCategory'; + /** The account this category belongs to */ + account: Host; + /** If the category is applicable to the Host or Hosted Collectives */ + appliesTo: AccountingCategoryAppliesTo; + /** The code of the accounting category */ + code: Scalars['String']['output']; + /** The time of creation of this accounting category */ + createdAt: Scalars['DateTime']['output']; + /** If meant for expenses, the types of expenses this category applies to */ + expensesTypes?: Maybe>>; + /** A friendly name for non-accountants (i.e. expense submitters and collective admins) */ + friendlyName?: Maybe; + /** Whether this category is only meant for the host admins */ + hostOnly: Scalars['Boolean']['output']; + id: Scalars['String']['output']; + /** Instructions for the expense submitters */ + instructions?: Maybe; + /** The kind of transactions this category applies to */ + kind?: Maybe; + /** The technical name of the accounting category */ + name: Scalars['String']['output']; +}; + +export enum AccountingCategoryAppliesTo { + HOST = 'HOST', + HOSTED_COLLECTIVES = 'HOSTED_COLLECTIVES' +} + +/** A collection of "Accounting Categories" */ +export type AccountingCategoryCollection = Collection & { + __typename?: 'AccountingCategoryCollection'; + limit?: Maybe; + /** The Accounting Categories */ + nodes: Array; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Input for creating or updating an account category */ +export type AccountingCategoryInput = { + /** If the category is applicable to the Host or Hosted Collectives */ + appliesTo?: AccountingCategoryAppliesTo; + /** The code of the accounting category */ + code?: InputMaybe; + /** If meant for expenses, the types of expenses this category applies to */ + expensesTypes?: InputMaybe>>; + /** A friendly name for non-accountants (i.e. expense submitters and collective admins) */ + friendlyName?: InputMaybe; + /** Whether this category is only meant for the host admins */ + hostOnly?: Scalars['Boolean']['input']; + /** The ID of the accounting category to edit */ + id?: InputMaybe; + instructions?: InputMaybe; + kind?: AccountingCategoryKind; + /** The technical name of the accounting category */ + name?: InputMaybe; +}; + +export enum AccountingCategoryKind { + ADDED_FUNDS = 'ADDED_FUNDS', + CONTRIBUTION = 'CONTRIBUTION', + EXPENSE = 'EXPENSE' +} + +/** Reference to an accounting category */ +export type AccountingCategoryReferenceInput = { + /** The ID of the accounting category */ + id: Scalars['NonEmptyString']['input']; +}; + +/** An activity describing something that happened on the platform */ +export type Activity = { + __typename?: 'Activity'; + /** The account targeted by this activity, if any */ + account?: Maybe; + /** The conversation related to this activity, if any */ + conversation?: Maybe; + /** The date on which the ConnectedAccount was created */ + createdAt: Scalars['DateTime']['output']; + /** Data attached to this activity (if any) */ + data: Scalars['JSON']['output']; + /** The expense related to this activity, if any */ + expense?: Maybe; + /** The account that authored by this activity, if any */ + fromAccount?: Maybe; + /** The host under which this activity happened, if any */ + host?: Maybe; + /** Unique identifier for this activity */ + id: Scalars['String']['output']; + /** The person who triggered the action, if any */ + individual?: Maybe; + /** Specifies whether this is a system generated activity */ + isSystem: Scalars['Boolean']['output']; + /** The order related to this activity, if any */ + order?: Maybe; + /** The transaction related to this activity, if any */ + transaction?: Maybe; + /** The type of the activity */ + type: ActivityType; + /** The update related to this activity, if any */ + update?: Maybe; +}; + +export enum ActivityAndClassesType { + ACCOUNTING_CATEGORIES_EDITED = 'ACCOUNTING_CATEGORIES_EDITED', + ACTIVATED_COLLECTIVE_AS_HOST = 'ACTIVATED_COLLECTIVE_AS_HOST', + ACTIVATED_COLLECTIVE_AS_INDEPENDENT = 'ACTIVATED_COLLECTIVE_AS_INDEPENDENT', + ACTIVITIES_UPDATES = 'ACTIVITIES_UPDATES', + ACTIVITY_ALL = 'ACTIVITY_ALL', + ADDED_FUNDS_EDITED = 'ADDED_FUNDS_EDITED', + ADDED_FUND_TO_ORG = 'ADDED_FUND_TO_ORG', + AGREEMENT_CREATED = 'AGREEMENT_CREATED', + AGREEMENT_DELETED = 'AGREEMENT_DELETED', + AGREEMENT_EDITED = 'AGREEMENT_EDITED', + BACKYOURSTACK_DISPATCH_CONFIRMED = 'BACKYOURSTACK_DISPATCH_CONFIRMED', + COLLECTIVE = 'COLLECTIVE', + COLLECTIVE_APPLY = 'COLLECTIVE_APPLY', + COLLECTIVE_APPROVED = 'COLLECTIVE_APPROVED', + COLLECTIVE_COMMENT_CREATED = 'COLLECTIVE_COMMENT_CREATED', + COLLECTIVE_CONTACT = 'COLLECTIVE_CONTACT', + COLLECTIVE_CONVERSATION_CREATED = 'COLLECTIVE_CONVERSATION_CREATED', + COLLECTIVE_CORE_MEMBER_ADDED = 'COLLECTIVE_CORE_MEMBER_ADDED', + COLLECTIVE_CORE_MEMBER_EDITED = 'COLLECTIVE_CORE_MEMBER_EDITED', + COLLECTIVE_CORE_MEMBER_INVITATION_DECLINED = 'COLLECTIVE_CORE_MEMBER_INVITATION_DECLINED', + COLLECTIVE_CORE_MEMBER_INVITED = 'COLLECTIVE_CORE_MEMBER_INVITED', + COLLECTIVE_CORE_MEMBER_REMOVED = 'COLLECTIVE_CORE_MEMBER_REMOVED', + COLLECTIVE_CREATED = 'COLLECTIVE_CREATED', + COLLECTIVE_CREATED_GITHUB = 'COLLECTIVE_CREATED_GITHUB', + COLLECTIVE_DELETED = 'COLLECTIVE_DELETED', + COLLECTIVE_EDITED = 'COLLECTIVE_EDITED', + COLLECTIVE_EXPENSE_APPROVED = 'COLLECTIVE_EXPENSE_APPROVED', + COLLECTIVE_EXPENSE_CREATED = 'COLLECTIVE_EXPENSE_CREATED', + COLLECTIVE_EXPENSE_DELETED = 'COLLECTIVE_EXPENSE_DELETED', + COLLECTIVE_EXPENSE_ERROR = 'COLLECTIVE_EXPENSE_ERROR', + COLLECTIVE_EXPENSE_INVITE_DECLINED = 'COLLECTIVE_EXPENSE_INVITE_DECLINED', + COLLECTIVE_EXPENSE_INVITE_DRAFTED = 'COLLECTIVE_EXPENSE_INVITE_DRAFTED', + COLLECTIVE_EXPENSE_MARKED_AS_INCOMPLETE = 'COLLECTIVE_EXPENSE_MARKED_AS_INCOMPLETE', + COLLECTIVE_EXPENSE_MARKED_AS_SPAM = 'COLLECTIVE_EXPENSE_MARKED_AS_SPAM', + COLLECTIVE_EXPENSE_MARKED_AS_UNPAID = 'COLLECTIVE_EXPENSE_MARKED_AS_UNPAID', + COLLECTIVE_EXPENSE_MISSING_RECEIPT = 'COLLECTIVE_EXPENSE_MISSING_RECEIPT', + COLLECTIVE_EXPENSE_MOVED = 'COLLECTIVE_EXPENSE_MOVED', + COLLECTIVE_EXPENSE_PAID = 'COLLECTIVE_EXPENSE_PAID', + COLLECTIVE_EXPENSE_PROCESSING = 'COLLECTIVE_EXPENSE_PROCESSING', + COLLECTIVE_EXPENSE_PUT_ON_HOLD = 'COLLECTIVE_EXPENSE_PUT_ON_HOLD', + COLLECTIVE_EXPENSE_RECURRING_DRAFTED = 'COLLECTIVE_EXPENSE_RECURRING_DRAFTED', + COLLECTIVE_EXPENSE_REJECTED = 'COLLECTIVE_EXPENSE_REJECTED', + COLLECTIVE_EXPENSE_RELEASED_FROM_HOLD = 'COLLECTIVE_EXPENSE_RELEASED_FROM_HOLD', + COLLECTIVE_EXPENSE_RE_APPROVAL_REQUESTED = 'COLLECTIVE_EXPENSE_RE_APPROVAL_REQUESTED', + COLLECTIVE_EXPENSE_SCHEDULED_FOR_PAYMENT = 'COLLECTIVE_EXPENSE_SCHEDULED_FOR_PAYMENT', + COLLECTIVE_EXPENSE_UNAPPROVED = 'COLLECTIVE_EXPENSE_UNAPPROVED', + COLLECTIVE_EXPENSE_UNSCHEDULED_FOR_PAYMENT = 'COLLECTIVE_EXPENSE_UNSCHEDULED_FOR_PAYMENT', + COLLECTIVE_EXPENSE_UPDATED = 'COLLECTIVE_EXPENSE_UPDATED', + COLLECTIVE_FROZEN = 'COLLECTIVE_FROZEN', + COLLECTIVE_MEMBER_CREATED = 'COLLECTIVE_MEMBER_CREATED', + COLLECTIVE_MEMBER_INVITED = 'COLLECTIVE_MEMBER_INVITED', + COLLECTIVE_MONTHLY_REPORT = 'COLLECTIVE_MONTHLY_REPORT', + COLLECTIVE_REJECTED = 'COLLECTIVE_REJECTED', + COLLECTIVE_TRANSACTION_CREATED = 'COLLECTIVE_TRANSACTION_CREATED', + COLLECTIVE_TRANSACTION_PAID = 'COLLECTIVE_TRANSACTION_PAID', + COLLECTIVE_UNFROZEN = 'COLLECTIVE_UNFROZEN', + COLLECTIVE_UNHOSTED = 'COLLECTIVE_UNHOSTED', + COLLECTIVE_UPDATE_CREATED = 'COLLECTIVE_UPDATE_CREATED', + COLLECTIVE_UPDATE_PUBLISHED = 'COLLECTIVE_UPDATE_PUBLISHED', + COLLECTIVE_USER_ADDED = 'COLLECTIVE_USER_ADDED', + COLLECTIVE_VIRTUAL_CARD_ADDED = 'COLLECTIVE_VIRTUAL_CARD_ADDED', + COLLECTIVE_VIRTUAL_CARD_ASSIGNED = 'COLLECTIVE_VIRTUAL_CARD_ASSIGNED', + COLLECTIVE_VIRTUAL_CARD_CREATED = 'COLLECTIVE_VIRTUAL_CARD_CREATED', + COLLECTIVE_VIRTUAL_CARD_DELETED = 'COLLECTIVE_VIRTUAL_CARD_DELETED', + COLLECTIVE_VIRTUAL_CARD_MISSING_RECEIPTS = 'COLLECTIVE_VIRTUAL_CARD_MISSING_RECEIPTS', + COLLECTIVE_VIRTUAL_CARD_REQUEST_APPROVED = 'COLLECTIVE_VIRTUAL_CARD_REQUEST_APPROVED', + COLLECTIVE_VIRTUAL_CARD_REQUEST_REJECTED = 'COLLECTIVE_VIRTUAL_CARD_REQUEST_REJECTED', + COLLECTIVE_VIRTUAL_CARD_RESUMED = 'COLLECTIVE_VIRTUAL_CARD_RESUMED', + COLLECTIVE_VIRTUAL_CARD_SUSPENDED = 'COLLECTIVE_VIRTUAL_CARD_SUSPENDED', + COLLECTIVE_VIRTUAL_CARD_SUSPENDED_DUE_TO_INACTIVITY = 'COLLECTIVE_VIRTUAL_CARD_SUSPENDED_DUE_TO_INACTIVITY', + CONNECTED_ACCOUNT_CREATED = 'CONNECTED_ACCOUNT_CREATED', + CONNECTED_ACCOUNT_ERROR = 'CONNECTED_ACCOUNT_ERROR', + CONTRIBUTIONS = 'CONTRIBUTIONS', + CONTRIBUTION_REJECTED = 'CONTRIBUTION_REJECTED', + CONVERSATION_COMMENT_CREATED = 'CONVERSATION_COMMENT_CREATED', + DEACTIVATED_COLLECTIVE_AS_HOST = 'DEACTIVATED_COLLECTIVE_AS_HOST', + EXPENSES = 'EXPENSES', + EXPENSE_COMMENT_CREATED = 'EXPENSE_COMMENT_CREATED', + FUND_EVENTS = 'FUND_EVENTS', + HOST_APPLICATION_COMMENT_CREATED = 'HOST_APPLICATION_COMMENT_CREATED', + HOST_APPLICATION_CONTACT = 'HOST_APPLICATION_CONTACT', + OAUTH_APPLICATION_AUTHORIZED = 'OAUTH_APPLICATION_AUTHORIZED', + ORDERS_SUSPICIOUS = 'ORDERS_SUSPICIOUS', + ORDER_CANCELED_ARCHIVED_COLLECTIVE = 'ORDER_CANCELED_ARCHIVED_COLLECTIVE', + ORDER_COMMENT_CREATED = 'ORDER_COMMENT_CREATED', + ORDER_DISPUTE_CLOSED = 'ORDER_DISPUTE_CLOSED', + ORDER_DISPUTE_CREATED = 'ORDER_DISPUTE_CREATED', + ORDER_PAYMENT_FAILED = 'ORDER_PAYMENT_FAILED', + ORDER_PENDING = 'ORDER_PENDING', + ORDER_PENDING_CONTRIBUTION_NEW = 'ORDER_PENDING_CONTRIBUTION_NEW', + ORDER_PENDING_CONTRIBUTION_REMINDER = 'ORDER_PENDING_CONTRIBUTION_REMINDER', + ORDER_PENDING_CREATED = 'ORDER_PENDING_CREATED', + ORDER_PENDING_CRYPTO = 'ORDER_PENDING_CRYPTO', + ORDER_PENDING_EXPIRED = 'ORDER_PENDING_EXPIRED', + ORDER_PENDING_FOLLOWUP = 'ORDER_PENDING_FOLLOWUP', + ORDER_PENDING_RECEIVED = 'ORDER_PENDING_RECEIVED', + ORDER_PROCESSING = 'ORDER_PROCESSING', + ORDER_REVIEW_CLOSED = 'ORDER_REVIEW_CLOSED', + ORDER_REVIEW_OPENED = 'ORDER_REVIEW_OPENED', + ORDER_THANKYOU = 'ORDER_THANKYOU', + ORDER_UPDATED = 'ORDER_UPDATED', + ORGANIZATION_COLLECTIVE_CREATED = 'ORGANIZATION_COLLECTIVE_CREATED', + PAYMENT_CREDITCARD_CONFIRMATION = 'PAYMENT_CREDITCARD_CONFIRMATION', + PAYMENT_CREDITCARD_EXPIRING = 'PAYMENT_CREDITCARD_EXPIRING', + PAYMENT_FAILED = 'PAYMENT_FAILED', + REPORTS = 'REPORTS', + SUBSCRIPTION_ACTIVATED = 'SUBSCRIPTION_ACTIVATED', + SUBSCRIPTION_CANCELED = 'SUBSCRIPTION_CANCELED', + SUBSCRIPTION_CONFIRMED = 'SUBSCRIPTION_CONFIRMED', + SUBSCRIPTION_PAUSED = 'SUBSCRIPTION_PAUSED', + SUBSCRIPTION_READY_TO_BE_RESUMED = 'SUBSCRIPTION_READY_TO_BE_RESUMED', + SUBSCRIPTION_RESUMED = 'SUBSCRIPTION_RESUMED', + TAXFORM_INVALIDATED = 'TAXFORM_INVALIDATED', + TAXFORM_RECEIVED = 'TAXFORM_RECEIVED', + TAXFORM_REQUEST = 'TAXFORM_REQUEST', + TICKET_CONFIRMED = 'TICKET_CONFIRMED', + TRANSACTIONS_IMPORT_CREATED = 'TRANSACTIONS_IMPORT_CREATED', + TWO_FACTOR_CODE_REQUESTED = 'TWO_FACTOR_CODE_REQUESTED', + TWO_FACTOR_METHOD_ADDED = 'TWO_FACTOR_METHOD_ADDED', + TWO_FACTOR_METHOD_DELETED = 'TWO_FACTOR_METHOD_DELETED', + UPDATE_COMMENT_CREATED = 'UPDATE_COMMENT_CREATED', + USER_CARD_CLAIMED = 'USER_CARD_CLAIMED', + USER_CARD_INVITED = 'USER_CARD_INVITED', + USER_CHANGE_EMAIL = 'USER_CHANGE_EMAIL', + USER_CREATED = 'USER_CREATED', + USER_NEW_TOKEN = 'USER_NEW_TOKEN', + USER_PASSWORD_SET = 'USER_PASSWORD_SET', + USER_PAYMENT_METHOD_CREATED = 'USER_PAYMENT_METHOD_CREATED', + USER_RESET_PASSWORD = 'USER_RESET_PASSWORD', + USER_SIGNIN = 'USER_SIGNIN', + VENDOR_CREATED = 'VENDOR_CREATED', + VENDOR_DELETED = 'VENDOR_DELETED', + VENDOR_EDITED = 'VENDOR_EDITED', + VIRTUAL_CARDS = 'VIRTUAL_CARDS', + VIRTUAL_CARD_CHARGE_DECLINED = 'VIRTUAL_CARD_CHARGE_DECLINED', + VIRTUAL_CARD_PURCHASE = 'VIRTUAL_CARD_PURCHASE', + VIRTUAL_CARD_REQUESTED = 'VIRTUAL_CARD_REQUESTED', + WEBHOOK_PAYPAL_RECEIVED = 'WEBHOOK_PAYPAL_RECEIVED', + WEBHOOK_STRIPE_RECEIVED = 'WEBHOOK_STRIPE_RECEIVED' +} + +/** All supported Activity channels we can broadcast to */ +export enum ActivityChannel { + email = 'email', + slack = 'slack', + twitter = 'twitter', + webhook = 'webhook' +} + +export enum ActivityClassType { + ACTIVITIES_UPDATES = 'ACTIVITIES_UPDATES', + COLLECTIVE = 'COLLECTIVE', + CONTRIBUTIONS = 'CONTRIBUTIONS', + EXPENSES = 'EXPENSES', + FUND_EVENTS = 'FUND_EVENTS', + REPORTS = 'REPORTS', + VIRTUAL_CARDS = 'VIRTUAL_CARDS' +} + +/** A collection of "Activities" */ +export type ActivityCollection = Collection & { + __typename?: 'ActivityCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type ActivitySubscription = { + __typename?: 'ActivitySubscription'; + /** The account which this notification setting is applied to */ + account?: Maybe; + /** Wheter this notification setting is active or not */ + active: Scalars['Boolean']['output']; + /** The channel this setting is notifying through */ + channel: ActivityChannel; + createdAt: Scalars['DateTime']['output']; + /** Unique identifier for this notification setting */ + id: Scalars['String']['output']; + /** The user who defined the setting */ + individual: Individual; + /** The type of Activity this setting is notifying about */ + type: Scalars['String']['output']; + /** If channel supports, this is the webhook URL we submit the notification to */ + webhookUrl?: Maybe; +}; + +export enum ActivityType { + ACCOUNTING_CATEGORIES_EDITED = 'ACCOUNTING_CATEGORIES_EDITED', + ACTIVATED_COLLECTIVE_AS_HOST = 'ACTIVATED_COLLECTIVE_AS_HOST', + ACTIVATED_COLLECTIVE_AS_INDEPENDENT = 'ACTIVATED_COLLECTIVE_AS_INDEPENDENT', + ACTIVITY_ALL = 'ACTIVITY_ALL', + ADDED_FUNDS_EDITED = 'ADDED_FUNDS_EDITED', + ADDED_FUND_TO_ORG = 'ADDED_FUND_TO_ORG', + AGREEMENT_CREATED = 'AGREEMENT_CREATED', + AGREEMENT_DELETED = 'AGREEMENT_DELETED', + AGREEMENT_EDITED = 'AGREEMENT_EDITED', + BACKYOURSTACK_DISPATCH_CONFIRMED = 'BACKYOURSTACK_DISPATCH_CONFIRMED', + COLLECTIVE_APPLY = 'COLLECTIVE_APPLY', + COLLECTIVE_APPROVED = 'COLLECTIVE_APPROVED', + COLLECTIVE_COMMENT_CREATED = 'COLLECTIVE_COMMENT_CREATED', + COLLECTIVE_CONTACT = 'COLLECTIVE_CONTACT', + COLLECTIVE_CONVERSATION_CREATED = 'COLLECTIVE_CONVERSATION_CREATED', + COLLECTIVE_CORE_MEMBER_ADDED = 'COLLECTIVE_CORE_MEMBER_ADDED', + COLLECTIVE_CORE_MEMBER_EDITED = 'COLLECTIVE_CORE_MEMBER_EDITED', + COLLECTIVE_CORE_MEMBER_INVITATION_DECLINED = 'COLLECTIVE_CORE_MEMBER_INVITATION_DECLINED', + COLLECTIVE_CORE_MEMBER_INVITED = 'COLLECTIVE_CORE_MEMBER_INVITED', + COLLECTIVE_CORE_MEMBER_REMOVED = 'COLLECTIVE_CORE_MEMBER_REMOVED', + COLLECTIVE_CREATED = 'COLLECTIVE_CREATED', + COLLECTIVE_CREATED_GITHUB = 'COLLECTIVE_CREATED_GITHUB', + COLLECTIVE_DELETED = 'COLLECTIVE_DELETED', + COLLECTIVE_EDITED = 'COLLECTIVE_EDITED', + COLLECTIVE_EXPENSE_APPROVED = 'COLLECTIVE_EXPENSE_APPROVED', + COLLECTIVE_EXPENSE_CREATED = 'COLLECTIVE_EXPENSE_CREATED', + COLLECTIVE_EXPENSE_DELETED = 'COLLECTIVE_EXPENSE_DELETED', + COLLECTIVE_EXPENSE_ERROR = 'COLLECTIVE_EXPENSE_ERROR', + COLLECTIVE_EXPENSE_INVITE_DECLINED = 'COLLECTIVE_EXPENSE_INVITE_DECLINED', + COLLECTIVE_EXPENSE_INVITE_DRAFTED = 'COLLECTIVE_EXPENSE_INVITE_DRAFTED', + COLLECTIVE_EXPENSE_MARKED_AS_INCOMPLETE = 'COLLECTIVE_EXPENSE_MARKED_AS_INCOMPLETE', + COLLECTIVE_EXPENSE_MARKED_AS_SPAM = 'COLLECTIVE_EXPENSE_MARKED_AS_SPAM', + COLLECTIVE_EXPENSE_MARKED_AS_UNPAID = 'COLLECTIVE_EXPENSE_MARKED_AS_UNPAID', + COLLECTIVE_EXPENSE_MISSING_RECEIPT = 'COLLECTIVE_EXPENSE_MISSING_RECEIPT', + COLLECTIVE_EXPENSE_MOVED = 'COLLECTIVE_EXPENSE_MOVED', + COLLECTIVE_EXPENSE_PAID = 'COLLECTIVE_EXPENSE_PAID', + COLLECTIVE_EXPENSE_PROCESSING = 'COLLECTIVE_EXPENSE_PROCESSING', + COLLECTIVE_EXPENSE_PUT_ON_HOLD = 'COLLECTIVE_EXPENSE_PUT_ON_HOLD', + COLLECTIVE_EXPENSE_RECURRING_DRAFTED = 'COLLECTIVE_EXPENSE_RECURRING_DRAFTED', + COLLECTIVE_EXPENSE_REJECTED = 'COLLECTIVE_EXPENSE_REJECTED', + COLLECTIVE_EXPENSE_RELEASED_FROM_HOLD = 'COLLECTIVE_EXPENSE_RELEASED_FROM_HOLD', + COLLECTIVE_EXPENSE_RE_APPROVAL_REQUESTED = 'COLLECTIVE_EXPENSE_RE_APPROVAL_REQUESTED', + COLLECTIVE_EXPENSE_SCHEDULED_FOR_PAYMENT = 'COLLECTIVE_EXPENSE_SCHEDULED_FOR_PAYMENT', + COLLECTIVE_EXPENSE_UNAPPROVED = 'COLLECTIVE_EXPENSE_UNAPPROVED', + COLLECTIVE_EXPENSE_UNSCHEDULED_FOR_PAYMENT = 'COLLECTIVE_EXPENSE_UNSCHEDULED_FOR_PAYMENT', + COLLECTIVE_EXPENSE_UPDATED = 'COLLECTIVE_EXPENSE_UPDATED', + COLLECTIVE_FROZEN = 'COLLECTIVE_FROZEN', + COLLECTIVE_MEMBER_CREATED = 'COLLECTIVE_MEMBER_CREATED', + COLLECTIVE_MEMBER_INVITED = 'COLLECTIVE_MEMBER_INVITED', + COLLECTIVE_MONTHLY_REPORT = 'COLLECTIVE_MONTHLY_REPORT', + COLLECTIVE_REJECTED = 'COLLECTIVE_REJECTED', + COLLECTIVE_TRANSACTION_CREATED = 'COLLECTIVE_TRANSACTION_CREATED', + COLLECTIVE_TRANSACTION_PAID = 'COLLECTIVE_TRANSACTION_PAID', + COLLECTIVE_UNFROZEN = 'COLLECTIVE_UNFROZEN', + COLLECTIVE_UNHOSTED = 'COLLECTIVE_UNHOSTED', + COLLECTIVE_UPDATE_CREATED = 'COLLECTIVE_UPDATE_CREATED', + COLLECTIVE_UPDATE_PUBLISHED = 'COLLECTIVE_UPDATE_PUBLISHED', + COLLECTIVE_USER_ADDED = 'COLLECTIVE_USER_ADDED', + COLLECTIVE_VIRTUAL_CARD_ADDED = 'COLLECTIVE_VIRTUAL_CARD_ADDED', + COLLECTIVE_VIRTUAL_CARD_ASSIGNED = 'COLLECTIVE_VIRTUAL_CARD_ASSIGNED', + COLLECTIVE_VIRTUAL_CARD_CREATED = 'COLLECTIVE_VIRTUAL_CARD_CREATED', + COLLECTIVE_VIRTUAL_CARD_DELETED = 'COLLECTIVE_VIRTUAL_CARD_DELETED', + COLLECTIVE_VIRTUAL_CARD_MISSING_RECEIPTS = 'COLLECTIVE_VIRTUAL_CARD_MISSING_RECEIPTS', + COLLECTIVE_VIRTUAL_CARD_REQUEST_APPROVED = 'COLLECTIVE_VIRTUAL_CARD_REQUEST_APPROVED', + COLLECTIVE_VIRTUAL_CARD_REQUEST_REJECTED = 'COLLECTIVE_VIRTUAL_CARD_REQUEST_REJECTED', + COLLECTIVE_VIRTUAL_CARD_RESUMED = 'COLLECTIVE_VIRTUAL_CARD_RESUMED', + COLLECTIVE_VIRTUAL_CARD_SUSPENDED = 'COLLECTIVE_VIRTUAL_CARD_SUSPENDED', + COLLECTIVE_VIRTUAL_CARD_SUSPENDED_DUE_TO_INACTIVITY = 'COLLECTIVE_VIRTUAL_CARD_SUSPENDED_DUE_TO_INACTIVITY', + CONNECTED_ACCOUNT_CREATED = 'CONNECTED_ACCOUNT_CREATED', + CONNECTED_ACCOUNT_ERROR = 'CONNECTED_ACCOUNT_ERROR', + CONTRIBUTION_REJECTED = 'CONTRIBUTION_REJECTED', + CONVERSATION_COMMENT_CREATED = 'CONVERSATION_COMMENT_CREATED', + DEACTIVATED_COLLECTIVE_AS_HOST = 'DEACTIVATED_COLLECTIVE_AS_HOST', + EXPENSE_COMMENT_CREATED = 'EXPENSE_COMMENT_CREATED', + HOST_APPLICATION_COMMENT_CREATED = 'HOST_APPLICATION_COMMENT_CREATED', + HOST_APPLICATION_CONTACT = 'HOST_APPLICATION_CONTACT', + OAUTH_APPLICATION_AUTHORIZED = 'OAUTH_APPLICATION_AUTHORIZED', + ORDERS_SUSPICIOUS = 'ORDERS_SUSPICIOUS', + ORDER_CANCELED_ARCHIVED_COLLECTIVE = 'ORDER_CANCELED_ARCHIVED_COLLECTIVE', + ORDER_COMMENT_CREATED = 'ORDER_COMMENT_CREATED', + ORDER_DISPUTE_CLOSED = 'ORDER_DISPUTE_CLOSED', + ORDER_DISPUTE_CREATED = 'ORDER_DISPUTE_CREATED', + ORDER_PAYMENT_FAILED = 'ORDER_PAYMENT_FAILED', + ORDER_PENDING = 'ORDER_PENDING', + ORDER_PENDING_CONTRIBUTION_NEW = 'ORDER_PENDING_CONTRIBUTION_NEW', + ORDER_PENDING_CONTRIBUTION_REMINDER = 'ORDER_PENDING_CONTRIBUTION_REMINDER', + ORDER_PENDING_CREATED = 'ORDER_PENDING_CREATED', + ORDER_PENDING_CRYPTO = 'ORDER_PENDING_CRYPTO', + ORDER_PENDING_EXPIRED = 'ORDER_PENDING_EXPIRED', + ORDER_PENDING_FOLLOWUP = 'ORDER_PENDING_FOLLOWUP', + ORDER_PENDING_RECEIVED = 'ORDER_PENDING_RECEIVED', + ORDER_PROCESSING = 'ORDER_PROCESSING', + ORDER_REVIEW_CLOSED = 'ORDER_REVIEW_CLOSED', + ORDER_REVIEW_OPENED = 'ORDER_REVIEW_OPENED', + ORDER_THANKYOU = 'ORDER_THANKYOU', + ORDER_UPDATED = 'ORDER_UPDATED', + ORGANIZATION_COLLECTIVE_CREATED = 'ORGANIZATION_COLLECTIVE_CREATED', + PAYMENT_CREDITCARD_CONFIRMATION = 'PAYMENT_CREDITCARD_CONFIRMATION', + PAYMENT_CREDITCARD_EXPIRING = 'PAYMENT_CREDITCARD_EXPIRING', + PAYMENT_FAILED = 'PAYMENT_FAILED', + SUBSCRIPTION_ACTIVATED = 'SUBSCRIPTION_ACTIVATED', + SUBSCRIPTION_CANCELED = 'SUBSCRIPTION_CANCELED', + SUBSCRIPTION_CONFIRMED = 'SUBSCRIPTION_CONFIRMED', + SUBSCRIPTION_PAUSED = 'SUBSCRIPTION_PAUSED', + SUBSCRIPTION_READY_TO_BE_RESUMED = 'SUBSCRIPTION_READY_TO_BE_RESUMED', + SUBSCRIPTION_RESUMED = 'SUBSCRIPTION_RESUMED', + TAXFORM_INVALIDATED = 'TAXFORM_INVALIDATED', + TAXFORM_RECEIVED = 'TAXFORM_RECEIVED', + TAXFORM_REQUEST = 'TAXFORM_REQUEST', + TICKET_CONFIRMED = 'TICKET_CONFIRMED', + TRANSACTIONS_IMPORT_CREATED = 'TRANSACTIONS_IMPORT_CREATED', + TWO_FACTOR_CODE_REQUESTED = 'TWO_FACTOR_CODE_REQUESTED', + TWO_FACTOR_METHOD_ADDED = 'TWO_FACTOR_METHOD_ADDED', + TWO_FACTOR_METHOD_DELETED = 'TWO_FACTOR_METHOD_DELETED', + UPDATE_COMMENT_CREATED = 'UPDATE_COMMENT_CREATED', + USER_CARD_CLAIMED = 'USER_CARD_CLAIMED', + USER_CARD_INVITED = 'USER_CARD_INVITED', + USER_CHANGE_EMAIL = 'USER_CHANGE_EMAIL', + USER_CREATED = 'USER_CREATED', + USER_NEW_TOKEN = 'USER_NEW_TOKEN', + USER_PASSWORD_SET = 'USER_PASSWORD_SET', + USER_PAYMENT_METHOD_CREATED = 'USER_PAYMENT_METHOD_CREATED', + USER_RESET_PASSWORD = 'USER_RESET_PASSWORD', + USER_SIGNIN = 'USER_SIGNIN', + VENDOR_CREATED = 'VENDOR_CREATED', + VENDOR_DELETED = 'VENDOR_DELETED', + VENDOR_EDITED = 'VENDOR_EDITED', + VIRTUAL_CARD_CHARGE_DECLINED = 'VIRTUAL_CARD_CHARGE_DECLINED', + VIRTUAL_CARD_PURCHASE = 'VIRTUAL_CARD_PURCHASE', + VIRTUAL_CARD_REQUESTED = 'VIRTUAL_CARD_REQUESTED', + WEBHOOK_PAYPAL_RECEIVED = 'WEBHOOK_PAYPAL_RECEIVED', + WEBHOOK_STRIPE_RECEIVED = 'WEBHOOK_STRIPE_RECEIVED' +} + +/** Response for the addTwoFactorAuthTokenToIndividual mutation */ +export type AddTwoFactorAuthTokenToIndividualResponse = { + __typename?: 'AddTwoFactorAuthTokenToIndividualResponse'; + /** The Individual that the 2FA has been enabled for */ + account: Individual; + /** The recovery codes for the Individual to write down */ + recoveryCodes?: Maybe>>; +}; + +/** An agreement */ +export type Agreement = { + __typename?: 'Agreement'; + account: Account; + attachment?: Maybe; + /** The time of creation of this agreement */ + createdAt: Scalars['DateTime']['output']; + createdBy?: Maybe; + expiresAt?: Maybe; + host: Host; + id?: Maybe; + /** Additional notes about the agreement for the host admins */ + notes?: Maybe; + title: Scalars['String']['output']; +}; + +/** A collection of "Agreement" */ +export type AgreementCollection = Collection & { + __typename?: 'AgreementCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type AgreementReferenceInput = { + /** The public id identifying the agreement (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the agreement (ie: 580) */ + legacyId?: InputMaybe; +}; + +/** A financial amount. */ +export type Amount = { + __typename?: 'Amount'; + currency?: Maybe; + /** If the amount was generated from a currency conversion, this field contains details about the conversion */ + exchangeRate?: Maybe; + value?: Maybe; + valueInCents?: Maybe; +}; + +/** Input type for an amount with the value and currency */ +export type AmountInput = { + /** The currency string */ + currency?: InputMaybe; + /** If the amount was generated from a currency conversion, this field can be used to provide details about the conversion */ + exchangeRate?: InputMaybe; + /** The value in plain */ + value?: InputMaybe; + /** The value in cents */ + valueInCents?: InputMaybe; +}; + +/** Input type for an amount range with the value and currency */ +export type AmountRangeInput = { + /** The minimum amount (inclusive) */ + gte?: InputMaybe; + /** The maximum amount (inclusive) */ + lte?: InputMaybe; +}; + +/** Statistics with amounts */ +export type AmountStats = { + __typename?: 'AmountStats'; + /** Total amount for this label */ + amount: Amount; + /** Number of entries for this label */ + count?: Maybe; + /** Name/Label for the amount */ + label: Scalars['String']['output']; +}; + +/** An OAuth application. */ +export type Application = { + __typename?: 'Application'; + account: Account; + /** @deprecated 2022-06-16: This Application object will only be used for OAuth tokens. Use PersonalToken for user tokens */ + apiKey?: Maybe; + clientId?: Maybe; + clientSecret?: Maybe; + description?: Maybe; + id: Scalars['String']['output']; + legacyId: Scalars['Int']['output']; + name?: Maybe; + oAuthAuthorization?: Maybe; + /** Whether this application is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA: Scalars['Boolean']['output']; + redirectUri?: Maybe; + /** @deprecated 2022-06-16: This Application object will only be used for OAuth tokens. Use PersonalToken for user tokens */ + type?: Maybe; +}; + +/** Input type for Application */ +export type ApplicationCreateInput = { + /** The account to use as the owner of the application. Defaults to currently logged in user. */ + account?: InputMaybe; + description?: InputMaybe; + name?: InputMaybe; + redirectUri?: InputMaybe; + type?: ApplicationType; +}; + +export type ApplicationReferenceInput = { + /** The clientId for the application. */ + clientId?: InputMaybe; + /** The public id identifying the application (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the application (ie: 4242) */ + legacyId?: InputMaybe; +}; + +/** All application types */ +export enum ApplicationType { + API_KEY = 'API_KEY', + OAUTH = 'OAUTH' +} + +/** Input type for Application */ +export type ApplicationUpdateInput = { + /** The clientId for the application. */ + clientId?: InputMaybe; + description?: InputMaybe; + /** The public id identifying the application (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the application (ie: 4242) */ + legacyId?: InputMaybe; + name?: InputMaybe; + redirectUri?: InputMaybe; +}; + +/** The period over which the average is calculated */ +export enum AveragePeriod { + MONTH = 'MONTH', + YEAR = 'YEAR' +} + +export type BanAccountResponse = { + __typename?: 'BanAccountResponse'; + /** The accounts impacted by the mutation */ + accounts: Array; + /** Whether the accounts can be banned */ + isAllowed: Scalars['Boolean']['output']; + /** A summary of the changes */ + message?: Maybe; +}; + +/** This represents a Bot account */ +export type Bot = Account & { + __typename?: 'Bot'; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents a Bot account */ +export type BotActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Bot account */ +export type BotDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Bot account */ +export type BotExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Bot account */ +export type BotFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Bot account */ +export type BotOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents a Bot account */ +export type BotUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents a Bot account */ +export type BotVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Bot account */ +export type BotVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents a Bot account */ +export type BotWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type Collective_Minimum_Admins = { + __typename?: 'COLLECTIVE_MINIMUM_ADMINS'; + applies?: Maybe; + freeze?: Maybe; + numberOfAdmins?: Maybe; +}; + +/** Captcha related information */ +export type CaptchaInput = { + /** Catpcha provider */ + provider: CaptchaProvider; + /** Captcha validation token */ + token: Scalars['String']['input']; +}; + +/** Implemented Captcha Providers */ +export enum CaptchaProvider { + HCAPTCHA = 'HCAPTCHA', + RECAPTCHA = 'RECAPTCHA', + TURNSTILE = 'TURNSTILE' +} + +/** Input to order results chronologically */ +export type ChronologicalOrderInput = { + /** Ordering direction. */ + direction?: OrderDirection; + /** Field to chronologically order by. */ + field?: DateTimeField; +}; + +/** Collection interface shared by all collection types */ +export type Collection = { + limit?: Maybe; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** This represents a Collective account */ +export type Collective = Account & AccountWithContributions & AccountWithHost & { + __typename?: 'Collective'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + /** Date of approval by the Fiscal Host. */ + approvedAt?: Maybe; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Returns the Fiscal Host */ + host?: Maybe; + /** Returns agreements this account has with its host, or null if not enough permissions. */ + hostAgreements?: Maybe; + /** Returns the Fiscal Host application */ + hostApplication?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** Fees percentage that the host takes for this collective */ + hostFeePercent?: Maybe; + /** Describe how the host charges the collective */ + hostFeesStructure?: Maybe; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether it's active: can accept financial contributions and pay expenses. */ + isActive: Scalars['Boolean']['output']; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether it's approved by the Fiscal Host */ + isApproved: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + summary?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date when the collective was last unfrozen by current Fiscal Host */ + unfrozenAt?: Maybe; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents a Collective account */ +export type CollectiveActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveHostAgreementsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveHostFeePercentArgs = { + paymentMethodService?: InputMaybe; + paymentMethodType?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectivePaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveSummaryArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents a Collective account */ +export type CollectiveUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents a Collective account */ +export type CollectiveVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Collective account */ +export type CollectiveVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents a Collective account */ +export type CollectiveWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type CollectiveCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: InputMaybe; + /** The profile avatar image */ + image?: InputMaybe; + location?: InputMaybe; + name: Scalars['String']['input']; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: InputMaybe; + settings?: InputMaybe; + slug: Scalars['String']['input']; + tags?: InputMaybe>>; +}; + +export enum CollectiveFeatureStatus { + /** The feature is enabled and is actively used */ + ACTIVE = 'ACTIVE', + /** The feature is enabled, but there is no data for it */ + AVAILABLE = 'AVAILABLE', + /** The feature is disabled, but can be enabled by an admin */ + DISABLED = 'DISABLED', + /** The feature is disabled and cannot be activated for this account */ + UNSUPPORTED = 'UNSUPPORTED' +} + +/** Describes the features enabled and available for this account */ +export type CollectiveFeatures = { + __typename?: 'CollectiveFeatures'; + ABOUT?: Maybe; + ALIPAY?: Maybe; + ALL?: Maybe; + COLLECTIVE_GOALS?: Maybe; + CONNECTED_ACCOUNTS?: Maybe; + CONTACT_COLLECTIVE?: Maybe; + CONTACT_FORM?: Maybe; + CONVERSATIONS?: Maybe; + CREATE_COLLECTIVE?: Maybe; + EMAIL_NOTIFICATIONS_PANEL?: Maybe; + EMIT_GIFT_CARDS?: Maybe; + EVENTS?: Maybe; + HOST_DASHBOARD?: Maybe; + MULTI_CURRENCY_EXPENSES?: Maybe; + ORDER?: Maybe; + PAYPAL_DONATIONS?: Maybe; + PAYPAL_PAYOUTS?: Maybe; + PROJECTS?: Maybe; + RECEIVE_EXPENSES?: Maybe; + RECEIVE_FINANCIAL_CONTRIBUTIONS?: Maybe; + RECEIVE_HOST_APPLICATIONS?: Maybe; + RECURRING_CONTRIBUTIONS?: Maybe; + REQUEST_VIRTUAL_CARDS?: Maybe; + STRIPE_PAYMENT_INTENT?: Maybe; + TEAM?: Maybe; + TOP_FINANCIAL_CONTRIBUTORS?: Maybe; + TRANSACTIONS?: Maybe; + TRANSFERWISE?: Maybe; + UPDATES?: Maybe; + USE_EXPENSES?: Maybe; + USE_PAYMENT_METHODS?: Maybe; + VIRTUAL_CARDS?: Maybe; + /** The id of the account */ + id: Scalars['String']['output']; +}; + +/** This represents an Comment */ +export type Comment = { + __typename?: 'Comment'; + account?: Maybe; + createdAt?: Maybe; + fromAccount?: Maybe; + html?: Maybe; + id?: Maybe; + /** Returns a map of reactions counts for this comment */ + reactions?: Maybe; + /** The type of this comment */ + type: CommentType; + /** Returns the list of reactions added to this comment by logged in user */ + userReactions?: Maybe>>; +}; + +/** A collection of "Comments" */ +export type CommentCollection = Collection & { + __typename?: 'CommentCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Input to create a comment. You can only specify one entity type: expense, conversation, update or host application */ +export type CommentCreateInput = { + /** @deprecated 2022-08-26: Please use "conversation" */ + ConversationId?: InputMaybe; + conversation?: InputMaybe; + /** If your comment is linked to an expense, set it here */ + expense?: InputMaybe; + /** If your comment is linked to an host application, set it here */ + hostApplication?: InputMaybe; + html?: InputMaybe; + /** If your comment is linked to an order, set it here */ + order?: InputMaybe; + /** The type of the comment */ + type?: InputMaybe; + update?: InputMaybe; +}; + +export type CommentReferenceInput = { + /** The public id identifying the comment */ + id?: InputMaybe; +}; + +/** All supported comment contexts */ +export enum CommentType { + /** Default regular comment */ + COMMENT = 'COMMENT', + /** Comment is visible only to host admins */ + PRIVATE_NOTE = 'PRIVATE_NOTE' +} + +export type CommentUpdateInput = { + html?: InputMaybe; + id: Scalars['String']['input']; +}; + +/** Response for the confirmGuestAccount mutation */ +export type ConfirmGuestAccountResponse = { + __typename?: 'ConfirmGuestAccountResponse'; + /** A token that can be used to sign in */ + accessToken: Scalars['String']['output']; + /** The validated account */ + account: Account; +}; + +/** This represents a Connected Account */ +export type ConnectedAccount = { + __typename?: 'ConnectedAccount'; + /** The date on which the ConnectedAccount was created */ + createdAt: Scalars['DateTime']['output']; + /** Unique identifier for this connected account */ + id: Scalars['String']['output']; + /** + * The internal database identifier of the Connected Account (ie: 580) + * @deprecated 2020-05-01: should only be used during the transition to GraphQL API v2. + */ + legacyId?: Maybe; + service: ConnectedAccountService; + settings?: Maybe; + /** The date on which the ConnectedAccount was last updated */ + updatedAt: Scalars['DateTime']['output']; +}; + +export type ConnectedAccountCreateInput = { + /** Optional Client ID for the token or secret */ + clientId?: InputMaybe; + /** Private data related to the connected account */ + data?: InputMaybe; + /** Refresh token for the connected account */ + refreshToken?: InputMaybe; + /** Service which the connected account belongs to */ + service?: InputMaybe; + /** Public data related to the connected account */ + settings?: InputMaybe; + /** Secret token used to call service */ + token?: InputMaybe; + /** Optional username for the connected account */ + username?: InputMaybe; +}; + +export type ConnectedAccountReferenceInput = { + /** The public id identifying the connected account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the account (ie: 580) */ + legacyId?: InputMaybe; +}; + +/** All supported services a user can connect with */ +export enum ConnectedAccountService { + github = 'github', + /** @deprecated Not using this service anymore */ + meetup = 'meetup', + paypal = 'paypal', + plaid = 'plaid', + /** @deprecated Not using this service anymore */ + privacy = 'privacy', + stripe = 'stripe', + stripe_customer = 'stripe_customer', + thegivingblock = 'thegivingblock', + transferwise = 'transferwise', + twitter = 'twitter' +} + +export enum ContributionFrequency { + MONTHLY = 'MONTHLY', + ONETIME = 'ONETIME', + YEARLY = 'YEARLY' +} + +/** Contribution statistics related to the given accounts */ +export type ContributionStats = { + __typename?: 'ContributionStats'; + /** The total number of contributions */ + contributionsCount: Scalars['Int']['output']; + /** The daily average income */ + dailyAverageIncomeAmount: Amount; + /** Number of one time contributions */ + oneTimeContributionsCount: Scalars['Int']['output']; + /** Number of recurring contributions */ + recurringContributionsCount: Scalars['Int']['output']; +}; + +/** + * + * A person or an entity that contributes financially or by any other mean to the mission + * of the collective. While "Member" is dedicated to permissions, this type is meant + * to surface all the public contributors and properly groups contributors who are part of + * multiple tiers. + * + */ +export type Contributor = { + __typename?: 'Contributor'; + account?: Maybe; + /** + * If the contributor has a page on Open Collective, this is the slug to link to it. Always null for incognito contributors + * @deprecated 2024-08-26: Use account.slug instead + */ + collectiveSlug?: Maybe; + /** Description of how the member contribute. Will usually be a tier name, or "design" or "code". */ + description?: Maybe; + /** A unique identifier for this member */ + id: Scalars['String']['output']; + /** + * Contributor avatar or logo + * @deprecated 2024-08-26: Use account.image instead + */ + image?: Maybe; + /** True if the contributor is a collective admin */ + isAdmin: Scalars['Boolean']['output']; + /** True if the contributor is a financial contributor */ + isBacker: Scalars['Boolean']['output']; + /** True if the contributor is a core contributor */ + isCore: Scalars['Boolean']['output']; + /** + * Defines if the contributors wants to be incognito (name not displayed) + * @deprecated 2024-08-26: Use account.isIncognito instead + */ + isIncognito: Scalars['Boolean']['output']; + /** + * Name of the contributor + * @deprecated 2024-08-26: Use account.name instead + */ + name: Scalars['String']['output']; + /** A public message from contributors to describe their contributions */ + publicMessage?: Maybe; + /** All the roles for a given contributor */ + roles?: Maybe>>; + /** Member join date */ + since: Scalars['DateTime']['output']; + /** How much money the user has contributed */ + totalAmountContributed: Amount; + /** + * How much money the user has contributed for this (in cents, using collective currency) + * @deprecated 2024-08-26: Use totalAmountContributed instead + */ + totalAmountDonated: Scalars['Int']['output']; + /** + * Whether the contributor is an individual, an organization... + * @deprecated 2024-08-26: Use account.type instead + */ + type: Scalars['String']['output']; +}; + + +/** + * + * A person or an entity that contributes financially or by any other mean to the mission + * of the collective. While "Member" is dedicated to permissions, this type is meant + * to surface all the public contributors and properly groups contributors who are part of + * multiple tiers. + * + */ +export type ContributorImageArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + +/** A collection of "Contributor" */ +export type ContributorCollection = Collection & { + __typename?: 'ContributorCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** A conversation thread */ +export type Conversation = { + __typename?: 'Conversation'; + account?: Maybe; + /** The root comment / starter for this conversation */ + body?: Maybe; + /** List the comments for this conversation. Not backed by a loader, don't use this in lists. */ + comments: CommentCollection; + createdAt: Scalars['DateTime']['output']; + followers: AccountCollection; + fromAccount?: Maybe; + id: Scalars['String']['output']; + slug: Scalars['String']['output']; + stats?: Maybe; + summary: Scalars['String']['output']; + tags?: Maybe>>; + title: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; +}; + + +/** A conversation thread */ +export type ConversationCommentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** A conversation thread */ +export type ConversationFollowersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +/** A collection of "Conversations" */ +export type ConversationCollection = Collection & { + __typename?: 'ConversationCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type ConversationReferenceInput = { + /** The public id identifying the conversation */ + id?: InputMaybe; + legacyId?: InputMaybe; +}; + +export type ConversationStats = { + __typename?: 'ConversationStats'; + /** Total number of comments for this conversation */ + commentsCount?: Maybe; + id: Scalars['String']['output']; +}; + +/** Two-letters country code following ISO3166_1 */ +export enum CountryIso { + /** Andorra */ + AD = 'AD', + /** The United Arab Emirates */ + AE = 'AE', + /** Afghanistan */ + AF = 'AF', + /** Antigua and Barbuda */ + AG = 'AG', + /** Anguilla */ + AI = 'AI', + /** Albania */ + AL = 'AL', + /** Armenia */ + AM = 'AM', + /** Angola */ + AO = 'AO', + /** Antarctica */ + AQ = 'AQ', + /** Argentina */ + AR = 'AR', + /** American Samoa */ + AS = 'AS', + /** Austria */ + AT = 'AT', + /** Australia */ + AU = 'AU', + /** Aruba */ + AW = 'AW', + /** Åland Islands */ + AX = 'AX', + /** Azerbaijan */ + AZ = 'AZ', + /** Bosnia and Herzegovina */ + BA = 'BA', + /** Barbados */ + BB = 'BB', + /** Bangladesh */ + BD = 'BD', + /** Belgium */ + BE = 'BE', + /** Burkina */ + BF = 'BF', + /** Bulgaria */ + BG = 'BG', + /** Bahrain */ + BH = 'BH', + /** Burundi */ + BI = 'BI', + /** Benin */ + BJ = 'BJ', + /** Saint Barthélemy */ + BL = 'BL', + /** Bermuda */ + BM = 'BM', + /** Brunei */ + BN = 'BN', + /** Bolivia */ + BO = 'BO', + /** Bonaire, Sint Eustatius and Saba */ + BQ = 'BQ', + /** Brazil */ + BR = 'BR', + /** The Bahamas */ + BS = 'BS', + /** Bhutan */ + BT = 'BT', + /** Bouvet Island */ + BV = 'BV', + /** Botswana */ + BW = 'BW', + /** Belarus */ + BY = 'BY', + /** Belize */ + BZ = 'BZ', + /** Canada */ + CA = 'CA', + /** Cocos Islands */ + CC = 'CC', + /** The Democratic Republic of the Congo */ + CD = 'CD', + /** The Central African Republic */ + CF = 'CF', + /** The Congo */ + CG = 'CG', + /** Switzerland */ + CH = 'CH', + /** Côte d'Ivoire */ + CI = 'CI', + /** Cook Islands */ + CK = 'CK', + /** Chile */ + CL = 'CL', + /** Cameroon */ + CM = 'CM', + /** China */ + CN = 'CN', + /** Colombia */ + CO = 'CO', + /** Costa Rica */ + CR = 'CR', + /** Cuba */ + CU = 'CU', + /** Cape Verde */ + CV = 'CV', + /** Curaçao */ + CW = 'CW', + /** Christmas Island */ + CX = 'CX', + /** Cyprus */ + CY = 'CY', + /** The Czech Republic */ + CZ = 'CZ', + /** Germany */ + DE = 'DE', + /** Djibouti */ + DJ = 'DJ', + /** Denmark */ + DK = 'DK', + /** Dominica */ + DM = 'DM', + /** The Dominican Republic */ + DO = 'DO', + /** Algeria */ + DZ = 'DZ', + /** Ecuador */ + EC = 'EC', + /** Estonia */ + EE = 'EE', + /** Egypt */ + EG = 'EG', + /** Western Sahara */ + EH = 'EH', + /** Eritrea */ + ER = 'ER', + /** Spain */ + ES = 'ES', + /** Ethiopia */ + ET = 'ET', + /** Finland */ + FI = 'FI', + /** Fiji */ + FJ = 'FJ', + /** Falkland Islands */ + FK = 'FK', + /** Micronesia */ + FM = 'FM', + /** Faroe Islands */ + FO = 'FO', + /** France */ + FR = 'FR', + /** Gabon */ + GA = 'GA', + /** The United Kingdom */ + GB = 'GB', + /** Grenada */ + GD = 'GD', + /** Georgia */ + GE = 'GE', + /** French Guiana */ + GF = 'GF', + /** Guernsey */ + GG = 'GG', + /** Ghana */ + GH = 'GH', + /** Gibraltar */ + GI = 'GI', + /** Greenland */ + GL = 'GL', + /** The Gambia */ + GM = 'GM', + /** Guinea */ + GN = 'GN', + /** Guadeloupe */ + GP = 'GP', + /** Equatorial Guinea */ + GQ = 'GQ', + /** Greece */ + GR = 'GR', + /** South Georgia and The South Sandwich Islands */ + GS = 'GS', + /** Guatemala */ + GT = 'GT', + /** Guam */ + GU = 'GU', + /** Guinea-Bissau */ + GW = 'GW', + /** Guyana */ + GY = 'GY', + /** Hong Kong */ + HK = 'HK', + /** Heard Island and McDonald Islands */ + HM = 'HM', + /** Honduras */ + HN = 'HN', + /** Croatia */ + HR = 'HR', + /** Haiti */ + HT = 'HT', + /** Hungary */ + HU = 'HU', + /** Indonesia */ + ID = 'ID', + /** Ireland */ + IE = 'IE', + /** Israel */ + IL = 'IL', + /** Isle of Man */ + IM = 'IM', + /** India */ + IN = 'IN', + /** The British Indian Ocean Territory */ + IO = 'IO', + /** Iraq */ + IQ = 'IQ', + /** Iran */ + IR = 'IR', + /** Iceland */ + IS = 'IS', + /** Italy */ + IT = 'IT', + /** Jersey */ + JE = 'JE', + /** Jamaica */ + JM = 'JM', + /** Jordan */ + JO = 'JO', + /** Japan */ + JP = 'JP', + /** Kenya */ + KE = 'KE', + /** Kyrgyzstan */ + KG = 'KG', + /** Cambodia */ + KH = 'KH', + /** Kiribati */ + KI = 'KI', + /** The Comoros */ + KM = 'KM', + /** Saint Kitts and Nevis */ + KN = 'KN', + /** The Democratic People's Republic of Korea */ + KP = 'KP', + /** The Republic of Korea */ + KR = 'KR', + /** Kuwait */ + KW = 'KW', + /** Cayman Islands */ + KY = 'KY', + /** Kazakhstan */ + KZ = 'KZ', + /** Laos */ + LA = 'LA', + /** Lebanon */ + LB = 'LB', + /** Saint Lucia */ + LC = 'LC', + /** Liechtenstein */ + LI = 'LI', + /** Sri Lanka */ + LK = 'LK', + /** Liberia */ + LR = 'LR', + /** Lesotho */ + LS = 'LS', + /** Lithuania */ + LT = 'LT', + /** Luxembourg */ + LU = 'LU', + /** Latvia */ + LV = 'LV', + /** Libya */ + LY = 'LY', + /** Morocco */ + MA = 'MA', + /** Monaco */ + MC = 'MC', + /** Moldova */ + MD = 'MD', + /** Montenegro */ + ME = 'ME', + /** Saint Martin */ + MF = 'MF', + /** Madagascar */ + MG = 'MG', + /** The Marshall Islands */ + MH = 'MH', + /** Macedonia */ + MK = 'MK', + /** Mali */ + ML = 'ML', + /** Myanmar */ + MM = 'MM', + /** Mongolia */ + MN = 'MN', + /** Macao */ + MO = 'MO', + /** Northern Mariana Islands */ + MP = 'MP', + /** Martinique */ + MQ = 'MQ', + /** Mauritania */ + MR = 'MR', + /** Montserrat */ + MS = 'MS', + /** Malta */ + MT = 'MT', + /** Mauritius */ + MU = 'MU', + /** Maldives */ + MV = 'MV', + /** Malawi */ + MW = 'MW', + /** Mexico */ + MX = 'MX', + /** Malaysia */ + MY = 'MY', + /** Mozambique */ + MZ = 'MZ', + /** Namibia */ + NA = 'NA', + /** New Caledonia */ + NC = 'NC', + /** The Niger */ + NE = 'NE', + /** Norfolk Island */ + NF = 'NF', + /** Nigeria */ + NG = 'NG', + /** Nicaragua */ + NI = 'NI', + /** The Netherlands */ + NL = 'NL', + /** Norway */ + NO = 'NO', + /** Nepal */ + NP = 'NP', + /** Nauru */ + NR = 'NR', + /** Niue */ + NU = 'NU', + /** New Zealand */ + NZ = 'NZ', + /** Oman */ + OM = 'OM', + /** Panama */ + PA = 'PA', + /** Peru */ + PE = 'PE', + /** French Polynesia */ + PF = 'PF', + /** Papua New Guinea */ + PG = 'PG', + /** The Philippines */ + PH = 'PH', + /** Pakistan */ + PK = 'PK', + /** Poland */ + PL = 'PL', + /** Saint Pierre and Miquelon */ + PM = 'PM', + /** Pitcairn */ + PN = 'PN', + /** Puerto Rico */ + PR = 'PR', + /** The Occupied Palestinian Territory */ + PS = 'PS', + /** Portugal */ + PT = 'PT', + /** Palau */ + PW = 'PW', + /** Paraguay */ + PY = 'PY', + /** Qatar */ + QA = 'QA', + /** Réunion */ + RE = 'RE', + /** Romania */ + RO = 'RO', + /** Serbia */ + RS = 'RS', + /** Russia */ + RU = 'RU', + /** Rwanda */ + RW = 'RW', + /** Saudi Arabia */ + SA = 'SA', + /** Solomon Islands */ + SB = 'SB', + /** Seychelles */ + SC = 'SC', + /** The Sudan */ + SD = 'SD', + /** Sweden */ + SE = 'SE', + /** Singapore */ + SG = 'SG', + /** Saint Helena */ + SH = 'SH', + /** Slovenia */ + SI = 'SI', + /** Svalbard and Jan Mayen */ + SJ = 'SJ', + /** Slovakia */ + SK = 'SK', + /** Sierra Leone */ + SL = 'SL', + /** San Marino */ + SM = 'SM', + /** Senegal */ + SN = 'SN', + /** Somalia */ + SO = 'SO', + /** Suriname */ + SR = 'SR', + /** South Sudan */ + SS = 'SS', + /** Sao Tome and Principe */ + ST = 'ST', + /** El Salvador */ + SV = 'SV', + /** Sint Maarten */ + SX = 'SX', + /** Syria */ + SY = 'SY', + /** Swaziland */ + SZ = 'SZ', + /** Turks and Caicos Islands */ + TC = 'TC', + /** Chad */ + TD = 'TD', + /** The French Southern Territories */ + TF = 'TF', + /** Togo */ + TG = 'TG', + /** Thailand */ + TH = 'TH', + /** Tajikistan */ + TJ = 'TJ', + /** Tokelau */ + TK = 'TK', + /** Timor-Leste */ + TL = 'TL', + /** Turkmenistan */ + TM = 'TM', + /** Tunisia */ + TN = 'TN', + /** Tonga */ + TO = 'TO', + /** Turkey */ + TR = 'TR', + /** Trinidad and Tobago */ + TT = 'TT', + /** Tuvalu */ + TV = 'TV', + /** Taiwan */ + TW = 'TW', + /** Tanzania */ + TZ = 'TZ', + /** Ukraine */ + UA = 'UA', + /** Uganda */ + UG = 'UG', + /** United States Minor Outlying Islands */ + UM = 'UM', + /** The United States */ + US = 'US', + /** Uruguay */ + UY = 'UY', + /** Uzbekistan */ + UZ = 'UZ', + /** The Holy See */ + VA = 'VA', + /** Saint Vincent and The Grenadines */ + VC = 'VC', + /** Venezuela */ + VE = 'VE', + /** British Virgin Islands */ + VG = 'VG', + /** US Virgin Islands */ + VI = 'VI', + /** Viet Nam */ + VN = 'VN', + /** Vanuatu */ + VU = 'VU', + /** Wallis and Futuna */ + WF = 'WF', + /** Samoa */ + WS = 'WS', + /** Yemen */ + YE = 'YE', + /** Mayotte */ + YT = 'YT', + /** South Africa */ + ZA = 'ZA', + /** Zambia */ + ZM = 'ZM', + /** Zimbabwe */ + ZW = 'ZW' +} + +/** This represents a Credit transaction */ +export type Credit = Transaction & { + __typename?: 'Credit'; + /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ + account?: Maybe; + amount: Amount; + amountInHostCurrency: Amount; + balanceInHostCurrency?: Maybe; + clearedAt?: Maybe; + createdAt?: Maybe; + description?: Maybe; + expense?: Maybe; + fromAccount?: Maybe; + /** Account that emitted the gift card used for this transaction (if any) */ + giftCardEmitterAccount?: Maybe; + group: Scalars['String']['output']; + host?: Maybe; + /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ + hostCurrencyFxRate?: Maybe; + hostFee: Amount; + id: Scalars['String']['output']; + invoiceTemplate?: Maybe; + isDisputed?: Maybe; + isInReview?: Maybe; + isOrderRejected: Scalars['Boolean']['output']; + isRefund?: Maybe; + isRefunded?: Maybe; + kind?: Maybe; + legacyId: Scalars['Int']['output']; + /** Merchant ID related to the Transaction (Stripe, PayPal, Wise, Privacy) */ + merchantId?: Maybe; + netAmount: Amount; + netAmountInHostCurrency: Amount; + /** The account on the opposite side of the transaction (CREDIT -> sender, DEBIT -> recipient) */ + oppositeAccount?: Maybe; + /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ + oppositeTransaction?: Maybe; + order?: Maybe; + paymentMethod?: Maybe; + /** Payment Processor Fee (usually in host currency) */ + paymentProcessorFee: Amount; + paymentProcessorUrl?: Maybe; + payoutMethod?: Maybe; + /** The permissions given to current logged in user for this transaction */ + permissions: TransactionPermissions; + platformFee: Amount; + refundTransaction?: Maybe; + relatedTransactions: Array>; + taxAmount: Amount; + /** If a tax is set, this field will contain more info about the tax */ + taxInfo?: Maybe; + toAccount?: Maybe; + type: TransactionType; + updatedAt?: Maybe; + /** @deprecated 2021-08-15: Use id instead. */ + uuid: Scalars['String']['output']; +}; + + +/** This represents a Credit transaction */ +export type CreditDescriptionArgs = { + dynamic?: InputMaybe; + full?: InputMaybe; +}; + + +/** This represents a Credit transaction */ +export type CreditHostFeeArgs = { + fetchHostFee?: InputMaybe; +}; + + +/** This represents a Credit transaction */ +export type CreditNetAmountArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** This represents a Credit transaction */ +export type CreditNetAmountInHostCurrencyArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** This represents a Credit transaction */ +export type CreditPaymentProcessorFeeArgs = { + fetchPaymentProcessorFee?: InputMaybe; +}; + + +/** This represents a Credit transaction */ +export type CreditRelatedTransactionsArgs = { + kind?: InputMaybe>>; +}; + + +/** This represents a Credit transaction */ +export type CreditTaxAmountArgs = { + fetchTax?: InputMaybe; +}; + +export type CreditCardCreateInput = { + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + brand?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + country?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + expMonth?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + expYear?: InputMaybe; + /** @deprecated 2022-11-22: the field was not used since 2017 */ + fullName?: InputMaybe; + /** @deprecated 2022-11-22: the `token` parameter is sufficient */ + funding?: InputMaybe; + token: Scalars['String']['input']; + zip?: InputMaybe; +}; + +export type CreditCardWithStripeError = { + __typename?: 'CreditCardWithStripeError'; + /** The payment method created */ + paymentMethod: PaymentMethod; + /** This field will be set if there was an error with Stripe during strong customer authentication */ + stripeError?: Maybe; +}; + +/** All supported currencies */ +export enum Currency { + /** UAE Dirham */ + AED = 'AED', + /** Afghani */ + AFN = 'AFN', + /** Lek */ + ALL = 'ALL', + /** Armenian Dram */ + AMD = 'AMD', + /** Netherlands Antillean Guilder */ + ANG = 'ANG', + /** Kwanza */ + AOA = 'AOA', + /** Argentine Peso */ + ARS = 'ARS', + /** Australian Dollar */ + AUD = 'AUD', + /** Aruban Florin */ + AWG = 'AWG', + /** Azerbaijanian Manat */ + AZN = 'AZN', + /** Convertible Mark */ + BAM = 'BAM', + /** Barbados Dollar */ + BBD = 'BBD', + /** Taka */ + BDT = 'BDT', + /** Bulgarian Lev */ + BGN = 'BGN', + /** Burundi Franc */ + BIF = 'BIF', + /** Bermudian Dollar */ + BMD = 'BMD', + /** Brunei Dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian Real */ + BRL = 'BRL', + /** Bahamian Dollar */ + BSD = 'BSD', + /** Pula */ + BWP = 'BWP', + /** Belarussian Ruble */ + BYN = 'BYN', + /** Belize Dollar */ + BZD = 'BZD', + /** Canadian Dollar */ + CAD = 'CAD', + /** Congolese Franc */ + CDF = 'CDF', + /** Swiss Franc */ + CHF = 'CHF', + /** Chilean Peso */ + CLP = 'CLP', + /** Yuan Renminbi */ + CNY = 'CNY', + /** Colombian Peso */ + COP = 'COP', + /** Costa Rican Colon */ + CRC = 'CRC', + /** Cabo Verde Escudo */ + CVE = 'CVE', + /** Czech Koruna */ + CZK = 'CZK', + /** Djibouti Franc */ + DJF = 'DJF', + /** Danish Krone */ + DKK = 'DKK', + /** Dominican Peso */ + DOP = 'DOP', + /** Algerian Dinar */ + DZD = 'DZD', + /** Egyptian Pound */ + EGP = 'EGP', + /** Ethiopian Birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji Dollar */ + FJD = 'FJD', + /** Falkland Islands Pound */ + FKP = 'FKP', + /** Pound Sterling */ + GBP = 'GBP', + /** Lari */ + GEL = 'GEL', + /** Gibraltar Pound */ + GIP = 'GIP', + /** Dalasi */ + GMD = 'GMD', + /** Guinea Franc */ + GNF = 'GNF', + /** Quetzal */ + GTQ = 'GTQ', + /** Guyana Dollar */ + GYD = 'GYD', + /** Hong Kong Dollar */ + HKD = 'HKD', + /** Lempira */ + HNL = 'HNL', + /** Kuna */ + HRK = 'HRK', + /** Gourde */ + HTG = 'HTG', + /** Forint */ + HUF = 'HUF', + /** Rupiah */ + IDR = 'IDR', + /** New Israeli Sheqel */ + ILS = 'ILS', + /** Indian Rupee */ + INR = 'INR', + /** Iceland Krona */ + ISK = 'ISK', + /** Jamaican Dollar */ + JMD = 'JMD', + /** Yen */ + JPY = 'JPY', + /** Kenyan Shilling */ + KES = 'KES', + /** Som */ + KGS = 'KGS', + /** Riel */ + KHR = 'KHR', + /** Comoro Franc */ + KMF = 'KMF', + /** Won */ + KRW = 'KRW', + /** Cayman Islands Dollar */ + KYD = 'KYD', + /** Tenge */ + KZT = 'KZT', + /** Kip */ + LAK = 'LAK', + /** Lebanese Pound */ + LBP = 'LBP', + /** Sri Lanka Rupee */ + LKR = 'LKR', + /** Liberian Dollar */ + LRD = 'LRD', + /** Loti */ + LSL = 'LSL', + /** Moroccan Dirham */ + MAD = 'MAD', + /** Moldovan Leu */ + MDL = 'MDL', + /** Malagasy Ariary */ + MGA = 'MGA', + /** Denar */ + MKD = 'MKD', + /** Kyat */ + MMK = 'MMK', + /** Tugrik */ + MNT = 'MNT', + /** Pataca */ + MOP = 'MOP', + /** Mauritius Rupee */ + MUR = 'MUR', + /** Rufiyaa */ + MVR = 'MVR', + /** Kwacha */ + MWK = 'MWK', + /** Mexican Peso */ + MXN = 'MXN', + /** Malaysian Ringgit */ + MYR = 'MYR', + /** Mozambique Metical */ + MZN = 'MZN', + /** Namibia Dollar */ + NAD = 'NAD', + /** Naira */ + NGN = 'NGN', + /** Cordoba Oro */ + NIO = 'NIO', + /** Norwegian Krone */ + NOK = 'NOK', + /** Nepalese Rupee */ + NPR = 'NPR', + /** New Zealand Dollar */ + NZD = 'NZD', + /** Balboa */ + PAB = 'PAB', + /** Nuevo Sol */ + PEN = 'PEN', + /** Kina */ + PGK = 'PGK', + /** Philippine Peso */ + PHP = 'PHP', + /** Pakistan Rupee */ + PKR = 'PKR', + /** Zloty */ + PLN = 'PLN', + /** Guarani */ + PYG = 'PYG', + /** Qatari Rial */ + QAR = 'QAR', + /** Romanian Leu */ + RON = 'RON', + /** Serbian Dinar */ + RSD = 'RSD', + /** Russian Ruble */ + RUB = 'RUB', + /** Rwanda Franc */ + RWF = 'RWF', + /** Saudi Riyal */ + SAR = 'SAR', + /** Solomon Islands Dollar */ + SBD = 'SBD', + /** Seychelles Rupee */ + SCR = 'SCR', + /** Swedish Krona */ + SEK = 'SEK', + /** Singapore Dollar */ + SGD = 'SGD', + /** Saint Helena Pound */ + SHP = 'SHP', + /** Leone */ + SLL = 'SLL', + /** Somali Shilling */ + SOS = 'SOS', + /** Surinam Dollar */ + SRD = 'SRD', + /** Lilangeni */ + SZL = 'SZL', + /** Baht */ + THB = 'THB', + /** Somoni */ + TJS = 'TJS', + /** Pa’anga */ + TOP = 'TOP', + /** Turkish Lira */ + TRY = 'TRY', + /** Trinidad and Tobago Dollar */ + TTD = 'TTD', + /** New Taiwan Dollar */ + TWD = 'TWD', + /** Tanzanian Shilling */ + TZS = 'TZS', + /** Hryvnia */ + UAH = 'UAH', + /** Uganda Shilling */ + UGX = 'UGX', + /** US Dollar */ + USD = 'USD', + /** Peso Uruguayo */ + UYU = 'UYU', + /** Uzbekistan Sum */ + UZS = 'UZS', + /** Dong */ + VND = 'VND', + /** Vatu */ + VUV = 'VUV', + /** Tala */ + WST = 'WST', + /** CFA Franc BEAC */ + XAF = 'XAF', + /** East Caribbean Dollar */ + XCD = 'XCD', + /** CFA Franc BCEAO */ + XOF = 'XOF', + /** CFP Franc */ + XPF = 'XPF', + /** Yemeni Rial */ + YER = 'YER', + /** Rand */ + ZAR = 'ZAR', + /** Zambian Kwacha */ + ZMW = 'ZMW' +} + +/** Fields for a currency fx rate */ +export type CurrencyExchangeRate = { + __typename?: 'CurrencyExchangeRate'; + /** Date of the FX rate */ + date: Scalars['DateTime']['output']; + fromCurrency: Currency; + /** Is the FX rate approximate or a fixed value? */ + isApproximate: Scalars['Boolean']['output']; + /** Where does the FX rate comes from */ + source: CurrencyExchangeRateSourceType; + toCurrency: Currency; + /** Exchange rate value as a scalar (e.g 1.15 or 0.86) */ + value: Scalars['Float']['output']; +}; + +/** Fields for a currency exchange rate */ +export type CurrencyExchangeRateInput = { + /** Date of the FX rate */ + date: Scalars['DateTime']['input']; + fromCurrency: Currency; + /** Where does the FX rate comes from */ + source: CurrencyExchangeRateSourceType; + toCurrency: Currency; + /** Exchange rate value as a float (e.g 1.15 or 0.86) */ + value: Scalars['Float']['input']; +}; + +/** Request for a currency exchange rate */ +export type CurrencyExchangeRateRequest = { + /** Date of the exchange rate. Defaults to now. */ + date?: InputMaybe; + /** Currency to convert from */ + fromCurrency: Currency; + /** Currency to convert to */ + toCurrency: Currency; +}; + +/** Where does the FX rate come from */ +export enum CurrencyExchangeRateSourceType { + /** Open Collective internal system, relying on caching and 3rd party APIs */ + OPENCOLLECTIVE = 'OPENCOLLECTIVE', + /** PayPal API */ + PAYPAL = 'PAYPAL', + /** User-provided exchange rate */ + USER = 'USER', + /** Wise API */ + WISE = 'WISE' +} + +/** All possible DateTime fields for a resource */ +export enum DateTimeField { + /** The creation time of a resource */ + CREATED_AT = 'CREATED_AT', + /** Transactions only: The date when a transaction was cleared by the payment processor */ + EFFECTIVE_DATE = 'EFFECTIVE_DATE', + /** Orders only: The date when an order was last charged, defaults to createdAt if never charged */ + LAST_CHARGED_AT = 'LAST_CHARGED_AT' +} + +/** This represents a Debit transaction */ +export type Debit = Transaction & { + __typename?: 'Debit'; + /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ + account?: Maybe; + amount: Amount; + amountInHostCurrency: Amount; + balanceInHostCurrency?: Maybe; + clearedAt?: Maybe; + createdAt?: Maybe; + description?: Maybe; + expense?: Maybe; + fromAccount?: Maybe; + /** Account that emitted the gift card used for this transaction (if any) */ + giftCardEmitterAccount?: Maybe; + group: Scalars['String']['output']; + host?: Maybe; + /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ + hostCurrencyFxRate?: Maybe; + hostFee: Amount; + id: Scalars['String']['output']; + invoiceTemplate?: Maybe; + isDisputed?: Maybe; + isInReview?: Maybe; + isOrderRejected: Scalars['Boolean']['output']; + isRefund?: Maybe; + isRefunded?: Maybe; + kind?: Maybe; + legacyId: Scalars['Int']['output']; + /** Merchant ID related to the Transaction (Stripe, PayPal, Wise, Privacy) */ + merchantId?: Maybe; + netAmount: Amount; + netAmountInHostCurrency: Amount; + /** The account on the opposite side of the transaction (CREDIT -> sender, DEBIT -> recipient) */ + oppositeAccount?: Maybe; + /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ + oppositeTransaction?: Maybe; + order?: Maybe; + paymentMethod?: Maybe; + /** Payment Processor Fee (usually in host currency) */ + paymentProcessorFee: Amount; + paymentProcessorUrl?: Maybe; + payoutMethod?: Maybe; + /** The permissions given to current logged in user for this transaction */ + permissions: TransactionPermissions; + platformFee: Amount; + refundTransaction?: Maybe; + relatedTransactions: Array>; + taxAmount: Amount; + /** If a tax is set, this field will contain more info about the tax */ + taxInfo?: Maybe; + toAccount?: Maybe; + type: TransactionType; + updatedAt?: Maybe; + /** @deprecated 2021-08-15: Use id instead. */ + uuid: Scalars['String']['output']; +}; + + +/** This represents a Debit transaction */ +export type DebitDescriptionArgs = { + dynamic?: InputMaybe; + full?: InputMaybe; +}; + + +/** This represents a Debit transaction */ +export type DebitHostFeeArgs = { + fetchHostFee?: InputMaybe; +}; + + +/** This represents a Debit transaction */ +export type DebitNetAmountArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** This represents a Debit transaction */ +export type DebitNetAmountInHostCurrencyArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** This represents a Debit transaction */ +export type DebitPaymentProcessorFeeArgs = { + fetchPaymentProcessorFee?: InputMaybe; +}; + + +/** This represents a Debit transaction */ +export type DebitRelatedTransactionsArgs = { + kind?: InputMaybe>>; +}; + + +/** This represents a Debit transaction */ +export type DebitTaxAmountArgs = { + fetchTax?: InputMaybe; +}; + +/** Which data should be copied when duplicating the account */ +export type DuplicateAccountDataTypeInput = { + admins?: Scalars['Boolean']['input']; + events?: Scalars['Boolean']['input']; + projects?: Scalars['Boolean']['input']; + tiers?: Scalars['Boolean']['input']; +}; + +export type Expense_Author_Cannot_Approve = { + __typename?: 'EXPENSE_AUTHOR_CANNOT_APPROVE'; + amountInCents?: Maybe; + appliesToHostedCollectives?: Maybe; + appliesToSingleAdminCollectives?: Maybe; + enabled?: Maybe; +}; + +export type Expense_Categorization = { + __typename?: 'EXPENSE_CATEGORIZATION'; + requiredForCollectiveAdmins?: Maybe; + requiredForExpenseSubmitters?: Maybe; +}; + +export type Expense_Policies = { + __typename?: 'EXPENSE_POLICIES'; + invoicePolicy?: Maybe; + receiptPolicy?: Maybe; + titlePolicy?: Maybe; +}; + +export type EmojiReactionResponse = { + __typename?: 'EmojiReactionResponse'; + /** Reference to the comment corresponding to the emojis */ + comment?: Maybe; + /** Reference to the update corresponding to the emojis */ + update?: Maybe; +}; + +/** This represents an Event account */ +export type Event = Account & AccountWithContributions & AccountWithHost & AccountWithParent & { + __typename?: 'Event'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + /** Date of approval by the Fiscal Host. */ + approvedAt?: Maybe; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** The Event end date and time */ + endsAt?: Maybe; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Returns the Fiscal Host */ + host?: Maybe; + /** Returns agreements this account has with its host, or null if not enough permissions. */ + hostAgreements?: Maybe; + /** Returns the Fiscal Host application */ + hostApplication?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** Fees percentage that the host takes for this collective */ + hostFeePercent?: Maybe; + /** Describe how the host charges the collective */ + hostFeesStructure?: Maybe; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether it's active: can accept financial contributions and pay expenses. */ + isActive: Scalars['Boolean']['output']; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether it's approved by the Fiscal Host */ + isApproved: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** The Account parenting this account */ + parent?: Maybe; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + /** The Event start date and time */ + startsAt?: Maybe; + stats?: Maybe; + summary?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Timezone of the Event (TZ database format, e.g. UTC or Europe/Berlin) */ + timezone?: Maybe; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date when the collective was last unfrozen by current Fiscal Host */ + unfrozenAt?: Maybe; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Event account */ +export type EventActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventHostAgreementsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventHostFeePercentArgs = { + paymentMethodService?: InputMaybe; + paymentMethodType?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventSummaryArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Event account */ +export type EventUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Event account */ +export type EventVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Event account */ +export type EventVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Event account */ +export type EventWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type EventCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description?: InputMaybe; + /** The Event end date and time */ + endsAt: Scalars['DateTime']['input']; + /** The profile avatar image */ + image?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug?: InputMaybe; + /** The Event start date and time */ + startsAt: Scalars['DateTime']['input']; + tags?: InputMaybe>>; + /** Timezone of the Event (TZ database format, e.g. UTC or Europe/Berlin) */ + timezone: Scalars['String']['input']; +}; + +/** Expected funds filter (ALL_EXPECTED_FUNDS, ONLY_PENDING, ONLY_MANUAL) */ +export enum ExpectedFundsFilter { + ALL_EXPECTED_FUNDS = 'ALL_EXPECTED_FUNDS', + ONLY_MANUAL = 'ONLY_MANUAL', + ONLY_PENDING = 'ONLY_PENDING' +} + +/** This represents an Expense */ +export type Expense = { + __typename?: 'Expense'; + /** The account where the expense was submitted */ + account: Account; + /** + * The exchange rate between the expense currency and the account currency + * @deprecated 2022-02-09: Please use amountV2 + */ + accountCurrencyFxRate: Scalars['Float']['output']; + /** The accounting category attached to this expense */ + accountingCategory?: Maybe; + /** The list of activities (ie. approved, edited, etc) for this expense ordered by date ascending */ + activities: Array; + /** + * Total amount of the expense (sum of the item's amounts). + * @deprecated 2022-02-09: Please use amountV2 + */ + amount: Scalars['Int']['output']; + /** Total amount of the expense */ + amountV2?: Maybe; + /** The accounts who approved this expense */ + approvedBy: Array>; + /** (Optional) files attached to the expense */ + attachedFiles?: Maybe>; + /** Returns the list of comments for this expense, or `null` if user is not allowed to see them */ + comments?: Maybe; + /** The time of creation */ + createdAt: Scalars['DateTime']['output']; + /** The account who created this expense */ + createdByAccount?: Maybe; + /** Currency that should be used for the payout */ + currency: Currency; + /** Custom data for this expense */ + customData?: Maybe; + /** Title/main description for this expense */ + description: Scalars['String']['output']; + /** Drafted field values that were still not persisted */ + draft?: Maybe; + /** [Host Admin only] Key to access the draft of this expense */ + draftKey?: Maybe; + /** The fees payer for this expense */ + feesPayer: FeesPayer; + /** The account from where the expense was paid */ + host?: Maybe; + id: Scalars['String']['output']; + /** Information to display on the invoice. Only visible to user and admins. */ + invoiceInfo?: Maybe; + items?: Maybe>>; + /** Legacy ID as returned by API V1. Avoid relying on this field as it may be removed in the future. */ + legacyId: Scalars['Int']['output']; + /** Returns the list of legal documents attached to this expense. Must be logged in as a host admin. */ + legalDocuments?: Maybe; + /** Fields that cannot be edited on this expense */ + lockedFields?: Maybe>>; + /** Longer description for this expense */ + longDescription?: Maybe; + /** The merchant ID for this expense */ + merchantId?: Maybe; + /** Whether this expense is on hold */ + onHold?: Maybe; + /** The account who paid this expense */ + paidBy?: Maybe; + /** The account being paid by this expense */ + payee: Account; + /** The address of the payee */ + payeeLocation?: Maybe; + paymentMethod?: Maybe; + /** The payout method to use for this expense */ + payoutMethod?: Maybe; + /** The permissions given to current logged in user for this expense */ + permissions: ExpensePermissions; + /** Additional information about the payment as HTML. Only visible to user and admins. */ + privateMessage?: Maybe; + quote?: Maybe; + recurringExpense?: Maybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: Maybe; + /** The account that requested this expense to be submitted */ + requestedByAccount?: Maybe; + /** Returns the list of legal documents required from the payee before the expense can be payed. Must be logged in. */ + requiredLegalDocuments?: Maybe>>; + /** [Admin only] Security checks for this expense. Only available to expenses under trusted hosts. */ + securityChecks?: Maybe>>; + /** The state of the expense (pending, approved, paid, rejected...etc) */ + status: ExpenseStatus; + tags: Array>; + /** Taxes applied to this expense */ + taxes: Array>; + /** The reference text used in the payment transfer */ + transferReference?: Maybe; + /** Whether this expense is a receipt or an invoice */ + type: ExpenseType; + validateTransferRequirements?: Maybe>>; + /** If available, this field will contain a breakdown of the expense values depending on who edited it */ + valuesByRole?: Maybe; + /** The virtual card used to pay for this charge */ + virtualCard?: Maybe; +}; + + +/** This represents an Expense */ +export type ExpenseAmountV2Args = { + currencySource?: InputMaybe; +}; + + +/** This represents an Expense */ +export type ExpenseCommentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; +}; + + +/** This represents an Expense */ +export type ExpenseLegalDocumentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Expense */ +export type ExpenseValidateTransferRequirementsArgs = { + details?: InputMaybe; +}; + +/** Fields for an expense's attached file */ +export type ExpenseAttachedFile = { + __typename?: 'ExpenseAttachedFile'; + /** Unique identifier for this file */ + id: Scalars['String']['output']; + /** The file info associated with this item (if any) */ + info?: Maybe; + /** + * The original filename + * @deprecated 2023-01-23: We're moving this field to "file.name" + */ + name?: Maybe; + url?: Maybe; +}; + +export type ExpenseAttachedFileInput = { + /** ID of the file */ + id?: InputMaybe; + /** + * Original filename + * @deprecated 2023-02-02: This must now be provided when uploading the file. This parameter will be ignored. + */ + name?: InputMaybe; + /** URL of the file */ + url: Scalars['URL']['input']; +}; + +/** A collection of "Expenses" */ +export type ExpenseCollection = Collection & { + __typename?: 'ExpenseCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalAmount?: Maybe; + totalCount?: Maybe; +}; + +export type ExpenseCollectionTotalAmount = { + __typename?: 'ExpenseCollectionTotalAmount'; + amount?: Maybe; + amountsByCurrency?: Maybe>>; +}; + + +export type ExpenseCollectionTotalAmountAmountArgs = { + currency?: InputMaybe; +}; + +export type ExpenseCreateInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description: Scalars['String']['input']; + /** Custom information to print on the invoice */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee: AccountReferenceInput; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod: PayoutMethodInput; + /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ + privateMessage?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type: ExpenseType; +}; + +/** All supported expense currency sources */ +export enum ExpenseCurrencySource { + /** The expense currency expressed as the account currency */ + ACCOUNT = 'ACCOUNT', + /** The expense currency expressed as the expense currency */ + CREATED_BY_ACCOUNT = 'CREATED_BY_ACCOUNT', + /** The expense currency expressed as the expense currency */ + EXPENSE = 'EXPENSE', + /** The expense currency expressed as the host currency */ + HOST = 'HOST' +} + +/** Describes the role in which an account is involved in an expense. This is used to filter */ +export enum ExpenseDirection { + /** Received: The account is the one who received the expense and the one who's paying for it. */ + RECEIVED = 'RECEIVED', + /** Submitted: The account is the one who submitted the expense and possibly the beneficiary. */ + SUBMITTED = 'SUBMITTED' +} + +export type ExpenseInviteDraftInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description?: InputMaybe; + /** Custom information to print on the invoice */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee: ExpenseInvitee; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod?: InputMaybe; + /** A private note that will be attached to your invoice, as HTML. Only visible to the payee and the collective/host admins. */ + privateMessage?: InputMaybe; + /** Note to be sent to the invited user through email. */ + recipientNote?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type: ExpenseType; +}; + +export type ExpenseInvitee = { + email?: InputMaybe; + /** @deprecated 2023-04-12: Please use legacyId */ + id?: InputMaybe; + isInvite?: InputMaybe; + legacyId?: InputMaybe; + name?: InputMaybe; + organization?: InputMaybe; + slug?: InputMaybe; +}; + +export type ExpenseInviteeOrganizationInput = { + description?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + website?: InputMaybe; +}; + +/** Fields for an expense item */ +export type ExpenseItem = { + __typename?: 'ExpenseItem'; + /** + * Amount of this item + * @deprecated Please use `amountV2` + */ + amount: Scalars['Int']['output']; + /** Amount of this item */ + amountV2: Amount; + /** The date on which the item was created */ + createdAt: Scalars['DateTime']['output']; + /** A description for this item. Enforced for new items, but old expenses may not have one. */ + description?: Maybe; + /** The file associated with this item (if any) */ + file?: Maybe; + /** Unique identifier for this expense item */ + id: Scalars['String']['output']; + /** The date on which the expense took place */ + incurredAt: Scalars['DateTime']['output']; + /** If the item currency is different than the expense currency, this field will expose the average exchange rate for this date as recorded by Open Collective. Used to decide whether the value in `amountV2.exchangeRate` looks correct. */ + referenceExchangeRate?: Maybe; + /** The date on which the item was last updated */ + updatedAt: Scalars['DateTime']['output']; + url?: Maybe; +}; + +export type ExpenseItemCreateInput = { + /** + * Amount in cents + * @deprecated Please use `amountV2` + */ + amount?: InputMaybe; + /** Amount */ + amountV2?: InputMaybe; + /** What is this item about? */ + description: Scalars['String']['input']; + /** When was the money spent? */ + incurredAt?: InputMaybe; + /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ + url?: InputMaybe; +}; + +export type ExpenseItemInput = { + /** + * Amount in cents + * @deprecated Please use `amountV2` + */ + amount?: InputMaybe; + /** Amount */ + amountV2?: InputMaybe; + /** What is this item about? */ + description?: InputMaybe; + /** ID of the item */ + id?: InputMaybe; + /** When was the money spent? */ + incurredAt?: InputMaybe; + /** URL of the file linked to this item. Must be provided if the expense type is RECEIPT. */ + url?: InputMaybe; +}; + +export type ExpenseItemParsedFileInfo = { + __typename?: 'ExpenseItemParsedFileInfo'; + amount?: Maybe; + description?: Maybe; + incurredAt?: Maybe; + url?: Maybe; +}; + +/** All fields that can be locked on an expense draft */ +export enum ExpenseLockableFields { + /** Locks items' amount and currency, and it also blocks the hability to add new items. */ + AMOUNT = 'AMOUNT', + /** Locks the description field. */ + DESCRIPTION = 'DESCRIPTION', + /** Locks the payee field, if the user is not on the platform it locks its email. */ + PAYEE = 'PAYEE', + /** Locks the type field. */ + TYPE = 'TYPE' +} + +export type ExpenseParsedFileInfo = { + __typename?: 'ExpenseParsedFileInfo'; + amount?: Maybe; + confidence?: Maybe; + date?: Maybe; + description?: Maybe; + items: Array; +}; + +/** Fields for the user permissions on an expense */ +export type ExpensePermissions = { + __typename?: 'ExpensePermissions'; + approve: Permission; + /** Whether the current user can approve this expense */ + canApprove: Scalars['Boolean']['output']; + /** Whether the current user can comment and see comments for this expense */ + canComment: Scalars['Boolean']['output']; + /** Whether the user or the given draft key is allowed decline the expense invite */ + canDeclineExpenseInvite: Scalars['Boolean']['output']; + /** Whether the current user can edit the expense */ + canDelete: Scalars['Boolean']['output']; + canDownloadTaxForm: Scalars['Boolean']['output']; + /** Whether the current user can edit the expense */ + canEdit: Scalars['Boolean']['output']; + /** Whether the current user can edit the expense accounting category */ + canEditAccountingCategory: Scalars['Boolean']['output']; + /** Tags permissions are a bit different, and can be edited by admins even if the expense has already been paid */ + canEditTags: Scalars['Boolean']['output']; + canHold: Scalars['Boolean']['output']; + /** Whether the current user can mark this expense as incomplete */ + canMarkAsIncomplete: Scalars['Boolean']['output']; + /** Whether the current user can mark this expense as spam */ + canMarkAsSpam: Scalars['Boolean']['output']; + /** Whether the current user can mark this expense as unpaid */ + canMarkAsUnpaid: Scalars['Boolean']['output']; + /** Whether the current user can trigger the payment for this expense */ + canPay: Scalars['Boolean']['output']; + /** Whether the current user can reject this expense */ + canReject: Scalars['Boolean']['output']; + canRelease: Scalars['Boolean']['output']; + /** Whether the current user can the the invoice info for this expense */ + canSeeInvoiceInfo: Scalars['Boolean']['output']; + /** Whether the current user can see the private details of the payout method of this expense */ + canSeePayoutMethodPrivateDetails: Scalars['Boolean']['output']; + /** Whether the current user can unapprove this expense */ + canUnapprove: Scalars['Boolean']['output']; + /** Whether the current user can unschedule this expense payment */ + canUnschedulePayment: Scalars['Boolean']['output']; + canUsePrivateNote: Scalars['Boolean']['output']; + /** Whether the current user can verify this draft expense */ + canVerifyDraftExpense: Scalars['Boolean']['output']; + comment: Permission; + delete: Permission; + downloadTaxForm: Permission; + edit: Permission; + /** Whether the current user can edit the expense accounting category */ + editAccountingCategory: Scalars['Boolean']['output']; + editTags: Permission; + hold: Permission; + id: Scalars['String']['output']; + markAsSpam: Permission; + markAsUnpaid: Permission; + pay: Permission; + reject: Permission; + release: Permission; + seeInvoiceInfo: Permission; + unapprove: Permission; + unschedulePayment: Permission; + usePrivateNote: Permission; + verifyDraftExpense: Permission; +}; + + +/** Fields for the user permissions on an expense */ +export type ExpensePermissionsCanDeclineExpenseInviteArgs = { + draftKey?: InputMaybe; +}; + +/** All supported expense types */ +export enum ExpenseProcessAction { + /** To mark the expense as approved */ + APPROVE = 'APPROVE', + /** To decline an invited expense */ + DECLINE_INVITED_EXPENSE = 'DECLINE_INVITED_EXPENSE', + /** To put the expense on hold */ + HOLD = 'HOLD', + /** To mark the expense as incomplete and notify the payee it requires more information */ + MARK_AS_INCOMPLETE = 'MARK_AS_INCOMPLETE', + /** To mark the expense as spam */ + MARK_AS_SPAM = 'MARK_AS_SPAM', + /** To mark the expense as unpaid (marks the transaction as refunded) */ + MARK_AS_UNPAID = 'MARK_AS_UNPAID', + /** To trigger the payment */ + PAY = 'PAY', + /** To mark the expense as rejected */ + REJECT = 'REJECT', + /** To release the expense from hold */ + RELEASE = 'RELEASE', + /** To request re-approval of the expense, marking it as pending. */ + REQUEST_RE_APPROVAL = 'REQUEST_RE_APPROVAL', + /** To schedule the expense for payment */ + SCHEDULE_FOR_PAYMENT = 'SCHEDULE_FOR_PAYMENT', + /** To mark the expense as pending after it has been approved */ + UNAPPROVE = 'UNAPPROVE', + /** To unschedule the expense payment */ + UNSCHEDULE_PAYMENT = 'UNSCHEDULE_PAYMENT' +} + +/** Fields for an expense quote */ +export type ExpenseQuote = { + __typename?: 'ExpenseQuote'; + /** The date on which the item was created */ + estimatedDeliveryAt?: Maybe; + /** Amount of payment processor fee */ + paymentProcessorFeeAmount: Amount; + /** Amount of this item */ + sourceAmount: Amount; +}; + +export type ExpenseReferenceInput = { + /** The public id identifying the expense (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the expense (ie: 580) */ + legacyId?: InputMaybe; +}; + +/** Expense statistics related to the given accounts */ +export type ExpenseStats = { + __typename?: 'ExpenseStats'; + /** The daily average paid in expenses */ + dailyAverageAmount: Amount; + /** The total number of expenses */ + expensesCount: Scalars['Int']['output']; + /** Number of grants */ + grantsCount: Scalars['Int']['output']; + /** Number of invoices */ + invoicesCount: Scalars['Int']['output']; + /** Number of reimbursements */ + reimbursementsCount: Scalars['Int']['output']; +}; + +export enum ExpenseStatus { + APPROVED = 'APPROVED', + CANCELED = 'CANCELED', + DRAFT = 'DRAFT', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE', + INVITE_DECLINED = 'INVITE_DECLINED', + PAID = 'PAID', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + REJECTED = 'REJECTED', + SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', + SPAM = 'SPAM', + UNVERIFIED = 'UNVERIFIED' +} + +/** Describes the values allowed to filter expenses, namely all the expense statuses and the special "READY_TO_PAY" value. */ +export enum ExpenseStatusFilter { + APPROVED = 'APPROVED', + CANCELED = 'CANCELED', + DRAFT = 'DRAFT', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE', + INVITE_DECLINED = 'INVITE_DECLINED', + /** Only expenses that are on hold */ + ON_HOLD = 'ON_HOLD', + PAID = 'PAID', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + /** Only expenses that are ready to be paid (must be approved, have the sufficiant balance and have the tax forms completed) */ + READY_TO_PAY = 'READY_TO_PAY', + REJECTED = 'REJECTED', + SCHEDULED_FOR_PAYMENT = 'SCHEDULED_FOR_PAYMENT', + SPAM = 'SPAM', + UNVERIFIED = 'UNVERIFIED' +} + +/** Input to set taxes for an expense */ +export type ExpenseTaxInput = { + /** Tax identification number, if any */ + idNumber?: InputMaybe; + /** Tax rate as a float number between 0 and 1 */ + rate: Scalars['Float']['input']; + type: TaxType; +}; + +/** All supported expense types */ +export enum ExpenseType { + /** Credit Card Charge: Payment done using an issued (virtual) credit card issued by your Fiscal Host. */ + CHARGE = 'CHARGE', + /** Funding Request: Request funding for a project or initiative. */ + FUNDING_REQUEST = 'FUNDING_REQUEST', + /** Grant: Request funding for a project or initiative. */ + GRANT = 'GRANT', + /** Invoice: Charge for your time or get paid in advance. */ + INVOICE = 'INVOICE', + /** Receipt: Get paid back for a purchase already made. */ + RECEIPT = 'RECEIPT', + /** Settlement: expense generated by Open Collective to collect money owed by Fiscal Hosts. */ + SETTLEMENT = 'SETTLEMENT', + /** Unclassified expense */ + UNCLASSIFIED = 'UNCLASSIFIED' +} + +export type ExpenseUpdateInput = { + /** The accounting category this expense belongs to */ + accountingCategory?: InputMaybe; + /** (Optional) A list of files that you want to attach to this expense */ + attachedFiles?: InputMaybe>; + /** @deprecated 2020-04-08: Please use the items field - The list of items for this expense. Total amount will be computed from them. */ + attachments?: InputMaybe>>; + /** Currency that should be used for the payout. Defaults to the account currency */ + currency?: InputMaybe; + /** Custom data to be stored in the expense */ + customData?: InputMaybe; + /** Main title of the expense */ + description?: InputMaybe; + /** ID of the expense that you are trying to edit */ + id: Scalars['String']['input']; + /** Tax ID, VAT number...etc This information will be printed on your invoice. */ + invoiceInfo?: InputMaybe; + /** The list of items for this expense. Total amount will be computed from them. */ + items?: InputMaybe>>; + /** Longer text to attach to the expense */ + longDescription?: InputMaybe; + /** Account to reimburse */ + payee?: InputMaybe; + /** The address of the payee */ + payeeLocation?: InputMaybe; + /** The payout method that will be used to reimburse the expense */ + payoutMethod?: InputMaybe; + /** A private note that will be attached to your invoice, as HTML */ + privateMessage?: InputMaybe; + /** User-provided reference number or any other identifier that references the invoice */ + reference?: InputMaybe; + /** Tags associated to the expense (ie. Food, Engineering...) */ + tags?: InputMaybe>>; + /** The list of taxes that should be applied to the expense (VAT, GST, etc...) */ + tax?: InputMaybe>>; + /** The type of the expense */ + type?: InputMaybe; +}; + +export type ExpenseValuesByRole = { + __typename?: 'ExpenseValuesByRole'; + /** The values provided by the account admin(s) */ + accountAdmin?: Maybe; + /** The values provided by the host admin(s) */ + hostAdmin?: Maybe; + id: Scalars['NonEmptyString']['output']; + /** The values provided by the expense submitter(s) */ + submitter?: Maybe; +}; + +export type ExpenseValuesRoleDetails = { + __typename?: 'ExpenseValuesRoleDetails'; + accountingCategory?: Maybe; +}; + +/** All supported expense types */ +export enum FeesPayer { + /** The collective will be responsible for paying the fees */ + COLLECTIVE = 'COLLECTIVE', + /** The payee will be responsible for paying the fees (they'll be deduced from the total amount) */ + PAYEE = 'PAYEE' +} + +/** Exposes information about an uploaded file (image, pdf, etc.) */ +export type FileInfo = { + /** Unique identifier for the file */ + id: Scalars['String']['output']; + /** Name of the file */ + name?: Maybe; + /** Size of the file in bytes */ + size?: Maybe; + /** Mime type of the file */ + type: Scalars['String']['output']; + /** URL to access the file */ + url: Scalars['URL']['output']; +}; + +export type FollowAccountResult = { + __typename?: 'FollowAccountResult'; + individual: Individual; + member: Member; +}; + +/** This represents an Project account */ +export type Fund = Account & AccountWithContributions & AccountWithHost & { + __typename?: 'Fund'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + /** Date of approval by the Fiscal Host. */ + approvedAt?: Maybe; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Returns the Fiscal Host */ + host?: Maybe; + /** Returns agreements this account has with its host, or null if not enough permissions. */ + hostAgreements?: Maybe; + /** Returns the Fiscal Host application */ + hostApplication?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** Fees percentage that the host takes for this collective */ + hostFeePercent?: Maybe; + /** Describe how the host charges the collective */ + hostFeesStructure?: Maybe; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether it's active: can accept financial contributions and pay expenses. */ + isActive: Scalars['Boolean']['output']; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether it's approved by the Fiscal Host */ + isApproved: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + summary?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date when the collective was last unfrozen by current Fiscal Host */ + unfrozenAt?: Maybe; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Project account */ +export type FundActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundHostAgreementsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundHostFeePercentArgs = { + paymentMethodService?: InputMaybe; + paymentMethodType?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundSummaryArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Project account */ +export type FundUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type FundVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type FundVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type FundWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type FundCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** The profile avatar image */ + image?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug: Scalars['String']['input']; + tags?: InputMaybe>>; +}; + +export type GenericFileInfo = FileInfo & { + __typename?: 'GenericFileInfo'; + /** Unique identifier for the file */ + id: Scalars['String']['output']; + /** Name of the file */ + name?: Maybe; + /** Size of the file in bytes */ + size?: Maybe; + /** Mime type of the file */ + type: Scalars['String']['output']; + /** URL to access the file */ + url: Scalars['URL']['output']; +}; + +/** Input type for guest contributions */ +export type GuestInfoInput = { + /** Captcha validation for creating an order */ + captcha?: InputMaybe; + /** Contributor's email */ + email: Scalars['EmailAddress']['input']; + /** Legal name of the user */ + legalName?: InputMaybe; + /** Address of the user, mandatory when amount is above $5000. */ + location?: InputMaybe; + /** Display name of the user */ + name?: InputMaybe; +}; + +/** This represents an Host account */ +export type Host = Account & AccountWithContributions & { + __typename?: 'Host'; + /** List of accounting categories for this host */ + accountingCategories: AccountingCategoryCollection; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + bankAccount?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + contributionStats: ContributionStats; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenseStats: ExpenseStats; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns whether the host has any Stripe disputed orders */ + hasDisputedOrders?: Maybe; + /** Returns whether the host has any Stripe in review orders */ + hasInReviewOrders?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** Applications for this host */ + hostApplications: HostApplicationCollection; + /** EXPERIMENTAL (this may change or be removed) */ + hostExpensesReport?: Maybe; + hostFeePercent?: Maybe; + hostMetrics: HostMetrics; + hostMetricsTimeSeries: HostMetricsTimeSeries; + /** EXPERIMENTAL (this may change or be removed) */ + hostTransactionsReports?: Maybe; + /** Returns agreements with Hosted Accounts */ + hostedAccountAgreements: AgreementCollection; + /** Returns a list of accounts hosted by this host */ + hostedAccounts: HostedAccountCollection; + /** Returns legal documents hosted by this host */ + hostedLegalDocuments: LegalDocumentCollection; + hostedVirtualCardCollectives: AccountCollection; + hostedVirtualCardMerchants: AccountCollection; + hostedVirtualCards: VirtualCardCollection; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + isOpenToApplications?: Maybe; + /** Returns whether the host is trusted or not */ + isTrustedHost: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** If the host supports PayPal, this will contain the client ID to use in the frontend */ + paypalClientId?: Maybe; + /** Paypal preapproval info. Returns null if PayPal account is not connected. */ + paypalPreApproval?: Maybe; + /** + * Pending applications for this host + * @deprecated 2023-08-25: Deprecated in favour of host.hostApplications(status: PENDING). + */ + pendingApplications: HostApplicationCollection; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + plan: HostPlan; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** Returns a list of organizations that only transacted with this host and all its admins are also admins of this host. */ + potentialVendors: AccountCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + /** Returns the legal documents required by this host */ + requiredLegalDocuments: Array; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** Stripe connected account */ + stripe?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + /** The list of payment methods (Stripe, Paypal, manual bank transfer, etc ...) the Host can accept for its Collectives */ + supportedPaymentMethods?: Maybe>>; + /** The list of payout methods this Host accepts for its expenses */ + supportedPayoutMethods?: Maybe>>; + tags?: Maybe>>; + termsUrl?: Maybe; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + totalHostedAccounts?: Maybe; + /** @deprecated 2023-03-20: Renamed to totalHostedAccounts */ + totalHostedCollectives?: Maybe; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + /** Returns a list of transactions imports for this host */ + transactionsImports: TransactionsImportsCollection; + /** Returns a list of transactions imports sources for this host */ + transactionsImportsSources: Array>; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Returns a list of vendors that works with this host */ + vendors: VendorCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Host account */ +export type HostAccountingCategoriesArgs = { + account?: InputMaybe; + kind?: InputMaybe>; +}; + + +/** This represents an Host account */ +export type HostActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostContributionStatsArgs = { + account?: InputMaybe>; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostExpenseStatsArgs = { + account?: InputMaybe>; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostApplicationsArgs = { + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + searchTerm?: InputMaybe; + status?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostExpensesReportArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostMetricsArgs = { + account?: InputMaybe>; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostMetricsTimeSeriesArgs = { + account?: InputMaybe>; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostTransactionsReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostedAccountAgreementsArgs = { + accounts?: InputMaybe>>; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostHostedAccountsArgs = { + accountType?: InputMaybe>>; + balance?: InputMaybe; + consolidatedBalance?: InputMaybe; + currencies?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + isApproved?: InputMaybe; + isFrozen?: InputMaybe; + isUnhosted?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostHostedLegalDocumentsArgs = { + account?: InputMaybe>>; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + requestedAtFrom?: InputMaybe; + requestedAtTo?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostHostedVirtualCardCollectivesArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostHostedVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostHostedVirtualCardsArgs = { + collectiveAccountIds?: InputMaybe>>; + hasMissingReceipts?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + searchTerm?: InputMaybe; + spentAmountFrom?: InputMaybe; + spentAmountTo?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; + withExpensesDateFrom?: InputMaybe; + withExpensesDateTo?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostPendingApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostPotentialVendorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostTransactionsImportsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; +}; + + +/** This represents an Host account */ +export type HostUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Host account */ +export type HostUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostVendorsArgs = { + forAccount?: InputMaybe; + isArchived?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Host account */ +export type HostVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Host account */ +export type HostVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Host account */ +export type HostWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type HostApplication = { + __typename?: 'HostApplication'; + /** The account who applied to this host */ + account: Account; + /** Returns the list of comments for this host application, or `null` if user is not allowed to see them */ + comments?: Maybe; + /** The date on which the item was created */ + createdAt: Scalars['DateTime']['output']; + customData?: Maybe; + /** The host the collective applied to */ + host: Host; + id: Scalars['String']['output']; + message?: Maybe; + status?: Maybe; + /** The date on which the item was updated */ + updatedAt: Scalars['DateTime']['output']; +}; + + +export type HostApplicationCommentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; +}; + +/** A collection of "HostApplication" */ +export type HostApplicationCollection = Collection & { + __typename?: 'HostApplicationCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type HostApplicationReferenceInput = { + /** The public id identifying the host application (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; +}; + +export enum HostApplicationStatus { + APPROVED = 'APPROVED', + EXPIRED = 'EXPIRED', + PENDING = 'PENDING', + REJECTED = 'REJECTED' +} + +/** A collection of "Hosts" */ +export type HostCollection = Collection & { + __typename?: 'HostCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type HostExpensesReportNode = { + __typename?: 'HostExpensesReportNode'; + accountingCategory?: Maybe; + amount: Amount; + count: Scalars['Int']['output']; + date: Scalars['DateTime']['output']; + isHost: Scalars['Boolean']['output']; +}; + +/** EXPERIMENTAL (this may change or be deleted): Host expenses report */ +export type HostExpensesReports = { + __typename?: 'HostExpensesReports'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + nodes?: Maybe>; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +/** All supported expense types */ +export enum HostFeeStructure { + /** Custom fee for this Collective only */ + CUSTOM_FEE = 'CUSTOM_FEE', + /** Use global host fees */ + DEFAULT = 'DEFAULT', + /** Set a monthly retainer for this Collective */ + MONTHLY_RETAINER = 'MONTHLY_RETAINER' +} + +/** Host metrics related to collected and pending fees/tips. */ +export type HostMetrics = { + __typename?: 'HostMetrics'; + /** Amount in host fee shared with the platform */ + hostFeeShare?: Maybe; + /** Host fee sharing percent */ + hostFeeSharePercent?: Maybe; + /** Amount collected in host fees for given period */ + hostFees?: Maybe; + /** Amount in host fee shared requiring settlement */ + pendingHostFeeShare?: Maybe; + /** Amount collected in platform fees requiring settlement */ + pendingPlatformFees?: Maybe; + /** Amount collected in platform tips requiring settlement */ + pendingPlatformTips?: Maybe; + /** Amount collected in platform fees for given period */ + platformFees?: Maybe; + /** Amount collected in platform tips for given period */ + platformTips?: Maybe; + /** Amount in host fee shared not requiring settlement */ + settledHostFeeShare?: Maybe; + /** Total amount managed on behalf of hosted collectives */ + totalMoneyManaged?: Maybe; +}; + +/** Host metrics time series */ +export type HostMetricsTimeSeries = { + __typename?: 'HostMetricsTimeSeries'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + /** History of the share of host fees collected owed to Open Collective Inc. */ + hostFeeShare: TimeSeriesAmountWithSettlement; + /** History of the host fees collected */ + hostFees: TimeSeriesAmount; + /** History of the collected platform tips */ + platformTips: TimeSeriesAmount; + /** The interval between two data points */ + timeUnit: TimeUnit; + /** History of the total money managed by this host */ + totalMoneyManaged: TimeSeriesAmount; + /** History of the total money received by this host */ + totalReceived: TimeSeriesAmountWithKind; + /** History of the total money spent by this host */ + totalSpent: TimeSeriesAmountWithKind; +}; + +/** The name of the current plan and its characteristics. */ +export type HostPlan = { + __typename?: 'HostPlan'; + /** Whether this plan allows to use the added funds feature */ + addedFunds?: Maybe; + /** Amount limit for the added funds feature under this plan */ + addedFundsLimit?: Maybe; + /** Whether this plan allows to use the bank transfers feature */ + bankTransfers?: Maybe; + /** Amount limit for the bank transfers feature under this plan */ + bankTransfersLimit?: Maybe; + /** Whether this plan allows to use the host dashboard */ + hostDashboard?: Maybe; + /** Charge on revenues made through Host Fees. */ + hostFeeSharePercent?: Maybe; + /** Ability to charge Host Fees. */ + hostFees?: Maybe; + /** Number of collectives hosted */ + hostedCollectives?: Maybe; + /** Max number of collectives than can be hosted */ + hostedCollectivesLimit?: Maybe; + /** The public id identifying the account (ie: 5v08jk63-w4g9nbpz-j7qmyder-p7ozax5g) */ + id?: Maybe; + /** Whether this plan allows to use the manual payments feature */ + manualPayments?: Maybe; + /** The name of the plan */ + name?: Maybe; + /** Ability to collect Platform Tips. */ + platformTips?: Maybe; + /** Whether this plan allows to use the transferwise payouts feature */ + transferwisePayouts?: Maybe; + /** Amount limit for the transferwise payouts feature under this plan */ + transferwisePayoutsLimit?: Maybe; +}; + +export type HostTransactionReportNode = { + __typename?: 'HostTransactionReportNode'; + date: Scalars['DateTime']['output']; + managedFunds: TransactionReport; + operationalFunds: TransactionReport; +}; + +/** EXPERIMENTAL (this may change or be deleted): Host transaction report */ +export type HostTransactionReports = { + __typename?: 'HostTransactionReports'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + nodes?: Maybe>; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +/** A collection of hosted "Accounts" */ +export type HostedAccountCollection = Collection & { + __typename?: 'HostedAccountCollection'; + currencies?: Maybe>>; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummary = { + __typename?: 'HostedAccountSummary'; + /** Average calculated over the number of months/years the collective was approved or the number of months since dateFrom, whichever is less */ + contributionAverageCount?: Maybe; + /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ + contributionAverageTotal?: Maybe; + contributionCount?: Maybe; + contributionRefundedTotal?: Maybe; + contributionTotal?: Maybe; + /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ + expenseAverageCount?: Maybe; + /** Average calculated over the number of months the collective was approved or the number of months since dateFrom, whichever is less */ + expenseAverageTotal?: Maybe; + expenseCount?: Maybe; + expenseDistinctPayee?: Maybe; + expenseMaxValue?: Maybe; + expenseTotal?: Maybe; + hostFeeTotal?: Maybe; + receivedTotal?: Maybe; + receivedTotalAverage?: Maybe; + spentTotal?: Maybe; + spentTotalAverage?: Maybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummaryContributionAverageCountArgs = { + period?: InputMaybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummaryContributionAverageTotalArgs = { + period?: InputMaybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummaryExpenseAverageCountArgs = { + period?: InputMaybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummaryExpenseAverageTotalArgs = { + period?: InputMaybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummaryReceivedTotalAverageArgs = { + period?: InputMaybe; +}; + + +/** Return a summary of transaction info about a given account within the context of its current fiscal host */ +export type HostedAccountSummarySpentTotalAverageArgs = { + period?: InputMaybe; +}; + +/** Exposes information about an uploaded image file */ +export type ImageFileInfo = FileInfo & { + __typename?: 'ImageFileInfo'; + /** Blurhash of the image */ + blurHash?: Maybe; + /** If the file is an image, this will be the height of the image in pixels */ + height?: Maybe; + /** Unique identifier for the file */ + id: Scalars['String']['output']; + /** Name of the file */ + name?: Maybe; + /** Size of the file in bytes */ + size?: Maybe; + /** Mime type of the file */ + type: Scalars['String']['output']; + /** URL to access the file */ + url: Scalars['URL']['output']; + /** If the file is an image, this will be the width of the image in pixels */ + width?: Maybe; +}; + +export enum ImageFormat { + gif = 'gif', + jpg = 'jpg', + png = 'png', + svg = 'svg', + txt = 'txt' +} + +/** This represents an Individual account */ +export type Individual = Account & { + __typename?: 'Individual'; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Email for the account. For authenticated user: scope: "email". */ + email?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Has the account a password set? For authenticated user: scope: "account". */ + hasPassword?: Maybe; + hasSeenLatestChangelogEntry?: Maybe; + hasTwoFactorAuth?: Maybe; + /** If the individual is a host account, this will return the matching Host object */ + host?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + isFollowingConversation: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + isGuest: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** + * + * Address. This field is public for hosts, otherwise: + * - Users can see their own address + * - Hosts can see the address of users submitting expenses to their collectives + * + */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + newsletterOptIn?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + oAuthAuthorizations?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** The list of personal tokens created by this account. Admin only. Scope: "applications". */ + personalTokens?: Maybe; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + /** User two factor methods */ + twoFactorMethods?: Maybe>>; + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Individual account */ +export type IndividualActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualIsFollowingConversationArgs = { + id: Scalars['String']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualOAuthAuthorizationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualPersonalTokensArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Individual account */ +export type IndividualUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Individual account */ +export type IndividualVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Individual account */ +export type IndividualVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Individual account */ +export type IndividualWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type IndividualConfirmEmailResponse = { + __typename?: 'IndividualConfirmEmailResponse'; + /** The account that was confirmed */ + individual: Individual; + /** A new session token to use for the account. Only returned if user is signed in already. */ + sessionToken?: Maybe; +}; + +export type IndividualCreateInput = { + email: Scalars['String']['input']; + name: Scalars['String']['input']; +}; + +export type InviteMemberInput = { + description?: InputMaybe; + /** Reference to an account for the invitee */ + memberAccount?: InputMaybe; + /** Email and name of the invitee if no reference. */ + memberInfo?: InputMaybe; + /** Role of the invitee */ + role: MemberRole; + since?: InputMaybe; +}; + +/** Defines role of the last comment author */ +export enum LastCommentBy { + /** Collective Admin */ + COLLECTIVE_ADMIN = 'COLLECTIVE_ADMIN', + /** Fiscal Host Admin */ + HOST_ADMIN = 'HOST_ADMIN', + /** Expense Submitter */ + USER = 'USER' +} + +/** A legal document (e.g. W9, W8BEN, W8BEN-E) */ +export type LegalDocument = { + __typename?: 'LegalDocument'; + /** The account this legal document is for */ + account: Account; + /** URL to download the file. Must be logged in as a host with access to the document. The returned URL will be protected by authentication + 2FA. */ + documentLink?: Maybe; + /** Unique identifier for this legal document */ + id: Scalars['String']['output']; + /** Whether this legal document is expired */ + isExpired: Scalars['Boolean']['output']; + /** The date and time the request for this legal document was created */ + requestedAt: Scalars['DateTime']['output']; + /** The service that provided this legal document */ + service: LegalDocumentService; + /** The status of the request for this legal document */ + status: LegalDocumentRequestStatus; + /** The type of legal document */ + type: LegalDocumentType; + /** The date and time this legal document was last updated */ + updatedAt: Scalars['DateTime']['output']; + /** The year this legal document is for */ + year: Scalars['Int']['output']; +}; + +/** A collection of "LegalDocument" */ +export type LegalDocumentCollection = Collection & { + __typename?: 'LegalDocumentCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Status for a legal document */ +export enum LegalDocumentRequestStatus { + ERROR = 'ERROR', + INVALID = 'INVALID', + NOT_REQUESTED = 'NOT_REQUESTED', + RECEIVED = 'RECEIVED', + REQUESTED = 'REQUESTED' +} + +/** Type for a required legal document */ +export enum LegalDocumentService { + DROPBOX_FORMS = 'DROPBOX_FORMS', + OPENCOLLECTIVE = 'OPENCOLLECTIVE' +} + +/** Type for a required legal document */ +export enum LegalDocumentType { + /** US tax form (W9, W8BEN, W8BEN-E) */ + US_TAX_FORM = 'US_TAX_FORM' +} + +/** Type for Geographic location */ +export type Location = { + __typename?: 'Location'; + /** Postal address without country (eg. 12 opensource avenue, 7500 Paris) */ + address?: Maybe; + /** Two letters country code (eg. FR, BE...etc) */ + country?: Maybe; + /** Unique identifier for this location */ + id?: Maybe; + /** Latitude */ + lat?: Maybe; + /** Longitude */ + long?: Maybe; + /** A short name for the location (eg. Open Collective Headquarters) */ + name?: Maybe; + /** Structured JSON address */ + structured?: Maybe; +}; + +/** Input type for Geographic location */ +export type LocationInput = { + /** Postal address without country (eg. 12 opensource avenue, 7500 Paris) */ + address?: InputMaybe; + /** Two letters country code (eg. FR, BE...etc) */ + country?: InputMaybe; + /** Latitude */ + lat?: InputMaybe; + /** Longitude */ + long?: InputMaybe; + /** A short name for the location (eg. Open Collective Headquarters) */ + name?: InputMaybe; + /** Structured JSON address */ + structured?: InputMaybe; +}; + +export type Maximum_Virtual_Card_Limit_Amount_For_Interval = { + __typename?: 'MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL'; + ALL_TIME?: Maybe; + DAILY?: Maybe; + MONTHLY?: Maybe; + PER_AUTHORIZATION?: Maybe; + WEEKLY?: Maybe; + YEARLY?: Maybe; +}; + +export enum MarkAsUnPaidExpenseStatus { + APPROVED = 'APPROVED', + ERROR = 'ERROR', + INCOMPLETE = 'INCOMPLETE' +} + +/** This represents a Member relationship (ie: Organization backing a Collective) */ +export type Member = { + __typename?: 'Member'; + account?: Maybe; + createdAt?: Maybe; + /** Custom user description */ + description?: Maybe; + id?: Maybe; + /** If membership is inherited from parent collective */ + inherited?: Maybe; + /** Custom user message from member to the collective */ + publicMessage?: Maybe; + role?: Maybe; + since?: Maybe; + tier?: Maybe; + /** Total amount donated */ + totalDonations: Amount; + updatedAt?: Maybe; +}; + +/** A collection of "Members" (ie: Organization backing a Collective) */ +export type MemberCollection = Collection & { + __typename?: 'MemberCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** An invitation to join the members of a collective */ +export type MemberInvitation = { + __typename?: 'MemberInvitation'; + account: Account; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + id: Scalars['String']['output']; + /** The person who invited the member, if any */ + inviter?: Maybe; + memberAccount: Account; + role: MemberRole; + since?: Maybe; + tier?: Maybe; +}; + +export type MemberInvitationReferenceInput = { + /** The public id identifying the member invitation (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the invitation (ie: 580) */ + legacyId?: InputMaybe; +}; + +/** This represents a MemberOf relationship (ie: Collective backed by an Organization) */ +export type MemberOf = { + __typename?: 'MemberOf'; + account?: Maybe; + createdAt?: Maybe; + /** Custom user description */ + description?: Maybe; + id?: Maybe; + /** If membership is inherited from parent collective */ + inherited?: Maybe; + /** Custom user message from member to the collective */ + publicMessage?: Maybe; + role?: Maybe; + since?: Maybe; + tier?: Maybe; + /** Total amount donated */ + totalDonations: Amount; + updatedAt?: Maybe; +}; + +/** A collection of "MemberOf" (ie: Collective backed by an Organization) */ +export type MemberOfCollection = Collection & { + __typename?: 'MemberOfCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + roles?: Maybe>>; + totalCount?: Maybe; +}; + +/** An existing member role and account type combination used used to filter collections */ +export type MemberOfCollectionRoles = { + __typename?: 'MemberOfCollectionRoles'; + role: MemberRole; + type: AccountType; +}; + +/** All member roles */ +export enum MemberRole { + ACCOUNTANT = 'ACCOUNTANT', + ADMIN = 'ADMIN', + ATTENDEE = 'ATTENDEE', + BACKER = 'BACKER', + CONNECTED_ACCOUNT = 'CONNECTED_ACCOUNT', + CONTRIBUTOR = 'CONTRIBUTOR', + FOLLOWER = 'FOLLOWER', + /** @deprecated 2022-09-12: This role does not exist anymore */ + FUNDRAISER = 'FUNDRAISER', + HOST = 'HOST', + MEMBER = 'MEMBER' +} + +export type MergeAccountsResponse = { + __typename?: 'MergeAccountsResponse'; + /** The resulting account */ + account: Account; + /** A message to display to the user about the result */ + message?: Maybe; +}; + +/** This is the root mutation */ +export type Mutation = { + __typename?: 'Mutation'; + /** Add an agreement for the given host account. Scope: "host". */ + addAgreement: Agreement; + /** Add a new payment method to be used with an Order. Scope: "orders". */ + addCreditCard: CreditCardWithStripeError; + /** Add an emoji reaction. Scope: "conversations", "expenses" or "updates". */ + addEmojiReaction: EmojiReactionResponse; + /** Add funds to the given account. Scope: "host". */ + addFunds: Order; + /** Adds a Stripe payment method */ + addStripePaymentMethodFromSetupIntent: PaymentMethod; + /** Add 2FA to the Individual if it does not have it. Scope: "account". */ + addTwoFactorAuthTokenToIndividual: AddTwoFactorAuthTokenToIndividualResponse; + /** Apply to an host with a collective. Scope: "account". */ + applyToHost: Account; + /** Assign Virtual Card information to existing hosted collective. Scope: "virtualCards". */ + assignNewVirtualCard: VirtualCard; + /** [Root only] Ban accounts */ + banAccount: BanAccountResponse; + /** Cancel an order. Scope: "orders". */ + cancelOrder?: Maybe; + /** [Root only] Clears the cache for a given account */ + clearCacheForAccount: Account; + /** Confirm a credit card is ready for use after strong customer authentication. Scope: "orders". */ + confirmCreditCard: CreditCardWithStripeError; + /** Confirm email for Individual. Scope: "account". */ + confirmEmail: IndividualConfirmEmailResponse; + /** Mark an account as confirmed */ + confirmGuestAccount: ConfirmGuestAccountResponse; + /** Confirm an order (strong customer authentication). Scope: "orders". */ + confirmOrder: OrderWithPayment; + /** Connect a Plaid account */ + connectPlaidAccount: PlaidConnectAccountResponse; + /** Convert an organization to a vendor */ + convertOrganizationToVendor: Vendor; + createApplication?: Maybe; + /** Create a Collective. Scope: "account". */ + createCollective?: Maybe; + /** Create a comment. Scope: "conversations", "expenses" or "updates". */ + createComment?: Maybe; + /** Connect external account to Open Collective Account. Scope: "connectedAccounts". */ + createConnectedAccount?: Maybe; + /** Create a conversation. Scope: "conversations". */ + createConversation?: Maybe; + /** Create an Event. Scope: "account". */ + createEvent?: Maybe; + /** Submit an expense to a collective. Scope: "expenses". */ + createExpense: Expense; + /** Create a Fund. Scope: "account". */ + createFund?: Maybe; + /** [Root only] Create a member entry directly. For non-root users, use `inviteMember` */ + createMember: Member; + /** To submit a new order. Scope: "orders". */ + createOrder: OrderWithPayment; + /** Create an Organization. Scope: "account". */ + createOrganization?: Maybe; + /** Creates a Stripe payment intent */ + createPaymentIntent: PaymentIntent; + /** Create a new Payout Method to get paid through the platform. Scope: "expenses". */ + createPayoutMethod?: Maybe; + /** To submit a new order. Scope: "orders". */ + createPendingOrder: Order; + createPersonalToken: PersonalToken; + /** Create a Project. Scope: "account". */ + createProject?: Maybe; + /** Creates a Stripe setup intent */ + createSetupIntent: SetupIntent; + /** Create a tier. */ + createTier: Tier; + /** Create a new import. To manually add transactions to it, use `importTransactions`. */ + createTransactionsImport: TransactionsImport; + /** Create update. Scope: "updates". */ + createUpdate: Update; + /** Create a new vendor for given host */ + createVendor: Vendor; + /** Create new Stripe Virtual Card for existing hosted collective. Scope: "virtualCards". */ + createVirtualCard: VirtualCard; + /** Create WebAuthn public key registration request options */ + createWebAuthnRegistrationOptions: Scalars['JSON']['output']; + /** Create webhook. Scope: "webhooks". */ + createWebhook?: Maybe; + /** Adds or removes a policy on a given account. Scope: "account". */ + deleteAccount?: Maybe; + /** Delete an agreement for the given host account. Scope: "host". */ + deleteAgreement: Agreement; + deleteApplication?: Maybe; + deleteComment?: Maybe; + /** Delete ConnectedAccount. Scope: "connectedAccounts". */ + deleteConnectedAccount?: Maybe; + /** Delete an expense. Only work if the expense is rejected - please check permissions.canDelete. Scope: "expenses". */ + deleteExpense: Expense; + deletePersonalToken?: Maybe; + /** Delete a tier. */ + deleteTier: Tier; + /** Delete an import and all its associated rows */ + deleteTransactionsImport: Scalars['Boolean']['output']; + /** Delete update. Scope: "updates". */ + deleteUpdate: Update; + /** Delete a vendor */ + deleteVendor: Scalars['Boolean']['output']; + /** Delete Virtual Card. Scope: "virtualCards". */ + deleteVirtualCard?: Maybe; + /** Delete webhook. Scope: "webhooks". */ + deleteWebhook?: Maybe; + /** Persist an Expense as a draft and invite someone to edit and submit it. Scope: "expenses". */ + draftExpenseAndInviteUser: Expense; + /** Duplicate an account. Scope: "account". */ + duplicateAccount: Account; + /** Edit key properties of an account. Scope: "account". */ + editAccount: Host; + /** An endpoint for hosts to edit the fees structure of their hosted accounts. Scope: "host". */ + editAccountFeeStructure: Account; + /** [Root only] Edits account flags (deleted, banned, archived, trusted host) */ + editAccountFlags: Account; + /** An endpoint for hosts to edit the freeze status of their hosted accounts. Scope: "host". */ + editAccountFreezeStatus: Account; + /** Edit the settings for the given account. Scope: "account" or "host". */ + editAccountSetting: Account; + /** [Root only] Edits account type from User to Organization */ + editAccountType: Account; + /** Edit an accounting category. Returns the account with the updated categories. */ + editAccountingCategories: Account; + /** Add funds to the given account. Scope: "host". */ + editAddedFunds: Order; + /** Edit an agreement for the given host account. Scope: "host". */ + editAgreement: Agreement; + /** Edit a comment. Scope: "conversations", "expenses" or "updates". */ + editComment?: Maybe; + /** Edit a conversation. Scope: "conversations". */ + editConversation?: Maybe; + /** To update an existing expense */ + editExpense: Expense; + /** Edit the status of a legal document */ + editLegalDocumentStatus: LegalDocument; + /** Edit an existing member of the Collective. Scope: "account". */ + editMember: Member; + /** Edit an existing member invitation of the Collective. Scope: "account". */ + editMemberInvitation?: Maybe; + /** To edit a pending order. Scope: "orders". */ + editPendingOrder: Order; + /** Edit the public message for the given Member of a Collective. Scope: "account". */ + editPublicMessage: Member; + /** Edit a tier. */ + editTier: Tier; + /** Edit an import */ + editTransactionsImport: TransactionsImport; + /** Edit 2FA method */ + editTwoFactorAuthenticationMethod: Individual; + /** Edit update. Scope: "updates". */ + editUpdate: Update; + /** Edit an existing vendor */ + editVendor: Vendor; + /** Edit existing Virtual Card information. Scope: "virtualCards". */ + editVirtualCard: VirtualCard; + /** Follows a given Collective. Scope: "account" */ + followAccount: FollowAccountResult; + /** Returns true if user is following, false otherwise. Must be authenticated. Scope: "conversations". */ + followConversation?: Maybe; + /** Generate a Plaid Link token */ + generatePlaidLinkToken: PlaidLinkTokenCreateResponse; + /** Import transactions, manually or from a CSV file */ + importTransactions: TransactionsImport; + /** Invite a new member to the Collective. Scope: "account". */ + inviteMember: MemberInvitation; + /** [Root only] Merge two accounts, returns the result account */ + mergeAccounts: MergeAccountsResponse; + /** [Root only] A mutation to move expenses from one account to another */ + moveExpenses: Array>; + /** [Root only] A mutation to move orders from one account to another */ + moveOrders: Array>; + /** Pause active Virtual Card. Scope: "virtualCards". */ + pauseVirtualCard: VirtualCard; + /** Process the expense with the given action. Scope: "expenses". */ + processExpense: Expense; + /** Reply to a host application. Scope: "host". */ + processHostApplication: ProcessHostApplicationResponse; + /** A mutation for the host to approve or reject an order. Scope: "orders". */ + processPendingOrder: Order; + /** Publish update. Scope: "updates". */ + publishUpdate: Update; + /** Refunds a transaction. Scope: "transactions". */ + refundTransaction?: Maybe; + /** Regenerate two factor authentication recovery codes */ + regenerateRecoveryCodes?: Maybe>; + /** Rejects transaction, removes member from Collective, and sends a message to the contributor. Scope: "transactions". */ + rejectTransaction: Transaction; + /** Reject a virtual card request. Scope: "virtualCards" */ + rejectVirtualCardRequest: VirtualCardRequest; + /** Remove an emoji reaction. Scope: "conversations", "expenses" or "updates". */ + removeEmojiReaction: EmojiReactionResponse; + /** Removes the host for an account */ + removeHost: Account; + /** Remove a member from the Collective. Scope: "account". */ + removeMember?: Maybe; + /** Remove the given payout method. Scope: "expenses". */ + removePayoutMethod: PayoutMethod; + /** Remove 2FA from the Individual if it has been enabled. Scope: "account". */ + removeTwoFactorAuthTokenFromIndividual: Individual; + /** Endpoint to accept or reject an invitation to become a member. Scope: "account". */ + replyToMemberInvitation: Scalars['Boolean']['output']; + /** Request Virtual Card to host. Scope: "virtualCards". */ + requestVirtualCard?: Maybe; + /** To re-send the invitation to complete a draft expense. Scope: "expenses". */ + resendDraftExpenseInvite: Expense; + /** Resume paused Virtual Card. Scope: "virtualCards". */ + resumeVirtualCard: VirtualCard; + /** Revoke an OAuth authorization. Scope: "account". */ + revokeOAuthAuthorization: OAuthAuthorization; + /** [Root only] Anonymizes an account */ + rootAnonymizeAccount: Account; + /** Sends an email for guest to confirm their emails and create their Open Collective account */ + sendGuestConfirmationEmail: Scalars['Boolean']['output']; + /** Send a message to an account. Scope: "account" */ + sendMessage?: Maybe; + /** Send In-App Survey response */ + sendSurveyResponse?: Maybe; + /** Update the time which the user viewed the changelog updates. Scope: "account". */ + setChangelogViewDate: Individual; + /** Set email notification subscription for requesting logged-in user */ + setEmailNotification?: Maybe; + /** Update newsletter opt-in preference. Scope: "account". */ + setNewsletterOptIn: Individual; + /** Set password to Individual. Scope: "account". 2FA. */ + setPassword: SetPasswordResponse; + /** Adds or removes a policy on a given account. Scope: "account". */ + setPolicies: Account; + setTags: TagResponse; + /** Starts or resumes the process of notifying contributors for their PAUSED contributions */ + startResumeOrdersProcess: Account; + /** Submit a legal document */ + submitLegalDocument: LegalDocument; + /** Manually request a sync for Plaid account */ + syncPlaidAccount: TransactionsImport; + /** Unfollows a given Collective. Scope: "account" */ + unfollowAccount: UnfollowAccountResult; + /** Unpublish update. Scope: "updates". */ + unpublishUpdate: Update; + updateApplication?: Maybe; + /** Update an Order's amount, tier, or payment method. Scope: "orders". */ + updateOrder?: Maybe; + /** Update the accounting category of an order. Scope: "orders". */ + updateOrderAccountingCategory: Order; + updatePersonalToken: PersonalToken; + /** Updates collective social links */ + updateSocialLinks: Array; + /** Update transactions import rows to set new values or mark them as dismissed */ + updateTransactionsImportRows: TransactionsImport; + /** Update webhook. Scope: "webhooks". */ + updateWebhook?: Maybe; + uploadFile: Array; +}; + + +/** This is the root mutation */ +export type MutationAddAgreementArgs = { + account: AccountReferenceInput; + attachment?: InputMaybe; + expiresAt?: InputMaybe; + host: AccountReferenceInput; + notes?: InputMaybe; + title: Scalars['NonEmptyString']['input']; +}; + + +/** This is the root mutation */ +export type MutationAddCreditCardArgs = { + account: AccountReferenceInput; + creditCardInfo: CreditCardCreateInput; + isSavedForLater?: InputMaybe; + name: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationAddEmojiReactionArgs = { + comment?: InputMaybe; + emoji: Scalars['String']['input']; + update?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationAddFundsArgs = { + account: AccountReferenceInput; + accountingCategory?: InputMaybe; + amount: AmountInput; + description: Scalars['String']['input']; + fromAccount: AccountReferenceInput; + hostFeePercent?: InputMaybe; + invoiceTemplate?: InputMaybe; + memo?: InputMaybe; + paymentProcessorFee?: InputMaybe; + processedAt?: InputMaybe; + tax?: InputMaybe; + tier?: InputMaybe; + transactionsImportRow?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationAddStripePaymentMethodFromSetupIntentArgs = { + account: AccountReferenceInput; + setupIntent: SetupIntentInput; +}; + + +/** This is the root mutation */ +export type MutationAddTwoFactorAuthTokenToIndividualArgs = { + account: AccountReferenceInput; + token: Scalars['String']['input']; + type?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationApplyToHostArgs = { + applicationData?: InputMaybe; + collective: AccountReferenceInput; + host: AccountReferenceInput; + inviteMembers?: InputMaybe>>; + message?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationAssignNewVirtualCardArgs = { + account: AccountReferenceInput; + assignee: AccountReferenceInput; + virtualCard: VirtualCardInput; +}; + + +/** This is the root mutation */ +export type MutationBanAccountArgs = { + account: Array; + dryRun: Scalars['Boolean']['input']; + includeAssociatedAccounts: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationCancelOrderArgs = { + order: OrderReferenceInput; + reason?: InputMaybe; + reasonCode?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationClearCacheForAccountArgs = { + account: AccountReferenceInput; + type?: Array>; +}; + + +/** This is the root mutation */ +export type MutationConfirmCreditCardArgs = { + paymentMethod: PaymentMethodReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationConfirmEmailArgs = { + token: Scalars['NonEmptyString']['input']; +}; + + +/** This is the root mutation */ +export type MutationConfirmGuestAccountArgs = { + email: Scalars['EmailAddress']['input']; + emailConfirmationToken: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationConfirmOrderArgs = { + guestToken?: InputMaybe; + order: OrderReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationConnectPlaidAccountArgs = { + host: AccountReferenceInput; + name?: InputMaybe; + publicToken: Scalars['String']['input']; + sourceName?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationConvertOrganizationToVendorArgs = { + host: AccountReferenceInput; + organization: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationCreateApplicationArgs = { + application: ApplicationCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateCollectiveArgs = { + applicationData?: InputMaybe; + collective: CollectiveCreateInput; + host?: InputMaybe; + inviteMembers?: InputMaybe>>; + message?: InputMaybe; + skipApprovalTestOnly?: InputMaybe; + skipDefaultAdmin?: InputMaybe; + testPayload?: InputMaybe; + user?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationCreateCommentArgs = { + comment: CommentCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateConnectedAccountArgs = { + account: AccountReferenceInput; + connectedAccount: ConnectedAccountCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateConversationArgs = { + CollectiveId?: InputMaybe; + account?: InputMaybe; + html: Scalars['String']['input']; + tags?: InputMaybe>>; + title: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationCreateEventArgs = { + account: AccountReferenceInput; + event: EventCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateExpenseArgs = { + account: AccountReferenceInput; + expense: ExpenseCreateInput; + privateComment?: InputMaybe; + recurring?: InputMaybe; + transactionsImportRow?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationCreateFundArgs = { + fund: FundCreateInput; + host?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationCreateMemberArgs = { + account: AccountReferenceInput; + description?: InputMaybe; + memberAccount: AccountReferenceInput; + role: MemberRole; + since?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationCreateOrderArgs = { + order: OrderCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateOrganizationArgs = { + inviteMembers?: InputMaybe>>; + organization: OrganizationCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreatePaymentIntentArgs = { + guestInfo?: InputMaybe; + paymentIntent: PaymentIntentInput; +}; + + +/** This is the root mutation */ +export type MutationCreatePayoutMethodArgs = { + account: AccountReferenceInput; + payoutMethod: PayoutMethodInput; +}; + + +/** This is the root mutation */ +export type MutationCreatePendingOrderArgs = { + order: PendingOrderCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreatePersonalTokenArgs = { + personalToken: PersonalTokenCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateProjectArgs = { + disableContributions?: Scalars['Boolean']['input']; + disableExpenses?: Scalars['Boolean']['input']; + parent?: InputMaybe; + project: ProjectCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateSetupIntentArgs = { + account: AccountReferenceInput; + host: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationCreateTierArgs = { + account: AccountReferenceInput; + tier: TierCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateTransactionsImportArgs = { + account: AccountReferenceInput; + name: Scalars['NonEmptyString']['input']; + source: Scalars['NonEmptyString']['input']; + type: TransactionsImportType; +}; + + +/** This is the root mutation */ +export type MutationCreateUpdateArgs = { + update: UpdateCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateVendorArgs = { + host: AccountReferenceInput; + vendor: VendorCreateInput; +}; + + +/** This is the root mutation */ +export type MutationCreateVirtualCardArgs = { + account: AccountReferenceInput; + assignee: AccountReferenceInput; + limitAmount: AmountInput; + limitInterval: VirtualCardLimitInterval; + name: Scalars['String']['input']; + virtualCardRequest?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationCreateWebAuthnRegistrationOptionsArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationCreateWebhookArgs = { + webhook: WebhookCreateInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteAccountArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteAgreementArgs = { + agreement: AgreementReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteApplicationArgs = { + application: ApplicationReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteCommentArgs = { + id: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationDeleteConnectedAccountArgs = { + connectedAccount: ConnectedAccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteExpenseArgs = { + expense: ExpenseReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeletePersonalTokenArgs = { + personalToken: PersonalTokenReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteTierArgs = { + stopRecurringContributions?: Scalars['Boolean']['input']; + tier: TierReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteTransactionsImportArgs = { + id: Scalars['NonEmptyString']['input']; +}; + + +/** This is the root mutation */ +export type MutationDeleteUpdateArgs = { + id: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationDeleteVendorArgs = { + vendor: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteVirtualCardArgs = { + virtualCard: VirtualCardReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDeleteWebhookArgs = { + webhook: WebhookReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationDraftExpenseAndInviteUserArgs = { + account: AccountReferenceInput; + expense: ExpenseInviteDraftInput; + lockedFields?: InputMaybe>>; + skipInvite?: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationDuplicateAccountArgs = { + account: AccountReferenceInput; + connect?: Scalars['Boolean']['input']; + include?: InputMaybe; + newName?: InputMaybe; + newSlug?: InputMaybe; + oldName?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditAccountArgs = { + account: AccountUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationEditAccountFeeStructureArgs = { + account: AccountReferenceInput; + hostFeePercent: Scalars['Float']['input']; + isCustomFee: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationEditAccountFlagsArgs = { + account: AccountReferenceInput; + isArchived?: InputMaybe; + isTrustedHost?: InputMaybe; + isTwoFactorAuthEnabled?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditAccountFreezeStatusArgs = { + account: AccountReferenceInput; + action: AccountFreezeAction; + message?: InputMaybe; + messageForAccountAdmins?: InputMaybe; + messageForContributors?: InputMaybe; + pauseExistingRecurringContributions?: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationEditAccountSettingArgs = { + account: AccountReferenceInput; + key: Scalars['AccountSettingsKey']['input']; + value: Scalars['JSON']['input']; +}; + + +/** This is the root mutation */ +export type MutationEditAccountTypeArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationEditAccountingCategoriesArgs = { + account: AccountReferenceInput; + categories: Array; +}; + + +/** This is the root mutation */ +export type MutationEditAddedFundsArgs = { + account: AccountReferenceInput; + accountingCategory?: InputMaybe; + amount: AmountInput; + description: Scalars['String']['input']; + fromAccount: AccountReferenceInput; + hostFeePercent?: InputMaybe; + invoiceTemplate?: InputMaybe; + memo?: InputMaybe; + order: OrderReferenceInput; + paymentProcessorFee?: InputMaybe; + processedAt?: InputMaybe; + tax?: InputMaybe; + tier?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditAgreementArgs = { + agreement: AgreementReferenceInput; + attachment?: InputMaybe; + expiresAt?: InputMaybe; + notes?: InputMaybe; + title?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditCommentArgs = { + comment: CommentUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationEditConversationArgs = { + id: Scalars['String']['input']; + tags?: InputMaybe>>; + title: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationEditExpenseArgs = { + draftKey?: InputMaybe; + expense: ExpenseUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationEditLegalDocumentStatusArgs = { + file?: InputMaybe; + host: AccountReferenceInput; + id: Scalars['String']['input']; + message?: InputMaybe; + status: LegalDocumentRequestStatus; +}; + + +/** This is the root mutation */ +export type MutationEditMemberArgs = { + account: AccountReferenceInput; + description?: InputMaybe; + memberAccount: AccountReferenceInput; + role?: InputMaybe; + since?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditMemberInvitationArgs = { + account: AccountReferenceInput; + description?: InputMaybe; + memberAccount: AccountReferenceInput; + role?: InputMaybe; + since?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditPendingOrderArgs = { + order: PendingOrderEditInput; +}; + + +/** This is the root mutation */ +export type MutationEditPublicMessageArgs = { + fromAccount: AccountReferenceInput; + message?: InputMaybe; + toAccount: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationEditTierArgs = { + tier: TierUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationEditTransactionsImportArgs = { + id: Scalars['NonEmptyString']['input']; + name?: InputMaybe; + source?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationEditTwoFactorAuthenticationMethodArgs = { + name?: InputMaybe; + userTwoFactorMethod: UserTwoFactorMethodReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationEditUpdateArgs = { + update: UpdateUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationEditVendorArgs = { + archive?: InputMaybe; + vendor: VendorEditInput; +}; + + +/** This is the root mutation */ +export type MutationEditVirtualCardArgs = { + assignee?: InputMaybe; + limitAmount?: InputMaybe; + limitInterval?: InputMaybe; + name?: InputMaybe; + virtualCard: VirtualCardReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationFollowAccountArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationFollowConversationArgs = { + id: Scalars['String']['input']; + isActive?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationImportTransactionsArgs = { + csvConfig?: InputMaybe; + data: Array; + file?: InputMaybe; + id: Scalars['NonEmptyString']['input']; +}; + + +/** This is the root mutation */ +export type MutationInviteMemberArgs = { + account: AccountReferenceInput; + description?: InputMaybe; + memberAccount: AccountReferenceInput; + role: MemberRole; + since?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationMergeAccountsArgs = { + dryRun?: Scalars['Boolean']['input']; + fromAccount: AccountReferenceInput; + toAccount: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationMoveExpensesArgs = { + destinationAccount: AccountReferenceInput; + expenses: Array; +}; + + +/** This is the root mutation */ +export type MutationMoveOrdersArgs = { + fromAccount?: InputMaybe; + makeIncognito?: InputMaybe; + orders: Array; + tier?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationPauseVirtualCardArgs = { + virtualCard: VirtualCardReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationProcessExpenseArgs = { + action: ExpenseProcessAction; + draftKey?: InputMaybe; + expense: ExpenseReferenceInput; + message?: InputMaybe; + paymentParams?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationProcessHostApplicationArgs = { + account?: InputMaybe; + action: ProcessHostApplicationAction; + host?: InputMaybe; + hostApplication?: InputMaybe; + message?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationProcessPendingOrderArgs = { + action: ProcessOrderAction; + order: OrderUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationPublishUpdateArgs = { + id: Scalars['String']['input']; + notificationAudience?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationRefundTransactionArgs = { + ignoreBalanceCheck?: InputMaybe; + transaction: TransactionReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationRejectTransactionArgs = { + message?: InputMaybe; + transaction: TransactionReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationRejectVirtualCardRequestArgs = { + virtualCardRequest?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationRemoveEmojiReactionArgs = { + comment?: InputMaybe; + emoji: Scalars['String']['input']; + update?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationRemoveHostArgs = { + account: AccountReferenceInput; + message?: InputMaybe; + messageForContributors?: InputMaybe; + pauseContributions?: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationRemoveMemberArgs = { + account: AccountReferenceInput; + isInvitation?: InputMaybe; + memberAccount: AccountReferenceInput; + role: MemberRole; +}; + + +/** This is the root mutation */ +export type MutationRemovePayoutMethodArgs = { + payoutMethodId: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationRemoveTwoFactorAuthTokenFromIndividualArgs = { + account: AccountReferenceInput; + code?: InputMaybe; + type?: InputMaybe; + userTwoFactorMethod?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationReplyToMemberInvitationArgs = { + accept: Scalars['Boolean']['input']; + invitation: MemberInvitationReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationRequestVirtualCardArgs = { + account: AccountReferenceInput; + budget?: InputMaybe; + notes?: InputMaybe; + purpose?: InputMaybe; + spendingLimitAmount?: InputMaybe; + spendingLimitInterval?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationResendDraftExpenseInviteArgs = { + expense: ExpenseReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationResumeVirtualCardArgs = { + virtualCard: VirtualCardReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationRevokeOAuthAuthorizationArgs = { + oAuthAuthorization: OAuthAuthorizationReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationRootAnonymizeAccountArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationSendGuestConfirmationEmailArgs = { + email: Scalars['EmailAddress']['input']; +}; + + +/** This is the root mutation */ +export type MutationSendMessageArgs = { + account: AccountReferenceInput; + message: Scalars['NonEmptyString']['input']; + subject?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationSendSurveyResponseArgs = { + okToContact?: InputMaybe; + responseId: Scalars['String']['input']; + score: Scalars['Int']['input']; + surveyKey: Scalars['String']['input']; + text?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationSetChangelogViewDateArgs = { + changelogViewDate: Scalars['DateTime']['input']; +}; + + +/** This is the root mutation */ +export type MutationSetEmailNotificationArgs = { + account?: InputMaybe; + active: Scalars['Boolean']['input']; + type: ActivityAndClassesType; +}; + + +/** This is the root mutation */ +export type MutationSetNewsletterOptInArgs = { + newsletterOptIn: Scalars['Boolean']['input']; +}; + + +/** This is the root mutation */ +export type MutationSetPasswordArgs = { + currentPassword?: InputMaybe; + password: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationSetPoliciesArgs = { + account: AccountReferenceInput; + policies: PoliciesInput; +}; + + +/** This is the root mutation */ +export type MutationSetTagsArgs = { + expense?: InputMaybe; + order?: InputMaybe; + tags?: InputMaybe>>; +}; + + +/** This is the root mutation */ +export type MutationStartResumeOrdersProcessArgs = { + account: AccountReferenceInput; + message?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationSubmitLegalDocumentArgs = { + account: AccountReferenceInput; + formData: Scalars['JSON']['input']; + type: LegalDocumentType; +}; + + +/** This is the root mutation */ +export type MutationSyncPlaidAccountArgs = { + connectedAccount: ConnectedAccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationUnfollowAccountArgs = { + account: AccountReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationUnpublishUpdateArgs = { + id: Scalars['String']['input']; +}; + + +/** This is the root mutation */ +export type MutationUpdateApplicationArgs = { + application: ApplicationUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationUpdateOrderArgs = { + amount?: InputMaybe; + order: OrderReferenceInput; + paymentMethod?: InputMaybe; + paypalSubscriptionId?: InputMaybe; + tier?: InputMaybe; +}; + + +/** This is the root mutation */ +export type MutationUpdateOrderAccountingCategoryArgs = { + accountingCategory?: InputMaybe; + order: OrderReferenceInput; +}; + + +/** This is the root mutation */ +export type MutationUpdatePersonalTokenArgs = { + personalToken: PersonalTokenUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationUpdateSocialLinksArgs = { + account: AccountReferenceInput; + socialLinks: Array; +}; + + +/** This is the root mutation */ +export type MutationUpdateTransactionsImportRowsArgs = { + dismissAll?: InputMaybe; + id: Scalars['NonEmptyString']['input']; + restoreAll?: InputMaybe; + rows?: InputMaybe>; +}; + + +/** This is the root mutation */ +export type MutationUpdateWebhookArgs = { + webhook: WebhookUpdateInput; +}; + + +/** This is the root mutation */ +export type MutationUploadFileArgs = { + files: Array; +}; + +export type NewAccountOrReferenceInput = { + email?: InputMaybe; + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** + * The internal id of the account (ie: 580) + * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. + */ + legacyId?: InputMaybe; + legalName?: InputMaybe; + name?: InputMaybe; + newsletterOptIn?: InputMaybe; + organization?: InputMaybe; + /** The slug identifying the account (ie: babel for https://opencollective.com/babel) */ + slug?: InputMaybe; +}; + +export type NewAccountOrganizationInput = { + description?: InputMaybe; + legalName?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + website?: InputMaybe; +}; + +/** A collection of "Application" */ +export type OAuthApplicationCollection = Collection & { + __typename?: 'OAuthApplicationCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** An OAuth authorization */ +export type OAuthAuthorization = { + __typename?: 'OAuthAuthorization'; + account: Individual; + application: Application; + /** The time of creation */ + createdAt: Scalars['DateTime']['output']; + /** The time of expiration */ + expiresAt: Scalars['DateTime']['output']; + id?: Maybe; + /** The last time of token was used */ + lastUsedAt?: Maybe; + /** Whether this OAuth token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA: Scalars['Boolean']['output']; + /** The attached scopes. */ + scope?: Maybe>>; + /** The time of last update */ + updatedAt: Scalars['DateTime']['output']; +}; + +/** A collection of "OAuth Authorizations" */ +export type OAuthAuthorizationCollection = Collection & { + __typename?: 'OAuthAuthorizationCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type OAuthAuthorizationReferenceInput = { + /** The id identifying the OAuth Authorization (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; +}; + +/** All supported OAuth scopes */ +export enum OAuthScope { + /** Manage your account, collectives and organizations. */ + account = 'account', + /** Create and manage OAuth applications. */ + applications = 'applications', + /** Create and manage connected accounts. */ + connectedAccounts = 'connectedAccounts', + /** Create and manage conversations. */ + conversations = 'conversations', + /** Access your email address. */ + email = 'email', + /** Create and manage expenses, payout methods. */ + expenses = 'expenses', + /** Administrate fiscal hosts. */ + host = 'host', + /** Access your incognito account. */ + incognito = 'incognito', + /** Create and manage contributions, payment methods. */ + orders = 'orders', + /** Perform critical administrative operations. */ + root = 'root', + /** Refund and reject recorded transactions. */ + transactions = 'transactions', + /** Create and manage updates. */ + updates = 'updates', + /** Create and manage virtual cards. */ + virtualCards = 'virtualCards', + /** Create and manage webhooks */ + webhooks = 'webhooks' +} + +/** To configure the OCR parsing */ +export type OcrParsingOptionsInput = { + /** The currency that you'd like to use for the amounts */ + currency?: InputMaybe; +}; + +/** Order model */ +export type Order = { + __typename?: 'Order'; + /** The accounting category attached to this order */ + accountingCategory?: Maybe; + /** The list of activities (ie. approved, edited, etc) for this Order ordered by date ascending */ + activities: ActivityCollection; + /** Base order amount (without platform tip) */ + amount: Amount; + /** Returns the list of comments for this order, or `null` if user is not allowed to see them */ + comments?: Maybe; + createdAt?: Maybe; + /** The account who created this order */ + createdByAccount?: Maybe; + /** Custom data related to the order, based on the fields described by tier.customFields. Must be authenticated as an admin of the fromAccount or toAccount (returns null otherwise) */ + customData?: Maybe; + /** Data related to the order */ + data?: Maybe; + description?: Maybe; + frequency?: Maybe; + fromAccount?: Maybe; + /** Host fee percent attached to the Order. */ + hostFeePercent?: Maybe; + id: Scalars['String']['output']; + lastChargedAt?: Maybe; + legacyId: Scalars['Int']['output']; + /** This represents a MemberOf relationship (ie: Collective backed by an Individual) attached to the Order. */ + membership?: Maybe; + /** Memo field which adds additional details about the order. For example in added funds this can be a note to mark what method (cheque, money order) the funds were received. */ + memo?: Maybe; + /** Whether the order needs confirmation (3DSecure/SCA) */ + needsConfirmation?: Maybe; + nextChargeDate?: Maybe; + paymentMethod?: Maybe; + /** Payment processor fee attached to manually Added Funds. */ + paymentProcessorFee?: Maybe; + paymentProcessorUrl?: Maybe; + /** Data about the pending contribution */ + pendingContributionData?: Maybe; + /** The permissions given to current logged in user for this order */ + permissions: OrderPermissions; + /** Platform Tip attached to the Order. */ + platformTipAmount?: Maybe; + platformTipEligible?: Maybe; + /** Date the funds were received. */ + processedAt?: Maybe; + quantity?: Maybe; + status?: Maybe; + tags: Array>; + tax?: Maybe; + /** Tax amount */ + taxAmount?: Maybe; + /** @deprecated 2023-04-13: Please use `tax` instead. */ + taxes: Array>; + tier?: Maybe; + toAccount?: Maybe; + /** Total order amount, including all taxes and platform tip */ + totalAmount: Amount; + /** WARNING: Total amount donated between collectives, though there will be edge cases especially when looking on the Order level, as the order id is not used in calculating this. */ + totalDonations: Amount; + /** Transactions for this order ordered by createdAt ASC */ + transactions: Array>; + updatedAt?: Maybe; +}; + + +/** Order model */ +export type OrderCommentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; +}; + +/** Possible fields you can use to order by */ +export enum OrderByFieldType { + /** The financial activity of the collective (number of transactions) */ + ACTIVITY = 'ACTIVITY', + BALANCE = 'BALANCE', + CREATED_AT = 'CREATED_AT', + HOSTED_COLLECTIVES_COUNT = 'HOSTED_COLLECTIVES_COUNT', + HOST_RANK = 'HOST_RANK', + LAST_CHARGED_AT = 'LAST_CHARGED_AT', + MEMBER_COUNT = 'MEMBER_COUNT', + NAME = 'NAME', + RANK = 'RANK', + TOTAL_CONTRIBUTED = 'TOTAL_CONTRIBUTED' +} + +/** Input to order collection */ +export type OrderByInput = { + /** Ordering direction. */ + direction: OrderDirection; + /** Field to order by. */ + field: OrderByFieldType; +}; + +/** A collection of "Orders" */ +export type OrderCollection = Collection & { + __typename?: 'OrderCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Some context about how an order was created */ +export type OrderContextInput = { + /** Whether this order was created using the embedded contribution flow */ + isEmbed?: InputMaybe; + /** Whether this order was created using the new platform tip flow */ + isNewPlatformTipFlow?: InputMaybe; +}; + +/** Input to create a new order */ +export type OrderCreateInput = { + /** The contribution amount for 1 quantity, without platform contribution and taxes */ + amount: AmountInput; + /** Some context about how this order was created */ + context?: InputMaybe; + /** If the tier has some "customFields", use this field to set their values */ + customData?: InputMaybe; + /** Data related to this order */ + data?: InputMaybe; + frequency: ContributionFrequency; + /** The profile making the order. Can be null for guest contributions. */ + fromAccount?: InputMaybe; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Use this when fromAccount is null to pass the guest info */ + guestInfo?: InputMaybe; + /** Whether this is transferring the remaining balance from a project/event/collective */ + isBalanceTransfer?: InputMaybe; + /** The payment method used for this order */ + paymentMethod?: InputMaybe; + /** Platform tip attached to this order */ + platformTipAmount?: InputMaybe; + quantity?: Scalars['Int']['input']; + /** Tags associated to the order */ + tags?: InputMaybe>>; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** + * Use this field to set the taxes associated to this order + * @deprecated 2023-04-11: Please use `tax` instead + */ + taxes?: InputMaybe>>; + /** The tier you are contributing to */ + tier?: InputMaybe; + /** The profile you want to contribute to */ + toAccount: AccountReferenceInput; +}; + +/** Possible directions in which to order a list of items */ +export enum OrderDirection { + ASC = 'ASC', + DESC = 'DESC' +} + +/** Some context about how an order was created */ +export type OrderFromAccountInfo = { + email?: InputMaybe; + legalName?: InputMaybe; + /** The location of the contributor. Account location will be updated with this address if different from the existing one. */ + location?: InputMaybe; + name?: InputMaybe; +}; + +/** The user or system that paused the order */ +export enum OrderPausedBy { + /** The collective */ + COLLECTIVE = 'COLLECTIVE', + /** The host of the collective */ + HOST = 'HOST', + /** The platform */ + PLATFORM = 'PLATFORM', + /** Individual who administers the account for this contribution */ + USER = 'USER' +} + +/** Fields for the user permissions on an order */ +export type OrderPermissions = { + __typename?: 'OrderPermissions'; + /** Whether the current user can comment on this order */ + canComment: Scalars['Boolean']['output']; + /** Whether the current user can edit this pending order */ + canEdit: Scalars['Boolean']['output']; + /** Whether the current user can mark this order as expired */ + canMarkAsExpired: Scalars['Boolean']['output']; + /** Whether the current user can mark this order as unpaid */ + canMarkAsPaid: Scalars['Boolean']['output']; + /** If paused, whether the current user can resume this order */ + canResume: Scalars['Boolean']['output']; + /** Whether the current user can see private activities for this order */ + canSeePrivateActivities: Scalars['Boolean']['output']; + /** Whether the current user can set tags on this order */ + canSetTags: Scalars['Boolean']['output']; + /** Whether the current user can update the accounting category of this order */ + canUpdateAccountingCategory: Scalars['Boolean']['output']; + id: Scalars['String']['output']; +}; + +export type OrderReferenceInput = { + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; +}; + +/** All order statuses */ +export enum OrderStatus { + ACTIVE = 'ACTIVE', + CANCELLED = 'CANCELLED', + DISPUTED = 'DISPUTED', + ERROR = 'ERROR', + EXPIRED = 'EXPIRED', + IN_REVIEW = 'IN_REVIEW', + NEW = 'NEW', + PAID = 'PAID', + PAUSED = 'PAUSED', + PENDING = 'PENDING', + PROCESSING = 'PROCESSING', + REFUNDED = 'REFUNDED', + REJECTED = 'REJECTED', + REQUIRE_CLIENT_CONFIRMATION = 'REQUIRE_CLIENT_CONFIRMATION' +} + +export type OrderTax = { + __typename?: 'OrderTax'; + percentage: Scalars['Int']['output']; + type: OrderTaxType; +}; + +/** Input to set taxes for an order */ +export type OrderTaxInput = { + amount: AmountInput; + /** Country of the account ordering, to know from where to apply the tax */ + country?: InputMaybe; + /** Tax identification number, if any */ + idNumber?: InputMaybe; + type: OrderTaxType; +}; + +/** The type of a tax like GST, VAT, etc */ +export enum OrderTaxType { + /** New Zealand Good and Services Tax */ + GST = 'GST', + /** European Value Added Tax */ + VAT = 'VAT' +} + +export type OrderUpdateInput = { + /** Amount received by collective, excluding any tips, taxes or fees */ + amount?: InputMaybe; + /** Host fee percent to be applied to the order */ + hostFeePercent?: InputMaybe; + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; + /** Amount paid in fees for the payment processor */ + paymentProcessorFee?: InputMaybe; + /** Amount intended as tip for the platform */ + platformTip?: InputMaybe; + /** Date the funds were received */ + processedAt?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** Reference to the transaction import row to link the order to */ + transactionsImportRow?: InputMaybe; +}; + +export type OrderWithPayment = { + __typename?: 'OrderWithPayment'; + /** If donating as a guest, this will contain your guest token to confirm your order */ + guestToken?: Maybe; + /** The order created */ + order: Order; + /** This field will be set if the order was created but there was an error with Stripe during the payment */ + stripeError?: Maybe; +}; + +/** This represents an Organization account */ +export type Organization = Account & AccountWithContributions & { + __typename?: 'Organization'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** @deprecated 2022-07-18: This field is deprecated and will return null */ + email?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** If the organization is a host account, this will return the matching Host object */ + host?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** + * + * Address. This field is public for hosts, otherwise: + * - Users can see the addresses of the collectives they're admin of; if they are not an admin they can only see the country that the org belong to. + * - Hosts can see the address of organizations submitting expenses to their collectives. + * + */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Organization account */ +export type OrganizationActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Organization account */ +export type OrganizationUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Organization account */ +export type OrganizationVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Organization account */ +export type OrganizationVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Organization account */ +export type OrganizationWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type OrganizationCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** The profile avatar image */ + image?: InputMaybe; + legalName?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug: Scalars['String']['input']; + /** @deprecated 2024-11-12: Please use socialLinks */ + website?: InputMaybe; +}; + +export type ParseUploadedFileResult = { + __typename?: 'ParseUploadedFileResult'; + /** The parsed expense information */ + expense?: Maybe; + /** A message describing the parsing result, usually an error message (if parsing failed) or some warnings */ + message?: Maybe; + /** Whether the parsing was successful */ + success: Scalars['Boolean']['output']; +}; + +/** A Stripe payment intent */ +export type PaymentIntent = { + __typename?: 'PaymentIntent'; + id: Scalars['String']['output']; + paymentIntentClientSecret: Scalars['String']['output']; + stripeAccount: Scalars['String']['output']; + stripeAccountPublishableSecret: Scalars['String']['output']; +}; + +/** Input to create a Stripe payment intent */ +export type PaymentIntentInput = { + amount: AmountInput; + frequency?: InputMaybe; + fromAccount?: InputMaybe; + toAccount: AccountReferenceInput; +}; + +/** PaymentMethod model */ +export type PaymentMethod = { + __typename?: 'PaymentMethod'; + account?: Maybe; + /** Returns the balance amount and the currency of this paymentMethod */ + balance: Amount; + createdAt?: Maybe; + data?: Maybe; + expiryDate?: Maybe; + id?: Maybe; + legacyId?: Maybe; + limitedToHosts?: Maybe>>; + /** For monthly gift cards, this field will return the monthly limit */ + monthlyLimit?: Maybe; + name?: Maybe; + /** Get all the orders associated with this payment method */ + orders?: Maybe; + /** + * Defines the type of the payment method. Meant to be moved to "type" in the future. + * @deprecated 2021-03-02: Please use service + type + */ + providerType?: Maybe; + service?: Maybe; + /** For gift cards, this field will return to the source payment method */ + sourcePaymentMethod?: Maybe; + type?: Maybe; +}; + + +/** PaymentMethod model */ +export type PaymentMethodOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + +/** An input to use for creating or retrieving payment methods */ +export type PaymentMethodInput = { + /** When creating a credit card, use this field to set its info */ + creditCardInfo?: InputMaybe; + /** The id assigned to the payment method */ + id?: InputMaybe; + /** Whether this payment method should be saved for future payments */ + isSavedForLater?: InputMaybe; + /** + * Type of this payment method + * @deprecated 2021-03-02: Please use service + type + */ + legacyType?: InputMaybe; + /** Name of this payment method */ + name?: InputMaybe; + /** @deprecated 2021-08-20: Please use type instead */ + newType?: InputMaybe; + /** The Payment Intent ID used in this checkout */ + paymentIntentId?: InputMaybe; + /** To pass when type is PAYPAL */ + paypalInfo?: InputMaybe; + /** Service of this payment method */ + service?: InputMaybe; + /** Type of this payment method */ + type?: InputMaybe; +}; + +export enum PaymentMethodLegacyType { + ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', + ADDED_FUNDS = 'ADDED_FUNDS', + ALIPAY = 'ALIPAY', + BACS_DEBIT = 'BACS_DEBIT', + BANCONTACT = 'BANCONTACT', + BANK_TRANSFER = 'BANK_TRANSFER', + CREDIT_CARD = 'CREDIT_CARD', + CRYPTO = 'CRYPTO', + GIFT_CARD = 'GIFT_CARD', + PAYMENT_INTENT = 'PAYMENT_INTENT', + PAYPAL = 'PAYPAL', + PREPAID_BUDGET = 'PREPAID_BUDGET', + SEPA_DEBIT = 'SEPA_DEBIT', + US_BANK_ACCOUNT = 'US_BANK_ACCOUNT' +} + +export type PaymentMethodReferenceInput = { + /** The id assigned to the payment method */ + id?: InputMaybe; +}; + +export enum PaymentMethodService { + OPENCOLLECTIVE = 'OPENCOLLECTIVE', + PAYPAL = 'PAYPAL', + STRIPE = 'STRIPE', + THEGIVINGBLOCK = 'THEGIVINGBLOCK', + WISE = 'WISE' +} + +export enum PaymentMethodType { + ADAPTIVE = 'ADAPTIVE', + ALIPAY = 'ALIPAY', + BACS_DEBIT = 'BACS_DEBIT', + BANCONTACT = 'BANCONTACT', + BANK_TRANSFER = 'BANK_TRANSFER', + COLLECTIVE = 'COLLECTIVE', + CREDITCARD = 'CREDITCARD', + CRYPTO = 'CRYPTO', + DEFAULT = 'DEFAULT', + GIFTCARD = 'GIFTCARD', + HOST = 'HOST', + LINK = 'LINK', + MANUAL = 'MANUAL', + PAYMENT = 'PAYMENT', + PAYMENT_INTENT = 'PAYMENT_INTENT', + PAYOUT = 'PAYOUT', + PREPAID = 'PREPAID', + SEPA_DEBIT = 'SEPA_DEBIT', + SUBSCRIPTION = 'SUBSCRIPTION', + SWISH = 'SWISH', + US_BANK_ACCOUNT = 'US_BANK_ACCOUNT', + VIRTUAL_CARD = 'VIRTUAL_CARD', + /** @deprecated Please use uppercase values */ + adaptive = 'adaptive', + /** @deprecated Please use uppercase values */ + alipay = 'alipay', + /** @deprecated Please use uppercase values */ + bacs_debit = 'bacs_debit', + /** @deprecated Please use uppercase values */ + bancontact = 'bancontact', + /** @deprecated Please use uppercase values */ + bank_transfer = 'bank_transfer', + /** @deprecated Please use uppercase values */ + collective = 'collective', + /** @deprecated Please use uppercase values */ + creditcard = 'creditcard', + /** @deprecated Please use uppercase values */ + crypto = 'crypto', + /** @deprecated Please use uppercase values */ + default = 'default', + /** @deprecated Please use uppercase values */ + giftcard = 'giftcard', + /** @deprecated Please use uppercase values */ + host = 'host', + /** @deprecated Please use uppercase values */ + link = 'link', + /** @deprecated Please use uppercase values */ + manual = 'manual', + /** @deprecated Please use uppercase values */ + payment = 'payment', + /** @deprecated Please use uppercase values */ + paymentintent = 'paymentintent', + /** @deprecated Please use uppercase values */ + payout = 'payout', + /** @deprecated Please use uppercase values */ + prepaid = 'prepaid', + /** @deprecated Please use uppercase values */ + sepa_debit = 'sepa_debit', + /** @deprecated Please use uppercase values */ + subscription = 'subscription', + /** @deprecated Please use uppercase values */ + swish = 'swish', + /** @deprecated Please use uppercase values */ + us_bank_account = 'us_bank_account', + /** @deprecated Please use uppercase values */ + virtual_card = 'virtual_card' +} + +/** A payout method */ +export type PayoutMethod = { + __typename?: 'PayoutMethod'; + /** The actual data for this payout method. Content depends on the type. */ + data?: Maybe; + /** Unique identifier for this payout method */ + id: Scalars['String']['output']; + /** Whether this payout method has been saved to be used for future payouts */ + isSaved?: Maybe; + /** A friendly name for users to easily find their payout methods */ + name?: Maybe; + /** The type of this payout method (usually the payment provider) */ + type?: Maybe; +}; + +export type PayoutMethodInput = { + data?: InputMaybe; + id?: InputMaybe; + isSaved?: InputMaybe; + legacyId?: InputMaybe; + name?: InputMaybe; + type?: InputMaybe; +}; + +export enum PayoutMethodType { + ACCOUNT_BALANCE = 'ACCOUNT_BALANCE', + BANK_ACCOUNT = 'BANK_ACCOUNT', + CREDIT_CARD = 'CREDIT_CARD', + OTHER = 'OTHER', + PAYPAL = 'PAYPAL' +} + +export type PaypalPaymentInput = { + data?: InputMaybe; + orderId?: InputMaybe; + subscriptionId?: InputMaybe; + token?: InputMaybe; +}; + +/** A PayPal plan to associate with a contribution */ +export type PaypalPlan = { + __typename?: 'PaypalPlan'; + id: Scalars['String']['output']; +}; + +/** Input to create a new pending order */ +export type PendingOrderCreateInput = { + /** The accounting category of this order */ + accountingCategory?: InputMaybe; + /** The contribution amount, without platform contribution and taxes */ + amount: AmountInput; + /** Public order description */ + description?: InputMaybe; + /** When is the money expected? */ + expectedAt?: InputMaybe; + /** The profile making the contribution. */ + fromAccount: AccountReferenceInput; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Custom Host fee percent for this order */ + hostFeePercent?: InputMaybe; + /** Private memo for the host */ + memo?: InputMaybe; + /** Payment method expected for this order */ + paymentMethod?: InputMaybe; + /** External identifier for the order */ + ponumber?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** The tier you are contributing to */ + tier?: InputMaybe; + /** The collective you want to contribute to */ + toAccount: AccountReferenceInput; +}; + +export type PendingOrderData = { + __typename?: 'PendingOrderData'; + expectedAt?: Maybe; + fromAccountInfo?: Maybe; + memo?: Maybe; + paymentMethod?: Maybe; + ponumber?: Maybe; +}; + +/** Input to edit an existing pending order */ +export type PendingOrderEditInput = { + /** The accounting category of this order */ + accountingCategory?: InputMaybe; + /** The contribution amount, without platform contribution and taxes */ + amount: AmountInput; + /** Public order description */ + description?: InputMaybe; + /** When is the money expected? */ + expectedAt?: InputMaybe; + /** The profile making the contribution. */ + fromAccount?: InputMaybe; + /** Additional information about the contributing profile */ + fromAccountInfo?: InputMaybe; + /** Custom Host fee percent for this order */ + hostFeePercent?: InputMaybe; + /** The public id identifying the order (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the order (ie: 4242) */ + legacyId?: InputMaybe; + /** Private memo for the host */ + memo?: InputMaybe; + /** Payment method expected for this order */ + paymentMethod?: InputMaybe; + /** Platform tip attached to this order */ + platformTipAmount?: InputMaybe; + /** External identifier for the order */ + ponumber?: InputMaybe; + /** The tax to apply to the order */ + tax?: InputMaybe; + /** The tier you are contributing to */ + tier?: InputMaybe; +}; + +export type PendingOrderFromAccountInfo = { + __typename?: 'PendingOrderFromAccountInfo'; + email?: Maybe; + name?: Maybe; +}; + +export type Permission = { + __typename?: 'Permission'; + allowed: Scalars['Boolean']['output']; + reason?: Maybe; + reasonDetails?: Maybe; +}; + +/** A personal token */ +export type PersonalToken = { + __typename?: 'PersonalToken'; + /** The account that owns this personal token */ + account: Individual; + /** The date on which the personal token was created */ + createdAt?: Maybe; + /** The date on which the personal token expires */ + expiresAt?: Maybe; + /** Unique identifier for this personal token */ + id: Scalars['String']['output']; + /** A friendly name for users to easily find their personal tokens */ + name?: Maybe; + /** Whether this token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA: Scalars['Boolean']['output']; + /** The scopes of the personal token */ + scope?: Maybe>>; + /** The personal token */ + token?: Maybe; + /** The date on which the personal token was last updated */ + updatedAt?: Maybe; +}; + +/** A collection of "PersonalToken" */ +export type PersonalTokenCollection = Collection & { + __typename?: 'PersonalTokenCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Input type for PersonalToken */ +export type PersonalTokenCreateInput = { + /** The account to use as the owner of the application. Defaults to currently logged in user. */ + account?: InputMaybe; + expiresAt?: InputMaybe; + name?: InputMaybe; + /** Whether this token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA?: InputMaybe; + scope?: InputMaybe>>; +}; + +export type PersonalTokenReferenceInput = { + /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the personal-token (ie: 4242) */ + legacyId?: InputMaybe; +}; + +/** Input type for PersonalToken */ +export type PersonalTokenUpdateInput = { + expiresAt?: InputMaybe; + /** The public id identifying the personal-token (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the personal-token (ie: 4242) */ + legacyId?: InputMaybe; + name?: InputMaybe; + /** Whether this token is allowed to directly use operations that would normally require 2FA */ + preAuthorize2FA?: InputMaybe; + scope?: InputMaybe>>; +}; + +export type PlaidConnectAccountResponse = { + __typename?: 'PlaidConnectAccountResponse'; + /** The connected account that was created */ + connectedAccount: ConnectedAccount; + /** The transactions import that was created */ + transactionsImport: TransactionsImport; +}; + +export type PlaidLinkTokenCreateResponse = { + __typename?: 'PlaidLinkTokenCreateResponse'; + /** The expiration date for the link token in ISO 8601 format. */ + expiration: Scalars['String']['output']; + /** A URL of a Plaid-hosted Link flow that will use the Link token returned by this request. Only present if the client is enabled for Host */ + hostedLinkUrl?: Maybe; + /** The link token that will be used to initialize the Plaid Link flow. */ + linkToken: Scalars['String']['output']; + /** A unique identifier for the request, which can be used for troubleshooting. */ + requestId: Scalars['String']['output']; +}; + +export type Policies = { + __typename?: 'Policies'; + COLLECTIVE_ADMINS_CAN_REFUND?: Maybe; + COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS?: Maybe; + COLLECTIVE_MINIMUM_ADMINS?: Maybe; + EXPENSE_AUTHOR_CANNOT_APPROVE?: Maybe; + EXPENSE_CATEGORIZATION?: Maybe; + EXPENSE_POLICIES?: Maybe; + EXPENSE_PUBLIC_VENDORS?: Maybe; + MAXIMUM_VIRTUAL_CARD_LIMIT_AMOUNT_FOR_INTERVAL?: Maybe; + REQUIRE_2FA_FOR_ADMINS?: Maybe; + id?: Maybe; +}; + +export type PoliciesCollectiveExpenseAuthorCannotApprove = { + amountInCents?: InputMaybe; + appliesToHostedCollectives?: InputMaybe; + appliesToSingleAdminCollectives?: InputMaybe; + enabled?: InputMaybe; +}; + +export type PoliciesCollectiveMinimumAdminsInput = { + applies?: InputMaybe; + freeze?: InputMaybe; + numberOfAdmins?: InputMaybe; +}; + +export type PoliciesExpenseCategorizationInput = { + requiredForCollectiveAdmins?: InputMaybe; + requiredForExpenseSubmitters?: InputMaybe; +}; + +export type PoliciesExpensePolicies = { + invoicePolicy?: InputMaybe; + receiptPolicy?: InputMaybe; + titlePolicy?: InputMaybe; +}; + +export type PoliciesInput = { + COLLECTIVE_ADMINS_CAN_REFUND?: InputMaybe; + COLLECTIVE_ADMINS_CAN_SEE_PAYOUT_METHODS?: InputMaybe; + COLLECTIVE_MINIMUM_ADMINS?: InputMaybe; + EXPENSE_AUTHOR_CANNOT_APPROVE?: InputMaybe; + EXPENSE_CATEGORIZATION?: InputMaybe; + EXPENSE_POLICIES?: InputMaybe; + EXPENSE_PUBLIC_VENDORS?: InputMaybe; + REQUIRE_2FA_FOR_ADMINS?: InputMaybe; +}; + +/** Defines how the policy is applied */ +export enum PolicyApplication { + ALL_COLLECTIVES = 'ALL_COLLECTIVES', + NEW_COLLECTIVES = 'NEW_COLLECTIVES' +} + +/** Parameters for paying an expense */ +export type ProcessExpensePaymentParams = { + /** Date funds were cleared on the fiscal host bank, Wise, PayPal, Stripe or any other external account holding these funds. */ + clearedAt?: InputMaybe; + /** Who is responsible for paying any due fees. */ + feesPayer?: InputMaybe; + /** Bypass automatic integrations (ie. PayPal, Transferwise) to process the expense manually */ + forceManual?: InputMaybe; + /** New expense status when triggering MARK_AS_UNPAID */ + markAsUnPaidStatus?: InputMaybe; + /** Payment method using for paying the expense */ + paymentMethodService?: InputMaybe; + /** The fee charged by payment processor in host currency */ + paymentProcessorFeeInHostCurrency?: InputMaybe; + /** Whether the payment processor fees should be refunded when triggering MARK_AS_UNPAID */ + shouldRefundPaymentProcessorFee?: InputMaybe; + /** The total amount paid in host currency */ + totalAmountPaidInHostCurrency?: InputMaybe; + /** Transfer details for fulfilling the expense */ + transfer?: InputMaybe; +}; + +export type ProcessExpenseTransferParams = { + /** Wise transfer details */ + details?: InputMaybe; +}; + +/** Action taken for an account application to the host */ +export enum ProcessHostApplicationAction { + /** Approve the account request to be hosted */ + APPROVE = 'APPROVE', + /** Rejects the account request to be hosted */ + REJECT = 'REJECT', + /** Sends a private message to the admins of the account */ + SEND_PRIVATE_MESSAGE = 'SEND_PRIVATE_MESSAGE', + /** Creates a public conversation */ + SEND_PUBLIC_MESSAGE = 'SEND_PUBLIC_MESSAGE' +} + +export type ProcessHostApplicationResponse = { + __typename?: 'ProcessHostApplicationResponse'; + /** The account that applied to the host */ + account: Account; + /** When sending a public message, this field will have the info about the conversation created */ + conversation?: Maybe; + hostApplication?: Maybe; +}; + +/** Action to apply on the order */ +export enum ProcessOrderAction { + /** To mark the order as expired */ + MARK_AS_EXPIRED = 'MARK_AS_EXPIRED', + /** To mark the order as paid */ + MARK_AS_PAID = 'MARK_AS_PAID' +} + +/** This represents an Project account */ +export type Project = Account & AccountWithContributions & AccountWithHost & AccountWithParent & { + __typename?: 'Project'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + /** Date of approval by the Fiscal Host. */ + approvedAt?: Maybe; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Returns the Fiscal Host */ + host?: Maybe; + /** Returns agreements this account has with its host, or null if not enough permissions. */ + hostAgreements?: Maybe; + /** Returns the Fiscal Host application */ + hostApplication?: Maybe; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + /** Fees percentage that the host takes for this collective */ + hostFeePercent?: Maybe; + /** Describe how the host charges the collective */ + hostFeesStructure?: Maybe; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether it's active: can accept financial contributions and pay expenses. */ + isActive: Scalars['Boolean']['output']; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether it's approved by the Fiscal Host */ + isApproved: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** The Account parenting this account */ + parent?: Maybe; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + summary?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date when the collective was last unfrozen by current Fiscal Host */ + unfrozenAt?: Maybe; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents an Project account */ +export type ProjectActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectHostAgreementsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectHostFeePercentArgs = { + paymentMethodService?: InputMaybe; + paymentMethodType?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectSummaryArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents an Project account */ +export type ProjectUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents an Project account */ +export type ProjectVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents an Project account */ +export type ProjectVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents an Project account */ +export type ProjectWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +export type ProjectCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + description: Scalars['String']['input']; + /** The profile avatar image */ + image?: InputMaybe; + name: Scalars['String']['input']; + settings?: InputMaybe; + slug: Scalars['String']['input']; + /** The social links in order of preference */ + socialLinks?: InputMaybe>; + tags?: InputMaybe>>; +}; + +/** This is the root query */ +export type Query = { + __typename?: 'Query'; + account?: Maybe; + accounts: AccountCollection; + activities: ActivityCollection; + application?: Maybe; + collective?: Maybe; + conversation?: Maybe; + /** Get exchange rates from Open Collective */ + currencyExchangeRate: Array; + event?: Maybe; + expense?: Maybe; + expenseTagStats: TagStatsCollection; + expenses: ExpenseCollection; + fund?: Maybe; + host?: Maybe; + hostApplication?: Maybe; + hosts?: Maybe; + individual?: Maybe; + loggedInAccount?: Maybe; + me?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + order?: Maybe; + orders: OrderCollection; + organization?: Maybe; + paypalPlan: PaypalPlan; + /** Get a personal token by reference */ + personalToken?: Maybe; + project?: Maybe; + /** [!] Warning: this query is currently in beta and the API might change */ + search: SearchResponse; + tagStats: TagStatsCollection; + tier?: Maybe; + /** Fetch a single transaction */ + transaction?: Maybe; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroup?: Maybe; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + transactions: TransactionCollection; + /** Fetch a transactions import */ + transactionsImport?: Maybe; + update?: Maybe; + /** This query currently returns only published updates */ + updates: UpdateCollection; + virtualCard?: Maybe; + virtualCardRequest?: Maybe; + virtualCardRequests: VirtualCardRequestCollection; +}; + + +/** This is the root query */ +export type QueryAccountArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryAccountsArgs = { + consolidatedBalance?: InputMaybe; + country?: InputMaybe>>; + hasCustomContributionsEnabled?: InputMaybe; + host?: InputMaybe>>; + includeArchived?: InputMaybe; + includeVendorsForHost?: InputMaybe; + isActive?: InputMaybe; + isHost?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + parent?: InputMaybe>>; + searchTerm?: InputMaybe; + skipGuests?: InputMaybe; + skipRecentAccounts?: InputMaybe; + tag?: InputMaybe>>; + tagSearchOperator?: TagSearchOperator; + type?: InputMaybe>>; +}; + + +/** This is the root query */ +export type QueryActivitiesArgs = { + account: Array; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeParentAccount?: Scalars['Boolean']['input']; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: Scalars['Boolean']['input']; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + timeline?: Scalars['Boolean']['input']; + type?: InputMaybe>; +}; + + +/** This is the root query */ +export type QueryApplicationArgs = { + clientId?: InputMaybe; + id?: InputMaybe; + legacyId?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryCollectiveArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryConversationArgs = { + id: Scalars['String']['input']; +}; + + +/** This is the root query */ +export type QueryCurrencyExchangeRateArgs = { + requests: Array; +}; + + +/** This is the root query */ +export type QueryEventArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryExpenseArgs = { + draftKey?: InputMaybe; + expense?: InputMaybe; + id?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryExpenseTagStatsArgs = { + account?: InputMaybe; + host?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tagSearchTerm?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This is the root query */ +export type QueryFundArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryHostArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryHostApplicationArgs = { + hostApplication?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryHostsArgs = { + country?: InputMaybe>>; + currency?: InputMaybe; + includeArchived?: InputMaybe; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; + skipGuests?: InputMaybe; + skipRecentAccounts?: InputMaybe; + tag?: InputMaybe>>; + tagSearchOperator?: TagSearchOperator; + tags?: InputMaybe>>; +}; + + +/** This is the root query */ +export type QueryIndividualArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This is the root query */ +export type QueryOrderArgs = { + order: OrderReferenceInput; +}; + + +/** This is the root query */ +export type QueryOrdersArgs = { + account?: InputMaybe; + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryOrganizationArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryPaypalPlanArgs = { + account: AccountReferenceInput; + amount: AmountInput; + frequency: ContributionFrequency; + order?: InputMaybe; + tier?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryPersonalTokenArgs = { + id?: InputMaybe; + legacyId?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryProjectArgs = { + githubHandle?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; + throwIfMissing?: InputMaybe; +}; + + +/** This is the root query */ +export type QuerySearchArgs = { + account?: InputMaybe; + defaultLimit?: Scalars['Int']['input']; + host?: InputMaybe; + searchTerm: Scalars['String']['input']; + timeout?: Scalars['Int']['input']; +}; + + +/** This is the root query */ +export type QueryTagStatsArgs = { + host?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; + tagSearchTerm?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryTierArgs = { + throwIfMissing?: Scalars['Boolean']['input']; + tier: TierReferenceInput; +}; + + +/** This is the root query */ +export type QueryTransactionArgs = { + id?: InputMaybe; + transaction?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryTransactionGroupArgs = { + account: AccountReferenceInput; + groupId: Scalars['String']['input']; +}; + + +/** This is the root query */ +export type QueryTransactionGroupsArgs = { + account: AccountReferenceInput; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryTransactionsArgs = { + account?: InputMaybe>; + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This is the root query */ +export type QueryTransactionsImportArgs = { + id: Scalars['String']['input']; +}; + + +/** This is the root query */ +export type QueryUpdateArgs = { + account?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; +}; + + +/** This is the root query */ +export type QueryUpdatesArgs = { + accountTag?: InputMaybe>>; + accountType?: InputMaybe>>; + host?: InputMaybe>>; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; +}; + + +/** This is the root query */ +export type QueryVirtualCardArgs = { + throwIfMissing?: Scalars['Boolean']['input']; + virtualCard: VirtualCardReferenceInput; +}; + + +/** This is the root query */ +export type QueryVirtualCardRequestArgs = { + throwIfMissing?: Scalars['Boolean']['input']; + virtualCardRequest: VirtualCardRequestReferenceInput; +}; + + +/** This is the root query */ +export type QueryVirtualCardRequestsArgs = { + collective?: InputMaybe>>; + host: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + status?: InputMaybe>>; +}; + +/** A recurring expense object */ +export type RecurringExpense = { + __typename?: 'RecurringExpense'; + account: Account; + /** The time this expense will cease to be recurring */ + endsAt?: Maybe; + fromAccount: Account; + /** Unique identifier for this recurring expense */ + id: Scalars['String']['output']; + /** The interval in which this recurring expense is created */ + interval: RecurringExpenseInterval; + /** The last time this recurring expense was paid for */ + lastDraftedAt: Scalars['DateTime']['output']; + /** The last expense created by this recurring expense record paid for */ + lastExpenseCreated?: Maybe; +}; + +export type RecurringExpenseInput = { + /** The date when this recurring expense should cease */ + endsAt?: InputMaybe; + /** The interval in which this recurring expense is created */ + interval: RecurringExpenseInterval; +}; + +/** All supported intervals for recurring expenses */ +export enum RecurringExpenseInterval { + day = 'day', + month = 'month', + quarter = 'quarter', + week = 'week', + year = 'year' +} + +export type SearchResponse = { + __typename?: 'SearchResponse'; + /** Search results */ + results: SearchResults; +}; + +/** Search results for all types */ +export type SearchResults = { + __typename?: 'SearchResults'; + /** Search results for Accounts */ + accounts?: Maybe; + /** Search results for Comments */ + comments?: Maybe; + /** Search results for Expenses */ + expenses?: Maybe; + /** Search results for HostApplications */ + hostApplications?: Maybe; + /** Search results for Orders */ + orders?: Maybe; + /** Search results for Tiers */ + tiers?: Maybe; + /** Search results for Transactions */ + transactions?: Maybe; + /** Search results for Updates */ + updates?: Maybe; +}; + + +/** Search results for all types */ +export type SearchResultsAccountsArgs = { + isHost?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; +}; + +export type SearchResultsAccounts = { + __typename?: 'SearchResultsAccounts'; + collection: AccountCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsComments = { + __typename?: 'SearchResultsComments'; + collection: CommentCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsExpenses = { + __typename?: 'SearchResultsExpenses'; + collection: ExpenseCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsHostApplications = { + __typename?: 'SearchResultsHostApplications'; + collection: HostApplicationCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsOrders = { + __typename?: 'SearchResultsOrders'; + collection: OrderCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsTiers = { + __typename?: 'SearchResultsTiers'; + collection: TierCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsTransactions = { + __typename?: 'SearchResultsTransactions'; + collection: TransactionCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SearchResultsUpdates = { + __typename?: 'SearchResultsUpdates'; + collection: UpdateCollection; + highlights?: Maybe; + maxScore: Scalars['Float']['output']; +}; + +export type SecurityCheck = { + __typename?: 'SecurityCheck'; + /** SecurityCheck details */ + details?: Maybe; + /** The SecurityCheck level */ + level: SecurityCheckLevel; + /** SecurityCheck description message */ + message: Scalars['String']['output']; + /** The SecurityCheck scope */ + scope: SecurityCheckScope; +}; + +/** All supported SecurityCheck levels */ +export enum SecurityCheckLevel { + HIGH = 'HIGH', + LOW = 'LOW', + MEDIUM = 'MEDIUM', + PASS = 'PASS' +} + +/** All supported SecurityCheck scopes */ +export enum SecurityCheckScope { + COLLECTIVE = 'COLLECTIVE', + PAYEE = 'PAYEE', + PAYOUT_METHOD = 'PAYOUT_METHOD', + USER = 'USER' +} + +export type SendMessageResult = { + __typename?: 'SendMessageResult'; + success?: Maybe; +}; + +export type SetPasswordResponse = { + __typename?: 'SetPasswordResponse'; + individual: Individual; + token?: Maybe; +}; + +/** A Stripe setup intent */ +export type SetupIntent = { + __typename?: 'SetupIntent'; + id: Scalars['String']['output']; + setupIntentClientSecret: Scalars['String']['output']; + stripeAccount: Scalars['String']['output']; + stripeAccountPublishableSecret: Scalars['String']['output']; +}; + +/** A Stripe setup intent */ +export type SetupIntentInput = { + id: Scalars['String']['input']; + stripeAccount: Scalars['String']['input']; +}; + +/** A social link */ +export type SocialLink = { + __typename?: 'SocialLink'; + createdAt?: Maybe; + type: SocialLinkType; + updatedAt?: Maybe; + url: Scalars['URL']['output']; +}; + +export type SocialLinkInput = { + type: SocialLinkType; + url: Scalars['URL']['input']; +}; + +/** The type of social link */ +export enum SocialLinkType { + BLUESKY = 'BLUESKY', + DISCORD = 'DISCORD', + DISCOURSE = 'DISCOURSE', + FACEBOOK = 'FACEBOOK', + GHOST = 'GHOST', + GIT = 'GIT', + GITHUB = 'GITHUB', + GITLAB = 'GITLAB', + INSTAGRAM = 'INSTAGRAM', + LINKEDIN = 'LINKEDIN', + MASTODON = 'MASTODON', + MATTERMOST = 'MATTERMOST', + MEETUP = 'MEETUP', + PEERTUBE = 'PEERTUBE', + PIXELFED = 'PIXELFED', + SLACK = 'SLACK', + THREADS = 'THREADS', + TIKTOK = 'TIKTOK', + TUMBLR = 'TUMBLR', + TWITCH = 'TWITCH', + TWITTER = 'TWITTER', + WEBSITE = 'WEBSITE', + YOUTUBE = 'YOUTUBE' +} + +/** Stripe connected account properties */ +export type StripeConnectedAccount = { + __typename?: 'StripeConnectedAccount'; + issuingBalance?: Maybe; + username?: Maybe; +}; + +export type StripeError = { + __typename?: 'StripeError'; + account?: Maybe; + message?: Maybe; + response?: Maybe; +}; + +export type TagResponse = { + __typename?: 'TagResponse'; + expense?: Maybe; + order?: Maybe; +}; + +/** The operator to use when searching with tags */ +export enum TagSearchOperator { + AND = 'AND', + OR = 'OR' +} + +/** Statistics for a given tag */ +export type TagStat = { + __typename?: 'TagStat'; + /** Total amount for this tag */ + amount?: Maybe; + /** Number of entries for this tag */ + count: Scalars['Int']['output']; + /** An unique identifier for this tag */ + id: Scalars['String']['output']; + /** Name/Label of the tag */ + tag: Scalars['String']['output']; +}; + +/** A collection of "Tags" */ +export type TagStatsCollection = Collection & { + __typename?: 'TagStatsCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Information about a tax */ +export type TaxInfo = { + __typename?: 'TaxInfo'; + /** An unique identifier for this tax (GST, VAT, etc) */ + id: Scalars['String']['output']; + /** Tax ID number of the 3rd party receiving/paying the tax */ + idNumber?: Maybe; + /** + * Percentage applied, between 0-100 + * @deprecated Please use `rate` instead + */ + percentage: Scalars['Int']['output']; + /** Percentage applied, between 0-1 */ + rate: Scalars['Float']['output']; + /** Identifier for this tax (GST, VAT, etc) */ + type: OrderTaxType; +}; + +/** Input to set taxes for an expense */ +export type TaxInput = { + /** An optional tax amount to make sure the tax displayed in your frontend matches the one calculated by the API */ + amount?: InputMaybe; + /** Country ISO code of the entity paying the tax */ + country?: InputMaybe; + /** Tax identification number, if any */ + idNumber?: InputMaybe; + /** Tax rate as a float number between 0 and 1 */ + rate: Scalars['Float']['input']; + /** Tax type */ + type: TaxType; +}; + +/** The type of a tax like GST, VAT, etc */ +export enum TaxType { + /** New Zealand Good and Services Tax */ + GST = 'GST', + /** European Value Added Tax */ + VAT = 'VAT' +} + +/** Tier model */ +export type Tier = { + __typename?: 'Tier'; + amount: Amount; + amountType: TierAmountType; + /** Number of tickets available. Returns null if there is no limit. */ + availableQuantity?: Maybe; + button?: Maybe; + /** Returns a list of all the contributors for this tier */ + contributors: ContributorCollection; + currency?: Maybe; + customFields?: Maybe; + description?: Maybe; + endsAt?: Maybe; + frequency: TierFrequency; + goal: Amount; + id: Scalars['String']['output']; + /** @deprecated 2020-08-24: Please use "frequency" */ + interval?: Maybe; + invoiceTemplate?: Maybe; + legacyId: Scalars['Int']['output']; + /** A long, html-formatted description. */ + longDescription?: Maybe; + maxQuantity?: Maybe; + minimumAmount: Amount; + name?: Maybe; + /** Get all orders */ + orders: OrderCollection; + presets?: Maybe>>; + requireAddress: Scalars['Boolean']['output']; + singleTicket?: Maybe; + slug?: Maybe; + stats?: Maybe; + type: TierType; + useStandalonePage?: Maybe; + /** Link to a video (YouTube, Vimeo). */ + videoUrl?: Maybe; +}; + + +/** Tier model */ +export type TierContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** Tier model */ +export type TierOrdersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + status?: InputMaybe>>; +}; + +export enum TierAmountType { + FIXED = 'FIXED', + FLEXIBLE = 'FLEXIBLE' +} + +/** A collection of "Tiers" */ +export type TierCollection = Collection & { + __typename?: 'TierCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type TierCreateInput = { + amount?: InputMaybe; + amountType: TierAmountType; + button?: InputMaybe; + description?: InputMaybe; + frequency: TierFrequency; + goal?: InputMaybe; + invoiceTemplate?: InputMaybe; + maxQuantity?: InputMaybe; + minimumAmount?: InputMaybe; + name: Scalars['NonEmptyString']['input']; + presets?: InputMaybe>; + singleTicket?: InputMaybe; + type: TierType; + useStandalonePage?: InputMaybe; +}; + +export enum TierFrequency { + FLEXIBLE = 'FLEXIBLE', + MONTHLY = 'MONTHLY', + ONETIME = 'ONETIME', + YEARLY = 'YEARLY' +} + +export enum TierInterval { + flexible = 'flexible', + month = 'month', + year = 'year' +} + +export type TierReferenceInput = { + /** The id assigned to the Tier */ + id?: InputMaybe; + /** Pass this flag to reference the custom tier (/donate) */ + isCustom?: InputMaybe; + /** The DB id assigned to the Tier */ + legacyId?: InputMaybe; +}; + +/** Stats about a tier */ +export type TierStats = { + __typename?: 'TierStats'; + id: Scalars['String']['output']; + /** How much money is given for this tier for each tier.interval (monthly/yearly). For flexible tiers, this amount is a monthly average of contributions amount, taking into account both yearly and monthly subscriptions. */ + recurringAmount: Amount; + /** Total amount donated for this tier, in cents. */ + totalAmountReceived: Amount; +}; + +export enum TierType { + DONATION = 'DONATION', + MEMBERSHIP = 'MEMBERSHIP', + PRODUCT = 'PRODUCT', + SERVICE = 'SERVICE', + TICKET = 'TICKET', + TIER = 'TIER' +} + +export type TierUpdateInput = { + amount?: InputMaybe; + amountType?: InputMaybe; + button?: InputMaybe; + description?: InputMaybe; + frequency?: InputMaybe; + goal?: InputMaybe; + /** The public id identifying the tier (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id: Scalars['String']['input']; + invoiceTemplate?: InputMaybe; + longDescription?: InputMaybe; + maxQuantity?: InputMaybe; + minimumAmount?: InputMaybe; + name?: InputMaybe; + presets?: InputMaybe>; + singleTicket?: InputMaybe; + type?: InputMaybe; + useStandalonePage?: InputMaybe; + videoUrl?: InputMaybe; +}; + +export type TimeSeries = { + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +/** Amount time series */ +export type TimeSeriesAmount = TimeSeries & { + __typename?: 'TimeSeriesAmount'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + /** Time series data points */ + nodes: Array; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +export type TimeSeriesAmountNode = { + __typename?: 'TimeSeriesAmountNode'; + amount: Amount; + count?: Maybe; + date: Scalars['DateTime']['output']; + label?: Maybe; +}; + +/** Amounts with settlements time series */ +export type TimeSeriesAmountWithKind = TimeSeries & { + __typename?: 'TimeSeriesAmountWithKind'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + /** Time series data points */ + nodes: Array; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +export type TimeSeriesAmountWithKindNode = { + __typename?: 'TimeSeriesAmountWithKindNode'; + amount: Amount; + date: Scalars['DateTime']['output']; + kind: TransactionKind; +}; + +/** Amounts with settlements time series */ +export type TimeSeriesAmountWithSettlement = TimeSeries & { + __typename?: 'TimeSeriesAmountWithSettlement'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + /** Time series data points */ + nodes: Array; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +export type TimeSeriesAmountWithSettlementNode = { + __typename?: 'TimeSeriesAmountWithSettlementNode'; + amount: Amount; + date: Scalars['DateTime']['output']; + settlementStatus: TransactionSettlementStatus; +}; + +export enum TimeUnit { + DAY = 'DAY', + HOUR = 'HOUR', + MINUTE = 'MINUTE', + MONTH = 'MONTH', + QUARTER = 'QUARTER', + SECOND = 'SECOND', + WEEK = 'WEEK', + YEAR = 'YEAR' +} + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type Transaction = { + account?: Maybe; + amount: Amount; + amountInHostCurrency: Amount; + /** The balance after the Transaction has run. Only for financially active accounts. */ + balanceInHostCurrency?: Maybe; + clearedAt?: Maybe; + createdAt?: Maybe; + description?: Maybe; + expense?: Maybe; + /** The sender of a transaction (on CREDIT = oppositeAccount, DEBIT = account) */ + fromAccount?: Maybe; + giftCardEmitterAccount?: Maybe; + group: Scalars['String']['output']; + host?: Maybe; + /** Exchange rate between the currency of the transaction and the currency of the host (transaction.amount * transaction.hostCurrencyFxRate = transaction.amountInHostCurrency) */ + hostCurrencyFxRate?: Maybe; + hostFee?: Maybe; + id: Scalars['String']['output']; + invoiceTemplate?: Maybe; + isDisputed?: Maybe; + isInReview?: Maybe; + isOrderRejected: Scalars['Boolean']['output']; + isRefund?: Maybe; + isRefunded?: Maybe; + kind?: Maybe; + legacyId: Scalars['Int']['output']; + /** Merchant id related to the Transaction (Stripe, PayPal, Wise, Privacy) */ + merchantId?: Maybe; + netAmount: Amount; + netAmountInHostCurrency: Amount; + oppositeAccount?: Maybe; + /** The opposite transaction (CREDIT -> DEBIT, DEBIT -> CREDIT) */ + oppositeTransaction?: Maybe; + order?: Maybe; + paymentMethod?: Maybe; + paymentProcessorFee?: Maybe; + paymentProcessorUrl?: Maybe; + payoutMethod?: Maybe; + permissions?: Maybe; + platformFee: Amount; + refundTransaction?: Maybe; + relatedTransactions: Array>; + taxAmount: Amount; + /** If a tax is set, this field will contain more info about the tax */ + taxInfo?: Maybe; + /** The recipient of a transaction (on CREDIT = account, DEBIT = oppositeAccount) */ + toAccount?: Maybe; + type: TransactionType; + updatedAt?: Maybe; + /** @deprecated 2021-08-15: Use id instead. */ + uuid: Scalars['String']['output']; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionDescriptionArgs = { + dynamic?: InputMaybe; + full?: InputMaybe; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionHostFeeArgs = { + fetchHostFee?: InputMaybe; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionNetAmountArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionNetAmountInHostCurrencyArgs = { + fetchHostFee?: InputMaybe; + fetchPaymentProcessorFee?: InputMaybe; + fetchTax?: InputMaybe; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionPaymentProcessorFeeArgs = { + fetchPaymentProcessorFee?: InputMaybe; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionRelatedTransactionsArgs = { + kind?: InputMaybe>>; +}; + + +/** Transaction interface shared by all kind of transactions (Debit, Credit) */ +export type TransactionTaxAmountArgs = { + fetchTax?: InputMaybe; +}; + +/** A collection of Transactions (Debit or Credit) */ +export type TransactionCollection = Collection & { + __typename?: 'TransactionCollection'; + kinds?: Maybe>>; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + /** The types of payment methods used in this collection, regardless of the pagination */ + paymentMethodTypes: Array>; + totalCount?: Maybe; +}; + +/** Transaction group */ +export type TransactionGroup = { + __typename?: 'TransactionGroup'; + /** The account on the main side of the transaction (CREDIT -> recipient, DEBIT -> sender) */ + account?: Maybe; + createdAt?: Maybe; + host?: Maybe; + id: Scalars['String']['output']; + /** The primary transaction in the group */ + primaryTransaction?: Maybe; + totalAmount: Amount; + /** The transactions in the group */ + transactions?: Maybe>>; +}; + +/** A collection of Transactions groups */ +export type TransactionGroupCollection = Collection & { + __typename?: 'TransactionGroupCollection'; + limit?: Maybe; + nodes: Array; + offset?: Maybe; + totalCount?: Maybe; +}; + +export enum TransactionKind { + ADDED_FUNDS = 'ADDED_FUNDS', + BALANCE_TRANSFER = 'BALANCE_TRANSFER', + CONTRIBUTION = 'CONTRIBUTION', + EXPENSE = 'EXPENSE', + HOST_FEE = 'HOST_FEE', + HOST_FEE_SHARE = 'HOST_FEE_SHARE', + HOST_FEE_SHARE_DEBT = 'HOST_FEE_SHARE_DEBT', + PAYMENT_PROCESSOR_COVER = 'PAYMENT_PROCESSOR_COVER', + PAYMENT_PROCESSOR_DISPUTE_FEE = 'PAYMENT_PROCESSOR_DISPUTE_FEE', + PAYMENT_PROCESSOR_FEE = 'PAYMENT_PROCESSOR_FEE', + PLATFORM_FEE = 'PLATFORM_FEE', + PLATFORM_TIP = 'PLATFORM_TIP', + PLATFORM_TIP_DEBT = 'PLATFORM_TIP_DEBT', + PREPAID_PAYMENT_METHOD = 'PREPAID_PAYMENT_METHOD', + TAX = 'TAX' +} + +/** Fields for the user permissions on an transaction */ +export type TransactionPermissions = { + __typename?: 'TransactionPermissions'; + /** Whether the current user can download this transaction's invoice */ + canDownloadInvoice: Scalars['Boolean']['output']; + /** Whether the current user can edit the transaction */ + canRefund: Scalars['Boolean']['output']; + /** Whether the current user can reject the transaction */ + canReject: Scalars['Boolean']['output']; + id: Scalars['String']['output']; +}; + +export type TransactionReferenceInput = { + /** The public id identifying the transaction (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The internal id of the transaction (ie: 580) */ + legacyId?: InputMaybe; +}; + +/** EXPERIMENTAL (this may change or be deleted) */ +export type TransactionReport = { + __typename?: 'TransactionReport'; + date?: Maybe; + endingBalance: Amount; + groups: Array>; + startingBalance: Amount; + totalChange: Amount; +}; + +/** EXPERIMENTAL (this may change or be deleted): Host transaction report */ +export type TransactionReports = { + __typename?: 'TransactionReports'; + /** The start date of the time series */ + dateFrom?: Maybe; + /** The end date of the time series */ + dateTo?: Maybe; + nodes?: Maybe>; + /** The interval between two data points */ + timeUnit: TimeUnit; +}; + +export enum TransactionSettlementStatus { + INVOICED = 'INVOICED', + OWED = 'OWED', + SETTLED = 'SETTLED' +} + +/** All transaction types */ +export enum TransactionType { + CREDIT = 'CREDIT', + DEBIT = 'DEBIT' +} + +/** EXPERIMENTAL (this may change or be deleted): Transaction amounts grouped by type, kind, isRefund, isHost, expenseType */ +export type TransactionsAmountGroup = { + __typename?: 'TransactionsAmountGroup'; + amount?: Maybe; + expenseType?: Maybe; + hostFee?: Maybe; + isHost?: Maybe; + isRefund?: Maybe; + kind?: Maybe; + netAmount?: Maybe; + paymentProcessorFee?: Maybe; + platformFee?: Maybe; + taxAmount?: Maybe; + type?: Maybe; +}; + +export type TransactionsImport = { + __typename?: 'TransactionsImport'; + /** Account that holds the import */ + account: Account; + /** Connected account linked to the import */ + connectedAccount?: Maybe; + /** When the import was created */ + createdAt: Scalars['DateTime']['output']; + /** Configuration for the CSV import */ + csvConfig?: Maybe; + /** URL of the import (e.g. link to the CSV file) */ + file?: Maybe; + /** The public id of the import */ + id: Scalars['String']['output']; + /** Whether the import is currently syncing */ + isSyncing: Scalars['Boolean']['output']; + /** When the import was last synced */ + lastSyncAt?: Maybe; + /** Cursor that defines where the last sync left off. Useful to know if there is new data to sync */ + lastSyncCursor?: Maybe; + /** Name of the import (e.g. "Contributions May 2021", "Tickets for Mautic Conference 2024") */ + name: Scalars['NonEmptyString']['output']; + /** List of rows in the import */ + rows: TransactionsImportRowCollection; + /** Source of the import (e.g. "Bank of America", "Eventbrite", etc...) */ + source: Scalars['NonEmptyString']['output']; + stats?: Maybe; + /** Type of the import */ + type: TransactionsImportType; + /** When the import was last updated */ + updatedAt: Scalars['DateTime']['output']; +}; + + +export type TransactionsImportRowsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; + status?: InputMaybe; +}; + +/** A row in a transactions import */ +export type TransactionsImportRow = { + __typename?: 'TransactionsImportRow'; + /** The amount of the row */ + amount: Amount; + /** The date of the row */ + date: Scalars['DateTime']['output']; + /** The description of the row */ + description: Scalars['String']['output']; + /** The expense associated with the row */ + expense?: Maybe; + /** The public id of the imported row */ + id: Scalars['String']['output']; + /** Whether the row has been dismissed */ + isDismissed: Scalars['Boolean']['output']; + /** The order associated with the row */ + order?: Maybe; + /** The raw data of the row */ + rawValue?: Maybe; + /** The source id of the row */ + sourceId: Scalars['NonEmptyString']['output']; +}; + +/** A collection of "TransactionsImportRow" */ +export type TransactionsImportRowCollection = Collection & { + __typename?: 'TransactionsImportRowCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type TransactionsImportRowCreateInput = { + /** The amount of the row */ + amount: AmountInput; + /** The date of the row */ + date: Scalars['DateTime']['input']; + /** The description of the row */ + description?: InputMaybe; + /** Whether the row is dismissed */ + isDismissed?: Scalars['Boolean']['input']; + /** The raw value of the row */ + rawValue?: InputMaybe; + /** The source id of the row */ + sourceId: Scalars['NonEmptyString']['input']; +}; + +export type TransactionsImportRowReferenceInput = { + /** The id of the row */ + id: Scalars['NonEmptyString']['input']; +}; + +/** The status of a row in a transactions import */ +export enum TransactionsImportRowStatus { + /** The row has been ignored */ + IGNORED = 'IGNORED', + /** The row has been linked to an existing expense or order */ + LINKED = 'LINKED', + /** The row has not been processed yet */ + PENDING = 'PENDING' +} + +export type TransactionsImportRowUpdateInput = { + /** The amount of the row */ + amount?: InputMaybe; + /** The date of the row */ + date?: InputMaybe; + /** The description of the row */ + description?: InputMaybe; + /** The id of the row */ + id: Scalars['NonEmptyString']['input']; + /** Whether the row is dismissed */ + isDismissed?: InputMaybe; + /** The order associated with the row */ + order?: InputMaybe; + /** The source id of the row */ + sourceId?: InputMaybe; +}; + +export type TransactionsImportStats = { + __typename?: 'TransactionsImportStats'; + /** Number of rows that have been converted to expenses */ + expenses: Scalars['Int']['output']; + /** Number of rows that have been ignored */ + ignored: Scalars['Int']['output']; + /** Number of rows that have been converted to orders */ + orders: Scalars['Int']['output']; + /** Number of rows that have been processed (either dismissed or converted to expenses or orders) */ + processed: Scalars['Int']['output']; + /** Total number of rows in the import */ + total: Scalars['Int']['output']; +}; + +/** Type of the import */ +export enum TransactionsImportType { + CSV = 'CSV', + MANUAL = 'MANUAL', + PLAID = 'PLAID' +} + +/** A collection of "TransactionsImports" */ +export type TransactionsImportsCollection = Collection & { + __typename?: 'TransactionsImportsCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** TransferWise related properties for bank transfer. */ +export type TransferWise = { + __typename?: 'TransferWise'; + amountBatched?: Maybe; + availableCurrencies?: Maybe>>; + /** Transferwise balances. Returns null if Transferwise account is not connected. */ + balances?: Maybe>>; + /** Unique identifier for this Wise object */ + id: Scalars['String']['output']; + requiredFields?: Maybe>>; +}; + + +/** TransferWise related properties for bank transfer. */ +export type TransferWiseAvailableCurrenciesArgs = { + ignoreBlockedCurrencies?: InputMaybe; +}; + + +/** TransferWise related properties for bank transfer. */ +export type TransferWiseRequiredFieldsArgs = { + accountDetails?: InputMaybe; + currency: Scalars['String']['input']; +}; + +export type TransferWiseField = { + __typename?: 'TransferWiseField'; + group?: Maybe>>; + name?: Maybe; +}; + +export type TransferWiseFieldGroup = { + __typename?: 'TransferWiseFieldGroup'; + displayFormat?: Maybe; + example?: Maybe; + key?: Maybe; + maxLength?: Maybe; + minLength?: Maybe; + name?: Maybe; + refreshRequirementsOnChange?: Maybe; + required?: Maybe; + type?: Maybe; + validationAsync?: Maybe; + validationRegexp?: Maybe; + valuesAllowed?: Maybe>>; +}; + +export type TransferWiseFieldVatvkluesAllowed = { + __typename?: 'TransferWiseFieldVatvkluesAllowed'; + key?: Maybe; + name?: Maybe; +}; + +export type TransferWiseRequiredField = { + __typename?: 'TransferWiseRequiredField'; + fields?: Maybe>>; + title?: Maybe; + type?: Maybe; +}; + +/** A two factor authentication method */ +export enum TwoFactorMethod { + TOTP = 'TOTP', + WEBAUTHN = 'WEBAUTHN', + YUBIKEY_OTP = 'YUBIKEY_OTP' +} + +export type UnfollowAccountResult = { + __typename?: 'UnfollowAccountResult'; + individual: Individual; + member?: Maybe; +}; + +/** This represents an Update */ +export type Update = { + __typename?: 'Update'; + account?: Maybe; + /** Some stats about the target audience. Will be null if the update is already published or if you don't have enough permissions so see this information. Not backed by a loader, avoid using this field in lists. */ + audienceStats?: Maybe; + /** List the comments for this update. Not backed by a loader, don't use this in lists. */ + comments?: Maybe; + createdAt: Scalars['DateTime']['output']; + fromAccount?: Maybe; + html?: Maybe; + id: Scalars['String']['output']; + isChangelog: Scalars['Boolean']['output']; + isPrivate: Scalars['Boolean']['output']; + legacyId?: Maybe; + makePublicOn?: Maybe; + notificationAudience?: Maybe; + publishedAt?: Maybe; + /** Returns a map of reactions counts for this update */ + reactions?: Maybe; + slug: Scalars['String']['output']; + summary?: Maybe; + tags?: Maybe>>; + title: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; + /** Indicates whether or not the user is allowed to publish this update */ + userCanPublishUpdate: Scalars['Boolean']['output']; + /** Indicates whether or not the user is allowed to see the content of this update */ + userCanSeeUpdate: Scalars['Boolean']['output']; + /** Returns the list of reactions added to this update by logged in user */ + userReactions?: Maybe>>; +}; + + +/** This represents an Update */ +export type UpdateAudienceStatsArgs = { + audience?: InputMaybe; +}; + + +/** This represents an Update */ +export type UpdateCommentsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +/** Defines targets for an update */ +export enum UpdateAudience { + /** Will be sent to collective admins and financial contributors */ + ALL = 'ALL', + /** Will be sent to collective admins */ + COLLECTIVE_ADMINS = 'COLLECTIVE_ADMINS', + /** Will be sent to financial contributors */ + FINANCIAL_CONTRIBUTORS = 'FINANCIAL_CONTRIBUTORS', + /** Will be sent to no one */ + NO_ONE = 'NO_ONE' +} + +/** Stats about the potential audience of an update */ +export type UpdateAudienceStats = { + __typename?: 'UpdateAudienceStats'; + collectives: Scalars['Int']['output']; + coreContributors: Scalars['Int']['output']; + hosted: Scalars['Int']['output']; + id: Scalars['String']['output']; + individuals: Scalars['Int']['output']; + organizations: Scalars['Int']['output']; + /** The total number of emails to send */ + total: Scalars['Int']['output']; +}; + +/** Input to order updates chronologically */ +export type UpdateChronologicalOrderInput = { + /** Ordering direction. */ + direction?: OrderDirection; + /** Field to chronologically order by. */ + field?: UpdateDateTimeField; +}; + +/** A collection of "Updates" */ +export type UpdateCollection = Collection & { + __typename?: 'UpdateCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Input type for UpdateType */ +export type UpdateCreateInput = { + account: AccountReferenceInput; + fromAccount?: InputMaybe; + html: Scalars['String']['input']; + isChangelog?: InputMaybe; + isPrivate?: InputMaybe; + makePublicOn?: InputMaybe; + notificationAudience?: InputMaybe; + title: Scalars['String']['input']; +}; + +/** All possible DateTime fields for an update */ +export enum UpdateDateTimeField { + /** The creation time */ + CREATED_AT = 'CREATED_AT', + /** The creation time */ + PUBLISHED_AT = 'PUBLISHED_AT' +} + +export type UpdateReferenceInput = { + /** The public id identifying the update */ + id?: InputMaybe; +}; + +/** Input type for UpdateType */ +export type UpdateUpdateInput = { + fromAccount?: InputMaybe; + html?: InputMaybe; + id: Scalars['String']['input']; + isChangelog?: InputMaybe; + isPrivate?: InputMaybe; + makePublicOn?: InputMaybe; + notificationAudience?: InputMaybe; + slug?: InputMaybe; + title?: InputMaybe; +}; + +export type UploadFileInput = { + /** The file to upload */ + file: Scalars['Upload']['input']; + /** The kind of file to uploaded */ + kind: UploadedFileKind; + /** Whether to run OCR on the document. Note that this feature is only available to selected accounts. */ + parseDocument?: Scalars['Boolean']['input']; + /** If `parseDocument` is true, you can use this field to pass options to the OCR parser. */ + parsingOptions?: InputMaybe; +}; + +export type UploadFileResult = { + __typename?: 'UploadFileResult'; + file: FileInfo; + parsingResult?: Maybe; +}; + +/** The kind of file that was uploaded */ +export enum UploadedFileKind { + ACCOUNT_AVATAR = 'ACCOUNT_AVATAR', + ACCOUNT_BANNER = 'ACCOUNT_BANNER', + ACCOUNT_CUSTOM_EMAIL = 'ACCOUNT_CUSTOM_EMAIL', + ACCOUNT_LONG_DESCRIPTION = 'ACCOUNT_LONG_DESCRIPTION', + AGREEMENT_ATTACHMENT = 'AGREEMENT_ATTACHMENT', + COMMENT = 'COMMENT', + EXPENSE_ATTACHED_FILE = 'EXPENSE_ATTACHED_FILE', + EXPENSE_ITEM = 'EXPENSE_ITEM', + TIER_LONG_DESCRIPTION = 'TIER_LONG_DESCRIPTION', + TRANSACTIONS_IMPORT = 'TRANSACTIONS_IMPORT', + UPDATE = 'UPDATE' +} + +/** User two factor authentication method */ +export type UserTwoFactorMethod = { + __typename?: 'UserTwoFactorMethod'; + createdAt: Scalars['DateTime']['output']; + description?: Maybe; + icon?: Maybe; + id: Scalars['String']['output']; + method: TwoFactorMethod; + name: Scalars['String']['output']; +}; + +export type UserTwoFactorMethodReferenceInput = { + id?: InputMaybe; + legacyId?: InputMaybe; +}; + +/** This represents a Vendor account */ +export type Vendor = Account & AccountWithContributions & { + __typename?: 'Vendor'; + /** [!] Warning: this query is currently in beta and the API might change */ + activeContributors: AccountCollection; + /** List of activities that the logged-in user is subscribed for this collective */ + activitySubscriptions?: Maybe>>; + backgroundImageUrl?: Maybe; + /** Whether this account can have changelog updates */ + canHaveChangelogUpdates: Scalars['Boolean']['output']; + /** Returns true if the remote user can start the process to resume contributions for account */ + canStartResumeContributionsProcess: Scalars['Boolean']['output']; + categories: Array>; + childrenAccounts: AccountCollection; + /** The list of connected accounts (Stripe, Twitter, etc ...). Admin only. Scope: "connectedAccounts". */ + connectedAccounts?: Maybe>>; + contributionPolicy?: Maybe; + /** All the persons and entities that contribute to this account */ + contributors: ContributorCollection; + conversations: ConversationCollection; + /** Returns conversation's tags for collective sorted by popularity */ + conversationsTags?: Maybe>>; + /** The time of creation */ + createdAt?: Maybe; + /** The account who created this order */ + createdByAccount?: Maybe; + /** The currency of the account */ + currency: Currency; + description?: Maybe; + /** If this account was duplicated, the accounts that were created from it */ + duplicatedAccounts: AccountCollection; + /** If created by duplication, the account from which this one was duplicated */ + duplicatedFromAccount?: Maybe; + /** Returns the emails of the account. Individuals only have one, but organizations can have multiple emails. */ + emails?: Maybe>; + /** @deprecated 2024-11-04: Please use policies.EXPENSE_POLICIES */ + expensePolicy?: Maybe; + expenses: ExpenseCollection; + /** Returns expense tags for collective sorted by popularity */ + expensesTags?: Maybe>>; + /** Describes the features enabled and available for this account */ + features: CollectiveFeatures; + feed?: Maybe>>; + /** @deprecated 2022-06-03: Please use repositoryUrl */ + githubHandle?: Maybe; + /** Returns whether this account has any payout methods saved */ + hasPayoutMethod?: Maybe; + /** Returns true if the account has started the process to resume contributions */ + hasResumeContributionsProcessStarted: Scalars['Boolean']['output']; + /** Host application requests */ + hostApplicationRequests: HostApplicationCollection; + id: Scalars['String']['output']; + imageUrl?: Maybe; + /** Returns whether the account accepts financial contributions. */ + isActive?: Maybe; + /** Returns true if the remote user is an admin of this account */ + isAdmin: Scalars['Boolean']['output']; + /** Returns whether this account is archived */ + isArchived: Scalars['Boolean']['output']; + /** Whether this account is frozen */ + isFrozen: Scalars['Boolean']['output']; + /** Returns whether the account is setup to Host collectives. */ + isHost: Scalars['Boolean']['output']; + /** Defines if the contributors wants to be incognito (name not displayed) */ + isIncognito: Scalars['Boolean']['output']; + legacyId: Scalars['Int']['output']; + /** The legal documents associated with this account */ + legalDocuments?: Maybe>>; + /** Private, legal name. Used for expense receipts, taxes, etc. Scope: "account". */ + legalName?: Maybe; + /** The address associated to this account. This field is always public for collectives and events. */ + location?: Maybe; + longDescription?: Maybe; + /** [AUTHENTICATED] Returns the pending invitations */ + memberInvitations?: Maybe>>; + memberOf: MemberOfCollection; + /** Get all members (admins, members, backers, followers) */ + members: MemberCollection; + /** Public name */ + name?: Maybe; + /** The list of applications created by this account. Admin only. Scope: "applications". */ + oAuthApplications?: Maybe; + orders: OrderCollection; + /** @deprecated 2022-12-16: use parent on AccountWithParent instead */ + parentAccount?: Maybe; + /** The list of payment methods that this collective can use to pay for Orders. Admin or Host only. Scope: "orders". */ + paymentMethods?: Maybe>>; + /** The list of payment methods for this account that are pending a client confirmation (3D Secure / SCA) */ + paymentMethodsWithPendingConfirmation?: Maybe>>; + /** The list of payout methods that this collective can use to get paid. In most cases, admin only and scope: "expenses". */ + payoutMethods?: Maybe>>; + /** Logged-in user permissions on an account */ + permissions: AccountPermissions; + /** Returns true if a custom contribution to Open Collective can be submitted for contributions made to this account */ + platformContributionAvailable: Scalars['Boolean']['output']; + /** How much platform fees are charged for this account */ + platformFeePercent: Scalars['Float']['output']; + /** Policies for the account. To see non-public policies you need to be admin and have the scope: "account". */ + policies: Policies; + /** @deprecated 2023-01-16: Please use socialLinks */ + repositoryUrl?: Maybe; + settings: Scalars['JSON']['output']; + /** The slug identifying the account (ie: babel) */ + slug: Scalars['String']['output']; + socialLinks: Array; + stats?: Maybe; + /** The list of expense types supported by this account */ + supportedExpenseTypes: Array; + tags?: Maybe>>; + tiers: TierCollection; + /** Number of unique financial contributors. */ + totalFinancialContributors: Scalars['Int']['output']; + /** [!] Warning: this query is currently in beta and the API might change */ + transactionGroups: TransactionGroupCollection; + /** EXPERIMENTAL (this may change or be removed) */ + transactionReports?: Maybe; + transactions: TransactionCollection; + transferwise?: Maybe; + /** @deprecated 2023-01-16: Please use socialLinks */ + twitterHandle?: Maybe; + type: AccountType; + /** Date of unhosting by a given Fiscal Host. */ + unhostedAt?: Maybe; + updatedAt?: Maybe; + /** Updates published by the account. To see unpublished updates, you need to be an admin and have the scope "updates". */ + updates: UpdateCollection; + vendorInfo?: Maybe; + /** Virtual Cards Merchants used by the account. Admin only. Scope: "virtualCards". */ + virtualCardMerchants?: Maybe; + /** Virtual Cards attached to the account. Admin only. Scope: "virtualCards". */ + virtualCards?: Maybe; + webhooks: WebhookCollection; + /** @deprecated 2023-01-16: Please use socialLinks */ + website?: Maybe; +}; + + +/** This represents a Vendor account */ +export type VendorActiveContributorsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + includeActiveRecurringContributions?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorActivitySubscriptionsArgs = { + channel?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorBackgroundImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorChildrenAccountsArgs = { + accountType?: InputMaybe>>; + isActive?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + searchTerm?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorContributorsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + roles?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorConversationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + tag?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorConversationsTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorDuplicatedAccountsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorExpensesArgs = { + account?: InputMaybe; + accountingCategory?: InputMaybe>>; + chargeHasReceipts?: InputMaybe; + createdByAccount?: InputMaybe; + customData?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + direction?: InputMaybe; + fromAccount?: InputMaybe; + host?: InputMaybe; + includeChildrenExpenses?: Scalars['Boolean']['input']; + lastCommentBy?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + payoutMethodType?: InputMaybe; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tag?: InputMaybe>>; + tags?: InputMaybe>>; + type?: InputMaybe; + types?: InputMaybe>>; + virtualCards?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorExpensesTagsArgs = { + limit?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorFeedArgs = { + classes?: InputMaybe>>; + dateTo?: InputMaybe; + limit?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorHostApplicationRequestsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + status?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorImageUrlArgs = { + format?: InputMaybe; + height?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorLegalDocumentsArgs = { + type?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorMemberInvitationsArgs = { + account?: InputMaybe; + memberAccount?: InputMaybe; + role?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorMemberOfArgs = { + account?: InputMaybe; + accountType?: InputMaybe>>; + hostFeesStructure?: InputMaybe; + includeIncognito?: InputMaybe; + isApproved?: InputMaybe; + isArchived?: InputMaybe; + isHostAccount?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: OrderByInput; + orderByRoles?: InputMaybe; + role?: InputMaybe>>; + searchTerm?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorMembersArgs = { + accountType?: InputMaybe>>; + email?: InputMaybe; + includeInherited?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + orderBy?: ChronologicalOrderInput; + role?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorOAuthApplicationsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorOrdersArgs = { + chargedDateFrom?: InputMaybe; + chargedDateTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + expectedDateFrom?: InputMaybe; + expectedDateTo?: InputMaybe; + expectedFundsFilter?: InputMaybe; + filter?: InputMaybe; + frequency?: InputMaybe; + includeChildrenAccounts?: Scalars['Boolean']['input']; + includeHostedAccounts?: InputMaybe; + includeIncognito?: InputMaybe; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + onlyActiveSubscriptions?: InputMaybe; + onlySubscriptions?: InputMaybe; + oppositeAccount?: InputMaybe; + orderBy?: ChronologicalOrderInput; + pausedBy?: InputMaybe>>; + paymentMethod?: InputMaybe; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + status?: InputMaybe>>; + tierSlug?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorPaymentMethodsArgs = { + enumType?: InputMaybe>>; + includeExpired?: InputMaybe; + service?: InputMaybe>>; + type?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorTiersArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorTotalFinancialContributorsArgs = { + accountType?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorTransactionGroupsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + kind?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + type?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorTransactionReportsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + timeUnit?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorTransactionsArgs = { + accountingCategory?: InputMaybe>>; + clearedFrom?: InputMaybe; + clearedTo?: InputMaybe; + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + excludeAccount?: InputMaybe>>; + expense?: InputMaybe; + expenseType?: InputMaybe>>; + fromAccount?: InputMaybe; + group?: InputMaybe>>; + hasDebt?: InputMaybe; + hasExpense?: InputMaybe; + hasOrder?: InputMaybe; + host?: InputMaybe; + includeChildrenTransactions?: Scalars['Boolean']['input']; + includeDebts?: Scalars['Boolean']['input']; + includeGiftCardTransactions?: Scalars['Boolean']['input']; + includeHost?: Scalars['Boolean']['input']; + includeIncognitoTransactions?: Scalars['Boolean']['input']; + includeRegularTransactions?: Scalars['Boolean']['input']; + isRefund?: InputMaybe; + kind?: InputMaybe>>; + limit?: Scalars['Int']['input']; + maxAmount?: InputMaybe; + merchantId?: InputMaybe>>; + minAmount?: InputMaybe; + offset?: Scalars['Int']['input']; + order?: InputMaybe; + orderBy?: ChronologicalOrderInput; + paymentMethodService?: InputMaybe>>; + paymentMethodType?: InputMaybe>>; + searchTerm?: InputMaybe; + tags?: InputMaybe>>; + type?: InputMaybe; + virtualCard?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorUnhostedAtArgs = { + host: AccountReferenceInput; +}; + + +/** This represents a Vendor account */ +export type VendorUpdatesArgs = { + isDraft?: InputMaybe; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + onlyChangelogUpdates?: InputMaybe; + onlyPublishedUpdates?: InputMaybe; + orderBy?: UpdateChronologicalOrderInput; + searchTerm?: InputMaybe; +}; + + +/** This represents a Vendor account */ +export type VendorVirtualCardMerchantsArgs = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + + +/** This represents a Vendor account */ +export type VendorVirtualCardsArgs = { + dateFrom?: InputMaybe; + dateTo?: InputMaybe; + limit?: Scalars['Int']['input']; + merchantAccount?: InputMaybe; + offset?: Scalars['Int']['input']; + orderBy?: InputMaybe; + state?: InputMaybe; + status?: InputMaybe>>; +}; + + +/** This represents a Vendor account */ +export type VendorWebhooksArgs = { + account: AccountReferenceInput; + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; +}; + +/** A collection of Vendors */ +export type VendorCollection = Collection & { + __typename?: 'VendorCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Some context about the vendor contact person */ +export type VendorContact = { + __typename?: 'VendorContact'; + email?: Maybe; + name?: Maybe; +}; + +/** Some context about the vendor contact person */ +export type VendorContactInput = { + email?: InputMaybe; + name?: InputMaybe; +}; + +export type VendorCreateInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + /** The profile avatar image */ + image?: InputMaybe; + /** @deprecated 2024-11-26: Please use image + backgroundImage fields */ + imageUrl?: InputMaybe; + legalName?: InputMaybe; + location?: InputMaybe; + name: Scalars['NonEmptyString']['input']; + payoutMethod?: InputMaybe; + tags?: InputMaybe>>; + vendorInfo?: InputMaybe; +}; + +export type VendorEditInput = { + /** The profile background image, for the banner and social media sharing */ + backgroundImage?: InputMaybe; + /** The public id identifying the account (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The profile avatar image */ + image?: InputMaybe; + /** @deprecated 2024-11-26: Please use image + backgroundImage fields */ + imageUrl?: InputMaybe; + /** + * The internal id of the account (ie: 580) + * @deprecated 2020-01-01: should only be used during the transition to GraphQL API v2. + */ + legacyId?: InputMaybe; + legalName?: InputMaybe; + location?: InputMaybe; + name?: InputMaybe; + payoutMethod?: InputMaybe; + /** The slug identifying the account (ie: babel for https://opencollective.com/babel) */ + slug?: InputMaybe; + tags?: InputMaybe>>; + vendorInfo?: InputMaybe; +}; + +/** Some context about the vendor */ +export type VendorInfo = { + __typename?: 'VendorInfo'; + contact?: Maybe; + notes?: Maybe; + taxFormRequired?: Maybe; + taxFormUrl?: Maybe; + taxId?: Maybe; + taxType?: Maybe; +}; + +/** Some context about the vendor */ +export type VendorInfoInput = { + contact?: InputMaybe; + notes?: InputMaybe; + taxFormRequired?: InputMaybe; + taxFormUrl?: InputMaybe; + taxId?: InputMaybe; + taxType?: InputMaybe; +}; + +/** A Virtual Card used to pay expenses */ +export type VirtualCard = { + __typename?: 'VirtualCard'; + account?: Maybe; + assignee?: Maybe; + createdAt?: Maybe; + currency?: Maybe; + data?: Maybe; + host?: Maybe; + id?: Maybe; + last4?: Maybe; + name?: Maybe; + privateData?: Maybe; + provider?: Maybe; + remainingLimit?: Maybe; + spendingLimitAmount?: Maybe; + spendingLimitInterval?: Maybe; + spendingLimitRenewsOn?: Maybe; + status?: Maybe; + updatedAt?: Maybe; + virtualCardRequest?: Maybe; +}; + +/** A collection of Virtual Cards */ +export type VirtualCardCollection = Collection & { + __typename?: 'VirtualCardCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type VirtualCardInput = { + data?: InputMaybe; + id?: InputMaybe; + last4?: InputMaybe; + name?: InputMaybe; + privateData?: InputMaybe; + provider?: InputMaybe; +}; + +export enum VirtualCardLimitInterval { + ALL_TIME = 'ALL_TIME', + DAILY = 'DAILY', + MONTHLY = 'MONTHLY', + PER_AUTHORIZATION = 'PER_AUTHORIZATION', + WEEKLY = 'WEEKLY', + YEARLY = 'YEARLY' +} + +export enum VirtualCardProvider { + PRIVACY = 'PRIVACY', + STRIPE = 'STRIPE' +} + +export type VirtualCardReferenceInput = { + id?: InputMaybe; +}; + +/** A Virtual Card request */ +export type VirtualCardRequest = { + __typename?: 'VirtualCardRequest'; + account?: Maybe; + assignee?: Maybe; + createdAt?: Maybe; + currency?: Maybe; + host?: Maybe; + id: Scalars['String']['output']; + legacyId?: Maybe; + notes?: Maybe; + purpose?: Maybe; + spendingLimitAmount?: Maybe; + spendingLimitInterval?: Maybe; + status?: Maybe; + updatedAt?: Maybe; +}; + +/** A collection of "VirtualCardRequest" */ +export type VirtualCardRequestCollection = Collection & { + __typename?: 'VirtualCardRequestCollection'; + limit?: Maybe; + nodes?: Maybe>; + offset?: Maybe; + totalCount?: Maybe; +}; + +export type VirtualCardRequestReferenceInput = { + id?: InputMaybe; + legacyId?: InputMaybe; +}; + +/** The status of a virtual card request */ +export enum VirtualCardRequestStatus { + APPROVED = 'APPROVED', + PENDING = 'PENDING', + REJECTED = 'REJECTED' +} + +/** The status of a virtual card */ +export enum VirtualCardStatus { + ACTIVE = 'ACTIVE', + CANCELED = 'CANCELED', + INACTIVE = 'INACTIVE' +} + +/** An webhook attached to an account */ +export type Webhook = { + __typename?: 'Webhook'; + account: Account; + activityType?: Maybe; + id: Scalars['String']['output']; + legacyId: Scalars['Int']['output']; + webhookUrl?: Maybe; +}; + +/** A collection of webhooks */ +export type WebhookCollection = Collection & { + __typename?: 'WebhookCollection'; + limit?: Maybe; + nodes?: Maybe>>; + offset?: Maybe; + totalCount?: Maybe; +}; + +/** Input type for Webhooks */ +export type WebhookCreateInput = { + /** The account to attach the Webhook */ + account: AccountReferenceInput; + activityType?: ActivityType; + webhookUrl: Scalars['URL']['input']; +}; + +export type WebhookReferenceInput = { + /** The public id identifying the webhook (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the webhook (ie: 4242) */ + legacyId?: InputMaybe; +}; + +/** Input type to update a Webhook */ +export type WebhookUpdateInput = { + activityType?: ActivityType; + /** The public id identifying the webhook (ie: dgm9bnk8-0437xqry-ejpvzeol-jdayw5re) */ + id?: InputMaybe; + /** The legacy public id identifying the webhook (ie: 4242) */ + legacyId?: InputMaybe; + webhookUrl: Scalars['URL']['input']; +}; + +export type WiseTransferDetails = { + reference?: InputMaybe; + sourceOfFunds?: InputMaybe; + transferNature?: InputMaybe; + transferPurpose?: InputMaybe; +}; diff --git a/lib/hooks/useGraphQLFileUploader.ts b/lib/hooks/useGraphQLFileUploader.ts index 867fc2d7db6..d128307bfa3 100644 --- a/lib/hooks/useGraphQLFileUploader.ts +++ b/lib/hooks/useGraphQLFileUploader.ts @@ -9,7 +9,7 @@ import { useToast } from '../../components/ui/useToast'; import { canUseMockImageUpload, mockImageUpload } from '../api'; import { i18nGraphqlException } from '../errors'; import { API_V2_CONTEXT, gql } from '../graphql/helpers'; -import type { UploadedFileKind, UploadFileResult } from '../graphql/types/v2/graphql'; +import type { UploadedFileKind, UploadFileResult } from '../graphql/types/v2/schema'; import { getMessageForRejectedDropzoneFiles } from './useImageUploader'; diff --git a/lib/i18n/expense.js b/lib/i18n/expense.js index d138c6eaa5e..900d602b622 100644 --- a/lib/i18n/expense.js +++ b/lib/i18n/expense.js @@ -2,7 +2,7 @@ import React from 'react'; import { defineMessages, FormattedMessage } from 'react-intl'; import ExpenseTypes from '../constants/expenseTypes'; -import { ExpenseStatus } from '../graphql/types/v2/graphql'; +import { ExpenseStatus } from '../graphql/types/v2/schema'; const i18nTypes = defineMessages({ ALL: { diff --git a/lib/i18n/host-application-status.ts b/lib/i18n/host-application-status.ts index c2090f92804..a9c0b249d8a 100644 --- a/lib/i18n/host-application-status.ts +++ b/lib/i18n/host-application-status.ts @@ -1,6 +1,6 @@ import { defineMessages } from 'react-intl'; -import { HostApplicationStatus } from '../graphql/types/v2/graphql'; +import { HostApplicationStatus } from '../graphql/types/v2/schema'; const MESSAGES = defineMessages({ [HostApplicationStatus.APPROVED]: { diff --git a/lib/i18n/legal-document.ts b/lib/i18n/legal-document.ts index a54e80a407d..d5f485f86cb 100644 --- a/lib/i18n/legal-document.ts +++ b/lib/i18n/legal-document.ts @@ -1,6 +1,6 @@ import { defineMessages } from 'react-intl'; -import { LegalDocumentRequestStatus } from '../graphql/types/v2/graphql'; +import { LegalDocumentRequestStatus } from '../graphql/types/v2/schema'; const LEGAL_DOCUMENT_STATUSES = defineMessages({ [LegalDocumentRequestStatus.ERROR]: { diff --git a/lib/i18n/period-compare-filter.ts b/lib/i18n/period-compare-filter.ts index b5ddaa1f217..b31d60bb9fb 100644 --- a/lib/i18n/period-compare-filter.ts +++ b/lib/i18n/period-compare-filter.ts @@ -2,7 +2,7 @@ import { defineMessages } from 'react-intl'; import { PeriodFilterCompare, PeriodFilterType } from '../../components/dashboard/filters/PeriodCompareFilter/schema'; -import { TimeUnit } from '../graphql/types/v2/graphql'; +import { TimeUnit } from '../graphql/types/v2/schema'; export const i18nPeriodFilterCompare = defineMessages({ [PeriodFilterCompare.PREVIOUS_PERIOD]: { diff --git a/lib/i18n/transactions-import-row.ts b/lib/i18n/transactions-import-row.ts index 592fc08dafa..5f594e75156 100644 --- a/lib/i18n/transactions-import-row.ts +++ b/lib/i18n/transactions-import-row.ts @@ -1,7 +1,7 @@ import type { IntlShape } from 'react-intl'; import { defineMessages } from 'react-intl'; -import { TransactionsImportRowStatus } from '../graphql/types/v2/graphql'; +import { TransactionsImportRowStatus } from '../graphql/types/v2/schema'; const MESSAGES = defineMessages({ ALL: { diff --git a/lib/i18n/transactions-import.ts b/lib/i18n/transactions-import.ts index cc18a037a6d..47cd2c669e7 100644 --- a/lib/i18n/transactions-import.ts +++ b/lib/i18n/transactions-import.ts @@ -1,6 +1,6 @@ import { defineMessages } from 'react-intl'; -import { TransactionsImportType } from '../graphql/types/v2/graphql'; +import { TransactionsImportType } from '../graphql/types/v2/schema'; const TransactionsImportTypeI18n = defineMessages({ [TransactionsImportType.MANUAL]: { diff --git a/lib/i18n/virtual-card-request.ts b/lib/i18n/virtual-card-request.ts index 3299f2d1c98..f7c7c33e8b4 100644 --- a/lib/i18n/virtual-card-request.ts +++ b/lib/i18n/virtual-card-request.ts @@ -1,6 +1,6 @@ import { defineMessages } from 'react-intl'; -import { VirtualCardRequestStatus } from '../graphql/types/v2/graphql'; +import { VirtualCardRequestStatus } from '../graphql/types/v2/schema'; const VirtualCardRequestStatusI18n = defineMessages({ [VirtualCardRequestStatus.APPROVED]: { diff --git a/lib/i18n/virtual-card-spending-limit.ts b/lib/i18n/virtual-card-spending-limit.ts index 5a19b539db7..3ca5c8ef330 100644 --- a/lib/i18n/virtual-card-spending-limit.ts +++ b/lib/i18n/virtual-card-spending-limit.ts @@ -2,8 +2,8 @@ import type { IntlShape } from 'react-intl'; import { defineMessage, defineMessages } from 'react-intl'; import { formatCurrency, type Options as FormatCurrencyOptions } from '../currency-utils'; -import type { Amount, Currency } from '../graphql/types/v2/graphql'; -import { VirtualCardLimitInterval } from '../graphql/types/v2/graphql'; +import type { Amount, Currency } from '../graphql/types/v2/schema'; +import { VirtualCardLimitInterval } from '../graphql/types/v2/schema'; const VirtualCardSpendingLimitShortI18n = defineMessages({ [VirtualCardLimitInterval.DAILY]: { diff --git a/lib/ml-service.ts b/lib/ml-service.ts index 5f4d083e1a3..09689bafef7 100644 --- a/lib/ml-service.ts +++ b/lib/ml-service.ts @@ -1,4 +1,4 @@ -import type { ExpenseType } from './graphql/types/v2/graphql'; +import type { ExpenseType } from './graphql/types/v2/schema'; const ML_SERVICE_URL = process.env.ML_SERVICE_URL || 'http://localhost:8000'; diff --git a/lib/policies.ts b/lib/policies.ts index c43f642051b..b9910030e17 100644 --- a/lib/policies.ts +++ b/lib/policies.ts @@ -1,6 +1,6 @@ import { get } from 'lodash'; -import type { Policies } from './graphql/types/v2/graphql'; +import type { Policies } from './graphql/types/v2/schema'; type PoliciesUnion = Exclude; diff --git a/lib/social-links.tsx b/lib/social-links.tsx index cf6d8035c2a..74df905cde2 100644 --- a/lib/social-links.tsx +++ b/lib/social-links.tsx @@ -16,7 +16,7 @@ import { Twitch } from '@styled-icons/feather/Twitch'; import { Youtube } from '@styled-icons/feather/Youtube'; import { Pixelfed } from '@styled-icons/remix-line/Pixelfed'; -import { SocialLinkType } from './graphql/types/v2/graphql'; +import { SocialLinkType } from './graphql/types/v2/schema'; const SocialLinkIcon: Record> = { [SocialLinkType.BLUESKY]: (props: { size: number }) => ( diff --git a/lib/stripe/usePaymentIntent.ts b/lib/stripe/usePaymentIntent.ts index 37d5515c181..e7455497e78 100644 --- a/lib/stripe/usePaymentIntent.ts +++ b/lib/stripe/usePaymentIntent.ts @@ -3,7 +3,7 @@ import { ApolloError, useApolloClient } from '@apollo/client'; import type { PaymentIntent, Stripe } from '@stripe/stripe-js'; import { API_V2_CONTEXT, gql } from '../graphql/helpers'; -import type { AccountReferenceInput, ContributionFrequency, GuestInfoInput } from '../graphql/types/v2/graphql'; +import type { AccountReferenceInput, ContributionFrequency, GuestInfoInput } from '../graphql/types/v2/schema'; import { loadScriptAsync } from '../utils'; const createPaymentIntentMutation = gql` diff --git a/lib/stripe/useSetupIntent.ts b/lib/stripe/useSetupIntent.ts index e99a46d48db..10b99ca6578 100644 --- a/lib/stripe/useSetupIntent.ts +++ b/lib/stripe/useSetupIntent.ts @@ -3,7 +3,7 @@ import { ApolloError, useApolloClient } from '@apollo/client'; import type { SetupIntent, Stripe } from '@stripe/stripe-js'; import { API_V2_CONTEXT, gql } from '../graphql/helpers'; -import type { AccountReferenceInput, SetupIntent as GraphQLSetupIntent } from '../graphql/types/v2/graphql'; +import type { AccountReferenceInput, SetupIntent as GraphQLSetupIntent } from '../graphql/types/v2/schema'; import { loadScriptAsync } from '../utils'; const createSetupIntentMutation = gql` diff --git a/lib/virtual-cards/constants.ts b/lib/virtual-cards/constants.ts index 41185da3c78..4a5a5f19299 100644 --- a/lib/virtual-cards/constants.ts +++ b/lib/virtual-cards/constants.ts @@ -1,6 +1,6 @@ import { defineMessages } from 'react-intl'; -import { VirtualCardLimitInterval, VirtualCardStatus } from '../graphql/types/v2/graphql'; +import { VirtualCardLimitInterval, VirtualCardStatus } from '../graphql/types/v2/schema'; export const VirtualCardLimitIntervalDescriptionsI18n = defineMessages({ [VirtualCardLimitInterval.ALL_TIME]: { diff --git a/package-lock.json b/package-lock.json index ddaeb1fdf29..157a6bb441d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -144,7 +144,7 @@ "@cypress/code-coverage": "^3.12.39", "@formatjs/cli": "^6.2.12", "@graphql-codegen/add": "^5.0.2", - "@graphql-codegen/cli": "5.0.2", + "@graphql-codegen/cli": "5.0.3", "@graphql-codegen/client-preset": "^4.2.6", "@graphql-eslint/eslint-plugin": "^3.20.1", "@next/bundle-analyzer": "^14.2.3", @@ -320,6 +320,7 @@ "resolved": "https://registry.npmjs.org/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz", "integrity": "sha512-9anThAaj1dQr6IGmzBMcfzOQKTa5artjuPmw8NYK/fiGEMjADbSguBY2FMDykt+QhilR3wc9VA/3yVju7JHg7Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/core": "^7.14.0", "@babel/generator": "^7.14.0", @@ -351,6 +352,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -366,6 +368,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -382,6 +385,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -393,6 +397,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -407,6 +412,7 @@ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -427,6 +433,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -436,6 +443,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -448,6 +456,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -463,6 +472,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -475,6 +485,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -486,13 +497,15 @@ "version": "4.0.3", "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/@ardatan/relay-compiler/node_modules/yargs": { "version": "15.4.1", "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -1011,6 +1024,7 @@ "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-create-class-features-plugin": "^7.18.6", "@babel/helper-plugin-utils": "^7.18.6" @@ -1028,6 +1042,7 @@ "integrity": "sha512-d2S98yCiLxDVmBmE8UjGcfPvNEUbA1U5q5WxaWFUGRzJSVAZqm5W6MbPct0jxnegUZ0niLeNX+IOzEs7wYg9Dg==", "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/compat-data": "^7.20.5", "@babel/helper-compilation-targets": "^7.20.7", @@ -4272,10 +4287,11 @@ } }, "node_modules/@graphql-codegen/add": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/add/-/add-5.0.2.tgz", - "integrity": "sha512-ouBkSvMFUhda5VoKumo/ZvsZM9P5ZTyDsI8LW18VxSNWOjrTeLXBWHG8Gfaai0HwhflPtCYVABbriEcOmrRShQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@graphql-codegen/add/-/add-5.0.3.tgz", + "integrity": "sha512-SxXPmramkth8XtBlAHu4H4jYcYXM/o3p01+psU+0NADQowA8jtYkK6MW5rV6T+CxkEaNZItfSmZRPgIuypcqnA==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.3", "tslib": "~2.6.0" @@ -4285,15 +4301,16 @@ } }, "node_modules/@graphql-codegen/cli": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-5.0.2.tgz", - "integrity": "sha512-MBIaFqDiLKuO4ojN6xxG9/xL9wmfD3ZjZ7RsPjwQnSHBCUXnEkdKvX+JVpx87Pq29Ycn8wTJUguXnTZ7Di0Mlw==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@graphql-codegen/cli/-/cli-5.0.3.tgz", + "integrity": "sha512-ULpF6Sbu2d7vNEOgBtE9avQp2oMgcPY/QBYcCqk0Xru5fz+ISjcovQX29V7CS7y5wWBRzNLoXwJQGeEyWbl05g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/generator": "^7.18.13", "@babel/template": "^7.18.10", "@babel/types": "^7.18.13", - "@graphql-codegen/client-preset": "^4.2.2", + "@graphql-codegen/client-preset": "^4.4.0", "@graphql-codegen/core": "^4.0.2", "@graphql-codegen/plugin-helpers": "^5.0.3", "@graphql-tools/apollo-engine-loader": "^8.0.0", @@ -4306,12 +4323,12 @@ "@graphql-tools/prisma-loader": "^8.0.0", "@graphql-tools/url-loader": "^8.0.0", "@graphql-tools/utils": "^10.0.0", - "@whatwg-node/fetch": "^0.8.0", + "@whatwg-node/fetch": "^0.9.20", "chalk": "^4.1.0", "cosmiconfig": "^8.1.3", "debounce": "^1.2.0", "detect-indent": "^6.0.0", - "graphql-config": "^5.0.2", + "graphql-config": "^5.1.1", "inquirer": "^8.0.0", "is-glob": "^4.0.1", "jiti": "^1.17.1", @@ -4332,6 +4349,9 @@ "graphql-codegen": "cjs/bin.js", "graphql-codegen-esm": "esm/bin.js" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "@parcel/watcher": "^2.1.0", "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" @@ -4342,11 +4362,42 @@ } } }, + "node_modules/@graphql-codegen/cli/node_modules/@whatwg-node/fetch": { + "version": "0.9.22", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.9.22.tgz", + "integrity": "sha512-+RIBffgoaRlWV9cKV6wAX71sbeoU2APOI3G13ZRMkabYHwkvDMeZDTyxJcsMXA5CpieJ7NFXF9Xyu72jwvdzqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@whatwg-node/node-fetch": "^0.5.27", + "urlpattern-polyfill": "^10.0.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@graphql-codegen/cli/node_modules/@whatwg-node/node-fetch": { + "version": "0.5.27", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.5.27.tgz", + "integrity": "sha512-0OaMj5W4fzWimRSFq07qFiWfquaUMNB+695GwE76LYKVuah+jwCdzSgsIOtwPkiyJ35w0XGhXmJPiIJCdLwopg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@kamilkisiela/fast-url-parser": "^1.1.4", + "busboy": "^1.6.0", + "fast-querystring": "^1.1.1", + "tslib": "^2.6.3" + }, + "engines": { + "node": ">=18.0.0" + } + }, "node_modules/@graphql-codegen/cli/node_modules/ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -4362,6 +4413,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -4378,6 +4430,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4387,6 +4440,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -4394,26 +4448,44 @@ "node": ">=8" } }, + "node_modules/@graphql-codegen/cli/node_modules/tslib": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.0.tgz", + "integrity": "sha512-jWVzBLplnCmoaTr13V9dYbiQ99wvZRd0vNWaDRg+aVYRcjDF3nDksxFDE/+fkXnKhpnUUkmx5pK/v8mCtLVqZA==", + "dev": true, + "license": "0BSD" + }, + "node_modules/@graphql-codegen/cli/node_modules/urlpattern-polyfill": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", + "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==", + "dev": true, + "license": "MIT" + }, "node_modules/@graphql-codegen/client-preset": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/@graphql-codegen/client-preset/-/client-preset-4.2.6.tgz", - "integrity": "sha512-e7SzPb+nxNJfsD0uG+NSyzIeTtCXTouX5VThmcCoqGMDLgF5Lo7932B3HtZCvzmzqcXxRjJ81CmkA2LhlqIbCw==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/client-preset/-/client-preset-4.4.0.tgz", + "integrity": "sha512-Q0NHFK7KXLhEaRC/k82ge0dHDfeHJEvvDeV0vV3+oSurHNa/lpxQtbK2BqknZe+JDfZ1YOOvYT93XsAkYD+SQg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.20.2", "@babel/template": "^7.20.7", - "@graphql-codegen/add": "^5.0.2", - "@graphql-codegen/gql-tag-operations": "4.0.7", + "@graphql-codegen/add": "^5.0.3", + "@graphql-codegen/gql-tag-operations": "4.0.10", "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/typed-document-node": "^5.0.7", - "@graphql-codegen/typescript": "^4.0.7", - "@graphql-codegen/typescript-operations": "^4.2.1", - "@graphql-codegen/visitor-plugin-common": "^5.2.0", + "@graphql-codegen/typed-document-node": "^5.0.10", + "@graphql-codegen/typescript": "^4.1.0", + "@graphql-codegen/typescript-operations": "^4.3.0", + "@graphql-codegen/visitor-plugin-common": "^5.4.0", "@graphql-tools/documents": "^1.0.0", "@graphql-tools/utils": "^10.0.0", "@graphql-typed-document-node/core": "3.2.0", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } @@ -4434,17 +4506,21 @@ } }, "node_modules/@graphql-codegen/gql-tag-operations": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@graphql-codegen/gql-tag-operations/-/gql-tag-operations-4.0.7.tgz", - "integrity": "sha512-2I69+IDC8pqAohH6cgKse/vPfJ/4TRTJX96PkAKz8S4RD54PUHtBmzCdBInIFEP/vQuH5mFUAaIKXXjznmGOsg==", + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/@graphql-codegen/gql-tag-operations/-/gql-tag-operations-4.0.10.tgz", + "integrity": "sha512-WsBEVL3XQdBboFJJL5WxrUjkuo3B7Sa51R9NbT7PKBe0HCNstoouGZIvQJRUubttFCqTTyoFtNsoRSKB+rsRug==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/visitor-plugin-common": "5.2.0", + "@graphql-codegen/visitor-plugin-common": "5.4.0", "@graphql-tools/utils": "^10.0.0", "auto-bind": "~4.0.0", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } @@ -4467,10 +4543,11 @@ } }, "node_modules/@graphql-codegen/schema-ast": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-4.0.2.tgz", - "integrity": "sha512-5mVAOQQK3Oz7EtMl/l3vOQdc2aYClUzVDHHkMvZlunc+KlGgl81j8TLa+X7ANIllqU4fUEsQU3lJmk4hXP6K7Q==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/schema-ast/-/schema-ast-4.1.0.tgz", + "integrity": "sha512-kZVn0z+th9SvqxfKYgztA6PM7mhnSZaj4fiuBWvMTqA+QqQ9BBed6Pz41KuD/jr0gJtnlr2A4++/0VlpVbCTmQ==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.3", "@graphql-tools/utils": "^10.0.0", @@ -4481,58 +4558,71 @@ } }, "node_modules/@graphql-codegen/typed-document-node": { - "version": "5.0.7", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typed-document-node/-/typed-document-node-5.0.7.tgz", - "integrity": "sha512-rgFh96hAbNwPUxLVlRcNhGaw2+y7ZGx7giuETtdO8XzPasTQGWGRkZ3wXQ5UUiTX4X3eLmjnuoXYKT7HoxSznQ==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typed-document-node/-/typed-document-node-5.0.10.tgz", + "integrity": "sha512-YPDUNs6x0muoVWlbY2yEs0lGxFHMTszlGDh6klT/5rqiTDTZg3zz8Wd1ZTihkcH8+V6T0AT9qDWwcx9fcS2tvQ==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/visitor-plugin-common": "5.2.0", + "@graphql-codegen/visitor-plugin-common": "5.4.0", "auto-bind": "~4.0.0", "change-case-all": "1.0.15", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, "node_modules/@graphql-codegen/typescript": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-4.0.7.tgz", - "integrity": "sha512-Gn+JNvQBJhBqH7s83piAJ6UeU/MTj9GXWFO9bdbl8PMLCAM1uFAtg04iHfkGCtDKXcUg5a3Dt/SZG85uk5KuhA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript/-/typescript-4.1.0.tgz", + "integrity": "sha512-/fS53Nh6U6c58GTOxqfyKTLQfQv36P8II/vPw/fg0cdcWbALhRPls69P8vXUWjrElmLKzCrdusBWPp/r+AKUBQ==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.4", "@graphql-codegen/schema-ast": "^4.0.2", - "@graphql-codegen/visitor-plugin-common": "5.2.0", + "@graphql-codegen/visitor-plugin-common": "5.4.0", "auto-bind": "~4.0.0", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, "node_modules/@graphql-codegen/typescript-operations": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-operations/-/typescript-operations-4.2.1.tgz", - "integrity": "sha512-LhEPsaP+AI65zfK2j6CBAL4RT0bJL/rR9oRWlvwtHLX0t7YQr4CP4BXgvvej9brYdedAxHGPWeV1tPHy5/z9KQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/typescript-operations/-/typescript-operations-4.3.0.tgz", + "integrity": "sha512-ZORwMy8OgsiYd9EZUhTMd4/g5LvTFpx6Fh6dNN0cxFkqSc6KhjX0vhzWsyK8N9+ILaHSutT8UTrLMdJi35HzDQ==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.4", - "@graphql-codegen/typescript": "^4.0.7", - "@graphql-codegen/visitor-plugin-common": "5.2.0", + "@graphql-codegen/typescript": "^4.1.0", + "@graphql-codegen/visitor-plugin-common": "5.4.0", "auto-bind": "~4.0.0", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } }, "node_modules/@graphql-codegen/visitor-plugin-common": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-5.2.0.tgz", - "integrity": "sha512-0p8AwmARaZCAlDFfQu6Sz+JV6SjbPDx3y2nNM7WAAf0au7Im/GpJ7Ke3xaIYBc1b2rTZ+DqSTJI/zomENGD9NA==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-5.4.0.tgz", + "integrity": "sha512-tL7hOrO+4MiNfDiHewhRQCiH9GTAh0M9Y/BZxYGGEdnrfGgqK5pCxtjq7EY/L19VGIyU7hhzYTQ0r1HzEbB4Jw==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-codegen/plugin-helpers": "^5.0.4", "@graphql-tools/optimize": "^2.0.0", @@ -4545,6 +4635,9 @@ "parse-filepath": "^1.0.2", "tslib": "~2.6.0" }, + "engines": { + "node": ">=16" + }, "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" } @@ -5466,6 +5559,7 @@ "resolved": "https://registry.npmjs.org/@graphql-tools/optimize/-/optimize-2.0.0.tgz", "integrity": "sha512-nhdT+CRGDZ+bk68ic+Jw1OZ99YCDIKYA5AlVAnBHJvMawSx9YQqQAIj4refNc1/LRieGiuWvhbG3jvPVYho0Dg==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.4.0" }, @@ -5605,13 +5699,14 @@ "dev": true }, "node_modules/@graphql-tools/relay-operation-optimizer": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.0.1.tgz", - "integrity": "sha512-y0ZrQ/iyqWZlsS/xrJfSir3TbVYJTYmMOu4TaSz6F4FRDTQ3ie43BlKkhf04rC28pnUOS4BO9pDcAo1D30l5+A==", + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/relay-operation-optimizer/-/relay-operation-optimizer-7.0.2.tgz", + "integrity": "sha512-sdoGBfe6+OXcPYUBMla3KKvf56bk0wCRY2HL4qK/CNP+7752Nx6s24aBqZ5vrnB3tleddAfnG4gvy0JuHfmA+A==", "dev": true, + "license": "MIT", "dependencies": { "@ardatan/relay-compiler": "12.0.0", - "@graphql-tools/utils": "^10.0.13", + "@graphql-tools/utils": "^10.5.5", "tslib": "^2.4.0" }, "engines": { @@ -5711,9 +5806,9 @@ "dev": true }, "node_modules/@graphql-tools/utils": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.4.tgz", - "integrity": "sha512-XHnyCWSlg1ccsD8s0y6ugo5GZ5TpkTiFVNPSYms5G0s6Z/xTuSmiLBfeqgkfaCwLmLaQnRCmNDL2JRnqc2R5bQ==", + "version": "10.5.5", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.5.5.tgz", + "integrity": "sha512-LF/UDWmMT0mnobL2UZETwYghV7HYBzNaGj0SAkCYOMy/C3+6sQdbcTksnoFaKR9XIVD78jNXEGfivbB8Zd+cwA==", "dev": true, "license": "MIT", "dependencies": { @@ -6828,6 +6923,13 @@ "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", "dev": true }, + "node_modules/@kamilkisiela/fast-url-parser": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz", + "integrity": "sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew==", + "dev": true, + "license": "MIT" + }, "node_modules/@lit-labs/react": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/@lit-labs/react/-/react-1.2.1.tgz", @@ -19472,6 +19574,7 @@ "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-4.0.0.tgz", "integrity": "sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -19959,7 +20062,8 @@ "version": "7.0.0-beta.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz", "integrity": "sha512-Xj9XuRuz3nTSbaTXWv3itLOcxyF4oPD8douBBmj7U9BBC6nEBYfyOJYQMf/8PJAFotC62UY5dFfIGEPr7WswzQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/babel-preset-current-node-syntax": { "version": "1.0.1", @@ -19989,6 +20093,7 @@ "resolved": "https://registry.npmjs.org/babel-preset-fbjs/-/babel-preset-fbjs-3.4.0.tgz", "integrity": "sha512-9ywCsCvo1ojrw0b+XYk7aFvTH6D9064t0RIL1rtMf3nsa02Xw41MS7sZw216Im35xj/UY0PDBQsa1brUDDF1Ow==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-proposal-class-properties": "^7.0.0", "@babel/plugin-proposal-object-rest-spread": "^7.0.0", @@ -23084,6 +23189,7 @@ "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.11.0.tgz", "integrity": "sha512-JeMq7fEshyepOWDfcfHK06N3MhyPhz++vtqWhMT5O9A3K42rdsEDpfdVqjaqaAhsw6a+ZqeDvQVtD0hFHQWrzg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6.0" } @@ -25726,6 +25832,7 @@ "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-3.0.5.tgz", "integrity": "sha512-ztsSx77JBtkuMrEypfhgc3cI0+0h+svqeie7xHbh1k/IKdcydnvadp/mUaGgjAOXQmQSxsqgaRhS3q9fy+1kxg==", "dev": true, + "license": "MIT", "dependencies": { "cross-fetch": "^3.1.5", "fbjs-css-vars": "^1.0.0", @@ -27164,10 +27271,11 @@ } }, "node_modules/graphql-config": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-5.0.3.tgz", - "integrity": "sha512-BNGZaoxIBkv9yy6Y7omvsaBUHOzfFcII3UN++tpH8MGOKFPFkCPZuwx09ggANMt8FgyWP1Od8SWPmrUEZca4NQ==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/graphql-config/-/graphql-config-5.1.3.tgz", + "integrity": "sha512-RBhejsPjrNSuwtckRlilWzLVt2j8itl74W9Gke1KejDTz7oaA5kVd6wRn9zK9TS5mcmIYGxf7zN7a1ORMdxp1Q==", "dev": true, + "license": "MIT", "dependencies": { "@graphql-tools/graphql-file-loader": "^8.0.0", "@graphql-tools/json-file-loader": "^8.0.0", @@ -27176,8 +27284,8 @@ "@graphql-tools/url-loader": "^8.0.0", "@graphql-tools/utils": "^10.0.0", "cosmiconfig": "^8.1.0", - "jiti": "^1.18.2", - "minimatch": "^4.2.3", + "jiti": "^2.0.0", + "minimatch": "^9.0.5", "string-env-interpolation": "^1.0.1", "tslib": "^2.4.0" }, @@ -27194,16 +27302,40 @@ } } }, + "node_modules/graphql-config/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/graphql-config/node_modules/jiti": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.3.3.tgz", + "integrity": "sha512-EX4oNDwcXSivPrw2qKH2LB5PoFxEvgtv2JgwW0bU858HoLQ+kutSvjLMUqBd0PeJYEinLWhoI9Ol0eYMqj/wNQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, "node_modules/graphql-config/node_modules/minimatch": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-4.2.3.tgz", - "integrity": "sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng==", + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { - "brace-expansion": "^1.1.7" + "brace-expansion": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/graphql-depth-limit": { @@ -28366,6 +28498,7 @@ "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "dev": true, + "license": "MIT", "dependencies": { "is-relative": "^1.0.0", "is-windows": "^1.0.1" @@ -28804,6 +28937,7 @@ "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, + "license": "MIT", "dependencies": { "is-unc-path": "^1.0.0" }, @@ -28902,6 +29036,7 @@ "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, + "license": "MIT", "dependencies": { "unc-path-regex": "^0.1.2" }, @@ -32928,6 +33063,7 @@ "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -33971,7 +34107,8 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/nullthrows/-/nullthrows-1.1.1.tgz", "integrity": "sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/nwsapi": { "version": "2.2.13", @@ -34874,6 +35011,7 @@ "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", "dev": true, + "license": "MIT", "dependencies": { "is-absolute": "^1.0.0", "map-cache": "^0.2.0", @@ -35049,6 +35187,7 @@ "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", "dev": true, + "license": "MIT", "dependencies": { "path-root-regex": "^0.1.0" }, @@ -35061,6 +35200,7 @@ "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -37283,6 +37423,7 @@ "resolved": "https://registry.npmjs.org/relay-runtime/-/relay-runtime-12.0.0.tgz", "integrity": "sha512-QU6JKr1tMsry22DXNy9Whsq5rmvwr3LSZiiWV/9+DFpuTWvp+WFhobWMc8TC4OjKFfNhEZy7mOiqUAn5atQtug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/runtime": "^7.0.0", "fbjs": "^3.0.0", @@ -38529,7 +38670,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/signedsource/-/signedsource-1.0.0.tgz", "integrity": "sha512-6+eerH9fEnNmi/hyM1DXcRK3pWdoMQtlkQ+ns0ntzunjKqp5i3sKCc80ym8Fib3iaYhdJUOPdhlJWj1tvge2Ww==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/simple-concat": { "version": "1.0.1", @@ -40806,9 +40948,9 @@ } }, "node_modules/ua-parser-js": { - "version": "1.0.38", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.38.tgz", - "integrity": "sha512-Aq5ppTOfvrCMgAPneW1HfWj66Xi7XL+/mIy996R1/CLS/rcyJQm6QZdsKrUeivDFQ+Oc9Wyuwor8Ze8peEoUoQ==", + "version": "1.0.39", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.39.tgz", + "integrity": "sha512-k24RCVWlEcjkdOxYmVJgeD/0a1TiSpqLg+ZalVGV9lsnr4yqu0w7tX/x2xX6G4zpkgQnRf89lxuZ1wsbjXM8lw==", "dev": true, "funding": [ { @@ -40824,6 +40966,10 @@ "url": "https://github.com/sponsors/faisalman" } ], + "license": "MIT", + "bin": { + "ua-parser-js": "script/cli.js" + }, "engines": { "node": "*" } @@ -40874,6 +41020,7 @@ "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } diff --git a/package.json b/package.json index d2a920456df..b5cd3b97399 100644 --- a/package.json +++ b/package.json @@ -210,7 +210,7 @@ "@cypress/code-coverage": "^3.12.39", "@formatjs/cli": "^6.2.12", "@graphql-codegen/add": "^5.0.2", - "@graphql-codegen/cli": "5.0.2", + "@graphql-codegen/cli": "5.0.3", "@graphql-codegen/client-preset": "^4.2.6", "@graphql-eslint/eslint-plugin": "^3.20.1", "@next/bundle-analyzer": "^14.2.3", diff --git a/pages/collective-contact.tsx b/pages/collective-contact.tsx index 6fa4427fa8e..2dd238a6476 100644 --- a/pages/collective-contact.tsx +++ b/pages/collective-contact.tsx @@ -7,7 +7,7 @@ import { FormattedMessage, useIntl } from 'react-intl'; import { getCollectivePageMetadata } from '../lib/collective'; import { generateNotFoundError } from '../lib/errors'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { Account } from '../lib/graphql/types/v2/graphql'; +import type { Account } from '../lib/graphql/types/v2/schema'; import AuthenticatedPage from '../components/AuthenticatedPage'; import CollectiveNavbar from '../components/collective-navbar'; diff --git a/pages/confirmEmail.tsx b/pages/confirmEmail.tsx index 603c199f0a9..b127dda41b0 100644 --- a/pages/confirmEmail.tsx +++ b/pages/confirmEmail.tsx @@ -7,7 +7,7 @@ import { ArrowLeft } from 'lucide-react'; import { FormattedMessage } from 'react-intl'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { Mutation, MutationConfirmEmailArgs } from '../lib/graphql/types/v2/graphql'; +import type { Mutation, MutationConfirmEmailArgs } from '../lib/graphql/types/v2/schema'; import type { UserContextProps } from '../lib/hooks/useLoggedInUser'; import Container from '../components/Container'; diff --git a/pages/expenses.tsx b/pages/expenses.tsx index ee9512df2eb..3190008f1df 100644 --- a/pages/expenses.tsx +++ b/pages/expenses.tsx @@ -13,7 +13,7 @@ import { parseDateInterval } from '../lib/date-utils'; import { generateNotFoundError } from '../lib/errors'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; import type { ExpensesPageQuery } from '../lib/graphql/types/v2/graphql'; -import { ExpenseStatus } from '../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../lib/graphql/types/v2/schema'; import useLoggedInUser from '../lib/hooks/useLoggedInUser'; import { getCollectivePageCanonicalURL } from '../lib/url-helpers'; diff --git a/pages/order.tsx b/pages/order.tsx index d926884a924..a2012019411 100644 --- a/pages/order.tsx +++ b/pages/order.tsx @@ -9,7 +9,7 @@ import { getSSRQueryHelpers } from '../lib/apollo-client'; import { getCollectivePageMetadata } from '../lib/collective'; import dayjs from '../lib/dayjs'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; -import type { Account, AccountWithHost } from '../lib/graphql/types/v2/graphql'; +import type { Account, AccountWithHost } from '../lib/graphql/types/v2/schema'; import useLoggedInUser from '../lib/hooks/useLoggedInUser'; import { usePrevious } from '../lib/hooks/usePrevious'; import { i18nPaymentMethodProviderType } from '../lib/i18n/payment-method-provider-type'; diff --git a/pages/submitted-expenses.tsx b/pages/submitted-expenses.tsx index c5dca4c6bcf..46f54ff630f 100644 --- a/pages/submitted-expenses.tsx +++ b/pages/submitted-expenses.tsx @@ -16,7 +16,7 @@ import { parseDateInterval } from '../lib/date-utils'; import { generateNotFoundError } from '../lib/errors'; import { API_V2_CONTEXT, gql } from '../lib/graphql/helpers'; import type { SubmittedExpensesPageQuery, SubmittedExpensesPageQueryVariables } from '../lib/graphql/types/v2/graphql'; -import { ExpenseStatus } from '../lib/graphql/types/v2/graphql'; +import { ExpenseStatus } from '../lib/graphql/types/v2/schema'; import type LoggedInUser from '../lib/LoggedInUser'; import { getCollectivePageCanonicalURL } from '../lib/url-helpers'; diff --git a/scripts/config/graphql-codegen.ts b/scripts/config/graphql-codegen.ts index db28dd0611e..56d310d0c97 100644 --- a/scripts/config/graphql-codegen.ts +++ b/scripts/config/graphql-codegen.ts @@ -15,6 +15,10 @@ const config: CodegenConfig = { }, schema: './lib/graphql/schemaV2.graphql', }, + './lib/graphql/types/v2/schema.ts': { + plugins: ['typescript'], + schema: './lib/graphql/schemaV2.graphql', + }, }, pluckConfig: { globalGqlIdentifierName: 'gql', diff --git a/stories/two-factor-authentication/TwoFactorAuthenticationSettings.stories.tsx b/stories/two-factor-authentication/TwoFactorAuthenticationSettings.stories.tsx index cb54ea2b47e..8913fd4a79c 100644 --- a/stories/two-factor-authentication/TwoFactorAuthenticationSettings.stories.tsx +++ b/stories/two-factor-authentication/TwoFactorAuthenticationSettings.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { TwoFactorMethod } from '../../lib/graphql/types/v2/graphql'; +import { TwoFactorMethod } from '../../lib/graphql/types/v2/schema'; import { TwoFactorAuthenticationSettings } from '../../components/two-factor-authentication/TwoFactorAuthenticationSettings';