
* Use generated hooks in apps * Remove unused files * Use proper types in apps * Use generated hooks in attributes * Use generated hooks in auth module * Use generated hooks in categories * Use generated hooks in channels * Use generated types in collections * Remove legacy types from background tasks * Use generated hooks in customers * Use generated hooks in discounts * Use generated hook in file upload * Use generated types in gift cards * Use generated types in home * Use generated hooks in navigation * Use generated hooks in orders * Use generated hooks in pages * Use generated hooks in page types * Use generated hooks in permission groups * Use generated hooks in plugins * Use generated hooks in products * Use fragment to mark product variants * Improve code a bit * Use generated hooks in page types * Use generated types in searches * Use generated hooks in shipping * Use generated hooks in site settings * Use generated hooks in staff members * Use generated hooks in taxes * Place all gql generated files in one directory * Use generated hooks in translations * Use global types from new generated module * Use generated hooks in warehouses * Use generated hooks in webhooks * Use generated fragment types * Unclutter types * Remove hoc components * Split hooks and types * Fetch introspection file * Delete obsolete schema file * Fix rebase artifacts * Fix autoreplace * Fix auth provider tests * Fix urls * Remove leftover types * Fix rebase artifacts
488 lines
8.4 KiB
TypeScript
488 lines
8.4 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
|
|
}
|
|
`;
|
|
|
|
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 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
|
|
}
|
|
`;
|