
* Update schema, remove transaction specific files * Merge `.transaction` queries and mutations into regular files * Merge OrderDetails fragments * Remove usage of `.transaction` graphl types * Update fixtures * Remove usage of useFlag, remove duplicated queries & mutations * Fix displayed event type for INFO * Remove type alias from order/types.ts, remove type casting * Fix failing tests * Add preview label and better description in Channel settings * Update button in GrantRefund page * Fix missing data-test-id * Extract messages * Visual fixes * Revert changes to generated files * Revert changes to generated files * Fix psp reference hover * Fix colors on manu refunds screen * Revert "Fix colors on manu refunds screen" This reverts commit 02302930ab502a4fdc3c71558532a2d74f2e32c9. --------- Co-authored-by: andrzejewsky <vox3r69@gmail.com> Co-authored-by: Michal Miszczyszyn <michal@mmiszy.pl>
577 lines
10 KiB
TypeScript
577 lines
10 KiB
TypeScript
import { gql } from "@apollo/client";
|
|
|
|
export const attributeErrorFragment = gql`
|
|
fragment AttributeError on AttributeError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productErrorFragment = gql`
|
|
fragment ProductError on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productErrorWithAttributesFragment = gql`
|
|
fragment ProductErrorWithAttributes on ProductError {
|
|
...ProductError
|
|
attributes
|
|
}
|
|
`;
|
|
|
|
export const productChannelListingErrorFragment = gql`
|
|
fragment ProductChannelListingError on ProductChannelListingError {
|
|
code
|
|
field
|
|
message
|
|
channels
|
|
}
|
|
`;
|
|
|
|
export const collectionChannelListingErrorFragment = gql`
|
|
fragment CollectionChannelListingError on CollectionChannelListingError {
|
|
code
|
|
field
|
|
message
|
|
channels
|
|
}
|
|
`;
|
|
|
|
export const accountErrorFragment = gql`
|
|
fragment AccountError on AccountError {
|
|
code
|
|
field
|
|
addressType
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const discountErrorFragment = gql`
|
|
fragment DiscountError on DiscountError {
|
|
code
|
|
field
|
|
channels
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const menuErrorFragment = gql`
|
|
fragment MenuError on MenuError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const orderErrorFragment = gql`
|
|
fragment OrderError on OrderError {
|
|
code
|
|
field
|
|
addressType
|
|
message
|
|
orderLines
|
|
}
|
|
`;
|
|
|
|
export const orderSettingsErrorFragment = gql`
|
|
fragment OrderSettingsError on OrderSettingsError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageErrorFragment = gql`
|
|
fragment PageError on PageError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageErrorWithAttributesFragment = gql`
|
|
fragment PageErrorWithAttributes on PageError {
|
|
...PageError
|
|
attributes
|
|
}
|
|
`;
|
|
|
|
export const permissionGroupErrorFragment = gql`
|
|
fragment PermissionGroupError on PermissionGroupError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const bulkProductErrorFragment = gql`
|
|
fragment BulkProductError on BulkProductError {
|
|
field
|
|
code
|
|
index
|
|
channels
|
|
message
|
|
}
|
|
`;
|
|
export const productVariantBulkError = gql`
|
|
fragment ProductVariantBulkError on ProductVariantBulkError {
|
|
field
|
|
code
|
|
message
|
|
attributes
|
|
values
|
|
warehouses
|
|
channels
|
|
}
|
|
`;
|
|
export const bulkStockErrorFragment = gql`
|
|
fragment BulkStockError on BulkStockError {
|
|
code
|
|
field
|
|
index
|
|
message
|
|
}
|
|
`;
|
|
export const stockErrorFragment = gql`
|
|
fragment StockError on StockError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const shippingChannelsErrorFragment = gql`
|
|
fragment ShippingChannelsError on ShippingError {
|
|
code
|
|
field
|
|
channels
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const shippingErrorFragment = gql`
|
|
fragment ShippingError on ShippingError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const shopErrorFragment = gql`
|
|
fragment ShopError on ShopError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const staffErrorFragment = gql`
|
|
fragment StaffError on StaffError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const warehouseErrorFragment = gql`
|
|
fragment WarehouseError on WarehouseError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const webhookErrorFragment = gql`
|
|
fragment WebhookError on WebhookError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const invoiceErrorFragment = gql`
|
|
fragment InvoiceError on InvoiceError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const appErrorFragment = gql`
|
|
fragment AppError on AppError {
|
|
field
|
|
message
|
|
code
|
|
permissions
|
|
}
|
|
`;
|
|
|
|
export const exportErrorFragment = gql`
|
|
fragment ExportError on ExportError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pluginErrorFragment = gql`
|
|
fragment PluginError on PluginError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const metadataErrorFragment = gql`
|
|
fragment MetadataError on MetadataError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const collectionsErrorFragment = gql`
|
|
fragment CollectionError on CollectionError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const uploadErrorFragment = gql`
|
|
fragment UploadError on UploadError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const giftCardErrorFragment = gql`
|
|
fragment GiftCardError on GiftCardError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const giftCardSettingsErrorFragment = gql`
|
|
fragment GiftCardSettingsError on GiftCardSettingsError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const saleBulkDeleteError = gql`
|
|
fragment SaleBulkDeleteError on DiscountError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const voucherBulkDeleteError = gql`
|
|
fragment VoucherBulkDeleteError on DiscountError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const giftCardBulkCreateErrorFragment = gql`
|
|
fragment GiftCardBulkCreateErrorFragment on GiftCardError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const giftCardCreateErrorFragment = gql`
|
|
fragment GiftCardCreateErrorFragment on GiftCardError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageBulkPublishErrorFragment = gql`
|
|
fragment PageBulkPublishErrorFragment on PageError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageBulkRemoveErrorFragment = gql`
|
|
fragment PageBulkRemoveErrorFragment on PageError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageTypeDeleteErrorFragment = gql`
|
|
fragment PageTypeDeleteErrorFragment on PageError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageTypeBulkDeleteErrorFragment = gql`
|
|
fragment PageTypeDeleteErrorFragment on PageError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productVariantStocksDeleteErrorFragment = gql`
|
|
fragment ProductVariantStocksDeleteError on StockError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTypeDeleteErrorFragment = gql`
|
|
fragment ProductTypeDeleteErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTypeBulkDeleteErrorFragment = gql`
|
|
fragment ProductTypeBulkDeleteErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTypeBulkUpdateErrorFragment = gql`
|
|
fragment ProductTypeBulkUpdateErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productAttributeAssignErrorFragment = gql`
|
|
fragment ProductAttributeAssignErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productAttributeUnassignErrorFragment = gql`
|
|
fragment ProductAttributeUnassignErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTypeCreateErrorFragment = gql`
|
|
fragment ProductTypeCreateErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTypeReorderAttributesErrorFragment = gql`
|
|
fragment ProductTypeReorderAttributesErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productAttributeAssignmentUpdateErrorFragment = gql`
|
|
fragment ProductAttributeAssignmentUpdateErrorFragment on ProductError {
|
|
code
|
|
field
|
|
message
|
|
attributes
|
|
}
|
|
`;
|
|
|
|
export const shopSettingsUpdateErrorFragment = gql`
|
|
fragment ShopSettingsUpdateErrorFragment on ShopError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const shopFetchTaxRatesErrorFragment = gql`
|
|
fragment ShopFetchTaxRatesErrorFragment on ShopError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productTranslateErrorFragment = gql`
|
|
fragment ProductTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const productVariantTranslateErrorFragment = gql`
|
|
fragment ProductVariantTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const categoryTranslateErrorFragment = gql`
|
|
fragment CategoryTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const collectionTranslateErrorFragment = gql`
|
|
fragment CollectionTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const pageTranslateErrorFragment = gql`
|
|
fragment PageTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const voucherTranslateErrorFragment = gql`
|
|
fragment VoucherTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const saleTranslateErrorFragment = gql`
|
|
fragment SaleTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const attributeTranslateErrorFragment = gql`
|
|
fragment AttributeTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const attributeValueTranslateErrorFragment = gql`
|
|
fragment AttributeValueTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const shippingPriceTranslateErrorFragment = gql`
|
|
fragment ShippingPriceTranslateErrorFragment on TranslationError {
|
|
code
|
|
field
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const taxConfigurationUpdateError = gql`
|
|
fragment TaxConfigurationUpdateError on TaxConfigurationUpdateError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const taxCountryConfigurationUpdateError = gql`
|
|
fragment TaxCountryConfigurationUpdateError on TaxCountryConfigurationUpdateError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
export const taxCountryConfigurationDeleteError = gql`
|
|
fragment TaxCountryConfigurationDeleteError on TaxCountryConfigurationDeleteError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const taxClassUpdateError = gql`
|
|
fragment TaxClassUpdateError on TaxClassUpdateError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
export const taxClassCreateError = gql`
|
|
fragment TaxClassCreateError on TaxClassCreateError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
export const taxClassDeleteError = gql`
|
|
fragment TaxClassDeleteError on TaxClassDeleteError {
|
|
field
|
|
code
|
|
message
|
|
}
|
|
`;
|
|
|
|
export const transactionRequestActionErrorFragment = gql`
|
|
fragment TransactionRequestActionError on TransactionRequestActionError {
|
|
field
|
|
message
|
|
code
|
|
}
|
|
`;
|
|
|
|
export const transactionCreateErrorFragment = gql`
|
|
fragment TransactionCreateError on TransactionCreateError {
|
|
field
|
|
message
|
|
code
|
|
}
|
|
`;
|
|
|
|
export const orderGrantRefundCreateErrorFragment = gql`
|
|
fragment OrderGrantRefundCreateError on OrderGrantRefundCreateError {
|
|
field
|
|
message
|
|
code
|
|
}
|
|
`;
|
|
|
|
export const orderGrantRefundUpdateErrorFragment = gql`
|
|
fragment OrderGrantRefundUpdateError on OrderGrantRefundUpdateError {
|
|
field
|
|
message
|
|
code
|
|
}
|
|
`;
|