@zeniai/client-epic-state 4.9.38 → 4.9.40
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.
|
@@ -140,7 +140,6 @@ const removeDuplicatesFromCompaniesArray = (companies) => {
|
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
142
|
const getCategoryValueForCompany = (key, company) => {
|
|
143
|
-
var _a;
|
|
144
143
|
const controllerIds = (0, companyHelper_1.getControllersUserIds)(company.controllers);
|
|
145
144
|
const firstControllerId = (0, companyHelper_1.getFirstControllerId)(controllerIds);
|
|
146
145
|
switch (key) {
|
|
@@ -150,6 +149,14 @@ const getCategoryValueForCompany = (key, company) => {
|
|
|
150
149
|
return company.managegmentInfo.lastReportSentDate != null
|
|
151
150
|
? company.managegmentInfo.lastReportSentDate
|
|
152
151
|
: undefined;
|
|
152
|
+
case 'subscriptionStartDate':
|
|
153
|
+
return company.companyHealthMetric.subscriptionStartDate != null
|
|
154
|
+
? company.companyHealthMetric.subscriptionStartDate
|
|
155
|
+
: undefined;
|
|
156
|
+
case 'subscriptionRenewalDate':
|
|
157
|
+
return company.companyHealthMetric.subscriptionRenewalDate != null
|
|
158
|
+
? company.companyHealthMetric.subscriptionRenewalDate
|
|
159
|
+
: undefined;
|
|
153
160
|
case 'runway':
|
|
154
161
|
return company.companyHealthMetric.runway &&
|
|
155
162
|
company.companyHealthMetric.runway.runwayMonths != null
|
|
@@ -164,11 +171,10 @@ const getCategoryValueForCompany = (key, company) => {
|
|
|
164
171
|
? company.companyHealthMetric.netPromoterScore.toString()
|
|
165
172
|
: undefined;
|
|
166
173
|
case 'churnProbabilityPercentage':
|
|
174
|
+
default:
|
|
167
175
|
return company.companyHealthMetric.churnProbabilityPercentage != null
|
|
168
176
|
? company.companyHealthMetric.churnProbabilityPercentage.toString()
|
|
169
177
|
: undefined;
|
|
170
|
-
default:
|
|
171
|
-
return (_a = company.companyHealthMetric[key]) === null || _a === void 0 ? void 0 : _a.toString();
|
|
172
178
|
}
|
|
173
179
|
};
|
|
174
180
|
const applyAdvancedFiltersOnCompaniesList = (allCompanies, filters, filteredCompanies = [], index = 0) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.40",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|