/* eslint-disable */ import * as Types from './types.generated'; import { gql } from '@apollo/client'; import * as Apollo from '@apollo/client'; import * as ApolloReactHooks from '@saleor/hooks/graphql'; const defaultOptions = {} as const; export const WebhookFragmentDoc = gql` fragment Webhook on Webhook { id name isActive app { id name } } `; export const AppFragmentDoc = gql` fragment App on App { id name created isActive type homepageUrl appUrl configurationUrl supportUrl version accessToken privateMetadata { key value } metadata { key value } tokens { authToken id name } webhooks { ...Webhook } } ${WebhookFragmentDoc}`; export const AttributeFragmentDoc = gql` fragment Attribute on Attribute { id name slug type visibleInStorefront filterableInDashboard filterableInStorefront unit inputType } `; export const MetadataItemFragmentDoc = gql` fragment MetadataItem on MetadataItem { key value } `; export const MetadataFragmentDoc = gql` fragment Metadata on ObjectWithMetadata { metadata { ...MetadataItem } privateMetadata { ...MetadataItem } } ${MetadataItemFragmentDoc}`; export const AttributeDetailsFragmentDoc = gql` fragment AttributeDetails on Attribute { ...Attribute ...Metadata availableInGrid inputType entityType unit storefrontSearchPosition valueRequired } ${AttributeFragmentDoc} ${MetadataFragmentDoc}`; export const AvailableAttributeFragmentDoc = gql` fragment AvailableAttribute on Attribute { id name slug } `; export const UserPermissionFragmentDoc = gql` fragment UserPermission on UserPermission { code name } `; export const UserFragmentDoc = gql` fragment User on User { id email firstName lastName isStaff userPermissions { ...UserPermission } avatar { url } } ${UserPermissionFragmentDoc}`; export const CategoryFragmentDoc = gql` fragment Category on Category { id name children { totalCount } products { totalCount } } `; export const CategoryDetailsFragmentDoc = gql` fragment CategoryDetails on Category { id ...Metadata backgroundImage { alt url } name slug description seoDescription seoTitle parent { id } } ${MetadataFragmentDoc}`; export const ChannelErrorFragmentDoc = gql` fragment ChannelError on ChannelError { code field message } `; export const ChannelFragmentDoc = gql` fragment Channel on Channel { id isActive name slug currencyCode defaultCountry { code country } } `; export const ChannelDetailsFragmentDoc = gql` fragment ChannelDetails on Channel { ...Channel hasOrders } ${ChannelFragmentDoc}`; export const CollectionFragmentDoc = gql` fragment Collection on Collection { id name channelListings { isPublished publicationDate channel { id name } } } `; export const CollectionDetailsFragmentDoc = gql` fragment CollectionDetails on Collection { ...Collection ...Metadata backgroundImage { alt url } slug description seoDescription seoTitle } ${CollectionFragmentDoc} ${MetadataFragmentDoc}`; export const ChannelListingProductWithoutPricingFragmentDoc = gql` fragment ChannelListingProductWithoutPricing on ProductChannelListing { isPublished publicationDate isAvailableForPurchase availableForPurchase visibleInListings channel { id name currencyCode } } `; export const CollectionProductFragmentDoc = gql` fragment CollectionProduct on Product { id name productType { id name } thumbnail { url } channelListings { ...ChannelListingProductWithoutPricing } } ${ChannelListingProductWithoutPricingFragmentDoc}`; export const CustomerFragmentDoc = gql` fragment Customer on User { id email firstName lastName } `; export const AddressFragmentDoc = gql` fragment Address on Address { city cityArea companyName country { __typename code country } countryArea firstName id lastName phone postalCode streetAddress1 streetAddress2 } `; export const CustomerDetailsFragmentDoc = gql` fragment CustomerDetails on User { ...Customer ...Metadata dateJoined lastLogin defaultShippingAddress { ...Address } defaultBillingAddress { ...Address } note isActive } ${CustomerFragmentDoc} ${MetadataFragmentDoc} ${AddressFragmentDoc}`; export const CustomerAddressesFragmentDoc = gql` fragment CustomerAddresses on User { ...Customer addresses { ...Address } defaultBillingAddress { id } defaultShippingAddress { id } } ${CustomerFragmentDoc} ${AddressFragmentDoc}`; export const SaleFragmentDoc = gql` fragment Sale on Sale { ...Metadata id name type startDate endDate channelListings { id channel { id name currencyCode } discountValue currency } } ${MetadataFragmentDoc}`; export const PageInfoFragmentDoc = gql` fragment PageInfo on PageInfo { endCursor hasNextPage hasPreviousPage startCursor } `; export const SaleDetailsFragmentDoc = gql` fragment SaleDetails on Sale { ...Sale variants(after: $after, before: $before, first: $first, last: $last) { edges { node { id name product { id name thumbnail { url } productType { id name } channelListings { ...ChannelListingProductWithoutPricing } } } } pageInfo { ...PageInfo } totalCount } products(after: $after, before: $before, first: $first, last: $last) { edges { node { id name productType { id name } thumbnail { url } channelListings { ...ChannelListingProductWithoutPricing } } } pageInfo { ...PageInfo } totalCount } categories(after: $after, before: $before, first: $first, last: $last) { edges { node { id name products { totalCount } } } pageInfo { ...PageInfo } totalCount } collections(after: $after, before: $before, first: $first, last: $last) { edges { node { id name products { totalCount } } } pageInfo { ...PageInfo } totalCount } } ${SaleFragmentDoc} ${ChannelListingProductWithoutPricingFragmentDoc} ${PageInfoFragmentDoc}`; export const VoucherFragmentDoc = gql` fragment Voucher on Voucher { ...Metadata id code startDate endDate usageLimit type discountValueType countries { code country } minCheckoutItemsQuantity channelListings { id channel { id name currencyCode } discountValue currency minSpent { amount currency } } } ${MetadataFragmentDoc}`; export const VoucherDetailsFragmentDoc = gql` fragment VoucherDetails on Voucher { ...Voucher code usageLimit used applyOncePerOrder applyOncePerCustomer onlyForStaff products(after: $after, before: $before, first: $first, last: $last) { edges { node { id name productType { id name } thumbnail { url } channelListings { ...ChannelListingProductWithoutPricing } } } totalCount pageInfo { ...PageInfo } } collections(after: $after, before: $before, first: $first, last: $last) { edges { node { id name products { totalCount } } } totalCount pageInfo { ...PageInfo } } categories(after: $after, before: $before, first: $first, last: $last) { edges { node { id name products { totalCount } } } totalCount pageInfo { ...PageInfo } } } ${VoucherFragmentDoc} ${ChannelListingProductWithoutPricingFragmentDoc} ${PageInfoFragmentDoc}`; export const AttributeErrorFragmentDoc = gql` fragment AttributeError on AttributeError { code field message } `; export const ProductErrorFragmentDoc = gql` fragment ProductError on ProductError { code field message } `; export const ProductErrorWithAttributesFragmentDoc = gql` fragment ProductErrorWithAttributes on ProductError { ...ProductError attributes } ${ProductErrorFragmentDoc}`; export const ProductChannelListingErrorFragmentDoc = gql` fragment ProductChannelListingError on ProductChannelListingError { code field message channels } `; export const CollectionChannelListingErrorFragmentDoc = gql` fragment CollectionChannelListingError on CollectionChannelListingError { code field message channels } `; export const AccountErrorFragmentDoc = gql` fragment AccountError on AccountError { code field addressType message } `; export const DiscountErrorFragmentDoc = gql` fragment DiscountError on DiscountError { code field channels message } `; export const MenuErrorFragmentDoc = gql` fragment MenuError on MenuError { code field message } `; export const OrderErrorFragmentDoc = gql` fragment OrderError on OrderError { code field addressType message } `; export const OrderSettingsErrorFragmentDoc = gql` fragment OrderSettingsError on OrderSettingsError { code field message } `; export const PageErrorFragmentDoc = gql` fragment PageError on PageError { code field message } `; export const PageErrorWithAttributesFragmentDoc = gql` fragment PageErrorWithAttributes on PageError { ...PageError attributes } ${PageErrorFragmentDoc}`; export const PermissionGroupErrorFragmentDoc = gql` fragment PermissionGroupError on PermissionGroupError { code field message } `; export const BulkProductErrorFragmentDoc = gql` fragment BulkProductError on BulkProductError { field code index channels message } `; export const BulkStockErrorFragmentDoc = gql` fragment BulkStockError on BulkStockError { code field index message } `; export const StockErrorFragmentDoc = gql` fragment StockError on StockError { code field message } `; export const ShippingChannelsErrorFragmentDoc = gql` fragment ShippingChannelsError on ShippingError { code field channels message } `; export const ShippingErrorFragmentDoc = gql` fragment ShippingError on ShippingError { code field message } `; export const ShopErrorFragmentDoc = gql` fragment ShopError on ShopError { code field message } `; export const StaffErrorFragmentDoc = gql` fragment StaffError on StaffError { code field message } `; export const WarehouseErrorFragmentDoc = gql` fragment WarehouseError on WarehouseError { code field message } `; export const WebhookErrorFragmentDoc = gql` fragment WebhookError on WebhookError { code field message } `; export const InvoiceErrorFragmentDoc = gql` fragment InvoiceError on InvoiceError { code field message } `; export const AppErrorFragmentDoc = gql` fragment AppError on AppError { field message code permissions } `; export const ExportErrorFragmentDoc = gql` fragment ExportError on ExportError { code field message } `; export const PluginErrorFragmentDoc = gql` fragment PluginError on PluginError { code field message } `; export const MetadataErrorFragmentDoc = gql` fragment MetadataError on MetadataError { code field message } `; export const CollectionErrorFragmentDoc = gql` fragment CollectionError on CollectionError { code field message } `; export const UploadErrorFragmentDoc = gql` fragment UploadError on UploadError { code field message } `; export const GiftCardErrorFragmentDoc = gql` fragment GiftCardError on GiftCardError { code field message } `; export const GiftCardSettingsErrorFragmentDoc = gql` fragment GiftCardSettingsError on GiftCardSettingsError { code field message } `; export const SaleBulkDeleteErrorFragmentDoc = gql` fragment SaleBulkDeleteError on DiscountError { code field message } `; export const VoucherBulkDeleteErrorFragmentDoc = gql` fragment VoucherBulkDeleteError on DiscountError { code field message } `; export const GiftCardBulkCreateErrorFragmentFragmentDoc = gql` fragment GiftCardBulkCreateErrorFragment on GiftCardError { code field message } `; export const GiftCardCreateErrorFragmentFragmentDoc = gql` fragment GiftCardCreateErrorFragment on GiftCardError { code field message } `; export const PageBulkPublishErrorFragmentFragmentDoc = gql` fragment PageBulkPublishErrorFragment on PageError { code field message } `; export const PageBulkRemoveErrorFragmentFragmentDoc = gql` fragment PageBulkRemoveErrorFragment on PageError { code field message } `; export const PageTypeDeleteErrorFragmentFragmentDoc = gql` fragment PageTypeDeleteErrorFragment on PageError { code field message } `; export const ProductVariantStocksDeleteErrorFragmentDoc = gql` fragment ProductVariantStocksDeleteError on StockError { code field message } `; export const ProductTypeDeleteErrorFragmentFragmentDoc = gql` fragment ProductTypeDeleteErrorFragment on ProductError { code field message } `; export const ProductTypeBulkDeleteErrorFragmentFragmentDoc = gql` fragment ProductTypeBulkDeleteErrorFragment on ProductError { code field message } `; export const ProductTypeBulkUpdateErrorFragmentFragmentDoc = gql` fragment ProductTypeBulkUpdateErrorFragment on ProductError { code field message } `; export const ProductAttributeAssignErrorFragmentFragmentDoc = gql` fragment ProductAttributeAssignErrorFragment on ProductError { code field message } `; export const ProductAttributeUnassignErrorFragmentFragmentDoc = gql` fragment ProductAttributeUnassignErrorFragment on ProductError { code field message } `; export const ProductTypeCreateErrorFragmentFragmentDoc = gql` fragment ProductTypeCreateErrorFragment on ProductError { code field message } `; export const ProductTypeReorderAttributesErrorFragmentFragmentDoc = gql` fragment ProductTypeReorderAttributesErrorFragment on ProductError { code field message } `; export const ProductAttributeAssignmentUpdateErrorFragmentFragmentDoc = gql` fragment ProductAttributeAssignmentUpdateErrorFragment on ProductError { code field message attributes } `; export const ShopSettingsUpdateErrorFragmentFragmentDoc = gql` fragment ShopSettingsUpdateErrorFragment on ShopError { code field message } `; export const ShopFetchTaxRatesErrorFragmentFragmentDoc = gql` fragment ShopFetchTaxRatesErrorFragment on ShopError { code field message } `; export const ProductTranslateErrorFragmentFragmentDoc = gql` fragment ProductTranslateErrorFragment on TranslationError { code field message } `; export const ProductVariantTranslateErrorFragmentFragmentDoc = gql` fragment ProductVariantTranslateErrorFragment on TranslationError { code field message } `; export const CategoryTranslateErrorFragmentFragmentDoc = gql` fragment CategoryTranslateErrorFragment on TranslationError { code field message } `; export const CollectionTranslateErrorFragmentFragmentDoc = gql` fragment CollectionTranslateErrorFragment on TranslationError { code field message } `; export const PageTranslateErrorFragmentFragmentDoc = gql` fragment PageTranslateErrorFragment on TranslationError { code field message } `; export const VoucherTranslateErrorFragmentFragmentDoc = gql` fragment VoucherTranslateErrorFragment on TranslationError { code field message } `; export const SaleTranslateErrorFragmentFragmentDoc = gql` fragment SaleTranslateErrorFragment on TranslationError { code field message } `; export const AttributeTranslateErrorFragmentFragmentDoc = gql` fragment AttributeTranslateErrorFragment on TranslationError { code field message } `; export const AttributeValueTranslateErrorFragmentFragmentDoc = gql` fragment AttributeValueTranslateErrorFragment on TranslationError { code field message } `; export const ShippingPriceTranslateErrorFragmentFragmentDoc = gql` fragment ShippingPriceTranslateErrorFragment on TranslationError { code field message } `; export const GiftCardsSettingsFragmentDoc = gql` fragment GiftCardsSettings on GiftCardSettings { expiryType expiryPeriod { type amount } } `; export const UserBaseFragmentDoc = gql` fragment UserBase on User { id firstName lastName } `; export const MoneyFragmentDoc = gql` fragment Money on Money { amount currency } `; export const GiftCardEventFragmentDoc = gql` fragment GiftCardEvent on GiftCardEvent { expiryDate oldExpiryDate id date type user { ...UserBase email } app { id name } message email orderId orderNumber tags oldTags balance { initialBalance { ...Money } currentBalance { ...Money } oldInitialBalance { ...Money } oldCurrentBalance { ...Money } } } ${UserBaseFragmentDoc} ${MoneyFragmentDoc}`; export const GiftCardDataFragmentDoc = gql` fragment GiftCardData on GiftCard { ...Metadata last4CodeChars boughtInChannel createdBy { ...UserBase } product { id name } createdBy { ...UserBase } usedBy { ...UserBase } usedByEmail createdByEmail app { id name } created expiryDate lastUsedOn isActive initialBalance { ...Money } currentBalance { ...Money } id tags { name } } ${MetadataFragmentDoc} ${UserBaseFragmentDoc} ${MoneyFragmentDoc}`; export const CustomerGiftCardFragmentDoc = gql` fragment CustomerGiftCard on GiftCard { id last4CodeChars expiryDate isActive currentBalance { ...Money } } ${MoneyFragmentDoc}`; export const MenuFragmentDoc = gql` fragment Menu on Menu { id name items { id } } `; export const MenuItemFragmentDoc = gql` fragment MenuItem on MenuItem { category { id name } collection { id name } id level name page { id title } url } `; export const MenuItemNestedFragmentDoc = gql` fragment MenuItemNested on MenuItem { ...MenuItem children { ...MenuItem children { ...MenuItem children { ...MenuItem children { ...MenuItem children { ...MenuItem children { ...MenuItem } } } } } } } ${MenuItemFragmentDoc}`; export const MenuDetailsFragmentDoc = gql` fragment MenuDetails on Menu { id items { ...MenuItemNested } name } ${MenuItemNestedFragmentDoc}`; export const RefundOrderLineFragmentDoc = gql` fragment RefundOrderLine on OrderLine { id productName quantity unitPrice { gross { ...Money } } thumbnail(size: 64) { url } } ${MoneyFragmentDoc}`; export const OrderEventFragmentDoc = gql` fragment OrderEvent on OrderEvent { id amount shippingCostsIncluded date email emailType invoiceNumber discount { valueType value reason amount { amount currency } oldValueType oldValue oldAmount { amount currency } } relatedOrder { id number } message quantity transactionReference type user { id email firstName lastName } app { id name appUrl } lines { quantity itemName discount { valueType value reason amount { amount currency } oldValueType oldValue oldAmount { amount currency } } orderLine { id productName variantName } } } `; export const WarehouseFragmentDoc = gql` fragment Warehouse on Warehouse { id name } `; export const StockFragmentDoc = gql` fragment Stock on Stock { id quantity quantityAllocated warehouse { ...Warehouse } } ${WarehouseFragmentDoc}`; export const OrderLineFragmentDoc = gql` fragment OrderLine on OrderLine { id isShippingRequired allocations { id quantity warehouse { id } } variant { id quantityAvailable preorder { endDate } stocks { ...Stock } } productName productSku quantity quantityFulfilled quantityToFulfill unitDiscount { amount currency } unitDiscountValue unitDiscountReason unitDiscountType undiscountedUnitPrice { currency gross { amount currency } net { amount currency } } unitPrice { gross { amount currency } net { amount currency } } thumbnail { url } } ${StockFragmentDoc}`; export const FulfillmentFragmentDoc = gql` fragment Fulfillment on Fulfillment { id lines { id quantity orderLine { ...OrderLine } } fulfillmentOrder status trackingNumber warehouse { id name } } ${OrderLineFragmentDoc}`; export const InvoiceFragmentDoc = gql` fragment Invoice on Invoice { id number createdAt url status } `; export const OrderDetailsFragmentDoc = gql` fragment OrderDetails on Order { id token ...Metadata billingAddress { ...Address } giftCards { events { id type orderId balance { initialBalance { ...Money } currentBalance { ...Money } oldInitialBalance { ...Money } oldCurrentBalance { ...Money } } } } isShippingRequired canFinalize created customerNote discounts { id type calculationMode: valueType value reason amount { ...Money } } events { ...OrderEvent } fulfillments { ...Fulfillment } lines { ...OrderLine } number isPaid paymentStatus shippingAddress { ...Address } deliveryMethod { __typename ... on ShippingMethod { id } ... on Warehouse { id clickAndCollectOption } } shippingMethod { id } shippingMethodName collectionPointName shippingPrice { gross { amount currency } } status subtotal { gross { ...Money } net { ...Money } } total { gross { ...Money } net { ...Money } tax { ...Money } } actions totalAuthorized { ...Money } totalCaptured { ...Money } undiscountedTotal { net { ...Money } gross { ...Money } } user { id email } userEmail shippingMethods { id name price { ...Money } active message } invoices { ...Invoice } channel { isActive id name currencyCode slug defaultCountry { code } } isPaid } ${MetadataFragmentDoc} ${AddressFragmentDoc} ${MoneyFragmentDoc} ${OrderEventFragmentDoc} ${FulfillmentFragmentDoc} ${OrderLineFragmentDoc} ${InvoiceFragmentDoc}`; export const OrderSettingsFragmentDoc = gql` fragment OrderSettings on OrderSettings { automaticallyConfirmAllNewOrders automaticallyFulfillNonShippableGiftCard } `; export const ShopOrderSettingsFragmentDoc = gql` fragment ShopOrderSettings on Shop { fulfillmentAutoApprove fulfillmentAllowUnpaid } `; export const OrderFulfillLineFragmentDoc = gql` fragment OrderFulfillLine on OrderLine { id isShippingRequired productName quantity allocations { quantity warehouse { id } } quantityFulfilled quantityToFulfill variant { id name sku preorder { endDate } attributes { values { id name } } stocks { ...Stock } trackInventory } thumbnail(size: 64) { url } } ${StockFragmentDoc}`; export const OrderLineStockDataFragmentDoc = gql` fragment OrderLineStockData on OrderLine { id allocations { quantity warehouse { id } } quantity quantityToFulfill variant { stocks { ...Stock } } } ${StockFragmentDoc}`; export const PageTypeFragmentDoc = gql` fragment PageType on PageType { id name hasPages } `; export const PageTypeDetailsFragmentDoc = gql` fragment PageTypeDetails on PageType { ...PageType ...Metadata attributes { ...Attribute } } ${PageTypeFragmentDoc} ${MetadataFragmentDoc} ${AttributeFragmentDoc}`; export const PageFragmentDoc = gql` fragment Page on Page { id title slug isPublished } `; export const FileFragmentDoc = gql` fragment File on File { url contentType } `; export const AttributeValueFragmentDoc = gql` fragment AttributeValue on AttributeValue { id name slug file { ...File } reference boolean date dateTime value } ${FileFragmentDoc}`; export const AttributeValueDetailsFragmentDoc = gql` fragment AttributeValueDetails on AttributeValue { ...AttributeValue richText } ${AttributeValueFragmentDoc}`; export const AttributeValueListFragmentDoc = gql` fragment AttributeValueList on AttributeValueCountableConnection { pageInfo { ...PageInfo } edges { cursor node { ...AttributeValueDetails } } } ${PageInfoFragmentDoc} ${AttributeValueDetailsFragmentDoc}`; export const PageSelectedAttributeFragmentDoc = gql` fragment PageSelectedAttribute on SelectedAttribute { attribute { id slug name inputType entityType valueRequired unit choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } values { ...AttributeValueDetails } } ${AttributeValueListFragmentDoc} ${AttributeValueDetailsFragmentDoc}`; export const PageAttributesFragmentDoc = gql` fragment PageAttributes on Page { attributes { ...PageSelectedAttribute } pageType { id name attributes { id name inputType entityType valueRequired choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } } } ${PageSelectedAttributeFragmentDoc} ${AttributeValueListFragmentDoc}`; export const PageDetailsFragmentDoc = gql` fragment PageDetails on Page { ...Page ...PageAttributes ...Metadata content seoTitle seoDescription publicationDate } ${PageFragmentDoc} ${PageAttributesFragmentDoc} ${MetadataFragmentDoc}`; export const PermissionGroupFragmentDoc = gql` fragment PermissionGroup on Group { id name userCanManage users { id firstName lastName } } `; export const PermissionFragmentDoc = gql` fragment Permission on Permission { code name } `; export const StaffMemberFragmentDoc = gql` fragment StaffMember on User { id email firstName isActive lastName } `; export const PermissionGroupMemberFragmentDoc = gql` fragment PermissionGroupMember on User { ...StaffMember avatar(size: 48) { url } } ${StaffMemberFragmentDoc}`; export const PermissionGroupDetailsFragmentDoc = gql` fragment PermissionGroupDetails on Group { ...PermissionGroup permissions { ...Permission } users { ...PermissionGroupMember } } ${PermissionGroupFragmentDoc} ${PermissionFragmentDoc} ${PermissionGroupMemberFragmentDoc}`; export const PluginConfigurationBaseFragmentDoc = gql` fragment PluginConfigurationBase on PluginConfiguration { active channel { id name slug } } `; export const PluginBaseFragmentDoc = gql` fragment PluginBase on Plugin { id name description channelConfigurations { ...PluginConfigurationBase } globalConfiguration { ...PluginConfigurationBase } } ${PluginConfigurationBaseFragmentDoc}`; export const ConfigurationItemFragmentDoc = gql` fragment ConfigurationItem on ConfigurationItem { name value type helpText label } `; export const PluginConfigurationExtendedFragmentDoc = gql` fragment PluginConfigurationExtended on PluginConfiguration { ...PluginConfigurationBase configuration { ...ConfigurationItem } } ${PluginConfigurationBaseFragmentDoc} ${ConfigurationItemFragmentDoc}`; export const PluginsDetailsFragmentDoc = gql` fragment PluginsDetails on Plugin { id name description globalConfiguration { ...PluginConfigurationExtended } channelConfigurations { ...PluginConfigurationExtended } } ${PluginConfigurationExtendedFragmentDoc}`; export const ProductTypeFragmentDoc = gql` fragment ProductType on ProductType { id name kind hasVariants isShippingRequired taxType { description taxCode } } `; export const ProductTypeDetailsFragmentDoc = gql` fragment ProductTypeDetails on ProductType { ...ProductType ...Metadata productAttributes { ...Attribute } variantAttributes { ...Attribute } assignedVariantAttributes { attribute { ...Attribute } variantSelection } weight { unit value } } ${ProductTypeFragmentDoc} ${MetadataFragmentDoc} ${AttributeFragmentDoc}`; export const PriceRangeFragmentDoc = gql` fragment PriceRange on TaxedMoneyRange { start { net { ...Money } } stop { net { ...Money } } } ${MoneyFragmentDoc}`; export const ChannelListingProductFragmentDoc = gql` fragment ChannelListingProduct on ProductChannelListing { ...ChannelListingProductWithoutPricing pricing { priceRange { ...PriceRange } } } ${ChannelListingProductWithoutPricingFragmentDoc} ${PriceRangeFragmentDoc}`; export const ProductWithChannelListingsFragmentDoc = gql` fragment ProductWithChannelListings on Product { id name thumbnail { url } productType { id name hasVariants } channelListings { ...ChannelListingProductWithoutPricing pricing @include(if: $hasChannel) { priceRange { ...PriceRange } } } } ${ChannelListingProductWithoutPricingFragmentDoc} ${PriceRangeFragmentDoc}`; export const ProductVariantAttributesFragmentDoc = gql` fragment ProductVariantAttributes on Product { id attributes { attribute { id slug name inputType entityType valueRequired unit choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } values { ...AttributeValueDetails } } productType { id variantAttributes(variantSelection: VARIANT_SELECTION) { id name inputType valueRequired unit choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } } channelListings { channel { id name currencyCode } } } ${AttributeValueListFragmentDoc} ${AttributeValueDetailsFragmentDoc}`; export const ProductMediaFragmentDoc = gql` fragment ProductMedia on ProductMedia { id alt sortOrder url type oembedData } `; export const PreorderFragmentDoc = gql` fragment Preorder on PreorderData { globalThreshold globalSoldUnits endDate } `; export const ChannelListingProductVariantFragmentDoc = gql` fragment ChannelListingProductVariant on ProductVariantChannelListing { channel { id name currencyCode } price { ...Money } costPrice { ...Money } preorderThreshold { quantity soldUnits } } ${MoneyFragmentDoc}`; export const ProductDetailsVariantFragmentDoc = gql` fragment ProductDetailsVariant on ProductVariant { id sku name margin media { url(size: 200) } stocks { ...Stock } trackInventory preorder { ...Preorder } channelListings { ...ChannelListingProductVariant } quantityLimitPerCustomer } ${StockFragmentDoc} ${PreorderFragmentDoc} ${ChannelListingProductVariantFragmentDoc}`; export const TaxTypeFragmentDoc = gql` fragment TaxType on TaxType { description taxCode } `; export const WeightFragmentDoc = gql` fragment Weight on Weight { unit value } `; export const ProductFragmentDoc = gql` fragment Product on Product { ...ProductVariantAttributes ...Metadata name slug description seoTitle seoDescription rating defaultVariant { id } category { id name } collections { id name } chargeTaxes channelListings { ...ChannelListingProductWithoutPricing } media { ...ProductMedia } isAvailable variants { ...ProductDetailsVariant } productType { id name hasVariants taxType { ...TaxType } } weight { ...Weight } taxType { ...TaxType } } ${ProductVariantAttributesFragmentDoc} ${MetadataFragmentDoc} ${ChannelListingProductWithoutPricingFragmentDoc} ${ProductMediaFragmentDoc} ${ProductDetailsVariantFragmentDoc} ${TaxTypeFragmentDoc} ${WeightFragmentDoc}`; export const VariantAttributeFragmentDoc = gql` fragment VariantAttribute on Attribute { id name slug inputType entityType valueRequired unit choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } ${AttributeValueListFragmentDoc}`; export const SelectedVariantAttributeFragmentDoc = gql` fragment SelectedVariantAttribute on SelectedAttribute { attribute { ...VariantAttribute } values { ...AttributeValueDetails } } ${VariantAttributeFragmentDoc} ${AttributeValueDetailsFragmentDoc}`; export const ProductVariantFragmentDoc = gql` fragment ProductVariant on ProductVariant { id ...Metadata selectionAttributes: attributes(variantSelection: VARIANT_SELECTION) { ...SelectedVariantAttribute } nonSelectionAttributes: attributes(variantSelection: NOT_VARIANT_SELECTION) { ...SelectedVariantAttribute } media { id url type oembedData } name product { id defaultVariant { id } media { ...ProductMedia } name thumbnail { url } channelListings { publicationDate isPublished channel { id name currencyCode } } variants { id name sku media { id url type oembedData } } defaultVariant { id } } channelListings { ...ChannelListingProductVariant } sku stocks { ...Stock } trackInventory preorder { ...Preorder } weight { ...Weight } quantityLimitPerCustomer } ${MetadataFragmentDoc} ${SelectedVariantAttributeFragmentDoc} ${ProductMediaFragmentDoc} ${ChannelListingProductVariantFragmentDoc} ${StockFragmentDoc} ${PreorderFragmentDoc} ${WeightFragmentDoc}`; export const ExportFileFragmentDoc = gql` fragment ExportFile on ExportFile { id status url } `; export const ProductListAttributeFragmentDoc = gql` fragment ProductListAttribute on SelectedAttribute { attribute { id } values { ...AttributeValue } } ${AttributeValueFragmentDoc}`; export const ShippingMethodWithPostalCodesFragmentDoc = gql` fragment ShippingMethodWithPostalCodes on ShippingMethodType { id postalCodeRules { id inclusionType start end } } `; export const ShippingMethodTypeFragmentDoc = gql` fragment ShippingMethodType on ShippingMethodType { ...ShippingMethodWithPostalCodes ...Metadata minimumOrderWeight { unit value } maximumOrderWeight { unit value } minimumDeliveryDays maximumDeliveryDays name description type channelListings { id channel { id name currencyCode } price { ...Money } minimumOrderPrice { ...Money } maximumOrderPrice { ...Money } } } ${ShippingMethodWithPostalCodesFragmentDoc} ${MetadataFragmentDoc} ${MoneyFragmentDoc}`; export const ShippingMethodWithExcludedProductsFragmentDoc = gql` fragment ShippingMethodWithExcludedProducts on ShippingMethodType { ...ShippingMethodType excludedProducts(before: $before, after: $after, first: $first, last: $last) { pageInfo { hasNextPage hasPreviousPage endCursor startCursor } edges { node { id name thumbnail { url } } } } } ${ShippingMethodTypeFragmentDoc}`; export const ShippingZoneFragmentDoc = gql` fragment ShippingZone on ShippingZone { ...Metadata id countries { code country } name description } ${MetadataFragmentDoc}`; export const ShippingZoneDetailsFragmentDoc = gql` fragment ShippingZoneDetails on ShippingZone { ...ShippingZone shippingMethods { ...ShippingMethodType } warehouses { id name } } ${ShippingZoneFragmentDoc} ${ShippingMethodTypeFragmentDoc}`; export const CountryWithCodeFragmentDoc = gql` fragment CountryWithCode on CountryDisplay { country code } `; export const LanguageFragmentDoc = gql` fragment Language on LanguageDisplay { code language } `; export const LimitInfoFragmentDoc = gql` fragment LimitInfo on Limits { channels @include(if: $channels) orders @include(if: $orders) productVariants @include(if: $productVariants) staffUsers @include(if: $staffUsers) warehouses @include(if: $warehouses) } `; export const ShopLimitFragmentDoc = gql` fragment ShopLimit on Shop { limits { currentUsage { ...LimitInfo } allowedUsage { ...LimitInfo } } } ${LimitInfoFragmentDoc}`; export const ShopFragmentDoc = gql` fragment Shop on Shop { companyAddress { ...Address } countries { code country } customerSetPasswordUrl defaultMailSenderAddress defaultMailSenderName description domain { host } name reserveStockDurationAnonymousUser reserveStockDurationAuthenticatedUser limitQuantityPerCheckout } ${AddressFragmentDoc}`; export const StaffMemberDetailsFragmentDoc = gql` fragment StaffMemberDetails on User { ...StaffMember permissionGroups { id name userCanManage } userPermissions { code name } avatar(size: 120) { url } } ${StaffMemberFragmentDoc}`; export const TaxedMoneyFragmentDoc = gql` fragment TaxedMoney on TaxedMoney { net { ...Money } gross { ...Money } } ${MoneyFragmentDoc}`; export const CountryFragmentDoc = gql` fragment Country on CountryDisplay { country code } `; export const CountryWithTaxesFragmentDoc = gql` fragment CountryWithTaxes on CountryDisplay { ...Country vat { standardRate reducedRates { rateType rate } } } ${CountryFragmentDoc}`; export const ShopTaxesFragmentDoc = gql` fragment ShopTaxes on Shop { chargeTaxesOnShipping includeTaxesInPrices displayGrossPrices } `; export const TimePeriodFragmentDoc = gql` fragment TimePeriod on TimePeriod { amount type } `; export const CategoryTranslationFragmentDoc = gql` fragment CategoryTranslation on CategoryTranslatableContent { translation(languageCode: $language) { id description language { language } name seoDescription seoTitle } category { id name description seoDescription seoTitle } } `; export const CollectionTranslationFragmentDoc = gql` fragment CollectionTranslation on CollectionTranslatableContent { collection { id name description seoDescription seoTitle } translation(languageCode: $language) { id description language { language } name seoDescription seoTitle } } `; export const ProductTranslationFragmentDoc = gql` fragment ProductTranslation on ProductTranslatableContent { product { id name description seoDescription seoTitle } translation(languageCode: $language) { id seoTitle seoDescription name description language { code language } } attributeValues { id name richText attributeValue { id } translation(languageCode: $language) { id name richText language { code language } } } } `; export const ProductVariantTranslationFragmentDoc = gql` fragment ProductVariantTranslation on ProductVariantTranslatableContent { productVariant { id } name translation(languageCode: $language) { id name language { code language } } attributeValues { id name richText attributeValue { id } translation(languageCode: $language) { id name richText language { code language } } } } `; export const SaleTranslationFragmentDoc = gql` fragment SaleTranslation on SaleTranslatableContent { sale { id name } translation(languageCode: $language) { id language { code language } name } } `; export const VoucherTranslationFragmentDoc = gql` fragment VoucherTranslation on VoucherTranslatableContent { name voucher { id name } translation(languageCode: $language) { id language { code language } name } } `; export const ShippingMethodTranslationFragmentDoc = gql` fragment ShippingMethodTranslation on ShippingMethodTranslatableContent { id name description shippingMethod { id } translation(languageCode: $language) { id language { code language } name description } } `; export const PageTranslationFragmentDoc = gql` fragment PageTranslation on PageTranslatableContent { page { id content seoDescription seoTitle title } translation(languageCode: $language) { id content seoDescription seoTitle title language { code language } } attributeValues { id name richText attributeValue { id } translation(languageCode: $language) { id name richText language { code language } } } } `; export const PageTranslatableFragmentDoc = gql` fragment PageTranslatable on PageTranslatableContent { id content seoDescription seoTitle title translation(languageCode: $language) { id content seoDescription seoTitle title language { code language } } } `; export const AttributeTranslationFragmentDoc = gql` fragment AttributeTranslation on AttributeTranslatableContent { id name translation(languageCode: $language) { id name } attribute { id name inputType } } `; export const AttributeChoicesTranslationFragmentDoc = gql` fragment AttributeChoicesTranslation on AttributeValueCountableConnection { pageInfo { ...PageInfo } edges { cursor node { id name richText inputType translation(languageCode: $language) { id name richText } } } } ${PageInfoFragmentDoc}`; export const AttributeTranslationDetailsFragmentDoc = gql` fragment AttributeTranslationDetails on AttributeTranslatableContent { translation(languageCode: $language) { id name } attribute { id name inputType withChoices choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeChoicesTranslation } } } ${AttributeChoicesTranslationFragmentDoc}`; export const AttributeValueTranslatableContentFragmentDoc = gql` fragment AttributeValueTranslatableContent on AttributeTranslatableContent { translation(languageCode: $language) { id name } attribute { id name inputType choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeChoicesTranslation } } } ${AttributeChoicesTranslationFragmentDoc}`; export const WarehouseWithShippingFragmentDoc = gql` fragment WarehouseWithShipping on Warehouse { ...Warehouse shippingZones(first: 100) { edges { node { id name } } } } ${WarehouseFragmentDoc}`; export const WarehouseDetailsFragmentDoc = gql` fragment WarehouseDetails on Warehouse { isPrivate clickAndCollectOption ...WarehouseWithShipping address { ...Address } } ${WarehouseWithShippingFragmentDoc} ${AddressFragmentDoc}`; export const WebhooksDetailsFragmentDoc = gql` fragment WebhooksDetails on Webhook { ...Webhook } ${WebhookFragmentDoc}`; export const AppCreateDocument = gql` mutation AppCreate($input: AppInput!) { appCreate(input: $input) { authToken app { ...App } errors { ...AppError } } } ${AppFragmentDoc} ${AppErrorFragmentDoc}`; export type AppCreateMutationFn = Apollo.MutationFunction; /** * __useAppCreateMutation__ * * To run a mutation, you first call `useAppCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppCreateMutation` 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 [appCreateMutation, { data, loading, error }] = useAppCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useAppCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppCreateDocument, options); } export type AppCreateMutationHookResult = ReturnType; export type AppCreateMutationResult = Apollo.MutationResult; export type AppCreateMutationOptions = Apollo.BaseMutationOptions; export const AppDeleteDocument = gql` mutation AppDelete($id: ID!) { appDelete(id: $id) { app { ...App } errors { ...AppError } } } ${AppFragmentDoc} ${AppErrorFragmentDoc}`; export type AppDeleteMutationFn = Apollo.MutationFunction; /** * __useAppDeleteMutation__ * * To run a mutation, you first call `useAppDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppDeleteMutation` 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 [appDeleteMutation, { data, loading, error }] = useAppDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppDeleteDocument, options); } export type AppDeleteMutationHookResult = ReturnType; export type AppDeleteMutationResult = Apollo.MutationResult; export type AppDeleteMutationOptions = Apollo.BaseMutationOptions; export const AppDeleteFailedInstallationDocument = gql` mutation AppDeleteFailedInstallation($id: ID!) { appDeleteFailedInstallation(id: $id) { appInstallation { id status appName message } errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppDeleteFailedInstallationMutationFn = Apollo.MutationFunction; /** * __useAppDeleteFailedInstallationMutation__ * * To run a mutation, you first call `useAppDeleteFailedInstallationMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppDeleteFailedInstallationMutation` 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 [appDeleteFailedInstallationMutation, { data, loading, error }] = useAppDeleteFailedInstallationMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppDeleteFailedInstallationMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppDeleteFailedInstallationDocument, options); } export type AppDeleteFailedInstallationMutationHookResult = ReturnType; export type AppDeleteFailedInstallationMutationResult = Apollo.MutationResult; export type AppDeleteFailedInstallationMutationOptions = Apollo.BaseMutationOptions; export const AppFetchDocument = gql` mutation AppFetch($manifestUrl: String!) { appFetchManifest(manifestUrl: $manifestUrl) { manifest { identifier version about name appUrl configurationUrl tokenTargetUrl dataPrivacy dataPrivacyUrl homepageUrl supportUrl permissions { code name } } errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppFetchMutationFn = Apollo.MutationFunction; /** * __useAppFetchMutation__ * * To run a mutation, you first call `useAppFetchMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppFetchMutation` 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 [appFetchMutation, { data, loading, error }] = useAppFetchMutation({ * variables: { * manifestUrl: // value for 'manifestUrl' * }, * }); */ export function useAppFetchMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppFetchDocument, options); } export type AppFetchMutationHookResult = ReturnType; export type AppFetchMutationResult = Apollo.MutationResult; export type AppFetchMutationOptions = Apollo.BaseMutationOptions; export const AppInstallDocument = gql` mutation AppInstall($input: AppInstallInput!) { appInstall(input: $input) { appInstallation { id status appName manifestUrl } errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppInstallMutationFn = Apollo.MutationFunction; /** * __useAppInstallMutation__ * * To run a mutation, you first call `useAppInstallMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppInstallMutation` 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 [appInstallMutation, { data, loading, error }] = useAppInstallMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useAppInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppInstallDocument, options); } export type AppInstallMutationHookResult = ReturnType; export type AppInstallMutationResult = Apollo.MutationResult; export type AppInstallMutationOptions = Apollo.BaseMutationOptions; export const AppRetryInstallDocument = gql` mutation AppRetryInstall($id: ID!) { appRetryInstall(id: $id) { appInstallation { id status appName manifestUrl } errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppRetryInstallMutationFn = Apollo.MutationFunction; /** * __useAppRetryInstallMutation__ * * To run a mutation, you first call `useAppRetryInstallMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppRetryInstallMutation` 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 [appRetryInstallMutation, { data, loading, error }] = useAppRetryInstallMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppRetryInstallMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppRetryInstallDocument, options); } export type AppRetryInstallMutationHookResult = ReturnType; export type AppRetryInstallMutationResult = Apollo.MutationResult; export type AppRetryInstallMutationOptions = Apollo.BaseMutationOptions; export const AppUpdateDocument = gql` mutation AppUpdate($id: ID!, $input: AppInput!) { appUpdate(id: $id, input: $input) { app { ...App permissions { code name } } errors { ...AppError message permissions } } } ${AppFragmentDoc} ${AppErrorFragmentDoc}`; export type AppUpdateMutationFn = Apollo.MutationFunction; /** * __useAppUpdateMutation__ * * To run a mutation, you first call `useAppUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppUpdateMutation` 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 [appUpdateMutation, { data, loading, error }] = useAppUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useAppUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppUpdateDocument, options); } export type AppUpdateMutationHookResult = ReturnType; export type AppUpdateMutationResult = Apollo.MutationResult; export type AppUpdateMutationOptions = Apollo.BaseMutationOptions; export const AppTokenCreateDocument = gql` mutation AppTokenCreate($input: AppTokenInput!) { appTokenCreate(input: $input) { appToken { name authToken id } authToken errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppTokenCreateMutationFn = Apollo.MutationFunction; /** * __useAppTokenCreateMutation__ * * To run a mutation, you first call `useAppTokenCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppTokenCreateMutation` 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 [appTokenCreateMutation, { data, loading, error }] = useAppTokenCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useAppTokenCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppTokenCreateDocument, options); } export type AppTokenCreateMutationHookResult = ReturnType; export type AppTokenCreateMutationResult = Apollo.MutationResult; export type AppTokenCreateMutationOptions = Apollo.BaseMutationOptions; export const AppTokenDeleteDocument = gql` mutation AppTokenDelete($id: ID!) { appTokenDelete(id: $id) { appToken { name authToken id } errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppTokenDeleteMutationFn = Apollo.MutationFunction; /** * __useAppTokenDeleteMutation__ * * To run a mutation, you first call `useAppTokenDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppTokenDeleteMutation` 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 [appTokenDeleteMutation, { data, loading, error }] = useAppTokenDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppTokenDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppTokenDeleteDocument, options); } export type AppTokenDeleteMutationHookResult = ReturnType; export type AppTokenDeleteMutationResult = Apollo.MutationResult; export type AppTokenDeleteMutationOptions = Apollo.BaseMutationOptions; export const AppActivateDocument = gql` mutation AppActivate($id: ID!) { appActivate(id: $id) { errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppActivateMutationFn = Apollo.MutationFunction; /** * __useAppActivateMutation__ * * To run a mutation, you first call `useAppActivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppActivateMutation` 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 [appActivateMutation, { data, loading, error }] = useAppActivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppActivateDocument, options); } export type AppActivateMutationHookResult = ReturnType; export type AppActivateMutationResult = Apollo.MutationResult; export type AppActivateMutationOptions = Apollo.BaseMutationOptions; export const AppDeactivateDocument = gql` mutation AppDeactivate($id: ID!) { appDeactivate(id: $id) { errors { ...AppError } } } ${AppErrorFragmentDoc}`; export type AppDeactivateMutationFn = Apollo.MutationFunction; /** * __useAppDeactivateMutation__ * * To run a mutation, you first call `useAppDeactivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAppDeactivateMutation` 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 [appDeactivateMutation, { data, loading, error }] = useAppDeactivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AppDeactivateDocument, options); } export type AppDeactivateMutationHookResult = ReturnType; export type AppDeactivateMutationResult = Apollo.MutationResult; export type AppDeactivateMutationOptions = Apollo.BaseMutationOptions; export const AppsListDocument = gql` query AppsList($before: String, $after: String, $first: Int, $last: Int, $sort: AppSortingInput, $filter: AppFilterInput) { apps( before: $before after: $after first: $first last: $last sortBy: $sort filter: $filter ) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } totalCount edges { node { id name isActive type appUrl } } } } `; /** * __useAppsListQuery__ * * To run a query within a React component, call `useAppsListQuery` and pass it any options that fit your needs. * When your component renders, `useAppsListQuery` 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 } = useAppsListQuery({ * variables: { * before: // value for 'before' * after: // value for 'after' * first: // value for 'first' * last: // value for 'last' * sort: // value for 'sort' * filter: // value for 'filter' * }, * }); */ export function useAppsListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AppsListDocument, options); } export function useAppsListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AppsListDocument, options); } export type AppsListQueryHookResult = ReturnType; export type AppsListLazyQueryHookResult = ReturnType; export type AppsListQueryResult = Apollo.QueryResult; export const AppsInstallationsDocument = gql` query AppsInstallations { appsInstallations { status message appName manifestUrl id } } `; /** * __useAppsInstallationsQuery__ * * To run a query within a React component, call `useAppsInstallationsQuery` and pass it any options that fit your needs. * When your component renders, `useAppsInstallationsQuery` 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 } = useAppsInstallationsQuery({ * variables: { * }, * }); */ export function useAppsInstallationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AppsInstallationsDocument, options); } export function useAppsInstallationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AppsInstallationsDocument, options); } export type AppsInstallationsQueryHookResult = ReturnType; export type AppsInstallationsLazyQueryHookResult = ReturnType; export type AppsInstallationsQueryResult = Apollo.QueryResult; export const AppDocument = gql` query App($id: ID!) { app(id: $id) { ...App aboutApp permissions { code name } dataPrivacy dataPrivacyUrl } } ${AppFragmentDoc}`; /** * __useAppQuery__ * * To run a query within a React component, call `useAppQuery` and pass it any options that fit your needs. * When your component renders, `useAppQuery` 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 } = useAppQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useAppQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AppDocument, options); } export function useAppLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AppDocument, options); } export type AppQueryHookResult = ReturnType; export type AppLazyQueryHookResult = ReturnType; export type AppQueryResult = Apollo.QueryResult; export const ExtensionListDocument = gql` query ExtensionList($filter: AppExtensionFilterInput!) { appExtensions(filter: $filter, first: 100) { edges { node { id label url mount target accessToken permissions { code } app { id appUrl } } } } } `; /** * __useExtensionListQuery__ * * To run a query within a React component, call `useExtensionListQuery` and pass it any options that fit your needs. * When your component renders, `useExtensionListQuery` 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 } = useExtensionListQuery({ * variables: { * filter: // value for 'filter' * }, * }); */ export function useExtensionListQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ExtensionListDocument, options); } export function useExtensionListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ExtensionListDocument, options); } export type ExtensionListQueryHookResult = ReturnType; export type ExtensionListLazyQueryHookResult = ReturnType; export type ExtensionListQueryResult = Apollo.QueryResult; export const AttributeBulkDeleteDocument = gql` mutation AttributeBulkDelete($ids: [ID!]!) { attributeBulkDelete(ids: $ids) { errors { ...AttributeError } } } ${AttributeErrorFragmentDoc}`; export type AttributeBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useAttributeBulkDeleteMutation__ * * To run a mutation, you first call `useAttributeBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeBulkDeleteMutation` 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 [attributeBulkDeleteMutation, { data, loading, error }] = useAttributeBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useAttributeBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeBulkDeleteDocument, options); } export type AttributeBulkDeleteMutationHookResult = ReturnType; export type AttributeBulkDeleteMutationResult = Apollo.MutationResult; export type AttributeBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const AttributeDeleteDocument = gql` mutation AttributeDelete($id: ID!) { attributeDelete(id: $id) { errors { ...AttributeError } } } ${AttributeErrorFragmentDoc}`; export type AttributeDeleteMutationFn = Apollo.MutationFunction; /** * __useAttributeDeleteMutation__ * * To run a mutation, you first call `useAttributeDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeDeleteMutation` 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 [attributeDeleteMutation, { data, loading, error }] = useAttributeDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useAttributeDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeDeleteDocument, options); } export type AttributeDeleteMutationHookResult = ReturnType; export type AttributeDeleteMutationResult = Apollo.MutationResult; export type AttributeDeleteMutationOptions = Apollo.BaseMutationOptions; export const AttributeUpdateDocument = gql` mutation AttributeUpdate($id: ID!, $input: AttributeUpdateInput!) { attributeUpdate(id: $id, input: $input) { attribute { ...AttributeDetails } errors { ...AttributeError } } } ${AttributeDetailsFragmentDoc} ${AttributeErrorFragmentDoc}`; export type AttributeUpdateMutationFn = Apollo.MutationFunction; /** * __useAttributeUpdateMutation__ * * To run a mutation, you first call `useAttributeUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeUpdateMutation` 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 [attributeUpdateMutation, { data, loading, error }] = useAttributeUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useAttributeUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeUpdateDocument, options); } export type AttributeUpdateMutationHookResult = ReturnType; export type AttributeUpdateMutationResult = Apollo.MutationResult; export type AttributeUpdateMutationOptions = Apollo.BaseMutationOptions; export const AttributeValueDeleteDocument = gql` mutation AttributeValueDelete($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { attributeValueDelete(id: $id) { attribute { id choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } errors { ...AttributeError } } } ${AttributeValueListFragmentDoc} ${AttributeErrorFragmentDoc}`; export type AttributeValueDeleteMutationFn = Apollo.MutationFunction; /** * __useAttributeValueDeleteMutation__ * * To run a mutation, you first call `useAttributeValueDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeValueDeleteMutation` 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 [attributeValueDeleteMutation, { data, loading, error }] = useAttributeValueDeleteMutation({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeValueDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeValueDeleteDocument, options); } export type AttributeValueDeleteMutationHookResult = ReturnType; export type AttributeValueDeleteMutationResult = Apollo.MutationResult; export type AttributeValueDeleteMutationOptions = Apollo.BaseMutationOptions; export const AttributeValueUpdateDocument = gql` mutation AttributeValueUpdate($id: ID!, $input: AttributeValueUpdateInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { attributeValueUpdate(id: $id, input: $input) { attribute { id choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } errors { ...AttributeError } } } ${AttributeValueListFragmentDoc} ${AttributeErrorFragmentDoc}`; export type AttributeValueUpdateMutationFn = Apollo.MutationFunction; /** * __useAttributeValueUpdateMutation__ * * To run a mutation, you first call `useAttributeValueUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeValueUpdateMutation` 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 [attributeValueUpdateMutation, { data, loading, error }] = useAttributeValueUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeValueUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeValueUpdateDocument, options); } export type AttributeValueUpdateMutationHookResult = ReturnType; export type AttributeValueUpdateMutationResult = Apollo.MutationResult; export type AttributeValueUpdateMutationOptions = Apollo.BaseMutationOptions; export const AttributeValueCreateDocument = gql` mutation AttributeValueCreate($id: ID!, $input: AttributeValueCreateInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { attributeValueCreate(attribute: $id, input: $input) { attribute { id choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } errors { ...AttributeError } } } ${AttributeValueListFragmentDoc} ${AttributeErrorFragmentDoc}`; export type AttributeValueCreateMutationFn = Apollo.MutationFunction; /** * __useAttributeValueCreateMutation__ * * To run a mutation, you first call `useAttributeValueCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeValueCreateMutation` 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 [attributeValueCreateMutation, { data, loading, error }] = useAttributeValueCreateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeValueCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeValueCreateDocument, options); } export type AttributeValueCreateMutationHookResult = ReturnType; export type AttributeValueCreateMutationResult = Apollo.MutationResult; export type AttributeValueCreateMutationOptions = Apollo.BaseMutationOptions; export const AttributeCreateDocument = gql` mutation AttributeCreate($input: AttributeCreateInput!) { attributeCreate(input: $input) { attribute { id } errors { ...AttributeError } } } ${AttributeErrorFragmentDoc}`; export type AttributeCreateMutationFn = Apollo.MutationFunction; /** * __useAttributeCreateMutation__ * * To run a mutation, you first call `useAttributeCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeCreateMutation` 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 [attributeCreateMutation, { data, loading, error }] = useAttributeCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useAttributeCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeCreateDocument, options); } export type AttributeCreateMutationHookResult = ReturnType; export type AttributeCreateMutationResult = Apollo.MutationResult; export type AttributeCreateMutationOptions = Apollo.BaseMutationOptions; export const AttributeValueReorderDocument = gql` mutation AttributeValueReorder($id: ID!, $move: ReorderInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { attributeReorderValues(attributeId: $id, moves: [$move]) { attribute { id choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { pageInfo { ...PageInfo } edges { cursor node { id } } } } errors { ...AttributeError } } } ${PageInfoFragmentDoc} ${AttributeErrorFragmentDoc}`; export type AttributeValueReorderMutationFn = Apollo.MutationFunction; /** * __useAttributeValueReorderMutation__ * * To run a mutation, you first call `useAttributeValueReorderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAttributeValueReorderMutation` 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 [attributeValueReorderMutation, { data, loading, error }] = useAttributeValueReorderMutation({ * variables: { * id: // value for 'id' * move: // value for 'move' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeValueReorderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AttributeValueReorderDocument, options); } export type AttributeValueReorderMutationHookResult = ReturnType; export type AttributeValueReorderMutationResult = Apollo.MutationResult; export type AttributeValueReorderMutationOptions = Apollo.BaseMutationOptions; export const AttributeDetailsDocument = gql` query AttributeDetails($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { attribute(id: $id) { ...AttributeDetails choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } } ${AttributeDetailsFragmentDoc} ${AttributeValueListFragmentDoc}`; /** * __useAttributeDetailsQuery__ * * To run a query within a React component, call `useAttributeDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useAttributeDetailsQuery` 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 } = useAttributeDetailsQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AttributeDetailsDocument, options); } export function useAttributeDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AttributeDetailsDocument, options); } export type AttributeDetailsQueryHookResult = ReturnType; export type AttributeDetailsLazyQueryHookResult = ReturnType; export type AttributeDetailsQueryResult = Apollo.QueryResult; export const AttributeListDocument = gql` query AttributeList($filter: AttributeFilterInput, $before: String, $after: String, $first: Int, $last: Int, $sort: AttributeSortingInput) { attributes( filter: $filter before: $before after: $after first: $first last: $last sortBy: $sort ) { edges { node { ...Attribute } } pageInfo { ...PageInfo } } } ${AttributeFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useAttributeListQuery__ * * To run a query within a React component, call `useAttributeListQuery` and pass it any options that fit your needs. * When your component renders, `useAttributeListQuery` 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 } = useAttributeListQuery({ * variables: { * filter: // value for 'filter' * before: // value for 'before' * after: // value for 'after' * first: // value for 'first' * last: // value for 'last' * sort: // value for 'sort' * }, * }); */ export function useAttributeListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AttributeListDocument, options); } export function useAttributeListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AttributeListDocument, options); } export type AttributeListQueryHookResult = ReturnType; export type AttributeListLazyQueryHookResult = ReturnType; export type AttributeListQueryResult = Apollo.QueryResult; export const RequestPasswordResetDocument = gql` mutation RequestPasswordReset($email: String!, $redirectUrl: String!) { requestPasswordReset(email: $email, redirectUrl: $redirectUrl) { errors { ...AccountError } } } ${AccountErrorFragmentDoc}`; export type RequestPasswordResetMutationFn = Apollo.MutationFunction; /** * __useRequestPasswordResetMutation__ * * To run a mutation, you first call `useRequestPasswordResetMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRequestPasswordResetMutation` 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 [requestPasswordResetMutation, { data, loading, error }] = useRequestPasswordResetMutation({ * variables: { * email: // value for 'email' * redirectUrl: // value for 'redirectUrl' * }, * }); */ export function useRequestPasswordResetMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(RequestPasswordResetDocument, options); } export type RequestPasswordResetMutationHookResult = ReturnType; export type RequestPasswordResetMutationResult = Apollo.MutationResult; export type RequestPasswordResetMutationOptions = Apollo.BaseMutationOptions; export const AvailableExternalAuthenticationsDocument = gql` query AvailableExternalAuthentications { shop { availableExternalAuthentications { id name } } } `; /** * __useAvailableExternalAuthenticationsQuery__ * * To run a query within a React component, call `useAvailableExternalAuthenticationsQuery` and pass it any options that fit your needs. * When your component renders, `useAvailableExternalAuthenticationsQuery` 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 } = useAvailableExternalAuthenticationsQuery({ * variables: { * }, * }); */ export function useAvailableExternalAuthenticationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AvailableExternalAuthenticationsDocument, options); } export function useAvailableExternalAuthenticationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AvailableExternalAuthenticationsDocument, options); } export type AvailableExternalAuthenticationsQueryHookResult = ReturnType; export type AvailableExternalAuthenticationsLazyQueryHookResult = ReturnType; export type AvailableExternalAuthenticationsQueryResult = Apollo.QueryResult; export const UserDetailsDocument = gql` query UserDetails { me { ...User } } ${UserFragmentDoc}`; /** * __useUserDetailsQuery__ * * To run a query within a React component, call `useUserDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useUserDetailsQuery` 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 } = useUserDetailsQuery({ * variables: { * }, * }); */ export function useUserDetailsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(UserDetailsDocument, options); } export function useUserDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(UserDetailsDocument, options); } export type UserDetailsQueryHookResult = ReturnType; export type UserDetailsLazyQueryHookResult = ReturnType; export type UserDetailsQueryResult = Apollo.QueryResult; export const CategoryDeleteDocument = gql` mutation CategoryDelete($id: ID!) { categoryDelete(id: $id) { errors { ...ProductError } } } ${ProductErrorFragmentDoc}`; export type CategoryDeleteMutationFn = Apollo.MutationFunction; /** * __useCategoryDeleteMutation__ * * To run a mutation, you first call `useCategoryDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCategoryDeleteMutation` 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 [categoryDeleteMutation, { data, loading, error }] = useCategoryDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useCategoryDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CategoryDeleteDocument, options); } export type CategoryDeleteMutationHookResult = ReturnType; export type CategoryDeleteMutationResult = Apollo.MutationResult; export type CategoryDeleteMutationOptions = Apollo.BaseMutationOptions; export const CategoryCreateDocument = gql` mutation CategoryCreate($parent: ID, $input: CategoryInput!) { categoryCreate(parent: $parent, input: $input) { category { ...CategoryDetails } errors { ...ProductError } } } ${CategoryDetailsFragmentDoc} ${ProductErrorFragmentDoc}`; export type CategoryCreateMutationFn = Apollo.MutationFunction; /** * __useCategoryCreateMutation__ * * To run a mutation, you first call `useCategoryCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCategoryCreateMutation` 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 [categoryCreateMutation, { data, loading, error }] = useCategoryCreateMutation({ * variables: { * parent: // value for 'parent' * input: // value for 'input' * }, * }); */ export function useCategoryCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CategoryCreateDocument, options); } export type CategoryCreateMutationHookResult = ReturnType; export type CategoryCreateMutationResult = Apollo.MutationResult; export type CategoryCreateMutationOptions = Apollo.BaseMutationOptions; export const CategoryUpdateDocument = gql` mutation CategoryUpdate($id: ID!, $input: CategoryInput!) { categoryUpdate(id: $id, input: $input) { category { ...CategoryDetails } errors { ...ProductError } } } ${CategoryDetailsFragmentDoc} ${ProductErrorFragmentDoc}`; export type CategoryUpdateMutationFn = Apollo.MutationFunction; /** * __useCategoryUpdateMutation__ * * To run a mutation, you first call `useCategoryUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCategoryUpdateMutation` 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 [categoryUpdateMutation, { data, loading, error }] = useCategoryUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useCategoryUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CategoryUpdateDocument, options); } export type CategoryUpdateMutationHookResult = ReturnType; export type CategoryUpdateMutationResult = Apollo.MutationResult; export type CategoryUpdateMutationOptions = Apollo.BaseMutationOptions; export const CategoryBulkDeleteDocument = gql` mutation CategoryBulkDelete($ids: [ID!]!) { categoryBulkDelete(ids: $ids) { errors { ...ProductError } } } ${ProductErrorFragmentDoc}`; export type CategoryBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useCategoryBulkDeleteMutation__ * * To run a mutation, you first call `useCategoryBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCategoryBulkDeleteMutation` 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 [categoryBulkDeleteMutation, { data, loading, error }] = useCategoryBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useCategoryBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CategoryBulkDeleteDocument, options); } export type CategoryBulkDeleteMutationHookResult = ReturnType; export type CategoryBulkDeleteMutationResult = Apollo.MutationResult; export type CategoryBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const RootCategoriesDocument = gql` query RootCategories($first: Int, $after: String, $last: Int, $before: String, $filter: CategoryFilterInput, $sort: CategorySortingInput) { categories( level: 0 first: $first after: $after last: $last before: $before filter: $filter sortBy: $sort ) { edges { node { ...Category } } pageInfo { ...PageInfo } } } ${CategoryFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useRootCategoriesQuery__ * * To run a query within a React component, call `useRootCategoriesQuery` and pass it any options that fit your needs. * When your component renders, `useRootCategoriesQuery` 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 } = useRootCategoriesQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useRootCategoriesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(RootCategoriesDocument, options); } export function useRootCategoriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(RootCategoriesDocument, options); } export type RootCategoriesQueryHookResult = ReturnType; export type RootCategoriesLazyQueryHookResult = ReturnType; export type RootCategoriesQueryResult = Apollo.QueryResult; export const CategoryDetailsDocument = gql` query CategoryDetails($id: ID!, $first: Int, $after: String, $last: Int, $before: String) { category(id: $id) { ...CategoryDetails children(first: $first, after: $after, last: $last, before: $before) { edges { node { ...Category } } pageInfo { ...PageInfo } } products(first: $first, after: $after, last: $last, before: $before) { pageInfo { ...PageInfo } edges { cursor node { id name thumbnail { url } } } } } } ${CategoryDetailsFragmentDoc} ${CategoryFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useCategoryDetailsQuery__ * * To run a query within a React component, call `useCategoryDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useCategoryDetailsQuery` 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 } = useCategoryDetailsQuery({ * variables: { * id: // value for 'id' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useCategoryDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CategoryDetailsDocument, options); } export function useCategoryDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CategoryDetailsDocument, options); } export type CategoryDetailsQueryHookResult = ReturnType; export type CategoryDetailsLazyQueryHookResult = ReturnType; export type CategoryDetailsQueryResult = Apollo.QueryResult; export const ChannelCreateDocument = gql` mutation ChannelCreate($input: ChannelCreateInput!) { channelCreate(input: $input) { channel { ...ChannelDetails } errors { ...ChannelError } } } ${ChannelDetailsFragmentDoc} ${ChannelErrorFragmentDoc}`; export type ChannelCreateMutationFn = Apollo.MutationFunction; /** * __useChannelCreateMutation__ * * To run a mutation, you first call `useChannelCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChannelCreateMutation` 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 [channelCreateMutation, { data, loading, error }] = useChannelCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useChannelCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChannelCreateDocument, options); } export type ChannelCreateMutationHookResult = ReturnType; export type ChannelCreateMutationResult = Apollo.MutationResult; export type ChannelCreateMutationOptions = Apollo.BaseMutationOptions; export const ChannelUpdateDocument = gql` mutation ChannelUpdate($id: ID!, $input: ChannelUpdateInput!) { channelUpdate(id: $id, input: $input) { channel { ...ChannelDetails } errors { ...ChannelError } } } ${ChannelDetailsFragmentDoc} ${ChannelErrorFragmentDoc}`; export type ChannelUpdateMutationFn = Apollo.MutationFunction; /** * __useChannelUpdateMutation__ * * To run a mutation, you first call `useChannelUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChannelUpdateMutation` 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 [channelUpdateMutation, { data, loading, error }] = useChannelUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useChannelUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChannelUpdateDocument, options); } export type ChannelUpdateMutationHookResult = ReturnType; export type ChannelUpdateMutationResult = Apollo.MutationResult; export type ChannelUpdateMutationOptions = Apollo.BaseMutationOptions; export const ChannelDeleteDocument = gql` mutation ChannelDelete($id: ID!, $input: ChannelDeleteInput) { channelDelete(id: $id, input: $input) { errors { ...ChannelError } } } ${ChannelErrorFragmentDoc}`; export type ChannelDeleteMutationFn = Apollo.MutationFunction; /** * __useChannelDeleteMutation__ * * To run a mutation, you first call `useChannelDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChannelDeleteMutation` 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 [channelDeleteMutation, { data, loading, error }] = useChannelDeleteMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useChannelDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChannelDeleteDocument, options); } export type ChannelDeleteMutationHookResult = ReturnType; export type ChannelDeleteMutationResult = Apollo.MutationResult; export type ChannelDeleteMutationOptions = Apollo.BaseMutationOptions; export const ChannelActivateDocument = gql` mutation ChannelActivate($id: ID!) { channelActivate(id: $id) { channel { ...ChannelDetails } errors { ...ChannelError } } } ${ChannelDetailsFragmentDoc} ${ChannelErrorFragmentDoc}`; export type ChannelActivateMutationFn = Apollo.MutationFunction; /** * __useChannelActivateMutation__ * * To run a mutation, you first call `useChannelActivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChannelActivateMutation` 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 [channelActivateMutation, { data, loading, error }] = useChannelActivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useChannelActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChannelActivateDocument, options); } export type ChannelActivateMutationHookResult = ReturnType; export type ChannelActivateMutationResult = Apollo.MutationResult; export type ChannelActivateMutationOptions = Apollo.BaseMutationOptions; export const ChannelDeactivateDocument = gql` mutation ChannelDeactivate($id: ID!) { channelDeactivate(id: $id) { channel { ...ChannelDetails } errors { ...ChannelError } } } ${ChannelDetailsFragmentDoc} ${ChannelErrorFragmentDoc}`; export type ChannelDeactivateMutationFn = Apollo.MutationFunction; /** * __useChannelDeactivateMutation__ * * To run a mutation, you first call `useChannelDeactivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChannelDeactivateMutation` 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 [channelDeactivateMutation, { data, loading, error }] = useChannelDeactivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useChannelDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChannelDeactivateDocument, options); } export type ChannelDeactivateMutationHookResult = ReturnType; export type ChannelDeactivateMutationResult = Apollo.MutationResult; export type ChannelDeactivateMutationOptions = Apollo.BaseMutationOptions; export const BaseChannelsDocument = gql` query BaseChannels { channels { ...Channel } } ${ChannelFragmentDoc}`; /** * __useBaseChannelsQuery__ * * To run a query within a React component, call `useBaseChannelsQuery` and pass it any options that fit your needs. * When your component renders, `useBaseChannelsQuery` 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 } = useBaseChannelsQuery({ * variables: { * }, * }); */ export function useBaseChannelsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(BaseChannelsDocument, options); } export function useBaseChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(BaseChannelsDocument, options); } export type BaseChannelsQueryHookResult = ReturnType; export type BaseChannelsLazyQueryHookResult = ReturnType; export type BaseChannelsQueryResult = Apollo.QueryResult; export const ChannelsDocument = gql` query Channels { channels { ...ChannelDetails } } ${ChannelDetailsFragmentDoc}`; /** * __useChannelsQuery__ * * To run a query within a React component, call `useChannelsQuery` and pass it any options that fit your needs. * When your component renders, `useChannelsQuery` 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 } = useChannelsQuery({ * variables: { * }, * }); */ export function useChannelsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ChannelsDocument, options); } export function useChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ChannelsDocument, options); } export type ChannelsQueryHookResult = ReturnType; export type ChannelsLazyQueryHookResult = ReturnType; export type ChannelsQueryResult = Apollo.QueryResult; export const ChannelDocument = gql` query Channel($id: ID!) { channel(id: $id) { ...ChannelDetails } } ${ChannelDetailsFragmentDoc}`; /** * __useChannelQuery__ * * To run a query within a React component, call `useChannelQuery` and pass it any options that fit your needs. * When your component renders, `useChannelQuery` 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 } = useChannelQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useChannelQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ChannelDocument, options); } export function useChannelLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ChannelDocument, options); } export type ChannelQueryHookResult = ReturnType; export type ChannelLazyQueryHookResult = ReturnType; export type ChannelQueryResult = Apollo.QueryResult; export const CollectionUpdateDocument = gql` mutation CollectionUpdate($id: ID!, $input: CollectionInput!) { collectionUpdate(id: $id, input: $input) { collection { ...CollectionDetails } errors { ...CollectionError } } } ${CollectionDetailsFragmentDoc} ${CollectionErrorFragmentDoc}`; export type CollectionUpdateMutationFn = Apollo.MutationFunction; /** * __useCollectionUpdateMutation__ * * To run a mutation, you first call `useCollectionUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCollectionUpdateMutation` 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 [collectionUpdateMutation, { data, loading, error }] = useCollectionUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useCollectionUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CollectionUpdateDocument, options); } export type CollectionUpdateMutationHookResult = ReturnType; export type CollectionUpdateMutationResult = Apollo.MutationResult; export type CollectionUpdateMutationOptions = Apollo.BaseMutationOptions; export const CollectionAssignProductDocument = gql` mutation CollectionAssignProduct($collectionId: ID!, $productIds: [ID!]!, $first: Int, $after: String, $last: Int, $before: String) { collectionAddProducts(collectionId: $collectionId, products: $productIds) { collection { id products(first: $first, after: $after, before: $before, last: $last) { edges { node { ...CollectionProduct } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } errors { ...CollectionError } } } ${CollectionProductFragmentDoc} ${CollectionErrorFragmentDoc}`; export type CollectionAssignProductMutationFn = Apollo.MutationFunction; /** * __useCollectionAssignProductMutation__ * * To run a mutation, you first call `useCollectionAssignProductMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCollectionAssignProductMutation` 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 [collectionAssignProductMutation, { data, loading, error }] = useCollectionAssignProductMutation({ * variables: { * collectionId: // value for 'collectionId' * productIds: // value for 'productIds' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useCollectionAssignProductMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CollectionAssignProductDocument, options); } export type CollectionAssignProductMutationHookResult = ReturnType; export type CollectionAssignProductMutationResult = Apollo.MutationResult; export type CollectionAssignProductMutationOptions = Apollo.BaseMutationOptions; export const CreateCollectionDocument = gql` mutation CreateCollection($input: CollectionCreateInput!) { collectionCreate(input: $input) { collection { ...CollectionDetails } errors { ...CollectionError } } } ${CollectionDetailsFragmentDoc} ${CollectionErrorFragmentDoc}`; export type CreateCollectionMutationFn = Apollo.MutationFunction; /** * __useCreateCollectionMutation__ * * To run a mutation, you first call `useCreateCollectionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateCollectionMutation` 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 [createCollectionMutation, { data, loading, error }] = useCreateCollectionMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useCreateCollectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CreateCollectionDocument, options); } export type CreateCollectionMutationHookResult = ReturnType; export type CreateCollectionMutationResult = Apollo.MutationResult; export type CreateCollectionMutationOptions = Apollo.BaseMutationOptions; export const RemoveCollectionDocument = gql` mutation RemoveCollection($id: ID!) { collectionDelete(id: $id) { errors { ...CollectionError } } } ${CollectionErrorFragmentDoc}`; export type RemoveCollectionMutationFn = Apollo.MutationFunction; /** * __useRemoveCollectionMutation__ * * To run a mutation, you first call `useRemoveCollectionMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveCollectionMutation` 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 [removeCollectionMutation, { data, loading, error }] = useRemoveCollectionMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useRemoveCollectionMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(RemoveCollectionDocument, options); } export type RemoveCollectionMutationHookResult = ReturnType; export type RemoveCollectionMutationResult = Apollo.MutationResult; export type RemoveCollectionMutationOptions = Apollo.BaseMutationOptions; export const UnassignCollectionProductDocument = gql` mutation UnassignCollectionProduct($collectionId: ID!, $productIds: [ID!]!, $first: Int, $after: String, $last: Int, $before: String) { collectionRemoveProducts(collectionId: $collectionId, products: $productIds) { collection { id products(first: $first, after: $after, before: $before, last: $last) { edges { node { id name productType { id name } thumbnail { url } } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } errors { ...CollectionError } } } ${CollectionErrorFragmentDoc}`; export type UnassignCollectionProductMutationFn = Apollo.MutationFunction; /** * __useUnassignCollectionProductMutation__ * * To run a mutation, you first call `useUnassignCollectionProductMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnassignCollectionProductMutation` 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 [unassignCollectionProductMutation, { data, loading, error }] = useUnassignCollectionProductMutation({ * variables: { * collectionId: // value for 'collectionId' * productIds: // value for 'productIds' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useUnassignCollectionProductMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UnassignCollectionProductDocument, options); } export type UnassignCollectionProductMutationHookResult = ReturnType; export type UnassignCollectionProductMutationResult = Apollo.MutationResult; export type UnassignCollectionProductMutationOptions = Apollo.BaseMutationOptions; export const CollectionBulkDeleteDocument = gql` mutation CollectionBulkDelete($ids: [ID!]!) { collectionBulkDelete(ids: $ids) { errors { ...CollectionError } } } ${CollectionErrorFragmentDoc}`; export type CollectionBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useCollectionBulkDeleteMutation__ * * To run a mutation, you first call `useCollectionBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCollectionBulkDeleteMutation` 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 [collectionBulkDeleteMutation, { data, loading, error }] = useCollectionBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useCollectionBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CollectionBulkDeleteDocument, options); } export type CollectionBulkDeleteMutationHookResult = ReturnType; export type CollectionBulkDeleteMutationResult = Apollo.MutationResult; export type CollectionBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const CollectionChannelListingUpdateDocument = gql` mutation CollectionChannelListingUpdate($id: ID!, $input: CollectionChannelListingUpdateInput!) { collectionChannelListingUpdate(id: $id, input: $input) { errors { ...CollectionChannelListingError } } } ${CollectionChannelListingErrorFragmentDoc}`; export type CollectionChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useCollectionChannelListingUpdateMutation__ * * To run a mutation, you first call `useCollectionChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCollectionChannelListingUpdateMutation` 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 [collectionChannelListingUpdateMutation, { data, loading, error }] = useCollectionChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useCollectionChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CollectionChannelListingUpdateDocument, options); } export type CollectionChannelListingUpdateMutationHookResult = ReturnType; export type CollectionChannelListingUpdateMutationResult = Apollo.MutationResult; export type CollectionChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const CollectionListDocument = gql` query CollectionList($first: Int, $after: String, $last: Int, $before: String, $filter: CollectionFilterInput, $sort: CollectionSortingInput, $channel: String) { collections( first: $first after: $after before: $before last: $last filter: $filter sortBy: $sort channel: $channel ) { edges { node { ...Collection products { totalCount } } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } ${CollectionFragmentDoc}`; /** * __useCollectionListQuery__ * * To run a query within a React component, call `useCollectionListQuery` and pass it any options that fit your needs. * When your component renders, `useCollectionListQuery` 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 } = useCollectionListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * channel: // value for 'channel' * }, * }); */ export function useCollectionListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CollectionListDocument, options); } export function useCollectionListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CollectionListDocument, options); } export type CollectionListQueryHookResult = ReturnType; export type CollectionListLazyQueryHookResult = ReturnType; export type CollectionListQueryResult = Apollo.QueryResult; export const CollectionDetailsDocument = gql` query CollectionDetails($id: ID!, $first: Int, $after: String, $last: Int, $before: String) { collection(id: $id) { ...CollectionDetails products(first: $first, after: $after, before: $before, last: $last) { edges { node { ...CollectionProduct } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } } ${CollectionDetailsFragmentDoc} ${CollectionProductFragmentDoc}`; /** * __useCollectionDetailsQuery__ * * To run a query within a React component, call `useCollectionDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useCollectionDetailsQuery` 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 } = useCollectionDetailsQuery({ * variables: { * id: // value for 'id' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useCollectionDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CollectionDetailsDocument, options); } export function useCollectionDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CollectionDetailsDocument, options); } export type CollectionDetailsQueryHookResult = ReturnType; export type CollectionDetailsLazyQueryHookResult = ReturnType; export type CollectionDetailsQueryResult = Apollo.QueryResult; export const CheckIfOrderExistsDocument = gql` query CheckIfOrderExists($id: ID!) { order(id: $id) { id status } } `; /** * __useCheckIfOrderExistsQuery__ * * To run a query within a React component, call `useCheckIfOrderExistsQuery` and pass it any options that fit your needs. * When your component renders, `useCheckIfOrderExistsQuery` 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 } = useCheckIfOrderExistsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useCheckIfOrderExistsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CheckIfOrderExistsDocument, options); } export function useCheckIfOrderExistsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CheckIfOrderExistsDocument, options); } export type CheckIfOrderExistsQueryHookResult = ReturnType; export type CheckIfOrderExistsLazyQueryHookResult = ReturnType; export type CheckIfOrderExistsQueryResult = Apollo.QueryResult; export const SearchCatalogDocument = gql` query SearchCatalog($first: Int!, $query: String!) { categories(first: $first, filter: {search: $query}) { edges { node { id name } } } collections(first: $first, filter: {search: $query}) { edges { node { ...Collection } } } products(first: $first, filter: {search: $query}) { edges { node { id category { id name } name } } } } ${CollectionFragmentDoc}`; /** * __useSearchCatalogQuery__ * * To run a query within a React component, call `useSearchCatalogQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCatalogQuery` 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 } = useSearchCatalogQuery({ * variables: { * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchCatalogQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchCatalogDocument, options); } export function useSearchCatalogLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchCatalogDocument, options); } export type SearchCatalogQueryHookResult = ReturnType; export type SearchCatalogLazyQueryHookResult = ReturnType; export type SearchCatalogQueryResult = Apollo.QueryResult; export const ShopInfoDocument = gql` query ShopInfo { shop { countries { ...CountryWithCode } defaultCountry { ...CountryWithCode } defaultWeightUnit displayGrossPrices domain { host url } languages { ...Language } includeTaxesInPrices name trackInventoryByDefault permissions { code name } version } } ${CountryWithCodeFragmentDoc} ${LanguageFragmentDoc}`; /** * __useShopInfoQuery__ * * To run a query within a React component, call `useShopInfoQuery` and pass it any options that fit your needs. * When your component renders, `useShopInfoQuery` 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 } = useShopInfoQuery({ * variables: { * }, * }); */ export function useShopInfoQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShopInfoDocument, options); } export function useShopInfoLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShopInfoDocument, options); } export type ShopInfoQueryHookResult = ReturnType; export type ShopInfoLazyQueryHookResult = ReturnType; export type ShopInfoQueryResult = Apollo.QueryResult; export const ShopCountriesDocument = gql` query ShopCountries($filter: CountryFilterInput) { shop { countries(filter: $filter) { code country } } } `; /** * __useShopCountriesQuery__ * * To run a query within a React component, call `useShopCountriesQuery` and pass it any options that fit your needs. * When your component renders, `useShopCountriesQuery` 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 } = useShopCountriesQuery({ * variables: { * filter: // value for 'filter' * }, * }); */ export function useShopCountriesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShopCountriesDocument, options); } export function useShopCountriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShopCountriesDocument, options); } export type ShopCountriesQueryHookResult = ReturnType; export type ShopCountriesLazyQueryHookResult = ReturnType; export type ShopCountriesQueryResult = Apollo.QueryResult; export const RefreshLimitsDocument = gql` query RefreshLimits($channels: Boolean!, $orders: Boolean!, $productVariants: Boolean!, $staffUsers: Boolean!, $warehouses: Boolean!) { shop { ...ShopLimit } } ${ShopLimitFragmentDoc}`; /** * __useRefreshLimitsQuery__ * * To run a query within a React component, call `useRefreshLimitsQuery` and pass it any options that fit your needs. * When your component renders, `useRefreshLimitsQuery` 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 } = useRefreshLimitsQuery({ * variables: { * channels: // value for 'channels' * orders: // value for 'orders' * productVariants: // value for 'productVariants' * staffUsers: // value for 'staffUsers' * warehouses: // value for 'warehouses' * }, * }); */ export function useRefreshLimitsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(RefreshLimitsDocument, options); } export function useRefreshLimitsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(RefreshLimitsDocument, options); } export type RefreshLimitsQueryHookResult = ReturnType; export type RefreshLimitsLazyQueryHookResult = ReturnType; export type RefreshLimitsQueryResult = Apollo.QueryResult; export const CheckExportFileStatusDocument = gql` query CheckExportFileStatus($id: ID!) { exportFile(id: $id) { id status } } `; /** * __useCheckExportFileStatusQuery__ * * To run a query within a React component, call `useCheckExportFileStatusQuery` and pass it any options that fit your needs. * When your component renders, `useCheckExportFileStatusQuery` 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 } = useCheckExportFileStatusQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useCheckExportFileStatusQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CheckExportFileStatusDocument, options); } export function useCheckExportFileStatusLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CheckExportFileStatusDocument, options); } export type CheckExportFileStatusQueryHookResult = ReturnType; export type CheckExportFileStatusLazyQueryHookResult = ReturnType; export type CheckExportFileStatusQueryResult = Apollo.QueryResult; export const CheckOrderInvoicesStatusDocument = gql` query CheckOrderInvoicesStatus($id: ID!) { order(id: $id) { id invoices { ...Invoice } } } ${InvoiceFragmentDoc}`; /** * __useCheckOrderInvoicesStatusQuery__ * * To run a query within a React component, call `useCheckOrderInvoicesStatusQuery` and pass it any options that fit your needs. * When your component renders, `useCheckOrderInvoicesStatusQuery` 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 } = useCheckOrderInvoicesStatusQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useCheckOrderInvoicesStatusQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CheckOrderInvoicesStatusDocument, options); } export function useCheckOrderInvoicesStatusLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CheckOrderInvoicesStatusDocument, options); } export type CheckOrderInvoicesStatusQueryHookResult = ReturnType; export type CheckOrderInvoicesStatusLazyQueryHookResult = ReturnType; export type CheckOrderInvoicesStatusQueryResult = Apollo.QueryResult; export const UpdateCustomerDocument = gql` mutation UpdateCustomer($id: ID!, $input: CustomerInput!) { customerUpdate(id: $id, input: $input) { errors { ...AccountError } user { ...CustomerDetails } } } ${AccountErrorFragmentDoc} ${CustomerDetailsFragmentDoc}`; export type UpdateCustomerMutationFn = Apollo.MutationFunction; /** * __useUpdateCustomerMutation__ * * To run a mutation, you first call `useUpdateCustomerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCustomerMutation` 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 [updateCustomerMutation, { data, loading, error }] = useUpdateCustomerMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useUpdateCustomerMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateCustomerDocument, options); } export type UpdateCustomerMutationHookResult = ReturnType; export type UpdateCustomerMutationResult = Apollo.MutationResult; export type UpdateCustomerMutationOptions = Apollo.BaseMutationOptions; export const CreateCustomerDocument = gql` mutation CreateCustomer($input: UserCreateInput!) { customerCreate(input: $input) { errors { ...AccountError } user { id } } } ${AccountErrorFragmentDoc}`; export type CreateCustomerMutationFn = Apollo.MutationFunction; /** * __useCreateCustomerMutation__ * * To run a mutation, you first call `useCreateCustomerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateCustomerMutation` 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 [createCustomerMutation, { data, loading, error }] = useCreateCustomerMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useCreateCustomerMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CreateCustomerDocument, options); } export type CreateCustomerMutationHookResult = ReturnType; export type CreateCustomerMutationResult = Apollo.MutationResult; export type CreateCustomerMutationOptions = Apollo.BaseMutationOptions; export const RemoveCustomerDocument = gql` mutation RemoveCustomer($id: ID!) { customerDelete(id: $id) { errors { ...AccountError } } } ${AccountErrorFragmentDoc}`; export type RemoveCustomerMutationFn = Apollo.MutationFunction; /** * __useRemoveCustomerMutation__ * * To run a mutation, you first call `useRemoveCustomerMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveCustomerMutation` 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 [removeCustomerMutation, { data, loading, error }] = useRemoveCustomerMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useRemoveCustomerMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(RemoveCustomerDocument, options); } export type RemoveCustomerMutationHookResult = ReturnType; export type RemoveCustomerMutationResult = Apollo.MutationResult; export type RemoveCustomerMutationOptions = Apollo.BaseMutationOptions; export const SetCustomerDefaultAddressDocument = gql` mutation SetCustomerDefaultAddress($addressId: ID!, $userId: ID!, $type: AddressTypeEnum!) { addressSetDefault(addressId: $addressId, userId: $userId, type: $type) { errors { ...AccountError } user { ...CustomerAddresses } } } ${AccountErrorFragmentDoc} ${CustomerAddressesFragmentDoc}`; export type SetCustomerDefaultAddressMutationFn = Apollo.MutationFunction; /** * __useSetCustomerDefaultAddressMutation__ * * To run a mutation, you first call `useSetCustomerDefaultAddressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSetCustomerDefaultAddressMutation` 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 [setCustomerDefaultAddressMutation, { data, loading, error }] = useSetCustomerDefaultAddressMutation({ * variables: { * addressId: // value for 'addressId' * userId: // value for 'userId' * type: // value for 'type' * }, * }); */ export function useSetCustomerDefaultAddressMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SetCustomerDefaultAddressDocument, options); } export type SetCustomerDefaultAddressMutationHookResult = ReturnType; export type SetCustomerDefaultAddressMutationResult = Apollo.MutationResult; export type SetCustomerDefaultAddressMutationOptions = Apollo.BaseMutationOptions; export const CreateCustomerAddressDocument = gql` mutation CreateCustomerAddress($id: ID!, $input: AddressInput!) { addressCreate(userId: $id, input: $input) { errors { ...AccountError } address { ...Address } user { ...CustomerAddresses } } } ${AccountErrorFragmentDoc} ${AddressFragmentDoc} ${CustomerAddressesFragmentDoc}`; export type CreateCustomerAddressMutationFn = Apollo.MutationFunction; /** * __useCreateCustomerAddressMutation__ * * To run a mutation, you first call `useCreateCustomerAddressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateCustomerAddressMutation` 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 [createCustomerAddressMutation, { data, loading, error }] = useCreateCustomerAddressMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useCreateCustomerAddressMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CreateCustomerAddressDocument, options); } export type CreateCustomerAddressMutationHookResult = ReturnType; export type CreateCustomerAddressMutationResult = Apollo.MutationResult; export type CreateCustomerAddressMutationOptions = Apollo.BaseMutationOptions; export const UpdateCustomerAddressDocument = gql` mutation UpdateCustomerAddress($id: ID!, $input: AddressInput!) { addressUpdate(id: $id, input: $input) { errors { ...AccountError } address { ...Address } } } ${AccountErrorFragmentDoc} ${AddressFragmentDoc}`; export type UpdateCustomerAddressMutationFn = Apollo.MutationFunction; /** * __useUpdateCustomerAddressMutation__ * * To run a mutation, you first call `useUpdateCustomerAddressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCustomerAddressMutation` 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 [updateCustomerAddressMutation, { data, loading, error }] = useUpdateCustomerAddressMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useUpdateCustomerAddressMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateCustomerAddressDocument, options); } export type UpdateCustomerAddressMutationHookResult = ReturnType; export type UpdateCustomerAddressMutationResult = Apollo.MutationResult; export type UpdateCustomerAddressMutationOptions = Apollo.BaseMutationOptions; export const RemoveCustomerAddressDocument = gql` mutation RemoveCustomerAddress($id: ID!) { addressDelete(id: $id) { errors { ...AccountError } user { ...CustomerAddresses } } } ${AccountErrorFragmentDoc} ${CustomerAddressesFragmentDoc}`; export type RemoveCustomerAddressMutationFn = Apollo.MutationFunction; /** * __useRemoveCustomerAddressMutation__ * * To run a mutation, you first call `useRemoveCustomerAddressMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useRemoveCustomerAddressMutation` 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 [removeCustomerAddressMutation, { data, loading, error }] = useRemoveCustomerAddressMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useRemoveCustomerAddressMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(RemoveCustomerAddressDocument, options); } export type RemoveCustomerAddressMutationHookResult = ReturnType; export type RemoveCustomerAddressMutationResult = Apollo.MutationResult; export type RemoveCustomerAddressMutationOptions = Apollo.BaseMutationOptions; export const BulkRemoveCustomersDocument = gql` mutation BulkRemoveCustomers($ids: [ID!]!) { customerBulkDelete(ids: $ids) { errors { ...AccountError } } } ${AccountErrorFragmentDoc}`; export type BulkRemoveCustomersMutationFn = Apollo.MutationFunction; /** * __useBulkRemoveCustomersMutation__ * * To run a mutation, you first call `useBulkRemoveCustomersMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useBulkRemoveCustomersMutation` 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 [bulkRemoveCustomersMutation, { data, loading, error }] = useBulkRemoveCustomersMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useBulkRemoveCustomersMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(BulkRemoveCustomersDocument, options); } export type BulkRemoveCustomersMutationHookResult = ReturnType; export type BulkRemoveCustomersMutationResult = Apollo.MutationResult; export type BulkRemoveCustomersMutationOptions = Apollo.BaseMutationOptions; export const ListCustomersDocument = gql` query ListCustomers($after: String, $before: String, $first: Int, $last: Int, $filter: CustomerFilterInput, $sort: UserSortingInput, $PERMISSION_MANAGE_ORDERS: Boolean!) { customers( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...Customer orders @include(if: $PERMISSION_MANAGE_ORDERS) { totalCount } } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } ${CustomerFragmentDoc}`; /** * __useListCustomersQuery__ * * To run a query within a React component, call `useListCustomersQuery` and pass it any options that fit your needs. * When your component renders, `useListCustomersQuery` 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 } = useListCustomersQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * PERMISSION_MANAGE_ORDERS: // value for 'PERMISSION_MANAGE_ORDERS' * }, * }); */ export function useListCustomersQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ListCustomersDocument, options); } export function useListCustomersLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ListCustomersDocument, options); } export type ListCustomersQueryHookResult = ReturnType; export type ListCustomersLazyQueryHookResult = ReturnType; export type ListCustomersQueryResult = Apollo.QueryResult; export const CustomerDetailsDocument = gql` query CustomerDetails($id: ID!, $PERMISSION_MANAGE_ORDERS: Boolean!) { user(id: $id) { ...CustomerDetails orders(last: 5) @include(if: $PERMISSION_MANAGE_ORDERS) { edges { node { id created number paymentStatus total { gross { currency amount } } } } } lastPlacedOrder: orders(last: 1) @include(if: $PERMISSION_MANAGE_ORDERS) { edges { node { id created } } } } } ${CustomerDetailsFragmentDoc}`; /** * __useCustomerDetailsQuery__ * * To run a query within a React component, call `useCustomerDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useCustomerDetailsQuery` 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 } = useCustomerDetailsQuery({ * variables: { * id: // value for 'id' * PERMISSION_MANAGE_ORDERS: // value for 'PERMISSION_MANAGE_ORDERS' * }, * }); */ export function useCustomerDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CustomerDetailsDocument, options); } export function useCustomerDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CustomerDetailsDocument, options); } export type CustomerDetailsQueryHookResult = ReturnType; export type CustomerDetailsLazyQueryHookResult = ReturnType; export type CustomerDetailsQueryResult = Apollo.QueryResult; export const CustomerAddressesDocument = gql` query CustomerAddresses($id: ID!) { user(id: $id) { ...CustomerAddresses } } ${CustomerAddressesFragmentDoc}`; /** * __useCustomerAddressesQuery__ * * To run a query within a React component, call `useCustomerAddressesQuery` and pass it any options that fit your needs. * When your component renders, `useCustomerAddressesQuery` 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 } = useCustomerAddressesQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useCustomerAddressesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CustomerAddressesDocument, options); } export function useCustomerAddressesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CustomerAddressesDocument, options); } export type CustomerAddressesQueryHookResult = ReturnType; export type CustomerAddressesLazyQueryHookResult = ReturnType; export type CustomerAddressesQueryResult = Apollo.QueryResult; export const CustomerCreateDataDocument = gql` query CustomerCreateData { shop { countries { code country } } } `; /** * __useCustomerCreateDataQuery__ * * To run a query within a React component, call `useCustomerCreateDataQuery` and pass it any options that fit your needs. * When your component renders, `useCustomerCreateDataQuery` 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 } = useCustomerCreateDataQuery({ * variables: { * }, * }); */ export function useCustomerCreateDataQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CustomerCreateDataDocument, options); } export function useCustomerCreateDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CustomerCreateDataDocument, options); } export type CustomerCreateDataQueryHookResult = ReturnType; export type CustomerCreateDataLazyQueryHookResult = ReturnType; export type CustomerCreateDataQueryResult = Apollo.QueryResult; export const SaleUpdateDocument = gql` mutation SaleUpdate($input: SaleInput!, $id: ID!, $channelInput: SaleChannelListingInput!) { saleUpdate(id: $id, input: $input) { errors { ...DiscountError } } saleChannelListingUpdate(id: $id, input: $channelInput) { errors { ...DiscountError } sale { ...Sale } } } ${DiscountErrorFragmentDoc} ${SaleFragmentDoc}`; export type SaleUpdateMutationFn = Apollo.MutationFunction; /** * __useSaleUpdateMutation__ * * To run a mutation, you first call `useSaleUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleUpdateMutation` 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 [saleUpdateMutation, { data, loading, error }] = useSaleUpdateMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * channelInput: // value for 'channelInput' * }, * }); */ export function useSaleUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleUpdateDocument, options); } export type SaleUpdateMutationHookResult = ReturnType; export type SaleUpdateMutationResult = Apollo.MutationResult; export type SaleUpdateMutationOptions = Apollo.BaseMutationOptions; export const SaleCataloguesAddDocument = gql` mutation SaleCataloguesAdd($input: CatalogueInput!, $id: ID!, $after: String, $before: String, $first: Int, $last: Int) { saleCataloguesAdd(id: $id, input: $input) { errors { ...DiscountError } sale { ...SaleDetails } } } ${DiscountErrorFragmentDoc} ${SaleDetailsFragmentDoc}`; export type SaleCataloguesAddMutationFn = Apollo.MutationFunction; /** * __useSaleCataloguesAddMutation__ * * To run a mutation, you first call `useSaleCataloguesAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleCataloguesAddMutation` 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 [saleCataloguesAddMutation, { data, loading, error }] = useSaleCataloguesAddMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useSaleCataloguesAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleCataloguesAddDocument, options); } export type SaleCataloguesAddMutationHookResult = ReturnType; export type SaleCataloguesAddMutationResult = Apollo.MutationResult; export type SaleCataloguesAddMutationOptions = Apollo.BaseMutationOptions; export const SaleCataloguesRemoveDocument = gql` mutation SaleCataloguesRemove($input: CatalogueInput!, $id: ID!, $after: String, $before: String, $first: Int, $last: Int) { saleCataloguesRemove(id: $id, input: $input) { errors { ...DiscountError } sale { ...SaleDetails } } } ${DiscountErrorFragmentDoc} ${SaleDetailsFragmentDoc}`; export type SaleCataloguesRemoveMutationFn = Apollo.MutationFunction; /** * __useSaleCataloguesRemoveMutation__ * * To run a mutation, you first call `useSaleCataloguesRemoveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleCataloguesRemoveMutation` 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 [saleCataloguesRemoveMutation, { data, loading, error }] = useSaleCataloguesRemoveMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useSaleCataloguesRemoveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleCataloguesRemoveDocument, options); } export type SaleCataloguesRemoveMutationHookResult = ReturnType; export type SaleCataloguesRemoveMutationResult = Apollo.MutationResult; export type SaleCataloguesRemoveMutationOptions = Apollo.BaseMutationOptions; export const SaleCreateDocument = gql` mutation SaleCreate($input: SaleInput!) { saleCreate(input: $input) { errors { ...DiscountError } sale { ...Sale } } } ${DiscountErrorFragmentDoc} ${SaleFragmentDoc}`; export type SaleCreateMutationFn = Apollo.MutationFunction; /** * __useSaleCreateMutation__ * * To run a mutation, you first call `useSaleCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleCreateMutation` 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 [saleCreateMutation, { data, loading, error }] = useSaleCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useSaleCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleCreateDocument, options); } export type SaleCreateMutationHookResult = ReturnType; export type SaleCreateMutationResult = Apollo.MutationResult; export type SaleCreateMutationOptions = Apollo.BaseMutationOptions; export const SaleDeleteDocument = gql` mutation SaleDelete($id: ID!) { saleDelete(id: $id) { errors { ...DiscountError } } } ${DiscountErrorFragmentDoc}`; export type SaleDeleteMutationFn = Apollo.MutationFunction; /** * __useSaleDeleteMutation__ * * To run a mutation, you first call `useSaleDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleDeleteMutation` 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 [saleDeleteMutation, { data, loading, error }] = useSaleDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useSaleDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleDeleteDocument, options); } export type SaleDeleteMutationHookResult = ReturnType; export type SaleDeleteMutationResult = Apollo.MutationResult; export type SaleDeleteMutationOptions = Apollo.BaseMutationOptions; export const SaleBulkDeleteDocument = gql` mutation SaleBulkDelete($ids: [ID!]!) { saleBulkDelete(ids: $ids) { errors { ...SaleBulkDeleteError } } } ${SaleBulkDeleteErrorFragmentDoc}`; export type SaleBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useSaleBulkDeleteMutation__ * * To run a mutation, you first call `useSaleBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleBulkDeleteMutation` 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 [saleBulkDeleteMutation, { data, loading, error }] = useSaleBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useSaleBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleBulkDeleteDocument, options); } export type SaleBulkDeleteMutationHookResult = ReturnType; export type SaleBulkDeleteMutationResult = Apollo.MutationResult; export type SaleBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const SaleChannelListingUpdateDocument = gql` mutation SaleChannelListingUpdate($id: ID!, $input: SaleChannelListingInput!) { saleChannelListingUpdate(id: $id, input: $input) { errors { ...DiscountError } sale { ...Sale } } } ${DiscountErrorFragmentDoc} ${SaleFragmentDoc}`; export type SaleChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useSaleChannelListingUpdateMutation__ * * To run a mutation, you first call `useSaleChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSaleChannelListingUpdateMutation` 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 [saleChannelListingUpdateMutation, { data, loading, error }] = useSaleChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useSaleChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SaleChannelListingUpdateDocument, options); } export type SaleChannelListingUpdateMutationHookResult = ReturnType; export type SaleChannelListingUpdateMutationResult = Apollo.MutationResult; export type SaleChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const VoucherChannelListingUpdateDocument = gql` mutation VoucherChannelListingUpdate($id: ID!, $input: VoucherChannelListingInput!) { voucherChannelListingUpdate(id: $id, input: $input) { errors { ...DiscountError } voucher { ...Voucher } } } ${DiscountErrorFragmentDoc} ${VoucherFragmentDoc}`; export type VoucherChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useVoucherChannelListingUpdateMutation__ * * To run a mutation, you first call `useVoucherChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherChannelListingUpdateMutation` 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 [voucherChannelListingUpdateMutation, { data, loading, error }] = useVoucherChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useVoucherChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherChannelListingUpdateDocument, options); } export type VoucherChannelListingUpdateMutationHookResult = ReturnType; export type VoucherChannelListingUpdateMutationResult = Apollo.MutationResult; export type VoucherChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const VoucherUpdateDocument = gql` mutation VoucherUpdate($input: VoucherInput!, $id: ID!) { voucherUpdate(id: $id, input: $input) { errors { ...DiscountError } voucher { ...Voucher } } } ${DiscountErrorFragmentDoc} ${VoucherFragmentDoc}`; export type VoucherUpdateMutationFn = Apollo.MutationFunction; /** * __useVoucherUpdateMutation__ * * To run a mutation, you first call `useVoucherUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherUpdateMutation` 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 [voucherUpdateMutation, { data, loading, error }] = useVoucherUpdateMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * }, * }); */ export function useVoucherUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherUpdateDocument, options); } export type VoucherUpdateMutationHookResult = ReturnType; export type VoucherUpdateMutationResult = Apollo.MutationResult; export type VoucherUpdateMutationOptions = Apollo.BaseMutationOptions; export const VoucherCataloguesAddDocument = gql` mutation VoucherCataloguesAdd($input: CatalogueInput!, $id: ID!, $after: String, $before: String, $first: Int, $last: Int) { voucherCataloguesAdd(id: $id, input: $input) { errors { ...DiscountError } voucher { ...VoucherDetails } } } ${DiscountErrorFragmentDoc} ${VoucherDetailsFragmentDoc}`; export type VoucherCataloguesAddMutationFn = Apollo.MutationFunction; /** * __useVoucherCataloguesAddMutation__ * * To run a mutation, you first call `useVoucherCataloguesAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherCataloguesAddMutation` 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 [voucherCataloguesAddMutation, { data, loading, error }] = useVoucherCataloguesAddMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useVoucherCataloguesAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherCataloguesAddDocument, options); } export type VoucherCataloguesAddMutationHookResult = ReturnType; export type VoucherCataloguesAddMutationResult = Apollo.MutationResult; export type VoucherCataloguesAddMutationOptions = Apollo.BaseMutationOptions; export const VoucherCataloguesRemoveDocument = gql` mutation VoucherCataloguesRemove($input: CatalogueInput!, $id: ID!, $after: String, $before: String, $first: Int, $last: Int) { voucherCataloguesRemove(id: $id, input: $input) { errors { ...DiscountError } voucher { ...VoucherDetails } } } ${DiscountErrorFragmentDoc} ${VoucherDetailsFragmentDoc}`; export type VoucherCataloguesRemoveMutationFn = Apollo.MutationFunction; /** * __useVoucherCataloguesRemoveMutation__ * * To run a mutation, you first call `useVoucherCataloguesRemoveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherCataloguesRemoveMutation` 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 [voucherCataloguesRemoveMutation, { data, loading, error }] = useVoucherCataloguesRemoveMutation({ * variables: { * input: // value for 'input' * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useVoucherCataloguesRemoveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherCataloguesRemoveDocument, options); } export type VoucherCataloguesRemoveMutationHookResult = ReturnType; export type VoucherCataloguesRemoveMutationResult = Apollo.MutationResult; export type VoucherCataloguesRemoveMutationOptions = Apollo.BaseMutationOptions; export const VoucherCreateDocument = gql` mutation VoucherCreate($input: VoucherInput!) { voucherCreate(input: $input) { errors { ...DiscountError } voucher { ...Voucher } } } ${DiscountErrorFragmentDoc} ${VoucherFragmentDoc}`; export type VoucherCreateMutationFn = Apollo.MutationFunction; /** * __useVoucherCreateMutation__ * * To run a mutation, you first call `useVoucherCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherCreateMutation` 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 [voucherCreateMutation, { data, loading, error }] = useVoucherCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useVoucherCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherCreateDocument, options); } export type VoucherCreateMutationHookResult = ReturnType; export type VoucherCreateMutationResult = Apollo.MutationResult; export type VoucherCreateMutationOptions = Apollo.BaseMutationOptions; export const VoucherDeleteDocument = gql` mutation VoucherDelete($id: ID!) { voucherDelete(id: $id) { errors { ...DiscountError } } } ${DiscountErrorFragmentDoc}`; export type VoucherDeleteMutationFn = Apollo.MutationFunction; /** * __useVoucherDeleteMutation__ * * To run a mutation, you first call `useVoucherDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherDeleteMutation` 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 [voucherDeleteMutation, { data, loading, error }] = useVoucherDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useVoucherDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherDeleteDocument, options); } export type VoucherDeleteMutationHookResult = ReturnType; export type VoucherDeleteMutationResult = Apollo.MutationResult; export type VoucherDeleteMutationOptions = Apollo.BaseMutationOptions; export const VoucherBulkDeleteDocument = gql` mutation VoucherBulkDelete($ids: [ID!]!) { voucherBulkDelete(ids: $ids) { errors { ...VoucherBulkDeleteError } } } ${VoucherBulkDeleteErrorFragmentDoc}`; export type VoucherBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useVoucherBulkDeleteMutation__ * * To run a mutation, you first call `useVoucherBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVoucherBulkDeleteMutation` 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 [voucherBulkDeleteMutation, { data, loading, error }] = useVoucherBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useVoucherBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VoucherBulkDeleteDocument, options); } export type VoucherBulkDeleteMutationHookResult = ReturnType; export type VoucherBulkDeleteMutationResult = Apollo.MutationResult; export type VoucherBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const SaleListDocument = gql` query SaleList($after: String, $before: String, $first: Int, $last: Int, $filter: SaleFilterInput, $sort: SaleSortingInput, $channel: String) { sales( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort channel: $channel ) { edges { node { ...Sale } } pageInfo { ...PageInfo } } } ${SaleFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useSaleListQuery__ * * To run a query within a React component, call `useSaleListQuery` and pass it any options that fit your needs. * When your component renders, `useSaleListQuery` 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 } = useSaleListQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * channel: // value for 'channel' * }, * }); */ export function useSaleListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SaleListDocument, options); } export function useSaleListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SaleListDocument, options); } export type SaleListQueryHookResult = ReturnType; export type SaleListLazyQueryHookResult = ReturnType; export type SaleListQueryResult = Apollo.QueryResult; export const VoucherListDocument = gql` query VoucherList($after: String, $before: String, $first: Int, $last: Int, $filter: VoucherFilterInput, $sort: VoucherSortingInput, $channel: String) { vouchers( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort channel: $channel ) { edges { node { ...Voucher } } pageInfo { ...PageInfo } } } ${VoucherFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useVoucherListQuery__ * * To run a query within a React component, call `useVoucherListQuery` and pass it any options that fit your needs. * When your component renders, `useVoucherListQuery` 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 } = useVoucherListQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * channel: // value for 'channel' * }, * }); */ export function useVoucherListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(VoucherListDocument, options); } export function useVoucherListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(VoucherListDocument, options); } export type VoucherListQueryHookResult = ReturnType; export type VoucherListLazyQueryHookResult = ReturnType; export type VoucherListQueryResult = Apollo.QueryResult; export const SaleDetailsDocument = gql` query SaleDetails($id: ID!, $after: String, $before: String, $first: Int, $last: Int) { sale(id: $id) { ...SaleDetails } } ${SaleDetailsFragmentDoc}`; /** * __useSaleDetailsQuery__ * * To run a query within a React component, call `useSaleDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useSaleDetailsQuery` 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 } = useSaleDetailsQuery({ * variables: { * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useSaleDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SaleDetailsDocument, options); } export function useSaleDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SaleDetailsDocument, options); } export type SaleDetailsQueryHookResult = ReturnType; export type SaleDetailsLazyQueryHookResult = ReturnType; export type SaleDetailsQueryResult = Apollo.QueryResult; export const VoucherDetailsDocument = gql` query VoucherDetails($id: ID!, $after: String, $before: String, $first: Int, $last: Int) { voucher(id: $id) { ...VoucherDetails } } ${VoucherDetailsFragmentDoc}`; /** * __useVoucherDetailsQuery__ * * To run a query within a React component, call `useVoucherDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useVoucherDetailsQuery` 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 } = useVoucherDetailsQuery({ * variables: { * id: // value for 'id' * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useVoucherDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(VoucherDetailsDocument, options); } export function useVoucherDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(VoucherDetailsDocument, options); } export type VoucherDetailsQueryHookResult = ReturnType; export type VoucherDetailsLazyQueryHookResult = ReturnType; export type VoucherDetailsQueryResult = Apollo.QueryResult; export const FileUploadDocument = gql` mutation FileUpload($file: Upload!) { fileUpload(file: $file) { uploadedFile { ...File } errors { ...UploadError } } } ${FileFragmentDoc} ${UploadErrorFragmentDoc}`; export type FileUploadMutationFn = Apollo.MutationFunction; /** * __useFileUploadMutation__ * * To run a mutation, you first call `useFileUploadMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useFileUploadMutation` 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 [fileUploadMutation, { data, loading, error }] = useFileUploadMutation({ * variables: { * file: // value for 'file' * }, * }); */ export function useFileUploadMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(FileUploadDocument, options); } export type FileUploadMutationHookResult = ReturnType; export type FileUploadMutationResult = Apollo.MutationResult; export type FileUploadMutationOptions = Apollo.BaseMutationOptions; export const GiftCardBulkCreateDocument = gql` mutation GiftCardBulkCreate($input: GiftCardBulkCreateInput!) { giftCardBulkCreate(input: $input) { giftCards { id } errors { ...GiftCardBulkCreateErrorFragment } } } ${GiftCardBulkCreateErrorFragmentFragmentDoc}`; export type GiftCardBulkCreateMutationFn = Apollo.MutationFunction; /** * __useGiftCardBulkCreateMutation__ * * To run a mutation, you first call `useGiftCardBulkCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardBulkCreateMutation` 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 [giftCardBulkCreateMutation, { data, loading, error }] = useGiftCardBulkCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useGiftCardBulkCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardBulkCreateDocument, options); } export type GiftCardBulkCreateMutationHookResult = ReturnType; export type GiftCardBulkCreateMutationResult = Apollo.MutationResult; export type GiftCardBulkCreateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardCreateDocument = gql` mutation GiftCardCreate($input: GiftCardCreateInput!) { giftCardCreate(input: $input) { giftCard { code } errors { ...GiftCardCreateErrorFragment } } } ${GiftCardCreateErrorFragmentFragmentDoc}`; export type GiftCardCreateMutationFn = Apollo.MutationFunction; /** * __useGiftCardCreateMutation__ * * To run a mutation, you first call `useGiftCardCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardCreateMutation` 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 [giftCardCreateMutation, { data, loading, error }] = useGiftCardCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useGiftCardCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardCreateDocument, options); } export type GiftCardCreateMutationHookResult = ReturnType; export type GiftCardCreateMutationResult = Apollo.MutationResult; export type GiftCardCreateMutationOptions = Apollo.BaseMutationOptions; export const ChannelCurrenciesDocument = gql` query ChannelCurrencies { shop { channelCurrencies } } `; /** * __useChannelCurrenciesQuery__ * * To run a query within a React component, call `useChannelCurrenciesQuery` and pass it any options that fit your needs. * When your component renders, `useChannelCurrenciesQuery` 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 } = useChannelCurrenciesQuery({ * variables: { * }, * }); */ export function useChannelCurrenciesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ChannelCurrenciesDocument, options); } export function useChannelCurrenciesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ChannelCurrenciesDocument, options); } export type ChannelCurrenciesQueryHookResult = ReturnType; export type ChannelCurrenciesLazyQueryHookResult = ReturnType; export type ChannelCurrenciesQueryResult = Apollo.QueryResult; export const ExportGiftCardsDocument = gql` mutation ExportGiftCards($input: ExportGiftCardsInput!) { exportGiftCards(input: $input) { errors { ...ExportError } exportFile { id } } } ${ExportErrorFragmentDoc}`; export type ExportGiftCardsMutationFn = Apollo.MutationFunction; /** * __useExportGiftCardsMutation__ * * To run a mutation, you first call `useExportGiftCardsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useExportGiftCardsMutation` 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 [exportGiftCardsMutation, { data, loading, error }] = useExportGiftCardsMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useExportGiftCardsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ExportGiftCardsDocument, options); } export type ExportGiftCardsMutationHookResult = ReturnType; export type ExportGiftCardsMutationResult = Apollo.MutationResult; export type ExportGiftCardsMutationOptions = Apollo.BaseMutationOptions; export const GiftCardSettingsUpdateDocument = gql` mutation GiftCardSettingsUpdate($input: GiftCardSettingsUpdateInput!) { giftCardSettingsUpdate(input: $input) { errors { ...GiftCardSettingsError } giftCardSettings { ...GiftCardsSettings } } } ${GiftCardSettingsErrorFragmentDoc} ${GiftCardsSettingsFragmentDoc}`; export type GiftCardSettingsUpdateMutationFn = Apollo.MutationFunction; /** * __useGiftCardSettingsUpdateMutation__ * * To run a mutation, you first call `useGiftCardSettingsUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardSettingsUpdateMutation` 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 [giftCardSettingsUpdateMutation, { data, loading, error }] = useGiftCardSettingsUpdateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useGiftCardSettingsUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardSettingsUpdateDocument, options); } export type GiftCardSettingsUpdateMutationHookResult = ReturnType; export type GiftCardSettingsUpdateMutationResult = Apollo.MutationResult; export type GiftCardSettingsUpdateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardSettingsDocument = gql` query GiftCardSettings { giftCardSettings { ...GiftCardsSettings } } ${GiftCardsSettingsFragmentDoc}`; /** * __useGiftCardSettingsQuery__ * * To run a query within a React component, call `useGiftCardSettingsQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardSettingsQuery` 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 } = useGiftCardSettingsQuery({ * variables: { * }, * }); */ export function useGiftCardSettingsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardSettingsDocument, options); } export function useGiftCardSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardSettingsDocument, options); } export type GiftCardSettingsQueryHookResult = ReturnType; export type GiftCardSettingsLazyQueryHookResult = ReturnType; export type GiftCardSettingsQueryResult = Apollo.QueryResult; export const GiftCardResendDocument = gql` mutation GiftCardResend($input: GiftCardResendInput!) { giftCardResend(input: $input) { errors { ...GiftCardError } giftCard { ...GiftCardData } } } ${GiftCardErrorFragmentDoc} ${GiftCardDataFragmentDoc}`; export type GiftCardResendMutationFn = Apollo.MutationFunction; /** * __useGiftCardResendMutation__ * * To run a mutation, you first call `useGiftCardResendMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardResendMutation` 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 [giftCardResendMutation, { data, loading, error }] = useGiftCardResendMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useGiftCardResendMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardResendDocument, options); } export type GiftCardResendMutationHookResult = ReturnType; export type GiftCardResendMutationResult = Apollo.MutationResult; export type GiftCardResendMutationOptions = Apollo.BaseMutationOptions; export const GiftCardActivateDocument = gql` mutation GiftCardActivate($id: ID!) { giftCardActivate(id: $id) { errors { ...GiftCardError } giftCard { ...GiftCardData } } } ${GiftCardErrorFragmentDoc} ${GiftCardDataFragmentDoc}`; export type GiftCardActivateMutationFn = Apollo.MutationFunction; /** * __useGiftCardActivateMutation__ * * To run a mutation, you first call `useGiftCardActivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardActivateMutation` 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 [giftCardActivateMutation, { data, loading, error }] = useGiftCardActivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useGiftCardActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardActivateDocument, options); } export type GiftCardActivateMutationHookResult = ReturnType; export type GiftCardActivateMutationResult = Apollo.MutationResult; export type GiftCardActivateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardDeactivateDocument = gql` mutation GiftCardDeactivate($id: ID!) { giftCardDeactivate(id: $id) { errors { ...GiftCardError } giftCard { ...GiftCardData } } } ${GiftCardErrorFragmentDoc} ${GiftCardDataFragmentDoc}`; export type GiftCardDeactivateMutationFn = Apollo.MutationFunction; /** * __useGiftCardDeactivateMutation__ * * To run a mutation, you first call `useGiftCardDeactivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardDeactivateMutation` 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 [giftCardDeactivateMutation, { data, loading, error }] = useGiftCardDeactivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useGiftCardDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardDeactivateDocument, options); } export type GiftCardDeactivateMutationHookResult = ReturnType; export type GiftCardDeactivateMutationResult = Apollo.MutationResult; export type GiftCardDeactivateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardUpdateDocument = gql` mutation GiftCardUpdate($id: ID!, $input: GiftCardUpdateInput!) { giftCardUpdate(id: $id, input: $input) { errors { ...GiftCardError } giftCard { ...GiftCardData events { ...GiftCardEvent } } } } ${GiftCardErrorFragmentDoc} ${GiftCardDataFragmentDoc} ${GiftCardEventFragmentDoc}`; export type GiftCardUpdateMutationFn = Apollo.MutationFunction; /** * __useGiftCardUpdateMutation__ * * To run a mutation, you first call `useGiftCardUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardUpdateMutation` 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 [giftCardUpdateMutation, { data, loading, error }] = useGiftCardUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useGiftCardUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardUpdateDocument, options); } export type GiftCardUpdateMutationHookResult = ReturnType; export type GiftCardUpdateMutationResult = Apollo.MutationResult; export type GiftCardUpdateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardAddNoteDocument = gql` mutation GiftCardAddNote($id: ID!, $input: GiftCardAddNoteInput!) { giftCardAddNote(id: $id, input: $input) { errors { ...GiftCardError } giftCard { ...GiftCardData } event { ...GiftCardEvent } } } ${GiftCardErrorFragmentDoc} ${GiftCardDataFragmentDoc} ${GiftCardEventFragmentDoc}`; export type GiftCardAddNoteMutationFn = Apollo.MutationFunction; /** * __useGiftCardAddNoteMutation__ * * To run a mutation, you first call `useGiftCardAddNoteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardAddNoteMutation` 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 [giftCardAddNoteMutation, { data, loading, error }] = useGiftCardAddNoteMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useGiftCardAddNoteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardAddNoteDocument, options); } export type GiftCardAddNoteMutationHookResult = ReturnType; export type GiftCardAddNoteMutationResult = Apollo.MutationResult; export type GiftCardAddNoteMutationOptions = Apollo.BaseMutationOptions; export const GiftCardDetailsDocument = gql` query GiftCardDetails($id: ID!) { giftCard(id: $id) { ...GiftCardData events { ...GiftCardEvent } } } ${GiftCardDataFragmentDoc} ${GiftCardEventFragmentDoc}`; /** * __useGiftCardDetailsQuery__ * * To run a query within a React component, call `useGiftCardDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardDetailsQuery` 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 } = useGiftCardDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useGiftCardDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardDetailsDocument, options); } export function useGiftCardDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardDetailsDocument, options); } export type GiftCardDetailsQueryHookResult = ReturnType; export type GiftCardDetailsLazyQueryHookResult = ReturnType; export type GiftCardDetailsQueryResult = Apollo.QueryResult; export const GiftCardCurrenciesDocument = gql` query GiftCardCurrencies { giftCardCurrencies } `; /** * __useGiftCardCurrenciesQuery__ * * To run a query within a React component, call `useGiftCardCurrenciesQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardCurrenciesQuery` 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 } = useGiftCardCurrenciesQuery({ * variables: { * }, * }); */ export function useGiftCardCurrenciesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardCurrenciesDocument, options); } export function useGiftCardCurrenciesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardCurrenciesDocument, options); } export type GiftCardCurrenciesQueryHookResult = ReturnType; export type GiftCardCurrenciesLazyQueryHookResult = ReturnType; export type GiftCardCurrenciesQueryResult = Apollo.QueryResult; export const GiftCardBulkActivateDocument = gql` mutation GiftCardBulkActivate($ids: [ID!]!) { giftCardBulkActivate(ids: $ids) { errors { ...GiftCardError } count } } ${GiftCardErrorFragmentDoc}`; export type GiftCardBulkActivateMutationFn = Apollo.MutationFunction; /** * __useGiftCardBulkActivateMutation__ * * To run a mutation, you first call `useGiftCardBulkActivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardBulkActivateMutation` 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 [giftCardBulkActivateMutation, { data, loading, error }] = useGiftCardBulkActivateMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useGiftCardBulkActivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardBulkActivateDocument, options); } export type GiftCardBulkActivateMutationHookResult = ReturnType; export type GiftCardBulkActivateMutationResult = Apollo.MutationResult; export type GiftCardBulkActivateMutationOptions = Apollo.BaseMutationOptions; export const GiftCardBulkDeactivateDocument = gql` mutation GiftCardBulkDeactivate($ids: [ID!]!) { giftCardBulkDeactivate(ids: $ids) { errors { ...GiftCardError } count } } ${GiftCardErrorFragmentDoc}`; export type GiftCardBulkDeactivateMutationFn = Apollo.MutationFunction; /** * __useGiftCardBulkDeactivateMutation__ * * To run a mutation, you first call `useGiftCardBulkDeactivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useGiftCardBulkDeactivateMutation` 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 [giftCardBulkDeactivateMutation, { data, loading, error }] = useGiftCardBulkDeactivateMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useGiftCardBulkDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(GiftCardBulkDeactivateDocument, options); } export type GiftCardBulkDeactivateMutationHookResult = ReturnType; export type GiftCardBulkDeactivateMutationResult = Apollo.MutationResult; export type GiftCardBulkDeactivateMutationOptions = Apollo.BaseMutationOptions; export const DeleteGiftCardDocument = gql` mutation DeleteGiftCard($id: ID!) { giftCardDelete(id: $id) { errors { ...GiftCardError } } } ${GiftCardErrorFragmentDoc}`; export type DeleteGiftCardMutationFn = Apollo.MutationFunction; /** * __useDeleteGiftCardMutation__ * * To run a mutation, you first call `useDeleteGiftCardMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteGiftCardMutation` 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 [deleteGiftCardMutation, { data, loading, error }] = useDeleteGiftCardMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeleteGiftCardMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(DeleteGiftCardDocument, options); } export type DeleteGiftCardMutationHookResult = ReturnType; export type DeleteGiftCardMutationResult = Apollo.MutationResult; export type DeleteGiftCardMutationOptions = Apollo.BaseMutationOptions; export const BulkDeleteGiftCardDocument = gql` mutation BulkDeleteGiftCard($ids: [ID!]!) { giftCardBulkDelete(ids: $ids) { errors { ...GiftCardError } } } ${GiftCardErrorFragmentDoc}`; export type BulkDeleteGiftCardMutationFn = Apollo.MutationFunction; /** * __useBulkDeleteGiftCardMutation__ * * To run a mutation, you first call `useBulkDeleteGiftCardMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useBulkDeleteGiftCardMutation` 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 [bulkDeleteGiftCardMutation, { data, loading, error }] = useBulkDeleteGiftCardMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useBulkDeleteGiftCardMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(BulkDeleteGiftCardDocument, options); } export type BulkDeleteGiftCardMutationHookResult = ReturnType; export type BulkDeleteGiftCardMutationResult = Apollo.MutationResult; export type BulkDeleteGiftCardMutationOptions = Apollo.BaseMutationOptions; export const GiftCardListDocument = gql` query GiftCardList($first: Int, $after: String, $last: Int, $before: String, $filter: GiftCardFilterInput, $sort: GiftCardSortingInput) { giftCards( first: $first after: $after before: $before last: $last filter: $filter sortBy: $sort ) { edges { node { id usedByEmail last4CodeChars isActive expiryDate product { id name } tags { name } usedBy { ...UserBase } currentBalance { ...Money } } } totalCount pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } ${UserBaseFragmentDoc} ${MoneyFragmentDoc}`; /** * __useGiftCardListQuery__ * * To run a query within a React component, call `useGiftCardListQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardListQuery` 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 } = useGiftCardListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useGiftCardListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardListDocument, options); } export function useGiftCardListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardListDocument, options); } export type GiftCardListQueryHookResult = ReturnType; export type GiftCardListLazyQueryHookResult = ReturnType; export type GiftCardListQueryResult = Apollo.QueryResult; export const GiftCardTotalCountDocument = gql` query GiftCardTotalCount { giftCards { totalCount } } `; /** * __useGiftCardTotalCountQuery__ * * To run a query within a React component, call `useGiftCardTotalCountQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardTotalCountQuery` 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 } = useGiftCardTotalCountQuery({ * variables: { * }, * }); */ export function useGiftCardTotalCountQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardTotalCountDocument, options); } export function useGiftCardTotalCountLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardTotalCountDocument, options); } export type GiftCardTotalCountQueryHookResult = ReturnType; export type GiftCardTotalCountLazyQueryHookResult = ReturnType; export type GiftCardTotalCountQueryResult = Apollo.QueryResult; export const GiftCardProductsCountDocument = gql` query GiftCardProductsCount { giftCardProductTypes: productTypes(filter: {kind: GIFT_CARD}) { totalCount } giftCardProducts: products(filter: {giftCard: true}) { totalCount } } `; /** * __useGiftCardProductsCountQuery__ * * To run a query within a React component, call `useGiftCardProductsCountQuery` and pass it any options that fit your needs. * When your component renders, `useGiftCardProductsCountQuery` 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 } = useGiftCardProductsCountQuery({ * variables: { * }, * }); */ export function useGiftCardProductsCountQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GiftCardProductsCountDocument, options); } export function useGiftCardProductsCountLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GiftCardProductsCountDocument, options); } export type GiftCardProductsCountQueryHookResult = ReturnType; export type GiftCardProductsCountLazyQueryHookResult = ReturnType; export type GiftCardProductsCountQueryResult = Apollo.QueryResult; export const CustomerGiftCardListDocument = gql` query CustomerGiftCardList($first: Int, $filter: GiftCardFilterInput) { giftCards(first: $first, filter: $filter) { edges { node { ...CustomerGiftCard } } } } ${CustomerGiftCardFragmentDoc}`; /** * __useCustomerGiftCardListQuery__ * * To run a query within a React component, call `useCustomerGiftCardListQuery` and pass it any options that fit your needs. * When your component renders, `useCustomerGiftCardListQuery` 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 } = useCustomerGiftCardListQuery({ * variables: { * first: // value for 'first' * filter: // value for 'filter' * }, * }); */ export function useCustomerGiftCardListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CustomerGiftCardListDocument, options); } export function useCustomerGiftCardListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CustomerGiftCardListDocument, options); } export type CustomerGiftCardListQueryHookResult = ReturnType; export type CustomerGiftCardListLazyQueryHookResult = ReturnType; export type CustomerGiftCardListQueryResult = Apollo.QueryResult; export const HomeDocument = gql` query Home($channel: String!, $datePeriod: DateRangeInput!, $PERMISSION_MANAGE_PRODUCTS: Boolean!, $PERMISSION_MANAGE_ORDERS: Boolean!) { salesToday: ordersTotal(period: TODAY, channel: $channel) @include(if: $PERMISSION_MANAGE_ORDERS) { gross { amount currency } } ordersToday: orders(filter: {created: $datePeriod}, channel: $channel) @include(if: $PERMISSION_MANAGE_ORDERS) { totalCount } ordersToFulfill: orders(filter: {status: READY_TO_FULFILL}, channel: $channel) @include(if: $PERMISSION_MANAGE_ORDERS) { totalCount } ordersToCapture: orders(filter: {status: READY_TO_CAPTURE}, channel: $channel) @include(if: $PERMISSION_MANAGE_ORDERS) { totalCount } productsOutOfStock: products( filter: {stockAvailability: OUT_OF_STOCK} channel: $channel ) { totalCount } productTopToday: reportProductSales(period: TODAY, first: 5, channel: $channel) @include(if: $PERMISSION_MANAGE_PRODUCTS) { edges { node { id revenue(period: TODAY) { gross { amount currency } } attributes { values { id name } } product { id name thumbnail { url } } quantityOrdered } } } activities: homepageEvents(last: 10) @include(if: $PERMISSION_MANAGE_ORDERS) { edges { node { amount composedId date email emailType id message orderNumber oversoldItems quantity type user { id email } } } } } `; /** * __useHomeQuery__ * * To run a query within a React component, call `useHomeQuery` and pass it any options that fit your needs. * When your component renders, `useHomeQuery` 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 } = useHomeQuery({ * variables: { * channel: // value for 'channel' * datePeriod: // value for 'datePeriod' * PERMISSION_MANAGE_PRODUCTS: // value for 'PERMISSION_MANAGE_PRODUCTS' * PERMISSION_MANAGE_ORDERS: // value for 'PERMISSION_MANAGE_ORDERS' * }, * }); */ export function useHomeQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(HomeDocument, options); } export function useHomeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(HomeDocument, options); } export type HomeQueryHookResult = ReturnType; export type HomeLazyQueryHookResult = ReturnType; export type HomeQueryResult = Apollo.QueryResult; export const MenuCreateDocument = gql` mutation MenuCreate($input: MenuCreateInput!) { menuCreate(input: $input) { errors { ...MenuError } menu { id } } } ${MenuErrorFragmentDoc}`; export type MenuCreateMutationFn = Apollo.MutationFunction; /** * __useMenuCreateMutation__ * * To run a mutation, you first call `useMenuCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuCreateMutation` 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 [menuCreateMutation, { data, loading, error }] = useMenuCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useMenuCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuCreateDocument, options); } export type MenuCreateMutationHookResult = ReturnType; export type MenuCreateMutationResult = Apollo.MutationResult; export type MenuCreateMutationOptions = Apollo.BaseMutationOptions; export const MenuBulkDeleteDocument = gql` mutation MenuBulkDelete($ids: [ID!]!) { menuBulkDelete(ids: $ids) { errors { ...MenuError } } } ${MenuErrorFragmentDoc}`; export type MenuBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useMenuBulkDeleteMutation__ * * To run a mutation, you first call `useMenuBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuBulkDeleteMutation` 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 [menuBulkDeleteMutation, { data, loading, error }] = useMenuBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useMenuBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuBulkDeleteDocument, options); } export type MenuBulkDeleteMutationHookResult = ReturnType; export type MenuBulkDeleteMutationResult = Apollo.MutationResult; export type MenuBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const MenuDeleteDocument = gql` mutation MenuDelete($id: ID!) { menuDelete(id: $id) { errors { ...MenuError } } } ${MenuErrorFragmentDoc}`; export type MenuDeleteMutationFn = Apollo.MutationFunction; /** * __useMenuDeleteMutation__ * * To run a mutation, you first call `useMenuDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuDeleteMutation` 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 [menuDeleteMutation, { data, loading, error }] = useMenuDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useMenuDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuDeleteDocument, options); } export type MenuDeleteMutationHookResult = ReturnType; export type MenuDeleteMutationResult = Apollo.MutationResult; export type MenuDeleteMutationOptions = Apollo.BaseMutationOptions; export const MenuItemCreateDocument = gql` mutation MenuItemCreate($input: MenuItemCreateInput!) { menuItemCreate(input: $input) { errors { ...MenuError } menuItem { menu { id items { ...MenuItemNested } } } } } ${MenuErrorFragmentDoc} ${MenuItemNestedFragmentDoc}`; export type MenuItemCreateMutationFn = Apollo.MutationFunction; /** * __useMenuItemCreateMutation__ * * To run a mutation, you first call `useMenuItemCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuItemCreateMutation` 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 [menuItemCreateMutation, { data, loading, error }] = useMenuItemCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useMenuItemCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuItemCreateDocument, options); } export type MenuItemCreateMutationHookResult = ReturnType; export type MenuItemCreateMutationResult = Apollo.MutationResult; export type MenuItemCreateMutationOptions = Apollo.BaseMutationOptions; export const MenuUpdateDocument = gql` mutation MenuUpdate($id: ID!, $name: String!, $moves: [MenuItemMoveInput!]!, $removeIds: [ID!]!) { menuUpdate(id: $id, input: {name: $name}) { errors { ...MenuError } } menuItemMove(menu: $id, moves: $moves) { errors { ...MenuError } } menuItemBulkDelete(ids: $removeIds) { errors { ...MenuError } } } ${MenuErrorFragmentDoc}`; export type MenuUpdateMutationFn = Apollo.MutationFunction; /** * __useMenuUpdateMutation__ * * To run a mutation, you first call `useMenuUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuUpdateMutation` 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 [menuUpdateMutation, { data, loading, error }] = useMenuUpdateMutation({ * variables: { * id: // value for 'id' * name: // value for 'name' * moves: // value for 'moves' * removeIds: // value for 'removeIds' * }, * }); */ export function useMenuUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuUpdateDocument, options); } export type MenuUpdateMutationHookResult = ReturnType; export type MenuUpdateMutationResult = Apollo.MutationResult; export type MenuUpdateMutationOptions = Apollo.BaseMutationOptions; export const MenuItemUpdateDocument = gql` mutation MenuItemUpdate($id: ID!, $input: MenuItemInput!) { menuItemUpdate(id: $id, input: $input) { errors { ...MenuError } menuItem { ...MenuItem } } } ${MenuErrorFragmentDoc} ${MenuItemFragmentDoc}`; export type MenuItemUpdateMutationFn = Apollo.MutationFunction; /** * __useMenuItemUpdateMutation__ * * To run a mutation, you first call `useMenuItemUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useMenuItemUpdateMutation` 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 [menuItemUpdateMutation, { data, loading, error }] = useMenuItemUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useMenuItemUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(MenuItemUpdateDocument, options); } export type MenuItemUpdateMutationHookResult = ReturnType; export type MenuItemUpdateMutationResult = Apollo.MutationResult; export type MenuItemUpdateMutationOptions = Apollo.BaseMutationOptions; export const MenuListDocument = gql` query MenuList($first: Int, $after: String, $last: Int, $before: String, $sort: MenuSortingInput) { menus(first: $first, after: $after, before: $before, last: $last, sortBy: $sort) { edges { node { ...Menu } } pageInfo { ...PageInfo } } } ${MenuFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useMenuListQuery__ * * To run a query within a React component, call `useMenuListQuery` and pass it any options that fit your needs. * When your component renders, `useMenuListQuery` 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 } = useMenuListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * sort: // value for 'sort' * }, * }); */ export function useMenuListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(MenuListDocument, options); } export function useMenuListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(MenuListDocument, options); } export type MenuListQueryHookResult = ReturnType; export type MenuListLazyQueryHookResult = ReturnType; export type MenuListQueryResult = Apollo.QueryResult; export const MenuDetailsDocument = gql` query MenuDetails($id: ID!) { menu(id: $id) { ...MenuDetails } } ${MenuDetailsFragmentDoc}`; /** * __useMenuDetailsQuery__ * * To run a query within a React component, call `useMenuDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useMenuDetailsQuery` 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 } = useMenuDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useMenuDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(MenuDetailsDocument, options); } export function useMenuDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(MenuDetailsDocument, options); } export type MenuDetailsQueryHookResult = ReturnType; export type MenuDetailsLazyQueryHookResult = ReturnType; export type MenuDetailsQueryResult = Apollo.QueryResult; export const OrderCancelDocument = gql` mutation OrderCancel($id: ID!) { orderCancel(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderCancelMutationFn = Apollo.MutationFunction; /** * __useOrderCancelMutation__ * * To run a mutation, you first call `useOrderCancelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderCancelMutation` 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 [orderCancelMutation, { data, loading, error }] = useOrderCancelMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderCancelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderCancelDocument, options); } export type OrderCancelMutationHookResult = ReturnType; export type OrderCancelMutationResult = Apollo.MutationResult; export type OrderCancelMutationOptions = Apollo.BaseMutationOptions; export const OrderDiscountAddDocument = gql` mutation OrderDiscountAdd($input: OrderDiscountCommonInput!, $orderId: ID!) { orderDiscountAdd(input: $input, orderId: $orderId) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDiscountAddMutationFn = Apollo.MutationFunction; /** * __useOrderDiscountAddMutation__ * * To run a mutation, you first call `useOrderDiscountAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDiscountAddMutation` 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 [orderDiscountAddMutation, { data, loading, error }] = useOrderDiscountAddMutation({ * variables: { * input: // value for 'input' * orderId: // value for 'orderId' * }, * }); */ export function useOrderDiscountAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDiscountAddDocument, options); } export type OrderDiscountAddMutationHookResult = ReturnType; export type OrderDiscountAddMutationResult = Apollo.MutationResult; export type OrderDiscountAddMutationOptions = Apollo.BaseMutationOptions; export const OrderDiscountDeleteDocument = gql` mutation OrderDiscountDelete($discountId: ID!) { orderDiscountDelete(discountId: $discountId) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDiscountDeleteMutationFn = Apollo.MutationFunction; /** * __useOrderDiscountDeleteMutation__ * * To run a mutation, you first call `useOrderDiscountDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDiscountDeleteMutation` 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 [orderDiscountDeleteMutation, { data, loading, error }] = useOrderDiscountDeleteMutation({ * variables: { * discountId: // value for 'discountId' * }, * }); */ export function useOrderDiscountDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDiscountDeleteDocument, options); } export type OrderDiscountDeleteMutationHookResult = ReturnType; export type OrderDiscountDeleteMutationResult = Apollo.MutationResult; export type OrderDiscountDeleteMutationOptions = Apollo.BaseMutationOptions; export const OrderLineDiscountRemoveDocument = gql` mutation OrderLineDiscountRemove($orderLineId: ID!) { orderLineDiscountRemove(orderLineId: $orderLineId) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderLineDiscountRemoveMutationFn = Apollo.MutationFunction; /** * __useOrderLineDiscountRemoveMutation__ * * To run a mutation, you first call `useOrderLineDiscountRemoveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderLineDiscountRemoveMutation` 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 [orderLineDiscountRemoveMutation, { data, loading, error }] = useOrderLineDiscountRemoveMutation({ * variables: { * orderLineId: // value for 'orderLineId' * }, * }); */ export function useOrderLineDiscountRemoveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderLineDiscountRemoveDocument, options); } export type OrderLineDiscountRemoveMutationHookResult = ReturnType; export type OrderLineDiscountRemoveMutationResult = Apollo.MutationResult; export type OrderLineDiscountRemoveMutationOptions = Apollo.BaseMutationOptions; export const OrderLineDiscountUpdateDocument = gql` mutation OrderLineDiscountUpdate($input: OrderDiscountCommonInput!, $orderLineId: ID!) { orderLineDiscountUpdate(input: $input, orderLineId: $orderLineId) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderLineDiscountUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderLineDiscountUpdateMutation__ * * To run a mutation, you first call `useOrderLineDiscountUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderLineDiscountUpdateMutation` 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 [orderLineDiscountUpdateMutation, { data, loading, error }] = useOrderLineDiscountUpdateMutation({ * variables: { * input: // value for 'input' * orderLineId: // value for 'orderLineId' * }, * }); */ export function useOrderLineDiscountUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderLineDiscountUpdateDocument, options); } export type OrderLineDiscountUpdateMutationHookResult = ReturnType; export type OrderLineDiscountUpdateMutationResult = Apollo.MutationResult; export type OrderLineDiscountUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderDiscountUpdateDocument = gql` mutation OrderDiscountUpdate($input: OrderDiscountCommonInput!, $discountId: ID!) { orderDiscountUpdate(input: $input, discountId: $discountId) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDiscountUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderDiscountUpdateMutation__ * * To run a mutation, you first call `useOrderDiscountUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDiscountUpdateMutation` 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 [orderDiscountUpdateMutation, { data, loading, error }] = useOrderDiscountUpdateMutation({ * variables: { * input: // value for 'input' * discountId: // value for 'discountId' * }, * }); */ export function useOrderDiscountUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDiscountUpdateDocument, options); } export type OrderDiscountUpdateMutationHookResult = ReturnType; export type OrderDiscountUpdateMutationResult = Apollo.MutationResult; export type OrderDiscountUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderDraftCancelDocument = gql` mutation OrderDraftCancel($id: ID!) { draftOrderDelete(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDraftCancelMutationFn = Apollo.MutationFunction; /** * __useOrderDraftCancelMutation__ * * To run a mutation, you first call `useOrderDraftCancelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDraftCancelMutation` 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 [orderDraftCancelMutation, { data, loading, error }] = useOrderDraftCancelMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderDraftCancelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDraftCancelDocument, options); } export type OrderDraftCancelMutationHookResult = ReturnType; export type OrderDraftCancelMutationResult = Apollo.MutationResult; export type OrderDraftCancelMutationOptions = Apollo.BaseMutationOptions; export const OrderDraftBulkCancelDocument = gql` mutation OrderDraftBulkCancel($ids: [ID!]!) { draftOrderBulkDelete(ids: $ids) { errors { ...OrderError } } } ${OrderErrorFragmentDoc}`; export type OrderDraftBulkCancelMutationFn = Apollo.MutationFunction; /** * __useOrderDraftBulkCancelMutation__ * * To run a mutation, you first call `useOrderDraftBulkCancelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDraftBulkCancelMutation` 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 [orderDraftBulkCancelMutation, { data, loading, error }] = useOrderDraftBulkCancelMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useOrderDraftBulkCancelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDraftBulkCancelDocument, options); } export type OrderDraftBulkCancelMutationHookResult = ReturnType; export type OrderDraftBulkCancelMutationResult = Apollo.MutationResult; export type OrderDraftBulkCancelMutationOptions = Apollo.BaseMutationOptions; export const OrderConfirmDocument = gql` mutation OrderConfirm($id: ID!) { orderConfirm(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderConfirmMutationFn = Apollo.MutationFunction; /** * __useOrderConfirmMutation__ * * To run a mutation, you first call `useOrderConfirmMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderConfirmMutation` 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 [orderConfirmMutation, { data, loading, error }] = useOrderConfirmMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderConfirmMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderConfirmDocument, options); } export type OrderConfirmMutationHookResult = ReturnType; export type OrderConfirmMutationResult = Apollo.MutationResult; export type OrderConfirmMutationOptions = Apollo.BaseMutationOptions; export const OrderDraftFinalizeDocument = gql` mutation OrderDraftFinalize($id: ID!) { draftOrderComplete(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDraftFinalizeMutationFn = Apollo.MutationFunction; /** * __useOrderDraftFinalizeMutation__ * * To run a mutation, you first call `useOrderDraftFinalizeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDraftFinalizeMutation` 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 [orderDraftFinalizeMutation, { data, loading, error }] = useOrderDraftFinalizeMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderDraftFinalizeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDraftFinalizeDocument, options); } export type OrderDraftFinalizeMutationHookResult = ReturnType; export type OrderDraftFinalizeMutationResult = Apollo.MutationResult; export type OrderDraftFinalizeMutationOptions = Apollo.BaseMutationOptions; export const FulfillmentReturnProductsDocument = gql` mutation FulfillmentReturnProducts($id: ID!, $input: OrderReturnProductsInput!) { orderFulfillmentReturnProducts(input: $input, order: $id) { errors { ...OrderError } order { id } replaceOrder { id } } } ${OrderErrorFragmentDoc}`; export type FulfillmentReturnProductsMutationFn = Apollo.MutationFunction; /** * __useFulfillmentReturnProductsMutation__ * * To run a mutation, you first call `useFulfillmentReturnProductsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useFulfillmentReturnProductsMutation` 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 [fulfillmentReturnProductsMutation, { data, loading, error }] = useFulfillmentReturnProductsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useFulfillmentReturnProductsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(FulfillmentReturnProductsDocument, options); } export type FulfillmentReturnProductsMutationHookResult = ReturnType; export type FulfillmentReturnProductsMutationResult = Apollo.MutationResult; export type FulfillmentReturnProductsMutationOptions = Apollo.BaseMutationOptions; export const OrderRefundDocument = gql` mutation OrderRefund($id: ID!, $amount: PositiveDecimal!) { orderRefund(id: $id, amount: $amount) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderRefundMutationFn = Apollo.MutationFunction; /** * __useOrderRefundMutation__ * * To run a mutation, you first call `useOrderRefundMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderRefundMutation` 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 [orderRefundMutation, { data, loading, error }] = useOrderRefundMutation({ * variables: { * id: // value for 'id' * amount: // value for 'amount' * }, * }); */ export function useOrderRefundMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderRefundDocument, options); } export type OrderRefundMutationHookResult = ReturnType; export type OrderRefundMutationResult = Apollo.MutationResult; export type OrderRefundMutationOptions = Apollo.BaseMutationOptions; export const OrderFulfillmentRefundProductsDocument = gql` mutation OrderFulfillmentRefundProducts($input: OrderRefundProductsInput!, $order: ID!) { orderFulfillmentRefundProducts(input: $input, order: $order) { errors { ...OrderError } fulfillment { ...Fulfillment } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${FulfillmentFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderFulfillmentRefundProductsMutationFn = Apollo.MutationFunction; /** * __useOrderFulfillmentRefundProductsMutation__ * * To run a mutation, you first call `useOrderFulfillmentRefundProductsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderFulfillmentRefundProductsMutation` 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 [orderFulfillmentRefundProductsMutation, { data, loading, error }] = useOrderFulfillmentRefundProductsMutation({ * variables: { * input: // value for 'input' * order: // value for 'order' * }, * }); */ export function useOrderFulfillmentRefundProductsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderFulfillmentRefundProductsDocument, options); } export type OrderFulfillmentRefundProductsMutationHookResult = ReturnType; export type OrderFulfillmentRefundProductsMutationResult = Apollo.MutationResult; export type OrderFulfillmentRefundProductsMutationOptions = Apollo.BaseMutationOptions; export const OrderVoidDocument = gql` mutation OrderVoid($id: ID!) { orderVoid(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderVoidMutationFn = Apollo.MutationFunction; /** * __useOrderVoidMutation__ * * To run a mutation, you first call `useOrderVoidMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderVoidMutation` 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 [orderVoidMutation, { data, loading, error }] = useOrderVoidMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderVoidMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderVoidDocument, options); } export type OrderVoidMutationHookResult = ReturnType; export type OrderVoidMutationResult = Apollo.MutationResult; export type OrderVoidMutationOptions = Apollo.BaseMutationOptions; export const OrderMarkAsPaidDocument = gql` mutation OrderMarkAsPaid($id: ID!, $transactionReference: String) { orderMarkAsPaid(id: $id, transactionReference: $transactionReference) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderMarkAsPaidMutationFn = Apollo.MutationFunction; /** * __useOrderMarkAsPaidMutation__ * * To run a mutation, you first call `useOrderMarkAsPaidMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderMarkAsPaidMutation` 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 [orderMarkAsPaidMutation, { data, loading, error }] = useOrderMarkAsPaidMutation({ * variables: { * id: // value for 'id' * transactionReference: // value for 'transactionReference' * }, * }); */ export function useOrderMarkAsPaidMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderMarkAsPaidDocument, options); } export type OrderMarkAsPaidMutationHookResult = ReturnType; export type OrderMarkAsPaidMutationResult = Apollo.MutationResult; export type OrderMarkAsPaidMutationOptions = Apollo.BaseMutationOptions; export const OrderCaptureDocument = gql` mutation OrderCapture($id: ID!, $amount: PositiveDecimal!) { orderCapture(id: $id, amount: $amount) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderCaptureMutationFn = Apollo.MutationFunction; /** * __useOrderCaptureMutation__ * * To run a mutation, you first call `useOrderCaptureMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderCaptureMutation` 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 [orderCaptureMutation, { data, loading, error }] = useOrderCaptureMutation({ * variables: { * id: // value for 'id' * amount: // value for 'amount' * }, * }); */ export function useOrderCaptureMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderCaptureDocument, options); } export type OrderCaptureMutationHookResult = ReturnType; export type OrderCaptureMutationResult = Apollo.MutationResult; export type OrderCaptureMutationOptions = Apollo.BaseMutationOptions; export const OrderFulfillmentUpdateTrackingDocument = gql` mutation OrderFulfillmentUpdateTracking($id: ID!, $input: FulfillmentUpdateTrackingInput!) { orderFulfillmentUpdateTracking(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderFulfillmentUpdateTrackingMutationFn = Apollo.MutationFunction; /** * __useOrderFulfillmentUpdateTrackingMutation__ * * To run a mutation, you first call `useOrderFulfillmentUpdateTrackingMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderFulfillmentUpdateTrackingMutation` 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 [orderFulfillmentUpdateTrackingMutation, { data, loading, error }] = useOrderFulfillmentUpdateTrackingMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderFulfillmentUpdateTrackingMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderFulfillmentUpdateTrackingDocument, options); } export type OrderFulfillmentUpdateTrackingMutationHookResult = ReturnType; export type OrderFulfillmentUpdateTrackingMutationResult = Apollo.MutationResult; export type OrderFulfillmentUpdateTrackingMutationOptions = Apollo.BaseMutationOptions; export const OrderFulfillmentApproveDocument = gql` mutation OrderFulfillmentApprove($id: ID!, $notifyCustomer: Boolean!, $allowStockToBeExceeded: Boolean) { orderFulfillmentApprove( id: $id notifyCustomer: $notifyCustomer allowStockToBeExceeded: $allowStockToBeExceeded ) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderFulfillmentApproveMutationFn = Apollo.MutationFunction; /** * __useOrderFulfillmentApproveMutation__ * * To run a mutation, you first call `useOrderFulfillmentApproveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderFulfillmentApproveMutation` 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 [orderFulfillmentApproveMutation, { data, loading, error }] = useOrderFulfillmentApproveMutation({ * variables: { * id: // value for 'id' * notifyCustomer: // value for 'notifyCustomer' * allowStockToBeExceeded: // value for 'allowStockToBeExceeded' * }, * }); */ export function useOrderFulfillmentApproveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderFulfillmentApproveDocument, options); } export type OrderFulfillmentApproveMutationHookResult = ReturnType; export type OrderFulfillmentApproveMutationResult = Apollo.MutationResult; export type OrderFulfillmentApproveMutationOptions = Apollo.BaseMutationOptions; export const OrderFulfillmentCancelDocument = gql` mutation OrderFulfillmentCancel($id: ID!, $input: FulfillmentCancelInput!) { orderFulfillmentCancel(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderFulfillmentCancelMutationFn = Apollo.MutationFunction; /** * __useOrderFulfillmentCancelMutation__ * * To run a mutation, you first call `useOrderFulfillmentCancelMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderFulfillmentCancelMutation` 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 [orderFulfillmentCancelMutation, { data, loading, error }] = useOrderFulfillmentCancelMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderFulfillmentCancelMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderFulfillmentCancelDocument, options); } export type OrderFulfillmentCancelMutationHookResult = ReturnType; export type OrderFulfillmentCancelMutationResult = Apollo.MutationResult; export type OrderFulfillmentCancelMutationOptions = Apollo.BaseMutationOptions; export const OrderAddNoteDocument = gql` mutation OrderAddNote($order: ID!, $input: OrderAddNoteInput!) { orderAddNote(order: $order, input: $input) { errors { ...OrderError } order { id events { ...OrderEvent } } } } ${OrderErrorFragmentDoc} ${OrderEventFragmentDoc}`; export type OrderAddNoteMutationFn = Apollo.MutationFunction; /** * __useOrderAddNoteMutation__ * * To run a mutation, you first call `useOrderAddNoteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderAddNoteMutation` 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 [orderAddNoteMutation, { data, loading, error }] = useOrderAddNoteMutation({ * variables: { * order: // value for 'order' * input: // value for 'input' * }, * }); */ export function useOrderAddNoteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderAddNoteDocument, options); } export type OrderAddNoteMutationHookResult = ReturnType; export type OrderAddNoteMutationResult = Apollo.MutationResult; export type OrderAddNoteMutationOptions = Apollo.BaseMutationOptions; export const OrderUpdateDocument = gql` mutation OrderUpdate($id: ID!, $input: OrderUpdateInput!) { orderUpdate(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderUpdateMutation__ * * To run a mutation, you first call `useOrderUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderUpdateMutation` 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 [orderUpdateMutation, { data, loading, error }] = useOrderUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderUpdateDocument, options); } export type OrderUpdateMutationHookResult = ReturnType; export type OrderUpdateMutationResult = Apollo.MutationResult; export type OrderUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderDraftUpdateDocument = gql` mutation OrderDraftUpdate($id: ID!, $input: DraftOrderInput!) { draftOrderUpdate(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderDraftUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderDraftUpdateMutation__ * * To run a mutation, you first call `useOrderDraftUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDraftUpdateMutation` 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 [orderDraftUpdateMutation, { data, loading, error }] = useOrderDraftUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderDraftUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDraftUpdateDocument, options); } export type OrderDraftUpdateMutationHookResult = ReturnType; export type OrderDraftUpdateMutationResult = Apollo.MutationResult; export type OrderDraftUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderShippingMethodUpdateDocument = gql` mutation OrderShippingMethodUpdate($id: ID!, $input: OrderUpdateShippingInput!) { orderUpdateShipping(order: $id, input: $input) { errors { ...OrderError } order { shippingMethods { id name } total { tax { amount currency } gross { amount currency } } id shippingMethod { id name price { amount currency } } shippingMethodName shippingPrice { gross { amount currency } } ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderShippingMethodUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderShippingMethodUpdateMutation__ * * To run a mutation, you first call `useOrderShippingMethodUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderShippingMethodUpdateMutation` 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 [orderShippingMethodUpdateMutation, { data, loading, error }] = useOrderShippingMethodUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderShippingMethodUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderShippingMethodUpdateDocument, options); } export type OrderShippingMethodUpdateMutationHookResult = ReturnType; export type OrderShippingMethodUpdateMutationResult = Apollo.MutationResult; export type OrderShippingMethodUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderDraftCreateDocument = gql` mutation OrderDraftCreate($input: DraftOrderCreateInput!) { draftOrderCreate(input: $input) { errors { ...OrderError } order { id } } } ${OrderErrorFragmentDoc}`; export type OrderDraftCreateMutationFn = Apollo.MutationFunction; /** * __useOrderDraftCreateMutation__ * * To run a mutation, you first call `useOrderDraftCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderDraftCreateMutation` 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 [orderDraftCreateMutation, { data, loading, error }] = useOrderDraftCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useOrderDraftCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderDraftCreateDocument, options); } export type OrderDraftCreateMutationHookResult = ReturnType; export type OrderDraftCreateMutationResult = Apollo.MutationResult; export type OrderDraftCreateMutationOptions = Apollo.BaseMutationOptions; export const OrderLineDeleteDocument = gql` mutation OrderLineDelete($id: ID!) { orderLineDelete(id: $id) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderLineDeleteMutationFn = Apollo.MutationFunction; /** * __useOrderLineDeleteMutation__ * * To run a mutation, you first call `useOrderLineDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderLineDeleteMutation` 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 [orderLineDeleteMutation, { data, loading, error }] = useOrderLineDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderLineDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderLineDeleteDocument, options); } export type OrderLineDeleteMutationHookResult = ReturnType; export type OrderLineDeleteMutationResult = Apollo.MutationResult; export type OrderLineDeleteMutationOptions = Apollo.BaseMutationOptions; export const OrderLinesAddDocument = gql` mutation OrderLinesAdd($id: ID!, $input: [OrderLineCreateInput!]!) { orderLinesCreate(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderLinesAddMutationFn = Apollo.MutationFunction; /** * __useOrderLinesAddMutation__ * * To run a mutation, you first call `useOrderLinesAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderLinesAddMutation` 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 [orderLinesAddMutation, { data, loading, error }] = useOrderLinesAddMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderLinesAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderLinesAddDocument, options); } export type OrderLinesAddMutationHookResult = ReturnType; export type OrderLinesAddMutationResult = Apollo.MutationResult; export type OrderLinesAddMutationOptions = Apollo.BaseMutationOptions; export const OrderLineUpdateDocument = gql` mutation OrderLineUpdate($id: ID!, $input: OrderLineInput!) { orderLineUpdate(id: $id, input: $input) { errors { ...OrderError } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type OrderLineUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderLineUpdateMutation__ * * To run a mutation, you first call `useOrderLineUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderLineUpdateMutation` 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 [orderLineUpdateMutation, { data, loading, error }] = useOrderLineUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useOrderLineUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderLineUpdateDocument, options); } export type OrderLineUpdateMutationHookResult = ReturnType; export type OrderLineUpdateMutationResult = Apollo.MutationResult; export type OrderLineUpdateMutationOptions = Apollo.BaseMutationOptions; export const FulfillOrderDocument = gql` mutation FulfillOrder($orderId: ID!, $input: OrderFulfillInput!) { orderFulfill(order: $orderId, input: $input) { errors { ...OrderError warehouse orderLines } order { ...OrderDetails } } } ${OrderErrorFragmentDoc} ${OrderDetailsFragmentDoc}`; export type FulfillOrderMutationFn = Apollo.MutationFunction; /** * __useFulfillOrderMutation__ * * To run a mutation, you first call `useFulfillOrderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useFulfillOrderMutation` 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 [fulfillOrderMutation, { data, loading, error }] = useFulfillOrderMutation({ * variables: { * orderId: // value for 'orderId' * input: // value for 'input' * }, * }); */ export function useFulfillOrderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(FulfillOrderDocument, options); } export type FulfillOrderMutationHookResult = ReturnType; export type FulfillOrderMutationResult = Apollo.MutationResult; export type FulfillOrderMutationOptions = Apollo.BaseMutationOptions; export const InvoiceRequestDocument = gql` mutation InvoiceRequest($orderId: ID!) { invoiceRequest(orderId: $orderId) { errors { ...InvoiceError } invoice { ...Invoice } order { id invoices { ...Invoice } } } } ${InvoiceErrorFragmentDoc} ${InvoiceFragmentDoc}`; export type InvoiceRequestMutationFn = Apollo.MutationFunction; /** * __useInvoiceRequestMutation__ * * To run a mutation, you first call `useInvoiceRequestMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInvoiceRequestMutation` 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 [invoiceRequestMutation, { data, loading, error }] = useInvoiceRequestMutation({ * variables: { * orderId: // value for 'orderId' * }, * }); */ export function useInvoiceRequestMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(InvoiceRequestDocument, options); } export type InvoiceRequestMutationHookResult = ReturnType; export type InvoiceRequestMutationResult = Apollo.MutationResult; export type InvoiceRequestMutationOptions = Apollo.BaseMutationOptions; export const InvoiceEmailSendDocument = gql` mutation InvoiceEmailSend($id: ID!) { invoiceSendNotification(id: $id) { errors { ...InvoiceError } invoice { ...Invoice } } } ${InvoiceErrorFragmentDoc} ${InvoiceFragmentDoc}`; export type InvoiceEmailSendMutationFn = Apollo.MutationFunction; /** * __useInvoiceEmailSendMutation__ * * To run a mutation, you first call `useInvoiceEmailSendMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useInvoiceEmailSendMutation` 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 [invoiceEmailSendMutation, { data, loading, error }] = useInvoiceEmailSendMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useInvoiceEmailSendMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(InvoiceEmailSendDocument, options); } export type InvoiceEmailSendMutationHookResult = ReturnType; export type InvoiceEmailSendMutationResult = Apollo.MutationResult; export type InvoiceEmailSendMutationOptions = Apollo.BaseMutationOptions; export const OrderSettingsUpdateDocument = gql` mutation OrderSettingsUpdate($orderSettingsInput: OrderSettingsUpdateInput!, $shopSettingsInput: ShopSettingsInput!) { orderSettingsUpdate(input: $orderSettingsInput) { errors { ...OrderSettingsError } orderSettings { ...OrderSettings } } shopSettingsUpdate(input: $shopSettingsInput) { errors { ...ShopError } shop { ...ShopOrderSettings } } } ${OrderSettingsErrorFragmentDoc} ${OrderSettingsFragmentDoc} ${ShopErrorFragmentDoc} ${ShopOrderSettingsFragmentDoc}`; export type OrderSettingsUpdateMutationFn = Apollo.MutationFunction; /** * __useOrderSettingsUpdateMutation__ * * To run a mutation, you first call `useOrderSettingsUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useOrderSettingsUpdateMutation` 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 [orderSettingsUpdateMutation, { data, loading, error }] = useOrderSettingsUpdateMutation({ * variables: { * orderSettingsInput: // value for 'orderSettingsInput' * shopSettingsInput: // value for 'shopSettingsInput' * }, * }); */ export function useOrderSettingsUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(OrderSettingsUpdateDocument, options); } export type OrderSettingsUpdateMutationHookResult = ReturnType; export type OrderSettingsUpdateMutationResult = Apollo.MutationResult; export type OrderSettingsUpdateMutationOptions = Apollo.BaseMutationOptions; export const OrderListDocument = gql` query OrderList($first: Int, $after: String, $last: Int, $before: String, $filter: OrderFilterInput, $sort: OrderSortingInput) { orders( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { __typename billingAddress { ...Address } created id number paymentStatus status total { __typename gross { __typename amount currency } } userEmail } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } } } ${AddressFragmentDoc}`; /** * __useOrderListQuery__ * * To run a query within a React component, call `useOrderListQuery` and pass it any options that fit your needs. * When your component renders, `useOrderListQuery` 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 } = useOrderListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useOrderListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderListDocument, options); } export function useOrderListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderListDocument, options); } export type OrderListQueryHookResult = ReturnType; export type OrderListLazyQueryHookResult = ReturnType; export type OrderListQueryResult = Apollo.QueryResult; export const OrderDraftListDocument = gql` query OrderDraftList($first: Int, $after: String, $last: Int, $before: String, $filter: OrderDraftFilterInput, $sort: OrderSortingInput) { draftOrders( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { __typename billingAddress { ...Address } created id number paymentStatus status total { __typename gross { __typename amount currency } } userEmail } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } } } ${AddressFragmentDoc}`; /** * __useOrderDraftListQuery__ * * To run a query within a React component, call `useOrderDraftListQuery` and pass it any options that fit your needs. * When your component renders, `useOrderDraftListQuery` 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 } = useOrderDraftListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useOrderDraftListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderDraftListDocument, options); } export function useOrderDraftListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderDraftListDocument, options); } export type OrderDraftListQueryHookResult = ReturnType; export type OrderDraftListLazyQueryHookResult = ReturnType; export type OrderDraftListQueryResult = Apollo.QueryResult; export const OrderDetailsDocument = gql` query OrderDetails($id: ID!) { order(id: $id) { ...OrderDetails } shop { countries { code country } defaultWeightUnit fulfillmentAllowUnpaid fulfillmentAutoApprove } } ${OrderDetailsFragmentDoc}`; /** * __useOrderDetailsQuery__ * * To run a query within a React component, call `useOrderDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useOrderDetailsQuery` 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 } = useOrderDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useOrderDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderDetailsDocument, options); } export function useOrderDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderDetailsDocument, options); } export type OrderDetailsQueryHookResult = ReturnType; export type OrderDetailsLazyQueryHookResult = ReturnType; export type OrderDetailsQueryResult = Apollo.QueryResult; export const OrderFulfillDataDocument = gql` query OrderFulfillData($orderId: ID!) { order(id: $orderId) { id isPaid deliveryMethod { __typename ... on ShippingMethod { id } ... on Warehouse { id clickAndCollectOption } } lines { ...OrderFulfillLine } number } } ${OrderFulfillLineFragmentDoc}`; /** * __useOrderFulfillDataQuery__ * * To run a query within a React component, call `useOrderFulfillDataQuery` and pass it any options that fit your needs. * When your component renders, `useOrderFulfillDataQuery` 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 } = useOrderFulfillDataQuery({ * variables: { * orderId: // value for 'orderId' * }, * }); */ export function useOrderFulfillDataQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderFulfillDataDocument, options); } export function useOrderFulfillDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderFulfillDataDocument, options); } export type OrderFulfillDataQueryHookResult = ReturnType; export type OrderFulfillDataLazyQueryHookResult = ReturnType; export type OrderFulfillDataQueryResult = Apollo.QueryResult; export const OrderFulfillSettingsDocument = gql` query OrderFulfillSettings { shop { ...ShopOrderSettings } } ${ShopOrderSettingsFragmentDoc}`; /** * __useOrderFulfillSettingsQuery__ * * To run a query within a React component, call `useOrderFulfillSettingsQuery` and pass it any options that fit your needs. * When your component renders, `useOrderFulfillSettingsQuery` 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 } = useOrderFulfillSettingsQuery({ * variables: { * }, * }); */ export function useOrderFulfillSettingsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderFulfillSettingsDocument, options); } export function useOrderFulfillSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderFulfillSettingsDocument, options); } export type OrderFulfillSettingsQueryHookResult = ReturnType; export type OrderFulfillSettingsLazyQueryHookResult = ReturnType; export type OrderFulfillSettingsQueryResult = Apollo.QueryResult; export const OrderSettingsDocument = gql` query OrderSettings { orderSettings { ...OrderSettings } shop { ...ShopOrderSettings } } ${OrderSettingsFragmentDoc} ${ShopOrderSettingsFragmentDoc}`; /** * __useOrderSettingsQuery__ * * To run a query within a React component, call `useOrderSettingsQuery` and pass it any options that fit your needs. * When your component renders, `useOrderSettingsQuery` 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 } = useOrderSettingsQuery({ * variables: { * }, * }); */ export function useOrderSettingsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderSettingsDocument, options); } export function useOrderSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderSettingsDocument, options); } export type OrderSettingsQueryHookResult = ReturnType; export type OrderSettingsLazyQueryHookResult = ReturnType; export type OrderSettingsQueryResult = Apollo.QueryResult; export const OrderRefundDataDocument = gql` query OrderRefundData($orderId: ID!) { order(id: $orderId) { id number total { gross { ...Money } } totalCaptured { ...Money } shippingPrice { gross { ...Money } } lines { ...RefundOrderLine quantityToFulfill } fulfillments { id status fulfillmentOrder lines { id quantity orderLine { ...RefundOrderLine } } } } } ${MoneyFragmentDoc} ${RefundOrderLineFragmentDoc}`; /** * __useOrderRefundDataQuery__ * * To run a query within a React component, call `useOrderRefundDataQuery` and pass it any options that fit your needs. * When your component renders, `useOrderRefundDataQuery` 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 } = useOrderRefundDataQuery({ * variables: { * orderId: // value for 'orderId' * }, * }); */ export function useOrderRefundDataQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(OrderRefundDataDocument, options); } export function useOrderRefundDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(OrderRefundDataDocument, options); } export type OrderRefundDataQueryHookResult = ReturnType; export type OrderRefundDataLazyQueryHookResult = ReturnType; export type OrderRefundDataQueryResult = Apollo.QueryResult; export const PageTypeUpdateDocument = gql` mutation PageTypeUpdate($id: ID!, $input: PageTypeUpdateInput!) { pageTypeUpdate(id: $id, input: $input) { errors { ...PageError } pageType { ...PageTypeDetails } } } ${PageErrorFragmentDoc} ${PageTypeDetailsFragmentDoc}`; export type PageTypeUpdateMutationFn = Apollo.MutationFunction; /** * __usePageTypeUpdateMutation__ * * To run a mutation, you first call `usePageTypeUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageTypeUpdateMutation` 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 [pageTypeUpdateMutation, { data, loading, error }] = usePageTypeUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function usePageTypeUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageTypeUpdateDocument, options); } export type PageTypeUpdateMutationHookResult = ReturnType; export type PageTypeUpdateMutationResult = Apollo.MutationResult; export type PageTypeUpdateMutationOptions = Apollo.BaseMutationOptions; export const PageTypeCreateDocument = gql` mutation PageTypeCreate($input: PageTypeCreateInput!) { pageTypeCreate(input: $input) { errors { ...PageError } pageType { ...PageTypeDetails } } } ${PageErrorFragmentDoc} ${PageTypeDetailsFragmentDoc}`; export type PageTypeCreateMutationFn = Apollo.MutationFunction; /** * __usePageTypeCreateMutation__ * * To run a mutation, you first call `usePageTypeCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageTypeCreateMutation` 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 [pageTypeCreateMutation, { data, loading, error }] = usePageTypeCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function usePageTypeCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageTypeCreateDocument, options); } export type PageTypeCreateMutationHookResult = ReturnType; export type PageTypeCreateMutationResult = Apollo.MutationResult; export type PageTypeCreateMutationOptions = Apollo.BaseMutationOptions; export const AssignPageAttributeDocument = gql` mutation AssignPageAttribute($id: ID!, $ids: [ID!]!) { pageAttributeAssign(pageTypeId: $id, attributeIds: $ids) { errors { ...PageError } pageType { ...PageTypeDetails } } } ${PageErrorFragmentDoc} ${PageTypeDetailsFragmentDoc}`; export type AssignPageAttributeMutationFn = Apollo.MutationFunction; /** * __useAssignPageAttributeMutation__ * * To run a mutation, you first call `useAssignPageAttributeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAssignPageAttributeMutation` 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 [assignPageAttributeMutation, { data, loading, error }] = useAssignPageAttributeMutation({ * variables: { * id: // value for 'id' * ids: // value for 'ids' * }, * }); */ export function useAssignPageAttributeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AssignPageAttributeDocument, options); } export type AssignPageAttributeMutationHookResult = ReturnType; export type AssignPageAttributeMutationResult = Apollo.MutationResult; export type AssignPageAttributeMutationOptions = Apollo.BaseMutationOptions; export const UnassignPageAttributeDocument = gql` mutation UnassignPageAttribute($id: ID!, $ids: [ID!]!) { pageAttributeUnassign(pageTypeId: $id, attributeIds: $ids) { errors { ...PageError } pageType { ...PageTypeDetails } } } ${PageErrorFragmentDoc} ${PageTypeDetailsFragmentDoc}`; export type UnassignPageAttributeMutationFn = Apollo.MutationFunction; /** * __useUnassignPageAttributeMutation__ * * To run a mutation, you first call `useUnassignPageAttributeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnassignPageAttributeMutation` 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 [unassignPageAttributeMutation, { data, loading, error }] = useUnassignPageAttributeMutation({ * variables: { * id: // value for 'id' * ids: // value for 'ids' * }, * }); */ export function useUnassignPageAttributeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UnassignPageAttributeDocument, options); } export type UnassignPageAttributeMutationHookResult = ReturnType; export type UnassignPageAttributeMutationResult = Apollo.MutationResult; export type UnassignPageAttributeMutationOptions = Apollo.BaseMutationOptions; export const PageTypeDeleteDocument = gql` mutation PageTypeDelete($id: ID!) { pageTypeDelete(id: $id) { errors { ...PageTypeDeleteErrorFragment } pageType { id } } } ${PageTypeDeleteErrorFragmentFragmentDoc}`; export type PageTypeDeleteMutationFn = Apollo.MutationFunction; /** * __usePageTypeDeleteMutation__ * * To run a mutation, you first call `usePageTypeDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageTypeDeleteMutation` 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 [pageTypeDeleteMutation, { data, loading, error }] = usePageTypeDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function usePageTypeDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageTypeDeleteDocument, options); } export type PageTypeDeleteMutationHookResult = ReturnType; export type PageTypeDeleteMutationResult = Apollo.MutationResult; export type PageTypeDeleteMutationOptions = Apollo.BaseMutationOptions; export const PageTypeBulkDeleteDocument = gql` mutation PageTypeBulkDelete($ids: [ID!]!) { pageTypeBulkDelete(ids: $ids) { errors { ...PageTypeDeleteErrorFragment } } } ${PageTypeDeleteErrorFragmentFragmentDoc}`; export type PageTypeBulkDeleteMutationFn = Apollo.MutationFunction; /** * __usePageTypeBulkDeleteMutation__ * * To run a mutation, you first call `usePageTypeBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageTypeBulkDeleteMutation` 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 [pageTypeBulkDeleteMutation, { data, loading, error }] = usePageTypeBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function usePageTypeBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageTypeBulkDeleteDocument, options); } export type PageTypeBulkDeleteMutationHookResult = ReturnType; export type PageTypeBulkDeleteMutationResult = Apollo.MutationResult; export type PageTypeBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const PageTypeAttributeReorderDocument = gql` mutation PageTypeAttributeReorder($move: ReorderInput!, $pageTypeId: ID!) { pageTypeReorderAttributes(moves: [$move], pageTypeId: $pageTypeId) { errors { ...PageError } pageType { ...PageTypeDetails } } } ${PageErrorFragmentDoc} ${PageTypeDetailsFragmentDoc}`; export type PageTypeAttributeReorderMutationFn = Apollo.MutationFunction; /** * __usePageTypeAttributeReorderMutation__ * * To run a mutation, you first call `usePageTypeAttributeReorderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageTypeAttributeReorderMutation` 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 [pageTypeAttributeReorderMutation, { data, loading, error }] = usePageTypeAttributeReorderMutation({ * variables: { * move: // value for 'move' * pageTypeId: // value for 'pageTypeId' * }, * }); */ export function usePageTypeAttributeReorderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageTypeAttributeReorderDocument, options); } export type PageTypeAttributeReorderMutationHookResult = ReturnType; export type PageTypeAttributeReorderMutationResult = Apollo.MutationResult; export type PageTypeAttributeReorderMutationOptions = Apollo.BaseMutationOptions; export const PageTypeListDocument = gql` query PageTypeList($after: String, $before: String, $first: Int, $last: Int, $filter: PageTypeFilterInput, $sort: PageTypeSortingInput) { pageTypes( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...PageType } } pageInfo { ...PageInfo } } } ${PageTypeFragmentDoc} ${PageInfoFragmentDoc}`; /** * __usePageTypeListQuery__ * * To run a query within a React component, call `usePageTypeListQuery` and pass it any options that fit your needs. * When your component renders, `usePageTypeListQuery` 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 } = usePageTypeListQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function usePageTypeListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageTypeListDocument, options); } export function usePageTypeListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageTypeListDocument, options); } export type PageTypeListQueryHookResult = ReturnType; export type PageTypeListLazyQueryHookResult = ReturnType; export type PageTypeListQueryResult = Apollo.QueryResult; export const PageTypeDetailsDocument = gql` query PageTypeDetails($id: ID!) { pageType(id: $id) { ...PageTypeDetails } } ${PageTypeDetailsFragmentDoc}`; /** * __usePageTypeDetailsQuery__ * * To run a query within a React component, call `usePageTypeDetailsQuery` and pass it any options that fit your needs. * When your component renders, `usePageTypeDetailsQuery` 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 } = usePageTypeDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function usePageTypeDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageTypeDetailsDocument, options); } export function usePageTypeDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageTypeDetailsDocument, options); } export type PageTypeDetailsQueryHookResult = ReturnType; export type PageTypeDetailsLazyQueryHookResult = ReturnType; export type PageTypeDetailsQueryResult = Apollo.QueryResult; export const PageCreateDocument = gql` mutation PageCreate($input: PageCreateInput!) { pageCreate(input: $input) { errors { ...PageErrorWithAttributes } page { id } } } ${PageErrorWithAttributesFragmentDoc}`; export type PageCreateMutationFn = Apollo.MutationFunction; /** * __usePageCreateMutation__ * * To run a mutation, you first call `usePageCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageCreateMutation` 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 [pageCreateMutation, { data, loading, error }] = usePageCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function usePageCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageCreateDocument, options); } export type PageCreateMutationHookResult = ReturnType; export type PageCreateMutationResult = Apollo.MutationResult; export type PageCreateMutationOptions = Apollo.BaseMutationOptions; export const PageUpdateDocument = gql` mutation PageUpdate($id: ID!, $input: PageInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { pageUpdate(id: $id, input: $input) { errors { ...PageErrorWithAttributes } page { ...PageDetails } } } ${PageErrorWithAttributesFragmentDoc} ${PageDetailsFragmentDoc}`; export type PageUpdateMutationFn = Apollo.MutationFunction; /** * __usePageUpdateMutation__ * * To run a mutation, you first call `usePageUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageUpdateMutation` 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 [pageUpdateMutation, { data, loading, error }] = usePageUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function usePageUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageUpdateDocument, options); } export type PageUpdateMutationHookResult = ReturnType; export type PageUpdateMutationResult = Apollo.MutationResult; export type PageUpdateMutationOptions = Apollo.BaseMutationOptions; export const PageRemoveDocument = gql` mutation PageRemove($id: ID!) { pageDelete(id: $id) { errors { ...PageError } } } ${PageErrorFragmentDoc}`; export type PageRemoveMutationFn = Apollo.MutationFunction; /** * __usePageRemoveMutation__ * * To run a mutation, you first call `usePageRemoveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageRemoveMutation` 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 [pageRemoveMutation, { data, loading, error }] = usePageRemoveMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function usePageRemoveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageRemoveDocument, options); } export type PageRemoveMutationHookResult = ReturnType; export type PageRemoveMutationResult = Apollo.MutationResult; export type PageRemoveMutationOptions = Apollo.BaseMutationOptions; export const PageBulkPublishDocument = gql` mutation PageBulkPublish($ids: [ID!]!, $isPublished: Boolean!) { pageBulkPublish(ids: $ids, isPublished: $isPublished) { errors { ...PageBulkPublishErrorFragment } } } ${PageBulkPublishErrorFragmentFragmentDoc}`; export type PageBulkPublishMutationFn = Apollo.MutationFunction; /** * __usePageBulkPublishMutation__ * * To run a mutation, you first call `usePageBulkPublishMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageBulkPublishMutation` 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 [pageBulkPublishMutation, { data, loading, error }] = usePageBulkPublishMutation({ * variables: { * ids: // value for 'ids' * isPublished: // value for 'isPublished' * }, * }); */ export function usePageBulkPublishMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageBulkPublishDocument, options); } export type PageBulkPublishMutationHookResult = ReturnType; export type PageBulkPublishMutationResult = Apollo.MutationResult; export type PageBulkPublishMutationOptions = Apollo.BaseMutationOptions; export const PageBulkRemoveDocument = gql` mutation PageBulkRemove($ids: [ID!]!) { pageBulkDelete(ids: $ids) { errors { ...PageBulkRemoveErrorFragment } } } ${PageBulkRemoveErrorFragmentFragmentDoc}`; export type PageBulkRemoveMutationFn = Apollo.MutationFunction; /** * __usePageBulkRemoveMutation__ * * To run a mutation, you first call `usePageBulkRemoveMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePageBulkRemoveMutation` 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 [pageBulkRemoveMutation, { data, loading, error }] = usePageBulkRemoveMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function usePageBulkRemoveMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PageBulkRemoveDocument, options); } export type PageBulkRemoveMutationHookResult = ReturnType; export type PageBulkRemoveMutationResult = Apollo.MutationResult; export type PageBulkRemoveMutationOptions = Apollo.BaseMutationOptions; export const PageListDocument = gql` query PageList($first: Int, $after: String, $last: Int, $before: String, $sort: PageSortingInput, $filter: PageFilterInput) { pages( before: $before after: $after first: $first last: $last sortBy: $sort filter: $filter ) { edges { node { ...Page } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } } } ${PageFragmentDoc}`; /** * __usePageListQuery__ * * To run a query within a React component, call `usePageListQuery` and pass it any options that fit your needs. * When your component renders, `usePageListQuery` 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 } = usePageListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * sort: // value for 'sort' * filter: // value for 'filter' * }, * }); */ export function usePageListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageListDocument, options); } export function usePageListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageListDocument, options); } export type PageListQueryHookResult = ReturnType; export type PageListLazyQueryHookResult = ReturnType; export type PageListQueryResult = Apollo.QueryResult; export const PageDetailsDocument = gql` query PageDetails($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { page(id: $id) { ...PageDetails } } ${PageDetailsFragmentDoc}`; /** * __usePageDetailsQuery__ * * To run a query within a React component, call `usePageDetailsQuery` and pass it any options that fit your needs. * When your component renders, `usePageDetailsQuery` 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 } = usePageDetailsQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function usePageDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageDetailsDocument, options); } export function usePageDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageDetailsDocument, options); } export type PageDetailsQueryHookResult = ReturnType; export type PageDetailsLazyQueryHookResult = ReturnType; export type PageDetailsQueryResult = Apollo.QueryResult; export const PageTypeDocument = gql` query PageType($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { pageType(id: $id) { id name attributes { id inputType entityType slug name valueRequired choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } } } ${AttributeValueListFragmentDoc}`; /** * __usePageTypeQuery__ * * To run a query within a React component, call `usePageTypeQuery` and pass it any options that fit your needs. * When your component renders, `usePageTypeQuery` 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 } = usePageTypeQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function usePageTypeQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageTypeDocument, options); } export function usePageTypeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageTypeDocument, options); } export type PageTypeQueryHookResult = ReturnType; export type PageTypeLazyQueryHookResult = ReturnType; export type PageTypeQueryResult = Apollo.QueryResult; export const PageCountDocument = gql` query PageCount($filter: PageFilterInput) { pages(filter: $filter) { totalCount } } `; /** * __usePageCountQuery__ * * To run a query within a React component, call `usePageCountQuery` and pass it any options that fit your needs. * When your component renders, `usePageCountQuery` 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 } = usePageCountQuery({ * variables: { * filter: // value for 'filter' * }, * }); */ export function usePageCountQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageCountDocument, options); } export function usePageCountLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageCountDocument, options); } export type PageCountQueryHookResult = ReturnType; export type PageCountLazyQueryHookResult = ReturnType; export type PageCountQueryResult = Apollo.QueryResult; export const PermissionGroupDeleteDocument = gql` mutation PermissionGroupDelete($id: ID!) { permissionGroupDelete(id: $id) { errors { ...PermissionGroupError } } } ${PermissionGroupErrorFragmentDoc}`; export type PermissionGroupDeleteMutationFn = Apollo.MutationFunction; /** * __usePermissionGroupDeleteMutation__ * * To run a mutation, you first call `usePermissionGroupDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePermissionGroupDeleteMutation` 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 [permissionGroupDeleteMutation, { data, loading, error }] = usePermissionGroupDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function usePermissionGroupDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PermissionGroupDeleteDocument, options); } export type PermissionGroupDeleteMutationHookResult = ReturnType; export type PermissionGroupDeleteMutationResult = Apollo.MutationResult; export type PermissionGroupDeleteMutationOptions = Apollo.BaseMutationOptions; export const PermissionGroupCreateDocument = gql` mutation PermissionGroupCreate($input: PermissionGroupCreateInput!) { permissionGroupCreate(input: $input) { errors { ...PermissionGroupError } group { ...PermissionGroupDetails } } } ${PermissionGroupErrorFragmentDoc} ${PermissionGroupDetailsFragmentDoc}`; export type PermissionGroupCreateMutationFn = Apollo.MutationFunction; /** * __usePermissionGroupCreateMutation__ * * To run a mutation, you first call `usePermissionGroupCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePermissionGroupCreateMutation` 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 [permissionGroupCreateMutation, { data, loading, error }] = usePermissionGroupCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function usePermissionGroupCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PermissionGroupCreateDocument, options); } export type PermissionGroupCreateMutationHookResult = ReturnType; export type PermissionGroupCreateMutationResult = Apollo.MutationResult; export type PermissionGroupCreateMutationOptions = Apollo.BaseMutationOptions; export const PermissionGroupUpdateDocument = gql` mutation PermissionGroupUpdate($id: ID!, $input: PermissionGroupUpdateInput!) { permissionGroupUpdate(id: $id, input: $input) { errors { ...PermissionGroupError } group { ...PermissionGroupDetails } } } ${PermissionGroupErrorFragmentDoc} ${PermissionGroupDetailsFragmentDoc}`; export type PermissionGroupUpdateMutationFn = Apollo.MutationFunction; /** * __usePermissionGroupUpdateMutation__ * * To run a mutation, you first call `usePermissionGroupUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePermissionGroupUpdateMutation` 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 [permissionGroupUpdateMutation, { data, loading, error }] = usePermissionGroupUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function usePermissionGroupUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PermissionGroupUpdateDocument, options); } export type PermissionGroupUpdateMutationHookResult = ReturnType; export type PermissionGroupUpdateMutationResult = Apollo.MutationResult; export type PermissionGroupUpdateMutationOptions = Apollo.BaseMutationOptions; export const PermissionGroupListDocument = gql` query PermissionGroupList($after: String, $before: String, $first: Int, $last: Int, $filter: PermissionGroupFilterInput, $sort: PermissionGroupSortingInput) { permissionGroups( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...PermissionGroup } } pageInfo { ...PageInfo } } } ${PermissionGroupFragmentDoc} ${PageInfoFragmentDoc}`; /** * __usePermissionGroupListQuery__ * * To run a query within a React component, call `usePermissionGroupListQuery` and pass it any options that fit your needs. * When your component renders, `usePermissionGroupListQuery` 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 } = usePermissionGroupListQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function usePermissionGroupListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PermissionGroupListDocument, options); } export function usePermissionGroupListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PermissionGroupListDocument, options); } export type PermissionGroupListQueryHookResult = ReturnType; export type PermissionGroupListLazyQueryHookResult = ReturnType; export type PermissionGroupListQueryResult = Apollo.QueryResult; export const PermissionGroupDetailsDocument = gql` query PermissionGroupDetails($id: ID!, $userId: ID!) { permissionGroup(id: $id) { ...PermissionGroupDetails } user(id: $userId) { editableGroups { id } userPermissions { code sourcePermissionGroups(userId: $userId) { id } } } } ${PermissionGroupDetailsFragmentDoc}`; /** * __usePermissionGroupDetailsQuery__ * * To run a query within a React component, call `usePermissionGroupDetailsQuery` and pass it any options that fit your needs. * When your component renders, `usePermissionGroupDetailsQuery` 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 } = usePermissionGroupDetailsQuery({ * variables: { * id: // value for 'id' * userId: // value for 'userId' * }, * }); */ export function usePermissionGroupDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PermissionGroupDetailsDocument, options); } export function usePermissionGroupDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PermissionGroupDetailsDocument, options); } export type PermissionGroupDetailsQueryHookResult = ReturnType; export type PermissionGroupDetailsLazyQueryHookResult = ReturnType; export type PermissionGroupDetailsQueryResult = Apollo.QueryResult; export const PluginUpdateDocument = gql` mutation PluginUpdate($channelId: ID, $id: ID!, $input: PluginUpdateInput!) { pluginUpdate(channelId: $channelId, id: $id, input: $input) { errors { ...PluginError } plugin { ...PluginsDetails } } } ${PluginErrorFragmentDoc} ${PluginsDetailsFragmentDoc}`; export type PluginUpdateMutationFn = Apollo.MutationFunction; /** * __usePluginUpdateMutation__ * * To run a mutation, you first call `usePluginUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `usePluginUpdateMutation` 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 [pluginUpdateMutation, { data, loading, error }] = usePluginUpdateMutation({ * variables: { * channelId: // value for 'channelId' * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function usePluginUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(PluginUpdateDocument, options); } export type PluginUpdateMutationHookResult = ReturnType; export type PluginUpdateMutationResult = Apollo.MutationResult; export type PluginUpdateMutationOptions = Apollo.BaseMutationOptions; export const PluginsDocument = gql` query Plugins($first: Int, $after: String, $last: Int, $before: String, $filter: PluginFilterInput, $sort: PluginSortingInput) { plugins( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...PluginBase } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } } } ${PluginBaseFragmentDoc}`; /** * __usePluginsQuery__ * * To run a query within a React component, call `usePluginsQuery` and pass it any options that fit your needs. * When your component renders, `usePluginsQuery` 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 } = usePluginsQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function usePluginsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PluginsDocument, options); } export function usePluginsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PluginsDocument, options); } export type PluginsQueryHookResult = ReturnType; export type PluginsLazyQueryHookResult = ReturnType; export type PluginsQueryResult = Apollo.QueryResult; export const PluginDocument = gql` query Plugin($id: ID!) { plugin(id: $id) { ...PluginsDetails } } ${PluginsDetailsFragmentDoc}`; /** * __usePluginQuery__ * * To run a query within a React component, call `usePluginQuery` and pass it any options that fit your needs. * When your component renders, `usePluginQuery` 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 } = usePluginQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function usePluginQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PluginDocument, options); } export function usePluginLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PluginDocument, options); } export type PluginQueryHookResult = ReturnType; export type PluginLazyQueryHookResult = ReturnType; export type PluginQueryResult = Apollo.QueryResult; export const ProductTypeDeleteDocument = gql` mutation ProductTypeDelete($id: ID!) { productTypeDelete(id: $id) { errors { ...ProductTypeDeleteErrorFragment } productType { id } } } ${ProductTypeDeleteErrorFragmentFragmentDoc}`; export type ProductTypeDeleteMutationFn = Apollo.MutationFunction; /** * __useProductTypeDeleteMutation__ * * To run a mutation, you first call `useProductTypeDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductTypeDeleteMutation` 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 [productTypeDeleteMutation, { data, loading, error }] = useProductTypeDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductTypeDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductTypeDeleteDocument, options); } export type ProductTypeDeleteMutationHookResult = ReturnType; export type ProductTypeDeleteMutationResult = Apollo.MutationResult; export type ProductTypeDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductTypeBulkDeleteDocument = gql` mutation ProductTypeBulkDelete($ids: [ID!]!) { productTypeBulkDelete(ids: $ids) { errors { ...ProductTypeBulkDeleteErrorFragment } } } ${ProductTypeBulkDeleteErrorFragmentFragmentDoc}`; export type ProductTypeBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useProductTypeBulkDeleteMutation__ * * To run a mutation, you first call `useProductTypeBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductTypeBulkDeleteMutation` 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 [productTypeBulkDeleteMutation, { data, loading, error }] = useProductTypeBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useProductTypeBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductTypeBulkDeleteDocument, options); } export type ProductTypeBulkDeleteMutationHookResult = ReturnType; export type ProductTypeBulkDeleteMutationResult = Apollo.MutationResult; export type ProductTypeBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductTypeUpdateDocument = gql` mutation ProductTypeUpdate($id: ID!, $input: ProductTypeInput!) { productTypeUpdate(id: $id, input: $input) { errors { ...ProductTypeBulkUpdateErrorFragment } productType { ...ProductTypeDetails } } } ${ProductTypeBulkUpdateErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type ProductTypeUpdateMutationFn = Apollo.MutationFunction; /** * __useProductTypeUpdateMutation__ * * To run a mutation, you first call `useProductTypeUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductTypeUpdateMutation` 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 [productTypeUpdateMutation, { data, loading, error }] = useProductTypeUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useProductTypeUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductTypeUpdateDocument, options); } export type ProductTypeUpdateMutationHookResult = ReturnType; export type ProductTypeUpdateMutationResult = Apollo.MutationResult; export type ProductTypeUpdateMutationOptions = Apollo.BaseMutationOptions; export const AssignProductAttributeDocument = gql` mutation AssignProductAttribute($id: ID!, $operations: [ProductAttributeAssignInput!]!) { productAttributeAssign(productTypeId: $id, operations: $operations) { errors { ...ProductAttributeAssignErrorFragment } productType { ...ProductTypeDetails } } } ${ProductAttributeAssignErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type AssignProductAttributeMutationFn = Apollo.MutationFunction; /** * __useAssignProductAttributeMutation__ * * To run a mutation, you first call `useAssignProductAttributeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useAssignProductAttributeMutation` 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 [assignProductAttributeMutation, { data, loading, error }] = useAssignProductAttributeMutation({ * variables: { * id: // value for 'id' * operations: // value for 'operations' * }, * }); */ export function useAssignProductAttributeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(AssignProductAttributeDocument, options); } export type AssignProductAttributeMutationHookResult = ReturnType; export type AssignProductAttributeMutationResult = Apollo.MutationResult; export type AssignProductAttributeMutationOptions = Apollo.BaseMutationOptions; export const UnassignProductAttributeDocument = gql` mutation UnassignProductAttribute($id: ID!, $ids: [ID!]!) { productAttributeUnassign(productTypeId: $id, attributeIds: $ids) { errors { ...ProductAttributeUnassignErrorFragment } productType { ...ProductTypeDetails } } } ${ProductAttributeUnassignErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type UnassignProductAttributeMutationFn = Apollo.MutationFunction; /** * __useUnassignProductAttributeMutation__ * * To run a mutation, you first call `useUnassignProductAttributeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUnassignProductAttributeMutation` 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 [unassignProductAttributeMutation, { data, loading, error }] = useUnassignProductAttributeMutation({ * variables: { * id: // value for 'id' * ids: // value for 'ids' * }, * }); */ export function useUnassignProductAttributeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UnassignProductAttributeDocument, options); } export type UnassignProductAttributeMutationHookResult = ReturnType; export type UnassignProductAttributeMutationResult = Apollo.MutationResult; export type UnassignProductAttributeMutationOptions = Apollo.BaseMutationOptions; export const ProductTypeCreateDocument = gql` mutation ProductTypeCreate($input: ProductTypeInput!) { productTypeCreate(input: $input) { errors { ...ProductTypeCreateErrorFragment } productType { ...ProductTypeDetails } } } ${ProductTypeCreateErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type ProductTypeCreateMutationFn = Apollo.MutationFunction; /** * __useProductTypeCreateMutation__ * * To run a mutation, you first call `useProductTypeCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductTypeCreateMutation` 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 [productTypeCreateMutation, { data, loading, error }] = useProductTypeCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useProductTypeCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductTypeCreateDocument, options); } export type ProductTypeCreateMutationHookResult = ReturnType; export type ProductTypeCreateMutationResult = Apollo.MutationResult; export type ProductTypeCreateMutationOptions = Apollo.BaseMutationOptions; export const ProductTypeAttributeReorderDocument = gql` mutation ProductTypeAttributeReorder($move: ReorderInput!, $productTypeId: ID!, $type: ProductAttributeType!) { productTypeReorderAttributes( moves: [$move] productTypeId: $productTypeId type: $type ) { errors { ...ProductTypeReorderAttributesErrorFragment } productType { ...ProductTypeDetails } } } ${ProductTypeReorderAttributesErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type ProductTypeAttributeReorderMutationFn = Apollo.MutationFunction; /** * __useProductTypeAttributeReorderMutation__ * * To run a mutation, you first call `useProductTypeAttributeReorderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductTypeAttributeReorderMutation` 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 [productTypeAttributeReorderMutation, { data, loading, error }] = useProductTypeAttributeReorderMutation({ * variables: { * move: // value for 'move' * productTypeId: // value for 'productTypeId' * type: // value for 'type' * }, * }); */ export function useProductTypeAttributeReorderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductTypeAttributeReorderDocument, options); } export type ProductTypeAttributeReorderMutationHookResult = ReturnType; export type ProductTypeAttributeReorderMutationResult = Apollo.MutationResult; export type ProductTypeAttributeReorderMutationOptions = Apollo.BaseMutationOptions; export const ProductAttributeAssignmentUpdateDocument = gql` mutation ProductAttributeAssignmentUpdate($operations: [ProductAttributeAssignmentUpdateInput!]!, $productTypeId: ID!) { productAttributeAssignmentUpdate( operations: $operations productTypeId: $productTypeId ) { errors { ...ProductAttributeAssignmentUpdateErrorFragment } productType { ...ProductTypeDetails } } } ${ProductAttributeAssignmentUpdateErrorFragmentFragmentDoc} ${ProductTypeDetailsFragmentDoc}`; export type ProductAttributeAssignmentUpdateMutationFn = Apollo.MutationFunction; /** * __useProductAttributeAssignmentUpdateMutation__ * * To run a mutation, you first call `useProductAttributeAssignmentUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductAttributeAssignmentUpdateMutation` 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 [productAttributeAssignmentUpdateMutation, { data, loading, error }] = useProductAttributeAssignmentUpdateMutation({ * variables: { * operations: // value for 'operations' * productTypeId: // value for 'productTypeId' * }, * }); */ export function useProductAttributeAssignmentUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductAttributeAssignmentUpdateDocument, options); } export type ProductAttributeAssignmentUpdateMutationHookResult = ReturnType; export type ProductAttributeAssignmentUpdateMutationResult = Apollo.MutationResult; export type ProductAttributeAssignmentUpdateMutationOptions = Apollo.BaseMutationOptions; export const ProductTypeListDocument = gql` query ProductTypeList($after: String, $before: String, $first: Int, $last: Int, $filter: ProductTypeFilterInput, $sort: ProductTypeSortingInput) { productTypes( after: $after before: $before first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...ProductType } } pageInfo { ...PageInfo } } } ${ProductTypeFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useProductTypeListQuery__ * * To run a query within a React component, call `useProductTypeListQuery` and pass it any options that fit your needs. * When your component renders, `useProductTypeListQuery` 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 } = useProductTypeListQuery({ * variables: { * after: // value for 'after' * before: // value for 'before' * first: // value for 'first' * last: // value for 'last' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useProductTypeListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTypeListDocument, options); } export function useProductTypeListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTypeListDocument, options); } export type ProductTypeListQueryHookResult = ReturnType; export type ProductTypeListLazyQueryHookResult = ReturnType; export type ProductTypeListQueryResult = Apollo.QueryResult; export const ProductTypeDetailsDocument = gql` query ProductTypeDetails($id: ID!) { productType(id: $id) { ...ProductTypeDetails } shop { defaultWeightUnit } taxTypes { taxCode description } } ${ProductTypeDetailsFragmentDoc}`; /** * __useProductTypeDetailsQuery__ * * To run a query within a React component, call `useProductTypeDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useProductTypeDetailsQuery` 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 } = useProductTypeDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductTypeDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTypeDetailsDocument, options); } export function useProductTypeDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTypeDetailsDocument, options); } export type ProductTypeDetailsQueryHookResult = ReturnType; export type ProductTypeDetailsLazyQueryHookResult = ReturnType; export type ProductTypeDetailsQueryResult = Apollo.QueryResult; export const ProductTypeCreateDataDocument = gql` query ProductTypeCreateData { shop { defaultWeightUnit } taxTypes { taxCode description } } `; /** * __useProductTypeCreateDataQuery__ * * To run a query within a React component, call `useProductTypeCreateDataQuery` and pass it any options that fit your needs. * When your component renders, `useProductTypeCreateDataQuery` 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 } = useProductTypeCreateDataQuery({ * variables: { * }, * }); */ export function useProductTypeCreateDataQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTypeCreateDataDocument, options); } export function useProductTypeCreateDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTypeCreateDataDocument, options); } export type ProductTypeCreateDataQueryHookResult = ReturnType; export type ProductTypeCreateDataLazyQueryHookResult = ReturnType; export type ProductTypeCreateDataQueryResult = Apollo.QueryResult; export const ProductMediaCreateDocument = gql` mutation ProductMediaCreate($product: ID!, $image: Upload, $alt: String, $mediaUrl: String) { productMediaCreate( input: {alt: $alt, image: $image, product: $product, mediaUrl: $mediaUrl} ) { errors { ...ProductError } product { id media { ...ProductMedia } } } } ${ProductErrorFragmentDoc} ${ProductMediaFragmentDoc}`; export type ProductMediaCreateMutationFn = Apollo.MutationFunction; /** * __useProductMediaCreateMutation__ * * To run a mutation, you first call `useProductMediaCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductMediaCreateMutation` 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 [productMediaCreateMutation, { data, loading, error }] = useProductMediaCreateMutation({ * variables: { * product: // value for 'product' * image: // value for 'image' * alt: // value for 'alt' * mediaUrl: // value for 'mediaUrl' * }, * }); */ export function useProductMediaCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductMediaCreateDocument, options); } export type ProductMediaCreateMutationHookResult = ReturnType; export type ProductMediaCreateMutationResult = Apollo.MutationResult; export type ProductMediaCreateMutationOptions = Apollo.BaseMutationOptions; export const ProductDeleteDocument = gql` mutation ProductDelete($id: ID!) { productDelete(id: $id) { errors { ...ProductError } product { id } } } ${ProductErrorFragmentDoc}`; export type ProductDeleteMutationFn = Apollo.MutationFunction; /** * __useProductDeleteMutation__ * * To run a mutation, you first call `useProductDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductDeleteMutation` 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 [productDeleteMutation, { data, loading, error }] = useProductDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductDeleteDocument, options); } export type ProductDeleteMutationHookResult = ReturnType; export type ProductDeleteMutationResult = Apollo.MutationResult; export type ProductDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductMediaReorderDocument = gql` mutation ProductMediaReorder($productId: ID!, $mediaIds: [ID!]!) { productMediaReorder(productId: $productId, mediaIds: $mediaIds) { errors { ...ProductError } product { id media { id alt sortOrder url } } } } ${ProductErrorFragmentDoc}`; export type ProductMediaReorderMutationFn = Apollo.MutationFunction; /** * __useProductMediaReorderMutation__ * * To run a mutation, you first call `useProductMediaReorderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductMediaReorderMutation` 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 [productMediaReorderMutation, { data, loading, error }] = useProductMediaReorderMutation({ * variables: { * productId: // value for 'productId' * mediaIds: // value for 'mediaIds' * }, * }); */ export function useProductMediaReorderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductMediaReorderDocument, options); } export type ProductMediaReorderMutationHookResult = ReturnType; export type ProductMediaReorderMutationResult = Apollo.MutationResult; export type ProductMediaReorderMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantSetDefaultDocument = gql` mutation ProductVariantSetDefault($productId: ID!, $variantId: ID!) { productVariantSetDefault(productId: $productId, variantId: $variantId) { errors { ...ProductError } product { id defaultVariant { id name } variants { id name } } } } ${ProductErrorFragmentDoc}`; export type ProductVariantSetDefaultMutationFn = Apollo.MutationFunction; /** * __useProductVariantSetDefaultMutation__ * * To run a mutation, you first call `useProductVariantSetDefaultMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantSetDefaultMutation` 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 [productVariantSetDefaultMutation, { data, loading, error }] = useProductVariantSetDefaultMutation({ * variables: { * productId: // value for 'productId' * variantId: // value for 'variantId' * }, * }); */ export function useProductVariantSetDefaultMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantSetDefaultDocument, options); } export type ProductVariantSetDefaultMutationHookResult = ReturnType; export type ProductVariantSetDefaultMutationResult = Apollo.MutationResult; export type ProductVariantSetDefaultMutationOptions = Apollo.BaseMutationOptions; export const ProductUpdateDocument = gql` mutation ProductUpdate($id: ID!, $input: ProductInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productUpdate(id: $id, input: $input) { errors { ...ProductErrorWithAttributes } product { ...Product } } } ${ProductErrorWithAttributesFragmentDoc} ${ProductFragmentDoc}`; export type ProductUpdateMutationFn = Apollo.MutationFunction; /** * __useProductUpdateMutation__ * * To run a mutation, you first call `useProductUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductUpdateMutation` 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 [productUpdateMutation, { data, loading, error }] = useProductUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useProductUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductUpdateDocument, options); } export type ProductUpdateMutationHookResult = ReturnType; export type ProductUpdateMutationResult = Apollo.MutationResult; export type ProductUpdateMutationOptions = Apollo.BaseMutationOptions; export const SimpleProductUpdateDocument = gql` mutation SimpleProductUpdate($id: ID!, $input: ProductInput!, $productVariantId: ID!, $productVariantInput: ProductVariantInput!, $addStocks: [StockInput!]!, $deleteStocks: [ID!]!, $updateStocks: [StockInput!]!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productUpdate(id: $id, input: $input) { errors { ...ProductErrorWithAttributes } product { ...Product } } productVariantUpdate(id: $productVariantId, input: $productVariantInput) { errors { ...ProductErrorWithAttributes } productVariant { ...ProductVariant } } productVariantStocksCreate(stocks: $addStocks, variantId: $productVariantId) { errors { ...BulkStockError } productVariant { ...ProductVariant } } productVariantStocksDelete( warehouseIds: $deleteStocks variantId: $productVariantId ) { errors { ...StockError } productVariant { ...ProductVariant } } productVariantStocksUpdate(stocks: $updateStocks, variantId: $productVariantId) { errors { ...BulkStockError } productVariant { ...ProductVariant } } } ${ProductErrorWithAttributesFragmentDoc} ${ProductFragmentDoc} ${ProductVariantFragmentDoc} ${BulkStockErrorFragmentDoc} ${StockErrorFragmentDoc}`; export type SimpleProductUpdateMutationFn = Apollo.MutationFunction; /** * __useSimpleProductUpdateMutation__ * * To run a mutation, you first call `useSimpleProductUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useSimpleProductUpdateMutation` 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 [simpleProductUpdateMutation, { data, loading, error }] = useSimpleProductUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * productVariantId: // value for 'productVariantId' * productVariantInput: // value for 'productVariantInput' * addStocks: // value for 'addStocks' * deleteStocks: // value for 'deleteStocks' * updateStocks: // value for 'updateStocks' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useSimpleProductUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(SimpleProductUpdateDocument, options); } export type SimpleProductUpdateMutationHookResult = ReturnType; export type SimpleProductUpdateMutationResult = Apollo.MutationResult; export type SimpleProductUpdateMutationOptions = Apollo.BaseMutationOptions; export const ProductCreateDocument = gql` mutation ProductCreate($input: ProductCreateInput!) { productCreate(input: $input) { errors { ...ProductErrorWithAttributes } product { id } } } ${ProductErrorWithAttributesFragmentDoc}`; export type ProductCreateMutationFn = Apollo.MutationFunction; /** * __useProductCreateMutation__ * * To run a mutation, you first call `useProductCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductCreateMutation` 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 [productCreateMutation, { data, loading, error }] = useProductCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useProductCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductCreateDocument, options); } export type ProductCreateMutationHookResult = ReturnType; export type ProductCreateMutationResult = Apollo.MutationResult; export type ProductCreateMutationOptions = Apollo.BaseMutationOptions; export const VariantDeleteDocument = gql` mutation VariantDelete($id: ID!) { productVariantDelete(id: $id) { errors { ...ProductError } productVariant { id } } } ${ProductErrorFragmentDoc}`; export type VariantDeleteMutationFn = Apollo.MutationFunction; /** * __useVariantDeleteMutation__ * * To run a mutation, you first call `useVariantDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVariantDeleteMutation` 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 [variantDeleteMutation, { data, loading, error }] = useVariantDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useVariantDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VariantDeleteDocument, options); } export type VariantDeleteMutationHookResult = ReturnType; export type VariantDeleteMutationResult = Apollo.MutationResult; export type VariantDeleteMutationOptions = Apollo.BaseMutationOptions; export const VariantUpdateDocument = gql` mutation VariantUpdate($addStocks: [StockInput!]!, $removeStocks: [ID!]!, $id: ID!, $attributes: [AttributeValueInput!], $sku: String, $quantityLimitPerCustomer: Int, $trackInventory: Boolean!, $stocks: [StockInput!]!, $preorder: PreorderSettingsInput, $weight: WeightScalar, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productVariantStocksDelete(warehouseIds: $removeStocks, variantId: $id) { errors { ...ProductVariantStocksDeleteError } productVariant { id stocks { ...Stock } } } productVariantStocksCreate(stocks: $addStocks, variantId: $id) { errors { ...BulkStockError } productVariant { id stocks { ...Stock } } } productVariantStocksUpdate(stocks: $stocks, variantId: $id) { errors { ...BulkStockError } productVariant { ...ProductVariant } } productVariantUpdate( id: $id input: {attributes: $attributes, sku: $sku, trackInventory: $trackInventory, preorder: $preorder, weight: $weight, quantityLimitPerCustomer: $quantityLimitPerCustomer} ) { errors { ...ProductErrorWithAttributes } productVariant { ...ProductVariant } } } ${ProductVariantStocksDeleteErrorFragmentDoc} ${StockFragmentDoc} ${BulkStockErrorFragmentDoc} ${ProductVariantFragmentDoc} ${ProductErrorWithAttributesFragmentDoc}`; export type VariantUpdateMutationFn = Apollo.MutationFunction; /** * __useVariantUpdateMutation__ * * To run a mutation, you first call `useVariantUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVariantUpdateMutation` 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 [variantUpdateMutation, { data, loading, error }] = useVariantUpdateMutation({ * variables: { * addStocks: // value for 'addStocks' * removeStocks: // value for 'removeStocks' * id: // value for 'id' * attributes: // value for 'attributes' * sku: // value for 'sku' * quantityLimitPerCustomer: // value for 'quantityLimitPerCustomer' * trackInventory: // value for 'trackInventory' * stocks: // value for 'stocks' * preorder: // value for 'preorder' * weight: // value for 'weight' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useVariantUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VariantUpdateDocument, options); } export type VariantUpdateMutationHookResult = ReturnType; export type VariantUpdateMutationResult = Apollo.MutationResult; export type VariantUpdateMutationOptions = Apollo.BaseMutationOptions; export const VariantCreateDocument = gql` mutation VariantCreate($input: ProductVariantCreateInput!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productVariantCreate(input: $input) { errors { ...ProductErrorWithAttributes } productVariant { ...ProductVariant } } } ${ProductErrorWithAttributesFragmentDoc} ${ProductVariantFragmentDoc}`; export type VariantCreateMutationFn = Apollo.MutationFunction; /** * __useVariantCreateMutation__ * * To run a mutation, you first call `useVariantCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVariantCreateMutation` 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 [variantCreateMutation, { data, loading, error }] = useVariantCreateMutation({ * variables: { * input: // value for 'input' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useVariantCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VariantCreateDocument, options); } export type VariantCreateMutationHookResult = ReturnType; export type VariantCreateMutationResult = Apollo.MutationResult; export type VariantCreateMutationOptions = Apollo.BaseMutationOptions; export const ProductMediaDeleteDocument = gql` mutation ProductMediaDelete($id: ID!) { productMediaDelete(id: $id) { errors { ...ProductError } product { id media { id } } } } ${ProductErrorFragmentDoc}`; export type ProductMediaDeleteMutationFn = Apollo.MutationFunction; /** * __useProductMediaDeleteMutation__ * * To run a mutation, you first call `useProductMediaDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductMediaDeleteMutation` 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 [productMediaDeleteMutation, { data, loading, error }] = useProductMediaDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductMediaDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductMediaDeleteDocument, options); } export type ProductMediaDeleteMutationHookResult = ReturnType; export type ProductMediaDeleteMutationResult = Apollo.MutationResult; export type ProductMediaDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductMediaUpdateDocument = gql` mutation ProductMediaUpdate($id: ID!, $alt: String!) { productMediaUpdate(id: $id, input: {alt: $alt}) { errors { ...ProductError } product { id media { ...ProductMedia } } } } ${ProductErrorFragmentDoc} ${ProductMediaFragmentDoc}`; export type ProductMediaUpdateMutationFn = Apollo.MutationFunction; /** * __useProductMediaUpdateMutation__ * * To run a mutation, you first call `useProductMediaUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductMediaUpdateMutation` 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 [productMediaUpdateMutation, { data, loading, error }] = useProductMediaUpdateMutation({ * variables: { * id: // value for 'id' * alt: // value for 'alt' * }, * }); */ export function useProductMediaUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductMediaUpdateDocument, options); } export type ProductMediaUpdateMutationHookResult = ReturnType; export type ProductMediaUpdateMutationResult = Apollo.MutationResult; export type ProductMediaUpdateMutationOptions = Apollo.BaseMutationOptions; export const VariantMediaAssignDocument = gql` mutation VariantMediaAssign($variantId: ID!, $mediaId: ID!) { variantMediaAssign(variantId: $variantId, mediaId: $mediaId) { errors { ...ProductError } productVariant { id media { ...ProductMedia } product { id media { ...ProductMedia } variants { id name sku media { ...ProductMedia } } } } } } ${ProductErrorFragmentDoc} ${ProductMediaFragmentDoc}`; export type VariantMediaAssignMutationFn = Apollo.MutationFunction; /** * __useVariantMediaAssignMutation__ * * To run a mutation, you first call `useVariantMediaAssignMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVariantMediaAssignMutation` 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 [variantMediaAssignMutation, { data, loading, error }] = useVariantMediaAssignMutation({ * variables: { * variantId: // value for 'variantId' * mediaId: // value for 'mediaId' * }, * }); */ export function useVariantMediaAssignMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VariantMediaAssignDocument, options); } export type VariantMediaAssignMutationHookResult = ReturnType; export type VariantMediaAssignMutationResult = Apollo.MutationResult; export type VariantMediaAssignMutationOptions = Apollo.BaseMutationOptions; export const VariantMediaUnassignDocument = gql` mutation VariantMediaUnassign($variantId: ID!, $mediaId: ID!) { variantMediaUnassign(variantId: $variantId, mediaId: $mediaId) { errors { ...ProductError } productVariant { id media { ...ProductMedia } product { id media { ...ProductMedia } variants { id name sku media { ...ProductMedia } } } } } } ${ProductErrorFragmentDoc} ${ProductMediaFragmentDoc}`; export type VariantMediaUnassignMutationFn = Apollo.MutationFunction; /** * __useVariantMediaUnassignMutation__ * * To run a mutation, you first call `useVariantMediaUnassignMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useVariantMediaUnassignMutation` 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 [variantMediaUnassignMutation, { data, loading, error }] = useVariantMediaUnassignMutation({ * variables: { * variantId: // value for 'variantId' * mediaId: // value for 'mediaId' * }, * }); */ export function useVariantMediaUnassignMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(VariantMediaUnassignDocument, options); } export type VariantMediaUnassignMutationHookResult = ReturnType; export type VariantMediaUnassignMutationResult = Apollo.MutationResult; export type VariantMediaUnassignMutationOptions = Apollo.BaseMutationOptions; export const ProductBulkDeleteDocument = gql` mutation productBulkDelete($ids: [ID!]!) { productBulkDelete(ids: $ids) { errors { ...ProductError } } } ${ProductErrorFragmentDoc}`; export type ProductBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useProductBulkDeleteMutation__ * * To run a mutation, you first call `useProductBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductBulkDeleteMutation` 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 [productBulkDeleteMutation, { data, loading, error }] = useProductBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useProductBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductBulkDeleteDocument, options); } export type ProductBulkDeleteMutationHookResult = ReturnType; export type ProductBulkDeleteMutationResult = Apollo.MutationResult; export type ProductBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantBulkCreateDocument = gql` mutation ProductVariantBulkCreate($id: ID!, $inputs: [ProductVariantBulkCreateInput!]!) { productVariantBulkCreate(product: $id, variants: $inputs) { errors { ...BulkProductError } } } ${BulkProductErrorFragmentDoc}`; export type ProductVariantBulkCreateMutationFn = Apollo.MutationFunction; /** * __useProductVariantBulkCreateMutation__ * * To run a mutation, you first call `useProductVariantBulkCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantBulkCreateMutation` 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 [productVariantBulkCreateMutation, { data, loading, error }] = useProductVariantBulkCreateMutation({ * variables: { * id: // value for 'id' * inputs: // value for 'inputs' * }, * }); */ export function useProductVariantBulkCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantBulkCreateDocument, options); } export type ProductVariantBulkCreateMutationHookResult = ReturnType; export type ProductVariantBulkCreateMutationResult = Apollo.MutationResult; export type ProductVariantBulkCreateMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantBulkDeleteDocument = gql` mutation ProductVariantBulkDelete($ids: [ID!]!) { productVariantBulkDelete(ids: $ids) { errors { ...ProductError } } } ${ProductErrorFragmentDoc}`; export type ProductVariantBulkDeleteMutationFn = Apollo.MutationFunction; /** * __useProductVariantBulkDeleteMutation__ * * To run a mutation, you first call `useProductVariantBulkDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantBulkDeleteMutation` 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 [productVariantBulkDeleteMutation, { data, loading, error }] = useProductVariantBulkDeleteMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useProductVariantBulkDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantBulkDeleteDocument, options); } export type ProductVariantBulkDeleteMutationHookResult = ReturnType; export type ProductVariantBulkDeleteMutationResult = Apollo.MutationResult; export type ProductVariantBulkDeleteMutationOptions = Apollo.BaseMutationOptions; export const ProductExportDocument = gql` mutation ProductExport($input: ExportProductsInput!) { exportProducts(input: $input) { exportFile { ...ExportFile } errors { ...ExportError } } } ${ExportFileFragmentDoc} ${ExportErrorFragmentDoc}`; export type ProductExportMutationFn = Apollo.MutationFunction; /** * __useProductExportMutation__ * * To run a mutation, you first call `useProductExportMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductExportMutation` 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 [productExportMutation, { data, loading, error }] = useProductExportMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useProductExportMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductExportDocument, options); } export type ProductExportMutationHookResult = ReturnType; export type ProductExportMutationResult = Apollo.MutationResult; export type ProductExportMutationOptions = Apollo.BaseMutationOptions; export const ProductChannelListingUpdateDocument = gql` mutation ProductChannelListingUpdate($id: ID!, $input: ProductChannelListingUpdateInput!) { productChannelListingUpdate(id: $id, input: $input) { product { id channelListings { ...ChannelListingProductWithoutPricing } variants { id channelListings { ...ChannelListingProductVariant } } } errors { ...ProductChannelListingError } } } ${ChannelListingProductWithoutPricingFragmentDoc} ${ChannelListingProductVariantFragmentDoc} ${ProductChannelListingErrorFragmentDoc}`; export type ProductChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useProductChannelListingUpdateMutation__ * * To run a mutation, you first call `useProductChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductChannelListingUpdateMutation` 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 [productChannelListingUpdateMutation, { data, loading, error }] = useProductChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useProductChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductChannelListingUpdateDocument, options); } export type ProductChannelListingUpdateMutationHookResult = ReturnType; export type ProductChannelListingUpdateMutationResult = Apollo.MutationResult; export type ProductChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantReorderDocument = gql` mutation ProductVariantReorder($move: ReorderInput!, $productId: ID!) { productVariantReorder(moves: [$move], productId: $productId) { errors { ...ProductError } product { id variants { id } } } } ${ProductErrorFragmentDoc}`; export type ProductVariantReorderMutationFn = Apollo.MutationFunction; /** * __useProductVariantReorderMutation__ * * To run a mutation, you first call `useProductVariantReorderMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantReorderMutation` 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 [productVariantReorderMutation, { data, loading, error }] = useProductVariantReorderMutation({ * variables: { * move: // value for 'move' * productId: // value for 'productId' * }, * }); */ export function useProductVariantReorderMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantReorderDocument, options); } export type ProductVariantReorderMutationHookResult = ReturnType; export type ProductVariantReorderMutationResult = Apollo.MutationResult; export type ProductVariantReorderMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantChannelListingUpdateDocument = gql` mutation ProductVariantChannelListingUpdate($id: ID!, $input: [ProductVariantChannelListingAddInput!]!) { productVariantChannelListingUpdate(id: $id, input: $input) { variant { id channelListings { ...ChannelListingProductVariant } product { id channelListings { ...ChannelListingProductWithoutPricing } } } errors { ...ProductChannelListingError } } } ${ChannelListingProductVariantFragmentDoc} ${ChannelListingProductWithoutPricingFragmentDoc} ${ProductChannelListingErrorFragmentDoc}`; export type ProductVariantChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useProductVariantChannelListingUpdateMutation__ * * To run a mutation, you first call `useProductVariantChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantChannelListingUpdateMutation` 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 [productVariantChannelListingUpdateMutation, { data, loading, error }] = useProductVariantChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useProductVariantChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantChannelListingUpdateDocument, options); } export type ProductVariantChannelListingUpdateMutationHookResult = ReturnType; export type ProductVariantChannelListingUpdateMutationResult = Apollo.MutationResult; export type ProductVariantChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const ProductVariantPreorderDeactivateDocument = gql` mutation ProductVariantPreorderDeactivate($id: ID!) { productVariantPreorderDeactivate(id: $id) { productVariant { id preorder { ...Preorder } } errors { ...ProductError } } } ${PreorderFragmentDoc} ${ProductErrorFragmentDoc}`; export type ProductVariantPreorderDeactivateMutationFn = Apollo.MutationFunction; /** * __useProductVariantPreorderDeactivateMutation__ * * To run a mutation, you first call `useProductVariantPreorderDeactivateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useProductVariantPreorderDeactivateMutation` 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 [productVariantPreorderDeactivateMutation, { data, loading, error }] = useProductVariantPreorderDeactivateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductVariantPreorderDeactivateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ProductVariantPreorderDeactivateDocument, options); } export type ProductVariantPreorderDeactivateMutationHookResult = ReturnType; export type ProductVariantPreorderDeactivateMutationResult = Apollo.MutationResult; export type ProductVariantPreorderDeactivateMutationOptions = Apollo.BaseMutationOptions; export const InitialProductFilterAttributesDocument = gql` query InitialProductFilterAttributes { attributes(first: 100, filter: {type: PRODUCT_TYPE}) { edges { node { id name inputType slug } } } } `; /** * __useInitialProductFilterAttributesQuery__ * * To run a query within a React component, call `useInitialProductFilterAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useInitialProductFilterAttributesQuery` 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 } = useInitialProductFilterAttributesQuery({ * variables: { * }, * }); */ export function useInitialProductFilterAttributesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(InitialProductFilterAttributesDocument, options); } export function useInitialProductFilterAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(InitialProductFilterAttributesDocument, options); } export type InitialProductFilterAttributesQueryHookResult = ReturnType; export type InitialProductFilterAttributesLazyQueryHookResult = ReturnType; export type InitialProductFilterAttributesQueryResult = Apollo.QueryResult; export const InitialProductFilterCategoriesDocument = gql` query InitialProductFilterCategories($categories: [ID!]) { categories(first: 100, filter: {ids: $categories}) { edges { node { id name } } } } `; /** * __useInitialProductFilterCategoriesQuery__ * * To run a query within a React component, call `useInitialProductFilterCategoriesQuery` and pass it any options that fit your needs. * When your component renders, `useInitialProductFilterCategoriesQuery` 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 } = useInitialProductFilterCategoriesQuery({ * variables: { * categories: // value for 'categories' * }, * }); */ export function useInitialProductFilterCategoriesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(InitialProductFilterCategoriesDocument, options); } export function useInitialProductFilterCategoriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(InitialProductFilterCategoriesDocument, options); } export type InitialProductFilterCategoriesQueryHookResult = ReturnType; export type InitialProductFilterCategoriesLazyQueryHookResult = ReturnType; export type InitialProductFilterCategoriesQueryResult = Apollo.QueryResult; export const InitialProductFilterCollectionsDocument = gql` query InitialProductFilterCollections($collections: [ID!]) { collections(first: 100, filter: {ids: $collections}) { edges { node { id name } } } } `; /** * __useInitialProductFilterCollectionsQuery__ * * To run a query within a React component, call `useInitialProductFilterCollectionsQuery` and pass it any options that fit your needs. * When your component renders, `useInitialProductFilterCollectionsQuery` 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 } = useInitialProductFilterCollectionsQuery({ * variables: { * collections: // value for 'collections' * }, * }); */ export function useInitialProductFilterCollectionsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(InitialProductFilterCollectionsDocument, options); } export function useInitialProductFilterCollectionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(InitialProductFilterCollectionsDocument, options); } export type InitialProductFilterCollectionsQueryHookResult = ReturnType; export type InitialProductFilterCollectionsLazyQueryHookResult = ReturnType; export type InitialProductFilterCollectionsQueryResult = Apollo.QueryResult; export const InitialProductFilterProductTypesDocument = gql` query InitialProductFilterProductTypes($productTypes: [ID!]) { productTypes(first: 100, filter: {ids: $productTypes}) { edges { node { id name } } } } `; /** * __useInitialProductFilterProductTypesQuery__ * * To run a query within a React component, call `useInitialProductFilterProductTypesQuery` and pass it any options that fit your needs. * When your component renders, `useInitialProductFilterProductTypesQuery` 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 } = useInitialProductFilterProductTypesQuery({ * variables: { * productTypes: // value for 'productTypes' * }, * }); */ export function useInitialProductFilterProductTypesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(InitialProductFilterProductTypesDocument, options); } export function useInitialProductFilterProductTypesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(InitialProductFilterProductTypesDocument, options); } export type InitialProductFilterProductTypesQueryHookResult = ReturnType; export type InitialProductFilterProductTypesLazyQueryHookResult = ReturnType; export type InitialProductFilterProductTypesQueryResult = Apollo.QueryResult; export const ProductListDocument = gql` query ProductList($first: Int, $after: String, $last: Int, $before: String, $filter: ProductFilterInput, $channel: String, $sort: ProductOrder, $hasChannel: Boolean!, $hasSelectedAttributes: Boolean!) { products( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort channel: $channel ) { edges { node { ...ProductWithChannelListings updatedAt attributes @include(if: $hasSelectedAttributes) { ...ProductListAttribute } } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } totalCount } } ${ProductWithChannelListingsFragmentDoc} ${ProductListAttributeFragmentDoc}`; /** * __useProductListQuery__ * * To run a query within a React component, call `useProductListQuery` and pass it any options that fit your needs. * When your component renders, `useProductListQuery` 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 } = useProductListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * channel: // value for 'channel' * sort: // value for 'sort' * hasChannel: // value for 'hasChannel' * hasSelectedAttributes: // value for 'hasSelectedAttributes' * }, * }); */ export function useProductListQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductListDocument, options); } export function useProductListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductListDocument, options); } export type ProductListQueryHookResult = ReturnType; export type ProductListLazyQueryHookResult = ReturnType; export type ProductListQueryResult = Apollo.QueryResult; export const ProductCountDocument = gql` query ProductCount($filter: ProductFilterInput, $channel: String) { products(filter: $filter, channel: $channel) { totalCount } } `; /** * __useProductCountQuery__ * * To run a query within a React component, call `useProductCountQuery` and pass it any options that fit your needs. * When your component renders, `useProductCountQuery` 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 } = useProductCountQuery({ * variables: { * filter: // value for 'filter' * channel: // value for 'channel' * }, * }); */ export function useProductCountQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductCountDocument, options); } export function useProductCountLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductCountDocument, options); } export type ProductCountQueryHookResult = ReturnType; export type ProductCountLazyQueryHookResult = ReturnType; export type ProductCountQueryResult = Apollo.QueryResult; export const ProductDetailsDocument = gql` query ProductDetails($id: ID!, $channel: String, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { product(id: $id, channel: $channel) { ...Product } taxTypes { ...TaxType } } ${ProductFragmentDoc} ${TaxTypeFragmentDoc}`; /** * __useProductDetailsQuery__ * * To run a query within a React component, call `useProductDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useProductDetailsQuery` 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 } = useProductDetailsQuery({ * variables: { * id: // value for 'id' * channel: // value for 'channel' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useProductDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductDetailsDocument, options); } export function useProductDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductDetailsDocument, options); } export type ProductDetailsQueryHookResult = ReturnType; export type ProductDetailsLazyQueryHookResult = ReturnType; export type ProductDetailsQueryResult = Apollo.QueryResult; export const ProductTypeDocument = gql` query ProductType($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productType(id: $id) { id name hasVariants productAttributes { id inputType entityType slug name valueRequired unit choices( first: $firstValues after: $afterValues last: $lastValues before: $beforeValues ) { ...AttributeValueList } } taxType { ...TaxType } } } ${AttributeValueListFragmentDoc} ${TaxTypeFragmentDoc}`; /** * __useProductTypeQuery__ * * To run a query within a React component, call `useProductTypeQuery` and pass it any options that fit your needs. * When your component renders, `useProductTypeQuery` 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 } = useProductTypeQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useProductTypeQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTypeDocument, options); } export function useProductTypeLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTypeDocument, options); } export type ProductTypeQueryHookResult = ReturnType; export type ProductTypeLazyQueryHookResult = ReturnType; export type ProductTypeQueryResult = Apollo.QueryResult; export const ProductVariantDetailsDocument = gql` query ProductVariantDetails($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { productVariant(id: $id) { ...ProductVariant } } ${ProductVariantFragmentDoc}`; /** * __useProductVariantDetailsQuery__ * * To run a query within a React component, call `useProductVariantDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useProductVariantDetailsQuery` 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 } = useProductVariantDetailsQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useProductVariantDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductVariantDetailsDocument, options); } export function useProductVariantDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductVariantDetailsDocument, options); } export type ProductVariantDetailsQueryHookResult = ReturnType; export type ProductVariantDetailsLazyQueryHookResult = ReturnType; export type ProductVariantDetailsQueryResult = Apollo.QueryResult; export const ProductVariantCreateDataDocument = gql` query ProductVariantCreateData($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { product(id: $id) { id media { id sortOrder url } channelListings { channel { id name currencyCode } } name productType { id selectionVariantAttributes: variantAttributes( variantSelection: VARIANT_SELECTION ) { ...VariantAttribute } nonSelectionVariantAttributes: variantAttributes( variantSelection: NOT_VARIANT_SELECTION ) { ...VariantAttribute } } thumbnail { url } variants { id name sku media { id url type } } } } ${VariantAttributeFragmentDoc}`; /** * __useProductVariantCreateDataQuery__ * * To run a query within a React component, call `useProductVariantCreateDataQuery` and pass it any options that fit your needs. * When your component renders, `useProductVariantCreateDataQuery` 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 } = useProductVariantCreateDataQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useProductVariantCreateDataQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductVariantCreateDataDocument, options); } export function useProductVariantCreateDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductVariantCreateDataDocument, options); } export type ProductVariantCreateDataQueryHookResult = ReturnType; export type ProductVariantCreateDataLazyQueryHookResult = ReturnType; export type ProductVariantCreateDataQueryResult = Apollo.QueryResult; export const ProductMediaByIdDocument = gql` query ProductMediaById($productId: ID!, $mediaId: ID!) { product(id: $productId) { id name mainImage: mediaById(id: $mediaId) { id alt url type oembedData } media { id url(size: 48) alt type oembedData } } } `; /** * __useProductMediaByIdQuery__ * * To run a query within a React component, call `useProductMediaByIdQuery` and pass it any options that fit your needs. * When your component renders, `useProductMediaByIdQuery` 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 } = useProductMediaByIdQuery({ * variables: { * productId: // value for 'productId' * mediaId: // value for 'mediaId' * }, * }); */ export function useProductMediaByIdQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductMediaByIdDocument, options); } export function useProductMediaByIdLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductMediaByIdDocument, options); } export type ProductMediaByIdQueryHookResult = ReturnType; export type ProductMediaByIdLazyQueryHookResult = ReturnType; export type ProductMediaByIdQueryResult = Apollo.QueryResult; export const GridAttributesDocument = gql` query GridAttributes($ids: [ID!]!) { grid: attributes(first: 25, filter: {ids: $ids}) { edges { node { id name } } } } `; /** * __useGridAttributesQuery__ * * To run a query within a React component, call `useGridAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useGridAttributesQuery` 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 } = useGridAttributesQuery({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useGridAttributesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(GridAttributesDocument, options); } export function useGridAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(GridAttributesDocument, options); } export type GridAttributesQueryHookResult = ReturnType; export type GridAttributesLazyQueryHookResult = ReturnType; export type GridAttributesQueryResult = Apollo.QueryResult; export const CreateMultipleVariantsDataDocument = gql` query CreateMultipleVariantsData($id: ID!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { product(id: $id) { ...ProductVariantAttributes } warehouses(first: 20) { edges { node { ...Warehouse } } } } ${ProductVariantAttributesFragmentDoc} ${WarehouseFragmentDoc}`; /** * __useCreateMultipleVariantsDataQuery__ * * To run a query within a React component, call `useCreateMultipleVariantsDataQuery` and pass it any options that fit your needs. * When your component renders, `useCreateMultipleVariantsDataQuery` 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 } = useCreateMultipleVariantsDataQuery({ * variables: { * id: // value for 'id' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useCreateMultipleVariantsDataQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CreateMultipleVariantsDataDocument, options); } export function useCreateMultipleVariantsDataLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CreateMultipleVariantsDataDocument, options); } export type CreateMultipleVariantsDataQueryHookResult = ReturnType; export type CreateMultipleVariantsDataLazyQueryHookResult = ReturnType; export type CreateMultipleVariantsDataQueryResult = Apollo.QueryResult; export const SearchAttributesDocument = gql` query SearchAttributes($after: String, $first: Int!, $query: String!) { search: attributes(after: $after, first: $first, filter: {search: $query}) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchAttributesQuery__ * * To run a query within a React component, call `useSearchAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchAttributesQuery` 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 } = useSearchAttributesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchAttributesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchAttributesDocument, options); } export function useSearchAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchAttributesDocument, options); } export type SearchAttributesQueryHookResult = ReturnType; export type SearchAttributesLazyQueryHookResult = ReturnType; export type SearchAttributesQueryResult = Apollo.QueryResult; export const SearchAttributeValuesDocument = gql` query SearchAttributeValues($id: ID, $after: String, $first: Int!, $query: String!) { attribute(id: $id) { id choices(after: $after, first: $first, filter: {search: $query}) { edges { node { ...AttributeValueDetails } } pageInfo { ...PageInfo } } } } ${AttributeValueDetailsFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useSearchAttributeValuesQuery__ * * To run a query within a React component, call `useSearchAttributeValuesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchAttributeValuesQuery` 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 } = useSearchAttributeValuesQuery({ * variables: { * id: // value for 'id' * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchAttributeValuesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchAttributeValuesDocument, options); } export function useSearchAttributeValuesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchAttributeValuesDocument, options); } export type SearchAttributeValuesQueryHookResult = ReturnType; export type SearchAttributeValuesLazyQueryHookResult = ReturnType; export type SearchAttributeValuesQueryResult = Apollo.QueryResult; export const SearchAvailableInGridAttributesDocument = gql` query SearchAvailableInGridAttributes($first: Int!, $after: String, $query: String!) { availableInGrid: attributes( first: $first after: $after filter: {isVariantOnly: false, type: PRODUCT_TYPE, search: $query} ) { edges { node { id name } } pageInfo { ...PageInfo } totalCount } } ${PageInfoFragmentDoc}`; /** * __useSearchAvailableInGridAttributesQuery__ * * To run a query within a React component, call `useSearchAvailableInGridAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchAvailableInGridAttributesQuery` 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 } = useSearchAvailableInGridAttributesQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * query: // value for 'query' * }, * }); */ export function useSearchAvailableInGridAttributesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchAvailableInGridAttributesDocument, options); } export function useSearchAvailableInGridAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchAvailableInGridAttributesDocument, options); } export type SearchAvailableInGridAttributesQueryHookResult = ReturnType; export type SearchAvailableInGridAttributesLazyQueryHookResult = ReturnType; export type SearchAvailableInGridAttributesQueryResult = Apollo.QueryResult; export const SearchAvailablePageAttributesDocument = gql` query SearchAvailablePageAttributes($id: ID!, $after: String, $first: Int!, $query: String!) { pageType(id: $id) { id availableAttributes(after: $after, first: $first, filter: {search: $query}) { edges { node { ...AvailableAttribute } } pageInfo { ...PageInfo } } } } ${AvailableAttributeFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useSearchAvailablePageAttributesQuery__ * * To run a query within a React component, call `useSearchAvailablePageAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchAvailablePageAttributesQuery` 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 } = useSearchAvailablePageAttributesQuery({ * variables: { * id: // value for 'id' * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchAvailablePageAttributesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchAvailablePageAttributesDocument, options); } export function useSearchAvailablePageAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchAvailablePageAttributesDocument, options); } export type SearchAvailablePageAttributesQueryHookResult = ReturnType; export type SearchAvailablePageAttributesLazyQueryHookResult = ReturnType; export type SearchAvailablePageAttributesQueryResult = Apollo.QueryResult; export const SearchAvailableProductAttributesDocument = gql` query SearchAvailableProductAttributes($id: ID!, $after: String, $first: Int!, $query: String!) { productType(id: $id) { id availableAttributes(after: $after, first: $first, filter: {search: $query}) { edges { node { ...AvailableAttribute } } pageInfo { ...PageInfo } } } } ${AvailableAttributeFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useSearchAvailableProductAttributesQuery__ * * To run a query within a React component, call `useSearchAvailableProductAttributesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchAvailableProductAttributesQuery` 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 } = useSearchAvailableProductAttributesQuery({ * variables: { * id: // value for 'id' * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchAvailableProductAttributesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchAvailableProductAttributesDocument, options); } export function useSearchAvailableProductAttributesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchAvailableProductAttributesDocument, options); } export type SearchAvailableProductAttributesQueryHookResult = ReturnType; export type SearchAvailableProductAttributesLazyQueryHookResult = ReturnType; export type SearchAvailableProductAttributesQueryResult = Apollo.QueryResult; export const SearchCategoriesDocument = gql` query SearchCategories($after: String, $first: Int!, $query: String!) { search: categories(after: $after, first: $first, filter: {search: $query}) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchCategoriesQuery__ * * To run a query within a React component, call `useSearchCategoriesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCategoriesQuery` 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 } = useSearchCategoriesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchCategoriesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchCategoriesDocument, options); } export function useSearchCategoriesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchCategoriesDocument, options); } export type SearchCategoriesQueryHookResult = ReturnType; export type SearchCategoriesLazyQueryHookResult = ReturnType; export type SearchCategoriesQueryResult = Apollo.QueryResult; export const SearchCollectionsDocument = gql` query SearchCollections($after: String, $first: Int!, $query: String!) { search: collections(after: $after, first: $first, filter: {search: $query}) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchCollectionsQuery__ * * To run a query within a React component, call `useSearchCollectionsQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCollectionsQuery` 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 } = useSearchCollectionsQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchCollectionsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchCollectionsDocument, options); } export function useSearchCollectionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchCollectionsDocument, options); } export type SearchCollectionsQueryHookResult = ReturnType; export type SearchCollectionsLazyQueryHookResult = ReturnType; export type SearchCollectionsQueryResult = Apollo.QueryResult; export const SearchCustomersDocument = gql` query SearchCustomers($after: String, $first: Int!, $query: String!) { search: customers(after: $after, first: $first, filter: {search: $query}) { edges { node { id email firstName lastName } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchCustomersQuery__ * * To run a query within a React component, call `useSearchCustomersQuery` and pass it any options that fit your needs. * When your component renders, `useSearchCustomersQuery` 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 } = useSearchCustomersQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchCustomersQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchCustomersDocument, options); } export function useSearchCustomersLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchCustomersDocument, options); } export type SearchCustomersQueryHookResult = ReturnType; export type SearchCustomersLazyQueryHookResult = ReturnType; export type SearchCustomersQueryResult = Apollo.QueryResult; export const SearchGiftCardTagsDocument = gql` query SearchGiftCardTags($query: String!, $first: Int!, $after: String, $last: Int, $before: String) { search: giftCardTags( filter: {search: $query} first: $first after: $after last: $last before: $before ) { totalCount edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchGiftCardTagsQuery__ * * To run a query within a React component, call `useSearchGiftCardTagsQuery` and pass it any options that fit your needs. * When your component renders, `useSearchGiftCardTagsQuery` 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 } = useSearchGiftCardTagsQuery({ * variables: { * query: // value for 'query' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useSearchGiftCardTagsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchGiftCardTagsDocument, options); } export function useSearchGiftCardTagsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchGiftCardTagsDocument, options); } export type SearchGiftCardTagsQueryHookResult = ReturnType; export type SearchGiftCardTagsLazyQueryHookResult = ReturnType; export type SearchGiftCardTagsQueryResult = Apollo.QueryResult; export const SearchOrderVariantDocument = gql` query SearchOrderVariant($channel: String!, $first: Int!, $query: String!, $after: String, $address: AddressInput, $isPublished: Boolean, $stockAvailability: StockAvailability) { search: products( first: $first after: $after filter: {search: $query, isPublished: $isPublished, stockAvailability: $stockAvailability} channel: $channel ) { edges { node { id name thumbnail { url } variants { id name sku pricing(address: $address) { priceUndiscounted { gross { ...Money } } price { gross { ...Money } } onSale } channelListings { channel { id isActive name currencyCode } price { amount currency } } } } } pageInfo { endCursor hasNextPage hasPreviousPage startCursor } } } ${MoneyFragmentDoc}`; /** * __useSearchOrderVariantQuery__ * * To run a query within a React component, call `useSearchOrderVariantQuery` and pass it any options that fit your needs. * When your component renders, `useSearchOrderVariantQuery` 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 } = useSearchOrderVariantQuery({ * variables: { * channel: // value for 'channel' * first: // value for 'first' * query: // value for 'query' * after: // value for 'after' * address: // value for 'address' * isPublished: // value for 'isPublished' * stockAvailability: // value for 'stockAvailability' * }, * }); */ export function useSearchOrderVariantQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchOrderVariantDocument, options); } export function useSearchOrderVariantLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchOrderVariantDocument, options); } export type SearchOrderVariantQueryHookResult = ReturnType; export type SearchOrderVariantLazyQueryHookResult = ReturnType; export type SearchOrderVariantQueryResult = Apollo.QueryResult; export const SearchPagesDocument = gql` query SearchPages($after: String, $first: Int!, $query: String!) { search: pages(after: $after, first: $first, filter: {search: $query}) { edges { node { id title } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchPagesQuery__ * * To run a query within a React component, call `useSearchPagesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchPagesQuery` 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 } = useSearchPagesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchPagesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchPagesDocument, options); } export function useSearchPagesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchPagesDocument, options); } export type SearchPagesQueryHookResult = ReturnType; export type SearchPagesLazyQueryHookResult = ReturnType; export type SearchPagesQueryResult = Apollo.QueryResult; export const SearchPageTypesDocument = gql` query SearchPageTypes($after: String, $first: Int!, $query: String!) { search: pageTypes(after: $after, first: $first, filter: {search: $query}) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchPageTypesQuery__ * * To run a query within a React component, call `useSearchPageTypesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchPageTypesQuery` 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 } = useSearchPageTypesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchPageTypesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchPageTypesDocument, options); } export function useSearchPageTypesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchPageTypesDocument, options); } export type SearchPageTypesQueryHookResult = ReturnType; export type SearchPageTypesLazyQueryHookResult = ReturnType; export type SearchPageTypesQueryResult = Apollo.QueryResult; export const SearchPermissionGroupsDocument = gql` query SearchPermissionGroups($after: String, $first: Int!, $query: String!) { search: permissionGroups(after: $after, first: $first, filter: {search: $query}) { edges { node { id name userCanManage } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchPermissionGroupsQuery__ * * To run a query within a React component, call `useSearchPermissionGroupsQuery` and pass it any options that fit your needs. * When your component renders, `useSearchPermissionGroupsQuery` 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 } = useSearchPermissionGroupsQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchPermissionGroupsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchPermissionGroupsDocument, options); } export function useSearchPermissionGroupsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchPermissionGroupsDocument, options); } export type SearchPermissionGroupsQueryHookResult = ReturnType; export type SearchPermissionGroupsLazyQueryHookResult = ReturnType; export type SearchPermissionGroupsQueryResult = Apollo.QueryResult; export const SearchProductsDocument = gql` query SearchProducts($after: String, $first: Int!, $query: String!) { search: products(after: $after, first: $first, filter: {search: $query}) { edges { node { id name thumbnail { url } variants { id name sku channelListings { channel { id isActive name currencyCode } price { amount currency } } } } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchProductsQuery__ * * To run a query within a React component, call `useSearchProductsQuery` and pass it any options that fit your needs. * When your component renders, `useSearchProductsQuery` 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 } = useSearchProductsQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchProductsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchProductsDocument, options); } export function useSearchProductsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchProductsDocument, options); } export type SearchProductsQueryHookResult = ReturnType; export type SearchProductsLazyQueryHookResult = ReturnType; export type SearchProductsQueryResult = Apollo.QueryResult; export const SearchProductTypesDocument = gql` query SearchProductTypes($after: String, $first: Int!, $query: String!) { search: productTypes(after: $after, first: $first, filter: {search: $query}) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchProductTypesQuery__ * * To run a query within a React component, call `useSearchProductTypesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchProductTypesQuery` 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 } = useSearchProductTypesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchProductTypesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchProductTypesDocument, options); } export function useSearchProductTypesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchProductTypesDocument, options); } export type SearchProductTypesQueryHookResult = ReturnType; export type SearchProductTypesLazyQueryHookResult = ReturnType; export type SearchProductTypesQueryResult = Apollo.QueryResult; export const SearchShippingZonesDocument = gql` query SearchShippingZones($query: String!, $first: Int!, $after: String, $last: Int, $before: String) { search: shippingZones( filter: {search: $query} first: $first after: $after last: $last before: $before ) { totalCount edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchShippingZonesQuery__ * * To run a query within a React component, call `useSearchShippingZonesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchShippingZonesQuery` 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 } = useSearchShippingZonesQuery({ * variables: { * query: // value for 'query' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useSearchShippingZonesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchShippingZonesDocument, options); } export function useSearchShippingZonesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchShippingZonesDocument, options); } export type SearchShippingZonesQueryHookResult = ReturnType; export type SearchShippingZonesLazyQueryHookResult = ReturnType; export type SearchShippingZonesQueryResult = Apollo.QueryResult; export const SearchStaffMembersDocument = gql` query SearchStaffMembers($after: String, $first: Int!, $query: String!) { search: staffUsers(after: $after, first: $first, filter: {search: $query}) { edges { node { id email firstName lastName isActive avatar { alt url } } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchStaffMembersQuery__ * * To run a query within a React component, call `useSearchStaffMembersQuery` and pass it any options that fit your needs. * When your component renders, `useSearchStaffMembersQuery` 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 } = useSearchStaffMembersQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchStaffMembersQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchStaffMembersDocument, options); } export function useSearchStaffMembersLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchStaffMembersDocument, options); } export type SearchStaffMembersQueryHookResult = ReturnType; export type SearchStaffMembersLazyQueryHookResult = ReturnType; export type SearchStaffMembersQueryResult = Apollo.QueryResult; export const SearchWarehousesDocument = gql` query SearchWarehouses($after: String, $first: Int!, $query: String!) { search: warehouses( after: $after first: $first sortBy: {direction: ASC, field: NAME} filter: {search: $query} ) { edges { node { id name } } pageInfo { ...PageInfo } } } ${PageInfoFragmentDoc}`; /** * __useSearchWarehousesQuery__ * * To run a query within a React component, call `useSearchWarehousesQuery` and pass it any options that fit your needs. * When your component renders, `useSearchWarehousesQuery` 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 } = useSearchWarehousesQuery({ * variables: { * after: // value for 'after' * first: // value for 'first' * query: // value for 'query' * }, * }); */ export function useSearchWarehousesQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SearchWarehousesDocument, options); } export function useSearchWarehousesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SearchWarehousesDocument, options); } export type SearchWarehousesQueryHookResult = ReturnType; export type SearchWarehousesLazyQueryHookResult = ReturnType; export type SearchWarehousesQueryResult = Apollo.QueryResult; export const DeleteShippingZoneDocument = gql` mutation DeleteShippingZone($id: ID!) { shippingZoneDelete(id: $id) { errors { ...ShippingError } } } ${ShippingErrorFragmentDoc}`; export type DeleteShippingZoneMutationFn = Apollo.MutationFunction; /** * __useDeleteShippingZoneMutation__ * * To run a mutation, you first call `useDeleteShippingZoneMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteShippingZoneMutation` 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 [deleteShippingZoneMutation, { data, loading, error }] = useDeleteShippingZoneMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeleteShippingZoneMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(DeleteShippingZoneDocument, options); } export type DeleteShippingZoneMutationHookResult = ReturnType; export type DeleteShippingZoneMutationResult = Apollo.MutationResult; export type DeleteShippingZoneMutationOptions = Apollo.BaseMutationOptions; export const BulkDeleteShippingZoneDocument = gql` mutation BulkDeleteShippingZone($ids: [ID!]!) { shippingZoneBulkDelete(ids: $ids) { errors { ...ShippingError } } } ${ShippingErrorFragmentDoc}`; export type BulkDeleteShippingZoneMutationFn = Apollo.MutationFunction; /** * __useBulkDeleteShippingZoneMutation__ * * To run a mutation, you first call `useBulkDeleteShippingZoneMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useBulkDeleteShippingZoneMutation` 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 [bulkDeleteShippingZoneMutation, { data, loading, error }] = useBulkDeleteShippingZoneMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useBulkDeleteShippingZoneMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(BulkDeleteShippingZoneDocument, options); } export type BulkDeleteShippingZoneMutationHookResult = ReturnType; export type BulkDeleteShippingZoneMutationResult = Apollo.MutationResult; export type BulkDeleteShippingZoneMutationOptions = Apollo.BaseMutationOptions; export const UpdateDefaultWeightUnitDocument = gql` mutation UpdateDefaultWeightUnit($unit: WeightUnitsEnum) { shopSettingsUpdate(input: {defaultWeightUnit: $unit}) { errors { ...ShopSettingsUpdateErrorFragment } shop { defaultWeightUnit } } } ${ShopSettingsUpdateErrorFragmentFragmentDoc}`; export type UpdateDefaultWeightUnitMutationFn = Apollo.MutationFunction; /** * __useUpdateDefaultWeightUnitMutation__ * * To run a mutation, you first call `useUpdateDefaultWeightUnitMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateDefaultWeightUnitMutation` 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 [updateDefaultWeightUnitMutation, { data, loading, error }] = useUpdateDefaultWeightUnitMutation({ * variables: { * unit: // value for 'unit' * }, * }); */ export function useUpdateDefaultWeightUnitMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateDefaultWeightUnitDocument, options); } export type UpdateDefaultWeightUnitMutationHookResult = ReturnType; export type UpdateDefaultWeightUnitMutationResult = Apollo.MutationResult; export type UpdateDefaultWeightUnitMutationOptions = Apollo.BaseMutationOptions; export const CreateShippingZoneDocument = gql` mutation CreateShippingZone($input: ShippingZoneCreateInput!) { shippingZoneCreate(input: $input) { errors { ...ShippingError } shippingZone { countries { ...Country } id name } } } ${ShippingErrorFragmentDoc} ${CountryFragmentDoc}`; export type CreateShippingZoneMutationFn = Apollo.MutationFunction; /** * __useCreateShippingZoneMutation__ * * To run a mutation, you first call `useCreateShippingZoneMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateShippingZoneMutation` 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 [createShippingZoneMutation, { data, loading, error }] = useCreateShippingZoneMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useCreateShippingZoneMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CreateShippingZoneDocument, options); } export type CreateShippingZoneMutationHookResult = ReturnType; export type CreateShippingZoneMutationResult = Apollo.MutationResult; export type CreateShippingZoneMutationOptions = Apollo.BaseMutationOptions; export const UpdateShippingZoneDocument = gql` mutation UpdateShippingZone($id: ID!, $input: ShippingZoneUpdateInput!) { shippingZoneUpdate(id: $id, input: $input) { errors { ...ShippingError } shippingZone { countries { ...Country } id name } } } ${ShippingErrorFragmentDoc} ${CountryFragmentDoc}`; export type UpdateShippingZoneMutationFn = Apollo.MutationFunction; /** * __useUpdateShippingZoneMutation__ * * To run a mutation, you first call `useUpdateShippingZoneMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateShippingZoneMutation` 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 [updateShippingZoneMutation, { data, loading, error }] = useUpdateShippingZoneMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useUpdateShippingZoneMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateShippingZoneDocument, options); } export type UpdateShippingZoneMutationHookResult = ReturnType; export type UpdateShippingZoneMutationResult = Apollo.MutationResult; export type UpdateShippingZoneMutationOptions = Apollo.BaseMutationOptions; export const UpdateShippingRateDocument = gql` mutation UpdateShippingRate($id: ID!, $input: ShippingPriceInput!) { shippingPriceUpdate(id: $id, input: $input) { errors { ...ShippingError } shippingMethod { ...ShippingMethodType } } } ${ShippingErrorFragmentDoc} ${ShippingMethodTypeFragmentDoc}`; export type UpdateShippingRateMutationFn = Apollo.MutationFunction; /** * __useUpdateShippingRateMutation__ * * To run a mutation, you first call `useUpdateShippingRateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateShippingRateMutation` 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 [updateShippingRateMutation, { data, loading, error }] = useUpdateShippingRateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useUpdateShippingRateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateShippingRateDocument, options); } export type UpdateShippingRateMutationHookResult = ReturnType; export type UpdateShippingRateMutationResult = Apollo.MutationResult; export type UpdateShippingRateMutationOptions = Apollo.BaseMutationOptions; export const CreateShippingRateDocument = gql` mutation CreateShippingRate($input: ShippingPriceInput!) { shippingPriceCreate(input: $input) { errors { ...ShippingError } shippingZone { ...ShippingZoneDetails } shippingMethod { ...ShippingMethodType } } } ${ShippingErrorFragmentDoc} ${ShippingZoneDetailsFragmentDoc} ${ShippingMethodTypeFragmentDoc}`; export type CreateShippingRateMutationFn = Apollo.MutationFunction; /** * __useCreateShippingRateMutation__ * * To run a mutation, you first call `useCreateShippingRateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useCreateShippingRateMutation` 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 [createShippingRateMutation, { data, loading, error }] = useCreateShippingRateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useCreateShippingRateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(CreateShippingRateDocument, options); } export type CreateShippingRateMutationHookResult = ReturnType; export type CreateShippingRateMutationResult = Apollo.MutationResult; export type CreateShippingRateMutationOptions = Apollo.BaseMutationOptions; export const DeleteShippingRateDocument = gql` mutation DeleteShippingRate($id: ID!) { shippingPriceDelete(id: $id) { errors { ...ShippingError } shippingZone { ...ShippingZoneDetails } } } ${ShippingErrorFragmentDoc} ${ShippingZoneDetailsFragmentDoc}`; export type DeleteShippingRateMutationFn = Apollo.MutationFunction; /** * __useDeleteShippingRateMutation__ * * To run a mutation, you first call `useDeleteShippingRateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useDeleteShippingRateMutation` 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 [deleteShippingRateMutation, { data, loading, error }] = useDeleteShippingRateMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useDeleteShippingRateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(DeleteShippingRateDocument, options); } export type DeleteShippingRateMutationHookResult = ReturnType; export type DeleteShippingRateMutationResult = Apollo.MutationResult; export type DeleteShippingRateMutationOptions = Apollo.BaseMutationOptions; export const BulkDeleteShippingRateDocument = gql` mutation BulkDeleteShippingRate($ids: [ID!]!) { shippingPriceBulkDelete(ids: $ids) { errors { ...ShippingError } } } ${ShippingErrorFragmentDoc}`; export type BulkDeleteShippingRateMutationFn = Apollo.MutationFunction; /** * __useBulkDeleteShippingRateMutation__ * * To run a mutation, you first call `useBulkDeleteShippingRateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useBulkDeleteShippingRateMutation` 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 [bulkDeleteShippingRateMutation, { data, loading, error }] = useBulkDeleteShippingRateMutation({ * variables: { * ids: // value for 'ids' * }, * }); */ export function useBulkDeleteShippingRateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(BulkDeleteShippingRateDocument, options); } export type BulkDeleteShippingRateMutationHookResult = ReturnType; export type BulkDeleteShippingRateMutationResult = Apollo.MutationResult; export type BulkDeleteShippingRateMutationOptions = Apollo.BaseMutationOptions; export const ShippingMethodChannelListingUpdateDocument = gql` mutation ShippingMethodChannelListingUpdate($id: ID!, $input: ShippingMethodChannelListingInput!) { shippingMethodChannelListingUpdate(id: $id, input: $input) { shippingMethod { ...ShippingMethodType } errors { ...ShippingChannelsError } } } ${ShippingMethodTypeFragmentDoc} ${ShippingChannelsErrorFragmentDoc}`; export type ShippingMethodChannelListingUpdateMutationFn = Apollo.MutationFunction; /** * __useShippingMethodChannelListingUpdateMutation__ * * To run a mutation, you first call `useShippingMethodChannelListingUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useShippingMethodChannelListingUpdateMutation` 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 [shippingMethodChannelListingUpdateMutation, { data, loading, error }] = useShippingMethodChannelListingUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useShippingMethodChannelListingUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ShippingMethodChannelListingUpdateDocument, options); } export type ShippingMethodChannelListingUpdateMutationHookResult = ReturnType; export type ShippingMethodChannelListingUpdateMutationResult = Apollo.MutationResult; export type ShippingMethodChannelListingUpdateMutationOptions = Apollo.BaseMutationOptions; export const ShippingPriceExcludeProductDocument = gql` mutation ShippingPriceExcludeProduct($id: ID!, $input: ShippingPriceExcludeProductsInput!) { shippingPriceExcludeProducts(id: $id, input: $input) { errors { ...ShippingError } } } ${ShippingErrorFragmentDoc}`; export type ShippingPriceExcludeProductMutationFn = Apollo.MutationFunction; /** * __useShippingPriceExcludeProductMutation__ * * To run a mutation, you first call `useShippingPriceExcludeProductMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useShippingPriceExcludeProductMutation` 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 [shippingPriceExcludeProductMutation, { data, loading, error }] = useShippingPriceExcludeProductMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useShippingPriceExcludeProductMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ShippingPriceExcludeProductDocument, options); } export type ShippingPriceExcludeProductMutationHookResult = ReturnType; export type ShippingPriceExcludeProductMutationResult = Apollo.MutationResult; export type ShippingPriceExcludeProductMutationOptions = Apollo.BaseMutationOptions; export const ShippingPriceRemoveProductFromExcludeDocument = gql` mutation ShippingPriceRemoveProductFromExclude($id: ID!, $products: [ID!]!) { shippingPriceRemoveProductFromExclude(id: $id, products: $products) { errors { ...ShippingError } } } ${ShippingErrorFragmentDoc}`; export type ShippingPriceRemoveProductFromExcludeMutationFn = Apollo.MutationFunction; /** * __useShippingPriceRemoveProductFromExcludeMutation__ * * To run a mutation, you first call `useShippingPriceRemoveProductFromExcludeMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useShippingPriceRemoveProductFromExcludeMutation` 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 [shippingPriceRemoveProductFromExcludeMutation, { data, loading, error }] = useShippingPriceRemoveProductFromExcludeMutation({ * variables: { * id: // value for 'id' * products: // value for 'products' * }, * }); */ export function useShippingPriceRemoveProductFromExcludeMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ShippingPriceRemoveProductFromExcludeDocument, options); } export type ShippingPriceRemoveProductFromExcludeMutationHookResult = ReturnType; export type ShippingPriceRemoveProductFromExcludeMutationResult = Apollo.MutationResult; export type ShippingPriceRemoveProductFromExcludeMutationOptions = Apollo.BaseMutationOptions; export const ShippingZonesDocument = gql` query ShippingZones($first: Int, $after: String, $last: Int, $before: String) { shippingZones(first: $first, after: $after, last: $last, before: $before) { edges { node { ...ShippingZone } } pageInfo { ...PageInfo } } } ${ShippingZoneFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useShippingZonesQuery__ * * To run a query within a React component, call `useShippingZonesQuery` and pass it any options that fit your needs. * When your component renders, `useShippingZonesQuery` 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 } = useShippingZonesQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useShippingZonesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShippingZonesDocument, options); } export function useShippingZonesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShippingZonesDocument, options); } export type ShippingZonesQueryHookResult = ReturnType; export type ShippingZonesLazyQueryHookResult = ReturnType; export type ShippingZonesQueryResult = Apollo.QueryResult; export const ShippingZoneDocument = gql` query ShippingZone($id: ID!, $before: String, $after: String, $first: Int, $last: Int) { shippingZone(id: $id) { ...ShippingZone default shippingMethods { ...ShippingMethodWithExcludedProducts } channels { id name currencyCode } warehouses { id name } } } ${ShippingZoneFragmentDoc} ${ShippingMethodWithExcludedProductsFragmentDoc}`; /** * __useShippingZoneQuery__ * * To run a query within a React component, call `useShippingZoneQuery` and pass it any options that fit your needs. * When your component renders, `useShippingZoneQuery` 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 } = useShippingZoneQuery({ * variables: { * id: // value for 'id' * before: // value for 'before' * after: // value for 'after' * first: // value for 'first' * last: // value for 'last' * }, * }); */ export function useShippingZoneQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShippingZoneDocument, options); } export function useShippingZoneLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShippingZoneDocument, options); } export type ShippingZoneQueryHookResult = ReturnType; export type ShippingZoneLazyQueryHookResult = ReturnType; export type ShippingZoneQueryResult = Apollo.QueryResult; export const ShippingZoneChannelsDocument = gql` query ShippingZoneChannels($id: ID!) { shippingZone(id: $id) { id channels { id name currencyCode } } } `; /** * __useShippingZoneChannelsQuery__ * * To run a query within a React component, call `useShippingZoneChannelsQuery` and pass it any options that fit your needs. * When your component renders, `useShippingZoneChannelsQuery` 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 } = useShippingZoneChannelsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useShippingZoneChannelsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShippingZoneChannelsDocument, options); } export function useShippingZoneChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShippingZoneChannelsDocument, options); } export type ShippingZoneChannelsQueryHookResult = ReturnType; export type ShippingZoneChannelsLazyQueryHookResult = ReturnType; export type ShippingZoneChannelsQueryResult = Apollo.QueryResult; export const ChannelShippingZonesDocument = gql` query ChannelShippingZones($filter: ShippingZoneFilterInput) { shippingZones(filter: $filter, first: 100) { edges { node { id name } } } } `; /** * __useChannelShippingZonesQuery__ * * To run a query within a React component, call `useChannelShippingZonesQuery` and pass it any options that fit your needs. * When your component renders, `useChannelShippingZonesQuery` 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 } = useChannelShippingZonesQuery({ * variables: { * filter: // value for 'filter' * }, * }); */ export function useChannelShippingZonesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ChannelShippingZonesDocument, options); } export function useChannelShippingZonesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ChannelShippingZonesDocument, options); } export type ChannelShippingZonesQueryHookResult = ReturnType; export type ChannelShippingZonesLazyQueryHookResult = ReturnType; export type ChannelShippingZonesQueryResult = Apollo.QueryResult; export const ShopSettingsUpdateDocument = gql` mutation ShopSettingsUpdate($shopSettingsInput: ShopSettingsInput!, $addressInput: AddressInput, $isCloudInstance: Boolean!) { shopSettingsUpdate(input: $shopSettingsInput) { errors { ...ShopError } shop { ...Shop } } shopAddressUpdate(input: $addressInput) { errors { ...ShopError } shop { companyAddress { ...Address } } } } ${ShopErrorFragmentDoc} ${ShopFragmentDoc} ${AddressFragmentDoc}`; export type ShopSettingsUpdateMutationFn = Apollo.MutationFunction; /** * __useShopSettingsUpdateMutation__ * * To run a mutation, you first call `useShopSettingsUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useShopSettingsUpdateMutation` 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 [shopSettingsUpdateMutation, { data, loading, error }] = useShopSettingsUpdateMutation({ * variables: { * shopSettingsInput: // value for 'shopSettingsInput' * addressInput: // value for 'addressInput' * isCloudInstance: // value for 'isCloudInstance' * }, * }); */ export function useShopSettingsUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ShopSettingsUpdateDocument, options); } export type ShopSettingsUpdateMutationHookResult = ReturnType; export type ShopSettingsUpdateMutationResult = Apollo.MutationResult; export type ShopSettingsUpdateMutationOptions = Apollo.BaseMutationOptions; export const SiteSettingsDocument = gql` query SiteSettings { shop { ...Shop } } ${ShopFragmentDoc}`; /** * __useSiteSettingsQuery__ * * To run a query within a React component, call `useSiteSettingsQuery` and pass it any options that fit your needs. * When your component renders, `useSiteSettingsQuery` 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 } = useSiteSettingsQuery({ * variables: { * }, * }); */ export function useSiteSettingsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SiteSettingsDocument, options); } export function useSiteSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SiteSettingsDocument, options); } export type SiteSettingsQueryHookResult = ReturnType; export type SiteSettingsLazyQueryHookResult = ReturnType; export type SiteSettingsQueryResult = Apollo.QueryResult; export const StaffMemberAddDocument = gql` mutation StaffMemberAdd($input: StaffCreateInput!) { staffCreate(input: $input) { errors { ...StaffError } user { ...StaffMemberDetails } } } ${StaffErrorFragmentDoc} ${StaffMemberDetailsFragmentDoc}`; export type StaffMemberAddMutationFn = Apollo.MutationFunction; /** * __useStaffMemberAddMutation__ * * To run a mutation, you first call `useStaffMemberAddMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useStaffMemberAddMutation` 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 [staffMemberAddMutation, { data, loading, error }] = useStaffMemberAddMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useStaffMemberAddMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(StaffMemberAddDocument, options); } export type StaffMemberAddMutationHookResult = ReturnType; export type StaffMemberAddMutationResult = Apollo.MutationResult; export type StaffMemberAddMutationOptions = Apollo.BaseMutationOptions; export const StaffMemberUpdateDocument = gql` mutation StaffMemberUpdate($id: ID!, $input: StaffUpdateInput!) { staffUpdate(id: $id, input: $input) { errors { ...StaffError } user { ...StaffMemberDetails } } } ${StaffErrorFragmentDoc} ${StaffMemberDetailsFragmentDoc}`; export type StaffMemberUpdateMutationFn = Apollo.MutationFunction; /** * __useStaffMemberUpdateMutation__ * * To run a mutation, you first call `useStaffMemberUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useStaffMemberUpdateMutation` 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 [staffMemberUpdateMutation, { data, loading, error }] = useStaffMemberUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useStaffMemberUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(StaffMemberUpdateDocument, options); } export type StaffMemberUpdateMutationHookResult = ReturnType; export type StaffMemberUpdateMutationResult = Apollo.MutationResult; export type StaffMemberUpdateMutationOptions = Apollo.BaseMutationOptions; export const StaffMemberDeleteDocument = gql` mutation StaffMemberDelete($id: ID!) { staffDelete(id: $id) { errors { ...StaffError } } } ${StaffErrorFragmentDoc}`; export type StaffMemberDeleteMutationFn = Apollo.MutationFunction; /** * __useStaffMemberDeleteMutation__ * * To run a mutation, you first call `useStaffMemberDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useStaffMemberDeleteMutation` 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 [staffMemberDeleteMutation, { data, loading, error }] = useStaffMemberDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useStaffMemberDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(StaffMemberDeleteDocument, options); } export type StaffMemberDeleteMutationHookResult = ReturnType; export type StaffMemberDeleteMutationResult = Apollo.MutationResult; export type StaffMemberDeleteMutationOptions = Apollo.BaseMutationOptions; export const StaffAvatarUpdateDocument = gql` mutation StaffAvatarUpdate($image: Upload!) { userAvatarUpdate(image: $image) { errors { ...AccountError } user { id avatar { url } } } } ${AccountErrorFragmentDoc}`; export type StaffAvatarUpdateMutationFn = Apollo.MutationFunction; /** * __useStaffAvatarUpdateMutation__ * * To run a mutation, you first call `useStaffAvatarUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useStaffAvatarUpdateMutation` 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 [staffAvatarUpdateMutation, { data, loading, error }] = useStaffAvatarUpdateMutation({ * variables: { * image: // value for 'image' * }, * }); */ export function useStaffAvatarUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(StaffAvatarUpdateDocument, options); } export type StaffAvatarUpdateMutationHookResult = ReturnType; export type StaffAvatarUpdateMutationResult = Apollo.MutationResult; export type StaffAvatarUpdateMutationOptions = Apollo.BaseMutationOptions; export const StaffAvatarDeleteDocument = gql` mutation StaffAvatarDelete { userAvatarDelete { errors { ...AccountError } user { id avatar { url } } } } ${AccountErrorFragmentDoc}`; export type StaffAvatarDeleteMutationFn = Apollo.MutationFunction; /** * __useStaffAvatarDeleteMutation__ * * To run a mutation, you first call `useStaffAvatarDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useStaffAvatarDeleteMutation` 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 [staffAvatarDeleteMutation, { data, loading, error }] = useStaffAvatarDeleteMutation({ * variables: { * }, * }); */ export function useStaffAvatarDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(StaffAvatarDeleteDocument, options); } export type StaffAvatarDeleteMutationHookResult = ReturnType; export type StaffAvatarDeleteMutationResult = Apollo.MutationResult; export type StaffAvatarDeleteMutationOptions = Apollo.BaseMutationOptions; export const ChangeStaffPasswordDocument = gql` mutation ChangeStaffPassword($newPassword: String!, $oldPassword: String!) { passwordChange(newPassword: $newPassword, oldPassword: $oldPassword) { errors { ...AccountError } } } ${AccountErrorFragmentDoc}`; export type ChangeStaffPasswordMutationFn = Apollo.MutationFunction; /** * __useChangeStaffPasswordMutation__ * * To run a mutation, you first call `useChangeStaffPasswordMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useChangeStaffPasswordMutation` 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 [changeStaffPasswordMutation, { data, loading, error }] = useChangeStaffPasswordMutation({ * variables: { * newPassword: // value for 'newPassword' * oldPassword: // value for 'oldPassword' * }, * }); */ export function useChangeStaffPasswordMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(ChangeStaffPasswordDocument, options); } export type ChangeStaffPasswordMutationHookResult = ReturnType; export type ChangeStaffPasswordMutationResult = Apollo.MutationResult; export type ChangeStaffPasswordMutationOptions = Apollo.BaseMutationOptions; export const StaffListDocument = gql` query StaffList($first: Int, $after: String, $last: Int, $before: String, $filter: StaffUserInput, $sort: UserSortingInput) { staffUsers( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort ) { edges { cursor node { ...StaffMember avatar(size: 48) { url } } } pageInfo { hasPreviousPage hasNextPage startCursor endCursor } } } ${StaffMemberFragmentDoc}`; /** * __useStaffListQuery__ * * To run a query within a React component, call `useStaffListQuery` and pass it any options that fit your needs. * When your component renders, `useStaffListQuery` 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 } = useStaffListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useStaffListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(StaffListDocument, options); } export function useStaffListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(StaffListDocument, options); } export type StaffListQueryHookResult = ReturnType; export type StaffListLazyQueryHookResult = ReturnType; export type StaffListQueryResult = Apollo.QueryResult; export const StaffMemberDetailsDocument = gql` query StaffMemberDetails($id: ID!) { user(id: $id) { ...StaffMemberDetails } } ${StaffMemberDetailsFragmentDoc}`; /** * __useStaffMemberDetailsQuery__ * * To run a query within a React component, call `useStaffMemberDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useStaffMemberDetailsQuery` 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 } = useStaffMemberDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useStaffMemberDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(StaffMemberDetailsDocument, options); } export function useStaffMemberDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(StaffMemberDetailsDocument, options); } export type StaffMemberDetailsQueryHookResult = ReturnType; export type StaffMemberDetailsLazyQueryHookResult = ReturnType; export type StaffMemberDetailsQueryResult = Apollo.QueryResult; export const UpdateTaxSettingsDocument = gql` mutation UpdateTaxSettings($input: ShopSettingsInput!) { shopSettingsUpdate(input: $input) { errors { ...ShopSettingsUpdateErrorFragment } shop { ...ShopTaxes } } } ${ShopSettingsUpdateErrorFragmentFragmentDoc} ${ShopTaxesFragmentDoc}`; export type UpdateTaxSettingsMutationFn = Apollo.MutationFunction; /** * __useUpdateTaxSettingsMutation__ * * To run a mutation, you first call `useUpdateTaxSettingsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateTaxSettingsMutation` 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 [updateTaxSettingsMutation, { data, loading, error }] = useUpdateTaxSettingsMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useUpdateTaxSettingsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateTaxSettingsDocument, options); } export type UpdateTaxSettingsMutationHookResult = ReturnType; export type UpdateTaxSettingsMutationResult = Apollo.MutationResult; export type UpdateTaxSettingsMutationOptions = Apollo.BaseMutationOptions; export const FetchTaxesDocument = gql` mutation FetchTaxes { shopFetchTaxRates { errors { ...ShopFetchTaxRatesErrorFragment } shop { countries { ...Country } } } } ${ShopFetchTaxRatesErrorFragmentFragmentDoc} ${CountryFragmentDoc}`; export type FetchTaxesMutationFn = Apollo.MutationFunction; /** * __useFetchTaxesMutation__ * * To run a mutation, you first call `useFetchTaxesMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useFetchTaxesMutation` 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 [fetchTaxesMutation, { data, loading, error }] = useFetchTaxesMutation({ * variables: { * }, * }); */ export function useFetchTaxesMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(FetchTaxesDocument, options); } export type FetchTaxesMutationHookResult = ReturnType; export type FetchTaxesMutationResult = Apollo.MutationResult; export type FetchTaxesMutationOptions = Apollo.BaseMutationOptions; export const CountryListDocument = gql` query CountryList { shop { ...ShopTaxes countries { ...CountryWithTaxes } } } ${ShopTaxesFragmentDoc} ${CountryWithTaxesFragmentDoc}`; /** * __useCountryListQuery__ * * To run a query within a React component, call `useCountryListQuery` and pass it any options that fit your needs. * When your component renders, `useCountryListQuery` 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 } = useCountryListQuery({ * variables: { * }, * }); */ export function useCountryListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CountryListDocument, options); } export function useCountryListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CountryListDocument, options); } export type CountryListQueryHookResult = ReturnType; export type CountryListLazyQueryHookResult = ReturnType; export type CountryListQueryResult = Apollo.QueryResult; export const TaxTypeListDocument = gql` query TaxTypeList { taxTypes { ...TaxType } } ${TaxTypeFragmentDoc}`; /** * __useTaxTypeListQuery__ * * To run a query within a React component, call `useTaxTypeListQuery` and pass it any options that fit your needs. * When your component renders, `useTaxTypeListQuery` 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 } = useTaxTypeListQuery({ * variables: { * }, * }); */ export function useTaxTypeListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(TaxTypeListDocument, options); } export function useTaxTypeListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(TaxTypeListDocument, options); } export type TaxTypeListQueryHookResult = ReturnType; export type TaxTypeListLazyQueryHookResult = ReturnType; export type TaxTypeListQueryResult = Apollo.QueryResult; export const UpdateProductTranslationsDocument = gql` mutation UpdateProductTranslations($id: ID!, $input: TranslationInput!, $language: LanguageCodeEnum!) { productTranslate(id: $id, input: $input, languageCode: $language) { errors { ...ProductTranslateErrorFragment } product { id name description seoDescription seoTitle translation(languageCode: $language) { id description language { code language } name seoDescription seoTitle } } } } ${ProductTranslateErrorFragmentFragmentDoc}`; export type UpdateProductTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateProductTranslationsMutation__ * * To run a mutation, you first call `useUpdateProductTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateProductTranslationsMutation` 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 [updateProductTranslationsMutation, { data, loading, error }] = useUpdateProductTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateProductTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateProductTranslationsDocument, options); } export type UpdateProductTranslationsMutationHookResult = ReturnType; export type UpdateProductTranslationsMutationResult = Apollo.MutationResult; export type UpdateProductTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateProductVariantTranslationsDocument = gql` mutation UpdateProductVariantTranslations($id: ID!, $input: NameTranslationInput!, $language: LanguageCodeEnum!) { productVariantTranslate(id: $id, input: $input, languageCode: $language) { errors { ...ProductVariantTranslateErrorFragment } productVariant { id name translation(languageCode: $language) { id name language { code language } } } } } ${ProductVariantTranslateErrorFragmentFragmentDoc}`; export type UpdateProductVariantTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateProductVariantTranslationsMutation__ * * To run a mutation, you first call `useUpdateProductVariantTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateProductVariantTranslationsMutation` 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 [updateProductVariantTranslationsMutation, { data, loading, error }] = useUpdateProductVariantTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateProductVariantTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateProductVariantTranslationsDocument, options); } export type UpdateProductVariantTranslationsMutationHookResult = ReturnType; export type UpdateProductVariantTranslationsMutationResult = Apollo.MutationResult; export type UpdateProductVariantTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateCategoryTranslationsDocument = gql` mutation UpdateCategoryTranslations($id: ID!, $input: TranslationInput!, $language: LanguageCodeEnum!) { categoryTranslate(id: $id, input: $input, languageCode: $language) { errors { ...CategoryTranslateErrorFragment } category { id name description seoDescription seoTitle translation(languageCode: $language) { id description language { language } name seoDescription seoTitle } } } } ${CategoryTranslateErrorFragmentFragmentDoc}`; export type UpdateCategoryTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateCategoryTranslationsMutation__ * * To run a mutation, you first call `useUpdateCategoryTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCategoryTranslationsMutation` 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 [updateCategoryTranslationsMutation, { data, loading, error }] = useUpdateCategoryTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateCategoryTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateCategoryTranslationsDocument, options); } export type UpdateCategoryTranslationsMutationHookResult = ReturnType; export type UpdateCategoryTranslationsMutationResult = Apollo.MutationResult; export type UpdateCategoryTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateCollectionTranslationsDocument = gql` mutation UpdateCollectionTranslations($id: ID!, $input: TranslationInput!, $language: LanguageCodeEnum!) { collectionTranslate(id: $id, input: $input, languageCode: $language) { errors { ...CollectionTranslateErrorFragment } collection { id name description seoDescription seoTitle translation(languageCode: $language) { id description language { language } name seoDescription seoTitle } } } } ${CollectionTranslateErrorFragmentFragmentDoc}`; export type UpdateCollectionTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateCollectionTranslationsMutation__ * * To run a mutation, you first call `useUpdateCollectionTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateCollectionTranslationsMutation` 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 [updateCollectionTranslationsMutation, { data, loading, error }] = useUpdateCollectionTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateCollectionTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateCollectionTranslationsDocument, options); } export type UpdateCollectionTranslationsMutationHookResult = ReturnType; export type UpdateCollectionTranslationsMutationResult = Apollo.MutationResult; export type UpdateCollectionTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdatePageTranslationsDocument = gql` mutation UpdatePageTranslations($id: ID!, $input: PageTranslationInput!, $language: LanguageCodeEnum!) { pageTranslate(id: $id, input: $input, languageCode: $language) { errors { ...PageTranslateErrorFragment } page { ...PageTranslation } } } ${PageTranslateErrorFragmentFragmentDoc} ${PageTranslationFragmentDoc}`; export type UpdatePageTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdatePageTranslationsMutation__ * * To run a mutation, you first call `useUpdatePageTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePageTranslationsMutation` 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 [updatePageTranslationsMutation, { data, loading, error }] = useUpdatePageTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdatePageTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdatePageTranslationsDocument, options); } export type UpdatePageTranslationsMutationHookResult = ReturnType; export type UpdatePageTranslationsMutationResult = Apollo.MutationResult; export type UpdatePageTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateVoucherTranslationsDocument = gql` mutation UpdateVoucherTranslations($id: ID!, $input: NameTranslationInput!, $language: LanguageCodeEnum!) { voucherTranslate(id: $id, input: $input, languageCode: $language) { errors { ...VoucherTranslateErrorFragment } voucher { id name translation(languageCode: $language) { id language { code language } name } } } } ${VoucherTranslateErrorFragmentFragmentDoc}`; export type UpdateVoucherTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateVoucherTranslationsMutation__ * * To run a mutation, you first call `useUpdateVoucherTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateVoucherTranslationsMutation` 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 [updateVoucherTranslationsMutation, { data, loading, error }] = useUpdateVoucherTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateVoucherTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateVoucherTranslationsDocument, options); } export type UpdateVoucherTranslationsMutationHookResult = ReturnType; export type UpdateVoucherTranslationsMutationResult = Apollo.MutationResult; export type UpdateVoucherTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateSaleTranslationsDocument = gql` mutation UpdateSaleTranslations($id: ID!, $input: NameTranslationInput!, $language: LanguageCodeEnum!) { saleTranslate(id: $id, input: $input, languageCode: $language) { errors { ...SaleTranslateErrorFragment } sale { id name translation(languageCode: $language) { id language { code language } name } } } } ${SaleTranslateErrorFragmentFragmentDoc}`; export type UpdateSaleTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateSaleTranslationsMutation__ * * To run a mutation, you first call `useUpdateSaleTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateSaleTranslationsMutation` 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 [updateSaleTranslationsMutation, { data, loading, error }] = useUpdateSaleTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateSaleTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateSaleTranslationsDocument, options); } export type UpdateSaleTranslationsMutationHookResult = ReturnType; export type UpdateSaleTranslationsMutationResult = Apollo.MutationResult; export type UpdateSaleTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateAttributeTranslationsDocument = gql` mutation UpdateAttributeTranslations($id: ID!, $input: NameTranslationInput!, $language: LanguageCodeEnum!) { attributeTranslate(id: $id, input: $input, languageCode: $language) { errors { ...AttributeTranslateErrorFragment } attribute { id name translation(languageCode: $language) { id name } } } } ${AttributeTranslateErrorFragmentFragmentDoc}`; export type UpdateAttributeTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateAttributeTranslationsMutation__ * * To run a mutation, you first call `useUpdateAttributeTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateAttributeTranslationsMutation` 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 [updateAttributeTranslationsMutation, { data, loading, error }] = useUpdateAttributeTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateAttributeTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateAttributeTranslationsDocument, options); } export type UpdateAttributeTranslationsMutationHookResult = ReturnType; export type UpdateAttributeTranslationsMutationResult = Apollo.MutationResult; export type UpdateAttributeTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateAttributeValueTranslationsDocument = gql` mutation UpdateAttributeValueTranslations($id: ID!, $input: AttributeValueTranslationInput!, $language: LanguageCodeEnum!) { attributeValueTranslate(id: $id, input: $input, languageCode: $language) { errors { ...AttributeValueTranslateErrorFragment } attributeValue { id name richText translation(languageCode: $language) { id name richText } } } } ${AttributeValueTranslateErrorFragmentFragmentDoc}`; export type UpdateAttributeValueTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateAttributeValueTranslationsMutation__ * * To run a mutation, you first call `useUpdateAttributeValueTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateAttributeValueTranslationsMutation` 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 [updateAttributeValueTranslationsMutation, { data, loading, error }] = useUpdateAttributeValueTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateAttributeValueTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateAttributeValueTranslationsDocument, options); } export type UpdateAttributeValueTranslationsMutationHookResult = ReturnType; export type UpdateAttributeValueTranslationsMutationResult = Apollo.MutationResult; export type UpdateAttributeValueTranslationsMutationOptions = Apollo.BaseMutationOptions; export const UpdateShippingMethodTranslationsDocument = gql` mutation UpdateShippingMethodTranslations($id: ID!, $input: ShippingPriceTranslationInput!, $language: LanguageCodeEnum!) { shippingPriceTranslate(id: $id, input: $input, languageCode: $language) { errors { ...ShippingPriceTranslateErrorFragment } shippingMethod { id name description translation(languageCode: $language) { id language { language } name description } } } } ${ShippingPriceTranslateErrorFragmentFragmentDoc}`; export type UpdateShippingMethodTranslationsMutationFn = Apollo.MutationFunction; /** * __useUpdateShippingMethodTranslationsMutation__ * * To run a mutation, you first call `useUpdateShippingMethodTranslationsMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateShippingMethodTranslationsMutation` 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 [updateShippingMethodTranslationsMutation, { data, loading, error }] = useUpdateShippingMethodTranslationsMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * language: // value for 'language' * }, * }); */ export function useUpdateShippingMethodTranslationsMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateShippingMethodTranslationsDocument, options); } export type UpdateShippingMethodTranslationsMutationHookResult = ReturnType; export type UpdateShippingMethodTranslationsMutationResult = Apollo.MutationResult; export type UpdateShippingMethodTranslationsMutationOptions = Apollo.BaseMutationOptions; export const CategoryTranslationsDocument = gql` query CategoryTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: CATEGORY before: $before after: $after first: $first last: $last ) { edges { node { ...CategoryTranslation } } pageInfo { ...PageInfo } } } ${CategoryTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useCategoryTranslationsQuery__ * * To run a query within a React component, call `useCategoryTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useCategoryTranslationsQuery` 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 } = useCategoryTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useCategoryTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CategoryTranslationsDocument, options); } export function useCategoryTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CategoryTranslationsDocument, options); } export type CategoryTranslationsQueryHookResult = ReturnType; export type CategoryTranslationsLazyQueryHookResult = ReturnType; export type CategoryTranslationsQueryResult = Apollo.QueryResult; export const CollectionTranslationsDocument = gql` query CollectionTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: COLLECTION before: $before after: $after first: $first last: $last ) { edges { node { ...CollectionTranslation } } pageInfo { ...PageInfo } } } ${CollectionTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useCollectionTranslationsQuery__ * * To run a query within a React component, call `useCollectionTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useCollectionTranslationsQuery` 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 } = useCollectionTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useCollectionTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CollectionTranslationsDocument, options); } export function useCollectionTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CollectionTranslationsDocument, options); } export type CollectionTranslationsQueryHookResult = ReturnType; export type CollectionTranslationsLazyQueryHookResult = ReturnType; export type CollectionTranslationsQueryResult = Apollo.QueryResult; export const ProductTranslationsDocument = gql` query ProductTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: PRODUCT before: $before after: $after first: $first last: $last ) { edges { node { ...ProductTranslation } } pageInfo { ...PageInfo } } } ${ProductTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useProductTranslationsQuery__ * * To run a query within a React component, call `useProductTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useProductTranslationsQuery` 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 } = useProductTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useProductTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTranslationsDocument, options); } export function useProductTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTranslationsDocument, options); } export type ProductTranslationsQueryHookResult = ReturnType; export type ProductTranslationsLazyQueryHookResult = ReturnType; export type ProductTranslationsQueryResult = Apollo.QueryResult; export const PageTranslationsDocument = gql` query PageTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: PAGE before: $before after: $after first: $first last: $last ) { edges { node { ...PageTranslation } } pageInfo { ...PageInfo } } } ${PageTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __usePageTranslationsQuery__ * * To run a query within a React component, call `usePageTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `usePageTranslationsQuery` 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 } = usePageTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function usePageTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageTranslationsDocument, options); } export function usePageTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageTranslationsDocument, options); } export type PageTranslationsQueryHookResult = ReturnType; export type PageTranslationsLazyQueryHookResult = ReturnType; export type PageTranslationsQueryResult = Apollo.QueryResult; export const VoucherTranslationsDocument = gql` query VoucherTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: VOUCHER before: $before after: $after first: $first last: $last ) { edges { node { ...VoucherTranslation } } pageInfo { ...PageInfo } } } ${VoucherTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useVoucherTranslationsQuery__ * * To run a query within a React component, call `useVoucherTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useVoucherTranslationsQuery` 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 } = useVoucherTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useVoucherTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(VoucherTranslationsDocument, options); } export function useVoucherTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(VoucherTranslationsDocument, options); } export type VoucherTranslationsQueryHookResult = ReturnType; export type VoucherTranslationsLazyQueryHookResult = ReturnType; export type VoucherTranslationsQueryResult = Apollo.QueryResult; export const SaleTranslationsDocument = gql` query SaleTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: SALE before: $before after: $after first: $first last: $last ) { edges { node { ...SaleTranslation } } pageInfo { ...PageInfo } } } ${SaleTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useSaleTranslationsQuery__ * * To run a query within a React component, call `useSaleTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useSaleTranslationsQuery` 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 } = useSaleTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useSaleTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SaleTranslationsDocument, options); } export function useSaleTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SaleTranslationsDocument, options); } export type SaleTranslationsQueryHookResult = ReturnType; export type SaleTranslationsLazyQueryHookResult = ReturnType; export type SaleTranslationsQueryResult = Apollo.QueryResult; export const AttributeTranslationsDocument = gql` query AttributeTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: ATTRIBUTE before: $before after: $after first: $first last: $last ) { edges { node { ...AttributeTranslation } } pageInfo { ...PageInfo } } } ${AttributeTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useAttributeTranslationsQuery__ * * To run a query within a React component, call `useAttributeTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useAttributeTranslationsQuery` 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 } = useAttributeTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useAttributeTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AttributeTranslationsDocument, options); } export function useAttributeTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AttributeTranslationsDocument, options); } export type AttributeTranslationsQueryHookResult = ReturnType; export type AttributeTranslationsLazyQueryHookResult = ReturnType; export type AttributeTranslationsQueryResult = Apollo.QueryResult; export const ShippingMethodTranslationsDocument = gql` query ShippingMethodTranslations($language: LanguageCodeEnum!, $first: Int, $after: String, $last: Int, $before: String) { translations( kind: SHIPPING_METHOD before: $before after: $after first: $first last: $last ) { edges { node { ...ShippingMethodTranslation } } pageInfo { ...PageInfo } } } ${ShippingMethodTranslationFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useShippingMethodTranslationsQuery__ * * To run a query within a React component, call `useShippingMethodTranslationsQuery` and pass it any options that fit your needs. * When your component renders, `useShippingMethodTranslationsQuery` 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 } = useShippingMethodTranslationsQuery({ * variables: { * language: // value for 'language' * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * }, * }); */ export function useShippingMethodTranslationsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShippingMethodTranslationsDocument, options); } export function useShippingMethodTranslationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShippingMethodTranslationsDocument, options); } export type ShippingMethodTranslationsQueryHookResult = ReturnType; export type ShippingMethodTranslationsLazyQueryHookResult = ReturnType; export type ShippingMethodTranslationsQueryResult = Apollo.QueryResult; export const ProductTranslationDetailsDocument = gql` query ProductTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: PRODUCT, id: $id) { ...ProductTranslation } } ${ProductTranslationFragmentDoc}`; /** * __useProductTranslationDetailsQuery__ * * To run a query within a React component, call `useProductTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useProductTranslationDetailsQuery` 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 } = useProductTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useProductTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductTranslationDetailsDocument, options); } export function useProductTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductTranslationDetailsDocument, options); } export type ProductTranslationDetailsQueryHookResult = ReturnType; export type ProductTranslationDetailsLazyQueryHookResult = ReturnType; export type ProductTranslationDetailsQueryResult = Apollo.QueryResult; export const ProductVariantListDocument = gql` query ProductVariantList($id: ID!) { product(id: $id) { id variants { id name sku } } } `; /** * __useProductVariantListQuery__ * * To run a query within a React component, call `useProductVariantListQuery` and pass it any options that fit your needs. * When your component renders, `useProductVariantListQuery` 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 } = useProductVariantListQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useProductVariantListQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductVariantListDocument, options); } export function useProductVariantListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductVariantListDocument, options); } export type ProductVariantListQueryHookResult = ReturnType; export type ProductVariantListLazyQueryHookResult = ReturnType; export type ProductVariantListQueryResult = Apollo.QueryResult; export const ProductVariantTranslationDetailsDocument = gql` query ProductVariantTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: VARIANT, id: $id) { ...ProductVariantTranslation } } ${ProductVariantTranslationFragmentDoc}`; /** * __useProductVariantTranslationDetailsQuery__ * * To run a query within a React component, call `useProductVariantTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useProductVariantTranslationDetailsQuery` 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 } = useProductVariantTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useProductVariantTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ProductVariantTranslationDetailsDocument, options); } export function useProductVariantTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ProductVariantTranslationDetailsDocument, options); } export type ProductVariantTranslationDetailsQueryHookResult = ReturnType; export type ProductVariantTranslationDetailsLazyQueryHookResult = ReturnType; export type ProductVariantTranslationDetailsQueryResult = Apollo.QueryResult; export const CategoryTranslationDetailsDocument = gql` query CategoryTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: CATEGORY, id: $id) { ...CategoryTranslation } } ${CategoryTranslationFragmentDoc}`; /** * __useCategoryTranslationDetailsQuery__ * * To run a query within a React component, call `useCategoryTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useCategoryTranslationDetailsQuery` 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 } = useCategoryTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useCategoryTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CategoryTranslationDetailsDocument, options); } export function useCategoryTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CategoryTranslationDetailsDocument, options); } export type CategoryTranslationDetailsQueryHookResult = ReturnType; export type CategoryTranslationDetailsLazyQueryHookResult = ReturnType; export type CategoryTranslationDetailsQueryResult = Apollo.QueryResult; export const CollectionTranslationDetailsDocument = gql` query CollectionTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(id: $id, kind: COLLECTION) { ...CollectionTranslation } } ${CollectionTranslationFragmentDoc}`; /** * __useCollectionTranslationDetailsQuery__ * * To run a query within a React component, call `useCollectionTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useCollectionTranslationDetailsQuery` 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 } = useCollectionTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useCollectionTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(CollectionTranslationDetailsDocument, options); } export function useCollectionTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(CollectionTranslationDetailsDocument, options); } export type CollectionTranslationDetailsQueryHookResult = ReturnType; export type CollectionTranslationDetailsLazyQueryHookResult = ReturnType; export type CollectionTranslationDetailsQueryResult = Apollo.QueryResult; export const PageTranslationDetailsDocument = gql` query PageTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(id: $id, kind: PAGE) { ...PageTranslation } } ${PageTranslationFragmentDoc}`; /** * __usePageTranslationDetailsQuery__ * * To run a query within a React component, call `usePageTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `usePageTranslationDetailsQuery` 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 } = usePageTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function usePageTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(PageTranslationDetailsDocument, options); } export function usePageTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(PageTranslationDetailsDocument, options); } export type PageTranslationDetailsQueryHookResult = ReturnType; export type PageTranslationDetailsLazyQueryHookResult = ReturnType; export type PageTranslationDetailsQueryResult = Apollo.QueryResult; export const SaleTranslationDetailsDocument = gql` query SaleTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: SALE, id: $id) { ...SaleTranslation } } ${SaleTranslationFragmentDoc}`; /** * __useSaleTranslationDetailsQuery__ * * To run a query within a React component, call `useSaleTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useSaleTranslationDetailsQuery` 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 } = useSaleTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useSaleTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(SaleTranslationDetailsDocument, options); } export function useSaleTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(SaleTranslationDetailsDocument, options); } export type SaleTranslationDetailsQueryHookResult = ReturnType; export type SaleTranslationDetailsLazyQueryHookResult = ReturnType; export type SaleTranslationDetailsQueryResult = Apollo.QueryResult; export const VoucherTranslationDetailsDocument = gql` query VoucherTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: VOUCHER, id: $id) { ...VoucherTranslation } } ${VoucherTranslationFragmentDoc}`; /** * __useVoucherTranslationDetailsQuery__ * * To run a query within a React component, call `useVoucherTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useVoucherTranslationDetailsQuery` 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 } = useVoucherTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useVoucherTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(VoucherTranslationDetailsDocument, options); } export function useVoucherTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(VoucherTranslationDetailsDocument, options); } export type VoucherTranslationDetailsQueryHookResult = ReturnType; export type VoucherTranslationDetailsLazyQueryHookResult = ReturnType; export type VoucherTranslationDetailsQueryResult = Apollo.QueryResult; export const AttributeTranslationDetailsDocument = gql` query AttributeTranslationDetails($id: ID!, $language: LanguageCodeEnum!, $firstValues: Int, $afterValues: String, $lastValues: Int, $beforeValues: String) { translation(kind: ATTRIBUTE, id: $id) { ...AttributeTranslationDetails } } ${AttributeTranslationDetailsFragmentDoc}`; /** * __useAttributeTranslationDetailsQuery__ * * To run a query within a React component, call `useAttributeTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useAttributeTranslationDetailsQuery` 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 } = useAttributeTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * firstValues: // value for 'firstValues' * afterValues: // value for 'afterValues' * lastValues: // value for 'lastValues' * beforeValues: // value for 'beforeValues' * }, * }); */ export function useAttributeTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(AttributeTranslationDetailsDocument, options); } export function useAttributeTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(AttributeTranslationDetailsDocument, options); } export type AttributeTranslationDetailsQueryHookResult = ReturnType; export type AttributeTranslationDetailsLazyQueryHookResult = ReturnType; export type AttributeTranslationDetailsQueryResult = Apollo.QueryResult; export const ShippingMethodTranslationDetailsDocument = gql` query ShippingMethodTranslationDetails($id: ID!, $language: LanguageCodeEnum!) { translation(kind: SHIPPING_METHOD, id: $id) { ...ShippingMethodTranslation } } ${ShippingMethodTranslationFragmentDoc}`; /** * __useShippingMethodTranslationDetailsQuery__ * * To run a query within a React component, call `useShippingMethodTranslationDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useShippingMethodTranslationDetailsQuery` 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 } = useShippingMethodTranslationDetailsQuery({ * variables: { * id: // value for 'id' * language: // value for 'language' * }, * }); */ export function useShippingMethodTranslationDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(ShippingMethodTranslationDetailsDocument, options); } export function useShippingMethodTranslationDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(ShippingMethodTranslationDetailsDocument, options); } export type ShippingMethodTranslationDetailsQueryHookResult = ReturnType; export type ShippingMethodTranslationDetailsLazyQueryHookResult = ReturnType; export type ShippingMethodTranslationDetailsQueryResult = Apollo.QueryResult; export const UpdateMetadataDocument = gql` mutation UpdateMetadata($id: ID!, $input: [MetadataInput!]!, $keysToDelete: [String!]!) { updateMetadata(id: $id, input: $input) { errors { ...MetadataError } item { ...Metadata ... on Node { id } } } deleteMetadata(id: $id, keys: $keysToDelete) { errors { ...MetadataError } item { ...Metadata ... on Node { id } } } } ${MetadataErrorFragmentDoc} ${MetadataFragmentDoc}`; export type UpdateMetadataMutationFn = Apollo.MutationFunction; /** * __useUpdateMetadataMutation__ * * To run a mutation, you first call `useUpdateMetadataMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdateMetadataMutation` 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 [updateMetadataMutation, { data, loading, error }] = useUpdateMetadataMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * keysToDelete: // value for 'keysToDelete' * }, * }); */ export function useUpdateMetadataMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdateMetadataDocument, options); } export type UpdateMetadataMutationHookResult = ReturnType; export type UpdateMetadataMutationResult = Apollo.MutationResult; export type UpdateMetadataMutationOptions = Apollo.BaseMutationOptions; export const UpdatePrivateMetadataDocument = gql` mutation UpdatePrivateMetadata($id: ID!, $input: [MetadataInput!]!, $keysToDelete: [String!]!) { updatePrivateMetadata(id: $id, input: $input) { errors { ...MetadataError } item { ...Metadata ... on Node { id } } } deletePrivateMetadata(id: $id, keys: $keysToDelete) { errors { ...MetadataError } item { ...Metadata ... on Node { id } } } } ${MetadataErrorFragmentDoc} ${MetadataFragmentDoc}`; export type UpdatePrivateMetadataMutationFn = Apollo.MutationFunction; /** * __useUpdatePrivateMetadataMutation__ * * To run a mutation, you first call `useUpdatePrivateMetadataMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useUpdatePrivateMetadataMutation` 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 [updatePrivateMetadataMutation, { data, loading, error }] = useUpdatePrivateMetadataMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * keysToDelete: // value for 'keysToDelete' * }, * }); */ export function useUpdatePrivateMetadataMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(UpdatePrivateMetadataDocument, options); } export type UpdatePrivateMetadataMutationHookResult = ReturnType; export type UpdatePrivateMetadataMutationResult = Apollo.MutationResult; export type UpdatePrivateMetadataMutationOptions = Apollo.BaseMutationOptions; export const WarehouseDeleteDocument = gql` mutation WarehouseDelete($id: ID!) { deleteWarehouse(id: $id) { errors { ...WarehouseError } } } ${WarehouseErrorFragmentDoc}`; export type WarehouseDeleteMutationFn = Apollo.MutationFunction; /** * __useWarehouseDeleteMutation__ * * To run a mutation, you first call `useWarehouseDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWarehouseDeleteMutation` 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 [warehouseDeleteMutation, { data, loading, error }] = useWarehouseDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useWarehouseDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WarehouseDeleteDocument, options); } export type WarehouseDeleteMutationHookResult = ReturnType; export type WarehouseDeleteMutationResult = Apollo.MutationResult; export type WarehouseDeleteMutationOptions = Apollo.BaseMutationOptions; export const WarehouseCreateDocument = gql` mutation WarehouseCreate($input: WarehouseCreateInput!) { createWarehouse(input: $input) { errors { ...WarehouseError } warehouse { ...WarehouseDetails } } } ${WarehouseErrorFragmentDoc} ${WarehouseDetailsFragmentDoc}`; export type WarehouseCreateMutationFn = Apollo.MutationFunction; /** * __useWarehouseCreateMutation__ * * To run a mutation, you first call `useWarehouseCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWarehouseCreateMutation` 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 [warehouseCreateMutation, { data, loading, error }] = useWarehouseCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useWarehouseCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WarehouseCreateDocument, options); } export type WarehouseCreateMutationHookResult = ReturnType; export type WarehouseCreateMutationResult = Apollo.MutationResult; export type WarehouseCreateMutationOptions = Apollo.BaseMutationOptions; export const WarehouseUpdateDocument = gql` mutation WarehouseUpdate($id: ID!, $input: WarehouseUpdateInput!) { updateWarehouse(id: $id, input: $input) { errors { ...WarehouseError } warehouse { ...WarehouseDetails } } } ${WarehouseErrorFragmentDoc} ${WarehouseDetailsFragmentDoc}`; export type WarehouseUpdateMutationFn = Apollo.MutationFunction; /** * __useWarehouseUpdateMutation__ * * To run a mutation, you first call `useWarehouseUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWarehouseUpdateMutation` 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 [warehouseUpdateMutation, { data, loading, error }] = useWarehouseUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useWarehouseUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WarehouseUpdateDocument, options); } export type WarehouseUpdateMutationHookResult = ReturnType; export type WarehouseUpdateMutationResult = Apollo.MutationResult; export type WarehouseUpdateMutationOptions = Apollo.BaseMutationOptions; export const WarehouseListDocument = gql` query WarehouseList($first: Int, $after: String, $last: Int, $before: String, $filter: WarehouseFilterInput, $sort: WarehouseSortingInput) { warehouses( before: $before after: $after first: $first last: $last filter: $filter sortBy: $sort ) { edges { node { ...WarehouseWithShipping } } pageInfo { ...PageInfo } } } ${WarehouseWithShippingFragmentDoc} ${PageInfoFragmentDoc}`; /** * __useWarehouseListQuery__ * * To run a query within a React component, call `useWarehouseListQuery` and pass it any options that fit your needs. * When your component renders, `useWarehouseListQuery` 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 } = useWarehouseListQuery({ * variables: { * first: // value for 'first' * after: // value for 'after' * last: // value for 'last' * before: // value for 'before' * filter: // value for 'filter' * sort: // value for 'sort' * }, * }); */ export function useWarehouseListQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(WarehouseListDocument, options); } export function useWarehouseListLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(WarehouseListDocument, options); } export type WarehouseListQueryHookResult = ReturnType; export type WarehouseListLazyQueryHookResult = ReturnType; export type WarehouseListQueryResult = Apollo.QueryResult; export const WarehouseDetailsDocument = gql` query WarehouseDetails($id: ID!) { warehouse(id: $id) { ...WarehouseDetails } } ${WarehouseDetailsFragmentDoc}`; /** * __useWarehouseDetailsQuery__ * * To run a query within a React component, call `useWarehouseDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useWarehouseDetailsQuery` 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 } = useWarehouseDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useWarehouseDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(WarehouseDetailsDocument, options); } export function useWarehouseDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(WarehouseDetailsDocument, options); } export type WarehouseDetailsQueryHookResult = ReturnType; export type WarehouseDetailsLazyQueryHookResult = ReturnType; export type WarehouseDetailsQueryResult = Apollo.QueryResult; export const WebhookCreateDocument = gql` mutation WebhookCreate($input: WebhookCreateInput!) { webhookCreate(input: $input) { errors { ...WebhookError } webhook { ...WebhooksDetails } } } ${WebhookErrorFragmentDoc} ${WebhooksDetailsFragmentDoc}`; export type WebhookCreateMutationFn = Apollo.MutationFunction; /** * __useWebhookCreateMutation__ * * To run a mutation, you first call `useWebhookCreateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWebhookCreateMutation` 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 [webhookCreateMutation, { data, loading, error }] = useWebhookCreateMutation({ * variables: { * input: // value for 'input' * }, * }); */ export function useWebhookCreateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WebhookCreateDocument, options); } export type WebhookCreateMutationHookResult = ReturnType; export type WebhookCreateMutationResult = Apollo.MutationResult; export type WebhookCreateMutationOptions = Apollo.BaseMutationOptions; export const WebhookUpdateDocument = gql` mutation WebhookUpdate($id: ID!, $input: WebhookUpdateInput!) { webhookUpdate(id: $id, input: $input) { errors { ...WebhookError } webhook { ...WebhooksDetails } } } ${WebhookErrorFragmentDoc} ${WebhooksDetailsFragmentDoc}`; export type WebhookUpdateMutationFn = Apollo.MutationFunction; /** * __useWebhookUpdateMutation__ * * To run a mutation, you first call `useWebhookUpdateMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWebhookUpdateMutation` 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 [webhookUpdateMutation, { data, loading, error }] = useWebhookUpdateMutation({ * variables: { * id: // value for 'id' * input: // value for 'input' * }, * }); */ export function useWebhookUpdateMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WebhookUpdateDocument, options); } export type WebhookUpdateMutationHookResult = ReturnType; export type WebhookUpdateMutationResult = Apollo.MutationResult; export type WebhookUpdateMutationOptions = Apollo.BaseMutationOptions; export const WebhookDeleteDocument = gql` mutation WebhookDelete($id: ID!) { webhookDelete(id: $id) { errors { ...WebhookError } } } ${WebhookErrorFragmentDoc}`; export type WebhookDeleteMutationFn = Apollo.MutationFunction; /** * __useWebhookDeleteMutation__ * * To run a mutation, you first call `useWebhookDeleteMutation` within a React component and pass it any options that fit your needs. * When your component renders, `useWebhookDeleteMutation` 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 [webhookDeleteMutation, { data, loading, error }] = useWebhookDeleteMutation({ * variables: { * id: // value for 'id' * }, * }); */ export function useWebhookDeleteMutation(baseOptions?: ApolloReactHooks.MutationHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useMutation(WebhookDeleteDocument, options); } export type WebhookDeleteMutationHookResult = ReturnType; export type WebhookDeleteMutationResult = Apollo.MutationResult; export type WebhookDeleteMutationOptions = Apollo.BaseMutationOptions; export const WebhookDetailsDocument = gql` query WebhookDetails($id: ID!) { webhook(id: $id) { ...Webhook syncEvents { eventType } asyncEvents { eventType } secretKey targetUrl } } ${WebhookFragmentDoc}`; /** * __useWebhookDetailsQuery__ * * To run a query within a React component, call `useWebhookDetailsQuery` and pass it any options that fit your needs. * When your component renders, `useWebhookDetailsQuery` 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 } = useWebhookDetailsQuery({ * variables: { * id: // value for 'id' * }, * }); */ export function useWebhookDetailsQuery(baseOptions: ApolloReactHooks.QueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useQuery(WebhookDetailsDocument, options); } export function useWebhookDetailsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) { const options = {...defaultOptions, ...baseOptions} return ApolloReactHooks.useLazyQuery(WebhookDetailsDocument, options); } export type WebhookDetailsQueryHookResult = ReturnType; export type WebhookDetailsLazyQueryHookResult = ReturnType; export type WebhookDetailsQueryResult = Apollo.QueryResult;