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:
@@ -14,8 +14,9 @@
|
||||
|
||||
type Translator = (s: string) => string;
|
||||
|
||||
// ISO 3166-1 alpha-2 country codes
|
||||
// ISO 3166-1 alpha-2 country codes and supported regions.
|
||||
export const countries = [
|
||||
"GLOBAL",
|
||||
"AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR",
|
||||
"AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE",
|
||||
"BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ",
|
||||
@@ -46,6 +47,7 @@ export const countries = [
|
||||
export type CountryCode = typeof countries[number];
|
||||
|
||||
const countryNames: Record<CountryCode, (t: Translator) => string> = {
|
||||
"GLOBAL": (__) => __("Global"),
|
||||
"AD": (__) => __("Andorra"),
|
||||
"AE": (__) => __("United Arab Emirates"),
|
||||
"AF": (__) => __("Afghanistan"),
|
||||
|
||||
@@ -169,7 +169,7 @@ export const description: INodeProperties[] = [
|
||||
name: 'countries',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Comma-separated list of country codes',
|
||||
description: 'Comma-separated list of country or region codes',
|
||||
},
|
||||
{
|
||||
displayName: 'Data Processing Agreement URL',
|
||||
|
||||
@@ -181,7 +181,7 @@ export const description: INodeProperties[] = [
|
||||
name: 'countries',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Comma-separated list of country codes',
|
||||
description: 'Comma-separated list of country or region codes',
|
||||
},
|
||||
{
|
||||
displayName: 'Data Processing Agreement URL',
|
||||
|
||||
Reference in New Issue
Block a user