mdz-enum 1.2.6 → 1.2.8

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.
@@ -34,5 +34,7 @@ export declare const TipoAbrangenciaNotificacao: {
34
34
  };
35
35
  export declare const TipoNotificacao: {
36
36
  Teste: string;
37
- description(val: string): "enum not found" | "Teste...";
37
+ NovoPedidoGestao: string;
38
+ NovoPedidoEcommerce: string;
39
+ description(val: string): "enum not found" | "Teste..." | "Novo pedido foi criado!" | "Novo pedido recebido pelo Ecommerce";
38
40
  };
@@ -100,10 +100,16 @@ exports.TipoAbrangenciaNotificacao = {
100
100
  };
101
101
  exports.TipoNotificacao = {
102
102
  Teste: '0',
103
+ NovoPedidoGestao: '1',
104
+ NovoPedidoEcommerce: '2',
103
105
  description(val) {
104
106
  switch (val) {
105
107
  case this.Teste:
106
108
  return 'Teste...';
109
+ case this.NovoPedidoGestao:
110
+ return 'Novo pedido foi criado!';
111
+ case this.NovoPedidoEcommerce:
112
+ return 'Novo pedido recebido pelo Ecommerce';
107
113
  default:
108
114
  return 'enum not found';
109
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdz-enum",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "Enumerados Moderniza",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {