Fix form errors

This commit is contained in:
dominik-zeglen 2020-03-03 12:20:39 +01:00
parent 4c8cce4f23
commit 4c27d69229
155 changed files with 961 additions and 743 deletions

File diff suppressed because it is too large Load diff

View file

@ -14,7 +14,7 @@ export interface AttributeBulkDelete_attributeBulkDelete_errors {
export interface AttributeBulkDelete_attributeBulkDelete { export interface AttributeBulkDelete_attributeBulkDelete {
__typename: "AttributeBulkDelete"; __typename: "AttributeBulkDelete";
errors: AttributeBulkDelete_attributeBulkDelete_errors[] | null; errors: AttributeBulkDelete_attributeBulkDelete_errors[];
} }
export interface AttributeBulkDelete { export interface AttributeBulkDelete {

View file

@ -39,7 +39,7 @@ export interface AttributeCreate_attributeCreate_attribute {
export interface AttributeCreate_attributeCreate { export interface AttributeCreate_attributeCreate {
__typename: "AttributeCreate"; __typename: "AttributeCreate";
errors: AttributeCreate_attributeCreate_errors[] | null; errors: AttributeCreate_attributeCreate_errors[];
attribute: AttributeCreate_attributeCreate_attribute | null; attribute: AttributeCreate_attributeCreate_attribute | null;
} }

View file

@ -14,7 +14,7 @@ export interface AttributeDelete_attributeDelete_errors {
export interface AttributeDelete_attributeDelete { export interface AttributeDelete_attributeDelete {
__typename: "AttributeDelete"; __typename: "AttributeDelete";
errors: AttributeDelete_attributeDelete_errors[] | null; errors: AttributeDelete_attributeDelete_errors[];
} }
export interface AttributeDelete { export interface AttributeDelete {

View file

@ -39,7 +39,7 @@ export interface AttributeUpdate_attributeUpdate_attribute {
export interface AttributeUpdate_attributeUpdate { export interface AttributeUpdate_attributeUpdate {
__typename: "AttributeUpdate"; __typename: "AttributeUpdate";
errors: AttributeUpdate_attributeUpdate_errors[] | null; errors: AttributeUpdate_attributeUpdate_errors[];
attribute: AttributeUpdate_attributeUpdate_attribute | null; attribute: AttributeUpdate_attributeUpdate_attribute | null;
} }

View file

@ -39,7 +39,7 @@ export interface AttributeValueCreate_attributeValueCreate_attribute {
export interface AttributeValueCreate_attributeValueCreate { export interface AttributeValueCreate_attributeValueCreate {
__typename: "AttributeValueCreate"; __typename: "AttributeValueCreate";
errors: AttributeValueCreate_attributeValueCreate_errors[] | null; errors: AttributeValueCreate_attributeValueCreate_errors[];
attribute: AttributeValueCreate_attributeValueCreate_attribute | null; attribute: AttributeValueCreate_attributeValueCreate_attribute | null;
} }

View file

@ -39,7 +39,7 @@ export interface AttributeValueDelete_attributeValueDelete_attribute {
export interface AttributeValueDelete_attributeValueDelete { export interface AttributeValueDelete_attributeValueDelete {
__typename: "AttributeValueDelete"; __typename: "AttributeValueDelete";
errors: AttributeValueDelete_attributeValueDelete_errors[] | null; errors: AttributeValueDelete_attributeValueDelete_errors[];
attribute: AttributeValueDelete_attributeValueDelete_attribute | null; attribute: AttributeValueDelete_attributeValueDelete_attribute | null;
} }

View file

@ -27,7 +27,7 @@ export interface AttributeValueReorder_attributeReorderValues_attribute {
export interface AttributeValueReorder_attributeReorderValues { export interface AttributeValueReorder_attributeReorderValues {
__typename: "AttributeReorderValues"; __typename: "AttributeReorderValues";
errors: AttributeValueReorder_attributeReorderValues_errors[] | null; errors: AttributeValueReorder_attributeReorderValues_errors[];
attribute: AttributeValueReorder_attributeReorderValues_attribute | null; attribute: AttributeValueReorder_attributeReorderValues_attribute | null;
} }

View file

@ -39,7 +39,7 @@ export interface AttributeValueUpdate_attributeValueUpdate_attribute {
export interface AttributeValueUpdate_attributeValueUpdate { export interface AttributeValueUpdate_attributeValueUpdate {
__typename: "AttributeValueUpdate"; __typename: "AttributeValueUpdate";
errors: AttributeValueUpdate_attributeValueUpdate_errors[] | null; errors: AttributeValueUpdate_attributeValueUpdate_errors[];
attribute: AttributeValueUpdate_attributeValueUpdate_attribute | null; attribute: AttributeValueUpdate_attributeValueUpdate_attribute | null;
} }

View file

@ -14,7 +14,7 @@ export interface RequestPasswordReset_requestPasswordReset_errors {
export interface RequestPasswordReset_requestPasswordReset { export interface RequestPasswordReset_requestPasswordReset {
__typename: "RequestPasswordReset"; __typename: "RequestPasswordReset";
errors: RequestPasswordReset_requestPasswordReset_errors[] | null; errors: RequestPasswordReset_requestPasswordReset_errors[];
} }
export interface RequestPasswordReset { export interface RequestPasswordReset {

View file

@ -14,7 +14,7 @@ export interface CategoryBulkDelete_categoryBulkDelete_errors {
export interface CategoryBulkDelete_categoryBulkDelete { export interface CategoryBulkDelete_categoryBulkDelete {
__typename: "CategoryBulkDelete"; __typename: "CategoryBulkDelete";
errors: CategoryBulkDelete_categoryBulkDelete_errors[] | null; errors: CategoryBulkDelete_categoryBulkDelete_errors[];
} }
export interface CategoryBulkDelete { export interface CategoryBulkDelete {

View file

@ -38,7 +38,7 @@ export interface CategoryCreate_categoryCreate_category {
export interface CategoryCreate_categoryCreate { export interface CategoryCreate_categoryCreate {
__typename: "CategoryCreate"; __typename: "CategoryCreate";
errors: CategoryCreate_categoryCreate_errors[] | null; errors: CategoryCreate_categoryCreate_errors[];
category: CategoryCreate_categoryCreate_category | null; category: CategoryCreate_categoryCreate_category | null;
} }

View file

@ -14,7 +14,7 @@ export interface CategoryDelete_categoryDelete_errors {
export interface CategoryDelete_categoryDelete { export interface CategoryDelete_categoryDelete {
__typename: "CategoryDelete"; __typename: "CategoryDelete";
errors: CategoryDelete_categoryDelete_errors[] | null; errors: CategoryDelete_categoryDelete_errors[];
} }
export interface CategoryDelete { export interface CategoryDelete {

View file

@ -38,7 +38,7 @@ export interface CategoryUpdate_categoryUpdate_category {
export interface CategoryUpdate_categoryUpdate { export interface CategoryUpdate_categoryUpdate {
__typename: "CategoryUpdate"; __typename: "CategoryUpdate";
errors: CategoryUpdate_categoryUpdate_errors[] | null; errors: CategoryUpdate_categoryUpdate_errors[];
category: CategoryUpdate_categoryUpdate_category | null; category: CategoryUpdate_categoryUpdate_category | null;
} }

View file

@ -170,7 +170,7 @@ export const CategoryDetails: React.FC<CategoryDetailsProps> = ({
currentTab={params.activeTab} currentTab={params.activeTab}
category={maybe(() => data.category)} category={maybe(() => data.category)}
disabled={loading} disabled={loading}
errors={maybe(() => updateResult.data.categoryUpdate.errors)} errors={updateResult.data?.categoryUpdate.errors || []}
onAddCategory={() => navigate(categoryAddUrl(id))} onAddCategory={() => navigate(categoryAddUrl(id))}
onAddProduct={() => navigate(productAddUrl)} onAddProduct={() => navigate(productAddUrl)}
onBack={() => onBack={() =>

View file

@ -59,7 +59,7 @@ export interface CollectionAssignProduct_collectionAddProducts_collection {
export interface CollectionAssignProduct_collectionAddProducts { export interface CollectionAssignProduct_collectionAddProducts {
__typename: "CollectionAddProducts"; __typename: "CollectionAddProducts";
errors: CollectionAssignProduct_collectionAddProducts_errors[] | null; errors: CollectionAssignProduct_collectionAddProducts_errors[];
collection: CollectionAssignProduct_collectionAddProducts_collection | null; collection: CollectionAssignProduct_collectionAddProducts_collection | null;
} }

View file

@ -14,7 +14,7 @@ export interface CollectionBulkDelete_collectionBulkDelete_errors {
export interface CollectionBulkDelete_collectionBulkDelete { export interface CollectionBulkDelete_collectionBulkDelete {
__typename: "CollectionBulkDelete"; __typename: "CollectionBulkDelete";
errors: CollectionBulkDelete_collectionBulkDelete_errors[] | null; errors: CollectionBulkDelete_collectionBulkDelete_errors[];
} }
export interface CollectionBulkDelete { export interface CollectionBulkDelete {

View file

@ -14,7 +14,7 @@ export interface CollectionBulkPublish_collectionBulkPublish_errors {
export interface CollectionBulkPublish_collectionBulkPublish { export interface CollectionBulkPublish_collectionBulkPublish {
__typename: "CollectionBulkPublish"; __typename: "CollectionBulkPublish";
errors: CollectionBulkPublish_collectionBulkPublish_errors[] | null; errors: CollectionBulkPublish_collectionBulkPublish_errors[];
} }
export interface CollectionBulkPublish { export interface CollectionBulkPublish {

View file

@ -76,7 +76,7 @@ export interface CollectionDetails_shop {
export interface CollectionDetails { export interface CollectionDetails {
collection: CollectionDetails_collection | null; collection: CollectionDetails_collection | null;
shop: CollectionDetails_shop | null; shop: CollectionDetails_shop;
} }
export interface CollectionDetailsVariables { export interface CollectionDetailsVariables {

View file

@ -34,7 +34,7 @@ export interface CollectionUpdate_collectionUpdate_collection {
export interface CollectionUpdate_collectionUpdate { export interface CollectionUpdate_collectionUpdate {
__typename: "CollectionUpdate"; __typename: "CollectionUpdate";
errors: CollectionUpdate_collectionUpdate_errors[] | null; errors: CollectionUpdate_collectionUpdate_errors[];
collection: CollectionUpdate_collectionUpdate_collection | null; collection: CollectionUpdate_collectionUpdate_collection | null;
} }

View file

@ -26,7 +26,7 @@ export interface CollectionUpdateWithHomepage_homepageCollectionUpdate_shop {
export interface CollectionUpdateWithHomepage_homepageCollectionUpdate { export interface CollectionUpdateWithHomepage_homepageCollectionUpdate {
__typename: "HomepageCollectionUpdate"; __typename: "HomepageCollectionUpdate";
errors: CollectionUpdateWithHomepage_homepageCollectionUpdate_errors[] | null; errors: CollectionUpdateWithHomepage_homepageCollectionUpdate_errors[];
shop: CollectionUpdateWithHomepage_homepageCollectionUpdate_shop | null; shop: CollectionUpdateWithHomepage_homepageCollectionUpdate_shop | null;
} }
@ -56,7 +56,7 @@ export interface CollectionUpdateWithHomepage_collectionUpdate_collection {
export interface CollectionUpdateWithHomepage_collectionUpdate { export interface CollectionUpdateWithHomepage_collectionUpdate {
__typename: "CollectionUpdate"; __typename: "CollectionUpdate";
errors: CollectionUpdateWithHomepage_collectionUpdate_errors[] | null; errors: CollectionUpdateWithHomepage_collectionUpdate_errors[];
collection: CollectionUpdateWithHomepage_collectionUpdate_collection | null; collection: CollectionUpdateWithHomepage_collectionUpdate_collection | null;
} }

View file

@ -34,7 +34,7 @@ export interface CreateCollection_collectionCreate_collection {
export interface CreateCollection_collectionCreate { export interface CreateCollection_collectionCreate {
__typename: "CollectionCreate"; __typename: "CollectionCreate";
errors: CreateCollection_collectionCreate_errors[] | null; errors: CreateCollection_collectionCreate_errors[];
collection: CreateCollection_collectionCreate_collection | null; collection: CreateCollection_collectionCreate_collection | null;
} }

View file

@ -14,7 +14,7 @@ export interface RemoveCollection_collectionDelete_errors {
export interface RemoveCollection_collectionDelete { export interface RemoveCollection_collectionDelete {
__typename: "CollectionDelete"; __typename: "CollectionDelete";
errors: RemoveCollection_collectionDelete_errors[] | null; errors: RemoveCollection_collectionDelete_errors[];
} }
export interface RemoveCollection { export interface RemoveCollection {

View file

@ -59,7 +59,7 @@ export interface UnassignCollectionProduct_collectionRemoveProducts_collection {
export interface UnassignCollectionProduct_collectionRemoveProducts { export interface UnassignCollectionProduct_collectionRemoveProducts {
__typename: "CollectionRemoveProducts"; __typename: "CollectionRemoveProducts";
errors: UnassignCollectionProduct_collectionRemoveProducts_errors[] | null; errors: UnassignCollectionProduct_collectionRemoveProducts_errors[];
collection: UnassignCollectionProduct_collectionRemoveProducts_collection | null; collection: UnassignCollectionProduct_collectionRemoveProducts_collection | null;
} }

View file

@ -54,5 +54,5 @@ export interface ShopInfo_shop {
} }
export interface ShopInfo { export interface ShopInfo {
shop: ShopInfo_shop | null; shop: ShopInfo_shop;
} }

View file

@ -14,7 +14,7 @@ export interface BulkRemoveCustomers_customerBulkDelete_errors {
export interface BulkRemoveCustomers_customerBulkDelete { export interface BulkRemoveCustomers_customerBulkDelete {
__typename: "CustomerBulkDelete"; __typename: "CustomerBulkDelete";
errors: BulkRemoveCustomers_customerBulkDelete_errors[] | null; errors: BulkRemoveCustomers_customerBulkDelete_errors[];
} }
export interface BulkRemoveCustomers { export interface BulkRemoveCustomers {

View file

@ -21,7 +21,7 @@ export interface CreateCustomer_customerCreate_user {
export interface CreateCustomer_customerCreate { export interface CreateCustomer_customerCreate {
__typename: "CustomerCreate"; __typename: "CustomerCreate";
errors: CreateCustomer_customerCreate_errors[] | null; errors: CreateCustomer_customerCreate_errors[];
user: CreateCustomer_customerCreate_user | null; user: CreateCustomer_customerCreate_user | null;
} }

View file

@ -81,7 +81,7 @@ export interface CreateCustomerAddress_addressCreate_user {
export interface CreateCustomerAddress_addressCreate { export interface CreateCustomerAddress_addressCreate {
__typename: "AddressCreate"; __typename: "AddressCreate";
errors: CreateCustomerAddress_addressCreate_errors[] | null; errors: CreateCustomerAddress_addressCreate_errors[];
address: CreateCustomerAddress_addressCreate_address | null; address: CreateCustomerAddress_addressCreate_address | null;
user: CreateCustomerAddress_addressCreate_user | null; user: CreateCustomerAddress_addressCreate_user | null;
} }

View file

@ -18,5 +18,5 @@ export interface CustomerCreateData_shop {
} }
export interface CustomerCreateData { export interface CustomerCreateData {
shop: CustomerCreateData_shop | null; shop: CustomerCreateData_shop;
} }

View file

@ -14,7 +14,7 @@ export interface RemoveCustomer_customerDelete_errors {
export interface RemoveCustomer_customerDelete { export interface RemoveCustomer_customerDelete {
__typename: "CustomerDelete"; __typename: "CustomerDelete";
errors: RemoveCustomer_customerDelete_errors[] | null; errors: RemoveCustomer_customerDelete_errors[];
} }
export interface RemoveCustomer { export interface RemoveCustomer {

View file

@ -57,7 +57,7 @@ export interface RemoveCustomerAddress_addressDelete_user {
export interface RemoveCustomerAddress_addressDelete { export interface RemoveCustomerAddress_addressDelete {
__typename: "AddressDelete"; __typename: "AddressDelete";
errors: RemoveCustomerAddress_addressDelete_errors[] | null; errors: RemoveCustomerAddress_addressDelete_errors[];
user: RemoveCustomerAddress_addressDelete_user | null; user: RemoveCustomerAddress_addressDelete_user | null;
} }

View file

@ -59,7 +59,7 @@ export interface SetCustomerDefaultAddress_addressSetDefault_user {
export interface SetCustomerDefaultAddress_addressSetDefault { export interface SetCustomerDefaultAddress_addressSetDefault {
__typename: "AddressSetDefault"; __typename: "AddressSetDefault";
errors: SetCustomerDefaultAddress_addressSetDefault_errors[] | null; errors: SetCustomerDefaultAddress_addressSetDefault_errors[];
user: SetCustomerDefaultAddress_addressSetDefault_user | null; user: SetCustomerDefaultAddress_addressSetDefault_user | null;
} }

View file

@ -74,7 +74,7 @@ export interface UpdateCustomer_customerUpdate_user {
export interface UpdateCustomer_customerUpdate { export interface UpdateCustomer_customerUpdate {
__typename: "CustomerUpdate"; __typename: "CustomerUpdate";
errors: UpdateCustomer_customerUpdate_errors[] | null; errors: UpdateCustomer_customerUpdate_errors[];
user: UpdateCustomer_customerUpdate_user | null; user: UpdateCustomer_customerUpdate_user | null;
} }

View file

@ -38,7 +38,7 @@ export interface UpdateCustomerAddress_addressUpdate_address {
export interface UpdateCustomerAddress_addressUpdate { export interface UpdateCustomerAddress_addressUpdate {
__typename: "AddressUpdate"; __typename: "AddressUpdate";
errors: UpdateCustomerAddress_addressUpdate_errors[] | null; errors: UpdateCustomerAddress_addressUpdate_errors[];
address: UpdateCustomerAddress_addressUpdate_address | null; address: UpdateCustomerAddress_addressUpdate_address | null;
} }

View file

@ -86,9 +86,9 @@ export const CustomerDetailsView: React.FC<CustomerDetailsViewProps> = ({
updateCustomerOpts.loading || updateCustomerOpts.loading ||
removeCustomerOpts.loading removeCustomerOpts.loading
} }
errors={maybe( errors={
() => updateCustomerOpts.data.customerUpdate.errors updateCustomerOpts.data?.customerUpdate.errors || []
)} }
saveButtonBar={updateCustomerOpts.status} saveButtonBar={updateCustomerOpts.status}
onAddressManageClick={() => onAddressManageClick={() =>
navigate(customerAddressesUrl(id)) navigate(customerAddressesUrl(id))

View file

@ -14,7 +14,7 @@ export interface SaleBulkDelete_saleBulkDelete_errors {
export interface SaleBulkDelete_saleBulkDelete { export interface SaleBulkDelete_saleBulkDelete {
__typename: "SaleBulkDelete"; __typename: "SaleBulkDelete";
errors: SaleBulkDelete_saleBulkDelete_errors[] | null; errors: SaleBulkDelete_saleBulkDelete_errors[];
} }
export interface SaleBulkDelete { export interface SaleBulkDelete {

View file

@ -133,7 +133,7 @@ export interface SaleCataloguesAdd_saleCataloguesAdd_sale {
export interface SaleCataloguesAdd_saleCataloguesAdd { export interface SaleCataloguesAdd_saleCataloguesAdd {
__typename: "SaleAddCatalogues"; __typename: "SaleAddCatalogues";
errors: SaleCataloguesAdd_saleCataloguesAdd_errors[] | null; errors: SaleCataloguesAdd_saleCataloguesAdd_errors[];
sale: SaleCataloguesAdd_saleCataloguesAdd_sale | null; sale: SaleCataloguesAdd_saleCataloguesAdd_sale | null;
} }

View file

@ -133,7 +133,7 @@ export interface SaleCataloguesRemove_saleCataloguesRemove_sale {
export interface SaleCataloguesRemove_saleCataloguesRemove { export interface SaleCataloguesRemove_saleCataloguesRemove {
__typename: "SaleRemoveCatalogues"; __typename: "SaleRemoveCatalogues";
errors: SaleCataloguesRemove_saleCataloguesRemove_errors[] | null; errors: SaleCataloguesRemove_saleCataloguesRemove_errors[];
sale: SaleCataloguesRemove_saleCataloguesRemove_sale | null; sale: SaleCataloguesRemove_saleCataloguesRemove_sale | null;
} }

View file

@ -26,7 +26,7 @@ export interface SaleCreate_saleCreate_sale {
export interface SaleCreate_saleCreate { export interface SaleCreate_saleCreate {
__typename: "SaleCreate"; __typename: "SaleCreate";
errors: SaleCreate_saleCreate_errors[] | null; errors: SaleCreate_saleCreate_errors[];
sale: SaleCreate_saleCreate_sale | null; sale: SaleCreate_saleCreate_sale | null;
} }

View file

@ -14,7 +14,7 @@ export interface SaleDelete_saleDelete_errors {
export interface SaleDelete_saleDelete { export interface SaleDelete_saleDelete {
__typename: "SaleDelete"; __typename: "SaleDelete";
errors: SaleDelete_saleDelete_errors[] | null; errors: SaleDelete_saleDelete_errors[];
} }
export interface SaleDelete { export interface SaleDelete {

View file

@ -26,7 +26,7 @@ export interface SaleUpdate_saleUpdate_sale {
export interface SaleUpdate_saleUpdate { export interface SaleUpdate_saleUpdate {
__typename: "SaleUpdate"; __typename: "SaleUpdate";
errors: SaleUpdate_saleUpdate_errors[] | null; errors: SaleUpdate_saleUpdate_errors[];
sale: SaleUpdate_saleUpdate_sale | null; sale: SaleUpdate_saleUpdate_sale | null;
} }

View file

@ -14,7 +14,7 @@ export interface VoucherBulkDelete_voucherBulkDelete_errors {
export interface VoucherBulkDelete_voucherBulkDelete { export interface VoucherBulkDelete_voucherBulkDelete {
__typename: "VoucherBulkDelete"; __typename: "VoucherBulkDelete";
errors: VoucherBulkDelete_voucherBulkDelete_errors[] | null; errors: VoucherBulkDelete_voucherBulkDelete_errors[];
} }
export interface VoucherBulkDelete { export interface VoucherBulkDelete {

View file

@ -153,7 +153,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher {
export interface VoucherCataloguesAdd_voucherCataloguesAdd { export interface VoucherCataloguesAdd_voucherCataloguesAdd {
__typename: "VoucherAddCatalogues"; __typename: "VoucherAddCatalogues";
errors: VoucherCataloguesAdd_voucherCataloguesAdd_errors[] | null; errors: VoucherCataloguesAdd_voucherCataloguesAdd_errors[];
voucher: VoucherCataloguesAdd_voucherCataloguesAdd_voucher | null; voucher: VoucherCataloguesAdd_voucherCataloguesAdd_voucher | null;
} }

View file

@ -153,7 +153,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher {
export interface VoucherCataloguesRemove_voucherCataloguesRemove { export interface VoucherCataloguesRemove_voucherCataloguesRemove {
__typename: "VoucherRemoveCatalogues"; __typename: "VoucherRemoveCatalogues";
errors: VoucherCataloguesRemove_voucherCataloguesRemove_errors[] | null; errors: VoucherCataloguesRemove_voucherCataloguesRemove_errors[];
voucher: VoucherCataloguesRemove_voucherCataloguesRemove_voucher | null; voucher: VoucherCataloguesRemove_voucherCataloguesRemove_voucher | null;
} }

View file

@ -42,7 +42,7 @@ export interface VoucherCreate_voucherCreate_voucher {
export interface VoucherCreate_voucherCreate { export interface VoucherCreate_voucherCreate {
__typename: "VoucherCreate"; __typename: "VoucherCreate";
errors: VoucherCreate_voucherCreate_errors[] | null; errors: VoucherCreate_voucherCreate_errors[];
voucher: VoucherCreate_voucherCreate_voucher | null; voucher: VoucherCreate_voucherCreate_voucher | null;
} }

View file

@ -14,7 +14,7 @@ export interface VoucherDelete_voucherDelete_errors {
export interface VoucherDelete_voucherDelete { export interface VoucherDelete_voucherDelete {
__typename: "VoucherDelete"; __typename: "VoucherDelete";
errors: VoucherDelete_voucherDelete_errors[] | null; errors: VoucherDelete_voucherDelete_errors[];
} }
export interface VoucherDelete { export interface VoucherDelete {

View file

@ -42,7 +42,7 @@ export interface VoucherUpdate_voucherUpdate_voucher {
export interface VoucherUpdate_voucherUpdate { export interface VoucherUpdate_voucherUpdate {
__typename: "VoucherUpdate"; __typename: "VoucherUpdate";
errors: VoucherUpdate_voucherUpdate_errors[] | null; errors: VoucherUpdate_voucherUpdate_errors[];
voucher: VoucherUpdate_voucherUpdate_voucher | null; voucher: VoucherUpdate_voucherUpdate_voucher | null;
} }

View file

@ -44,7 +44,7 @@ export const SaleDetails: React.FC = () => {
<SaleCreatePage <SaleCreatePage
defaultCurrency={maybe(() => shop.defaultCurrency)} defaultCurrency={maybe(() => shop.defaultCurrency)}
disabled={saleCreateOpts.loading} disabled={saleCreateOpts.loading}
errors={maybe(() => saleCreateOpts.data.saleCreate.errors)} errors={saleCreateOpts.data?.saleCreate.errors || []}
onBack={() => navigate(saleListUrl())} onBack={() => navigate(saleListUrl())}
onSubmit={formData => onSubmit={formData =>
saleCreate({ saleCreate({

View file

@ -209,9 +209,9 @@ export const SaleDetails: React.FC<SaleDetailsProps> = ({ id, params }) => {
disabled={ disabled={
loading || saleCataloguesRemoveOpts.loading loading || saleCataloguesRemoveOpts.loading
} }
errors={maybe( errors={
() => saleUpdateOpts.data.saleUpdate.errors saleUpdateOpts.data?.saleUpdate.errors || []
)} }
pageInfo={pageInfo} pageInfo={pageInfo}
onNextPage={loadNextPage} onNextPage={loadNextPage}
onPreviousPage={loadPreviousPage} onPreviousPage={loadPreviousPage}

View file

@ -42,7 +42,7 @@ export const VoucherDetails: React.FC = () => {
<VoucherCreatePage <VoucherCreatePage
defaultCurrency={maybe(() => shop.defaultCurrency)} defaultCurrency={maybe(() => shop.defaultCurrency)}
disabled={voucherCreateOpts.loading} disabled={voucherCreateOpts.loading}
errors={maybe(() => voucherCreateOpts.data.voucherCreate.errors)} errors={voucherCreateOpts.data?.voucherCreate.errors || []}
onBack={() => navigate(voucherListUrl())} onBack={() => navigate(voucherListUrl())}
onSubmit={formData => onSubmit={formData =>
voucherCreate({ voucherCreate({

View file

@ -212,10 +212,10 @@ export const VoucherDetails: React.FC<VoucherDetailsProps> = ({
disabled={ disabled={
loading || voucherCataloguesRemoveOpts.loading loading || voucherCataloguesRemoveOpts.loading
} }
errors={maybe( errors={
() => voucherUpdateOpts.data?.voucherUpdate.errors ||
voucherUpdateOpts.data.voucherUpdate.errors []
)} }
pageInfo={pageInfo} pageInfo={pageInfo}
onNextPage={loadNextPage} onNextPage={loadNextPage}
onPreviousPage={loadPreviousPage} onPreviousPage={loadPreviousPage}

View file

@ -14,7 +14,7 @@ export interface MenuBulkDelete_menuBulkDelete_errors {
export interface MenuBulkDelete_menuBulkDelete { export interface MenuBulkDelete_menuBulkDelete {
__typename: "MenuBulkDelete"; __typename: "MenuBulkDelete";
errors: MenuBulkDelete_menuBulkDelete_errors[] | null; errors: MenuBulkDelete_menuBulkDelete_errors[];
} }
export interface MenuBulkDelete { export interface MenuBulkDelete {

View file

@ -21,7 +21,7 @@ export interface MenuCreate_menuCreate_menu {
export interface MenuCreate_menuCreate { export interface MenuCreate_menuCreate {
__typename: "MenuCreate"; __typename: "MenuCreate";
errors: MenuCreate_menuCreate_errors[] | null; errors: MenuCreate_menuCreate_errors[];
menu: MenuCreate_menuCreate_menu | null; menu: MenuCreate_menuCreate_menu | null;
} }

View file

@ -14,7 +14,7 @@ export interface MenuDelete_menuDelete_errors {
export interface MenuDelete_menuDelete { export interface MenuDelete_menuDelete {
__typename: "MenuDelete"; __typename: "MenuDelete";
errors: MenuDelete_menuDelete_errors[] | null; errors: MenuDelete_menuDelete_errors[];
} }
export interface MenuDelete { export interface MenuDelete {

View file

@ -236,7 +236,7 @@ export interface MenuItemCreate_menuItemCreate_menuItem {
export interface MenuItemCreate_menuItemCreate { export interface MenuItemCreate_menuItemCreate {
__typename: "MenuItemCreate"; __typename: "MenuItemCreate";
errors: MenuItemCreate_menuItemCreate_errors[] | null; errors: MenuItemCreate_menuItemCreate_errors[];
menuItem: MenuItemCreate_menuItemCreate_menuItem | null; menuItem: MenuItemCreate_menuItemCreate_menuItem | null;
} }

View file

@ -45,7 +45,7 @@ export interface MenuItemUpdate_menuItemUpdate_menuItem {
export interface MenuItemUpdate_menuItemUpdate { export interface MenuItemUpdate_menuItemUpdate {
__typename: "MenuItemUpdate"; __typename: "MenuItemUpdate";
errors: MenuItemUpdate_menuItemUpdate_errors[] | null; errors: MenuItemUpdate_menuItemUpdate_errors[];
menuItem: MenuItemUpdate_menuItemUpdate_menuItem | null; menuItem: MenuItemUpdate_menuItemUpdate_menuItem | null;
} }

View file

@ -16,7 +16,7 @@ export interface MenuUpdate_menuUpdate_errors {
export interface MenuUpdate_menuUpdate { export interface MenuUpdate_menuUpdate {
__typename: "MenuUpdate"; __typename: "MenuUpdate";
errors: MenuUpdate_menuUpdate_errors[] | null; errors: MenuUpdate_menuUpdate_errors[];
} }
export interface MenuUpdate_menuItemMove_errors { export interface MenuUpdate_menuItemMove_errors {
@ -27,7 +27,7 @@ export interface MenuUpdate_menuItemMove_errors {
export interface MenuUpdate_menuItemMove { export interface MenuUpdate_menuItemMove {
__typename: "MenuItemMove"; __typename: "MenuItemMove";
errors: MenuUpdate_menuItemMove_errors[] | null; errors: MenuUpdate_menuItemMove_errors[];
} }
export interface MenuUpdate_menuItemBulkDelete_errors { export interface MenuUpdate_menuItemBulkDelete_errors {
@ -38,7 +38,7 @@ export interface MenuUpdate_menuItemBulkDelete_errors {
export interface MenuUpdate_menuItemBulkDelete { export interface MenuUpdate_menuItemBulkDelete {
__typename: "MenuItemBulkDelete"; __typename: "MenuItemBulkDelete";
errors: MenuUpdate_menuItemBulkDelete_errors[] | null; errors: MenuUpdate_menuItemBulkDelete_errors[];
} }
export interface MenuUpdate { export interface MenuUpdate {

View file

@ -41,7 +41,7 @@ export interface OrderAddNote_orderAddNote_order {
export interface OrderAddNote_orderAddNote { export interface OrderAddNote_orderAddNote {
__typename: "OrderAddNote"; __typename: "OrderAddNote";
errors: OrderAddNote_orderAddNote_errors[] | null; errors: OrderAddNote_orderAddNote_errors[];
order: OrderAddNote_orderAddNote_order | null; order: OrderAddNote_orderAddNote_order | null;
} }

View file

@ -14,7 +14,7 @@ export interface OrderBulkCancel_orderBulkCancel_errors {
export interface OrderBulkCancel_orderBulkCancel { export interface OrderBulkCancel_orderBulkCancel {
__typename: "OrderBulkCancel"; __typename: "OrderBulkCancel";
errors: OrderBulkCancel_orderBulkCancel_errors[] | null; errors: OrderBulkCancel_orderBulkCancel_errors[];
} }
export interface OrderBulkCancel { export interface OrderBulkCancel {

View file

@ -268,7 +268,7 @@ export interface OrderCancel_orderCancel_order {
export interface OrderCancel_orderCancel { export interface OrderCancel_orderCancel {
__typename: "OrderCancel"; __typename: "OrderCancel";
errors: OrderCancel_orderCancel_errors[] | null; errors: OrderCancel_orderCancel_errors[];
order: OrderCancel_orderCancel_order | null; order: OrderCancel_orderCancel_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderCapture_orderCapture_order {
export interface OrderCapture_orderCapture { export interface OrderCapture_orderCapture {
__typename: "OrderCapture"; __typename: "OrderCapture";
errors: OrderCapture_orderCapture_errors[] | null; errors: OrderCapture_orderCapture_errors[];
order: OrderCapture_orderCapture_order | null; order: OrderCapture_orderCapture_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderCreateFulfillment_orderFulfillmentCreate_order {
export interface OrderCreateFulfillment_orderFulfillmentCreate { export interface OrderCreateFulfillment_orderFulfillmentCreate {
__typename: "FulfillmentCreate"; __typename: "FulfillmentCreate";
errors: OrderCreateFulfillment_orderFulfillmentCreate_errors[] | null; errors: OrderCreateFulfillment_orderFulfillmentCreate_errors[];
order: OrderCreateFulfillment_orderFulfillmentCreate_order | null; order: OrderCreateFulfillment_orderFulfillmentCreate_order | null;
} }

View file

@ -274,7 +274,7 @@ export interface OrderDetails_shop {
export interface OrderDetails { export interface OrderDetails {
order: OrderDetails_order | null; order: OrderDetails_order | null;
shop: OrderDetails_shop | null; shop: OrderDetails_shop;
} }
export interface OrderDetailsVariables { export interface OrderDetailsVariables {

View file

@ -14,7 +14,7 @@ export interface OrderDraftBulkCancel_draftOrderBulkDelete_errors {
export interface OrderDraftBulkCancel_draftOrderBulkDelete { export interface OrderDraftBulkCancel_draftOrderBulkDelete {
__typename: "DraftOrderBulkDelete"; __typename: "DraftOrderBulkDelete";
errors: OrderDraftBulkCancel_draftOrderBulkDelete_errors[] | null; errors: OrderDraftBulkCancel_draftOrderBulkDelete_errors[];
} }
export interface OrderDraftBulkCancel { export interface OrderDraftBulkCancel {

View file

@ -268,7 +268,7 @@ export interface OrderDraftCancel_draftOrderDelete_order {
export interface OrderDraftCancel_draftOrderDelete { export interface OrderDraftCancel_draftOrderDelete {
__typename: "DraftOrderDelete"; __typename: "DraftOrderDelete";
errors: OrderDraftCancel_draftOrderDelete_errors[] | null; errors: OrderDraftCancel_draftOrderDelete_errors[];
order: OrderDraftCancel_draftOrderDelete_order | null; order: OrderDraftCancel_draftOrderDelete_order | null;
} }

View file

@ -19,7 +19,7 @@ export interface OrderDraftCreate_draftOrderCreate_order {
export interface OrderDraftCreate_draftOrderCreate { export interface OrderDraftCreate_draftOrderCreate {
__typename: "DraftOrderCreate"; __typename: "DraftOrderCreate";
errors: OrderDraftCreate_draftOrderCreate_errors[] | null; errors: OrderDraftCreate_draftOrderCreate_errors[];
order: OrderDraftCreate_draftOrderCreate_order | null; order: OrderDraftCreate_draftOrderCreate_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderDraftFinalize_draftOrderComplete_order {
export interface OrderDraftFinalize_draftOrderComplete { export interface OrderDraftFinalize_draftOrderComplete {
__typename: "DraftOrderComplete"; __typename: "DraftOrderComplete";
errors: OrderDraftFinalize_draftOrderComplete_errors[] | null; errors: OrderDraftFinalize_draftOrderComplete_errors[];
order: OrderDraftFinalize_draftOrderComplete_order | null; order: OrderDraftFinalize_draftOrderComplete_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderDraftUpdate_draftOrderUpdate_order {
export interface OrderDraftUpdate_draftOrderUpdate { export interface OrderDraftUpdate_draftOrderUpdate {
__typename: "DraftOrderUpdate"; __typename: "DraftOrderUpdate";
errors: OrderDraftUpdate_draftOrderUpdate_errors[] | null; errors: OrderDraftUpdate_draftOrderUpdate_errors[];
order: OrderDraftUpdate_draftOrderUpdate_order | null; order: OrderDraftUpdate_draftOrderUpdate_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderFulfillmentCancel_orderFulfillmentCancel_order {
export interface OrderFulfillmentCancel_orderFulfillmentCancel { export interface OrderFulfillmentCancel_orderFulfillmentCancel {
__typename: "FulfillmentCancel"; __typename: "FulfillmentCancel";
errors: OrderFulfillmentCancel_orderFulfillmentCancel_errors[] | null; errors: OrderFulfillmentCancel_orderFulfillmentCancel_errors[];
order: OrderFulfillmentCancel_orderFulfillmentCancel_order | null; order: OrderFulfillmentCancel_orderFulfillmentCancel_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_o
export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking { export interface OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking {
__typename: "FulfillmentUpdateTracking"; __typename: "FulfillmentUpdateTracking";
errors: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_errors[] | null; errors: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_errors[];
order: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order | null; order: OrderFulfillmentUpdateTracking_orderFulfillmentUpdateTracking_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderLineDelete_draftOrderLineDelete_order {
export interface OrderLineDelete_draftOrderLineDelete { export interface OrderLineDelete_draftOrderLineDelete {
__typename: "DraftOrderLineDelete"; __typename: "DraftOrderLineDelete";
errors: OrderLineDelete_draftOrderLineDelete_errors[] | null; errors: OrderLineDelete_draftOrderLineDelete_errors[];
order: OrderLineDelete_draftOrderLineDelete_order | null; order: OrderLineDelete_draftOrderLineDelete_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order {
export interface OrderLineUpdate_draftOrderLineUpdate { export interface OrderLineUpdate_draftOrderLineUpdate {
__typename: "DraftOrderLineUpdate"; __typename: "DraftOrderLineUpdate";
errors: OrderLineUpdate_draftOrderLineUpdate_errors[] | null; errors: OrderLineUpdate_draftOrderLineUpdate_errors[];
order: OrderLineUpdate_draftOrderLineUpdate_order | null; order: OrderLineUpdate_draftOrderLineUpdate_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderLinesAdd_draftOrderLinesCreate_order {
export interface OrderLinesAdd_draftOrderLinesCreate { export interface OrderLinesAdd_draftOrderLinesCreate {
__typename: "DraftOrderLinesCreate"; __typename: "DraftOrderLinesCreate";
errors: OrderLinesAdd_draftOrderLinesCreate_errors[] | null; errors: OrderLinesAdd_draftOrderLinesCreate_errors[];
order: OrderLinesAdd_draftOrderLinesCreate_order | null; order: OrderLinesAdd_draftOrderLinesCreate_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderMarkAsPaid_orderMarkAsPaid_order {
export interface OrderMarkAsPaid_orderMarkAsPaid { export interface OrderMarkAsPaid_orderMarkAsPaid {
__typename: "OrderMarkAsPaid"; __typename: "OrderMarkAsPaid";
errors: OrderMarkAsPaid_orderMarkAsPaid_errors[] | null; errors: OrderMarkAsPaid_orderMarkAsPaid_errors[];
order: OrderMarkAsPaid_orderMarkAsPaid_order | null; order: OrderMarkAsPaid_orderMarkAsPaid_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderRefund_orderRefund_order {
export interface OrderRefund_orderRefund { export interface OrderRefund_orderRefund {
__typename: "OrderRefund"; __typename: "OrderRefund";
errors: OrderRefund_orderRefund_errors[] | null; errors: OrderRefund_orderRefund_errors[];
order: OrderRefund_orderRefund_order | null; order: OrderRefund_orderRefund_order | null;
} }

View file

@ -55,7 +55,7 @@ export interface OrderShippingMethodUpdate_orderUpdateShipping_order {
export interface OrderShippingMethodUpdate_orderUpdateShipping { export interface OrderShippingMethodUpdate_orderUpdateShipping {
__typename: "OrderUpdateShipping"; __typename: "OrderUpdateShipping";
errors: OrderShippingMethodUpdate_orderUpdateShipping_errors[] | null; errors: OrderShippingMethodUpdate_orderUpdateShipping_errors[];
order: OrderShippingMethodUpdate_orderUpdateShipping_order | null; order: OrderShippingMethodUpdate_orderUpdateShipping_order | null;
} }

View file

@ -68,7 +68,7 @@ export interface OrderUpdate_orderUpdate_order {
export interface OrderUpdate_orderUpdate { export interface OrderUpdate_orderUpdate {
__typename: "OrderUpdate"; __typename: "OrderUpdate";
errors: OrderUpdate_orderUpdate_errors[] | null; errors: OrderUpdate_orderUpdate_errors[];
order: OrderUpdate_orderUpdate_order | null; order: OrderUpdate_orderUpdate_order | null;
} }

View file

@ -268,7 +268,7 @@ export interface OrderVoid_orderVoid_order {
export interface OrderVoid_orderVoid { export interface OrderVoid_orderVoid {
__typename: "OrderVoid"; __typename: "OrderVoid";
errors: OrderVoid_orderVoid_errors[] | null; errors: OrderVoid_orderVoid_errors[];
order: OrderVoid_orderVoid_order | null; order: OrderVoid_orderVoid_order | null;
} }

View file

@ -214,9 +214,7 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
confirmButtonState={getMutationState( confirmButtonState={getMutationState(
orderCancel.opts.called, orderCancel.opts.called,
orderCancel.opts.loading, orderCancel.opts.loading,
maybe( orderCancel.opts.data?.orderCancel.errors || []
() => orderCancel.opts.data.orderCancel.errors
)
)} )}
number={maybe(() => order.number)} number={maybe(() => order.number)}
open={params.action === "cancel"} open={params.action === "cancel"}
@ -281,10 +279,8 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
confirmButtonState={getMutationState( confirmButtonState={getMutationState(
orderPaymentRefund.opts.called, orderPaymentRefund.opts.called,
orderPaymentRefund.opts.loading, orderPaymentRefund.opts.loading,
maybe( orderPaymentRefund.opts.data?.orderRefund.errors ||
() => []
orderPaymentRefund.opts.data.orderRefund.errors
)
)} )}
initial={maybe(() => order.total.gross.amount)} initial={maybe(() => order.total.gross.amount)}
open={params.action === "refund"} open={params.action === "refund"}

View file

@ -14,7 +14,7 @@ export interface PageBulkPublish_pageBulkPublish_errors {
export interface PageBulkPublish_pageBulkPublish { export interface PageBulkPublish_pageBulkPublish {
__typename: "PageBulkPublish"; __typename: "PageBulkPublish";
errors: PageBulkPublish_pageBulkPublish_errors[] | null; errors: PageBulkPublish_pageBulkPublish_errors[];
} }
export interface PageBulkPublish { export interface PageBulkPublish {

View file

@ -14,7 +14,7 @@ export interface PageBulkRemove_pageBulkDelete_errors {
export interface PageBulkRemove_pageBulkDelete { export interface PageBulkRemove_pageBulkDelete {
__typename: "PageBulkDelete"; __typename: "PageBulkDelete";
errors: PageBulkRemove_pageBulkDelete_errors[] | null; errors: PageBulkRemove_pageBulkDelete_errors[];
} }
export interface PageBulkRemove { export interface PageBulkRemove {

View file

@ -28,7 +28,7 @@ export interface PageCreate_pageCreate_page {
export interface PageCreate_pageCreate { export interface PageCreate_pageCreate {
__typename: "PageCreate"; __typename: "PageCreate";
errors: PageCreate_pageCreate_errors[] | null; errors: PageCreate_pageCreate_errors[];
page: PageCreate_pageCreate_page | null; page: PageCreate_pageCreate_page | null;
} }

View file

@ -14,7 +14,7 @@ export interface PageRemove_pageDelete_errors {
export interface PageRemove_pageDelete { export interface PageRemove_pageDelete {
__typename: "PageDelete"; __typename: "PageDelete";
errors: PageRemove_pageDelete_errors[] | null; errors: PageRemove_pageDelete_errors[];
} }
export interface PageRemove { export interface PageRemove {

View file

@ -28,7 +28,7 @@ export interface PageUpdate_pageUpdate_page {
export interface PageUpdate_pageUpdate { export interface PageUpdate_pageUpdate {
__typename: "PageUpdate"; __typename: "PageUpdate";
errors: PageUpdate_pageUpdate_errors[] | null; errors: PageUpdate_pageUpdate_errors[];
page: PageUpdate_pageUpdate_page | null; page: PageUpdate_pageUpdate_page | null;
} }

View file

@ -34,7 +34,7 @@ export interface PluginUpdate_pluginUpdate_plugin {
export interface PluginUpdate_pluginUpdate { export interface PluginUpdate_pluginUpdate {
__typename: "PluginUpdate"; __typename: "PluginUpdate";
errors: PluginUpdate_pluginUpdate_errors[] | null; errors: PluginUpdate_pluginUpdate_errors[];
plugin: PluginUpdate_pluginUpdate_plugin | null; plugin: PluginUpdate_pluginUpdate_plugin | null;
} }

View file

@ -60,7 +60,7 @@ export interface AssignAttribute_attributeAssign_productType {
export interface AssignAttribute_attributeAssign { export interface AssignAttribute_attributeAssign {
__typename: "AttributeAssign"; __typename: "AttributeAssign";
errors: AssignAttribute_attributeAssign_errors[] | null; errors: AssignAttribute_attributeAssign_errors[];
productType: AssignAttribute_attributeAssign_productType | null; productType: AssignAttribute_attributeAssign_productType | null;
} }

View file

@ -60,7 +60,7 @@ export interface ProductTypeAttributeReorder_productTypeReorderAttributes_produc
export interface ProductTypeAttributeReorder_productTypeReorderAttributes { export interface ProductTypeAttributeReorder_productTypeReorderAttributes {
__typename: "ProductTypeReorderAttributes"; __typename: "ProductTypeReorderAttributes";
errors: ProductTypeAttributeReorder_productTypeReorderAttributes_errors[] | null; errors: ProductTypeAttributeReorder_productTypeReorderAttributes_errors[];
productType: ProductTypeAttributeReorder_productTypeReorderAttributes_productType | null; productType: ProductTypeAttributeReorder_productTypeReorderAttributes_productType | null;
} }

View file

@ -14,7 +14,7 @@ export interface ProductTypeBulkDelete_productTypeBulkDelete_errors {
export interface ProductTypeBulkDelete_productTypeBulkDelete { export interface ProductTypeBulkDelete_productTypeBulkDelete {
__typename: "ProductTypeBulkDelete"; __typename: "ProductTypeBulkDelete";
errors: ProductTypeBulkDelete_productTypeBulkDelete_errors[] | null; errors: ProductTypeBulkDelete_productTypeBulkDelete_errors[];
} }
export interface ProductTypeBulkDelete { export interface ProductTypeBulkDelete {

View file

@ -60,7 +60,7 @@ export interface ProductTypeCreate_productTypeCreate_productType {
export interface ProductTypeCreate_productTypeCreate { export interface ProductTypeCreate_productTypeCreate {
__typename: "ProductTypeCreate"; __typename: "ProductTypeCreate";
errors: ProductTypeCreate_productTypeCreate_errors[] | null; errors: ProductTypeCreate_productTypeCreate_errors[];
productType: ProductTypeCreate_productTypeCreate_productType | null; productType: ProductTypeCreate_productTypeCreate_productType | null;
} }

View file

@ -20,6 +20,6 @@ export interface ProductTypeCreateData_taxTypes {
} }
export interface ProductTypeCreateData { export interface ProductTypeCreateData {
shop: ProductTypeCreateData_shop | null; shop: ProductTypeCreateData_shop;
taxTypes: (ProductTypeCreateData_taxTypes | null)[] | null; taxTypes: (ProductTypeCreateData_taxTypes | null)[] | null;
} }

View file

@ -19,7 +19,7 @@ export interface ProductTypeDelete_productTypeDelete_productType {
export interface ProductTypeDelete_productTypeDelete { export interface ProductTypeDelete_productTypeDelete {
__typename: "ProductTypeDelete"; __typename: "ProductTypeDelete";
errors: ProductTypeDelete_productTypeDelete_errors[] | null; errors: ProductTypeDelete_productTypeDelete_errors[];
productType: ProductTypeDelete_productTypeDelete_productType | null; productType: ProductTypeDelete_productTypeDelete_productType | null;
} }

View file

@ -65,7 +65,7 @@ export interface ProductTypeDetails_taxTypes {
export interface ProductTypeDetails { export interface ProductTypeDetails {
productType: ProductTypeDetails_productType | null; productType: ProductTypeDetails_productType | null;
shop: ProductTypeDetails_shop | null; shop: ProductTypeDetails_shop;
taxTypes: (ProductTypeDetails_taxTypes | null)[] | null; taxTypes: (ProductTypeDetails_taxTypes | null)[] | null;
} }

View file

@ -60,7 +60,7 @@ export interface ProductTypeUpdate_productTypeUpdate_productType {
export interface ProductTypeUpdate_productTypeUpdate { export interface ProductTypeUpdate_productTypeUpdate {
__typename: "ProductTypeUpdate"; __typename: "ProductTypeUpdate";
errors: ProductTypeUpdate_productTypeUpdate_errors[] | null; errors: ProductTypeUpdate_productTypeUpdate_errors[];
productType: ProductTypeUpdate_productTypeUpdate_productType | null; productType: ProductTypeUpdate_productTypeUpdate_productType | null;
} }

View file

@ -58,7 +58,7 @@ export interface UnassignAttribute_attributeUnassign_productType {
export interface UnassignAttribute_attributeUnassign { export interface UnassignAttribute_attributeUnassign {
__typename: "AttributeUnassign"; __typename: "AttributeUnassign";
errors: UnassignAttribute_attributeUnassign_errors[] | null; errors: UnassignAttribute_attributeUnassign_errors[];
productType: UnassignAttribute_attributeUnassign_productType | null; productType: UnassignAttribute_attributeUnassign_productType | null;
} }

View file

@ -178,7 +178,7 @@ export interface ProductCreate_productCreate_product {
export interface ProductCreate_productCreate { export interface ProductCreate_productCreate {
__typename: "ProductCreate"; __typename: "ProductCreate";
errors: ProductCreate_productCreate_errors[] | null; errors: ProductCreate_productCreate_errors[];
product: ProductCreate_productCreate_product | null; product: ProductCreate_productCreate_product | null;
} }

View file

@ -19,7 +19,7 @@ export interface ProductDelete_productDelete_product {
export interface ProductDelete_productDelete { export interface ProductDelete_productDelete {
__typename: "ProductDelete"; __typename: "ProductDelete";
errors: ProductDelete_productDelete_errors[] | null; errors: ProductDelete_productDelete_errors[];
product: ProductDelete_productDelete_product | null; product: ProductDelete_productDelete_product | null;
} }

View file

@ -178,7 +178,7 @@ export interface ProductImageCreate_productImageCreate_product {
export interface ProductImageCreate_productImageCreate { export interface ProductImageCreate_productImageCreate {
__typename: "ProductImageCreate"; __typename: "ProductImageCreate";
errors: ProductImageCreate_productImageCreate_errors[] | null; errors: ProductImageCreate_productImageCreate_errors[];
product: ProductImageCreate_productImageCreate_product | null; product: ProductImageCreate_productImageCreate_product | null;
} }

View file

@ -28,7 +28,7 @@ export interface ProductImageReorder_productImageReorder_product {
export interface ProductImageReorder_productImageReorder { export interface ProductImageReorder_productImageReorder {
__typename: "ProductImageReorder"; __typename: "ProductImageReorder";
errors: ProductImageReorder_productImageReorder_errors[] | null; errors: ProductImageReorder_productImageReorder_errors[];
product: ProductImageReorder_productImageReorder_product | null; product: ProductImageReorder_productImageReorder_product | null;
} }

View file

@ -178,7 +178,7 @@ export interface ProductImageUpdate_productImageUpdate_product {
export interface ProductImageUpdate_productImageUpdate { export interface ProductImageUpdate_productImageUpdate {
__typename: "ProductImageUpdate"; __typename: "ProductImageUpdate";
errors: ProductImageUpdate_productImageUpdate_errors[] | null; errors: ProductImageUpdate_productImageUpdate_errors[];
product: ProductImageUpdate_productImageUpdate_product | null; product: ProductImageUpdate_productImageUpdate_product | null;
} }

View file

@ -178,7 +178,7 @@ export interface ProductUpdate_productUpdate_product {
export interface ProductUpdate_productUpdate { export interface ProductUpdate_productUpdate {
__typename: "ProductUpdate"; __typename: "ProductUpdate";
errors: ProductUpdate_productUpdate_errors[] | null; errors: ProductUpdate_productUpdate_errors[];
product: ProductUpdate_productUpdate_product | null; product: ProductUpdate_productUpdate_product | null;
} }

Some files were not shown because too many files have changed in this diff Show more