Skip to content

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

Upgrade Schema, types and react part

Pacu231932c356df2
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 222c79d19d..b5b8133aec 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -13,7 +13,7 @@ type Address implements Node {
city: String!
cityArea: String!
postalCode: String!
- country: AddressCountry!
+ country: CountryDisplay
countryArea: String!
phone: String
}
@@ -29,259 +29,6 @@ type AddressCountableEdge {
cursor: String!
}
-enum AddressCountry {
- AF
- AX
- AL
- DZ
- AS
- AD
- AO
- AI
- AQ
- AG
- AR
- AM
- AW
- AU
- AT
- AZ
- BS
- BH
- BD
- BB
- BY
- BE
- BZ
- BJ
- BM
- BT
- BO
- BQ
- BA
- BW
- BV
- BR
- IO
- BN
- BG
- BF
- BI
- CV
- KH
- CM
- CA
- KY
- CF
- TD
- CL
- CN
- CX
- CC
- CO
- KM
- CG
- CD
- CK
- CR
- CI
- HR
- CU
- CW
- CY
- CZ
- DK
- DJ
- DM
- DO
- EC
- EG
- SV
- GQ
- ER
- EE
- ET
- EU
- FK
- FO
- FJ
- FI
- FR
- GF
- PF
- TF
- GA
- GM
- GE
- DE
- GH
- GI
- GR
- GL
- GD
- GP
- GU
- GT
- GG
- GN
- GW
- GY
- HT
- HM
- VA
- HN
- HK
- HU
- IS
- IN
- ID
- IR
- IQ
- IE
- IM
- IL
- IT
- JM
- JP
- JE
- JO
- KZ
- KE
- KI
- KW
- KG
- LA
- LV
- LB
- LS
- LR
- LY
- LI
- LT
- LU
- MO
- MK
- MG
- MW
- MY
- MV
- ML
- MT
- MH
- MQ
- MR
- MU
- YT
- MX
- FM
- MD
- MC
- MN
- ME
- MS
- MA
- MZ
- MM
- NA
- NR
- NP
- NL
- NC
- NZ
- NI
- NE
- NG
- NU
- NF
- KP
- MP
- NO
- OM
- PK
- PW
- PS
- PA
- PG
- PY
- PE
- PH
- PN
- PL
- PT
- PR
- QA
- RE
- RO
- RU
- RW
- BL
- SH
- KN
- LC
- MF
- PM
- VC
- WS
- SM
- ST
- SA
- SN
- RS
- SC
- SL
- SG
- SX
- SK
- SI
- SB
- SO
- ZA
- GS
- KR
- SS
- ES
- LK
- SD
- SR
- SJ
- SZ
- SE
- CH
- SY
- TW
- TJ
- TZ
- TH
- TL
- TG
- TK
- TO
- TT
- TN
- TR
- TM
- TC
- TV
- UG
- UA
- AE
- GB
- UM
- US
- UY
- UZ
- VU
- VE
- VN
- VG
- VI
- WF
- EH
- YE
- ZM
- ZW
-}
-
type AddressCreate {
errors: [Error]
address: Address
diff --git a/saleor/static/dashboard-next/orders/queries.ts b/saleor/static/dashboard-next/orders/queries.ts
index dac063a415..8aba0da42f 100644
--- a/saleor/static/dashboard-next/orders/queries.ts
+++ b/saleor/static/dashboard-next/orders/queries.ts
@@ -62,7 +62,10 @@ export const fragmentAddress = gql`
city
cityArea
companyName
- country
+ country {
+ code
+ country
+ }
countryArea
firstName
lastName
diff --git a/saleor/static/dashboard-next/orders/types/AddressFragment.ts b/saleor/static/dashboard-next/orders/types/AddressFragment.ts
index 84c6c1df1c..f0ad292e04 100644
--- a/saleor/static/dashboard-next/orders/types/AddressFragment.ts
+++ b/saleor/static/dashboard-next/orders/types/AddressFragment.ts
@@ -1,19 +1,23 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry } from "./../../types/globalTypes";
-
// ====================================================
// GraphQL fragment: AddressFragment
// ====================================================
+export interface AddressFragment_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface AddressFragment {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: AddressFragment_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderCancel.ts b/saleor/static/dashboard-next/orders/types/OrderCancel.ts
index 4951836e95..bb52953b0f 100644
--- a/saleor/static/dashboard-next/orders/types/OrderCancel.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderCancel.ts
@@ -1,19 +1,25 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderCancel
// ====================================================
+export interface OrderCancel_orderCancel_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderCancel_orderCancel_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderCancel_orderCancel_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -111,13 +117,19 @@ export interface OrderCancel_orderCancel_order_lines {
edges: OrderCancel_orderCancel_order_lines_edges[];
}
+export interface OrderCancel_orderCancel_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderCancel_orderCancel_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderCancel_orderCancel_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderCapture.ts b/saleor/static/dashboard-next/orders/types/OrderCapture.ts
index 7c227c69c4..0eca21d736 100644
--- a/saleor/static/dashboard-next/orders/types/OrderCapture.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderCapture.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderCapture
@@ -13,13 +13,19 @@ export interface OrderCapture_orderCapture_errors {
message: string | null;
}
+export interface OrderCapture_orderCapture_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderCapture_orderCapture_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderCapture_orderCapture_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderCapture_orderCapture_order_lines {
edges: OrderCapture_orderCapture_order_lines_edges[];
}
+export interface OrderCapture_orderCapture_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderCapture_orderCapture_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderCapture_orderCapture_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderDetails.ts b/saleor/static/dashboard-next/orders/types/OrderDetails.ts
index 0e4e6cf5ab..78d4fb9efa 100644
--- a/saleor/static/dashboard-next/orders/types/OrderDetails.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderDetails.ts
@@ -1,19 +1,25 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL query operation: OrderDetails
// ====================================================
+export interface OrderDetails_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDetails_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDetails_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -111,13 +117,19 @@ export interface OrderDetails_order_lines {
edges: OrderDetails_order_lines_edges[];
}
+export interface OrderDetails_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDetails_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDetails_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
index 4819da037a..00a6ad9712 100644
--- a/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderDetailsFragment.ts
@@ -1,19 +1,25 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL fragment: OrderDetailsFragment
// ====================================================
+export interface OrderDetailsFragment_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDetailsFragment_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDetailsFragment_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -111,13 +117,19 @@ export interface OrderDetailsFragment_lines {
edges: OrderDetailsFragment_lines_edges[];
}
+export interface OrderDetailsFragment_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDetailsFragment_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDetailsFragment_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts
index 12df4d1fbc..4c252b93d3 100644
--- a/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderDraftUpdate.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { DraftOrderInput, AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { DraftOrderInput, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderDraftUpdate
@@ -13,13 +13,19 @@ export interface OrderDraftUpdate_draftOrderUpdate_errors {
message: string | null;
}
+export interface OrderDraftUpdate_draftOrderUpdate_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDraftUpdate_draftOrderUpdate_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDraftUpdate_draftOrderUpdate_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderDraftUpdate_draftOrderUpdate_order_lines {
edges: OrderDraftUpdate_draftOrderUpdate_order_lines_edges[];
}
+export interface OrderDraftUpdate_draftOrderUpdate_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderDraftUpdate_draftOrderUpdate_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderDraftUpdate_draftOrderUpdate_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts b/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
index dd29987888..3280f8a13b 100644
--- a/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderLineAdd.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { OrderLineCreateInput, AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderLineCreateInput, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderLineAdd
@@ -13,13 +13,19 @@ export interface OrderLineAdd_draftOrderLineCreate_errors {
message: string | null;
}
+export interface OrderLineAdd_draftOrderLineCreate_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineAdd_draftOrderLineCreate_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineAdd_draftOrderLineCreate_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderLineAdd_draftOrderLineCreate_order_lines {
edges: OrderLineAdd_draftOrderLineCreate_order_lines_edges[];
}
+export interface OrderLineAdd_draftOrderLineCreate_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineAdd_draftOrderLineCreate_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineAdd_draftOrderLineCreate_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts b/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts
index 9529e13d50..29daa81c71 100644
--- a/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderLineDelete.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderLineDelete
@@ -13,13 +13,19 @@ export interface OrderLineDelete_draftOrderLineDelete_errors {
message: string | null;
}
+export interface OrderLineDelete_draftOrderLineDelete_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineDelete_draftOrderLineDelete_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineDelete_draftOrderLineDelete_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderLineDelete_draftOrderLineDelete_order_lines {
edges: OrderLineDelete_draftOrderLineDelete_order_lines_edges[];
}
+export interface OrderLineDelete_draftOrderLineDelete_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineDelete_draftOrderLineDelete_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineDelete_draftOrderLineDelete_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts
index b3fba02b1c..ec6b653496 100644
--- a/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderLineUpdate.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { OrderLineInput, AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderLineInput, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderLineUpdate
@@ -13,13 +13,19 @@ export interface OrderLineUpdate_draftOrderLineUpdate_errors {
message: string | null;
}
+export interface OrderLineUpdate_draftOrderLineUpdate_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineUpdate_draftOrderLineUpdate_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineUpdate_draftOrderLineUpdate_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderLineUpdate_draftOrderLineUpdate_order_lines {
edges: OrderLineUpdate_draftOrderLineUpdate_order_lines_edges[];
}
+export interface OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderLineUpdate_draftOrderLineUpdate_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderRefund.ts b/saleor/static/dashboard-next/orders/types/OrderRefund.ts
index 021c1bcfa5..25c13980a4 100644
--- a/saleor/static/dashboard-next/orders/types/OrderRefund.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderRefund.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderRefund
@@ -13,13 +13,19 @@ export interface OrderRefund_orderRefund_errors {
message: string | null;
}
+export interface OrderRefund_orderRefund_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderRefund_orderRefund_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderRefund_orderRefund_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -117,13 +123,19 @@ export interface OrderRefund_orderRefund_order_lines {
edges: OrderRefund_orderRefund_order_lines_edges[];
}
+export interface OrderRefund_orderRefund_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderRefund_orderRefund_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderRefund_orderRefund_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderRelease.ts b/saleor/static/dashboard-next/orders/types/OrderRelease.ts
index 66d44ad8cf..7768fe4d41 100644
--- a/saleor/static/dashboard-next/orders/types/OrderRelease.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderRelease.ts
@@ -1,19 +1,25 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { AddressCountry, OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
+import { OrderEventsEmails, OrderEvents, FulfillmentStatus, PaymentStatusEnum, OrderStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderRelease
// ====================================================
+export interface OrderRelease_orderRelease_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderRelease_orderRelease_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderRelease_orderRelease_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -111,13 +117,19 @@ export interface OrderRelease_orderRelease_order_lines {
edges: OrderRelease_orderRelease_order_lines_edges[];
}
+export interface OrderRelease_orderRelease_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderRelease_orderRelease_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderRelease_orderRelease_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/orders/types/OrderUpdate.ts b/saleor/static/dashboard-next/orders/types/OrderUpdate.ts
index 46523a9f05..f4282e7715 100644
--- a/saleor/static/dashboard-next/orders/types/OrderUpdate.ts
+++ b/saleor/static/dashboard-next/orders/types/OrderUpdate.ts
@@ -1,7 +1,7 @@
/* tslint:disable */
// This file was automatically generated and should not be edited.
-import { OrderUpdateInput, AddressCountry } from "./../../types/globalTypes";
+import { OrderUpdateInput } from "./../../types/globalTypes";
// ====================================================
// GraphQL mutation operation: OrderUpdate
@@ -13,13 +13,19 @@ export interface OrderUpdate_orderUpdate_errors {
message: string | null;
}
+export interface OrderUpdate_orderUpdate_order_billingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderUpdate_orderUpdate_order_billingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderUpdate_orderUpdate_order_billingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
@@ -29,13 +35,19 @@ export interface OrderUpdate_orderUpdate_order_billingAddress {
streetAddress2: string;
}
+export interface OrderUpdate_orderUpdate_order_shippingAddress_country {
+ __typename: "CountryDisplay";
+ code: string;
+ country: string;
+}
+
export interface OrderUpdate_orderUpdate_order_shippingAddress {
__typename: "Address";
id: string;
city: string;
cityArea: string;
companyName: string;
- country: AddressCountry;
+ country: OrderUpdate_orderUpdate_order_shippingAddress_country | null;
countryArea: string;
firstName: string;
lastName: string;
diff --git a/saleor/static/dashboard-next/types/globalTypes.ts b/saleor/static/dashboard-next/types/globalTypes.ts
index 62069ccb86..8208bea6f4 100644
--- a/saleor/static/dashboard-next/types/globalTypes.ts
+++ b/saleor/static/dashboard-next/types/globalTypes.ts
@@ -5,259 +5,6 @@
// START Enums and Input Objects
//==============================================================
-export enum AddressCountry {
- AD = "AD",
- AE = "AE",
- AF = "AF",
- AG = "AG",
- AI = "AI",
- AL = "AL",
- AM = "AM",
- AO = "AO",
- AQ = "AQ",
- AR = "AR",
- AS = "AS",
- AT = "AT",
- AU = "AU",
- AW = "AW",
- AX = "AX",
- AZ = "AZ",
- BA = "BA",
- BB = "BB",
- BD = "BD",
- BE = "BE",
- BF = "BF",
- BG = "BG",
- BH = "BH",
- BI = "BI",
- BJ = "BJ",
- BL = "BL",
- BM = "BM",
- BN = "BN",
- BO = "BO",
- BQ = "BQ",
- BR = "BR",
- BS = "BS",
- BT = "BT",
- BV = "BV",
- BW = "BW",
- BY = "BY",
- BZ = "BZ",
- CA = "CA",
- CC = "CC",
- CD = "CD",
- CF = "CF",
- CG = "CG",
- CH = "CH",
- CI = "CI",
- CK = "CK",
- CL = "CL",
- CM = "CM",
- CN = "CN",
- CO = "CO",
- CR = "CR",
- CU = "CU",
- CV = "CV",
- CW = "CW",
- CX = "CX",
- CY = "CY",
- CZ = "CZ",
- DE = "DE",
- DJ = "DJ",
- DK = "DK",
- DM = "DM",
- DO = "DO",
- DZ = "DZ",
- EC = "EC",
- EE = "EE",
- EG = "EG",
- EH = "EH",
- ER = "ER",
- ES = "ES",
- ET = "ET",
- EU = "EU",
- FI = "FI",
- FJ = "FJ",
- FK = "FK",
- FM = "FM",
- FO = "FO",
- FR = "FR",
- GA = "GA",
- GB = "GB",
- GD = "GD",
- GE = "GE",
- GF = "GF",
- GG = "GG",
- GH = "GH",
- GI = "GI",
- GL = "GL",
- GM = "GM",
- GN = "GN",
- GP = "GP",
- GQ = "GQ",
- GR = "GR",
- GS = "GS",
- GT = "GT",
- GU = "GU",
- GW = "GW",
- GY = "GY",
- HK = "HK",
- HM = "HM",
- HN = "HN",
- HR = "HR",
- HT = "HT",
- HU = "HU",
- ID = "ID",
- IE = "IE",
- IL = "IL",
- IM = "IM",
- IN = "IN",
- IO = "IO",
- IQ = "IQ",
- IR = "IR",
- IS = "IS",
- IT = "IT",
- JE = "JE",
- JM = "JM",
- JO = "JO",
- JP = "JP",
- KE = "KE",
- KG = "KG",
- KH = "KH",
- KI = "KI",
- KM = "KM",
- KN = "KN",
- KP = "KP",
- KR = "KR",
- KW = "KW",
- KY = "KY",
- KZ = "KZ",
- LA = "LA",
- LB = "LB",
- LC = "LC",
- LI = "LI",
- LK = "LK",
- LR = "LR",
- LS = "LS",
- LT = "LT",
- LU = "LU",
- LV = "LV",
- LY = "LY",
- MA = "MA",
- MC = "MC",
- MD = "MD",
- ME = "ME",
- MF = "MF",
- MG = "MG",
- MH = "MH",
- MK = "MK",
- ML = "ML",
- MM = "MM",
- MN = "MN",
- MO = "MO",
- MP = "MP",
- MQ = "MQ",
- MR = "MR",
- MS = "MS",
- MT = "MT",
- MU = "MU",
- MV = "MV",
- MW = "MW",
- MX = "MX",
- MY = "MY",
- MZ = "MZ",
- NA = "NA",
- NC = "NC",
- NE = "NE",
- NF = "NF",
- NG = "NG",
- NI = "NI",
- NL = "NL",
- NO = "NO",
- NP = "NP",
- NR = "NR",
- NU = "NU",
- NZ = "NZ",
- OM = "OM",
- PA = "PA",
- PE = "PE",
- PF = "PF",
- PG = "PG",
- PH = "PH",
- PK = "PK",
- PL = "PL",
- PM = "PM",
- PN = "PN",
- PR = "PR",
- PS = "PS",
- PT = "PT",
- PW = "PW",
- PY = "PY",
- QA = "QA",
- RE = "RE",
- RO = "RO",
- RS = "RS",
- RU = "RU",
- RW = "RW",
- SA = "SA",
- SB = "SB",
- SC = "SC",
- SD = "SD",
- SE = "SE",
- SG = "SG",
- SH = "SH",
- SI = "SI",
- SJ = "SJ",
- SK = "SK",
- SL = "SL",
- SM = "SM",
- SN = "SN",
- SO = "SO",
- SR = "SR",
- SS = "SS",
- ST = "ST",
- SV = "SV",
- SX = "SX",
- SY = "SY",
- SZ = "SZ",
- TC = "TC",
- TD = "TD",
- TF = "TF",
- TG = "TG",
- TH = "TH",
- TJ = "TJ",
- TK = "TK",
- TL = "TL",
- TM = "TM",
- TN = "TN",
- TO = "TO",
- TR = "TR",
- TT = "TT",
- TV = "TV",
- TW = "TW",
- TZ = "TZ",
- UA = "UA",
- UG = "UG",
- UM = "UM",
- US = "US",
- UY = "UY",
- UZ = "UZ",
- VA = "VA",
- VC = "VC",
- VE = "VE",
- VG = "VG",
- VI = "VI",
- VN = "VN",
- VU = "VU",
- WF = "WF",
- WS = "WS",
- YE = "YE",
- YT = "YT",
- ZA = "ZA",
- ZM = "ZM",
- ZW = "ZW",
-}
-
export enum FulfillmentStatus {
CANCELED = "CANCELED",
FULFILLED = "FULFILLED",