mdz-enum 1.0.27 → 1.0.31

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/package.json CHANGED
@@ -1,25 +1,26 @@
1
- {
2
- "name": "mdz-enum",
3
- "version": "1.0.27",
4
- "description": "Enumerados Moderniza",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/moderniza-dev/mdz-enum.git"
12
- },
13
- "keywords": [],
14
- "author": "willian.moderniza",
15
- "license": "ISC",
16
- "bugs": {
17
- "url": "https://github.com/moderniza-dev/mdz-enum/issues"
18
- },
19
- "homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
20
- "devDependencies": {
21
- "@types/node": "^16.9.1",
22
- "ts-node": "^10.2.1",
23
- "typescript": "^4.4.3"
24
- }
25
- }
1
+ {
2
+ "name": "mdz-enum",
3
+ "version": "1.0.31",
4
+ "description": "Enumerados Moderniza",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/moderniza-dev/mdz-enum.git"
12
+ },
13
+ "keywords": [],
14
+ "author": "willian.moderniza",
15
+ "license": "ISC",
16
+ "bugs": {
17
+ "url": "https://github.com/moderniza-dev/mdz-enum/issues"
18
+ },
19
+ "homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
20
+ "devDependencies": {
21
+ "@types/node": "^16.9.1",
22
+ "ts-node": "^10.2.1",
23
+ "typescript": "^4.4.3"
24
+ },
25
+ "dependencies": {}
26
+ }
@@ -0,0 +1,37 @@
1
+ export const TipoCaixaOperacao = {
2
+ Abertura: '0',
3
+ Entrada: '1',
4
+ Saida: '2',
5
+ Recebimento: '3',
6
+ Nota: '4',
7
+ Pedido: '5',
8
+ Consignacao: '6',
9
+
10
+ description(val: string) {
11
+ switch (val) {
12
+ case this.Abertura:
13
+ return 'Abertura'
14
+
15
+ case this.Entrada:
16
+ return 'Entrada'
17
+
18
+ case this.Saida:
19
+ return 'Saída'
20
+
21
+ case this.Recebimento:
22
+ return 'Recebimento'
23
+
24
+ case this.Nota:
25
+ return 'Nota'
26
+
27
+ case this.Pedido:
28
+ return 'Pedido'
29
+
30
+ case this.Consignacao:
31
+ return 'Consignação'
32
+
33
+ default:
34
+ return 'enum not found'
35
+ }
36
+ },
37
+ }
@@ -0,0 +1,17 @@
1
+ export const TipoPermissao = {
2
+ Visualizacao: "1",
3
+ Funcao: "2",
4
+
5
+ description(val: string) {
6
+ switch (val) {
7
+ case this.Visualizacao:
8
+ return "Visualização";
9
+
10
+ case this.Funcao:
11
+ return "Função";
12
+
13
+ default:
14
+ return "enum not found";
15
+ }
16
+ },
17
+ };
@@ -1,15 +1,15 @@
1
1
  export const Situacao = {
2
- Ativo: '1',
3
- Inativo: '2',
2
+ Inativo: '0',
3
+ Ativo: '1',
4
4
 
5
5
  description(val: string) {
6
6
  switch (val) {
7
- case this.Ativo:
8
- return 'Ativo'
9
-
10
7
  case this.Inativo:
11
8
  return 'Inativo'
12
9
 
10
+ case this.Ativo:
11
+ return 'Ativo'
12
+
13
13
  default:
14
14
  return 'enum not found'
15
15
  }
package/src/index.ts CHANGED
@@ -6,7 +6,9 @@ export {
6
6
  TipoCalculoParcelamento,
7
7
  TipoPromocao,
8
8
  } from './finance'
9
+ //teste de exportação
9
10
  export {
11
+
10
12
  COFINS,
11
13
  ICMS_CSOSN,
12
14
  ICMS_CST,
@@ -42,3 +44,5 @@ export {
42
44
  SituacaoMovimentacaoEstoque,
43
45
  OrigemMovimentacaoEstoque,
44
46
  } from './logistics'
47
+
48
+ export { TipoCaixaOperacao } from './cash'