contentoh-components-library 21.1.41 → 21.1.42

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.
@@ -31,146 +31,120 @@ ProviderProductEditionDefault.args = {
31
31
  "Ficha técnica": true,
32
32
  Imágenes: true
33
33
  },
34
- token: "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiI2M2NhNWQ3ZS1hZTllLTQ3MWYtYmMxOS04NzVmNjM0NzUzNDIiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1Njk3MjQxOSwibmFtZSI6IklzbWFlbCBMb3BleiIsInBob25lX251bWJlciI6Iis1MjMxMTEzNjYzMzYiLCJleHAiOjE2NTY5NzYwMTksImlhdCI6MTY1Njk3MjQxOSwiZW1haWwiOiJpbG9wZXpAY29udGVudG9oLmN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tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NzA2OTM3OCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU3MDcyOTc4LCJpYXQiOjE2NTcwNjkzNzgsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.QHohzTWK9lmbszn-WfeNjf1y01q3LOdMDwCK4-Vp4D-BW5b-ZfSGMCoA4lWTw_ES98LJsOSqvnqq_G-lQim56UbhgQ-85cphHxci24IO-cCkz6a9-OoBHOccF9O0LiKszKbTZajjum3z1-rpEg2SdIXqqbk92kanWlC9F2Y-0U-POlY9i97Dlb_ISF2UTmaWneceMNz3p3WVpKomIFx_njMxORr7Ufl_WO-yRHMq1hNE0a2tUpQ_QUbwaYpwUE5YTfasml_UpoNJSCDcgn29O4O55wxD2vVE0Mni6vbhDftsOWbsCjyU9A8d1Zubb9jVVnamRWxxLW28ZGYue_UlSg",
35
35
  articleId: 55154,
36
36
  category: 2568,
37
37
  version: 3,
38
38
  productSelected: {
39
39
  orderId: 96,
40
- status: "AA",
41
- datasheet_status: "AA",
40
+ article_status: "AP",
41
+ datasheet_status: "ACA",
42
+ description_status: "ACA",
43
+ images_status: "ACA",
42
44
  prio: "none",
43
45
  version: 3,
44
- description_status: "AA",
45
- images_status: "AA",
46
46
  brand: null,
47
- retailerOrder: 0,
48
- missing: {
49
- datasheet: null,
50
- descriptions: null,
51
- images: null
52
- },
53
- services: {
54
- datasheets: 1,
55
- descriptions: 1,
56
- images: 1
57
- },
58
47
  article: {
59
48
  category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
60
49
  company_name: "COMPANY DEV",
61
50
  country: "México",
62
51
  id_category: "2568",
63
- id_datasheet_especialist: 54,
64
- id_datasheet_facilitator: 52,
65
- id_description_especialist: 54,
66
- id_description_facilitator: 52,
67
- id_images_especialist: 55,
68
- id_images_facilitator: 53,
69
- id_order: 96,
70
52
  id_article: 55154,
71
- id_auditor: 37,
72
53
  name: "Prueba 12312",
73
- timestamp: "2022-07-04T22:17:43.000Z",
74
54
  upc: "977812"
75
55
  },
76
56
  retailers: [{
77
57
  id: 58,
78
- name: "The Home Depot Golden"
58
+ name: "The Home Depot Golden",
59
+ services: ["ACA", "ACA", "ACA", "NA"]
79
60
  }, {
80
61
  id: 59,
81
- name: "The Home Depot Platinum"
62
+ name: "The Home Depot Platinum",
63
+ services: ["NA", "NA", "NA", "AP"]
82
64
  }],
65
+ services: {
66
+ datasheets: 1,
67
+ descriptions: 1,
68
+ images: 1
69
+ },
83
70
  statusByRetailer: {
84
71
  58: {
85
- datasheet: "AA",
86
- description: "AA",
87
- images: "AA"
72
+ datasheet: "ACA",
73
+ description: "ACA",
74
+ images: "ACA"
88
75
  },
89
76
  59: {
90
- images: "AA"
77
+ images: "ACA"
91
78
  }
92
79
  },
80
+ id_article: 55154,
93
81
  retailersAvailable: [{
94
82
  id: 58,
95
- name: "The Home Depot Golden"
83
+ name: "The Home Depot Golden",
84
+ percentage: 100
96
85
  }, {
97
86
  id: 59,
98
- name: "The Home Depot Platinum"
87
+ name: "The Home Depot Platinum",
88
+ percentage: 100
99
89
  }],
100
- categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
101
- upc: "977812",
102
- id_article: 55154,
103
- id_order: 96
90
+ status: "ACA"
104
91
  },
105
92
  productToEdit: {
106
93
  ArticleId: 55154,
107
94
  idCategory: "2568",
108
95
  product: {
109
96
  orderId: 96,
110
- status: "AA",
111
- datasheet_status: "AA",
97
+ article_status: "AP",
98
+ datasheet_status: "ACA",
99
+ description_status: "ACA",
100
+ images_status: "ACA",
112
101
  prio: "none",
113
102
  version: 3,
114
- description_status: "AA",
115
- images_status: "AA",
116
103
  brand: null,
117
- retailerOrder: 0,
118
- missing: {
119
- datasheet: null,
120
- descriptions: null,
121
- images: null
122
- },
123
- services: {
124
- datasheets: 1,
125
- descriptions: 1,
126
- images: 1
127
- },
128
104
  article: {
129
105
  category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
130
106
  company_name: "COMPANY DEV",
131
107
  country: "México",
132
108
  id_category: "2568",
133
- id_datasheet_especialist: 54,
134
- id_datasheet_facilitator: 52,
135
- id_description_especialist: 54,
136
- id_description_facilitator: 52,
137
- id_images_especialist: 55,
138
- id_images_facilitator: 53,
139
- id_order: 96,
140
109
  id_article: 55154,
141
- id_auditor: 37,
142
110
  name: "Prueba 12312",
143
- timestamp: "2022-07-04T22:17:43.000Z",
144
111
  upc: "977812"
145
112
  },
146
113
  retailers: [{
147
114
  id: 58,
148
- name: "The Home Depot Golden"
115
+ name: "The Home Depot Golden",
116
+ services: ["ACA", "ACA", "ACA", "NA"]
149
117
  }, {
150
118
  id: 59,
151
- name: "The Home Depot Platinum"
119
+ name: "The Home Depot Platinum",
120
+ services: ["NA", "NA", "NA", "AP"]
152
121
  }],
122
+ services: {
123
+ datasheets: 1,
124
+ descriptions: 1,
125
+ images: 1
126
+ },
153
127
  statusByRetailer: {
154
128
  58: {
155
- datasheet: "AA",
156
- description: "AA",
157
- images: "AA"
129
+ datasheet: "ACA",
130
+ description: "ACA",
131
+ images: "ACA"
158
132
  },
159
133
  59: {
160
- images: "AA"
134
+ images: "ACA"
161
135
  }
162
136
  },
137
+ id_article: 55154,
163
138
  retailersAvailable: [{
164
139
  id: 58,
165
- name: "The Home Depot Golden"
140
+ name: "The Home Depot Golden",
141
+ percentage: 100
166
142
  }, {
167
143
  id: 59,
168
- name: "The Home Depot Platinum"
144
+ name: "The Home Depot Platinum",
145
+ percentage: 100
169
146
  }],
170
- categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
171
- upc: "977812",
172
- id_article: 55154,
173
- id_order: 96
147
+ status: "ACA"
174
148
  }
175
149
  },
176
150
  location: {
@@ -183,36 +157,36 @@ ProviderProductEditionDefault.args = {
183
157
  }
184
158
  },
185
159
  user: {
186
- id_user: 28,
187
- name: "Proveedor",
188
- last_name: "Colgate",
189
- email: "ilopez@contentoh.com",
190
- position: "Prueba Admin",
160
+ id_user: 59,
161
+ name: "The Home",
162
+ last_name: "Depot",
163
+ email: "cadena.ismael@allfreemail.net",
164
+ position: "Admin",
191
165
  telephone: "+523111366336",
192
166
  country: "México",
193
- id_company: 1,
194
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
167
+ id_company: 7,
168
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
195
169
  birth_Date: null,
196
170
  about_me: null,
197
171
  zip_code: null,
198
172
  address: null,
199
173
  job: null,
200
- id_stripe: "cus_KuEt6R6vwmN09f",
174
+ id_stripe: "",
201
175
  id_role: 0,
202
176
  active: 1,
203
- is_retailer: 0,
204
- email_notify: 0,
177
+ is_retailer: 1,
178
+ email_notify: 1,
205
179
  membership: {
206
- id: 38,
207
- start_date: "2022-01-18T17:25:35.000Z",
208
- end_date: "2023-01-18T17:25:35.000Z",
209
- planID: 8,
210
- plan: "prod_KtlhECVSFG2iro",
211
- name: "Plan Pro",
212
- user_limit: "20",
213
- products_limit: "5000",
180
+ id: 24,
181
+ start_date: "2021-11-23T03:35:50.000Z",
182
+ end_date: "2022-11-23T03:35:50.000Z",
183
+ planID: 9,
184
+ plan: "prod_KtlkzZVGq6bRTO",
185
+ name: "Plan Enterprise Full",
186
+ user_limit: "30",
187
+ products_limit: "10000",
214
188
  type: "Enterprise"
215
189
  },
216
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656972421501"
190
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649"
217
191
  }
218
192
  };
@@ -280,17 +280,17 @@ var getNewStatus = function getNewStatus(statusArray) {
280
280
  statusArray.forEach(function (element) {
281
281
  return lookupString += element + "/";
282
282
  });
283
+ if (lookupString.includes("RCA")) return "RCA";
283
284
  if (lookupString.includes("RC")) return "RC";
284
285
  if (lookupString.includes("RA")) return "RA";
285
286
  if (lookupString.includes("RP")) return "RP";
286
- if (lookupString.includes("RCA")) return "RCA";
287
+ if (lookupString.includes("ACA")) return "ACA";
287
288
  if (lookupString.includes("UNASSIGNED")) return "CA";
288
289
  if (lookupString.includes("CA")) return "CA";
289
290
  if (lookupString.includes("IE")) return "IE";
290
291
  if (lookupString.includes("AC")) return "AC";
291
292
  if (lookupString.includes("AA")) return "AA";
292
293
  if (lookupString.includes("AP")) return "AP";
293
- if (lookupString.includes("ACA")) return "ACA";
294
294
  if (lookupString.includes("R")) return "R";
295
295
  if (lookupString.includes("NA")) return "NA";
296
296
  console.log("Status not found");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.1.41",
3
+ "version": "21.1.42",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -16,158 +16,132 @@ ProviderProductEditionDefault.args = {
16
16
  Imágenes: true,
17
17
  },
18
18
  token:
19
- "eyJraWQiOiJkQWJkZCtlclwvTlwveVRQUWNvUlVyOCtrNUd2M1hMM2N1MWUzQ09zWExVRnc9IiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJmNTkyN2Y4ZS1jYmY3LTQ5MjItOWUwOS1lNjllYzBiMjczMWEiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c3VhcmlvX2NvbnRlbnRvaCJdLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLnVzLWVhc3QtMS5hbWF6b25hd3MuY29tXC91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6ImY1OTI3ZjhlLWNiZjctNDkyMi05ZTA5LWU2OWVjMGIyNzMxYSIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW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C91cy1lYXN0LTFfWE1aUWRxa0dqIiwicGhvbmVfbnVtYmVyX3ZlcmlmaWVkIjpmYWxzZSwiY29nbml0bzp1c2VybmFtZSI6IjU4ODRhZTM0LTU5ZDYtNDQ1NC1iOThlLTgyMTUxOGJjYzNhNyIsImNvZ25pdG86cm9sZXMiOlsiYXJuOmF3czppYW06Ojg5ODY3MDIzMjgwNzpyb2xlXC9jb250ZW50b2gtZGV2LXVzLWVhc3QtMS1sYW1iZGFSb2xlIl0sImF1ZCI6IjVhYzh0cGdzNmdic3ExM2ZydnJwaWVlcDQwIiwiZXZlbnRfaWQiOiJjMTc1OGQ2ZC04NWQ3LTQwNmMtOWFhMi0zMzhkYTJkYmU5Y2IiLCJ0b2tlbl91c2UiOiJpZCIsImF1dGhfdGltZSI6MTY1NzA2OTM3OCwibmFtZSI6IkNhZGVuYSBJc21hZWwiLCJwaG9uZV9udW1iZXIiOiIrNTIzMTExMzY2MzM2IiwiZXhwIjoxNjU3MDcyOTc4LCJpYXQiOjE2NTcwNjkzNzgsImVtYWlsIjoiY2FkZW5hLmlzbWFlbEBhbGxmcmVlbWFpbC5uZXQifQ.QHohzTWK9lmbszn-WfeNjf1y01q3LOdMDwCK4-Vp4D-BW5b-ZfSGMCoA4lWTw_ES98LJsOSqvnqq_G-lQim56UbhgQ-85cphHxci24IO-cCkz6a9-OoBHOccF9O0LiKszKbTZajjum3z1-rpEg2SdIXqqbk92kanWlC9F2Y-0U-POlY9i97Dlb_ISF2UTmaWneceMNz3p3WVpKomIFx_njMxORr7Ufl_WO-yRHMq1hNE0a2tUpQ_QUbwaYpwUE5YTfasml_UpoNJSCDcgn29O4O55wxD2vVE0Mni6vbhDftsOWbsCjyU9A8d1Zubb9jVVnamRWxxLW28ZGYue_UlSg",
20
20
  articleId: 55154,
21
21
  category: 2568,
22
22
  version: 3,
23
23
  productSelected: {
24
24
  orderId: 96,
25
- status: "AA",
26
- datasheet_status: "AA",
25
+ article_status: "AP",
26
+ datasheet_status: "ACA",
27
+ description_status: "ACA",
28
+ images_status: "ACA",
27
29
  prio: "none",
28
30
  version: 3,
29
- description_status: "AA",
30
- images_status: "AA",
31
31
  brand: null,
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
32
  article: {
44
33
  category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
45
34
  company_name: "COMPANY DEV",
46
35
  country: "México",
47
36
  id_category: "2568",
48
- id_datasheet_especialist: 54,
49
- id_datasheet_facilitator: 52,
50
- id_description_especialist: 54,
51
- id_description_facilitator: 52,
52
- id_images_especialist: 55,
53
- id_images_facilitator: 53,
54
- id_order: 96,
55
37
  id_article: 55154,
56
- id_auditor: 37,
57
38
  name: "Prueba 12312",
58
- timestamp: "2022-07-04T22:17:43.000Z",
59
39
  upc: "977812",
60
40
  },
61
41
  retailers: [
62
42
  {
63
43
  id: 58,
64
44
  name: "The Home Depot Golden",
45
+ services: ["ACA", "ACA", "ACA", "NA"],
65
46
  },
66
47
  {
67
48
  id: 59,
68
49
  name: "The Home Depot Platinum",
50
+ services: ["NA", "NA", "NA", "AP"],
69
51
  },
70
52
  ],
53
+ services: {
54
+ datasheets: 1,
55
+ descriptions: 1,
56
+ images: 1,
57
+ },
71
58
  statusByRetailer: {
72
59
  58: {
73
- datasheet: "AA",
74
- description: "AA",
75
- images: "AA",
60
+ datasheet: "ACA",
61
+ description: "ACA",
62
+ images: "ACA",
76
63
  },
77
64
  59: {
78
- images: "AA",
65
+ images: "ACA",
79
66
  },
80
67
  },
68
+ id_article: 55154,
81
69
  retailersAvailable: [
82
70
  {
83
71
  id: 58,
84
72
  name: "The Home Depot Golden",
73
+ percentage: 100,
85
74
  },
86
75
  {
87
76
  id: 59,
88
77
  name: "The Home Depot Platinum",
78
+ percentage: 100,
89
79
  },
90
80
  ],
91
- categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
92
- upc: "977812",
93
- id_article: 55154,
94
- id_order: 96,
81
+ status: "ACA",
95
82
  },
96
83
  productToEdit: {
97
84
  ArticleId: 55154,
98
85
  idCategory: "2568",
99
86
  product: {
100
87
  orderId: 96,
101
- status: "AA",
102
- datasheet_status: "AA",
88
+ article_status: "AP",
89
+ datasheet_status: "ACA",
90
+ description_status: "ACA",
91
+ images_status: "ACA",
103
92
  prio: "none",
104
93
  version: 3,
105
- description_status: "AA",
106
- images_status: "AA",
107
94
  brand: null,
108
- retailerOrder: 0,
109
- missing: {
110
- datasheet: null,
111
- descriptions: null,
112
- images: null,
113
- },
114
- services: {
115
- datasheets: 1,
116
- descriptions: 1,
117
- images: 1,
118
- },
119
95
  article: {
120
96
  category: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
121
97
  company_name: "COMPANY DEV",
122
98
  country: "México",
123
99
  id_category: "2568",
124
- id_datasheet_especialist: 54,
125
- id_datasheet_facilitator: 52,
126
- id_description_especialist: 54,
127
- id_description_facilitator: 52,
128
- id_images_especialist: 55,
129
- id_images_facilitator: 53,
130
- id_order: 96,
131
100
  id_article: 55154,
132
- id_auditor: 37,
133
101
  name: "Prueba 12312",
134
- timestamp: "2022-07-04T22:17:43.000Z",
135
102
  upc: "977812",
136
103
  },
137
104
  retailers: [
138
105
  {
139
106
  id: 58,
140
107
  name: "The Home Depot Golden",
108
+ services: ["ACA", "ACA", "ACA", "NA"],
141
109
  },
142
110
  {
143
111
  id: 59,
144
112
  name: "The Home Depot Platinum",
113
+ services: ["NA", "NA", "NA", "AP"],
145
114
  },
146
115
  ],
116
+ services: {
117
+ datasheets: 1,
118
+ descriptions: 1,
119
+ images: 1,
120
+ },
147
121
  statusByRetailer: {
148
122
  58: {
149
- datasheet: "AA",
150
- description: "AA",
151
- images: "AA",
123
+ datasheet: "ACA",
124
+ description: "ACA",
125
+ images: "ACA",
152
126
  },
153
127
  59: {
154
- images: "AA",
128
+ images: "ACA",
155
129
  },
156
130
  },
131
+ id_article: 55154,
157
132
  retailersAvailable: [
158
133
  {
159
134
  id: 58,
160
135
  name: "The Home Depot Golden",
136
+ percentage: 100,
161
137
  },
162
138
  {
163
139
  id: 59,
164
140
  name: "The Home Depot Platinum",
141
+ percentage: 100,
165
142
  },
166
143
  ],
167
- categoryName: "SEGURIDAD|BATERÍAS Y PILAS|BATERÍAS Y PILAS",
168
- upc: "977812",
169
- id_article: 55154,
170
- id_order: 96,
144
+ status: "ACA",
171
145
  },
172
146
  },
173
147
  location: {
@@ -175,36 +149,36 @@ ProviderProductEditionDefault.args = {
175
149
  state: { origin: "Contentoh" },
176
150
  },
177
151
  user: {
178
- id_user: 28,
179
- name: "Proveedor",
180
- last_name: "Colgate",
181
- email: "ilopez@contentoh.com",
182
- position: "Prueba Admin",
152
+ id_user: 59,
153
+ name: "The Home",
154
+ last_name: "Depot",
155
+ email: "cadena.ismael@allfreemail.net",
156
+ position: "Admin",
183
157
  telephone: "+523111366336",
184
158
  country: "México",
185
- id_company: 1,
186
- id_cognito: "f5927f8e-cbf7-4922-9e09-e69ec0b2731a",
159
+ id_company: 7,
160
+ id_cognito: "5884ae34-59d6-4454-b98e-821518bcc3a7",
187
161
  birth_Date: null,
188
162
  about_me: null,
189
163
  zip_code: null,
190
164
  address: null,
191
165
  job: null,
192
- id_stripe: "cus_KuEt6R6vwmN09f",
166
+ id_stripe: "",
193
167
  id_role: 0,
194
168
  active: 1,
195
- is_retailer: 0,
196
- email_notify: 0,
169
+ is_retailer: 1,
170
+ email_notify: 1,
197
171
  membership: {
198
- id: 38,
199
- start_date: "2022-01-18T17:25:35.000Z",
200
- end_date: "2023-01-18T17:25:35.000Z",
201
- planID: 8,
202
- plan: "prod_KtlhECVSFG2iro",
203
- name: "Plan Pro",
204
- user_limit: "20",
205
- products_limit: "5000",
172
+ id: 24,
173
+ start_date: "2021-11-23T03:35:50.000Z",
174
+ end_date: "2022-11-23T03:35:50.000Z",
175
+ planID: 9,
176
+ plan: "prod_KtlkzZVGq6bRTO",
177
+ name: "Plan Enterprise Full",
178
+ user_limit: "30",
179
+ products_limit: "10000",
206
180
  type: "Enterprise",
207
181
  },
208
- src: "https://content-management-profile.s3.amazonaws.com/id-28/28.png?1656972421501",
182
+ src: "https://content-management-profile.s3.amazonaws.com/id-59/59.png?1657069378649",
209
183
  },
210
184
  };
@@ -195,17 +195,17 @@ 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("RCA")) return "RCA";
198
199
  if (lookupString.includes("RC")) return "RC";
199
200
  if (lookupString.includes("RA")) return "RA";
200
201
  if (lookupString.includes("RP")) return "RP";
201
- if (lookupString.includes("RCA")) return "RCA";
202
+ if (lookupString.includes("ACA")) return "ACA";
202
203
  if (lookupString.includes("UNASSIGNED")) return "CA";
203
204
  if (lookupString.includes("CA")) return "CA";
204
205
  if (lookupString.includes("IE")) return "IE";
205
206
  if (lookupString.includes("AC")) return "AC";
206
207
  if (lookupString.includes("AA")) return "AA";
207
208
  if (lookupString.includes("AP")) return "AP";
208
- if (lookupString.includes("ACA")) return "ACA";
209
209
  if (lookupString.includes("R")) return "R";
210
210
  if (lookupString.includes("NA")) return "NA";
211
211
  console.log("Status not found");