Add Global vendor country region

Allow vendor country selections to use a Global region alongside
existing country and EU values. The new value is accepted by backend
country-code validation, exposed through GraphQL and MCP schemas, and
shown in the shared country picker label set.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
This commit is contained in:
Cursor Agent
2026-05-28 18:51:42 +00:00
parent 93d8d20dbf
commit 29d8181b2c
8 changed files with 32 additions and 6 deletions

View File

@@ -45,6 +45,7 @@ enum OrderDirection
enum CountryCode
@goModel(model: "go.probo.inc/probo/pkg/coredata.CountryCode") {
GLOBAL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGlobal")
AD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAD")
AE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAE")
AF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAF")

View File

@@ -218,6 +218,7 @@ components:
CountryCode:
type: string
enum:
- GLOBAL
- AD
- AE
- AF
@@ -828,7 +829,7 @@ components:
type: array
items:
type: string
description: Countries (ISO 3166-1 alpha-2 country codes)
description: Countries or regions (ISO 3166-1 alpha-2 country codes, EU, or GLOBAL)
business_owner_id:
anyOf:
- $ref: "#/components/schemas/GID"
@@ -1054,7 +1055,7 @@ components:
type: array
items:
type: string
description: Countries (ISO 3166-1 alpha-2 country codes)
description: Countries or regions (ISO 3166-1 alpha-2 country codes, EU, or GLOBAL)
business_owner_id:
$ref: "#/components/schemas/GID"
description: Business owner ID
@@ -1155,7 +1156,7 @@ components:
type: array
items:
type: string
description: Countries (ISO 3166-1 alpha-2 country codes)
description: Countries or regions (ISO 3166-1 alpha-2 country codes, EU, or GLOBAL)
business_owner_id:
$ref: "#/components/schemas/GID"
description: Business owner ID

View File

@@ -55,6 +55,7 @@ type PageInfo {
enum CountryCode
@goModel(model: "go.probo.inc/probo/pkg/coredata.CountryCode") {
GLOBAL @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeGlobal")
AD @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAD")
AE @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAE")
AF @goEnum(value: "go.probo.inc/probo/pkg/coredata.CountryCodeAF")