2020-07-07 10:14:12 +00:00
|
|
|
import {
|
|
|
|
bulkProductErrorFragment,
|
|
|
|
bulkStockErrorFragment,
|
2020-07-30 09:54:16 +00:00
|
|
|
exportErrorFragment,
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
productChannelListingErrorFragment,
|
2020-07-07 10:14:12 +00:00
|
|
|
productErrorFragment,
|
2020-10-03 09:52:59 +00:00
|
|
|
productErrorWithAttributesFragment,
|
2020-07-07 10:14:12 +00:00
|
|
|
stockErrorFragment
|
|
|
|
} from "@saleor/fragments/errors";
|
|
|
|
import {
|
2021-05-28 09:59:25 +00:00
|
|
|
channelListingProductFragment,
|
|
|
|
channelListingProductVariantFragment,
|
2020-07-30 09:54:16 +00:00
|
|
|
exportFileFragment,
|
2021-05-28 09:59:25 +00:00
|
|
|
fragmentProductMedia,
|
2020-07-07 10:14:12 +00:00
|
|
|
fragmentVariant,
|
|
|
|
productFragmentDetails
|
|
|
|
} from "@saleor/fragments/products";
|
2020-03-23 12:23:29 +00:00
|
|
|
import makeMutation from "@saleor/hooks/makeMutation";
|
2021-03-17 13:07:48 +00:00
|
|
|
import {
|
|
|
|
ProductMediaDelete,
|
|
|
|
ProductMediaDeleteVariables
|
|
|
|
} from "@saleor/products/types/ProductMediaDelete";
|
|
|
|
import {
|
|
|
|
ProductMediaReorder,
|
|
|
|
ProductMediaReorderVariables
|
|
|
|
} from "@saleor/products/types/ProductMediaReorder";
|
|
|
|
import {
|
|
|
|
ProductMediaUpdate,
|
|
|
|
ProductMediaUpdateVariables
|
|
|
|
} from "@saleor/products/types/ProductMediaUpdate";
|
|
|
|
import {
|
|
|
|
VariantMediaAssign,
|
|
|
|
VariantMediaAssignVariables
|
|
|
|
} from "@saleor/products/types/VariantMediaAssign";
|
|
|
|
import {
|
|
|
|
VariantMediaUnassign,
|
|
|
|
VariantMediaUnassignVariables
|
|
|
|
} from "@saleor/products/types/VariantMediaUnassign";
|
2020-05-14 09:30:32 +00:00
|
|
|
import gql from "graphql-tag";
|
|
|
|
|
|
|
|
import {
|
|
|
|
productBulkDelete,
|
|
|
|
productBulkDeleteVariables
|
|
|
|
} from "./types/productBulkDelete";
|
|
|
|
import {
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
ProductChannelListingUpdate,
|
|
|
|
ProductChannelListingUpdateVariables
|
|
|
|
} from "./types/ProductChannelListingUpdate";
|
2019-06-19 14:40:52 +00:00
|
|
|
import { ProductCreate, ProductCreateVariables } from "./types/ProductCreate";
|
|
|
|
import { ProductDelete, ProductDeleteVariables } from "./types/ProductDelete";
|
2020-07-30 09:54:16 +00:00
|
|
|
import { ProductExport, ProductExportVariables } from "./types/ProductExport";
|
2019-06-19 14:40:52 +00:00
|
|
|
import {
|
2021-03-17 13:07:48 +00:00
|
|
|
ProductMediaCreate,
|
|
|
|
ProductMediaCreateVariables
|
|
|
|
} from "./types/ProductMediaCreate";
|
2019-06-19 14:40:52 +00:00
|
|
|
import { ProductUpdate, ProductUpdateVariables } from "./types/ProductUpdate";
|
2020-05-14 09:30:32 +00:00
|
|
|
import {
|
|
|
|
ProductVariantBulkCreate,
|
|
|
|
ProductVariantBulkCreateVariables
|
|
|
|
} from "./types/ProductVariantBulkCreate";
|
|
|
|
import {
|
|
|
|
ProductVariantBulkDelete,
|
|
|
|
ProductVariantBulkDeleteVariables
|
|
|
|
} from "./types/ProductVariantBulkDelete";
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
import {
|
|
|
|
ProductVariantChannelListingUpdate,
|
|
|
|
ProductVariantChannelListingUpdateVariables
|
|
|
|
} from "./types/ProductVariantChannelListingUpdate";
|
2020-09-17 14:37:33 +00:00
|
|
|
import {
|
|
|
|
ProductVariantReorder,
|
|
|
|
ProductVariantReorderVariables
|
|
|
|
} from "./types/ProductVariantReorder";
|
2020-09-25 12:33:01 +00:00
|
|
|
import {
|
|
|
|
ProductVariantSetDefault,
|
|
|
|
ProductVariantSetDefaultVariables
|
|
|
|
} from "./types/ProductVariantSetDefault";
|
2019-06-19 14:40:52 +00:00
|
|
|
import {
|
|
|
|
SimpleProductUpdate,
|
|
|
|
SimpleProductUpdateVariables
|
|
|
|
} from "./types/SimpleProductUpdate";
|
|
|
|
import { VariantCreate, VariantCreateVariables } from "./types/VariantCreate";
|
|
|
|
import { VariantDelete, VariantDeleteVariables } from "./types/VariantDelete";
|
|
|
|
import { VariantUpdate, VariantUpdateVariables } from "./types/VariantUpdate";
|
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const productMediaCreateMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-05-28 09:59:25 +00:00
|
|
|
${fragmentProductMedia}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation ProductMediaCreate(
|
|
|
|
$product: ID!
|
|
|
|
$image: Upload
|
|
|
|
$alt: String
|
|
|
|
$mediaUrl: String
|
|
|
|
) {
|
|
|
|
productMediaCreate(
|
|
|
|
input: {
|
|
|
|
alt: $alt
|
|
|
|
image: $image
|
|
|
|
product: $product
|
|
|
|
mediaUrl: $mediaUrl
|
|
|
|
}
|
|
|
|
) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useProductMediaCreateMutation = makeMutation<
|
|
|
|
ProductMediaCreate,
|
|
|
|
ProductMediaCreateVariables
|
|
|
|
>(productMediaCreateMutation);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
export const productDeleteMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
mutation ProductDelete($id: ID!) {
|
|
|
|
productDelete(id: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useProductDeleteMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
ProductDelete,
|
|
|
|
ProductDeleteVariables
|
|
|
|
>(productDeleteMutation);
|
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const productMediaReorder = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation ProductMediaReorder($productId: ID!, $mediaIds: [ID]!) {
|
|
|
|
productMediaReorder(productId: $productId, mediaIds: $mediaIds) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
|
|
|
id
|
2021-03-17 13:07:48 +00:00
|
|
|
media {
|
2019-06-19 14:40:52 +00:00
|
|
|
id
|
|
|
|
alt
|
|
|
|
sortOrder
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useProductMediaReorder = makeMutation<
|
|
|
|
ProductMediaReorder,
|
|
|
|
ProductMediaReorderVariables
|
|
|
|
>(productMediaReorder);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2020-09-25 12:33:01 +00:00
|
|
|
const productVariantSetDefault = gql`
|
|
|
|
${productErrorFragment}
|
|
|
|
mutation ProductVariantSetDefault($productId: ID!, $variantId: ID!) {
|
|
|
|
productVariantSetDefault(productId: $productId, variantId: $variantId) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-09-25 12:33:01 +00:00
|
|
|
...ProductErrorFragment
|
|
|
|
}
|
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
defaultVariant {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
variants {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
2020-09-25 12:33:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const useProductVariantSetDefaultMutation = makeMutation<
|
|
|
|
ProductVariantSetDefault,
|
|
|
|
ProductVariantSetDefaultVariables
|
|
|
|
>(productVariantSetDefault);
|
|
|
|
|
2019-06-19 14:40:52 +00:00
|
|
|
export const productUpdateMutation = gql`
|
2020-10-03 09:52:59 +00:00
|
|
|
${productErrorWithAttributesFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
${productFragmentDetails}
|
2021-05-28 09:59:25 +00:00
|
|
|
mutation ProductUpdate(
|
|
|
|
$id: ID!
|
|
|
|
$input: ProductInput!
|
|
|
|
$firstValues: Int
|
|
|
|
$afterValues: String
|
|
|
|
$lastValues: Int
|
|
|
|
$beforeValues: String
|
|
|
|
) {
|
2020-09-23 08:29:13 +00:00
|
|
|
productUpdate(id: $id, input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
|
|
|
...Product
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useProductUpdateMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
ProductUpdate,
|
|
|
|
ProductUpdateVariables
|
|
|
|
>(productUpdateMutation);
|
|
|
|
|
|
|
|
export const simpleProductUpdateMutation = gql`
|
2020-03-24 21:38:26 +00:00
|
|
|
${bulkStockErrorFragment}
|
2020-10-03 09:52:59 +00:00
|
|
|
${productErrorWithAttributesFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
${productFragmentDetails}
|
2020-03-24 21:38:26 +00:00
|
|
|
${stockErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
${fragmentVariant}
|
|
|
|
mutation SimpleProductUpdate(
|
|
|
|
$id: ID!
|
2020-09-23 08:29:13 +00:00
|
|
|
$input: ProductInput!
|
2019-06-19 14:40:52 +00:00
|
|
|
$productVariantId: ID!
|
|
|
|
$productVariantInput: ProductVariantInput!
|
2020-03-24 21:38:26 +00:00
|
|
|
$addStocks: [StockInput!]!
|
|
|
|
$deleteStocks: [ID!]!
|
|
|
|
$updateStocks: [StockInput!]!
|
2021-05-28 09:59:25 +00:00
|
|
|
$firstValues: Int
|
|
|
|
$afterValues: String
|
|
|
|
$lastValues: Int
|
|
|
|
$beforeValues: String
|
2019-06-19 14:40:52 +00:00
|
|
|
) {
|
2020-09-23 08:29:13 +00:00
|
|
|
productUpdate(id: $id, input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
|
|
|
...Product
|
|
|
|
}
|
|
|
|
}
|
|
|
|
productVariantUpdate(id: $productVariantId, input: $productVariantInput) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
2020-03-24 21:38:26 +00:00
|
|
|
productVariantStocksCreate(
|
|
|
|
stocks: $addStocks
|
|
|
|
variantId: $productVariantId
|
|
|
|
) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-24 21:38:26 +00:00
|
|
|
...BulkStockErrorFragment
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
|
|
|
productVariantStocksDelete(
|
|
|
|
warehouseIds: $deleteStocks
|
|
|
|
variantId: $productVariantId
|
|
|
|
) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-24 21:38:26 +00:00
|
|
|
...StockErrorFragment
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
|
|
|
productVariantStocksUpdate(
|
|
|
|
stocks: $updateStocks
|
|
|
|
variantId: $productVariantId
|
|
|
|
) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-24 21:38:26 +00:00
|
|
|
...BulkStockErrorFragment
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useSimpleProductUpdateMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
SimpleProductUpdate,
|
|
|
|
SimpleProductUpdateVariables
|
|
|
|
>(simpleProductUpdateMutation);
|
|
|
|
|
|
|
|
export const productCreateMutation = gql`
|
2020-10-03 09:52:59 +00:00
|
|
|
${productErrorWithAttributesFragment}
|
2020-09-23 08:29:13 +00:00
|
|
|
mutation ProductCreate($input: ProductCreateInput!) {
|
|
|
|
productCreate(input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useProductCreateMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
ProductCreate,
|
|
|
|
ProductCreateVariables
|
|
|
|
>(productCreateMutation);
|
|
|
|
|
|
|
|
export const variantDeleteMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
mutation VariantDelete($id: ID!) {
|
|
|
|
productVariantDelete(id: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useVariantDeleteMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
VariantDelete,
|
|
|
|
VariantDeleteVariables
|
|
|
|
>(variantDeleteMutation);
|
|
|
|
|
|
|
|
export const variantUpdateMutation = gql`
|
2020-03-27 10:40:34 +00:00
|
|
|
${bulkStockErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
${fragmentVariant}
|
2020-10-03 09:52:59 +00:00
|
|
|
${productErrorWithAttributesFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
mutation VariantUpdate(
|
2020-05-04 15:29:06 +00:00
|
|
|
$addStocks: [StockInput!]!
|
|
|
|
$removeStocks: [ID!]!
|
2019-06-19 14:40:52 +00:00
|
|
|
$id: ID!
|
|
|
|
$attributes: [AttributeValueInput]
|
|
|
|
$sku: String
|
|
|
|
$trackInventory: Boolean!
|
2020-03-27 10:40:34 +00:00
|
|
|
$stocks: [StockInput!]!
|
2021-06-08 06:58:36 +00:00
|
|
|
$weight: WeightScalar
|
|
|
|
$firstValues: Int
|
|
|
|
$afterValues: String
|
|
|
|
$lastValues: Int
|
|
|
|
$beforeValues: String
|
2019-06-19 14:40:52 +00:00
|
|
|
) {
|
|
|
|
productVariantUpdate(
|
|
|
|
id: $id
|
|
|
|
input: {
|
|
|
|
attributes: $attributes
|
|
|
|
sku: $sku
|
|
|
|
trackInventory: $trackInventory
|
2020-07-13 16:51:05 +00:00
|
|
|
weight: $weight
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
2020-03-27 10:40:34 +00:00
|
|
|
productVariantStocksUpdate(stocks: $stocks, variantId: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-27 10:40:34 +00:00
|
|
|
...BulkStockErrorFragment
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
2020-05-04 15:29:06 +00:00
|
|
|
productVariantStocksCreate(stocks: $addStocks, variantId: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-05-04 15:29:06 +00:00
|
|
|
...BulkStockErrorFragment
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
id
|
|
|
|
stocks {
|
|
|
|
...StockFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
productVariantStocksDelete(warehouseIds: $removeStocks, variantId: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-05-04 15:29:06 +00:00
|
|
|
code
|
|
|
|
field
|
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
id
|
|
|
|
stocks {
|
|
|
|
...StockFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useVariantUpdateMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
VariantUpdate,
|
|
|
|
VariantUpdateVariables
|
|
|
|
>(variantUpdateMutation);
|
|
|
|
|
|
|
|
export const variantCreateMutation = gql`
|
|
|
|
${fragmentVariant}
|
2020-10-03 09:52:59 +00:00
|
|
|
${productErrorWithAttributesFragment}
|
2021-05-28 09:59:25 +00:00
|
|
|
mutation VariantCreate(
|
2021-06-08 06:58:36 +00:00
|
|
|
$input: ProductVariantCreateInput!
|
|
|
|
$firstValues: Int
|
|
|
|
$afterValues: String
|
|
|
|
$lastValues: Int
|
|
|
|
$beforeValues: String
|
2021-05-28 09:59:25 +00:00
|
|
|
) {
|
2019-09-19 10:13:48 +00:00
|
|
|
productVariantCreate(input: $input) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-10-03 09:52:59 +00:00
|
|
|
...ProductErrorWithAttributesFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
|
|
|
...ProductVariant
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useVariantCreateMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
VariantCreate,
|
|
|
|
VariantCreateVariables
|
|
|
|
>(variantCreateMutation);
|
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const productMediaDeleteMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation ProductMediaDelete($id: ID!) {
|
|
|
|
productMediaDelete(id: $id) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
product {
|
|
|
|
id
|
2021-03-17 13:07:48 +00:00
|
|
|
media {
|
2019-06-19 14:40:52 +00:00
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useProductMediaDeleteMutation = makeMutation<
|
|
|
|
ProductMediaDelete,
|
|
|
|
ProductMediaDeleteVariables
|
|
|
|
>(productMediaDeleteMutation);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const productMediaUpdateMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-05-28 09:59:25 +00:00
|
|
|
${fragmentProductMedia}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation ProductMediaUpdate($id: ID!, $alt: String!) {
|
|
|
|
productMediaUpdate(id: $id, input: { alt: $alt }) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useProductMediaUpdateMutation = makeMutation<
|
|
|
|
ProductMediaUpdate,
|
|
|
|
ProductMediaUpdateVariables
|
|
|
|
>(productMediaUpdateMutation);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const variantMediaAssignMutation = gql`
|
2021-05-28 09:59:25 +00:00
|
|
|
${fragmentProductMedia}
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation VariantMediaAssign($variantId: ID!, $mediaId: ID!) {
|
|
|
|
variantMediaAssign(variantId: $variantId, mediaId: $mediaId) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
product {
|
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
variants {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
sku
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useVariantMediaAssignMutation = makeMutation<
|
|
|
|
VariantMediaAssign,
|
|
|
|
VariantMediaAssignVariables
|
|
|
|
>(variantMediaAssignMutation);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
2021-03-17 13:07:48 +00:00
|
|
|
export const variantMediaUnassignMutation = gql`
|
2021-05-28 09:59:25 +00:00
|
|
|
${fragmentProductMedia}
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2021-03-17 13:07:48 +00:00
|
|
|
mutation VariantMediaUnassign($variantId: ID!, $mediaId: ID!) {
|
|
|
|
variantMediaUnassign(variantId: $variantId, mediaId: $mediaId) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
productVariant {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
product {
|
|
|
|
id
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
variants {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
sku
|
|
|
|
media {
|
|
|
|
...ProductMediaFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-03-17 13:07:48 +00:00
|
|
|
export const useVariantMediaUnassignMutation = makeMutation<
|
|
|
|
VariantMediaUnassign,
|
|
|
|
VariantMediaUnassignVariables
|
|
|
|
>(variantMediaUnassignMutation);
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
export const productBulkDeleteMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
mutation productBulkDelete($ids: [ID!]!) {
|
|
|
|
productBulkDelete(ids: $ids) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useProductBulkDeleteMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
productBulkDelete,
|
|
|
|
productBulkDeleteVariables
|
|
|
|
>(productBulkDeleteMutation);
|
|
|
|
|
2019-10-02 13:34:34 +00:00
|
|
|
export const ProductVariantBulkCreateMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${bulkProductErrorFragment}
|
2019-10-02 13:34:34 +00:00
|
|
|
mutation ProductVariantBulkCreate(
|
|
|
|
$id: ID!
|
|
|
|
$inputs: [ProductVariantBulkCreateInput]!
|
|
|
|
) {
|
|
|
|
productVariantBulkCreate(product: $id, variants: $inputs) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...BulkProductErrorFragment
|
2019-10-02 13:34:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-04-01 16:28:47 +00:00
|
|
|
export const useProductVariantBulkCreateMutation = makeMutation<
|
2019-10-02 13:34:34 +00:00
|
|
|
ProductVariantBulkCreate,
|
|
|
|
ProductVariantBulkCreateVariables
|
|
|
|
>(ProductVariantBulkCreateMutation);
|
|
|
|
|
2019-06-19 14:40:52 +00:00
|
|
|
export const ProductVariantBulkDeleteMutation = gql`
|
2020-03-06 14:25:23 +00:00
|
|
|
${productErrorFragment}
|
2019-06-19 14:40:52 +00:00
|
|
|
mutation ProductVariantBulkDelete($ids: [ID!]!) {
|
|
|
|
productVariantBulkDelete(ids: $ids) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-03-06 14:25:23 +00:00
|
|
|
...ProductErrorFragment
|
2019-06-19 14:40:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-08-24 09:50:55 +00:00
|
|
|
export const useProductVariantBulkDeleteMutation = makeMutation<
|
2019-06-19 14:40:52 +00:00
|
|
|
ProductVariantBulkDelete,
|
|
|
|
ProductVariantBulkDeleteVariables
|
|
|
|
>(ProductVariantBulkDeleteMutation);
|
2020-07-30 09:54:16 +00:00
|
|
|
|
|
|
|
export const productExportMutation = gql`
|
|
|
|
${exportFileFragment}
|
|
|
|
${exportErrorFragment}
|
|
|
|
mutation ProductExport($input: ExportProductsInput!) {
|
|
|
|
exportProducts(input: $input) {
|
|
|
|
exportFile {
|
|
|
|
...ExportFileFragment
|
|
|
|
}
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-07-30 09:54:16 +00:00
|
|
|
...ExportErrorFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
export const useProductExport = makeMutation<
|
|
|
|
ProductExport,
|
|
|
|
ProductExportVariables
|
|
|
|
>(productExportMutation);
|
2020-09-03 10:25:16 +00:00
|
|
|
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
export const ProductChannelListingUpdateMutation = gql`
|
2021-05-28 09:59:25 +00:00
|
|
|
${channelListingProductFragment}
|
|
|
|
${channelListingProductVariantFragment}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
${productChannelListingErrorFragment}
|
|
|
|
mutation ProductChannelListingUpdate(
|
|
|
|
$id: ID!
|
|
|
|
$input: ProductChannelListingUpdateInput!
|
2020-09-03 10:25:16 +00:00
|
|
|
) {
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
productChannelListingUpdate(id: $id, input: $input) {
|
2020-09-18 13:01:00 +00:00
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
channelListings {
|
|
|
|
...ChannelListingProductFragment
|
|
|
|
}
|
|
|
|
variants {
|
|
|
|
id
|
|
|
|
channelListings {
|
|
|
|
...ChannelListingProductVariantFragment
|
|
|
|
}
|
|
|
|
}
|
2020-09-18 13:01:00 +00:00
|
|
|
}
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
...ProductChannelListingErrorFragment
|
2020-09-03 10:25:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-09-17 14:37:33 +00:00
|
|
|
const productVariantReorder = gql`
|
|
|
|
${productErrorFragment}
|
|
|
|
mutation ProductVariantReorder($move: ReorderInput!, $productId: ID!) {
|
|
|
|
productVariantReorder(moves: [$move], productId: $productId) {
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
2020-09-17 14:37:33 +00:00
|
|
|
...ProductErrorFragment
|
|
|
|
}
|
|
|
|
product {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
variants {
|
|
|
|
id
|
|
|
|
}
|
2020-09-17 14:37:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
export const useProductVariantReorderMutation = makeMutation<
|
|
|
|
ProductVariantReorder,
|
|
|
|
ProductVariantReorderVariables
|
|
|
|
>(productVariantReorder);
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
export const useProductChannelListingUpdate = makeMutation<
|
|
|
|
ProductChannelListingUpdate,
|
|
|
|
ProductChannelListingUpdateVariables
|
|
|
|
>(ProductChannelListingUpdateMutation);
|
|
|
|
|
|
|
|
export const ProductVariantChannelListingUpdateMutation = gql`
|
2021-05-28 09:59:25 +00:00
|
|
|
${channelListingProductVariantFragment}
|
|
|
|
${channelListingProductFragment}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
${productChannelListingErrorFragment}
|
|
|
|
mutation ProductVariantChannelListingUpdate(
|
|
|
|
$id: ID!
|
|
|
|
$input: [ProductVariantChannelListingAddInput!]!
|
|
|
|
) {
|
|
|
|
productVariantChannelListingUpdate(id: $id, input: $input) {
|
|
|
|
variant {
|
2021-05-28 09:59:25 +00:00
|
|
|
id
|
|
|
|
channelListings {
|
|
|
|
...ChannelListingProductVariantFragment
|
|
|
|
}
|
|
|
|
product {
|
|
|
|
channelListings {
|
|
|
|
...ChannelListingProductFragment
|
|
|
|
}
|
|
|
|
}
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
}
|
2021-04-26 07:49:55 +00:00
|
|
|
errors {
|
Multichannel (#833)
* add multichannel to configuration view
* create multichannels list view
* create multichannels list view
* add ChannelsCreate view
* update channels in configuration
* add stories
* update default messages
* fix ChannelForm props
* update channels list styles
* update snapshots
* update channel form currency input
* update Channels fragments
* extract messages
* remove tabs from channelsList
* channel details, channel delete modal (#598)
* create Channel details view
* create ChannelDeleteDialog
* add channels delete dialog to channels list
* update messages and types
* fixes after review
* channels availability (#609)
* create Channel details view
* update messages and types
* create ChannelsAvailability component
* create more product channels components
* create channels stories, update fixtures, types
* update product views with channels data
* update schema and snapshots
* update defaultMessages
* update ProductUpdate view
* create ChannelsAvailabilityDropdown component
* add product channels to local storage
* update globalTypes
* Update to new schema and resolve issues
* Update messages
* create deleteChannel mutation
* add channels availability component to product create view
* refactor ProductCreate and ProductUpdate views
* CollectionProducts view cleanup
* add disabled prop to ActionDialog
* use updateChannels mutation in ProductCreate view
* ProductCreate - update submit function
* fixes after review
* update snapshots and messages
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
* channels shipping components (#655)
* create PricingCard, OrderValue and OrderWeight components
* create ShippingZoneRatesPage and DeleteShippingRateDialog
* update ChannelsAvailability component
* updates after review
* channels shipping views (#662)
* update ChannelsAvailability component
* updates after review
* create PriceRate views, update types
* create weight rates views
* update shipping views, stories, messages
* update snapshots
* update snapshots
* update useChannels hook
* orders channels components (#698)
* create OrderChannelSectionCard component
* update OrderDetailsPage
* update DraftOrderChannelCard
* update snapshots
* update fixtures
* small change after review, update snapshots
* product pricing (#702)
* update product types
* update Pricing in simple product view
* use productVariantCreate mutation in simple product view
* update snapshots and messages
* handle create variant (#715)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update snapshots and messages
* fix update and create product handlers
* update pricing types
* channels modal - new styles, search input (#717)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* fix search input label styles
* update toggleAllChannels function
* update variant creator (#724)
* update product types
* update Pricing in simple product view
* handle product create and update errors
* update pricing types
* add search input in ChannelsAvailabilityDialog
* update ChannelsAvailabilityDialog in all views
* update snapshots
* add channelLisitngs to variant creator
* update variant creator price styles
* update product variant creator reducer tests
* update createVariants tests
* update error handling in product variant creator
* add Skip pricing for now option
* use PriceField instead of TextField in ProductVariantCreatorSummary
* create price validation function
* fix errors handling in ProductVariantPrice component
* fixes after review
* Product List - remove publish/unpublish buttons (#727)
* ProductList - remove publish and unpublish buttons
* update messages
* update snapshots, messages
* revert changes in ChannelsAvailabilityDropdown
* products/shipping/discount list settings (#739)
* create ChannelSettingsDialog component
* update snapshots
* ProductList - open settings modal when there is no selected channel
* add settings modal to vouchers list
* add settings dialog to sales list
* add setting modal to shipping list
* update shipping
* update snapshots, messages
* useChannelsSettings - remove selectedChannelSlug
* fix channels update handler in product and shipping view
* messages update in ChannelSettingsDialog
* handle product/discount list when there is no channels
* update onSettingsOpen prop
* collection availability dropdown (#743)
* add availability dropdown to collection products list
* update channelListingProduct fragment name
* update voucher view/components with channels (#746)
* update voucher view/components with channels
* update VoucherSummary, remove defaultCurrency from voucher components
* update snapshots
* move getChannelsVariables func to discounts handlers
* update voucher messages
* sale view/components with channels (#750)
* update sale views with channels
* small fixes in discounts
* order views with channels (#752)
* update draft orders with channels
* add channel activate/deactivate mutations
* remove sort by total in orders list
* add error notification on channel activate/deactivate
* product variants channel select (#755)
* add channels selector to ProductVariants component
* remove selectedChannel from ProductUpdate, update messages and snapshots
* update product fragments
* update translations (#762)
* update translations
* fix translation types
* update messages
* update Availability component (#766)
* update ChannelsAvailability component
* update product fixtures
* update collection and channel fixtures
* ChannelsAvailability - handle errors
* update product handlers
* update ChannelsAvailability styles
* update ProductVariant
* update snapshots
* fix missing things in multichannel (#785)
* add availability dropdown to discount products list
* fix error handling in shipping components
* update product views and components
* update messages
* update category view/components
* update CategoryProducts styles
* remove defaultCurrency from shipping components
* create ChannelsSelect component
* update channels error handling after review
* another fixes after review
* Add channels to collection views/components (#791)
** update collection components and views
* update create collection view
* update error handling in collection
* remove filter bar from collection list
* update products fragments
* small fix in collection create view
* use collectionFragment in useCatalogSearch
* update defaultMessages and snapshots
* update homepage view/drop defaultCurrency (#801)
* update homepage view
* drop defaultCurrency prop
* fix onChannelChange function in home view
* remove visibility from product list filters
* update export products with channels (#803)
* update ProductExportDialog with channels
* add new channel error code
* remover VISIBLE from product export dialog Financial information
* fix input size in ProductVariantCreatorSummary (#804)
* channels currency code select (#806)
* create select with currency codes
* fix ChannelDeleteDialog
* update defaultMessages, remove unneeded ChannelDetails handlers
* fixes after rebase
* replace channelListing with channelListings
* [multichannel] Update schema]
* Fix product create test
Co-authored-by: AlicjaSzu <alicja.szukuc@gmail.com>
Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2020-11-17 16:10:42 +00:00
|
|
|
...ProductChannelListingErrorFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const useProductVariantChannelListingUpdate = makeMutation<
|
|
|
|
ProductVariantChannelListingUpdate,
|
|
|
|
ProductVariantChannelListingUpdateVariables
|
|
|
|
>(ProductVariantChannelListingUpdateMutation);
|