contentoh-components-library 21.5.78 → 21.5.81
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/ai/utils/compare-strings.js +43 -0
- package/dist/components/atoms/GeneralInput/index.js +64 -36
- package/dist/components/atoms/GeneralInput/styles.js +1 -1
- package/dist/components/atoms/InputFormatter/index.js +45 -21
- package/dist/components/atoms/InputFormatter/styles.js +1 -1
- package/dist/components/molecules/StatusAsignationInfo/index.js +11 -1
- package/dist/components/molecules/TagAndInput/index.js +110 -29
- package/dist/components/molecules/TagAndInput/styles.js +2 -2
- package/dist/components/organisms/InputGroup/index.js +22 -18
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +92 -785
- package/dist/components/pages/RetailerProductEdition/context/provider-product-edition.context.js +59 -260
- package/dist/components/pages/RetailerProductEdition/context/reducers/product.js +3 -41
- package/dist/components/pages/RetailerProductEdition/index.js +191 -123
- package/dist/contexts/AiProductEdition.js +179 -155
- package/package.json +1 -1
- package/src/ai/utils/compare-strings.js +43 -0
- package/src/components/atoms/GeneralInput/index.js +63 -42
- package/src/components/atoms/GeneralInput/styles.js +7 -0
- package/src/components/atoms/InputFormatter/index.js +51 -23
- package/src/components/atoms/InputFormatter/styles.js +62 -10
- package/src/components/molecules/StatusAsignationInfo/index.js +9 -1
- package/src/components/molecules/TagAndInput/index.js +113 -28
- package/src/components/molecules/TagAndInput/styles.js +48 -17
- package/src/components/organisms/FullTabsMenu/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +4 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +111 -832
- package/src/components/pages/RetailerProductEdition/context/provider-product-edition.context.jsx +3 -221
- package/src/components/pages/RetailerProductEdition/context/reducers/product.js +3 -43
- package/src/components/pages/RetailerProductEdition/index.js +17 -15
- package/src/contexts/AiProductEdition.jsx +138 -96
- package/src/ai/prompts/attribute.prompt.js +0 -46
- package/src/ai/prompts/description.prompt.js +0 -52
- package/src/ai/schemas/attribute.schema.js +0 -23
- package/src/ai/schemas/description.schema.js +0 -19
|
@@ -65,9 +65,9 @@ RetailerProductEditionDefault.args = {
|
|
|
65
65
|
"company_name": "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
66
66
|
"country": "México",
|
|
67
67
|
"id_order": 10284,
|
|
68
|
-
"id_datasheet_especialist":
|
|
68
|
+
"id_datasheet_especialist": 426,
|
|
69
69
|
"id_datasheet_facilitator": null,
|
|
70
|
-
"id_description_especialist":
|
|
70
|
+
"id_description_especialist": 426,
|
|
71
71
|
"id_description_facilitator": null,
|
|
72
72
|
"id_images_especialist": 3008,
|
|
73
73
|
"id_images_facilitator": null,
|
|
@@ -194,864 +194,143 @@ RetailerProductEditionDefault.args = {
|
|
|
194
194
|
"retailers": [
|
|
195
195
|
{
|
|
196
196
|
"id": 4,
|
|
197
|
-
"name": "Walmart Super y Superama"
|
|
198
|
-
"datasheets": [],
|
|
199
|
-
"descriptions": []
|
|
197
|
+
"name": "Walmart Super y Superama"
|
|
200
198
|
},
|
|
201
199
|
{
|
|
202
200
|
"id": 5,
|
|
203
|
-
"name": "Chedraui"
|
|
204
|
-
"datasheets": [],
|
|
205
|
-
"descriptions": []
|
|
201
|
+
"name": "Chedraui"
|
|
206
202
|
},
|
|
207
203
|
{
|
|
208
204
|
"id": 6,
|
|
209
|
-
"name": "HEB"
|
|
210
|
-
"datasheets": [],
|
|
211
|
-
"descriptions": []
|
|
205
|
+
"name": "HEB"
|
|
212
206
|
},
|
|
213
207
|
{
|
|
214
208
|
"id": 8,
|
|
215
|
-
"name": "Fragua"
|
|
216
|
-
"datasheets": [],
|
|
217
|
-
"descriptions": []
|
|
209
|
+
"name": "Fragua"
|
|
218
210
|
},
|
|
219
211
|
{
|
|
220
212
|
"id": 12,
|
|
221
|
-
"name": "La Comer"
|
|
222
|
-
"datasheets": [],
|
|
223
|
-
"descriptions": []
|
|
213
|
+
"name": "La Comer"
|
|
224
214
|
},
|
|
225
215
|
{
|
|
226
216
|
"id": 13,
|
|
227
|
-
"name": "Soriana"
|
|
228
|
-
"datasheets": [],
|
|
229
|
-
"descriptions": []
|
|
217
|
+
"name": "Soriana"
|
|
230
218
|
},
|
|
231
219
|
{
|
|
232
220
|
"id": 16,
|
|
233
|
-
"name": "Rappi"
|
|
234
|
-
"datasheets": [],
|
|
235
|
-
"descriptions": []
|
|
221
|
+
"name": "Rappi"
|
|
236
222
|
},
|
|
237
223
|
{
|
|
238
224
|
"id": 17,
|
|
239
|
-
"name": "Genérico"
|
|
240
|
-
"datasheets": [],
|
|
241
|
-
"descriptions": []
|
|
225
|
+
"name": "Genérico"
|
|
242
226
|
},
|
|
243
227
|
{
|
|
244
228
|
"id": 20,
|
|
245
|
-
"name": "Cornershop"
|
|
246
|
-
"datasheets": [],
|
|
247
|
-
"descriptions": []
|
|
229
|
+
"name": "Cornershop"
|
|
248
230
|
},
|
|
249
231
|
{
|
|
250
232
|
"id": 24,
|
|
251
|
-
"name": "Alsuper"
|
|
252
|
-
"datasheets": [
|
|
253
|
-
{
|
|
254
|
-
"id": 1516,
|
|
255
|
-
"name": "Capacidad (ml, gr)",
|
|
256
|
-
"min_chars": null,
|
|
257
|
-
"max_chars": 200,
|
|
258
|
-
"type": "Alfanumérico",
|
|
259
|
-
"id_group": 4,
|
|
260
|
-
"commercial_model": 1,
|
|
261
|
-
"active": 1,
|
|
262
|
-
"required": true,
|
|
263
|
-
"description": "Indica el contenido del producto en gramos o mililitros.",
|
|
264
|
-
"option_list": null,
|
|
265
|
-
"value": "900 ml",
|
|
266
|
-
"onb_estatus": 1,
|
|
267
|
-
"onb_comentarios": null
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"id": 43567,
|
|
271
|
-
"name": "Color | Sabor | Aroma",
|
|
272
|
-
"min_chars": null,
|
|
273
|
-
"max_chars": 999,
|
|
274
|
-
"type": "Alfanumérico",
|
|
275
|
-
"id_group": 6,
|
|
276
|
-
"commercial_model": 1,
|
|
277
|
-
"active": 1,
|
|
278
|
-
"required": false,
|
|
279
|
-
"description": "Indicar el color, sabor, aroma del producto",
|
|
280
|
-
"option_list": null,
|
|
281
|
-
"value": "Limón",
|
|
282
|
-
"onb_estatus": 1,
|
|
283
|
-
"onb_comentarios": null
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"id": 43607,
|
|
287
|
-
"name": "Keywords",
|
|
288
|
-
"min_chars": null,
|
|
289
|
-
"max_chars": 1200,
|
|
290
|
-
"type": "Alfanumérico",
|
|
291
|
-
"id_group": 6,
|
|
292
|
-
"commercial_model": 1,
|
|
293
|
-
"active": 1,
|
|
294
|
-
"required": true,
|
|
295
|
-
"description": "Palabras cortas con el que el cliente puede identificar los pordcutos de una manera fácil y cotidiana, separadas por coma",
|
|
296
|
-
"option_list": null,
|
|
297
|
-
"value": "Limpiador, Axion, limpiador lavatrastes, limpiador, limpiador con limón, Axion limpiador, limón, Axion 900 ml, limpiador de 900 ml, lavatrastes líquido",
|
|
298
|
-
"onb_estatus": 1,
|
|
299
|
-
"onb_comentarios": null
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"id": 357,
|
|
303
|
-
"name": "Marca del Producto",
|
|
304
|
-
"min_chars": null,
|
|
305
|
-
"max_chars": 99,
|
|
306
|
-
"type": "Alfanumérico",
|
|
307
|
-
"id_group": 6,
|
|
308
|
-
"commercial_model": 1,
|
|
309
|
-
"active": 1,
|
|
310
|
-
"required": true,
|
|
311
|
-
"description": "Marca comercial",
|
|
312
|
-
"option_list": null,
|
|
313
|
-
"value": "Axion",
|
|
314
|
-
"onb_estatus": 1,
|
|
315
|
-
"onb_comentarios": null
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
"id": 43565,
|
|
319
|
-
"name": "SKU Alsuper",
|
|
320
|
-
"min_chars": null,
|
|
321
|
-
"max_chars": 30,
|
|
322
|
-
"type": "Alfanumérico",
|
|
323
|
-
"id_group": 6,
|
|
324
|
-
"commercial_model": 1,
|
|
325
|
-
"active": 1,
|
|
326
|
-
"required": true,
|
|
327
|
-
"description": "Indicar el SKU Alsuper que le corresponde al producto",
|
|
328
|
-
"option_list": null,
|
|
329
|
-
"value": "402201",
|
|
330
|
-
"onb_estatus": 1,
|
|
331
|
-
"onb_comentarios": null
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"id": 558,
|
|
335
|
-
"name": "Submarca",
|
|
336
|
-
"min_chars": null,
|
|
337
|
-
"max_chars": 999,
|
|
338
|
-
"type": "Alfanumérico",
|
|
339
|
-
"id_group": 6,
|
|
340
|
-
"commercial_model": 1,
|
|
341
|
-
"active": 1,
|
|
342
|
-
"id_retailer": 24,
|
|
343
|
-
"required": false,
|
|
344
|
-
"description": "Línea o Submarca asignada",
|
|
345
|
-
"option_list": null
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"id": 747,
|
|
349
|
-
"name": "Tipo de Empaque",
|
|
350
|
-
"min_chars": null,
|
|
351
|
-
"max_chars": 99,
|
|
352
|
-
"type": "Alfanumérico",
|
|
353
|
-
"id_group": 6,
|
|
354
|
-
"commercial_model": 1,
|
|
355
|
-
"active": 1,
|
|
356
|
-
"required": false,
|
|
357
|
-
"description": "Especificar el tipo de empaque individual que presenta el producto Ej. Caja, Bptella, Pack, etc",
|
|
358
|
-
"option_list": null,
|
|
359
|
-
"value": "Botella",
|
|
360
|
-
"onb_estatus": 1,
|
|
361
|
-
"onb_comentarios": null
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
"id": 753,
|
|
365
|
-
"name": "Tipo de Producto",
|
|
366
|
-
"min_chars": null,
|
|
367
|
-
"max_chars": 99,
|
|
368
|
-
"type": "Alfanumérico",
|
|
369
|
-
"id_group": 6,
|
|
370
|
-
"commercial_model": 1,
|
|
371
|
-
"active": 1,
|
|
372
|
-
"required": true,
|
|
373
|
-
"description": "Especificar el tipo de producto.",
|
|
374
|
-
"option_list": null,
|
|
375
|
-
"value": "Lavatrastes",
|
|
376
|
-
"onb_estatus": 1,
|
|
377
|
-
"onb_comentarios": null
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"id": 4026,
|
|
381
|
-
"name": "Unidad de Venta",
|
|
382
|
-
"min_chars": null,
|
|
383
|
-
"max_chars": 999,
|
|
384
|
-
"type": "Alfanumérico",
|
|
385
|
-
"id_group": 6,
|
|
386
|
-
"commercial_model": 1,
|
|
387
|
-
"active": 1,
|
|
388
|
-
"required": false,
|
|
389
|
-
"description": "Especificar como se vende el producto. Ej: Por pieza, por caja, por m2, por paquete de # cantidad de productos, por bolsa, etc",
|
|
390
|
-
"option_list": null,
|
|
391
|
-
"value": "Pieza",
|
|
392
|
-
"onb_estatus": 1,
|
|
393
|
-
"onb_comentarios": null
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"id": 683,
|
|
397
|
-
"name": "UPC",
|
|
398
|
-
"min_chars": null,
|
|
399
|
-
"max_chars": 14,
|
|
400
|
-
"type": "Numérico",
|
|
401
|
-
"id_group": 6,
|
|
402
|
-
"commercial_model": 1,
|
|
403
|
-
"active": 1,
|
|
404
|
-
"required": true,
|
|
405
|
-
"description": "Código de Barras del Producto, GTIN, UPC",
|
|
406
|
-
"option_list": null,
|
|
407
|
-
"value": "7509546052977",
|
|
408
|
-
"onb_estatus": 1,
|
|
409
|
-
"onb_comentarios": null
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"id": 320,
|
|
413
|
-
"name": "Ingredientes",
|
|
414
|
-
"min_chars": null,
|
|
415
|
-
"max_chars": 2000,
|
|
416
|
-
"type": "Alfanumérico",
|
|
417
|
-
"id_group": 11,
|
|
418
|
-
"commercial_model": 1,
|
|
419
|
-
"active": 1,
|
|
420
|
-
"required": true,
|
|
421
|
-
"description": "Ingredientes de elaboración del producto",
|
|
422
|
-
"option_list": null,
|
|
423
|
-
"value": "Agua, Alquibenceno sulfonato de sodio, Lauret sulfato de sodio, , Óxidos de amina, Agentes de viscosidad, y PH, Surfactante no iónico, Perfume, Quelante, Colorante, Conservador.",
|
|
424
|
-
"onb_estatus": 1,
|
|
425
|
-
"onb_comentarios": null
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"id": 43608,
|
|
429
|
-
"name": "Beneficios del Producto 1",
|
|
430
|
-
"min_chars": null,
|
|
431
|
-
"max_chars": 100,
|
|
432
|
-
"type": "Alfanumérico",
|
|
433
|
-
"id_group": 12,
|
|
434
|
-
"commercial_model": 1,
|
|
435
|
-
"active": 1,
|
|
436
|
-
"required": true,
|
|
437
|
-
"description": "Oración corta con un beneficio, contraindiciación o fácil de llamar la atención del cliente",
|
|
438
|
-
"option_list": null,
|
|
439
|
-
"value": "Rinde para más de 1300 platos",
|
|
440
|
-
"onb_estatus": 1,
|
|
441
|
-
"onb_comentarios": null
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"id": 43609,
|
|
445
|
-
"name": "Beneficios del Producto 2",
|
|
446
|
-
"min_chars": null,
|
|
447
|
-
"max_chars": 100,
|
|
448
|
-
"type": "Alfanumérico",
|
|
449
|
-
"id_group": 12,
|
|
450
|
-
"commercial_model": 1,
|
|
451
|
-
"active": 1,
|
|
452
|
-
"required": true,
|
|
453
|
-
"description": "Oración corta con un beneficio, contraindiciación o fácil de llamar la atención del cliente",
|
|
454
|
-
"option_list": null,
|
|
455
|
-
"value": "Elimina los malos olores causados por bacterias",
|
|
456
|
-
"onb_estatus": 1,
|
|
457
|
-
"onb_comentarios": null
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"id": 43610,
|
|
461
|
-
"name": "Beneficios del Producto 3",
|
|
462
|
-
"min_chars": null,
|
|
463
|
-
"max_chars": 100,
|
|
464
|
-
"type": "Alfanumérico",
|
|
465
|
-
"id_group": 12,
|
|
466
|
-
"commercial_model": 1,
|
|
467
|
-
"active": 1,
|
|
468
|
-
"required": true,
|
|
469
|
-
"description": "Oración corta con un beneficio, contraindiciación o fácil de llamar la atención del cliente",
|
|
470
|
-
"option_list": null,
|
|
471
|
-
"value": "Espuma poderosa que arranca la grasa",
|
|
472
|
-
"onb_estatus": 1,
|
|
473
|
-
"onb_comentarios": null
|
|
474
|
-
}
|
|
475
|
-
],
|
|
476
|
-
"descriptions": [
|
|
477
|
-
{
|
|
478
|
-
"id_version": 34,
|
|
479
|
-
"id": 43566,
|
|
480
|
-
"id_retailer": 24,
|
|
481
|
-
"name": "Descripción de producto Alsuper",
|
|
482
|
-
"id_description_type": 2,
|
|
483
|
-
"description": "Indica la descripción con la que área comercial del Alsuper dio de alta el artículo",
|
|
484
|
-
"min_words": null,
|
|
485
|
-
"max_words": null,
|
|
486
|
-
"min_chars": null,
|
|
487
|
-
"max_chars": 90,
|
|
488
|
-
"type": "Alfanumérico",
|
|
489
|
-
"active": 1,
|
|
490
|
-
"required": true,
|
|
491
|
-
"value": "Elimina la grasa con menos tallado con el lavatrastes Axion de 900 ml"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"id_version": 34,
|
|
495
|
-
"id": 43568,
|
|
496
|
-
"id_retailer": 24,
|
|
497
|
-
"name": "Nombre comercial del producto Alsuper",
|
|
498
|
-
"id_description_type": 1,
|
|
499
|
-
"description": "Indica el nombre comercial del producto como se muestra en piso de venta",
|
|
500
|
-
"min_words": null,
|
|
501
|
-
"max_words": null,
|
|
502
|
-
"min_chars": null,
|
|
503
|
-
"max_chars": 999,
|
|
504
|
-
"type": "Alfanumérico",
|
|
505
|
-
"active": 1,
|
|
506
|
-
"required": true,
|
|
507
|
-
"value": "Lavatrastes"
|
|
508
|
-
},
|
|
509
|
-
{
|
|
510
|
-
"id_version": 34,
|
|
511
|
-
"id": 43569,
|
|
512
|
-
"id_retailer": 24,
|
|
513
|
-
"name": "Header del producto Alsuper",
|
|
514
|
-
"id_description_type": 1,
|
|
515
|
-
"description": "Nombre + Sabor|Color|Aroma+ Marca+ Subamrca+ Capacidad de Empaque",
|
|
516
|
-
"min_words": null,
|
|
517
|
-
"max_words": null,
|
|
518
|
-
"min_chars": null,
|
|
519
|
-
"max_chars": 999,
|
|
520
|
-
"type": "Alfanumérico",
|
|
521
|
-
"active": 1,
|
|
522
|
-
"required": true,
|
|
523
|
-
"value": "Lavatrastes Axion Limón 900 ml"
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"id_version": 34,
|
|
527
|
-
"id": 1777,
|
|
528
|
-
"id_retailer": 24,
|
|
529
|
-
"name": "Descripción Comercial del Producto Alsuper",
|
|
530
|
-
"id_description_type": 3,
|
|
531
|
-
"description": "Texto llamativo o romántico sobre el producto. Se resaltan beneficios, propiedades únicas, formas de uso, tamaño e ingredientes. Se escribe de manera familiar para el cliente",
|
|
532
|
-
"min_words": null,
|
|
533
|
-
"max_words": 155,
|
|
534
|
-
"min_chars": null,
|
|
535
|
-
"max_chars": 1024,
|
|
536
|
-
"type": "Alfanumérico",
|
|
537
|
-
"active": 1,
|
|
538
|
-
"required": true,
|
|
539
|
-
"value": "Axion Limón, un Detergente líquido que ofrece un rendimiento superior. Su potente fórmula está diseñada para crear una poderosa espuma arrancagrasa que no solo limpia a fondo, sino que elimina malos olores, dejando tus trastes rechinando de limpios. Una botella de 900 mililitros es suficiente para lavar una cantidad impresionante de más de 1300 platos, lo que lo convierte en una solución duradera para tu hogar.\n\nLa versatilidad de Axion te permite elegir cómo usarlo. Aplica unas gotas directamente sobre la esponja para un uso concentrado que ataca la grasa más pegada. Para el lavado diario de toda tu vajilla, puedes diluir el producto para hacerlo rendir más y te ayudará a hacer la tarea de forma más eficiente.\n\nSu acción efectiva te permite lograr una limpieza profunda con menos esfuerzo de tallado, mientras su aroma a limón deja una fragancia refrescante, asegurando que tus trastes no solo se vean, sino que también huelan a limpios."
|
|
540
|
-
}
|
|
541
|
-
]
|
|
233
|
+
"name": "Alsuper"
|
|
542
234
|
},
|
|
543
235
|
{
|
|
544
236
|
"id": 29,
|
|
545
|
-
"name": "Farmacias del Ahorro"
|
|
546
|
-
"datasheets": [],
|
|
547
|
-
"descriptions": []
|
|
237
|
+
"name": "Farmacias del Ahorro"
|
|
548
238
|
},
|
|
549
239
|
{
|
|
550
240
|
"id": 36,
|
|
551
|
-
"name": "Oxxo"
|
|
552
|
-
"datasheets": [],
|
|
553
|
-
"descriptions": []
|
|
241
|
+
"name": "Oxxo"
|
|
554
242
|
}
|
|
555
243
|
],
|
|
556
244
|
"country": "México",
|
|
557
|
-
"upc": "7509546052977"
|
|
558
|
-
"percentages": [
|
|
559
|
-
{
|
|
560
|
-
"id_retailer": 17,
|
|
561
|
-
"id_category": 157,
|
|
562
|
-
"datasheet": {
|
|
563
|
-
"required": 5.26,
|
|
564
|
-
"general": 2.04
|
|
565
|
-
},
|
|
566
|
-
"descriptions": {
|
|
567
|
-
"required": 0,
|
|
568
|
-
"general": 0
|
|
569
|
-
},
|
|
570
|
-
"images": {
|
|
571
|
-
"required": 100,
|
|
572
|
-
"general": 80.03,
|
|
573
|
-
"details": {
|
|
574
|
-
"mandatoryShots": {
|
|
575
|
-
"total": 1,
|
|
576
|
-
"completed": 1,
|
|
577
|
-
"percentage": 100
|
|
578
|
-
},
|
|
579
|
-
"optionalShots": {
|
|
580
|
-
"total": 39,
|
|
581
|
-
"completed": 7,
|
|
582
|
-
"percentage": 17.94
|
|
583
|
-
},
|
|
584
|
-
"namingAttributes": {
|
|
585
|
-
"total": 1,
|
|
586
|
-
"completed": 1,
|
|
587
|
-
"percentage": 100
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
"percentagesGeneral": {
|
|
592
|
-
"required": 35.09,
|
|
593
|
-
"general": 7.34
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"id_retailer": 12,
|
|
598
|
-
"id_category": 3430,
|
|
599
|
-
"datasheet": {
|
|
600
|
-
"required": 20,
|
|
601
|
-
"general": 10
|
|
602
|
-
},
|
|
603
|
-
"descriptions": {
|
|
604
|
-
"required": 0,
|
|
605
|
-
"general": 0
|
|
606
|
-
},
|
|
607
|
-
"images": {
|
|
608
|
-
"required": 64.99,
|
|
609
|
-
"general": 52.02,
|
|
610
|
-
"details": {
|
|
611
|
-
"mandatoryShots": {
|
|
612
|
-
"total": 2,
|
|
613
|
-
"completed": 1,
|
|
614
|
-
"percentage": 50
|
|
615
|
-
},
|
|
616
|
-
"optionalShots": {
|
|
617
|
-
"total": 10,
|
|
618
|
-
"completed": 1,
|
|
619
|
-
"percentage": 10
|
|
620
|
-
},
|
|
621
|
-
"namingAttributes": {
|
|
622
|
-
"total": 1,
|
|
623
|
-
"completed": 1,
|
|
624
|
-
"percentage": 100
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
"percentagesGeneral": {
|
|
629
|
-
"required": 23.33,
|
|
630
|
-
"general": 8.88
|
|
631
|
-
}
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
"id_retailer": 24,
|
|
635
|
-
"id_category": 3433,
|
|
636
|
-
"datasheet": {
|
|
637
|
-
"required": 20,
|
|
638
|
-
"general": 14.28
|
|
639
|
-
},
|
|
640
|
-
"descriptions": {
|
|
641
|
-
"required": 0,
|
|
642
|
-
"general": 0
|
|
643
|
-
},
|
|
644
|
-
"images": {
|
|
645
|
-
"required": 100,
|
|
646
|
-
"general": 80,
|
|
647
|
-
"details": {
|
|
648
|
-
"mandatoryShots": {
|
|
649
|
-
"total": 1,
|
|
650
|
-
"completed": 1,
|
|
651
|
-
"percentage": 100
|
|
652
|
-
},
|
|
653
|
-
"optionalShots": {
|
|
654
|
-
"total": 24,
|
|
655
|
-
"completed": 1,
|
|
656
|
-
"percentage": 4.16
|
|
657
|
-
},
|
|
658
|
-
"namingAttributes": {
|
|
659
|
-
"total": 1,
|
|
660
|
-
"completed": 1,
|
|
661
|
-
"percentage": 100
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
},
|
|
665
|
-
"percentagesGeneral": {
|
|
666
|
-
"required": 40,
|
|
667
|
-
"general": 7.42
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
"id_retailer": 20,
|
|
672
|
-
"id_category": 3499,
|
|
673
|
-
"datasheet": {
|
|
674
|
-
"required": 25,
|
|
675
|
-
"general": 14.28
|
|
676
|
-
},
|
|
677
|
-
"descriptions": {
|
|
678
|
-
"required": 0,
|
|
679
|
-
"general": 0
|
|
680
|
-
},
|
|
681
|
-
"images": {
|
|
682
|
-
"required": 100,
|
|
683
|
-
"general": 80.03,
|
|
684
|
-
"details": {
|
|
685
|
-
"mandatoryShots": {
|
|
686
|
-
"total": 1,
|
|
687
|
-
"completed": 1,
|
|
688
|
-
"percentage": 100
|
|
689
|
-
},
|
|
690
|
-
"optionalShots": {
|
|
691
|
-
"total": 11,
|
|
692
|
-
"completed": 2,
|
|
693
|
-
"percentage": 18.18
|
|
694
|
-
},
|
|
695
|
-
"namingAttributes": {
|
|
696
|
-
"total": 1,
|
|
697
|
-
"completed": 1,
|
|
698
|
-
"percentage": 100
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
},
|
|
702
|
-
"percentagesGeneral": {
|
|
703
|
-
"required": 41.67,
|
|
704
|
-
"general": 13.09
|
|
705
|
-
}
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
"id_retailer": 29,
|
|
709
|
-
"id_category": 3562,
|
|
710
|
-
"datasheet": {
|
|
711
|
-
"required": 14.28,
|
|
712
|
-
"general": 11.11
|
|
713
|
-
},
|
|
714
|
-
"descriptions": {
|
|
715
|
-
"required": 0,
|
|
716
|
-
"general": 0
|
|
717
|
-
},
|
|
718
|
-
"images": {
|
|
719
|
-
"required": 100,
|
|
720
|
-
"general": 80.03,
|
|
721
|
-
"details": {
|
|
722
|
-
"mandatoryShots": {
|
|
723
|
-
"total": 1,
|
|
724
|
-
"completed": 1,
|
|
725
|
-
"percentage": 100
|
|
726
|
-
},
|
|
727
|
-
"optionalShots": {
|
|
728
|
-
"total": 37,
|
|
729
|
-
"completed": 7,
|
|
730
|
-
"percentage": 18.91
|
|
731
|
-
},
|
|
732
|
-
"namingAttributes": {
|
|
733
|
-
"total": 1,
|
|
734
|
-
"completed": 1,
|
|
735
|
-
"percentage": 100
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
},
|
|
739
|
-
"percentagesGeneral": {
|
|
740
|
-
"required": 38.09,
|
|
741
|
-
"general": 10.72
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
"id_retailer": 8,
|
|
746
|
-
"id_category": 3588,
|
|
747
|
-
"datasheet": {
|
|
748
|
-
"required": 16.66,
|
|
749
|
-
"general": 6.66
|
|
750
|
-
},
|
|
751
|
-
"descriptions": {
|
|
752
|
-
"required": 0,
|
|
753
|
-
"general": 0
|
|
754
|
-
},
|
|
755
|
-
"images": {
|
|
756
|
-
"required": 100,
|
|
757
|
-
"general": 80,
|
|
758
|
-
"details": {
|
|
759
|
-
"mandatoryShots": {
|
|
760
|
-
"total": 0,
|
|
761
|
-
"completed": 0,
|
|
762
|
-
"percentage": 100
|
|
763
|
-
},
|
|
764
|
-
"optionalShots": {
|
|
765
|
-
"total": 10,
|
|
766
|
-
"completed": 0,
|
|
767
|
-
"percentage": 0
|
|
768
|
-
},
|
|
769
|
-
"namingAttributes": {
|
|
770
|
-
"total": 1,
|
|
771
|
-
"completed": 1,
|
|
772
|
-
"percentage": 100
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
"percentagesGeneral": {
|
|
777
|
-
"required": 38.89,
|
|
778
|
-
"general": 2.21
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"id_retailer": 6,
|
|
783
|
-
"id_category": 3741,
|
|
784
|
-
"datasheet": {
|
|
785
|
-
"required": 66.66,
|
|
786
|
-
"general": 50
|
|
787
|
-
},
|
|
788
|
-
"descriptions": {
|
|
789
|
-
"required": 0,
|
|
790
|
-
"general": 0
|
|
791
|
-
},
|
|
792
|
-
"images": {
|
|
793
|
-
"required": 100,
|
|
794
|
-
"general": 80.03,
|
|
795
|
-
"details": {
|
|
796
|
-
"mandatoryShots": {
|
|
797
|
-
"total": 1,
|
|
798
|
-
"completed": 1,
|
|
799
|
-
"percentage": 100
|
|
800
|
-
},
|
|
801
|
-
"optionalShots": {
|
|
802
|
-
"total": 37,
|
|
803
|
-
"completed": 7,
|
|
804
|
-
"percentage": 18.91
|
|
805
|
-
},
|
|
806
|
-
"namingAttributes": {
|
|
807
|
-
"total": 1,
|
|
808
|
-
"completed": 1,
|
|
809
|
-
"percentage": 100
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
},
|
|
813
|
-
"percentagesGeneral": {
|
|
814
|
-
"required": 55.55,
|
|
815
|
-
"general": 23.68
|
|
816
|
-
}
|
|
817
|
-
},
|
|
818
|
-
{
|
|
819
|
-
"id_retailer": 36,
|
|
820
|
-
"id_category": 4873,
|
|
821
|
-
"datasheet": {
|
|
822
|
-
"required": 100,
|
|
823
|
-
"general": 100
|
|
824
|
-
},
|
|
825
|
-
"descriptions": {
|
|
826
|
-
"required": 0,
|
|
827
|
-
"general": 0
|
|
828
|
-
},
|
|
829
|
-
"images": {
|
|
830
|
-
"required": 100,
|
|
831
|
-
"general": 80.2,
|
|
832
|
-
"details": {
|
|
833
|
-
"mandatoryShots": {
|
|
834
|
-
"total": 1,
|
|
835
|
-
"completed": 1,
|
|
836
|
-
"percentage": 100
|
|
837
|
-
},
|
|
838
|
-
"optionalShots": {
|
|
839
|
-
"total": 0,
|
|
840
|
-
"completed": 0,
|
|
841
|
-
"percentage": 100
|
|
842
|
-
},
|
|
843
|
-
"namingAttributes": {
|
|
844
|
-
"total": 1,
|
|
845
|
-
"completed": 1,
|
|
846
|
-
"percentage": 100
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
},
|
|
850
|
-
"percentagesGeneral": {
|
|
851
|
-
"required": 66.66,
|
|
852
|
-
"general": 66.66
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"id_retailer": 16,
|
|
857
|
-
"id_category": 4911,
|
|
858
|
-
"datasheet": {
|
|
859
|
-
"required": 25,
|
|
860
|
-
"general": 10
|
|
861
|
-
},
|
|
862
|
-
"descriptions": {
|
|
863
|
-
"required": 0,
|
|
864
|
-
"general": 0
|
|
865
|
-
},
|
|
866
|
-
"images": {
|
|
867
|
-
"required": 100,
|
|
868
|
-
"general": 80.03,
|
|
869
|
-
"details": {
|
|
870
|
-
"mandatoryShots": {
|
|
871
|
-
"total": 1,
|
|
872
|
-
"completed": 1,
|
|
873
|
-
"percentage": 100
|
|
874
|
-
},
|
|
875
|
-
"optionalShots": {
|
|
876
|
-
"total": 36,
|
|
877
|
-
"completed": 7,
|
|
878
|
-
"percentage": 19.44
|
|
879
|
-
},
|
|
880
|
-
"namingAttributes": {
|
|
881
|
-
"total": 1,
|
|
882
|
-
"completed": 1,
|
|
883
|
-
"percentage": 100
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
},
|
|
887
|
-
"percentagesGeneral": {
|
|
888
|
-
"required": 41.67,
|
|
889
|
-
"general": 10.54
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
"id_retailer": 4,
|
|
894
|
-
"id_category": 5918,
|
|
895
|
-
"datasheet": {
|
|
896
|
-
"required": 25,
|
|
897
|
-
"general": 9.09
|
|
898
|
-
},
|
|
899
|
-
"descriptions": {
|
|
900
|
-
"required": 0,
|
|
901
|
-
"general": 0
|
|
902
|
-
},
|
|
903
|
-
"images": {
|
|
904
|
-
"required": 100,
|
|
905
|
-
"general": 80.04,
|
|
906
|
-
"details": {
|
|
907
|
-
"mandatoryShots": {
|
|
908
|
-
"total": 1,
|
|
909
|
-
"completed": 1,
|
|
910
|
-
"percentage": 100
|
|
911
|
-
},
|
|
912
|
-
"optionalShots": {
|
|
913
|
-
"total": 31,
|
|
914
|
-
"completed": 7,
|
|
915
|
-
"percentage": 22.58
|
|
916
|
-
},
|
|
917
|
-
"namingAttributes": {
|
|
918
|
-
"total": 1,
|
|
919
|
-
"completed": 1,
|
|
920
|
-
"percentage": 100
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
},
|
|
924
|
-
"percentagesGeneral": {
|
|
925
|
-
"required": 41.67,
|
|
926
|
-
"general": 11.36
|
|
927
|
-
}
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
"id_retailer": 13,
|
|
931
|
-
"id_category": 7126,
|
|
932
|
-
"datasheet": {
|
|
933
|
-
"required": 7.14,
|
|
934
|
-
"general": 3.03
|
|
935
|
-
},
|
|
936
|
-
"descriptions": {
|
|
937
|
-
"required": 0,
|
|
938
|
-
"general": 0
|
|
939
|
-
},
|
|
940
|
-
"images": {
|
|
941
|
-
"required": 100,
|
|
942
|
-
"general": 80.03,
|
|
943
|
-
"details": {
|
|
944
|
-
"mandatoryShots": {
|
|
945
|
-
"total": 1,
|
|
946
|
-
"completed": 1,
|
|
947
|
-
"percentage": 100
|
|
948
|
-
},
|
|
949
|
-
"optionalShots": {
|
|
950
|
-
"total": 37,
|
|
951
|
-
"completed": 7,
|
|
952
|
-
"percentage": 18.91
|
|
953
|
-
},
|
|
954
|
-
"namingAttributes": {
|
|
955
|
-
"total": 1,
|
|
956
|
-
"completed": 1,
|
|
957
|
-
"percentage": 100
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
},
|
|
961
|
-
"percentagesGeneral": {
|
|
962
|
-
"required": 35.71,
|
|
963
|
-
"general": 8.02
|
|
964
|
-
}
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
"id_retailer": 5,
|
|
968
|
-
"id_category": 7196,
|
|
969
|
-
"datasheet": {
|
|
970
|
-
"required": 10,
|
|
971
|
-
"general": 4
|
|
972
|
-
},
|
|
973
|
-
"descriptions": {
|
|
974
|
-
"required": 0,
|
|
975
|
-
"general": 0
|
|
976
|
-
},
|
|
977
|
-
"images": {
|
|
978
|
-
"required": 100,
|
|
979
|
-
"general": 80.04,
|
|
980
|
-
"details": {
|
|
981
|
-
"mandatoryShots": {
|
|
982
|
-
"total": 1,
|
|
983
|
-
"completed": 1,
|
|
984
|
-
"percentage": 100
|
|
985
|
-
},
|
|
986
|
-
"optionalShots": {
|
|
987
|
-
"total": 35,
|
|
988
|
-
"completed": 7,
|
|
989
|
-
"percentage": 20
|
|
990
|
-
},
|
|
991
|
-
"namingAttributes": {
|
|
992
|
-
"total": 1,
|
|
993
|
-
"completed": 1,
|
|
994
|
-
"percentage": 100
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
"percentagesGeneral": {
|
|
999
|
-
"required": 36.67,
|
|
1000
|
-
"general": 8.74
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
],
|
|
1004
|
-
"summary": {
|
|
1005
|
-
"totalRelations": 12,
|
|
1006
|
-
"averageRequired": 41.25,
|
|
1007
|
-
"averageGeneral": 14.88
|
|
1008
|
-
}
|
|
245
|
+
"upc": "7509546052977"
|
|
1009
246
|
},
|
|
1010
|
-
// location: {
|
|
1011
|
-
// product: { articleId: 126855, versionId: 3 },
|
|
1012
|
-
// state: {
|
|
1013
|
-
// withChat: true,
|
|
1014
|
-
// chatType: "product_status",
|
|
1015
|
-
// },
|
|
1016
|
-
// },
|
|
1017
|
-
// user: {
|
|
1018
|
-
// "id_user": 442,
|
|
1019
|
-
// "name": "Especialista",
|
|
1020
|
-
// "last_name": "Textos",
|
|
1021
|
-
// "email": "especialistatextosdev@allfreemail.net",
|
|
1022
|
-
// "position": "Especialista de Imágenes",
|
|
1023
|
-
// "telephone": null,
|
|
1024
|
-
// "country": null,
|
|
1025
|
-
// "id_company": 2,
|
|
1026
|
-
// "id_role": 7,
|
|
1027
|
-
// "about_me": null,
|
|
1028
|
-
// "address": null,
|
|
1029
|
-
// "job": null,
|
|
1030
|
-
// "id_stripe": null,
|
|
1031
|
-
// "active": 1,
|
|
1032
|
-
// "email_notify": 1,
|
|
1033
|
-
// "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
|
|
1034
|
-
// "birth_Date": null,
|
|
1035
|
-
// "zip_code": null,
|
|
1036
|
-
// "is_retailer": 0,
|
|
1037
|
-
// "is_onboarding": 0,
|
|
1038
|
-
// "is_user_tech": null,
|
|
1039
|
-
// "profile_picture_ext": null,
|
|
1040
|
-
// "membership": {
|
|
1041
|
-
// "id": 2,
|
|
1042
|
-
// "start_date": "2021-11-05T02:35:12.000Z",
|
|
1043
|
-
// "end_date": "2022-11-05T02:34:49.000Z",
|
|
1044
|
-
// "planID": 1,
|
|
1045
|
-
// "plan": "prod_KtkvuFFLpOdP6e",
|
|
1046
|
-
// "name": "Plan Free",
|
|
1047
|
-
// "user_limit": "1",
|
|
1048
|
-
// "products_limit": "3",
|
|
1049
|
-
// "type": "PyMES"
|
|
1050
|
-
// },
|
|
1051
|
-
// "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
|
|
1052
|
-
// },
|
|
1053
247
|
|
|
1054
|
-
|
|
248
|
+
// location: {
|
|
249
|
+
// product: { articleId: 126855, versionId: 3 },
|
|
250
|
+
// state: {
|
|
251
|
+
// withChat: true,
|
|
252
|
+
// chatType: "product_status",
|
|
253
|
+
// },
|
|
254
|
+
// },
|
|
255
|
+
|
|
256
|
+
// EDICION IMAGENES
|
|
257
|
+
|
|
258
|
+
// user: {
|
|
259
|
+
// "id_user": 427,
|
|
260
|
+
// "name": "Especialista Edición",
|
|
261
|
+
// "last_name": null,
|
|
262
|
+
// "email": "kikije1467@mtlcz.com",
|
|
263
|
+
// "position": "Tester",
|
|
264
|
+
// "telephone": null,
|
|
265
|
+
// "country": null,
|
|
266
|
+
// "id_company": 254,
|
|
267
|
+
// "id_cognito": "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
268
|
+
// "birth_Date": null,
|
|
269
|
+
// "about_me": null,
|
|
270
|
+
// "zip_code": null,
|
|
271
|
+
// "address": null,
|
|
272
|
+
// "job": null,
|
|
273
|
+
// "id_stripe": null,
|
|
274
|
+
// "id_role": 8,
|
|
275
|
+
// "active": 1,
|
|
276
|
+
// "is_retailer": 0,
|
|
277
|
+
// "email_notify": null,
|
|
278
|
+
// "is_user_tech": null,
|
|
279
|
+
// "is_onboarding": 0,
|
|
280
|
+
// "membership": {
|
|
281
|
+
// "id": 750,
|
|
282
|
+
// "start_date": "2022-01-07T21:32:54.000Z",
|
|
283
|
+
// "end_date": "2023-01-07T21:32:54.000Z",
|
|
284
|
+
// "planID": 6,
|
|
285
|
+
// "plan": "prod_KvGd6YSTJyR3AP",
|
|
286
|
+
// "name": "Plan Small",
|
|
287
|
+
// "user_limit": "10",
|
|
288
|
+
// "products_limit": "1000",
|
|
289
|
+
// "type": "Enterprise"
|
|
290
|
+
// },
|
|
291
|
+
// "src": "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1775592220312"
|
|
292
|
+
// },
|
|
293
|
+
|
|
294
|
+
//TEXTOS
|
|
295
|
+
|
|
296
|
+
// user: {
|
|
297
|
+
// "id_user": 442,
|
|
298
|
+
// "name": "Especialista",
|
|
299
|
+
// "last_name": "Textos",
|
|
300
|
+
// "email": "especialistatextosdev@allfreemail.net",
|
|
301
|
+
// "position": "Especialista de Imágenes",
|
|
302
|
+
// "telephone": null,
|
|
303
|
+
// "country": null,
|
|
304
|
+
// "id_company": 2,
|
|
305
|
+
// "id_role": 7,
|
|
306
|
+
// "about_me": null,
|
|
307
|
+
// "address": null,
|
|
308
|
+
// "job": null,
|
|
309
|
+
// "id_stripe": null,
|
|
310
|
+
// "active": 1,
|
|
311
|
+
// "email_notify": 1,
|
|
312
|
+
// "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
|
|
313
|
+
// "birth_Date": null,
|
|
314
|
+
// "zip_code": null,
|
|
315
|
+
// "is_retailer": 0,
|
|
316
|
+
// "is_onboarding": 0,
|
|
317
|
+
// "is_user_tech": null,
|
|
318
|
+
// "profile_picture_ext": null,
|
|
319
|
+
// "membership": {
|
|
320
|
+
// "id": 2,
|
|
321
|
+
// "start_date": "2021-11-05T02:35:12.000Z",
|
|
322
|
+
// "end_date": "2022-11-05T02:34:49.000Z",
|
|
323
|
+
// "planID": 1,
|
|
324
|
+
// "plan": "prod_KtkvuFFLpOdP6e",
|
|
325
|
+
// "name": "Plan Free",
|
|
326
|
+
// "user_limit": "1",
|
|
327
|
+
// "products_limit": "3",
|
|
328
|
+
// "type": "PyMES"
|
|
329
|
+
// },
|
|
330
|
+
// "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
|
|
331
|
+
// },
|
|
332
|
+
|
|
333
|
+
user: {
|
|
1055
334
|
id_user: 426,
|
|
1056
335
|
name: "Especialista Textos",
|
|
1057
336
|
last_name: null,
|
|
@@ -1074,16 +353,16 @@ RetailerProductEditionDefault.args = {
|
|
|
1074
353
|
is_user_tech: null,
|
|
1075
354
|
is_onboarding: 0,
|
|
1076
355
|
membership: {
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
356
|
+
id: 750,
|
|
357
|
+
start_date: "2022-01-07T21:32:54.000Z",
|
|
358
|
+
end_date: "2023-01-07T21:32:54.000Z",
|
|
359
|
+
planID: 6,
|
|
360
|
+
plan: "prod_KvGd6YSTJyR3AP",
|
|
361
|
+
name: "Plan Small",
|
|
362
|
+
user_limit: "10",
|
|
363
|
+
products_limit: "1000",
|
|
364
|
+
type: "Enterprise",
|
|
1086
365
|
},
|
|
1087
366
|
src: "https://content-management-profile-prod.s3.amazonaws.com/id-426/426.png?1768253179478",
|
|
1088
|
-
|
|
367
|
+
},
|
|
1089
368
|
};
|