contentoh-components-library 21.3.67 → 21.3.68

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.
@@ -36,30 +36,27 @@ ProviderProductEditionDefault.args = {
36
36
  category: 846,
37
37
  version: 2,
38
38
  productSelected: {
39
- orderId: 15165,
40
- article_status: "AAC",
41
- datasheet_status: "AAC",
42
- description_status: "FAP",
43
- images_status: "FAP",
39
+ orderId: 15195,
40
+ article_status: "AP",
41
+ datasheet_status: "AP",
42
+ description_status: "AP",
43
+ images_status: "AP",
44
44
  prio: "none",
45
45
  version: 3,
46
46
  brand: null,
47
47
  article: {
48
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
49
- company_name: "Demo",
50
- id_company: 923,
48
+ category: "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
49
+ company_name: "Financiado Bodega",
50
+ id_company: 912,
51
51
  country: "México",
52
- id_category: "2366",
53
- id_article: 39336,
54
- name: "Prueba Auditoria",
55
- upc: "100030124"
52
+ id_category: "4004",
53
+ id_article: 39372,
54
+ name: "PRUEBA04BA",
55
+ upc: "001213"
56
56
  },
57
57
  retailers: [{
58
- id: 58,
59
- name: "The Home Depot Golden"
60
- }, {
61
- id: 68,
62
- name: "The Home Depot Dropship"
58
+ id: 70,
59
+ name: "Bodega Aurrera"
63
60
  }],
64
61
  services: {
65
62
  datasheets: 1,
@@ -67,50 +64,44 @@ ProviderProductEditionDefault.args = {
67
64
  images: 1
68
65
  },
69
66
  statusByRetailer: {
70
- 58: {
71
- datasheet: "AAC",
72
- description: "FAP",
73
- images: "FAP"
67
+ 70: {
68
+ datasheet: "AP",
69
+ description: "AP",
70
+ images: "AP"
74
71
  }
75
72
  },
76
- retailersWithService: ["58"],
77
- id_article: 39336,
73
+ retailersWithService: ["70"],
74
+ id_article: 39372,
78
75
  retailersAvailable: [{
79
- id: 58,
80
- name: "The Home Depot Golden"
81
- }, {
82
- id: 68,
83
- name: "The Home Depot Dropship"
76
+ id: 70,
77
+ name: "Bodega Aurrera"
84
78
  }]
85
79
  },
86
80
  productToEdit: {
87
- ArticleId: 39336,
88
- idCategory: "2366",
81
+ ArticleId: 39372,
82
+ idCategory: "4004",
89
83
  product: {
90
- orderId: 15165,
91
- article_status: "AAC",
92
- datasheet_status: "AAC",
93
- description_status: "FAP",
94
- images_status: "FAP",
84
+ orderId: 15195,
85
+ article_status: "AP",
86
+ datasheet_status: "AP",
87
+ description_status: "AP",
88
+ images_status: "AP",
95
89
  prio: "none",
96
90
  version: 3,
97
91
  brand: null,
98
92
  article: {
99
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
100
- company_name: "Demo",
101
- id_company: 923,
93
+ category: "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
94
+ company_name: "Financiado Bodega",
95
+ id_company: 912,
102
96
  country: "México",
103
- id_category: "2366",
104
- id_article: 39336,
105
- name: "Prueba Auditoria",
106
- upc: "100030124"
97
+ id_category: "4004",
98
+ id_article: 39372,
99
+ name: "PRUEBA04BA",
100
+ upc: "001213"
107
101
  },
108
102
  retailers: [{
109
- id: 58,
110
- name: "The Home Depot Golden"
111
- }, {
112
- id: 68,
113
- name: "The Home Depot Dropship"
103
+ id: 70,
104
+ name: "Bodega Aurrera"
114
105
  }],
115
106
  services: {
116
107
  datasheets: 1,
@@ -118,20 +109,17 @@ ProviderProductEditionDefault.args = {
118
109
  images: 1
119
110
  },
120
111
  statusByRetailer: {
121
- 58: {
122
- datasheet: "AAC",
123
- description: "FAP",
124
- images: "FAP"
112
+ 70: {
113
+ datasheet: "AP",
114
+ description: "AP",
115
+ images: "AP"
125
116
  }
126
117
  },
127
- retailersWithService: ["58"],
128
- id_article: 39336,
118
+ retailersWithService: ["70"],
119
+ id_article: 39372,
129
120
  retailersAvailable: [{
130
- id: 58,
131
- name: "The Home Depot Golden"
132
- }, {
133
- id: 68,
134
- name: "The Home Depot Dropship"
121
+ id: 70,
122
+ name: "Bodega Aurrera"
135
123
  }]
136
124
  }
137
125
  },
@@ -140,83 +128,65 @@ ProviderProductEditionDefault.args = {
140
128
  search: "",
141
129
  hash: "",
142
130
  state: {
143
- withChat: true
131
+ origin: "RequestWithContentoh"
144
132
  },
145
133
  key: "24vwut"
146
134
  },
147
135
  user: {
148
- id_user: 59,
149
- name: "Cadena",
150
- last_name: "Comercial",
151
- email: "cadena.ismael@allfreemail.net",
152
- position: "Admin",
153
- telephone: "+523111366336",
136
+ id_user: 132,
137
+ name: "Bodega",
138
+ last_name: "Aurrera",
139
+ email: "cadenabodega@allfreemail.net",
140
+ position: "TI",
141
+ telephone: "+529999999999",
154
142
  country: "México",
155
- id_company: 817,
156
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
143
+ id_company: 912,
144
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
157
145
  birth_Date: null,
158
- about_me: "",
159
- zip_code: "",
160
- address: "",
161
- job: "",
162
- id_stripe: "",
146
+ about_me: null,
147
+ zip_code: null,
148
+ address: null,
149
+ job: null,
150
+ id_stripe: null,
163
151
  id_role: 0,
164
152
  active: 1,
165
153
  is_retailer: 1,
166
- email_notify: 0,
154
+ email_notify: 1,
167
155
  is_user_tech: null,
168
156
  membership: {
169
- id: 47,
170
- start_date: "2022-05-25T14:31:12.000Z",
171
- end_date: "2023-05-25T14:31:12.000Z",
172
- planID: 5,
173
- plan: "prod_Ktl6B5Ou2gqTB2",
157
+ id: 101,
158
+ start_date: "2022-12-22T19:16:53.000Z",
159
+ end_date: "2023-12-22T19:16:53.000Z",
160
+ planID: 8,
161
+ plan: "prod_KtlhECVSFG2iro",
174
162
  name: "Plan Pro",
175
- user_limit: "5",
176
- products_limit: "500",
177
- type: "PyMES"
163
+ user_limit: "20",
164
+ products_limit: "5000",
165
+ type: "Enterprise"
178
166
  },
179
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497"
167
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1685370125086"
180
168
  },
181
169
  company: {
182
- id_company: 817,
183
- trade_name: "Retailer acc",
184
- company_name: "Retailer acc",
185
- rfc: "ASER12345",
186
- adress: "Av. Insurgentes",
170
+ id_company: 912,
171
+ trade_name: "Financiado Bodega",
172
+ company_name: "Bodega",
173
+ rfc: "9395jwhs",
174
+ adress: "Toluca",
187
175
  about_company: null,
188
176
  telephone: null,
189
177
  web_site: null,
190
178
  zip_code: null,
191
179
  email: null,
192
180
  social_link: null,
193
- is_retailer: 1,
181
+ is_retailer: 0,
194
182
  financedRetailers: [{
195
- id: 68,
196
- name: "The Home Depot Dropship",
197
- country: "México",
198
- id_region: 1,
199
- active: 1
183
+ id: 70,
184
+ name: "Bodega Aurrera",
185
+ country: "México"
200
186
  }],
201
187
  retailers: [{
202
- id: 59,
203
- name: "The Home Depot Platinum",
204
- country: "México"
205
- }, {
206
- id: 60,
207
- name: "The Home Depot Resizing",
208
- country: "México"
209
- }, {
210
- id: 61,
211
- name: "Home Depot TAB",
212
- country: "México"
213
- }, {
214
- id: 68,
215
- name: "The Home Depot Dropship",
216
- country: "México"
217
- }, {
218
- id: 58,
219
- name: "The Home Depot Golden",
188
+ id: 70,
189
+ name: "Bodega Aurrera",
220
190
  country: "México"
221
191
  }]
222
192
  },
@@ -1985,6 +1985,10 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1985
1985
  }];
1986
1986
 
1987
1987
  var sendToEvaluation = function sendToEvaluation(result) {
1988
+ console.log({
1989
+ result: result
1990
+ });
1991
+
1988
1992
  if (result === "A") {
1989
1993
  if (origin[activeTab] === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
1990
1994
  setDataGenericModal(function (prev) {
@@ -2018,7 +2022,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2018
2022
  sendEvaluation("A");
2019
2023
  }
2020
2024
  } else {
2021
- if (originProp === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2025
+ if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2022
2026
  return;
2023
2027
  } else if (user.is_retailer) {
2024
2028
  if (product.id_order || product.orderId) {
@@ -2089,7 +2093,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2089
2093
  servicesData: servicesData ? servicesData : null,
2090
2094
  showApproveRejectAll: isRevision() && getSectionStatus(),
2091
2095
  approveAll: function approveAll() {
2092
- if (originProp === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2096
+ if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2093
2097
  setDataGenericModal(function (prev) {
2094
2098
  return (0, _objectSpread3.default)((0, _objectSpread3.default)({}, prev), {}, {
2095
2099
  button2: {
@@ -2122,7 +2126,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
2122
2126
  }
2123
2127
  },
2124
2128
  rejectAll: function rejectAll() {
2125
- if (originProp === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2129
+ if (origin === "RequestWithoutContentoh" && !user.is_retailer && (!product.id_order || !product.orderId)) {
2126
2130
  return;
2127
2131
  } else if (user.is_retailer) {
2128
2132
  if (product.id_order || product.orderId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.3.67",
3
+ "version": "21.3.68",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -72,4 +72,4 @@ export const AvatarAndValidation = ({
72
72
  )}
73
73
  </Container>
74
74
  );
75
- };
75
+ };
@@ -21,32 +21,29 @@ ProviderProductEditionDefault.args = {
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- orderId: 15165,
25
- article_status: "AAC",
26
- datasheet_status: "AAC",
27
- description_status: "FAP",
28
- images_status: "FAP",
24
+ orderId: 15195,
25
+ article_status: "AP",
26
+ datasheet_status: "AP",
27
+ description_status: "AP",
28
+ images_status: "AP",
29
29
  prio: "none",
30
30
  version: 3,
31
31
  brand: null,
32
32
  article: {
33
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
34
- company_name: "Demo",
35
- id_company: 923,
33
+ category:
34
+ "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
35
+ company_name: "Financiado Bodega",
36
+ id_company: 912,
36
37
  country: "México",
37
- id_category: "2366",
38
- id_article: 39336,
39
- name: "Prueba Auditoria",
40
- upc: "100030124",
38
+ id_category: "4004",
39
+ id_article: 39372,
40
+ name: "PRUEBA04BA",
41
+ upc: "001213",
41
42
  },
42
43
  retailers: [
43
44
  {
44
- id: 58,
45
- name: "The Home Depot Golden",
46
- },
47
- {
48
- id: 68,
49
- name: "The Home Depot Dropship",
45
+ id: 70,
46
+ name: "Bodega Aurrera",
50
47
  },
51
48
  ],
52
49
  services: {
@@ -55,55 +52,48 @@ ProviderProductEditionDefault.args = {
55
52
  images: 1,
56
53
  },
57
54
  statusByRetailer: {
58
- 58: {
59
- datasheet: "AAC",
60
- description: "FAP",
61
- images: "FAP",
55
+ 70: {
56
+ datasheet: "AP",
57
+ description: "AP",
58
+ images: "AP",
62
59
  },
63
60
  },
64
- retailersWithService: ["58"],
65
- id_article: 39336,
61
+ retailersWithService: ["70"],
62
+ id_article: 39372,
66
63
  retailersAvailable: [
67
64
  {
68
- id: 58,
69
- name: "The Home Depot Golden",
70
- },
71
- {
72
- id: 68,
73
- name: "The Home Depot Dropship",
65
+ id: 70,
66
+ name: "Bodega Aurrera",
74
67
  },
75
68
  ],
76
69
  },
77
70
  productToEdit: {
78
- ArticleId: 39336,
79
- idCategory: "2366",
71
+ ArticleId: 39372,
72
+ idCategory: "4004",
80
73
  product: {
81
- orderId: 15165,
82
- article_status: "AAC",
83
- datasheet_status: "AAC",
84
- description_status: "FAP",
85
- images_status: "FAP",
74
+ orderId: 15195,
75
+ article_status: "AP",
76
+ datasheet_status: "AP",
77
+ description_status: "AP",
78
+ images_status: "AP",
86
79
  prio: "none",
87
80
  version: 3,
88
81
  brand: null,
89
82
  article: {
90
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
91
- company_name: "Demo",
92
- id_company: 923,
83
+ category:
84
+ "Abarrotes Básicos|Abarrotes Básicos y Procesados|Abarrotes Básicos y Procesados",
85
+ company_name: "Financiado Bodega",
86
+ id_company: 912,
93
87
  country: "México",
94
- id_category: "2366",
95
- id_article: 39336,
96
- name: "Prueba Auditoria",
97
- upc: "100030124",
88
+ id_category: "4004",
89
+ id_article: 39372,
90
+ name: "PRUEBA04BA",
91
+ upc: "001213",
98
92
  },
99
93
  retailers: [
100
94
  {
101
- id: 58,
102
- name: "The Home Depot Golden",
103
- },
104
- {
105
- id: 68,
106
- name: "The Home Depot Dropship",
95
+ id: 70,
96
+ name: "Bodega Aurrera",
107
97
  },
108
98
  ],
109
99
  services: {
@@ -112,22 +102,18 @@ ProviderProductEditionDefault.args = {
112
102
  images: 1,
113
103
  },
114
104
  statusByRetailer: {
115
- 58: {
116
- datasheet: "AAC",
117
- description: "FAP",
118
- images: "FAP",
105
+ 70: {
106
+ datasheet: "AP",
107
+ description: "AP",
108
+ images: "AP",
119
109
  },
120
110
  },
121
- retailersWithService: ["58"],
122
- id_article: 39336,
111
+ retailersWithService: ["70"],
112
+ id_article: 39372,
123
113
  retailersAvailable: [
124
114
  {
125
- id: 58,
126
- name: "The Home Depot Golden",
127
- },
128
- {
129
- id: 68,
130
- name: "The Home Depot Dropship",
115
+ id: 70,
116
+ name: "Bodega Aurrera",
131
117
  },
132
118
  ],
133
119
  },
@@ -137,90 +123,68 @@ ProviderProductEditionDefault.args = {
137
123
  search: "",
138
124
  hash: "",
139
125
  state: {
140
- withChat: true,
126
+ origin: "RequestWithContentoh",
141
127
  },
142
128
  key: "24vwut",
143
129
  },
144
130
  user: {
145
- id_user: 59,
146
- name: "Cadena",
147
- last_name: "Comercial",
148
- email: "cadena.ismael@allfreemail.net",
149
- position: "Admin",
150
- telephone: "+523111366336",
131
+ id_user: 132,
132
+ name: "Bodega",
133
+ last_name: "Aurrera",
134
+ email: "cadenabodega@allfreemail.net",
135
+ position: "TI",
136
+ telephone: "+529999999999",
151
137
  country: "México",
152
- id_company: 817,
153
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
138
+ id_company: 912,
139
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
154
140
  birth_Date: null,
155
- about_me: "",
156
- zip_code: "",
157
- address: "",
158
- job: "",
159
- id_stripe: "",
141
+ about_me: null,
142
+ zip_code: null,
143
+ address: null,
144
+ job: null,
145
+ id_stripe: null,
160
146
  id_role: 0,
161
147
  active: 1,
162
148
  is_retailer: 1,
163
- email_notify: 0,
149
+ email_notify: 1,
164
150
  is_user_tech: null,
165
151
  membership: {
166
- id: 47,
167
- start_date: "2022-05-25T14:31:12.000Z",
168
- end_date: "2023-05-25T14:31:12.000Z",
169
- planID: 5,
170
- plan: "prod_Ktl6B5Ou2gqTB2",
152
+ id: 101,
153
+ start_date: "2022-12-22T19:16:53.000Z",
154
+ end_date: "2023-12-22T19:16:53.000Z",
155
+ planID: 8,
156
+ plan: "prod_KtlhECVSFG2iro",
171
157
  name: "Plan Pro",
172
- user_limit: "5",
173
- products_limit: "500",
174
- type: "PyMES",
158
+ user_limit: "20",
159
+ products_limit: "5000",
160
+ type: "Enterprise",
175
161
  },
176
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497",
162
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1685370125086",
177
163
  },
178
164
  company: {
179
- id_company: 817,
180
- trade_name: "Retailer acc",
181
- company_name: "Retailer acc",
182
- rfc: "ASER12345",
183
- adress: "Av. Insurgentes",
165
+ id_company: 912,
166
+ trade_name: "Financiado Bodega",
167
+ company_name: "Bodega",
168
+ rfc: "9395jwhs",
169
+ adress: "Toluca",
184
170
  about_company: null,
185
171
  telephone: null,
186
172
  web_site: null,
187
173
  zip_code: null,
188
174
  email: null,
189
175
  social_link: null,
190
- is_retailer: 1,
176
+ is_retailer: 0,
191
177
  financedRetailers: [
192
178
  {
193
- id: 68,
194
- name: "The Home Depot Dropship",
179
+ id: 70,
180
+ name: "Bodega Aurrera",
195
181
  country: "México",
196
- id_region: 1,
197
- active: 1,
198
182
  },
199
183
  ],
200
184
  retailers: [
201
185
  {
202
- id: 59,
203
- name: "The Home Depot Platinum",
204
- country: "México",
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",
186
+ id: 70,
187
+ name: "Bodega Aurrera",
224
188
  country: "México",
225
189
  },
226
190
  ],
@@ -1239,6 +1239,7 @@ export const ProviderProductEdition = ({
1239
1239
  },
1240
1240
  ];
1241
1241
  const sendToEvaluation = (result) => {
1242
+ console.log({ result });
1242
1243
  if (result === "A") {
1243
1244
  if (
1244
1245
  origin[activeTab] === "RequestWithoutContentoh" &&
@@ -1271,7 +1272,7 @@ export const ProviderProductEdition = ({
1271
1272
  }
1272
1273
  } else {
1273
1274
  if (
1274
- originProp === "RequestWithoutContentoh" &&
1275
+ origin === "RequestWithoutContentoh" &&
1275
1276
  !user.is_retailer &&
1276
1277
  (!product.id_order || !product.orderId)
1277
1278
  ) {
@@ -1340,7 +1341,7 @@ export const ProviderProductEdition = ({
1340
1341
  showApproveRejectAll={isRevision() && getSectionStatus()}
1341
1342
  approveAll={() => {
1342
1343
  if (
1343
- originProp === "RequestWithoutContentoh" &&
1344
+ origin === "RequestWithoutContentoh" &&
1344
1345
  !user.is_retailer &&
1345
1346
  (!product.id_order || !product.orderId)
1346
1347
  ) {
@@ -1371,7 +1372,7 @@ export const ProviderProductEdition = ({
1371
1372
  }}
1372
1373
  rejectAll={() => {
1373
1374
  if (
1374
- originProp === "RequestWithoutContentoh" &&
1375
+ origin === "RequestWithoutContentoh" &&
1375
1376
  !user.is_retailer &&
1376
1377
  (!product.id_order || !product.orderId)
1377
1378
  ) {