saleor-dashboard/src/fragments/errors.ts

130 lines
2.1 KiB
TypeScript
Raw Normal View History

import gql from "graphql-tag";
export const productErrorFragment = gql`
fragment ProductErrorFragment on ProductError {
code
field
}
`;
export const accountErrorFragment = gql`
fragment AccountErrorFragment on AccountError {
code
field
}
`;
export const discountErrorFragment = gql`
fragment DiscountErrorFragment on DiscountError {
code
field
}
`;
export const menuErrorFragment = gql`
fragment MenuErrorFragment on MenuError {
code
field
}
`;
export const orderErrorFragment = gql`
fragment OrderErrorFragment on OrderError {
code
field
}
`;
export const pageErrorFragment = gql`
fragment PageErrorFragment on PageError {
code
field
}
`;
export const permissionGroupErrorFragment = gql`
fragment PermissionGroupErrorFragment on PermissionGroupError {
code
field
}
`;
export const bulkProductErrorFragment = gql`
fragment BulkProductErrorFragment on BulkProductError {
field
code
index
}
`;
export const bulkStockErrorFragment = gql`
fragment BulkStockErrorFragment on BulkStockError {
code
field
index
}
`;
export const stockErrorFragment = gql`
fragment StockErrorFragment on StockError {
code
field
}
`;
export const shippingErrorFragment = gql`
fragment ShippingErrorFragment on ShippingError {
code
field
}
`;
export const shopErrorFragment = gql`
fragment ShopErrorFragment on ShopError {
code
field
}
`;
export const staffErrorFragment = gql`
fragment StaffErrorFragment on StaffError {
code
field
}
`;
export const warehouseErrorFragment = gql`
fragment WarehouseErrorFragment on WarehouseError {
code
field
}
`;
export const webhookErrorFragment = gql`
fragment WebhookErrorFragment on WebhookError {
code
field
}
`;
2020-06-23 12:27:44 +00:00
export const invoiceErrorFragment = gql`
fragment InvoiceErrorFragment on InvoiceError {
code
field
}
`;
Apps (#599) * create Apps view * create more app components, generate types and messages * apps refactor, update snapshots * show error message in tooltip when app installation fail * update apps components and view, add apps list to storybook * update defaultMessages * create app details view * update AppListPage with Skeleton component * create app activate/deactivate dialogs, create app details stories * add AppHeader to AppDetailsPage * update defaultMessages * update AppDetails view and components after review * create custom app details view * refactor webhooks * update webhooks fixtures * update WebhookDetailsPage story * update strings * create CustomAppCreate view and components * update AppListPage story * create AppInstall view and page * handle errors in AppInstall view * update defaultMessages * add AppInstallPage to storybook * add status prop to MessageManager * update defaultMessages * remove service account section * remove service account routes * remove as operator from notify status * add notifications for app installations * update styles for deactivated app * update app installations with local storage * update defaultMessages * AppInstall update * dd delete button to ongoin installations table * fix active installations condition * fix error messages in AppsList * update defaultMessages * add iframe to AppDetailsPage * create AppDetailsSettingsPage * install macaw-ui * apps styles clean up * update schema, fixtures * few apps updates * WebhookCreate - fix onBack button name * WebhookCreatePage story update * rename apps table from external to thirdparty * update defaultMessages * fix test, update snapshots * AppDetailsSettings - add token to headers * fix first number in local apps query * app details settings - use shop domain host * add onSettingsRowClick to InstalledApps * resolve conflicts * update changelog and messages * add noopener noreferrer do app privacy link * update snapshots * update snapshots * updates after review * update defaultMessages * CustomAppDetails - add missing notify status
2020-07-22 10:54:15 +00:00
export const appErrorFragment = gql`
fragment AppErrorFragment on AppError {
field
message
code
permissions
}
`;
export const exportErrorFragment = gql`
fragment ExportErrorFragment on ExportError {
code
field
}
`;