contentoh-components-library 21.1.46 → 21.1.49
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/components/atoms/GeneralInput/index.js +0 -1
- package/dist/components/atoms/StatusTag/index.js +2 -17
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +4 -1
- package/dist/components/molecules/RetailerSelector/index.js +34 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +3 -2
- package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
- package/dist/components/organisms/FullTabsMenu/index.js +4 -2
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +119 -87
- package/dist/components/pages/ProviderProductEdition/index.js +380 -328
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -33
- package/dist/components/pages/RetailerProductEdition/index.js +211 -197
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +10 -9
- package/package.json +2 -2
- package/src/components/atoms/GeneralInput/index.js +0 -1
- package/src/components/atoms/StatusTag/index.js +2 -12
- package/src/components/atoms/StatusTag/styles.js +11 -11
- package/src/components/molecules/HeaderTop/index.js +6 -1
- package/src/components/molecules/RetailerSelector/index.js +16 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +3 -2
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/FullTabsMenu/index.js +2 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +116 -92
- package/src/components/pages/ProviderProductEdition/index.js +218 -208
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -31
- package/src/components/pages/RetailerProductEdition/index.js +141 -165
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +10 -9
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width:
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n flex: 1;\n overflow: auto;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 70%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n height: 100%;\n overflow: auto;\n }\n\n .image-services {\n aside {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n padding: 20px;\n }\n }\n\n .commentary-box {\n display: flex;\n justify-content: space-between;\n align-items: flex-end;\n padding: 10px;\n padding-left: 0;\n\n .commentary {\n display: flex;\n align-items: flex-end;\n\n .input-container {\n width: 500px;\n\n .quill {\n height: 100px;\n }\n\n & + * {\n margin-left: 5px;\n }\n }\n\n .buttons-box {\n display: flex;\n width: 210px;\n flex-wrap: wrap;\n\n .general-transparent-button {\n & + * {\n margin-top: 5px;\n }\n }\n\n .general-transparent-button,\n .general-green-button,\n .general-button-disabled {\n width: fit-content;\n min-width: 201px;\n height: 40px;\n }\n }\n }\n }\n\n .feedback-box {\n display: flex;\n }\n }\n }\n .container {\n width: 100%;\n height: 100%;\n .dropzone {\n height: 100%;\n width: 100%;\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var headerTop = _ref.headerTop;
|
|
18
18
|
return headerTop;
|
|
19
19
|
});
|
|
@@ -280,20 +280,21 @@ var getNewStatus = function getNewStatus(statusArray) {
|
|
|
280
280
|
statusArray.forEach(function (element) {
|
|
281
281
|
return lookupString += element + "/";
|
|
282
282
|
});
|
|
283
|
-
if (lookupString.includes("
|
|
283
|
+
if (lookupString.includes("RC")) return "RC";
|
|
284
284
|
if (lookupString.includes("RA")) return "RA";
|
|
285
285
|
if (lookupString.includes("RP")) return "RP";
|
|
286
|
-
if (lookupString.includes("
|
|
287
|
-
if (lookupString.includes("UNASSIGNED")) return "
|
|
288
|
-
if (lookupString.includes("
|
|
289
|
-
if (lookupString.includes("
|
|
290
|
-
if (lookupString.includes("
|
|
286
|
+
if (lookupString.includes("RCA")) return "RCA";
|
|
287
|
+
if (lookupString.includes("UNASSIGNED")) return "CA";
|
|
288
|
+
if (lookupString.includes("CA")) return "CA";
|
|
289
|
+
if (lookupString.includes("IE")) return "IE";
|
|
290
|
+
if (lookupString.includes("AC")) return "AC";
|
|
291
291
|
if (lookupString.includes("AA")) return "AA";
|
|
292
292
|
if (lookupString.includes("AP")) return "AP";
|
|
293
|
-
if (lookupString.includes("
|
|
294
|
-
if (lookupString.includes("
|
|
293
|
+
if (lookupString.includes("ACA")) return "ACA";
|
|
294
|
+
if (lookupString.includes("R")) return "R";
|
|
295
295
|
if (lookupString.includes("NA")) return "NA";
|
|
296
|
-
|
|
296
|
+
console.log("Status not found");
|
|
297
|
+
return "NA";
|
|
297
298
|
};
|
|
298
299
|
|
|
299
300
|
exports.getNewStatus = getNewStatus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.1.
|
|
3
|
+
"version": "21.1.49",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@aws-amplify/auth": "^4.5.3",
|
|
6
6
|
"@aws-amplify/datastore": "^3.11.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"start": "start-storybook -p 6006",
|
|
37
|
-
"build": "cross-env BABEL_ENV=production babel src -d dist",
|
|
37
|
+
"build": "cross-env BABEL_ENV=production babel src -d dist && cp -a src/assets dist/ && cp -a src/global-files/*.css dist/global-files",
|
|
38
38
|
"chromatic": "npx chromatic --project-token=d7bb0c8ba831",
|
|
39
39
|
"release": "auto shipit --base-branch=main"
|
|
40
40
|
},
|
|
@@ -42,7 +42,6 @@ export const GeneralInput = ({
|
|
|
42
42
|
if (optionList?.length > 0) {
|
|
43
43
|
let index = evt.target.selectedIndex;
|
|
44
44
|
let valueSelected = evt.target.value;
|
|
45
|
-
console.log(valueSelected);
|
|
46
45
|
generalValue = valueSelected;
|
|
47
46
|
setTextValue({ value: generalValue });
|
|
48
47
|
} else {
|
|
@@ -5,20 +5,10 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
5
5
|
switch (status) {
|
|
6
6
|
case "COMPLETED":
|
|
7
7
|
return "C";
|
|
8
|
-
case "RECEPTION":
|
|
9
|
-
return "Pr";
|
|
10
8
|
case "NULL":
|
|
11
|
-
return "
|
|
12
|
-
case "RECEIVED":
|
|
13
|
-
return "Rc";
|
|
14
|
-
case "IN_PROGRESS":
|
|
15
|
-
return "P";
|
|
16
|
-
case "ASSIGNED":
|
|
17
|
-
return "As";
|
|
9
|
+
return "--";
|
|
18
10
|
case "APPROVED":
|
|
19
11
|
return "Ap";
|
|
20
|
-
case "VALIDATING":
|
|
21
|
-
return "V";
|
|
22
12
|
case "PAID_OUT":
|
|
23
13
|
return "Po";
|
|
24
14
|
default:
|
|
@@ -27,7 +17,7 @@ export const StatusTag = ({ statusType, ovalForm }) => {
|
|
|
27
17
|
};
|
|
28
18
|
return (
|
|
29
19
|
<Container
|
|
30
|
-
className={`status-${getShortStatus(statusType)} ${
|
|
20
|
+
className={`status-${getShortStatus(statusType?.replace(/\/.*/, ""))} ${
|
|
31
21
|
ovalForm && "oval-form"
|
|
32
22
|
}`}
|
|
33
23
|
>
|
|
@@ -16,30 +16,27 @@ export const Container = styled.div`
|
|
|
16
16
|
line-height: 20px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
&.status-
|
|
20
|
-
&.status-
|
|
21
|
-
&.status-
|
|
22
|
-
&.status-QF {
|
|
19
|
+
&.status-AS,
|
|
20
|
+
&.status-CA,
|
|
21
|
+
&.status-IE {
|
|
23
22
|
background-color: ${GlobalColors.in_progress};
|
|
24
23
|
}
|
|
25
24
|
|
|
26
|
-
&.status-
|
|
27
|
-
&.status-Rr,
|
|
28
|
-
&.status-Rc {
|
|
25
|
+
&.status-R {
|
|
29
26
|
background-color: ${GlobalColors.reception};
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
&.status-AA,
|
|
33
30
|
&.status-AP,
|
|
34
|
-
&.status-
|
|
35
|
-
&.status-
|
|
31
|
+
&.status-ACA,
|
|
32
|
+
&.status-AC {
|
|
36
33
|
background-color: ${GlobalColors.finished};
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
&.status-RA,
|
|
40
|
-
&.status-
|
|
37
|
+
&.status-RC,
|
|
41
38
|
&.status-RP,
|
|
42
|
-
&.status-
|
|
39
|
+
&.status-RCA {
|
|
43
40
|
background-color: ${GlobalColors.rejected_status};
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -73,4 +70,7 @@ export const Container = styled.div`
|
|
|
73
70
|
&.oval-form {
|
|
74
71
|
border-radius: 10px;
|
|
75
72
|
}
|
|
73
|
+
&.delThis {
|
|
74
|
+
color: red;
|
|
75
|
+
}
|
|
76
76
|
`;
|
|
@@ -13,7 +13,12 @@ export const HeaderTop = ({ setHeaderTop }) => {
|
|
|
13
13
|
return (
|
|
14
14
|
<Container ref={headerTop}>
|
|
15
15
|
<ScreenHeader text="Edición de producto" />
|
|
16
|
-
<Button
|
|
16
|
+
<Button
|
|
17
|
+
buttonType="close-button"
|
|
18
|
+
onClick={() => {
|
|
19
|
+
window.location.href = `/products`;
|
|
20
|
+
}}
|
|
21
|
+
/>
|
|
17
22
|
</Container>
|
|
18
23
|
);
|
|
19
24
|
};
|
|
@@ -3,6 +3,7 @@ import { Avatar } from "../../atoms/Avatar";
|
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { AsignationOption } from "../../atoms/AsignationOption";
|
|
5
5
|
import { DropDownButton } from "../../atoms/DropDownButton";
|
|
6
|
+
import axios from "axios";
|
|
6
7
|
|
|
7
8
|
export const RetailerSelector = ({
|
|
8
9
|
retailers,
|
|
@@ -19,12 +20,27 @@ export const RetailerSelector = ({
|
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
|
|
23
|
+
const getRetailerImage = async () => {
|
|
24
|
+
console.log(
|
|
25
|
+
`https://content-management-images.s3.amazonaws.com/retailers/${activeRetailer.id}.png`
|
|
26
|
+
);
|
|
27
|
+
activeRetailer.image = `https://content-management-images.s3.amazonaws.com/retailers/${activeRetailer.id}.png`;
|
|
28
|
+
retailers.forEach(
|
|
29
|
+
(retailer) =>
|
|
30
|
+
(retailer.image = `https://content-management-images.s3.amazonaws.com/retailers/${retailer.id}.png`)
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
22
34
|
useEffect(() => {
|
|
23
35
|
if (retailersPanel) {
|
|
24
36
|
document.addEventListener("click", closeRetailersPanel, false);
|
|
25
37
|
}
|
|
26
38
|
}, [retailersPanel]);
|
|
27
39
|
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
getRetailerImage();
|
|
42
|
+
}, [activeRetailer]);
|
|
43
|
+
|
|
28
44
|
return (
|
|
29
45
|
<Container id="retailers-assignation">
|
|
30
46
|
<Avatar
|
|
@@ -25,6 +25,7 @@ export const StatusAsignationInfo = ({
|
|
|
25
25
|
id = "default-id",
|
|
26
26
|
onClickSave,
|
|
27
27
|
showSaveButton,
|
|
28
|
+
canAssign,
|
|
28
29
|
}) => {
|
|
29
30
|
const [showAsignationPanel, setShowAsignationPanel] = useState(false);
|
|
30
31
|
const [layout, setLayout] = useState(false);
|
|
@@ -70,7 +71,7 @@ export const StatusAsignationInfo = ({
|
|
|
70
71
|
slidefront={slidefront}
|
|
71
72
|
iconSize={"medium-image"}
|
|
72
73
|
slidePosition={"bottom-slide"}
|
|
73
|
-
|
|
74
|
+
/>
|
|
74
75
|
{status !== "-" && <StatusTag statusType={status} ovalForm={true} />}
|
|
75
76
|
{showSaveButton && (
|
|
76
77
|
<Button
|
|
@@ -123,7 +124,7 @@ export const StatusAsignationInfo = ({
|
|
|
123
124
|
fontFamily={"Avenir Next"}
|
|
124
125
|
headerType={"input-name-header"}
|
|
125
126
|
/>
|
|
126
|
-
{showAsignationPanel && (
|
|
127
|
+
{showAsignationPanel && canAssign && (
|
|
127
128
|
<div className="asignation-panel">
|
|
128
129
|
<div className="asignation-header">
|
|
129
130
|
<div className="asignation-status">
|
|
@@ -26,7 +26,7 @@ export const FullProductNameHeader = ({
|
|
|
26
26
|
const element = [];
|
|
27
27
|
servicesData.forEach((sd) => {
|
|
28
28
|
if (sd.id_retailer === rt.id) {
|
|
29
|
-
element.push(sd.status ? sd.status : "
|
|
29
|
+
element.push(sd.status ? sd.status : "R");
|
|
30
30
|
} else element.push("NA");
|
|
31
31
|
rt["services"] = element;
|
|
32
32
|
});
|
|
@@ -16,6 +16,7 @@ export const FullTabsMenu = ({
|
|
|
16
16
|
askToDeleteImages,
|
|
17
17
|
onClickSave,
|
|
18
18
|
showSaveButton,
|
|
19
|
+
canAssign,
|
|
19
20
|
}) => {
|
|
20
21
|
const [imagesSection, setImagesSection] = useState(false);
|
|
21
22
|
|
|
@@ -38,6 +39,7 @@ export const FullTabsMenu = ({
|
|
|
38
39
|
onClickSave={onClickSave}
|
|
39
40
|
askToDeleteImages={askToDeleteImages}
|
|
40
41
|
showSaveButton={showSaveButton}
|
|
42
|
+
canAssign={canAssign}
|
|
41
43
|
/>
|
|
42
44
|
</Container>
|
|
43
45
|
);
|
|
@@ -12,31 +12,51 @@ export const ProviderProductEditionDefault = Template.bind({});
|
|
|
12
12
|
ProviderProductEditionDefault.args = {
|
|
13
13
|
tabsSections: {
|
|
14
14
|
Descripción: true,
|
|
15
|
-
"Ficha técnica":
|
|
16
|
-
Imágenes:
|
|
15
|
+
"Ficha técnica": true,
|
|
16
|
+
Imágenes: true,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
20
|
-
articleId:
|
|
21
|
-
category:
|
|
22
|
-
version:
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI2M2NhNWQ3ZS1hZTllLTQ3MWYtYmMxOS04NzVmNjM0NzUzNDIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1Njk3MjQxOSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY5NzYwMTksImlhdCI6MTY1Njk3MjQxOSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.e9mij3RmJhlQgtHb2EaddPhLyOu5aQoM5A_H7sIPxHdRVy3r_eNsBB3G-oWt36051JCIs1Hr9ViCgBR_6dl4KHcIPi22xvzZoWzH13ZyKq7plG1I0Xa1b5Uw3G1sUdQTuytYLHoSu23I36Q2ItjETAkxd1-4U6dIEF-4IkGRDdMuTwy8-zkOjZn3AHw0hl0WvbbUZBbE7j0CBdZM-KXHlUIuO9bLaoOM_cKLZaMeNzxJEAdAOIRRdiS3BPSjSPMzqzzLSnFVd6gUtjVbAWTDMh29t44v9T4smGrT7GdbSQz8q8B8M1jsHoOIvDDQJjvJGkqu63B-d5_G2vf2u_LfcQ",
|
|
20
|
+
articleId: 55154,
|
|
21
|
+
category: 2568,
|
|
22
|
+
version: 3,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "AP",
|
|
28
|
-
images_status: "AP",
|
|
24
|
+
orderId: 96,
|
|
25
|
+
status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
29
27
|
prio: "none",
|
|
30
|
-
version:
|
|
28
|
+
version: 3,
|
|
29
|
+
description_status: "AA",
|
|
30
|
+
images_status: "AA",
|
|
31
31
|
brand: null,
|
|
32
|
+
retailerOrder: 0,
|
|
33
|
+
missing: {
|
|
34
|
+
datasheet: null,
|
|
35
|
+
descriptions: null,
|
|
36
|
+
images: null,
|
|
37
|
+
},
|
|
38
|
+
services: {
|
|
39
|
+
datasheets: 1,
|
|
40
|
+
descriptions: 1,
|
|
41
|
+
images: 1,
|
|
42
|
+
},
|
|
32
43
|
article: {
|
|
33
|
-
category: "
|
|
34
|
-
company_name: "
|
|
44
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
45
|
+
company_name: "COMPANY DEV",
|
|
35
46
|
country: "México",
|
|
36
|
-
id_category: "
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
47
|
+
id_category: "2568",
|
|
48
|
+
id_datasheet_especialist: 54,
|
|
49
|
+
id_datasheet_facilitator: 52,
|
|
50
|
+
id_description_especialist: 54,
|
|
51
|
+
id_description_facilitator: 52,
|
|
52
|
+
id_images_especialist: 55,
|
|
53
|
+
id_images_facilitator: 53,
|
|
54
|
+
id_order: 96,
|
|
55
|
+
id_article: 55154,
|
|
56
|
+
id_auditor: 37,
|
|
57
|
+
name: "Prueba 12312",
|
|
58
|
+
timestamp: "2022-07-04T22:17:43.000Z",
|
|
59
|
+
upc: "977812",
|
|
40
60
|
},
|
|
41
61
|
retailers: [
|
|
42
62
|
{
|
|
@@ -47,21 +67,17 @@ ProviderProductEditionDefault.args = {
|
|
|
47
67
|
id: 59,
|
|
48
68
|
name: "The Home Depot Platinum",
|
|
49
69
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
70
|
+
],
|
|
71
|
+
statusByRetailer: {
|
|
72
|
+
58: {
|
|
73
|
+
datasheet: "AA",
|
|
74
|
+
description: "AA",
|
|
75
|
+
images: "AA",
|
|
53
76
|
},
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
name: "Home Depot TAB",
|
|
77
|
+
59: {
|
|
78
|
+
images: "AA",
|
|
57
79
|
},
|
|
58
|
-
],
|
|
59
|
-
services: {
|
|
60
|
-
datasheets: 1,
|
|
61
|
-
descriptions: 1,
|
|
62
|
-
images: 1,
|
|
63
80
|
},
|
|
64
|
-
id_article: 55118,
|
|
65
81
|
retailersAvailable: [
|
|
66
82
|
{
|
|
67
83
|
id: 58,
|
|
@@ -71,36 +87,52 @@ ProviderProductEditionDefault.args = {
|
|
|
71
87
|
id: 59,
|
|
72
88
|
name: "The Home Depot Platinum",
|
|
73
89
|
},
|
|
74
|
-
{
|
|
75
|
-
id: 60,
|
|
76
|
-
name: "The Home Depot Resizing",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 61,
|
|
80
|
-
name: "Home Depot TAB",
|
|
81
|
-
},
|
|
82
90
|
],
|
|
91
|
+
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
92
|
+
upc: "977812",
|
|
93
|
+
id_article: 55154,
|
|
94
|
+
id_order: 96,
|
|
83
95
|
},
|
|
84
96
|
productToEdit: {
|
|
85
|
-
ArticleId:
|
|
86
|
-
idCategory: "
|
|
97
|
+
ArticleId: 55154,
|
|
98
|
+
idCategory: "2568",
|
|
87
99
|
product: {
|
|
88
|
-
orderId:
|
|
89
|
-
|
|
90
|
-
datasheet_status: "
|
|
91
|
-
description_status: "AP",
|
|
92
|
-
images_status: "AP",
|
|
100
|
+
orderId: 96,
|
|
101
|
+
status: "AA",
|
|
102
|
+
datasheet_status: "AA",
|
|
93
103
|
prio: "none",
|
|
94
|
-
version:
|
|
104
|
+
version: 3,
|
|
105
|
+
description_status: "AA",
|
|
106
|
+
images_status: "AA",
|
|
95
107
|
brand: null,
|
|
108
|
+
retailerOrder: 0,
|
|
109
|
+
missing: {
|
|
110
|
+
datasheet: null,
|
|
111
|
+
descriptions: null,
|
|
112
|
+
images: null,
|
|
113
|
+
},
|
|
114
|
+
services: {
|
|
115
|
+
datasheets: 1,
|
|
116
|
+
descriptions: 1,
|
|
117
|
+
images: 1,
|
|
118
|
+
},
|
|
96
119
|
article: {
|
|
97
|
-
category: "
|
|
98
|
-
company_name: "
|
|
120
|
+
category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
121
|
+
company_name: "COMPANY DEV",
|
|
99
122
|
country: "México",
|
|
100
|
-
id_category: "
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
123
|
+
id_category: "2568",
|
|
124
|
+
id_datasheet_especialist: 54,
|
|
125
|
+
id_datasheet_facilitator: 52,
|
|
126
|
+
id_description_especialist: 54,
|
|
127
|
+
id_description_facilitator: 52,
|
|
128
|
+
id_images_especialist: 55,
|
|
129
|
+
id_images_facilitator: 53,
|
|
130
|
+
id_order: 96,
|
|
131
|
+
id_article: 55154,
|
|
132
|
+
id_auditor: 37,
|
|
133
|
+
name: "Prueba 12312",
|
|
134
|
+
timestamp: "2022-07-04T22:17:43.000Z",
|
|
135
|
+
upc: "977812",
|
|
104
136
|
},
|
|
105
137
|
retailers: [
|
|
106
138
|
{
|
|
@@ -111,21 +143,17 @@ ProviderProductEditionDefault.args = {
|
|
|
111
143
|
id: 59,
|
|
112
144
|
name: "The Home Depot Platinum",
|
|
113
145
|
},
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
146
|
+
],
|
|
147
|
+
statusByRetailer: {
|
|
148
|
+
58: {
|
|
149
|
+
datasheet: "AA",
|
|
150
|
+
description: "AA",
|
|
151
|
+
images: "AA",
|
|
117
152
|
},
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
name: "Home Depot TAB",
|
|
153
|
+
59: {
|
|
154
|
+
images: "AA",
|
|
121
155
|
},
|
|
122
|
-
],
|
|
123
|
-
services: {
|
|
124
|
-
datasheets: 1,
|
|
125
|
-
descriptions: 1,
|
|
126
|
-
images: 1,
|
|
127
156
|
},
|
|
128
|
-
id_article: 55118,
|
|
129
157
|
retailersAvailable: [
|
|
130
158
|
{
|
|
131
159
|
id: 58,
|
|
@@ -135,52 +163,48 @@ ProviderProductEditionDefault.args = {
|
|
|
135
163
|
id: 59,
|
|
136
164
|
name: "The Home Depot Platinum",
|
|
137
165
|
},
|
|
138
|
-
{
|
|
139
|
-
id: 60,
|
|
140
|
-
name: "The Home Depot Resizing",
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: 61,
|
|
144
|
-
name: "Home Depot TAB",
|
|
145
|
-
},
|
|
146
166
|
],
|
|
167
|
+
categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
|
|
168
|
+
upc: "977812",
|
|
169
|
+
id_article: 55154,
|
|
170
|
+
id_order: 96,
|
|
147
171
|
},
|
|
148
172
|
},
|
|
149
173
|
location: {
|
|
150
|
-
product: { articleId:
|
|
174
|
+
product: { articleId: 55157, versionId: 3 },
|
|
151
175
|
state: { origin: "Contentoh" },
|
|
152
176
|
},
|
|
153
177
|
user: {
|
|
154
|
-
id_user:
|
|
155
|
-
name: "
|
|
156
|
-
last_name: "
|
|
157
|
-
email: "
|
|
158
|
-
position: "Admin",
|
|
178
|
+
id_user: 28,
|
|
179
|
+
name: "Proveedor",
|
|
180
|
+
last_name: "Colgate",
|
|
181
|
+
email: "ilopez@contentoh.com",
|
|
182
|
+
position: "Prueba Admin",
|
|
159
183
|
telephone: "+523111366336",
|
|
160
184
|
country: "México",
|
|
161
|
-
id_company:
|
|
162
|
-
id_cognito: "
|
|
185
|
+
id_company: 1,
|
|
186
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
163
187
|
birth_Date: null,
|
|
164
188
|
about_me: null,
|
|
165
189
|
zip_code: null,
|
|
166
190
|
address: null,
|
|
167
191
|
job: null,
|
|
168
|
-
id_stripe: "",
|
|
192
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
169
193
|
id_role: 0,
|
|
170
194
|
active: 1,
|
|
171
195
|
is_retailer: 0,
|
|
172
|
-
email_notify:
|
|
196
|
+
email_notify: 0,
|
|
173
197
|
membership: {
|
|
174
|
-
id:
|
|
175
|
-
start_date: "
|
|
176
|
-
end_date: "
|
|
177
|
-
planID:
|
|
178
|
-
plan: "
|
|
179
|
-
name: "Plan
|
|
180
|
-
user_limit: "
|
|
181
|
-
products_limit: "
|
|
198
|
+
id: 38,
|
|
199
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
200
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
201
|
+
planID: 8,
|
|
202
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
203
|
+
name: "Plan Pro",
|
|
204
|
+
user_limit: "20",
|
|
205
|
+
products_limit: "5000",
|
|
182
206
|
type: "Enterprise",
|
|
183
207
|
},
|
|
184
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
208
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656972421501",
|
|
185
209
|
},
|
|
186
|
-
};
|
|
210
|
+
};
|