tango-app-api-client 3.0.55-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
|
@@ -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,16 +1752,16 @@ 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
|
|
1755
|
+
'Brand ID': client.clientId,
|
|
1743
1756
|
'Onboarded Stores': client.onboardedStores||0,
|
|
1744
1757
|
'Installed Stores': client.installedStore || 0,
|
|
1745
|
-
'Progress
|
|
1758
|
+
'Progress Status': client.ProgressBar||0,
|
|
1746
1759
|
'Active Stores': client.activeStores || 0,
|
|
1747
|
-
'In-Active Stores': client.
|
|
1760
|
+
'In-Active Stores': client.InactiveStores || 0,
|
|
1748
1761
|
'Pending Configuration': client.installedPending || 0,
|
|
1749
|
-
'Payment Plan': client.PaymentPlan,
|
|
1762
|
+
'Payment Plan': client.PaymentPlan == 'free'?'Lifetime Free':client.PaymentPlan,
|
|
1750
1763
|
'Subscription Plan': client.subscriptionPlan,
|
|
1751
|
-
'Processing Status': 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 );
|