diff --git a/src/components/settings/integrations/NetsuiteIntegrationItemsList.tsx b/src/components/settings/integrations/NetsuiteIntegrationItemsList.tsx index d153dc1ca..be6f67465 100644 --- a/src/components/settings/integrations/NetsuiteIntegrationItemsList.tsx +++ b/src/components/settings/integrations/NetsuiteIntegrationItemsList.tsx @@ -7,13 +7,13 @@ import styled from 'styled-components' import { Button, Popper, Typography } from '~/components/designSystem' import { SearchInput } from '~/components/SearchInput' import { + MappableTypeEnum, NetsuiteIntegrationItemsListAddonsFragmentDoc, NetsuiteIntegrationItemsListBillableMetricsFragmentDoc, NetsuiteIntegrationItemsListDefaultFragmentDoc, - NetsuiteMappableTypeEnum, useGetAddOnsForNetsuiteItemsListLazyQuery, useGetBillableMetricsForNetsuiteItemsListLazyQuery, - useGetNetsuiteCollectionMappingsLazyQuery, + useGetIntegrationCollectionMappingsLazyQuery, } from '~/generated/graphql' import { useInternationalization } from '~/hooks/core/useInternationalization' import { useDebouncedSearch } from '~/hooks/useDebouncedSearch' @@ -26,14 +26,14 @@ import { NetsuiteMapItemDialog, NetsuiteMapItemDialogRef } from './NetsuiteMapIt const SelectedItemTypeEnum = { Default: 'Default', - [NetsuiteMappableTypeEnum.AddOn]: 'AddOn', - [NetsuiteMappableTypeEnum.BillableMetric]: 'BillableMetric', + [MappableTypeEnum.AddOn]: 'AddOn', + [MappableTypeEnum.BillableMetric]: 'BillableMetric', } as const const SelectedItemTypeEnumTranslation = { Default: 'text_65281f686a80b400c8e2f6d1', - [NetsuiteMappableTypeEnum.AddOn]: 'text_629728388c4d2300e2d3801a', - [NetsuiteMappableTypeEnum.BillableMetric]: 'text_623b497ad05b960101be3438', + [MappableTypeEnum.AddOn]: 'text_629728388c4d2300e2d3801a', + [MappableTypeEnum.BillableMetric]: 'text_623b497ad05b960101be3438', } as const gql` @@ -41,8 +41,8 @@ gql` id # integrationId received in props } - query getNetsuiteCollectionMappings($integrationId: ID!) { - netsuiteCollectionMappings(integrationId: $integrationId) { + query getIntegrationCollectionMappings($integrationId: ID!) { + integrationCollectionMappings(integrationId: $integrationId) { collection { id ...NetsuiteIntegrationItemsListDefault @@ -101,7 +101,7 @@ const NetsuiteIntegrationItemsList = ({ integrationId }: { integrationId: string loading: collectionMappingLoading, error: collectionMappingError, }, - ] = useGetNetsuiteCollectionMappingsLazyQuery({ + ] = useGetIntegrationCollectionMappingsLazyQuery({ notifyOnNetworkStatusChange: true, variables: { integrationId, @@ -150,9 +150,9 @@ const NetsuiteIntegrationItemsList = ({ integrationId }: { integrationId: string useEffect(() => { if (selectedItemType === SelectedItemTypeEnum.Default) { getDefaultItems() - } else if (selectedItemType === NetsuiteMappableTypeEnum.AddOn) { + } else if (selectedItemType === MappableTypeEnum.AddOn) { getAddonList() - } else if (selectedItemType === NetsuiteMappableTypeEnum.BillableMetric) { + } else if (selectedItemType === MappableTypeEnum.BillableMetric) { getBillableMetricsList() } }, [selectedItemType, getAddonList, getDefaultItems, getBillableMetricsList]) @@ -190,7 +190,7 @@ const NetsuiteIntegrationItemsList = ({ integrationId }: { integrationId: string align="left" fullWidth onClick={() => { - setSelectedItemType(NetsuiteMappableTypeEnum.AddOn) + setSelectedItemType(MappableTypeEnum.AddOn) closePopper() }} > @@ -201,7 +201,7 @@ const NetsuiteIntegrationItemsList = ({ integrationId }: { integrationId: string align="left" fullWidth onClick={() => { - setSelectedItemType(NetsuiteMappableTypeEnum.BillableMetric) + setSelectedItemType(MappableTypeEnum.BillableMetric) closePopper() }} > @@ -212,12 +212,12 @@ const NetsuiteIntegrationItemsList = ({ integrationId }: { integrationId: string - {selectedItemType === NetsuiteMappableTypeEnum.AddOn ? ( + {selectedItemType === MappableTypeEnum.AddOn ? ( - ) : selectedItemType === NetsuiteMappableTypeEnum.BillableMetric ? ( + ) : selectedItemType === MappableTypeEnum.BillableMetric ? ( - ) : selectedItemType === NetsuiteMappableTypeEnum.AddOn ? ( + ) : selectedItemType === MappableTypeEnum.AddOn ? ( - ) : selectedItemType === NetsuiteMappableTypeEnum.BillableMetric ? ( + ) : selectedItemType === MappableTypeEnum.BillableMetric ? ( {!!addons.length && addons.map((addOn) => { + const addonMapping = addOn?.integrationMappings?.find( + (i) => i.mappableType === MappableTypeEnum.AddOn, + ) + return ( { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappableTypeEnum.AddOn, - itemId: addOn?.netsuiteMapping?.id, - itemExternalId: addOn?.netsuiteMapping?.externalId, - itemExternalCode: addOn?.netsuiteMapping?.externalAccountCode || undefined, - itemExternalName: addOn?.netsuiteMapping?.externalName || undefined, + type: MappableTypeEnum.AddOn, + itemId: addonMapping?.id, + itemExternalId: addonMapping?.externalId, + itemExternalCode: addonMapping?.externalAccountCode || undefined, + itemExternalName: addonMapping?.externalName || undefined, lagoMappableId: addOn.id, }) }} mappingInfos={ - !!addOn?.netsuiteMapping?.id + !!addonMapping?.id ? { id: addonMapping.externalId, name: addonMapping.externalName || '', diff --git a/src/components/settings/integrations/NetsuiteIntegrationItemsListBillableMetrics.tsx b/src/components/settings/integrations/NetsuiteIntegrationItemsListBillableMetrics.tsx index f858c69ac..225cf271a 100644 --- a/src/components/settings/integrations/NetsuiteIntegrationItemsListBillableMetrics.tsx +++ b/src/components/settings/integrations/NetsuiteIntegrationItemsListBillableMetrics.tsx @@ -9,7 +9,7 @@ import { CREATE_BILLABLE_METRIC_ROUTE } from '~/core/router' import { GetBillableMetricsForNetsuiteItemsListQuery, InputMaybe, - NetsuiteMappableTypeEnum, + MappableTypeEnum, } from '~/generated/graphql' import { useInternationalization } from '~/hooks/core/useInternationalization' import EmptyImage from '~/public/images/maneki/empty.svg' @@ -24,11 +24,12 @@ gql` id name code - netsuiteMapping { + integrationMappings { id externalId externalAccountCode externalName + mappableType } } ` @@ -124,6 +125,10 @@ const NetsuiteIntegrationItemsListBillableMetrics = ({ <> {!!billableMetrics.length && billableMetrics.map((billableMetric) => { + const billableMetricMapping = billableMetric.integrationMappings?.find( + (mapping) => mapping.mappableType === MappableTypeEnum.BillableMetric, + ) + return ( { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappableTypeEnum.BillableMetric, - itemId: billableMetric?.netsuiteMapping?.id, - itemExternalId: billableMetric?.netsuiteMapping?.externalId, - itemExternalCode: - billableMetric?.netsuiteMapping?.externalAccountCode || undefined, - itemExternalName: - billableMetric?.netsuiteMapping?.externalName || undefined, + type: MappableTypeEnum.BillableMetric, + itemId: billableMetricMapping?.id, + itemExternalId: billableMetricMapping?.externalId, + itemExternalCode: billableMetricMapping?.externalAccountCode || undefined, + itemExternalName: billableMetricMapping?.externalName || undefined, lagoMappableId: billableMetric.id, }) }} mappingInfos={ - !!billableMetric?.netsuiteMapping?.id + !!billableMetricMapping?.id ? { id: billableMetricMapping.externalId, name: billableMetricMapping.externalName || '', diff --git a/src/components/settings/integrations/NetsuiteIntegrationItemsListDefault.tsx b/src/components/settings/integrations/NetsuiteIntegrationItemsListDefault.tsx index d1597257b..c15ded0c9 100644 --- a/src/components/settings/integrations/NetsuiteIntegrationItemsListDefault.tsx +++ b/src/components/settings/integrations/NetsuiteIntegrationItemsListDefault.tsx @@ -3,10 +3,7 @@ import { Stack } from '@mui/material' import { RefObject, useMemo } from 'react' import { GenericPlaceholder } from '~/components/GenericPlaceholder' -import { - NetsuiteIntegrationItemsListDefaultFragment, - NetsuiteMappingTypeEnum, -} from '~/generated/graphql' +import { MappingTypeEnum, NetsuiteIntegrationItemsListDefaultFragment } from '~/generated/graphql' import { useInternationalization } from '~/hooks/core/useInternationalization' import ErrorImage from '~/public/images/maneki/error.svg' @@ -15,7 +12,7 @@ import NetsuiteIntegrationItemLine from './NetsuiteIntegrationItemLine' import { NetsuiteMapItemDialogRef } from './NetsuiteMapItemDialog' gql` - fragment NetsuiteIntegrationItemsListDefault on NetsuiteCollectionMapping { + fragment NetsuiteIntegrationItemsListDefault on CollectionMapping { id mappingType externalId @@ -45,21 +42,19 @@ const NetsuiteIntegrationItemsListDefault = ({ useMemo(() => { return { fallbackItem: defaultItems?.find( - (mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.FallbackItem, - ), - coupon: defaultItems?.find( - (mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.Coupon, + (mapping) => mapping.mappingType === MappingTypeEnum.FallbackItem, ), + coupon: defaultItems?.find((mapping) => mapping.mappingType === MappingTypeEnum.Coupon), minimumCommitment: defaultItems?.find( - (mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.MinimumCommitment, + (mapping) => mapping.mappingType === MappingTypeEnum.MinimumCommitment, ), prepaidCredit: defaultItems?.find( - (mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.PrepaidCredit, + (mapping) => mapping.mappingType === MappingTypeEnum.PrepaidCredit, ), subscriptionFee: defaultItems?.find( - (mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.SubscriptionFee, + (mapping) => mapping.mappingType === MappingTypeEnum.SubscriptionFee, ), - tax: defaultItems?.find((mapping) => mapping.mappingType === NetsuiteMappingTypeEnum.Tax), + tax: defaultItems?.find((mapping) => mapping.mappingType === MappingTypeEnum.Tax), } }, [defaultItems]) @@ -87,7 +82,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.FallbackItem, + type: MappingTypeEnum.FallbackItem, itemId: fallbackItem?.id, itemExternalId: fallbackItem?.externalId, itemExternalCode: fallbackItem?.externalAccountCode || undefined, @@ -112,7 +107,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.Coupon, + type: MappingTypeEnum.Coupon, itemId: coupon?.id, itemExternalId: coupon?.externalId, itemExternalCode: coupon?.externalAccountCode || undefined, @@ -137,7 +132,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.SubscriptionFee, + type: MappingTypeEnum.SubscriptionFee, itemId: subscriptionFee?.id, itemExternalId: subscriptionFee?.externalId, itemExternalCode: subscriptionFee?.externalAccountCode || undefined, @@ -161,7 +156,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.MinimumCommitment, + type: MappingTypeEnum.MinimumCommitment, itemId: minimumCommitment?.id, itemExternalId: minimumCommitment?.externalId, itemExternalCode: minimumCommitment?.externalAccountCode || undefined, @@ -186,7 +181,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.Tax, + type: MappingTypeEnum.Tax, itemId: tax?.id, itemExternalId: tax?.externalId, itemExternalCode: tax?.externalAccountCode || undefined, @@ -211,7 +206,7 @@ const NetsuiteIntegrationItemsListDefault = ({ onMappingClick={() => { netsuiteMapItemDialogRef.current?.openDialog({ integrationId, - type: NetsuiteMappingTypeEnum.PrepaidCredit, + type: MappingTypeEnum.PrepaidCredit, itemId: prepaidCredit?.id, itemExternalId: prepaidCredit?.externalId, itemExternalCode: prepaidCredit?.externalAccountCode || undefined, diff --git a/src/components/settings/integrations/NetsuiteMapItemDialog.tsx b/src/components/settings/integrations/NetsuiteMapItemDialog.tsx index 6cbf0783c..5292ed182 100644 --- a/src/components/settings/integrations/NetsuiteMapItemDialog.tsx +++ b/src/components/settings/integrations/NetsuiteMapItemDialog.tsx @@ -11,17 +11,17 @@ import { WarningDialogRef } from '~/components/WarningDialog' import { addToast } from '~/core/apolloClient' import { IntegrationItemTypeEnum, - NetsuiteMappableTypeEnum, - NetsuiteMappingTypeEnum, - useCreateNetsuiteIntegrationCollectionMappingMutation, - useCreateNetsuiteIntegrationMappingMutation, - useDeleteNetsuiteIntegrationCollectionMappingMutation, + MappableTypeEnum, + MappingTypeEnum, + useCreateIntegrationCollectionMappingMutation, + useCreateIntegrationMappingMutation, + useDeleteIntegrationCollectionMappingMutation, useDeleteNetsuiteIntegrationMappingMutation, useGetIntegrationItemsLazyQuery, useTriggerIntegrationItemsRefetchMutation, useTriggerIntegrationTaxItemsRefetchMutation, - useUpdateNetsuiteIntegrationCollectionMappingMutation, - useUpdateNetsuiteIntegrationMappingMutation, + useUpdateIntegrationCollectionMappingMutation, + useUpdateIntegrationMappingMutation, } from '~/generated/graphql' import { useInternationalization } from '~/hooks/core/useInternationalization' import { theme } from '~/styles' @@ -55,14 +55,14 @@ gql` itemType } - fragment NetsuiteMapItemDialogCollectionMappingItem on NetsuiteCollectionMapping { + fragment NetsuiteMapItemDialogCollectionMappingItem on CollectionMapping { id externalId externalName externalAccountCode } - fragment NetsuiteMapItemDialogCollectionItem on NetsuiteMapping { + fragment NetsuiteMapItemDialogCollectionItem on Mapping { id externalId externalName @@ -112,41 +112,35 @@ gql` } # Mapping Creation - mutation createNetsuiteIntegrationCollectionMapping( - $input: CreateNetsuiteIntegrationCollectionMappingInput! - ) { - createNetsuiteIntegrationCollectionMapping(input: $input) { + mutation createIntegrationCollectionMapping($input: CreateIntegrationCollectionMappingInput!) { + createIntegrationCollectionMapping(input: $input) { id ...NetsuiteMapItemDialogCollectionMappingItem } } - mutation createNetsuiteIntegrationMapping($input: CreateNetsuiteIntegrationMappingInput!) { - createNetsuiteIntegrationMapping(input: $input) { + mutation createIntegrationMapping($input: CreateIntegrationMappingInput!) { + createIntegrationMapping(input: $input) { id ...NetsuiteMapItemDialogCollectionItem } } # Mapping edition - mutation updateNetsuiteIntegrationCollectionMapping( - $input: UpdateNetsuiteIntegrationCollectionMappingInput! - ) { - updateNetsuiteIntegrationCollectionMapping(input: $input) { + mutation updateIntegrationCollectionMapping($input: UpdateIntegrationCollectionMappingInput!) { + updateIntegrationCollectionMapping(input: $input) { id } } - mutation updateNetsuiteIntegrationMapping($input: UpdateNetsuiteIntegrationMappingInput!) { - updateNetsuiteIntegrationMapping(input: $input) { + mutation updateIntegrationMapping($input: UpdateIntegrationMappingInput!) { + updateIntegrationMapping(input: $input) { id } } # Mapping deletion - mutation deleteNetsuiteIntegrationCollectionMapping( - $input: DestroyIntegrationCollectionMappingInput! - ) { + mutation deleteIntegrationCollectionMapping($input: DestroyIntegrationCollectionMappingInput!) { destroyIntegrationCollectionMapping(input: $input) { id } @@ -160,7 +154,7 @@ gql` ` type TNetsuiteMapItemDialogProps = { - type: NetsuiteMappingTypeEnum | NetsuiteMappableTypeEnum + type: MappingTypeEnum | MappableTypeEnum integrationId: string itemId?: string itemExternalId?: string @@ -178,16 +172,16 @@ export const NetsuiteMapItemDialog = forwardRef((_, re const { translate } = useInternationalization() const dialogRef = useRef(null) const [localData, setLocalData] = useState(undefined) - const isTaxContext = localData?.type === NetsuiteMappingTypeEnum.Tax - const isCollectionContext = !Object.values(NetsuiteMappableTypeEnum).includes( - localData?.type as NetsuiteMappableTypeEnum, + const isTaxContext = localData?.type === MappingTypeEnum.Tax + const isCollectionContext = !Object.values(MappableTypeEnum).includes( + localData?.type as MappableTypeEnum, ) const refetchQueries = - localData?.type === NetsuiteMappableTypeEnum.AddOn + localData?.type === MappableTypeEnum.AddOn ? ['getAddOnsForNetsuiteItemsList'] - : localData?.type === NetsuiteMappableTypeEnum.BillableMetric + : localData?.type === MappableTypeEnum.BillableMetric ? ['getBillableMetricsForNetsuiteItemsList'] - : ['getNetsuiteCollectionMappings'] + : ['getIntegrationCollectionMappings'] // Item fetch const [getIntegrationItems, { loading: initialItemFetchLoading, data: initialItemFetchData }] = @@ -196,7 +190,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re limit: 50, integrationId: localData?.integrationId as string, itemType: - localData?.type === NetsuiteMappingTypeEnum.Tax + localData?.type === MappingTypeEnum.Tax ? IntegrationItemTypeEnum.Tax : IntegrationItemTypeEnum.Standard, }, @@ -214,9 +208,9 @@ export const NetsuiteMapItemDialog = forwardRef((_, re }) // Mapping Creation - const [createCollectionMapping] = useCreateNetsuiteIntegrationCollectionMappingMutation({ + const [createCollectionMapping] = useCreateIntegrationCollectionMappingMutation({ onCompleted(data) { - if (data && data.createNetsuiteIntegrationCollectionMapping?.id) { + if (data && data.createIntegrationCollectionMapping?.id) { addToast({ message: translate('text_6630e5923500e7015f190643'), severity: 'success', @@ -225,9 +219,9 @@ export const NetsuiteMapItemDialog = forwardRef((_, re }, refetchQueries, }) - const [createMapping] = useCreateNetsuiteIntegrationMappingMutation({ + const [createMapping] = useCreateIntegrationMappingMutation({ onCompleted(data) { - if (data && data.createNetsuiteIntegrationMapping?.id) { + if (data && data.createIntegrationMapping?.id) { addToast({ message: translate('text_6630e5923500e7015f190643'), severity: 'success', @@ -238,9 +232,9 @@ export const NetsuiteMapItemDialog = forwardRef((_, re }) // Mapping edition - const [updateCollectionMapping] = useUpdateNetsuiteIntegrationCollectionMappingMutation({ + const [updateCollectionMapping] = useUpdateIntegrationCollectionMappingMutation({ onCompleted(data) { - if (data && data.updateNetsuiteIntegrationCollectionMapping?.id) { + if (data && data.updateIntegrationCollectionMapping?.id) { addToast({ message: translate('text_6630e5923500e7015f190641'), severity: 'success', @@ -249,9 +243,9 @@ export const NetsuiteMapItemDialog = forwardRef((_, re }, refetchQueries, }) - const [updateMapping] = useUpdateNetsuiteIntegrationMappingMutation({ + const [updateMapping] = useUpdateIntegrationMappingMutation({ onCompleted(data) { - if (data && data.updateNetsuiteIntegrationMapping?.id) { + if (data && data.updateIntegrationMapping?.id) { addToast({ message: translate('text_6630e5923500e7015f190641'), severity: 'success', @@ -262,7 +256,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re }) // Mapping deletion - const [deleteCollectionMapping] = useDeleteNetsuiteIntegrationCollectionMappingMutation({ + const [deleteCollectionMapping] = useDeleteIntegrationCollectionMappingMutation({ onCompleted(data) { if (data && data.destroyIntegrationCollectionMapping?.id) { addToast({ @@ -348,7 +342,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re externalAccountCode, externalName, integrationId: localData?.integrationId as string, - mappingType: localData?.type as NetsuiteMappingTypeEnum, + mappingType: localData?.type as MappingTypeEnum, ...values, }, }, @@ -361,7 +355,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re externalAccountCode, externalName, integrationId: localData?.integrationId as string, - mappableType: localData?.type as NetsuiteMappableTypeEnum, + mappableType: localData?.type as MappableTypeEnum, mappableId: localData?.lagoMappableId as string, ...values, }, @@ -386,7 +380,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re externalAccountCode, externalName, integrationId: localData?.integrationId as string, - mappingType: localData?.type as unknown as NetsuiteMappingTypeEnum, + mappingType: localData?.type as unknown as MappingTypeEnum, ...values, }, }, @@ -400,7 +394,7 @@ export const NetsuiteMapItemDialog = forwardRef((_, re externalAccountCode, externalName, integrationId: localData?.integrationId as string, - mappableType: localData?.type as unknown as NetsuiteMappableTypeEnum, + mappableType: localData?.type as unknown as MappableTypeEnum, mappableId: localData?.lagoMappableId as string, ...values, }, @@ -453,44 +447,44 @@ export const NetsuiteMapItemDialog = forwardRef((_, re const [title, description] = useMemo(() => { switch (localData?.type) { - case NetsuiteMappingTypeEnum.Coupon: + case MappingTypeEnum.Coupon: return [ translate('text_6630e57386f8a700a3318cc8'), translate('text_6630e57386f8a700a3318cc9'), ] - case NetsuiteMappingTypeEnum.FallbackItem: + case MappingTypeEnum.FallbackItem: return [ translate('text_6630e51df0a194013daea61f'), translate('text_6630e51df0a194013daea620'), ] - case NetsuiteMappingTypeEnum.MinimumCommitment: + case MappingTypeEnum.MinimumCommitment: return [ translate('text_6630e5923500e7015f1905d8'), translate('text_6630e5923500e7015f1905dc'), ] - case NetsuiteMappingTypeEnum.PrepaidCredit: + case MappingTypeEnum.PrepaidCredit: return [ translate('text_6630e5923500e7015f19061e'), translate('text_6630e5923500e7015f1905e7'), ] - case NetsuiteMappingTypeEnum.Tax: + case MappingTypeEnum.Tax: return [ translate('text_6630e560a830417bd3b119fb'), translate('text_6630e560a830417bd3b119fc'), ] - case NetsuiteMappingTypeEnum.SubscriptionFee: + case MappingTypeEnum.SubscriptionFee: return [ translate('text_6630e5923500e7015f1905dd'), translate('text_6630e5923500e7015f190624'), ] - case NetsuiteMappableTypeEnum.AddOn: + case MappableTypeEnum.AddOn: return [ translate('text_6630e5923500e7015f1905b9', { addOnName: localData?.itemExternalName, }), translate('text_6630e5923500e7015f1905bd'), ] - case NetsuiteMappableTypeEnum.BillableMetric: + case MappableTypeEnum.BillableMetric: return [ translate('text_6630e5923500e7015f1905bf', { billableMetricName: localData?.itemExternalName, @@ -591,7 +585,6 @@ const Container = styled.div` const InlineElements = styled.div` display: flex; - align-items: center; gap: ${theme.spacing(3)}; > *:first-child { @@ -599,6 +592,6 @@ const InlineElements = styled.div` } > *:last-child { - margin-top: ${theme.spacing(6)}; + margin-top: ${theme.spacing(7)}; } ` diff --git a/src/generated/graphql.tsx b/src/generated/graphql.tsx index a3d114261..58604f70a 100644 --- a/src/generated/graphql.tsx +++ b/src/generated/graphql.tsx @@ -71,9 +71,9 @@ export type AddOn = { deletedAt?: Maybe; description?: Maybe; id: Scalars['ID']['output']; + integrationMappings?: Maybe>; invoiceDisplayName?: Maybe; name: Scalars['String']['output']; - netsuiteMapping?: Maybe; organization?: Maybe; taxes?: Maybe>; updatedAt: Scalars['ISO8601DateTime']['output']; @@ -182,8 +182,8 @@ export type BillableMetric = { fieldName?: Maybe; filters?: Maybe>; id: Scalars['ID']['output']; + integrationMappings?: Maybe>; name: Scalars['String']['output']; - netsuiteMapping?: Maybe; organization?: Maybe; plansCount: Scalars['Int']['output']; recurring: Scalars['Boolean']['output']; @@ -306,6 +306,22 @@ export type ChargeUsage = { units: Scalars['Float']['output']; }; +export type CollectionMapping = { + __typename?: 'CollectionMapping'; + externalAccountCode?: Maybe; + externalId: Scalars['String']['output']; + externalName?: Maybe; + id: Scalars['ID']['output']; + integrationId: Scalars['ID']['output']; + mappingType: MappingTypeEnum; +}; + +export type CollectionMappingCollection = { + __typename?: 'CollectionMappingCollection'; + collection: Array; + metadata: CollectionMetadata; +}; + export type CollectionMetadata = { __typename?: 'CollectionMetadata'; currentPage: Scalars['Int']['output']; @@ -1033,6 +1049,29 @@ export type CreateCustomerWalletTransactionInput = { walletId: Scalars['ID']['input']; }; +/** Autogenerated input type of CreateIntegrationCollectionMapping */ +export type CreateIntegrationCollectionMappingInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + externalAccountCode?: InputMaybe; + externalId: Scalars['String']['input']; + externalName?: InputMaybe; + integrationId: Scalars['ID']['input']; + mappingType: MappingTypeEnum; +}; + +/** Autogenerated input type of CreateIntegrationMapping */ +export type CreateIntegrationMappingInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + externalAccountCode: Scalars['String']['input']; + externalId: Scalars['String']['input']; + externalName?: InputMaybe; + integrationId: Scalars['ID']['input']; + mappableId: Scalars['ID']['input']; + mappableType: MappableTypeEnum; +}; + /** Autogenerated input type of CreateInvite */ export type CreateInviteInput = { /** A unique identifier for the client performing the mutation. */ @@ -1049,17 +1088,6 @@ export type CreateInvoiceInput = { fees: Array; }; -/** Autogenerated input type of CreateNetsuiteIntegrationCollectionMapping */ -export type CreateNetsuiteIntegrationCollectionMappingInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - externalAccountCode?: InputMaybe; - externalId: Scalars['String']['input']; - externalName?: InputMaybe; - integrationId: Scalars['ID']['input']; - mappingType: NetsuiteMappingTypeEnum; -}; - /** Autogenerated input type of CreateNetsuiteIntegration */ export type CreateNetsuiteIntegrationInput = { accountId: Scalars['String']['input']; @@ -1077,18 +1105,6 @@ export type CreateNetsuiteIntegrationInput = { syncSalesOrders?: InputMaybe; }; -/** Autogenerated input type of CreateNetsuiteIntegrationMapping */ -export type CreateNetsuiteIntegrationMappingInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - externalAccountCode: Scalars['String']['input']; - externalId: Scalars['String']['input']; - externalName?: InputMaybe; - integrationId: Scalars['ID']['input']; - mappableId: Scalars['ID']['input']; - mappableType: NetsuiteMappableTypeEnum; -}; - /** Autogenerated input type of CreateOktaIntegration */ export type CreateOktaIntegrationInput = { clientId: Scalars['String']['input']; @@ -2454,6 +2470,37 @@ export type LoseInvoiceDisputeInput = { id: Scalars['ID']['input']; }; +export enum MappableTypeEnum { + AddOn = 'AddOn', + BillableMetric = 'BillableMetric' +} + +export type Mapping = { + __typename?: 'Mapping'; + externalAccountCode: Scalars['String']['output']; + externalId: Scalars['String']['output']; + externalName?: Maybe; + id: Scalars['ID']['output']; + integrationId: Scalars['ID']['output']; + mappableId: Scalars['ID']['output']; + mappableType: MappableTypeEnum; +}; + +export type MappingCollection = { + __typename?: 'MappingCollection'; + collection: Array; + metadata: CollectionMetadata; +}; + +export enum MappingTypeEnum { + Coupon = 'coupon', + FallbackItem = 'fallback_item', + MinimumCommitment = 'minimum_commitment', + PrepaidCredit = 'prepaid_credit', + SubscriptionFee = 'subscription_fee', + Tax = 'tax' +} + export type Membership = { __typename?: 'Membership'; createdAt: Scalars['ISO8601DateTime']['output']; @@ -2525,16 +2572,16 @@ export type Mutation = { createCustomerWallet?: Maybe; /** Creates a new Customer Wallet Transaction */ createCustomerWalletTransaction?: Maybe; + /** Create integration collection mapping */ + createIntegrationCollectionMapping?: Maybe; + /** Create integration mapping */ + createIntegrationMapping?: Maybe; /** Creates a new Invite */ createInvite?: Maybe; /** Creates a new Invoice */ createInvoice?: Maybe; /** Create Netsuite integration */ createNetsuiteIntegration?: Maybe; - /** Create Netsuite integration collection mapping */ - createNetsuiteIntegrationCollectionMapping?: Maybe; - /** Create Netsuite integration mapping */ - createNetsuiteIntegrationMapping?: Maybe; /** Create Okta integration */ createOktaIntegration?: Maybe; /** Creates a new password reset */ @@ -2595,6 +2642,8 @@ export type Mutation = { loginUser?: Maybe; /** Mark payment dispute as lost */ loseInvoiceDispute?: Maybe; + /** Accepts a membership invite with Okta Oauth */ + oktaAcceptInvite?: Maybe; oktaAuthorize?: Maybe; oktaLogin?: Maybe; /** Refresh a draft invoice */ @@ -2639,14 +2688,14 @@ export type Mutation = { updateCustomerWallet?: Maybe; /** Update Gocardless payment provider */ updateGocardlessPaymentProvider?: Maybe; + /** Update integration mapping */ + updateIntegrationCollectionMapping?: Maybe; + /** Update integration mapping */ + updateIntegrationMapping?: Maybe; /** Update an existing invoice */ updateInvoice?: Maybe; /** Update Netsuite integration */ updateNetsuiteIntegration?: Maybe; - /** Update Netsuite integration mapping */ - updateNetsuiteIntegrationCollectionMapping?: Maybe; - /** Update Netsuite integration mapping */ - updateNetsuiteIntegrationMapping?: Maybe; /** Update Okta integration */ updateOktaIntegration?: Maybe; /** Updates an Organization */ @@ -2733,28 +2782,28 @@ export type MutationCreateCustomerWalletTransactionArgs = { }; -export type MutationCreateInviteArgs = { - input: CreateInviteInput; +export type MutationCreateIntegrationCollectionMappingArgs = { + input: CreateIntegrationCollectionMappingInput; }; -export type MutationCreateInvoiceArgs = { - input: CreateInvoiceInput; +export type MutationCreateIntegrationMappingArgs = { + input: CreateIntegrationMappingInput; }; -export type MutationCreateNetsuiteIntegrationArgs = { - input: CreateNetsuiteIntegrationInput; +export type MutationCreateInviteArgs = { + input: CreateInviteInput; }; -export type MutationCreateNetsuiteIntegrationCollectionMappingArgs = { - input: CreateNetsuiteIntegrationCollectionMappingInput; +export type MutationCreateInvoiceArgs = { + input: CreateInvoiceInput; }; -export type MutationCreateNetsuiteIntegrationMappingArgs = { - input: CreateNetsuiteIntegrationMappingInput; +export type MutationCreateNetsuiteIntegrationArgs = { + input: CreateNetsuiteIntegrationInput; }; @@ -2908,6 +2957,11 @@ export type MutationLoseInvoiceDisputeArgs = { }; +export type MutationOktaAcceptInviteArgs = { + input: OktaAcceptInviteInput; +}; + + export type MutationOktaAuthorizeArgs = { input: OktaAuthorizeInput; }; @@ -3023,23 +3077,23 @@ export type MutationUpdateGocardlessPaymentProviderArgs = { }; -export type MutationUpdateInvoiceArgs = { - input: UpdateInvoiceInput; +export type MutationUpdateIntegrationCollectionMappingArgs = { + input: UpdateIntegrationCollectionMappingInput; }; -export type MutationUpdateNetsuiteIntegrationArgs = { - input: UpdateNetsuiteIntegrationInput; +export type MutationUpdateIntegrationMappingArgs = { + input: UpdateIntegrationMappingInput; }; -export type MutationUpdateNetsuiteIntegrationCollectionMappingArgs = { - input: UpdateNetsuiteIntegrationCollectionMappingInput; +export type MutationUpdateInvoiceArgs = { + input: UpdateInvoiceInput; }; -export type MutationUpdateNetsuiteIntegrationMappingArgs = { - input: UpdateNetsuiteIntegrationMappingInput; +export type MutationUpdateNetsuiteIntegrationArgs = { + input: UpdateNetsuiteIntegrationInput; }; @@ -3087,22 +3141,6 @@ export type MutationVoidInvoiceArgs = { input: VoidInvoiceInput; }; -export type NetsuiteCollectionMapping = { - __typename?: 'NetsuiteCollectionMapping'; - externalAccountCode?: Maybe; - externalId: Scalars['String']['output']; - externalName?: Maybe; - id: Scalars['ID']['output']; - integrationId: Scalars['ID']['output']; - mappingType: NetsuiteMappingTypeEnum; -}; - -export type NetsuiteCollectionMappingCollection = { - __typename?: 'NetsuiteCollectionMappingCollection'; - collection: Array; - metadata: CollectionMetadata; -}; - export type NetsuiteCustomer = { __typename?: 'NetsuiteCustomer'; externalCustomerId?: Maybe; @@ -3128,37 +3166,15 @@ export type NetsuiteIntegration = { syncSalesOrders?: Maybe; }; -export enum NetsuiteMappableTypeEnum { - AddOn = 'AddOn', - BillableMetric = 'BillableMetric' -} - -export type NetsuiteMapping = { - __typename?: 'NetsuiteMapping'; - externalAccountCode: Scalars['String']['output']; - externalId: Scalars['String']['output']; - externalName?: Maybe; - id: Scalars['ID']['output']; - integrationId: Scalars['ID']['output']; - mappableId: Scalars['ID']['output']; - mappableType: NetsuiteMappableTypeEnum; -}; - -export type NetsuiteMappingCollection = { - __typename?: 'NetsuiteMappingCollection'; - collection: Array; - metadata: CollectionMetadata; +/** Accept Invite with Okta Oauth input arguments */ +export type OktaAcceptInviteInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + code: Scalars['String']['input']; + inviteToken: Scalars['String']['input']; + state: Scalars['String']['input']; }; -export enum NetsuiteMappingTypeEnum { - Coupon = 'coupon', - FallbackItem = 'fallback_item', - MinimumCommitment = 'minimum_commitment', - PrepaidCredit = 'prepaid_credit', - SubscriptionFee = 'subscription_fee', - Tax = 'tax' -} - /** Autogenerated input type of OktaAuthorize */ export type OktaAuthorizeInput = { /** A unique identifier for the client performing the mutation. */ @@ -3451,8 +3467,16 @@ export type Query = { grossRevenues: GrossRevenueCollection; /** Query a single integration */ integration?: Maybe; + /** Query a single integration collection mapping */ + integrationCollectionMapping?: Maybe; + /** Query integration collection mappings */ + integrationCollectionMappings?: Maybe; /** Query integration items of an integration */ integrationItems: IntegrationItemCollection; + /** Query a single integration mapping */ + integrationMapping?: Maybe; + /** Query netsuite integration mappings */ + integrationMappings?: Maybe; /** Query integration subsidiaries */ integrationSubsidiaries?: Maybe; /** Query organization's integrations */ @@ -3475,14 +3499,6 @@ export type Query = { memberships: MembershipCollection; /** Query MRR of an organization */ mrrs: MrrCollection; - /** Query a single integration collection mapping */ - netsuiteCollectionMapping?: Maybe; - /** Query netsuite integration collection mappings */ - netsuiteCollectionMappings?: Maybe; - /** Query a single integration mapping */ - netsuiteMapping?: Maybe; - /** Query netsuite integration mappings */ - netsuiteMappings?: Maybe; /** Query the current organization */ organization?: Maybe; /** Query a password reset by token */ @@ -3633,6 +3649,19 @@ export type QueryIntegrationArgs = { }; +export type QueryIntegrationCollectionMappingArgs = { + id: Scalars['ID']['input']; +}; + + +export type QueryIntegrationCollectionMappingsArgs = { + integrationId?: InputMaybe; + limit?: InputMaybe; + mappingType?: InputMaybe; + page?: InputMaybe; +}; + + export type QueryIntegrationItemsArgs = { integrationId: Scalars['ID']['input']; itemType?: InputMaybe; @@ -3642,6 +3671,19 @@ export type QueryIntegrationItemsArgs = { }; +export type QueryIntegrationMappingArgs = { + id: Scalars['ID']['input']; +}; + + +export type QueryIntegrationMappingsArgs = { + integrationId?: InputMaybe; + limit?: InputMaybe; + mappableType?: InputMaybe; + page?: InputMaybe; +}; + + export type QueryIntegrationSubsidiariesArgs = { integrationId?: InputMaybe; }; @@ -3709,32 +3751,6 @@ export type QueryMrrsArgs = { }; -export type QueryNetsuiteCollectionMappingArgs = { - id: Scalars['ID']['input']; -}; - - -export type QueryNetsuiteCollectionMappingsArgs = { - integrationId?: InputMaybe; - limit?: InputMaybe; - mappingType?: InputMaybe; - page?: InputMaybe; -}; - - -export type QueryNetsuiteMappingArgs = { - id: Scalars['ID']['input']; -}; - - -export type QueryNetsuiteMappingsArgs = { - integrationId?: InputMaybe; - limit?: InputMaybe; - mappableType?: InputMaybe; - page?: InputMaybe; -}; - - export type QueryPasswordResetArgs = { token: Scalars['String']['input']; }; @@ -4476,17 +4492,20 @@ export type UpdateGocardlessPaymentProviderInput = { successRedirectUrl?: InputMaybe; }; -/** Update Invoice input arguments */ -export type UpdateInvoiceInput = { +/** Autogenerated input type of UpdateIntegrationCollectionMapping */ +export type UpdateIntegrationCollectionMappingInput = { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe; + externalAccountCode?: InputMaybe; + externalId?: InputMaybe; + externalName?: InputMaybe; id: Scalars['ID']['input']; - metadata?: InputMaybe>; - paymentStatus?: InputMaybe; + integrationId?: InputMaybe; + mappingType?: InputMaybe; }; -/** Autogenerated input type of UpdateNetsuiteIntegrationCollectionMapping */ -export type UpdateNetsuiteIntegrationCollectionMappingInput = { +/** Autogenerated input type of UpdateIntegrationMapping */ +export type UpdateIntegrationMappingInput = { /** A unique identifier for the client performing the mutation. */ clientMutationId?: InputMaybe; externalAccountCode?: InputMaybe; @@ -4494,7 +4513,17 @@ export type UpdateNetsuiteIntegrationCollectionMappingInput = { externalName?: InputMaybe; id: Scalars['ID']['input']; integrationId?: InputMaybe; - mappingType?: InputMaybe; + mappableId?: InputMaybe; + mappableType?: InputMaybe; +}; + +/** Update Invoice input arguments */ +export type UpdateInvoiceInput = { + /** A unique identifier for the client performing the mutation. */ + clientMutationId?: InputMaybe; + id: Scalars['ID']['input']; + metadata?: InputMaybe>; + paymentStatus?: InputMaybe; }; /** Autogenerated input type of UpdateNetsuiteIntegration */ @@ -4515,19 +4544,6 @@ export type UpdateNetsuiteIntegrationInput = { syncSalesOrders?: InputMaybe; }; -/** Autogenerated input type of UpdateNetsuiteIntegrationMapping */ -export type UpdateNetsuiteIntegrationMappingInput = { - /** A unique identifier for the client performing the mutation. */ - clientMutationId?: InputMaybe; - externalAccountCode?: InputMaybe; - externalId?: InputMaybe; - externalName?: InputMaybe; - id: Scalars['ID']['input']; - integrationId?: InputMaybe; - mappableId?: InputMaybe; - mappableType?: InputMaybe; -}; - /** Autogenerated input type of UpdateOktaIntegration */ export type UpdateOktaIntegrationInput = { clientId?: InputMaybe; @@ -4719,6 +4735,7 @@ export enum WalletTransactionStatusEnum { export enum WalletTransactionTransactionStatusEnum { Granted = 'granted', + Invoiced = 'invoiced', Purchased = 'purchased', Voided = 'voided' } @@ -5674,12 +5691,12 @@ export type DeleteStripeMutation = { __typename?: 'Mutation', destroyPaymentProv export type NetsuiteIntegrationItemsFragment = { __typename?: 'NetsuiteIntegration', id: string }; -export type GetNetsuiteCollectionMappingsQueryVariables = Exact<{ +export type GetIntegrationCollectionMappingsQueryVariables = Exact<{ integrationId: Scalars['ID']['input']; }>; -export type GetNetsuiteCollectionMappingsQuery = { __typename?: 'Query', netsuiteCollectionMappings?: { __typename?: 'NetsuiteCollectionMappingCollection', collection: Array<{ __typename?: 'NetsuiteCollectionMapping', id: string, mappingType: NetsuiteMappingTypeEnum, externalId: string, externalAccountCode?: string | null, externalName?: string | null }> } | null }; +export type GetIntegrationCollectionMappingsQuery = { __typename?: 'Query', integrationCollectionMappings?: { __typename?: 'CollectionMappingCollection', collection: Array<{ __typename?: 'CollectionMapping', id: string, mappingType: MappingTypeEnum, externalId: string, externalAccountCode?: string | null, externalName?: string | null }> } | null }; export type GetAddOnsForNetsuiteItemsListQueryVariables = Exact<{ page?: InputMaybe; @@ -5688,7 +5705,7 @@ export type GetAddOnsForNetsuiteItemsListQueryVariables = Exact<{ }>; -export type GetAddOnsForNetsuiteItemsListQuery = { __typename?: 'Query', addOns: { __typename?: 'AddOnCollection', metadata: { __typename?: 'CollectionMetadata', currentPage: number, totalPages: number }, collection: Array<{ __typename?: 'AddOn', id: string, name: string, code: string, netsuiteMapping?: { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null } | null }> } }; +export type GetAddOnsForNetsuiteItemsListQuery = { __typename?: 'Query', addOns: { __typename?: 'AddOnCollection', metadata: { __typename?: 'CollectionMetadata', currentPage: number, totalPages: number }, collection: Array<{ __typename?: 'AddOn', id: string, name: string, code: string, integrationMappings?: Array<{ __typename?: 'Mapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null, mappableType: MappableTypeEnum }> | null }> } }; export type GetBillableMetricsForNetsuiteItemsListQueryVariables = Exact<{ page?: InputMaybe; @@ -5697,13 +5714,13 @@ export type GetBillableMetricsForNetsuiteItemsListQueryVariables = Exact<{ }>; -export type GetBillableMetricsForNetsuiteItemsListQuery = { __typename?: 'Query', billableMetrics: { __typename?: 'BillableMetricCollection', metadata: { __typename?: 'CollectionMetadata', currentPage: number, totalPages: number }, collection: Array<{ __typename?: 'BillableMetric', id: string, name: string, code: string, netsuiteMapping?: { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null } | null }> } }; +export type GetBillableMetricsForNetsuiteItemsListQuery = { __typename?: 'Query', billableMetrics: { __typename?: 'BillableMetricCollection', metadata: { __typename?: 'CollectionMetadata', currentPage: number, totalPages: number }, collection: Array<{ __typename?: 'BillableMetric', id: string, name: string, code: string, integrationMappings?: Array<{ __typename?: 'Mapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null, mappableType: MappableTypeEnum }> | null }> } }; -export type NetsuiteIntegrationItemsListAddonsFragment = { __typename?: 'AddOn', id: string, name: string, code: string, netsuiteMapping?: { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null } | null }; +export type NetsuiteIntegrationItemsListAddonsFragment = { __typename?: 'AddOn', id: string, name: string, code: string, integrationMappings?: Array<{ __typename?: 'Mapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null, mappableType: MappableTypeEnum }> | null }; -export type NetsuiteIntegrationItemsListBillableMetricsFragment = { __typename?: 'BillableMetric', id: string, name: string, code: string, netsuiteMapping?: { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null } | null }; +export type NetsuiteIntegrationItemsListBillableMetricsFragment = { __typename?: 'BillableMetric', id: string, name: string, code: string, integrationMappings?: Array<{ __typename?: 'Mapping', id: string, externalId: string, externalAccountCode: string, externalName?: string | null, mappableType: MappableTypeEnum }> | null }; -export type NetsuiteIntegrationItemsListDefaultFragment = { __typename?: 'NetsuiteCollectionMapping', id: string, mappingType: NetsuiteMappingTypeEnum, externalId: string, externalAccountCode?: string | null, externalName?: string | null }; +export type NetsuiteIntegrationItemsListDefaultFragment = { __typename?: 'CollectionMapping', id: string, mappingType: MappingTypeEnum, externalId: string, externalAccountCode?: string | null, externalName?: string | null }; export type NetsuiteIntegrationSettingsFragment = { __typename?: 'NetsuiteIntegration', id: string, accountId?: string | null, clientId?: string | null, clientSecret?: string | null, code: string, hasMappingsConfigured?: boolean | null, name: string, scriptEndpointUrl?: string | null, syncCreditNotes?: boolean | null, syncInvoices?: boolean | null, syncPayments?: boolean | null, syncSalesOrders?: boolean | null }; @@ -5717,9 +5734,9 @@ export type GetNetsuiteIntegrationsSettingsQuery = { __typename?: 'Query', integ export type NetsuiteMapItemDialogItemFragment = { __typename?: 'IntegrationItem', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null, itemType: IntegrationItemTypeEnum }; -export type NetsuiteMapItemDialogCollectionMappingItemFragment = { __typename?: 'NetsuiteCollectionMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null }; +export type NetsuiteMapItemDialogCollectionMappingItemFragment = { __typename?: 'CollectionMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null }; -export type NetsuiteMapItemDialogCollectionItemFragment = { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode: string }; +export type NetsuiteMapItemDialogCollectionItemFragment = { __typename?: 'Mapping', id: string, externalId: string, externalName?: string | null, externalAccountCode: string }; export type GetIntegrationItemsQueryVariables = Exact<{ integrationId: Scalars['ID']['input']; @@ -5746,40 +5763,40 @@ export type TriggerIntegrationTaxItemsRefetchMutationVariables = Exact<{ export type TriggerIntegrationTaxItemsRefetchMutation = { __typename?: 'Mutation', fetchIntegrationTaxItems: { __typename?: 'IntegrationItemCollection', collection: Array<{ __typename?: 'IntegrationItem', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null, itemType: IntegrationItemTypeEnum }> } }; -export type CreateNetsuiteIntegrationCollectionMappingMutationVariables = Exact<{ - input: CreateNetsuiteIntegrationCollectionMappingInput; +export type CreateIntegrationCollectionMappingMutationVariables = Exact<{ + input: CreateIntegrationCollectionMappingInput; }>; -export type CreateNetsuiteIntegrationCollectionMappingMutation = { __typename?: 'Mutation', createNetsuiteIntegrationCollectionMapping?: { __typename?: 'NetsuiteCollectionMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null } | null }; +export type CreateIntegrationCollectionMappingMutation = { __typename?: 'Mutation', createIntegrationCollectionMapping?: { __typename?: 'CollectionMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode?: string | null } | null }; -export type CreateNetsuiteIntegrationMappingMutationVariables = Exact<{ - input: CreateNetsuiteIntegrationMappingInput; +export type CreateIntegrationMappingMutationVariables = Exact<{ + input: CreateIntegrationMappingInput; }>; -export type CreateNetsuiteIntegrationMappingMutation = { __typename?: 'Mutation', createNetsuiteIntegrationMapping?: { __typename?: 'NetsuiteMapping', id: string, externalId: string, externalName?: string | null, externalAccountCode: string } | null }; +export type CreateIntegrationMappingMutation = { __typename?: 'Mutation', createIntegrationMapping?: { __typename?: 'Mapping', id: string, externalId: string, externalName?: string | null, externalAccountCode: string } | null }; -export type UpdateNetsuiteIntegrationCollectionMappingMutationVariables = Exact<{ - input: UpdateNetsuiteIntegrationCollectionMappingInput; +export type UpdateIntegrationCollectionMappingMutationVariables = Exact<{ + input: UpdateIntegrationCollectionMappingInput; }>; -export type UpdateNetsuiteIntegrationCollectionMappingMutation = { __typename?: 'Mutation', updateNetsuiteIntegrationCollectionMapping?: { __typename?: 'NetsuiteCollectionMapping', id: string } | null }; +export type UpdateIntegrationCollectionMappingMutation = { __typename?: 'Mutation', updateIntegrationCollectionMapping?: { __typename?: 'CollectionMapping', id: string } | null }; -export type UpdateNetsuiteIntegrationMappingMutationVariables = Exact<{ - input: UpdateNetsuiteIntegrationMappingInput; +export type UpdateIntegrationMappingMutationVariables = Exact<{ + input: UpdateIntegrationMappingInput; }>; -export type UpdateNetsuiteIntegrationMappingMutation = { __typename?: 'Mutation', updateNetsuiteIntegrationMapping?: { __typename?: 'NetsuiteMapping', id: string } | null }; +export type UpdateIntegrationMappingMutation = { __typename?: 'Mutation', updateIntegrationMapping?: { __typename?: 'Mapping', id: string } | null }; -export type DeleteNetsuiteIntegrationCollectionMappingMutationVariables = Exact<{ +export type DeleteIntegrationCollectionMappingMutationVariables = Exact<{ input: DestroyIntegrationCollectionMappingInput; }>; -export type DeleteNetsuiteIntegrationCollectionMappingMutation = { __typename?: 'Mutation', destroyIntegrationCollectionMapping?: { __typename?: 'DestroyIntegrationCollectionMappingPayload', id?: string | null } | null }; +export type DeleteIntegrationCollectionMappingMutation = { __typename?: 'Mutation', destroyIntegrationCollectionMapping?: { __typename?: 'DestroyIntegrationCollectionMappingPayload', id?: string | null } | null }; export type DeleteNetsuiteIntegrationMappingMutationVariables = Exact<{ input: DestroyIntegrationMappingInput; @@ -7228,11 +7245,12 @@ export const NetsuiteIntegrationItemsListAddonsFragmentDoc = gql` id name code - netsuiteMapping { + integrationMappings { id externalId externalAccountCode externalName + mappableType } } `; @@ -7241,16 +7259,17 @@ export const NetsuiteIntegrationItemsListBillableMetricsFragmentDoc = gql` id name code - netsuiteMapping { + integrationMappings { id externalId externalAccountCode externalName + mappableType } } `; export const NetsuiteIntegrationItemsListDefaultFragmentDoc = gql` - fragment NetsuiteIntegrationItemsListDefault on NetsuiteCollectionMapping { + fragment NetsuiteIntegrationItemsListDefault on CollectionMapping { id mappingType externalId @@ -7284,7 +7303,7 @@ export const NetsuiteMapItemDialogItemFragmentDoc = gql` } `; export const NetsuiteMapItemDialogCollectionMappingItemFragmentDoc = gql` - fragment NetsuiteMapItemDialogCollectionMappingItem on NetsuiteCollectionMapping { + fragment NetsuiteMapItemDialogCollectionMappingItem on CollectionMapping { id externalId externalName @@ -7292,7 +7311,7 @@ export const NetsuiteMapItemDialogCollectionMappingItemFragmentDoc = gql` } `; export const NetsuiteMapItemDialogCollectionItemFragmentDoc = gql` - fragment NetsuiteMapItemDialogCollectionItem on NetsuiteMapping { + fragment NetsuiteMapItemDialogCollectionItem on Mapping { id externalId externalName @@ -12372,9 +12391,9 @@ export function useDeleteStripeMutation(baseOptions?: Apollo.MutationHookOptions export type DeleteStripeMutationHookResult = ReturnType; export type DeleteStripeMutationResult = Apollo.MutationResult; export type DeleteStripeMutationOptions = Apollo.BaseMutationOptions; -export const GetNetsuiteCollectionMappingsDocument = gql` - query getNetsuiteCollectionMappings($integrationId: ID!) { - netsuiteCollectionMappings(integrationId: $integrationId) { +export const GetIntegrationCollectionMappingsDocument = gql` + query getIntegrationCollectionMappings($integrationId: ID!) { + integrationCollectionMappings(integrationId: $integrationId) { collection { id ...NetsuiteIntegrationItemsListDefault @@ -12384,37 +12403,37 @@ export const GetNetsuiteCollectionMappingsDocument = gql` ${NetsuiteIntegrationItemsListDefaultFragmentDoc}`; /** - * __useGetNetsuiteCollectionMappingsQuery__ + * __useGetIntegrationCollectionMappingsQuery__ * - * To run a query within a React component, call `useGetNetsuiteCollectionMappingsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetNetsuiteCollectionMappingsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * To run a query within a React component, call `useGetIntegrationCollectionMappingsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetIntegrationCollectionMappingsQuery` returns an object from Apollo Client that contains loading, error, and data properties * you can use to render your UI. * * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; * * @example - * const { data, loading, error } = useGetNetsuiteCollectionMappingsQuery({ + * const { data, loading, error } = useGetIntegrationCollectionMappingsQuery({ * variables: { * integrationId: // value for 'integrationId' * }, * }); */ -export function useGetNetsuiteCollectionMappingsQuery(baseOptions: Apollo.QueryHookOptions) { +export function useGetIntegrationCollectionMappingsQuery(baseOptions: Apollo.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useQuery(GetNetsuiteCollectionMappingsDocument, options); + return Apollo.useQuery(GetIntegrationCollectionMappingsDocument, options); } -export function useGetNetsuiteCollectionMappingsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { +export function useGetIntegrationCollectionMappingsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useLazyQuery(GetNetsuiteCollectionMappingsDocument, options); + return Apollo.useLazyQuery(GetIntegrationCollectionMappingsDocument, options); } -export function useGetNetsuiteCollectionMappingsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { +export function useGetIntegrationCollectionMappingsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useSuspenseQuery(GetNetsuiteCollectionMappingsDocument, options); + return Apollo.useSuspenseQuery(GetIntegrationCollectionMappingsDocument, options); } -export type GetNetsuiteCollectionMappingsQueryHookResult = ReturnType; -export type GetNetsuiteCollectionMappingsLazyQueryHookResult = ReturnType; -export type GetNetsuiteCollectionMappingsSuspenseQueryHookResult = ReturnType; -export type GetNetsuiteCollectionMappingsQueryResult = Apollo.QueryResult; +export type GetIntegrationCollectionMappingsQueryHookResult = ReturnType; +export type GetIntegrationCollectionMappingsLazyQueryHookResult = ReturnType; +export type GetIntegrationCollectionMappingsSuspenseQueryHookResult = ReturnType; +export type GetIntegrationCollectionMappingsQueryResult = Apollo.QueryResult; export const GetAddOnsForNetsuiteItemsListDocument = gql` query getAddOnsForNetsuiteItemsList($page: Int, $limit: Int, $searchTerm: String) { addOns(page: $page, limit: $limit, searchTerm: $searchTerm) { @@ -12695,173 +12714,173 @@ export function useTriggerIntegrationTaxItemsRefetchMutation(baseOptions?: Apoll export type TriggerIntegrationTaxItemsRefetchMutationHookResult = ReturnType; export type TriggerIntegrationTaxItemsRefetchMutationResult = Apollo.MutationResult; export type TriggerIntegrationTaxItemsRefetchMutationOptions = Apollo.BaseMutationOptions; -export const CreateNetsuiteIntegrationCollectionMappingDocument = gql` - mutation createNetsuiteIntegrationCollectionMapping($input: CreateNetsuiteIntegrationCollectionMappingInput!) { - createNetsuiteIntegrationCollectionMapping(input: $input) { +export const CreateIntegrationCollectionMappingDocument = gql` + mutation createIntegrationCollectionMapping($input: CreateIntegrationCollectionMappingInput!) { + createIntegrationCollectionMapping(input: $input) { id ...NetsuiteMapItemDialogCollectionMappingItem } } ${NetsuiteMapItemDialogCollectionMappingItemFragmentDoc}`; -export type CreateNetsuiteIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; +export type CreateIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; /** - * __useCreateNetsuiteIntegrationCollectionMappingMutation__ + * __useCreateIntegrationCollectionMappingMutation__ * - * To run a mutation, you first call `useCreateNetsuiteIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateNetsuiteIntegrationCollectionMappingMutation` returns a tuple that includes: + * To run a mutation, you first call `useCreateIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateIntegrationCollectionMappingMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [createNetsuiteIntegrationCollectionMappingMutation, { data, loading, error }] = useCreateNetsuiteIntegrationCollectionMappingMutation({ + * const [createIntegrationCollectionMappingMutation, { data, loading, error }] = useCreateIntegrationCollectionMappingMutation({ * variables: { * input: // value for 'input' * }, * }); */ -export function useCreateNetsuiteIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { +export function useCreateIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateNetsuiteIntegrationCollectionMappingDocument, options); + return Apollo.useMutation(CreateIntegrationCollectionMappingDocument, options); } -export type CreateNetsuiteIntegrationCollectionMappingMutationHookResult = ReturnType; -export type CreateNetsuiteIntegrationCollectionMappingMutationResult = Apollo.MutationResult; -export type CreateNetsuiteIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; -export const CreateNetsuiteIntegrationMappingDocument = gql` - mutation createNetsuiteIntegrationMapping($input: CreateNetsuiteIntegrationMappingInput!) { - createNetsuiteIntegrationMapping(input: $input) { +export type CreateIntegrationCollectionMappingMutationHookResult = ReturnType; +export type CreateIntegrationCollectionMappingMutationResult = Apollo.MutationResult; +export type CreateIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; +export const CreateIntegrationMappingDocument = gql` + mutation createIntegrationMapping($input: CreateIntegrationMappingInput!) { + createIntegrationMapping(input: $input) { id ...NetsuiteMapItemDialogCollectionItem } } ${NetsuiteMapItemDialogCollectionItemFragmentDoc}`; -export type CreateNetsuiteIntegrationMappingMutationFn = Apollo.MutationFunction; +export type CreateIntegrationMappingMutationFn = Apollo.MutationFunction; /** - * __useCreateNetsuiteIntegrationMappingMutation__ + * __useCreateIntegrationMappingMutation__ * - * To run a mutation, you first call `useCreateNetsuiteIntegrationMappingMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useCreateNetsuiteIntegrationMappingMutation` returns a tuple that includes: + * To run a mutation, you first call `useCreateIntegrationMappingMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useCreateIntegrationMappingMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [createNetsuiteIntegrationMappingMutation, { data, loading, error }] = useCreateNetsuiteIntegrationMappingMutation({ + * const [createIntegrationMappingMutation, { data, loading, error }] = useCreateIntegrationMappingMutation({ * variables: { * input: // value for 'input' * }, * }); */ -export function useCreateNetsuiteIntegrationMappingMutation(baseOptions?: Apollo.MutationHookOptions) { +export function useCreateIntegrationMappingMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(CreateNetsuiteIntegrationMappingDocument, options); + return Apollo.useMutation(CreateIntegrationMappingDocument, options); } -export type CreateNetsuiteIntegrationMappingMutationHookResult = ReturnType; -export type CreateNetsuiteIntegrationMappingMutationResult = Apollo.MutationResult; -export type CreateNetsuiteIntegrationMappingMutationOptions = Apollo.BaseMutationOptions; -export const UpdateNetsuiteIntegrationCollectionMappingDocument = gql` - mutation updateNetsuiteIntegrationCollectionMapping($input: UpdateNetsuiteIntegrationCollectionMappingInput!) { - updateNetsuiteIntegrationCollectionMapping(input: $input) { +export type CreateIntegrationMappingMutationHookResult = ReturnType; +export type CreateIntegrationMappingMutationResult = Apollo.MutationResult; +export type CreateIntegrationMappingMutationOptions = Apollo.BaseMutationOptions; +export const UpdateIntegrationCollectionMappingDocument = gql` + mutation updateIntegrationCollectionMapping($input: UpdateIntegrationCollectionMappingInput!) { + updateIntegrationCollectionMapping(input: $input) { id } } `; -export type UpdateNetsuiteIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; +export type UpdateIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; /** - * __useUpdateNetsuiteIntegrationCollectionMappingMutation__ + * __useUpdateIntegrationCollectionMappingMutation__ * - * To run a mutation, you first call `useUpdateNetsuiteIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateNetsuiteIntegrationCollectionMappingMutation` returns a tuple that includes: + * To run a mutation, you first call `useUpdateIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateIntegrationCollectionMappingMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [updateNetsuiteIntegrationCollectionMappingMutation, { data, loading, error }] = useUpdateNetsuiteIntegrationCollectionMappingMutation({ + * const [updateIntegrationCollectionMappingMutation, { data, loading, error }] = useUpdateIntegrationCollectionMappingMutation({ * variables: { * input: // value for 'input' * }, * }); */ -export function useUpdateNetsuiteIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { +export function useUpdateIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateNetsuiteIntegrationCollectionMappingDocument, options); + return Apollo.useMutation(UpdateIntegrationCollectionMappingDocument, options); } -export type UpdateNetsuiteIntegrationCollectionMappingMutationHookResult = ReturnType; -export type UpdateNetsuiteIntegrationCollectionMappingMutationResult = Apollo.MutationResult; -export type UpdateNetsuiteIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; -export const UpdateNetsuiteIntegrationMappingDocument = gql` - mutation updateNetsuiteIntegrationMapping($input: UpdateNetsuiteIntegrationMappingInput!) { - updateNetsuiteIntegrationMapping(input: $input) { +export type UpdateIntegrationCollectionMappingMutationHookResult = ReturnType; +export type UpdateIntegrationCollectionMappingMutationResult = Apollo.MutationResult; +export type UpdateIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; +export const UpdateIntegrationMappingDocument = gql` + mutation updateIntegrationMapping($input: UpdateIntegrationMappingInput!) { + updateIntegrationMapping(input: $input) { id } } `; -export type UpdateNetsuiteIntegrationMappingMutationFn = Apollo.MutationFunction; +export type UpdateIntegrationMappingMutationFn = Apollo.MutationFunction; /** - * __useUpdateNetsuiteIntegrationMappingMutation__ + * __useUpdateIntegrationMappingMutation__ * - * To run a mutation, you first call `useUpdateNetsuiteIntegrationMappingMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useUpdateNetsuiteIntegrationMappingMutation` returns a tuple that includes: + * To run a mutation, you first call `useUpdateIntegrationMappingMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useUpdateIntegrationMappingMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [updateNetsuiteIntegrationMappingMutation, { data, loading, error }] = useUpdateNetsuiteIntegrationMappingMutation({ + * const [updateIntegrationMappingMutation, { data, loading, error }] = useUpdateIntegrationMappingMutation({ * variables: { * input: // value for 'input' * }, * }); */ -export function useUpdateNetsuiteIntegrationMappingMutation(baseOptions?: Apollo.MutationHookOptions) { +export function useUpdateIntegrationMappingMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(UpdateNetsuiteIntegrationMappingDocument, options); + return Apollo.useMutation(UpdateIntegrationMappingDocument, options); } -export type UpdateNetsuiteIntegrationMappingMutationHookResult = ReturnType; -export type UpdateNetsuiteIntegrationMappingMutationResult = Apollo.MutationResult; -export type UpdateNetsuiteIntegrationMappingMutationOptions = Apollo.BaseMutationOptions; -export const DeleteNetsuiteIntegrationCollectionMappingDocument = gql` - mutation deleteNetsuiteIntegrationCollectionMapping($input: DestroyIntegrationCollectionMappingInput!) { +export type UpdateIntegrationMappingMutationHookResult = ReturnType; +export type UpdateIntegrationMappingMutationResult = Apollo.MutationResult; +export type UpdateIntegrationMappingMutationOptions = Apollo.BaseMutationOptions; +export const DeleteIntegrationCollectionMappingDocument = gql` + mutation deleteIntegrationCollectionMapping($input: DestroyIntegrationCollectionMappingInput!) { destroyIntegrationCollectionMapping(input: $input) { id } } `; -export type DeleteNetsuiteIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; +export type DeleteIntegrationCollectionMappingMutationFn = Apollo.MutationFunction; /** - * __useDeleteNetsuiteIntegrationCollectionMappingMutation__ + * __useDeleteIntegrationCollectionMappingMutation__ * - * To run a mutation, you first call `useDeleteNetsuiteIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. - * When your component renders, `useDeleteNetsuiteIntegrationCollectionMappingMutation` returns a tuple that includes: + * To run a mutation, you first call `useDeleteIntegrationCollectionMappingMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteIntegrationCollectionMappingMutation` returns a tuple that includes: * - A mutate function that you can call at any time to execute the mutation * - An object with fields that represent the current status of the mutation's execution * * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2; * * @example - * const [deleteNetsuiteIntegrationCollectionMappingMutation, { data, loading, error }] = useDeleteNetsuiteIntegrationCollectionMappingMutation({ + * const [deleteIntegrationCollectionMappingMutation, { data, loading, error }] = useDeleteIntegrationCollectionMappingMutation({ * variables: { * input: // value for 'input' * }, * }); */ -export function useDeleteNetsuiteIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { +export function useDeleteIntegrationCollectionMappingMutation(baseOptions?: Apollo.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} - return Apollo.useMutation(DeleteNetsuiteIntegrationCollectionMappingDocument, options); + return Apollo.useMutation(DeleteIntegrationCollectionMappingDocument, options); } -export type DeleteNetsuiteIntegrationCollectionMappingMutationHookResult = ReturnType; -export type DeleteNetsuiteIntegrationCollectionMappingMutationResult = Apollo.MutationResult; -export type DeleteNetsuiteIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; +export type DeleteIntegrationCollectionMappingMutationHookResult = ReturnType; +export type DeleteIntegrationCollectionMappingMutationResult = Apollo.MutationResult; +export type DeleteIntegrationCollectionMappingMutationOptions = Apollo.BaseMutationOptions; export const DeleteNetsuiteIntegrationMappingDocument = gql` mutation deleteNetsuiteIntegrationMapping($input: DestroyIntegrationMappingInput!) { destroyIntegrationMapping(input: $input) {