regions-config 1.0.6 → 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,31 +212,28 @@ 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,
231
238
  156,
232
239
  157,
@@ -237,27 +244,30 @@ var WORLD_COUNTRIES = [
237
244
  165,
238
245
  166,
239
246
  167,
247
+ 168,
240
248
  169,
241
249
  170,
250
+ 171,
251
+ 172,
242
252
  173,
243
253
  175,
244
254
  176,
245
255
  177,
256
+ 178,
257
+ 180,
246
258
  181,
247
- 183,
259
+ 184,
260
+ 185,
248
261
  186,
249
262
  187,
250
263
  188,
251
- 191,
252
264
  192,
265
+ 194,
253
266
  197,
254
267
  198,
255
- 268,
256
268
  199,
269
+ 201,
257
270
  203,
258
- 204,
259
- 205,
260
- 271,
261
271
  206,
262
272
  208,
263
273
  209,
@@ -268,6 +278,9 @@ var WORLD_COUNTRIES = [
268
278
  214,
269
279
  215,
270
280
  216,
281
+ 218,
282
+ 219,
283
+ 220,
271
284
  221,
272
285
  222,
273
286
  223,
@@ -279,7 +292,6 @@ var WORLD_COUNTRIES = [
279
292
  231,
280
293
  232,
281
294
  233,
282
- 55,
283
295
  234,
284
296
  235,
285
297
  236,
@@ -294,17 +306,31 @@ var WORLD_COUNTRIES = [
294
306
  248,
295
307
  249,
296
308
  250,
309
+ 251,
297
310
  252,
311
+ 253,
312
+ 255,
298
313
  256,
299
314
  257,
300
- 258
315
+ 258,
316
+ 263,
317
+ 265,
318
+ 266,
319
+ 267,
320
+ 268,
321
+ 269,
322
+ 270,
323
+ 271
301
324
  ];
302
325
 
303
326
  // src/domain/RegionConfigSchema.ts
304
327
  var import_zod = require("zod");
305
- var RegionConfigSchema = import_zod.z.object({
328
+ var RegionConfigSchema = import_zod.z.strictObject({
306
329
  id: import_zod.z.number(),
307
- 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
+ }),
308
334
  countriesToRedirect: import_zod.z.record(
309
335
  import_zod.z.string(),
310
336
  import_zod.z.object({
@@ -318,8 +344,8 @@ var RegionConfigSchema = import_zod.z.object({
318
344
  })
319
345
  ).optional(),
320
346
  regionUrls: import_zod.z.object({
321
- staging: import_zod.z.string().url(),
322
- production: import_zod.z.string().url()
347
+ staging: import_zod.z.url(),
348
+ production: import_zod.z.url()
323
349
  }).optional(),
324
350
  timeZone: import_zod.z.string(),
325
351
  regionsToGroup: import_zod.z.array(
@@ -331,7 +357,7 @@ var RegionConfigSchema = import_zod.z.object({
331
357
  ).optional(),
332
358
  footer: import_zod.z.array(
333
359
  import_zod.z.object({
334
- href: import_zod.z.string().url(),
360
+ href: import_zod.z.url(),
335
361
  label: import_zod.z.string()
336
362
  })
337
363
  ),
@@ -346,6 +372,7 @@ var RegionConfigSchema = import_zod.z.object({
346
372
  foreign: import_zod.z.array(import_zod.z.object({ label: import_zod.z.string(), value: import_zod.z.string() }))
347
373
  }).optional(),
348
374
  dateFormat: import_zod.z.string(),
375
+ postalCodeFormat: import_zod.z.string().optional(),
349
376
  regionCode: import_zod.z.enum(["es-ES", "es-MX", "en-EU", "en-ROW", "it-IT", "pt-PT", "es-CO", "es-PE"]),
350
377
  paymentCardTypes: import_zod.z.array(
351
378
  import_zod.z.object({
@@ -355,7 +382,7 @@ var RegionConfigSchema = import_zod.z.object({
355
382
  })
356
383
  ),
357
384
  webSitePath: import_zod.z.string().optional()
358
- }).strict();
385
+ });
359
386
 
360
387
  // src/regions/index.ts
361
388
  var regions_exports = {};
@@ -472,7 +499,10 @@ var comco_default = {
472
499
  ],
473
500
  dateFormat: "dd/MM/yyyy",
474
501
  regionCode: "es-CO",
475
- gtmId: "GTM-MWBFQB27",
502
+ gtmId: {
503
+ staging: "GTM-MWBFQB27",
504
+ production: "GTM-MWBFQB27"
505
+ },
476
506
  paymentCardTypes: [
477
507
  {
478
508
  id: 1,
@@ -632,7 +662,10 @@ var comen_default = {
632
662
  ],
633
663
  dateFormat: "dd/MM/yyyy",
634
664
  regionCode: "en-ROW",
635
- gtmId: "GTM-NZVPZBPD",
665
+ gtmId: {
666
+ staging: "GTM-NZVPZBPD",
667
+ production: "GTM-NZVPZBPD"
668
+ },
636
669
  paymentCardTypes: [
637
670
  {
638
671
  id: 1,
@@ -779,7 +812,10 @@ var comeneu_default = {
779
812
  ],
780
813
  dateFormat: "dd/MM/yyyy",
781
814
  regionCode: "en-EU",
782
- gtmId: "GTM-WMGW2FPD",
815
+ gtmId: {
816
+ staging: "GTM-WMGW2FPD",
817
+ production: "GTM-WMGW2FPD"
818
+ },
783
819
  paymentCardTypes: [
784
820
  {
785
821
  id: 1,
@@ -917,7 +953,10 @@ var commx_default = {
917
953
  ],
918
954
  dateFormat: "dd/MM/yyyy",
919
955
  regionCode: "es-MX",
920
- gtmId: "GTM-T2RSHCJ9",
956
+ gtmId: {
957
+ staging: "GTM-T2RSHCJ9",
958
+ production: "GTM-T2RSHCJ9"
959
+ },
921
960
  paymentCardTypes: [
922
961
  {
923
962
  id: 1,
@@ -1040,7 +1079,10 @@ var compe_default = {
1040
1079
  ],
1041
1080
  dateFormat: "dd/MM/yyyy",
1042
1081
  regionCode: "es-PE",
1043
- gtmId: "GTM-KLWFKMS7",
1082
+ gtmId: {
1083
+ staging: "GTM-KLWFKMS7",
1084
+ production: "GTM-KLWFKMS7"
1085
+ },
1044
1086
  paymentCardTypes: [
1045
1087
  {
1046
1088
  id: 1,
@@ -1139,7 +1181,7 @@ var es_default = {
1139
1181
  label: "footer.privacyPolicy"
1140
1182
  },
1141
1183
  {
1142
- href: "https://cdn.sanity.io/files/mkg24y51/production/6cf27e486003beb3123d4805b3004799a2f8f6e5.pdf",
1184
+ href: "https://static.iatiseguros.com/es/documentos/Aviso+legal.pdf",
1143
1185
  label: "footer.legalNotice"
1144
1186
  },
1145
1187
  {
@@ -1163,15 +1205,32 @@ var es_default = {
1163
1205
  {
1164
1206
  label: "NIE",
1165
1207
  value: "nie"
1166
- },
1167
- {
1168
- label: "Pasaporte",
1169
- value: "passport"
1170
1208
  }
1171
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
+ },
1172
1228
  dateFormat: "dd/MM/yyyy",
1173
1229
  regionCode: "es-ES",
1174
- gtmId: "GTM-TZF83VD",
1230
+ gtmId: {
1231
+ staging: "GTM-NQL3P8B",
1232
+ production: "GTM-TZF83VD"
1233
+ },
1175
1234
  paymentCardTypes: [
1176
1235
  {
1177
1236
  id: 1,
@@ -1292,7 +1351,7 @@ var it_default = {
1292
1351
  label: "footer.cookiePolicy"
1293
1352
  },
1294
1353
  {
1295
- href: "https://www.iatiassicurazioni.it/CONDIZIONI-GENERALI/",
1354
+ href: "https://www.iatiassicurazioni.it/condizioni-generali/",
1296
1355
  label: "footer.generalTerms"
1297
1356
  }
1298
1357
  ],
@@ -1304,7 +1363,10 @@ var it_default = {
1304
1363
  ],
1305
1364
  dateFormat: "dd/MM/yyyy",
1306
1365
  regionCode: "it-IT",
1307
- gtmId: "GTM-WL7HZFZF",
1366
+ gtmId: {
1367
+ staging: "GTM-WL7HZFZF",
1368
+ production: "GTM-WL7HZFZF"
1369
+ },
1308
1370
  paymentCardTypes: [
1309
1371
  {
1310
1372
  id: 1,
@@ -1454,8 +1516,12 @@ var pt_default = {
1454
1516
  ]
1455
1517
  },
1456
1518
  dateFormat: "dd/MM/yyyy",
1519
+ postalCodeFormat: "dddd-ddd",
1457
1520
  regionCode: "pt-PT",
1458
- gtmId: "GTM-MWBFX7X",
1521
+ gtmId: {
1522
+ staging: "GTM-MWBFX7X",
1523
+ production: "GTM-MWBFX7X"
1524
+ },
1459
1525
  paymentCardTypes: [
1460
1526
  {
1461
1527
  id: 1,