contentoh-components-library 21.5.91 → 21.5.93
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/GeneralButton/styles.js +1 -1
- package/dist/components/atoms/GeneralInput/index.js +54 -245
- package/dist/components/atoms/GeneralInput/styles.js +3 -7
- package/dist/components/atoms/InputFormatter/index.js +68 -223
- package/dist/components/atoms/InputFormatter/styles.js +4 -20
- package/dist/components/molecules/StatusAsignationInfo/index.js +1 -11
- package/dist/components/molecules/TabsMenu/index.js +12 -13
- package/dist/components/molecules/TagAndInput/index.js +24 -361
- package/dist/components/molecules/TagAndInput/styles.js +2 -2
- package/dist/components/organisms/FullProductNameHeader/index.js +22 -6
- package/dist/components/organisms/InputGroup/index.js +18 -22
- package/dist/components/pages/ProviderProductEdition/index.js +47 -34
- package/dist/components/pages/ProviderProductEdition/utils.js +0 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +196 -179
- package/dist/components/pages/RetailerProductEdition/context/provider-product-edition.context.js +260 -59
- package/dist/components/pages/RetailerProductEdition/context/reducers/product.js +38 -50
- package/dist/components/pages/RetailerProductEdition/index.js +2234 -1715
- package/dist/components/pages/RetailerProductEdition/styles.js +2 -4
- package/dist/components/pages/RetailerProductEdition/utils.js +2 -251
- package/dist/contexts/AiProductEdition.js +157 -234
- package/package.json +2 -4
- package/src/components/atoms/GeneralButton/styles.js +0 -4
- package/src/components/atoms/GeneralInput/index.js +60 -237
- package/src/components/atoms/GeneralInput/styles.js +0 -81
- package/src/components/atoms/InputFormatter/index.js +51 -200
- package/src/components/atoms/InputFormatter/styles.js +0 -284
- package/src/components/molecules/StatusAsignationInfo/index.js +1 -9
- package/src/components/molecules/TabsMenu/index.js +11 -12
- package/src/components/molecules/TagAndInput/index.js +21 -286
- package/src/components/molecules/TagAndInput/styles.js +17 -59
- package/src/components/organisms/FullProductNameHeader/index.js +28 -4
- package/src/components/organisms/FullTabsMenu/index.js +1 -1
- package/src/components/organisms/InputGroup/index.js +4 -12
- package/src/components/pages/ProviderProductEdition/index.js +69 -51
- package/src/components/pages/ProviderProductEdition/utils.js +2 -2
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +224 -201
- package/src/components/pages/RetailerProductEdition/index.js +1718 -1546
- package/src/components/pages/RetailerProductEdition/styles.js +2 -67
- package/src/components/pages/RetailerProductEdition/utils.js +0 -240
- package/dist/ai/utils/compare-strings.js +0 -45
- package/dist/components/organisms/ChangeStatusModal/index.js +0 -531
- package/dist/components/organisms/ChangeStatusModal/styles.js +0 -85
- package/dist/global-files/statusDictionary.js +0 -103
- package/src/ai/utils/compare-strings.js +0 -45
- package/src/assets/images/Icons/arrow.png +0 -0
- package/src/assets/images/Icons/cancel.png +0 -0
- package/src/assets/images/Icons/ia-icon.png +0 -0
- package/src/assets/images/Icons/loading.svg +0 -5
- package/src/assets/images/Icons/reload.png +0 -0
- package/src/components/atoms/RetailerSelector/RetailerSelector.stories.js +0 -10
- package/src/components/atoms/RetailerSelector/index.js +0 -3
- package/src/components/atoms/RetailerSelector/styles.js +0 -0
- package/src/components/organisms/ChangeStatusModal/index.jsx +0 -488
- package/src/components/organisms/ChangeStatusModal/styles.js +0 -333
- package/src/components/pages/RetailerProductEdition/context/provider-product-edition.context.jsx +0 -575
- package/src/components/pages/RetailerProductEdition/context/provider-product-edition.reducer.js +0 -62
- package/src/components/pages/RetailerProductEdition/context/reducers/active-state.js +0 -344
- package/src/components/pages/RetailerProductEdition/context/reducers/inputs.js +0 -155
- package/src/components/pages/RetailerProductEdition/context/reducers/product.js +0 -114
- package/src/components/pages/RetailerProductEdition/context/reducers/system.js +0 -60
- package/src/components/pages/RetailerProductEdition/index_old.js +0 -1979
- package/src/components/pages/RetailerProductEdition/stories/Auditor.stories.js +0 -101
- package/src/components/pages/RetailerProductEdition/stories/ImageEditor.stories.js +0 -115
- package/src/components/pages/RetailerProductEdition/stories/TextEditor.stories.js +0 -174
- package/src/contexts/AiProductEdition.jsx +0 -344
- package/src/global-files/statusDictionary.js +0 -103
|
@@ -77,8 +77,6 @@ var _genericModalWarning = _interopRequireDefault(require("../../../assets/image
|
|
|
77
77
|
|
|
78
78
|
var _styles = require("./styles");
|
|
79
79
|
|
|
80
|
-
var _AiProductEdition = require("../../../contexts/AiProductEdition");
|
|
81
|
-
|
|
82
80
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
83
81
|
|
|
84
82
|
var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
|
|
@@ -239,13 +237,22 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
|
|
|
239
237
|
try {
|
|
240
238
|
var product = JSON.parse(sessionStorage.getItem("productSelected")) ? JSON.parse(sessionStorage.getItem("productSelected")) : productSelected;
|
|
241
239
|
var productNormalized = (0, _utils.normalizeProduct)(product);
|
|
240
|
+
console.log({
|
|
241
|
+
productNormalized: productNormalized
|
|
242
|
+
});
|
|
242
243
|
dispatch({
|
|
243
244
|
type: "SET_PRODUCT",
|
|
244
245
|
payload: productNormalized
|
|
245
246
|
});
|
|
246
247
|
dispatch({
|
|
247
248
|
type: "SET_ACTIVE_RETAILER",
|
|
248
|
-
payload: productNormalized.
|
|
249
|
+
payload: productNormalized.categoryRetailerInOrder[0]
|
|
250
|
+
});
|
|
251
|
+
var firstRetailerStatus = productNormalized.statusByRetailer[productNormalized.categoryRetailerInOrder[0].id_retailer];
|
|
252
|
+
var initialTab = firstRetailerStatus.description ? "Descripción" : firstRetailerStatus.datasheet ? "Ficha técnica" : firstRetailerStatus.images ? "Imágenes" : "Imágenes";
|
|
253
|
+
dispatch({
|
|
254
|
+
type: "SET_ACTIVE_TAB",
|
|
255
|
+
payload: initialTab
|
|
249
256
|
});
|
|
250
257
|
} catch (error) {
|
|
251
258
|
console.log("Error setting product data: ", error);
|
|
@@ -387,34 +394,43 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
|
|
|
387
394
|
|
|
388
395
|
var updateInputsActiveRetailer = function updateInputsActiveRetailer() {
|
|
389
396
|
if (!state.services) return;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
397
|
+
|
|
398
|
+
if (state.services.datasheets) {
|
|
399
|
+
var retailerDatasheets = state.services.datasheets[state.active_retailer.id_retailer];
|
|
400
|
+
var datasheetsActiveRetailer = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, retailerDatasheets), {}, {
|
|
401
|
+
data: Object.values(retailerDatasheets.data)
|
|
402
|
+
});
|
|
403
|
+
dispatch({
|
|
404
|
+
type: "SET_DATASHEETS_INPUTS",
|
|
405
|
+
payload: [datasheetsActiveRetailer, state.services.datasheets.inputs]
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (state.services.descriptions) {
|
|
410
|
+
var descriptionsActiveRetailer = state.services.descriptions.filter(function (item) {
|
|
411
|
+
return item.id === state.active_retailer.id_retailer;
|
|
412
|
+
});
|
|
413
|
+
dispatch({
|
|
414
|
+
type: "SET_DESCRIPTIONS_INPUTS",
|
|
415
|
+
payload: descriptionsActiveRetailer
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if (state.services.images) {
|
|
420
|
+
var filteredValues = state.services.images.values.filter(function (value) {
|
|
421
|
+
return state.services.images.inputsByRetailer.some(function (retailerInput) {
|
|
422
|
+
return retailerInput.some(function (input) {
|
|
423
|
+
return input.id_retailer === state.active_retailer.id_retailer && input.id_image === value.image_id;
|
|
424
|
+
});
|
|
401
425
|
});
|
|
402
426
|
});
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
payload: descriptionsActiveRetailer
|
|
411
|
-
});
|
|
412
|
-
dispatch({
|
|
413
|
-
type: "SET_IMAGES_VALUES",
|
|
414
|
-
payload: (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.services.images), {}, {
|
|
415
|
-
values: filteredValues
|
|
416
|
-
})
|
|
417
|
-
});
|
|
427
|
+
dispatch({
|
|
428
|
+
type: "SET_IMAGES_VALUES",
|
|
429
|
+
payload: (0, _objectSpread4.default)((0, _objectSpread4.default)({}, state.services.images), {}, {
|
|
430
|
+
values: filteredValues
|
|
431
|
+
})
|
|
432
|
+
});
|
|
433
|
+
}
|
|
418
434
|
};
|
|
419
435
|
|
|
420
436
|
updateInputsActiveRetailer();
|
|
@@ -1337,7 +1353,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
|
|
|
1337
1353
|
return element.innerHTML;
|
|
1338
1354
|
}).join("").replace(/<br\s*\/?>/gi, "\n");
|
|
1339
1355
|
_context6.next = 13;
|
|
1340
|
-
return createComment(fullMessage
|
|
1356
|
+
return createComment(fullMessage);
|
|
1341
1357
|
|
|
1342
1358
|
case 13:
|
|
1343
1359
|
rejectAll ? handleOnEvaluateAll("R") : handleOnSendEvaluation("R");
|
|
@@ -1549,10 +1565,7 @@ var ProviderProductEditionView = function ProviderProductEditionView(_ref) {
|
|
|
1549
1565
|
|
|
1550
1566
|
var ProviderProductEdition = function ProviderProductEdition(props) {
|
|
1551
1567
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_providerProductEdition.ProviderProductEditionProvider, {
|
|
1552
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
1553
|
-
isCreatorsEdition: false,
|
|
1554
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ProviderProductEditionView, (0, _objectSpread4.default)({}, props))
|
|
1555
|
-
})
|
|
1568
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ProviderProductEditionView, (0, _objectSpread4.default)({}, props))
|
|
1556
1569
|
});
|
|
1557
1570
|
};
|
|
1558
1571
|
|
|
@@ -14,7 +14,6 @@ var normalizeProduct = function normalizeProduct(product) {
|
|
|
14
14
|
return {
|
|
15
15
|
id_retailer: rel.id_retailer || rel.retailer_id,
|
|
16
16
|
retailer: rel.retailer_name || rel.retailerName,
|
|
17
|
-
name: rel.retailer_name || rel.retailerName,
|
|
18
17
|
id_category: rel.id_category,
|
|
19
18
|
category: rel.category_name || rel.categoryName,
|
|
20
19
|
image: "https://content-management-images.s3.amazonaws.com/retailers/".concat(rel.id_retailer || rel.retailer_id, ".png")
|
|
@@ -31,244 +31,261 @@ RetailerProductEditionDefault.args = {
|
|
|
31
31
|
"Ficha técnica": false,
|
|
32
32
|
Imágenes: false
|
|
33
33
|
},
|
|
34
|
-
token: "
|
|
34
|
+
token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIzOWE5MDMwOS04MWNkLTQ4ZGYtODZmYi1iMjJjNGEwZTA1NTkiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6IjM5YTkwMzA5LTgxY2QtNDhkZi04NmZiLWIyMmM0YTBlMDU1OSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJmOGMyYWZlYS01MDFjLTRiZDItOWVkMS1lNTYyOTNhM2RkZWIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTc2MDYzNjU2NywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTc2MDY0MDE2NywiaWF0IjoxNzYwNjM2NTY3LCJlbWFpbCI6ImVzcGVjaWFsaXN0YXRleHRvc2RldkBhbGxmcmVlbWFpbC5uZXQifQ.hcliXw44sm09Z3Lq4MgUp9Pgfmp0EIWL5fMBqCtnGJDKG1rtbbb19GqVqRZNt7H4C4n-5SvA_-UwGP_8_tFYqVQsGedecVB-dvhQMaiIV7OvwbMQq9JxLcygsAoJkWc54AEidxj4wXn7Jczxi8v_9STpBQo2ks4Vo8GyhHDQFd1mxmuXzr-7PVR5FHDr6dqUUaQn1RjUftTnabGRwUYbHo1WKyOPpNpSvK0HGmn8csP8ldU6111t-lA_Q9cF3y1Rcx_TFSAZfKAn-Jqa9I1Wp7l6bJ8o6QK0L5kJykJfpsjgTyoJuVj7-puv-a9-BEXEwyEAwrYbXm9eTpjXXsRhmw",
|
|
35
35
|
productSelected: {
|
|
36
|
-
"articleId":
|
|
36
|
+
"articleId": 18193,
|
|
37
37
|
"services": {
|
|
38
38
|
"datasheets": 1,
|
|
39
39
|
"descriptions": 1,
|
|
40
40
|
"images": 1
|
|
41
41
|
},
|
|
42
|
-
"orderId":
|
|
43
|
-
"city": "
|
|
44
|
-
"status": "
|
|
45
|
-
"datasheet_status": "
|
|
42
|
+
"orderId": 7707,
|
|
43
|
+
"city": "",
|
|
44
|
+
"status": "AA",
|
|
45
|
+
"datasheet_status": "AA",
|
|
46
46
|
"prio": "none",
|
|
47
|
-
"version":
|
|
48
|
-
"description_status": "
|
|
49
|
-
"images_status": "
|
|
47
|
+
"version": 30,
|
|
48
|
+
"description_status": "AA",
|
|
49
|
+
"images_status": "AA",
|
|
50
50
|
"statusByRetailer": [{
|
|
51
|
-
"status": "
|
|
51
|
+
"status": "AA",
|
|
52
52
|
"service": "datasheet",
|
|
53
|
-
"retailer_id":
|
|
54
|
-
"task_user_group_id":
|
|
53
|
+
"retailer_id": 12,
|
|
54
|
+
"task_user_group_id": 5
|
|
55
55
|
}, {
|
|
56
|
-
"status": "
|
|
56
|
+
"status": "AA",
|
|
57
57
|
"service": "description",
|
|
58
|
-
"retailer_id":
|
|
59
|
-
"task_user_group_id":
|
|
58
|
+
"retailer_id": 12,
|
|
59
|
+
"task_user_group_id": 5
|
|
60
60
|
}, {
|
|
61
|
-
"status": "
|
|
61
|
+
"status": "AA",
|
|
62
62
|
"service": "images",
|
|
63
|
-
"retailer_id":
|
|
64
|
-
"task_user_group_id":
|
|
65
|
-
}, {
|
|
66
|
-
"status": "AC",
|
|
67
|
-
"service": "datasheet",
|
|
68
|
-
"retailer_id": 29,
|
|
69
|
-
"task_user_group_id": 4
|
|
70
|
-
}, {
|
|
71
|
-
"status": "AC",
|
|
72
|
-
"service": "description",
|
|
73
|
-
"retailer_id": 29,
|
|
74
|
-
"task_user_group_id": 4
|
|
75
|
-
}, {
|
|
76
|
-
"status": "AC",
|
|
77
|
-
"service": "images",
|
|
78
|
-
"retailer_id": 29,
|
|
79
|
-
"task_user_group_id": 4
|
|
80
|
-
}, {
|
|
81
|
-
"status": "AC",
|
|
82
|
-
"service": "datasheet",
|
|
83
|
-
"retailer_id": 36,
|
|
84
|
-
"task_user_group_id": 4
|
|
85
|
-
}, {
|
|
86
|
-
"status": "AC",
|
|
87
|
-
"service": "description",
|
|
88
|
-
"retailer_id": 36,
|
|
89
|
-
"task_user_group_id": 4
|
|
90
|
-
}, {
|
|
91
|
-
"status": "AC",
|
|
92
|
-
"service": "images",
|
|
93
|
-
"retailer_id": 36,
|
|
94
|
-
"task_user_group_id": 4
|
|
95
|
-
}, {
|
|
96
|
-
"status": "AC",
|
|
97
|
-
"service": "datasheet",
|
|
98
|
-
"retailer_id": 70,
|
|
99
|
-
"task_user_group_id": 4
|
|
100
|
-
}, {
|
|
101
|
-
"status": "AC",
|
|
102
|
-
"service": "description",
|
|
103
|
-
"retailer_id": 70,
|
|
104
|
-
"task_user_group_id": 4
|
|
105
|
-
}, {
|
|
106
|
-
"status": "AC",
|
|
107
|
-
"service": "images",
|
|
108
|
-
"retailer_id": 70,
|
|
109
|
-
"task_user_group_id": 4
|
|
63
|
+
"retailer_id": 12,
|
|
64
|
+
"task_user_group_id": 5
|
|
110
65
|
}],
|
|
111
66
|
"article": {
|
|
112
|
-
"id_article":
|
|
113
|
-
"id_category": "
|
|
114
|
-
"brand": "
|
|
115
|
-
"name": "
|
|
116
|
-
"upc": "
|
|
117
|
-
"sku":
|
|
118
|
-
"timestamp": "
|
|
67
|
+
"id_article": 18193,
|
|
68
|
+
"id_category": "157",
|
|
69
|
+
"brand": "Axion",
|
|
70
|
+
"name": "Detergente lavatrastes líquido Axion limón 900 ml",
|
|
71
|
+
"upc": "7509546052977",
|
|
72
|
+
"sku": null,
|
|
73
|
+
"timestamp": "2021-10-09T16:33:17.000Z",
|
|
119
74
|
"active": 1,
|
|
120
|
-
"company_id":
|
|
121
|
-
"company_name": "
|
|
75
|
+
"company_id": 226,
|
|
76
|
+
"company_name": "COLGATE PALMOLIVE S.A. DE C.V.",
|
|
122
77
|
"country": "México",
|
|
123
|
-
"id_order":
|
|
124
|
-
"id_datasheet_especialist":
|
|
78
|
+
"id_order": 7707,
|
|
79
|
+
"id_datasheet_especialist": 498,
|
|
125
80
|
"id_datasheet_facilitator": null,
|
|
126
|
-
"id_description_especialist":
|
|
81
|
+
"id_description_especialist": 498,
|
|
127
82
|
"id_description_facilitator": null,
|
|
128
|
-
"id_images_especialist":
|
|
83
|
+
"id_images_especialist": 1460,
|
|
129
84
|
"id_images_facilitator": null,
|
|
130
|
-
"id_auditor":
|
|
85
|
+
"id_auditor": 1254,
|
|
131
86
|
"id_recepcionist": null,
|
|
132
|
-
"category": "Productos de
|
|
87
|
+
"category": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
133
88
|
"categoryRetailer": [{
|
|
134
|
-
"id_category":
|
|
89
|
+
"id_category": 157,
|
|
90
|
+
"id_retailer": 17,
|
|
91
|
+
"category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
92
|
+
"retailer_name": "Genérico"
|
|
93
|
+
}, {
|
|
94
|
+
"id_category": 3430,
|
|
95
|
+
"id_retailer": 12,
|
|
96
|
+
"category_name": "Departamento General La Comer|Departamento General|Departamento General",
|
|
97
|
+
"retailer_name": "La Comer"
|
|
98
|
+
}, {
|
|
99
|
+
"id_category": 3433,
|
|
100
|
+
"id_retailer": 24,
|
|
101
|
+
"category_name": "Limpieza Del Hogar|Limpieza Del Hogar|Limpieza Del Hogar",
|
|
102
|
+
"retailer_name": "Alsuper"
|
|
103
|
+
}, {
|
|
104
|
+
"id_category": 3456,
|
|
105
|
+
"id_retailer": 41,
|
|
106
|
+
"category_name": "Categoría Genérica Chapa|Categoría Genérica|Categoría Genérica",
|
|
107
|
+
"retailer_name": "Chapa"
|
|
108
|
+
}, {
|
|
109
|
+
"id_category": 3499,
|
|
110
|
+
"id_retailer": 20,
|
|
111
|
+
"category_name": "Consumibles Cornershop|Consumibles|Consumibles",
|
|
112
|
+
"retailer_name": "Cornershop"
|
|
113
|
+
}, {
|
|
114
|
+
"id_category": 3507,
|
|
115
|
+
"id_retailer": 38,
|
|
116
|
+
"category_name": "Hogar|Artículos de Limpieza|Multiusos",
|
|
117
|
+
"retailer_name": "Del Sol"
|
|
118
|
+
}, {
|
|
119
|
+
"id_category": 3562,
|
|
135
120
|
"id_retailer": 29,
|
|
136
|
-
"category_name": "
|
|
121
|
+
"category_name": "Consumibles Farmacias del Ahorro|Consumibles|Consumibles",
|
|
137
122
|
"retailer_name": "Farmacias del Ahorro"
|
|
138
123
|
}, {
|
|
139
|
-
"id_category":
|
|
140
|
-
"id_retailer":
|
|
141
|
-
"category_name": "Limpieza|
|
|
142
|
-
"retailer_name": "
|
|
124
|
+
"id_category": 3588,
|
|
125
|
+
"id_retailer": 8,
|
|
126
|
+
"category_name": "Hogar|Limpieza|Lavatrastes",
|
|
127
|
+
"retailer_name": "Fragua"
|
|
128
|
+
}, {
|
|
129
|
+
"id_category": 3604,
|
|
130
|
+
"id_retailer": 18,
|
|
131
|
+
"category_name": "Categoría Genérica Google|Categoría Genérica|Categoría Genérica",
|
|
132
|
+
"retailer_name": "Google"
|
|
133
|
+
}, {
|
|
134
|
+
"id_category": 3741,
|
|
135
|
+
"id_retailer": 6,
|
|
136
|
+
"category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
137
|
+
"retailer_name": "HEB"
|
|
138
|
+
}, {
|
|
139
|
+
"id_category": 4780,
|
|
140
|
+
"id_retailer": 27,
|
|
141
|
+
"category_name": "Categoría Genérica IMPIRA México|Categoría Genérica|Categoría Genérica",
|
|
142
|
+
"retailer_name": "IMPIRA México"
|
|
143
|
+
}, {
|
|
144
|
+
"id_category": 4796,
|
|
145
|
+
"id_retailer": 39,
|
|
146
|
+
"category_name": "Limpieza y Hogar|Limpieza General|Limpieza General",
|
|
147
|
+
"retailer_name": "Justo"
|
|
143
148
|
}, {
|
|
144
|
-
"id_category":
|
|
149
|
+
"id_category": 4835,
|
|
150
|
+
"id_retailer": 7,
|
|
151
|
+
"category_name": "Categoría Genérica Mega|Categoría Genérica|Categoría Genérica",
|
|
152
|
+
"retailer_name": "Mega"
|
|
153
|
+
}, {
|
|
154
|
+
"id_category": 4853,
|
|
155
|
+
"id_retailer": 33,
|
|
156
|
+
"category_name": "Cuidado Hogar|Lavatrastes|Lavatrastes Liquidos",
|
|
157
|
+
"retailer_name": "Merza"
|
|
158
|
+
}, {
|
|
159
|
+
"id_category": 4873,
|
|
145
160
|
"id_retailer": 36,
|
|
146
|
-
"category_name": "Productos
|
|
161
|
+
"category_name": "Productos del Hogar|Productos del Hogar|Productos del Hogar",
|
|
147
162
|
"retailer_name": "Oxxo"
|
|
148
163
|
}, {
|
|
149
|
-
"id_category":
|
|
164
|
+
"id_category": 4911,
|
|
165
|
+
"id_retailer": 16,
|
|
166
|
+
"category_name": "Categoría Genérica Rappi|Categoría Genérica|Categoría Genérica",
|
|
167
|
+
"retailer_name": "Rappi"
|
|
168
|
+
}, {
|
|
169
|
+
"id_category": 5918,
|
|
170
|
+
"id_retailer": 4,
|
|
171
|
+
"category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
172
|
+
"retailer_name": "Walmart Super y Superama"
|
|
173
|
+
}, {
|
|
174
|
+
"id_category": 7126,
|
|
150
175
|
"id_retailer": 13,
|
|
151
|
-
"category_name": "
|
|
176
|
+
"category_name": "Consumibles|Productos de Limpieza y Lavandería|Jabones y Lavatrastes",
|
|
152
177
|
"retailer_name": "Soriana"
|
|
178
|
+
}, {
|
|
179
|
+
"id_category": 7196,
|
|
180
|
+
"id_retailer": 5,
|
|
181
|
+
"category_name": "Categoría Consumibles Chedraui|Consumibles|Productos de Limpieza y Lavandería",
|
|
182
|
+
"retailer_name": "Chedraui"
|
|
153
183
|
}]
|
|
154
184
|
},
|
|
155
185
|
"retailers": [{
|
|
186
|
+
"id": 4,
|
|
187
|
+
"name": "Walmart Super y Superama"
|
|
188
|
+
}, {
|
|
189
|
+
"id": 5,
|
|
190
|
+
"name": "Chedraui"
|
|
191
|
+
}, {
|
|
192
|
+
"id": 6,
|
|
193
|
+
"name": "HEB"
|
|
194
|
+
}, {
|
|
195
|
+
"id": 8,
|
|
196
|
+
"name": "Fragua"
|
|
197
|
+
}, {
|
|
198
|
+
"id": 12,
|
|
199
|
+
"name": "La Comer"
|
|
200
|
+
}, {
|
|
156
201
|
"id": 13,
|
|
157
202
|
"name": "Soriana"
|
|
203
|
+
}, {
|
|
204
|
+
"id": 16,
|
|
205
|
+
"name": "Rappi"
|
|
206
|
+
}, {
|
|
207
|
+
"id": 17,
|
|
208
|
+
"name": "Genérico"
|
|
209
|
+
}, {
|
|
210
|
+
"id": 20,
|
|
211
|
+
"name": "Cornershop"
|
|
212
|
+
}, {
|
|
213
|
+
"id": 24,
|
|
214
|
+
"name": "Alsuper"
|
|
158
215
|
}, {
|
|
159
216
|
"id": 29,
|
|
160
217
|
"name": "Farmacias del Ahorro"
|
|
161
218
|
}, {
|
|
162
219
|
"id": 36,
|
|
163
220
|
"name": "Oxxo"
|
|
164
|
-
}, {
|
|
165
|
-
"id": 70,
|
|
166
|
-
"name": "Bodega Aurrera"
|
|
167
221
|
}],
|
|
168
222
|
"country": "México",
|
|
169
|
-
"upc": "
|
|
223
|
+
"upc": "7509546052977"
|
|
170
224
|
},
|
|
171
225
|
// location: {
|
|
172
|
-
//
|
|
173
|
-
//
|
|
174
|
-
//
|
|
175
|
-
//
|
|
176
|
-
//
|
|
177
|
-
// },
|
|
178
|
-
// EDICION IMAGENES
|
|
179
|
-
// user: {
|
|
180
|
-
// "id_user": 427,
|
|
181
|
-
// "name": "Especialista Edición",
|
|
182
|
-
// "last_name": null,
|
|
183
|
-
// "email": "kikije1467@mtlcz.com",
|
|
184
|
-
// "position": "Tester",
|
|
185
|
-
// "telephone": null,
|
|
186
|
-
// "country": null,
|
|
187
|
-
// "id_company": 254,
|
|
188
|
-
// "id_cognito": "c7e5a6a4-2b3f-4d54-af98-9e09a4cbc01e",
|
|
189
|
-
// "birth_Date": null,
|
|
190
|
-
// "about_me": null,
|
|
191
|
-
// "zip_code": null,
|
|
192
|
-
// "address": null,
|
|
193
|
-
// "job": null,
|
|
194
|
-
// "id_stripe": null,
|
|
195
|
-
// "id_role": 8,
|
|
196
|
-
// "active": 1,
|
|
197
|
-
// "is_retailer": 0,
|
|
198
|
-
// "email_notify": null,
|
|
199
|
-
// "is_user_tech": null,
|
|
200
|
-
// "is_onboarding": 0,
|
|
201
|
-
// "membership": {
|
|
202
|
-
// "id": 750,
|
|
203
|
-
// "start_date": "2022-01-07T21:32:54.000Z",
|
|
204
|
-
// "end_date": "2023-01-07T21:32:54.000Z",
|
|
205
|
-
// "planID": 6,
|
|
206
|
-
// "plan": "prod_KvGd6YSTJyR3AP",
|
|
207
|
-
// "name": "Plan Small",
|
|
208
|
-
// "user_limit": "10",
|
|
209
|
-
// "products_limit": "1000",
|
|
210
|
-
// "type": "Enterprise"
|
|
211
|
-
// },
|
|
212
|
-
// "src": "https://content-management-profile-prod.s3.amazonaws.com/id-427/427.png?1775592220312"
|
|
226
|
+
// product: { articleId: 126855, versionId: 3 },
|
|
227
|
+
// state: {
|
|
228
|
+
// withChat: true,
|
|
229
|
+
// chatType: "product_status",
|
|
230
|
+
// },
|
|
213
231
|
// },
|
|
214
|
-
//
|
|
215
|
-
//
|
|
216
|
-
//
|
|
217
|
-
//
|
|
218
|
-
//
|
|
219
|
-
//
|
|
220
|
-
//
|
|
221
|
-
//
|
|
222
|
-
//
|
|
223
|
-
//
|
|
224
|
-
//
|
|
225
|
-
//
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
//
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
//
|
|
236
|
-
//
|
|
237
|
-
//
|
|
238
|
-
// id:
|
|
239
|
-
// start_date: "
|
|
240
|
-
// end_date: "
|
|
241
|
-
// planID:
|
|
242
|
-
// plan: "
|
|
243
|
-
// name: "Plan
|
|
244
|
-
// user_limit: "
|
|
245
|
-
// products_limit: "
|
|
246
|
-
// type: "
|
|
247
|
-
//
|
|
248
|
-
//
|
|
232
|
+
// user: {
|
|
233
|
+
// "id_user": 442,
|
|
234
|
+
// "name": "Especialista",
|
|
235
|
+
// "last_name": "Textos",
|
|
236
|
+
// "email": "especialistatextosdev@allfreemail.net",
|
|
237
|
+
// "position": "Especialista de Imágenes",
|
|
238
|
+
// "telephone": null,
|
|
239
|
+
// "country": null,
|
|
240
|
+
// "id_company": 2,
|
|
241
|
+
// "id_role": 7,
|
|
242
|
+
// "about_me": null,
|
|
243
|
+
// "address": null,
|
|
244
|
+
// "job": null,
|
|
245
|
+
// "id_stripe": null,
|
|
246
|
+
// "active": 1,
|
|
247
|
+
// "email_notify": 1,
|
|
248
|
+
// "id_cognito": "39a90309-81cd-48df-86fb-b22c4a0e0559",
|
|
249
|
+
// "birth_Date": null,
|
|
250
|
+
// "zip_code": null,
|
|
251
|
+
// "is_retailer": 0,
|
|
252
|
+
// "is_onboarding": 0,
|
|
253
|
+
// "is_user_tech": null,
|
|
254
|
+
// "profile_picture_ext": null,
|
|
255
|
+
// "membership": {
|
|
256
|
+
// "id": 2,
|
|
257
|
+
// "start_date": "2021-11-05T02:35:12.000Z",
|
|
258
|
+
// "end_date": "2022-11-05T02:34:49.000Z",
|
|
259
|
+
// "planID": 1,
|
|
260
|
+
// "plan": "prod_KtkvuFFLpOdP6e",
|
|
261
|
+
// "name": "Plan Free",
|
|
262
|
+
// "user_limit": "1",
|
|
263
|
+
// "products_limit": "3",
|
|
264
|
+
// "type": "PyMES"
|
|
265
|
+
// },
|
|
266
|
+
// "src": "https://content-management-profile.s3.amazonaws.com/id-442/442.png?1760636567736"
|
|
249
267
|
// },
|
|
250
|
-
// AUDITORES
|
|
251
268
|
user: {
|
|
252
|
-
"id_user":
|
|
253
|
-
"name": "
|
|
254
|
-
"last_name":
|
|
255
|
-
"email": "
|
|
256
|
-
"position":
|
|
269
|
+
"id_user": 3016,
|
|
270
|
+
"name": "Oscar",
|
|
271
|
+
"last_name": "Serna",
|
|
272
|
+
"email": "oserna@contentoh.com",
|
|
273
|
+
"position": null,
|
|
257
274
|
"telephone": null,
|
|
258
275
|
"country": null,
|
|
259
276
|
"id_company": 254,
|
|
260
|
-
"id_cognito": "
|
|
277
|
+
"id_cognito": "5934beeb-e8d2-4b00-b3a5-8c0fdc516e97",
|
|
261
278
|
"birth_Date": null,
|
|
262
279
|
"about_me": null,
|
|
263
280
|
"zip_code": null,
|
|
264
281
|
"address": null,
|
|
265
282
|
"job": null,
|
|
266
283
|
"id_stripe": null,
|
|
267
|
-
"id_role":
|
|
284
|
+
"id_role": 1,
|
|
268
285
|
"active": 1,
|
|
269
286
|
"is_retailer": 0,
|
|
270
|
-
"email_notify":
|
|
271
|
-
"is_user_tech":
|
|
287
|
+
"email_notify": 1,
|
|
288
|
+
"is_user_tech": "ADMIN-AS",
|
|
272
289
|
"is_onboarding": 0,
|
|
273
290
|
"membership": {
|
|
274
291
|
"id": 750,
|
|
@@ -281,6 +298,6 @@ RetailerProductEditionDefault.args = {
|
|
|
281
298
|
"products_limit": "1000",
|
|
282
299
|
"type": "Enterprise"
|
|
283
300
|
},
|
|
284
|
-
"src": "https://content-management-profile-prod.s3.amazonaws.com/id-
|
|
301
|
+
"src": "https://content-management-profile-prod.s3.amazonaws.com/id-3016/3016.png?1763071181637"
|
|
285
302
|
}
|
|
286
303
|
};
|