tango-app-api-analysis-zone 3.7.1-alpha.13 → 3.7.1-alpha.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
|
@@ -107,6 +107,12 @@ export const topPerformingStoresV1 = async ( req, res ) => {
|
|
|
107
107
|
export const zoneSummaryTableV1 = async ( req, res ) => {
|
|
108
108
|
try {
|
|
109
109
|
let reqestData = req.body;
|
|
110
|
+
const getClientData = await getClientConfig( reqestData.clientId );
|
|
111
|
+
if ( !getClientData ) {
|
|
112
|
+
return res.sendError( 'Invalid Client Id', 400 );
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
reqestData.featureConfigs = getClientData.featureConfigs;
|
|
110
116
|
if ( reqestData.export ) {
|
|
111
117
|
reqestData.limit = 10000;
|
|
112
118
|
}
|
|
@@ -124,7 +130,10 @@ export const zoneSummaryTableV1 = async ( req, res ) => {
|
|
|
124
130
|
'Store Name': element.storeName,
|
|
125
131
|
'Store ID': element.storeId,
|
|
126
132
|
...( element.storefootfallCount !== undefined && { 'Store FF': element.storefootfallCount } ),
|
|
127
|
-
...(
|
|
133
|
+
...( reqestData.featureConfigs?.isNOB ?
|
|
134
|
+
{ 'Zone Wise NoB': element.NoB ?? 0 } :
|
|
135
|
+
{ 'Zone Wise Conversion': element.NoB ?? 0 }
|
|
136
|
+
),
|
|
128
137
|
'Zone Conc.Rate': element.concentrationRate,
|
|
129
138
|
'Avg Dwell Time (Mins)': element.avgDwellTime,
|
|
130
139
|
'Zone FF': element.footfallCount,
|
|
@@ -853,7 +862,8 @@ export const getNewZoneFFV2 = async ( req, res ) => {
|
|
|
853
862
|
export const getSelectedZoneFFV2 = async ( req, res ) => {
|
|
854
863
|
try {
|
|
855
864
|
let reqestData = req.body;
|
|
856
|
-
let LamdaURL = 'https://
|
|
865
|
+
let LamdaURL = 'https://rueg2hacc7ttlvbxkr73oij47q0upjqz.lambda-url.ap-south-1.on.aws/';
|
|
866
|
+
// 'https://6adocjaelheviyminlomqqncmi0japrn.lambda-url.ap-south-1.on.aws/';
|
|
857
867
|
let resultData = await LamdaServiceCall( LamdaURL, reqestData );
|
|
858
868
|
if ( resultData ) {
|
|
859
869
|
if ( resultData.status_code == '200' ) {
|