tango-app-api-store-builder 1.1.13 → 1.1.14

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.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -8023,6 +8023,7 @@ export async function searchProduct( req, res ) {
8023
8023
  return res.sendError( 'Pid is required', 400 );
8024
8024
  }
8025
8025
  let getProductDetails = await planoMappingService.find( { $or: [ { pid: { $regex: req.body.pid, $options: 'i' } }, { rfId: { $regex: req.body.pid, $options: 'i' } }, { barCode: { $regex: req.body.pid, $options: 'i' } } ], planoId: req.body.planoId, floorId: req.body.floorId } );
8026
+ console.log( getProductDetails );
8026
8027
  if ( !getProductDetails.length ) {
8027
8028
  return res.sendError( 'No data found', 204 );
8028
8029
  }
@@ -8035,7 +8036,7 @@ export async function searchProduct( req, res ) {
8035
8036
  ...ele.toObject(),
8036
8037
  ...productDetails?.toObject(),
8037
8038
  ...fixtureDetails?.toObject(),
8038
- ...shelfDetails?.toObject(),
8039
+ ...shelfDetails?.toObject(), shelfNumber: shelfDetails.shelfNumber-1,
8039
8040
  };
8040
8041
  } ) );
8041
8042
  return res.sendSuccess( result );
@@ -74,7 +74,7 @@ async function createUser( data ) {
74
74
  ],
75
75
  },
76
76
  {
77
- featurName: 'TangoEye',
77
+ featureName: 'TangoEye',
78
78
  modules: [
79
79
  {
80
80
  name: 'ZoneTag',
@@ -85,7 +85,7 @@ async function createUser( data ) {
85
85
  ],
86
86
  },
87
87
  {
88
- featurName: 'TangoTrax',
88
+ featureName: 'TangoTrax',
89
89
  modules: [
90
90
  {
91
91
  name: 'checklist',
@@ -101,6 +101,29 @@ async function createUser( data ) {
101
101
  },
102
102
  ],
103
103
  },
104
+ {
105
+ featureName: 'FootfallDirectory',
106
+ modules: [
107
+ {
108
+ name: 'creator',
109
+ isAdd: true,
110
+ isEdit: true,
111
+
112
+ },
113
+ {
114
+ name: 'reviewer',
115
+ isAdd: false,
116
+ isEdit: false,
117
+
118
+ },
119
+ {
120
+ name: 'approver',
121
+ isAdd: false,
122
+ isEdit: false,
123
+
124
+ },
125
+ ],
126
+ },
104
127
  ],
105
128
  };
106
129
  let response = await userService.create( params );