mdz-enum 1.6.34 → 1.6.35
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.
- package/README.MD +7 -7
- package/dist/checkout/index.d.ts +33 -33
- package/dist/checkout/index.js +97 -97
- package/dist/commercial/index.d.ts +245 -243
- package/dist/commercial/index.js +601 -595
- package/dist/common/index.d.ts +59 -59
- package/dist/common/index.js +171 -171
- package/dist/config/index.d.ts +182 -182
- package/dist/config/index.js +525 -525
- package/dist/eva/index.d.ts +142 -142
- package/dist/eva/index.js +170 -170
- package/dist/finance/index.d.ts +207 -207
- package/dist/finance/index.js +549 -549
- package/dist/fiscal/index.d.ts +536 -536
- package/dist/fiscal/index.js +1356 -1356
- package/dist/functions.d.ts +11 -11
- package/dist/functions.js +74 -74
- package/dist/general/index.d.ts +265 -265
- package/dist/general/index.js +512 -512
- package/dist/index.d.ts +15 -15
- package/dist/index.js +246 -246
- package/dist/integration/index.d.ts +27 -27
- package/dist/integration/index.js +80 -80
- package/dist/logistics/index.d.ts +142 -142
- package/dist/logistics/index.js +410 -410
- package/dist/marketplace/templates/components/index.d.ts +306 -306
- package/dist/marketplace/templates/components/index.js +331 -331
- package/dist/marketplace/templates/elements/index.d.ts +32 -32
- package/dist/marketplace/templates/elements/index.js +35 -35
- package/dist/marketplace/templates/index.d.ts +523 -526
- package/dist/marketplace/templates/index.js +48 -48
- package/dist/marketplace/templates/pages/index.d.ts +233 -233
- package/dist/marketplace/templates/pages/index.js +413 -413
- package/dist/marketplace/templates/reference/index.d.ts +24 -24
- package/dist/marketplace/templates/reference/index.js +26 -26
- package/dist/people/index.d.ts +62 -62
- package/dist/people/index.js +180 -180
- package/dist/platform/index.d.ts +207 -207
- package/dist/platform/index.js +600 -600
- package/dist/reports/index.d.ts +95 -95
- package/dist/reports/index.js +278 -278
- package/package.json +33 -33
package/dist/eva/index.d.ts
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
export declare const EvaOrigemMensagem: {
|
|
2
|
-
Manual: string;
|
|
3
|
-
Campanha: string;
|
|
4
|
-
Automacao: string;
|
|
5
|
-
PosVenda: string;
|
|
6
|
-
Aniversario: string;
|
|
7
|
-
description(val: string): "enum not found" | "Manual" | "Campanha" | "Automação" | "Pós-venda" | "Aniversário";
|
|
8
|
-
};
|
|
9
|
-
export declare const EvaSituacaoMensagem: {
|
|
10
|
-
Pendente: string;
|
|
11
|
-
Enviada: string;
|
|
12
|
-
Entregue: string;
|
|
13
|
-
Lida: string;
|
|
14
|
-
Respondida: string;
|
|
15
|
-
Convertida: string;
|
|
16
|
-
Falha: string;
|
|
17
|
-
description(val: string): "enum not found" | "Pendente" | "Enviada" | "Entregue" | "Lida" | "Respondida" | "Converteu" | "Falhou";
|
|
18
|
-
};
|
|
19
|
-
export declare const EvaSituacaoCampanha: {
|
|
20
|
-
Rascunho: string;
|
|
21
|
-
Enviando: string;
|
|
22
|
-
Pausada: string;
|
|
23
|
-
Concluida: string;
|
|
24
|
-
Cancelada: string;
|
|
25
|
-
description(val: string): "enum not found" | "Cancelada" | "Concluída" | "Rascunho" | "Enviando" | "Pausada";
|
|
26
|
-
};
|
|
27
|
-
export declare const EvaSituacaoCampanhaPessoa: {
|
|
28
|
-
Pendente: string;
|
|
29
|
-
Enviada: string;
|
|
30
|
-
Falha: string;
|
|
31
|
-
description(val: string): "enum not found" | "Pendente" | "Enviada" | "Falhou";
|
|
32
|
-
};
|
|
33
|
-
export type EvaTierValor = 'ouro' | 'prata' | 'bronze' | 'basico';
|
|
34
|
-
export declare const EvaTier: {
|
|
35
|
-
Ouro: string;
|
|
36
|
-
Prata: string;
|
|
37
|
-
Bronze: string;
|
|
38
|
-
Basico: string;
|
|
39
|
-
description(val: string): "enum not found" | "Ouro" | "Prata" | "Bronze" | "Básico";
|
|
40
|
-
};
|
|
41
|
-
export declare const EvaSituacaoConexaoWhatsapp: {
|
|
42
|
-
Conectado: string;
|
|
43
|
-
Iniciando: string;
|
|
44
|
-
AguardandoLeitura: string;
|
|
45
|
-
Desconectado: string;
|
|
46
|
-
Encerrando: string;
|
|
47
|
-
Falha: string;
|
|
48
|
-
Indisponivel: string;
|
|
49
|
-
description(val: string): "enum not found" | "Falhou" | "Conectado" | "Iniciando" | "Aguardando leitura" | "Desconectado" | "Encerrando" | "WhatsApp indisponível";
|
|
50
|
-
};
|
|
51
|
-
export declare const VariaveisPosVenda: {
|
|
52
|
-
PrimeiroNome: {
|
|
53
|
-
Descricao: string;
|
|
54
|
-
Chave: string;
|
|
55
|
-
};
|
|
56
|
-
Nome: {
|
|
57
|
-
Descricao: string;
|
|
58
|
-
Chave: string;
|
|
59
|
-
};
|
|
60
|
-
Loja: {
|
|
61
|
-
Descricao: string;
|
|
62
|
-
Chave: string;
|
|
63
|
-
};
|
|
64
|
-
Vendedor: {
|
|
65
|
-
Descricao: string;
|
|
66
|
-
Chave: string;
|
|
67
|
-
};
|
|
68
|
-
ValorCompra: {
|
|
69
|
-
Descricao: string;
|
|
70
|
-
Chave: string;
|
|
71
|
-
};
|
|
72
|
-
DataCompra: {
|
|
73
|
-
Descricao: string;
|
|
74
|
-
Chave: string;
|
|
75
|
-
};
|
|
76
|
-
NumeroNota: {
|
|
77
|
-
Descricao: string;
|
|
78
|
-
Chave: string;
|
|
79
|
-
};
|
|
80
|
-
CategoriaComprada: {
|
|
81
|
-
Descricao: string;
|
|
82
|
-
Chave: string;
|
|
83
|
-
};
|
|
84
|
-
CashbackCompra: {
|
|
85
|
-
Descricao: string;
|
|
86
|
-
Chave: string;
|
|
87
|
-
};
|
|
88
|
-
CashbackDisponivel: {
|
|
89
|
-
Descricao: string;
|
|
90
|
-
Chave: string;
|
|
91
|
-
};
|
|
92
|
-
Cupom: {
|
|
93
|
-
Descricao: string;
|
|
94
|
-
Chave: string;
|
|
95
|
-
};
|
|
96
|
-
CupomDesconto: {
|
|
97
|
-
Descricao: string;
|
|
98
|
-
Chave: string;
|
|
99
|
-
};
|
|
100
|
-
CupomValidade: {
|
|
101
|
-
Descricao: string;
|
|
102
|
-
Chave: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
export declare const VariaveisAniversario: {
|
|
106
|
-
PrimeiroNome: {
|
|
107
|
-
Descricao: string;
|
|
108
|
-
Chave: string;
|
|
109
|
-
};
|
|
110
|
-
Nome: {
|
|
111
|
-
Descricao: string;
|
|
112
|
-
Chave: string;
|
|
113
|
-
};
|
|
114
|
-
Loja: {
|
|
115
|
-
Descricao: string;
|
|
116
|
-
Chave: string;
|
|
117
|
-
};
|
|
118
|
-
Vendedor: {
|
|
119
|
-
Descricao: string;
|
|
120
|
-
Chave: string;
|
|
121
|
-
};
|
|
122
|
-
CategoriaPreferida: {
|
|
123
|
-
Descricao: string;
|
|
124
|
-
Chave: string;
|
|
125
|
-
};
|
|
126
|
-
CashbackDisponivel: {
|
|
127
|
-
Descricao: string;
|
|
128
|
-
Chave: string;
|
|
129
|
-
};
|
|
130
|
-
Cupom: {
|
|
131
|
-
Descricao: string;
|
|
132
|
-
Chave: string;
|
|
133
|
-
};
|
|
134
|
-
CupomDesconto: {
|
|
135
|
-
Descricao: string;
|
|
136
|
-
Chave: string;
|
|
137
|
-
};
|
|
138
|
-
CupomValidade: {
|
|
139
|
-
Descricao: string;
|
|
140
|
-
Chave: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
1
|
+
export declare const EvaOrigemMensagem: {
|
|
2
|
+
Manual: string;
|
|
3
|
+
Campanha: string;
|
|
4
|
+
Automacao: string;
|
|
5
|
+
PosVenda: string;
|
|
6
|
+
Aniversario: string;
|
|
7
|
+
description(val: string): "enum not found" | "Manual" | "Campanha" | "Automação" | "Pós-venda" | "Aniversário";
|
|
8
|
+
};
|
|
9
|
+
export declare const EvaSituacaoMensagem: {
|
|
10
|
+
Pendente: string;
|
|
11
|
+
Enviada: string;
|
|
12
|
+
Entregue: string;
|
|
13
|
+
Lida: string;
|
|
14
|
+
Respondida: string;
|
|
15
|
+
Convertida: string;
|
|
16
|
+
Falha: string;
|
|
17
|
+
description(val: string): "enum not found" | "Pendente" | "Enviada" | "Entregue" | "Lida" | "Respondida" | "Converteu" | "Falhou";
|
|
18
|
+
};
|
|
19
|
+
export declare const EvaSituacaoCampanha: {
|
|
20
|
+
Rascunho: string;
|
|
21
|
+
Enviando: string;
|
|
22
|
+
Pausada: string;
|
|
23
|
+
Concluida: string;
|
|
24
|
+
Cancelada: string;
|
|
25
|
+
description(val: string): "enum not found" | "Cancelada" | "Concluída" | "Rascunho" | "Enviando" | "Pausada";
|
|
26
|
+
};
|
|
27
|
+
export declare const EvaSituacaoCampanhaPessoa: {
|
|
28
|
+
Pendente: string;
|
|
29
|
+
Enviada: string;
|
|
30
|
+
Falha: string;
|
|
31
|
+
description(val: string): "enum not found" | "Pendente" | "Enviada" | "Falhou";
|
|
32
|
+
};
|
|
33
|
+
export type EvaTierValor = 'ouro' | 'prata' | 'bronze' | 'basico';
|
|
34
|
+
export declare const EvaTier: {
|
|
35
|
+
Ouro: string;
|
|
36
|
+
Prata: string;
|
|
37
|
+
Bronze: string;
|
|
38
|
+
Basico: string;
|
|
39
|
+
description(val: string): "enum not found" | "Ouro" | "Prata" | "Bronze" | "Básico";
|
|
40
|
+
};
|
|
41
|
+
export declare const EvaSituacaoConexaoWhatsapp: {
|
|
42
|
+
Conectado: string;
|
|
43
|
+
Iniciando: string;
|
|
44
|
+
AguardandoLeitura: string;
|
|
45
|
+
Desconectado: string;
|
|
46
|
+
Encerrando: string;
|
|
47
|
+
Falha: string;
|
|
48
|
+
Indisponivel: string;
|
|
49
|
+
description(val: string): "enum not found" | "Falhou" | "Conectado" | "Iniciando" | "Aguardando leitura" | "Desconectado" | "Encerrando" | "WhatsApp indisponível";
|
|
50
|
+
};
|
|
51
|
+
export declare const VariaveisPosVenda: {
|
|
52
|
+
PrimeiroNome: {
|
|
53
|
+
Descricao: string;
|
|
54
|
+
Chave: string;
|
|
55
|
+
};
|
|
56
|
+
Nome: {
|
|
57
|
+
Descricao: string;
|
|
58
|
+
Chave: string;
|
|
59
|
+
};
|
|
60
|
+
Loja: {
|
|
61
|
+
Descricao: string;
|
|
62
|
+
Chave: string;
|
|
63
|
+
};
|
|
64
|
+
Vendedor: {
|
|
65
|
+
Descricao: string;
|
|
66
|
+
Chave: string;
|
|
67
|
+
};
|
|
68
|
+
ValorCompra: {
|
|
69
|
+
Descricao: string;
|
|
70
|
+
Chave: string;
|
|
71
|
+
};
|
|
72
|
+
DataCompra: {
|
|
73
|
+
Descricao: string;
|
|
74
|
+
Chave: string;
|
|
75
|
+
};
|
|
76
|
+
NumeroNota: {
|
|
77
|
+
Descricao: string;
|
|
78
|
+
Chave: string;
|
|
79
|
+
};
|
|
80
|
+
CategoriaComprada: {
|
|
81
|
+
Descricao: string;
|
|
82
|
+
Chave: string;
|
|
83
|
+
};
|
|
84
|
+
CashbackCompra: {
|
|
85
|
+
Descricao: string;
|
|
86
|
+
Chave: string;
|
|
87
|
+
};
|
|
88
|
+
CashbackDisponivel: {
|
|
89
|
+
Descricao: string;
|
|
90
|
+
Chave: string;
|
|
91
|
+
};
|
|
92
|
+
Cupom: {
|
|
93
|
+
Descricao: string;
|
|
94
|
+
Chave: string;
|
|
95
|
+
};
|
|
96
|
+
CupomDesconto: {
|
|
97
|
+
Descricao: string;
|
|
98
|
+
Chave: string;
|
|
99
|
+
};
|
|
100
|
+
CupomValidade: {
|
|
101
|
+
Descricao: string;
|
|
102
|
+
Chave: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export declare const VariaveisAniversario: {
|
|
106
|
+
PrimeiroNome: {
|
|
107
|
+
Descricao: string;
|
|
108
|
+
Chave: string;
|
|
109
|
+
};
|
|
110
|
+
Nome: {
|
|
111
|
+
Descricao: string;
|
|
112
|
+
Chave: string;
|
|
113
|
+
};
|
|
114
|
+
Loja: {
|
|
115
|
+
Descricao: string;
|
|
116
|
+
Chave: string;
|
|
117
|
+
};
|
|
118
|
+
Vendedor: {
|
|
119
|
+
Descricao: string;
|
|
120
|
+
Chave: string;
|
|
121
|
+
};
|
|
122
|
+
CategoriaPreferida: {
|
|
123
|
+
Descricao: string;
|
|
124
|
+
Chave: string;
|
|
125
|
+
};
|
|
126
|
+
CashbackDisponivel: {
|
|
127
|
+
Descricao: string;
|
|
128
|
+
Chave: string;
|
|
129
|
+
};
|
|
130
|
+
Cupom: {
|
|
131
|
+
Descricao: string;
|
|
132
|
+
Chave: string;
|
|
133
|
+
};
|
|
134
|
+
CupomDesconto: {
|
|
135
|
+
Descricao: string;
|
|
136
|
+
Chave: string;
|
|
137
|
+
};
|
|
138
|
+
CupomValidade: {
|
|
139
|
+
Descricao: string;
|
|
140
|
+
Chave: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
package/dist/eva/index.js
CHANGED
|
@@ -1,170 +1,170 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VariaveisAniversario = exports.VariaveisPosVenda = exports.EvaSituacaoConexaoWhatsapp = exports.EvaTier = exports.EvaSituacaoCampanhaPessoa = exports.EvaSituacaoCampanha = exports.EvaSituacaoMensagem = exports.EvaOrigemMensagem = void 0;
|
|
4
|
-
exports.EvaOrigemMensagem = {
|
|
5
|
-
Manual: '0',
|
|
6
|
-
Campanha: '1',
|
|
7
|
-
Automacao: '2',
|
|
8
|
-
PosVenda: '3',
|
|
9
|
-
Aniversario: '4',
|
|
10
|
-
description(val) {
|
|
11
|
-
switch (val) {
|
|
12
|
-
case this.Manual:
|
|
13
|
-
return 'Manual';
|
|
14
|
-
case this.Campanha:
|
|
15
|
-
return 'Campanha';
|
|
16
|
-
case this.Automacao:
|
|
17
|
-
return 'Automação';
|
|
18
|
-
case this.PosVenda:
|
|
19
|
-
return 'Pós-venda';
|
|
20
|
-
case this.Aniversario:
|
|
21
|
-
return 'Aniversário';
|
|
22
|
-
default:
|
|
23
|
-
return 'enum not found';
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
exports.EvaSituacaoMensagem = {
|
|
28
|
-
Pendente: '0',
|
|
29
|
-
Enviada: '1',
|
|
30
|
-
Entregue: '2',
|
|
31
|
-
Lida: '3',
|
|
32
|
-
Respondida: '4',
|
|
33
|
-
Convertida: '5',
|
|
34
|
-
Falha: '9',
|
|
35
|
-
description(val) {
|
|
36
|
-
switch (val) {
|
|
37
|
-
case this.Pendente:
|
|
38
|
-
return 'Pendente';
|
|
39
|
-
case this.Enviada:
|
|
40
|
-
return 'Enviada';
|
|
41
|
-
case this.Entregue:
|
|
42
|
-
return 'Entregue';
|
|
43
|
-
case this.Lida:
|
|
44
|
-
return 'Lida';
|
|
45
|
-
case this.Respondida:
|
|
46
|
-
return 'Respondida';
|
|
47
|
-
case this.Convertida:
|
|
48
|
-
return 'Converteu';
|
|
49
|
-
case this.Falha:
|
|
50
|
-
return 'Falhou';
|
|
51
|
-
default:
|
|
52
|
-
return 'enum not found';
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
exports.EvaSituacaoCampanha = {
|
|
57
|
-
Rascunho: '0',
|
|
58
|
-
Enviando: '2',
|
|
59
|
-
Pausada: '3',
|
|
60
|
-
Concluida: '4',
|
|
61
|
-
Cancelada: '9',
|
|
62
|
-
description(val) {
|
|
63
|
-
switch (val) {
|
|
64
|
-
case this.Rascunho:
|
|
65
|
-
return 'Rascunho';
|
|
66
|
-
case this.Enviando:
|
|
67
|
-
return 'Enviando';
|
|
68
|
-
case this.Pausada:
|
|
69
|
-
return 'Pausada';
|
|
70
|
-
case this.Concluida:
|
|
71
|
-
return 'Concluída';
|
|
72
|
-
case this.Cancelada:
|
|
73
|
-
return 'Cancelada';
|
|
74
|
-
default:
|
|
75
|
-
return 'enum not found';
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
exports.EvaSituacaoCampanhaPessoa = {
|
|
80
|
-
Pendente: '0',
|
|
81
|
-
Enviada: '1',
|
|
82
|
-
Falha: '9',
|
|
83
|
-
description(val) {
|
|
84
|
-
switch (val) {
|
|
85
|
-
case this.Pendente:
|
|
86
|
-
return 'Pendente';
|
|
87
|
-
case this.Enviada:
|
|
88
|
-
return 'Enviada';
|
|
89
|
-
case this.Falha:
|
|
90
|
-
return 'Falhou';
|
|
91
|
-
default:
|
|
92
|
-
return 'enum not found';
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
};
|
|
96
|
-
exports.EvaTier = {
|
|
97
|
-
Ouro: 'ouro',
|
|
98
|
-
Prata: 'prata',
|
|
99
|
-
Bronze: 'bronze',
|
|
100
|
-
Basico: 'basico',
|
|
101
|
-
description(val) {
|
|
102
|
-
switch (val) {
|
|
103
|
-
case this.Ouro:
|
|
104
|
-
return 'Ouro';
|
|
105
|
-
case this.Prata:
|
|
106
|
-
return 'Prata';
|
|
107
|
-
case this.Bronze:
|
|
108
|
-
return 'Bronze';
|
|
109
|
-
case this.Basico:
|
|
110
|
-
return 'Básico';
|
|
111
|
-
default:
|
|
112
|
-
return 'enum not found';
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
exports.EvaSituacaoConexaoWhatsapp = {
|
|
117
|
-
Conectado: 'WORKING',
|
|
118
|
-
Iniciando: 'STARTING',
|
|
119
|
-
AguardandoLeitura: 'SCAN_QR_CODE',
|
|
120
|
-
Desconectado: 'STOPPED',
|
|
121
|
-
Encerrando: 'STOPPING',
|
|
122
|
-
Falha: 'FAILED',
|
|
123
|
-
Indisponivel: 'INDISPONIVEL',
|
|
124
|
-
description(val) {
|
|
125
|
-
switch (val) {
|
|
126
|
-
case this.Conectado:
|
|
127
|
-
return 'Conectado';
|
|
128
|
-
case this.Iniciando:
|
|
129
|
-
return 'Iniciando';
|
|
130
|
-
case this.AguardandoLeitura:
|
|
131
|
-
return 'Aguardando leitura';
|
|
132
|
-
case this.Desconectado:
|
|
133
|
-
return 'Desconectado';
|
|
134
|
-
case this.Encerrando:
|
|
135
|
-
return 'Encerrando';
|
|
136
|
-
case this.Falha:
|
|
137
|
-
return 'Falhou';
|
|
138
|
-
case this.Indisponivel:
|
|
139
|
-
return 'WhatsApp indisponível';
|
|
140
|
-
default:
|
|
141
|
-
return 'enum not found';
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
};
|
|
145
|
-
exports.VariaveisPosVenda = {
|
|
146
|
-
PrimeiroNome: { Descricao: 'Primeiro nome do cliente', Chave: '<primeiro_nome>' },
|
|
147
|
-
Nome: { Descricao: 'Nome completo do cliente', Chave: '<nome>' },
|
|
148
|
-
Loja: { Descricao: 'Nome da loja', Chave: '<loja>' },
|
|
149
|
-
Vendedor: { Descricao: 'Nome do vendedor', Chave: '<vendedor>' },
|
|
150
|
-
ValorCompra: { Descricao: 'Valor da compra', Chave: '<valor_compra>' },
|
|
151
|
-
DataCompra: { Descricao: 'Data da compra', Chave: '<data_compra>' },
|
|
152
|
-
NumeroNota: { Descricao: 'Número da nota', Chave: '<numero_nota>' },
|
|
153
|
-
CategoriaComprada: { Descricao: 'Categoria que ele levou', Chave: '<categoria_comprada>' },
|
|
154
|
-
CashbackCompra: { Descricao: 'Cashback que esta compra gerou', Chave: '<cashback_compra>' },
|
|
155
|
-
CashbackDisponivel: { Descricao: 'Cashback disponível para usar', Chave: '<cashback_disponivel>' },
|
|
156
|
-
Cupom: { Descricao: 'Código do cupom', Chave: '<cupom>' },
|
|
157
|
-
CupomDesconto: { Descricao: 'Desconto do cupom', Chave: '<cupom_desconto>' },
|
|
158
|
-
CupomValidade: { Descricao: 'Validade do cupom', Chave: '<cupom_validade>' },
|
|
159
|
-
};
|
|
160
|
-
exports.VariaveisAniversario = {
|
|
161
|
-
PrimeiroNome: { Descricao: 'Primeiro nome do cliente', Chave: '<primeiro_nome>' },
|
|
162
|
-
Nome: { Descricao: 'Nome completo do cliente', Chave: '<nome>' },
|
|
163
|
-
Loja: { Descricao: 'Nome da loja', Chave: '<loja>' },
|
|
164
|
-
Vendedor: { Descricao: 'Nome do vendedor', Chave: '<vendedor>' },
|
|
165
|
-
CategoriaPreferida: { Descricao: 'Categoria que ele costuma comprar', Chave: '<categoria_preferida>' },
|
|
166
|
-
CashbackDisponivel: { Descricao: 'Cashback disponível para usar', Chave: '<cashback_disponivel>' },
|
|
167
|
-
Cupom: { Descricao: 'Código do cupom', Chave: '<cupom>' },
|
|
168
|
-
CupomDesconto: { Descricao: 'Desconto do cupom', Chave: '<cupom_desconto>' },
|
|
169
|
-
CupomValidade: { Descricao: 'Validade do cupom', Chave: '<cupom_validade>' },
|
|
170
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VariaveisAniversario = exports.VariaveisPosVenda = exports.EvaSituacaoConexaoWhatsapp = exports.EvaTier = exports.EvaSituacaoCampanhaPessoa = exports.EvaSituacaoCampanha = exports.EvaSituacaoMensagem = exports.EvaOrigemMensagem = void 0;
|
|
4
|
+
exports.EvaOrigemMensagem = {
|
|
5
|
+
Manual: '0',
|
|
6
|
+
Campanha: '1',
|
|
7
|
+
Automacao: '2',
|
|
8
|
+
PosVenda: '3',
|
|
9
|
+
Aniversario: '4',
|
|
10
|
+
description(val) {
|
|
11
|
+
switch (val) {
|
|
12
|
+
case this.Manual:
|
|
13
|
+
return 'Manual';
|
|
14
|
+
case this.Campanha:
|
|
15
|
+
return 'Campanha';
|
|
16
|
+
case this.Automacao:
|
|
17
|
+
return 'Automação';
|
|
18
|
+
case this.PosVenda:
|
|
19
|
+
return 'Pós-venda';
|
|
20
|
+
case this.Aniversario:
|
|
21
|
+
return 'Aniversário';
|
|
22
|
+
default:
|
|
23
|
+
return 'enum not found';
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
exports.EvaSituacaoMensagem = {
|
|
28
|
+
Pendente: '0',
|
|
29
|
+
Enviada: '1',
|
|
30
|
+
Entregue: '2',
|
|
31
|
+
Lida: '3',
|
|
32
|
+
Respondida: '4',
|
|
33
|
+
Convertida: '5',
|
|
34
|
+
Falha: '9',
|
|
35
|
+
description(val) {
|
|
36
|
+
switch (val) {
|
|
37
|
+
case this.Pendente:
|
|
38
|
+
return 'Pendente';
|
|
39
|
+
case this.Enviada:
|
|
40
|
+
return 'Enviada';
|
|
41
|
+
case this.Entregue:
|
|
42
|
+
return 'Entregue';
|
|
43
|
+
case this.Lida:
|
|
44
|
+
return 'Lida';
|
|
45
|
+
case this.Respondida:
|
|
46
|
+
return 'Respondida';
|
|
47
|
+
case this.Convertida:
|
|
48
|
+
return 'Converteu';
|
|
49
|
+
case this.Falha:
|
|
50
|
+
return 'Falhou';
|
|
51
|
+
default:
|
|
52
|
+
return 'enum not found';
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
exports.EvaSituacaoCampanha = {
|
|
57
|
+
Rascunho: '0',
|
|
58
|
+
Enviando: '2',
|
|
59
|
+
Pausada: '3',
|
|
60
|
+
Concluida: '4',
|
|
61
|
+
Cancelada: '9',
|
|
62
|
+
description(val) {
|
|
63
|
+
switch (val) {
|
|
64
|
+
case this.Rascunho:
|
|
65
|
+
return 'Rascunho';
|
|
66
|
+
case this.Enviando:
|
|
67
|
+
return 'Enviando';
|
|
68
|
+
case this.Pausada:
|
|
69
|
+
return 'Pausada';
|
|
70
|
+
case this.Concluida:
|
|
71
|
+
return 'Concluída';
|
|
72
|
+
case this.Cancelada:
|
|
73
|
+
return 'Cancelada';
|
|
74
|
+
default:
|
|
75
|
+
return 'enum not found';
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
exports.EvaSituacaoCampanhaPessoa = {
|
|
80
|
+
Pendente: '0',
|
|
81
|
+
Enviada: '1',
|
|
82
|
+
Falha: '9',
|
|
83
|
+
description(val) {
|
|
84
|
+
switch (val) {
|
|
85
|
+
case this.Pendente:
|
|
86
|
+
return 'Pendente';
|
|
87
|
+
case this.Enviada:
|
|
88
|
+
return 'Enviada';
|
|
89
|
+
case this.Falha:
|
|
90
|
+
return 'Falhou';
|
|
91
|
+
default:
|
|
92
|
+
return 'enum not found';
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
exports.EvaTier = {
|
|
97
|
+
Ouro: 'ouro',
|
|
98
|
+
Prata: 'prata',
|
|
99
|
+
Bronze: 'bronze',
|
|
100
|
+
Basico: 'basico',
|
|
101
|
+
description(val) {
|
|
102
|
+
switch (val) {
|
|
103
|
+
case this.Ouro:
|
|
104
|
+
return 'Ouro';
|
|
105
|
+
case this.Prata:
|
|
106
|
+
return 'Prata';
|
|
107
|
+
case this.Bronze:
|
|
108
|
+
return 'Bronze';
|
|
109
|
+
case this.Basico:
|
|
110
|
+
return 'Básico';
|
|
111
|
+
default:
|
|
112
|
+
return 'enum not found';
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
exports.EvaSituacaoConexaoWhatsapp = {
|
|
117
|
+
Conectado: 'WORKING',
|
|
118
|
+
Iniciando: 'STARTING',
|
|
119
|
+
AguardandoLeitura: 'SCAN_QR_CODE',
|
|
120
|
+
Desconectado: 'STOPPED',
|
|
121
|
+
Encerrando: 'STOPPING',
|
|
122
|
+
Falha: 'FAILED',
|
|
123
|
+
Indisponivel: 'INDISPONIVEL',
|
|
124
|
+
description(val) {
|
|
125
|
+
switch (val) {
|
|
126
|
+
case this.Conectado:
|
|
127
|
+
return 'Conectado';
|
|
128
|
+
case this.Iniciando:
|
|
129
|
+
return 'Iniciando';
|
|
130
|
+
case this.AguardandoLeitura:
|
|
131
|
+
return 'Aguardando leitura';
|
|
132
|
+
case this.Desconectado:
|
|
133
|
+
return 'Desconectado';
|
|
134
|
+
case this.Encerrando:
|
|
135
|
+
return 'Encerrando';
|
|
136
|
+
case this.Falha:
|
|
137
|
+
return 'Falhou';
|
|
138
|
+
case this.Indisponivel:
|
|
139
|
+
return 'WhatsApp indisponível';
|
|
140
|
+
default:
|
|
141
|
+
return 'enum not found';
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
exports.VariaveisPosVenda = {
|
|
146
|
+
PrimeiroNome: { Descricao: 'Primeiro nome do cliente', Chave: '<primeiro_nome>' },
|
|
147
|
+
Nome: { Descricao: 'Nome completo do cliente', Chave: '<nome>' },
|
|
148
|
+
Loja: { Descricao: 'Nome da loja', Chave: '<loja>' },
|
|
149
|
+
Vendedor: { Descricao: 'Nome do vendedor', Chave: '<vendedor>' },
|
|
150
|
+
ValorCompra: { Descricao: 'Valor da compra', Chave: '<valor_compra>' },
|
|
151
|
+
DataCompra: { Descricao: 'Data da compra', Chave: '<data_compra>' },
|
|
152
|
+
NumeroNota: { Descricao: 'Número da nota', Chave: '<numero_nota>' },
|
|
153
|
+
CategoriaComprada: { Descricao: 'Categoria que ele levou', Chave: '<categoria_comprada>' },
|
|
154
|
+
CashbackCompra: { Descricao: 'Cashback que esta compra gerou', Chave: '<cashback_compra>' },
|
|
155
|
+
CashbackDisponivel: { Descricao: 'Cashback disponível para usar', Chave: '<cashback_disponivel>' },
|
|
156
|
+
Cupom: { Descricao: 'Código do cupom', Chave: '<cupom>' },
|
|
157
|
+
CupomDesconto: { Descricao: 'Desconto do cupom', Chave: '<cupom_desconto>' },
|
|
158
|
+
CupomValidade: { Descricao: 'Validade do cupom', Chave: '<cupom_validade>' },
|
|
159
|
+
};
|
|
160
|
+
exports.VariaveisAniversario = {
|
|
161
|
+
PrimeiroNome: { Descricao: 'Primeiro nome do cliente', Chave: '<primeiro_nome>' },
|
|
162
|
+
Nome: { Descricao: 'Nome completo do cliente', Chave: '<nome>' },
|
|
163
|
+
Loja: { Descricao: 'Nome da loja', Chave: '<loja>' },
|
|
164
|
+
Vendedor: { Descricao: 'Nome do vendedor', Chave: '<vendedor>' },
|
|
165
|
+
CategoriaPreferida: { Descricao: 'Categoria que ele costuma comprar', Chave: '<categoria_preferida>' },
|
|
166
|
+
CashbackDisponivel: { Descricao: 'Cashback disponível para usar', Chave: '<cashback_disponivel>' },
|
|
167
|
+
Cupom: { Descricao: 'Código do cupom', Chave: '<cupom>' },
|
|
168
|
+
CupomDesconto: { Descricao: 'Desconto do cupom', Chave: '<cupom_desconto>' },
|
|
169
|
+
CupomValidade: { Descricao: 'Validade do cupom', Chave: '<cupom_validade>' },
|
|
170
|
+
};
|