mdz-enum 1.1.75 → 1.1.77
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.
|
@@ -23,7 +23,8 @@ export declare const OrigemPedido: {
|
|
|
23
23
|
Erp: string;
|
|
24
24
|
Ecommerce: string;
|
|
25
25
|
MercadoLivre: string;
|
|
26
|
-
|
|
26
|
+
PDV: string;
|
|
27
|
+
description(val: string): "enum not found" | "Erp" | "Ecommerce" | "Mercado Livre" | "PDV";
|
|
27
28
|
};
|
|
28
29
|
export declare const TipoFrete: {
|
|
29
30
|
ContratacaoContaRemetente: string;
|
package/dist/commercial/index.js
CHANGED
|
@@ -66,6 +66,7 @@ exports.OrigemPedido = {
|
|
|
66
66
|
Erp: '0',
|
|
67
67
|
Ecommerce: '1',
|
|
68
68
|
MercadoLivre: '2',
|
|
69
|
+
PDV: '3',
|
|
69
70
|
description(val) {
|
|
70
71
|
switch (val) {
|
|
71
72
|
case this.Erp:
|
|
@@ -74,6 +75,8 @@ exports.OrigemPedido = {
|
|
|
74
75
|
return 'Ecommerce';
|
|
75
76
|
case this.MercadoLivre:
|
|
76
77
|
return 'Mercado Livre';
|
|
78
|
+
case this.PDV:
|
|
79
|
+
return 'PDV';
|
|
77
80
|
default:
|
|
78
81
|
return 'enum not found';
|
|
79
82
|
}
|
package/dist/general/index.d.ts
CHANGED
package/dist/general/index.js
CHANGED
|
@@ -216,4 +216,14 @@ exports.ProporcaoImagem = {
|
|
|
216
216
|
return 'enum not found';
|
|
217
217
|
}
|
|
218
218
|
},
|
|
219
|
+
aspectRatioValue(val) {
|
|
220
|
+
switch (val) {
|
|
221
|
+
case this['1/1']:
|
|
222
|
+
return 1 / 1;
|
|
223
|
+
case this['9/16']:
|
|
224
|
+
return 9 / 16;
|
|
225
|
+
default:
|
|
226
|
+
return 1 / 1;
|
|
227
|
+
}
|
|
228
|
+
},
|
|
219
229
|
};
|