regions-config 1.0.5 → 1.0.7

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/dist/index.js CHANGED
@@ -61,12 +61,16 @@ var GROUP_REGIONS = {
61
61
  US_CANADA: 274
62
62
  };
63
63
  var EUROPE_COUNTRIES = [
64
+ 1,
65
+ 3,
64
66
  4,
65
67
  5,
66
68
  6,
67
69
  14,
70
+ 16,
68
71
  21,
69
72
  22,
73
+ 27,
70
74
  31,
71
75
  34,
72
76
  38,
@@ -77,34 +81,36 @@ var EUROPE_COUNTRIES = [
77
81
  66,
78
82
  70,
79
83
  71,
80
- 1,
81
84
  73,
82
85
  76,
83
86
  78,
84
87
  82,
88
+ 84,
85
89
  86,
86
90
  98,
87
91
  104,
88
- 262,
89
- 112,
90
92
  108,
93
+ 112,
94
+ 123,
91
95
  124,
92
96
  129,
93
- 130,
94
97
  134,
95
98
  138,
96
99
  139,
100
+ 141,
97
101
  142,
98
102
  143,
99
103
  144,
100
104
  146,
101
105
  152,
106
+ 153,
102
107
  154,
103
108
  160,
104
109
  161,
105
110
  163,
106
111
  174,
107
112
  179,
113
+ 182,
108
114
  189,
109
115
  190,
110
116
  193,
@@ -113,88 +119,92 @@ var EUROPE_COUNTRIES = [
113
119
  200,
114
120
  202,
115
121
  207,
122
+ 217,
116
123
  225,
117
124
  226,
118
125
  240,
119
- 242
126
+ 242,
127
+ 244,
128
+ 262
120
129
  ];
121
- var US_CANADA_JAPAN_COUNTRIES = [72, 45, 127];
130
+ var US_CANADA_JAPAN_COUNTRIES = [23, 30, 45, 72, 120, 127, 183, 191, 204, 205, 264];
122
131
  var US_CANADA_COUNTRIES = [72, 45];
123
132
  var WORLD_COUNTRIES = [
124
- 3,
133
+ 2,
134
+ 7,
125
135
  8,
136
+ 9,
126
137
  10,
138
+ 11,
127
139
  12,
140
+ 13,
128
141
  15,
129
- 16,
130
142
  17,
143
+ 18,
144
+ 19,
131
145
  20,
132
- 23,
146
+ 24,
133
147
  25,
134
148
  26,
135
- 24,
136
149
  28,
137
150
  29,
138
- 30,
139
151
  32,
140
152
  33,
141
- 270,
142
153
  35,
143
154
  36,
144
155
  37,
156
+ 39,
157
+ 40,
145
158
  41,
146
159
  42,
147
160
  43,
148
161
  44,
149
- 45,
162
+ 46,
150
163
  47,
151
164
  48,
165
+ 51,
152
166
  52,
153
- 253,
154
167
  53,
155
168
  54,
169
+ 55,
170
+ 56,
156
171
  57,
157
172
  58,
158
173
  59,
159
174
  61,
160
- 269,
161
175
  62,
162
176
  64,
163
177
  65,
164
178
  67,
165
179
  68,
166
180
  69,
167
- 72,
168
181
  74,
169
182
  75,
170
183
  77,
171
184
  79,
172
185
  80,
186
+ 81,
173
187
  83,
174
- 84,
175
188
  85,
176
189
  87,
177
- 265,
178
190
  88,
179
191
  89,
180
- 266,
181
192
  90,
182
193
  91,
183
194
  92,
195
+ 93,
184
196
  94,
197
+ 95,
185
198
  96,
186
199
  97,
187
200
  99,
201
+ 100,
188
202
  101,
203
+ 102,
204
+ 103,
189
205
  105,
190
- 51,
191
- 153,
192
- 168,
193
206
  106,
194
- 263,
195
207
  107,
196
- 251,
197
- 18,
198
208
  109,
199
209
  110,
200
210
  111,
@@ -202,32 +212,30 @@ var WORLD_COUNTRIES = [
202
212
  114,
203
213
  115,
204
214
  116,
205
- 122,
206
- 127,
207
- 180,
208
- 185,
209
215
  117,
210
216
  118,
211
- 220,
212
217
  119,
213
- 264,
214
218
  121,
215
- 120,
219
+ 122,
216
220
  125,
217
221
  126,
218
222
  128,
223
+ 130,
219
224
  131,
220
225
  132,
221
226
  133,
222
227
  135,
223
228
  136,
224
229
  137,
230
+ 140,
225
231
  145,
226
232
  147,
227
233
  148,
228
234
  149,
229
235
  150,
236
+ 151,
230
237
  155,
238
+ 156,
231
239
  157,
232
240
  158,
233
241
  159,
@@ -236,27 +244,30 @@ var WORLD_COUNTRIES = [
236
244
  165,
237
245
  166,
238
246
  167,
247
+ 168,
239
248
  169,
240
249
  170,
250
+ 171,
251
+ 172,
241
252
  173,
242
253
  175,
243
254
  176,
244
255
  177,
256
+ 178,
257
+ 180,
245
258
  181,
246
- 183,
259
+ 184,
260
+ 185,
247
261
  186,
248
262
  187,
249
263
  188,
250
- 191,
251
264
  192,
265
+ 194,
252
266
  197,
253
267
  198,
254
- 268,
255
268
  199,
269
+ 201,
256
270
  203,
257
- 204,
258
- 205,
259
- 271,
260
271
  206,
261
272
  208,
262
273
  209,
@@ -267,6 +278,9 @@ var WORLD_COUNTRIES = [
267
278
  214,
268
279
  215,
269
280
  216,
281
+ 218,
282
+ 219,
283
+ 220,
270
284
  221,
271
285
  222,
272
286
  223,
@@ -278,7 +292,6 @@ var WORLD_COUNTRIES = [
278
292
  231,
279
293
  232,
280
294
  233,
281
- 55,
282
295
  234,
283
296
  235,
284
297
  236,
@@ -293,17 +306,31 @@ var WORLD_COUNTRIES = [
293
306
  248,
294
307
  249,
295
308
  250,
309
+ 251,
296
310
  252,
311
+ 253,
312
+ 255,
297
313
  256,
298
314
  257,
299
- 258
315
+ 258,
316
+ 263,
317
+ 265,
318
+ 266,
319
+ 267,
320
+ 268,
321
+ 269,
322
+ 270,
323
+ 271
300
324
  ];
301
325
 
302
326
  // src/domain/RegionConfigSchema.ts
303
327
  var import_zod = require("zod");
304
- var RegionConfigSchema = import_zod.z.object({
328
+ var RegionConfigSchema = import_zod.z.strictObject({
305
329
  id: import_zod.z.number(),
306
- gtmId: import_zod.z.string().regex(/^GTM-[A-Z0-9]+$/, "Invalid GTM ID format"),
330
+ gtmId: import_zod.z.object({
331
+ staging: import_zod.z.string().regex(/^GTM-[A-Z0-9]+$/, "Invalid GTM ID format"),
332
+ production: import_zod.z.string().regex(/^GTM-[A-Z0-9]+$/, "Invalid GTM ID format")
333
+ }),
307
334
  countriesToRedirect: import_zod.z.record(
308
335
  import_zod.z.string(),
309
336
  import_zod.z.object({
@@ -317,8 +344,8 @@ var RegionConfigSchema = import_zod.z.object({
317
344
  })
318
345
  ).optional(),
319
346
  regionUrls: import_zod.z.object({
320
- staging: import_zod.z.string().url(),
321
- production: import_zod.z.string().url()
347
+ staging: import_zod.z.url(),
348
+ production: import_zod.z.url()
322
349
  }).optional(),
323
350
  timeZone: import_zod.z.string(),
324
351
  regionsToGroup: import_zod.z.array(
@@ -330,7 +357,7 @@ var RegionConfigSchema = import_zod.z.object({
330
357
  ).optional(),
331
358
  footer: import_zod.z.array(
332
359
  import_zod.z.object({
333
- href: import_zod.z.string().url(),
360
+ href: import_zod.z.url(),
334
361
  label: import_zod.z.string()
335
362
  })
336
363
  ),
@@ -345,6 +372,7 @@ var RegionConfigSchema = import_zod.z.object({
345
372
  foreign: import_zod.z.array(import_zod.z.object({ label: import_zod.z.string(), value: import_zod.z.string() }))
346
373
  }).optional(),
347
374
  dateFormat: import_zod.z.string(),
375
+ postalCodeFormat: import_zod.z.string().optional(),
348
376
  regionCode: import_zod.z.enum(["es-ES", "es-MX", "en-EU", "en-ROW", "it-IT", "pt-PT", "es-CO", "es-PE"]),
349
377
  paymentCardTypes: import_zod.z.array(
350
378
  import_zod.z.object({
@@ -354,7 +382,7 @@ var RegionConfigSchema = import_zod.z.object({
354
382
  })
355
383
  ),
356
384
  webSitePath: import_zod.z.string().optional()
357
- }).strict();
385
+ });
358
386
 
359
387
  // src/regions/index.ts
360
388
  var regions_exports = {};
@@ -471,7 +499,10 @@ var comco_default = {
471
499
  ],
472
500
  dateFormat: "dd/MM/yyyy",
473
501
  regionCode: "es-CO",
474
- gtmId: "GTM-MWBFQB27",
502
+ gtmId: {
503
+ staging: "GTM-MWBFQB27",
504
+ production: "GTM-MWBFQB27"
505
+ },
475
506
  paymentCardTypes: [
476
507
  {
477
508
  id: 1,
@@ -631,7 +662,10 @@ var comen_default = {
631
662
  ],
632
663
  dateFormat: "dd/MM/yyyy",
633
664
  regionCode: "en-ROW",
634
- gtmId: "GTM-NZVPZBPD",
665
+ gtmId: {
666
+ staging: "GTM-NZVPZBPD",
667
+ production: "GTM-NZVPZBPD"
668
+ },
635
669
  paymentCardTypes: [
636
670
  {
637
671
  id: 1,
@@ -778,7 +812,10 @@ var comeneu_default = {
778
812
  ],
779
813
  dateFormat: "dd/MM/yyyy",
780
814
  regionCode: "en-EU",
781
- gtmId: "GTM-WMGW2FPD",
815
+ gtmId: {
816
+ staging: "GTM-WMGW2FPD",
817
+ production: "GTM-WMGW2FPD"
818
+ },
782
819
  paymentCardTypes: [
783
820
  {
784
821
  id: 1,
@@ -916,7 +953,10 @@ var commx_default = {
916
953
  ],
917
954
  dateFormat: "dd/MM/yyyy",
918
955
  regionCode: "es-MX",
919
- gtmId: "GTM-T2RSHCJ9",
956
+ gtmId: {
957
+ staging: "GTM-T2RSHCJ9",
958
+ production: "GTM-T2RSHCJ9"
959
+ },
920
960
  paymentCardTypes: [
921
961
  {
922
962
  id: 1,
@@ -1039,7 +1079,10 @@ var compe_default = {
1039
1079
  ],
1040
1080
  dateFormat: "dd/MM/yyyy",
1041
1081
  regionCode: "es-PE",
1042
- gtmId: "GTM-KLWFKMS7",
1082
+ gtmId: {
1083
+ staging: "GTM-KLWFKMS7",
1084
+ production: "GTM-KLWFKMS7"
1085
+ },
1043
1086
  paymentCardTypes: [
1044
1087
  {
1045
1088
  id: 1,
@@ -1134,23 +1177,23 @@ var es_default = {
1134
1177
  ],
1135
1178
  footer: [
1136
1179
  {
1137
- href: "https://www.iatiseguros.com/es/politica-de-privacidad",
1180
+ href: "https://cdn.sanity.io/files/mkg24y51/production/314ec4e7ac7172cc93af5559ce83dc2ca1097360.pdf",
1138
1181
  label: "footer.privacyPolicy"
1139
1182
  },
1140
1183
  {
1141
- href: "https://www.iatiseguros.com/es/aviso-legal",
1184
+ href: "https://static.iatiseguros.com/es/documentos/Aviso+legal.pdf",
1142
1185
  label: "footer.legalNotice"
1143
1186
  },
1144
1187
  {
1145
- href: "https://www.iatiseguros.com/es/politica-de-cookies",
1188
+ href: "https://www.iatiseguros.com/politica-sobre-cookies/",
1146
1189
  label: "footer.cookiePolicy"
1147
1190
  },
1148
1191
  {
1149
- href: "https://www.iatiseguros.com/es/condiciones-generales",
1192
+ href: "https://cdn.sanity.io/files/mkg24y51/production/90f600a79a4cf7a4d2b16fdda161148cbc9b2ef9.pdf",
1150
1193
  label: "footer.generalTerms"
1151
1194
  },
1152
1195
  {
1153
- href: "https://www.iatiseguros.com/es/canal-etico",
1196
+ href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b",
1154
1197
  label: "footer.ethicsChannel"
1155
1198
  }
1156
1199
  ],
@@ -1162,15 +1205,32 @@ var es_default = {
1162
1205
  {
1163
1206
  label: "NIE",
1164
1207
  value: "nie"
1165
- },
1166
- {
1167
- label: "Pasaporte",
1168
- value: "passport"
1169
1208
  }
1170
1209
  ],
1210
+ documentTypeOptionsByOrigin: {
1211
+ local: [
1212
+ {
1213
+ label: "DNI",
1214
+ value: "nif"
1215
+ },
1216
+ {
1217
+ label: "NIE",
1218
+ value: "nie"
1219
+ }
1220
+ ],
1221
+ foreign: [
1222
+ {
1223
+ label: "Pasaporte",
1224
+ value: "passport"
1225
+ }
1226
+ ]
1227
+ },
1171
1228
  dateFormat: "dd/MM/yyyy",
1172
1229
  regionCode: "es-ES",
1173
- gtmId: "GTM-TZF83VD",
1230
+ gtmId: {
1231
+ staging: "GTM-NQL3P8B",
1232
+ production: "GTM-TZF83VD"
1233
+ },
1174
1234
  paymentCardTypes: [
1175
1235
  {
1176
1236
  id: 1,
@@ -1291,7 +1351,7 @@ var it_default = {
1291
1351
  label: "footer.cookiePolicy"
1292
1352
  },
1293
1353
  {
1294
- href: "https://www.iatiassicurazioni.it/CONDIZIONI-GENERALI/",
1354
+ href: "https://www.iatiassicurazioni.it/condizioni-generali/",
1295
1355
  label: "footer.generalTerms"
1296
1356
  }
1297
1357
  ],
@@ -1303,7 +1363,10 @@ var it_default = {
1303
1363
  ],
1304
1364
  dateFormat: "dd/MM/yyyy",
1305
1365
  regionCode: "it-IT",
1306
- gtmId: "GTM-WL7HZFZF",
1366
+ gtmId: {
1367
+ staging: "GTM-WL7HZFZF",
1368
+ production: "GTM-WL7HZFZF"
1369
+ },
1307
1370
  paymentCardTypes: [
1308
1371
  {
1309
1372
  id: 1,
@@ -1453,8 +1516,12 @@ var pt_default = {
1453
1516
  ]
1454
1517
  },
1455
1518
  dateFormat: "dd/MM/yyyy",
1519
+ postalCodeFormat: "dddd-ddd",
1456
1520
  regionCode: "pt-PT",
1457
- gtmId: "GTM-MWBFX7X",
1521
+ gtmId: {
1522
+ staging: "GTM-MWBFX7X",
1523
+ production: "GTM-MWBFX7X"
1524
+ },
1458
1525
  paymentCardTypes: [
1459
1526
  {
1460
1527
  id: 1,