@zeniai/client-epic-state 5.1.40-betaDI2 → 5.1.41-beta0ND
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/commonStateTypes/selectorTypes/pickAndMergeForecastCalculatedSection.d.ts +1 -1
- package/lib/entity/account/accountSelector.d.ts +6 -6
- package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +18 -18
- package/lib/entity/accountGroup/accountGroupSelector.d.ts +44 -44
- package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
- package/lib/entity/snackbar/snackbarTypes.js +1 -1
- package/lib/entity/task/taskPayload.d.ts +1 -2
- package/lib/entity/task/taskPayload.js +1 -8
- package/lib/entity/task/taskReducer.d.ts +1 -8
- package/lib/entity/task/taskReducer.js +4 -29
- package/lib/entity/task/taskState.d.ts +0 -1
- package/lib/entity/tenant/epic/saveExternalConnectionEpic.js +15 -7
- package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +3 -3
- package/lib/epic.d.ts +3 -5
- package/lib/epic.js +3 -5
- package/lib/esm/entity/snackbar/snackbarTypes.js +1 -1
- package/lib/esm/entity/task/taskPayload.js +1 -8
- package/lib/esm/entity/task/taskReducer.js +3 -28
- package/lib/esm/entity/tenant/epic/saveExternalConnectionEpic.js +15 -7
- package/lib/esm/epic.js +3 -5
- package/lib/esm/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +0 -3
- package/lib/esm/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +1 -7
- package/lib/esm/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +3 -2
- package/lib/esm/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +0 -1
- package/lib/esm/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +9 -70
- package/lib/esm/view/taskManager/taskDetailView/taskDetailReducer.js +2 -56
- package/lib/esm/view/taskManager/taskDetailView/taskDetailSelector.js +9 -32
- package/lib/esm/view/taskManager/taskListView/epics/fetchTaskListEpic.js +1 -3
- package/lib/esm/view/taskManager/taskListView/taskList.js +0 -1
- package/lib/esm/view/taskManager/taskListView/taskListReducer.js +12 -240
- package/lib/esm/view/taskManager/taskListView/taskListSelector.js +0 -1
- package/lib/view/addressView/epic/fetchAddressEpic.d.ts +1 -1
- package/lib/view/addressView/epic/updateAddressEpic.d.ts +1 -1
- package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.d.ts +3 -3
- package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.d.ts +2 -2
- package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.d.ts +3 -3
- package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.d.ts +3 -3
- package/lib/view/aiCfoView/epics/deleteChatSessionEpic.d.ts +5 -5
- package/lib/view/auditReportView/auditReportViewSelector.d.ts +1 -1
- package/lib/view/billPayCard/billPayCardSelector.d.ts +3 -3
- package/lib/view/cardBalance/cardBalanceEpic.d.ts +2 -2
- package/lib/view/cardBalance/cardBalanceSelector.d.ts +8 -8
- package/lib/view/cardBalance/statementCloseDayEpic.d.ts +3 -3
- package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +4 -4
- package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +4 -4
- package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +5 -5
- package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +5 -5
- package/lib/view/cashBalance/cashBalanceEpic.d.ts +2 -2
- package/lib/view/cashBalance/cashBalanceSelector.d.ts +8 -8
- package/lib/view/cashInCashOut/cashInCashOutEpic.d.ts +5 -5
- package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +5 -5
- package/lib/view/cashPosition/cashPositionEpic.d.ts +3 -3
- package/lib/view/cashPosition/cashPositionSelector.d.ts +5 -5
- package/lib/view/companyConfigView/companyConfigSelector.d.ts +2 -2
- package/lib/view/companyTaskManagerView/epics/fetchCompanyTaskManagerViewEpic.js +0 -3
- package/lib/view/companyTaskManagerView/epics/fetchTaskManagerMetricsEpic.js +1 -7
- package/lib/view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic.d.ts +1 -1
- package/lib/view/companyView/types/cockpitTypes.d.ts +0 -3
- package/lib/view/createTransferEntry/createTransferEntrySelector.d.ts +1 -1
- package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.d.ts +3 -3
- package/lib/view/creditAgentView/epics/scheduleTenantCreditScoreCronEpic.d.ts +3 -3
- package/lib/view/creditAgentView/epics/updateCardProfileEpic.d.ts +3 -3
- package/lib/view/expenseAutomationView/epics/accountRecon/reparseStatementEpic.d.ts +4 -4
- package/lib/view/expenseAutomationView/epics/accountRecon/updateStatementInfoEpic.d.ts +3 -3
- package/lib/view/expenseAutomationView/epics/accountRecon/uploadAccountStatementEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.d.ts +1 -1
- package/lib/view/expenseAutomationView/epics/transactionCategorization/fetchTransactionCategorizationViewEpic.js +3 -2
- package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
- package/lib/view/forecastList/forecastListSelector.d.ts +4 -4
- package/lib/view/insightsCard/insightsCardEpic.d.ts +1 -1
- package/lib/view/people/changeZeniPersonRolesEpic.d.ts +5 -5
- package/lib/view/people/deletePersonEpic.d.ts +4 -4
- package/lib/view/people/fetchPeopleEpic.d.ts +2 -2
- package/lib/view/people/invitePeopleEpic.d.ts +7 -7
- package/lib/view/people/inviteZeniPeopleEpic.d.ts +7 -7
- package/lib/view/people/resendInviteEpic.d.ts +3 -3
- package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +3 -3
- package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +11 -11
- package/lib/view/reportUIOptions/updateReportUIOptionCompareModeEpic.d.ts +8 -8
- package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.d.ts +8 -8
- package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +3 -3
- package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +3 -3
- package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewSelector.d.ts +2 -2
- package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +4 -4
- package/lib/view/spendManagement/helpers.d.ts +1 -1
- package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.d.ts +3 -3
- package/lib/view/tagView/epics/createTagEpic.d.ts +3 -3
- package/lib/view/tagView/epics/deleteTagEpic.d.ts +7 -7
- package/lib/view/taskManager/taskDetailView/epics/initializeTaskToLocalStoreEpic.js +0 -1
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.d.ts +2 -2
- package/lib/view/taskManager/taskDetailView/epics/saveTaskDetailEpic.js +8 -69
- package/lib/view/taskManager/taskDetailView/taskDetail.d.ts +0 -15
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.d.ts +2 -14
- package/lib/view/taskManager/taskDetailView/taskDetailReducer.js +3 -57
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.d.ts +1 -2
- package/lib/view/taskManager/taskDetailView/taskDetailSelector.js +7 -30
- package/lib/view/taskManager/taskListView/epics/fetchTaskListEpic.js +1 -3
- package/lib/view/taskManager/taskListView/taskList.d.ts +1 -1
- package/lib/view/taskManager/taskListView/taskList.js +0 -1
- package/lib/view/taskManager/taskListView/taskListPayload.d.ts +0 -4
- package/lib/view/taskManager/taskListView/taskListReducer.d.ts +2 -6
- package/lib/view/taskManager/taskListView/taskListReducer.js +13 -241
- package/lib/view/taskManager/taskListView/taskListSelector.js +0 -1
- package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
- package/lib/view/topEx/topExEpic.d.ts +2 -2
- package/lib/view/topEx/topExSelector.d.ts +7 -7
- package/lib/view/transactionDetail/epics/uploadMissingAttachmentSuccessEpic.d.ts +5 -5
- package/lib/view/transactionDetail/transactionDetailLocalDataHelper.d.ts +1 -1
- package/lib/view/userRoleConfigView/userRoleConfigSelector.d.ts +2 -2
- package/lib/view/zeniOAuthView/epics/approveOAuthConsentEpic.d.ts +3 -3
- package/package.json +1 -1
- package/lib/esm/index.js +0 -711
- package/lib/esm/view/taskManager/taskDetailView/epics/createSubTaskEpic.js +0 -96
- package/lib/esm/view/taskManager/taskDetailView/epics/fetchSubTasksEpic.js +0 -53
- package/lib/index.d.ts +0 -995
- package/lib/index.js +0 -2611
- package/lib/view/taskManager/taskDetailView/epics/createSubTaskEpic.d.ts +0 -9
- package/lib/view/taskManager/taskDetailView/epics/createSubTaskEpic.js +0 -100
- package/lib/view/taskManager/taskDetailView/epics/fetchSubTasksEpic.d.ts +0 -8
- package/lib/view/taskManager/taskDetailView/epics/fetchSubTasksEpic.js +0 -57
|
@@ -5,9 +5,9 @@ import { ZeniAPI } from '../../zeniAPI';
|
|
|
5
5
|
import { InviteZeniPeopleActionType as ActionType } from './helpers/updateManagersListOnRoleChange';
|
|
6
6
|
export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
7
7
|
payload: {
|
|
8
|
-
messageSection: import("
|
|
9
|
-
messageText: import("
|
|
10
|
-
type: import("
|
|
8
|
+
messageSection: import("../../entity/snackbar/snackbarTypes").SnackbarMessageSections;
|
|
9
|
+
messageText: import("../../entity/snackbar/snackbarTypes").SnackbarMessageSectionTexts;
|
|
10
|
+
type: import("../../entity/snackbar/snackbarTypes").SnackbarMessageType;
|
|
11
11
|
showStatusIcon?: boolean;
|
|
12
12
|
variables?: {
|
|
13
13
|
variableName: string;
|
|
@@ -17,8 +17,8 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
17
17
|
type: "snackbar/openSnackbar";
|
|
18
18
|
} | {
|
|
19
19
|
payload: {
|
|
20
|
-
users: import("
|
|
21
|
-
updateType?: import("
|
|
20
|
+
users: import("../../entity/user/userPayload").UserPayload[];
|
|
21
|
+
updateType?: import("../../commonStateTypes/common").UpdateType;
|
|
22
22
|
};
|
|
23
23
|
type: "user/updateAllUsers";
|
|
24
24
|
} | {
|
|
@@ -26,13 +26,13 @@ export declare const inviteZeniPeopleEpic: (actions$: ActionsObservable<ActionTy
|
|
|
26
26
|
type: "userRole/updateUserRoles";
|
|
27
27
|
} | {
|
|
28
28
|
payload: {
|
|
29
|
-
id: import("
|
|
29
|
+
id: import("../../commonStateTypes/common").ID;
|
|
30
30
|
userType: import("../userListView/userListViewState").UserListType;
|
|
31
31
|
};
|
|
32
32
|
type: "userListView/addUserId";
|
|
33
33
|
} | {
|
|
34
34
|
payload: {
|
|
35
|
-
id: import("
|
|
35
|
+
id: import("../../commonStateTypes/common").ID;
|
|
36
36
|
userType: import("../userListView/userListViewState").UserListType;
|
|
37
37
|
};
|
|
38
38
|
type: "userListView/removeUserId";
|
|
@@ -7,9 +7,9 @@ import { resendInvite, resendInviteFailure, resendInviteSuccess } from './people
|
|
|
7
7
|
export type ActionType = ReturnType<typeof resendInvite> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateUserRoles> | ReturnType<typeof resendInviteSuccess> | ReturnType<typeof resendInviteFailure>;
|
|
8
8
|
export declare const resendInviteEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
messageSection: import("
|
|
11
|
-
messageText: import("
|
|
12
|
-
type: import("
|
|
10
|
+
messageSection: import("../../entity/snackbar/snackbarTypes").SnackbarMessageSections;
|
|
11
|
+
messageText: import("../../entity/snackbar/snackbarTypes").SnackbarMessageSectionTexts;
|
|
12
|
+
type: import("../../entity/snackbar/snackbarTypes").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean;
|
|
14
14
|
variables?: {
|
|
15
15
|
variableName: string;
|
|
@@ -3,9 +3,9 @@ export declare const getReimbursementCardReport: (state: RootState) => {
|
|
|
3
3
|
reportId: "cash_balance" | "card_balance" | "expense_automation_card" | "operating_expenses" | "operating_expenses_by_classes" | "revenue" | "revenue_by_classes" | "net_burn_or_income" | "net_burn_or_income_story_card" | "net_burn_or_income_by_classes" | "cash_position" | "top_expenses" | "profit_and_loss" | "profit_and_loss_by_classes" | "profit_and_loss_by_projects" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "transaction_list_of_account_by_project" | "transaction_detail" | "cash_in_cash_out" | "insights_dashboard" | "company_details" | "class_list" | "account_list" | "account_list_by_type" | "vendor" | "task_card" | "bill_pay" | "reimbursement" | "bill_pay_card" | "reimbursement_card" | "bill_pay_promo_card" | "zeni_accounts" | "zeni_accounts_promo_card" | "zeni_treasury" | "charge_cards" | "other_connection" | "reimbursement_promo_card" | "onboarding" | "operating_expenses_by_vendor" | "operating_expenses_by_vendor_summary" | "vendors_tab" | "accounts_payable_aging" | "accounts_receivable_aging" | "vendor_global_review" | "prepaid_expenses" | "fixed_assets" | "notification" | "rewards_card" | "billing" | "flux_analysis_operating_expense" | "account_reconciliation" | "zeni_credit_promo_card" | "treasury_promo_card" | "excluded_account_reconciliation" | "transfer_accounts" | "credit_card_transfer_accounts";
|
|
4
4
|
reportTitle: string;
|
|
5
5
|
version: string | number | undefined;
|
|
6
|
-
fetchState: import("
|
|
7
|
-
reimbursementAmountByKey: Record<string, import("
|
|
8
|
-
error: import("
|
|
6
|
+
fetchState: import("../../commonStateTypes/common").FetchState;
|
|
7
|
+
reimbursementAmountByKey: Record<string, import("../../commonStateTypes/amount").Amount>;
|
|
8
|
+
error: import("../../responsePayload").ZeniAPIStatus<Record<string, unknown>> | undefined;
|
|
9
9
|
transactionCount: number;
|
|
10
10
|
firstMonthOfFY: 1 | 3 | 12 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
11
11
|
};
|
|
@@ -9,35 +9,35 @@ import { updateReportUIOptionCOABalancesRange } from './reportUIOptionsReducer';
|
|
|
9
9
|
export type ActionType = ReturnType<typeof updateReportUIOptionCOABalancesRange> | ReturnType<typeof updateNetBurnOrIncomeCOABalancesRange> | ReturnType<typeof updateOpExCOABalancesRange> | ReturnType<typeof updateRevenueCOABalancesRange> | ReturnType<typeof updateCashPositionCOABalancesRange> | ReturnType<typeof updateCOABalancesRange>;
|
|
10
10
|
export declare const updateReportUIOptionCOABalancesRangeEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
11
11
|
payload: {
|
|
12
|
-
selectedCOABalancesRange: import("
|
|
13
|
-
highlightedCOABalancesRange?: import("
|
|
12
|
+
selectedCOABalancesRange: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
13
|
+
highlightedCOABalancesRange?: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRangeWithThisPeriod;
|
|
14
14
|
};
|
|
15
15
|
type: "net_burn_or_income/updateNetBurnOrIncomeCOABalancesRange";
|
|
16
16
|
} | {
|
|
17
17
|
payload: {
|
|
18
|
-
selectedCOABalancesRange: import("
|
|
19
|
-
highlightedCOABalancesRange?: import("
|
|
18
|
+
selectedCOABalancesRange: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
19
|
+
highlightedCOABalancesRange?: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRangeWithThisPeriod;
|
|
20
20
|
};
|
|
21
21
|
type: "operatingExpenses/updateOpExCOABalancesRange";
|
|
22
22
|
} | {
|
|
23
23
|
payload: {
|
|
24
|
-
selectedCOABalancesRange: import("
|
|
25
|
-
highlightedCOABalancesRange?: import("
|
|
24
|
+
selectedCOABalancesRange: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
25
|
+
highlightedCOABalancesRange?: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRangeWithThisPeriod;
|
|
26
26
|
};
|
|
27
27
|
type: "revenue/updateRevenueCOABalancesRange";
|
|
28
28
|
} | {
|
|
29
29
|
payload: {
|
|
30
|
-
selectedCOABalancesRange: import("
|
|
31
|
-
highlightedCOABalancesRange?: import("
|
|
30
|
+
selectedCOABalancesRange: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
31
|
+
highlightedCOABalancesRange?: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRangeWithThisPeriod;
|
|
32
32
|
};
|
|
33
33
|
type: "cashPosition/updateCashPositionCOABalancesRange";
|
|
34
34
|
} | {
|
|
35
|
-
payload: import("
|
|
35
|
+
payload: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
36
36
|
type: "financeStatement/updateCOABalancesRange";
|
|
37
37
|
} | {
|
|
38
38
|
payload: {
|
|
39
|
-
selectedCOABalancesRange: import("
|
|
40
|
-
highlightedCOABalancesRange?: import("
|
|
39
|
+
selectedCOABalancesRange: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRange;
|
|
40
|
+
highlightedCOABalancesRange?: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesRangeWithThisPeriod;
|
|
41
41
|
};
|
|
42
42
|
type: "cashInCashOut/updateCashInCashOutCOABalancesRange";
|
|
43
43
|
}>;
|
|
@@ -9,44 +9,44 @@ import { updateReportUIOptionCompareMode } from './reportUIOptionsReducer';
|
|
|
9
9
|
export type ActionType = ReturnType<typeof updateReportUIOptionCompareMode> | ReturnType<typeof updateNetBurnOrIncomeAdditionalBalancesSelection> | ReturnType<typeof updateOpExAdditionalBalancesSelection> | ReturnType<typeof updateRevenueAdditionalBalancesSelection> | ReturnType<typeof updateCashInCashOutAdditionalBalancesSelection> | ReturnType<typeof updateCashPositionAdditionalBalancesSelection>;
|
|
10
10
|
export declare const updateReportUIOptionIsCompareModeEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
11
11
|
payload: {
|
|
12
|
-
additionalBalances: import("
|
|
12
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
13
13
|
isCompareModeOn: boolean;
|
|
14
14
|
maxNumOfPeriodsToHighlight: number;
|
|
15
15
|
};
|
|
16
16
|
type: "net_burn_or_income/updateNetBurnOrIncomeAdditionalBalancesSelection";
|
|
17
17
|
} | {
|
|
18
18
|
payload: {
|
|
19
|
-
additionalBalances: import("
|
|
19
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
20
20
|
isCompareModeOn: boolean;
|
|
21
21
|
maxNumOfPeriodsToHighlight: number;
|
|
22
22
|
};
|
|
23
23
|
type: "operatingExpenses/updateOpExAdditionalBalancesSelection";
|
|
24
24
|
} | {
|
|
25
25
|
payload: {
|
|
26
|
-
additionalBalances: import("
|
|
26
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
27
27
|
isCompareModeOn: boolean;
|
|
28
28
|
maxNumOfPeriodsToHighlight: number;
|
|
29
29
|
};
|
|
30
30
|
type: "revenue/updateRevenueAdditionalBalancesSelection";
|
|
31
31
|
} | {
|
|
32
32
|
payload: {
|
|
33
|
-
additionalBalances: import("
|
|
33
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
34
34
|
isCompareModeOn: boolean;
|
|
35
35
|
maxNumOfPeriodsToHighlight: number;
|
|
36
36
|
};
|
|
37
37
|
type: "cashInCashOut/updateCashInCashOutAdditionalBalancesSelection";
|
|
38
38
|
} | {
|
|
39
39
|
payload: {
|
|
40
|
-
additionalBalances: import("
|
|
40
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
41
41
|
isCompareModeOn: boolean;
|
|
42
42
|
maxNumOfPeriodsToHighlight: number;
|
|
43
43
|
};
|
|
44
44
|
type: "cashPosition/updateCashPositionAdditionalBalancesSelection";
|
|
45
45
|
} | {
|
|
46
46
|
payload: {
|
|
47
|
-
additionalBalances: import("
|
|
48
|
-
coaBalances: import("
|
|
49
|
-
firstMonthOfFY: import("
|
|
47
|
+
additionalBalances: import("../../commonStateTypes/coaBalance/coaBalanceType").COABalanceType[];
|
|
48
|
+
coaBalances: import("../../commonStateTypes/coaBalance/coaBalance").COABalance[];
|
|
49
|
+
firstMonthOfFY: import("../../commonStateTypes/timePeriod").Month;
|
|
50
50
|
isCompareModeOn: boolean;
|
|
51
51
|
maxNumOfPeriodsToHighlight: number;
|
|
52
52
|
};
|
|
@@ -8,35 +8,35 @@ import { updateReportUIOptionThisPeriod } from './reportUIOptionsReducer';
|
|
|
8
8
|
export type ActionType = ReturnType<typeof updateReportUIOptionThisPeriod> | ReturnType<typeof updateNetBurnOrIncomeThisPeriod> | ReturnType<typeof updateOpExThisPeriod> | ReturnType<typeof updateRevenueThisPeriod> | ReturnType<typeof updateCashPositionThisPeriod>;
|
|
9
9
|
export declare const updateReportUIOptionThisPeriodEpic: (actions$: ActionsObservable<ActionType>, state: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
10
10
|
payload: {
|
|
11
|
-
thisPeriod: import("
|
|
11
|
+
thisPeriod: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
12
12
|
};
|
|
13
13
|
type: "net_burn_or_income/updateNetBurnOrIncomeThisPeriod";
|
|
14
14
|
} | {
|
|
15
15
|
payload: {
|
|
16
|
-
thisPeriod?: import("
|
|
16
|
+
thisPeriod?: import("../../commonStateTypes/timeframeTick").TimeframeTick;
|
|
17
17
|
};
|
|
18
18
|
type: "operatingExpenses/updateOpExThisPeriod";
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
thisPeriod: import("
|
|
21
|
+
thisPeriod: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
22
22
|
};
|
|
23
23
|
type: "revenue/updateRevenueThisPeriod";
|
|
24
24
|
} | {
|
|
25
25
|
payload: {
|
|
26
|
-
thisPeriod: import("
|
|
26
|
+
thisPeriod: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
27
27
|
};
|
|
28
28
|
type: "cashPosition/updateCashPositionThisPeriod";
|
|
29
29
|
} | {
|
|
30
30
|
payload: {
|
|
31
|
-
thisPeriod: import("
|
|
31
|
+
thisPeriod: import("../../commonStateTypes/timeframeTick").TimeframeTick | undefined;
|
|
32
32
|
};
|
|
33
33
|
type: "cashInCashOut/updateCashInCashOutThisPeriod";
|
|
34
34
|
} | {
|
|
35
35
|
payload: {
|
|
36
|
-
coaBalances: import("
|
|
37
|
-
firstMonthOfFY: import("
|
|
36
|
+
coaBalances: import("../../commonStateTypes/coaBalance/coaBalance").COABalance[];
|
|
37
|
+
firstMonthOfFY: import("../../commonStateTypes/timePeriod").Month;
|
|
38
38
|
maxNumOfPeriodsToHighlight: number;
|
|
39
|
-
thisPeriod: import("
|
|
39
|
+
thisPeriod: import("../../commonStateTypes/timeframeTick").TimeframeTick;
|
|
40
40
|
};
|
|
41
41
|
type: "financeStatement/updateFinanceStatementThisPeriod";
|
|
42
42
|
}>;
|
|
@@ -5,15 +5,15 @@ import { ZeniAPI } from '../../../zeniAPI';
|
|
|
5
5
|
import { fetchBankAccountsList, updateBankConnectionOnFailure, updateBankConnectionOnSuccess } from '../settingsViewReducer';
|
|
6
6
|
export type ActionType = ReturnType<typeof fetchBankAccountsList> | ReturnType<typeof updateBankConnectionOnSuccess> | ReturnType<typeof updateBankConnectionOnFailure> | ReturnType<typeof updateAccounts>;
|
|
7
7
|
export declare const fetchBankAccountsListEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<import("@reduxjs/toolkit").PayloadAction<import("../../../entity/account/accountPayload").AccountPayload[], "account/updateAccounts", {
|
|
8
|
-
reportId: import("
|
|
8
|
+
reportId: import("../../../commonStateTypes/viewAndReport/viewAndReport").ReportIDPlusForecastID;
|
|
9
9
|
classesViewParentId: import("../../../commonStateTypes/classesView/nestedClassID").ClassesViewParentID | undefined;
|
|
10
|
-
updateType: import("
|
|
10
|
+
updateType: import("../../../commonStateTypes/common").UpdateType;
|
|
11
11
|
}, never> | {
|
|
12
12
|
payload: undefined;
|
|
13
13
|
type: "settings/fetchBankAccountsList";
|
|
14
14
|
} | {
|
|
15
15
|
payload: {
|
|
16
|
-
bankAccountIds: import("
|
|
16
|
+
bankAccountIds: import("../../../commonStateTypes/common").ID[];
|
|
17
17
|
};
|
|
18
18
|
type: "settings/updateBankConnectionOnSuccess";
|
|
19
19
|
} | {
|
|
@@ -7,9 +7,9 @@ import { saveNotificationSettings, updateNotificationSettingsOnSaveFailure, upda
|
|
|
7
7
|
export type ActionType = ReturnType<typeof saveNotificationSettings> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateNotificationSettingsOnSaveSuccess> | ReturnType<typeof updateNotificationSettingsOnSaveFailure>;
|
|
8
8
|
export declare const saveNotificationSettingsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
9
9
|
payload: {
|
|
10
|
-
messageSection: import("
|
|
11
|
-
messageText: import("
|
|
12
|
-
type: import("
|
|
10
|
+
messageSection: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSections;
|
|
11
|
+
messageText: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSectionTexts;
|
|
12
|
+
type: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageType;
|
|
13
13
|
showStatusIcon?: boolean;
|
|
14
14
|
variables?: {
|
|
15
15
|
variableName: string;
|
|
@@ -2,9 +2,9 @@ import { RootState } from '../../../../reducer';
|
|
|
2
2
|
import { AddressUpdatableInfo } from '../../../addressView/addressViewState';
|
|
3
3
|
import { BankAccountSelectorView } from '../../../bankAccountView/bankAccountViewSelector';
|
|
4
4
|
export declare const getMagicLinkView: (rootState: RootState) => {
|
|
5
|
-
authParams: import("
|
|
5
|
+
authParams: import("../../../fileView/fileUploadHelpers").AuthParams;
|
|
6
6
|
companyName: string;
|
|
7
|
-
billAttachment: import("
|
|
7
|
+
billAttachment: import("../../../../entity/transaction/stateTypes/attachment").Attachment | undefined;
|
|
8
8
|
currencySymbol: string;
|
|
9
9
|
amount: number;
|
|
10
10
|
billFetchState: import("../../../../commonStateTypes/common").FetchState;
|
|
@@ -12,16 +12,16 @@ export declare const parseUploadedKybDocumentEpic: (actions$: ActionsObservable<
|
|
|
12
12
|
} | {
|
|
13
13
|
payload: {
|
|
14
14
|
autoFilledFieldNames: string[];
|
|
15
|
-
companyId: import("
|
|
16
|
-
fileId: import("
|
|
15
|
+
companyId: import("../../../../../commonStateTypes/common").ID;
|
|
16
|
+
fileId: import("../../../../../commonStateTypes/common").ID;
|
|
17
17
|
values: Partial<CompanyDetailsLocalData>;
|
|
18
18
|
};
|
|
19
19
|
type: "onboardingCustomerView/applyKybDocumentAutofillForOnboarding";
|
|
20
20
|
} | {
|
|
21
21
|
payload: {
|
|
22
22
|
autoFilledFieldNames: string[];
|
|
23
|
-
companyId: import("
|
|
24
|
-
fileId: import("
|
|
23
|
+
companyId: import("../../../../../commonStateTypes/common").ID;
|
|
24
|
+
fileId: import("../../../../../commonStateTypes/common").ID;
|
|
25
25
|
values: Partial<CompanyDetailsLocalData>;
|
|
26
26
|
};
|
|
27
27
|
type: "setupView/applyKybDocumentAutofillForSetup";
|
|
@@ -14,7 +14,7 @@ import { BusinessVerificationDetails, CompanyOfficersDetails } from './commonSet
|
|
|
14
14
|
import { SetupViewType } from './commonSetup/setupViewState';
|
|
15
15
|
import { RemiActivity } from './reimbursement/remiDetailView/remiDetailViewSelector';
|
|
16
16
|
export declare const getLatestApprovalDate: (allActivities: BillActivity[] | RemiActivity[]) => ZeniDate | undefined;
|
|
17
|
-
export declare function getSpendManagementEffectiveListPeriod(): import("
|
|
17
|
+
export declare function getSpendManagementEffectiveListPeriod(): import("../../commonStateTypes/timePeriod").TimePeriod;
|
|
18
18
|
export declare const getSelectedCompanyOfficer: (verificationDetails: BusinessVerificationDetails) => CompanyOfficersDetails | undefined;
|
|
19
19
|
export declare const getPaymentDateFromVendorReceiveDate: (vendorReceiveDate: ZeniDate, maxPaymentProcessingDays: number) => ZeniDate;
|
|
20
20
|
export declare const updateRecurringBillDetails: (currentRecurringConfig: RecurringBillConfigLocalData, prevRecurringConfig?: RecurringBillConfigLocalData, currentInstances?: RecurringBillInstance[], currentBillAmount?: number) => {
|
|
@@ -7,10 +7,10 @@ export declare const fetchRecommendationsAndUpdateMerchantRecommendationsEpic: (
|
|
|
7
7
|
export declare const waitForMerchantRecommendationFetchThenUpdateRecommendationInMerchantEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
|
|
8
8
|
payload: {
|
|
9
9
|
lineId: string;
|
|
10
|
-
recommendations: import("
|
|
10
|
+
recommendations: import("../../../../../commonStateTypes/recommendationBase").Recommendation[];
|
|
11
11
|
shouldAutofill: boolean;
|
|
12
|
-
reimbursementId?: import("
|
|
13
|
-
reimbursementStageCode?: import("
|
|
12
|
+
reimbursementId?: import("../../../../../commonStateTypes/common").ID;
|
|
13
|
+
reimbursementStageCode?: import("../../../../../entity/billPay/billTransaction/billTransactionState").BillStage["code"];
|
|
14
14
|
};
|
|
15
15
|
type: "editRemiView/updateRecommendationInMerchant";
|
|
16
16
|
}>;
|
|
@@ -9,9 +9,9 @@ import { createTag, updateTagCreateStatus } from '../tagViewReducer';
|
|
|
9
9
|
export type ActionType = ReturnType<typeof createTag> | ReturnType<typeof updateTagCreateStatus> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCreatedTagToLocalStore> | ReturnType<typeof updateTags>;
|
|
10
10
|
export declare const createTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
11
11
|
payload: {
|
|
12
|
-
messageSection: import("
|
|
13
|
-
messageText: import("
|
|
14
|
-
type: import("
|
|
12
|
+
messageSection: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSections;
|
|
13
|
+
messageText: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSectionTexts;
|
|
14
|
+
type: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageType;
|
|
15
15
|
showStatusIcon?: boolean;
|
|
16
16
|
variables?: {
|
|
17
17
|
variableName: string;
|
|
@@ -6,9 +6,9 @@ import { deleteTag, updateDeleteTagStatus } from '../tagViewReducer';
|
|
|
6
6
|
export type ActionType = ReturnType<typeof deleteTag> | ReturnType<typeof updateDeleteTagStatus> | ReturnType<typeof updateTags>;
|
|
7
7
|
export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
|
|
8
8
|
payload: {
|
|
9
|
-
messageSection: import("
|
|
10
|
-
messageText: import("
|
|
11
|
-
type: import("
|
|
9
|
+
messageSection: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSections;
|
|
10
|
+
messageText: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageSectionTexts;
|
|
11
|
+
type: import("../../../entity/snackbar/snackbarTypes").SnackbarMessageType;
|
|
12
12
|
showStatusIcon?: boolean;
|
|
13
13
|
variables?: {
|
|
14
14
|
variableName: string;
|
|
@@ -18,8 +18,8 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
18
18
|
type: "snackbar/openSnackbar";
|
|
19
19
|
} | {
|
|
20
20
|
payload: {
|
|
21
|
-
fetchState: import("
|
|
22
|
-
tagId: import("
|
|
21
|
+
fetchState: import("../../../commonStateTypes/common").FetchState;
|
|
22
|
+
tagId: import("../../../commonStateTypes/common").ID;
|
|
23
23
|
error?: import("../../../responsePayload").ZeniAPIStatus;
|
|
24
24
|
};
|
|
25
25
|
type: "tagView/updateDeleteTagStatus";
|
|
@@ -28,8 +28,8 @@ export declare const deleteTagEpic: (actions$: ActionsObservable<ActionType>, _s
|
|
|
28
28
|
type: "tag/removeTag";
|
|
29
29
|
} | {
|
|
30
30
|
payload: {
|
|
31
|
-
tagId: import("
|
|
32
|
-
taskId: import("
|
|
31
|
+
tagId: import("../../../commonStateTypes/common").ID | undefined;
|
|
32
|
+
taskId: import("../../../commonStateTypes/common").ID | undefined;
|
|
33
33
|
};
|
|
34
34
|
type: "taskDetailView/updateDeletedTagToLocalStore";
|
|
35
35
|
}>;
|
|
@@ -34,7 +34,6 @@ const initializeTaskToLocalStoreEpic = (actions$, state$) => actions$.pipe((0, o
|
|
|
34
34
|
recurringStartDate: task.recurringStartDate,
|
|
35
35
|
timeSpent: task.timeSpent,
|
|
36
36
|
isPrivate: task.isPrivate,
|
|
37
|
-
taskGroupId: task.taskGroupIds[0],
|
|
38
37
|
};
|
|
39
38
|
const actions = [
|
|
40
39
|
(0, taskDetailReducer_1.saveTaskUpdatesToLocalStore)({ taskDetailLocalData, taskId }),
|
|
@@ -3,7 +3,7 @@ import { openSnackbar } from '../../../../entity/snackbar/snackbarReducer';
|
|
|
3
3
|
import { updateTasks } from '../../../../entity/task/taskReducer';
|
|
4
4
|
import { RootState } from '../../../../reducer';
|
|
5
5
|
import { ZeniAPI } from '../../../../zeniAPI';
|
|
6
|
-
import {
|
|
6
|
+
import { updateTaskListOnNewTaskCreationSuccess } from '../../taskListView/taskListReducer';
|
|
7
7
|
import { saveTaskDetail, saveTaskSuccessOrFailure } from '../taskDetailReducer';
|
|
8
|
-
export type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateTaskListOnNewTaskCreationSuccess> | ReturnType<typeof
|
|
8
|
+
export type ActionType = ReturnType<typeof saveTaskDetail> | ReturnType<typeof updateTasks> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateTaskListOnNewTaskCreationSuccess> | ReturnType<typeof saveTaskSuccessOrFailure>;
|
|
9
9
|
export declare const saveTaskDetailEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<ActionType>;
|
|
@@ -15,46 +15,17 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
15
15
|
const { taskId, taskGroupId } = action.payload;
|
|
16
16
|
const state = state$.value;
|
|
17
17
|
const isTaskListFetched = state.taskListState.fetchState === 'Completed';
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
?.taskGroupId
|
|
23
|
-
: undefined;
|
|
24
|
-
// groupWasCleared distinguishes "user explicitly cleared the group"
|
|
25
|
-
// (localTaskGroupId === null → send []) from "user did not touch it"
|
|
26
|
-
// (undefined → fall back to entity). Without this, the `??` fallback
|
|
27
|
-
// would resurrect the stale entity value after a clear.
|
|
28
|
-
const groupWasCleared = taskId != null && localTaskGroupId === null;
|
|
29
|
-
const entityTaskGroupIds = taskId != null
|
|
30
|
-
? ((0, taskSelector_1.getTaskById)(state.taskState, taskId)?.taskGroupIds ?? [])
|
|
31
|
-
: [];
|
|
32
|
-
// Distinguish three save shapes:
|
|
33
|
-
// - cleared → []
|
|
34
|
-
// - user picked a different group locally → [localTaskGroupId]
|
|
35
|
-
// - no local edit → entire entityTaskGroupIds (preserves multi-
|
|
36
|
-
// group membership; without this, unrelated field edits silently
|
|
37
|
-
// drop extra groups).
|
|
38
|
-
const localGroupChanged = localTaskGroupId != null;
|
|
39
|
-
const taskGroupIdsForPayload = groupWasCleared
|
|
40
|
-
? []
|
|
41
|
-
: localGroupChanged
|
|
42
|
-
? [localTaskGroupId]
|
|
43
|
-
: taskId != null
|
|
44
|
-
? entityTaskGroupIds
|
|
45
|
-
: taskGroupId != null
|
|
46
|
-
? [taskGroupId]
|
|
47
|
-
: [];
|
|
48
|
-
// Keep `updatedTaskGroupId` (single id) for downstream list-update
|
|
49
|
-
// dispatches that still bucket against one group at a time.
|
|
50
|
-
const updatedTaskGroupId = taskGroupIdsForPayload[0];
|
|
51
|
-
const payload = prepareTaskPayload(state, taskId, taskGroupIdsForPayload);
|
|
18
|
+
const updatedTaskGroupId = taskId == null
|
|
19
|
+
? taskGroupId
|
|
20
|
+
: (0, taskSelector_1.getTaskById)(state.taskState, taskId)?.taskGroupIds[0];
|
|
21
|
+
const payload = prepareTaskPayload(state, taskId, updatedTaskGroupId);
|
|
52
22
|
const saveTaskApi = taskId != null
|
|
53
23
|
? zeniAPI.putAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks/${taskId}`, payload)
|
|
54
24
|
: zeniAPI.postAndGetJSON(`${zeniAPI.apiEndPoints.taskMicroServiceBaseUrl}/1.0/task-manager/tasks`, payload);
|
|
55
25
|
return saveTaskApi.pipe((0, operators_1.mergeMap)((response) => {
|
|
56
26
|
if ((0, responsePayload_1.isSuccessResponse)(response) &&
|
|
57
27
|
response.data != null &&
|
|
28
|
+
updatedTaskGroupId != null &&
|
|
58
29
|
response.data.tasks.length > 0) {
|
|
59
30
|
const newTaskId = response.data.tasks[0].task_id;
|
|
60
31
|
const actions = [
|
|
@@ -65,24 +36,7 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
65
36
|
taskId,
|
|
66
37
|
}),
|
|
67
38
|
];
|
|
68
|
-
|
|
69
|
-
// when the saved task's status no longer matches the tab —
|
|
70
|
-
// otherwise doUpdateTaskList writes the row back into the
|
|
71
|
-
// current tab's grouping arrays even after updateTasks moved
|
|
72
|
-
// it to Completed. Archived/snoozed/deleted are owned by
|
|
73
|
-
// their dedicated actions and must keep the pre-PR optimistic
|
|
74
|
-
// update path so their grouping arrays don't go stale.
|
|
75
|
-
const savedTask = response.data.tasks[0];
|
|
76
|
-
const savedIsCompleted = savedTask.status?.code === 'resolved';
|
|
77
|
-
const activeTab = state.taskListState.currentTab;
|
|
78
|
-
const isLiveOrCompletedTab = activeTab === 'live' || activeTab === 'completed';
|
|
79
|
-
const statusMatchesActiveTab = !isLiveOrCompletedTab ||
|
|
80
|
-
(savedIsCompleted && activeTab === 'completed') ||
|
|
81
|
-
(!savedIsCompleted && activeTab === 'live');
|
|
82
|
-
if (isTaskListFetched === true &&
|
|
83
|
-
groupWasCleared === false &&
|
|
84
|
-
updatedTaskGroupId != null &&
|
|
85
|
-
statusMatchesActiveTab === true) {
|
|
39
|
+
if (isTaskListFetched === true) {
|
|
86
40
|
actions.push((0, taskListReducer_1.updateTaskListOnNewTaskCreationSuccess)({
|
|
87
41
|
taskGroupId: updatedTaskGroupId,
|
|
88
42
|
task: response.data.tasks[0],
|
|
@@ -91,21 +45,6 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
91
45
|
: undefined,
|
|
92
46
|
}));
|
|
93
47
|
}
|
|
94
|
-
else if (isTaskListFetched === true &&
|
|
95
|
-
groupWasCleared === true &&
|
|
96
|
-
taskId != null) {
|
|
97
|
-
// Group was cleared — skip the list-insert action (no
|
|
98
|
-
// destination bucket) and explicitly drop the row from every
|
|
99
|
-
// previously-held group so the list re-renders without the
|
|
100
|
-
// stale entry under the old group until next refetch.
|
|
101
|
-
const previousTask = (0, taskSelector_1.getTaskById)(state.taskState, taskId);
|
|
102
|
-
previousTask?.taskGroupIds.forEach((previousGroupId) => {
|
|
103
|
-
actions.push((0, taskListReducer_1.removeTaskFromGroupBucket)({
|
|
104
|
-
taskId,
|
|
105
|
-
taskGroupId: previousGroupId,
|
|
106
|
-
}));
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
48
|
return (0, rxjs_1.from)(actions);
|
|
110
49
|
}
|
|
111
50
|
else {
|
|
@@ -132,7 +71,7 @@ const saveTaskDetailEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, oper
|
|
|
132
71
|
}))));
|
|
133
72
|
}));
|
|
134
73
|
exports.saveTaskDetailEpic = saveTaskDetailEpic;
|
|
135
|
-
const prepareTaskPayload = (state, taskId,
|
|
74
|
+
const prepareTaskPayload = (state, taskId, taskGroupId) => {
|
|
136
75
|
const { taskDetailState, taskState } = state;
|
|
137
76
|
const syncToken = taskId != null ? ((0, taskSelector_1.getTaskById)(taskState, taskId)?.syncToken ?? '') : '';
|
|
138
77
|
const sourceState = taskId != null
|
|
@@ -161,7 +100,7 @@ const prepareTaskPayload = (state, taskId, taskGroupIds) => {
|
|
|
161
100
|
? (localData.recurringDaysOfWeek ?? [])
|
|
162
101
|
: [],
|
|
163
102
|
sync_token: syncToken,
|
|
164
|
-
task_group_ids:
|
|
103
|
+
task_group_ids: taskGroupId != null ? [taskGroupId] : [],
|
|
165
104
|
time_spent: (0, formatMinutesToFromHHMM_1.convertHHMMStrToMinutes)(localData.timeSpent),
|
|
166
105
|
group_assignees: localData.groupAssignees,
|
|
167
106
|
...(taskId == null ? { is_private: localData.isPrivate ?? false } : {}),
|
|
@@ -3,23 +3,9 @@ import { DayOfWeek, PriorityCodeType, TaskStatusCodeType, TaskType } from '../..
|
|
|
3
3
|
import { ZeniDate } from '../../../zeniDayJS';
|
|
4
4
|
import { RecurringDatePickerOptions, RecurringFrequencyType } from '../../common/recurringViewHelper';
|
|
5
5
|
import { CommonHistoryView } from '../../spendManagement/commonHistoryView/commonHistory';
|
|
6
|
-
export interface CreateSubTaskPayload {
|
|
7
|
-
assignee: ID[];
|
|
8
|
-
description: string;
|
|
9
|
-
groupAssignees: ID[];
|
|
10
|
-
name: string;
|
|
11
|
-
parentTaskId: ID;
|
|
12
|
-
priority: PriorityCodeType;
|
|
13
|
-
status: TaskStatusCodeType;
|
|
14
|
-
tagIds: ID[];
|
|
15
|
-
timeSpent: string;
|
|
16
|
-
dueDate?: ZeniDate;
|
|
17
|
-
}
|
|
18
6
|
export interface TaskDetailViewState {
|
|
19
7
|
editTaskStateById: Record<ID, EditTaskDetail>;
|
|
20
8
|
newTaskState: EditTaskDetail;
|
|
21
|
-
subTaskCreateStatus: FetchStateAndError;
|
|
22
|
-
subTaskListFetchStatusByParentId: Record<ID, FetchStateAndError>;
|
|
23
9
|
taskHistoryById: Record<ID, CommonHistoryView>;
|
|
24
10
|
}
|
|
25
11
|
export interface EditTaskDetail {
|
|
@@ -54,7 +40,6 @@ export interface EditTaskLocalData {
|
|
|
54
40
|
recurringStartDate?: ZeniDate;
|
|
55
41
|
savedRecurringEndDate?: ZeniDate;
|
|
56
42
|
savedRecurringTasksCount?: number;
|
|
57
|
-
taskGroupId?: ID | null;
|
|
58
43
|
}
|
|
59
44
|
export declare const initialTaskDetailLocalData: EditTaskLocalData;
|
|
60
45
|
export declare const initialTaskDetail: EditTaskDetail;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchState, ID } from '../../../commonStateTypes/common';
|
|
2
2
|
import { ZeniAPIStatus } from '../../../responsePayload';
|
|
3
3
|
import { HistoricEventPayload } from '../../spendManagement/commonHistoryView/commonHistoryPayload';
|
|
4
|
-
import {
|
|
4
|
+
import { EditTaskLocalData, TaskDetailViewState } from './taskDetail';
|
|
5
5
|
export declare const initialState: TaskDetailViewState;
|
|
6
6
|
export declare const fetchTaskDetailPage: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[cacheOverride: boolean, taskId?: string | undefined], {
|
|
7
7
|
cacheOverride: boolean;
|
|
@@ -34,19 +34,7 @@ export declare const fetchTaskDetailPage: import("@reduxjs/toolkit").ActionCreat
|
|
|
34
34
|
error?: ZeniAPIStatus;
|
|
35
35
|
newTaskId?: ID;
|
|
36
36
|
taskId?: ID;
|
|
37
|
-
}, "taskDetailView/saveTaskSuccessOrFailure">,
|
|
38
|
-
fetchState: FetchState;
|
|
39
|
-
error?: ZeniAPIStatus;
|
|
40
|
-
newTaskId?: ID;
|
|
41
|
-
}, "taskDetailView/createSubTaskSuccessOrFailure">, resetSubTaskCreateStatus: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"taskDetailView/resetSubTaskCreateStatus">, fetchSubTasks: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[parentTaskId: string], {
|
|
42
|
-
parentTaskId: string;
|
|
43
|
-
}, "taskDetailView/fetchSubTasks", never, never>, updateSubTasks: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
44
|
-
parentTaskId: ID;
|
|
45
|
-
}, "taskDetailView/updateSubTasks">, updateSubTasksFetchStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
46
|
-
fetchState: FetchState;
|
|
47
|
-
parentTaskId: ID;
|
|
48
|
-
error?: ZeniAPIStatus;
|
|
49
|
-
}, "taskDetailView/updateSubTasksFetchStatus">, deleteTask: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId?: string | undefined], {
|
|
37
|
+
}, "taskDetailView/saveTaskSuccessOrFailure">, deleteTask: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[taskId?: string | undefined], {
|
|
50
38
|
taskId: string | undefined;
|
|
51
39
|
}, "taskDetailView/deleteTask", never, never>, removeTaskDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "taskDetailView/removeTaskDetail">, deleteTaskSuccessOrFailure: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
52
40
|
fetchState: FetchState;
|