contentoh-components-library 21.1.86 → 21.1.87

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.
@@ -21,7 +21,7 @@ var _availableIcon = _interopRequireDefault(require("../../../assets/images/asig
21
21
 
22
22
  var _data = require("../../../global-files/data");
23
23
 
24
- var _Status = require("../Status");
24
+ var _Status = require("../../atoms/Status");
25
25
 
26
26
  var _jsxRuntime = require("react/jsx-runtime");
27
27
 
@@ -15,7 +15,7 @@ var Status = function Status(_ref) {
15
15
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
16
16
  className: "status-".concat(statusType === null || statusType === void 0 ? void 0 : statusType.replace(/\/.*/, ""), " ").concat(ovalForm && "oval-form"),
17
17
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
18
- children: statusType !== null && statusType !== void 0 ? statusType : 'NS'
18
+ children: statusType !== null && statusType !== void 0 ? statusType : "NS"
19
19
  })
20
20
  });
21
21
  };
@@ -149,7 +149,6 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
149
149
  onClick: function onClick(e) {
150
150
  e.preventDefault();
151
151
  e.stopPropagation();
152
- console.log(e.target);
153
152
  setShowAsignationPanel(true);
154
153
  setAssignationType(assignation === null || assignation === void 0 ? void 0 : assignation.collaboratorType);
155
154
  }
@@ -38,45 +38,52 @@ RetailerProductEditionDefault.args = {
38
38
  descriptions: 1,
39
39
  images: 1
40
40
  },
41
- orderId: 131,
42
- status: "AA",
43
- datasheet_status: "AA",
41
+ orderId: 2426,
42
+ status: "AS",
43
+ datasheet_status: "AS",
44
44
  prio: "none",
45
45
  version: 2,
46
- description_status: "AA",
47
- images_status: "AA",
46
+ description_status: "AS",
47
+ images_status: "AS",
48
48
  article: {
49
- id_article: 76201,
50
- id_category: "632",
51
- name: "DEMO SB BAA PLAY CR SM FP PANDAS",
52
- upc: "7501816169170",
53
- timestamp: "2022-07-25T20:42:40.000Z",
54
- id_user: 119,
49
+ id_article: 78738,
50
+ id_category: "2427",
51
+ name: "INTERRUPTOR TERMOMAGNETICO IUSA 2P 15A",
52
+ upc: "157126",
53
+ timestamp: "2022-08-01T18:28:05.000Z",
54
+ id_user: 651,
55
55
  status: "NULL",
56
56
  active: 1,
57
- company_id: 841,
58
- company_name: "Financiado Bodega",
59
- country: "México",
60
- id_order: 131,
61
- id_datasheet_especialist: 54,
62
- id_datasheet_facilitator: 52,
63
- id_description_especialist: 54,
64
- id_description_facilitator: 52,
65
- id_images_especialist: 55,
66
- id_images_facilitator: 53,
67
- id_auditor: 30,
57
+ company_id: 388,
58
+ SKU: null,
59
+ Descripcion: null,
60
+ Proveedor: null,
61
+ id_proveedor: 0,
62
+ company_name: "",
63
+ country: null,
64
+ id_order: 2426,
65
+ id_datasheet_especialist: 1248,
66
+ id_datasheet_facilitator: 1252,
67
+ id_description_especialist: 1248,
68
+ id_description_facilitator: 1252,
69
+ id_images_especialist: 1251,
70
+ id_images_facilitator: 1286,
71
+ id_auditor: 1254,
68
72
  id_recepcionist: null,
69
- category: "Ropa, Accesorios, Fragancias y Joyería|Ropa Bebés|Bebé Niña",
70
- missingAttributes: 0,
71
- missingDescriptions: 0,
72
- missingImages: 0
73
+ category: "Eléctrico|Centros de Carga e Interruptores|Interruptores de Seguridad",
74
+ missingAttributes: null,
75
+ missingDescriptions: null,
76
+ missingImages: null
73
77
  },
74
78
  retailers: [{
75
- id: 13,
76
- name: "Soriana"
79
+ id: 58,
80
+ name: "The Home Depot Golden",
81
+ country: "México",
82
+ id_region: 1,
83
+ active: 1
77
84
  }],
78
- country: "México",
79
- upc: "7501816169170"
85
+ country: null,
86
+ upc: "157126"
80
87
  },
81
88
  location: {
82
89
  product: {
@@ -85,16 +92,16 @@ RetailerProductEditionDefault.args = {
85
92
  }
86
93
  },
87
94
  user: {
88
- id_user: 51,
89
- name: "ADMIN PRUEBA",
90
- last_name: "",
91
- email: "etc@contentoh.com",
92
- position: null,
95
+ id_user: 460,
96
+ name: "Ismael",
97
+ last_name: "López",
98
+ email: "ilopez@contentoh.com",
99
+ position: "Desarrollador",
93
100
  telephone: null,
94
- country: null,
95
- id_company: 2,
96
- id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
97
- birth_Date: null,
101
+ country: "México",
102
+ id_company: 254,
103
+ id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
104
+ birth_Date: "1997-08-15T00:00:00.000Z",
98
105
  about_me: null,
99
106
  zip_code: null,
100
107
  address: null,
@@ -103,18 +110,18 @@ RetailerProductEditionDefault.args = {
103
110
  id_role: 1,
104
111
  active: 1,
105
112
  is_retailer: 0,
106
- email_notify: 0,
113
+ email_notify: null,
107
114
  membership: {
108
- id: 2,
109
- start_date: "2021-11-05T02:35:12.000Z",
110
- end_date: "2022-11-05T02:34:49.000Z",
111
- planID: 1,
112
- plan: "prod_KtkvuFFLpOdP6e",
113
- name: "Plan Free",
114
- user_limit: "1",
115
- products_limit: "3",
116
- type: "PyMES"
115
+ id: 750,
116
+ start_date: "2022-01-07T21:32:54.000Z",
117
+ end_date: "2023-01-07T21:32:54.000Z",
118
+ planID: 6,
119
+ plan: "prod_KvGd6YSTJyR3AP",
120
+ name: "Plan Small",
121
+ user_limit: "10",
122
+ products_limit: "1000",
123
+ type: "Enterprise"
117
124
  },
118
- src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1658991766462"
125
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659463389000"
119
126
  }
120
127
  };
@@ -280,6 +280,7 @@ var getNewStatus = function getNewStatus(statusArray) {
280
280
  statusArray.forEach(function (element) {
281
281
  return lookupString += element + "/";
282
282
  });
283
+ if (lookupString.includes("AS")) return "AS";
283
284
  if (lookupString.includes("RCA")) return "RCA";
284
285
  if (lookupString.includes("RC")) return "RC";
285
286
  if (lookupString.includes("RA")) return "RA";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.86",
3
+ "version": "21.1.87",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -6,7 +6,7 @@ import requesToProvider from "../../../assets/images/asignationOptions/requestTo
6
6
  import requestToTeam from "../../../assets/images/asignationOptions/requestToTeam.svg";
7
7
  import availableIcon from "../../../assets/images/asignationOptions/availableIcon.svg";
8
8
  import { getNewStatus } from "../../../global-files/data";
9
- import { Status } from "../Status";
9
+ import { Status } from "../../atoms/Status";
10
10
 
11
11
  export const AsignationOption = ({
12
12
  profileImage,
@@ -7,7 +7,7 @@ export const Status = ({ statusType, ovalForm }) => {
7
7
  ovalForm && "oval-form"
8
8
  }`}
9
9
  >
10
- <p>{statusType ?? 'NS'}</p>
10
+ <p>{statusType ?? "NS"}</p>
11
11
  </Container>
12
12
  );
13
13
  };
@@ -125,7 +125,6 @@ export const StatusAsignationInfo = ({
125
125
  onClick={(e) => {
126
126
  e.preventDefault();
127
127
  e.stopPropagation();
128
- console.log(e.target);
129
128
  setShowAsignationPanel(true);
130
129
  setAssignationType(assignation?.collaboratorType);
131
130
  }}
@@ -23,62 +23,70 @@ RetailerProductEditionDefault.args = {
23
23
  descriptions: 1,
24
24
  images: 1,
25
25
  },
26
- orderId: 131,
27
- status: "AA",
28
- datasheet_status: "AA",
26
+ orderId: 2426,
27
+ status: "AS",
28
+ datasheet_status: "AS",
29
29
  prio: "none",
30
30
  version: 2,
31
- description_status: "AA",
32
- images_status: "AA",
31
+ description_status: "AS",
32
+ images_status: "AS",
33
33
  article: {
34
- id_article: 76201,
35
- id_category: "632",
36
- name: "DEMO SB BAA PLAY CR SM FP PANDAS",
37
- upc: "7501816169170",
38
- timestamp: "2022-07-25T20:42:40.000Z",
39
- id_user: 119,
34
+ id_article: 78738,
35
+ id_category: "2427",
36
+ name: "INTERRUPTOR TERMOMAGNETICO IUSA 2P 15A",
37
+ upc: "157126",
38
+ timestamp: "2022-08-01T18:28:05.000Z",
39
+ id_user: 651,
40
40
  status: "NULL",
41
41
  active: 1,
42
- company_id: 841,
43
- company_name: "Financiado Bodega",
44
- country: "México",
45
- id_order: 131,
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,
42
+ company_id: 388,
43
+ SKU: null,
44
+ Descripcion: null,
45
+ Proveedor: null,
46
+ id_proveedor: 0,
47
+ company_name: "",
48
+ country: null,
49
+ id_order: 2426,
50
+ id_datasheet_especialist: 1248,
51
+ id_datasheet_facilitator: 1252,
52
+ id_description_especialist: 1248,
53
+ id_description_facilitator: 1252,
54
+ id_images_especialist: 1251,
55
+ id_images_facilitator: 1286,
56
+ id_auditor: 1254,
53
57
  id_recepcionist: null,
54
- category: "Ropa, Accesorios, Fragancias y Joyería|Ropa Bebés|Bebé Niña",
55
- missingAttributes: 0,
56
- missingDescriptions: 0,
57
- missingImages: 0,
58
+ category:
59
+ "Eléctrico|Centros de Carga e Interruptores|Interruptores de Seguridad",
60
+ missingAttributes: null,
61
+ missingDescriptions: null,
62
+ missingImages: null,
58
63
  },
59
64
  retailers: [
60
65
  {
61
- id: 13,
62
- name: "Soriana",
66
+ id: 58,
67
+ name: "The Home Depot Golden",
68
+ country: "México",
69
+ id_region: 1,
70
+ active: 1,
63
71
  },
64
72
  ],
65
- country: "México",
66
- upc: "7501816169170",
73
+ country: null,
74
+ upc: "157126",
67
75
  },
68
76
  location: {
69
77
  product: { articleId: 109485, versionId: 3 },
70
78
  },
71
79
  user: {
72
- id_user: 51,
73
- name: "ADMIN PRUEBA",
74
- last_name: "",
75
- email: "etc@contentoh.com",
76
- position: null,
80
+ id_user: 460,
81
+ name: "Ismael",
82
+ last_name: "López",
83
+ email: "ilopez@contentoh.com",
84
+ position: "Desarrollador",
77
85
  telephone: null,
78
- country: null,
79
- id_company: 2,
80
- id_cognito: "a6c4d3d6-24a4-41d4-ad0f-d087438ab5b6",
81
- birth_Date: null,
86
+ country: "México",
87
+ id_company: 254,
88
+ id_cognito: "9d0cc5c8-a89e-4bdd-9e2d-358a01cc9a62",
89
+ birth_Date: "1997-08-15T00:00:00.000Z",
82
90
  about_me: null,
83
91
  zip_code: null,
84
92
  address: null,
@@ -87,18 +95,18 @@ RetailerProductEditionDefault.args = {
87
95
  id_role: 1,
88
96
  active: 1,
89
97
  is_retailer: 0,
90
- email_notify: 0,
98
+ email_notify: null,
91
99
  membership: {
92
- id: 2,
93
- start_date: "2021-11-05T02:35:12.000Z",
94
- end_date: "2022-11-05T02:34:49.000Z",
95
- planID: 1,
96
- plan: "prod_KtkvuFFLpOdP6e",
97
- name: "Plan Free",
98
- user_limit: "1",
99
- products_limit: "3",
100
- type: "PyMES",
100
+ id: 750,
101
+ start_date: "2022-01-07T21:32:54.000Z",
102
+ end_date: "2023-01-07T21:32:54.000Z",
103
+ planID: 6,
104
+ plan: "prod_KvGd6YSTJyR3AP",
105
+ name: "Plan Small",
106
+ user_limit: "10",
107
+ products_limit: "1000",
108
+ type: "Enterprise",
101
109
  },
102
- src: "https://content-management-profile.s3.amazonaws.com/id-51/51.png?1658991766462",
110
+ src: "https://content-management-profile-prod.s3.amazonaws.com/id-460/460.png?1659463389000",
103
111
  },
104
112
  };
@@ -195,6 +195,7 @@ export const fetchUsers = async (auth) => {
195
195
  export const getNewStatus = (statusArray) => {
196
196
  let lookupString = "";
197
197
  statusArray.forEach((element) => (lookupString += element + "/"));
198
+ if (lookupString.includes("AS")) return "AS";
198
199
  if (lookupString.includes("RCA")) return "RCA";
199
200
  if (lookupString.includes("RC")) return "RC";
200
201
  if (lookupString.includes("RA")) return "RA";