tango-app-api-client 3.0.56-dev → 3.0.57-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.56-dev",
3
+ "version": "3.0.57-dev",
4
4
  "description": "client",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1676,6 +1676,19 @@ export async function clientListV1( req, res ) {
1676
1676
  clientName: 1,
1677
1677
  subscriptionPlan: 1,
1678
1678
  PaymentPlan: 1,
1679
+ PaymentPlan: {
1680
+ $cond: {
1681
+ if: { $eq: [ '$PaymentPlan', 'unbilled' ] },
1682
+ then: 'paid',
1683
+ else: {
1684
+ $cond: {
1685
+ if: { $eq: [ '$PaymentPlan', 'due' ] },
1686
+ then: 'paid',
1687
+ else: '$PaymentPlan',
1688
+ },
1689
+ },
1690
+ },
1691
+ },
1679
1692
  installedPending: 1,
1680
1693
  installedFailed: 1,
1681
1694
  ProgressBar: {
@@ -1739,7 +1752,7 @@ export async function clientListV1( req, res ) {
1739
1752
  for ( let client of clientList ) {
1740
1753
  exportResult.push( {
1741
1754
  'Brand Name': client.clientName,
1742
- 'Brand Id': client.clientId,
1755
+ 'Brand ID': client.clientId,
1743
1756
  'Onboarded Stores': client.onboardedStores||0,
1744
1757
  'Installed Stores': client.installedStore || 0,
1745
1758
  'Progress Status': client.ProgressBar||0,
@@ -1748,7 +1761,7 @@ export async function clientListV1( req, res ) {
1748
1761
  'Pending Configuration': client.installedPending || 0,
1749
1762
  'Payment Plan': client.PaymentPlan == 'free'?'Lifetime Free':client.PaymentPlan,
1750
1763
  'Subscription Plan': client.subscriptionPlan,
1751
- 'Processing Status': client.ProcessingStatus=='active'?'Activated':client.ProcessingStatus?'deactive':client.ProcessingStatus,
1764
+ 'Processing Status': client.ProcessingStatus=='active'?'Activated':client.ProcessingStatus=='deactive'?'Deactivated':client.ProcessingStatus,
1752
1765
  } );
1753
1766
  }
1754
1767
  await download( exportResult, res );