tango-app-api-infra 3.8.5 → 3.8.6
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
|
@@ -439,7 +439,7 @@ export async function getTickets( req, res ) {
|
|
|
439
439
|
const skip = inputData.offset == 0 ? 0 : ( inputData.offset - 1 ) * limit || 0;
|
|
440
440
|
inputData.storeId = inputData.storeId.split( ',' ); // convert strig to array
|
|
441
441
|
logger.info( { inputData: inputData, limit: limit, skip: skip } );
|
|
442
|
-
let source = [ 'storeId', 'dateString', 'ticketName', 'footfallCount', 'employeeCount', 'houseKeepingCount', 'duplicateCount', 'junkCount', 'junkACCount', 'comments', 'employee', 'houseKeeping', 'junk', 'duplicateImages', 'ticketId', 'clientId', 'storeName', 'createdAt', 'updatedAt', 'userName', 'email', 'role', 'status', 'employeeStatus', 'houseKeepingStatus', 'duplicateStatus','junkStatus', 'houseKeepingACCount', 'houseKeepingCount', 'employeeCount', 'employeeACCount', 'duplicateCount', 'duplicateACCount', 'approverRole', 'approverUserName', 'approverEmail' ];
|
|
442
|
+
let source = [ 'storeId', 'dateString', 'ticketName', 'footfallCount', 'employeeCount', 'houseKeepingCount', 'duplicateCount', 'junkCount', 'junkACCount', 'comments', 'employee', 'houseKeeping', 'junk', 'duplicateImages', 'ticketId', 'clientId', 'storeName', 'createdAt', 'updatedAt', 'userName', 'email', 'role', 'status', 'employeeStatus', 'houseKeepingStatus', 'duplicateStatus', 'junkStatus', 'houseKeepingACCount', 'houseKeepingCount', 'employeeCount', 'employeeACCount', 'duplicateCount', 'duplicateACCount', 'approverRole', 'approverUserName', 'approverEmail' ];
|
|
443
443
|
let filter = [
|
|
444
444
|
|
|
445
445
|
{
|
|
@@ -287,6 +287,7 @@ export const updateStatusSchemea =Joi.object().keys( {
|
|
|
287
287
|
duplicateACCount: Joi.number().optional(),
|
|
288
288
|
employeeACCount: Joi.number().optional(),
|
|
289
289
|
houseKeepingACCount: Joi.number().optional(),
|
|
290
|
+
junkACCount: Joi.number().optional(),
|
|
290
291
|
comments: Joi.string().optional().allow( '' ),
|
|
291
292
|
duplicateImages: Joi.array().items(
|
|
292
293
|
Joi.object( {
|
|
@@ -329,6 +330,17 @@ export const updateStatusSchemea =Joi.object().keys( {
|
|
|
329
330
|
selected: Joi.boolean().optional(),
|
|
330
331
|
|
|
331
332
|
} ) ).optional(),
|
|
333
|
+
junk: Joi.array().items( Joi.object( {
|
|
334
|
+
tempId: Joi.number().required(),
|
|
335
|
+
filePath: Joi.string().required(),
|
|
336
|
+
entryTime: Joi.string().required(),
|
|
337
|
+
exitTime: Joi.string().required(),
|
|
338
|
+
timeRange: Joi.string().required(),
|
|
339
|
+
isChecked: Joi.boolean().required(),
|
|
340
|
+
selected: Joi.boolean().optional(),
|
|
341
|
+
|
|
342
|
+
} ) ).optional(),
|
|
343
|
+
junkStatus: Joi.string().optional(),
|
|
332
344
|
duplicateStatus: Joi.string().optional(),
|
|
333
345
|
employeeStatus: Joi.string().optional(),
|
|
334
346
|
houseKeepingStatus: Joi.string().optional(),
|