mdz-enum 1.5.26 → 1.5.28

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.
Files changed (39) hide show
  1. package/dist/checkout/index.d.ts +28 -28
  2. package/dist/checkout/index.js +83 -83
  3. package/dist/commercial/index.d.ts +227 -227
  4. package/dist/commercial/index.js +549 -549
  5. package/dist/common/index.d.ts +47 -47
  6. package/dist/common/index.js +137 -137
  7. package/dist/config/index.d.ts +166 -166
  8. package/dist/config/index.js +478 -478
  9. package/dist/finance/index.d.ts +164 -164
  10. package/dist/finance/index.js +425 -425
  11. package/dist/fiscal/index.d.ts +479 -469
  12. package/dist/fiscal/index.js +1196 -1168
  13. package/dist/functions.d.ts +11 -11
  14. package/dist/functions.js +74 -74
  15. package/dist/general/index.d.ts +257 -257
  16. package/dist/general/index.js +489 -489
  17. package/dist/index.d.ts +14 -14
  18. package/dist/index.js +211 -209
  19. package/dist/integration/index.d.ts +19 -19
  20. package/dist/integration/index.js +57 -57
  21. package/dist/logistics/index.d.ts +124 -124
  22. package/dist/logistics/index.js +359 -359
  23. package/dist/marketplace/templates/components/index.d.ts +158 -158
  24. package/dist/marketplace/templates/components/index.js +171 -171
  25. package/dist/marketplace/templates/elements/index.d.ts +32 -32
  26. package/dist/marketplace/templates/elements/index.js +35 -35
  27. package/dist/marketplace/templates/index.d.ts +295 -292
  28. package/dist/marketplace/templates/index.js +40 -40
  29. package/dist/marketplace/templates/pages/index.d.ts +140 -140
  30. package/dist/marketplace/templates/pages/index.js +310 -310
  31. package/dist/marketplace/templates/reference/index.d.ts +16 -16
  32. package/dist/marketplace/templates/reference/index.js +18 -18
  33. package/dist/people/index.d.ts +36 -36
  34. package/dist/people/index.js +105 -105
  35. package/dist/platform/index.d.ts +191 -189
  36. package/dist/platform/index.js +552 -548
  37. package/dist/reports/index.d.ts +49 -49
  38. package/dist/reports/index.js +145 -145
  39. package/package.json +1 -2
@@ -1,11 +1,11 @@
1
- export declare const listEnum: (object: any, filters?: never[]) => {
2
- value: any;
3
- label: any;
4
- }[];
5
- export declare const listObjectEnum: (object: any, filters?: {
6
- propriedade: string;
7
- valores: string[];
8
- }[]) => {
9
- value: any;
10
- label: any;
11
- }[];
1
+ export declare const listEnum: (object: any, filters?: never[]) => {
2
+ value: any;
3
+ label: any;
4
+ }[];
5
+ export declare const listObjectEnum: (object: any, filters?: {
6
+ propriedade: string;
7
+ valores: string[];
8
+ }[]) => {
9
+ value: any;
10
+ label: any;
11
+ }[];
package/dist/functions.js CHANGED
@@ -1,74 +1,74 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listObjectEnum = exports.listEnum = void 0;
4
- const listEnum = (object, filters = []) => {
5
- let list = [];
6
- if (filters && filters.length > 0) {
7
- for (var filter in filters) {
8
- for (var key in object) {
9
- if (typeof object[key] === 'function')
10
- continue;
11
- if (object[key] !== filters[filter])
12
- continue;
13
- const item = {
14
- value: object[key],
15
- label: object.description ? object.description(object[key]) : '',
16
- };
17
- list.push(item);
18
- }
19
- }
20
- }
21
- else {
22
- for (var key in object) {
23
- if (typeof object[key] === 'function')
24
- continue;
25
- const item = {
26
- value: object[key],
27
- label: object.description ? object.description(object[key]) : '',
28
- };
29
- list.push(item);
30
- }
31
- }
32
- list = list.sort(function (a, b) {
33
- return b.label - a.label;
34
- });
35
- return list;
36
- };
37
- exports.listEnum = listEnum;
38
- const listObjectEnum = (object, filters = []) => {
39
- let list = [];
40
- if (filters && filters.length > 0) {
41
- for (var key in object) {
42
- if (typeof object[key] === 'function')
43
- continue;
44
- let matchesAllFilters = true;
45
- // Verifica se o item corresponde a todos os filtros
46
- for (const filter of filters) {
47
- if (!filter.valores.includes(object[key][filter.propriedade])) {
48
- matchesAllFilters = false;
49
- break;
50
- }
51
- }
52
- if (matchesAllFilters || filters.length === 0) {
53
- const item = {
54
- value: object[key].Chave,
55
- label: object[key].Descricao,
56
- };
57
- list.push(item);
58
- }
59
- }
60
- }
61
- else {
62
- for (var key in object) {
63
- if (typeof object[key] === 'function')
64
- continue;
65
- const item = {
66
- value: object[key].Chave,
67
- label: object[key].Descricao,
68
- };
69
- list.push(item);
70
- }
71
- }
72
- return list;
73
- };
74
- exports.listObjectEnum = listObjectEnum;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listObjectEnum = exports.listEnum = void 0;
4
+ const listEnum = (object, filters = []) => {
5
+ let list = [];
6
+ if (filters && filters.length > 0) {
7
+ for (var filter in filters) {
8
+ for (var key in object) {
9
+ if (typeof object[key] === 'function')
10
+ continue;
11
+ if (object[key] !== filters[filter])
12
+ continue;
13
+ const item = {
14
+ value: object[key],
15
+ label: object.description ? object.description(object[key]) : '',
16
+ };
17
+ list.push(item);
18
+ }
19
+ }
20
+ }
21
+ else {
22
+ for (var key in object) {
23
+ if (typeof object[key] === 'function')
24
+ continue;
25
+ const item = {
26
+ value: object[key],
27
+ label: object.description ? object.description(object[key]) : '',
28
+ };
29
+ list.push(item);
30
+ }
31
+ }
32
+ list = list.sort(function (a, b) {
33
+ return b.label - a.label;
34
+ });
35
+ return list;
36
+ };
37
+ exports.listEnum = listEnum;
38
+ const listObjectEnum = (object, filters = []) => {
39
+ let list = [];
40
+ if (filters && filters.length > 0) {
41
+ for (var key in object) {
42
+ if (typeof object[key] === 'function')
43
+ continue;
44
+ let matchesAllFilters = true;
45
+ // Verifica se o item corresponde a todos os filtros
46
+ for (const filter of filters) {
47
+ if (!filter.valores.includes(object[key][filter.propriedade])) {
48
+ matchesAllFilters = false;
49
+ break;
50
+ }
51
+ }
52
+ if (matchesAllFilters || filters.length === 0) {
53
+ const item = {
54
+ value: object[key].Chave,
55
+ label: object[key].Descricao,
56
+ };
57
+ list.push(item);
58
+ }
59
+ }
60
+ }
61
+ else {
62
+ for (var key in object) {
63
+ if (typeof object[key] === 'function')
64
+ continue;
65
+ const item = {
66
+ value: object[key].Chave,
67
+ label: object[key].Descricao,
68
+ };
69
+ list.push(item);
70
+ }
71
+ }
72
+ return list;
73
+ };
74
+ exports.listObjectEnum = listObjectEnum;
@@ -1,257 +1,257 @@
1
- export declare const Situacao: {
2
- Inativo: string;
3
- Ativo: string;
4
- description(val: string): "enum not found" | "Inativo" | "Ativo";
5
- };
6
- export declare const TipoCompartilhamento: {
7
- NotaFiscal: string;
8
- PedidoVenda: string;
9
- Boleto: string;
10
- description(val: string): "enum not found" | "Pedido" | "Boleto" | "Nota Fiscal";
11
- };
12
- export declare const TipoDescontoGeneral: {
13
- Percentual: string;
14
- Valor: string;
15
- description(val: string): "enum not found" | "Percentual" | "Valor";
16
- };
17
- export declare const TipoTempo: {
18
- Dias: string;
19
- Semanas: string;
20
- Meses: string;
21
- Anos: string;
22
- description(val: string): "Dias" | "Semanas" | "Meses" | "Anos" | undefined;
23
- };
24
- export declare const Uf: {
25
- RO: string;
26
- AC: string;
27
- AM: string;
28
- RR: string;
29
- PA: string;
30
- AP: string;
31
- TO: string;
32
- MA: string;
33
- PI: string;
34
- CE: string;
35
- RN: string;
36
- PB: string;
37
- PE: string;
38
- AL: string;
39
- SE: string;
40
- BA: string;
41
- MG: string;
42
- ES: string;
43
- RJ: string;
44
- SP: string;
45
- PR: string;
46
- SC: string;
47
- RS: string;
48
- MS: string;
49
- MT: string;
50
- GO: string;
51
- DF: string;
52
- AN: string;
53
- EX: string;
54
- description(val: string): "Rondônia" | "Acre" | "Amazonas" | "Roraima" | "Pará" | "Amapá" | "Tocantins" | "Maranhão" | "Piauí" | "Ceará" | "Rio Grande do Norte" | "Pernambuco" | "Alagoas" | "Sergipe" | "Bahia" | "Espírito Santo" | "Rio de Janeiro" | "São Paulo" | "Paraná" | "Santa Catarina" | "Mato Grosso do Sul" | "Mato Grosso" | "Goiás" | "Distrito Federal" | "Rio Grande do Sul" | "Paraíba" | "Minas Gerais" | undefined;
55
- shortDescription(val: string): "RO" | "AC" | "AM" | "RR" | "PA" | "AP" | "TO" | "MA" | "PI" | "CE" | "RN" | "PB" | "PE" | "AL" | "SE" | "BA" | "MG" | "ES" | "RJ" | "SP" | "PR" | "SC" | "MS" | "MT" | "GO" | "DF" | "RS" | undefined;
56
- };
57
- export declare const ProporcaoImagem: {
58
- '1/1': string;
59
- '9/16': string;
60
- description(val: string): "enum not found" | "1/1" | "9/16";
61
- aspectRatioValue(val: string): number;
62
- };
63
- export declare const TipoLogos: {
64
- Quadrada: string;
65
- Retangular: string;
66
- description(val: string): "enum not found" | "Quadrada" | "Retangular";
67
- };
68
- export declare const StyleTypeLogos: {
69
- Branca: string;
70
- Preta: string;
71
- Default: string;
72
- description(val: string): "enum not found" | "Branca" | "Preta" | "Default";
73
- };
74
- export declare const UfDB: {
75
- RO: {
76
- Descricao: string;
77
- Chave: number;
78
- Codigo_Ibge: string;
79
- Nome: string;
80
- };
81
- AC: {
82
- Descricao: string;
83
- Chave: number;
84
- Codigo_Ibge: string;
85
- Nome: string;
86
- };
87
- AM: {
88
- Descricao: string;
89
- Chave: number;
90
- Codigo_Ibge: string;
91
- Nome: string;
92
- };
93
- RR: {
94
- Descricao: string;
95
- Chave: number;
96
- Codigo_Ibge: string;
97
- Nome: string;
98
- };
99
- PA: {
100
- Descricao: string;
101
- Chave: number;
102
- Codigo_Ibge: string;
103
- Nome: string;
104
- };
105
- AP: {
106
- Descricao: string;
107
- Chave: number;
108
- Codigo_Ibge: string;
109
- Nome: string;
110
- };
111
- TO: {
112
- Descricao: string;
113
- Chave: number;
114
- Codigo_Ibge: string;
115
- Nome: string;
116
- };
117
- MA: {
118
- Descricao: string;
119
- Chave: number;
120
- Codigo_Ibge: string;
121
- Nome: string;
122
- };
123
- PI: {
124
- Descricao: string;
125
- Chave: number;
126
- Codigo_Ibge: string;
127
- Nome: string;
128
- };
129
- CE: {
130
- Descricao: string;
131
- Chave: number;
132
- Codigo_Ibge: string;
133
- Nome: string;
134
- };
135
- RN: {
136
- Descricao: string;
137
- Chave: number;
138
- Codigo_Ibge: string;
139
- Nome: string;
140
- };
141
- PB: {
142
- Descricao: string;
143
- Chave: number;
144
- Codigo_Ibge: string;
145
- Nome: string;
146
- };
147
- PE: {
148
- Descricao: string;
149
- Chave: number;
150
- Codigo_Ibge: string;
151
- Nome: string;
152
- };
153
- AL: {
154
- Descricao: string;
155
- Chave: number;
156
- Codigo_Ibge: string;
157
- Nome: string;
158
- };
159
- SE: {
160
- Descricao: string;
161
- Chave: number;
162
- Codigo_Ibge: string;
163
- Nome: string;
164
- };
165
- BA: {
166
- Descricao: string;
167
- Chave: number;
168
- Codigo_Ibge: string;
169
- Nome: string;
170
- };
171
- MG: {
172
- Descricao: string;
173
- Chave: number;
174
- Codigo_Ibge: string;
175
- Nome: string;
176
- };
177
- ES: {
178
- Descricao: string;
179
- Chave: number;
180
- Codigo_Ibge: string;
181
- Nome: string;
182
- };
183
- RJ: {
184
- Descricao: string;
185
- Chave: number;
186
- Codigo_Ibge: string;
187
- Nome: string;
188
- };
189
- SP: {
190
- Descricao: string;
191
- Chave: number;
192
- Codigo_Ibge: string;
193
- Nome: string;
194
- };
195
- PR: {
196
- Descricao: string;
197
- Chave: number;
198
- Codigo_Ibge: string;
199
- Nome: string;
200
- };
201
- SC: {
202
- Descricao: string;
203
- Chave: number;
204
- Codigo_Ibge: string;
205
- Nome: string;
206
- };
207
- MS: {
208
- Descricao: string;
209
- Chave: number;
210
- Codigo_Ibge: string;
211
- Nome: string;
212
- };
213
- MT: {
214
- Descricao: string;
215
- Chave: number;
216
- Codigo_Ibge: string;
217
- Nome: string;
218
- };
219
- GO: {
220
- Descricao: string;
221
- Chave: number;
222
- Codigo_Ibge: string;
223
- Nome: string;
224
- };
225
- DF: {
226
- Descricao: string;
227
- Chave: number;
228
- Codigo_Ibge: string;
229
- Nome: string;
230
- };
231
- RS: {
232
- Descricao: string;
233
- Chave: number;
234
- Codigo_Ibge: string;
235
- Nome: string;
236
- };
237
- };
238
- export declare const TipoData: {
239
- DataCadastro: string;
240
- DataAlteracao: string;
241
- DataExclusao: string;
242
- description(val: string): "enum not found" | "Data de Cadastro" | "Data de Alteração" | "Data de Exclusão";
243
- };
244
- export declare const TipoAjuste: {
245
- Desconto: string;
246
- Acrescimo: string;
247
- description(val: string): "enum not found" | "Desconto" | "Acréscimo";
248
- };
249
- export declare const TipoPendencia: {
250
- DocumentoEntrada: string;
251
- DocumentoSaida: string;
252
- PedidosEntrega: string;
253
- NotasPendente: string;
254
- ComissaoPendente: string;
255
- Aniversariantes: string;
256
- description(val: string): "enum not found" | "Documento de Entrada" | "Documento de Saída" | "Pedidos de Entrega" | "Notas Pendentes" | "Comissão Pendente" | "Aniversariantes";
257
- };
1
+ export declare const Situacao: {
2
+ Inativo: string;
3
+ Ativo: string;
4
+ description(val: string): "enum not found" | "Inativo" | "Ativo";
5
+ };
6
+ export declare const TipoCompartilhamento: {
7
+ NotaFiscal: string;
8
+ PedidoVenda: string;
9
+ Boleto: string;
10
+ description(val: string): "enum not found" | "Pedido" | "Boleto" | "Nota Fiscal";
11
+ };
12
+ export declare const TipoDescontoGeneral: {
13
+ Percentual: string;
14
+ Valor: string;
15
+ description(val: string): "enum not found" | "Percentual" | "Valor";
16
+ };
17
+ export declare const TipoTempo: {
18
+ Dias: string;
19
+ Semanas: string;
20
+ Meses: string;
21
+ Anos: string;
22
+ description(val: string): "Dias" | "Semanas" | "Meses" | "Anos" | undefined;
23
+ };
24
+ export declare const Uf: {
25
+ RO: string;
26
+ AC: string;
27
+ AM: string;
28
+ RR: string;
29
+ PA: string;
30
+ AP: string;
31
+ TO: string;
32
+ MA: string;
33
+ PI: string;
34
+ CE: string;
35
+ RN: string;
36
+ PB: string;
37
+ PE: string;
38
+ AL: string;
39
+ SE: string;
40
+ BA: string;
41
+ MG: string;
42
+ ES: string;
43
+ RJ: string;
44
+ SP: string;
45
+ PR: string;
46
+ SC: string;
47
+ RS: string;
48
+ MS: string;
49
+ MT: string;
50
+ GO: string;
51
+ DF: string;
52
+ AN: string;
53
+ EX: string;
54
+ description(val: string): "Rondônia" | "Acre" | "Amazonas" | "Roraima" | "Pará" | "Amapá" | "Tocantins" | "Maranhão" | "Piauí" | "Ceará" | "Rio Grande do Norte" | "Pernambuco" | "Alagoas" | "Sergipe" | "Bahia" | "Espírito Santo" | "Rio de Janeiro" | "São Paulo" | "Paraná" | "Santa Catarina" | "Mato Grosso do Sul" | "Mato Grosso" | "Goiás" | "Distrito Federal" | "Rio Grande do Sul" | "Paraíba" | "Minas Gerais" | undefined;
55
+ shortDescription(val: string): "RO" | "AC" | "AM" | "RR" | "PA" | "AP" | "TO" | "MA" | "PI" | "CE" | "RN" | "PB" | "PE" | "AL" | "SE" | "BA" | "MG" | "ES" | "RJ" | "SP" | "PR" | "SC" | "MS" | "MT" | "GO" | "DF" | "RS" | undefined;
56
+ };
57
+ export declare const ProporcaoImagem: {
58
+ '1/1': string;
59
+ '9/16': string;
60
+ description(val: string): "enum not found" | "1/1" | "9/16";
61
+ aspectRatioValue(val: string): number;
62
+ };
63
+ export declare const TipoLogos: {
64
+ Quadrada: string;
65
+ Retangular: string;
66
+ description(val: string): "enum not found" | "Quadrada" | "Retangular";
67
+ };
68
+ export declare const StyleTypeLogos: {
69
+ Branca: string;
70
+ Preta: string;
71
+ Default: string;
72
+ description(val: string): "enum not found" | "Branca" | "Preta" | "Default";
73
+ };
74
+ export declare const UfDB: {
75
+ RO: {
76
+ Descricao: string;
77
+ Chave: number;
78
+ Codigo_Ibge: string;
79
+ Nome: string;
80
+ };
81
+ AC: {
82
+ Descricao: string;
83
+ Chave: number;
84
+ Codigo_Ibge: string;
85
+ Nome: string;
86
+ };
87
+ AM: {
88
+ Descricao: string;
89
+ Chave: number;
90
+ Codigo_Ibge: string;
91
+ Nome: string;
92
+ };
93
+ RR: {
94
+ Descricao: string;
95
+ Chave: number;
96
+ Codigo_Ibge: string;
97
+ Nome: string;
98
+ };
99
+ PA: {
100
+ Descricao: string;
101
+ Chave: number;
102
+ Codigo_Ibge: string;
103
+ Nome: string;
104
+ };
105
+ AP: {
106
+ Descricao: string;
107
+ Chave: number;
108
+ Codigo_Ibge: string;
109
+ Nome: string;
110
+ };
111
+ TO: {
112
+ Descricao: string;
113
+ Chave: number;
114
+ Codigo_Ibge: string;
115
+ Nome: string;
116
+ };
117
+ MA: {
118
+ Descricao: string;
119
+ Chave: number;
120
+ Codigo_Ibge: string;
121
+ Nome: string;
122
+ };
123
+ PI: {
124
+ Descricao: string;
125
+ Chave: number;
126
+ Codigo_Ibge: string;
127
+ Nome: string;
128
+ };
129
+ CE: {
130
+ Descricao: string;
131
+ Chave: number;
132
+ Codigo_Ibge: string;
133
+ Nome: string;
134
+ };
135
+ RN: {
136
+ Descricao: string;
137
+ Chave: number;
138
+ Codigo_Ibge: string;
139
+ Nome: string;
140
+ };
141
+ PB: {
142
+ Descricao: string;
143
+ Chave: number;
144
+ Codigo_Ibge: string;
145
+ Nome: string;
146
+ };
147
+ PE: {
148
+ Descricao: string;
149
+ Chave: number;
150
+ Codigo_Ibge: string;
151
+ Nome: string;
152
+ };
153
+ AL: {
154
+ Descricao: string;
155
+ Chave: number;
156
+ Codigo_Ibge: string;
157
+ Nome: string;
158
+ };
159
+ SE: {
160
+ Descricao: string;
161
+ Chave: number;
162
+ Codigo_Ibge: string;
163
+ Nome: string;
164
+ };
165
+ BA: {
166
+ Descricao: string;
167
+ Chave: number;
168
+ Codigo_Ibge: string;
169
+ Nome: string;
170
+ };
171
+ MG: {
172
+ Descricao: string;
173
+ Chave: number;
174
+ Codigo_Ibge: string;
175
+ Nome: string;
176
+ };
177
+ ES: {
178
+ Descricao: string;
179
+ Chave: number;
180
+ Codigo_Ibge: string;
181
+ Nome: string;
182
+ };
183
+ RJ: {
184
+ Descricao: string;
185
+ Chave: number;
186
+ Codigo_Ibge: string;
187
+ Nome: string;
188
+ };
189
+ SP: {
190
+ Descricao: string;
191
+ Chave: number;
192
+ Codigo_Ibge: string;
193
+ Nome: string;
194
+ };
195
+ PR: {
196
+ Descricao: string;
197
+ Chave: number;
198
+ Codigo_Ibge: string;
199
+ Nome: string;
200
+ };
201
+ SC: {
202
+ Descricao: string;
203
+ Chave: number;
204
+ Codigo_Ibge: string;
205
+ Nome: string;
206
+ };
207
+ MS: {
208
+ Descricao: string;
209
+ Chave: number;
210
+ Codigo_Ibge: string;
211
+ Nome: string;
212
+ };
213
+ MT: {
214
+ Descricao: string;
215
+ Chave: number;
216
+ Codigo_Ibge: string;
217
+ Nome: string;
218
+ };
219
+ GO: {
220
+ Descricao: string;
221
+ Chave: number;
222
+ Codigo_Ibge: string;
223
+ Nome: string;
224
+ };
225
+ DF: {
226
+ Descricao: string;
227
+ Chave: number;
228
+ Codigo_Ibge: string;
229
+ Nome: string;
230
+ };
231
+ RS: {
232
+ Descricao: string;
233
+ Chave: number;
234
+ Codigo_Ibge: string;
235
+ Nome: string;
236
+ };
237
+ };
238
+ export declare const TipoData: {
239
+ DataCadastro: string;
240
+ DataAlteracao: string;
241
+ DataExclusao: string;
242
+ description(val: string): "enum not found" | "Data de Cadastro" | "Data de Alteração" | "Data de Exclusão";
243
+ };
244
+ export declare const TipoAjuste: {
245
+ Desconto: string;
246
+ Acrescimo: string;
247
+ description(val: string): "enum not found" | "Desconto" | "Acréscimo";
248
+ };
249
+ export declare const TipoPendencia: {
250
+ DocumentoEntrada: string;
251
+ DocumentoSaida: string;
252
+ PedidosEntrega: string;
253
+ NotasPendente: string;
254
+ ComissaoPendente: string;
255
+ Aniversariantes: string;
256
+ description(val: string): "enum not found" | "Documento de Entrada" | "Documento de Saída" | "Pedidos de Entrega" | "Notas Pendentes" | "Comissão Pendente" | "Aniversariantes";
257
+ };