contentoh-components-library 21.0.81 → 21.0.84

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.
@@ -34,14 +34,15 @@ var GalleryElement = function GalleryElement(_ref) {
34
34
  _ref$id = _ref.id,
35
35
  id = _ref$id === void 0 ? "chk-default" : _ref$id,
36
36
  label = _ref.label,
37
- index = _ref.index,
37
+ number = _ref.number,
38
38
  imageInputs = _ref.imageInputs,
39
39
  imageType = _ref.imageType,
40
40
  imagePackagingType = _ref.imagePackagingType,
41
41
  changeImage = _ref.changeImage,
42
42
  selectedImages = _ref.selectedImages,
43
43
  setSelectedImages = _ref.setSelectedImages,
44
- setCheckAll = _ref.setCheckAll;
44
+ setCheckAll = _ref.setCheckAll,
45
+ setSocketType = _ref.setSocketType;
45
46
 
46
47
  var _useState = (0, _react.useState)(validation),
47
48
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -110,14 +111,16 @@ var GalleryElement = function GalleryElement(_ref) {
110
111
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
111
112
  width: "100%",
112
113
  placeholder: "Tipo de toma",
113
- options: imageInputs,
114
+ options: imageInputs === null || imageInputs === void 0 ? void 0 : imageInputs.filter(function (img) {
115
+ return img.value === image.image_id || !img.active;
116
+ }),
114
117
  valueSelected: image.image_id,
115
118
  onChange: function onChange(e) {
116
119
  changeImage({
117
120
  action: "changeImageInfo",
118
121
  attribute: "image_id",
119
122
  value: +e.target.value,
120
- index: index
123
+ index: number
121
124
  });
122
125
  }
123
126
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
@@ -130,7 +133,7 @@ var GalleryElement = function GalleryElement(_ref) {
130
133
  action: "changeImageInfo",
131
134
  attribute: "image_type",
132
135
  value: +e.target.value,
133
- index: index
136
+ index: number
134
137
  });
135
138
  }
136
139
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
@@ -143,7 +146,7 @@ var GalleryElement = function GalleryElement(_ref) {
143
146
  action: "changeImageInfo",
144
147
  attribute: "packing_type",
145
148
  value: +e.target.value,
146
- index: index
149
+ index: number
147
150
  });
148
151
  }
149
152
  })]
@@ -75,7 +75,10 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
75
75
  }, [showAsignationPanel]);
76
76
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
77
77
  id: id,
78
- children: [showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
78
+ children: [status !== "-" && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
79
+ statusType: status,
80
+ ovalForm: true
81
+ }), showSaveButton && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
79
82
  buttonType: "circular-button save-button",
80
83
  onClick: onClickSave
81
84
  }), imagesSection && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .input-name-header {\n overflow: auto;\n max-width: 40%;\n white-space: nowrap;\n }\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n padding-bottom: 5px;\n border-bottom: 1px solid ", ";\n\n .input-name-header {\n overflow-x: auto;\n max-width: 40%;\n white-space: nowrap;\n height: 23px;\n line-height: 23px;\n text-overflow: initial;\n }\n .status-asignation-info {\n display: flex;\n align-items: center;\n\n * + * {\n margin-left: 5px;\n }\n }\n\n & + * {\n margin-top: 4px;\n }\n"])), _variables.GlobalColors.s2);
19
19
 
20
20
  exports.Container = Container;
@@ -36,60 +36,108 @@ ProviderProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- id_article: 32,
40
- id_category: "781",
41
- name: "PRODUCTO 10",
42
- upc: "PRUEBA10",
43
- timestamp: "2021-11-09T23:22:36.000Z",
44
- status: "NULL",
45
- categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
46
- asignations: [],
39
+ orderId: 2,
40
+ status: "AA",
41
+ datasheet_status: "AA",
42
+ prio: "none",
47
43
  version: 2,
48
- version_status: "AC",
49
- retailersAvailable: [{
50
- id: 2,
51
- name: "Walmart Mercancías Generales",
52
- country: "México",
53
- id_region: 1,
54
- active: 1
55
- }, {
56
- id: 3,
57
- name: "Sam´s Club",
44
+ description_status: "AP",
45
+ images_status: "AA",
46
+ brand: null,
47
+ retailerOrder: 0,
48
+ missing: {
49
+ datasheet: 0,
50
+ descriptions: 0,
51
+ images: -1
52
+ },
53
+ services: {
54
+ datasheets: 1,
55
+ descriptions: 1,
56
+ images: 1
57
+ },
58
+ article: {
59
+ category: "ILUMINACIÓN|FOCOS|LEDS",
60
+ company_name: "COMPANY DEV",
58
61
  country: "México",
59
- id_region: 1,
60
- active: 1
62
+ id_category: "2146",
63
+ id_datasheet_especialist: 54,
64
+ id_datasheet_facilitator: 52,
65
+ id_description_especialist: 54,
66
+ id_description_facilitator: 52,
67
+ id_images_especialist: 55,
68
+ id_images_facilitator: 53,
69
+ id_order: 2,
70
+ id_article: 35319,
71
+ id_auditor: 30,
72
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
73
+ upc: "120873"
74
+ },
75
+ retailers: [{
76
+ id: 58,
77
+ name: "The Home Depot Golden"
78
+ }],
79
+ retailersAvailable: [{
80
+ id: 58,
81
+ name: "The Home Depot Golden"
61
82
  }],
62
- missing: {}
83
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
84
+ upc: "120873",
85
+ id_article: 35319,
86
+ id_order: 2
63
87
  },
64
88
  productToEdit: {
65
- idCategory: "781",
66
- ArticleId: 32,
67
- product: [{
68
- id_article: 32,
69
- id_category: "781",
70
- name: "PRODUCTO 10",
71
- upc: "PRUEBA10",
72
- timestamp: "2021-11-09T23:22:36.000Z",
73
- status: "NULL",
74
- categoryName: "TECNOLOGÍA Y ELECTRÓNICA|VIDEO|DVD Y BLU-RAY",
75
- asignations: [],
89
+ ArticleId: 35319,
90
+ idCategory: "2146",
91
+ product: {
92
+ orderId: 2,
93
+ status: "AA",
94
+ datasheet_status: "AA",
95
+ prio: "none",
76
96
  version: 2,
77
- version_status: "AC",
78
- retailersAvailable: [{
79
- id: 2,
80
- name: "Walmart Mercancías Generales",
81
- country: "México",
82
- id_region: 1,
83
- active: 1
84
- }, {
85
- id: 3,
86
- name: "Sam´s Club",
97
+ description_status: "AP",
98
+ images_status: "AA",
99
+ brand: null,
100
+ retailerOrder: 0,
101
+ missing: {
102
+ datasheet: 0,
103
+ descriptions: 0,
104
+ images: -1
105
+ },
106
+ services: {
107
+ datasheets: 1,
108
+ descriptions: 1,
109
+ images: 1
110
+ },
111
+ article: {
112
+ category: "ILUMINACIÓN|FOCOS|LEDS",
113
+ company_name: "COMPANY DEV",
87
114
  country: "México",
88
- id_region: 1,
89
- active: 1
115
+ id_category: "2146",
116
+ id_datasheet_especialist: 54,
117
+ id_datasheet_facilitator: 52,
118
+ id_description_especialist: 54,
119
+ id_description_facilitator: 52,
120
+ id_images_especialist: 55,
121
+ id_images_facilitator: 53,
122
+ id_order: 2,
123
+ id_article: 35319,
124
+ id_auditor: 30,
125
+ name: "FOCO LED A19 (60W) LUZ AMARILLA",
126
+ upc: "120873"
127
+ },
128
+ retailers: [{
129
+ id: 58,
130
+ name: "The Home Depot Golden"
90
131
  }],
91
- missing: {}
92
- }]
132
+ retailersAvailable: [{
133
+ id: 58,
134
+ name: "The Home Depot Golden"
135
+ }],
136
+ categoryName: "ILUMINACIÓN|FOCOS|LEDS",
137
+ upc: "120873",
138
+ id_article: 35319,
139
+ id_order: 2
140
+ }
93
141
  },
94
142
  location: {
95
143
  product: {
@@ -130,6 +178,6 @@ ProviderProductEditionDefault.args = {
130
178
  products_limit: "5000",
131
179
  type: "Enterprise"
132
180
  },
133
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1653957474326"
181
+ src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1655246340910"
134
182
  }
135
183
  };
@@ -439,6 +439,11 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
439
439
  modalViewTextArea = _useState78[0],
440
440
  setModalViewTextArea = _useState78[1];
441
441
 
442
+ var _useState79 = (0, _react.useState)(null),
443
+ _useState80 = (0, _slicedToArray2.default)(_useState79, 2),
444
+ socketType = _useState80[0],
445
+ setSocketType = _useState80[1];
446
+
442
447
  (0, _react.useEffect)(function () {
443
448
  checkAll && setSelectedImages(images.values);
444
449
  }, [checkAll]);
@@ -462,7 +467,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
462
467
 
463
468
  setImages({
464
469
  action: "init",
465
- init: services[2]
470
+ init: JSON.parse(sessionStorage.getItem("imagesList")) || services[2]
466
471
  });
467
472
  if (((_services$ = services[2]) === null || _services$ === void 0 ? void 0 : (_services$$values = _services$.values) === null || _services$$values === void 0 ? void 0 : _services$$values.length) > 0) setActiveImage(0);
468
473
  setActiveRetailer(product.retailers ? product.retailers[0] : product.retailersAvailable[0]);
@@ -538,9 +543,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
538
543
 
539
544
  var isRevision = function isRevision() {
540
545
  if (productEdit) {
541
- var concept = getConcept(activeTab);
546
+ var _concept = getConcept(activeTab);
547
+
542
548
  var _isRetailer = user.is_retailer;
543
- var currentService = productEdit === null || productEdit === void 0 ? void 0 : productEdit.product["".concat(concept, "_status")];
549
+ var currentService = productEdit === null || productEdit === void 0 ? void 0 : productEdit.product["".concat(_concept, "_status")];
544
550
  var orgn = origin[activeTab];
545
551
 
546
552
  var _revision = ["RequestWithContentoh", "RequestWithoutContentoh", "Contentoh"].includes(orgn);
@@ -684,15 +690,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
684
690
  }, [activeRetailer, services]);
685
691
 
686
692
  var thumbs = function thumbs() {
687
- var _images$inputs, _images$imageType, _images$imagePackagin, _images$values;
693
+ var _images$imageType, _images$imagePackagin, _images$values;
688
694
 
689
- var imageInputs = images === null || images === void 0 ? void 0 : (_images$inputs = images.inputs) === null || _images$inputs === void 0 ? void 0 : _images$inputs.map(function (e) {
690
- return {
691
- value: e === null || e === void 0 ? void 0 : e.id,
692
- name: e === null || e === void 0 ? void 0 : e.name,
693
- required: e === null || e === void 0 ? void 0 : e.required
694
- };
695
- });
695
+ var imageInputs = socketType.slice();
696
696
  var imageType = images === null || images === void 0 ? void 0 : (_images$imageType = images.imageType) === null || _images$imageType === void 0 ? void 0 : _images$imageType.map(function (e) {
697
697
  return {
698
698
  value: e === null || e === void 0 ? void 0 : e.id,
@@ -711,7 +711,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
711
711
  image: image,
712
712
  gridLayout: imageLayout,
713
713
  id: "gallery-element-" + index,
714
- index: index,
714
+ index: index + "-" + image.name,
715
+ number: index,
715
716
  imageType: imageType,
716
717
  imagePackagingType: imagePackagingType,
717
718
  imageInputs: imageInputs,
@@ -722,6 +723,22 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
722
723
  });
723
724
  };
724
725
 
726
+ (0, _react.useEffect)(function () {
727
+ var _images$inputs;
728
+
729
+ var imageInputs = images === null || images === void 0 ? void 0 : (_images$inputs = images.inputs) === null || _images$inputs === void 0 ? void 0 : _images$inputs.map(function (e) {
730
+ return {
731
+ value: e === null || e === void 0 ? void 0 : e.id,
732
+ name: e === null || e === void 0 ? void 0 : e.name,
733
+ required: e === null || e === void 0 ? void 0 : e.required,
734
+ active: images === null || images === void 0 ? void 0 : images.values.some(function (value) {
735
+ return (value === null || value === void 0 ? void 0 : value.image_id) === (e === null || e === void 0 ? void 0 : e.id);
736
+ })
737
+ };
738
+ });
739
+ setSocketType(imageInputs);
740
+ }, [images]);
741
+
725
742
  var saveDescriptions = /*#__PURE__*/function () {
726
743
  var _ref7 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() {
727
744
  var productTemp, dataObject;
@@ -950,7 +967,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
950
967
  switch (_context9.prev = _context9.next) {
951
968
  case 0:
952
969
  if (!imagesUploaded) {
953
- _context9.next = 13;
970
+ _context9.next = 14;
954
971
  break;
955
972
  }
956
973
 
@@ -973,21 +990,22 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
973
990
 
974
991
  case 6:
975
992
  setMessage("Imágenes guardadas con éxito");
993
+ sessionStorage.removeItem("imagesList");
976
994
  loadData();
977
- _context9.next = 13;
995
+ _context9.next = 14;
978
996
  break;
979
997
 
980
- case 10:
981
- _context9.prev = 10;
998
+ case 11:
999
+ _context9.prev = 11;
982
1000
  _context9.t0 = _context9["catch"](3);
983
1001
  console.log(_context9.t0);
984
1002
 
985
- case 13:
1003
+ case 14:
986
1004
  case "end":
987
1005
  return _context9.stop();
988
1006
  }
989
1007
  }
990
- }, _callee9, null, [[3, 10]]);
1008
+ }, _callee9, null, [[3, 11]]);
991
1009
  })), [dataImages, imagesUploaded]);
992
1010
 
993
1011
  var evaluationFinished = function evaluationFinished(userId, tab, statusArray) {// const srv = servicesData.filter((serv) => serv.service === getConcept(tab));
@@ -1422,24 +1440,39 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1422
1440
  };
1423
1441
 
1424
1442
  var deleteImages = function deleteImages() {
1425
- var data = {
1426
- articleId: product.id_article,
1427
- deleteImages: selectedImages
1428
- };
1443
+ setLoading(true);
1444
+ var imagesTemp = images;
1445
+ var values = images.values;
1446
+ var imgsInBack = [];
1447
+ selectedImages.forEach(function (selectedImg) {
1448
+ if (selectedImg.id) imgsInBack.push(selectedImg);
1449
+ });
1450
+ var imgsLeft = values.filter(function (value) {
1451
+ return selectedImages.indexOf(value) === -1;
1452
+ });
1453
+ imagesTemp.values = imgsLeft;
1429
1454
 
1430
- try {
1431
- _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?image=true&version=").concat(version), data, {
1432
- headers: {
1433
- Authorization: token
1434
- }
1435
- });
1455
+ if (imgsInBack.length > 0) {
1456
+ var data = {
1457
+ articleId: product.article.id_article,
1458
+ deleteImages: selectedImages
1459
+ };
1436
1460
 
1437
- loadData();
1438
- } catch (err) {
1439
- console.log(err);
1461
+ try {
1462
+ _axios.default.put("".concat(process.env.REACT_APP_ARTICLE_DATA_ENDPOINT, "?image=true&version=").concat(version), data, {
1463
+ headers: {
1464
+ Authorization: token
1465
+ }
1466
+ });
1467
+ } catch (err) {
1468
+ console.log(err);
1469
+ }
1440
1470
  }
1441
1471
 
1472
+ sessionStorage.setItem("imagesList", JSON.stringify(imagesTemp));
1473
+ loadData();
1442
1474
  setMessage("");
1475
+ setComponentsArray([]);
1443
1476
  };
1444
1477
 
1445
1478
  var askToDeleteImages = function askToDeleteImages() {
@@ -1459,7 +1492,8 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1459
1492
  buttonType: "general-button-default",
1460
1493
  label: "Aceptar",
1461
1494
  onClick: function onClick() {
1462
- return deleteImages();
1495
+ setMessage("");
1496
+ deleteImages();
1463
1497
  }
1464
1498
  }, "3")]);
1465
1499
  }
@@ -1517,7 +1551,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1517
1551
 
1518
1552
  var sendEvaluation = /*#__PURE__*/function () {
1519
1553
  var _ref14 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(result) {
1520
- var data, retailerId, _product$id_order2, _product$id_order3, concept, _productTemp;
1554
+ var data, retailerId, productTemp, _product$id_order2, _product$id_order3, _concept2;
1521
1555
 
1522
1556
  return _regenerator.default.wrap(function _callee13$(_context13) {
1523
1557
  while (1) {
@@ -1525,9 +1559,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1525
1559
  case 0:
1526
1560
  data = {};
1527
1561
  retailerId = activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.id;
1562
+ productTemp = product;
1528
1563
 
1529
1564
  if (!result) {
1530
- _context13.next = 8;
1565
+ _context13.next = 10;
1531
1566
  break;
1532
1567
  }
1533
1568
 
@@ -1538,25 +1573,25 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1538
1573
  result: result,
1539
1574
  retailerId: retailerId
1540
1575
  };
1541
- _context13.next = 6;
1576
+ productTemp["".concat(concept, "_status")] = "".concat(result, "P");
1577
+ _context13.next = 8;
1542
1578
  return _axios.default.put("".concat(process.env.REACT_APP_EVALUATION_ENDPOINT), data, {
1543
1579
  headers: {
1544
1580
  Authorization: token
1545
1581
  }
1546
1582
  });
1547
1583
 
1548
- case 6:
1549
- _context13.next = 17;
1584
+ case 8:
1585
+ _context13.next = 18;
1550
1586
  break;
1551
1587
 
1552
- case 8:
1553
- concept = getConcept(activeTab);
1554
- _productTemp = product;
1555
- _productTemp["".concat(concept, "_status")] = "Evaluated";
1588
+ case 10:
1589
+ _concept2 = getConcept(activeTab);
1590
+ productTemp["".concat(_concept2, "_status")] = "Evaluated";
1556
1591
  data = {
1557
1592
  articleId: product.id_article,
1558
1593
  orderId: (_product$id_order3 = product.id_order) !== null && _product$id_order3 !== void 0 ? _product$id_order3 : product.orderId,
1559
- concept: concept,
1594
+ concept: _concept2,
1560
1595
  retailerId: retailerId
1561
1596
  };
1562
1597
 
@@ -1566,26 +1601,26 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1566
1601
  }
1567
1602
  });
1568
1603
 
1569
- setProduct(_productTemp);
1604
+ setProduct(productTemp);
1570
1605
  setProductEdit({
1571
- ArticleId: _productTemp.id_article,
1572
- idCategory: _productTemp.article.id_category,
1573
- product: _productTemp
1606
+ ArticleId: productTemp.id_article,
1607
+ idCategory: productTemp.article.id_category,
1608
+ product: productTemp
1574
1609
  });
1575
1610
  sessionStorage.setItem("productEdit", JSON.stringify({
1576
- ArticleId: _productTemp.id_article,
1577
- idCategory: _productTemp.article.id_category,
1578
- product: _productTemp
1611
+ ArticleId: productTemp.id_article,
1612
+ idCategory: productTemp.article.id_category,
1613
+ product: productTemp
1579
1614
  }));
1580
1615
  setOrigin(function (prev) {
1581
- return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, concept, "Evaluated"));
1616
+ return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, (0, _defineProperty2.default)({}, _concept2, "Evaluated"));
1582
1617
  });
1583
1618
 
1584
- case 17:
1619
+ case 18:
1585
1620
  loadData();
1586
1621
  showSurvey && showSurvey(confirmStatusComplete());
1587
1622
 
1588
- case 19:
1623
+ case 20:
1589
1624
  case "end":
1590
1625
  return _context13.stop();
1591
1626
  }
@@ -1756,7 +1791,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1756
1791
  }
1757
1792
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FullTabsMenu.FullTabsMenu, {
1758
1793
  tabsSections: tabsSections,
1759
- status: product === null || product === void 0 ? void 0 : product.version_status,
1794
+ status: product["".concat(getConcept(activeTab), "_status")] || (product === null || product === void 0 ? void 0 : product.version_status),
1760
1795
  activeTab: activeTab,
1761
1796
  setActiveTab: setActiveTab,
1762
1797
  setImageLayout: setImageLayout,
@@ -36,46 +36,61 @@ RetailerProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- orderId: 132,
40
- id_category: "612",
41
- status: "IN_PROGRESS",
39
+ services: {
40
+ datasheets: 1,
41
+ descriptions: 1,
42
+ images: 1
43
+ },
44
+ orderId: 233,
45
+ status: "QF",
42
46
  datasheet_status: "QF",
43
47
  prio: "none",
44
48
  version: 2,
45
- description_status: "IN_PROGRESS",
46
- images_status: "IN_PROGRESS",
47
- brand: null,
48
- missing: {
49
- datasheet: 0,
50
- descriptions: 0,
51
- images: 0
52
- },
49
+ description_status: "QF",
50
+ images_status: "QF",
53
51
  article: {
54
- category: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
52
+ id_article: 190965,
53
+ id_category: "697",
54
+ name: "Shampoo hidratante",
55
+ upc: "6545345",
56
+ timestamp: "2022-06-10T15:05:56.000Z",
57
+ id_user: 28,
58
+ status: "NULL",
59
+ active: 1,
60
+ company_id: 1,
55
61
  company_name: "COMPANY DEV",
56
- id_category: "612",
57
- id_article: 109490,
58
- name: "Collar con dije letra ",
59
- timestamp: "2022-05-05T16:45:49.000Z",
60
- upc: "123434"
62
+ country: "México",
63
+ id_order: 233,
64
+ id_datasheet_especialist: 54,
65
+ id_datasheet_facilitator: 52,
66
+ id_description_especialist: 54,
67
+ id_description_facilitator: 52,
68
+ id_images_especialist: 55,
69
+ id_images_facilitator: 53,
70
+ id_auditor: 30,
71
+ id_recepcionist: null,
72
+ category: "SALUD Y BELLEZA|CUIDADO DEL CABELLO|SHAMPOOS Y ACONDICIONADORES",
73
+ missingAttributes: null,
74
+ missingDescriptions: null,
75
+ missingImages: null
61
76
  },
62
77
  retailers: [{
63
- id: 2,
64
- name: "Walmart Mercancías Generales"
65
- }],
66
- services: {
67
- datasheets: 1,
68
- descriptions: 1,
69
- images: 1
70
- },
71
- checked: false,
72
- retailersAvailable: [{
73
- id: 2,
74
- name: "Walmart Mercancías Generales"
78
+ id: 4,
79
+ name: "Walmart Super y Superama",
80
+ country: "México",
81
+ id_region: 1,
82
+ active: 1,
83
+ percentage: 100
84
+ }, {
85
+ id: 26,
86
+ name: "Mercado Libre",
87
+ country: "México",
88
+ id_region: 1,
89
+ active: 1,
90
+ percentage: 100
75
91
  }],
76
- id_article: 109490,
77
- categoryName: "ROPA, ACCESORIOS, FRAGANCIAS Y JOYERÍA|ACCESORIOS|COLLARES",
78
- version_status: "IN_PROGRESS"
92
+ country: "México",
93
+ upc: "6545345"
79
94
  },
80
95
  location: {
81
96
  product: {
@@ -84,22 +99,22 @@ RetailerProductEditionDefault.args = {
84
99
  }
85
100
  },
86
101
  user: {
87
- id_user: 54,
88
- name: "ESPECIALISTA TXTS PRUEBA",
102
+ id_user: 53,
103
+ name: "FACILITADOR ED PRUEBA",
89
104
  last_name: "",
90
- email: "rlegorreta@contentoh.com",
105
+ email: "arojas@contentoh.com",
91
106
  position: null,
92
107
  telephone: null,
93
108
  country: null,
94
109
  id_company: 2,
95
- id_cognito: "ca1d24ab-e992-4c19-b4e1-2fe6f720c16b",
110
+ id_cognito: "c106e141-e221-49e8-a382-ce99385c6d88",
96
111
  birth_Date: null,
97
112
  about_me: null,
98
113
  zip_code: null,
99
114
  address: null,
100
115
  job: null,
101
116
  id_stripe: null,
102
- id_role: 7,
117
+ id_role: 5,
103
118
  active: 1,
104
119
  is_retailer: 0,
105
120
  membership: {
@@ -113,6 +128,6 @@ RetailerProductEditionDefault.args = {
113
128
  products_limit: "3",
114
129
  type: "PyMES"
115
130
  },
116
- src: "https://content-management-profile.s3.amazonaws.com/id-54/54.png?1653425316222"
131
+ src: "https://content-management-profile.s3.amazonaws.com/id-53/53.png?1655161876316"
117
132
  }
118
133
  };