regions-config 1.0.7 → 1.2.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/dist/index.d.mts CHANGED
@@ -1,11 +1,1167 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const GROUP_REGIONS: Record<string, number>;
4
- declare const EUROPE_COUNTRIES: number[];
5
- declare const US_CANADA_JAPAN_COUNTRIES: number[];
6
- declare const US_CANADA_COUNTRIES: number[];
7
- declare const WORLD_COUNTRIES: number[];
3
+ declare const regions: {
4
+ readonly comco: {
5
+ readonly id: 9;
6
+ readonly name: "colombia";
7
+ readonly countryCode: "CO";
8
+ readonly defaultCurrency: "USD";
9
+ readonly marketRegion: "latam";
10
+ readonly emoji: "🇨🇴";
11
+ readonly countriesToRedirect: {
12
+ [k: string]: {
13
+ readonly label: "Spain";
14
+ readonly countries: readonly [{
15
+ readonly countryId: "1";
16
+ readonly name: "España";
17
+ }];
18
+ } | {
19
+ readonly label: "Portugal";
20
+ readonly countries: readonly [{
21
+ readonly countryId: "190";
22
+ readonly name: "Portugal";
23
+ }, {
24
+ readonly countryId: "7";
25
+ readonly name: "Angola";
26
+ }, {
27
+ readonly countryId: "36";
28
+ readonly name: "Brasil";
29
+ }, {
30
+ readonly countryId: "42";
31
+ readonly name: "Cabo Verde";
32
+ }, {
33
+ readonly countryId: "93";
34
+ readonly name: "Guiné-Bissau";
35
+ }, {
36
+ readonly countryId: "92";
37
+ readonly name: "Guiné Equatorial";
38
+ }, {
39
+ readonly countryId: "165";
40
+ readonly name: "Moçambique";
41
+ }, {
42
+ readonly countryId: "212";
43
+ readonly name: "São Tomé e Príncipe";
44
+ }];
45
+ } | {
46
+ readonly label: "Italy";
47
+ readonly countries: readonly [{
48
+ readonly countryId: "124";
49
+ readonly name: "Italia";
50
+ }];
51
+ } | {
52
+ readonly label: "Colombia";
53
+ readonly countries: readonly [{
54
+ readonly countryId: "52";
55
+ readonly name: "Colombia";
56
+ }];
57
+ } | {
58
+ readonly label: "Mexico";
59
+ readonly countries: readonly [{
60
+ readonly countryId: "158";
61
+ readonly name: "México";
62
+ }];
63
+ } | {
64
+ readonly label: "Peru";
65
+ readonly countries: readonly [{
66
+ readonly countryId: "187";
67
+ readonly name: "Perú";
68
+ }];
69
+ };
70
+ };
71
+ readonly regionUrls: {
72
+ readonly staging: "https://iatiglobal.iatidev.link/co/";
73
+ readonly production: "https://www.iatiglobal.com/co/";
74
+ };
75
+ readonly timeZone: "America/Bogota";
76
+ readonly regionsToGroup: readonly [{
77
+ readonly priority: "high";
78
+ readonly countries: number[];
79
+ readonly regionId: number;
80
+ }, {
81
+ readonly priority: "medium";
82
+ readonly countries: number[];
83
+ readonly regionId: number;
84
+ }, {
85
+ readonly priority: "low";
86
+ readonly countries: number[];
87
+ readonly regionId: number;
88
+ }];
89
+ readonly footer: readonly [{
90
+ readonly href: "https://www.iatiglobal.com/co/politica-de-privacidad/";
91
+ readonly label: "footer.privacyPolicy";
92
+ }, {
93
+ readonly href: "https://www.iatiglobal.com/co/aviso-legal/";
94
+ readonly label: "footer.legalNotice";
95
+ }, {
96
+ readonly href: "https://www.iatiglobal.com/co/politica-de-cookies/";
97
+ readonly label: "footer.cookiePolicy";
98
+ }, {
99
+ readonly href: "https://www.iatiglobal.com/co/condiciones-generales/";
100
+ readonly label: "footer.generalTerms";
101
+ }, {
102
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
103
+ readonly label: "footer.ethicsChannel";
104
+ }];
105
+ readonly documentTypeOptions: readonly [{
106
+ readonly label: "Pasaporte";
107
+ readonly value: "passport";
108
+ }];
109
+ readonly dateFormat: "dd/MM/yyyy";
110
+ readonly regionCode: "es-CO";
111
+ readonly gtmId: {
112
+ readonly staging: "GTM-MWBFQB27";
113
+ readonly production: "GTM-MWBFQB27";
114
+ };
115
+ readonly paymentCardTypes: readonly [{
116
+ readonly id: 1;
117
+ readonly name: "Visa";
118
+ readonly imagePath: "/assets/images/payments/visa.svg";
119
+ }, {
120
+ readonly id: 2;
121
+ readonly name: "Mastercard";
122
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
123
+ }, {
124
+ readonly id: 3;
125
+ readonly name: "Maestro";
126
+ readonly imagePath: "/assets/images/payments/maestro.svg";
127
+ }];
128
+ readonly webSitePath: "/co";
129
+ };
130
+ readonly comen: {
131
+ readonly id: 5;
132
+ readonly name: "world";
133
+ readonly countryCode: "WR";
134
+ readonly defaultCurrency: "EUR";
135
+ readonly marketRegion: "world";
136
+ readonly emoji: "🌐";
137
+ readonly countriesToRedirect: {
138
+ [k: string]: {
139
+ readonly label: "Spain";
140
+ readonly countries: readonly [{
141
+ readonly countryId: "1";
142
+ readonly name: "España";
143
+ }];
144
+ } | {
145
+ readonly label: "Portugal";
146
+ readonly countries: readonly [{
147
+ readonly countryId: "190";
148
+ readonly name: "Portugal";
149
+ }, {
150
+ readonly countryId: "7";
151
+ readonly name: "Angola";
152
+ }, {
153
+ readonly countryId: "36";
154
+ readonly name: "Brasil";
155
+ }, {
156
+ readonly countryId: "42";
157
+ readonly name: "Cabo Verde";
158
+ }, {
159
+ readonly countryId: "93";
160
+ readonly name: "Guiné-Bissau";
161
+ }, {
162
+ readonly countryId: "92";
163
+ readonly name: "Guiné Equatorial";
164
+ }, {
165
+ readonly countryId: "165";
166
+ readonly name: "Moçambique";
167
+ }, {
168
+ readonly countryId: "212";
169
+ readonly name: "São Tomé e Príncipe";
170
+ }];
171
+ } | {
172
+ readonly label: "Italy";
173
+ readonly countries: readonly [{
174
+ readonly countryId: "124";
175
+ readonly name: "Italia";
176
+ }];
177
+ } | {
178
+ readonly label: "Colombia";
179
+ readonly countries: readonly [{
180
+ readonly countryId: "52";
181
+ readonly name: "Colombia";
182
+ }];
183
+ } | {
184
+ readonly label: "Mexico";
185
+ readonly countries: readonly [{
186
+ readonly countryId: "158";
187
+ readonly name: "México";
188
+ }];
189
+ } | {
190
+ readonly label: "Peru";
191
+ readonly countries: readonly [{
192
+ readonly countryId: "187";
193
+ readonly name: "Perú";
194
+ }];
195
+ };
196
+ };
197
+ readonly regionUrls: {
198
+ readonly staging: "https://stg.iatiglobal.com/en/";
199
+ readonly production: "https://www.iatiglobal.com/en/";
200
+ };
201
+ readonly timeZone: "Europe/Madrid";
202
+ readonly regionsToGroup: readonly [{
203
+ readonly priority: "high";
204
+ readonly countries: number[];
205
+ readonly regionId: number;
206
+ }, {
207
+ readonly priority: "medium";
208
+ readonly countries: number[];
209
+ readonly regionId: number;
210
+ }, {
211
+ readonly priority: "low";
212
+ readonly countries: number[];
213
+ readonly regionId: number;
214
+ }];
215
+ readonly footer: readonly [{
216
+ readonly href: "https://www.iatiglobal.com/en/privacy-policy/";
217
+ readonly label: "footer.privacyPolicy";
218
+ }, {
219
+ readonly href: "https://www.iatiglobal.com/en/legal-disclaimer/";
220
+ readonly label: "footer.legalNotice";
221
+ }, {
222
+ readonly href: "https://www.iatiglobal.com/en/cookies-policy/";
223
+ readonly label: "footer.cookiePolicy";
224
+ }, {
225
+ readonly href: "https://www.iatiglobal.com/en/terms-and-conditons/";
226
+ readonly label: "footer.generalTerms";
227
+ }, {
228
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
229
+ readonly label: "footer.ethicsChannel";
230
+ }];
231
+ readonly documentTypeOptions: readonly [{
232
+ readonly label: "Passport";
233
+ readonly value: "passport";
234
+ }];
235
+ readonly dateFormat: "dd/MM/yyyy";
236
+ readonly regionCode: "en-ROW";
237
+ readonly gtmId: {
238
+ readonly staging: "GTM-NZVPZBPD";
239
+ readonly production: "GTM-NZVPZBPD";
240
+ };
241
+ readonly paymentCardTypes: readonly [{
242
+ readonly id: 1;
243
+ readonly name: "Visa";
244
+ readonly imagePath: "/assets/images/payments/visa.svg";
245
+ }, {
246
+ readonly id: 2;
247
+ readonly name: "Mastercard";
248
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
249
+ }, {
250
+ readonly id: 3;
251
+ readonly name: "Maestro";
252
+ readonly imagePath: "/assets/images/payments/maestro.svg";
253
+ }, {
254
+ readonly id: 4;
255
+ readonly name: "American Express";
256
+ readonly imagePath: "/assets/images/payments/american-express.svg";
257
+ }, {
258
+ readonly id: 5;
259
+ readonly name: "JCB";
260
+ readonly imagePath: "/assets/images/payments/jcb.svg";
261
+ }, {
262
+ readonly id: 6;
263
+ readonly name: "Diners Club";
264
+ readonly imagePath: "/assets/images/payments/diners-club.svg";
265
+ }];
266
+ readonly webSitePath: "/en";
267
+ };
268
+ readonly comeneu: {
269
+ readonly id: 6;
270
+ readonly name: "europe";
271
+ readonly countryCode: "EU";
272
+ readonly defaultCurrency: "EUR";
273
+ readonly marketRegion: "europe";
274
+ readonly emoji: "🇪🇺";
275
+ readonly countriesToRedirect: {
276
+ [k: string]: {
277
+ readonly label: "Spain";
278
+ readonly countries: readonly [{
279
+ readonly countryId: "1";
280
+ readonly name: "España";
281
+ }];
282
+ } | {
283
+ readonly label: "Portugal";
284
+ readonly countries: readonly [{
285
+ readonly countryId: "190";
286
+ readonly name: "Portugal";
287
+ }, {
288
+ readonly countryId: "7";
289
+ readonly name: "Angola";
290
+ }, {
291
+ readonly countryId: "36";
292
+ readonly name: "Brasil";
293
+ }, {
294
+ readonly countryId: "42";
295
+ readonly name: "Cabo Verde";
296
+ }, {
297
+ readonly countryId: "93";
298
+ readonly name: "Guiné-Bissau";
299
+ }, {
300
+ readonly countryId: "92";
301
+ readonly name: "Guiné Equatorial";
302
+ }, {
303
+ readonly countryId: "165";
304
+ readonly name: "Moçambique";
305
+ }, {
306
+ readonly countryId: "212";
307
+ readonly name: "São Tomé e Príncipe";
308
+ }];
309
+ } | {
310
+ readonly label: "Italy";
311
+ readonly countries: readonly [{
312
+ readonly countryId: "124";
313
+ readonly name: "Italia";
314
+ }];
315
+ } | {
316
+ readonly label: "Colombia";
317
+ readonly countries: readonly [{
318
+ readonly countryId: "52";
319
+ readonly name: "Colombia";
320
+ }];
321
+ } | {
322
+ readonly label: "Mexico";
323
+ readonly countries: readonly [{
324
+ readonly countryId: "158";
325
+ readonly name: "México";
326
+ }];
327
+ } | {
328
+ readonly label: "Peru";
329
+ readonly countries: readonly [{
330
+ readonly countryId: "187";
331
+ readonly name: "Perú";
332
+ }];
333
+ };
334
+ };
335
+ readonly regionUrls: {
336
+ readonly staging: "https://stg.iatiglobal.com/en-eu/";
337
+ readonly production: "https://www.iatiglobal.com/en-eu/";
338
+ };
339
+ readonly timeZone: "Europe/Madrid";
340
+ readonly regionsToGroup: readonly [{
341
+ readonly priority: "high";
342
+ readonly countries: number[];
343
+ readonly regionId: number;
344
+ }, {
345
+ readonly priority: "medium";
346
+ readonly countries: number[];
347
+ readonly regionId: number;
348
+ }, {
349
+ readonly priority: "low";
350
+ readonly countries: number[];
351
+ readonly regionId: number;
352
+ }];
353
+ readonly footer: readonly [{
354
+ readonly href: "https://www.iatiglobal.com/en-eu/privacy-policy/";
355
+ readonly label: "footer.privacyPolicy";
356
+ }, {
357
+ readonly href: "https://www.iatiglobal.com/en-eu/legal-disclaimer/";
358
+ readonly label: "footer.legalNotice";
359
+ }, {
360
+ readonly href: "https://www.iatiglobal.com/en-eu/cookies-policy/";
361
+ readonly label: "footer.cookiePolicy";
362
+ }, {
363
+ readonly href: "https://www.iatiglobal.com/en-eu/terms-and-conditons/";
364
+ readonly label: "footer.generalTerms";
365
+ }, {
366
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
367
+ readonly label: "footer.ethicsChannel";
368
+ }];
369
+ readonly documentTypeOptions: readonly [{
370
+ readonly label: "Passport";
371
+ readonly value: "passport";
372
+ }];
373
+ readonly dateFormat: "dd/MM/yyyy";
374
+ readonly regionCode: "en-EU";
375
+ readonly gtmId: {
376
+ readonly staging: "GTM-WMGW2FPD";
377
+ readonly production: "GTM-WMGW2FPD";
378
+ };
379
+ readonly paymentCardTypes: readonly [{
380
+ readonly id: 1;
381
+ readonly name: "Visa";
382
+ readonly imagePath: "/assets/images/payments/visa.svg";
383
+ }, {
384
+ readonly id: 2;
385
+ readonly name: "Mastercard";
386
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
387
+ }, {
388
+ readonly id: 3;
389
+ readonly name: "Maestro";
390
+ readonly imagePath: "/assets/images/payments/maestro.svg";
391
+ }, {
392
+ readonly id: 4;
393
+ readonly name: "American Express";
394
+ readonly imagePath: "/assets/images/payments/american-express.svg";
395
+ }, {
396
+ readonly id: 5;
397
+ readonly name: "JCB";
398
+ readonly imagePath: "/assets/images/payments/jcb.svg";
399
+ }, {
400
+ readonly id: 6;
401
+ readonly name: "Diners Club";
402
+ readonly imagePath: "/assets/images/payments/diners-club.svg";
403
+ }];
404
+ readonly webSitePath: "/en-eu";
405
+ };
406
+ readonly commx: {
407
+ readonly id: 7;
408
+ readonly name: "mexico";
409
+ readonly countryCode: "MX";
410
+ readonly defaultCurrency: "USD";
411
+ readonly marketRegion: "latam";
412
+ readonly emoji: "🇲🇽";
413
+ readonly countriesToRedirect: {
414
+ [k: string]: {
415
+ readonly label: "Spain";
416
+ readonly countries: readonly [{
417
+ readonly countryId: "1";
418
+ readonly name: "España";
419
+ }];
420
+ } | {
421
+ readonly label: "Portugal";
422
+ readonly countries: readonly [{
423
+ readonly countryId: "190";
424
+ readonly name: "Portugal";
425
+ }, {
426
+ readonly countryId: "7";
427
+ readonly name: "Angola";
428
+ }, {
429
+ readonly countryId: "36";
430
+ readonly name: "Brasil";
431
+ }, {
432
+ readonly countryId: "42";
433
+ readonly name: "Cabo Verde";
434
+ }, {
435
+ readonly countryId: "93";
436
+ readonly name: "Guiné-Bissau";
437
+ }, {
438
+ readonly countryId: "92";
439
+ readonly name: "Guiné Equatorial";
440
+ }, {
441
+ readonly countryId: "165";
442
+ readonly name: "Moçambique";
443
+ }, {
444
+ readonly countryId: "212";
445
+ readonly name: "São Tomé e Príncipe";
446
+ }];
447
+ } | {
448
+ readonly label: "Italy";
449
+ readonly countries: readonly [{
450
+ readonly countryId: "124";
451
+ readonly name: "Italia";
452
+ }];
453
+ } | {
454
+ readonly label: "Colombia";
455
+ readonly countries: readonly [{
456
+ readonly countryId: "52";
457
+ readonly name: "Colombia";
458
+ }];
459
+ } | {
460
+ readonly label: "Mexico";
461
+ readonly countries: readonly [{
462
+ readonly countryId: "158";
463
+ readonly name: "México";
464
+ }];
465
+ } | {
466
+ readonly label: "Peru";
467
+ readonly countries: readonly [{
468
+ readonly countryId: "187";
469
+ readonly name: "Perú";
470
+ }];
471
+ };
472
+ };
473
+ readonly regionUrls: {
474
+ readonly staging: "https://stg.iatiglobal.com/mx/";
475
+ readonly production: "https://www.iatiglobal.com/mx/";
476
+ };
477
+ readonly timeZone: "America/Mexico_City";
478
+ readonly regionsToGroup: readonly [{
479
+ readonly priority: "high";
480
+ readonly countries: number[];
481
+ readonly regionId: number;
482
+ }, {
483
+ readonly priority: "medium";
484
+ readonly countries: number[];
485
+ readonly regionId: number;
486
+ }, {
487
+ readonly priority: "low";
488
+ readonly countries: number[];
489
+ readonly regionId: number;
490
+ }];
491
+ readonly footer: readonly [{
492
+ readonly href: "https://www.iatiglobal.com/mx/politica-de-privacidad";
493
+ readonly label: "footer.privacyPolicy";
494
+ }, {
495
+ readonly href: "https://www.iatiglobal.com/mx/aviso-legal/";
496
+ readonly label: "footer.legalNotice";
497
+ }, {
498
+ readonly href: "https://www.iatiglobal.com/mx/politica-de-cookies";
499
+ readonly label: "footer.cookiePolicy";
500
+ }, {
501
+ readonly href: "https://www.iatiglobal.com/mx/condiciones-generales/";
502
+ readonly label: "footer.generalTerms";
503
+ }, {
504
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
505
+ readonly label: "footer.ethicsChannel";
506
+ }];
507
+ readonly documentTypeOptions: readonly [{
508
+ readonly label: "Pasaporte";
509
+ readonly value: "passport";
510
+ }];
511
+ readonly dateFormat: "dd/MM/yyyy";
512
+ readonly regionCode: "es-MX";
513
+ readonly gtmId: {
514
+ readonly staging: "GTM-T2RSHCJ9";
515
+ readonly production: "GTM-T2RSHCJ9";
516
+ };
517
+ readonly paymentCardTypes: readonly [{
518
+ readonly id: 1;
519
+ readonly name: "Visa";
520
+ readonly imagePath: "/assets/images/payments/visa.svg";
521
+ }, {
522
+ readonly id: 2;
523
+ readonly name: "Mastercard";
524
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
525
+ }, {
526
+ readonly id: 3;
527
+ readonly name: "Maestro";
528
+ readonly imagePath: "/assets/images/payments/maestro.svg";
529
+ }];
530
+ readonly webSitePath: "/mx";
531
+ };
532
+ readonly compe: {
533
+ readonly id: 8;
534
+ readonly name: "peru";
535
+ readonly countryCode: "PE";
536
+ readonly defaultCurrency: "USD";
537
+ readonly marketRegion: "latam";
538
+ readonly emoji: "🇵🇪";
539
+ readonly countriesToRedirect: {
540
+ [k: string]: {
541
+ readonly label: "Spain";
542
+ readonly countries: readonly [{
543
+ readonly countryId: "1";
544
+ readonly name: "España";
545
+ }];
546
+ } | {
547
+ readonly label: "Portugal";
548
+ readonly countries: readonly [{
549
+ readonly countryId: "190";
550
+ readonly name: "Portugal";
551
+ }, {
552
+ readonly countryId: "7";
553
+ readonly name: "Angola";
554
+ }, {
555
+ readonly countryId: "36";
556
+ readonly name: "Brasil";
557
+ }, {
558
+ readonly countryId: "42";
559
+ readonly name: "Cabo Verde";
560
+ }, {
561
+ readonly countryId: "93";
562
+ readonly name: "Guiné-Bissau";
563
+ }, {
564
+ readonly countryId: "92";
565
+ readonly name: "Guiné Equatorial";
566
+ }, {
567
+ readonly countryId: "165";
568
+ readonly name: "Moçambique";
569
+ }, {
570
+ readonly countryId: "212";
571
+ readonly name: "São Tomé e Príncipe";
572
+ }];
573
+ } | {
574
+ readonly label: "Italy";
575
+ readonly countries: readonly [{
576
+ readonly countryId: "124";
577
+ readonly name: "Italia";
578
+ }];
579
+ } | {
580
+ readonly label: "Colombia";
581
+ readonly countries: readonly [{
582
+ readonly countryId: "52";
583
+ readonly name: "Colombia";
584
+ }];
585
+ } | {
586
+ readonly label: "Mexico";
587
+ readonly countries: readonly [{
588
+ readonly countryId: "158";
589
+ readonly name: "México";
590
+ }];
591
+ } | {
592
+ readonly label: "Peru";
593
+ readonly countries: readonly [{
594
+ readonly countryId: "187";
595
+ readonly name: "Perú";
596
+ }];
597
+ };
598
+ };
599
+ readonly regionUrls: {
600
+ readonly staging: "https://stg.iatiglobal.com/pe/";
601
+ readonly production: "https://www.iatiglobal.com/pe/";
602
+ };
603
+ readonly timeZone: "America/Lima";
604
+ readonly regionsToGroup: readonly [{
605
+ readonly priority: "high";
606
+ readonly countries: number[];
607
+ readonly regionId: number;
608
+ }, {
609
+ readonly priority: "medium";
610
+ readonly countries: number[];
611
+ readonly regionId: number;
612
+ }, {
613
+ readonly priority: "low";
614
+ readonly countries: number[];
615
+ readonly regionId: number;
616
+ }];
617
+ readonly footer: readonly [{
618
+ readonly href: "https://www.iatiglobal.com/pe/politica-de-privacidad";
619
+ readonly label: "footer.privacyPolicy";
620
+ }, {
621
+ readonly href: "https://www.iatiglobal.com/pe/aviso-legal/";
622
+ readonly label: "footer.legalNotice";
623
+ }, {
624
+ readonly href: "https://www.iatiglobal.com/pe/politica-de-cookies";
625
+ readonly label: "footer.cookiePolicy";
626
+ }, {
627
+ readonly href: "https://www.iatiglobal.com/pe/condiciones-generales/";
628
+ readonly label: "footer.generalTerms";
629
+ }, {
630
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
631
+ readonly label: "footer.ethicsChannel";
632
+ }];
633
+ readonly documentTypeOptions: readonly [{
634
+ readonly label: "Pasaporte";
635
+ readonly value: "passport";
636
+ }];
637
+ readonly dateFormat: "dd/MM/yyyy";
638
+ readonly regionCode: "es-PE";
639
+ readonly gtmId: {
640
+ readonly staging: "GTM-KLWFKMS7";
641
+ readonly production: "GTM-KLWFKMS7";
642
+ };
643
+ readonly paymentCardTypes: readonly [{
644
+ readonly id: 1;
645
+ readonly name: "Visa";
646
+ readonly imagePath: "/assets/images/payments/visa.svg";
647
+ }, {
648
+ readonly id: 2;
649
+ readonly name: "Mastercard";
650
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
651
+ }, {
652
+ readonly id: 3;
653
+ readonly name: "Maestro";
654
+ readonly imagePath: "/assets/images/payments/maestro.svg";
655
+ }];
656
+ readonly webSitePath: "/pe";
657
+ };
658
+ readonly es: {
659
+ readonly id: 1;
660
+ readonly name: "spain";
661
+ readonly countryCode: "ES";
662
+ readonly defaultCurrency: "EUR";
663
+ readonly marketRegion: "europe";
664
+ readonly emoji: "🇪🇸";
665
+ readonly countriesToRedirect: {
666
+ [k: string]: {
667
+ readonly label: "Spain";
668
+ readonly countries: readonly [{
669
+ readonly countryId: "1";
670
+ readonly name: "España";
671
+ }];
672
+ } | {
673
+ readonly label: "Portugal";
674
+ readonly countries: readonly [{
675
+ readonly countryId: "190";
676
+ readonly name: "Portugal";
677
+ }, {
678
+ readonly countryId: "7";
679
+ readonly name: "Angola";
680
+ }, {
681
+ readonly countryId: "36";
682
+ readonly name: "Brasil";
683
+ }, {
684
+ readonly countryId: "42";
685
+ readonly name: "Cabo Verde";
686
+ }, {
687
+ readonly countryId: "93";
688
+ readonly name: "Guiné-Bissau";
689
+ }, {
690
+ readonly countryId: "92";
691
+ readonly name: "Guiné Equatorial";
692
+ }, {
693
+ readonly countryId: "165";
694
+ readonly name: "Moçambique";
695
+ }, {
696
+ readonly countryId: "212";
697
+ readonly name: "São Tomé e Príncipe";
698
+ }];
699
+ } | {
700
+ readonly label: "Italy";
701
+ readonly countries: readonly [{
702
+ readonly countryId: "124";
703
+ readonly name: "Italia";
704
+ }];
705
+ } | {
706
+ readonly label: "Colombia";
707
+ readonly countries: readonly [{
708
+ readonly countryId: "52";
709
+ readonly name: "Colombia";
710
+ }];
711
+ } | {
712
+ readonly label: "Mexico";
713
+ readonly countries: readonly [{
714
+ readonly countryId: "158";
715
+ readonly name: "México";
716
+ }];
717
+ } | {
718
+ readonly label: "Peru";
719
+ readonly countries: readonly [{
720
+ readonly countryId: "187";
721
+ readonly name: "Perú";
722
+ }];
723
+ };
724
+ };
725
+ readonly regionUrls: {
726
+ readonly staging: "https://stg.iatiseguros.com";
727
+ readonly production: "https://www.iatiseguros.com";
728
+ };
729
+ readonly timeZone: "Europe/Madrid";
730
+ readonly regionsToGroup: readonly [{
731
+ readonly priority: "high";
732
+ readonly countries: number[];
733
+ readonly regionId: number;
734
+ }, {
735
+ readonly priority: "medium";
736
+ readonly countries: number[];
737
+ readonly regionId: number;
738
+ }, {
739
+ readonly priority: "low";
740
+ readonly countries: number[];
741
+ readonly regionId: number;
742
+ }];
743
+ readonly footer: readonly [{
744
+ readonly href: "https://cdn.sanity.io/files/mkg24y51/production/314ec4e7ac7172cc93af5559ce83dc2ca1097360.pdf";
745
+ readonly label: "footer.privacyPolicy";
746
+ }, {
747
+ readonly href: "https://static.iatiseguros.com/es/documentos/Aviso+legal.pdf";
748
+ readonly label: "footer.legalNotice";
749
+ }, {
750
+ readonly href: "https://www.iatiseguros.com/politica-sobre-cookies/";
751
+ readonly label: "footer.cookiePolicy";
752
+ }, {
753
+ readonly href: "https://cdn.sanity.io/files/mkg24y51/production/90f600a79a4cf7a4d2b16fdda161148cbc9b2ef9.pdf";
754
+ readonly label: "footer.generalTerms";
755
+ }, {
756
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b";
757
+ readonly label: "footer.ethicsChannel";
758
+ }];
759
+ readonly documentTypeOptions: readonly [{
760
+ readonly label: "DNI";
761
+ readonly value: "nif";
762
+ }, {
763
+ readonly label: "NIE";
764
+ readonly value: "nie";
765
+ }];
766
+ readonly documentTypeOptionsByOrigin: {
767
+ readonly local: readonly [{
768
+ readonly label: "DNI";
769
+ readonly value: "nif";
770
+ }, {
771
+ readonly label: "NIE";
772
+ readonly value: "nie";
773
+ }];
774
+ readonly foreign: readonly [{
775
+ readonly label: "Pasaporte";
776
+ readonly value: "passport";
777
+ }];
778
+ };
779
+ readonly dateFormat: "dd/MM/yyyy";
780
+ readonly regionCode: "es-ES";
781
+ readonly gtmId: {
782
+ readonly staging: "GTM-NQL3P8B";
783
+ readonly production: "GTM-TZF83VD";
784
+ };
785
+ readonly paymentCardTypes: readonly [{
786
+ readonly id: 1;
787
+ readonly name: "Visa";
788
+ readonly imagePath: "/assets/images/payments/visa.svg";
789
+ }, {
790
+ readonly id: 2;
791
+ readonly name: "Mastercard";
792
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
793
+ }, {
794
+ readonly id: 3;
795
+ readonly name: "Maestro";
796
+ readonly imagePath: "/assets/images/payments/maestro.svg";
797
+ }, {
798
+ readonly id: 4;
799
+ readonly name: "American Express";
800
+ readonly imagePath: "/assets/images/payments/american-express.svg";
801
+ }, {
802
+ readonly id: 5;
803
+ readonly name: "JCB";
804
+ readonly imagePath: "/assets/images/payments/jcb.svg";
805
+ }, {
806
+ readonly id: 6;
807
+ readonly name: "Diners Club";
808
+ readonly imagePath: "/assets/images/payments/diners-club.svg";
809
+ }];
810
+ };
811
+ readonly it: {
812
+ readonly id: 10;
813
+ readonly name: "italy";
814
+ readonly countryCode: "IT";
815
+ readonly defaultCurrency: "EUR";
816
+ readonly marketRegion: "europe";
817
+ readonly emoji: "🇮🇹";
818
+ readonly countriesToRedirect: {
819
+ [k: string]: {
820
+ readonly label: "Spain";
821
+ readonly countries: readonly [{
822
+ readonly countryId: "1";
823
+ readonly name: "España";
824
+ }];
825
+ } | {
826
+ readonly label: "Portugal";
827
+ readonly countries: readonly [{
828
+ readonly countryId: "190";
829
+ readonly name: "Portugal";
830
+ }, {
831
+ readonly countryId: "7";
832
+ readonly name: "Angola";
833
+ }, {
834
+ readonly countryId: "36";
835
+ readonly name: "Brasil";
836
+ }, {
837
+ readonly countryId: "42";
838
+ readonly name: "Cabo Verde";
839
+ }, {
840
+ readonly countryId: "93";
841
+ readonly name: "Guiné-Bissau";
842
+ }, {
843
+ readonly countryId: "92";
844
+ readonly name: "Guiné Equatorial";
845
+ }, {
846
+ readonly countryId: "165";
847
+ readonly name: "Moçambique";
848
+ }, {
849
+ readonly countryId: "212";
850
+ readonly name: "São Tomé e Príncipe";
851
+ }];
852
+ } | {
853
+ readonly label: "Italy";
854
+ readonly countries: readonly [{
855
+ readonly countryId: "124";
856
+ readonly name: "Italia";
857
+ }];
858
+ } | {
859
+ readonly label: "Colombia";
860
+ readonly countries: readonly [{
861
+ readonly countryId: "52";
862
+ readonly name: "Colombia";
863
+ }];
864
+ } | {
865
+ readonly label: "Mexico";
866
+ readonly countries: readonly [{
867
+ readonly countryId: "158";
868
+ readonly name: "México";
869
+ }];
870
+ } | {
871
+ readonly label: "Peru";
872
+ readonly countries: readonly [{
873
+ readonly countryId: "187";
874
+ readonly name: "Perú";
875
+ }];
876
+ };
877
+ };
878
+ readonly regionUrls: {
879
+ readonly staging: "https://stg.iatiassicurazioni.it";
880
+ readonly production: "https://www.iatiassicurazioni.it";
881
+ };
882
+ readonly timeZone: "Europe/Rome";
883
+ readonly regionsToGroup: readonly [{
884
+ readonly priority: "high";
885
+ readonly countries: number[];
886
+ readonly regionId: number;
887
+ }, {
888
+ readonly priority: "medium";
889
+ readonly countries: number[];
890
+ readonly regionId: number;
891
+ }, {
892
+ readonly priority: "low";
893
+ readonly countries: number[];
894
+ readonly regionId: number;
895
+ }];
896
+ readonly footer: readonly [{
897
+ readonly href: "https://www.iatiassicurazioni.it/privacy-sul-trattamento-di-dati-personali/";
898
+ readonly label: "footer.privacyPolicy";
899
+ }, {
900
+ readonly href: "https://www.iatiassicurazioni.it/note-legali/";
901
+ readonly label: "footer.legalNotice";
902
+ }, {
903
+ readonly href: "https://www.iatiassicurazioni.it/politica-sui-cookie/";
904
+ readonly label: "footer.cookiePolicy";
905
+ }, {
906
+ readonly href: "https://www.iatiassicurazioni.it/condizioni-generali/";
907
+ readonly label: "footer.generalTerms";
908
+ }];
909
+ readonly documentTypeOptions: readonly [{
910
+ readonly label: "Codice Fiscale";
911
+ readonly value: "fiscal_code";
912
+ }];
913
+ readonly dateFormat: "dd/MM/yyyy";
914
+ readonly regionCode: "it-IT";
915
+ readonly gtmId: {
916
+ readonly staging: "GTM-WL7HZFZF";
917
+ readonly production: "GTM-WL7HZFZF";
918
+ };
919
+ readonly paymentCardTypes: readonly [{
920
+ readonly id: 1;
921
+ readonly name: "Visa";
922
+ readonly imagePath: "/assets/images/payments/visa.svg";
923
+ }, {
924
+ readonly id: 2;
925
+ readonly name: "Mastercard";
926
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
927
+ }, {
928
+ readonly id: 3;
929
+ readonly name: "Maestro";
930
+ readonly imagePath: "/assets/images/payments/maestro.svg";
931
+ }, {
932
+ readonly id: 4;
933
+ readonly name: "American Express";
934
+ readonly imagePath: "/assets/images/payments/american-express.svg";
935
+ }, {
936
+ readonly id: 5;
937
+ readonly name: "JCB";
938
+ readonly imagePath: "/assets/images/payments/jcb.svg";
939
+ }, {
940
+ readonly id: 6;
941
+ readonly name: "Diners Club";
942
+ readonly imagePath: "/assets/images/payments/diners-club.svg";
943
+ }];
944
+ };
945
+ readonly pt: {
946
+ readonly id: 2;
947
+ readonly name: "portugal";
948
+ readonly countryCode: "PT";
949
+ readonly defaultCurrency: "EUR";
950
+ readonly marketRegion: "europe";
951
+ readonly emoji: "🇵🇹";
952
+ readonly countriesToRedirect: {
953
+ [k: string]: {
954
+ readonly label: "Spain";
955
+ readonly countries: readonly [{
956
+ readonly countryId: "1";
957
+ readonly name: "España";
958
+ }];
959
+ } | {
960
+ readonly label: "Portugal";
961
+ readonly countries: readonly [{
962
+ readonly countryId: "190";
963
+ readonly name: "Portugal";
964
+ }, {
965
+ readonly countryId: "7";
966
+ readonly name: "Angola";
967
+ }, {
968
+ readonly countryId: "36";
969
+ readonly name: "Brasil";
970
+ }, {
971
+ readonly countryId: "42";
972
+ readonly name: "Cabo Verde";
973
+ }, {
974
+ readonly countryId: "93";
975
+ readonly name: "Guiné-Bissau";
976
+ }, {
977
+ readonly countryId: "92";
978
+ readonly name: "Guiné Equatorial";
979
+ }, {
980
+ readonly countryId: "165";
981
+ readonly name: "Moçambique";
982
+ }, {
983
+ readonly countryId: "212";
984
+ readonly name: "São Tomé e Príncipe";
985
+ }];
986
+ } | {
987
+ readonly label: "Italy";
988
+ readonly countries: readonly [{
989
+ readonly countryId: "124";
990
+ readonly name: "Italia";
991
+ }];
992
+ } | {
993
+ readonly label: "Colombia";
994
+ readonly countries: readonly [{
995
+ readonly countryId: "52";
996
+ readonly name: "Colombia";
997
+ }];
998
+ } | {
999
+ readonly label: "Mexico";
1000
+ readonly countries: readonly [{
1001
+ readonly countryId: "158";
1002
+ readonly name: "México";
1003
+ }];
1004
+ } | {
1005
+ readonly label: "Peru";
1006
+ readonly countries: readonly [{
1007
+ readonly countryId: "187";
1008
+ readonly name: "Perú";
1009
+ }];
1010
+ };
1011
+ };
1012
+ readonly regionUrls: {
1013
+ readonly staging: "https://stg.iatiseguros.pt";
1014
+ readonly production: "https://www.iatiseguros.pt";
1015
+ };
1016
+ readonly timeZone: "Europe/Lisbon";
1017
+ readonly regionsToGroup: readonly [{
1018
+ readonly priority: "high";
1019
+ readonly countries: number[];
1020
+ readonly regionId: number;
1021
+ }, {
1022
+ readonly priority: "medium";
1023
+ readonly countries: number[];
1024
+ readonly regionId: number;
1025
+ }, {
1026
+ readonly priority: "low";
1027
+ readonly countries: number[];
1028
+ readonly regionId: number;
1029
+ }];
1030
+ readonly footer: readonly [{
1031
+ readonly href: "https://static.iatiseguros.pt/pt/documentos/politica-de-privacidade-PT.pdf?_gl=1*152nifg*_gcl_au*MTMxNDE5MDAxNC4xNzcwNzE5MjY5LjQyMjM3NC4xNzcwNzIzMzg2LjE3NzA3MjM0NDE";
1032
+ readonly label: "footer.privacyPolicy";
1033
+ }, {
1034
+ readonly href: "https://www.iatiseguros.pt/aviso-legal/";
1035
+ readonly label: "footer.legalNotice";
1036
+ }, {
1037
+ readonly href: "https://www.iatiseguros.pt/politica-de-cookies/";
1038
+ readonly label: "footer.cookiePolicy";
1039
+ }, {
1040
+ readonly href: "https://static.iatiseguros.pt/pt/documentos/Condições+Gerais.pdf";
1041
+ readonly label: "footer.generalTerms";
1042
+ }, {
1043
+ readonly href: "https://app.kenjo.io/whistleblower/3ee7e1d5ee59c6fe8b84b8fc9e02ee0284eb54213b4a4dd4c3914fba04c4ae4b?lang=en";
1044
+ readonly label: "footer.ethicsChannel";
1045
+ }];
1046
+ readonly documentTypeOptions: readonly [{
1047
+ readonly label: "NIF";
1048
+ readonly value: "nif";
1049
+ }];
1050
+ readonly documentTypeOptionsByOrigin: {
1051
+ readonly local: readonly [{
1052
+ readonly label: "NIF";
1053
+ readonly value: "nif";
1054
+ }];
1055
+ readonly foreign: readonly [{
1056
+ readonly label: "Passaporte";
1057
+ readonly value: "passport";
1058
+ }];
1059
+ };
1060
+ readonly dateFormat: "dd/MM/yyyy";
1061
+ readonly postalCodeFormat: "dddd-ddd";
1062
+ readonly regionCode: "pt-PT";
1063
+ readonly gtmId: {
1064
+ readonly staging: "GTM-MWBFX7X";
1065
+ readonly production: "GTM-MWBFX7X";
1066
+ };
1067
+ readonly paymentCardTypes: readonly [{
1068
+ readonly id: 1;
1069
+ readonly name: "Visa";
1070
+ readonly imagePath: "/assets/images/payments/visa.svg";
1071
+ }, {
1072
+ readonly id: 2;
1073
+ readonly name: "Mastercard";
1074
+ readonly imagePath: "/assets/images/payments/mastercard.svg";
1075
+ }, {
1076
+ readonly id: 3;
1077
+ readonly name: "Maestro";
1078
+ readonly imagePath: "/assets/images/payments/maestro.svg";
1079
+ }, {
1080
+ readonly id: 4;
1081
+ readonly name: "American Express";
1082
+ readonly imagePath: "/assets/images/payments/american-express.svg";
1083
+ }, {
1084
+ readonly id: 5;
1085
+ readonly name: "JCB";
1086
+ readonly imagePath: "/assets/images/payments/jcb.svg";
1087
+ }, {
1088
+ readonly id: 6;
1089
+ readonly name: "Diners Club";
1090
+ readonly imagePath: "/assets/images/payments/diners-club.svg";
1091
+ }];
1092
+ };
1093
+ };
1094
+ type RegionConfigSource = (typeof regions)[keyof typeof regions];
8
1095
 
1096
+ type RegionName = RegionConfigSource['name'];
1097
+ type RegionCountryCode = RegionConfigSource['countryCode'];
1098
+ type MarketRegion = RegionConfigSource['marketRegion'];
1099
+ type RegionCode = RegionConfigSource['regionCode'];
1100
+ type DefaultCurrency = RegionConfigSource['defaultCurrency'];
1101
+ declare const RegionNameSchema: z.ZodEnum<{
1102
+ colombia: "colombia";
1103
+ world: "world";
1104
+ europe: "europe";
1105
+ mexico: "mexico";
1106
+ peru: "peru";
1107
+ spain: "spain";
1108
+ italy: "italy";
1109
+ portugal: "portugal";
1110
+ }>;
1111
+ declare const RegionCountryCodeSchema: z.ZodEnum<{
1112
+ CO: "CO";
1113
+ WR: "WR";
1114
+ EU: "EU";
1115
+ MX: "MX";
1116
+ PE: "PE";
1117
+ ES: "ES";
1118
+ IT: "IT";
1119
+ PT: "PT";
1120
+ }>;
1121
+ declare const RegionCodeSchema: z.ZodEnum<{
1122
+ "es-CO": "es-CO";
1123
+ "en-ROW": "en-ROW";
1124
+ "en-EU": "en-EU";
1125
+ "es-MX": "es-MX";
1126
+ "es-PE": "es-PE";
1127
+ "es-ES": "es-ES";
1128
+ "it-IT": "it-IT";
1129
+ "pt-PT": "pt-PT";
1130
+ }>;
1131
+ declare const MarketRegionSchema: z.ZodEnum<{
1132
+ latam: "latam";
1133
+ world: "world";
1134
+ europe: "europe";
1135
+ }>;
1136
+ declare const DefaultCurrencySchema: z.ZodEnum<{
1137
+ USD: "USD";
1138
+ EUR: "EUR";
1139
+ }>;
1140
+ declare const RegionNameEnum: {
1141
+ colombia: "colombia";
1142
+ world: "world";
1143
+ europe: "europe";
1144
+ mexico: "mexico";
1145
+ peru: "peru";
1146
+ spain: "spain";
1147
+ italy: "italy";
1148
+ portugal: "portugal";
1149
+ };
1150
+ declare const RegionCountryCodeEnum: {
1151
+ CO: "CO";
1152
+ WR: "WR";
1153
+ EU: "EU";
1154
+ MX: "MX";
1155
+ PE: "PE";
1156
+ ES: "ES";
1157
+ IT: "IT";
1158
+ PT: "PT";
1159
+ };
1160
+ declare const MarketRegionEnum: {
1161
+ latam: "latam";
1162
+ world: "world";
1163
+ europe: "europe";
1164
+ };
9
1165
  type DocumentTypeOption = {
10
1166
  label: string;
11
1167
  value: string;
@@ -86,14 +1242,14 @@ declare const RegionConfigSchema: z.ZodObject<{
86
1242
  dateFormat: z.ZodString;
87
1243
  postalCodeFormat: z.ZodOptional<z.ZodString>;
88
1244
  regionCode: z.ZodEnum<{
89
- "es-ES": "es-ES";
90
- "es-MX": "es-MX";
91
- "en-EU": "en-EU";
1245
+ "es-CO": "es-CO";
92
1246
  "en-ROW": "en-ROW";
1247
+ "en-EU": "en-EU";
1248
+ "es-MX": "es-MX";
1249
+ "es-PE": "es-PE";
1250
+ "es-ES": "es-ES";
93
1251
  "it-IT": "it-IT";
94
1252
  "pt-PT": "pt-PT";
95
- "es-CO": "es-CO";
96
- "es-PE": "es-PE";
97
1253
  }>;
98
1254
  paymentCardTypes: z.ZodArray<z.ZodObject<{
99
1255
  id: z.ZodNumber;
@@ -101,6 +1257,45 @@ declare const RegionConfigSchema: z.ZodObject<{
101
1257
  imagePath: z.ZodString;
102
1258
  }, z.core.$strip>>;
103
1259
  webSitePath: z.ZodOptional<z.ZodString>;
1260
+ name: z.ZodEnum<{
1261
+ colombia: "colombia";
1262
+ world: "world";
1263
+ europe: "europe";
1264
+ mexico: "mexico";
1265
+ peru: "peru";
1266
+ spain: "spain";
1267
+ italy: "italy";
1268
+ portugal: "portugal";
1269
+ }>;
1270
+ countryCode: z.ZodEnum<{
1271
+ CO: "CO";
1272
+ WR: "WR";
1273
+ EU: "EU";
1274
+ MX: "MX";
1275
+ PE: "PE";
1276
+ ES: "ES";
1277
+ IT: "IT";
1278
+ PT: "PT";
1279
+ }>;
1280
+ defaultCurrency: z.ZodEnum<{
1281
+ USD: "USD";
1282
+ EUR: "EUR";
1283
+ }>;
1284
+ marketRegion: z.ZodEnum<{
1285
+ latam: "latam";
1286
+ world: "world";
1287
+ europe: "europe";
1288
+ }>;
1289
+ emoji: z.ZodEnum<{
1290
+ "\uD83C\uDDE8\uD83C\uDDF4": "🇨🇴";
1291
+ "\uD83C\uDF10": "🌐";
1292
+ "\uD83C\uDDEA\uD83C\uDDFA": "🇪🇺";
1293
+ "\uD83C\uDDF2\uD83C\uDDFD": "🇲🇽";
1294
+ "\uD83C\uDDF5\uD83C\uDDEA": "🇵🇪";
1295
+ "\uD83C\uDDEA\uD83C\uDDF8": "🇪🇸";
1296
+ "\uD83C\uDDEE\uD83C\uDDF9": "🇮🇹";
1297
+ "\uD83C\uDDF5\uD83C\uDDF9": "🇵🇹";
1298
+ }>;
104
1299
  }, z.core.$strict>;
105
1300
  type CountriesToRedirectMap = Record<string, RedirectGroup>;
106
1301
  type RegionConfig = Omit<z.infer<typeof RegionConfigSchema>, 'countriesToRedirect'> & {
@@ -109,29 +1304,156 @@ type RegionConfig = Omit<z.infer<typeof RegionConfigSchema>, 'countriesToRedirec
109
1304
  type RegionsConfig = {
110
1305
  [key: string]: RegionConfig;
111
1306
  };
112
- type RegionConfigJson = Omit<RegionConfig, 'regionsToGroup' | 'footer' | 'regionCode'> & {
113
- regionCode: string;
114
- regionsToGroup?: Array<{
115
- priority: string;
116
- countries: string;
117
- regionId: string;
118
- }>;
119
- footer: Array<{
120
- href: string;
121
- label: string;
122
- }>;
123
- };
124
1307
 
125
1308
  declare const regionsConfig: RegionsConfig;
126
1309
 
1310
+ declare const GROUP_REGIONS: Record<string, number>;
1311
+ declare const EUROPE_COUNTRIES: number[];
1312
+ declare const US_CANADA_JAPAN_COUNTRIES: number[];
1313
+ declare const US_CANADA_COUNTRIES: number[];
1314
+ declare const WORLD_COUNTRIES: number[];
1315
+
1316
+ declare const getAllRegions: () => Array<RegionConfig>;
1317
+
127
1318
  declare const getRegionConfig: (name: string) => RegionConfig;
128
1319
 
129
1320
  declare const getRegionConfigById: (id: number) => RegionConfig;
130
1321
 
1322
+ declare const getRegionConfigByName: (name: string) => RegionConfig | undefined;
1323
+
131
1324
  declare const getRegionConfigByRegionCode: (regionCode: RegionConfig["regionCode"]) => RegionConfig;
132
1325
 
1326
+ declare const COUNTRIES_TO_REDIRECT: {
1327
+ readonly es: {
1328
+ readonly label: "Spain";
1329
+ readonly countries: readonly [{
1330
+ readonly countryId: "1";
1331
+ readonly name: "España";
1332
+ }];
1333
+ };
1334
+ readonly pt: {
1335
+ readonly label: "Portugal";
1336
+ readonly countries: readonly [{
1337
+ readonly countryId: "190";
1338
+ readonly name: "Portugal";
1339
+ }, {
1340
+ readonly countryId: "7";
1341
+ readonly name: "Angola";
1342
+ }, {
1343
+ readonly countryId: "36";
1344
+ readonly name: "Brasil";
1345
+ }, {
1346
+ readonly countryId: "42";
1347
+ readonly name: "Cabo Verde";
1348
+ }, {
1349
+ readonly countryId: "93";
1350
+ readonly name: "Guiné-Bissau";
1351
+ }, {
1352
+ readonly countryId: "92";
1353
+ readonly name: "Guiné Equatorial";
1354
+ }, {
1355
+ readonly countryId: "165";
1356
+ readonly name: "Moçambique";
1357
+ }, {
1358
+ readonly countryId: "212";
1359
+ readonly name: "São Tomé e Príncipe";
1360
+ }];
1361
+ };
1362
+ readonly it: {
1363
+ readonly label: "Italy";
1364
+ readonly countries: readonly [{
1365
+ readonly countryId: "124";
1366
+ readonly name: "Italia";
1367
+ }];
1368
+ };
1369
+ readonly comco: {
1370
+ readonly label: "Colombia";
1371
+ readonly countries: readonly [{
1372
+ readonly countryId: "52";
1373
+ readonly name: "Colombia";
1374
+ }];
1375
+ };
1376
+ readonly commx: {
1377
+ readonly label: "Mexico";
1378
+ readonly countries: readonly [{
1379
+ readonly countryId: "158";
1380
+ readonly name: "México";
1381
+ }];
1382
+ };
1383
+ readonly compe: {
1384
+ readonly label: "Peru";
1385
+ readonly countries: readonly [{
1386
+ readonly countryId: "187";
1387
+ readonly name: "Perú";
1388
+ }];
1389
+ };
1390
+ };
1391
+ type RedirectSiteKey = keyof typeof COUNTRIES_TO_REDIRECT;
1392
+ declare const getCountriesToRedirect: (currentSite?: string) => {
1393
+ [k: string]: {
1394
+ readonly label: "Spain";
1395
+ readonly countries: readonly [{
1396
+ readonly countryId: "1";
1397
+ readonly name: "España";
1398
+ }];
1399
+ } | {
1400
+ readonly label: "Portugal";
1401
+ readonly countries: readonly [{
1402
+ readonly countryId: "190";
1403
+ readonly name: "Portugal";
1404
+ }, {
1405
+ readonly countryId: "7";
1406
+ readonly name: "Angola";
1407
+ }, {
1408
+ readonly countryId: "36";
1409
+ readonly name: "Brasil";
1410
+ }, {
1411
+ readonly countryId: "42";
1412
+ readonly name: "Cabo Verde";
1413
+ }, {
1414
+ readonly countryId: "93";
1415
+ readonly name: "Guiné-Bissau";
1416
+ }, {
1417
+ readonly countryId: "92";
1418
+ readonly name: "Guiné Equatorial";
1419
+ }, {
1420
+ readonly countryId: "165";
1421
+ readonly name: "Moçambique";
1422
+ }, {
1423
+ readonly countryId: "212";
1424
+ readonly name: "São Tomé e Príncipe";
1425
+ }];
1426
+ } | {
1427
+ readonly label: "Italy";
1428
+ readonly countries: readonly [{
1429
+ readonly countryId: "124";
1430
+ readonly name: "Italia";
1431
+ }];
1432
+ } | {
1433
+ readonly label: "Colombia";
1434
+ readonly countries: readonly [{
1435
+ readonly countryId: "52";
1436
+ readonly name: "Colombia";
1437
+ }];
1438
+ } | {
1439
+ readonly label: "Mexico";
1440
+ readonly countries: readonly [{
1441
+ readonly countryId: "158";
1442
+ readonly name: "México";
1443
+ }];
1444
+ } | {
1445
+ readonly label: "Peru";
1446
+ readonly countries: readonly [{
1447
+ readonly countryId: "187";
1448
+ readonly name: "Perú";
1449
+ }];
1450
+ };
1451
+ };
1452
+
133
1453
  declare const resolveDocumentTypeOptions: (documentTypeOptions: Array<DocumentTypeOption>, documentTypeOptionsByOrigin?: DocumentTypeOptionsByOrigin, originCountryId?: string | number, siteCountryId?: number) => Array<DocumentTypeOption>;
134
1454
 
1455
+ declare const resolvePostalCodeFormat: (postalCodeFormat?: string, originCountryId?: string | number, siteCountryId?: number) => string | undefined;
1456
+
135
1457
  declare const validateRegion: (region: RegionConfig["regionCode"]) => void;
136
1458
 
137
- export { type CountriesToRedirectMap, type CountryToRedirect, type DocumentTypeOption, type DocumentTypeOptionsByOrigin, EUROPE_COUNTRIES, GROUP_REGIONS, type PaymentCardType, type RedirectCountry, type RedirectGroup, type RegionConfig, type RegionConfigJson, RegionConfigSchema, type RegionToGroup, type RegionsConfig, US_CANADA_COUNTRIES, US_CANADA_JAPAN_COUNTRIES, WORLD_COUNTRIES, getRegionConfig, getRegionConfigById, getRegionConfigByRegionCode, regionsConfig, resolveDocumentTypeOptions, validateRegion };
1459
+ export { COUNTRIES_TO_REDIRECT, type CountriesToRedirectMap, type CountryToRedirect, type DefaultCurrency, DefaultCurrencySchema, type DocumentTypeOption, type DocumentTypeOptionsByOrigin, EUROPE_COUNTRIES, GROUP_REGIONS, type MarketRegion, MarketRegionEnum, MarketRegionSchema, type PaymentCardType, type RedirectCountry, type RedirectGroup, type RedirectSiteKey, type RegionCode, RegionCodeSchema, type RegionConfig, RegionConfigSchema, type RegionCountryCode, RegionCountryCodeEnum, RegionCountryCodeSchema, type RegionName, RegionNameEnum, RegionNameSchema, type RegionToGroup, type RegionsConfig, US_CANADA_COUNTRIES, US_CANADA_JAPAN_COUNTRIES, WORLD_COUNTRIES, getAllRegions, getCountriesToRedirect, getRegionConfig, getRegionConfigById, getRegionConfigByName, getRegionConfigByRegionCode, regionsConfig, resolveDocumentTypeOptions, resolvePostalCodeFormat, validateRegion };