tango-app-api-store-builder 1.0.0-beta-217 → 1.0.0-beta-219
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-store-builder",
|
|
3
|
-
"version": "1.0.0-beta-
|
|
3
|
+
"version": "1.0.0-beta-219",
|
|
4
4
|
"description": "storeBuilder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"path": "^0.12.7",
|
|
33
33
|
"selenium-webdriver": "^4.31.0",
|
|
34
34
|
"sharp": "^0.34.1",
|
|
35
|
-
"tango-api-schema": "^2.4.
|
|
35
|
+
"tango-api-schema": "^2.4.14",
|
|
36
36
|
"tango-app-api-middleware": "3.1.48",
|
|
37
37
|
"url": "^0.11.4",
|
|
38
38
|
"winston": "^3.17.0",
|
|
@@ -2447,7 +2447,7 @@ export const checkPlanoExist = async ( req, res ) => {
|
|
|
2447
2447
|
const plano = await planoService.findOne( { storeName: req.body.store } );
|
|
2448
2448
|
|
|
2449
2449
|
if ( plano ) {
|
|
2450
|
-
return res.sendSuccess(
|
|
2450
|
+
return res.sendSuccess( { rfId: plano?.isRfid ?? false } );
|
|
2451
2451
|
} else {
|
|
2452
2452
|
return res.sendSuccess( false );
|
|
2453
2453
|
}
|
|
@@ -2853,7 +2853,7 @@ export async function storeFixturesv2( req, res ) {
|
|
|
2853
2853
|
let productIdList = productDetails.map( ( ele ) => ele._id );
|
|
2854
2854
|
let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
|
|
2855
2855
|
status = status.map( ( ele ) => ele?.compliance );
|
|
2856
|
-
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? '
|
|
2856
|
+
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
2857
2857
|
|
|
2858
2858
|
const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
|
|
2859
2859
|
|
|
@@ -2962,7 +2962,7 @@ export async function storeFixturesv2( req, res ) {
|
|
|
2962
2962
|
let productIdList = productDetails.map( ( ele ) => ele._id );
|
|
2963
2963
|
let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
|
|
2964
2964
|
status = status.map( ( ele ) => ele?.compliance );
|
|
2965
|
-
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? '
|
|
2965
|
+
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
2966
2966
|
|
|
2967
2967
|
|
|
2968
2968
|
const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
|
|
@@ -3542,7 +3542,7 @@ export async function storeFixturesTaskv2( req, res ) {
|
|
|
3542
3542
|
let productIdList = productDetails.map( ( ele ) => ele._id );
|
|
3543
3543
|
let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
|
|
3544
3544
|
status = status.map( ( ele ) => ele?.compliance );
|
|
3545
|
-
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? '
|
|
3545
|
+
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
3546
3546
|
const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
|
|
3547
3547
|
|
|
3548
3548
|
return {
|
|
@@ -3651,7 +3651,7 @@ export async function storeFixturesTaskv2( req, res ) {
|
|
|
3651
3651
|
let productIdList = productDetails.map( ( ele ) => ele._id );
|
|
3652
3652
|
let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
|
|
3653
3653
|
status = status.map( ( ele ) => ele?.compliance );
|
|
3654
|
-
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? '
|
|
3654
|
+
const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
|
|
3655
3655
|
return {
|
|
3656
3656
|
...shelf.toObject(),
|
|
3657
3657
|
productCount: productDetails.length,
|