tango-app-api-analysis-traffic 3.0.0-alpha.25 → 3.0.0-alpha.27

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-analysis-traffic",
3
- "version": "3.0.0-alpha.25",
3
+ "version": "3.0.0-alpha.27",
4
4
  "description": "Traffic Analysis",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -146,6 +146,8 @@ export const overallCardsV1 = async ( req, res ) => {
146
146
  return res.sendError( 'Invalid Client Id', 400 );
147
147
  }
148
148
  reqestData.featureConfigs = getClientData.featureConfigs;
149
+ reqestData.currency = getClientData.paymentInvoice?.currencyType || 'inr';
150
+ reqestData.revenue = getClientData.averageTransactionValue || '0';
149
151
  let LamdaURL = 'https://dugu3ghkgalnpaydf2wdjp37240pzcmy.lambda-url.ap-south-1.on.aws/';
150
152
  let resultData = await LamdaServiceCall( LamdaURL, reqestData );
151
153
  if ( resultData ) {
@@ -166,6 +168,7 @@ export const overallCardsV1 = async ( req, res ) => {
166
168
  export const overallHourlyChartV1 = async ( req, res ) => {
167
169
  try {
168
170
  let reqestData = req.body;
171
+ reqestData.hourFormat = 12;
169
172
  let getClientData = await getClientConfig( reqestData.clientId );
170
173
  if ( !getClientData ) {
171
174
  return res.sendError( 'Invalid Client Id', 400 );