regions-config 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Paquete de configuración de regiones para las aplicaciones de IATI. Proporciona
|
|
|
10
10
|
| --------- | ------------ | ---------------- | ----------------------------- |
|
|
11
11
|
| `es` | `es-ES` | `spain` | España |
|
|
12
12
|
| `commx` | `es-MX` | `mexico` | México |
|
|
13
|
-
| `comeneu` | `en-EU` | `
|
|
13
|
+
| `comeneu` | `en-EU` | `europe` | Internacional Europa (EN) |
|
|
14
14
|
| `comen` | `en-ROW` | `row` | Internacional resto del mundo |
|
|
15
15
|
| `it` | `it-IT` | `italy` | Italia |
|
|
16
16
|
| `pt` | `pt-PT` | `portugal` | Portugal |
|
|
@@ -116,7 +116,7 @@ Atajo que devuelve únicamente el `regionCode` que corresponde a una app de `iat
|
|
|
116
116
|
```ts
|
|
117
117
|
import { getRegionCodeByWebsiteAppName } from 'regions-config';
|
|
118
118
|
|
|
119
|
-
const regionCode = getRegionCodeByWebsiteAppName('
|
|
119
|
+
const regionCode = getRegionCodeByWebsiteAppName('europe'); // 'en-EU'
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
---
|
|
@@ -160,7 +160,7 @@ type RegionConfig = {
|
|
|
160
160
|
id: number;
|
|
161
161
|
gtmId: string; // Formato: GTM-XXXXXXX
|
|
162
162
|
regionCode: 'es-ES' | 'es-MX' | 'en-EU' | 'en-ROW' | 'it-IT' | 'pt-PT' | 'es-CO' | 'es-PE';
|
|
163
|
-
websiteAppName: 'spain' | 'mexico' | '
|
|
163
|
+
websiteAppName: 'spain' | 'mexico' | 'europe' | 'row' | 'italy' | 'portugal' | 'colombia' | 'peru';
|
|
164
164
|
timeZone: string;
|
|
165
165
|
dateFormat: string;
|
|
166
166
|
footer: Array<{ href: string; label: string }>;
|
package/dist/index.d.mts
CHANGED
|
@@ -349,7 +349,7 @@ declare const regions: {
|
|
|
349
349
|
readonly comeneu: {
|
|
350
350
|
readonly id: 6;
|
|
351
351
|
readonly name: "europe";
|
|
352
|
-
readonly websiteAppName: "
|
|
352
|
+
readonly websiteAppName: "europe";
|
|
353
353
|
readonly countryCode: "EU";
|
|
354
354
|
readonly defaultCurrency: "EUR";
|
|
355
355
|
readonly marketRegion: "europe";
|
|
@@ -1369,7 +1369,7 @@ declare const RegionCodeSchema: z.ZodEnum<{
|
|
|
1369
1369
|
declare const WebsiteAppNameSchema: z.ZodEnum<{
|
|
1370
1370
|
colombia: "colombia";
|
|
1371
1371
|
row: "row";
|
|
1372
|
-
|
|
1372
|
+
europe: "europe";
|
|
1373
1373
|
mexico: "mexico";
|
|
1374
1374
|
peru: "peru";
|
|
1375
1375
|
spain: "spain";
|
|
@@ -1413,7 +1413,7 @@ declare const MarketRegionEnum: {
|
|
|
1413
1413
|
declare const WebsiteAppNameEnum: {
|
|
1414
1414
|
colombia: "colombia";
|
|
1415
1415
|
row: "row";
|
|
1416
|
-
|
|
1416
|
+
europe: "europe";
|
|
1417
1417
|
mexico: "mexico";
|
|
1418
1418
|
peru: "peru";
|
|
1419
1419
|
spain: "spain";
|
|
@@ -1535,7 +1535,7 @@ declare const RegionConfigSchema: z.ZodObject<{
|
|
|
1535
1535
|
websiteAppName: z.ZodEnum<{
|
|
1536
1536
|
colombia: "colombia";
|
|
1537
1537
|
row: "row";
|
|
1538
|
-
|
|
1538
|
+
europe: "europe";
|
|
1539
1539
|
mexico: "mexico";
|
|
1540
1540
|
peru: "peru";
|
|
1541
1541
|
spain: "spain";
|
package/dist/index.d.ts
CHANGED
|
@@ -349,7 +349,7 @@ declare const regions: {
|
|
|
349
349
|
readonly comeneu: {
|
|
350
350
|
readonly id: 6;
|
|
351
351
|
readonly name: "europe";
|
|
352
|
-
readonly websiteAppName: "
|
|
352
|
+
readonly websiteAppName: "europe";
|
|
353
353
|
readonly countryCode: "EU";
|
|
354
354
|
readonly defaultCurrency: "EUR";
|
|
355
355
|
readonly marketRegion: "europe";
|
|
@@ -1369,7 +1369,7 @@ declare const RegionCodeSchema: z.ZodEnum<{
|
|
|
1369
1369
|
declare const WebsiteAppNameSchema: z.ZodEnum<{
|
|
1370
1370
|
colombia: "colombia";
|
|
1371
1371
|
row: "row";
|
|
1372
|
-
|
|
1372
|
+
europe: "europe";
|
|
1373
1373
|
mexico: "mexico";
|
|
1374
1374
|
peru: "peru";
|
|
1375
1375
|
spain: "spain";
|
|
@@ -1413,7 +1413,7 @@ declare const MarketRegionEnum: {
|
|
|
1413
1413
|
declare const WebsiteAppNameEnum: {
|
|
1414
1414
|
colombia: "colombia";
|
|
1415
1415
|
row: "row";
|
|
1416
|
-
|
|
1416
|
+
europe: "europe";
|
|
1417
1417
|
mexico: "mexico";
|
|
1418
1418
|
peru: "peru";
|
|
1419
1419
|
spain: "spain";
|
|
@@ -1535,7 +1535,7 @@ declare const RegionConfigSchema: z.ZodObject<{
|
|
|
1535
1535
|
websiteAppName: z.ZodEnum<{
|
|
1536
1536
|
colombia: "colombia";
|
|
1537
1537
|
row: "row";
|
|
1538
|
-
|
|
1538
|
+
europe: "europe";
|
|
1539
1539
|
mexico: "mexico";
|
|
1540
1540
|
peru: "peru";
|
|
1541
1541
|
spain: "spain";
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED