mdz-enum 1.0.49 → 1.0.50
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.
|
@@ -30,3 +30,8 @@ export declare const SituacaoPromocao: {
|
|
|
30
30
|
Inativo: string;
|
|
31
31
|
description(val: string): "enum not found" | "Ativo" | "Inativo";
|
|
32
32
|
};
|
|
33
|
+
export declare const TipoDescontoPromocao: {
|
|
34
|
+
Valor: string;
|
|
35
|
+
Percentual: string;
|
|
36
|
+
description(val: string): "enum not found" | "Valor" | "Percentual";
|
|
37
|
+
};
|
package/dist/commercial/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SituacaoPromocao = exports.TipoFrete = exports.OrigemPedido = exports.OperacaoPedido = exports.SituacaoPedido = void 0;
|
|
3
|
+
exports.TipoDescontoPromocao = exports.SituacaoPromocao = exports.TipoFrete = exports.OrigemPedido = exports.OperacaoPedido = exports.SituacaoPedido = void 0;
|
|
4
4
|
exports.SituacaoPedido = {
|
|
5
5
|
Edicao: '0',
|
|
6
6
|
Liberado: '1',
|
|
@@ -92,3 +92,17 @@ exports.SituacaoPromocao = {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
};
|
|
95
|
+
exports.TipoDescontoPromocao = {
|
|
96
|
+
Valor: '0',
|
|
97
|
+
Percentual: '1',
|
|
98
|
+
description(val) {
|
|
99
|
+
switch (val) {
|
|
100
|
+
case this.Valor:
|
|
101
|
+
return 'Valor';
|
|
102
|
+
case this.Percentual:
|
|
103
|
+
return 'Percentual';
|
|
104
|
+
default:
|
|
105
|
+
return 'enum not found';
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
};
|
package/dist/finance/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare const TipoCalculoParcelamento: {
|
|
|
48
48
|
export declare const TipoPromocao: {
|
|
49
49
|
Percentual: string;
|
|
50
50
|
Valor: string;
|
|
51
|
-
description(val: string): "enum not found" | "
|
|
51
|
+
description(val: string): "enum not found" | "Valor" | "Percentual";
|
|
52
52
|
};
|
|
53
53
|
export declare const SituacaoDocumentoFinanceiro: {
|
|
54
54
|
Aberto: string;
|
package/package.json
CHANGED
package/src/commercial/index.ts
CHANGED
|
@@ -115,3 +115,21 @@ export const SituacaoPromocao = {
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
export const TipoDescontoPromocao = {
|
|
120
|
+
Valor: '0',
|
|
121
|
+
Percentual: '1',
|
|
122
|
+
|
|
123
|
+
description(val: string) {
|
|
124
|
+
switch (val) {
|
|
125
|
+
case this.Valor:
|
|
126
|
+
return 'Valor'
|
|
127
|
+
|
|
128
|
+
case this.Percentual:
|
|
129
|
+
return 'Percentual'
|
|
130
|
+
|
|
131
|
+
default:
|
|
132
|
+
return 'enum not found'
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
}
|