tango-app-api-client 3.0.59-dev → 3.0.60-dev

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-client",
3
- "version": "3.0.59-dev",
3
+ "version": "3.0.60-dev",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1695,6 +1695,19 @@ export async function clientListV1( req, res ) {
1695
1695
  clientName: 1,
1696
1696
  subscriptionPlan: 1,
1697
1697
  PaymentPlan: 1,
1698
+ PaymentPlan: {
1699
+ $cond: {
1700
+ if: { $eq: [ '$PaymentPlan', 'unbilled' ] },
1701
+ then: 'paid',
1702
+ else: {
1703
+ $cond: {
1704
+ if: { $eq: [ '$PaymentPlan', 'due' ] },
1705
+ then: 'paid',
1706
+ else: '$PaymentPlan',
1707
+ },
1708
+ },
1709
+ },
1710
+ },
1698
1711
  installedPending: 1,
1699
1712
  installedFailed: 1,
1700
1713
  ProgressBar: {
@@ -1758,7 +1771,7 @@ export async function clientListV1( req, res ) {
1758
1771
  for ( let client of clientList ) {
1759
1772
  exportResult.push( {
1760
1773
  'Brand Name': client.clientName,
1761
- 'Brand Id': client.clientId,
1774
+ 'Brand ID': client.clientId,
1762
1775
  'Onboarded Stores': client.onboardedStores||0,
1763
1776
  'Installed Stores': client.installedStore || 0,
1764
1777
  'Progress Status': client.ProgressBar||0,
@@ -1767,7 +1780,7 @@ export async function clientListV1( req, res ) {
1767
1780
  'Pending Configuration': client.installedPending || 0,
1768
1781
  'Payment Plan': client.PaymentPlan == 'free'?'Lifetime Free':client.PaymentPlan,
1769
1782
  'Subscription Plan': client.subscriptionPlan,
1770
- 'Processing Status': client.ProcessingStatus=='active'?'Activated':client.ProcessingStatus?'deactive':client.ProcessingStatus,
1783
+ 'Processing Status': client.ProcessingStatus=='active'?'Activated':client.ProcessingStatus=='deactive'?'Deactivated':client.ProcessingStatus,
1771
1784
  } );
1772
1785
  }
1773
1786
  await download( exportResult, res );