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
- description(val: string): "enum not found" | "Erp" | "Ecommerce" | "Mercado Livre";
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;
@@ -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
  }
@@ -58,4 +58,5 @@ export declare const ProporcaoImagem: {
58
58
  '1/1': string;
59
59
  '9/16': string;
60
60
  description(val: string): "enum not found" | "1/1" | "9/16";
61
+ aspectRatioValue(val: string): number;
61
62
  };
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdz-enum",
3
- "version": "1.1.75",
3
+ "version": "1.1.77",
4
4
  "description": "Enumerados Moderniza",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {