@zeniai/client-epic-state 4.19.97-betaRR0 → 4.19.97
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/lib/entity/account/accountPayload.d.ts +0 -2
- package/lib/entity/account/accountPayload.js +0 -2
- package/lib/entity/account/accountState.d.ts +0 -2
- package/lib/entity/depositAccount/depositAccount.d.ts +1 -1
- package/lib/entity/depositAccount/depositAccount.js +1 -8
- package/lib/entity/reimbursement/reimbursementPayload.d.ts +0 -2
- package/lib/entity/reimbursement/reimbursementPayload.js +0 -7
- package/lib/entity/reimbursement/reimbursementState.d.ts +0 -2
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/entity/task/taskPayload.d.ts +0 -1
- package/lib/entity/task/taskPayload.js +0 -1
- package/lib/entity/task/taskState.d.ts +0 -1
- package/lib/epic.d.ts +1 -17
- package/lib/epic.js +1 -17
- package/lib/esm/entity/account/accountPayload.js +0 -2
- package/lib/esm/entity/depositAccount/depositAccount.js +1 -8
- package/lib/esm/entity/reimbursement/reimbursementPayload.js +0 -7
- package/lib/esm/entity/snackbar/snackbarTypes.js +0 -1
- package/lib/esm/entity/task/taskPayload.js +0 -1
- package/lib/esm/epic.js +1 -17
- package/lib/esm/index.js +5 -14
- package/lib/esm/reducer.js +0 -9
- package/lib/esm/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +3 -8
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
- package/lib/esm/view/expenseAutomationView/payload/missingReceiptsPayload.js +1 -189
- package/lib/esm/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -433
- package/lib/esm/view/expenseAutomationView/reducers/transactionsViewReducer.js +1 -23
- package/lib/esm/view/expenseAutomationView/selectors/missingReceiptsSelector.js +1 -244
- package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/esm/view/expenseAutomationView/types/missingReceiptsViewState.js +0 -44
- package/lib/esm/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +1 -14
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/lib/esm/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/esm/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/esm/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/esm/zeniAPI.js +2 -0
- package/lib/index.d.ts +6 -14
- package/lib/index.js +32 -95
- package/lib/reducer.d.ts +0 -9
- package/lib/reducer.js +0 -9
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +3 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/uploadMissingReceiptSuccessEpic.js +5 -7
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.d.ts +0 -118
- package/lib/view/expenseAutomationView/payload/missingReceiptsPayload.js +0 -201
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.d.ts +3 -76
- package/lib/view/expenseAutomationView/reducers/missingReceiptsViewReducer.js +2 -434
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.d.ts +3 -11
- package/lib/view/expenseAutomationView/reducers/transactionsViewReducer.js +2 -24
- package/lib/view/expenseAutomationView/selectorTypes/missingReceiptsSelectorTypes.d.ts +1 -69
- package/lib/view/expenseAutomationView/selectorTypes/transactionsViewSelectorTypes.d.ts +0 -1
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.d.ts +1 -1
- package/lib/view/expenseAutomationView/selectors/missingReceiptsSelector.js +0 -243
- package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +1 -2
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +0 -142
- package/lib/view/expenseAutomationView/types/missingReceiptsViewState.js +1 -54
- package/lib/view/expenseAutomationView/types/transactionsViewState.d.ts +1 -2
- package/lib/view/expenseAutomationView/types/transactionsViewState.js +1 -2
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -4
- package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -15
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +1 -1
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.d.ts +0 -1
- package/lib/view/taskManager/taskListView/epics/bulkUpdateTaskListEpic.js +0 -1
- package/lib/view/taskManager/taskListView/taskListSelector.d.ts +0 -2
- package/lib/view/taskManager/taskListView/taskListSelector.js +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.d.ts +1 -3
- package/lib/view/userListView/fetchUserListByTypeEpic.js +0 -11
- package/lib/view/userListView/userListViewPayload.d.ts +0 -2
- package/lib/zeniAPI.js +2 -0
- package/package.json +2 -2
- package/lib/entity/userGroups/userGroupsPayload.d.ts +0 -7
- package/lib/entity/userGroups/userGroupsPayload.js +0 -10
- package/lib/entity/userGroups/userGroupsReducer.d.ts +0 -8
- package/lib/entity/userGroups/userGroupsReducer.js +0 -29
- package/lib/entity/userGroups/userGroupsSelector.d.ts +0 -4
- package/lib/entity/userGroups/userGroupsSelector.js +0 -12
- package/lib/entity/userGroups/userGroupsState.d.ts +0 -9
- package/lib/entity/userGroups/userGroupsState.js +0 -2
- package/lib/esm/entity/userGroups/userGroupsPayload.js +0 -7
- package/lib/esm/entity/userGroups/userGroupsReducer.js +0 -25
- package/lib/esm/entity/userGroups/userGroupsSelector.js +0 -8
- package/lib/esm/entity/userGroups/userGroupsState.js +0 -1
- package/lib/esm/view/expenseAutomationView/bulkUploadTiming.js +0 -10
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -29
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -49
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -40
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -47
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -61
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -33
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -56
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -77
- package/lib/esm/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -79
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -24
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.js +0 -58
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.js +0 -1
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.js +0 -103
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.js +0 -63
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.js +0 -5
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.js +0 -62
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.js +0 -4
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.js +0 -4
- package/lib/esm/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.js +0 -10
- package/lib/esm/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.js +0 -36
- package/lib/esm/view/userGroupListView/userGroupListViewReducer.js +0 -65
- package/lib/esm/view/userGroupListView/userGroupListViewSelector.js +0 -16
- package/lib/esm/view/userGroupListView/userGroupListViewState.js +0 -1
- package/lib/view/expenseAutomationView/bulkUploadTiming.d.ts +0 -10
- package/lib/view/expenseAutomationView/bulkUploadTiming.js +0 -13
- package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.d.ts +0 -18
- package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.js +0 -33
- package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/missingReceipts/confirmBulkUploadMatchEpic.js +0 -53
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchDetailsEpic.js +0 -44
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchBulkUploadBatchesEpic.js +0 -51
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchCompletedTransactionsEpic.js +0 -65
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.d.ts +0 -8
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMoreBatchDetailsEpic.js +0 -37
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.d.ts +0 -9
- package/lib/view/expenseAutomationView/epics/missingReceipts/fetchMultipleBatchDetailsEpic.js +0 -61
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.d.ts +0 -14
- package/lib/view/expenseAutomationView/epics/missingReceipts/searchTransactionsForManualMatchEpic.js +0 -81
- package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.d.ts +0 -25
- package/lib/view/expenseAutomationView/epics/missingReceipts/watchBulkUploadBatchStatusEpic.js +0 -85
- package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.d.ts +0 -7
- package/lib/view/expenseAutomationView/epics/transactionCategorization/uploadTransactionReceiptSuccessEpic.js +0 -28
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingDataRequests.js +0 -62
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.d.ts +0 -34
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingPayload.js +0 -2
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.d.ts +0 -7
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingReducer.js +0 -107
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.d.ts +0 -16
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingSelector.js +0 -67
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.d.ts +0 -63
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/cardsOnboardingState.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.d.ts +0 -20
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/createAllAiRecommendedCardsEpic.js +0 -66
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.d.ts +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchAiCardRecommendationEpic.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/fetchChainOfThoughtsForAiCardRecommendationEpic.js +0 -8
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.d.ts +0 -13
- package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.js +0 -14
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.d.ts +0 -12
- package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.js +0 -40
- package/lib/view/userGroupListView/userGroupListViewReducer.d.ts +0 -23
- package/lib/view/userGroupListView/userGroupListViewReducer.js +0 -69
- package/lib/view/userGroupListView/userGroupListViewSelector.d.ts +0 -7
- package/lib/view/userGroupListView/userGroupListViewSelector.js +0 -20
- package/lib/view/userGroupListView/userGroupListViewState.d.ts +0 -8
- package/lib/view/userGroupListView/userGroupListViewState.js +0 -2
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Chain-of-thoughts for the AI cards drawer — **GET only**:
|
|
3
|
-
* `GET …/1.0/chain-of-thoughts-for-ai-card-recommendation` (no body).
|
|
4
|
-
* Response feeds `chainOfThoughtsResponse` (analyzing, thinking, thought_process) for the drawer.
|
|
5
|
-
*/
|
|
6
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
7
|
-
import { Observable } from 'rxjs';
|
|
8
|
-
import { RootState } from '../../../../reducer';
|
|
9
|
-
import { ZeniAPI } from '../../../../zeniAPI';
|
|
10
|
-
import { ChainOfThoughtsRequestAction } from './cardsOnboardingDataRequests';
|
|
11
|
-
import { fetchChainOfThoughtsForAiCardRecommendation } from './cardsOnboardingReducer';
|
|
12
|
-
export type ActionType = ReturnType<typeof fetchChainOfThoughtsForAiCardRecommendation> | ChainOfThoughtsRequestAction;
|
|
13
|
-
export declare const fetchChainOfThoughtsForAiCardRecommendationEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchChainOfThoughtsForAiCardRecommendationEpic = void 0;
|
|
4
|
-
const operators_1 = require("rxjs/operators");
|
|
5
|
-
const cardsOnboardingDataRequests_1 = require("./cardsOnboardingDataRequests");
|
|
6
|
-
const cardsOnboardingReducer_1 = require("./cardsOnboardingReducer");
|
|
7
|
-
const fetchChainOfThoughtsForAiCardRecommendationEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(cardsOnboardingReducer_1.fetchChainOfThoughtsForAiCardRecommendation.match), (0, operators_1.switchMap)(() => (0, cardsOnboardingDataRequests_1.requestChainOfThoughtsForAiCardRecommendation$)(zeniAPI)));
|
|
8
|
-
exports.fetchChainOfThoughtsForAiCardRecommendationEpic = fetchChainOfThoughtsForAiCardRecommendationEpic;
|
package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { RootState } from '../../../../reducer';
|
|
4
|
-
import { ZeniAPI } from '../../../../zeniAPI';
|
|
5
|
-
import { AiCardRecommendationRequestAction, ChainOfThoughtsRequestAction } from './cardsOnboardingDataRequests';
|
|
6
|
-
import { startAiCardAgentDrawerDataLoad } from './cardsOnboardingReducer';
|
|
7
|
-
export type ActionType = ReturnType<typeof startAiCardAgentDrawerDataLoad> | ChainOfThoughtsRequestAction | AiCardRecommendationRequestAction;
|
|
8
|
-
/**
|
|
9
|
-
* On "Let's get started": runs chain-of-thoughts GET and AI card recommendation GET **in parallel**.
|
|
10
|
-
* Reducer (`startAiCardAgentDrawerDataLoad`) resets both slices; use `getAiCardAgentDrawerDisplayState`
|
|
11
|
-
* for phased CoT UI, sparkle while recommendations load, and gated recommendation content.
|
|
12
|
-
*/
|
|
13
|
-
export declare const startAiCardAgentDrawerDataLoadEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
|
package/lib/view/spendManagement/chargeCards/cardsOnboarding/startAiCardAgentDrawerDataLoadEpic.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.startAiCardAgentDrawerDataLoadEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const cardsOnboardingDataRequests_1 = require("./cardsOnboardingDataRequests");
|
|
7
|
-
const cardsOnboardingReducer_1 = require("./cardsOnboardingReducer");
|
|
8
|
-
/**
|
|
9
|
-
* On "Let's get started": runs chain-of-thoughts GET and AI card recommendation GET **in parallel**.
|
|
10
|
-
* Reducer (`startAiCardAgentDrawerDataLoad`) resets both slices; use `getAiCardAgentDrawerDisplayState`
|
|
11
|
-
* for phased CoT UI, sparkle while recommendations load, and gated recommendation content.
|
|
12
|
-
*/
|
|
13
|
-
const startAiCardAgentDrawerDataLoadEpic = (actions$, _state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(cardsOnboardingReducer_1.startAiCardAgentDrawerDataLoad.match), (0, operators_1.switchMap)(() => (0, rxjs_1.merge)((0, cardsOnboardingDataRequests_1.requestChainOfThoughtsForAiCardRecommendation$)(zeniAPI), (0, cardsOnboardingDataRequests_1.requestAiCardRecommendation$)(zeniAPI))));
|
|
14
|
-
exports.startAiCardAgentDrawerDataLoadEpic = startAiCardAgentDrawerDataLoadEpic;
|
package/lib/view/spendManagement/chargeCards/chargeCardList/fetchCardsOnboardingPageEpic.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cards onboarding page: loads credit, cashback, and **full people directory** via `fetchPeople`
|
|
3
|
-
* (`GET …/user-roles` → `updateAllUsers`), not the card-holder-candidate subset.
|
|
4
|
-
*/
|
|
5
|
-
import { ActionsObservable, StateObservable } from 'redux-observable';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import { RootState } from '../../../../reducer';
|
|
8
|
-
import { fetchPeople } from '../../../people/peopleReducer';
|
|
9
|
-
import { fetchCashbackDetail } from '../cashbackDetail/cashbackDetailReducer';
|
|
10
|
-
import { fetchCardsOnboardingPage, fetchCreditAccount } from './chargeCardListReducer';
|
|
11
|
-
export type ActionType = ReturnType<typeof fetchCardsOnboardingPage> | ReturnType<typeof fetchCreditAccount> | ReturnType<typeof fetchPeople> | ReturnType<typeof fetchCashbackDetail>;
|
|
12
|
-
export declare const fetchCardsOnboardingPageEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => Observable<ActionType>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchCardsOnboardingPageEpic = void 0;
|
|
4
|
-
const rxjs_1 = require("rxjs");
|
|
5
|
-
const operators_1 = require("rxjs/operators");
|
|
6
|
-
const peopleReducer_1 = require("../../../people/peopleReducer");
|
|
7
|
-
const cashbackDetailReducer_1 = require("../cashbackDetail/cashbackDetailReducer");
|
|
8
|
-
const chargeCardListReducer_1 = require("./chargeCardListReducer");
|
|
9
|
-
const fetchCardsOnboardingPageEpic = (actions$, state$) => actions$.pipe((0, operators_1.filter)(chargeCardListReducer_1.fetchCardsOnboardingPage.match), (0, operators_1.mergeMap)((action) => {
|
|
10
|
-
const { isCreditCardEnabled, cacheOverride } = action.payload;
|
|
11
|
-
const actions = [];
|
|
12
|
-
const state = state$.value;
|
|
13
|
-
if (cacheOverride === true) {
|
|
14
|
-
if (isCreditCardEnabled) {
|
|
15
|
-
actions.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
16
|
-
}
|
|
17
|
-
actions.push((0, cashbackDetailReducer_1.fetchCashbackDetail)());
|
|
18
|
-
actions.push((0, peopleReducer_1.fetchPeople)());
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
const chargeCardList = state.chargeCardListState;
|
|
22
|
-
if (isCreditCardEnabled &&
|
|
23
|
-
chargeCardList.creditAccount.fetchState !== 'Completed' &&
|
|
24
|
-
chargeCardList.creditAccount.fetchState !== 'In-Progress') {
|
|
25
|
-
actions.push((0, chargeCardListReducer_1.fetchCreditAccount)());
|
|
26
|
-
}
|
|
27
|
-
const cashbackDetailState = state.cashbackDetailState;
|
|
28
|
-
if (cashbackDetailState.fetchState !== 'In-Progress' &&
|
|
29
|
-
cashbackDetailState.hasValidState() === false) {
|
|
30
|
-
actions.push((0, cashbackDetailReducer_1.fetchCashbackDetail)());
|
|
31
|
-
}
|
|
32
|
-
const peopleState = state.peopleState;
|
|
33
|
-
if (peopleState.fetchState !== 'In-Progress' &&
|
|
34
|
-
peopleState.hasValidState() === false) {
|
|
35
|
-
actions.push((0, peopleReducer_1.fetchPeople)());
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return (0, rxjs_1.concat)((0, rxjs_1.from)(actions));
|
|
39
|
-
}));
|
|
40
|
-
exports.fetchCardsOnboardingPageEpic = fetchCardsOnboardingPageEpic;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ID } from '../../commonStateTypes/common';
|
|
2
|
-
import { UserGroupPayload } from '../../entity/userGroups/userGroupsPayload';
|
|
3
|
-
import { ZeniAPIStatus } from '../../responsePayload';
|
|
4
|
-
import { UserGroupListType, UserGroupListViewState } from './userGroupListViewState';
|
|
5
|
-
export declare const initialState: UserGroupListViewState;
|
|
6
|
-
export declare const fetchUserGroupListByType: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[userGroupType: "taskManagerCandidate", cacheOverride?: any], {
|
|
7
|
-
userGroupType: "taskManagerCandidate";
|
|
8
|
-
cacheOverride: any;
|
|
9
|
-
}, "userGroupListView/fetchUserGroupListByType", never, never>, updateUserGroupIds: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
10
|
-
userGroupsPayload: UserGroupPayload[];
|
|
11
|
-
userGroupType: UserGroupListType;
|
|
12
|
-
}, "userGroupListView/updateUserGroupIds">, addUserGroupId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
13
|
-
id: ID;
|
|
14
|
-
userGroupType: UserGroupListType;
|
|
15
|
-
}, "userGroupListView/addUserGroupId">, removeUserGroupId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
16
|
-
id: ID;
|
|
17
|
-
userGroupType: UserGroupListType;
|
|
18
|
-
}, "userGroupListView/removeUserGroupId">, updateUserGroupListFetchFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
19
|
-
status: ZeniAPIStatus;
|
|
20
|
-
userGroupType: UserGroupListType;
|
|
21
|
-
}, "userGroupListView/updateUserGroupListFetchFailure">, clearUserGroupListView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"userGroupListView/clearUserGroupListView">;
|
|
22
|
-
declare const _default: import("redux").Reducer<UserGroupListViewState>;
|
|
23
|
-
export default _default;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.clearUserGroupListView = exports.updateUserGroupListFetchFailure = exports.removeUserGroupId = exports.addUserGroupId = exports.updateUserGroupIds = exports.fetchUserGroupListByType = exports.initialState = void 0;
|
|
5
|
-
const toolkit_1 = require("@reduxjs/toolkit");
|
|
6
|
-
const initialUserGroupList = {
|
|
7
|
-
ids: [],
|
|
8
|
-
fetchState: 'Not-Started',
|
|
9
|
-
error: undefined,
|
|
10
|
-
hasValidState() {
|
|
11
|
-
return this.fetchState == 'Completed';
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
exports.initialState = {
|
|
15
|
-
userGroupListByType: {
|
|
16
|
-
taskManagerCandidate: initialUserGroupList,
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
const userGroupListView = (0, toolkit_1.createSlice)({
|
|
20
|
-
name: 'userGroupListView',
|
|
21
|
-
initialState: exports.initialState,
|
|
22
|
-
reducers: {
|
|
23
|
-
fetchUserGroupListByType: {
|
|
24
|
-
reducer(draft, action) {
|
|
25
|
-
const { userGroupType } = action.payload;
|
|
26
|
-
draft.userGroupListByType[userGroupType].fetchState = 'In-Progress';
|
|
27
|
-
draft.userGroupListByType[userGroupType].error = undefined;
|
|
28
|
-
},
|
|
29
|
-
prepare(userGroupType, cacheOverride = false) {
|
|
30
|
-
return {
|
|
31
|
-
payload: {
|
|
32
|
-
userGroupType,
|
|
33
|
-
cacheOverride,
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
updateUserGroupIds(draft, action) {
|
|
39
|
-
const { userGroupType, userGroupsPayload } = action.payload;
|
|
40
|
-
draft.userGroupListByType[userGroupType].fetchState = 'Completed';
|
|
41
|
-
draft.userGroupListByType[userGroupType].error = undefined;
|
|
42
|
-
draft.userGroupListByType[userGroupType].ids = userGroupsPayload.map((userGroup) => userGroup.id);
|
|
43
|
-
},
|
|
44
|
-
addUserGroupId(draft, action) {
|
|
45
|
-
const { userGroupType, id } = action.payload;
|
|
46
|
-
const index = draft.userGroupListByType[userGroupType].ids.indexOf(id);
|
|
47
|
-
if (index < 0) {
|
|
48
|
-
draft.userGroupListByType[userGroupType].ids.push(id);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
removeUserGroupId(draft, action) {
|
|
52
|
-
const { userGroupType, id } = action.payload;
|
|
53
|
-
const index = draft.userGroupListByType[userGroupType].ids.indexOf(id);
|
|
54
|
-
if (index > -1) {
|
|
55
|
-
draft.userGroupListByType[userGroupType].ids.splice(index, 1);
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
updateUserGroupListFetchFailure(draft, action) {
|
|
59
|
-
const { userGroupType, status } = action.payload;
|
|
60
|
-
draft.userGroupListByType[userGroupType].fetchState = 'Error';
|
|
61
|
-
draft.userGroupListByType[userGroupType].error = status;
|
|
62
|
-
},
|
|
63
|
-
clearUserGroupListView(draft) {
|
|
64
|
-
Object.assign(draft, exports.initialState);
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
_a = userGroupListView.actions, exports.fetchUserGroupListByType = _a.fetchUserGroupListByType, exports.updateUserGroupIds = _a.updateUserGroupIds, exports.addUserGroupId = _a.addUserGroupId, exports.removeUserGroupId = _a.removeUserGroupId, exports.updateUserGroupListFetchFailure = _a.updateUserGroupListFetchFailure, exports.clearUserGroupListView = _a.clearUserGroupListView;
|
|
69
|
-
exports.default = userGroupListView.reducer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SelectorView } from '../../commonStateTypes/viewAndReport/viewAndReport';
|
|
2
|
-
import { UserGroup, UserGroupsState } from '../../entity/userGroups/userGroupsState';
|
|
3
|
-
import { UserGroupListType, UserGroupListViewState } from './userGroupListViewState';
|
|
4
|
-
export interface UserGroupListSelectorView extends SelectorView {
|
|
5
|
-
userGroups: UserGroup[];
|
|
6
|
-
}
|
|
7
|
-
export declare const getUserGroupList: (userGroupsState: UserGroupsState, userGroupListViewState: UserGroupListViewState, userGroupType: UserGroupListType) => UserGroupListSelectorView;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUserGroupList = void 0;
|
|
4
|
-
const userGroupsSelector_1 = require("../../entity/userGroups/userGroupsSelector");
|
|
5
|
-
const getUserGroupList = (userGroupsState, userGroupListViewState, userGroupType) => {
|
|
6
|
-
const listState = userGroupListViewState.userGroupListByType[userGroupType];
|
|
7
|
-
return {
|
|
8
|
-
userGroups: getUserGroupListByIds(userGroupsState, userGroupListViewState, userGroupType),
|
|
9
|
-
fetchState: listState?.fetchState,
|
|
10
|
-
error: listState?.error,
|
|
11
|
-
version: 0,
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
exports.getUserGroupList = getUserGroupList;
|
|
15
|
-
function getUserGroupListByIds(userGroupsState, userGroupListViewState, type) {
|
|
16
|
-
const userGroupIds = userGroupListViewState.userGroupListByType[type].ids;
|
|
17
|
-
return userGroupIds
|
|
18
|
-
.map((id) => (0, userGroupsSelector_1.getUserGroupByUserGroupId)(userGroupsState, id))
|
|
19
|
-
.filter((value) => value != null);
|
|
20
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FetchedState, ID } from '../../commonStateTypes/common';
|
|
2
|
-
export type UserGroupListType = 'taskManagerCandidate';
|
|
3
|
-
export interface UserGroupIdsByType extends FetchedState {
|
|
4
|
-
ids: ID[];
|
|
5
|
-
}
|
|
6
|
-
export interface UserGroupListViewState {
|
|
7
|
-
userGroupListByType: Record<UserGroupListType, UserGroupIdsByType>;
|
|
8
|
-
}
|