contentoh-components-library 21.4.81 → 21.4.83

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 (24) hide show
  1. package/dist/components/molecules/ProductNameHeader/index.js +3 -8
  2. package/dist/components/organisms/EditGroup/index.js +1 -24
  3. package/dist/components/organisms/FullProductNameHeader/index.js +1 -3
  4. package/dist/components/organisms/VersionSelector/index.js +169 -101
  5. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +38 -34
  6. package/dist/components/pages/ProviderProductEdition/index.js +53 -71
  7. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -47
  8. package/dist/components/pages/RetailerProductEdition/index.js +177 -101
  9. package/dist/global-files/data.js +26 -11
  10. package/package.json +1 -2
  11. package/src/components/atoms/GeneralButton/styles.js +0 -1
  12. package/src/components/atoms/TabSection/index.js +1 -1
  13. package/src/components/molecules/ProductNameHeader/index.js +1 -5
  14. package/src/components/organisms/EditGroup/index.js +1 -16
  15. package/src/components/organisms/FullProductNameHeader/index.js +0 -2
  16. package/src/components/organisms/VersionSelector/index.js +100 -100
  17. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +29 -39
  18. package/src/components/pages/ProviderProductEdition/index.js +21 -34
  19. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +52 -48
  20. package/src/components/pages/RetailerProductEdition/index.js +144 -32
  21. package/src/global-files/data.js +33 -7
  22. package/src/components/atoms/ObservationFlag/ObservationFlag.stories.js +0 -20
  23. package/src/components/atoms/ObservationFlag/index.js +0 -33
  24. package/src/components/atoms/ObservationFlag/styles.js +0 -3
@@ -1,106 +1,106 @@
1
- // import { Container } from "./styles";
2
- // import axios from "axios";
3
- // import { useEffect, useState } from "react";
4
- // import { ScreenHeader } from "../../atoms/ScreenHeader";
5
- // import { Button } from "../../atoms/GeneralButton";
6
- // import addVersion from "../../../assets/images/versionSelector/addVersion.svg";
7
- // import closeIcon from "../../../assets/images/versionSelector/closeVersionSelector.svg";
8
- // import { GlobalColors } from "../../../../dist/global-files/variables";
9
- // import { FontFamily } from "../../../global-files/variables";
10
- // import { VersionItem } from "../../molecules/VersionItem";
11
- // import { CreateVersion } from "../../organisms/CreateVersion";
12
- // import { useCloseModal } from "../../../global-files/customHooks";
1
+ import { Container } from "./styles";
2
+ import axios from "axios";
3
+ import { useEffect, useState } from "react";
4
+ import { ScreenHeader } from "../../atoms/ScreenHeader";
5
+ import { Button } from "../../atoms/GeneralButton";
6
+ import addVersion from "../../../assets/images/versionSelector/addVersion.svg";
7
+ import closeIcon from "../../../assets/images/versionSelector/closeVersionSelector.svg";
8
+ import { GlobalColors } from "../../../../dist/global-files/variables";
9
+ import { FontFamily } from "../../../global-files/variables";
10
+ import { VersionItem } from "../../molecules/VersionItem";
11
+ import { CreateVersion } from "../../organisms/CreateVersion";
12
+ import { useCloseModal } from "../../../global-files/customHooks";
13
13
 
14
- // export const VersionSelector = ({
15
- // modalId,
16
- // articleId,
17
- // setVersion,
18
- // companyName,
19
- // currentVersion,
20
- // setShowVersionSelector,
21
- // jwt,
22
- // }) => {
23
- // const [versions, setVersions] = useState([]);
24
- // const [showCreateVersion, setShowCreateVersion] =
25
- // useCloseModal("create-version");
26
- // const [reload, setReload] = useState(false);
14
+ export const VersionSelector = ({
15
+ modalId,
16
+ articleId,
17
+ setVersion,
18
+ companyName,
19
+ currentVersion,
20
+ setShowVersionSelector,
21
+ jwt,
22
+ }) => {
23
+ const [versions, setVersions] = useState([]);
24
+ const [showCreateVersion, setShowCreateVersion] =
25
+ useCloseModal("create-version");
26
+ const [reload, setReload] = useState(false);
27
27
 
28
- // const loadProductVersions = async (articleId) => {
29
- // try {
30
- // const response = await axios.get(
31
- // `${process.env.REACT_APP_VERSIONS_ENDPOINT}?articleId=${articleId}&provider=true`,
32
- // {
33
- // headers: {
34
- // Authorization: jwt,
35
- // },
36
- // }
37
- // );
28
+ const loadProductVersions = async (articleId) => {
29
+ try {
30
+ const response = await axios.get(
31
+ `${process.env.REACT_APP_VERSIONS_ENDPOINT}?articleId=${articleId}&provider=true`,
32
+ {
33
+ headers: {
34
+ Authorization: jwt,
35
+ },
36
+ }
37
+ );
38
38
 
39
- // const versionList = JSON.parse(response.data.body).data;
40
- // setVersions(versionList);
41
- // } catch (error) {
42
- // console.log(error);
43
- // }
44
- // };
39
+ const versionList = JSON.parse(response.data.body).data;
40
+ setVersions(versionList);
41
+ } catch (error) {
42
+ console.log(error);
43
+ }
44
+ };
45
45
 
46
- // useEffect(() => {
47
- // const ac = new AbortController();
48
- // loadProductVersions(articleId);
46
+ useEffect(() => {
47
+ const ac = new AbortController();
48
+ loadProductVersions(articleId);
49
49
 
50
- // return () => {
51
- // setVersions([]);
52
- // setShowCreateVersion(false);
53
- // return () => ac.abort(); // Abort both fetches on unmount
54
- // };
55
- // }, [reload]);
50
+ return () => {
51
+ setVersions([]);
52
+ setShowCreateVersion(false);
53
+ return () => ac.abort(); // Abort both fetches on unmount
54
+ };
55
+ }, [reload]);
56
56
 
57
- // return (
58
- // <Container id={modalId}>
59
- // <div className="versions-header">
60
- // <ScreenHeader
61
- // text={"Versión del producto"}
62
- // headerType={"input-name-header"}
63
- // color={GlobalColors.white}
64
- // fontFamily={FontFamily.Lato}
65
- // />
66
- // <div className="buttons-container">
67
- // <Button
68
- // image={addVersion}
69
- // buttonType={"circular-button"}
70
- // onClick={() => setShowCreateVersion(true)}
71
- // id="add-version"
72
- // />
73
- // <Button
74
- // image={closeIcon}
75
- // buttonType={"circular-button"}
76
- // onClick={() => setShowVersionSelector(false)}
77
- // id="close-button"
78
- // />
79
- // </div>
80
- // </div>
81
- // <div className="versions-container">
82
- // {versions?.map((item) => (
83
- // <VersionItem
84
- // key={item.version}
85
- // version={item.version}
86
- // articleStatus={item.article_status}
87
- // currentVersion={item.version === currentVersion}
88
- // productOwner={companyName}
89
- // setVersion={setVersion}
90
- // timestamp={item.timestamp}
91
- // />
92
- // ))}
93
- // </div>
94
- // {showCreateVersion && (
95
- // <CreateVersion
96
- // articleId={articleId}
97
- // version={currentVersion}
98
- // versionsList={versions}
99
- // setShowCreateVersion={setShowCreateVersion}
100
- // realoadVersion={() => setReload(!reload)}
101
- // jwt={jwt}
102
- // />
103
- // )}
104
- // </Container>
105
- // );
106
- // };
57
+ return (
58
+ <Container id={modalId}>
59
+ <div className="versions-header">
60
+ <ScreenHeader
61
+ text={"Versión del producto"}
62
+ headerType={"input-name-header"}
63
+ color={GlobalColors.white}
64
+ fontFamily={FontFamily.Lato}
65
+ />
66
+ <div className="buttons-container">
67
+ <Button
68
+ image={addVersion}
69
+ buttonType={"circular-button"}
70
+ onClick={() => setShowCreateVersion(true)}
71
+ id="add-version"
72
+ />
73
+ <Button
74
+ image={closeIcon}
75
+ buttonType={"circular-button"}
76
+ onClick={() => setShowVersionSelector(false)}
77
+ id="close-button"
78
+ />
79
+ </div>
80
+ </div>
81
+ <div className="versions-container">
82
+ {versions?.map((item) => (
83
+ <VersionItem
84
+ key={item.version}
85
+ version={item.version}
86
+ articleStatus={item.article_status}
87
+ currentVersion={item.version === currentVersion}
88
+ productOwner={companyName}
89
+ setVersion={setVersion}
90
+ timestamp={item.timestamp}
91
+ />
92
+ ))}
93
+ </div>
94
+ {showCreateVersion && (
95
+ <CreateVersion
96
+ articleId={articleId}
97
+ version={currentVersion}
98
+ versionsList={versions}
99
+ setShowCreateVersion={setShowCreateVersion}
100
+ realoadVersion={() => setReload(!reload)}
101
+ jwt={jwt}
102
+ />
103
+ )}
104
+ </Container>
105
+ );
106
+ };
@@ -21,54 +21,38 @@ ProviderProductEditionDefault.args = {
21
21
  category: 287,
22
22
  version: 1,
23
23
  productSelected: {
24
- category: "Accesorios Decorativos|Accesorios Decorativos",
25
- company_name: "Demo",
26
- company_id: 923,
27
- id_category: "2028",
28
- id_article: 118465,
29
- name: "VELA AROMA 18 OZ MAN/CAN",
30
- upc: "Modelo6",
31
- isVisible: 1,
32
- retailers: [
33
- {
34
- id: 68,
35
- name: "The Home Depot Onboarding",
36
- },
37
- ],
24
+ id_article: 39550,
25
+ upc: 43654697,
26
+ name: "Campana de Cocina",
27
+ timestamp: "2023-08-04T22:23:40.000Z",
28
+ categoryName:
29
+ "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
30
+ id_category: 287,
38
31
  version: 1,
39
32
  retailersAvailable: [
40
- {
41
- id: 68,
42
- name: "The Home Depot Onboarding",
43
- },
33
+ { name: "The Home Depot Golden", id: 58 },
34
+ { name: "The Home Depot Onboarding", id: 68 },
44
35
  ],
36
+ percentage: "89",
45
37
  },
46
38
  productToEdit: {
47
- idCategory: "2028",
48
- ArticleId: 118465,
39
+ idCategory: 287,
40
+ ArticleId: 39550,
49
41
  product: [
50
42
  {
51
- category: "Accesorios Decorativos|Accesorios Decorativos",
52
- company_name: "Demo",
53
- company_id: 923,
54
- id_category: "2028",
55
- id_article: 118465,
56
- name: "VELA AROMA 18 OZ MAN/CAN",
57
- upc: "Modelo6",
58
- isVisible: 1,
59
- retailers: [
60
- {
61
- id: 68,
62
- name: "The Home Depot Onboarding",
63
- },
64
- ],
43
+ id_article: 39550,
44
+ upc: 43654697,
45
+ name: "Campana de Cocina",
46
+ timestamp: "2023-08-04T22:23:40.000Z",
47
+ categoryName:
48
+ "Ferretería|Ferretería General|Tornillos, Tuercas y Arandelas",
49
+ id_category: 287,
65
50
  version: 1,
66
51
  retailersAvailable: [
67
- {
68
- id: 68,
69
- name: "The Home Depot Onboarding",
70
- },
52
+ { name: "The Home Depot Golden", id: 58, percentage: 100 },
53
+ { name: "The Home Depot Onboarding", id: 68, percentage: 78 },
71
54
  ],
55
+ percentage: "89",
72
56
  },
73
57
  ],
74
58
  },
@@ -115,7 +99,7 @@ ProviderProductEditionDefault.args = {
115
99
  products_limit: "5000",
116
100
  type: "Enterprise",
117
101
  },
118
- src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1701729602068",
102
+ src: "https://content-management-profile.s3.amazonaws.com/id-191/191.png?1697171804447",
119
103
  },
120
104
  company: {
121
105
  id_company: 923,
@@ -135,6 +119,9 @@ ProviderProductEditionDefault.args = {
135
119
  id: 68,
136
120
  name: "The Home Depot Onboarding",
137
121
  country: "México",
122
+ id_region: 1,
123
+ active: 1,
124
+ flow: 1,
138
125
  },
139
126
  ],
140
127
  retailers: [
@@ -142,6 +129,9 @@ ProviderProductEditionDefault.args = {
142
129
  id: 68,
143
130
  name: "The Home Depot Onboarding",
144
131
  country: "México",
132
+ id_region: 1,
133
+ active: 1,
134
+ flow: 1,
145
135
  },
146
136
  ],
147
137
  },
@@ -82,26 +82,19 @@ const reducerImages = (state, action) => {
82
82
  );
83
83
  return { ...state, values };
84
84
  case "orderImages": {
85
- let {
86
- inputsByRetailer = {},
87
- valuesInitial,
88
- inputsInitial,
89
- inputs,
90
- } = state;
85
+ let { inputsByRetailer, valuesInitial, inputsInitial, inputs } = state;
91
86
  try {
92
87
  const orderedImages = [];
93
88
  const imageIdArray = [];
94
- if (action?.retailerId && !inputsByRetailer[action.retailerId]) {
89
+ if (action?.retailerId && !inputsByRetailer[action.retailerId])
95
90
  inputsByRetailer[action.retailerId] = [];
96
- }
97
- if (action.retailerId) {
91
+ action.retailerId &&
98
92
  inputsByRetailer[action.retailerId]?.filter((input) => {
99
93
  imageIdArray.push(input.id_image);
100
94
  valuesInitial.forEach((value) => {
101
95
  if (value.image_id === input.id_image) orderedImages.push(value);
102
96
  });
103
97
  });
104
- }
105
98
 
106
99
  inputs = inputsInitial?.filter((input) =>
107
100
  imageIdArray.includes(input.id)
@@ -109,7 +102,7 @@ const reducerImages = (state, action) => {
109
102
 
110
103
  values = orderedImages.length > 0 ? orderedImages : [];
111
104
  } catch (error) {
112
- console.log(action.action, error);
105
+ console.log(error);
113
106
  }
114
107
  return { ...state, values, inputs };
115
108
  }
@@ -492,20 +485,7 @@ export const ProviderProductEdition = ({
492
485
 
493
486
  setImages({ action: "init", init: services[2] });
494
487
  if (services[2]?.values?.length > 0) setActiveImage(0);
495
- const data = [
496
- {
497
- id_article: product.id_article,
498
- id_category: product.id_category,
499
- version: product.version,
500
- id_retailer_array: (
501
- product.retailersAvailable ?? product.retailers
502
- ).map(({ id }) => id),
503
- },
504
- ];
505
- const headers = { Authorization: token };
506
- getPercentage({ data, headers }).then((res) => {
507
- setPercentages(res[0]);
508
- });
488
+ getPercentage({ data: [product] }).then((res) => setPercentages(res[0]));
509
489
  setLoading(false);
510
490
  };
511
491
 
@@ -565,14 +545,12 @@ export const ProviderProductEdition = ({
565
545
  };
566
546
 
567
547
  const getCart = async () => {
568
- const res = await axios.get(`${process.env.REACT_APP_CART}/general/`, {
548
+ const res = await axios.get(process.env.REACT_APP_CART, {
569
549
  headers: {
570
550
  Authorization: token,
571
551
  },
572
552
  });
573
- const arr = Object.values(JSON.parse(res.data.body).data)
574
- ?.map((e) => e.article_id)
575
- .filter(Boolean);
553
+ const arr = JSON.parse(res.data.body).data.map((e) => e.article_id);
576
554
  setInCart(arr.some((e) => e.articleId === product.id_article));
577
555
  };
578
556
 
@@ -670,7 +648,7 @@ export const ProviderProductEdition = ({
670
648
  value: e?.id,
671
649
  name: e?.name,
672
650
  required: e?.required,
673
- active: images?.values?.some((value) => value?.image_id === e?.id),
651
+ active: images?.values.some((value) => value?.image_id === e?.id),
674
652
  }));
675
653
  setSocketType(imageInputs);
676
654
  }, [images]);
@@ -714,7 +692,7 @@ export const ProviderProductEdition = ({
714
692
  attributeId,
715
693
  value: valueOfAtribute,
716
694
  boxId,
717
- });
695
+ })
718
696
  });
719
697
  });
720
698
 
@@ -722,8 +700,8 @@ export const ProviderProductEdition = ({
722
700
  articleId: product?.id_article,
723
701
  articleData: updatedDatasheets,
724
702
  ...(parseBoxData.length > 0 && { boxData: parseBoxData }),
725
- };
726
-
703
+ };
704
+
727
705
  if (product?.orderId) dataObject["orderId"] = product?.orderId;
728
706
  try {
729
707
  const res = await axios.put(
@@ -742,7 +720,8 @@ export const ProviderProductEdition = ({
742
720
  }
743
721
  } catch (error) {
744
722
  console.log(error);
745
- }
723
+ }
724
+ console.log(dataObject)
746
725
  };
747
726
 
748
727
  const updateImages = useCallback(async () => {
@@ -1175,6 +1154,13 @@ export const ProviderProductEdition = ({
1175
1154
  }
1176
1155
  };
1177
1156
 
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1178
1164
  const evaluationToRetailer = async (result) => {
1179
1165
  const data = {
1180
1166
  articleId: product.id_article,
@@ -1254,6 +1240,7 @@ export const ProviderProductEdition = ({
1254
1240
  },
1255
1241
  ];
1256
1242
  const sendToEvaluation = (result) => {
1243
+ console.log({ result });
1257
1244
  if (result === "A") {
1258
1245
  if (
1259
1246
  origin[activeTab] === "RequestWithoutContentoh" &&
@@ -16,60 +16,64 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIxMGZiNTE4Mi1jMGI5LTQyZGUtYTAyZC1lOTJlZWI2NWFlN2QiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTcwMTkwMjA4NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTcwMTkwNTY4NywiaWF0IjoxNzAxOTAyMDg3LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.JpoKZHuzPZG2ttaT7Oz3CAPR7xZU19txSDyjGHIwya2zV9uOHxauS0-orNRry8lfpZHQt_ISF2W-XSARUvCG1SqTXi41-o53DsWfZhqe9dQk6DGDnvFzXFsaEbaxAPjTfYc491sHCpOjf4W98quBuzDZCRtdCsr9u3A0AnX8Lh1Jquvn83nrHN2ZeefpLyKc-xGGp50Oy6EnJgSK4PcAAV631nwYV9DfVaLb3SIWDrJIIuBjFjBBCXBcnGJBieErlnF-4gumHzsro_QqF-s7aq_3EJChAhfslFvczNSyDc-LXJVkpDuZW3TaYKlHwhoFxz1aMuYRFQ8xy5Pz8FDNKQ",
19
+ "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI5YTIxMzEyOC02NDgyLTRjMTYtYTRiNi02ZTY0ZjIyNWIxYmQiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjlhMjEzMTI4LTY0ODItNGMxNi1hNGI2LTZlNjRmMjI1YjFiZCIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI5OGE0NzYxMy04ZGIyLTRlZjUtYjA0Mi01ZDU3MWRkZjIwMWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4Mzg3NTIyNiwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4Mzg3ODgyNiwiaWF0IjoxNjgzODc1MjI2LCJlbWFpbCI6ImlzbWFlbDk3bG9wZXpAZ21haWwuY29tIn0.EtgmT_THMx-Zy_zB5yZK4gz6TXNTVVJEKFt5X0JK2UkGVrp_q_92YCEuejS4n976fyTez0jkwOee6IkVHLV71uZWRBDFt-3Yw4ZxfsZYPNJWhoHXGNxhMU8MCkSntfu597esBTk-VsUpstT5R7L-WJfN8viE7R-qVo-42RlPTG0TFrWA9q0oTcqjv8vbxLpOBUjiEpjmqRhg4blJZwgkGNta6MOlw1vfmisOVbo9wMvqwnCZ9xx9KMKoH9U4uNObK_JomjbvPmTmkcUXsE-wGSD7XcoSwtuhBngLC7-jiu1u8MvL_ff5Z0Qp70sSpLdUglcSS8d1Xf7j_fcZuJ5jKA",
20
20
  productSelected: {
21
- orderId: 15190,
22
- status: "RA",
23
- datasheet_status: "NS",
24
- prio: "none",
25
- version: 3,
26
- description_status: "NS",
27
- images_status: "RA",
28
- brand: null,
29
- retailerOrder: 0,
30
- missing: {
31
- datasheet: null,
32
- descriptions: null,
33
- images: null,
34
- },
35
21
  services: {
36
- datasheets: 0,
37
- descriptions: 0,
22
+ datasheets: 1,
23
+ descriptions: 1,
38
24
  images: 1,
39
25
  },
26
+ orderId: 15275,
27
+ status: "AC",
28
+ datasheet_status: "AC",
29
+ prio: "none",
30
+ version: 3,
31
+ description_status: "AC",
32
+ images_status: "AC",
33
+ statusByRetailer: {
34
+ 34: {
35
+ datasheet: "AC",
36
+ description: "AC",
37
+ images: "AC",
38
+ },
39
+ },
40
40
  article: {
41
- category:
42
- "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
41
+ id_article: 39485,
42
+ id_category: "11",
43
+ name: "Mix de nueces",
44
+ upc: "7543453453",
45
+ timestamp: "2023-07-14T21:02:54.000Z",
46
+ id_user: 28,
47
+ status: "NULL",
48
+ active: 1,
49
+ company_id: 1,
43
50
  company_name: "GRUPO BRAHMA",
44
51
  country: "México",
45
- id_category: "4004",
46
- id_datasheet_especialist: null,
47
- id_datasheet_facilitator: null,
48
- id_description_especialist: null,
49
- id_description_facilitator: null,
52
+ id_order: 15275,
53
+ id_datasheet_especialist: 54,
54
+ id_datasheet_facilitator: 52,
55
+ id_description_especialist: 54,
56
+ id_description_facilitator: 52,
50
57
  id_images_especialist: 55,
51
58
  id_images_facilitator: 53,
52
- id_order: 15190,
53
- id_article: 39364,
54
59
  id_auditor: 37,
55
- name: "test 2 img ba",
56
- timestamp: "2023-05-05T02:56:16.000Z",
57
- upc: "4353242",
60
+ id_recepcionist: null,
61
+ category: "Abarrotes|Abarrotes Secos|Frutos Secos",
62
+ missingAttributes: 0,
63
+ missingDescriptions: 0,
64
+ missingImages: 0,
58
65
  },
59
66
  retailers: [
60
67
  {
61
- id: 70,
62
- name: "Bodega Aurrera",
68
+ id: 34,
69
+ name: "San Pablo",
63
70
  },
64
71
  ],
65
- statusByRetailer: {
66
- 70: {
67
- images: "RA/AC",
68
- },
69
- },
72
+ country: "México",
73
+ upc: "7543453453",
70
74
  },
71
75
  location: {
72
- product: { articleId: 39364, versionId: 3 },
76
+ product: { articleId: 354, versionId: 3 },
73
77
  state: {
74
78
  withChat: true,
75
79
  chatType: "product_status",
@@ -83,7 +87,7 @@ RetailerProductEditionDefault.args = {
83
87
  position: "Auditor",
84
88
  telephone: "",
85
89
  country: "México",
86
- id_company: 254,
90
+ id_company: 2,
87
91
  id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
88
92
  birth_Date: null,
89
93
  about_me: "",
@@ -97,16 +101,16 @@ RetailerProductEditionDefault.args = {
97
101
  email_notify: 1,
98
102
  is_user_tech: null,
99
103
  membership: {
100
- id: 137,
101
- start_date: "2023-10-04T15:46:14.000Z",
102
- end_date: "2024-10-04T08:46:09.000Z",
103
- planID: 8,
104
- plan: "prod_KtlhECVSFG2iro",
105
- name: "Plan Pro",
106
- user_limit: "50",
107
- products_limit: "5000",
108
- type: "Enterprise",
104
+ id: 2,
105
+ start_date: "2021-11-05T02:35:12.000Z",
106
+ end_date: "2022-11-05T02:34:49.000Z",
107
+ planID: 1,
108
+ plan: "prod_KtkvuFFLpOdP6e",
109
+ name: "Plan Free",
110
+ user_limit: "1",
111
+ products_limit: "3",
112
+ type: "PyMES",
109
113
  },
110
- src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1701902088068",
114
+ src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1692750648813",
111
115
  },
112
116
  };