contentoh-components-library 21.3.59 → 21.3.60
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/.env.development +2 -0
- package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/dist/components/molecules/HeaderTop/index.js +68 -11
- package/dist/components/organisms/Chat/Chat.stories.js +21 -1
- package/dist/components/organisms/Chat/ContainerItems/index.js +19 -3
- package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
- package/dist/components/organisms/Chat/ContentChat/index.js +343 -191
- package/dist/components/organisms/Chat/Footer/index.js +48 -39
- package/dist/components/organisms/Chat/index.js +48 -3
- package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
- package/dist/components/organisms/SideModal/SideModal.stories.js +42 -0
- package/dist/components/organisms/SideModal/index.js +61 -0
- package/dist/components/organisms/SideModal/styles.js +18 -0
- package/dist/components/pages/Dashboard/Dashboard.stories.js +38 -45
- package/dist/components/pages/Dashboard/index.js +8 -4
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +172 -127
- package/dist/components/pages/ProviderProductEdition/index.js +188 -129
- package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -3
- package/dist/components/pages/RetailerProductEdition/index.js +267 -274
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/utils.js +61 -2
- package/package.json +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
- package/src/components/molecules/HeaderTop/index.js +52 -6
- package/src/components/organisms/Chat/Chat.stories.js +21 -0
- package/src/components/organisms/Chat/ContainerItems/index.js +18 -2
- package/src/components/organisms/Chat/ContainerItems/styles.js +10 -2
- package/src/components/organisms/Chat/ContentChat/index.js +81 -6
- package/src/components/organisms/Chat/Footer/index.js +11 -0
- package/src/components/organisms/Chat/index.js +47 -3
- package/src/components/organisms/FullProductNameHeader/index.js +1 -1
- package/src/components/organisms/SideModal/SideModal.stories.js +23 -0
- package/src/components/organisms/SideModal/index.js +41 -0
- package/src/components/organisms/SideModal/styles.js +21 -0
- package/src/components/pages/Dashboard/Dashboard.stories.js +38 -47
- package/src/components/pages/Dashboard/index.js +4 -3
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +177 -130
- package/src/components/pages/ProviderProductEdition/index.js +105 -55
- package/src/components/pages/ProviderProductEdition/styles.js +5 -1
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +6 -2
- package/src/components/pages/RetailerProductEdition/index.js +111 -135
- package/src/components/pages/RetailerProductEdition/styles.js +4 -0
- package/src/components/pages/RetailerProductEdition/utils.js +37 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
width: 100vw;
|
|
5
|
+
height: 100vh;
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: 9999999;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
|
|
10
|
+
.modal-container {
|
|
11
|
+
width: 600px;
|
|
12
|
+
height: 100%;
|
|
13
|
+
position: absolute;
|
|
14
|
+
right: -600px;
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
|
|
17
|
+
&.shown {
|
|
18
|
+
right: 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
@@ -9,68 +9,59 @@ const Template = (args) => <Dashboard {...args} />;
|
|
|
9
9
|
export const DashboardDeafult = Template.bind({});
|
|
10
10
|
DashboardDeafult.args = {
|
|
11
11
|
user: {
|
|
12
|
-
id_user:
|
|
13
|
-
name: "
|
|
14
|
-
last_name: "
|
|
15
|
-
email: "
|
|
16
|
-
position: "
|
|
17
|
-
telephone: "
|
|
12
|
+
id_user: 37,
|
|
13
|
+
name: "José",
|
|
14
|
+
last_name: "Castañeda",
|
|
15
|
+
email: "ismael97lopez@gmail.com",
|
|
16
|
+
position: "Auditor",
|
|
17
|
+
telephone: "",
|
|
18
18
|
country: "México",
|
|
19
|
-
id_company:
|
|
20
|
-
id_cognito: "
|
|
19
|
+
id_company: 2,
|
|
20
|
+
id_cognito: "9a213128-6482-4c16-a4b6-6e64f225b1bd",
|
|
21
21
|
birth_Date: null,
|
|
22
|
-
about_me:
|
|
23
|
-
zip_code:
|
|
24
|
-
address:
|
|
25
|
-
job:
|
|
26
|
-
id_stripe:
|
|
27
|
-
id_role:
|
|
22
|
+
about_me: "",
|
|
23
|
+
zip_code: "",
|
|
24
|
+
address: "",
|
|
25
|
+
job: "",
|
|
26
|
+
id_stripe: "",
|
|
27
|
+
id_role: 6,
|
|
28
28
|
active: 1,
|
|
29
29
|
is_retailer: 0,
|
|
30
30
|
email_notify: 1,
|
|
31
31
|
is_user_tech: null,
|
|
32
32
|
membership: {
|
|
33
|
-
id:
|
|
34
|
-
start_date: "
|
|
35
|
-
end_date: "
|
|
36
|
-
planID:
|
|
37
|
-
plan: "
|
|
38
|
-
name: "Plan
|
|
39
|
-
user_limit: "
|
|
40
|
-
products_limit: "
|
|
41
|
-
type: "
|
|
33
|
+
id: 2,
|
|
34
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
35
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
36
|
+
planID: 1,
|
|
37
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
38
|
+
name: "Plan Free",
|
|
39
|
+
user_limit: "1",
|
|
40
|
+
products_limit: "3",
|
|
41
|
+
type: "PyMES",
|
|
42
42
|
},
|
|
43
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
43
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-37/37.png?1684953973972",
|
|
44
44
|
},
|
|
45
45
|
company: {
|
|
46
|
-
id_company:
|
|
47
|
-
trade_name: "
|
|
48
|
-
company_name: "
|
|
49
|
-
rfc: "
|
|
50
|
-
adress: "
|
|
51
|
-
about_company:
|
|
52
|
-
telephone:
|
|
53
|
-
web_site:
|
|
54
|
-
zip_code:
|
|
46
|
+
id_company: 1,
|
|
47
|
+
trade_name: "GRUPO BRAHMA",
|
|
48
|
+
company_name: "GRUPO BRAHMA",
|
|
49
|
+
rfc: "XAXX010101000",
|
|
50
|
+
adress: "AA",
|
|
51
|
+
about_company: "",
|
|
52
|
+
telephone: "",
|
|
53
|
+
web_site: "",
|
|
54
|
+
zip_code: "",
|
|
55
55
|
email: null,
|
|
56
|
-
social_link:
|
|
56
|
+
social_link: "",
|
|
57
57
|
is_retailer: 0,
|
|
58
|
-
financedRetailers: [
|
|
59
|
-
{
|
|
60
|
-
id: 70,
|
|
61
|
-
name: "Bodega Aurrera",
|
|
62
|
-
country: "México",
|
|
63
|
-
id_region: 1,
|
|
64
|
-
active: 1,
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
58
|
retailers: [
|
|
68
59
|
{
|
|
69
|
-
id:
|
|
70
|
-
name:
|
|
71
|
-
country:
|
|
60
|
+
id: null,
|
|
61
|
+
name: null,
|
|
62
|
+
country: null,
|
|
72
63
|
},
|
|
73
64
|
],
|
|
74
65
|
},
|
|
75
|
-
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
66
|
+
jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI3ZjNkZTM4Mi03NWE2LTRlNDAtYTI3NC00YmM5ODg2Nzk0YjYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4NDk1NTYzOCwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODQ5NTkyMzcsImlhdCI6MTY4NDk1NTYzOCwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.ALvhpSGVv34JV8vLSg0CznmsIzRMJ_BFcmDI4qYXzr0qwgLLihon0M0xmODMhIHKcZK4jODC01guliB6fTPoCb8kfPHrBgLnHMBU8PxU1Fcc2EqF5U8lh4fJK6Mc7kiJ4lCreKJL3kT_1ytC-7FdRAlhNXzuJW6aMQQ785ODQ8-1RtHKW6U_b9x88-WFxjltEKuw734LGBSkz9iKZSumNBJBP8HTMgwOgmRTJ6lR-hPsujvl7aF3maXhftpk2fI8S_FzjVRMsxY3T8hQHIXEYwQUv-fC5SPOgc8XDuAp18MKfi0qkU1EYHQahC0qZmvgVGWEDcu5D36Xj0as4iAiFQ",
|
|
76
67
|
};
|
|
@@ -39,6 +39,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
39
39
|
];
|
|
40
40
|
const [applicantsFilter, setApplicantsFilter] = useState([]);
|
|
41
41
|
const [totalCount, setTotalCount] = useState(0);
|
|
42
|
+
const [isProviderFinanced] = useState(company?.financedRetailers?.length > 0);
|
|
42
43
|
|
|
43
44
|
const loadProductVersions = async (queryObject) => {
|
|
44
45
|
const keys = Object.keys(queryObject);
|
|
@@ -70,7 +71,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
70
71
|
);
|
|
71
72
|
const parsed = JSON.parse(retailersResponse.data.body).data;
|
|
72
73
|
let retailers = Object.values(parsed);
|
|
73
|
-
if (isRetailer) {
|
|
74
|
+
if (isRetailer || isProviderFinanced) {
|
|
74
75
|
const retailersValid = company.retailers.map((e) => e.id);
|
|
75
76
|
retailers = retailers.filter((value) =>
|
|
76
77
|
retailersValid.includes(value.id)
|
|
@@ -252,7 +253,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
252
253
|
setParameterArray={setDatesRange}
|
|
253
254
|
isSingleSelect
|
|
254
255
|
/>
|
|
255
|
-
{
|
|
256
|
+
{!isProviderFinanced && providers?.length > 1 && (
|
|
256
257
|
<CustomSelect
|
|
257
258
|
showFilterString={true}
|
|
258
259
|
showSearchBar={true}
|
|
@@ -276,7 +277,7 @@ export const Dashboard = ({ jwt, user, company }) => {
|
|
|
276
277
|
setParameterArray={setCategoryId}
|
|
277
278
|
defaultOption="Todas las categorías"
|
|
278
279
|
/>
|
|
279
|
-
{
|
|
280
|
+
{!isProviderFinanced && retailers?.length > 1 && (
|
|
280
281
|
<CustomSelect
|
|
281
282
|
showFilterString={true}
|
|
282
283
|
showSearchBar={true}
|
|
@@ -16,120 +16,194 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyM2Q1NTlmYi1jMzIwLTRhMjItYjJmNy1lOThhYTFhZGEyNmYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkyNjgyMSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2ODM5MzA0MjEsImlhdCI6MTY4MzkyNjgyMSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmNvbSJ9.TvCoaKoctj5mypXWMz3NyV1Vm1ToBV0vJmpVyZSQw4-ikTChkxcZ5tFYvqhk1GdvNCFttfSQIqM-14dAYYBc28YwwKP86gqOuzB1fG41rN5x1Yx3tkJq6hiVRgiBbSHWtThA9c8VnxNQbrJiaRTvvkDiM5KNTEst1oxQHL5Ct9_iKQMJMRFie7Xv0xnyS0qZ6QHK4Q2A9OHsnDkAuumALZJcE19Zh6VgSitgWrZiz3x5Text4Q-U-R48NUAzUFirAzYZzJN_fCme5pGf1AnUaZjeUjPsmrV5TBVzPEYwXO0KG8lYjL8id80D7tbGs28ZIK6B4rf3-eqI_ngmBB4CjQ",
|
|
20
20
|
articleId: 238,
|
|
21
21
|
category: 846,
|
|
22
22
|
version: 2,
|
|
23
23
|
productSelected: {
|
|
24
|
-
orderId:
|
|
25
|
-
|
|
26
|
-
datasheet_status: "
|
|
27
|
-
description_status: "FAP",
|
|
28
|
-
images_status: "FAP",
|
|
24
|
+
orderId: 15142,
|
|
25
|
+
status: "AA",
|
|
26
|
+
datasheet_status: "AA",
|
|
29
27
|
prio: "none",
|
|
30
28
|
version: 3,
|
|
31
|
-
|
|
29
|
+
description_status: "AA",
|
|
30
|
+
images_status: "AA",
|
|
31
|
+
brand: "Garnier",
|
|
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
|
-
|
|
35
|
-
|
|
44
|
+
category:
|
|
45
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
46
|
+
company_name: "GRUPO BRAHMA",
|
|
36
47
|
country: "México",
|
|
37
|
-
id_category: "
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
id_category: "697",
|
|
49
|
+
id_datasheet_especialist: 54,
|
|
50
|
+
id_datasheet_facilitator: 52,
|
|
51
|
+
id_description_especialist: 54,
|
|
52
|
+
id_description_facilitator: 52,
|
|
53
|
+
id_images_especialist: 55,
|
|
54
|
+
id_images_facilitator: 53,
|
|
55
|
+
id_order: 15142,
|
|
56
|
+
id_article: 39270,
|
|
57
|
+
id_auditor: 37,
|
|
58
|
+
name: "Acondicionador Garnier Fructis 650 ml",
|
|
59
|
+
timestamp: "2023-03-27T18:37:48.000Z",
|
|
60
|
+
upc: "750955287656712",
|
|
41
61
|
},
|
|
42
62
|
retailers: [
|
|
43
63
|
{
|
|
44
|
-
id:
|
|
45
|
-
name: "
|
|
64
|
+
id: 12,
|
|
65
|
+
name: "La Comer",
|
|
46
66
|
},
|
|
47
67
|
{
|
|
48
|
-
id:
|
|
49
|
-
name: "
|
|
68
|
+
id: 29,
|
|
69
|
+
name: "Farmacias del Ahorro",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: 63,
|
|
73
|
+
name: "DAX",
|
|
50
74
|
},
|
|
51
75
|
],
|
|
52
|
-
services: {
|
|
53
|
-
datasheets: 1,
|
|
54
|
-
descriptions: 1,
|
|
55
|
-
images: 1,
|
|
56
|
-
},
|
|
57
76
|
statusByRetailer: {
|
|
58
|
-
|
|
59
|
-
datasheet: "
|
|
60
|
-
description: "
|
|
61
|
-
images: "
|
|
77
|
+
12: {
|
|
78
|
+
datasheet: "AA",
|
|
79
|
+
description: "AA",
|
|
80
|
+
images: "AA",
|
|
81
|
+
},
|
|
82
|
+
29: {
|
|
83
|
+
datasheet: "AA",
|
|
84
|
+
description: "AA",
|
|
85
|
+
images: "AA",
|
|
86
|
+
},
|
|
87
|
+
63: {
|
|
88
|
+
datasheet: "AA",
|
|
89
|
+
description: "AA",
|
|
90
|
+
images: "AA",
|
|
62
91
|
},
|
|
63
92
|
},
|
|
64
|
-
|
|
65
|
-
id_article: 39336,
|
|
93
|
+
checked: false,
|
|
66
94
|
retailersAvailable: [
|
|
67
95
|
{
|
|
68
|
-
id:
|
|
69
|
-
name: "
|
|
96
|
+
id: 12,
|
|
97
|
+
name: "La Comer",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: 29,
|
|
101
|
+
name: "Farmacias del Ahorro",
|
|
70
102
|
},
|
|
71
103
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
104
|
+
id: 63,
|
|
105
|
+
name: "DAX",
|
|
74
106
|
},
|
|
75
107
|
],
|
|
108
|
+
categoryName:
|
|
109
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
110
|
+
upc: "750955287656712",
|
|
111
|
+
id_article: 39270,
|
|
112
|
+
id_order: 15142,
|
|
76
113
|
},
|
|
77
114
|
productToEdit: {
|
|
78
|
-
ArticleId:
|
|
79
|
-
idCategory: "
|
|
115
|
+
ArticleId: 39270,
|
|
116
|
+
idCategory: "697",
|
|
80
117
|
product: {
|
|
81
|
-
orderId:
|
|
82
|
-
|
|
83
|
-
datasheet_status: "
|
|
84
|
-
description_status: "FAP",
|
|
85
|
-
images_status: "FAP",
|
|
118
|
+
orderId: 15142,
|
|
119
|
+
status: "AA",
|
|
120
|
+
datasheet_status: "AA",
|
|
86
121
|
prio: "none",
|
|
87
122
|
version: 3,
|
|
88
|
-
|
|
123
|
+
description_status: "AA",
|
|
124
|
+
images_status: "AA",
|
|
125
|
+
brand: "Garnier",
|
|
126
|
+
retailerOrder: 0,
|
|
127
|
+
missing: {
|
|
128
|
+
datasheet: null,
|
|
129
|
+
descriptions: null,
|
|
130
|
+
images: null,
|
|
131
|
+
},
|
|
132
|
+
services: {
|
|
133
|
+
datasheets: 1,
|
|
134
|
+
descriptions: 1,
|
|
135
|
+
images: 1,
|
|
136
|
+
},
|
|
89
137
|
article: {
|
|
90
|
-
category:
|
|
91
|
-
|
|
92
|
-
|
|
138
|
+
category:
|
|
139
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
140
|
+
company_name: "GRUPO BRAHMA",
|
|
93
141
|
country: "México",
|
|
94
|
-
id_category: "
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
142
|
+
id_category: "697",
|
|
143
|
+
id_datasheet_especialist: 54,
|
|
144
|
+
id_datasheet_facilitator: 52,
|
|
145
|
+
id_description_especialist: 54,
|
|
146
|
+
id_description_facilitator: 52,
|
|
147
|
+
id_images_especialist: 55,
|
|
148
|
+
id_images_facilitator: 53,
|
|
149
|
+
id_order: 15142,
|
|
150
|
+
id_article: 39270,
|
|
151
|
+
id_auditor: 37,
|
|
152
|
+
name: "Acondicionador Garnier Fructis 650 ml",
|
|
153
|
+
timestamp: "2023-03-27T18:37:48.000Z",
|
|
154
|
+
upc: "750955287656712",
|
|
98
155
|
},
|
|
99
156
|
retailers: [
|
|
100
157
|
{
|
|
101
|
-
id:
|
|
102
|
-
name: "
|
|
158
|
+
id: 12,
|
|
159
|
+
name: "La Comer",
|
|
103
160
|
},
|
|
104
161
|
{
|
|
105
|
-
id:
|
|
106
|
-
name: "
|
|
162
|
+
id: 29,
|
|
163
|
+
name: "Farmacias del Ahorro",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
id: 63,
|
|
167
|
+
name: "DAX",
|
|
107
168
|
},
|
|
108
169
|
],
|
|
109
|
-
services: {
|
|
110
|
-
datasheets: 1,
|
|
111
|
-
descriptions: 1,
|
|
112
|
-
images: 1,
|
|
113
|
-
},
|
|
114
170
|
statusByRetailer: {
|
|
115
|
-
|
|
116
|
-
datasheet: "
|
|
117
|
-
description: "
|
|
118
|
-
images: "
|
|
171
|
+
12: {
|
|
172
|
+
datasheet: "AA",
|
|
173
|
+
description: "AA",
|
|
174
|
+
images: "AA",
|
|
175
|
+
},
|
|
176
|
+
29: {
|
|
177
|
+
datasheet: "AA",
|
|
178
|
+
description: "AA",
|
|
179
|
+
images: "AA",
|
|
180
|
+
},
|
|
181
|
+
63: {
|
|
182
|
+
datasheet: "AA",
|
|
183
|
+
description: "AA",
|
|
184
|
+
images: "AA",
|
|
119
185
|
},
|
|
120
186
|
},
|
|
121
|
-
|
|
122
|
-
id_article: 39336,
|
|
187
|
+
checked: false,
|
|
123
188
|
retailersAvailable: [
|
|
124
189
|
{
|
|
125
|
-
id:
|
|
126
|
-
name: "
|
|
190
|
+
id: 12,
|
|
191
|
+
name: "La Comer",
|
|
127
192
|
},
|
|
128
193
|
{
|
|
129
|
-
id:
|
|
130
|
-
name: "
|
|
194
|
+
id: 29,
|
|
195
|
+
name: "Farmacias del Ahorro",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: 63,
|
|
199
|
+
name: "DAX",
|
|
131
200
|
},
|
|
132
201
|
],
|
|
202
|
+
categoryName:
|
|
203
|
+
"Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
|
|
204
|
+
upc: "750955287656712",
|
|
205
|
+
id_article: 39270,
|
|
206
|
+
id_order: 15142,
|
|
133
207
|
},
|
|
134
208
|
},
|
|
135
209
|
location: {
|
|
@@ -138,90 +212,63 @@ ProviderProductEditionDefault.args = {
|
|
|
138
212
|
hash: "",
|
|
139
213
|
state: {
|
|
140
214
|
withChat: true,
|
|
215
|
+
chatType: "product_status",
|
|
216
|
+
origin: "RequestWithContentoh",
|
|
141
217
|
},
|
|
142
218
|
key: "24vwut",
|
|
143
219
|
},
|
|
144
220
|
user: {
|
|
145
|
-
id_user:
|
|
146
|
-
name: "
|
|
147
|
-
last_name: "
|
|
148
|
-
email: "
|
|
149
|
-
position: "
|
|
221
|
+
id_user: 28,
|
|
222
|
+
name: "Ismael",
|
|
223
|
+
last_name: "López",
|
|
224
|
+
email: "ilopez@contentoh.com",
|
|
225
|
+
position: "Test States",
|
|
150
226
|
telephone: "+523111366336",
|
|
151
227
|
country: "México",
|
|
152
|
-
id_company:
|
|
153
|
-
id_cognito: "
|
|
228
|
+
id_company: 1,
|
|
229
|
+
id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
|
|
154
230
|
birth_Date: null,
|
|
155
231
|
about_me: "",
|
|
156
232
|
zip_code: "",
|
|
157
233
|
address: "",
|
|
158
234
|
job: "",
|
|
159
|
-
id_stripe: "",
|
|
235
|
+
id_stripe: "cus_KuEt6R6vwmN09f",
|
|
160
236
|
id_role: 0,
|
|
161
237
|
active: 1,
|
|
162
|
-
is_retailer:
|
|
163
|
-
email_notify:
|
|
164
|
-
is_user_tech:
|
|
238
|
+
is_retailer: 0,
|
|
239
|
+
email_notify: 1,
|
|
240
|
+
is_user_tech: "ADMIN-AS",
|
|
165
241
|
membership: {
|
|
166
|
-
id:
|
|
167
|
-
start_date: "2022-
|
|
168
|
-
end_date: "2023-
|
|
169
|
-
planID:
|
|
170
|
-
plan: "
|
|
242
|
+
id: 76,
|
|
243
|
+
start_date: "2022-01-18T17:25:35.000Z",
|
|
244
|
+
end_date: "2023-01-18T17:25:35.000Z",
|
|
245
|
+
planID: 8,
|
|
246
|
+
plan: "prod_KtlhECVSFG2iro",
|
|
171
247
|
name: "Plan Pro",
|
|
172
|
-
user_limit: "
|
|
173
|
-
products_limit: "
|
|
174
|
-
type: "
|
|
248
|
+
user_limit: "20",
|
|
249
|
+
products_limit: "5000",
|
|
250
|
+
type: "Enterprise",
|
|
175
251
|
},
|
|
176
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
252
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
|
|
177
253
|
},
|
|
178
254
|
company: {
|
|
179
|
-
id_company:
|
|
180
|
-
trade_name: "
|
|
181
|
-
company_name: "
|
|
182
|
-
rfc: "
|
|
183
|
-
adress: "
|
|
184
|
-
about_company:
|
|
185
|
-
telephone:
|
|
186
|
-
web_site:
|
|
187
|
-
zip_code:
|
|
255
|
+
id_company: 1,
|
|
256
|
+
trade_name: "GRUPO BRAHMA",
|
|
257
|
+
company_name: "GRUPO BRAHMA",
|
|
258
|
+
rfc: "XAXX010101000",
|
|
259
|
+
adress: "AA",
|
|
260
|
+
about_company: "",
|
|
261
|
+
telephone: "",
|
|
262
|
+
web_site: "",
|
|
263
|
+
zip_code: "",
|
|
188
264
|
email: null,
|
|
189
|
-
social_link:
|
|
190
|
-
is_retailer:
|
|
191
|
-
financedRetailers: [
|
|
192
|
-
{
|
|
193
|
-
id: 68,
|
|
194
|
-
name: "The Home Depot Dropship",
|
|
195
|
-
country: "México",
|
|
196
|
-
id_region: 1,
|
|
197
|
-
active: 1,
|
|
198
|
-
},
|
|
199
|
-
],
|
|
265
|
+
social_link: "",
|
|
266
|
+
is_retailer: 0,
|
|
200
267
|
retailers: [
|
|
201
268
|
{
|
|
202
|
-
id:
|
|
203
|
-
name:
|
|
204
|
-
country:
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
id: 60,
|
|
208
|
-
name: "The Home Depot Resizing",
|
|
209
|
-
country: "México",
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
id: 61,
|
|
213
|
-
name: "Home Depot TAB",
|
|
214
|
-
country: "México",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: 68,
|
|
218
|
-
name: "The Home Depot Dropship",
|
|
219
|
-
country: "México",
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
id: 58,
|
|
223
|
-
name: "The Home Depot Golden",
|
|
224
|
-
country: "México",
|
|
269
|
+
id: null,
|
|
270
|
+
name: null,
|
|
271
|
+
country: null,
|
|
225
272
|
},
|
|
226
273
|
],
|
|
227
274
|
},
|