contentoh-components-library 21.1.25 → 21.1.28
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/ValidationPanel/index.js +4 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +4 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +5 -1
- package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +98 -108
- package/dist/components/pages/ProviderProductEdition/index.js +140 -56
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +56 -65
- package/dist/components/pages/RetailerProductEdition/index.js +118 -8
- package/package.json +1 -1
- package/src/components/atoms/ValidationPanel/index.js +4 -3
- package/src/components/molecules/AvatarAndValidation/index.js +4 -0
- package/src/components/organisms/FullProductNameHeader/index.js +4 -0
- package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +104 -106
- package/src/components/pages/ProviderProductEdition/index.js +94 -20
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +56 -67
- package/src/components/pages/RetailerProductEdition/index.js +102 -1
|
@@ -16,136 +16,134 @@ ProviderProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.
|
|
19
|
+
"eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8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-
orderId:
|
|
25
|
-
|
|
24
|
+
orderId: 55,
|
|
25
|
+
article_status: "AP",
|
|
26
26
|
datasheet_status: "AP",
|
|
27
|
-
prio: "none",
|
|
28
|
-
version: 7,
|
|
29
27
|
description_status: "AP",
|
|
30
28
|
images_status: "AP",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
datasheet: null,
|
|
35
|
-
descriptions: null,
|
|
36
|
-
images: null,
|
|
37
|
-
},
|
|
38
|
-
services: {
|
|
39
|
-
datasheets: 1,
|
|
40
|
-
descriptions: 1,
|
|
41
|
-
images: 1,
|
|
42
|
-
},
|
|
29
|
+
prio: "none",
|
|
30
|
+
version: 2,
|
|
31
|
+
brand: null,
|
|
43
32
|
article: {
|
|
44
|
-
category: "
|
|
45
|
-
company_name: "
|
|
33
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
34
|
+
company_name: "THD Proveedor",
|
|
46
35
|
country: "México",
|
|
47
|
-
id_category: "
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
id_description_facilitator: 52,
|
|
52
|
-
id_images_especialist: 55,
|
|
53
|
-
id_images_facilitator: 53,
|
|
54
|
-
id_order: 64,
|
|
55
|
-
id_article: 35707,
|
|
56
|
-
id_auditor: 37,
|
|
57
|
-
name: "chetos",
|
|
58
|
-
upc: "1010101010",
|
|
36
|
+
id_category: "2143",
|
|
37
|
+
id_article: 55118,
|
|
38
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
39
|
+
upc: "145582",
|
|
59
40
|
},
|
|
60
41
|
retailers: [
|
|
61
42
|
{
|
|
62
|
-
id:
|
|
63
|
-
name: "
|
|
43
|
+
id: 58,
|
|
44
|
+
name: "The Home Depot Golden",
|
|
64
45
|
},
|
|
65
46
|
{
|
|
66
|
-
id:
|
|
67
|
-
name: "
|
|
47
|
+
id: 59,
|
|
48
|
+
name: "The Home Depot Platinum",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 60,
|
|
52
|
+
name: "The Home Depot Resizing",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 61,
|
|
56
|
+
name: "Home Depot TAB",
|
|
68
57
|
},
|
|
69
58
|
],
|
|
59
|
+
services: {
|
|
60
|
+
datasheets: 1,
|
|
61
|
+
descriptions: 1,
|
|
62
|
+
images: 1,
|
|
63
|
+
},
|
|
64
|
+
id_article: 55118,
|
|
70
65
|
retailersAvailable: [
|
|
71
66
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
67
|
+
id: 58,
|
|
68
|
+
name: "The Home Depot Golden",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 59,
|
|
72
|
+
name: "The Home Depot Platinum",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: 60,
|
|
76
|
+
name: "The Home Depot Resizing",
|
|
74
77
|
},
|
|
75
78
|
{
|
|
76
|
-
id:
|
|
77
|
-
name: "
|
|
79
|
+
id: 61,
|
|
80
|
+
name: "Home Depot TAB",
|
|
78
81
|
},
|
|
79
82
|
],
|
|
80
|
-
categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
81
|
-
upc: "1010101010",
|
|
82
|
-
id_article: 35707,
|
|
83
|
-
id_order: 64,
|
|
84
83
|
},
|
|
85
84
|
productToEdit: {
|
|
86
|
-
ArticleId:
|
|
87
|
-
idCategory: "
|
|
85
|
+
ArticleId: 55118,
|
|
86
|
+
idCategory: "2143",
|
|
88
87
|
product: {
|
|
89
|
-
orderId:
|
|
90
|
-
|
|
88
|
+
orderId: 55,
|
|
89
|
+
article_status: "AP",
|
|
91
90
|
datasheet_status: "AP",
|
|
92
|
-
prio: "none",
|
|
93
|
-
version: 7,
|
|
94
91
|
description_status: "AP",
|
|
95
92
|
images_status: "AP",
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
datasheet: null,
|
|
100
|
-
descriptions: null,
|
|
101
|
-
images: null,
|
|
102
|
-
},
|
|
103
|
-
services: {
|
|
104
|
-
datasheets: 1,
|
|
105
|
-
descriptions: 1,
|
|
106
|
-
images: 1,
|
|
107
|
-
},
|
|
93
|
+
prio: "none",
|
|
94
|
+
version: 2,
|
|
95
|
+
brand: null,
|
|
108
96
|
article: {
|
|
109
|
-
category: "
|
|
110
|
-
company_name: "
|
|
97
|
+
category: "ILUMINACIÓN|FOCOS|FOCOS",
|
|
98
|
+
company_name: "THD Proveedor",
|
|
111
99
|
country: "México",
|
|
112
|
-
id_category: "
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
id_description_facilitator: 52,
|
|
117
|
-
id_images_especialist: 55,
|
|
118
|
-
id_images_facilitator: 53,
|
|
119
|
-
id_order: 64,
|
|
120
|
-
id_article: 35707,
|
|
121
|
-
id_auditor: 37,
|
|
122
|
-
name: "chetos",
|
|
123
|
-
upc: "1010101010",
|
|
100
|
+
id_category: "2143",
|
|
101
|
+
id_article: 55118,
|
|
102
|
+
name: "FOCO BLUETOOTH SPOT PHILIPS 6 WATTS 300 LÚMENES MULTICOLOR",
|
|
103
|
+
upc: "145582",
|
|
124
104
|
},
|
|
125
105
|
retailers: [
|
|
126
106
|
{
|
|
127
|
-
id:
|
|
128
|
-
name: "
|
|
107
|
+
id: 58,
|
|
108
|
+
name: "The Home Depot Golden",
|
|
129
109
|
},
|
|
130
110
|
{
|
|
131
|
-
id:
|
|
132
|
-
name: "
|
|
111
|
+
id: 59,
|
|
112
|
+
name: "The Home Depot Platinum",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
id: 60,
|
|
116
|
+
name: "The Home Depot Resizing",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 61,
|
|
120
|
+
name: "Home Depot TAB",
|
|
133
121
|
},
|
|
134
122
|
],
|
|
123
|
+
services: {
|
|
124
|
+
datasheets: 1,
|
|
125
|
+
descriptions: 1,
|
|
126
|
+
images: 1,
|
|
127
|
+
},
|
|
128
|
+
id_article: 55118,
|
|
135
129
|
retailersAvailable: [
|
|
136
130
|
{
|
|
137
|
-
id:
|
|
138
|
-
name: "
|
|
131
|
+
id: 58,
|
|
132
|
+
name: "The Home Depot Golden",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: 59,
|
|
136
|
+
name: "The Home Depot Platinum",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 60,
|
|
140
|
+
name: "The Home Depot Resizing",
|
|
139
141
|
},
|
|
140
142
|
{
|
|
141
|
-
id:
|
|
142
|
-
name: "
|
|
143
|
+
id: 61,
|
|
144
|
+
name: "Home Depot TAB",
|
|
143
145
|
},
|
|
144
146
|
],
|
|
145
|
-
categoryName: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
146
|
-
upc: "1010101010",
|
|
147
|
-
id_article: 35707,
|
|
148
|
-
id_order: 64,
|
|
149
147
|
},
|
|
150
148
|
},
|
|
151
149
|
location: {
|
|
@@ -153,36 +151,36 @@ ProviderProductEditionDefault.args = {
|
|
|
153
151
|
state: { origin: "Contentoh" },
|
|
154
152
|
},
|
|
155
153
|
user: {
|
|
156
|
-
id_user:
|
|
157
|
-
name: "
|
|
158
|
-
last_name: "
|
|
159
|
-
email: "
|
|
160
|
-
position: "
|
|
154
|
+
id_user: 59,
|
|
155
|
+
name: "The Home",
|
|
156
|
+
last_name: "Depot",
|
|
157
|
+
email: "cadena.ismael@allfreemail.net",
|
|
158
|
+
position: "Admin",
|
|
161
159
|
telephone: "+523111366336",
|
|
162
160
|
country: "México",
|
|
163
|
-
id_company:
|
|
164
|
-
id_cognito: "
|
|
161
|
+
id_company: 7,
|
|
162
|
+
id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
|
|
165
163
|
birth_Date: null,
|
|
166
164
|
about_me: null,
|
|
167
165
|
zip_code: null,
|
|
168
166
|
address: null,
|
|
169
167
|
job: null,
|
|
170
|
-
id_stripe: "
|
|
168
|
+
id_stripe: "",
|
|
171
169
|
id_role: 0,
|
|
172
170
|
active: 1,
|
|
173
|
-
is_retailer:
|
|
174
|
-
email_notify:
|
|
171
|
+
is_retailer: 0,
|
|
172
|
+
email_notify: 1,
|
|
175
173
|
membership: {
|
|
176
|
-
id:
|
|
177
|
-
start_date: "
|
|
178
|
-
end_date: "
|
|
179
|
-
planID:
|
|
180
|
-
plan: "
|
|
181
|
-
name: "Plan
|
|
182
|
-
user_limit: "
|
|
183
|
-
products_limit: "
|
|
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",
|
|
184
182
|
type: "Enterprise",
|
|
185
183
|
},
|
|
186
|
-
src: "https://content-management-profile.s3.amazonaws.com/id-
|
|
184
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1656113146885",
|
|
187
185
|
},
|
|
188
186
|
};
|
|
@@ -209,6 +209,7 @@ export const ProviderProductEdition = ({
|
|
|
209
209
|
const loadData = async () => {
|
|
210
210
|
const services = await getRetailerServices(
|
|
211
211
|
product?.id_article || product?.article?.id_article,
|
|
212
|
+
product?.article?.company_name || product?.categoryName,
|
|
212
213
|
parseInt(product?.article?.id_category || product?.id_category),
|
|
213
214
|
product?.version
|
|
214
215
|
);
|
|
@@ -826,6 +827,7 @@ export const ProviderProductEdition = ({
|
|
|
826
827
|
},
|
|
827
828
|
});
|
|
828
829
|
setProduct(productTemp);
|
|
830
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
829
831
|
setProductEdit({
|
|
830
832
|
ArticleId: productTemp.id_article,
|
|
831
833
|
idCategory: productTemp.article.id_category,
|
|
@@ -847,10 +849,10 @@ export const ProviderProductEdition = ({
|
|
|
847
849
|
|
|
848
850
|
const validateAll = async (result) => {
|
|
849
851
|
try {
|
|
852
|
+
setLoading(true);
|
|
850
853
|
const evaluationArray = [];
|
|
851
854
|
const sendAll = [];
|
|
852
855
|
const conceptArray = ["description", "datasheet", "images"];
|
|
853
|
-
console.log(servicesData);
|
|
854
856
|
|
|
855
857
|
servicesData?.forEach((ret) => {
|
|
856
858
|
let data = {
|
|
@@ -869,7 +871,9 @@ export const ProviderProductEdition = ({
|
|
|
869
871
|
);
|
|
870
872
|
});
|
|
871
873
|
|
|
872
|
-
|
|
874
|
+
await Promise.all(evaluationArray);
|
|
875
|
+
|
|
876
|
+
conceptArray?.forEach((concept) => {
|
|
873
877
|
let data = {
|
|
874
878
|
articleId: product.id_article,
|
|
875
879
|
orderId: product.id_order ?? product.orderId,
|
|
@@ -884,8 +888,32 @@ export const ProviderProductEdition = ({
|
|
|
884
888
|
);
|
|
885
889
|
});
|
|
886
890
|
|
|
887
|
-
Promise.all(
|
|
888
|
-
|
|
891
|
+
await Promise.all(sendAll);
|
|
892
|
+
const productTemp = product;
|
|
893
|
+
productTemp.article_status = `${result}C`;
|
|
894
|
+
productTemp.datasheet_status =
|
|
895
|
+
productTemp.datasheet_status === "NA" ? "NA" : `${result}C`;
|
|
896
|
+
productTemp.description_status =
|
|
897
|
+
productTemp.description_status === "NA" ? "NA" : `${result}C`;
|
|
898
|
+
productTemp.images_status =
|
|
899
|
+
productTemp.images_status === "NA" ? "NA" : `${result}C`;
|
|
900
|
+
setProduct(productTemp);
|
|
901
|
+
sessionStorage.setItem("productSelected", JSON.stringify(productTemp));
|
|
902
|
+
setProductEdit({
|
|
903
|
+
ArticleId: productTemp.id_article,
|
|
904
|
+
idCategory: productTemp.article.id_category,
|
|
905
|
+
product: productTemp,
|
|
906
|
+
});
|
|
907
|
+
sessionStorage.setItem(
|
|
908
|
+
"productEdit",
|
|
909
|
+
JSON.stringify({
|
|
910
|
+
ArticleId: productTemp.id_article,
|
|
911
|
+
idCategory: productTemp.article.id_category,
|
|
912
|
+
product: productTemp,
|
|
913
|
+
})
|
|
914
|
+
);
|
|
915
|
+
|
|
916
|
+
loadData();
|
|
889
917
|
} catch (error) {
|
|
890
918
|
console.log(error);
|
|
891
919
|
}
|
|
@@ -945,14 +973,6 @@ export const ProviderProductEdition = ({
|
|
|
945
973
|
setSaving(loading);
|
|
946
974
|
}, [loading]);
|
|
947
975
|
|
|
948
|
-
console.log(
|
|
949
|
-
user.is_retailer === 1,
|
|
950
|
-
product.id_order || product.orderId,
|
|
951
|
-
isRevision(),
|
|
952
|
-
getSectionStatus(),
|
|
953
|
-
"XD"
|
|
954
|
-
);
|
|
955
|
-
|
|
956
976
|
return (
|
|
957
977
|
<Container headerTop={headerTop}>
|
|
958
978
|
<HeaderTop setHeaderTop={setHeaderTop} />
|
|
@@ -986,14 +1006,68 @@ export const ProviderProductEdition = ({
|
|
|
986
1006
|
setActiveRetailer={setActiveRetailer}
|
|
987
1007
|
showValidationButtons={isRevision() && getSectionStatus()}
|
|
988
1008
|
servicesData={servicesData ? servicesData : null}
|
|
989
|
-
showApproveRejectAll={
|
|
990
|
-
|
|
991
|
-
(
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
1009
|
+
showApproveRejectAll={isRevision() && getSectionStatus()}
|
|
1010
|
+
approveAll={() => {
|
|
1011
|
+
if (
|
|
1012
|
+
originProp === "RequestWithoutContentoh" &&
|
|
1013
|
+
!user.is_retailer &&
|
|
1014
|
+
(!product.id_order || !product.orderId)
|
|
1015
|
+
) {
|
|
1016
|
+
setDataGenericModal((prev) => ({
|
|
1017
|
+
...prev,
|
|
1018
|
+
button2: {
|
|
1019
|
+
name: "Continuar",
|
|
1020
|
+
action: () => evaluationToRetailer("A"),
|
|
1021
|
+
},
|
|
1022
|
+
}));
|
|
1023
|
+
setShowGenericModal(true);
|
|
1024
|
+
} else {
|
|
1025
|
+
if (user.is_retailer) {
|
|
1026
|
+
if (product.id_order || product.orderId) {
|
|
1027
|
+
validateAll("A");
|
|
1028
|
+
} else {
|
|
1029
|
+
setDataGenericModal((prev) => ({
|
|
1030
|
+
...prev,
|
|
1031
|
+
button2: {
|
|
1032
|
+
name: "Continuar",
|
|
1033
|
+
action: () => evaluationToRetailer("A"),
|
|
1034
|
+
},
|
|
1035
|
+
}));
|
|
1036
|
+
setShowGenericModal(true);
|
|
1037
|
+
}
|
|
1038
|
+
} else {
|
|
1039
|
+
validateAll("A");
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}}
|
|
1043
|
+
rejectAll={() => {
|
|
1044
|
+
if (
|
|
1045
|
+
originProp === "RequestWithoutContentoh" &&
|
|
1046
|
+
!user.is_retailer &&
|
|
1047
|
+
(!product.id_order || !product.orderId)
|
|
1048
|
+
) {
|
|
1049
|
+
return;
|
|
1050
|
+
} else {
|
|
1051
|
+
if (user.is_retailer) {
|
|
1052
|
+
if (product.id_order || product.orderId) {
|
|
1053
|
+
validateAll("R");
|
|
1054
|
+
setModalViewError(true);
|
|
1055
|
+
} else {
|
|
1056
|
+
setDataGenericModal((prev) => ({
|
|
1057
|
+
...prev,
|
|
1058
|
+
button2: {
|
|
1059
|
+
name: "Continuar",
|
|
1060
|
+
action: () => evaluationToRetailer("R"),
|
|
1061
|
+
},
|
|
1062
|
+
}));
|
|
1063
|
+
setShowGenericModal(true);
|
|
1064
|
+
}
|
|
1065
|
+
} else {
|
|
1066
|
+
validateAll("R");
|
|
1067
|
+
setModalViewError(true);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}}
|
|
997
1071
|
approve={() => {
|
|
998
1072
|
if (
|
|
999
1073
|
origin[activeTab] === "RequestWithoutContentoh" &&
|
|
@@ -16,110 +16,99 @@ RetailerProductEditionDefault.args = {
|
|
|
16
16
|
Imágenes: false,
|
|
17
17
|
},
|
|
18
18
|
token:
|
|
19
|
-
"
|
|
20
|
-
articleId: 238,
|
|
21
|
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rhiw7XXkfQF20w22f4o8VFW1u0cWudFBYYm6tXlKVEetw-NEu94Mnip0BtQQUU6rFjz5hQM0gWYsvOMmSX3JKQWl4thirzTOqJxrKebFeWnUMs5D3hlFpKeBSKodgB6lLw2522SJmxWXmGCaDOVSMUP9LqB9PsboSOBfSeQpkbIZqd9iNWbrFCusGhnoRrQABucqFwlQ6KPHYTPaOOux-X3pf6i5woX4g",
|
|
23
20
|
productSelected: {
|
|
24
21
|
services: {
|
|
25
22
|
datasheets: 1,
|
|
26
23
|
descriptions: 1,
|
|
27
24
|
images: 1,
|
|
28
25
|
},
|
|
29
|
-
orderId:
|
|
30
|
-
status: "
|
|
31
|
-
datasheet_status: "
|
|
32
|
-
prio: "
|
|
33
|
-
version:
|
|
34
|
-
description_status: "
|
|
35
|
-
images_status: "
|
|
26
|
+
orderId: 64,
|
|
27
|
+
status: "AF",
|
|
28
|
+
datasheet_status: "AF",
|
|
29
|
+
prio: "none",
|
|
30
|
+
version: 7,
|
|
31
|
+
description_status: "AF",
|
|
32
|
+
images_status: "AF",
|
|
36
33
|
article: {
|
|
37
|
-
id_article:
|
|
38
|
-
id_category: "
|
|
39
|
-
name: "
|
|
40
|
-
upc: "
|
|
41
|
-
timestamp: "
|
|
42
|
-
id_user:
|
|
43
|
-
status: "
|
|
34
|
+
id_article: 35707,
|
|
35
|
+
id_category: "41",
|
|
36
|
+
name: "chetos",
|
|
37
|
+
upc: "1010101010",
|
|
38
|
+
timestamp: "2022-06-16T18:12:42.000Z",
|
|
39
|
+
id_user: 28,
|
|
40
|
+
status: "NULL",
|
|
44
41
|
active: 1,
|
|
45
|
-
company_id:
|
|
46
|
-
company_name: "
|
|
47
|
-
country: "
|
|
48
|
-
id_order:
|
|
49
|
-
id_datasheet_especialist:
|
|
50
|
-
id_datasheet_facilitator:
|
|
51
|
-
id_description_especialist:
|
|
52
|
-
id_description_facilitator:
|
|
53
|
-
id_images_especialist:
|
|
54
|
-
id_images_facilitator:
|
|
55
|
-
id_auditor:
|
|
42
|
+
company_id: 1,
|
|
43
|
+
company_name: "COMPANY DEV",
|
|
44
|
+
country: "México",
|
|
45
|
+
id_order: 64,
|
|
46
|
+
id_datasheet_especialist: 54,
|
|
47
|
+
id_datasheet_facilitator: 52,
|
|
48
|
+
id_description_especialist: 54,
|
|
49
|
+
id_description_facilitator: 52,
|
|
50
|
+
id_images_especialist: 55,
|
|
51
|
+
id_images_facilitator: 53,
|
|
52
|
+
id_auditor: 30,
|
|
56
53
|
id_recepcionist: null,
|
|
57
|
-
category:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
missingImages: -4,
|
|
54
|
+
category: "ABARROTES|BOTANAS, GOLOSINAS Y CHOCOLATES|BOTANAS",
|
|
55
|
+
missingAttributes: null,
|
|
56
|
+
missingDescriptions: null,
|
|
57
|
+
missingImages: null,
|
|
62
58
|
},
|
|
63
59
|
retailers: [
|
|
64
60
|
{
|
|
65
|
-
id:
|
|
66
|
-
name: "
|
|
61
|
+
id: 3,
|
|
62
|
+
name: "Sam´s Club",
|
|
67
63
|
country: "México",
|
|
68
64
|
id_region: 1,
|
|
69
65
|
active: 1,
|
|
70
66
|
},
|
|
71
67
|
{
|
|
72
|
-
id:
|
|
73
|
-
name: "
|
|
74
|
-
country: "México",
|
|
75
|
-
id_region: 1,
|
|
76
|
-
active: 1,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: 29,
|
|
80
|
-
name: "Farmacias del Ahorro",
|
|
68
|
+
id: 8,
|
|
69
|
+
name: "Fragua",
|
|
81
70
|
country: "México",
|
|
82
71
|
id_region: 1,
|
|
83
72
|
active: 1,
|
|
84
73
|
},
|
|
85
74
|
],
|
|
86
|
-
country: "
|
|
87
|
-
upc: "
|
|
75
|
+
country: "México",
|
|
76
|
+
upc: "1010101010",
|
|
88
77
|
},
|
|
89
78
|
location: {
|
|
90
79
|
product: { articleId: 109485, versionId: 3 },
|
|
91
80
|
},
|
|
92
81
|
user: {
|
|
93
|
-
id_user:
|
|
94
|
-
name: "
|
|
95
|
-
last_name: "
|
|
96
|
-
email: "
|
|
97
|
-
position: "
|
|
82
|
+
id_user: 30,
|
|
83
|
+
name: "Admin",
|
|
84
|
+
last_name: "Ulises",
|
|
85
|
+
email: "salmeron.5@hotmail.com",
|
|
86
|
+
position: "Admin",
|
|
98
87
|
telephone: null,
|
|
99
|
-
country:
|
|
100
|
-
id_company:
|
|
101
|
-
id_cognito: "
|
|
88
|
+
country: "México",
|
|
89
|
+
id_company: 2,
|
|
90
|
+
id_cognito: "c94a7305-9365-46ff-a423-4b4bc3b8b180",
|
|
102
91
|
birth_Date: null,
|
|
103
92
|
about_me: null,
|
|
104
93
|
zip_code: null,
|
|
105
94
|
address: null,
|
|
106
95
|
job: null,
|
|
107
96
|
id_stripe: null,
|
|
108
|
-
id_role:
|
|
97
|
+
id_role: 6,
|
|
109
98
|
active: 1,
|
|
110
99
|
is_retailer: 0,
|
|
111
|
-
email_notify:
|
|
100
|
+
email_notify: 0,
|
|
112
101
|
membership: {
|
|
113
|
-
id:
|
|
114
|
-
start_date: "
|
|
115
|
-
end_date: "
|
|
116
|
-
planID:
|
|
117
|
-
plan: "
|
|
118
|
-
name: "Plan
|
|
119
|
-
user_limit: "
|
|
120
|
-
products_limit: "
|
|
121
|
-
type: "
|
|
102
|
+
id: 2,
|
|
103
|
+
start_date: "2021-11-05T02:35:12.000Z",
|
|
104
|
+
end_date: "2022-11-05T02:34:49.000Z",
|
|
105
|
+
planID: 1,
|
|
106
|
+
plan: "prod_KtkvuFFLpOdP6e",
|
|
107
|
+
name: "Plan Free",
|
|
108
|
+
user_limit: "1",
|
|
109
|
+
products_limit: "3",
|
|
110
|
+
type: "PyMES",
|
|
122
111
|
},
|
|
123
|
-
src: "https://content-management-profile
|
|
112
|
+
src: "https://content-management-profile.s3.amazonaws.com/id-30/30.png?1656375350443",
|
|
124
113
|
},
|
|
125
114
|
};
|