@zeniai/client-epic-state 4.9.42 → 4.9.43

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.
@@ -83,12 +83,9 @@ const getScheduleListReport = (state, scheduleType) => {
83
83
  : [];
84
84
  if (accountLabel != null) {
85
85
  const filteredList = (0, accountListSelector_1.getFilteredNestedAndAccountListsForLabel)(accountState, accountListState, (0, scheduleListHelper_1.getAccountListKeyForSchedules)(), accountLabel);
86
- // Use this list only if there is some account in it.
87
- if (filteredList.accountList.length > 0) {
88
- allAccounts = filteredList.accountList.filter((account) => scheduleListCurrentTabAccountIds.includes(account.accountId));
89
- allNestedAccounts = filteredList.nestedAccountList.filter((account) => account.accountId[0] != null &&
90
- scheduleListCurrentTabAccountIds.includes(account.accountId[0]));
91
- }
86
+ allAccounts = filteredList.accountList.filter((account) => scheduleListCurrentTabAccountIds.includes(account.accountId));
87
+ allNestedAccounts = filteredList.nestedAccountList.filter((account) => account.accountId[0] != null &&
88
+ scheduleListCurrentTabAccountIds.includes(account.accountId[0]));
92
89
  }
93
90
  const key = (0, scheduleListTypes_1.getScheduleListKey)(scheduleState.selectedCategoryId, scheduleState.selectedTimeframe);
94
91
  const scheduleJETransactions = (0, get_1.default)(scheduleState.jeScheduleKeysByListKey, key, undefined);
@@ -13,6 +13,7 @@ export interface ChargeCardDetailSelectorView extends SelectorView {
13
13
  transactionListFetchState: FetchStateAndError;
14
14
  twoFAView: TwoFactorAuthenticationState;
15
15
  loggedInUserPhone: string;
16
+ updateFetchState: FetchStateAndError;
16
17
  chargeCard?: ChargeCardWithUser;
17
18
  }
18
19
  export declare const getChargeCardDetailView: (state: RootState, chargeCardId: ID) => ChargeCardDetailSelectorView;
@@ -14,7 +14,7 @@ const userSelector_1 = require("../../../../entity/user/userSelector");
14
14
  const userRoleSelector_1 = require("../../../../entity/userRole/userRoleSelector");
15
15
  const chargeCardDetail_1 = require("./chargeCardDetail");
16
16
  const getChargeCardDetailView = (state, chargeCardId) => {
17
- var _a, _b, _c, _d, _e;
17
+ var _a, _b, _c, _d, _e, _f;
18
18
  const { tenantState, addressState, chargeCardDetailState, chargeCardState, classState, userState, userRoleState, chargeCardConfigState, chargeCardTransactionState, twoFactorAuthenticationState, } = state;
19
19
  const loggedInUserId = (_b = (_a = tenantState.loggedInUser) === null || _a === void 0 ? void 0 : _a.userId) !== null && _b !== void 0 ? _b : '';
20
20
  const loggedInUserPhone = (_e = (_c = twoFactorAuthenticationState.phone) !== null && _c !== void 0 ? _c : (_d = (0, userSelector_1.getUserByUserId)(userState, loggedInUserId)) === null || _d === void 0 ? void 0 : _d.phone) !== null && _e !== void 0 ? _e : '';
@@ -61,6 +61,10 @@ const getChargeCardDetailView = (state, chargeCardId) => {
61
61
  }
62
62
  return {
63
63
  fetchState: reducedFetchState.fetchState,
64
+ updateFetchState: (_f = chargeCardDetail === null || chargeCardDetail === void 0 ? void 0 : chargeCardDetail.updateStatus) !== null && _f !== void 0 ? _f : {
65
+ fetchState: 'Not-Started',
66
+ error: undefined,
67
+ },
64
68
  chargeCard: chargeCardWithUser,
65
69
  error: reducedFetchState.error,
66
70
  chargeCardConfig: chargeCardConfigState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.9.42",
3
+ "version": "4.9.43",
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",