contentoh-components-library 21.3.48 → 21.3.50

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.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -31,35 +31,32 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJjOWRjOWE1OS0xNTAxLTQyOTgtODRjMi03MDM4NzRhNzIxMTEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjQ2Mjc4NCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2I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mMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
35
35
  articleId: 238,
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: 15104,
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: "Juguetes|Juguetes|Juguetes",
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: "4208",
53
+ id_article: 37563,
54
+ name: "CARRIOLA Y MUNECA 30CM",
55
+ upc: "26253713351"
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: 37563,
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: 37563,
82
+ idCategory: "4208",
89
83
  product: {
90
- orderId: 15165,
91
- article_status: "AAC",
92
- datasheet_status: "AAC",
93
- description_status: "FAP",
94
- images_status: "FAP",
84
+ orderId: 15104,
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: "Juguetes|Juguetes|Juguetes",
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: "4208",
98
+ id_article: 37563,
99
+ name: "CARRIOLA Y MUNECA 30CM",
100
+ upc: "26253713351"
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,105 +109,86 @@ 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: 37563,
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
  },
138
126
  location: {
139
- pathname: "/EditProducts",
140
- search: "",
141
- hash: "",
127
+ pathname: "/products/37563/datasheet",
142
128
  state: {
143
- withChat: true
129
+ origin: "RequestWithContentoh"
144
130
  },
145
- key: "24vwut"
131
+ search: "",
132
+ hash: "",
133
+ key: "alvwrx"
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?1683921632099"
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",
183
+ id: 70,
184
+ name: "Bodega Aurrera",
197
185
  country: "México",
198
186
  id_region: 1,
199
187
  active: 1
200
188
  }],
201
189
  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",
190
+ id: 70,
191
+ name: "Bodega Aurrera",
220
192
  country: "México"
221
193
  }]
222
194
  },
@@ -446,6 +446,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
446
446
  validatedAll = _useState60[0],
447
447
  setValidatedAll = _useState60[1];
448
448
 
449
+ console.log({
450
+ location: location
451
+ });
449
452
  var originProp = location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.origin;
450
453
 
451
454
  var _useState61 = (0, _react.useState)({
@@ -989,6 +992,13 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
989
992
  var _revision = ["RequestWithContentoh", "RequestWithoutContentoh", "Contentoh"].includes(orgn);
990
993
 
991
994
  if (_isRetailer) {
995
+ console.log({
996
+ origin: origin[activeTab],
997
+ concept: concept,
998
+ orgn: orgn,
999
+ revision: _revision,
1000
+ currentService: currentService
1001
+ });
992
1002
  if (_revision && currentService === "AP") return true;
993
1003
  } else {
994
1004
  var _product = productEdit.product;
@@ -1938,6 +1948,7 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1938
1948
 
1939
1949
  var getSectionStatus = function getSectionStatus() {
1940
1950
  var concept = getConcept(activeTab);
1951
+ console.log("getSectionStatus", productEdit.product["".concat(concept, "_status")]);
1941
1952
  return ["AA", "AP", "R", "CA", "RCA"].includes(productEdit.product["".concat(concept, "_status")]);
1942
1953
  };
1943
1954
 
@@ -31,98 +31,87 @@ RetailerProductEditionDefault.args = {
31
31
  "Ficha técnica": false,
32
32
  Imágenes: false
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXR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oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
35
35
  productSelected: {
36
- "orderId": 15160,
37
- "status": "SAC",
38
- "datasheet_status": "SAC",
39
- "prio": "none",
40
- "version": 7,
41
- "description_status": "SAC",
42
- "images_status": "SAC",
43
- "brand": null,
44
- "retailerOrder": 1,
45
- "missing": {
46
- "datasheet": null,
47
- "descriptions": null,
48
- "images": null
36
+ orderId: 15104,
37
+ article_status: "AP",
38
+ datasheet_status: "AC",
39
+ description_status: "AC",
40
+ images_status: "AC",
41
+ prio: "none",
42
+ version: 3,
43
+ brand: null,
44
+ article: {
45
+ category: "Juguetes|Juguetes|Juguetes",
46
+ company_name: "Financiado Bodega",
47
+ id_company: 912,
48
+ country: "México",
49
+ id_category: "4208",
50
+ id_article: 37569,
51
+ name: "BB HORA DEL BANO SET MENTA",
52
+ upc: "93905444796"
49
53
  },
50
- "services": {
51
- "datasheets": 1,
52
- "descriptions": 1,
53
- "images": 1
54
- },
55
- "article": {
56
- "category": "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
57
- "company_name": "Demo",
58
- "country": "México",
59
- "id_category": "2366",
60
- "id_datasheet_especialist": null,
61
- "id_datasheet_facilitator": null,
62
- "id_description_especialist": null,
63
- "id_description_facilitator": null,
64
- "id_images_especialist": null,
65
- "id_images_facilitator": null,
66
- "id_order": 15160,
67
- "id_article": 39290,
68
- "id_auditor": 37,
69
- "name": "MOLDURA MARCO MODER 11X4X244 CM",
70
- "timestamp": "2023-04-19T21:36:02.000Z",
71
- "upc": "100030"
72
- },
73
- "retailers": [{
74
- "id": 58,
75
- "name": "The Home Depot Golden"
76
- }, {
77
- "id": 68,
78
- "name": "The Home Depot Merchants"
54
+ retailers: [{
55
+ id: 70,
56
+ name: "Bodega Aurrera"
79
57
  }],
80
- "statusByRetailer": {
81
- "58": {
82
- "datasheet": "SAC",
83
- "description": "SAC",
84
- "images": "SAC"
58
+ services: {
59
+ datasheets: 1,
60
+ descriptions: 1,
61
+ images: 1
62
+ },
63
+ statusByRetailer: {
64
+ 70: {
65
+ datasheet: "AP",
66
+ description: "AP",
67
+ images: "AP"
85
68
  }
86
- }
69
+ },
70
+ retailersWithService: ["70"],
71
+ id_article: 37569,
72
+ retailersAvailable: [{
73
+ id: 70,
74
+ name: "Bodega Aurrera"
75
+ }]
87
76
  },
88
77
  location: {
89
78
  product: {
90
- articleId: 39290,
91
- versionId: 7
79
+ articleId: 37569,
80
+ versionId: 3
92
81
  }
93
82
  },
94
83
  user: {
95
- "id_user": 51,
96
- "name": "ADMIN PRUEBA",
97
- "last_name": "",
98
- "email": "etc@contentoh.com",
99
- "position": "",
100
- "telephone": "",
101
- "country": "",
102
- "id_company": 2,
103
- "id_cognito": "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
104
- "birth_Date": null,
105
- "about_me": "",
106
- "zip_code": "",
107
- "address": "",
108
- "job": "",
109
- "id_stripe": "",
110
- "id_role": 1,
111
- "active": 1,
112
- "is_retailer": 0,
113
- "email_notify": 1,
114
- "is_user_tech": null,
115
- "membership": {
116
- "id": 2,
117
- "start_date": "2021-11-05T02:35:12.000Z",
118
- "end_date": "2022-11-05T02:34:49.000Z",
119
- "planID": 1,
120
- "plan": "prod_KtkvuFFLpOdP6e",
121
- "name": "Plan Free",
122
- "user_limit": "1",
123
- "products_limit": "3",
124
- "type": "PyMES"
84
+ id_user: 132,
85
+ name: "Bodega",
86
+ last_name: "Aurrera",
87
+ email: "cadenabodega@allfreemail.net",
88
+ position: "TI",
89
+ telephone: "+529999999999",
90
+ country: "México",
91
+ id_company: 912,
92
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
93
+ birth_Date: null,
94
+ about_me: null,
95
+ zip_code: null,
96
+ address: null,
97
+ job: null,
98
+ id_stripe: null,
99
+ id_role: 0,
100
+ active: 1,
101
+ is_retailer: 1,
102
+ email_notify: 1,
103
+ is_user_tech: null,
104
+ membership: {
105
+ id: 101,
106
+ start_date: "2022-12-22T19:16:53.000Z",
107
+ end_date: "2023-12-22T19:16:53.000Z",
108
+ planID: 8,
109
+ plan: "prod_KtlhECVSFG2iro",
110
+ name: "Plan Pro",
111
+ user_limit: "20",
112
+ products_limit: "5000",
113
+ type: "Enterprise"
125
114
  },
126
- "src": "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518"
115
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683919912271"
127
116
  }
128
117
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.3.48",
3
+ "version": "21.3.50",
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
+ };
@@ -16,37 +16,33 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiI1ODg0YWUzNC01OWQ2LTQ0NTQtYjk4ZS04MjE1MThiY2MzYTciLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pd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HM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImZiMjMwNGVmLWUxYTItNGMyYi04ODc0LWViNzU0ZTRmNjMzMiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI4MGFmMGIwNi1iMGYyLTQ5YjgtYjczYy1lMzQ5MTFmMGVkNmEiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MzkxOTkxMSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MzkyMzUxMSwiaWF0IjoxNjgzOTE5OTExLCJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
20
20
  articleId: 238,
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: 15104,
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: "Juguetes|Juguetes|Juguetes",
34
+ company_name: "Financiado Bodega",
35
+ id_company: 912,
36
36
  country: "México",
37
- id_category: "2366",
38
- id_article: 39336,
39
- name: "Prueba Auditoria",
40
- upc: "100030124",
37
+ id_category: "4208",
38
+ id_article: 37563,
39
+ name: "CARRIOLA Y MUNECA 30CM",
40
+ upc: "26253713351",
41
41
  },
42
42
  retailers: [
43
43
  {
44
- id: 58,
45
- name: "The Home Depot Golden",
46
- },
47
- {
48
- id: 68,
49
- name: "The Home Depot Dropship",
44
+ id: 70,
45
+ name: "Bodega Aurrera",
50
46
  },
51
47
  ],
52
48
  services: {
@@ -55,55 +51,47 @@ ProviderProductEditionDefault.args = {
55
51
  images: 1,
56
52
  },
57
53
  statusByRetailer: {
58
- 58: {
59
- datasheet: "AAC",
60
- description: "FAP",
61
- images: "FAP",
54
+ 70: {
55
+ datasheet: "AP",
56
+ description: "AP",
57
+ images: "AP",
62
58
  },
63
59
  },
64
- retailersWithService: ["58"],
65
- id_article: 39336,
60
+ retailersWithService: ["70"],
61
+ id_article: 37563,
66
62
  retailersAvailable: [
67
63
  {
68
- id: 58,
69
- name: "The Home Depot Golden",
70
- },
71
- {
72
- id: 68,
73
- name: "The Home Depot Dropship",
64
+ id: 70,
65
+ name: "Bodega Aurrera",
74
66
  },
75
67
  ],
76
68
  },
77
69
  productToEdit: {
78
- ArticleId: 39336,
79
- idCategory: "2366",
70
+ ArticleId: 37563,
71
+ idCategory: "4208",
80
72
  product: {
81
- orderId: 15165,
82
- article_status: "AAC",
83
- datasheet_status: "AAC",
84
- description_status: "FAP",
85
- images_status: "FAP",
73
+ orderId: 15104,
74
+ article_status: "AP",
75
+ datasheet_status: "AP",
76
+ description_status: "AP",
77
+ images_status: "AP",
86
78
  prio: "none",
87
79
  version: 3,
88
80
  brand: null,
89
81
  article: {
90
- category: "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
91
- company_name: "Demo",
92
- id_company: 923,
82
+ category: "Juguetes|Juguetes|Juguetes",
83
+ company_name: "Financiado Bodega",
84
+ id_company: 912,
93
85
  country: "México",
94
- id_category: "2366",
95
- id_article: 39336,
96
- name: "Prueba Auditoria",
97
- upc: "100030124",
86
+ id_category: "4208",
87
+ id_article: 37563,
88
+ name: "CARRIOLA Y MUNECA 30CM",
89
+ upc: "26253713351",
98
90
  },
99
91
  retailers: [
100
92
  {
101
- id: 58,
102
- name: "The Home Depot Golden",
103
- },
104
- {
105
- id: 68,
106
- name: "The Home Depot Dropship",
93
+ id: 70,
94
+ name: "Bodega Aurrera",
107
95
  },
108
96
  ],
109
97
  services: {
@@ -112,86 +100,82 @@ ProviderProductEditionDefault.args = {
112
100
  images: 1,
113
101
  },
114
102
  statusByRetailer: {
115
- 58: {
116
- datasheet: "AAC",
117
- description: "FAP",
118
- images: "FAP",
103
+ 70: {
104
+ datasheet: "AP",
105
+ description: "AP",
106
+ images: "AP",
119
107
  },
120
108
  },
121
- retailersWithService: ["58"],
122
- id_article: 39336,
109
+ retailersWithService: ["70"],
110
+ id_article: 37563,
123
111
  retailersAvailable: [
124
112
  {
125
- id: 58,
126
- name: "The Home Depot Golden",
127
- },
128
- {
129
- id: 68,
130
- name: "The Home Depot Dropship",
113
+ id: 70,
114
+ name: "Bodega Aurrera",
131
115
  },
132
116
  ],
133
117
  },
134
118
  },
135
119
  location: {
136
- pathname: "/EditProducts",
137
- search: "",
138
- hash: "",
120
+ pathname: "/products/37563/datasheet",
139
121
  state: {
140
- withChat: true,
122
+ origin: "RequestWithContentoh",
141
123
  },
142
- key: "24vwut",
124
+ search: "",
125
+ hash: "",
126
+ key: "alvwrx",
143
127
  },
144
128
  user: {
145
- id_user: 59,
146
- name: "Cadena",
147
- last_name: "Comercial",
148
- email: "cadena.ismael@allfreemail.net",
149
- position: "Admin",
150
- telephone: "+523111366336",
129
+ id_user: 132,
130
+ name: "Bodega",
131
+ last_name: "Aurrera",
132
+ email: "cadenabodega@allfreemail.net",
133
+ position: "TI",
134
+ telephone: "+529999999999",
151
135
  country: "México",
152
- id_company: 817,
153
- id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
136
+ id_company: 912,
137
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
154
138
  birth_Date: null,
155
- about_me: "",
156
- zip_code: "",
157
- address: "",
158
- job: "",
159
- id_stripe: "",
139
+ about_me: null,
140
+ zip_code: null,
141
+ address: null,
142
+ job: null,
143
+ id_stripe: null,
160
144
  id_role: 0,
161
145
  active: 1,
162
146
  is_retailer: 1,
163
- email_notify: 0,
147
+ email_notify: 1,
164
148
  is_user_tech: null,
165
149
  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",
150
+ id: 101,
151
+ start_date: "2022-12-22T19:16:53.000Z",
152
+ end_date: "2023-12-22T19:16:53.000Z",
153
+ planID: 8,
154
+ plan: "prod_KtlhECVSFG2iro",
171
155
  name: "Plan Pro",
172
- user_limit: "5",
173
- products_limit: "500",
174
- type: "PyMES",
156
+ user_limit: "20",
157
+ products_limit: "5000",
158
+ type: "Enterprise",
175
159
  },
176
- src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1682462786497",
160
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683921632099",
177
161
  },
178
162
  company: {
179
- id_company: 817,
180
- trade_name: "Retailer acc",
181
- company_name: "Retailer acc",
182
- rfc: "ASER12345",
183
- adress: "Av. Insurgentes",
163
+ id_company: 912,
164
+ trade_name: "Financiado Bodega",
165
+ company_name: "Bodega",
166
+ rfc: "9395jwhs",
167
+ adress: "Toluca",
184
168
  about_company: null,
185
169
  telephone: null,
186
170
  web_site: null,
187
171
  zip_code: null,
188
172
  email: null,
189
173
  social_link: null,
190
- is_retailer: 1,
174
+ is_retailer: 0,
191
175
  financedRetailers: [
192
176
  {
193
- id: 68,
194
- name: "The Home Depot Dropship",
177
+ id: 70,
178
+ name: "Bodega Aurrera",
195
179
  country: "México",
196
180
  id_region: 1,
197
181
  active: 1,
@@ -199,28 +183,8 @@ ProviderProductEditionDefault.args = {
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
  ],
@@ -215,6 +215,7 @@ export const ProviderProductEdition = ({
215
215
  const [loading, setLoading] = useState(true);
216
216
  const [validatedAll, setValidatedAll] = useState(false);
217
217
 
218
+ console.log({ location });
218
219
  const originProp = location?.state?.origin;
219
220
  const [origin, setOrigin] = useState({
220
221
  "Ficha técnica": originProp,
@@ -531,6 +532,13 @@ export const ProviderProductEdition = ({
531
532
  "Contentoh",
532
533
  ].includes(orgn);
533
534
  if (isRetailer) {
535
+ console.log({
536
+ origin: origin[activeTab],
537
+ concept,
538
+ orgn,
539
+ revision,
540
+ currentService,
541
+ });
534
542
  if (revision && currentService === "AP") return true;
535
543
  } else {
536
544
  const { product } = productEdit;
@@ -1180,6 +1188,7 @@ export const ProviderProductEdition = ({
1180
1188
 
1181
1189
  const getSectionStatus = () => {
1182
1190
  const concept = getConcept(activeTab);
1191
+ console.log("getSectionStatus", productEdit.product[`${concept}_status`]);
1183
1192
  return ["AA", "AP", "R", "CA", "RCA"].includes(
1184
1193
  productEdit.product[`${concept}_status`]
1185
1194
  );
@@ -16,98 +16,88 @@ RetailerProductEditionDefault.args = {
16
16
  Imágenes: false,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyYjU3MjZlMy04MjM2LTRmYzMtODBkMi05NWVmYmU4ODdjOTYiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MjAxNjI5MSwibmFtZSI6IkNvbGFib3JhZG9yIiwicGhvbmVfbnVtYmVyIjoiKzUyMTExMSIsImV4cCI6MTY4MjAxOTg5MSwiaWF0IjoxNjgyMDE2MjkxLCJlbWFpbCI6ImV0Y0Bjb250ZW50b2guY29tIn0.SCj_yp1NkGCED59JHoDSdFAOakIOvZVeC0yLwt9z0BtenDXlU0m5cUofQQonnWPM8Q70yMFEkyMGI9kQs_fz1gxrmrSc2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CJlbWFpbCI6ImNhZGVuYWJvZGVnYUBhbGxmcmVlbWFpbC5uZXQifQ.h8rhLTIPMxhCs85K5JIn1efY4yZ5TAvzaBbLItby8W7HdLnNjK4Cv39mTCprrk0yjmKhOGIA1gyVeXcm18n5LqSLmOyz85uwTRwZ91s2on49rX3cO9FZp5S3tg4MseNKePBBetwycXttVm_aJZOLGvt2XoAfdxXHTUk2uDu7IphAdz746qrgXxSFyq_cWX9SdWrYhAn_XjHbNOqOuvcmbD7FquvUq-RYWqTAyeT9qeZUjA8oJvENkpohybxc6OoKaPOcdxWvZsvNcFxpEzjHQja3dAQnlA-Pc9_iJf9S4fzf3d3aqXIIDQuozJiixnT6-kK29p4MVbEJ2r4Pd2Ox2A",
20
20
  productSelected: {
21
- "orderId": 15160,
22
- "status": "SAC",
23
- "datasheet_status": "SAC",
24
- "prio": "none",
25
- "version": 7,
26
- "description_status": "SAC",
27
- "images_status": "SAC",
28
- "brand": null,
29
- "retailerOrder": 1,
30
- "missing": {
31
- "datasheet": null,
32
- "descriptions": null,
33
- "images": null
21
+ orderId: 15104,
22
+ article_status: "AP",
23
+ datasheet_status: "AC",
24
+ description_status: "AC",
25
+ images_status: "AC",
26
+ prio: "none",
27
+ version: 3,
28
+ brand: null,
29
+ article: {
30
+ category: "Juguetes|Juguetes|Juguetes",
31
+ company_name: "Financiado Bodega",
32
+ id_company: 912,
33
+ country: "México",
34
+ id_category: "4208",
35
+ id_article: 37569,
36
+ name: "BB HORA DEL BANO SET MENTA",
37
+ upc: "93905444796",
34
38
  },
35
- "services": {
36
- "datasheets": 1,
37
- "descriptions": 1,
38
- "images": 1
39
+ retailers: [
40
+ {
41
+ id: 70,
42
+ name: "Bodega Aurrera",
43
+ },
44
+ ],
45
+ services: {
46
+ datasheets: 1,
47
+ descriptions: 1,
48
+ images: 1,
39
49
  },
40
- "article": {
41
- "category": "Puertas y Ventanas|Molduras|Molduras Madera Blanda",
42
- "company_name": "Demo",
43
- "country": "México",
44
- "id_category": "2366",
45
- "id_datasheet_especialist": null,
46
- "id_datasheet_facilitator": null,
47
- "id_description_especialist": null,
48
- "id_description_facilitator": null,
49
- "id_images_especialist": null,
50
- "id_images_facilitator": null,
51
- "id_order": 15160,
52
- "id_article": 39290,
53
- "id_auditor": 37,
54
- "name": "MOLDURA MARCO MODER 11X4X244 CM",
55
- "timestamp": "2023-04-19T21:36:02.000Z",
56
- "upc": "100030"
50
+ statusByRetailer: {
51
+ 70: {
52
+ datasheet: "AP",
53
+ description: "AP",
54
+ images: "AP",
55
+ },
57
56
  },
58
- "retailers": [
59
- {
60
- "id": 58,
61
- "name": "The Home Depot Golden"
62
- },
63
- {
64
- "id": 68,
65
- "name": "The Home Depot Merchants"
66
- }
57
+ retailersWithService: ["70"],
58
+ id_article: 37569,
59
+ retailersAvailable: [
60
+ {
61
+ id: 70,
62
+ name: "Bodega Aurrera",
63
+ },
67
64
  ],
68
- "statusByRetailer": {
69
- "58": {
70
- "datasheet": "SAC",
71
- "description": "SAC",
72
- "images": "SAC"
73
- }
74
- }
75
- },
65
+ },
76
66
  location: {
77
- product: { articleId: 39290, versionId: 7 },
67
+ product: { articleId: 37569, versionId: 3 },
78
68
  },
79
69
  user: {
80
- "id_user": 51,
81
- "name": "ADMIN PRUEBA",
82
- "last_name": "",
83
- "email": "etc@contentoh.com",
84
- "position": "",
85
- "telephone": "",
86
- "country": "",
87
- "id_company": 2,
88
- "id_cognito": "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
89
- "birth_Date": null,
90
- "about_me": "",
91
- "zip_code": "",
92
- "address": "",
93
- "job": "",
94
- "id_stripe": "",
95
- "id_role": 1,
96
- "active": 1,
97
- "is_retailer": 0,
98
- "email_notify": 1,
99
- "is_user_tech": null,
100
- "membership": {
101
- "id": 2,
102
- "start_date": "2021-11-05T02:35:12.000Z",
103
- "end_date": "2022-11-05T02:34:49.000Z",
104
- "planID": 1,
105
- "plan": "prod_KtkvuFFLpOdP6e",
106
- "name": "Plan Free",
107
- "user_limit": "1",
108
- "products_limit": "3",
109
- "type": "PyMES"
70
+ id_user: 132,
71
+ name: "Bodega",
72
+ last_name: "Aurrera",
73
+ email: "cadenabodega@allfreemail.net",
74
+ position: "TI",
75
+ telephone: "+529999999999",
76
+ country: "México",
77
+ id_company: 912,
78
+ id_cognito: "fb2304ef-e1a2-4c2b-8874-eb754e4f6332",
79
+ birth_Date: null,
80
+ about_me: null,
81
+ zip_code: null,
82
+ address: null,
83
+ job: null,
84
+ id_stripe: null,
85
+ id_role: 0,
86
+ active: 1,
87
+ is_retailer: 1,
88
+ email_notify: 1,
89
+ is_user_tech: null,
90
+ membership: {
91
+ id: 101,
92
+ start_date: "2022-12-22T19:16:53.000Z",
93
+ end_date: "2023-12-22T19:16:53.000Z",
94
+ planID: 8,
95
+ plan: "prod_KtlhECVSFG2iro",
96
+ name: "Plan Pro",
97
+ user_limit: "20",
98
+ products_limit: "5000",
99
+ type: "Enterprise",
110
100
  },
111
- "src": "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1682016291518"
112
- },
101
+ src: "https://content-management-profile.s3.amazonaws.com/id-132/132.png?1683919912271",
102
+ },
113
103
  };