tango-app-api-audit 3.5.24 → 3.5.25

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.24",
3
+ "version": "3.5.25",
4
4
  "description": "audit & audit metrics apis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -146,6 +146,14 @@ export const summaryListSchema = joi.object( {
146
146
  'any.required': 'Type is required',
147
147
  'string.empty': 'Type cannot be empty',
148
148
  } ),
149
+ clientId: joi.string().when( '$userType', {
150
+ is: 'tango',
151
+ then: joi.required().messages( {
152
+ 'any.required': 'clientId is required',
153
+ 'string.base': 'clientId must be a string',
154
+ } ),
155
+ otherwise: joi.optional(),
156
+ } ),
149
157
  demographics: joi.array().optional(),
150
158
  RMList: joi.array().items(
151
159
  joi.string().required(),
@@ -158,6 +166,8 @@ export const summaryListSchema = joi.object( {
158
166
  sortBy: joi.string().optional(),
159
167
  sortOrder: joi.number().optional(),
160
168
  category: joi.string().optional() .valid( 'fake', 'genuine' ),
169
+ offset: joi.number().optional(),
170
+ limit: joi.number().optional(),
161
171
  } );
162
172
 
163
173
  export const summaryListValid = {
@@ -206,6 +216,14 @@ export const summaryCardSchema = joi.object( {
206
216
  'any.required': 'Type is required',
207
217
  'string.empty': 'Type cannot be empty',
208
218
  } ),
219
+ clientId: joi.string().when( '$userType', {
220
+ is: 'tango',
221
+ then: joi.required().messages( {
222
+ 'any.required': 'clientId is required',
223
+ 'string.base': 'clientId must be a string',
224
+ } ),
225
+ otherwise: joi.optional(),
226
+ } ),
209
227
  demographics: joi.array().optional(),
210
228
  RMList: joi.array().items(
211
229
  joi.string().optional(),