mdz-enum 1.0.39 → 1.0.44
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/.prettierrc.json +9 -0
- package/dist/cash/index.d.ts +1 -1
- package/dist/finance/index.d.ts +27 -7
- package/dist/finance/index.js +151 -93
- package/dist/fiscal/index.d.ts +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.js +5 -3
- package/package.json +2 -2
- package/src/finance/index.ts +177 -101
- package/src/index.ts +7 -5
- package/src/cash/index.ts +0 -37
package/.prettierrc.json
ADDED
package/dist/cash/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export declare const TipoCaixaOperacao: {
|
|
|
6
6
|
Nota: string;
|
|
7
7
|
Pedido: string;
|
|
8
8
|
Consignacao: string;
|
|
9
|
-
description(val: string): "enum not found" | "Pedido" | "
|
|
9
|
+
description(val: string): "enum not found" | "Pedido" | "Abertura" | "Consignação" | "Entrada" | "Saída" | "Recebimento" | "Nota";
|
|
10
10
|
};
|
package/dist/finance/index.d.ts
CHANGED
|
@@ -50,14 +50,34 @@ export declare const TipoPromocao: {
|
|
|
50
50
|
Valor: string;
|
|
51
51
|
description(val: string): "enum not found" | "Percentual" | "Valor";
|
|
52
52
|
};
|
|
53
|
-
export declare const TipoDocumentoFinanceiro: {
|
|
54
|
-
Pagar: string;
|
|
55
|
-
Receber: string;
|
|
56
|
-
description(val: string): "enum not found" | "Receber" | "Pagar";
|
|
57
|
-
};
|
|
58
53
|
export declare const SituacaoDocumentoFinanceiro: {
|
|
59
54
|
Aberto: string;
|
|
60
|
-
Estornado: string;
|
|
61
55
|
Quitado: string;
|
|
62
|
-
|
|
56
|
+
Estornado: string;
|
|
57
|
+
description(val: string): "enum not found" | "Aberto" | "Quitado" | "Estornado";
|
|
58
|
+
};
|
|
59
|
+
export declare const TipoLancamentoDocumentoFinanceiro: {
|
|
60
|
+
Abertura: string;
|
|
61
|
+
Pagamento: string;
|
|
62
|
+
Desconto: string;
|
|
63
|
+
Acrescimo: string;
|
|
64
|
+
Juros: string;
|
|
65
|
+
Multa: string;
|
|
66
|
+
description(val: string): "enum not found" | "Abertura" | "Pagamento" | "Desconto" | "Acréscimo" | "Juros" | "Multa";
|
|
67
|
+
};
|
|
68
|
+
export declare const TipoCaixaOperacao: {
|
|
69
|
+
Abertura: string;
|
|
70
|
+
Entrada: string;
|
|
71
|
+
Saida: string;
|
|
72
|
+
Recebimento: string;
|
|
73
|
+
Pagamento: string;
|
|
74
|
+
Compra: string;
|
|
75
|
+
Venda: string;
|
|
76
|
+
Fechamento: string;
|
|
77
|
+
description(val: string): "enum not found" | "Abertura" | "Pagamento" | "Entrada" | "Saída" | "Recebimento" | "Compra" | "Venda" | "Fechamento";
|
|
78
|
+
};
|
|
79
|
+
export declare const SituacaoCaixa: {
|
|
80
|
+
Aberto: string;
|
|
81
|
+
Fechado: string;
|
|
82
|
+
description(val: string): "enum not found" | "Aberto" | "Fechado";
|
|
63
83
|
};
|
package/dist/finance/index.js
CHANGED
|
@@ -1,184 +1,242 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.SituacaoCaixa = exports.TipoCaixaOperacao = exports.TipoLancamentoDocumentoFinanceiro = exports.SituacaoDocumentoFinanceiro = exports.TipoPromocao = exports.TipoCalculoParcelamento = exports.BandeiraCartao = exports.OperacaoOperadoraCartao = exports.IndicadorFormaPagamento = exports.MeioPagamento = void 0;
|
|
4
4
|
exports.MeioPagamento = {
|
|
5
|
-
Dinheiro:
|
|
6
|
-
Cheque:
|
|
7
|
-
CartaoCredito:
|
|
8
|
-
CartaoDebito:
|
|
9
|
-
CreditoLoja:
|
|
10
|
-
ValeAlimentacao:
|
|
11
|
-
ValeRefeicao:
|
|
12
|
-
ValePresente:
|
|
13
|
-
ValeCombustivel:
|
|
14
|
-
BoletoBancario:
|
|
15
|
-
DepositoBancario:
|
|
16
|
-
PIX:
|
|
17
|
-
TransferenciaBancaria:
|
|
18
|
-
ProgramaFidelidade:
|
|
19
|
-
SemPagamento:
|
|
20
|
-
Outros:
|
|
5
|
+
Dinheiro: '01',
|
|
6
|
+
Cheque: '02',
|
|
7
|
+
CartaoCredito: '03',
|
|
8
|
+
CartaoDebito: '04',
|
|
9
|
+
CreditoLoja: '05',
|
|
10
|
+
ValeAlimentacao: '10',
|
|
11
|
+
ValeRefeicao: '11',
|
|
12
|
+
ValePresente: '12',
|
|
13
|
+
ValeCombustivel: '13',
|
|
14
|
+
BoletoBancario: '15',
|
|
15
|
+
DepositoBancario: '16',
|
|
16
|
+
PIX: '17',
|
|
17
|
+
TransferenciaBancaria: '18',
|
|
18
|
+
ProgramaFidelidade: '19',
|
|
19
|
+
SemPagamento: '90',
|
|
20
|
+
Outros: '99',
|
|
21
21
|
description(val) {
|
|
22
22
|
switch (val) {
|
|
23
23
|
case this.Dinheiro:
|
|
24
|
-
return
|
|
24
|
+
return 'Dinheiro';
|
|
25
25
|
case this.Cheque:
|
|
26
|
-
return
|
|
26
|
+
return 'Cheque';
|
|
27
27
|
case this.CartaoCredito:
|
|
28
|
-
return
|
|
28
|
+
return 'Cartão de Crédito';
|
|
29
29
|
case this.CartaoDebito:
|
|
30
|
-
return
|
|
30
|
+
return 'Cartão de Débito';
|
|
31
31
|
case this.CreditoLoja:
|
|
32
|
-
return
|
|
32
|
+
return 'Crédito Loja';
|
|
33
33
|
case this.ValeAlimentacao:
|
|
34
|
-
return
|
|
34
|
+
return 'Vale Alimentação';
|
|
35
35
|
case this.ValeRefeicao:
|
|
36
|
-
return
|
|
36
|
+
return 'Vale Refeição';
|
|
37
37
|
case this.ValePresente:
|
|
38
|
-
return
|
|
38
|
+
return 'Vale Presente';
|
|
39
39
|
case this.ValeCombustivel:
|
|
40
|
-
return
|
|
40
|
+
return 'Vale Combustível';
|
|
41
41
|
case this.BoletoBancario:
|
|
42
|
-
return
|
|
42
|
+
return 'Boleto Bancário';
|
|
43
43
|
case this.DepositoBancario:
|
|
44
|
-
return
|
|
44
|
+
return 'Depósito Bancário';
|
|
45
45
|
case this.PIX:
|
|
46
|
-
return
|
|
46
|
+
return 'Pagamento Instantâneo (PIX)';
|
|
47
47
|
case this.TransferenciaBancaria:
|
|
48
|
-
return
|
|
48
|
+
return 'Transferência Bancária';
|
|
49
49
|
case this.ProgramaFidelidade:
|
|
50
|
-
return
|
|
50
|
+
return 'Programa de Fidelidade';
|
|
51
51
|
case this.SemPagamento:
|
|
52
|
-
return
|
|
52
|
+
return 'Sem Pagamento';
|
|
53
53
|
case this.Outros:
|
|
54
|
-
return
|
|
54
|
+
return 'Outros';
|
|
55
55
|
default:
|
|
56
|
-
return
|
|
56
|
+
return 'enum not found';
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
};
|
|
60
60
|
exports.IndicadorFormaPagamento = {
|
|
61
|
-
PagamentoAVista:
|
|
62
|
-
PagamentoAPrazo:
|
|
61
|
+
PagamentoAVista: '0',
|
|
62
|
+
PagamentoAPrazo: '1',
|
|
63
63
|
description(val) {
|
|
64
64
|
switch (val) {
|
|
65
65
|
case this.PagamentoAVista:
|
|
66
|
-
return
|
|
66
|
+
return 'Pagamento à Vista';
|
|
67
67
|
case this.PagamentoAPrazo:
|
|
68
|
-
return
|
|
68
|
+
return 'Pagamento à Prazo';
|
|
69
69
|
default:
|
|
70
|
-
return
|
|
70
|
+
return 'enum not found';
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
74
|
exports.OperacaoOperadoraCartao = {
|
|
75
|
-
Credito:
|
|
76
|
-
Debito:
|
|
75
|
+
Credito: '1',
|
|
76
|
+
Debito: '2',
|
|
77
77
|
description(val) {
|
|
78
78
|
switch (val) {
|
|
79
79
|
case this.Credito:
|
|
80
|
-
return
|
|
80
|
+
return 'Crédito';
|
|
81
81
|
case this.Debito:
|
|
82
|
-
return
|
|
82
|
+
return 'Débito';
|
|
83
83
|
default:
|
|
84
|
-
return
|
|
84
|
+
return 'enum not found';
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
};
|
|
88
88
|
exports.BandeiraCartao = {
|
|
89
|
-
Visa:
|
|
90
|
-
Mastercard:
|
|
91
|
-
AmericanExpress:
|
|
92
|
-
Sorocred:
|
|
93
|
-
DinersClub:
|
|
94
|
-
Elo:
|
|
95
|
-
Hipercard:
|
|
96
|
-
Aura:
|
|
97
|
-
Cabal:
|
|
98
|
-
Outros:
|
|
89
|
+
Visa: '01',
|
|
90
|
+
Mastercard: '02',
|
|
91
|
+
AmericanExpress: '03',
|
|
92
|
+
Sorocred: '04',
|
|
93
|
+
DinersClub: '05',
|
|
94
|
+
Elo: '06',
|
|
95
|
+
Hipercard: '07',
|
|
96
|
+
Aura: '08',
|
|
97
|
+
Cabal: '09',
|
|
98
|
+
Outros: '99',
|
|
99
99
|
description(val) {
|
|
100
100
|
switch (val) {
|
|
101
101
|
case this.Visa:
|
|
102
|
-
return
|
|
102
|
+
return 'Visa';
|
|
103
103
|
case this.Mastercard:
|
|
104
|
-
return
|
|
104
|
+
return 'Mastercard';
|
|
105
105
|
case this.AmericanExpress:
|
|
106
|
-
return
|
|
106
|
+
return 'American Express';
|
|
107
107
|
case this.Sorocred:
|
|
108
|
-
return
|
|
108
|
+
return 'Sorocred';
|
|
109
109
|
case this.DinersClub:
|
|
110
|
-
return
|
|
110
|
+
return 'Diners Club';
|
|
111
111
|
case this.Elo:
|
|
112
|
-
return
|
|
112
|
+
return 'Elo';
|
|
113
113
|
case this.Hipercard:
|
|
114
|
-
return
|
|
114
|
+
return 'Hipercard';
|
|
115
115
|
case this.Aura:
|
|
116
|
-
return
|
|
116
|
+
return 'Aura';
|
|
117
117
|
case this.Cabal:
|
|
118
|
-
return
|
|
118
|
+
return 'Cabal';
|
|
119
119
|
case this.Outros:
|
|
120
|
-
return
|
|
120
|
+
return 'Outros';
|
|
121
121
|
default:
|
|
122
|
-
return
|
|
122
|
+
return 'enum not found';
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
};
|
|
126
126
|
exports.TipoCalculoParcelamento = {
|
|
127
|
-
Simples:
|
|
128
|
-
Composto:
|
|
127
|
+
Simples: '0',
|
|
128
|
+
Composto: '1',
|
|
129
129
|
description(val) {
|
|
130
130
|
switch (val) {
|
|
131
131
|
case this.Simples:
|
|
132
|
-
return
|
|
132
|
+
return 'Simples';
|
|
133
133
|
case this.Composto:
|
|
134
|
-
return
|
|
134
|
+
return 'Composto';
|
|
135
135
|
default:
|
|
136
|
-
return
|
|
136
|
+
return 'enum not found';
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
140
|
exports.TipoPromocao = {
|
|
141
|
-
Percentual:
|
|
142
|
-
Valor:
|
|
141
|
+
Percentual: '0',
|
|
142
|
+
Valor: '1',
|
|
143
143
|
description(val) {
|
|
144
144
|
switch (val) {
|
|
145
145
|
case this.Percentual:
|
|
146
|
-
return
|
|
146
|
+
return 'Percentual';
|
|
147
147
|
case this.Valor:
|
|
148
|
-
return
|
|
148
|
+
return 'Valor';
|
|
149
149
|
default:
|
|
150
|
-
return
|
|
150
|
+
return 'enum not found';
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
};
|
|
154
|
-
exports.
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
exports.SituacaoDocumentoFinanceiro = {
|
|
155
|
+
Aberto: '0',
|
|
156
|
+
Quitado: '1',
|
|
157
|
+
Estornado: '2',
|
|
157
158
|
description(val) {
|
|
158
159
|
switch (val) {
|
|
159
|
-
case this.
|
|
160
|
-
return
|
|
161
|
-
case this.
|
|
162
|
-
return
|
|
160
|
+
case this.Aberto:
|
|
161
|
+
return 'Aberto';
|
|
162
|
+
case this.Quitado:
|
|
163
|
+
return 'Quitado';
|
|
164
|
+
case this.Estornado:
|
|
165
|
+
return 'Estornado';
|
|
163
166
|
default:
|
|
164
|
-
return
|
|
167
|
+
return 'enum not found';
|
|
165
168
|
}
|
|
166
169
|
},
|
|
167
170
|
};
|
|
168
|
-
exports.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
exports.TipoLancamentoDocumentoFinanceiro = {
|
|
172
|
+
Abertura: '0',
|
|
173
|
+
Pagamento: '1',
|
|
174
|
+
Desconto: '2',
|
|
175
|
+
Acrescimo: '3',
|
|
176
|
+
Juros: '4',
|
|
177
|
+
Multa: '5',
|
|
178
|
+
description(val) {
|
|
179
|
+
switch (val) {
|
|
180
|
+
case this.Abertura:
|
|
181
|
+
return 'Abertura';
|
|
182
|
+
case this.Pagamento:
|
|
183
|
+
return 'Pagamento';
|
|
184
|
+
case this.Desconto:
|
|
185
|
+
return 'Desconto';
|
|
186
|
+
case this.Acrescimo:
|
|
187
|
+
return 'Acréscimo';
|
|
188
|
+
case this.Juros:
|
|
189
|
+
return 'Juros';
|
|
190
|
+
case this.Multa:
|
|
191
|
+
return 'Multa';
|
|
192
|
+
default:
|
|
193
|
+
return 'enum not found';
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
exports.TipoCaixaOperacao = {
|
|
198
|
+
Abertura: '0',
|
|
199
|
+
Entrada: '1',
|
|
200
|
+
Saida: '2',
|
|
201
|
+
Recebimento: '3',
|
|
202
|
+
Pagamento: '4',
|
|
203
|
+
Compra: '5',
|
|
204
|
+
Venda: '6',
|
|
205
|
+
Fechamento: '7',
|
|
206
|
+
description(val) {
|
|
207
|
+
switch (val) {
|
|
208
|
+
case this.Abertura:
|
|
209
|
+
return 'Abertura';
|
|
210
|
+
case this.Entrada:
|
|
211
|
+
return 'Entrada';
|
|
212
|
+
case this.Saida:
|
|
213
|
+
return 'Saída';
|
|
214
|
+
case this.Recebimento:
|
|
215
|
+
return 'Recebimento';
|
|
216
|
+
case this.Pagamento:
|
|
217
|
+
return 'Pagamento';
|
|
218
|
+
case this.Compra:
|
|
219
|
+
return 'Compra';
|
|
220
|
+
case this.Venda:
|
|
221
|
+
return 'Venda';
|
|
222
|
+
case this.Fechamento:
|
|
223
|
+
return 'Fechamento';
|
|
224
|
+
default:
|
|
225
|
+
return 'enum not found';
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
exports.SituacaoCaixa = {
|
|
230
|
+
Aberto: '0',
|
|
231
|
+
Fechado: '1',
|
|
172
232
|
description(val) {
|
|
173
233
|
switch (val) {
|
|
174
234
|
case this.Aberto:
|
|
175
|
-
return
|
|
176
|
-
case this.
|
|
177
|
-
return
|
|
178
|
-
case this.Quitado:
|
|
179
|
-
return "Quitado";
|
|
235
|
+
return 'Aberto';
|
|
236
|
+
case this.Fechado:
|
|
237
|
+
return 'Fechado';
|
|
180
238
|
default:
|
|
181
|
-
return
|
|
239
|
+
return 'enum not found';
|
|
182
240
|
}
|
|
183
241
|
},
|
|
184
242
|
};
|
package/dist/fiscal/index.d.ts
CHANGED
|
@@ -139,7 +139,7 @@ export declare const TipoOperacaoNotaFiscal: {
|
|
|
139
139
|
Consignacao: string;
|
|
140
140
|
Compra: string;
|
|
141
141
|
RetornoConsignacao: string;
|
|
142
|
-
description(val: string): "enum not found" | "Venda" | "Devolução de Compra" | "Devolução de Venda" | "Transferência de Entrada" | "Transferência de Saída" | "Remessa de Entrada" | "Remessa de Saída" | "Demonstração" | "Perdas" | "Consignação" | "
|
|
142
|
+
description(val: string): "enum not found" | "Compra" | "Venda" | "Devolução de Compra" | "Devolução de Venda" | "Transferência de Entrada" | "Transferência de Saída" | "Remessa de Entrada" | "Remessa de Saída" | "Demonstração" | "Perdas" | "Consignação" | "Retorno Consignação";
|
|
143
143
|
};
|
|
144
144
|
export declare const OperacaoNotaFiscal: {
|
|
145
145
|
Entrada: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export { listEnum } from './functions';
|
|
2
2
|
export { SituacaoPedido, OperacaoPedido, OrigemPedido, TipoFrete } from './commercial';
|
|
3
|
-
export { MeioPagamento, OperacaoOperadoraCartao, TipoCalculoParcelamento, TipoPromocao, IndicadorFormaPagamento, BandeiraCartao } from './finance';
|
|
4
|
-
export { COFINS, ICMS_CSOSN, ICMS_CST, IPI, PIS, TipoOperacaoNotaFiscal, OperacaoNotaFiscal, ModeloNotaFiscal, OrigemProduto, IdentificadorLocalDestino, AmbienteNotaFiscal, ConsumidorFinalNotaFiscal, FinalidadeEmissaoNotaFiscal, IndicadorIEDestinatario, IndicadorIntermediador, IndicadorPresencaNotaFiscal, ModalidadeBaseCalculo, ModalidadeBaseCalculoST, MotivoDesoneracao, RegimeTributario, TipoEmissaoNotaFiscal, TipoImpressaoDanfe, SituacaoNotaFiscal, TipoInformacaoAdicional } from './fiscal';
|
|
3
|
+
export { MeioPagamento, OperacaoOperadoraCartao, TipoCalculoParcelamento, TipoPromocao, IndicadorFormaPagamento, BandeiraCartao, SituacaoDocumentoFinanceiro, TipoLancamentoDocumentoFinanceiro, TipoCaixaOperacao, SituacaoCaixa, } from './finance';
|
|
4
|
+
export { COFINS, ICMS_CSOSN, ICMS_CST, IPI, PIS, TipoOperacaoNotaFiscal, OperacaoNotaFiscal, ModeloNotaFiscal, OrigemProduto, IdentificadorLocalDestino, AmbienteNotaFiscal, ConsumidorFinalNotaFiscal, FinalidadeEmissaoNotaFiscal, IndicadorIEDestinatario, IndicadorIntermediador, IndicadorPresencaNotaFiscal, ModalidadeBaseCalculo, ModalidadeBaseCalculoST, MotivoDesoneracao, RegimeTributario, TipoEmissaoNotaFiscal, TipoImpressaoDanfe, SituacaoNotaFiscal, TipoInformacaoAdicional, } from './fiscal';
|
|
5
5
|
export { Situacao } from './general';
|
|
6
6
|
export { TipoEndereco, TipoPessoa, GeneroPessoa } from './people';
|
|
7
|
-
export { TipoAtributo, TipoProduto, TipoValoracao, SituacaoMovimentacaoEstoque, OrigemMovimentacaoEstoque } from './logistics';
|
|
8
|
-
export { TipoCaixaOperacao } from './cash';
|
|
7
|
+
export { TipoAtributo, TipoProduto, TipoValoracao, SituacaoMovimentacaoEstoque, OrigemMovimentacaoEstoque, } from './logistics';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.OrigemMovimentacaoEstoque = exports.SituacaoMovimentacaoEstoque = exports.TipoValoracao = exports.TipoProduto = exports.TipoAtributo = exports.GeneroPessoa = exports.TipoPessoa = exports.TipoEndereco = exports.Situacao = exports.TipoInformacaoAdicional = exports.SituacaoNotaFiscal = exports.TipoImpressaoDanfe = exports.TipoEmissaoNotaFiscal = exports.RegimeTributario = exports.MotivoDesoneracao = exports.ModalidadeBaseCalculoST = exports.ModalidadeBaseCalculo = exports.IndicadorPresencaNotaFiscal = exports.IndicadorIntermediador = exports.IndicadorIEDestinatario = exports.FinalidadeEmissaoNotaFiscal = exports.ConsumidorFinalNotaFiscal = exports.AmbienteNotaFiscal = exports.IdentificadorLocalDestino = exports.OrigemProduto = exports.ModeloNotaFiscal = exports.OperacaoNotaFiscal = exports.TipoOperacaoNotaFiscal = exports.PIS = exports.IPI = exports.ICMS_CST = exports.ICMS_CSOSN = exports.COFINS = exports.SituacaoCaixa = exports.TipoCaixaOperacao = exports.TipoLancamentoDocumentoFinanceiro = exports.SituacaoDocumentoFinanceiro = exports.BandeiraCartao = exports.IndicadorFormaPagamento = exports.TipoPromocao = exports.TipoCalculoParcelamento = exports.OperacaoOperadoraCartao = exports.MeioPagamento = exports.TipoFrete = exports.OrigemPedido = exports.OperacaoPedido = exports.SituacaoPedido = exports.listEnum = void 0;
|
|
4
4
|
var functions_1 = require("./functions");
|
|
5
5
|
Object.defineProperty(exports, "listEnum", { enumerable: true, get: function () { return functions_1.listEnum; } });
|
|
6
6
|
var commercial_1 = require("./commercial");
|
|
@@ -15,6 +15,10 @@ Object.defineProperty(exports, "TipoCalculoParcelamento", { enumerable: true, ge
|
|
|
15
15
|
Object.defineProperty(exports, "TipoPromocao", { enumerable: true, get: function () { return finance_1.TipoPromocao; } });
|
|
16
16
|
Object.defineProperty(exports, "IndicadorFormaPagamento", { enumerable: true, get: function () { return finance_1.IndicadorFormaPagamento; } });
|
|
17
17
|
Object.defineProperty(exports, "BandeiraCartao", { enumerable: true, get: function () { return finance_1.BandeiraCartao; } });
|
|
18
|
+
Object.defineProperty(exports, "SituacaoDocumentoFinanceiro", { enumerable: true, get: function () { return finance_1.SituacaoDocumentoFinanceiro; } });
|
|
19
|
+
Object.defineProperty(exports, "TipoLancamentoDocumentoFinanceiro", { enumerable: true, get: function () { return finance_1.TipoLancamentoDocumentoFinanceiro; } });
|
|
20
|
+
Object.defineProperty(exports, "TipoCaixaOperacao", { enumerable: true, get: function () { return finance_1.TipoCaixaOperacao; } });
|
|
21
|
+
Object.defineProperty(exports, "SituacaoCaixa", { enumerable: true, get: function () { return finance_1.SituacaoCaixa; } });
|
|
18
22
|
//teste de exportação
|
|
19
23
|
var fiscal_1 = require("./fiscal");
|
|
20
24
|
Object.defineProperty(exports, "COFINS", { enumerable: true, get: function () { return fiscal_1.COFINS; } });
|
|
@@ -53,5 +57,3 @@ Object.defineProperty(exports, "TipoProduto", { enumerable: true, get: function
|
|
|
53
57
|
Object.defineProperty(exports, "TipoValoracao", { enumerable: true, get: function () { return logistics_1.TipoValoracao; } });
|
|
54
58
|
Object.defineProperty(exports, "SituacaoMovimentacaoEstoque", { enumerable: true, get: function () { return logistics_1.SituacaoMovimentacaoEstoque; } });
|
|
55
59
|
Object.defineProperty(exports, "OrigemMovimentacaoEstoque", { enumerable: true, get: function () { return logistics_1.OrigemMovimentacaoEstoque; } });
|
|
56
|
-
var cash_1 = require("./cash");
|
|
57
|
-
Object.defineProperty(exports, "TipoCaixaOperacao", { enumerable: true, get: function () { return cash_1.TipoCaixaOperacao; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdz-enum",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.44",
|
|
4
4
|
"description": "Enumerados Moderniza",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "
|
|
12
|
+
"url": "https://github.com/moderniza-modershop/mdz-enum"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "willian.moderniza",
|
package/src/finance/index.ts
CHANGED
|
@@ -1,235 +1,311 @@
|
|
|
1
1
|
export const MeioPagamento = {
|
|
2
|
-
Dinheiro:
|
|
3
|
-
Cheque:
|
|
4
|
-
CartaoCredito:
|
|
5
|
-
CartaoDebito:
|
|
6
|
-
CreditoLoja:
|
|
7
|
-
ValeAlimentacao:
|
|
8
|
-
ValeRefeicao:
|
|
9
|
-
ValePresente:
|
|
10
|
-
ValeCombustivel:
|
|
11
|
-
BoletoBancario:
|
|
12
|
-
DepositoBancario:
|
|
13
|
-
PIX:
|
|
14
|
-
TransferenciaBancaria:
|
|
15
|
-
ProgramaFidelidade:
|
|
16
|
-
SemPagamento:
|
|
17
|
-
Outros:
|
|
2
|
+
Dinheiro: '01',
|
|
3
|
+
Cheque: '02',
|
|
4
|
+
CartaoCredito: '03',
|
|
5
|
+
CartaoDebito: '04',
|
|
6
|
+
CreditoLoja: '05',
|
|
7
|
+
ValeAlimentacao: '10',
|
|
8
|
+
ValeRefeicao: '11',
|
|
9
|
+
ValePresente: '12',
|
|
10
|
+
ValeCombustivel: '13',
|
|
11
|
+
BoletoBancario: '15',
|
|
12
|
+
DepositoBancario: '16',
|
|
13
|
+
PIX: '17',
|
|
14
|
+
TransferenciaBancaria: '18',
|
|
15
|
+
ProgramaFidelidade: '19',
|
|
16
|
+
SemPagamento: '90',
|
|
17
|
+
Outros: '99',
|
|
18
18
|
|
|
19
19
|
description(val: string) {
|
|
20
20
|
switch (val) {
|
|
21
21
|
case this.Dinheiro:
|
|
22
|
-
return
|
|
22
|
+
return 'Dinheiro'
|
|
23
23
|
|
|
24
24
|
case this.Cheque:
|
|
25
|
-
return
|
|
25
|
+
return 'Cheque'
|
|
26
26
|
|
|
27
27
|
case this.CartaoCredito:
|
|
28
|
-
return
|
|
28
|
+
return 'Cartão de Crédito'
|
|
29
29
|
|
|
30
30
|
case this.CartaoDebito:
|
|
31
|
-
return
|
|
31
|
+
return 'Cartão de Débito'
|
|
32
32
|
|
|
33
33
|
case this.CreditoLoja:
|
|
34
|
-
return
|
|
34
|
+
return 'Crédito Loja'
|
|
35
35
|
|
|
36
36
|
case this.ValeAlimentacao:
|
|
37
|
-
return
|
|
37
|
+
return 'Vale Alimentação'
|
|
38
38
|
|
|
39
39
|
case this.ValeRefeicao:
|
|
40
|
-
return
|
|
40
|
+
return 'Vale Refeição'
|
|
41
41
|
|
|
42
42
|
case this.ValePresente:
|
|
43
|
-
return
|
|
43
|
+
return 'Vale Presente'
|
|
44
44
|
|
|
45
45
|
case this.ValeCombustivel:
|
|
46
|
-
return
|
|
46
|
+
return 'Vale Combustível'
|
|
47
47
|
|
|
48
48
|
case this.BoletoBancario:
|
|
49
|
-
return
|
|
49
|
+
return 'Boleto Bancário'
|
|
50
50
|
|
|
51
51
|
case this.DepositoBancario:
|
|
52
|
-
return
|
|
52
|
+
return 'Depósito Bancário'
|
|
53
53
|
|
|
54
54
|
case this.PIX:
|
|
55
|
-
return
|
|
55
|
+
return 'Pagamento Instantâneo (PIX)'
|
|
56
56
|
|
|
57
57
|
case this.TransferenciaBancaria:
|
|
58
|
-
return
|
|
58
|
+
return 'Transferência Bancária'
|
|
59
59
|
|
|
60
60
|
case this.ProgramaFidelidade:
|
|
61
|
-
return
|
|
61
|
+
return 'Programa de Fidelidade'
|
|
62
62
|
|
|
63
63
|
case this.SemPagamento:
|
|
64
|
-
return
|
|
64
|
+
return 'Sem Pagamento'
|
|
65
65
|
|
|
66
66
|
case this.Outros:
|
|
67
|
-
return
|
|
67
|
+
return 'Outros'
|
|
68
68
|
|
|
69
69
|
default:
|
|
70
|
-
return
|
|
70
|
+
return 'enum not found'
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
|
|
75
75
|
export const IndicadorFormaPagamento = {
|
|
76
|
-
PagamentoAVista:
|
|
77
|
-
PagamentoAPrazo:
|
|
76
|
+
PagamentoAVista: '0',
|
|
77
|
+
PagamentoAPrazo: '1',
|
|
78
78
|
|
|
79
79
|
description(val: string) {
|
|
80
80
|
switch (val) {
|
|
81
81
|
case this.PagamentoAVista:
|
|
82
|
-
return
|
|
82
|
+
return 'Pagamento à Vista'
|
|
83
83
|
|
|
84
84
|
case this.PagamentoAPrazo:
|
|
85
|
-
return
|
|
85
|
+
return 'Pagamento à Prazo'
|
|
86
86
|
|
|
87
87
|
default:
|
|
88
|
-
return
|
|
88
|
+
return 'enum not found'
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
}
|
|
91
|
+
}
|
|
92
92
|
|
|
93
93
|
export const OperacaoOperadoraCartao = {
|
|
94
|
-
Credito:
|
|
95
|
-
Debito:
|
|
94
|
+
Credito: '1',
|
|
95
|
+
Debito: '2',
|
|
96
96
|
|
|
97
97
|
description(val: string) {
|
|
98
98
|
switch (val) {
|
|
99
99
|
case this.Credito:
|
|
100
|
-
return
|
|
100
|
+
return 'Crédito'
|
|
101
101
|
|
|
102
102
|
case this.Debito:
|
|
103
|
-
return
|
|
103
|
+
return 'Débito'
|
|
104
104
|
|
|
105
105
|
default:
|
|
106
|
-
return
|
|
106
|
+
return 'enum not found'
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
}
|
|
109
|
+
}
|
|
110
110
|
|
|
111
111
|
export const BandeiraCartao = {
|
|
112
|
-
Visa:
|
|
113
|
-
Mastercard:
|
|
114
|
-
AmericanExpress:
|
|
115
|
-
Sorocred:
|
|
116
|
-
DinersClub:
|
|
117
|
-
Elo:
|
|
118
|
-
Hipercard:
|
|
119
|
-
Aura:
|
|
120
|
-
Cabal:
|
|
121
|
-
Outros:
|
|
112
|
+
Visa: '01',
|
|
113
|
+
Mastercard: '02',
|
|
114
|
+
AmericanExpress: '03',
|
|
115
|
+
Sorocred: '04',
|
|
116
|
+
DinersClub: '05',
|
|
117
|
+
Elo: '06',
|
|
118
|
+
Hipercard: '07',
|
|
119
|
+
Aura: '08',
|
|
120
|
+
Cabal: '09',
|
|
121
|
+
Outros: '99',
|
|
122
122
|
|
|
123
123
|
description(val: string) {
|
|
124
124
|
switch (val) {
|
|
125
125
|
case this.Visa:
|
|
126
|
-
return
|
|
126
|
+
return 'Visa'
|
|
127
127
|
|
|
128
128
|
case this.Mastercard:
|
|
129
|
-
return
|
|
129
|
+
return 'Mastercard'
|
|
130
130
|
|
|
131
131
|
case this.AmericanExpress:
|
|
132
|
-
return
|
|
132
|
+
return 'American Express'
|
|
133
133
|
|
|
134
134
|
case this.Sorocred:
|
|
135
|
-
return
|
|
135
|
+
return 'Sorocred'
|
|
136
136
|
|
|
137
137
|
case this.DinersClub:
|
|
138
|
-
return
|
|
138
|
+
return 'Diners Club'
|
|
139
139
|
|
|
140
140
|
case this.Elo:
|
|
141
|
-
return
|
|
141
|
+
return 'Elo'
|
|
142
142
|
|
|
143
143
|
case this.Hipercard:
|
|
144
|
-
return
|
|
144
|
+
return 'Hipercard'
|
|
145
145
|
|
|
146
146
|
case this.Aura:
|
|
147
|
-
return
|
|
147
|
+
return 'Aura'
|
|
148
148
|
|
|
149
149
|
case this.Cabal:
|
|
150
|
-
return
|
|
150
|
+
return 'Cabal'
|
|
151
151
|
|
|
152
152
|
case this.Outros:
|
|
153
|
-
return
|
|
153
|
+
return 'Outros'
|
|
154
154
|
|
|
155
155
|
default:
|
|
156
|
-
return
|
|
156
|
+
return 'enum not found'
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
|
-
}
|
|
159
|
+
}
|
|
160
160
|
|
|
161
161
|
export const TipoCalculoParcelamento = {
|
|
162
|
-
Simples:
|
|
163
|
-
Composto:
|
|
162
|
+
Simples: '0',
|
|
163
|
+
Composto: '1',
|
|
164
164
|
|
|
165
165
|
description(val: string) {
|
|
166
166
|
switch (val) {
|
|
167
167
|
case this.Simples:
|
|
168
|
-
return
|
|
168
|
+
return 'Simples'
|
|
169
169
|
|
|
170
170
|
case this.Composto:
|
|
171
|
-
return
|
|
171
|
+
return 'Composto'
|
|
172
172
|
|
|
173
173
|
default:
|
|
174
|
-
return
|
|
174
|
+
return 'enum not found'
|
|
175
175
|
}
|
|
176
176
|
},
|
|
177
|
-
}
|
|
177
|
+
}
|
|
178
178
|
|
|
179
179
|
export const TipoPromocao = {
|
|
180
|
-
Percentual:
|
|
181
|
-
Valor:
|
|
180
|
+
Percentual: '0',
|
|
181
|
+
Valor: '1',
|
|
182
182
|
|
|
183
183
|
description(val: string) {
|
|
184
184
|
switch (val) {
|
|
185
185
|
case this.Percentual:
|
|
186
|
-
return
|
|
186
|
+
return 'Percentual'
|
|
187
187
|
|
|
188
188
|
case this.Valor:
|
|
189
|
-
return
|
|
189
|
+
return 'Valor'
|
|
190
190
|
|
|
191
191
|
default:
|
|
192
|
-
return
|
|
192
|
+
return 'enum not found'
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
}
|
|
195
|
+
}
|
|
196
196
|
|
|
197
|
-
export const
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
export const SituacaoDocumentoFinanceiro = {
|
|
198
|
+
Aberto: '0',
|
|
199
|
+
Quitado: '1',
|
|
200
|
+
Estornado: '2',
|
|
200
201
|
|
|
201
202
|
description(val: string) {
|
|
202
203
|
switch (val) {
|
|
203
|
-
case this.
|
|
204
|
-
return
|
|
204
|
+
case this.Aberto:
|
|
205
|
+
return 'Aberto'
|
|
205
206
|
|
|
206
|
-
case this.
|
|
207
|
-
return
|
|
207
|
+
case this.Quitado:
|
|
208
|
+
return 'Quitado'
|
|
209
|
+
|
|
210
|
+
case this.Estornado:
|
|
211
|
+
return 'Estornado'
|
|
208
212
|
|
|
209
213
|
default:
|
|
210
|
-
return
|
|
214
|
+
return 'enum not found'
|
|
211
215
|
}
|
|
212
216
|
},
|
|
213
|
-
}
|
|
217
|
+
}
|
|
214
218
|
|
|
215
|
-
export const
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
+
export const TipoLancamentoDocumentoFinanceiro = {
|
|
220
|
+
Abertura: '0',
|
|
221
|
+
Pagamento: '1',
|
|
222
|
+
Desconto: '2',
|
|
223
|
+
Acrescimo: '3',
|
|
224
|
+
Juros: '4',
|
|
225
|
+
Multa: '5',
|
|
219
226
|
|
|
220
227
|
description(val: string) {
|
|
221
228
|
switch (val) {
|
|
222
|
-
case this.
|
|
223
|
-
return
|
|
229
|
+
case this.Abertura:
|
|
230
|
+
return 'Abertura'
|
|
224
231
|
|
|
225
|
-
case this.
|
|
226
|
-
return
|
|
232
|
+
case this.Pagamento:
|
|
233
|
+
return 'Pagamento'
|
|
227
234
|
|
|
228
|
-
case this.
|
|
229
|
-
return
|
|
235
|
+
case this.Desconto:
|
|
236
|
+
return 'Desconto'
|
|
237
|
+
|
|
238
|
+
case this.Acrescimo:
|
|
239
|
+
return 'Acréscimo'
|
|
240
|
+
|
|
241
|
+
case this.Juros:
|
|
242
|
+
return 'Juros'
|
|
243
|
+
|
|
244
|
+
case this.Multa:
|
|
245
|
+
return 'Multa'
|
|
246
|
+
|
|
247
|
+
default:
|
|
248
|
+
return 'enum not found'
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export const TipoCaixaOperacao = {
|
|
254
|
+
Abertura: '0',
|
|
255
|
+
Entrada: '1',
|
|
256
|
+
Saida: '2',
|
|
257
|
+
Recebimento: '3',
|
|
258
|
+
Pagamento: '4',
|
|
259
|
+
Compra: '5',
|
|
260
|
+
Venda: '6',
|
|
261
|
+
Fechamento: '7',
|
|
262
|
+
|
|
263
|
+
description(val: string) {
|
|
264
|
+
switch (val) {
|
|
265
|
+
case this.Abertura:
|
|
266
|
+
return 'Abertura'
|
|
267
|
+
|
|
268
|
+
case this.Entrada:
|
|
269
|
+
return 'Entrada'
|
|
270
|
+
|
|
271
|
+
case this.Saida:
|
|
272
|
+
return 'Saída'
|
|
273
|
+
|
|
274
|
+
case this.Recebimento:
|
|
275
|
+
return 'Recebimento'
|
|
276
|
+
|
|
277
|
+
case this.Pagamento:
|
|
278
|
+
return 'Pagamento'
|
|
279
|
+
|
|
280
|
+
case this.Compra:
|
|
281
|
+
return 'Compra'
|
|
282
|
+
|
|
283
|
+
case this.Venda:
|
|
284
|
+
return 'Venda'
|
|
285
|
+
|
|
286
|
+
case this.Fechamento:
|
|
287
|
+
return 'Fechamento'
|
|
288
|
+
|
|
289
|
+
default:
|
|
290
|
+
return 'enum not found'
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export const SituacaoCaixa = {
|
|
296
|
+
Aberto: '0',
|
|
297
|
+
Fechado: '1',
|
|
298
|
+
|
|
299
|
+
description(val: string) {
|
|
300
|
+
switch (val) {
|
|
301
|
+
case this.Aberto:
|
|
302
|
+
return 'Aberto'
|
|
303
|
+
|
|
304
|
+
case this.Fechado:
|
|
305
|
+
return 'Fechado'
|
|
230
306
|
|
|
231
307
|
default:
|
|
232
|
-
return
|
|
308
|
+
return 'enum not found'
|
|
233
309
|
}
|
|
234
310
|
},
|
|
235
|
-
}
|
|
311
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,11 @@ export {
|
|
|
6
6
|
TipoCalculoParcelamento,
|
|
7
7
|
TipoPromocao,
|
|
8
8
|
IndicadorFormaPagamento,
|
|
9
|
-
BandeiraCartao
|
|
9
|
+
BandeiraCartao,
|
|
10
|
+
SituacaoDocumentoFinanceiro,
|
|
11
|
+
TipoLancamentoDocumentoFinanceiro,
|
|
12
|
+
TipoCaixaOperacao,
|
|
13
|
+
SituacaoCaixa,
|
|
10
14
|
} from './finance'
|
|
11
15
|
//teste de exportação
|
|
12
16
|
export {
|
|
@@ -33,7 +37,7 @@ export {
|
|
|
33
37
|
TipoEmissaoNotaFiscal,
|
|
34
38
|
TipoImpressaoDanfe,
|
|
35
39
|
SituacaoNotaFiscal,
|
|
36
|
-
TipoInformacaoAdicional
|
|
40
|
+
TipoInformacaoAdicional,
|
|
37
41
|
} from './fiscal'
|
|
38
42
|
|
|
39
43
|
export { Situacao } from './general'
|
|
@@ -43,7 +47,5 @@ export {
|
|
|
43
47
|
TipoProduto,
|
|
44
48
|
TipoValoracao,
|
|
45
49
|
SituacaoMovimentacaoEstoque,
|
|
46
|
-
OrigemMovimentacaoEstoque
|
|
50
|
+
OrigemMovimentacaoEstoque,
|
|
47
51
|
} from './logistics'
|
|
48
|
-
|
|
49
|
-
export { TipoCaixaOperacao } from './cash'
|
package/src/cash/index.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
|
-
}
|