contentoh-components-library 21.1.56 → 21.1.57
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 +17 -2
- 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 +32 -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 +3 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +115 -137
- package/dist/components/pages/ProviderProductEdition/index.js +333 -381
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
- package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +41 -86
- package/dist/components/pages/RetailerProductEdition/index.js +198 -210
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +9 -10
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/components/atoms/GeneralInput/index.js +0 -1
- package/src/components/atoms/StatusTag/index.js +12 -2
- 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 +15 -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 +118 -136
- package/src/components/pages/ProviderProductEdition/index.js +208 -220
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +38 -87
- package/src/components/pages/RetailerProductEdition/index.js +166 -140
- package/src/components/pages/RetailerProductEdition/styles.js +1 -1
- package/src/global-files/data.js +9 -10
- package/src/index.js +1 -0
- package/src/components/atoms/StatusTag/StatusTag.stories.js +0 -28
|
@@ -65,7 +65,6 @@ var GeneralInput = function GeneralInput(_ref) {
|
|
|
65
65
|
if ((optionList === null || optionList === void 0 ? void 0 : optionList.length) > 0) {
|
|
66
66
|
var index = evt.target.selectedIndex;
|
|
67
67
|
var valueSelected = evt.target.value;
|
|
68
|
-
console.log(valueSelected);
|
|
69
68
|
generalValue = valueSelected;
|
|
70
69
|
setTextValue({
|
|
71
70
|
value: generalValue
|
|
@@ -18,12 +18,27 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
18
18
|
case "COMPLETED":
|
|
19
19
|
return "C";
|
|
20
20
|
|
|
21
|
+
case "RECEPTION":
|
|
22
|
+
return "Pr";
|
|
23
|
+
|
|
21
24
|
case "NULL":
|
|
22
|
-
return "
|
|
25
|
+
return "-";
|
|
26
|
+
|
|
27
|
+
case "RECEIVED":
|
|
28
|
+
return "Rc";
|
|
29
|
+
|
|
30
|
+
case "IN_PROGRESS":
|
|
31
|
+
return "P";
|
|
32
|
+
|
|
33
|
+
case "ASSIGNED":
|
|
34
|
+
return "As";
|
|
23
35
|
|
|
24
36
|
case "APPROVED":
|
|
25
37
|
return "Ap";
|
|
26
38
|
|
|
39
|
+
case "VALIDATING":
|
|
40
|
+
return "V";
|
|
41
|
+
|
|
27
42
|
case "PAID_OUT":
|
|
28
43
|
return "Po";
|
|
29
44
|
|
|
@@ -33,7 +48,7 @@ var StatusTag = function StatusTag(_ref) {
|
|
|
33
48
|
};
|
|
34
49
|
|
|
35
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
36
|
-
className: "status-".concat(getShortStatus(statusType
|
|
51
|
+
className: "status-".concat(getShortStatus(statusType), " ").concat(ovalForm && "oval-form"),
|
|
37
52
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
38
53
|
children: getShortStatus(statusType)
|
|
39
54
|
})
|
|
@@ -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 width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-As,\n &.status-P,\n &.status-IN_PROGRESS,\n &.status-QF {\n background-color: ", ";\n }\n\n &.status-Pr,\n &.status-Rr,\n &.status-Rc {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-AF {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
|
|
19
19
|
|
|
20
20
|
exports.Container = Container;
|
|
@@ -26,7 +26,10 @@ var HeaderTop = function HeaderTop(_ref) {
|
|
|
26
26
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
|
|
27
27
|
text: "Edici\xF3n de producto"
|
|
28
28
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
|
|
29
|
-
buttonType: "close-button"
|
|
29
|
+
buttonType: "close-button",
|
|
30
|
+
onClick: function onClick() {
|
|
31
|
+
window.location.href = "/products";
|
|
32
|
+
}
|
|
30
33
|
})]
|
|
31
34
|
});
|
|
32
35
|
};
|
|
@@ -7,6 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.RetailerSelector = void 0;
|
|
9
9
|
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
10
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
15
|
|
|
12
16
|
var _styles = require("./styles");
|
|
@@ -39,11 +43,39 @@ var RetailerSelector = function RetailerSelector(_ref) {
|
|
|
39
43
|
}
|
|
40
44
|
};
|
|
41
45
|
|
|
46
|
+
var getRetailerImage = /*#__PURE__*/function () {
|
|
47
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
48
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
49
|
+
while (1) {
|
|
50
|
+
switch (_context.prev = _context.next) {
|
|
51
|
+
case 0:
|
|
52
|
+
console.log("https://content-management-images.s3.amazonaws.com/retailers/".concat(activeRetailer.id, ".png"));
|
|
53
|
+
activeRetailer.image = "https://content-management-images.s3.amazonaws.com/retailers/".concat(activeRetailer.id, ".png");
|
|
54
|
+
retailers.forEach(function (retailer) {
|
|
55
|
+
return retailer.image = "https://content-management-images.s3.amazonaws.com/retailers/".concat(retailer.id, ".png");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
case 3:
|
|
59
|
+
case "end":
|
|
60
|
+
return _context.stop();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}, _callee);
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
return function getRetailerImage() {
|
|
67
|
+
return _ref2.apply(this, arguments);
|
|
68
|
+
};
|
|
69
|
+
}();
|
|
70
|
+
|
|
42
71
|
(0, _react.useEffect)(function () {
|
|
43
72
|
if (retailersPanel) {
|
|
44
73
|
document.addEventListener("click", closeRetailersPanel, false);
|
|
45
74
|
}
|
|
46
75
|
}, [retailersPanel]);
|
|
76
|
+
(0, _react.useEffect)(function () {
|
|
77
|
+
getRetailerImage();
|
|
78
|
+
}, [activeRetailer]);
|
|
47
79
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
48
80
|
id: "retailers-assignation",
|
|
49
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
@@ -54,7 +54,8 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
54
54
|
_ref$id = _ref.id,
|
|
55
55
|
id = _ref$id === void 0 ? "default-id" : _ref$id,
|
|
56
56
|
onClickSave = _ref.onClickSave,
|
|
57
|
-
showSaveButton = _ref.showSaveButton
|
|
57
|
+
showSaveButton = _ref.showSaveButton,
|
|
58
|
+
canAssign = _ref.canAssign;
|
|
58
59
|
|
|
59
60
|
var _useState = (0, _react.useState)(false),
|
|
60
61
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -146,7 +147,7 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
|
|
|
146
147
|
color: "#969696",
|
|
147
148
|
fontFamily: "Avenir Next",
|
|
148
149
|
headerType: "input-name-header"
|
|
149
|
-
}), showAsignationPanel && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
150
|
+
}), showAsignationPanel && canAssign && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
150
151
|
className: "asignation-panel",
|
|
151
152
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
152
153
|
className: "asignation-header",
|
|
@@ -47,7 +47,7 @@ var FullProductNameHeader = function FullProductNameHeader(_ref) {
|
|
|
47
47
|
var element = [];
|
|
48
48
|
servicesData.forEach(function (sd) {
|
|
49
49
|
if (sd.id_retailer === rt.id) {
|
|
50
|
-
element.push(sd.status ? sd.status : "
|
|
50
|
+
element.push(sd.status ? sd.status : "RECEIVED");
|
|
51
51
|
} else element.push("NA");
|
|
52
52
|
|
|
53
53
|
rt["services"] = element;
|
|
@@ -32,7 +32,8 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
32
32
|
downloadImages = _ref.downloadImages,
|
|
33
33
|
askToDeleteImages = _ref.askToDeleteImages,
|
|
34
34
|
onClickSave = _ref.onClickSave,
|
|
35
|
-
showSaveButton = _ref.showSaveButton
|
|
35
|
+
showSaveButton = _ref.showSaveButton,
|
|
36
|
+
canAssign = _ref.canAssign;
|
|
36
37
|
|
|
37
38
|
var _useState = (0, _react.useState)(false),
|
|
38
39
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -45,6 +46,7 @@ var FullTabsMenu = function FullTabsMenu(_ref) {
|
|
|
45
46
|
setImagesSection: setImagesSection,
|
|
46
47
|
setActiveTab: setActiveTab
|
|
47
48
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusAsignationInfo, {
|
|
49
|
+
canAssign: canAssign,
|
|
48
50
|
status: status,
|
|
49
51
|
activeTab: activeTab,
|
|
50
52
|
setImageLayout: setImageLayout,
|
|
@@ -31,178 +31,156 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
35
|
-
articleId:
|
|
36
|
-
category:
|
|
37
|
-
version:
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJhODE2NGMwNi1hN2U5LTQ2OGItYTBiMS02MDIxNzMyNWY0ZTgiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NjExMzE0NiwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU2MTE2NzQ2LCJpYXQiOjE2NTYxMTMxNDYsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.kfMoKcxYDkpNZJibGdw50oOkRwPVl26YNAwwDoLEfQjOZB6WRCY95iHfU1maYcTTvA5KlT5ali8XZ-nLnxh60vZoLGTDOfCvEnwd1t94JtfE5CsWDr_jfH1U0AVidxihqKnkwvCezkHwU1DUFlbu2iBNo7MHQw4ydiK2sx4q0-QGltmE7W2JJ0sayRDuNchy2S6FQoyIWhsP3oaKTvJGDKCaJxwkFEKk-3antoMtfua9H8V4p2Kkqa_eDbFk8pLYGaYgImLlaia2orGgETkHZIWEMr4WJq1V_7qOg4lYq2BUUuMhWdmK6XUL_Jhmv05TUJ3Rp_Ti4_J2WE4zQqhbfQ",
|
|
35
|
+
articleId: 238,
|
|
36
|
+
category: 846,
|
|
37
|
+
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
article_status: "
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "
|
|
43
|
-
images_status: "
|
|
39
|
+
orderId: 55,
|
|
40
|
+
article_status: "AP",
|
|
41
|
+
datasheet_status: "AP",
|
|
42
|
+
description_status: "AP",
|
|
43
|
+
images_status: "AP",
|
|
44
44
|
prio: "none",
|
|
45
|
-
version:
|
|
45
|
+
version: 2,
|
|
46
46
|
brand: null,
|
|
47
47
|
article: {
|
|
48
48
|
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
49
49
|
company_name: "THD Proveedor",
|
|
50
50
|
country: "México",
|
|
51
|
-
id_category: "
|
|
52
|
-
id_article:
|
|
53
|
-
name: "
|
|
54
|
-
upc: "
|
|
51
|
+
id_category: "2143",
|
|
52
|
+
id_article: 55118,
|
|
53
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
54
|
+
upc: "145582"
|
|
55
55
|
},
|
|
56
56
|
retailers: [{
|
|
57
57
|
id: 58,
|
|
58
|
-
name: "The Home Depot Golden"
|
|
59
|
-
services: ["AA", "AA", "AA", "AA"]
|
|
58
|
+
name: "The Home Depot Golden"
|
|
60
59
|
}, {
|
|
61
60
|
id: 59,
|
|
62
|
-
name: "The Home Depot Platinum"
|
|
63
|
-
|
|
61
|
+
name: "The Home Depot Platinum"
|
|
62
|
+
}, {
|
|
63
|
+
id: 60,
|
|
64
|
+
name: "The Home Depot Resizing"
|
|
65
|
+
}, {
|
|
66
|
+
id: 61,
|
|
67
|
+
name: "Home Depot TAB"
|
|
64
68
|
}],
|
|
65
69
|
services: {
|
|
66
70
|
datasheets: 1,
|
|
67
71
|
descriptions: 1,
|
|
68
72
|
images: 1
|
|
69
73
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
id_article: 55118,
|
|
75
|
+
retailersAvailable: [{
|
|
76
|
+
id: 58,
|
|
77
|
+
name: "The Home Depot Golden"
|
|
78
|
+
}, {
|
|
79
|
+
id: 59,
|
|
80
|
+
name: "The Home Depot Platinum"
|
|
81
|
+
}, {
|
|
82
|
+
id: 60,
|
|
83
|
+
name: "The Home Depot Resizing"
|
|
84
|
+
}, {
|
|
85
|
+
id: 61,
|
|
86
|
+
name: "Home Depot TAB"
|
|
87
|
+
}]
|
|
88
|
+
},
|
|
89
|
+
productToEdit: {
|
|
90
|
+
ArticleId: 55118,
|
|
91
|
+
idCategory: "2143",
|
|
92
|
+
product: {
|
|
93
|
+
orderId: 55,
|
|
94
|
+
article_status: "AP",
|
|
95
|
+
datasheet_status: "AP",
|
|
96
|
+
description_status: "AP",
|
|
97
|
+
images_status: "AP",
|
|
98
|
+
prio: "none",
|
|
99
|
+
version: 2,
|
|
100
|
+
brand: null,
|
|
101
|
+
article: {
|
|
102
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
103
|
+
company_name: "THD Proveedor",
|
|
104
|
+
country: "México",
|
|
105
|
+
id_category: "2143",
|
|
106
|
+
id_article: 55118,
|
|
107
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
108
|
+
upc: "145582"
|
|
75
109
|
},
|
|
110
|
+
retailers: [{
|
|
111
|
+
id: 58,
|
|
112
|
+
name: "The Home Depot Golden"
|
|
113
|
+
}, {
|
|
114
|
+
id: 59,
|
|
115
|
+
name: "The Home Depot Platinum"
|
|
116
|
+
}, {
|
|
117
|
+
id: 60,
|
|
118
|
+
name: "The Home Depot Resizing"
|
|
119
|
+
}, {
|
|
120
|
+
id: 61,
|
|
121
|
+
name: "Home Depot TAB"
|
|
122
|
+
}],
|
|
76
123
|
services: {
|
|
77
124
|
datasheets: 1,
|
|
78
125
|
descriptions: 1,
|
|
79
126
|
images: 1
|
|
80
127
|
},
|
|
81
|
-
id_article:
|
|
128
|
+
id_article: 55118,
|
|
82
129
|
retailersAvailable: [{
|
|
83
130
|
id: 58,
|
|
84
|
-
name: "The Home Depot Golden"
|
|
85
|
-
percentage: 100
|
|
131
|
+
name: "The Home Depot Golden"
|
|
86
132
|
}, {
|
|
87
133
|
id: 59,
|
|
88
|
-
name: "The Home Depot Platinum"
|
|
89
|
-
percentage: 100
|
|
134
|
+
name: "The Home Depot Platinum"
|
|
90
135
|
}, {
|
|
91
136
|
id: 60,
|
|
92
137
|
name: "The Home Depot Resizing"
|
|
93
138
|
}, {
|
|
94
139
|
id: 61,
|
|
95
140
|
name: "Home Depot TAB"
|
|
96
|
-
}]
|
|
97
|
-
|
|
141
|
+
}]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
location: {
|
|
145
|
+
product: {
|
|
146
|
+
articleId: 109485,
|
|
147
|
+
versionId: 3
|
|
98
148
|
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
idCategory: "2143",
|
|
102
|
-
product: {
|
|
103
|
-
orderId: 96,
|
|
104
|
-
article_status: "AA",
|
|
105
|
-
datasheet_status: "AA",
|
|
106
|
-
description_status: "AA",
|
|
107
|
-
images_status: "AA",
|
|
108
|
-
prio: "none",
|
|
109
|
-
version: 3,
|
|
110
|
-
brand: null,
|
|
111
|
-
article: {
|
|
112
|
-
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
113
|
-
company_name: "THD Proveedor",
|
|
114
|
-
country: "México",
|
|
115
|
-
id_category: "2568",
|
|
116
|
-
id_article: 55154,
|
|
117
|
-
name: "Prueba 12312",
|
|
118
|
-
upc: "977812"
|
|
119
|
-
},
|
|
120
|
-
retailers: [{
|
|
121
|
-
id: 58,
|
|
122
|
-
name: "The Home Depot Golden",
|
|
123
|
-
services: ["AA", "AA", "AA", "NA"]
|
|
124
|
-
}, {
|
|
125
|
-
id: 59,
|
|
126
|
-
name: "The Home Depot Platinum",
|
|
127
|
-
services: ["NA", "NA", "NA", "AA"]
|
|
128
|
-
}],
|
|
129
|
-
services: {
|
|
130
|
-
datasheets: 1,
|
|
131
|
-
descriptions: 1,
|
|
132
|
-
images: 1
|
|
133
|
-
},
|
|
134
|
-
statusByRetailer: {
|
|
135
|
-
58: {
|
|
136
|
-
datasheet: "AA",
|
|
137
|
-
description: "AA",
|
|
138
|
-
images: "AA"
|
|
139
|
-
},
|
|
140
|
-
services: {
|
|
141
|
-
datasheets: 1,
|
|
142
|
-
descriptions: 1,
|
|
143
|
-
images: 1
|
|
144
|
-
},
|
|
145
|
-
id_article: 55154,
|
|
146
|
-
retailersAvailable: [{
|
|
147
|
-
id: 58,
|
|
148
|
-
name: "The Home Depot Golden",
|
|
149
|
-
percentage: 100
|
|
150
|
-
}, {
|
|
151
|
-
id: 59,
|
|
152
|
-
name: "The Home Depot Platinum",
|
|
153
|
-
percentage: 100
|
|
154
|
-
}, {
|
|
155
|
-
id: 60,
|
|
156
|
-
name: "The Home Depot Resizing"
|
|
157
|
-
}, {
|
|
158
|
-
id: 61,
|
|
159
|
-
name: "Home Depot TAB"
|
|
160
|
-
}],
|
|
161
|
-
status: "AA"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
location: {
|
|
165
|
-
product: {
|
|
166
|
-
articleId: 109485,
|
|
167
|
-
versionId: 3
|
|
168
|
-
},
|
|
169
|
-
state: {
|
|
170
|
-
origin: "Contentoh"
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
user: {
|
|
174
|
-
id_user: 59,
|
|
175
|
-
name: "The Home",
|
|
176
|
-
last_name: "Depot",
|
|
177
|
-
email: "cadena.ismael@allfreemail.net",
|
|
178
|
-
position: "Admin",
|
|
179
|
-
telephone: "+523111366336",
|
|
180
|
-
country: "México",
|
|
181
|
-
id_company: 7,
|
|
182
|
-
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
183
|
-
birth_Date: null,
|
|
184
|
-
about_me: null,
|
|
185
|
-
zip_code: null,
|
|
186
|
-
address: null,
|
|
187
|
-
job: null,
|
|
188
|
-
id_stripe: "",
|
|
189
|
-
id_role: 0,
|
|
190
|
-
active: 1,
|
|
191
|
-
is_retailer: 0,
|
|
192
|
-
email_notify: 1,
|
|
193
|
-
membership: {
|
|
194
|
-
id: 24,
|
|
195
|
-
start_date: "2021-11-23T03:35:50.000Z",
|
|
196
|
-
end_date: "2022-11-23T03:35:50.000Z",
|
|
197
|
-
planID: 9,
|
|
198
|
-
plan: "prod_KtlkzZVGq6bRTO",
|
|
199
|
-
name: "Plan Enterprise Full",
|
|
200
|
-
user_limit: "30",
|
|
201
|
-
products_limit: "10000",
|
|
202
|
-
type: "Enterprise"
|
|
203
|
-
},
|
|
204
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649"
|
|
205
|
-
}
|
|
149
|
+
state: {
|
|
150
|
+
origin: "Contentoh"
|
|
206
151
|
}
|
|
152
|
+
},
|
|
153
|
+
user: {
|
|
154
|
+
id_user: 59,
|
|
155
|
+
name: "The Home",
|
|
156
|
+
last_name: "Depot",
|
|
157
|
+
email: "cadena.ismael@allfreemail.net",
|
|
158
|
+
position: "Admin",
|
|
159
|
+
telephone: "+523111366336",
|
|
160
|
+
country: "México",
|
|
161
|
+
id_company: 7,
|
|
162
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
163
|
+
birth_Date: null,
|
|
164
|
+
about_me: null,
|
|
165
|
+
zip_code: null,
|
|
166
|
+
address: null,
|
|
167
|
+
job: null,
|
|
168
|
+
id_stripe: "",
|
|
169
|
+
id_role: 0,
|
|
170
|
+
active: 1,
|
|
171
|
+
is_retailer: 0,
|
|
172
|
+
email_notify: 1,
|
|
173
|
+
membership: {
|
|
174
|
+
id: 24,
|
|
175
|
+
start_date: "2021-11-23T03:35:50.000Z",
|
|
176
|
+
end_date: "2022-11-23T03:35:50.000Z",
|
|
177
|
+
planID: 9,
|
|
178
|
+
plan: "prod_KtlkzZVGq6bRTO",
|
|
179
|
+
name: "Plan Enterprise Full",
|
|
180
|
+
user_limit: "30",
|
|
181
|
+
products_limit: "10000",
|
|
182
|
+
type: "Enterprise"
|
|
183
|
+
},
|
|
184
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885"
|
|
207
185
|
}
|
|
208
186
|
};
|