tango-app-api-store-builder 1.0.0-beta-73 → 1.0.0-beta-75
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
|
@@ -2022,6 +2022,8 @@ export async function updateFixtureFeedback( req, res ) {
|
|
|
2022
2022
|
const section = taskShelf.section;
|
|
2023
2023
|
const subBrand = taskShelf.subBrand;
|
|
2024
2024
|
const formattedsubBrand = subBrand.length ? ( subBrand.length > 1 ? subBrand.join( ' + ' ) : subBrand[0] ) : undefined;
|
|
2025
|
+
// const formattedsubBrand = subBrand ? subBrand : undefined;
|
|
2026
|
+
|
|
2025
2027
|
if ( taskShelves.length === fixtureShelves.length ) {
|
|
2026
2028
|
const fixtureShelf = fixtureShelves.filter( ( shelf ) => {
|
|
2027
2029
|
return shelf.toObject().shelfNumber === k+1;
|
|
@@ -1072,7 +1072,10 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
} ) );
|
|
1074
1074
|
const vmMap = new Map( vms.map( ( vm ) => [ vm._id.toString(), vm.toObject() ] ) );
|
|
1075
|
-
const vmDetails = vmMappings.map( ( mapping ) =>
|
|
1075
|
+
const vmDetails = vmMappings.map( ( mapping ) => ( {
|
|
1076
|
+
...vmMap.get( mapping.productId.toString() ),
|
|
1077
|
+
_id: mapping._id,
|
|
1078
|
+
} ) );
|
|
1076
1079
|
|
|
1077
1080
|
if ( fixture.toObject().productResolutionLevel === 'L1' ) {
|
|
1078
1081
|
const productMappings = await planoMappingService.find( { fixtureId: new mongoose.Types.ObjectId( fixtureId ), type: 'product' } );
|
|
@@ -23,13 +23,13 @@ storeBuilderRouter
|
|
|
23
23
|
// .post( '/FixtureShelfDetails', storeBuilderController.fixtureShelfProduct )
|
|
24
24
|
// .post( '/scan', storeBuilderController.scan )
|
|
25
25
|
.post( '/storeLayout', isAllowedSessionHandler, validate( validateDtos.storeList ), storeBuilderController.storeLayout )
|
|
26
|
-
.post( '/storeFixtures', validate( validateDtos.storeList ), storeBuilderController.storeFixturesv1 )
|
|
27
|
-
.post( '/FixtureShelfDetails', validate( validateDtos.fixtureShelfProduct ), storeBuilderController.fixtureShelfProductv1 )
|
|
26
|
+
.post( '/storeFixtures', isAllowedSessionHandler, validate( validateDtos.storeList ), storeBuilderController.storeFixturesv1 )
|
|
27
|
+
.post( '/FixtureShelfDetails', isAllowedSessionHandler, validate( validateDtos.fixtureShelfProduct ), storeBuilderController.fixtureShelfProductv1 )
|
|
28
28
|
.post( '/scan', isAllowedSessionHandler, storeBuilderController.scanv1 )
|
|
29
29
|
.post( '/updateMissing', isAllowedSessionHandler, storeBuilderController.updateMissing )
|
|
30
30
|
.post( '/bulkFixtureUpload', isAllowedSessionHandler, storeBuilderController.bulkFixtureUpload )
|
|
31
31
|
.post( '/uploadImage', isAllowedSessionHandler, storeBuilderController.uploadImage )
|
|
32
|
-
.post( '/storeFixturesTask', storeBuilderController.storeFixturesTask )
|
|
32
|
+
.post( '/storeFixturesTask', isAllowedSessionHandler, storeBuilderController.storeFixturesTask )
|
|
33
33
|
.post( '/qrFileUpload', isAllowedSessionHandler, storeBuilderController.qrFileUpload )
|
|
34
34
|
.post( '/updateQrCvProcessRequest', isAllowedSessionHandler, storeBuilderController.updateQrCvProcessRequest )
|
|
35
35
|
.post( '/getQrCvProcessRequest', isAllowedSessionHandler, storeBuilderController.getQrCvProcessRequest )
|
|
@@ -40,6 +40,6 @@ storeBuilderRouter
|
|
|
40
40
|
.post( '/getshelfSections', isAllowedSessionHandler, storeBuilderController.getShelfSections )
|
|
41
41
|
.post( '/getFixtureTypes', isAllowedSessionHandler, storeBuilderController.getFixtureTypes )
|
|
42
42
|
.post( '/getFixtureLengths', isAllowedSessionHandler, storeBuilderController.getFixtureLengths )
|
|
43
|
-
.post( '/getFixtureBrands', storeBuilderController.getFixtureBrands )
|
|
43
|
+
.post( '/getFixtureBrands', isAllowedSessionHandler, storeBuilderController.getFixtureBrands )
|
|
44
44
|
.post( '/checkPlanoExist', isAllowedSessionHandler, storeBuilderController.checkPlanoExist )
|
|
45
45
|
.post( '/storeLayoutElements', isAllowedSessionHandler, storeBuilderController.storeLayoutElements );
|