mdz-enum 1.0.72 → 1.0.73

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.
@@ -153,6 +153,7 @@ export declare const ModeloNotaFiscal: {
153
153
  NFCe: string;
154
154
  SAT: string;
155
155
  description(val: string): "enum not found" | "Nota Fiscal" | "Nota Fiscal de produtor rural" | "Nota Fisca Eletrônica" | "Nota Fiscal de Consumidor Eletrônica" | "SAT";
156
+ shortDescription(val: string): "enum not found" | "SAT" | "NF" | "NFP" | "NFe" | "NFCe";
156
157
  };
157
158
  export declare const IdentificadorLocalDestino: {
158
159
  OperacaoInterna: string;
@@ -459,6 +459,22 @@ exports.ModeloNotaFiscal = {
459
459
  return 'enum not found';
460
460
  }
461
461
  },
462
+ shortDescription(val) {
463
+ switch (val) {
464
+ case this.NF:
465
+ return 'NF';
466
+ case this.NFProdutor:
467
+ return 'NFP';
468
+ case this.NFe:
469
+ return 'NFe';
470
+ case this.NFCe:
471
+ return 'NFCe';
472
+ case this.SAT:
473
+ return 'SAT';
474
+ default:
475
+ return 'enum not found';
476
+ }
477
+ },
462
478
  };
463
479
  exports.IdentificadorLocalDestino = {
464
480
  OperacaoInterna: '1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdz-enum",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "description": "Enumerados Moderniza",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -600,6 +600,28 @@ export const ModeloNotaFiscal = {
600
600
  return 'enum not found'
601
601
  }
602
602
  },
603
+
604
+ shortDescription(val: string) {
605
+ switch (val) {
606
+ case this.NF:
607
+ return 'NF'
608
+
609
+ case this.NFProdutor:
610
+ return 'NFP'
611
+
612
+ case this.NFe:
613
+ return 'NFe'
614
+
615
+ case this.NFCe:
616
+ return 'NFCe'
617
+
618
+ case this.SAT:
619
+ return 'SAT'
620
+
621
+ default:
622
+ return 'enum not found'
623
+ }
624
+ },
603
625
  }
604
626
 
605
627
  export const IdentificadorLocalDestino = {