@zeniai/client-epic-state 4.19.8-betaAR1 → 4.19.8-betaJK2
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.
|
@@ -45,6 +45,6 @@ export type UpdateNetBurnSettingsResponse = ZeniAPIResponse<TenantsPayload>;
|
|
|
45
45
|
/**
|
|
46
46
|
* Helpers
|
|
47
47
|
*/
|
|
48
|
-
export declare const toNetBurnOrIncomeCOABalanceWithAveragesGrouped: (payload: NetBurnOrIncomeCOABalanceWithAveragesPayload
|
|
48
|
+
export declare const toNetBurnOrIncomeCOABalanceWithAveragesGrouped: (payload: NetBurnOrIncomeCOABalanceWithAveragesPayload) => NetBurnOrIncomeCOABalanceWithAveragesGrouped;
|
|
49
49
|
export declare const toNetBurnOrIncomeRunway: (payload: RunwayPayload) => NetBurnOrIncomeRunway;
|
|
50
50
|
export {};
|
|
@@ -13,15 +13,6 @@ const netBurnOrIncomeStoryCardState_1 = require("./netBurnOrIncomeStoryCardState
|
|
|
13
13
|
*/
|
|
14
14
|
const toNetBurnOrIncomeCOABalanceWithAveragesGrouped = (payload) => {
|
|
15
15
|
var _a, _b, _c, _d, _e, _f;
|
|
16
|
-
// Guard clause: check if input object exists
|
|
17
|
-
if (payload == null) {
|
|
18
|
-
return {
|
|
19
|
-
months: [],
|
|
20
|
-
averages: {
|
|
21
|
-
months: [],
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
16
|
return {
|
|
26
17
|
months: (_b = (_a = payload.months) === null || _a === void 0 ? void 0 : _a.map((monthPayload) => (0, coaBalancePayload_1.mapCOABalancePayloadToCOABalance)(monthPayload, 'month'))) !== null && _b !== void 0 ? _b : [],
|
|
27
18
|
averages: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.8-
|
|
3
|
+
"version": "4.19.8-betaJK2",
|
|
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",
|