contentoh-components-library 21.2.12 → 21.2.13

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.
@@ -1545,10 +1545,6 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1545
1545
 
1546
1546
  case 8:
1547
1547
  evalResponse = _context13.sent;
1548
- console.log(evalResponse.map(function (_ref15) {
1549
- var data = _ref15.data;
1550
- return JSON.parse(data.body);
1551
- }));
1552
1548
  userType = user.is_retailer === 1 ? "CA" : "P";
1553
1549
  productTemp = product;
1554
1550
  productTemp.article_status = "".concat(result).concat(userType);
@@ -1577,24 +1573,24 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1577
1573
  idCategory: productTemp.article.id_category,
1578
1574
  product: productTemp
1579
1575
  }));
1580
- _context13.next = 26;
1576
+ _context13.next = 25;
1581
1577
  return loadData();
1582
1578
 
1583
- case 26:
1584
- _context13.next = 31;
1579
+ case 25:
1580
+ _context13.next = 30;
1585
1581
  break;
1586
1582
 
1587
- case 28:
1588
- _context13.prev = 28;
1583
+ case 27:
1584
+ _context13.prev = 27;
1589
1585
  _context13.t0 = _context13["catch"](0);
1590
1586
  console.log(_context13.t0);
1591
1587
 
1592
- case 31:
1588
+ case 30:
1593
1589
  case "end":
1594
1590
  return _context13.stop();
1595
1591
  }
1596
1592
  }
1597
- }, _callee13, null, [[0, 28]]);
1593
+ }, _callee13, null, [[0, 27]]);
1598
1594
  }));
1599
1595
 
1600
1596
  return function validateAll(_x8) {
@@ -1603,7 +1599,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1603
1599
  }();
1604
1600
 
1605
1601
  var evaluationToRetailer = /*#__PURE__*/function () {
1606
- var _ref16 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(result) {
1602
+ var _ref15 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14(result) {
1607
1603
  var data, prod, statusComplete;
1608
1604
  return _regenerator.default.wrap(function _callee14$(_context14) {
1609
1605
  while (1) {
@@ -1645,7 +1641,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1645
1641
  }));
1646
1642
 
1647
1643
  return function evaluationToRetailer(_x9) {
1648
- return _ref16.apply(this, arguments);
1644
+ return _ref15.apply(this, arguments);
1649
1645
  };
1650
1646
  }();
1651
1647
 
@@ -33,53 +33,57 @@ RetailerProductEditionDefault.args = {
33
33
  },
34
34
  token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3MTNhNzQ1Ny1mOTQzLTRiYzktOGViMC04NmI0MWY1YmQ0ZjgiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjcxM2E3NDU3LWY5NDMtNGJjOS04ZWIwLTg2YjQxZjViZDRmOCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJlM2ExZmQ2OC02OTAwLTRjNWYtYjM5MC1jNjY0MDZhZjkyMGYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MTU0ODI4NSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MTU1MTg4NSwiaWF0IjoxNjYxNTQ4Mjg1LCJlbWFpbCI6ImhjYXJyaWxsb0Bjb250ZW50b2guY29tIn0.GUmPbOrd8-llRODdaidjReKHBwrVbGV5LP37aD_o14BQ67VSmH2pxLvrZRBNsZhvP0vZuetXt19pyiFgCr1-SF5CMHD3dcnPq2Ka0PUEf8raNEoseCPGaDUugu-waz1qPadZN1OrlhQTm9mOWoGj4u0gQv5FGAbC6xMcRernAo4QX41-Pfjvp2u7p62BYkp6rafzTjazUHZiG-ueqPI9QQQ-2zkbTo46l7TFYz6ATNSiZEvezc52L1nzWDhI5Q8xbNA546WC-leLr30SV9vrXBTGdvLdCKeqEYPrVG1L3nXXZ9CvtHJjdkb60irWZjXT1LbpulfL3IqO2_PKHTUpHQ",
35
35
  productSelected: {
36
- services: {
37
- datasheets: 1,
38
- descriptions: 1,
39
- images: 1
36
+ "services": {
37
+ "datasheets": 1,
38
+ "descriptions": 1,
39
+ "images": 1
40
40
  },
41
- orderId: 127,
42
- status: "AS",
43
- datasheet_status: "AS",
44
- prio: "none",
45
- version: 2,
46
- description_status: "AS",
47
- images_status: "AS",
48
- article: {
49
- id_article: 76186,
50
- id_category: "399",
51
- name: "Croquetas Dog Chow",
52
- upc: "4535354",
53
- timestamp: "2022-07-21T15:20:25.000Z",
54
- id_user: 28,
55
- status: "NULL",
56
- active: 1,
57
- company_id: 1,
58
- company_name: "COMPANY DEV",
59
- country: "México",
60
- id_order: 127,
61
- id_datasheet_especialist: 54,
62
- id_datasheet_facilitator: 52,
63
- id_description_especialist: 54,
64
- id_description_facilitator: 52,
65
- id_images_especialist: 55,
66
- id_images_facilitator: 53,
67
- id_auditor: 30,
68
- id_recepcionist: null,
69
- category: "Mascotas|Alimentos y Premios|Alimento para Perros",
70
- missingAttributes: null,
71
- missingDescriptions: null,
72
- missingImages: null
41
+ "orderId": 2674,
42
+ "status": "PA",
43
+ "datasheet_status": "PA",
44
+ "prio": "none",
45
+ "version": 2,
46
+ "description_status": "PA",
47
+ "images_status": "PA",
48
+ "article": {
49
+ "id_article": 80969,
50
+ "id_category": "2044",
51
+ "name": "CABLE IUSA THWLS/THHWLS 10 AWG COLOR VERDE EN CARRETE DE 100 M",
52
+ "upc": "168594",
53
+ "timestamp": "2022-08-26T21:11:06.000Z",
54
+ "id_user": 651,
55
+ "status": "NULL",
56
+ "active": 1,
57
+ "company_id": 388,
58
+ "SKU": null,
59
+ "Descripcion": null,
60
+ "Proveedor": null,
61
+ "id_proveedor": 0,
62
+ "company_name": "",
63
+ "country": null,
64
+ "id_order": 2674,
65
+ "id_datasheet_especialist": null,
66
+ "id_datasheet_facilitator": null,
67
+ "id_description_especialist": null,
68
+ "id_description_facilitator": null,
69
+ "id_images_especialist": null,
70
+ "id_images_facilitator": null,
71
+ "id_auditor": null,
72
+ "id_recepcionist": null,
73
+ "category": "Eléctrico|Cables Eléctricos|Cables Eléctricos",
74
+ "missingAttributes": null,
75
+ "missingDescriptions": null,
76
+ "missingImages": null
73
77
  },
74
- retailers: [{
75
- id: 2,
76
- name: "Walmart Mercancías Generales",
77
- country: "México",
78
- id_region: 1,
79
- active: 1
78
+ "retailers": [{
79
+ "id": 58,
80
+ "name": "The Home Depot Golden",
81
+ "country": "México",
82
+ "id_region": 1,
83
+ "active": 1
80
84
  }],
81
- country: "México",
82
- upc: "4535354"
85
+ "country": null,
86
+ "upc": "168594"
83
87
  },
84
88
  location: {
85
89
  product: {
@@ -1914,7 +1914,7 @@ var RetailerProductEdition = function RetailerProductEdition(_ref) {
1914
1914
  headerType: "input-name-header"
1915
1915
  }))]
1916
1916
  })
1917
- }), console.log(userAssigned(activeTab), auditorAssigned()), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1917
+ }), (userAssigned(activeTab) || auditorAssigned()) && product["".concat(getConcept(activeTab), "_status")] !== "NS" && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1918
1918
  className: "commentary-box",
1919
1919
  children: [!comment ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
1920
1920
  className: "commentary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.12",
3
+ "version": "21.2.13",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -938,7 +938,6 @@ export const ProviderProductEdition = ({
938
938
  );
939
939
  });
940
940
  const evalResponse = await Promise.all(evaluationArray);
941
- console.log(evalResponse.map(({ data }) => JSON.parse(data.body)));
942
941
  const userType = user.is_retailer === 1 ? "CA" : "P";
943
942
 
944
943
  const productTemp = product;
@@ -18,56 +18,60 @@ RetailerProductEditionDefault.args = {
18
18
  token:
19
19
  "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI3MTNhNzQ1Ny1mOTQzLTRiYzktOGViMC04NmI0MWY1YmQ0ZjgiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjcxM2E3NDU3LWY5NDMtNGJjOS04ZWIwLTg2YjQxZjViZDRmOCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJlM2ExZmQ2OC02OTAwLTRjNWYtYjM5MC1jNjY0MDZhZjkyMGYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MTU0ODI4NSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY2MTU1MTg4NSwiaWF0IjoxNjYxNTQ4Mjg1LCJlbWFpbCI6ImhjYXJyaWxsb0Bjb250ZW50b2guY29tIn0.GUmPbOrd8-llRODdaidjReKHBwrVbGV5LP37aD_o14BQ67VSmH2pxLvrZRBNsZhvP0vZuetXt19pyiFgCr1-SF5CMHD3dcnPq2Ka0PUEf8raNEoseCPGaDUugu-waz1qPadZN1OrlhQTm9mOWoGj4u0gQv5FGAbC6xMcRernAo4QX41-Pfjvp2u7p62BYkp6rafzTjazUHZiG-ueqPI9QQQ-2zkbTo46l7TFYz6ATNSiZEvezc52L1nzWDhI5Q8xbNA546WC-leLr30SV9vrXBTGdvLdCKeqEYPrVG1L3nXXZ9CvtHJjdkb60irWZjXT1LbpulfL3IqO2_PKHTUpHQ",
20
20
  productSelected: {
21
- services: {
22
- datasheets: 1,
23
- descriptions: 1,
24
- images: 1,
21
+ "services": {
22
+ "datasheets": 1,
23
+ "descriptions": 1,
24
+ "images": 1
25
25
  },
26
- orderId: 127,
27
- status: "AS",
28
- datasheet_status: "AS",
29
- prio: "none",
30
- version: 2,
31
- description_status: "AS",
32
- images_status: "AS",
33
- article: {
34
- id_article: 76186,
35
- id_category: "399",
36
- name: "Croquetas Dog Chow",
37
- upc: "4535354",
38
- timestamp: "2022-07-21T15:20:25.000Z",
39
- id_user: 28,
40
- status: "NULL",
41
- active: 1,
42
- company_id: 1,
43
- company_name: "COMPANY DEV",
44
- country: "México",
45
- id_order: 127,
46
- id_datasheet_especialist: 54,
47
- id_datasheet_facilitator: 52,
48
- id_description_especialist: 54,
49
- id_description_facilitator: 52,
50
- id_images_especialist: 55,
51
- id_images_facilitator: 53,
52
- id_auditor: 30,
53
- id_recepcionist: null,
54
- category: "Mascotas|Alimentos y Premios|Alimento para Perros",
55
- missingAttributes: null,
56
- missingDescriptions: null,
57
- missingImages: null,
26
+ "orderId": 2674,
27
+ "status": "PA",
28
+ "datasheet_status": "PA",
29
+ "prio": "none",
30
+ "version": 2,
31
+ "description_status": "PA",
32
+ "images_status": "PA",
33
+ "article": {
34
+ "id_article": 80969,
35
+ "id_category": "2044",
36
+ "name": "CABLE IUSA THWLS/THHWLS 10 AWG COLOR VERDE EN CARRETE DE 100 M",
37
+ "upc": "168594",
38
+ "timestamp": "2022-08-26T21:11:06.000Z",
39
+ "id_user": 651,
40
+ "status": "NULL",
41
+ "active": 1,
42
+ "company_id": 388,
43
+ "SKU": null,
44
+ "Descripcion": null,
45
+ "Proveedor": null,
46
+ "id_proveedor": 0,
47
+ "company_name": "",
48
+ "country": null,
49
+ "id_order": 2674,
50
+ "id_datasheet_especialist": null,
51
+ "id_datasheet_facilitator": null,
52
+ "id_description_especialist": null,
53
+ "id_description_facilitator": null,
54
+ "id_images_especialist": null,
55
+ "id_images_facilitator": null,
56
+ "id_auditor": null,
57
+ "id_recepcionist": null,
58
+ "category": "Eléctrico|Cables Eléctricos|Cables Eléctricos",
59
+ "missingAttributes": null,
60
+ "missingDescriptions": null,
61
+ "missingImages": null
58
62
  },
59
- retailers: [
60
- {
61
- id: 2,
62
- name: "Walmart Mercancías Generales",
63
- country: "México",
64
- id_region: 1,
65
- active: 1,
66
- },
63
+ "retailers": [
64
+ {
65
+ "id": 58,
66
+ "name": "The Home Depot Golden",
67
+ "country": "México",
68
+ "id_region": 1,
69
+ "active": 1
70
+ }
67
71
  ],
68
- country: "México",
69
- upc: "4535354",
70
- },
72
+ "country": null,
73
+ "upc": "168594"
74
+ },
71
75
  location: {
72
76
  product: { articleId: 109485, versionId: 3 },
73
77
  },
@@ -1400,7 +1400,6 @@ export const RetailerProductEdition = ({
1400
1400
  </>
1401
1401
  )}
1402
1402
  </div>
1403
- {console.log(userAssigned(activeTab), auditorAssigned())}
1404
1403
  {(userAssigned(activeTab) || auditorAssigned()) &&
1405
1404
  product[`${getConcept(activeTab)}_status`] !== "NS" && (
1406
1405
  <div className="commentary-box">