mdz-enum 1.7.30 → 1.7.31

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 (45) hide show
  1. package/dist/checkout/index.d.ts +33 -33
  2. package/dist/checkout/index.js +97 -97
  3. package/dist/commercial/index.d.ts +271 -271
  4. package/dist/commercial/index.js +677 -677
  5. package/dist/common/index.d.ts +74 -74
  6. package/dist/common/index.js +214 -214
  7. package/dist/config/index.d.ts +219 -219
  8. package/dist/config/index.js +679 -679
  9. package/dist/eva/index.d.ts +198 -198
  10. package/dist/eva/index.js +330 -330
  11. package/dist/finance/index.d.ts +243 -243
  12. package/dist/finance/index.js +737 -737
  13. package/dist/fiscal/index.d.ts +612 -612
  14. package/dist/fiscal/index.js +1593 -1593
  15. package/dist/functions.d.ts +11 -11
  16. package/dist/functions.js +74 -74
  17. package/dist/general/index.d.ts +266 -266
  18. package/dist/general/index.js +515 -515
  19. package/dist/home/index.d.ts +88 -88
  20. package/dist/home/index.js +268 -268
  21. package/dist/index.d.ts +17 -17
  22. package/dist/index.js +327 -327
  23. package/dist/integration/index.d.ts +37 -37
  24. package/dist/integration/index.js +109 -109
  25. package/dist/logistics/index.d.ts +321 -321
  26. package/dist/logistics/index.js +917 -917
  27. package/dist/marketplace/templates/components/index.d.ts +352 -352
  28. package/dist/marketplace/templates/components/index.js +383 -383
  29. package/dist/marketplace/templates/elements/index.d.ts +32 -32
  30. package/dist/marketplace/templates/elements/index.js +35 -35
  31. package/dist/marketplace/templates/index.d.ts +597 -600
  32. package/dist/marketplace/templates/index.js +49 -49
  33. package/dist/marketplace/templates/pages/index.d.ts +268 -268
  34. package/dist/marketplace/templates/pages/index.js +457 -457
  35. package/dist/marketplace/templates/reference/index.d.ts +24 -24
  36. package/dist/marketplace/templates/reference/index.js +26 -26
  37. package/dist/people/index.d.ts +66 -66
  38. package/dist/people/index.js +192 -192
  39. package/dist/platform/index.d.ts +386 -385
  40. package/dist/platform/index.js +1199 -1196
  41. package/dist/reports/index.d.ts +108 -108
  42. package/dist/reports/index.js +316 -316
  43. package/dist/service/index.d.ts +42 -42
  44. package/dist/service/index.js +137 -137
  45. package/package.json +1 -1
@@ -1,917 +1,917 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrdemBuscaProdutoPadrao = exports.CampoBuscaProduto = exports.ModoBuscaProduto = exports.SituacaoSerieProduto = exports.SituacaoAjusteConferencia = exports.TratamentoDivergenciaConferencia = exports.SituacaoLeituraConferencia = exports.SituacaoItemConferencia = exports.TipoDocumentoConferencia = exports.SituacaoConferencia = exports.ModoConferencia = exports.OperacaoConferencia = exports.TipoCombustivel = exports.TipoVeiculo = exports.TiposAtributoVinculavelMarketplace = exports.TiposAtributo = exports.TipoCampoAtributo = exports.TipoAtributo = exports.ModoPreco = exports.SituacaoColecao = exports.SituacaoImagemProduto = exports.TipoCodigoEtiquetaProduto = exports.TipoDesdobramentoProduto = exports.TipoMovimentacaoItemInventario = exports.TipoAjusteInventario = exports.SituacaoItemInventario = exports.SituacaoInventario = exports.TipoItem = exports.TipoQuantidadeInfoNutricional = exports.TipoLeiRotulagem = exports.TipoAtualizacaoEstoque = exports.TipoImagemGaleria = exports.TipoCategoria = exports.SituacaoQuantidadeEstoque = exports.OperacaoMovimentacaoEstoque = exports.OrigemMovimentacaoEstoque = exports.SituacaoMovimentacaoEstoque = exports.TipoValoracao = exports.TipoDataOrdemProducao = exports.SituacaoProducaoPedido = exports.MotivoPerdaProducao = exports.SituacaoPerdaProducao = exports.SituacaoOrdemProducao = exports.ModoProducao = exports.TipoProduto = void 0;
4
- exports.TipoProduto = {
5
- Simples: '0',
6
- ComGrade: '1',
7
- Kit: '2',
8
- Conjunto: '3',
9
- Composicao: '4',
10
- description(val) {
11
- switch (val) {
12
- case this.Simples:
13
- return 'Simples';
14
- case this.ComGrade:
15
- return 'Com Grade';
16
- case this.Kit:
17
- return 'Kit';
18
- case this.Conjunto:
19
- return 'Conjunto';
20
- case this.Composicao:
21
- return 'Composição';
22
- default:
23
- return 'enum not found';
24
- }
25
- },
26
- isDesmembradoNaVenda(val) {
27
- return val === this.Kit || val === this.Conjunto;
28
- },
29
- isSemEstoqueProprio(tipoProduto, modoProducao) {
30
- return tipoProduto === this.Composicao && modoProducao === exports.ModoProducao.BaixaNaVenda;
31
- },
32
- };
33
- exports.ModoProducao = {
34
- Producao: '0',
35
- BaixaNaVenda: '1',
36
- description(val) {
37
- switch (val) {
38
- case this.Producao:
39
- return 'Produção com estoque próprio';
40
- case this.BaixaNaVenda:
41
- return 'Baixa dos insumos na venda';
42
- default:
43
- return 'enum not found';
44
- }
45
- },
46
- };
47
- exports.SituacaoOrdemProducao = {
48
- Pendente: '0',
49
- Produzida: '1',
50
- Estornada: '2',
51
- EmProducao: '3',
52
- description(val) {
53
- switch (val) {
54
- case this.Pendente:
55
- return 'Pendente';
56
- case this.Produzida:
57
- return 'Produzida';
58
- case this.Estornada:
59
- return 'Estornada';
60
- case this.EmProducao:
61
- return 'Em produção';
62
- default:
63
- return 'enum not found';
64
- }
65
- },
66
- isAberta(val) {
67
- return val === this.Pendente || val === this.EmProducao;
68
- },
69
- };
70
- exports.SituacaoPerdaProducao = {
71
- Pendente: '0',
72
- Processada: '1',
73
- Estornada: '2',
74
- description(val) {
75
- switch (val) {
76
- case this.Pendente:
77
- return 'Pendente';
78
- case this.Processada:
79
- return 'Processada';
80
- case this.Estornada:
81
- return 'Estornada';
82
- default:
83
- return 'enum not found';
84
- }
85
- },
86
- };
87
- exports.MotivoPerdaProducao = {
88
- ErroProducao: '0',
89
- QuebraAvaria: '1',
90
- Vencimento: '2',
91
- Deterioracao: '3',
92
- Descarte: '4',
93
- Outros: '5',
94
- description(val) {
95
- switch (val) {
96
- case this.ErroProducao:
97
- return 'Erro de produção';
98
- case this.QuebraAvaria:
99
- return 'Quebra ou avaria';
100
- case this.Vencimento:
101
- return 'Vencimento';
102
- case this.Deterioracao:
103
- return 'Deterioração';
104
- case this.Descarte:
105
- return 'Sobra descartada';
106
- case this.Outros:
107
- return 'Outros';
108
- default:
109
- return 'enum not found';
110
- }
111
- },
112
- };
113
- exports.SituacaoProducaoPedido = {
114
- AguardandoProducao: '0',
115
- EmProducao: '1',
116
- Produzido: '2',
117
- description(val) {
118
- switch (val) {
119
- case this.AguardandoProducao:
120
- return 'Aguardando produção';
121
- case this.EmProducao:
122
- return 'Em produção';
123
- case this.Produzido:
124
- return 'Produzido';
125
- default:
126
- return 'enum not found';
127
- }
128
- },
129
- };
130
- exports.TipoDataOrdemProducao = {
131
- Cadastro: '0',
132
- PrevisaoConclusao: '1',
133
- Producao: '2',
134
- description(val) {
135
- switch (val) {
136
- case this.Cadastro:
137
- return 'Cadastro';
138
- case this.PrevisaoConclusao:
139
- return 'Previsão de conclusão';
140
- case this.Producao:
141
- return 'Produção';
142
- default:
143
- return 'enum not found';
144
- }
145
- },
146
- };
147
- exports.TipoValoracao = {
148
- PrecoCompra: '0',
149
- PrecoCusto: '1',
150
- PrecoVenda: '2',
151
- PrecoAtacado: '3',
152
- description(val) {
153
- switch (val) {
154
- case this.PrecoCompra:
155
- return 'Preço de Compra';
156
- case this.PrecoCusto:
157
- return 'Preço de Custo';
158
- case this.PrecoVenda:
159
- return 'Preço de Venda';
160
- case this.PrecoAtacado:
161
- return 'Preço de Atacado';
162
- default:
163
- return 'enum not found';
164
- }
165
- },
166
- };
167
- exports.SituacaoMovimentacaoEstoque = {
168
- EmEdicao: '0',
169
- Processado: '1',
170
- Estornado: '2',
171
- description(val) {
172
- switch (val) {
173
- case this.EmEdicao:
174
- return 'Em Edição';
175
- case this.Processado:
176
- return 'Processado';
177
- case this.Estornado:
178
- return 'Estornado';
179
- default:
180
- return 'enum not found';
181
- }
182
- },
183
- };
184
- exports.OrigemMovimentacaoEstoque = {
185
- Manual: '1',
186
- NotaFiscal: '2',
187
- Pedido: '3',
188
- Inventario: '4',
189
- Conferencia: '5',
190
- Producao: '6',
191
- description(val) {
192
- switch (val) {
193
- case this.Manual:
194
- return 'Manual';
195
- case this.NotaFiscal:
196
- return 'Nota Fiscal';
197
- case this.Pedido:
198
- return 'Pedido';
199
- case this.Inventario:
200
- return 'Inventário';
201
- case this.Conferencia:
202
- return 'Conferência';
203
- case this.Producao:
204
- return 'Produção';
205
- default:
206
- return 'enum not found';
207
- }
208
- },
209
- };
210
- exports.OperacaoMovimentacaoEstoque = {
211
- Entrada: '0',
212
- Saida: '1',
213
- Transferencia: '2',
214
- description(val) {
215
- switch (val) {
216
- case this.Entrada:
217
- return 'Entrada';
218
- case this.Saida:
219
- return 'Saída';
220
- case this.Transferencia:
221
- return 'Transferência';
222
- default:
223
- return 'enum not found';
224
- }
225
- },
226
- };
227
- exports.SituacaoQuantidadeEstoque = {
228
- Negativo: '0',
229
- Positivo: '1',
230
- description(val) {
231
- switch (val) {
232
- case this.Negativo:
233
- return 'Negativo';
234
- case this.Positivo:
235
- return 'Positivo';
236
- default:
237
- return 'enum not found';
238
- }
239
- },
240
- };
241
- exports.TipoCategoria = {
242
- Beleza: '0',
243
- Bolsa: '1',
244
- Calçado: '2',
245
- Celular: '3',
246
- Decoracao: '4',
247
- Eletrodomestico: '5',
248
- Eletronico: '6',
249
- Esporte: '7',
250
- Ferramenta: '8',
251
- Game: '9',
252
- Movel: '10',
253
- Vestuario: '11',
254
- Saude: '12',
255
- Automotivo: '13',
256
- MateriaisConstrucao: '14',
257
- description(val) {
258
- switch (val) {
259
- case this.Beleza:
260
- return 'Beleza';
261
- case this.Bolsa:
262
- return 'Bolsas';
263
- case this.Calçado:
264
- return 'Calçados';
265
- case this.Celular:
266
- return 'Celular';
267
- case this.Decoracao:
268
- return 'Decoração';
269
- case this.Eletrodomestico:
270
- return 'Eletrodomésticos';
271
- case this.Eletronico:
272
- return 'Eletrônicos';
273
- case this.Esporte:
274
- return 'Esportes';
275
- case this.Ferramenta:
276
- return 'Ferramentas';
277
- case this.Game:
278
- return 'Games';
279
- case this.Movel:
280
- return 'Móveis';
281
- case this.Vestuario:
282
- return 'Vestuário';
283
- case this.Saude:
284
- return 'Saúde';
285
- case this.Automotivo:
286
- return 'Automotivo';
287
- case this.MateriaisConstrucao:
288
- return 'Materiais de Construção';
289
- default:
290
- break;
291
- }
292
- },
293
- };
294
- exports.TipoImagemGaleria = {
295
- Geral: '0',
296
- PorGrade: '1',
297
- description(val) {
298
- switch (val) {
299
- case this.Geral:
300
- return 'Geral';
301
- case this.PorGrade:
302
- return 'Por Grade';
303
- default:
304
- return 'enum not found';
305
- }
306
- },
307
- };
308
- exports.TipoAtualizacaoEstoque = {
309
- NotaFiscal: '0',
310
- MovimentacaoEstoque: '1',
311
- description(val) {
312
- switch (val) {
313
- case this.NotaFiscal:
314
- return 'Nota Fiscal';
315
- case this.MovimentacaoEstoque:
316
- return 'Movimentaçaõ de Estoque';
317
- default:
318
- return 'enum not found';
319
- }
320
- },
321
- };
322
- exports.TipoLeiRotulagem = {
323
- Lei_360: '0',
324
- Lei_429: '1',
325
- description(val) {
326
- switch (val) {
327
- case this.Lei_360:
328
- return 'RDC 359/360';
329
- case this.Lei_429:
330
- return 'RDC 429';
331
- default:
332
- return 'enum not found';
333
- }
334
- },
335
- };
336
- exports.TipoQuantidadeInfoNutricional = {
337
- Grama: '0',
338
- Mililitro: '1',
339
- description(val) {
340
- switch (val) {
341
- case this.Grama:
342
- return '100 G (100 gramas)';
343
- case this.Mililitro:
344
- return '100 ML (100 mililitros)';
345
- default:
346
- return 'enum not found';
347
- }
348
- },
349
- };
350
- exports.TipoItem = {
351
- MercadoriaRevenda: '00',
352
- MateriaPrima: '01',
353
- Embalagem: '02',
354
- ProdutoProcesso: '03',
355
- ProdutoAcabado: '04',
356
- Subproduto: '05',
357
- ProdutoIntermediario: '06',
358
- MaterialUsoConsumo: '07',
359
- AtivoImobilizado: '08',
360
- Servicos: '09',
361
- OutrosInsumos: '10',
362
- Outras: '99',
363
- description(val) {
364
- switch (val) {
365
- case this.MercadoriaRevenda:
366
- return 'Mercadoria para revenda';
367
- case this.MateriaPrima:
368
- return 'Matéria-prima';
369
- case this.MateriaPrima:
370
- return 'Matéria-prima';
371
- case this.Embalagem:
372
- return 'Embalagem';
373
- case this.ProdutoProcesso:
374
- return 'Produto em processo';
375
- case this.ProdutoAcabado:
376
- return 'Produto acabado';
377
- case this.Subproduto:
378
- return 'Subproduto';
379
- case this.ProdutoIntermediario:
380
- return 'Produto intermediário';
381
- case this.MaterialUsoConsumo:
382
- return 'Material de uso e consumo';
383
- case this.AtivoImobilizado:
384
- return 'Ativo imobilizado';
385
- case this.Servicos:
386
- return 'Serviços';
387
- case this.OutrosInsumos:
388
- return 'Outros insumos';
389
- case this.Outras:
390
- return 'Outras';
391
- default:
392
- return 'enum not found';
393
- }
394
- },
395
- };
396
- exports.SituacaoInventario = {
397
- EmAndamento: '0',
398
- Concluido: '1',
399
- Cancelado: '2',
400
- description(val) {
401
- switch (val) {
402
- case this.EmAndamento:
403
- return 'Em Andamento';
404
- case this.Concluido:
405
- return 'Concluído';
406
- case this.Cancelado:
407
- return 'Cancelado';
408
- default:
409
- return 'enum not found';
410
- }
411
- },
412
- };
413
- exports.SituacaoItemInventario = {
414
- Excluido: '0',
415
- Atualizado: '1',
416
- AtualizacaoPendente: '2',
417
- InclusaoPendente: '3',
418
- description(val) {
419
- switch (val) {
420
- case this.Atualizado:
421
- return 'Atualizado';
422
- case this.Excluido:
423
- return 'Excluído';
424
- case this.AtualizacaoPendente:
425
- return 'Atualização Pendente';
426
- case this.InclusaoPendente:
427
- return 'Inclusão Pendente';
428
- default:
429
- return 'enum not found';
430
- }
431
- },
432
- };
433
- exports.TipoAjusteInventario = {
434
- Ajuste: '0',
435
- ApenasEntrada: '1',
436
- ApenasSaida: '2',
437
- description(val) {
438
- switch (val) {
439
- case this.Ajuste:
440
- return 'Ajuste';
441
- case this.ApenasEntrada:
442
- return 'Apenas Entrada';
443
- case this.ApenasSaida:
444
- return 'Apenas Saída';
445
- default:
446
- return 'enum not found';
447
- }
448
- },
449
- };
450
- exports.TipoMovimentacaoItemInventario = {
451
- Entrada: '0',
452
- Saida: '1',
453
- SemMov: '3',
454
- description(val) {
455
- switch (val) {
456
- case this.Entrada:
457
- return 'Entrada';
458
- case this.Saida:
459
- return 'Saída';
460
- case this.SemMov:
461
- return 'Não Mov.';
462
- default:
463
- return 'enum not found';
464
- }
465
- },
466
- };
467
- exports.TipoDesdobramentoProduto = {
468
- EmProduto: '0',
469
- EmGrade: '1',
470
- description(val) {
471
- switch (val) {
472
- case this.EmProduto:
473
- return 'Produtos';
474
- case this.EmGrade:
475
- return 'Grades';
476
- default:
477
- return 'enum not found';
478
- }
479
- },
480
- };
481
- exports.TipoCodigoEtiquetaProduto = {
482
- SkuProduto: '0',
483
- Ean13: '1',
484
- CodigoBarra: '2',
485
- description(val) {
486
- switch (val) {
487
- case this.SkuProduto:
488
- return 'SKU do Produto';
489
- case this.Ean13:
490
- return 'EAN13';
491
- case this.CodigoBarra:
492
- return 'Cód. de Barras';
493
- default:
494
- return 'enum not found';
495
- }
496
- },
497
- };
498
- exports.SituacaoImagemProduto = {
499
- ComImagem: '0',
500
- SemImagem: '1',
501
- description(val) {
502
- switch (val) {
503
- case this.ComImagem:
504
- return 'Com Imagem';
505
- case this.SemImagem:
506
- return 'Sem Imagem';
507
- default:
508
- return 'enum not found';
509
- }
510
- },
511
- };
512
- exports.SituacaoColecao = {
513
- Encerrada: '0',
514
- EmAndamento: '1',
515
- description(val) {
516
- switch (val) {
517
- case this.Encerrada:
518
- return 'Encerrada';
519
- case this.EmAndamento:
520
- return 'Em Andamento';
521
- default:
522
- return 'enum not found';
523
- }
524
- },
525
- };
526
- exports.ModoPreco = {
527
- Pai: '0',
528
- Filho: '1',
529
- description(val) {
530
- switch (val) {
531
- case this.Pai:
532
- return 'Pai';
533
- case this.Filho:
534
- return 'Filho';
535
- default:
536
- return 'enum not found';
537
- }
538
- },
539
- };
540
- exports.TipoAtributo = {
541
- Cor: '0',
542
- Tamanho: '1',
543
- Material: '2',
544
- FaixaEtaria: '3',
545
- Genero: '4',
546
- Sabor: '5',
547
- Voltagem: '6',
548
- Potencia: '7',
549
- description(val) {
550
- switch (val) {
551
- case this.Cor:
552
- return 'Cor';
553
- case this.Tamanho:
554
- return 'Tamanho';
555
- case this.Material:
556
- return 'Material';
557
- case this.FaixaEtaria:
558
- return 'Faixa etária';
559
- case this.Genero:
560
- return 'Gênero';
561
- case this.Sabor:
562
- return 'Sabores';
563
- case this.Voltagem:
564
- return 'Voltagens';
565
- case this.Potencia:
566
- return 'Potencias';
567
- default:
568
- return 'enum not found';
569
- }
570
- },
571
- };
572
- exports.TipoCampoAtributo = {
573
- Cor: 'color',
574
- Texto: 'text',
575
- Selecao: 'select',
576
- description(val) {
577
- switch (val) {
578
- case this.Cor:
579
- return 'Cor';
580
- case this.Texto:
581
- return 'Texto';
582
- case this.Selecao:
583
- return 'Seleção';
584
- default:
585
- return 'enum not found';
586
- }
587
- },
588
- };
589
- exports.TiposAtributo = [
590
- { tipo: exports.TipoAtributo.Cor, tipo_campo: exports.TipoCampoAtributo.Cor, values: null },
591
- { tipo: exports.TipoAtributo.Tamanho, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
592
- { tipo: exports.TipoAtributo.Material, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
593
- {
594
- tipo: exports.TipoAtributo.FaixaEtaria,
595
- tipo_campo: exports.TipoCampoAtributo.Selecao,
596
- values: [
597
- { label: 'Recém nascido', value: 'recem_nascido' },
598
- { label: 'Infantil', value: 'infantil' },
599
- { label: 'Criança', value: 'crianca' },
600
- { label: 'Adulto', value: 'adulto' },
601
- ],
602
- },
603
- {
604
- tipo: exports.TipoAtributo.Genero,
605
- tipo_campo: exports.TipoCampoAtributo.Selecao,
606
- values: [
607
- { label: 'Masculino', value: 'masculino' },
608
- { label: 'Feminino', value: 'feminino' },
609
- { label: 'Unissex', value: 'unissex' },
610
- ],
611
- },
612
- { tipo: exports.TipoAtributo.Sabor, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
613
- { tipo: exports.TipoAtributo.Voltagem, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
614
- { tipo: exports.TipoAtributo.Potencia, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
615
- ].map((item) => ({ ...item, descricao: exports.TipoAtributo.description(item.tipo) }));
616
- exports.TiposAtributoVinculavelMarketplace = [
617
- exports.TipoAtributo.Cor,
618
- exports.TipoAtributo.Tamanho,
619
- exports.TipoAtributo.Sabor,
620
- exports.TipoAtributo.Voltagem,
621
- exports.TipoAtributo.Potencia,
622
- ];
623
- exports.TipoVeiculo = {
624
- Carro: '0',
625
- Moto: '1',
626
- Van: '2',
627
- Caminhao: '3',
628
- Utilitario: '4',
629
- Bicicleta: '5',
630
- Outro: '6',
631
- description(val) {
632
- switch (val) {
633
- case this.Carro:
634
- return 'Carro';
635
- case this.Moto:
636
- return 'Moto';
637
- case this.Van:
638
- return 'Van';
639
- case this.Caminhao:
640
- return 'Caminhão';
641
- case this.Utilitario:
642
- return 'Utilitário';
643
- case this.Bicicleta:
644
- return 'Bicicleta';
645
- case this.Outro:
646
- return 'Outro';
647
- default:
648
- return 'enum not found';
649
- }
650
- },
651
- };
652
- exports.TipoCombustivel = {
653
- Gasolina: '0',
654
- Etanol: '1',
655
- Flex: '2',
656
- Diesel: '3',
657
- Gnv: '4',
658
- Eletrico: '5',
659
- Hibrido: '6',
660
- NaoSeAplica: '7',
661
- description(val) {
662
- switch (val) {
663
- case this.Gasolina:
664
- return 'Gasolina';
665
- case this.Etanol:
666
- return 'Etanol';
667
- case this.Flex:
668
- return 'Flex';
669
- case this.Diesel:
670
- return 'Diesel';
671
- case this.Gnv:
672
- return 'GNV';
673
- case this.Eletrico:
674
- return 'Elétrico';
675
- case this.Hibrido:
676
- return 'Híbrido';
677
- case this.NaoSeAplica:
678
- return 'Não se aplica';
679
- default:
680
- return 'enum not found';
681
- }
682
- },
683
- };
684
- exports.OperacaoConferencia = {
685
- Entrada: '0',
686
- Saida: '1',
687
- description(val) {
688
- switch (val) {
689
- case this.Entrada:
690
- return 'Entrada';
691
- case this.Saida:
692
- return 'Saída';
693
- default:
694
- return 'enum not found';
695
- }
696
- },
697
- };
698
- exports.ModoConferencia = {
699
- Cega: '0',
700
- Aberta: '1',
701
- description(val) {
702
- switch (val) {
703
- case this.Cega:
704
- return 'Cega';
705
- case this.Aberta:
706
- return 'Aberta';
707
- default:
708
- return 'enum not found';
709
- }
710
- },
711
- };
712
- exports.SituacaoConferencia = {
713
- EmAndamento: '0',
714
- Concluida: '1',
715
- Finalizada: '2',
716
- Cancelada: '3',
717
- description(val) {
718
- switch (val) {
719
- case this.EmAndamento:
720
- return 'Em Andamento';
721
- case this.Concluida:
722
- return 'Concluída';
723
- case this.Finalizada:
724
- return 'Finalizada';
725
- case this.Cancelada:
726
- return 'Cancelada';
727
- default:
728
- return 'enum not found';
729
- }
730
- },
731
- };
732
- exports.TipoDocumentoConferencia = {
733
- Pedido: '0',
734
- EnvioConsignacao: '1',
735
- RetornoConsignacao: '2',
736
- Compra: '3',
737
- NotaFiscalEntrada: '4',
738
- NotaFiscalSaida: '5',
739
- Entrega: '6',
740
- description(val) {
741
- switch (val) {
742
- case this.Pedido:
743
- return 'Pedido de Venda';
744
- case this.EnvioConsignacao:
745
- return 'Envio de Consignação';
746
- case this.RetornoConsignacao:
747
- return 'Retorno de Consignação';
748
- case this.Compra:
749
- return 'Pedido de Compra';
750
- case this.NotaFiscalEntrada:
751
- return 'Nota Fiscal de Entrada';
752
- case this.NotaFiscalSaida:
753
- return 'Nota Fiscal de Saída';
754
- case this.Entrega:
755
- return 'Entrega';
756
- default:
757
- return 'enum not found';
758
- }
759
- },
760
- operacao(val) {
761
- switch (val) {
762
- case this.RetornoConsignacao:
763
- case this.Compra:
764
- case this.NotaFiscalEntrada:
765
- return exports.OperacaoConferencia.Entrada;
766
- default:
767
- return exports.OperacaoConferencia.Saida;
768
- }
769
- },
770
- };
771
- exports.SituacaoItemConferencia = {
772
- Pendente: '0',
773
- Conferido: '1',
774
- Falta: '2',
775
- Sobra: '3',
776
- NaoPrevisto: '4',
777
- description(val) {
778
- switch (val) {
779
- case this.Pendente:
780
- return 'Pendente';
781
- case this.Conferido:
782
- return 'Conferido';
783
- case this.Falta:
784
- return 'Falta';
785
- case this.Sobra:
786
- return 'Sobra';
787
- case this.NaoPrevisto:
788
- return 'Não Previsto';
789
- default:
790
- return 'enum not found';
791
- }
792
- },
793
- };
794
- exports.SituacaoLeituraConferencia = {
795
- Valida: '0',
796
- Estornada: '1',
797
- CodigoNaoEncontrado: '2',
798
- Rejeitada: '3',
799
- description(val) {
800
- switch (val) {
801
- case this.Valida:
802
- return 'Válida';
803
- case this.Estornada:
804
- return 'Estornada';
805
- case this.CodigoNaoEncontrado:
806
- return 'Código não encontrado';
807
- case this.Rejeitada:
808
- return 'Rejeitada';
809
- default:
810
- return 'enum not found';
811
- }
812
- },
813
- };
814
- exports.TratamentoDivergenciaConferencia = {
815
- EntradaComplementar: '0',
816
- AjusteEntradaEstoque: '1',
817
- AjusteSaidaEstoque: '2',
818
- AjusteDocumento: '3',
819
- AceiteDivergencia: '4',
820
- description(val) {
821
- switch (val) {
822
- case this.EntradaComplementar:
823
- return 'Entrada Complementar';
824
- case this.AjusteEntradaEstoque:
825
- return 'Ajuste de Entrada no Estoque';
826
- case this.AjusteSaidaEstoque:
827
- return 'Ajuste de Saída no Estoque';
828
- case this.AjusteDocumento:
829
- return 'Ajuste do Documento';
830
- case this.AceiteDivergencia:
831
- return 'Aceite da Divergência';
832
- default:
833
- return 'enum not found';
834
- }
835
- },
836
- };
837
- exports.SituacaoAjusteConferencia = {
838
- Ativo: '0',
839
- Estornado: '1',
840
- description(val) {
841
- switch (val) {
842
- case this.Ativo:
843
- return 'Ativo';
844
- case this.Estornado:
845
- return 'Estornado';
846
- default:
847
- return 'enum not found';
848
- }
849
- },
850
- };
851
- exports.SituacaoSerieProduto = {
852
- Disponivel: '0',
853
- Reservado: '1',
854
- Vendido: '2',
855
- Baixado: '3',
856
- description(val) {
857
- switch (val) {
858
- case this.Disponivel:
859
- return 'Disponível';
860
- case this.Reservado:
861
- return 'Reservado';
862
- case this.Vendido:
863
- return 'Vendido';
864
- case this.Baixado:
865
- return 'Baixado';
866
- default:
867
- return 'enum not found';
868
- }
869
- },
870
- };
871
- exports.ModoBuscaProduto = {
872
- Igual: '0',
873
- ComecaCom: '1',
874
- Contem: '2',
875
- description(val) {
876
- switch (val) {
877
- case this.Igual:
878
- return 'Igual';
879
- case this.ComecaCom:
880
- return 'Começa com';
881
- case this.Contem:
882
- return 'Contém';
883
- default:
884
- return 'enum not found';
885
- }
886
- },
887
- };
888
- exports.CampoBuscaProduto = {
889
- CodigoBarra: '0',
890
- Sku: '1',
891
- Referencia: '2',
892
- Descricao: '3',
893
- description(val) {
894
- switch (val) {
895
- case this.CodigoBarra:
896
- return 'Código de barras';
897
- case this.Sku:
898
- return 'SKU';
899
- case this.Referencia:
900
- return 'Referência';
901
- case this.Descricao:
902
- return 'Descrição';
903
- default:
904
- return 'enum not found';
905
- }
906
- },
907
- modos(val) {
908
- if (val === this.CodigoBarra)
909
- return [exports.ModoBuscaProduto.Igual];
910
- return [exports.ModoBuscaProduto.Igual, exports.ModoBuscaProduto.ComecaCom, exports.ModoBuscaProduto.Contem];
911
- },
912
- };
913
- exports.OrdemBuscaProdutoPadrao = [
914
- { campo: exports.CampoBuscaProduto.CodigoBarra, modo: exports.ModoBuscaProduto.Igual },
915
- { campo: exports.CampoBuscaProduto.Sku, modo: exports.ModoBuscaProduto.Igual },
916
- { campo: exports.CampoBuscaProduto.Descricao, modo: exports.ModoBuscaProduto.Contem },
917
- ];
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrdemBuscaProdutoPadrao = exports.CampoBuscaProduto = exports.ModoBuscaProduto = exports.SituacaoSerieProduto = exports.SituacaoAjusteConferencia = exports.TratamentoDivergenciaConferencia = exports.SituacaoLeituraConferencia = exports.SituacaoItemConferencia = exports.TipoDocumentoConferencia = exports.SituacaoConferencia = exports.ModoConferencia = exports.OperacaoConferencia = exports.TipoCombustivel = exports.TipoVeiculo = exports.TiposAtributoVinculavelMarketplace = exports.TiposAtributo = exports.TipoCampoAtributo = exports.TipoAtributo = exports.ModoPreco = exports.SituacaoColecao = exports.SituacaoImagemProduto = exports.TipoCodigoEtiquetaProduto = exports.TipoDesdobramentoProduto = exports.TipoMovimentacaoItemInventario = exports.TipoAjusteInventario = exports.SituacaoItemInventario = exports.SituacaoInventario = exports.TipoItem = exports.TipoQuantidadeInfoNutricional = exports.TipoLeiRotulagem = exports.TipoAtualizacaoEstoque = exports.TipoImagemGaleria = exports.TipoCategoria = exports.SituacaoQuantidadeEstoque = exports.OperacaoMovimentacaoEstoque = exports.OrigemMovimentacaoEstoque = exports.SituacaoMovimentacaoEstoque = exports.TipoValoracao = exports.TipoDataOrdemProducao = exports.SituacaoProducaoPedido = exports.MotivoPerdaProducao = exports.SituacaoPerdaProducao = exports.SituacaoOrdemProducao = exports.ModoProducao = exports.TipoProduto = void 0;
4
+ exports.TipoProduto = {
5
+ Simples: '0',
6
+ ComGrade: '1',
7
+ Kit: '2',
8
+ Conjunto: '3',
9
+ Composicao: '4',
10
+ description(val) {
11
+ switch (val) {
12
+ case this.Simples:
13
+ return 'Simples';
14
+ case this.ComGrade:
15
+ return 'Com Grade';
16
+ case this.Kit:
17
+ return 'Kit';
18
+ case this.Conjunto:
19
+ return 'Conjunto';
20
+ case this.Composicao:
21
+ return 'Composição';
22
+ default:
23
+ return 'enum not found';
24
+ }
25
+ },
26
+ isDesmembradoNaVenda(val) {
27
+ return val === this.Kit || val === this.Conjunto;
28
+ },
29
+ isSemEstoqueProprio(tipoProduto, modoProducao) {
30
+ return tipoProduto === this.Composicao && modoProducao === exports.ModoProducao.BaixaNaVenda;
31
+ },
32
+ };
33
+ exports.ModoProducao = {
34
+ Producao: '0',
35
+ BaixaNaVenda: '1',
36
+ description(val) {
37
+ switch (val) {
38
+ case this.Producao:
39
+ return 'Produção com estoque próprio';
40
+ case this.BaixaNaVenda:
41
+ return 'Baixa dos insumos na venda';
42
+ default:
43
+ return 'enum not found';
44
+ }
45
+ },
46
+ };
47
+ exports.SituacaoOrdemProducao = {
48
+ Pendente: '0',
49
+ Produzida: '1',
50
+ Estornada: '2',
51
+ EmProducao: '3',
52
+ description(val) {
53
+ switch (val) {
54
+ case this.Pendente:
55
+ return 'Pendente';
56
+ case this.Produzida:
57
+ return 'Produzida';
58
+ case this.Estornada:
59
+ return 'Estornada';
60
+ case this.EmProducao:
61
+ return 'Em produção';
62
+ default:
63
+ return 'enum not found';
64
+ }
65
+ },
66
+ isAberta(val) {
67
+ return val === this.Pendente || val === this.EmProducao;
68
+ },
69
+ };
70
+ exports.SituacaoPerdaProducao = {
71
+ Pendente: '0',
72
+ Processada: '1',
73
+ Estornada: '2',
74
+ description(val) {
75
+ switch (val) {
76
+ case this.Pendente:
77
+ return 'Pendente';
78
+ case this.Processada:
79
+ return 'Processada';
80
+ case this.Estornada:
81
+ return 'Estornada';
82
+ default:
83
+ return 'enum not found';
84
+ }
85
+ },
86
+ };
87
+ exports.MotivoPerdaProducao = {
88
+ ErroProducao: '0',
89
+ QuebraAvaria: '1',
90
+ Vencimento: '2',
91
+ Deterioracao: '3',
92
+ Descarte: '4',
93
+ Outros: '5',
94
+ description(val) {
95
+ switch (val) {
96
+ case this.ErroProducao:
97
+ return 'Erro de produção';
98
+ case this.QuebraAvaria:
99
+ return 'Quebra ou avaria';
100
+ case this.Vencimento:
101
+ return 'Vencimento';
102
+ case this.Deterioracao:
103
+ return 'Deterioração';
104
+ case this.Descarte:
105
+ return 'Sobra descartada';
106
+ case this.Outros:
107
+ return 'Outros';
108
+ default:
109
+ return 'enum not found';
110
+ }
111
+ },
112
+ };
113
+ exports.SituacaoProducaoPedido = {
114
+ AguardandoProducao: '0',
115
+ EmProducao: '1',
116
+ Produzido: '2',
117
+ description(val) {
118
+ switch (val) {
119
+ case this.AguardandoProducao:
120
+ return 'Aguardando produção';
121
+ case this.EmProducao:
122
+ return 'Em produção';
123
+ case this.Produzido:
124
+ return 'Produzido';
125
+ default:
126
+ return 'enum not found';
127
+ }
128
+ },
129
+ };
130
+ exports.TipoDataOrdemProducao = {
131
+ Cadastro: '0',
132
+ PrevisaoConclusao: '1',
133
+ Producao: '2',
134
+ description(val) {
135
+ switch (val) {
136
+ case this.Cadastro:
137
+ return 'Cadastro';
138
+ case this.PrevisaoConclusao:
139
+ return 'Previsão de conclusão';
140
+ case this.Producao:
141
+ return 'Produção';
142
+ default:
143
+ return 'enum not found';
144
+ }
145
+ },
146
+ };
147
+ exports.TipoValoracao = {
148
+ PrecoCompra: '0',
149
+ PrecoCusto: '1',
150
+ PrecoVenda: '2',
151
+ PrecoAtacado: '3',
152
+ description(val) {
153
+ switch (val) {
154
+ case this.PrecoCompra:
155
+ return 'Preço de Compra';
156
+ case this.PrecoCusto:
157
+ return 'Preço de Custo';
158
+ case this.PrecoVenda:
159
+ return 'Preço de Venda';
160
+ case this.PrecoAtacado:
161
+ return 'Preço de Atacado';
162
+ default:
163
+ return 'enum not found';
164
+ }
165
+ },
166
+ };
167
+ exports.SituacaoMovimentacaoEstoque = {
168
+ EmEdicao: '0',
169
+ Processado: '1',
170
+ Estornado: '2',
171
+ description(val) {
172
+ switch (val) {
173
+ case this.EmEdicao:
174
+ return 'Em Edição';
175
+ case this.Processado:
176
+ return 'Processado';
177
+ case this.Estornado:
178
+ return 'Estornado';
179
+ default:
180
+ return 'enum not found';
181
+ }
182
+ },
183
+ };
184
+ exports.OrigemMovimentacaoEstoque = {
185
+ Manual: '1',
186
+ NotaFiscal: '2',
187
+ Pedido: '3',
188
+ Inventario: '4',
189
+ Conferencia: '5',
190
+ Producao: '6',
191
+ description(val) {
192
+ switch (val) {
193
+ case this.Manual:
194
+ return 'Manual';
195
+ case this.NotaFiscal:
196
+ return 'Nota Fiscal';
197
+ case this.Pedido:
198
+ return 'Pedido';
199
+ case this.Inventario:
200
+ return 'Inventário';
201
+ case this.Conferencia:
202
+ return 'Conferência';
203
+ case this.Producao:
204
+ return 'Produção';
205
+ default:
206
+ return 'enum not found';
207
+ }
208
+ },
209
+ };
210
+ exports.OperacaoMovimentacaoEstoque = {
211
+ Entrada: '0',
212
+ Saida: '1',
213
+ Transferencia: '2',
214
+ description(val) {
215
+ switch (val) {
216
+ case this.Entrada:
217
+ return 'Entrada';
218
+ case this.Saida:
219
+ return 'Saída';
220
+ case this.Transferencia:
221
+ return 'Transferência';
222
+ default:
223
+ return 'enum not found';
224
+ }
225
+ },
226
+ };
227
+ exports.SituacaoQuantidadeEstoque = {
228
+ Negativo: '0',
229
+ Positivo: '1',
230
+ description(val) {
231
+ switch (val) {
232
+ case this.Negativo:
233
+ return 'Negativo';
234
+ case this.Positivo:
235
+ return 'Positivo';
236
+ default:
237
+ return 'enum not found';
238
+ }
239
+ },
240
+ };
241
+ exports.TipoCategoria = {
242
+ Beleza: '0',
243
+ Bolsa: '1',
244
+ Calçado: '2',
245
+ Celular: '3',
246
+ Decoracao: '4',
247
+ Eletrodomestico: '5',
248
+ Eletronico: '6',
249
+ Esporte: '7',
250
+ Ferramenta: '8',
251
+ Game: '9',
252
+ Movel: '10',
253
+ Vestuario: '11',
254
+ Saude: '12',
255
+ Automotivo: '13',
256
+ MateriaisConstrucao: '14',
257
+ description(val) {
258
+ switch (val) {
259
+ case this.Beleza:
260
+ return 'Beleza';
261
+ case this.Bolsa:
262
+ return 'Bolsas';
263
+ case this.Calçado:
264
+ return 'Calçados';
265
+ case this.Celular:
266
+ return 'Celular';
267
+ case this.Decoracao:
268
+ return 'Decoração';
269
+ case this.Eletrodomestico:
270
+ return 'Eletrodomésticos';
271
+ case this.Eletronico:
272
+ return 'Eletrônicos';
273
+ case this.Esporte:
274
+ return 'Esportes';
275
+ case this.Ferramenta:
276
+ return 'Ferramentas';
277
+ case this.Game:
278
+ return 'Games';
279
+ case this.Movel:
280
+ return 'Móveis';
281
+ case this.Vestuario:
282
+ return 'Vestuário';
283
+ case this.Saude:
284
+ return 'Saúde';
285
+ case this.Automotivo:
286
+ return 'Automotivo';
287
+ case this.MateriaisConstrucao:
288
+ return 'Materiais de Construção';
289
+ default:
290
+ break;
291
+ }
292
+ },
293
+ };
294
+ exports.TipoImagemGaleria = {
295
+ Geral: '0',
296
+ PorGrade: '1',
297
+ description(val) {
298
+ switch (val) {
299
+ case this.Geral:
300
+ return 'Geral';
301
+ case this.PorGrade:
302
+ return 'Por Grade';
303
+ default:
304
+ return 'enum not found';
305
+ }
306
+ },
307
+ };
308
+ exports.TipoAtualizacaoEstoque = {
309
+ NotaFiscal: '0',
310
+ MovimentacaoEstoque: '1',
311
+ description(val) {
312
+ switch (val) {
313
+ case this.NotaFiscal:
314
+ return 'Nota Fiscal';
315
+ case this.MovimentacaoEstoque:
316
+ return 'Movimentaçaõ de Estoque';
317
+ default:
318
+ return 'enum not found';
319
+ }
320
+ },
321
+ };
322
+ exports.TipoLeiRotulagem = {
323
+ Lei_360: '0',
324
+ Lei_429: '1',
325
+ description(val) {
326
+ switch (val) {
327
+ case this.Lei_360:
328
+ return 'RDC 359/360';
329
+ case this.Lei_429:
330
+ return 'RDC 429';
331
+ default:
332
+ return 'enum not found';
333
+ }
334
+ },
335
+ };
336
+ exports.TipoQuantidadeInfoNutricional = {
337
+ Grama: '0',
338
+ Mililitro: '1',
339
+ description(val) {
340
+ switch (val) {
341
+ case this.Grama:
342
+ return '100 G (100 gramas)';
343
+ case this.Mililitro:
344
+ return '100 ML (100 mililitros)';
345
+ default:
346
+ return 'enum not found';
347
+ }
348
+ },
349
+ };
350
+ exports.TipoItem = {
351
+ MercadoriaRevenda: '00',
352
+ MateriaPrima: '01',
353
+ Embalagem: '02',
354
+ ProdutoProcesso: '03',
355
+ ProdutoAcabado: '04',
356
+ Subproduto: '05',
357
+ ProdutoIntermediario: '06',
358
+ MaterialUsoConsumo: '07',
359
+ AtivoImobilizado: '08',
360
+ Servicos: '09',
361
+ OutrosInsumos: '10',
362
+ Outras: '99',
363
+ description(val) {
364
+ switch (val) {
365
+ case this.MercadoriaRevenda:
366
+ return 'Mercadoria para revenda';
367
+ case this.MateriaPrima:
368
+ return 'Matéria-prima';
369
+ case this.MateriaPrima:
370
+ return 'Matéria-prima';
371
+ case this.Embalagem:
372
+ return 'Embalagem';
373
+ case this.ProdutoProcesso:
374
+ return 'Produto em processo';
375
+ case this.ProdutoAcabado:
376
+ return 'Produto acabado';
377
+ case this.Subproduto:
378
+ return 'Subproduto';
379
+ case this.ProdutoIntermediario:
380
+ return 'Produto intermediário';
381
+ case this.MaterialUsoConsumo:
382
+ return 'Material de uso e consumo';
383
+ case this.AtivoImobilizado:
384
+ return 'Ativo imobilizado';
385
+ case this.Servicos:
386
+ return 'Serviços';
387
+ case this.OutrosInsumos:
388
+ return 'Outros insumos';
389
+ case this.Outras:
390
+ return 'Outras';
391
+ default:
392
+ return 'enum not found';
393
+ }
394
+ },
395
+ };
396
+ exports.SituacaoInventario = {
397
+ EmAndamento: '0',
398
+ Concluido: '1',
399
+ Cancelado: '2',
400
+ description(val) {
401
+ switch (val) {
402
+ case this.EmAndamento:
403
+ return 'Em Andamento';
404
+ case this.Concluido:
405
+ return 'Concluído';
406
+ case this.Cancelado:
407
+ return 'Cancelado';
408
+ default:
409
+ return 'enum not found';
410
+ }
411
+ },
412
+ };
413
+ exports.SituacaoItemInventario = {
414
+ Excluido: '0',
415
+ Atualizado: '1',
416
+ AtualizacaoPendente: '2',
417
+ InclusaoPendente: '3',
418
+ description(val) {
419
+ switch (val) {
420
+ case this.Atualizado:
421
+ return 'Atualizado';
422
+ case this.Excluido:
423
+ return 'Excluído';
424
+ case this.AtualizacaoPendente:
425
+ return 'Atualização Pendente';
426
+ case this.InclusaoPendente:
427
+ return 'Inclusão Pendente';
428
+ default:
429
+ return 'enum not found';
430
+ }
431
+ },
432
+ };
433
+ exports.TipoAjusteInventario = {
434
+ Ajuste: '0',
435
+ ApenasEntrada: '1',
436
+ ApenasSaida: '2',
437
+ description(val) {
438
+ switch (val) {
439
+ case this.Ajuste:
440
+ return 'Ajuste';
441
+ case this.ApenasEntrada:
442
+ return 'Apenas Entrada';
443
+ case this.ApenasSaida:
444
+ return 'Apenas Saída';
445
+ default:
446
+ return 'enum not found';
447
+ }
448
+ },
449
+ };
450
+ exports.TipoMovimentacaoItemInventario = {
451
+ Entrada: '0',
452
+ Saida: '1',
453
+ SemMov: '3',
454
+ description(val) {
455
+ switch (val) {
456
+ case this.Entrada:
457
+ return 'Entrada';
458
+ case this.Saida:
459
+ return 'Saída';
460
+ case this.SemMov:
461
+ return 'Não Mov.';
462
+ default:
463
+ return 'enum not found';
464
+ }
465
+ },
466
+ };
467
+ exports.TipoDesdobramentoProduto = {
468
+ EmProduto: '0',
469
+ EmGrade: '1',
470
+ description(val) {
471
+ switch (val) {
472
+ case this.EmProduto:
473
+ return 'Produtos';
474
+ case this.EmGrade:
475
+ return 'Grades';
476
+ default:
477
+ return 'enum not found';
478
+ }
479
+ },
480
+ };
481
+ exports.TipoCodigoEtiquetaProduto = {
482
+ SkuProduto: '0',
483
+ Ean13: '1',
484
+ CodigoBarra: '2',
485
+ description(val) {
486
+ switch (val) {
487
+ case this.SkuProduto:
488
+ return 'SKU do Produto';
489
+ case this.Ean13:
490
+ return 'EAN13';
491
+ case this.CodigoBarra:
492
+ return 'Cód. de Barras';
493
+ default:
494
+ return 'enum not found';
495
+ }
496
+ },
497
+ };
498
+ exports.SituacaoImagemProduto = {
499
+ ComImagem: '0',
500
+ SemImagem: '1',
501
+ description(val) {
502
+ switch (val) {
503
+ case this.ComImagem:
504
+ return 'Com Imagem';
505
+ case this.SemImagem:
506
+ return 'Sem Imagem';
507
+ default:
508
+ return 'enum not found';
509
+ }
510
+ },
511
+ };
512
+ exports.SituacaoColecao = {
513
+ Encerrada: '0',
514
+ EmAndamento: '1',
515
+ description(val) {
516
+ switch (val) {
517
+ case this.Encerrada:
518
+ return 'Encerrada';
519
+ case this.EmAndamento:
520
+ return 'Em Andamento';
521
+ default:
522
+ return 'enum not found';
523
+ }
524
+ },
525
+ };
526
+ exports.ModoPreco = {
527
+ Pai: '0',
528
+ Filho: '1',
529
+ description(val) {
530
+ switch (val) {
531
+ case this.Pai:
532
+ return 'Pai';
533
+ case this.Filho:
534
+ return 'Filho';
535
+ default:
536
+ return 'enum not found';
537
+ }
538
+ },
539
+ };
540
+ exports.TipoAtributo = {
541
+ Cor: '0',
542
+ Tamanho: '1',
543
+ Material: '2',
544
+ FaixaEtaria: '3',
545
+ Genero: '4',
546
+ Sabor: '5',
547
+ Voltagem: '6',
548
+ Potencia: '7',
549
+ description(val) {
550
+ switch (val) {
551
+ case this.Cor:
552
+ return 'Cor';
553
+ case this.Tamanho:
554
+ return 'Tamanho';
555
+ case this.Material:
556
+ return 'Material';
557
+ case this.FaixaEtaria:
558
+ return 'Faixa etária';
559
+ case this.Genero:
560
+ return 'Gênero';
561
+ case this.Sabor:
562
+ return 'Sabores';
563
+ case this.Voltagem:
564
+ return 'Voltagens';
565
+ case this.Potencia:
566
+ return 'Potencias';
567
+ default:
568
+ return 'enum not found';
569
+ }
570
+ },
571
+ };
572
+ exports.TipoCampoAtributo = {
573
+ Cor: 'color',
574
+ Texto: 'text',
575
+ Selecao: 'select',
576
+ description(val) {
577
+ switch (val) {
578
+ case this.Cor:
579
+ return 'Cor';
580
+ case this.Texto:
581
+ return 'Texto';
582
+ case this.Selecao:
583
+ return 'Seleção';
584
+ default:
585
+ return 'enum not found';
586
+ }
587
+ },
588
+ };
589
+ exports.TiposAtributo = [
590
+ { tipo: exports.TipoAtributo.Cor, tipo_campo: exports.TipoCampoAtributo.Cor, values: null },
591
+ { tipo: exports.TipoAtributo.Tamanho, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
592
+ { tipo: exports.TipoAtributo.Material, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
593
+ {
594
+ tipo: exports.TipoAtributo.FaixaEtaria,
595
+ tipo_campo: exports.TipoCampoAtributo.Selecao,
596
+ values: [
597
+ { label: 'Recém nascido', value: 'recem_nascido' },
598
+ { label: 'Infantil', value: 'infantil' },
599
+ { label: 'Criança', value: 'crianca' },
600
+ { label: 'Adulto', value: 'adulto' },
601
+ ],
602
+ },
603
+ {
604
+ tipo: exports.TipoAtributo.Genero,
605
+ tipo_campo: exports.TipoCampoAtributo.Selecao,
606
+ values: [
607
+ { label: 'Masculino', value: 'masculino' },
608
+ { label: 'Feminino', value: 'feminino' },
609
+ { label: 'Unissex', value: 'unissex' },
610
+ ],
611
+ },
612
+ { tipo: exports.TipoAtributo.Sabor, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
613
+ { tipo: exports.TipoAtributo.Voltagem, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
614
+ { tipo: exports.TipoAtributo.Potencia, tipo_campo: exports.TipoCampoAtributo.Texto, values: null },
615
+ ].map((item) => ({ ...item, descricao: exports.TipoAtributo.description(item.tipo) }));
616
+ exports.TiposAtributoVinculavelMarketplace = [
617
+ exports.TipoAtributo.Cor,
618
+ exports.TipoAtributo.Tamanho,
619
+ exports.TipoAtributo.Sabor,
620
+ exports.TipoAtributo.Voltagem,
621
+ exports.TipoAtributo.Potencia,
622
+ ];
623
+ exports.TipoVeiculo = {
624
+ Carro: '0',
625
+ Moto: '1',
626
+ Van: '2',
627
+ Caminhao: '3',
628
+ Utilitario: '4',
629
+ Bicicleta: '5',
630
+ Outro: '6',
631
+ description(val) {
632
+ switch (val) {
633
+ case this.Carro:
634
+ return 'Carro';
635
+ case this.Moto:
636
+ return 'Moto';
637
+ case this.Van:
638
+ return 'Van';
639
+ case this.Caminhao:
640
+ return 'Caminhão';
641
+ case this.Utilitario:
642
+ return 'Utilitário';
643
+ case this.Bicicleta:
644
+ return 'Bicicleta';
645
+ case this.Outro:
646
+ return 'Outro';
647
+ default:
648
+ return 'enum not found';
649
+ }
650
+ },
651
+ };
652
+ exports.TipoCombustivel = {
653
+ Gasolina: '0',
654
+ Etanol: '1',
655
+ Flex: '2',
656
+ Diesel: '3',
657
+ Gnv: '4',
658
+ Eletrico: '5',
659
+ Hibrido: '6',
660
+ NaoSeAplica: '7',
661
+ description(val) {
662
+ switch (val) {
663
+ case this.Gasolina:
664
+ return 'Gasolina';
665
+ case this.Etanol:
666
+ return 'Etanol';
667
+ case this.Flex:
668
+ return 'Flex';
669
+ case this.Diesel:
670
+ return 'Diesel';
671
+ case this.Gnv:
672
+ return 'GNV';
673
+ case this.Eletrico:
674
+ return 'Elétrico';
675
+ case this.Hibrido:
676
+ return 'Híbrido';
677
+ case this.NaoSeAplica:
678
+ return 'Não se aplica';
679
+ default:
680
+ return 'enum not found';
681
+ }
682
+ },
683
+ };
684
+ exports.OperacaoConferencia = {
685
+ Entrada: '0',
686
+ Saida: '1',
687
+ description(val) {
688
+ switch (val) {
689
+ case this.Entrada:
690
+ return 'Entrada';
691
+ case this.Saida:
692
+ return 'Saída';
693
+ default:
694
+ return 'enum not found';
695
+ }
696
+ },
697
+ };
698
+ exports.ModoConferencia = {
699
+ Cega: '0',
700
+ Aberta: '1',
701
+ description(val) {
702
+ switch (val) {
703
+ case this.Cega:
704
+ return 'Cega';
705
+ case this.Aberta:
706
+ return 'Aberta';
707
+ default:
708
+ return 'enum not found';
709
+ }
710
+ },
711
+ };
712
+ exports.SituacaoConferencia = {
713
+ EmAndamento: '0',
714
+ Concluida: '1',
715
+ Finalizada: '2',
716
+ Cancelada: '3',
717
+ description(val) {
718
+ switch (val) {
719
+ case this.EmAndamento:
720
+ return 'Em Andamento';
721
+ case this.Concluida:
722
+ return 'Concluída';
723
+ case this.Finalizada:
724
+ return 'Finalizada';
725
+ case this.Cancelada:
726
+ return 'Cancelada';
727
+ default:
728
+ return 'enum not found';
729
+ }
730
+ },
731
+ };
732
+ exports.TipoDocumentoConferencia = {
733
+ Pedido: '0',
734
+ EnvioConsignacao: '1',
735
+ RetornoConsignacao: '2',
736
+ Compra: '3',
737
+ NotaFiscalEntrada: '4',
738
+ NotaFiscalSaida: '5',
739
+ Entrega: '6',
740
+ description(val) {
741
+ switch (val) {
742
+ case this.Pedido:
743
+ return 'Pedido de Venda';
744
+ case this.EnvioConsignacao:
745
+ return 'Envio de Consignação';
746
+ case this.RetornoConsignacao:
747
+ return 'Retorno de Consignação';
748
+ case this.Compra:
749
+ return 'Pedido de Compra';
750
+ case this.NotaFiscalEntrada:
751
+ return 'Nota Fiscal de Entrada';
752
+ case this.NotaFiscalSaida:
753
+ return 'Nota Fiscal de Saída';
754
+ case this.Entrega:
755
+ return 'Entrega';
756
+ default:
757
+ return 'enum not found';
758
+ }
759
+ },
760
+ operacao(val) {
761
+ switch (val) {
762
+ case this.RetornoConsignacao:
763
+ case this.Compra:
764
+ case this.NotaFiscalEntrada:
765
+ return exports.OperacaoConferencia.Entrada;
766
+ default:
767
+ return exports.OperacaoConferencia.Saida;
768
+ }
769
+ },
770
+ };
771
+ exports.SituacaoItemConferencia = {
772
+ Pendente: '0',
773
+ Conferido: '1',
774
+ Falta: '2',
775
+ Sobra: '3',
776
+ NaoPrevisto: '4',
777
+ description(val) {
778
+ switch (val) {
779
+ case this.Pendente:
780
+ return 'Pendente';
781
+ case this.Conferido:
782
+ return 'Conferido';
783
+ case this.Falta:
784
+ return 'Falta';
785
+ case this.Sobra:
786
+ return 'Sobra';
787
+ case this.NaoPrevisto:
788
+ return 'Não Previsto';
789
+ default:
790
+ return 'enum not found';
791
+ }
792
+ },
793
+ };
794
+ exports.SituacaoLeituraConferencia = {
795
+ Valida: '0',
796
+ Estornada: '1',
797
+ CodigoNaoEncontrado: '2',
798
+ Rejeitada: '3',
799
+ description(val) {
800
+ switch (val) {
801
+ case this.Valida:
802
+ return 'Válida';
803
+ case this.Estornada:
804
+ return 'Estornada';
805
+ case this.CodigoNaoEncontrado:
806
+ return 'Código não encontrado';
807
+ case this.Rejeitada:
808
+ return 'Rejeitada';
809
+ default:
810
+ return 'enum not found';
811
+ }
812
+ },
813
+ };
814
+ exports.TratamentoDivergenciaConferencia = {
815
+ EntradaComplementar: '0',
816
+ AjusteEntradaEstoque: '1',
817
+ AjusteSaidaEstoque: '2',
818
+ AjusteDocumento: '3',
819
+ AceiteDivergencia: '4',
820
+ description(val) {
821
+ switch (val) {
822
+ case this.EntradaComplementar:
823
+ return 'Entrada Complementar';
824
+ case this.AjusteEntradaEstoque:
825
+ return 'Ajuste de Entrada no Estoque';
826
+ case this.AjusteSaidaEstoque:
827
+ return 'Ajuste de Saída no Estoque';
828
+ case this.AjusteDocumento:
829
+ return 'Ajuste do Documento';
830
+ case this.AceiteDivergencia:
831
+ return 'Aceite da Divergência';
832
+ default:
833
+ return 'enum not found';
834
+ }
835
+ },
836
+ };
837
+ exports.SituacaoAjusteConferencia = {
838
+ Ativo: '0',
839
+ Estornado: '1',
840
+ description(val) {
841
+ switch (val) {
842
+ case this.Ativo:
843
+ return 'Ativo';
844
+ case this.Estornado:
845
+ return 'Estornado';
846
+ default:
847
+ return 'enum not found';
848
+ }
849
+ },
850
+ };
851
+ exports.SituacaoSerieProduto = {
852
+ Disponivel: '0',
853
+ Reservado: '1',
854
+ Vendido: '2',
855
+ Baixado: '3',
856
+ description(val) {
857
+ switch (val) {
858
+ case this.Disponivel:
859
+ return 'Disponível';
860
+ case this.Reservado:
861
+ return 'Reservado';
862
+ case this.Vendido:
863
+ return 'Vendido';
864
+ case this.Baixado:
865
+ return 'Baixado';
866
+ default:
867
+ return 'enum not found';
868
+ }
869
+ },
870
+ };
871
+ exports.ModoBuscaProduto = {
872
+ Igual: '0',
873
+ ComecaCom: '1',
874
+ Contem: '2',
875
+ description(val) {
876
+ switch (val) {
877
+ case this.Igual:
878
+ return 'Igual';
879
+ case this.ComecaCom:
880
+ return 'Começa com';
881
+ case this.Contem:
882
+ return 'Contém';
883
+ default:
884
+ return 'enum not found';
885
+ }
886
+ },
887
+ };
888
+ exports.CampoBuscaProduto = {
889
+ CodigoBarra: '0',
890
+ Sku: '1',
891
+ Referencia: '2',
892
+ Descricao: '3',
893
+ description(val) {
894
+ switch (val) {
895
+ case this.CodigoBarra:
896
+ return 'Código de barras';
897
+ case this.Sku:
898
+ return 'SKU';
899
+ case this.Referencia:
900
+ return 'Referência';
901
+ case this.Descricao:
902
+ return 'Descrição';
903
+ default:
904
+ return 'enum not found';
905
+ }
906
+ },
907
+ modos(val) {
908
+ if (val === this.CodigoBarra)
909
+ return [exports.ModoBuscaProduto.Igual];
910
+ return [exports.ModoBuscaProduto.Igual, exports.ModoBuscaProduto.ComecaCom, exports.ModoBuscaProduto.Contem];
911
+ },
912
+ };
913
+ exports.OrdemBuscaProdutoPadrao = [
914
+ { campo: exports.CampoBuscaProduto.CodigoBarra, modo: exports.ModoBuscaProduto.Igual },
915
+ { campo: exports.CampoBuscaProduto.Sku, modo: exports.ModoBuscaProduto.Igual },
916
+ { campo: exports.CampoBuscaProduto.Descricao, modo: exports.ModoBuscaProduto.Contem },
917
+ ];