tango-app-api-audit 3.5.23 → 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 +1 -1
- package/src/dtos/eyeTestAudit.dtos.js +23 -14
package/package.json
CHANGED
|
@@ -146,12 +146,17 @@ 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
|
-
joi.
|
|
152
|
-
email: joi.string().required(),
|
|
153
|
-
_id: joi.string().required(),
|
|
154
|
-
} ).required(),
|
|
159
|
+
joi.string().required(),
|
|
155
160
|
).optional(),
|
|
156
161
|
storeId: joi.array().items( joi.string().required() ).required(),
|
|
157
162
|
complianceScore: joi.number().optional().allow( null ),
|
|
@@ -161,6 +166,8 @@ export const summaryListSchema = joi.object( {
|
|
|
161
166
|
sortBy: joi.string().optional(),
|
|
162
167
|
sortOrder: joi.number().optional(),
|
|
163
168
|
category: joi.string().optional() .valid( 'fake', 'genuine' ),
|
|
169
|
+
offset: joi.number().optional(),
|
|
170
|
+
limit: joi.number().optional(),
|
|
164
171
|
} );
|
|
165
172
|
|
|
166
173
|
export const summaryListValid = {
|
|
@@ -209,13 +216,18 @@ export const summaryCardSchema = joi.object( {
|
|
|
209
216
|
'any.required': 'Type is required',
|
|
210
217
|
'string.empty': 'Type cannot be empty',
|
|
211
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
|
+
} ),
|
|
212
227
|
demographics: joi.array().optional(),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
// _id: joi.string().required(),
|
|
217
|
-
// } ).required(),
|
|
218
|
-
// ).optional(),
|
|
228
|
+
RMList: joi.array().items(
|
|
229
|
+
joi.string().optional(),
|
|
230
|
+
).optional(),
|
|
219
231
|
storeId: joi.array().items( joi.string().required() ).required(),
|
|
220
232
|
complianceScore: joi.number().optional().allow( null ),
|
|
221
233
|
nearAddition: joi.string().optional().allow( '' ),
|
|
@@ -268,10 +280,7 @@ export const emailAlertLogSchema = joi.object( {
|
|
|
268
280
|
'string.empty': 'Type cannot be empty',
|
|
269
281
|
} ),
|
|
270
282
|
RMList: joi.array().items(
|
|
271
|
-
joi.
|
|
272
|
-
email: joi.string().required(),
|
|
273
|
-
_id: joi.string().required(),
|
|
274
|
-
} ).required(),
|
|
283
|
+
joi.string().optional(),
|
|
275
284
|
).optional(),
|
|
276
285
|
clientId: joi.string().when( '$userType', {
|
|
277
286
|
is: 'tango',
|