contentoh-components-library 21.2.19 → 21.2.22
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/InputFormatter/index.js +3 -3
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/atoms/MenuCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -33
- package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +14 -14
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/molecules/ApproveRejetPanel/styles.js +18 -0
- package/dist/components/molecules/SignInLoginCreationApp/SignInLogin.stories.js +28 -0
- package/dist/components/molecules/SignInLoginCreationApp/index.js +270 -0
- package/dist/components/molecules/SignInLoginCreationApp/styles.js +20 -0
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +173 -108
- package/dist/components/pages/ProviderProductEdition/index.js +54 -41
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -193
- package/dist/components/pages/RetailerProductEdition/index.js +98 -45
- package/package.json +1 -1
- package/src/components/atoms/InputFormatter/index.js +8 -3
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +17 -30
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +34 -28
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +183 -117
- package/src/components/pages/ProviderProductEdition/index.js +15 -7
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +69 -489
- package/src/components/pages/RetailerProductEdition/index.js +64 -24
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.SignInLoginCreationAppDefault = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var _index = require("./index");
|
|
13
|
+
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
|
|
16
|
+
var _default = {
|
|
17
|
+
title: "Components/molecules/SignInLoginCreationApp",
|
|
18
|
+
component: _index.SignInLoginCreationApp
|
|
19
|
+
};
|
|
20
|
+
exports.default = _default;
|
|
21
|
+
|
|
22
|
+
var Template = function Template(args) {
|
|
23
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SignInLoginCreationApp, (0, _objectSpread2.default)({}, args));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var SignInLoginCreationAppDefault = Template.bind({});
|
|
27
|
+
exports.SignInLoginCreationAppDefault = SignInLoginCreationAppDefault;
|
|
28
|
+
SignInLoginCreationAppDefault.args = {};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.SignInLoginCreationApp = void 0;
|
|
9
|
+
|
|
10
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
|
+
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
13
|
+
|
|
14
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var _index = require("../../atoms/LogoImage/index");
|
|
19
|
+
|
|
20
|
+
var _index2 = require("../../atoms/ScreenHeader/index");
|
|
21
|
+
|
|
22
|
+
var _index3 = require("../../atoms/GeneralButton/index");
|
|
23
|
+
|
|
24
|
+
var _index4 = require("../../atoms/CheckBox/index");
|
|
25
|
+
|
|
26
|
+
var _TagAndInput = require("../TagAndInput");
|
|
27
|
+
|
|
28
|
+
var _variables = require("../../../global-files/variables");
|
|
29
|
+
|
|
30
|
+
var _react = require("react");
|
|
31
|
+
|
|
32
|
+
var _Loading = require("../../atoms/Loading");
|
|
33
|
+
|
|
34
|
+
var _reactRouterDom = require("react-router-dom");
|
|
35
|
+
|
|
36
|
+
var _axios = _interopRequireDefault(require("axios"));
|
|
37
|
+
|
|
38
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
|
+
|
|
40
|
+
var SignInLoginCreationApp = function SignInLoginCreationApp(props) {
|
|
41
|
+
var _useState = (0, _react.useState)(false),
|
|
42
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
43
|
+
emptyEmail = _useState2[0],
|
|
44
|
+
setEmptyEmail = _useState2[1];
|
|
45
|
+
|
|
46
|
+
var _useState3 = (0, _react.useState)(false),
|
|
47
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
48
|
+
invalidEmail = _useState4[0],
|
|
49
|
+
setInvalidEmail = _useState4[1];
|
|
50
|
+
|
|
51
|
+
var _useState5 = (0, _react.useState)(false),
|
|
52
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
53
|
+
emptyPassword = _useState6[0],
|
|
54
|
+
setEmptyPassword = _useState6[1];
|
|
55
|
+
|
|
56
|
+
var _useState7 = (0, _react.useState)(true),
|
|
57
|
+
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
58
|
+
showErrors = _useState8[0],
|
|
59
|
+
setShowErrors = _useState8[1];
|
|
60
|
+
|
|
61
|
+
var _useState9 = (0, _react.useState)(""),
|
|
62
|
+
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
63
|
+
signInError = _useState10[0],
|
|
64
|
+
setSignInError = _useState10[1];
|
|
65
|
+
|
|
66
|
+
var _useState11 = (0, _react.useState)(false),
|
|
67
|
+
_useState12 = (0, _slicedToArray2.default)(_useState11, 2),
|
|
68
|
+
loading = _useState12[0],
|
|
69
|
+
setLoading = _useState12[1];
|
|
70
|
+
|
|
71
|
+
var _useState13 = (0, _react.useState)(false),
|
|
72
|
+
_useState14 = (0, _slicedToArray2.default)(_useState13, 2),
|
|
73
|
+
upgradePlanRedirect = _useState14[0],
|
|
74
|
+
setUpgradePlanRedirect = _useState14[1];
|
|
75
|
+
|
|
76
|
+
var validate = /*#__PURE__*/function () {
|
|
77
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
78
|
+
var valid, email, password, session, userGroup, response, userGroupValue, user, company;
|
|
79
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
80
|
+
while (1) {
|
|
81
|
+
switch (_context.prev = _context.next) {
|
|
82
|
+
case 0:
|
|
83
|
+
e.preventDefault();
|
|
84
|
+
setSignInError("");
|
|
85
|
+
setShowErrors(true);
|
|
86
|
+
valid = true;
|
|
87
|
+
email = document.querySelector("#emailInput").value.trim();
|
|
88
|
+
password = document.querySelector("#passwordInput").value;
|
|
89
|
+
!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(email) ? setInvalidEmail(true) : setInvalidEmail(false);
|
|
90
|
+
|
|
91
|
+
if (email === "") {
|
|
92
|
+
valid = false;
|
|
93
|
+
setEmptyEmail(true);
|
|
94
|
+
} else {
|
|
95
|
+
setEmptyEmail(false);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (password === "") {
|
|
99
|
+
valid = false;
|
|
100
|
+
setEmptyPassword(true);
|
|
101
|
+
} else {
|
|
102
|
+
setEmptyPassword(false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (!valid) {
|
|
106
|
+
_context.next = 35;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
_context.prev = 10;
|
|
111
|
+
setLoading(true);
|
|
112
|
+
_context.next = 14;
|
|
113
|
+
return props.Auth.signIn(email, password);
|
|
114
|
+
|
|
115
|
+
case 14:
|
|
116
|
+
session = _context.sent;
|
|
117
|
+
|
|
118
|
+
if (!(session.challengeName === "NEW_PASSWORD_REQUIRED")) {
|
|
119
|
+
_context.next = 20;
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
props.setUser(session);
|
|
124
|
+
props.setPaso(8);
|
|
125
|
+
_context.next = 28;
|
|
126
|
+
break;
|
|
127
|
+
|
|
128
|
+
case 20:
|
|
129
|
+
userGroup = session.signInUserSession.accessToken.payload["cognito:groups"];
|
|
130
|
+
_context.next = 23;
|
|
131
|
+
return _axios.default.get(process.env.REACT_APP_USER_ENDPOINT, {
|
|
132
|
+
headers: {
|
|
133
|
+
Authorization: session.signInUserSession.idToken.jwtToken
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
case 23:
|
|
138
|
+
response = _context.sent;
|
|
139
|
+
console.log(userGroup);
|
|
140
|
+
console.log(userGroup[0]);
|
|
141
|
+
userGroupValue = typeof userGroup === "string" ? userGroup : userGroup[0];
|
|
142
|
+
|
|
143
|
+
if (userGroupValue === "colaboradores_contentoh") {
|
|
144
|
+
sessionStorage.setItem("auth", true);
|
|
145
|
+
sessionStorage.setItem("jwt", session.signInUserSession.idToken.jwtToken);
|
|
146
|
+
user = JSON.parse(response.data.body).data[0];
|
|
147
|
+
company = JSON.parse(response.data.body).data[1];
|
|
148
|
+
caches.keys().then(function (names) {
|
|
149
|
+
names.forEach(function (name) {
|
|
150
|
+
caches.delete(name);
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
user.src = "https://".concat(process.env.REACT_APP_IMAGES_PROFILE_BUCKET, ".s3.amazonaws.com/id-").concat(user.id_user, "/").concat(user.id_user, ".png?").concat(new Date().getTime());
|
|
154
|
+
sessionStorage.setItem("user", JSON.stringify(user));
|
|
155
|
+
sessionStorage.setItem("company", JSON.stringify(company));
|
|
156
|
+
setUpgradePlanRedirect(true);
|
|
157
|
+
} else {
|
|
158
|
+
setSignInError("NotAuthorizedException");
|
|
159
|
+
setLoading(false);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
case 28:
|
|
163
|
+
_context.next = 35;
|
|
164
|
+
break;
|
|
165
|
+
|
|
166
|
+
case 30:
|
|
167
|
+
_context.prev = 30;
|
|
168
|
+
_context.t0 = _context["catch"](10);
|
|
169
|
+
console.log(_context.t0);
|
|
170
|
+
setLoading(false);
|
|
171
|
+
|
|
172
|
+
if (_context.t0.code === "NotAuthorizedException") {
|
|
173
|
+
setSignInError("NotAuthorizedException");
|
|
174
|
+
} else if (_context.t0.code === "UserNotConfirmedException") {
|
|
175
|
+
sessionStorage.setItem("email", JSON.stringify(document.querySelector("#usernameInput").value));
|
|
176
|
+
props.setPaso(5);
|
|
177
|
+
} else {
|
|
178
|
+
setSignInError("Error");
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
case 35:
|
|
182
|
+
case "end":
|
|
183
|
+
return _context.stop();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}, _callee, null, [[10, 30]]);
|
|
187
|
+
}));
|
|
188
|
+
|
|
189
|
+
return function validate(_x) {
|
|
190
|
+
return _ref.apply(this, arguments);
|
|
191
|
+
};
|
|
192
|
+
}();
|
|
193
|
+
|
|
194
|
+
(0, _react.useEffect)(function () {
|
|
195
|
+
sessionStorage.getItem("resetPasswordProcess") && sessionStorage.removeItem("resetPasswordProcess");
|
|
196
|
+
}, []);
|
|
197
|
+
(0, _react.useEffect)(function () {
|
|
198
|
+
if (upgradePlanRedirect) setLoading(false);
|
|
199
|
+
}, [upgradePlanRedirect]);
|
|
200
|
+
return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
201
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
202
|
+
className: "home-login",
|
|
203
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
204
|
+
className: "main-container",
|
|
205
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.LogoImage, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
206
|
+
className: "credenciales",
|
|
207
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.ScreenHeader, {
|
|
208
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
209
|
+
color: _variables.GlobalColors.s5,
|
|
210
|
+
text: "Ingresa tus credenciales"
|
|
211
|
+
})
|
|
212
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
213
|
+
className: "user",
|
|
214
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
215
|
+
inputType: "text",
|
|
216
|
+
label: "Nombre de usuario",
|
|
217
|
+
inputPlaceHolder: "username@contentoh.com",
|
|
218
|
+
inputId: "emailInput"
|
|
219
|
+
})
|
|
220
|
+
}), showErrors && emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
221
|
+
children: "Ingrese su correo"
|
|
222
|
+
}), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
223
|
+
children: "Ingrese un correo v\xE1lido"
|
|
224
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
225
|
+
className: "password",
|
|
226
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
|
|
227
|
+
inputType: "password",
|
|
228
|
+
label: "Contraseña",
|
|
229
|
+
inputPlaceHolder: "Escribe tu contraseña",
|
|
230
|
+
inputId: "passwordInput"
|
|
231
|
+
})
|
|
232
|
+
}), showErrors && emptyPassword && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
233
|
+
children: "Ingrese su contrase\xF1a"
|
|
234
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
235
|
+
className: "select",
|
|
236
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.CheckBox, {
|
|
237
|
+
label: "Mantener sesión activada",
|
|
238
|
+
id: "chk-default",
|
|
239
|
+
className: "active-left"
|
|
240
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
241
|
+
onClick: function onClick() {
|
|
242
|
+
return props.setPaso(10);
|
|
243
|
+
},
|
|
244
|
+
className: "active-right",
|
|
245
|
+
children: "Olvide mi contrase\xF1a"
|
|
246
|
+
})]
|
|
247
|
+
}), showErrors && signInError === "NotAuthorizedException" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
248
|
+
children: "Correo o contrase\xF1a incorrectos"
|
|
249
|
+
}), showErrors && signInError === "Error" && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
250
|
+
children: "Ha habido un problema al iniciar sesi\xF3n"
|
|
251
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
252
|
+
className: "button-right",
|
|
253
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Button, {
|
|
254
|
+
buttonType: "general-default-button",
|
|
255
|
+
label: "Iniciar sesión",
|
|
256
|
+
onClick: function onClick(e) {
|
|
257
|
+
return validate(e);
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
})]
|
|
261
|
+
})
|
|
262
|
+
}), upgradePlanRedirect && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.Redirect, {
|
|
263
|
+
to: {
|
|
264
|
+
pathname: "/dashboard"
|
|
265
|
+
}
|
|
266
|
+
})]
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
exports.SignInLoginCreationApp = SignInLoginCreationApp;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Container = void 0;
|
|
9
|
+
|
|
10
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
+
|
|
14
|
+
var _variables = require("../../../global-files/variables");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: \"white\";\n display: flex;\n height: 100vh;\n width: 50%;\n justify-content: center;\n align-items: center;\n label {\n color: red;\n margin-top: 3px;\n margin-left: 15px;\n font-family: ", ";\n font-size: 11px;\n & + * {\n margin-top: 12px;\n }\n }\n\n &.home-login {\n .credenciales {\n & + * {\n margin-top: 30px;\n }\n }\n .user {\n & + * {\n margin-top: 20px;\n }\n }\n .password {\n & + * {\n margin-top: 20px;\n }\n }\n .select {\n display: flex;\n justify-content: space-between;\n .active-right {\n font-family: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n letter-spacing: -0.015em;\n color: ", ";\n cursor: pointer;\n }\n & + * {\n margin-top: 50px;\n }\n }\n .button-right {\n text-align: right;\n & + * {\n margin-top: 55px;\n }\n }\n .new-login {\n p {\n font-family: ", ";\n text-align: right;\n font-weight: 500;\n font-size: 13px;\n line-height: 24px;\n color: ", ";\n cursor: pointer;\n span {\n color: ", ";\n }\n }\n }\n }\n .main-container {\n max-width: 80%;\n max-height: 80%;\n }\n"])), _variables.FontFamily.Raleway_700, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.secondary_magenta);
|
|
19
|
+
|
|
20
|
+
exports.Container = Container;
|
|
@@ -31,96 +31,178 @@ ProviderProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": true,
|
|
32
32
|
Imágenes: true
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eeyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIwNTE0MWZiOS1lNmM1LTQ0YWUtYTA4OS01MzM4N2IzZmQ2OWMiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY2MjEwNjk3MiwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NjIxMTA1NzIsImlhdCI6MTY2MjEwNjk3MiwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.LtlrjlQ19EDcMR5iMoRyQpASYMQ62S9iqhyh0Nf7vTxkOK8FEynOmiQvxIvxWEjtzONHbSXc1mLweFdHOKecVsi6H2qobW-vxlmgBCxpcJ0svLqlsAyOTfN0Acwda2w4BMamfnrETEe6SFHNxIZV0bCKRrHC9dwXbpIhJ0g1-iN54wHxbZ1bCaPJ1KmJZwWtIYRUfUZrOOOYvaN1jvOk1t49uXLFsK1W5HjpdIVaRKampArVSw5GPR1d_BmhD-gb8SGXc3DlOdXNn_5x9pynKp3Yy4BbJlDLz3lGxJU93ZQRnJzQsfQXhYtvlTC0A4nAaF5rucoZedSC0sGeeEmtvw",
|
|
35
35
|
articleId: 238,
|
|
36
36
|
category: 846,
|
|
37
37
|
version: 2,
|
|
38
38
|
productSelected: {
|
|
39
|
-
orderId:
|
|
40
|
-
|
|
41
|
-
datasheet_status: "
|
|
42
|
-
description_status: "AP",
|
|
43
|
-
images_status: "ACA",
|
|
39
|
+
orderId: 125,
|
|
40
|
+
status: "AA",
|
|
41
|
+
datasheet_status: "AA",
|
|
44
42
|
prio: "none",
|
|
45
|
-
version:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
55
|
-
upc: "168462"
|
|
43
|
+
version: 3,
|
|
44
|
+
description_status: "AA",
|
|
45
|
+
images_status: "AA",
|
|
46
|
+
brand: "DESCRIPCION PRUEBA",
|
|
47
|
+
retailerOrder: 0,
|
|
48
|
+
missing: {
|
|
49
|
+
datasheet: null,
|
|
50
|
+
descriptions: null,
|
|
51
|
+
images: null
|
|
56
52
|
},
|
|
57
|
-
retailers: [{
|
|
58
|
-
id: 58,
|
|
59
|
-
name: "The Home Depot Golden"
|
|
60
|
-
}],
|
|
61
53
|
services: {
|
|
62
54
|
datasheets: 1,
|
|
63
55
|
descriptions: 1,
|
|
64
56
|
images: 1
|
|
65
57
|
},
|
|
58
|
+
article: {
|
|
59
|
+
category: "Salud y Belleza|Cosméticos y Accesorios|Cosméticos",
|
|
60
|
+
company_name: "COMPANY DEV",
|
|
61
|
+
country: "México",
|
|
62
|
+
id_category: "682",
|
|
63
|
+
id_datasheet_especialist: 54,
|
|
64
|
+
id_datasheet_facilitator: 52,
|
|
65
|
+
id_description_especialist: 55,
|
|
66
|
+
id_description_facilitator: 52,
|
|
67
|
+
id_images_especialist: 55,
|
|
68
|
+
id_images_facilitator: 53,
|
|
69
|
+
id_order: 125,
|
|
70
|
+
id_article: 76125,
|
|
71
|
+
id_auditor: 30,
|
|
72
|
+
name: "prueba 11",
|
|
73
|
+
timestamp: "2022-07-20T19:20:46.000Z",
|
|
74
|
+
upc: "35646655"
|
|
75
|
+
},
|
|
76
|
+
retailers: [{
|
|
77
|
+
id: 2,
|
|
78
|
+
name: "Walmart Mercancías Generales"
|
|
79
|
+
}, {
|
|
80
|
+
id: 3,
|
|
81
|
+
name: "Sam´s Club"
|
|
82
|
+
}, {
|
|
83
|
+
id: 5,
|
|
84
|
+
name: "Chedraui"
|
|
85
|
+
}],
|
|
66
86
|
statusByRetailer: {
|
|
67
|
-
|
|
68
|
-
datasheet: "
|
|
69
|
-
|
|
70
|
-
|
|
87
|
+
2: {
|
|
88
|
+
datasheet: "AA",
|
|
89
|
+
datasheetTranslations: "AA",
|
|
90
|
+
description: "AA",
|
|
91
|
+
images: "AA"
|
|
92
|
+
},
|
|
93
|
+
3: {
|
|
94
|
+
datasheet: "AA",
|
|
95
|
+
datasheetTranslations: "AA",
|
|
96
|
+
description: "AA",
|
|
97
|
+
images: "AA"
|
|
98
|
+
},
|
|
99
|
+
5: {
|
|
100
|
+
datasheet: "AA",
|
|
101
|
+
datasheetTranslations: "AA",
|
|
102
|
+
description: "AA",
|
|
103
|
+
images: "AA"
|
|
71
104
|
}
|
|
72
105
|
},
|
|
73
|
-
retailersWithService: ["58"],
|
|
74
|
-
id_article: 78773,
|
|
75
106
|
retailersAvailable: [{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
78
|
-
}
|
|
107
|
+
id: 2,
|
|
108
|
+
name: "Walmart Mercancías Generales"
|
|
109
|
+
}, {
|
|
110
|
+
id: 3,
|
|
111
|
+
name: "Sam´s Club"
|
|
112
|
+
}, {
|
|
113
|
+
id: 5,
|
|
114
|
+
name: "Chedraui"
|
|
115
|
+
}],
|
|
116
|
+
categoryName: "Salud y Belleza|Cosméticos y Accesorios|Cosméticos",
|
|
117
|
+
upc: "35646655",
|
|
118
|
+
id_article: 76125,
|
|
119
|
+
id_order: 125
|
|
79
120
|
},
|
|
80
121
|
productToEdit: {
|
|
81
|
-
ArticleId:
|
|
82
|
-
idCategory: "
|
|
122
|
+
ArticleId: 76125,
|
|
123
|
+
idCategory: "682",
|
|
83
124
|
product: {
|
|
84
|
-
orderId:
|
|
85
|
-
|
|
86
|
-
datasheet_status: "
|
|
87
|
-
description_status: "AP",
|
|
88
|
-
images_status: "ACA",
|
|
125
|
+
orderId: 125,
|
|
126
|
+
status: "AA",
|
|
127
|
+
datasheet_status: "AA",
|
|
89
128
|
prio: "none",
|
|
90
|
-
version:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
name: "RACK PARA ROPA DOBLE NEGRO",
|
|
100
|
-
upc: "168462"
|
|
129
|
+
version: 3,
|
|
130
|
+
description_status: "AA",
|
|
131
|
+
images_status: "AA",
|
|
132
|
+
brand: "DESCRIPCION PRUEBA",
|
|
133
|
+
retailerOrder: 0,
|
|
134
|
+
missing: {
|
|
135
|
+
datasheet: null,
|
|
136
|
+
descriptions: null,
|
|
137
|
+
images: null
|
|
101
138
|
},
|
|
102
|
-
retailers: [{
|
|
103
|
-
id: 58,
|
|
104
|
-
name: "The Home Depot Golden"
|
|
105
|
-
}],
|
|
106
139
|
services: {
|
|
107
140
|
datasheets: 1,
|
|
108
141
|
descriptions: 1,
|
|
109
142
|
images: 1
|
|
110
143
|
},
|
|
144
|
+
article: {
|
|
145
|
+
category: "Salud y Belleza|Cosméticos y Accesorios|Cosméticos",
|
|
146
|
+
company_name: "COMPANY DEV",
|
|
147
|
+
country: "México",
|
|
148
|
+
id_category: "682",
|
|
149
|
+
id_datasheet_especialist: 54,
|
|
150
|
+
id_datasheet_facilitator: 52,
|
|
151
|
+
id_description_especialist: 55,
|
|
152
|
+
id_description_facilitator: 52,
|
|
153
|
+
id_images_especialist: 55,
|
|
154
|
+
id_images_facilitator: 53,
|
|
155
|
+
id_order: 125,
|
|
156
|
+
id_article: 76125,
|
|
157
|
+
id_auditor: 30,
|
|
158
|
+
name: "prueba 11",
|
|
159
|
+
timestamp: "2022-07-20T19:20:46.000Z",
|
|
160
|
+
upc: "35646655"
|
|
161
|
+
},
|
|
162
|
+
retailers: [{
|
|
163
|
+
id: 2,
|
|
164
|
+
name: "Walmart Mercancías Generales"
|
|
165
|
+
}, {
|
|
166
|
+
id: 3,
|
|
167
|
+
name: "Sam´s Club"
|
|
168
|
+
}, {
|
|
169
|
+
id: 5,
|
|
170
|
+
name: "Chedraui"
|
|
171
|
+
}],
|
|
111
172
|
statusByRetailer: {
|
|
112
|
-
|
|
113
|
-
datasheet: "
|
|
114
|
-
|
|
115
|
-
|
|
173
|
+
2: {
|
|
174
|
+
datasheet: "AA",
|
|
175
|
+
datasheetTranslations: "AA",
|
|
176
|
+
description: "AA",
|
|
177
|
+
images: "AA"
|
|
178
|
+
},
|
|
179
|
+
3: {
|
|
180
|
+
datasheet: "AA",
|
|
181
|
+
datasheetTranslations: "AA",
|
|
182
|
+
description: "AA",
|
|
183
|
+
images: "AA"
|
|
184
|
+
},
|
|
185
|
+
5: {
|
|
186
|
+
datasheet: "AA",
|
|
187
|
+
datasheetTranslations: "AA",
|
|
188
|
+
description: "AA",
|
|
189
|
+
images: "AA"
|
|
116
190
|
}
|
|
117
191
|
},
|
|
118
|
-
retailersWithService: ["58"],
|
|
119
|
-
id_article: 78773,
|
|
120
192
|
retailersAvailable: [{
|
|
121
|
-
id:
|
|
122
|
-
name: "
|
|
123
|
-
}
|
|
193
|
+
id: 2,
|
|
194
|
+
name: "Walmart Mercancías Generales"
|
|
195
|
+
}, {
|
|
196
|
+
id: 3,
|
|
197
|
+
name: "Sam´s Club"
|
|
198
|
+
}, {
|
|
199
|
+
id: 5,
|
|
200
|
+
name: "Chedraui"
|
|
201
|
+
}],
|
|
202
|
+
categoryName: "Salud y Belleza|Cosméticos y Accesorios|Cosméticos",
|
|
203
|
+
upc: "35646655",
|
|
204
|
+
id_article: 76125,
|
|
205
|
+
id_order: 125
|
|
124
206
|
}
|
|
125
207
|
},
|
|
126
208
|
location: {
|
|
@@ -129,67 +211,50 @@ ProviderProductEditionDefault.args = {
|
|
|
129
211
|
}
|
|
130
212
|
},
|
|
131
213
|
user: {
|
|
132
|
-
id_user:
|
|
133
|
-
name: "
|
|
134
|
-
last_name: "
|
|
135
|
-
email: "
|
|
136
|
-
position: "
|
|
137
|
-
telephone: "+
|
|
214
|
+
id_user: 28,
|
|
215
|
+
name: "Proveedor",
|
|
216
|
+
last_name: "Colgate",
|
|
217
|
+
email: "ilopez@contentoh.com",
|
|
218
|
+
position: "Prueba Admin",
|
|
219
|
+
telephone: "+523111366336",
|
|
138
220
|
country: "México",
|
|
139
|
-
id_company:
|
|
140
|
-
id_cognito: "
|
|
221
|
+
id_company: 1,
|
|
222
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
141
223
|
birth_Date: null,
|
|
142
224
|
about_me: null,
|
|
143
225
|
zip_code: null,
|
|
144
226
|
address: null,
|
|
145
227
|
job: null,
|
|
146
|
-
id_stripe:
|
|
228
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
147
229
|
id_role: 0,
|
|
148
230
|
active: 1,
|
|
149
|
-
is_retailer:
|
|
231
|
+
is_retailer: 0,
|
|
150
232
|
email_notify: 1,
|
|
151
233
|
membership: {
|
|
152
|
-
id:
|
|
153
|
-
start_date: "2022-
|
|
154
|
-
end_date: "2023-
|
|
155
|
-
planID:
|
|
156
|
-
plan: "
|
|
157
|
-
name: "Plan
|
|
158
|
-
user_limit: "
|
|
159
|
-
products_limit: "
|
|
234
|
+
id: 76,
|
|
235
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
236
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
237
|
+
planID: 8,
|
|
238
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
239
|
+
name: "Plan Pro",
|
|
240
|
+
user_limit: "20",
|
|
241
|
+
products_limit: "5000",
|
|
160
242
|
type: "Enterprise"
|
|
161
243
|
},
|
|
162
|
-
src: "https://content-management-profile
|
|
244
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1662106973155"
|
|
163
245
|
},
|
|
164
246
|
company: {
|
|
165
|
-
id_company:
|
|
166
|
-
trade_name: "
|
|
167
|
-
company_name: "
|
|
168
|
-
rfc:
|
|
169
|
-
adress: "
|
|
170
|
-
about_company:
|
|
171
|
-
telephone:
|
|
172
|
-
web_site:
|
|
173
|
-
zip_code:
|
|
247
|
+
id_company: 1,
|
|
248
|
+
trade_name: "COMPANY DEV",
|
|
249
|
+
company_name: "COMPANY DEV",
|
|
250
|
+
rfc: null,
|
|
251
|
+
adress: "",
|
|
252
|
+
about_company: "...",
|
|
253
|
+
telephone: "",
|
|
254
|
+
web_site: "",
|
|
255
|
+
zip_code: "",
|
|
174
256
|
email: null,
|
|
175
|
-
social_link:
|
|
176
|
-
is_retailer:
|
|
177
|
-
retailers: [{
|
|
178
|
-
id: 58,
|
|
179
|
-
name: "The Home Depot Golden",
|
|
180
|
-
country: "México"
|
|
181
|
-
}, {
|
|
182
|
-
id: 59,
|
|
183
|
-
name: "The Home Depot Platinum",
|
|
184
|
-
country: "México"
|
|
185
|
-
}, {
|
|
186
|
-
id: 60,
|
|
187
|
-
name: "The Home Depot Resizing",
|
|
188
|
-
country: "México"
|
|
189
|
-
}, {
|
|
190
|
-
id: 61,
|
|
191
|
-
name: "Home Depot TAB",
|
|
192
|
-
country: "México"
|
|
193
|
-
}]
|
|
257
|
+
social_link: "",
|
|
258
|
+
is_retailer: 0
|
|
194
259
|
}
|
|
195
260
|
};
|