tango-app-api-audit 3.5.23 → 3.5.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-audit",
3
- "version": "3.5.23",
3
+ "version": "3.5.24",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -148,10 +148,7 @@ export const summaryListSchema = joi.object( {
148
148
  } ),
149
149
  demographics: joi.array().optional(),
150
150
  RMList: joi.array().items(
151
- joi.object( {
152
- email: joi.string().required(),
153
- _id: joi.string().required(),
154
- } ).required(),
151
+ joi.string().required(),
155
152
  ).optional(),
156
153
  storeId: joi.array().items( joi.string().required() ).required(),
157
154
  complianceScore: joi.number().optional().allow( null ),
@@ -210,12 +207,9 @@ export const summaryCardSchema = joi.object( {
210
207
  'string.empty': 'Type cannot be empty',
211
208
  } ),
212
209
  demographics: joi.array().optional(),
213
- // RMList: joi.array().items(
214
- // joi.object( {
215
- // email: joi.string().required(),
216
- // _id: joi.string().required(),
217
- // } ).required(),
218
- // ).optional(),
210
+ RMList: joi.array().items(
211
+ joi.string().optional(),
212
+ ).optional(),
219
213
  storeId: joi.array().items( joi.string().required() ).required(),
220
214
  complianceScore: joi.number().optional().allow( null ),
221
215
  nearAddition: joi.string().optional().allow( '' ),
@@ -268,10 +262,7 @@ export const emailAlertLogSchema = joi.object( {
268
262
  'string.empty': 'Type cannot be empty',
269
263
  } ),
270
264
  RMList: joi.array().items(
271
- joi.object( {
272
- email: joi.string().required(),
273
- _id: joi.string().required(),
274
- } ).required(),
265
+ joi.string().optional(),
275
266
  ).optional(),
276
267
  clientId: joi.string().when( '$userType', {
277
268
  is: 'tango',