mdz-enum 1.7.46 → 1.7.48
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/dist/checkout/index.d.ts +33 -33
- package/dist/checkout/index.js +97 -97
- package/dist/commercial/index.d.ts +286 -286
- package/dist/commercial/index.js +726 -726
- package/dist/common/index.d.ts +75 -75
- package/dist/common/index.js +217 -217
- package/dist/config/index.d.ts +238 -238
- package/dist/config/index.js +734 -734
- package/dist/eva/index.d.ts +198 -198
- package/dist/eva/index.js +330 -330
- package/dist/finance/index.d.ts +243 -243
- package/dist/finance/index.js +737 -737
- package/dist/fiscal/index.d.ts +612 -612
- package/dist/fiscal/index.js +1593 -1593
- package/dist/functions.d.ts +11 -11
- package/dist/functions.js +74 -74
- package/dist/general/index.d.ts +266 -266
- package/dist/general/index.js +515 -515
- package/dist/home/index.d.ts +88 -88
- package/dist/home/index.js +268 -268
- package/dist/index.d.ts +17 -17
- package/dist/index.js +339 -337
- package/dist/integration/index.d.ts +37 -37
- package/dist/integration/index.js +109 -109
- package/dist/logistics/index.d.ts +322 -322
- package/dist/logistics/index.js +920 -920
- package/dist/marketplace/templates/components/index.d.ts +352 -352
- package/dist/marketplace/templates/components/index.js +383 -383
- 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 +597 -600
- package/dist/marketplace/templates/index.js +49 -49
- package/dist/marketplace/templates/pages/index.d.ts +268 -268
- package/dist/marketplace/templates/pages/index.js +457 -457
- package/dist/marketplace/templates/reference/index.d.ts +29 -29
- package/dist/marketplace/templates/reference/index.js +31 -31
- package/dist/people/index.d.ts +66 -66
- package/dist/people/index.js +192 -192
- package/dist/platform/index.d.ts +390 -390
- package/dist/platform/index.js +1211 -1211
- package/dist/reports/index.d.ts +127 -108
- package/dist/reports/index.js +371 -316
- package/dist/service/index.d.ts +73 -73
- package/dist/service/index.js +225 -225
- package/package.json +32 -32
package/dist/service/index.d.ts
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
export declare const SituacaoAgendamento: {
|
|
2
|
-
Agendado: string;
|
|
3
|
-
Confirmado: string;
|
|
4
|
-
EmAtendimento: string;
|
|
5
|
-
Concluido: string;
|
|
6
|
-
Cancelado: string;
|
|
7
|
-
NaoCompareceu: string;
|
|
8
|
-
description(val: string): "" | "
|
|
9
|
-
};
|
|
10
|
-
export declare const SituacoesAgendamentoOcupamAgenda: string[];
|
|
11
|
-
export declare const SituacoesAgendamentoEditaveis: string[];
|
|
12
|
-
export declare const TransicoesSituacaoAgendamento: Record<string, string[]>;
|
|
13
|
-
export declare const TipoAgendaHorario: {
|
|
14
|
-
Funcionamento: string;
|
|
15
|
-
Bloqueio: string;
|
|
16
|
-
description(val: string): "" | "
|
|
17
|
-
};
|
|
18
|
-
export declare const DiaSemana: {
|
|
19
|
-
Domingo: number;
|
|
20
|
-
Segunda: number;
|
|
21
|
-
Terca: number;
|
|
22
|
-
Quarta: number;
|
|
23
|
-
Quinta: number;
|
|
24
|
-
Sexta: number;
|
|
25
|
-
Sabado: number;
|
|
26
|
-
description(val: number): "" | "Dom" | "
|
|
27
|
-
};
|
|
28
|
-
export declare const GradesAgenda: number[];
|
|
29
|
-
export declare const TipoCampoObjeto: {
|
|
30
|
-
Texto: string;
|
|
31
|
-
Numero: string;
|
|
32
|
-
Data: string;
|
|
33
|
-
Lista: string;
|
|
34
|
-
SimNao: string;
|
|
35
|
-
Placa: string;
|
|
36
|
-
description(val: string): "" | "
|
|
37
|
-
};
|
|
38
|
-
export declare const EscopoCampoObjeto: {
|
|
39
|
-
Cadastro: string;
|
|
40
|
-
Atendimento: string;
|
|
41
|
-
description(val: string): "" | "
|
|
42
|
-
};
|
|
43
|
-
export declare const SituacaoGarantia: {
|
|
44
|
-
Ativa: string;
|
|
45
|
-
Cancelada: string;
|
|
46
|
-
Anulada: string;
|
|
47
|
-
description(val: string): "" | "
|
|
48
|
-
};
|
|
49
|
-
export declare const StatusGarantia: {
|
|
50
|
-
AguardandoInicio: string;
|
|
51
|
-
Vigente: string;
|
|
52
|
-
AVencer: string;
|
|
53
|
-
Vencida: string;
|
|
54
|
-
Cancelada: string;
|
|
55
|
-
Anulada: string;
|
|
56
|
-
description(val: string): "" | "
|
|
57
|
-
};
|
|
58
|
-
export declare const OrigemGarantia: {
|
|
59
|
-
Servico: string;
|
|
60
|
-
Peca: string;
|
|
61
|
-
description(val: string): "" | "
|
|
62
|
-
};
|
|
63
|
-
export declare const InicioGarantia: {
|
|
64
|
-
Faturamento: string;
|
|
65
|
-
Entrega: string;
|
|
66
|
-
description(val: string): "" | "
|
|
67
|
-
};
|
|
68
|
-
export declare const ResultadoAcionamentoGarantia: {
|
|
69
|
-
EmAnalise: string;
|
|
70
|
-
Procedente: string;
|
|
71
|
-
Improcedente: string;
|
|
72
|
-
description(val: string): "" | "Em análise" | "
|
|
73
|
-
};
|
|
1
|
+
export declare const SituacaoAgendamento: {
|
|
2
|
+
Agendado: string;
|
|
3
|
+
Confirmado: string;
|
|
4
|
+
EmAtendimento: string;
|
|
5
|
+
Concluido: string;
|
|
6
|
+
Cancelado: string;
|
|
7
|
+
NaoCompareceu: string;
|
|
8
|
+
description(val: string): "" | "Agendado" | "Cancelado" | "Concluído" | "Confirmado" | "Em atendimento" | "Não compareceu";
|
|
9
|
+
};
|
|
10
|
+
export declare const SituacoesAgendamentoOcupamAgenda: string[];
|
|
11
|
+
export declare const SituacoesAgendamentoEditaveis: string[];
|
|
12
|
+
export declare const TransicoesSituacaoAgendamento: Record<string, string[]>;
|
|
13
|
+
export declare const TipoAgendaHorario: {
|
|
14
|
+
Funcionamento: string;
|
|
15
|
+
Bloqueio: string;
|
|
16
|
+
description(val: string): "" | "Bloqueio" | "Funcionamento";
|
|
17
|
+
};
|
|
18
|
+
export declare const DiaSemana: {
|
|
19
|
+
Domingo: number;
|
|
20
|
+
Segunda: number;
|
|
21
|
+
Terca: number;
|
|
22
|
+
Quarta: number;
|
|
23
|
+
Quinta: number;
|
|
24
|
+
Sexta: number;
|
|
25
|
+
Sabado: number;
|
|
26
|
+
description(val: number): "" | "Dom" | "Qua" | "Qui" | "Seg" | "Sex" | "Sáb" | "Ter";
|
|
27
|
+
};
|
|
28
|
+
export declare const GradesAgenda: number[];
|
|
29
|
+
export declare const TipoCampoObjeto: {
|
|
30
|
+
Texto: string;
|
|
31
|
+
Numero: string;
|
|
32
|
+
Data: string;
|
|
33
|
+
Lista: string;
|
|
34
|
+
SimNao: string;
|
|
35
|
+
Placa: string;
|
|
36
|
+
description(val: string): "" | "Data" | "Lista de opções" | "Número" | "Placa de veículo" | "Sim ou não" | "Texto";
|
|
37
|
+
};
|
|
38
|
+
export declare const EscopoCampoObjeto: {
|
|
39
|
+
Cadastro: string;
|
|
40
|
+
Atendimento: string;
|
|
41
|
+
description(val: string): "" | "A cada atendimento" | "Cadastro do objeto";
|
|
42
|
+
};
|
|
43
|
+
export declare const SituacaoGarantia: {
|
|
44
|
+
Ativa: string;
|
|
45
|
+
Cancelada: string;
|
|
46
|
+
Anulada: string;
|
|
47
|
+
description(val: string): "" | "Anulada" | "Ativa" | "Cancelada";
|
|
48
|
+
};
|
|
49
|
+
export declare const StatusGarantia: {
|
|
50
|
+
AguardandoInicio: string;
|
|
51
|
+
Vigente: string;
|
|
52
|
+
AVencer: string;
|
|
53
|
+
Vencida: string;
|
|
54
|
+
Cancelada: string;
|
|
55
|
+
Anulada: string;
|
|
56
|
+
description(val: string): "" | "A vencer" | "Aguardando início" | "Anulada" | "Cancelada" | "Vencida" | "Vigente";
|
|
57
|
+
};
|
|
58
|
+
export declare const OrigemGarantia: {
|
|
59
|
+
Servico: string;
|
|
60
|
+
Peca: string;
|
|
61
|
+
description(val: string): "" | "Peça" | "Serviço";
|
|
62
|
+
};
|
|
63
|
+
export declare const InicioGarantia: {
|
|
64
|
+
Faturamento: string;
|
|
65
|
+
Entrega: string;
|
|
66
|
+
description(val: string): "" | "Na entrega ao cliente" | "No faturamento da OS";
|
|
67
|
+
};
|
|
68
|
+
export declare const ResultadoAcionamentoGarantia: {
|
|
69
|
+
EmAnalise: string;
|
|
70
|
+
Procedente: string;
|
|
71
|
+
Improcedente: string;
|
|
72
|
+
description(val: string): "" | "Em análise" | "Improcedente" | "Procedente";
|
|
73
|
+
};
|
package/dist/service/index.js
CHANGED
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResultadoAcionamentoGarantia = exports.InicioGarantia = exports.OrigemGarantia = exports.StatusGarantia = exports.SituacaoGarantia = exports.EscopoCampoObjeto = exports.TipoCampoObjeto = exports.GradesAgenda = exports.DiaSemana = exports.TipoAgendaHorario = exports.TransicoesSituacaoAgendamento = exports.SituacoesAgendamentoEditaveis = exports.SituacoesAgendamentoOcupamAgenda = exports.SituacaoAgendamento = void 0;
|
|
4
|
-
exports.SituacaoAgendamento = {
|
|
5
|
-
Agendado: '1',
|
|
6
|
-
Confirmado: '2',
|
|
7
|
-
EmAtendimento: '3',
|
|
8
|
-
Concluido: '4',
|
|
9
|
-
Cancelado: '5',
|
|
10
|
-
NaoCompareceu: '6',
|
|
11
|
-
description(val) {
|
|
12
|
-
switch (val) {
|
|
13
|
-
case this.Agendado:
|
|
14
|
-
return 'Agendado';
|
|
15
|
-
case this.Confirmado:
|
|
16
|
-
return 'Confirmado';
|
|
17
|
-
case this.EmAtendimento:
|
|
18
|
-
return 'Em atendimento';
|
|
19
|
-
case this.Concluido:
|
|
20
|
-
return 'Concluído';
|
|
21
|
-
case this.Cancelado:
|
|
22
|
-
return 'Cancelado';
|
|
23
|
-
case this.NaoCompareceu:
|
|
24
|
-
return 'Não compareceu';
|
|
25
|
-
default:
|
|
26
|
-
return '';
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
exports.SituacoesAgendamentoOcupamAgenda = [
|
|
31
|
-
exports.SituacaoAgendamento.Agendado,
|
|
32
|
-
exports.SituacaoAgendamento.Confirmado,
|
|
33
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
34
|
-
exports.SituacaoAgendamento.Concluido,
|
|
35
|
-
];
|
|
36
|
-
exports.SituacoesAgendamentoEditaveis = [exports.SituacaoAgendamento.Agendado, exports.SituacaoAgendamento.Confirmado];
|
|
37
|
-
exports.TransicoesSituacaoAgendamento = {
|
|
38
|
-
[exports.SituacaoAgendamento.Agendado]: [
|
|
39
|
-
exports.SituacaoAgendamento.Confirmado,
|
|
40
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
41
|
-
exports.SituacaoAgendamento.Cancelado,
|
|
42
|
-
exports.SituacaoAgendamento.NaoCompareceu,
|
|
43
|
-
],
|
|
44
|
-
[exports.SituacaoAgendamento.Confirmado]: [
|
|
45
|
-
exports.SituacaoAgendamento.EmAtendimento,
|
|
46
|
-
exports.SituacaoAgendamento.Cancelado,
|
|
47
|
-
exports.SituacaoAgendamento.NaoCompareceu,
|
|
48
|
-
],
|
|
49
|
-
[exports.SituacaoAgendamento.EmAtendimento]: [exports.SituacaoAgendamento.Concluido, exports.SituacaoAgendamento.Cancelado],
|
|
50
|
-
[exports.SituacaoAgendamento.Concluido]: [],
|
|
51
|
-
[exports.SituacaoAgendamento.Cancelado]: [],
|
|
52
|
-
[exports.SituacaoAgendamento.NaoCompareceu]: [],
|
|
53
|
-
};
|
|
54
|
-
exports.TipoAgendaHorario = {
|
|
55
|
-
Funcionamento: '1',
|
|
56
|
-
Bloqueio: '2',
|
|
57
|
-
description(val) {
|
|
58
|
-
switch (val) {
|
|
59
|
-
case this.Funcionamento:
|
|
60
|
-
return 'Funcionamento';
|
|
61
|
-
case this.Bloqueio:
|
|
62
|
-
return 'Bloqueio';
|
|
63
|
-
default:
|
|
64
|
-
return '';
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
exports.DiaSemana = {
|
|
69
|
-
Domingo: 0,
|
|
70
|
-
Segunda: 1,
|
|
71
|
-
Terca: 2,
|
|
72
|
-
Quarta: 3,
|
|
73
|
-
Quinta: 4,
|
|
74
|
-
Sexta: 5,
|
|
75
|
-
Sabado: 6,
|
|
76
|
-
description(val) {
|
|
77
|
-
switch (val) {
|
|
78
|
-
case this.Domingo:
|
|
79
|
-
return 'Dom';
|
|
80
|
-
case this.Segunda:
|
|
81
|
-
return 'Seg';
|
|
82
|
-
case this.Terca:
|
|
83
|
-
return 'Ter';
|
|
84
|
-
case this.Quarta:
|
|
85
|
-
return 'Qua';
|
|
86
|
-
case this.Quinta:
|
|
87
|
-
return 'Qui';
|
|
88
|
-
case this.Sexta:
|
|
89
|
-
return 'Sex';
|
|
90
|
-
case this.Sabado:
|
|
91
|
-
return 'Sáb';
|
|
92
|
-
default:
|
|
93
|
-
return '';
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
};
|
|
97
|
-
exports.GradesAgenda = [10, 15, 20, 30, 45, 60];
|
|
98
|
-
exports.TipoCampoObjeto = {
|
|
99
|
-
Texto: '1',
|
|
100
|
-
Numero: '2',
|
|
101
|
-
Data: '3',
|
|
102
|
-
Lista: '4',
|
|
103
|
-
SimNao: '5',
|
|
104
|
-
Placa: '6',
|
|
105
|
-
description(val) {
|
|
106
|
-
switch (val) {
|
|
107
|
-
case this.Texto:
|
|
108
|
-
return 'Texto';
|
|
109
|
-
case this.Numero:
|
|
110
|
-
return 'Número';
|
|
111
|
-
case this.Data:
|
|
112
|
-
return 'Data';
|
|
113
|
-
case this.Lista:
|
|
114
|
-
return 'Lista de opções';
|
|
115
|
-
case this.SimNao:
|
|
116
|
-
return 'Sim ou não';
|
|
117
|
-
case this.Placa:
|
|
118
|
-
return 'Placa de veículo';
|
|
119
|
-
default:
|
|
120
|
-
return '';
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
exports.EscopoCampoObjeto = {
|
|
125
|
-
Cadastro: '1',
|
|
126
|
-
Atendimento: '2',
|
|
127
|
-
description(val) {
|
|
128
|
-
switch (val) {
|
|
129
|
-
case this.Cadastro:
|
|
130
|
-
return 'Cadastro do objeto';
|
|
131
|
-
case this.Atendimento:
|
|
132
|
-
return 'A cada atendimento';
|
|
133
|
-
default:
|
|
134
|
-
return '';
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
};
|
|
138
|
-
exports.SituacaoGarantia = {
|
|
139
|
-
Ativa: '1',
|
|
140
|
-
Cancelada: '2',
|
|
141
|
-
Anulada: '3',
|
|
142
|
-
description(val) {
|
|
143
|
-
switch (val) {
|
|
144
|
-
case this.Ativa:
|
|
145
|
-
return 'Ativa';
|
|
146
|
-
case this.Cancelada:
|
|
147
|
-
return 'Cancelada';
|
|
148
|
-
case this.Anulada:
|
|
149
|
-
return 'Anulada';
|
|
150
|
-
default:
|
|
151
|
-
return '';
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
};
|
|
155
|
-
exports.StatusGarantia = {
|
|
156
|
-
AguardandoInicio: '1',
|
|
157
|
-
Vigente: '2',
|
|
158
|
-
AVencer: '3',
|
|
159
|
-
Vencida: '4',
|
|
160
|
-
Cancelada: '5',
|
|
161
|
-
Anulada: '6',
|
|
162
|
-
description(val) {
|
|
163
|
-
switch (val) {
|
|
164
|
-
case this.AguardandoInicio:
|
|
165
|
-
return 'Aguardando início';
|
|
166
|
-
case this.Vigente:
|
|
167
|
-
return 'Vigente';
|
|
168
|
-
case this.AVencer:
|
|
169
|
-
return 'A vencer';
|
|
170
|
-
case this.Vencida:
|
|
171
|
-
return 'Vencida';
|
|
172
|
-
case this.Cancelada:
|
|
173
|
-
return 'Cancelada';
|
|
174
|
-
case this.Anulada:
|
|
175
|
-
return 'Anulada';
|
|
176
|
-
default:
|
|
177
|
-
return '';
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
};
|
|
181
|
-
exports.OrigemGarantia = {
|
|
182
|
-
Servico: '1',
|
|
183
|
-
Peca: '2',
|
|
184
|
-
description(val) {
|
|
185
|
-
switch (val) {
|
|
186
|
-
case this.Servico:
|
|
187
|
-
return 'Serviço';
|
|
188
|
-
case this.Peca:
|
|
189
|
-
return 'Peça';
|
|
190
|
-
default:
|
|
191
|
-
return '';
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
exports.InicioGarantia = {
|
|
196
|
-
Faturamento: '1',
|
|
197
|
-
Entrega: '2',
|
|
198
|
-
description(val) {
|
|
199
|
-
switch (val) {
|
|
200
|
-
case this.Faturamento:
|
|
201
|
-
return 'No faturamento da OS';
|
|
202
|
-
case this.Entrega:
|
|
203
|
-
return 'Na entrega ao cliente';
|
|
204
|
-
default:
|
|
205
|
-
return '';
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
exports.ResultadoAcionamentoGarantia = {
|
|
210
|
-
EmAnalise: '1',
|
|
211
|
-
Procedente: '2',
|
|
212
|
-
Improcedente: '3',
|
|
213
|
-
description(val) {
|
|
214
|
-
switch (val) {
|
|
215
|
-
case this.EmAnalise:
|
|
216
|
-
return 'Em análise';
|
|
217
|
-
case this.Procedente:
|
|
218
|
-
return 'Procedente';
|
|
219
|
-
case this.Improcedente:
|
|
220
|
-
return 'Improcedente';
|
|
221
|
-
default:
|
|
222
|
-
return '';
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResultadoAcionamentoGarantia = exports.InicioGarantia = exports.OrigemGarantia = exports.StatusGarantia = exports.SituacaoGarantia = exports.EscopoCampoObjeto = exports.TipoCampoObjeto = exports.GradesAgenda = exports.DiaSemana = exports.TipoAgendaHorario = exports.TransicoesSituacaoAgendamento = exports.SituacoesAgendamentoEditaveis = exports.SituacoesAgendamentoOcupamAgenda = exports.SituacaoAgendamento = void 0;
|
|
4
|
+
exports.SituacaoAgendamento = {
|
|
5
|
+
Agendado: '1',
|
|
6
|
+
Confirmado: '2',
|
|
7
|
+
EmAtendimento: '3',
|
|
8
|
+
Concluido: '4',
|
|
9
|
+
Cancelado: '5',
|
|
10
|
+
NaoCompareceu: '6',
|
|
11
|
+
description(val) {
|
|
12
|
+
switch (val) {
|
|
13
|
+
case this.Agendado:
|
|
14
|
+
return 'Agendado';
|
|
15
|
+
case this.Confirmado:
|
|
16
|
+
return 'Confirmado';
|
|
17
|
+
case this.EmAtendimento:
|
|
18
|
+
return 'Em atendimento';
|
|
19
|
+
case this.Concluido:
|
|
20
|
+
return 'Concluído';
|
|
21
|
+
case this.Cancelado:
|
|
22
|
+
return 'Cancelado';
|
|
23
|
+
case this.NaoCompareceu:
|
|
24
|
+
return 'Não compareceu';
|
|
25
|
+
default:
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
exports.SituacoesAgendamentoOcupamAgenda = [
|
|
31
|
+
exports.SituacaoAgendamento.Agendado,
|
|
32
|
+
exports.SituacaoAgendamento.Confirmado,
|
|
33
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
34
|
+
exports.SituacaoAgendamento.Concluido,
|
|
35
|
+
];
|
|
36
|
+
exports.SituacoesAgendamentoEditaveis = [exports.SituacaoAgendamento.Agendado, exports.SituacaoAgendamento.Confirmado];
|
|
37
|
+
exports.TransicoesSituacaoAgendamento = {
|
|
38
|
+
[exports.SituacaoAgendamento.Agendado]: [
|
|
39
|
+
exports.SituacaoAgendamento.Confirmado,
|
|
40
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
41
|
+
exports.SituacaoAgendamento.Cancelado,
|
|
42
|
+
exports.SituacaoAgendamento.NaoCompareceu,
|
|
43
|
+
],
|
|
44
|
+
[exports.SituacaoAgendamento.Confirmado]: [
|
|
45
|
+
exports.SituacaoAgendamento.EmAtendimento,
|
|
46
|
+
exports.SituacaoAgendamento.Cancelado,
|
|
47
|
+
exports.SituacaoAgendamento.NaoCompareceu,
|
|
48
|
+
],
|
|
49
|
+
[exports.SituacaoAgendamento.EmAtendimento]: [exports.SituacaoAgendamento.Concluido, exports.SituacaoAgendamento.Cancelado],
|
|
50
|
+
[exports.SituacaoAgendamento.Concluido]: [],
|
|
51
|
+
[exports.SituacaoAgendamento.Cancelado]: [],
|
|
52
|
+
[exports.SituacaoAgendamento.NaoCompareceu]: [],
|
|
53
|
+
};
|
|
54
|
+
exports.TipoAgendaHorario = {
|
|
55
|
+
Funcionamento: '1',
|
|
56
|
+
Bloqueio: '2',
|
|
57
|
+
description(val) {
|
|
58
|
+
switch (val) {
|
|
59
|
+
case this.Funcionamento:
|
|
60
|
+
return 'Funcionamento';
|
|
61
|
+
case this.Bloqueio:
|
|
62
|
+
return 'Bloqueio';
|
|
63
|
+
default:
|
|
64
|
+
return '';
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
exports.DiaSemana = {
|
|
69
|
+
Domingo: 0,
|
|
70
|
+
Segunda: 1,
|
|
71
|
+
Terca: 2,
|
|
72
|
+
Quarta: 3,
|
|
73
|
+
Quinta: 4,
|
|
74
|
+
Sexta: 5,
|
|
75
|
+
Sabado: 6,
|
|
76
|
+
description(val) {
|
|
77
|
+
switch (val) {
|
|
78
|
+
case this.Domingo:
|
|
79
|
+
return 'Dom';
|
|
80
|
+
case this.Segunda:
|
|
81
|
+
return 'Seg';
|
|
82
|
+
case this.Terca:
|
|
83
|
+
return 'Ter';
|
|
84
|
+
case this.Quarta:
|
|
85
|
+
return 'Qua';
|
|
86
|
+
case this.Quinta:
|
|
87
|
+
return 'Qui';
|
|
88
|
+
case this.Sexta:
|
|
89
|
+
return 'Sex';
|
|
90
|
+
case this.Sabado:
|
|
91
|
+
return 'Sáb';
|
|
92
|
+
default:
|
|
93
|
+
return '';
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
exports.GradesAgenda = [10, 15, 20, 30, 45, 60];
|
|
98
|
+
exports.TipoCampoObjeto = {
|
|
99
|
+
Texto: '1',
|
|
100
|
+
Numero: '2',
|
|
101
|
+
Data: '3',
|
|
102
|
+
Lista: '4',
|
|
103
|
+
SimNao: '5',
|
|
104
|
+
Placa: '6',
|
|
105
|
+
description(val) {
|
|
106
|
+
switch (val) {
|
|
107
|
+
case this.Texto:
|
|
108
|
+
return 'Texto';
|
|
109
|
+
case this.Numero:
|
|
110
|
+
return 'Número';
|
|
111
|
+
case this.Data:
|
|
112
|
+
return 'Data';
|
|
113
|
+
case this.Lista:
|
|
114
|
+
return 'Lista de opções';
|
|
115
|
+
case this.SimNao:
|
|
116
|
+
return 'Sim ou não';
|
|
117
|
+
case this.Placa:
|
|
118
|
+
return 'Placa de veículo';
|
|
119
|
+
default:
|
|
120
|
+
return '';
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
exports.EscopoCampoObjeto = {
|
|
125
|
+
Cadastro: '1',
|
|
126
|
+
Atendimento: '2',
|
|
127
|
+
description(val) {
|
|
128
|
+
switch (val) {
|
|
129
|
+
case this.Cadastro:
|
|
130
|
+
return 'Cadastro do objeto';
|
|
131
|
+
case this.Atendimento:
|
|
132
|
+
return 'A cada atendimento';
|
|
133
|
+
default:
|
|
134
|
+
return '';
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
exports.SituacaoGarantia = {
|
|
139
|
+
Ativa: '1',
|
|
140
|
+
Cancelada: '2',
|
|
141
|
+
Anulada: '3',
|
|
142
|
+
description(val) {
|
|
143
|
+
switch (val) {
|
|
144
|
+
case this.Ativa:
|
|
145
|
+
return 'Ativa';
|
|
146
|
+
case this.Cancelada:
|
|
147
|
+
return 'Cancelada';
|
|
148
|
+
case this.Anulada:
|
|
149
|
+
return 'Anulada';
|
|
150
|
+
default:
|
|
151
|
+
return '';
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
exports.StatusGarantia = {
|
|
156
|
+
AguardandoInicio: '1',
|
|
157
|
+
Vigente: '2',
|
|
158
|
+
AVencer: '3',
|
|
159
|
+
Vencida: '4',
|
|
160
|
+
Cancelada: '5',
|
|
161
|
+
Anulada: '6',
|
|
162
|
+
description(val) {
|
|
163
|
+
switch (val) {
|
|
164
|
+
case this.AguardandoInicio:
|
|
165
|
+
return 'Aguardando início';
|
|
166
|
+
case this.Vigente:
|
|
167
|
+
return 'Vigente';
|
|
168
|
+
case this.AVencer:
|
|
169
|
+
return 'A vencer';
|
|
170
|
+
case this.Vencida:
|
|
171
|
+
return 'Vencida';
|
|
172
|
+
case this.Cancelada:
|
|
173
|
+
return 'Cancelada';
|
|
174
|
+
case this.Anulada:
|
|
175
|
+
return 'Anulada';
|
|
176
|
+
default:
|
|
177
|
+
return '';
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
};
|
|
181
|
+
exports.OrigemGarantia = {
|
|
182
|
+
Servico: '1',
|
|
183
|
+
Peca: '2',
|
|
184
|
+
description(val) {
|
|
185
|
+
switch (val) {
|
|
186
|
+
case this.Servico:
|
|
187
|
+
return 'Serviço';
|
|
188
|
+
case this.Peca:
|
|
189
|
+
return 'Peça';
|
|
190
|
+
default:
|
|
191
|
+
return '';
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
exports.InicioGarantia = {
|
|
196
|
+
Faturamento: '1',
|
|
197
|
+
Entrega: '2',
|
|
198
|
+
description(val) {
|
|
199
|
+
switch (val) {
|
|
200
|
+
case this.Faturamento:
|
|
201
|
+
return 'No faturamento da OS';
|
|
202
|
+
case this.Entrega:
|
|
203
|
+
return 'Na entrega ao cliente';
|
|
204
|
+
default:
|
|
205
|
+
return '';
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
};
|
|
209
|
+
exports.ResultadoAcionamentoGarantia = {
|
|
210
|
+
EmAnalise: '1',
|
|
211
|
+
Procedente: '2',
|
|
212
|
+
Improcedente: '3',
|
|
213
|
+
description(val) {
|
|
214
|
+
switch (val) {
|
|
215
|
+
case this.EmAnalise:
|
|
216
|
+
return 'Em análise';
|
|
217
|
+
case this.Procedente:
|
|
218
|
+
return 'Procedente';
|
|
219
|
+
case this.Improcedente:
|
|
220
|
+
return 'Improcedente';
|
|
221
|
+
default:
|
|
222
|
+
return '';
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
};
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mdz-enum",
|
|
3
|
-
"version": "1.7.
|
|
4
|
-
"description": "Enumerados ModerShop",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"publicar": "tsc && git add . && git commit -m \"commit automatico\" && git push origin main && npm publish"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"package.json",
|
|
13
|
-
"README.md"
|
|
14
|
-
],
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/moderniza-modershop/mdz-enum"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "willian.moderniza",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://github.com/moderniza-dev/mdz-enum/issues"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/node": "^16.9.1",
|
|
28
|
-
"ts-node": "^10.2.1",
|
|
29
|
-
"typescript": "^4.4.3"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "mdz-enum",
|
|
3
|
+
"version": "1.7.48",
|
|
4
|
+
"description": "Enumerados ModerShop",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"publicar": "tsc && git add . && git commit -m \"commit automatico\" && git push origin main && npm publish"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"package.json",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/moderniza-modershop/mdz-enum"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "willian.moderniza",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/moderniza-dev/mdz-enum/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/moderniza-dev/mdz-enum#readme",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^16.9.1",
|
|
28
|
+
"ts-node": "^10.2.1",
|
|
29
|
+
"typescript": "^4.4.3"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|