contentoh-components-library 21.3.54 → 21.3.55

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.
Files changed (60) hide show
  1. package/.env.development +0 -2
  2. package/dist/assets/fonts/roboto/LICENSE.txt +202 -0
  3. package/dist/components/atoms/ButtonV2/styles.js +1 -1
  4. package/dist/components/atoms/Status/styles.js +1 -1
  5. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +23 -18
  6. package/dist/components/atoms/VerticalSideMenuMainPage/styles.js +4 -4
  7. package/dist/components/molecules/CarouselImagesLogin/index.js +1 -1
  8. package/dist/components/molecules/HeaderTop/index.js +11 -68
  9. package/dist/components/organisms/Chat/Chat.stories.js +1 -21
  10. package/dist/components/organisms/Chat/ContainerItems/index.js +3 -19
  11. package/dist/components/organisms/Chat/ContainerItems/styles.js +1 -1
  12. package/dist/components/organisms/Chat/ContentChat/index.js +191 -343
  13. package/dist/components/organisms/Chat/Footer/index.js +39 -48
  14. package/dist/components/organisms/Chat/index.js +3 -48
  15. package/dist/components/organisms/DashboardMetric/dashboardMetricUtils.js +0 -27
  16. package/dist/components/organisms/FullProductNameHeader/index.js +2 -2
  17. package/dist/components/organisms/GlobalModal/styles.js +1 -1
  18. package/dist/components/organisms/OrderDetail/styles.js +1 -1
  19. package/dist/components/organisms/OrderDetail/utils/Table/styles.js +1 -1
  20. package/dist/components/pages/Dashboard/Dashboard.stories.js +50 -31
  21. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +81 -198
  22. package/dist/components/pages/ProviderProductEdition/index.js +429 -725
  23. package/dist/components/pages/ProviderProductEdition/styles.js +1 -1
  24. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +139 -86
  25. package/dist/components/pages/RetailerProductEdition/index.js +279 -268
  26. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  27. package/dist/components/pages/RetailerProductEdition/utils.js +2 -61
  28. package/dist/index.js +0 -13
  29. package/package.json +6 -7
  30. package/src/components/atoms/ButtonV2/styles.js +1 -1
  31. package/src/components/atoms/Status/styles.js +0 -4
  32. package/src/components/atoms/VerticalSideMenuMainPage/index.js +22 -18
  33. package/src/components/atoms/VerticalSideMenuMainPage/styles.js +4 -3
  34. package/src/components/molecules/CarouselImagesLogin/index.js +1 -1
  35. package/src/components/molecules/HeaderTop/index.js +6 -52
  36. package/src/components/organisms/Chat/Chat.stories.js +0 -21
  37. package/src/components/organisms/Chat/ContainerItems/index.js +2 -18
  38. package/src/components/organisms/Chat/ContainerItems/styles.js +2 -10
  39. package/src/components/organisms/Chat/ContentChat/index.js +6 -81
  40. package/src/components/organisms/Chat/Footer/index.js +0 -11
  41. package/src/components/organisms/Chat/index.js +3 -47
  42. package/src/components/organisms/DashboardMetric/dashboardMetricUtils.js +1 -18
  43. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  44. package/src/components/organisms/GlobalModal/styles.js +0 -10
  45. package/src/components/organisms/OrderDetail/index.js +0 -1
  46. package/src/components/organisms/OrderDetail/styles.js +1 -1
  47. package/src/components/organisms/OrderDetail/utils/Table/styles.js +1 -0
  48. package/src/components/pages/Dashboard/Dashboard.stories.js +55 -31
  49. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +88 -214
  50. package/src/components/pages/ProviderProductEdition/index.js +160 -323
  51. package/src/components/pages/ProviderProductEdition/styles.js +1 -5
  52. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +146 -89
  53. package/src/components/pages/RetailerProductEdition/index.js +138 -112
  54. package/src/components/pages/RetailerProductEdition/styles.js +0 -4
  55. package/src/components/pages/RetailerProductEdition/utils.js +0 -37
  56. package/src/index.js +0 -1
  57. package/src/components/organisms/TableResizable/TableResizable.stories.js +0 -17
  58. package/src/components/organisms/TableResizable/index.js +0 -119
  59. package/src/components/organisms/TableResizable/styles.js +0 -133
  60. package/src/components/organisms/TableResizable/utils.js +0 -46
@@ -169,17 +169,6 @@ export const Footer = (props) => {
169
169
  errorMessage = "El ID del ticket no es valido";
170
170
  }
171
171
  break;
172
- case "product_status":
173
- if (
174
- isValidNaturalNumber(dataChat?.id) &&
175
- isValidNaturalNumber(dataChat?.version) &&
176
- isValidNaturalNumber(dataChat?.retailerId)
177
- ) {
178
- fileKey += `productStatus/${dataChat.id}-${dataChat?.version}-${dataChat?.retailerId}/`;
179
- } else {
180
- errorMessage = "El ID del ticket no es valido";
181
- }
182
- break;
183
172
 
184
173
  default:
185
174
  errorMessage =
@@ -24,7 +24,7 @@ export const Chat = (props) => {
24
24
  const [showPopUpChat, setShowPopUpChat] = useState(false);
25
25
  const [data, setData] = useState();
26
26
 
27
- const { ticketCompany, retailerId } = chatData || {};
27
+ const { ticketCompany } = chatData || {};
28
28
 
29
29
  useEffect(() => {
30
30
  switch (chatType) {
@@ -37,9 +37,6 @@ export const Chat = (props) => {
37
37
  case "ticket":
38
38
  validateChatTicket();
39
39
  break;
40
- case "product_status":
41
- validateProductStatus();
42
- break;
43
40
  default:
44
41
  setData({
45
42
  code: 404,
@@ -49,45 +46,6 @@ export const Chat = (props) => {
49
46
  }
50
47
  }, [chatType]);
51
48
 
52
- const validateProductStatus = () => {
53
- const {
54
- userToken, // string
55
- id, // number
56
- version,
57
- retailerId, // number
58
- status,
59
- orderId,
60
- } = chatData;
61
-
62
- if (!isValidGeneral(userToken, id)) return;
63
-
64
- // validar el ID de la cadena asociada al producto en la OT
65
- if (!isValidNaturalNumber(retailerId)) {
66
- setDataError("La cadena relacionada al producto no es válida");
67
- return;
68
- }
69
-
70
- // validar el ID de la version asociada al producto en la OT
71
- if (!isValidNaturalNumber(version)) {
72
- setDataError("La versión del producto no es válida");
73
- return;
74
- }
75
-
76
- if (orderId && !isValidNaturalNumber(orderId)) {
77
- setDataError("La orden del producto no es válida");
78
- return;
79
- }
80
-
81
- setData({
82
- userToken,
83
- id,
84
- version,
85
- retailerId,
86
- orderId,
87
- status,
88
- });
89
- };
90
-
91
49
  const isValidGeneral = (userToken, id) => {
92
50
  // validar token del user
93
51
  if (isStringEmpty(userToken)) {
@@ -111,8 +69,6 @@ export const Chat = (props) => {
111
69
  retailerId, // number
112
70
  } = chatData;
113
71
 
114
- console.log(chatData, "chatData");
115
-
116
72
  if (!isValidGeneral(userToken, id)) return;
117
73
 
118
74
  // validar el ID de la OT en donde se encuentra el producto
@@ -241,7 +197,7 @@ export const Chat = (props) => {
241
197
  dataChat={data}
242
198
  showBtnClose={false}
243
199
  ticketCompany={ticketCompany}
244
- activeRetailer={props.activeRetailer || { id: retailerId }}
200
+ activeRetailer={props.activeRetailer}
245
201
  />
246
202
  </ContainerFixed>
247
203
  );
@@ -274,7 +230,7 @@ export const Chat = (props) => {
274
230
  onClickBtnClose={() => {
275
231
  setShowPopUpChat(false);
276
232
  }}
277
- activeRetailer={props.activeRetailer || { id: retailerId }}
233
+ activeRetailer={props.activeRetailer}
278
234
  />
279
235
  </ContainerPopUp>
280
236
  </Slide>
@@ -35,16 +35,6 @@ export const getFullStatus = (status) => {
35
35
  return "Exportado";
36
36
  case "NS":
37
37
  return "No solicitado";
38
- case "SAC":
39
- return "Solicitud Auditoría Content-oh!";
40
- case "AAC":
41
- return "Aprobado Auditoría Content-oh!";
42
- case "RAC":
43
- return "Rechazado Auditoría Content-oh!";
44
- case "FAP":
45
- return "Finalización Auditoría por Proveedor";
46
- default:
47
- return "";
48
38
  }
49
39
  };
50
40
 
@@ -85,14 +75,6 @@ export const getStatusColor = (status) => {
85
75
  return "black";
86
76
  case "Ex":
87
77
  return "#09CAD8";
88
- case "SAC":
89
- return "#2471A3";
90
- case "AAC":
91
- return "#1ABC9C";
92
- case "RAC":
93
- return "#229954";
94
- case "FAP":
95
- return "#F1C40F";
96
78
  default:
97
79
  return "white";
98
80
  }
@@ -122,6 +104,7 @@ export const removeOldStatus = (object) => {
122
104
  object["AC"] = object["AC"] + object["AF"];
123
105
  delete object["AF"];
124
106
  break;
107
+
125
108
  default:
126
109
  break;
127
110
  }
@@ -23,7 +23,7 @@ export const FullProductNameHeader = ({
23
23
  useEffect(() => {
24
24
  const rtls = headerData?.retailers || headerData?.retailersAvailable;
25
25
  servicesData &&
26
- rtls?.forEach((rt) => {
26
+ rtls.forEach((rt) => {
27
27
  const element = [];
28
28
  servicesData.forEach((sd) => {
29
29
  if (sd.id_retailer === rt.id) {
@@ -27,16 +27,6 @@ export const MessageContainer = styled.div`
27
27
  min-height: ${(props) => (props.height ? "300px" : "190px")};
28
28
  background: #281f33;
29
29
  border-radius: 39px;
30
- & > .generic-text {
31
- width: 100%;
32
- font-family: Raleway;
33
- font-style: normal;
34
- font-weight: normal;
35
- font-size: 16px;
36
- text-align: center;
37
- color: #f7f7f7;
38
- margin: 20px 0px;
39
- }
40
30
  `;
41
31
  export const TextArea = styled.textarea`
42
32
  display: block;
@@ -117,7 +117,6 @@ export const OrderDetail = (props) => {
117
117
  <img src={downloadIcon} alt="Download detail order" />
118
118
  </IconButton>
119
119
  )}
120
-
121
120
  <Button
122
121
  type="image"
123
122
  onClick={() => {
@@ -14,7 +14,7 @@ export const MainContainer = styled.div`
14
14
  & > * {
15
15
  padding: 0 30px;
16
16
  }
17
- box-shadow: -4px 0px 8px 0px rgba(0, 0, 0, 0.1);
17
+ box-shadow: -4px 0px 8px 0px rgba(0,0,0,0.1);
18
18
  .headerTitle {
19
19
  font-weight: bold;
20
20
  font-size: 25px;
@@ -36,6 +36,7 @@ export const Column = styled.div`
36
36
  &:nth-child(-n + 2) {
37
37
  overflow: hidden;
38
38
  }
39
+
39
40
  .tooltip {
40
41
  position: relative;
41
42
  display: inline-block;
@@ -9,59 +9,83 @@ const Template = (args) => <Dashboard {...args} />;
9
9
  export const DashboardDeafult = Template.bind({});
10
10
  DashboardDeafult.args = {
11
11
  user: {
12
- id_user: 51,
13
- name: "ADMIN PRUEBA",
14
- last_name: "",
15
- email: "etc@contentoh.com",
16
- position: "",
17
- telephone: "",
18
- country: "",
19
- id_company: 2,
20
- id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
12
+ id_user: 59,
13
+ name: "Cadena",
14
+ last_name: "Comercial",
15
+ email: "cadena.ismael@allfreemail.net",
16
+ position: "Admin",
17
+ telephone: "+523111366336",
18
+ country: "México",
19
+ id_company: 817,
20
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
21
21
  birth_Date: null,
22
22
  about_me: "",
23
23
  zip_code: "",
24
24
  address: "",
25
25
  job: "",
26
26
  id_stripe: "",
27
- id_role: 1,
27
+ id_role: 0,
28
28
  active: 1,
29
- is_retailer: 0,
30
- email_notify: 1,
29
+ is_retailer: 1,
30
+ email_notify: 0,
31
31
  is_user_tech: null,
32
32
  membership: {
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",
33
+ id: 47,
34
+ start_date: "2022-05-25T14:31:12.000Z",
35
+ end_date: "2023-05-25T14:31:12.000Z",
36
+ planID: 5,
37
+ plan: "prod_Ktl6B5Ou2gqTB2",
38
+ name: "Plan Pro",
39
+ user_limit: "5",
40
+ products_limit: "500",
41
41
  type: "PyMES",
42
42
  },
43
- src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1681499918721",
43
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1681406304781",
44
44
  },
45
45
  company: {
46
- id_company: 2,
47
- trade_name: "Content-oh!",
48
- company_name: "Content-oh!",
49
- rfc: null,
50
- adress: null,
46
+ id_company: 817,
47
+ trade_name: "Retailer acc",
48
+ company_name: "Retailer acc",
49
+ rfc: "ASER12345",
50
+ adress: "Av. Insurgentes",
51
51
  about_company: null,
52
52
  telephone: null,
53
53
  web_site: null,
54
54
  zip_code: null,
55
55
  email: null,
56
56
  social_link: null,
57
- is_retailer: 0,
57
+ is_retailer: 1,
58
+ financedRetailers: [
59
+ {
60
+ id: 68,
61
+ name: "The Home Depot Merchants",
62
+ country: "México",
63
+ id_region: 1,
64
+ active: 1,
65
+ },
66
+ ],
58
67
  retailers: [
59
68
  {
60
- id: null,
61
- name: null,
62
- country: null,
69
+ id: 59,
70
+ name: "The Home Depot Platinum",
71
+ country: "México",
72
+ },
73
+ {
74
+ id: 60,
75
+ name: "The Home Depot Resizing",
76
+ country: "México",
77
+ },
78
+ {
79
+ id: 61,
80
+ name: "Home Depot TAB",
81
+ country: "México",
82
+ },
83
+ {
84
+ id: 68,
85
+ name: "The Home Depot Merchants",
86
+ country: "México",
63
87
  },
64
88
  ],
65
89
  },
66
- jwt: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJhNmM0ZDNkNi0yNGE0LTQxZDQtYWQwZi1kMDg3NDM4YWI1YjYiLCJjb2duaXRvOmdyb3VwcyI6WyJjb2xhYm9yYWRvcmVzX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwiY29nbml0bzp1c2VybmFtZSI6ImE2YzRkM2Q2LTI0YTQtNDFkNC1hZDBmLWQwODc0MzhhYjViNiIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiIyNjJmNTBkNC0xZjMzLTQ3YTktOWY2MS1mMGY5NTcxNTcxNWUiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY4MTQ5OTkxNywibmFtZSI6IkNvbGFib3JhZG9yIiwicGhv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
20
20
  articleId: 238,
21
21
  category: 846,
22
22
  version: 2,
23
23
  productSelected: {
24
- orderId: 15142,
25
- status: "AA",
26
- datasheet_status: "AA",
27
- prio: "none",
28
- version: 3,
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
- },
43
- article: {
44
- category:
45
- "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
46
- company_name: "GRUPO BRAHMA",
47
- country: "México",
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",
61
- },
62
- retailers: [
63
- {
64
- id: 12,
65
- name: "La Comer",
66
- },
67
- {
68
- id: 29,
69
- name: "Farmacias del Ahorro",
70
- },
71
- {
72
- id: 63,
73
- name: "DAX",
74
- },
75
- ],
76
- statusByRetailer: {
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",
91
- },
92
- },
93
- checked: false,
24
+ category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
25
+ company_name: "Demo",
26
+ company_id: 923,
27
+ id_category: "2676",
28
+ id_article: 17163,
29
+ name: "Eglo 95055",
30
+ upc: "165033",
31
+ version: 1,
94
32
  retailersAvailable: [
95
33
  {
96
- id: 12,
97
- name: "La Comer",
98
- },
99
- {
100
- id: 29,
101
- name: "Farmacias del Ahorro",
102
- },
103
- {
104
- id: 63,
105
- name: "DAX",
34
+ id: 68,
35
+ name: "The Home Depot Merchants",
106
36
  },
107
37
  ],
108
- categoryName:
109
- "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
110
- upc: "750955287656712",
111
- id_article: 39270,
112
- id_order: 15142,
113
38
  },
114
39
  productToEdit: {
115
- ArticleId: 39270,
116
- idCategory: "697",
117
- product: {
118
- orderId: 15142,
119
- status: "AA",
120
- datasheet_status: "AA",
121
- prio: "none",
122
- version: 3,
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
- },
137
- article: {
138
- category:
139
- "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
140
- company_name: "GRUPO BRAHMA",
141
- country: "México",
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",
155
- },
156
- retailers: [
157
- {
158
- id: 12,
159
- name: "La Comer",
160
- },
161
- {
162
- id: 29,
163
- name: "Farmacias del Ahorro",
164
- },
165
- {
166
- id: 63,
167
- name: "DAX",
168
- },
169
- ],
170
- statusByRetailer: {
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",
185
- },
40
+ idCategory: "2676",
41
+ ArticleId: 17163,
42
+ product: [
43
+ {
44
+ category: "Iluminación|Lámparas de Interior|Pie y Pedestal",
45
+ company_name: "Demo",
46
+ company_id: 923,
47
+ id_category: "2676",
48
+ id_article: 17163,
49
+ name: "Eglo 95055",
50
+ upc: "165033",
51
+ version: 1,
52
+ retailersAvailable: [
53
+ {
54
+ id: 68,
55
+ name: "The Home Depot Merchants",
56
+ },
57
+ ],
186
58
  },
187
- checked: false,
188
- retailersAvailable: [
189
- {
190
- id: 12,
191
- name: "La Comer",
192
- },
193
- {
194
- id: 29,
195
- name: "Farmacias del Ahorro",
196
- },
197
- {
198
- id: 63,
199
- name: "DAX",
200
- },
201
- ],
202
- categoryName:
203
- "Salud y Belleza|Cuidado del Cabello|Shampoos y Acondicionadores",
204
- upc: "750955287656712",
205
- id_article: 39270,
206
- id_order: 15142,
207
- },
59
+ ],
208
60
  },
209
61
  location: {
210
62
  pathname: "/EditProducts",
@@ -212,63 +64,85 @@ ProviderProductEditionDefault.args = {
212
64
  hash: "",
213
65
  state: {
214
66
  withChat: true,
215
- chatType: "product_status",
216
- origin: "RequestWithContentoh",
217
67
  },
218
68
  key: "24vwut",
219
69
  },
220
70
  user: {
221
- id_user: 28,
222
- name: "Ismael",
223
- last_name: "López",
224
- email: "ilopez@contentoh.com",
225
- position: "Test States",
71
+ id_user: 59,
72
+ name: "Cadena",
73
+ last_name: "Comercial",
74
+ email: "cadena.ismael@allfreemail.net",
75
+ position: "Admin",
226
76
  telephone: "+523111366336",
227
77
  country: "México",
228
- id_company: 1,
229
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
78
+ id_company: 817,
79
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
230
80
  birth_Date: null,
231
81
  about_me: "",
232
82
  zip_code: "",
233
83
  address: "",
234
84
  job: "",
235
- id_stripe: "cus_KuEt6R6vwmN09f",
85
+ id_stripe: "",
236
86
  id_role: 0,
237
87
  active: 1,
238
- is_retailer: 0,
239
- email_notify: 1,
240
- is_user_tech: "ADMIN-AS",
88
+ is_retailer: 1,
89
+ email_notify: 0,
90
+ is_user_tech: null,
241
91
  membership: {
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",
92
+ id: 47,
93
+ start_date: "2022-05-25T14:31:12.000Z",
94
+ end_date: "2023-05-25T14:31:12.000Z",
95
+ planID: 5,
96
+ plan: "prod_Ktl6B5Ou2gqTB2",
247
97
  name: "Plan Pro",
248
- user_limit: "20",
249
- products_limit: "5000",
250
- type: "Enterprise",
98
+ user_limit: "5",
99
+ products_limit: "500",
100
+ type: "PyMES",
251
101
  },
252
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1683926822779",
102
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1680038627077",
253
103
  },
254
104
  company: {
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: "",
105
+ id_company: 817,
106
+ trade_name: "Retailer acc",
107
+ company_name: "Retailer acc",
108
+ rfc: "ASER12345",
109
+ adress: "Av. Insurgentes",
110
+ about_company: null,
111
+ telephone: null,
112
+ web_site: null,
113
+ zip_code: null,
264
114
  email: null,
265
- social_link: "",
266
- is_retailer: 0,
115
+ social_link: null,
116
+ is_retailer: 1,
117
+ financedRetailers: [
118
+ {
119
+ id: 68,
120
+ name: "The Home Depot Merchants",
121
+ country: "México",
122
+ id_region: 1,
123
+ active: 1,
124
+ },
125
+ ],
267
126
  retailers: [
268
127
  {
269
- id: null,
270
- name: null,
271
- country: null,
128
+ id: 59,
129
+ name: "The Home Depot Platinum",
130
+ country: "México",
131
+ },
132
+ {
133
+ id: 60,
134
+ name: "The Home Depot Resizing",
135
+ country: "México",
136
+ },
137
+ {
138
+ id: 61,
139
+ name: "Home Depot TAB",
140
+ country: "México",
141
+ },
142
+ {
143
+ id: 68,
144
+ name: "The Home Depot Merchants",
145
+ country: "México",
272
146
  },
273
147
  ],
274
148
  },