Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix types

Krzysztof Bialoglowiczd563ba9ff3bc
diff --git a/saleor/static/dashboard-next/siteSettings/components/SiteSettingsAddress/index.ts b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsAddress/index.ts
new file mode 100644
index 0000000000..b15a239187
--- /dev/null
+++ b/saleor/static/dashboard-next/siteSettings/components/SiteSettingsAddress/index.ts
@@ -0,0 +1,2 @@
+export { default } from "./SiteSettingsAddress";
+export * from "./SiteSettingsAddress";
diff --git a/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyAdd.ts b/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyAdd.ts
index c6524fdbff..a326a9cca7 100644
--- a/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyAdd.ts
+++ b/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyAdd.ts
@@ -20,6 +20,34 @@ export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_authorizationKeys
name: AuthorizationKeyType;
}
+export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: AuthorizationKeyAdd_authorizationKeyAdd_shop_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_countries {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_domain {
__typename: "Domain";
host: string;
@@ -28,6 +56,8 @@ export interface AuthorizationKeyAdd_authorizationKeyAdd_shop_domain {
export interface AuthorizationKeyAdd_authorizationKeyAdd_shop {
__typename: "Shop";
authorizationKeys: (AuthorizationKeyAdd_authorizationKeyAdd_shop_authorizationKeys | null)[];
+ companyAddress: AuthorizationKeyAdd_authorizationKeyAdd_shop_companyAddress | null;
+ countries: (AuthorizationKeyAdd_authorizationKeyAdd_shop_countries | null)[];
description: string | null;
domain: AuthorizationKeyAdd_authorizationKeyAdd_shop_domain;
name: string;
diff --git a/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyDelete.ts b/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyDelete.ts
index a791850000..024e7f5998 100644
--- a/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyDelete.ts
+++ b/saleor/static/dashboard-next/siteSettings/types/AuthorizationKeyDelete.ts
@@ -20,6 +20,34 @@ export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_authorizatio
name: AuthorizationKeyType;
}
+export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: AuthorizationKeyDelete_authorizationKeyDelete_shop_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_countries {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_domain {
__typename: "Domain";
host: string;
@@ -28,6 +56,8 @@ export interface AuthorizationKeyDelete_authorizationKeyDelete_shop_domain {
export interface AuthorizationKeyDelete_authorizationKeyDelete_shop {
__typename: "Shop";
authorizationKeys: (AuthorizationKeyDelete_authorizationKeyDelete_shop_authorizationKeys | null)[];
+ companyAddress: AuthorizationKeyDelete_authorizationKeyDelete_shop_companyAddress | null;
+ countries: (AuthorizationKeyDelete_authorizationKeyDelete_shop_countries | null)[];
description: string | null;
domain: AuthorizationKeyDelete_authorizationKeyDelete_shop_domain;
name: string;
diff --git a/saleor/static/dashboard-next/siteSettings/types/ShopFragment.ts b/saleor/static/dashboard-next/siteSettings/types/ShopFragment.ts
index dcea4c527d..d27566ab8c 100644
--- a/saleor/static/dashboard-next/siteSettings/types/ShopFragment.ts
+++ b/saleor/static/dashboard-next/siteSettings/types/ShopFragment.ts
@@ -14,6 +14,34 @@ export interface ShopFragment_authorizationKeys {
name: AuthorizationKeyType;
}
+export interface ShopFragment_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface ShopFragment_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: ShopFragment_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface ShopFragment_countries {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface ShopFragment_domain {
__typename: "Domain";
host: string;
@@ -22,6 +50,8 @@ export interface ShopFragment_domain {
export interface ShopFragment {
__typename: "Shop";
authorizationKeys: (ShopFragment_authorizationKeys | null)[];
+ companyAddress: ShopFragment_companyAddress | null;
+ countries: (ShopFragment_countries | null)[];
description: string | null;
domain: ShopFragment_domain;
name: string;
diff --git a/saleor/static/dashboard-next/siteSettings/types/ShopSettingsUpdate.ts b/saleor/static/dashboard-next/siteSettings/types/ShopSettingsUpdate.ts
index e78f9c121c..2fa80ac0d7 100644
--- a/saleor/static/dashboard-next/siteSettings/types/ShopSettingsUpdate.ts
+++ b/saleor/static/dashboard-next/siteSettings/types/ShopSettingsUpdate.ts
@@ -2,7 +2,7 @@
/* eslint-disable */
// This file was automatically generated and should not be edited.
-import { SiteDomainInput, ShopSettingsInput, AuthorizationKeyType } from "./../../types/globalTypes";
+import { SiteDomainInput, ShopSettingsInput, AddressInput, AuthorizationKeyType } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: ShopSettingsUpdate
@@ -20,6 +20,34 @@ export interface ShopSettingsUpdate_shopSettingsUpdate_shop_authorizationKeys {
name: AuthorizationKeyType;
}
+export interface ShopSettingsUpdate_shopSettingsUpdate_shop_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface ShopSettingsUpdate_shopSettingsUpdate_shop_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: ShopSettingsUpdate_shopSettingsUpdate_shop_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface ShopSettingsUpdate_shopSettingsUpdate_shop_countries {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface ShopSettingsUpdate_shopSettingsUpdate_shop_domain {
__typename: "Domain";
host: string;
@@ -28,6 +56,8 @@ export interface ShopSettingsUpdate_shopSettingsUpdate_shop_domain {
export interface ShopSettingsUpdate_shopSettingsUpdate_shop {
__typename: "Shop";
authorizationKeys: (ShopSettingsUpdate_shopSettingsUpdate_shop_authorizationKeys | null)[];
+ companyAddress: ShopSettingsUpdate_shopSettingsUpdate_shop_companyAddress | null;
+ countries: (ShopSettingsUpdate_shopSettingsUpdate_shop_countries | null)[];
description: string | null;
domain: ShopSettingsUpdate_shopSettingsUpdate_shop_domain;
name: string;
@@ -62,12 +92,53 @@ export interface ShopSettingsUpdate_shopDomainUpdate {
shop: ShopSettingsUpdate_shopDomainUpdate_shop | null;
}
+export interface ShopSettingsUpdate_shopAddressUpdate_errors {
+ __typename: "Error";
+ field: string | null;
+ message: string | null;
+}
+
+export interface ShopSettingsUpdate_shopAddressUpdate_shop_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface ShopSettingsUpdate_shopAddressUpdate_shop_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: ShopSettingsUpdate_shopAddressUpdate_shop_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface ShopSettingsUpdate_shopAddressUpdate_shop {
+ __typename: "Shop";
+ companyAddress: ShopSettingsUpdate_shopAddressUpdate_shop_companyAddress | null;
+}
+
+export interface ShopSettingsUpdate_shopAddressUpdate {
+ __typename: "ShopAddressUpdate";
+ errors: ShopSettingsUpdate_shopAddressUpdate_errors[] | null;
+ shop: ShopSettingsUpdate_shopAddressUpdate_shop | null;
+}
+
export interface ShopSettingsUpdate {
shopSettingsUpdate: ShopSettingsUpdate_shopSettingsUpdate | null;
shopDomainUpdate: ShopSettingsUpdate_shopDomainUpdate | null;
+ shopAddressUpdate: ShopSettingsUpdate_shopAddressUpdate | null;
}
export interface ShopSettingsUpdateVariables {
shopDomainInput: SiteDomainInput;
shopSettingsInput: ShopSettingsInput;
+ addressInput: AddressInput;
}
diff --git a/saleor/static/dashboard-next/siteSettings/types/SiteSettings.ts b/saleor/static/dashboard-next/siteSettings/types/SiteSettings.ts
index 8731240782..ee049f7385 100644
--- a/saleor/static/dashboard-next/siteSettings/types/SiteSettings.ts
+++ b/saleor/static/dashboard-next/siteSettings/types/SiteSettings.ts
@@ -14,6 +14,34 @@ export interface SiteSettings_shop_authorizationKeys {
name: AuthorizationKeyType;
}
+export interface SiteSettings_shop_companyAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
+export interface SiteSettings_shop_companyAddress {
+ __typename: "Address";
+ city: string;
+ cityArea: string;
+ companyName: string;
+ country: SiteSettings_shop_companyAddress_country;
+ countryArea: string;
+ firstName: string;
+ id: string;
+ lastName: string;
+ phone: string | null;
+ postalCode: string;
+ streetAddress1: string;
+ streetAddress2: string;
+}
+
+export interface SiteSettings_shop_countries {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface SiteSettings_shop_domain {
__typename: "Domain";
host: string;
@@ -22,6 +50,8 @@ export interface SiteSettings_shop_domain {
export interface SiteSettings_shop {
__typename: "Shop";
authorizationKeys: (SiteSettings_shop_authorizationKeys | null)[];
+ companyAddress: SiteSettings_shop_companyAddress | null;
+ countries: (SiteSettings_shop_countries | null)[];
description: string | null;
domain: SiteSettings_shop_domain;
name: string;
diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.ts
index 7d2367ecec..f6091e6828 100644
--- a/saleor/static/dashboard-next/types/globalTypes.ts
+++ b/saleor/static/dashboard-next/types/globalTypes.ts
@@ -50,6 +50,7 @@ export enum LanguageCodeEnum {
HU = "HU",
HY = "HY",
ID = "ID",
+ IS = "IS",
IT = "IT",
JA = "JA",
KO = "KO",
@@ -452,6 +453,7 @@ export interface ProductTypeInput {
isDigital?: boolean | null;
weight?: any | null;
taxRate?: TaxRateType | null;
+ taxCode?: string | null;
}
export interface ProductVariantInput {