mdz-enum 1.0.68 → 1.0.69
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.
|
@@ -33,5 +33,6 @@ export declare const TipoDescontoPromocao: {
|
|
|
33
33
|
export declare const TipoMarcketplace: {
|
|
34
34
|
MercadoLivre: string;
|
|
35
35
|
Ecommerce: string;
|
|
36
|
-
|
|
36
|
+
All: string;
|
|
37
|
+
description(val: string): "enum not found" | "Ecommerce" | "Mercado Livre" | "Todas integrações";
|
|
37
38
|
};
|
package/dist/commercial/index.js
CHANGED
|
@@ -95,12 +95,15 @@ exports.TipoDescontoPromocao = {
|
|
|
95
95
|
exports.TipoMarcketplace = {
|
|
96
96
|
MercadoLivre: '1',
|
|
97
97
|
Ecommerce: '2',
|
|
98
|
+
All: '3',
|
|
98
99
|
description(val) {
|
|
99
100
|
switch (val) {
|
|
100
101
|
case this.MercadoLivre:
|
|
101
102
|
return 'Mercado Livre';
|
|
102
103
|
case this.Ecommerce:
|
|
103
104
|
return 'Ecommerce';
|
|
105
|
+
case this.All:
|
|
106
|
+
return 'Todas integrações';
|
|
104
107
|
default:
|
|
105
108
|
return 'enum not found';
|
|
106
109
|
}
|
package/package.json
CHANGED
package/src/commercial/index.ts
CHANGED
|
@@ -119,6 +119,7 @@ export const TipoDescontoPromocao = {
|
|
|
119
119
|
export const TipoMarcketplace = {
|
|
120
120
|
MercadoLivre: '1',
|
|
121
121
|
Ecommerce: '2',
|
|
122
|
+
All: '3',
|
|
122
123
|
|
|
123
124
|
description(val: string) {
|
|
124
125
|
switch (val) {
|
|
@@ -128,6 +129,9 @@ export const TipoMarcketplace = {
|
|
|
128
129
|
case this.Ecommerce:
|
|
129
130
|
return 'Ecommerce'
|
|
130
131
|
|
|
132
|
+
case this.All:
|
|
133
|
+
return 'Todas integrações'
|
|
134
|
+
|
|
131
135
|
default:
|
|
132
136
|
return 'enum not found'
|
|
133
137
|
}
|