mdz-enum 1.2.76 → 1.2.77

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.
@@ -405,3 +405,92 @@ exports.IsDemonstracao = {
405
405
  }
406
406
  },
407
407
  };
408
+ const UnidadeFederativa = {
409
+ Acre: 12,
410
+ Alagoas: 27,
411
+ Amazonas: 13,
412
+ Amapa: 16,
413
+ Bahia: 29,
414
+ Ceara: 23,
415
+ Distrito_Federal: 53,
416
+ Espirito_Santo: 32,
417
+ Goias: 52,
418
+ Maranhao: 21,
419
+ Minas_Gerais: 31,
420
+ Mato_Grosso_do_Sul: 50,
421
+ Mato_Grosso: 51,
422
+ Para: 15,
423
+ Paraiba: 25,
424
+ Pernambuco: 26,
425
+ Piaui: 22,
426
+ Parana: 41,
427
+ Rio_de_Janeiro: 33,
428
+ Rio_Grande_do_Norte: 24,
429
+ Rio_Grande_do_Sul: 43,
430
+ Rondonia: 11,
431
+ Roraima: 14,
432
+ Santa_Catarina: 42,
433
+ Sergipe: 28,
434
+ Sao_Paulo: 35,
435
+ Tocantins: 17,
436
+ description(val) {
437
+ switch (val) {
438
+ case this.Acre:
439
+ return 'Acre';
440
+ case this.Alagoas:
441
+ return 'Alagoas';
442
+ case this.Amazonas:
443
+ return 'Amazonas';
444
+ case this.Amapa:
445
+ return 'Amapá';
446
+ case this.Bahia:
447
+ return 'Bahia';
448
+ case this.Ceara:
449
+ return 'Ceará';
450
+ case this.Distrito_Federal:
451
+ return 'Distrito Federal';
452
+ case this.Espirito_Santo:
453
+ return 'Espírito Santo';
454
+ case this.Goias:
455
+ return 'Goiás';
456
+ case this.Maranhao:
457
+ return 'Maranhão';
458
+ case this.Minas_Gerais:
459
+ return 'Minas Gerais';
460
+ case this.Mato_Grosso_do_Sul:
461
+ return 'Mato Grosso do Sul';
462
+ case this.Mato_Grosso:
463
+ return 'Mato Grosso';
464
+ case this.Para:
465
+ return 'Pará';
466
+ case this.Paraiba:
467
+ return 'Paraíba';
468
+ case this.Pernambuco:
469
+ return 'Pernambuco';
470
+ case this.Piaui:
471
+ return 'Piauí';
472
+ case this.Parana:
473
+ return 'Paraná';
474
+ case this.Rio_de_Janeiro:
475
+ return 'Rio de Janeiro';
476
+ case this.Rio_Grande_do_Norte:
477
+ return 'Rio Grande do Norte';
478
+ case this.Rio_Grande_do_Sul:
479
+ return 'Rio Grande do Sul';
480
+ case this.Rondonia:
481
+ return 'Rondônia';
482
+ case this.Roraima:
483
+ return 'Roraima';
484
+ case this.Santa_Catarina:
485
+ return 'Santa Catarina';
486
+ case this.Sergipe:
487
+ return 'Sergipe';
488
+ case this.Sao_Paulo:
489
+ return 'São Paulo';
490
+ case this.Tocantins:
491
+ return 'Tocantins';
492
+ default:
493
+ return 'enum not found';
494
+ }
495
+ },
496
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdz-enum",
3
- "version": "1.2.76",
3
+ "version": "1.2.77",
4
4
  "description": "Enumerados Moderniza",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {