Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update types
Krzysztof Bialoglowiczaea91f11a36e
diff --git a/saleor/static/dashboard-next/discounts/translations.ts b/saleor/static/dashboard-next/discounts/translations.tsindex fc8aa0b7b4..5d1b91f4e0 100644--- a/saleor/static/dashboard-next/discounts/translations.ts+++ b/saleor/static/dashboard-next/discounts/translations.ts@@ -1,8 +1,8 @@import i18n from "../i18n";-import { VoucherType } from "../types/globalTypes";+import { VoucherTypeEnum } from "../types/globalTypes";export const translateVoucherTypes = () => ({- [VoucherType.SHIPPING]: i18n.t("Shipment"),- [VoucherType.ENTIRE_ORDER]: i18n.t("Entire order"),- [VoucherType.SPECIFIC_PRODUCT]: i18n.t("Specific Products")+ [VoucherTypeEnum.SHIPPING]: i18n.t("Shipment"),+ [VoucherTypeEnum.ENTIRE_ORDER]: i18n.t("Entire order"),+ [VoucherTypeEnum.SPECIFIC_PRODUCT]: i18n.t("Specific Products")});diff --git a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.tsindex 12925a2865..9f7fb3ae1c 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesAdd.ts@@ -2,7 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import { CatalogueInput, DiscountValueTypeEnum, VoucherType } from "./../../types/globalTypes";+import { CatalogueInput, DiscountValueTypeEnum, VoucherTypeEnum } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: VoucherCataloguesAdd@@ -141,7 +141,7 @@ export interface VoucherCataloguesAdd_voucherCataloguesAdd_voucher {discountValue: number;countries: (VoucherCataloguesAdd_voucherCataloguesAdd_voucher_countries | null)[] | null;minAmountSpent: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_minAmountSpent | null;- type: VoucherType;+ type: VoucherTypeEnum;used: number;applyOncePerOrder: boolean;products: VoucherCataloguesAdd_voucherCataloguesAdd_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.tsindex c3045c96cf..44ddef4c7d 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherCataloguesRemove.ts@@ -2,7 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import { CatalogueInput, DiscountValueTypeEnum, VoucherType } from "./../../types/globalTypes";+import { CatalogueInput, DiscountValueTypeEnum, VoucherTypeEnum } from "./../../types/globalTypes";// ====================================================// GraphQL mutation operation: VoucherCataloguesRemove@@ -141,7 +141,7 @@ export interface VoucherCataloguesRemove_voucherCataloguesRemove_voucher {discountValue: number;countries: (VoucherCataloguesRemove_voucherCataloguesRemove_voucher_countries | null)[] | null;minAmountSpent: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_minAmountSpent | null;- type: VoucherType;+ type: VoucherTypeEnum;used: number;applyOncePerOrder: boolean;products: VoucherCataloguesRemove_voucherCataloguesRemove_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts b/saleor/static/dashboard-next/discounts/types/VoucherDetails.tsindex 14b9057a43..ed2e089fb3 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherDetails.ts@@ -2,7 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import { DiscountValueTypeEnum, VoucherType } from "./../../types/globalTypes";+import { DiscountValueTypeEnum, VoucherTypeEnum } from "./../../types/globalTypes";// ====================================================// GraphQL query operation: VoucherDetails@@ -135,7 +135,7 @@ export interface VoucherDetails_voucher {discountValue: number;countries: (VoucherDetails_voucher_countries | null)[] | null;minAmountSpent: VoucherDetails_voucher_minAmountSpent | null;- type: VoucherType;+ type: VoucherTypeEnum;used: number;applyOncePerOrder: boolean;products: VoucherDetails_voucher_products | null;diff --git a/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts b/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.tsindex aa22137394..7234bf69e2 100644--- a/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts+++ b/saleor/static/dashboard-next/discounts/types/VoucherDetailsFragment.ts@@ -2,7 +2,7 @@/* eslint-disable */// This file was automatically generated and should not be edited.-import { DiscountValueTypeEnum, VoucherType } from "./../../types/globalTypes";+import { DiscountValueTypeEnum, VoucherTypeEnum } from "./../../types/globalTypes";// ====================================================// GraphQL fragment: VoucherDetailsFragment@@ -135,7 +135,7 @@ export interface VoucherDetailsFragment {discountValue: number;countries: (VoucherDetailsFragment_countries | null)[] | null;minAmountSpent: VoucherDetailsFragment_minAmountSpent | null;- type: VoucherType;+ type: VoucherTypeEnum;used: number;applyOncePerOrder: boolean;products: VoucherDetailsFragment_products | null;diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.tsindex e339f73536..7d2367ecec 100644--- a/saleor/static/dashboard-next/types/globalTypes.ts+++ b/saleor/static/dashboard-next/types/globalTypes.ts@@ -198,15 +198,6 @@ export enum TaxRateType {WINE = "WINE",}-export enum VoucherType {- CATEGORY = "CATEGORY",- COLLECTION = "COLLECTION",- ENTIRE_ORDER = "ENTIRE_ORDER",- PRODUCT = "PRODUCT",- SHIPPING = "SHIPPING",- SPECIFIC_PRODUCT = "SPECIFIC_PRODUCT",-}-export enum VoucherTypeEnum {CATEGORY = "CATEGORY",COLLECTION = "COLLECTION",