@zeniai/client-epic-state 5.1.40 → 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.
Files changed (74) hide show
  1. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastCalculatedSection.d.ts +1 -1
  2. package/lib/entity/account/accountSelector.d.ts +6 -6
  3. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +18 -18
  4. package/lib/entity/accountGroup/accountGroupSelector.d.ts +44 -44
  5. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  6. package/lib/entity/snackbar/snackbarTypes.js +1 -0
  7. package/lib/entity/tenant/epic/saveExternalConnectionEpic.js +15 -7
  8. package/lib/entity/toastNotification/epic/pushToastNotificationEpic.d.ts +3 -3
  9. package/lib/esm/entity/snackbar/snackbarTypes.js +1 -0
  10. package/lib/esm/entity/tenant/epic/saveExternalConnectionEpic.js +15 -7
  11. package/lib/view/addressView/epic/fetchAddressEpic.d.ts +1 -1
  12. package/lib/view/addressView/epic/updateAddressEpic.d.ts +1 -1
  13. package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.d.ts +3 -3
  14. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.d.ts +2 -2
  15. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.d.ts +3 -3
  16. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.d.ts +3 -3
  17. package/lib/view/aiCfoView/epics/deleteChatSessionEpic.d.ts +5 -5
  18. package/lib/view/auditReportView/auditReportViewSelector.d.ts +1 -1
  19. package/lib/view/billPayCard/billPayCardSelector.d.ts +3 -3
  20. package/lib/view/cardBalance/cardBalanceEpic.d.ts +2 -2
  21. package/lib/view/cardBalance/cardBalanceSelector.d.ts +8 -8
  22. package/lib/view/cardBalance/statementCloseDayEpic.d.ts +3 -3
  23. package/lib/view/cardPayment/epic/addCardPaymentSourceEpic.d.ts +4 -4
  24. package/lib/view/cardPayment/epic/confirmCardSetupIntentEpic.d.ts +4 -4
  25. package/lib/view/cardPayment/epic/createCardSetupIntentEpic.d.ts +5 -5
  26. package/lib/view/cardPayment/epic/fetchPaymentSourcesEpic.d.ts +5 -5
  27. package/lib/view/cashBalance/cashBalanceEpic.d.ts +2 -2
  28. package/lib/view/cashBalance/cashBalanceSelector.d.ts +8 -8
  29. package/lib/view/cashInCashOut/cashInCashOutEpic.d.ts +5 -5
  30. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +5 -5
  31. package/lib/view/cashPosition/cashPositionEpic.d.ts +3 -3
  32. package/lib/view/cashPosition/cashPositionSelector.d.ts +5 -5
  33. package/lib/view/companyConfigView/companyConfigSelector.d.ts +2 -2
  34. package/lib/view/companyView/epic/companyPassport/saveCompanyPassportDetailsEpic.d.ts +1 -1
  35. package/lib/view/createTransferEntry/createTransferEntrySelector.d.ts +1 -1
  36. package/lib/view/creditAgentView/epics/saveCreditAgentMacroEpic.d.ts +3 -3
  37. package/lib/view/creditAgentView/epics/scheduleTenantCreditScoreCronEpic.d.ts +3 -3
  38. package/lib/view/creditAgentView/epics/updateCardProfileEpic.d.ts +3 -3
  39. package/lib/view/expenseAutomationView/epics/accountRecon/reparseStatementEpic.d.ts +4 -4
  40. package/lib/view/expenseAutomationView/epics/accountRecon/updateStatementInfoEpic.d.ts +3 -3
  41. package/lib/view/expenseAutomationView/epics/accountRecon/uploadAccountStatementEpic.d.ts +1 -1
  42. package/lib/view/expenseAutomationView/epics/missingReceipts/bulkUploadReceiptsEpic.d.ts +1 -1
  43. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  44. package/lib/view/forecastList/forecastListSelector.d.ts +4 -4
  45. package/lib/view/insightsCard/insightsCardEpic.d.ts +1 -1
  46. package/lib/view/people/changeZeniPersonRolesEpic.d.ts +5 -5
  47. package/lib/view/people/deletePersonEpic.d.ts +4 -4
  48. package/lib/view/people/fetchPeopleEpic.d.ts +2 -2
  49. package/lib/view/people/invitePeopleEpic.d.ts +7 -7
  50. package/lib/view/people/inviteZeniPeopleEpic.d.ts +7 -7
  51. package/lib/view/people/resendInviteEpic.d.ts +3 -3
  52. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +3 -3
  53. package/lib/view/reportUIOptions/updateReportUIOptionCOABalancesRangeEpic.d.ts +11 -11
  54. package/lib/view/reportUIOptions/updateReportUIOptionCompareModeEpic.d.ts +8 -8
  55. package/lib/view/reportUIOptions/updateReportUIOptionThisPeriodEpic.d.ts +8 -8
  56. package/lib/view/settingsView/epic/fetchBankAccountsListEpic.d.ts +3 -3
  57. package/lib/view/settingsView/epic/saveNotificationSettingsEpic.d.ts +3 -3
  58. package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewSelector.d.ts +2 -2
  59. package/lib/view/spendManagement/commonSetup/epic/setup/parseUploadedKybDocumentEpic.d.ts +4 -4
  60. package/lib/view/spendManagement/helpers.d.ts +1 -1
  61. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRecommendationsAndUpdateMerchantRecommendationsEpic.d.ts +3 -3
  62. package/lib/view/tagView/epics/createTagEpic.d.ts +3 -3
  63. package/lib/view/tagView/epics/deleteTagEpic.d.ts +7 -7
  64. package/lib/view/tasksCard/tasksCardSelector.d.ts +2 -2
  65. package/lib/view/topEx/topExEpic.d.ts +2 -2
  66. package/lib/view/topEx/topExSelector.d.ts +7 -7
  67. package/lib/view/transactionDetail/epics/uploadMissingAttachmentSuccessEpic.d.ts +5 -5
  68. package/lib/view/transactionDetail/transactionDetailLocalDataHelper.d.ts +1 -1
  69. package/lib/view/userRoleConfigView/userRoleConfigSelector.d.ts +2 -2
  70. package/lib/view/zeniOAuthView/epics/approveOAuthConsentEpic.d.ts +3 -3
  71. package/package.json +1 -1
  72. package/lib/esm/index.js +0 -711
  73. package/lib/index.d.ts +0 -995
  74. package/lib/index.js +0 -2608
@@ -1,2 +1,2 @@
1
1
  import { CalculatedSection } from './selectorTypes';
2
- export declare function pickAndMergeForecastCalculatedSection(sectionA: CalculatedSection, sectionF: CalculatedSection): import("../..").COABalancesSlice;
2
+ export declare function pickAndMergeForecastCalculatedSection(sectionA: CalculatedSection, sectionF: CalculatedSection): import("../coaBalance/coaBalancesFilter").COABalancesSlice;
@@ -47,8 +47,8 @@ export declare function getAccount(accountState: AccountState, id: {
47
47
  accountDescription: string;
48
48
  last4Digits: string | undefined;
49
49
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
50
- status: import("../..").Status | undefined;
51
- balance: import("../..").Balance | undefined;
50
+ status: import("../../commonStateTypes/status").Status | undefined;
51
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
52
52
  statementCloseDay: import("./accountState").StatementCloseDay | undefined;
53
53
  qboId: string | undefined;
54
54
  coaId: string | undefined;
@@ -73,8 +73,8 @@ export declare function getAccountWithBalance(accountState: AccountState, id: {
73
73
  accountDescription: string;
74
74
  last4Digits: string | undefined;
75
75
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
76
- status: import("../..").Status | undefined;
77
- balance: import("../..").Balance | undefined;
76
+ status: import("../../commonStateTypes/status").Status | undefined;
77
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
78
78
  statementCloseDay: import("./accountState").StatementCloseDay | undefined;
79
79
  qboId: string | undefined;
80
80
  coaId: string | undefined;
@@ -117,8 +117,8 @@ export declare const getAccountsOrdered: (filter: COABalancesFilter, accountStat
117
117
  accountDescription: string;
118
118
  last4Digits: string | undefined;
119
119
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
120
- status: import("../..").Status | undefined;
121
- balance: import("../..").Balance | undefined;
120
+ status: import("../../commonStateTypes/status").Status | undefined;
121
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
122
122
  statementCloseDay: import("./accountState").StatementCloseDay | undefined;
123
123
  qboId: string | undefined;
124
124
  coaId: string | undefined;
@@ -5,22 +5,22 @@ export declare function pickAndMergeForecastAccounts(accountsA: AccountReport[],
5
5
  export declare function pickAndMergeForecastNestedAccounts(nestedAccountsA: NestedAccountReport[], nestedAccountsF: NestedAccountReport[]): NestedAccountReport[];
6
6
  export declare function cloneAndResetNestedAccount(accountReport: NestedAccountReport): NestedAccountReport;
7
7
  export declare const cloneAccountsWithZeroBalance: (accounts: AccountReport[]) => {
8
- filter: import("../..").COABalancesFilter;
9
- balancesInTimeframe: import("../..").COABalancesSlice;
10
- expensesInTimeframe: import("../..").COABalancesSlice;
11
- incomeInTimeframe: import("../..").COABalancesSlice;
12
- cogsInTimeframe: import("../..").COABalancesSlice;
13
- cashPositionInTimeframe: import("../..").COABalancesSlice;
14
- cashInInTimeframe: import("../..").COABalancesSlice;
15
- cashOutInTimeframe: import("../..").COABalancesSlice;
16
- otherIncomeInTimeframe: import("../..").COABalancesSlice;
17
- otherExpensesInTimeframe: import("../..").COABalancesSlice;
18
- equityInTimeframe: import("../..").COABalancesSlice;
19
- assetsInTimeframe: import("../..").COABalancesSlice;
20
- liabilitiesInTimeframe: import("../..").COABalancesSlice;
21
- operatingActivitiesInTimeframe: import("../..").COABalancesSlice;
22
- investingActivitiesInTimeframe: import("../..").COABalancesSlice;
23
- financingActivitiesInTimeframe: import("../..").COABalancesSlice;
8
+ filter: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesFilter;
9
+ balancesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
10
+ expensesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
11
+ incomeInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
12
+ cogsInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
13
+ cashPositionInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
14
+ cashInInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
15
+ cashOutInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
16
+ otherIncomeInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
17
+ otherExpensesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
18
+ equityInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
19
+ assetsInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
20
+ liabilitiesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
21
+ operatingActivitiesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
22
+ investingActivitiesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
23
+ financingActivitiesInTimeframe: import("../../commonStateTypes/coaBalance/coaBalancesFilter").COABalancesSlice;
24
24
  accountId: string;
25
25
  accountName: string;
26
26
  accountType: "cash_position" | "fixed_assets" | "bank" | "credit_card" | "expenses" | "cogs" | "income" | "cash_in" | "cash_out" | "other_income" | "other_expense" | "accounts_receivable" | "other_current_assets" | "other_assets" | "accounts_payable" | "other_current_liabilities" | "long_term_liabilities" | "equity" | "current_liabilities" | "current_assets" | undefined;
@@ -28,8 +28,8 @@ export declare const cloneAccountsWithZeroBalance: (accounts: AccountReport[]) =
28
28
  accountDescription: string;
29
29
  last4Digits: string | undefined;
30
30
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
31
- status: import("../..").Status | undefined;
32
- balance: import("../..").Balance | undefined;
31
+ status: import("../../commonStateTypes/status").Status | undefined;
32
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
33
33
  statementCloseDay: import("./accountState").StatementCloseDay | undefined;
34
34
  qboId: string | undefined;
35
35
  coaId: string | undefined;
@@ -34,8 +34,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
34
34
  accountDescription: string;
35
35
  last4Digits: string | undefined;
36
36
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
37
- status: import("../..").Status | undefined;
38
- balance: import("../..").Balance | undefined;
37
+ status: import("../../commonStateTypes/status").Status | undefined;
38
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
39
39
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
40
40
  qboId: string | undefined;
41
41
  coaId: string | undefined;
@@ -71,8 +71,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
71
71
  accountDescription: string;
72
72
  last4Digits: string | undefined;
73
73
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
74
- status: import("../..").Status | undefined;
75
- balance: import("../..").Balance | undefined;
74
+ status: import("../../commonStateTypes/status").Status | undefined;
75
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
76
76
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
77
77
  qboId: string | undefined;
78
78
  coaId: string | undefined;
@@ -108,8 +108,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
108
108
  accountDescription: string;
109
109
  last4Digits: string | undefined;
110
110
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
111
- status: import("../..").Status | undefined;
112
- balance: import("../..").Balance | undefined;
111
+ status: import("../../commonStateTypes/status").Status | undefined;
112
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
113
113
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
114
114
  qboId: string | undefined;
115
115
  coaId: string | undefined;
@@ -145,8 +145,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
145
145
  accountDescription: string;
146
146
  last4Digits: string | undefined;
147
147
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
148
- status: import("../..").Status | undefined;
149
- balance: import("../..").Balance | undefined;
148
+ status: import("../../commonStateTypes/status").Status | undefined;
149
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
150
150
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
151
151
  qboId: string | undefined;
152
152
  coaId: string | undefined;
@@ -182,8 +182,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
182
182
  accountDescription: string;
183
183
  last4Digits: string | undefined;
184
184
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
185
- status: import("../..").Status | undefined;
186
- balance: import("../..").Balance | undefined;
185
+ status: import("../../commonStateTypes/status").Status | undefined;
186
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
187
187
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
188
188
  qboId: string | undefined;
189
189
  coaId: string | undefined;
@@ -220,8 +220,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
220
220
  accountDescription: string;
221
221
  last4Digits: string | undefined;
222
222
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
223
- status: import("../..").Status | undefined;
224
- balance: import("../..").Balance | undefined;
223
+ status: import("../../commonStateTypes/status").Status | undefined;
224
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
225
225
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
226
226
  qboId: string | undefined;
227
227
  coaId: string | undefined;
@@ -257,8 +257,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
257
257
  accountDescription: string;
258
258
  last4Digits: string | undefined;
259
259
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
260
- status: import("../..").Status | undefined;
261
- balance: import("../..").Balance | undefined;
260
+ status: import("../../commonStateTypes/status").Status | undefined;
261
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
262
262
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
263
263
  qboId: string | undefined;
264
264
  coaId: string | undefined;
@@ -294,8 +294,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
294
294
  accountDescription: string;
295
295
  last4Digits: string | undefined;
296
296
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
297
- status: import("../..").Status | undefined;
298
- balance: import("../..").Balance | undefined;
297
+ status: import("../../commonStateTypes/status").Status | undefined;
298
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
299
299
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
300
300
  qboId: string | undefined;
301
301
  coaId: string | undefined;
@@ -331,8 +331,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
331
331
  accountDescription: string;
332
332
  last4Digits: string | undefined;
333
333
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
334
- status: import("../..").Status | undefined;
335
- balance: import("../..").Balance | undefined;
334
+ status: import("../../commonStateTypes/status").Status | undefined;
335
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
336
336
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
337
337
  qboId: string | undefined;
338
338
  coaId: string | undefined;
@@ -368,8 +368,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
368
368
  accountDescription: string;
369
369
  last4Digits: string | undefined;
370
370
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
371
- status: import("../..").Status | undefined;
372
- balance: import("../..").Balance | undefined;
371
+ status: import("../../commonStateTypes/status").Status | undefined;
372
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
373
373
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
374
374
  qboId: string | undefined;
375
375
  coaId: string | undefined;
@@ -405,8 +405,8 @@ declare const getAccountGroup: (accountGroupState: AccountGroupState, accountSta
405
405
  accountDescription: string;
406
406
  last4Digits: string | undefined;
407
407
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
408
- status: import("../..").Status | undefined;
409
- balance: import("../..").Balance | undefined;
408
+ status: import("../../commonStateTypes/status").Status | undefined;
409
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
410
410
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
411
411
  qboId: string | undefined;
412
412
  coaId: string | undefined;
@@ -449,8 +449,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
449
449
  accountDescription: string;
450
450
  last4Digits: string | undefined;
451
451
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
452
- status: import("../..").Status | undefined;
453
- balance: import("../..").Balance | undefined;
452
+ status: import("../../commonStateTypes/status").Status | undefined;
453
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
454
454
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
455
455
  qboId: string | undefined;
456
456
  coaId: string | undefined;
@@ -486,8 +486,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
486
486
  accountDescription: string;
487
487
  last4Digits: string | undefined;
488
488
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
489
- status: import("../..").Status | undefined;
490
- balance: import("../..").Balance | undefined;
489
+ status: import("../../commonStateTypes/status").Status | undefined;
490
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
491
491
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
492
492
  qboId: string | undefined;
493
493
  coaId: string | undefined;
@@ -523,8 +523,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
523
523
  accountDescription: string;
524
524
  last4Digits: string | undefined;
525
525
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
526
- status: import("../..").Status | undefined;
527
- balance: import("../..").Balance | undefined;
526
+ status: import("../../commonStateTypes/status").Status | undefined;
527
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
528
528
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
529
529
  qboId: string | undefined;
530
530
  coaId: string | undefined;
@@ -560,8 +560,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
560
560
  accountDescription: string;
561
561
  last4Digits: string | undefined;
562
562
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
563
- status: import("../..").Status | undefined;
564
- balance: import("../..").Balance | undefined;
563
+ status: import("../../commonStateTypes/status").Status | undefined;
564
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
565
565
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
566
566
  qboId: string | undefined;
567
567
  coaId: string | undefined;
@@ -597,8 +597,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
597
597
  accountDescription: string;
598
598
  last4Digits: string | undefined;
599
599
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
600
- status: import("../..").Status | undefined;
601
- balance: import("../..").Balance | undefined;
600
+ status: import("../../commonStateTypes/status").Status | undefined;
601
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
602
602
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
603
603
  qboId: string | undefined;
604
604
  coaId: string | undefined;
@@ -635,8 +635,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
635
635
  accountDescription: string;
636
636
  last4Digits: string | undefined;
637
637
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
638
- status: import("../..").Status | undefined;
639
- balance: import("../..").Balance | undefined;
638
+ status: import("../../commonStateTypes/status").Status | undefined;
639
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
640
640
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
641
641
  qboId: string | undefined;
642
642
  coaId: string | undefined;
@@ -672,8 +672,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
672
672
  accountDescription: string;
673
673
  last4Digits: string | undefined;
674
674
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
675
- status: import("../..").Status | undefined;
676
- balance: import("../..").Balance | undefined;
675
+ status: import("../../commonStateTypes/status").Status | undefined;
676
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
677
677
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
678
678
  qboId: string | undefined;
679
679
  coaId: string | undefined;
@@ -709,8 +709,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
709
709
  accountDescription: string;
710
710
  last4Digits: string | undefined;
711
711
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
712
- status: import("../..").Status | undefined;
713
- balance: import("../..").Balance | undefined;
712
+ status: import("../../commonStateTypes/status").Status | undefined;
713
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
714
714
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
715
715
  qboId: string | undefined;
716
716
  coaId: string | undefined;
@@ -746,8 +746,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
746
746
  accountDescription: string;
747
747
  last4Digits: string | undefined;
748
748
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
749
- status: import("../..").Status | undefined;
750
- balance: import("../..").Balance | undefined;
749
+ status: import("../../commonStateTypes/status").Status | undefined;
750
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
751
751
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
752
752
  qboId: string | undefined;
753
753
  coaId: string | undefined;
@@ -783,8 +783,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
783
783
  accountDescription: string;
784
784
  last4Digits: string | undefined;
785
785
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
786
- status: import("../..").Status | undefined;
787
- balance: import("../..").Balance | undefined;
786
+ status: import("../../commonStateTypes/status").Status | undefined;
787
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
788
788
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
789
789
  qboId: string | undefined;
790
790
  coaId: string | undefined;
@@ -820,8 +820,8 @@ export declare const getAccountGroupsOrdered: (filter: COABalancesFilter, accoun
820
820
  accountDescription: string;
821
821
  last4Digits: string | undefined;
822
822
  logo: import("url-parse")<Record<string, string | undefined>> | import("url-parse")<string> | undefined;
823
- status: import("../..").Status | undefined;
824
- balance: import("../..").Balance | undefined;
823
+ status: import("../../commonStateTypes/status").Status | undefined;
824
+ balance: import("../../commonStateTypes/balance").Balance | undefined;
825
825
  statementCloseDay: import("../account/accountState").StatementCloseDay | undefined;
826
826
  qboId: string | undefined;
827
827
  coaId: string | undefined;
@@ -1,4 +1,4 @@
1
- export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_approval_reorder" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_approval_reorder" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "card_policy_created" | "card_policy_updated" | "card_policy_deleted" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "snooze_task" | "unsnooze_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipt_match" | "receipts_upload" | "receipts_bulk_match" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "auto_transfer_rule_create" | "auto_transfer_rule_update" | "auto_transfer_rule_delete" | "auto_transfer_rule_pause" | "auto_transfer_rule_resume" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "create_transfer_entry" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed" | "accounting_classes_enabled_update" | "capitalization_threshold_update" | "account_excluded_from_reconciliation" | "account_included_in_reconciliation" | "statement_parsing_in_progress" | "statement_parsing_complete" | "ai_accountant_trigger_job" | "oauth_consent_approve" | "oauth_consent_invalid_request" | "credit_agent_update_profile" | "credit_agent_save_macro" | "credit_agent_schedule_cron" | "qbo_connection_already_linked";
1
+ export declare const toSnackbarMessageSection: (v: string) => "common" | "transactionDetails_updatingPastTransactions" | "transactionDetails_transactionUpdated" | "cockpit_month_end_email_sent" | "cockpit_month_end_email_save" | "cockpit_month_end_email_attachment_upload" | "je_bill_link" | "je_posted" | "audit_score_updated" | "people_invite_people" | "people_invite_multiple_people" | "people_delete_person" | "people_update_person" | "reimbursement_updated" | "reimbursement_deleted" | "reimbursement_cancelled_deleted" | "reimbursement_cancelled" | "reimbursement_approved" | "reimbursement_rejected" | "reimbursement_sent_for_approval" | "account_added" | "business_verification_save" | "business_verification_submit" | "business_verification_from_bills_submit" | "plaid_connection" | "unlink_deposit_account" | "reimbursement_setup" | "reimbursement_approval_create" | "reimbursement_duplicate_approval_create" | "reimbursement_approval_update" | "reimbursement_duplicate_approval_update" | "reimbursement_approval_delete" | "reimbursement_approval_reorder" | "reimbursement_create_mileage" | "reimbursement_update_mileage" | "reimbursement_accept_term" | "reimbursement_accept_employee_term" | "reimbursement_bulk_submit" | "reimbursement_bulk_processed" | "bill_pay_setup" | "zeni_accounts_setup" | "bill_pay_approval_create" | "bill_pay_duplicate_approval_create" | "bill_pay_approval_update" | "bill_pay_duplicate_approval_update" | "bill_pay_approval_delete" | "bill_pay_approval_reorder" | "bill_pay_updated" | "bill_pay_deleted" | "bill_pay_cancelled_deleted" | "bill_pay_cancelled" | "bill_pay_approved" | "real_time_approver_added" | "bill_pay_rejected" | "bill_pay_sent_for_approval" | "bill_pay_accept_term" | "bill_pay_bulk_submit" | "bill_pay_bulk_processed" | "bill_pay_refund" | "bill_pay_retry" | "bill_pay_marked_as_paid" | "zeni_account_accept_term" | "update_vendor" | "data_refresh_update" | "delete_bank_account" | "create_bank_account" | "create_bank_account_ach" | "create_bank_account_wire" | "create_bank_account_international" | "transfer_money" | "update_zeni_account_nickname" | "create_checking_account" | "deposit_check" | "create_vendor" | "onboarding_customer_view" | "onboarding_customer_view_complete" | "onboarding_customer_identity_verification_save" | "onboarding_customer_identity_verification_submit" | "onboarding_customer_business_verification_save" | "onboarding_customer_business_verification_submit" | "retry_bank_account_connection" | "dashboard_invite_sent" | "onboarding_info_saved" | "approve_original_merchant" | "approve_global_merchant" | "reject_global_merchant" | "create_global_merchant" | "fetch_global_merchant_no_recommendation" | "save_vendor_renamed" | "save_vendor_sent_for_review" | "save_vendor_marked_as_employee" | "save_vendor_marked_as_local_contractor" | "charge_card_setup" | "charge_card_accept_term" | "charge_card_receipt_upload" | "charge_card_resend_invite" | "charge_card_revoke_invite" | "card_policy_created" | "card_policy_updated" | "card_policy_deleted" | "charge_card_update_limit" | "charge_cards_update_limit" | "close_charge_card" | "lock_charge_card" | "lock_charge_card_card_user" | "lock_charge_cards" | "unlock_charge_card" | "unlock_charge_card_card_user" | "unlock_charge_cards" | "close_charge_cards" | "revoke_invite_charge_cards" | "charge_card_express_interest" | "create_schedule" | "save_schedule" | "delete_schedule" | "ignore_schedule" | "save_task_detail" | "fetch_task_detail" | "delete_task" | "archive_task" | "snooze_task" | "unsnooze_task" | "create_tag" | "delete_tag" | "update_charge_card" | "update_charge_card_name" | "update_charge_card_name_card_user" | "issue_charge_card" | "issue_charge_cards" | "notification_settings_saved" | "referral_invite_sent" | "notification_mark_as_read" | "mark_as_complete_schedule" | "cancel_journal_entry" | "settings_accounting_accounts_updated" | "create_card_setup" | "confirm_card_setup" | "add_card_payment_source" | "fetch_payment_sources" | "task_assigned_toast_notification" | "task_due_tomorrow_toast_notification" | "task_deleted_toast_notification" | "task_archived_toast_notification" | "task_overdue_toast_notification" | "task_overdue_toast_notification_creator" | "task_notification_count" | "task_activities_toast_notification" | "task_created_toast_notification" | "task_group_creation_success" | "task_group_deletion_success" | "task_group_update_success" | "primary_funding_account_updated" | "task_time_spent_validation" | "missing_receipts_attachment" | "flux_analysis_unreviewed" | "flux_analysis_reviewed" | "receipt_match" | "receipts_upload" | "receipts_bulk_match" | "billing_address_view" | "express_pay_submit" | "exclude_transaction" | "reconcile" | "save_reconcile_for_later" | "recon_transaction_categorize" | "recon_transaction_match" | "update_debit_card_pin_attempt" | "set_debit_card_pin" | "ai_cfo_create_session_and_submit" | "ai_cfo_chat_session_deleted" | "charge_card_auto_pay_enable" | "charge_card_auto_pay_disable" | "treasury_setup" | "treasury_accept_term" | "treasury_transfer_money" | "treasury_transfer_money_failed" | "auto_transfer_rule_create" | "auto_transfer_rule_update" | "auto_transfer_rule_delete" | "auto_transfer_rule_pause" | "auto_transfer_rule_resume" | "treasury_update_portfolio_allocation" | "send_email_magic_link_to_user" | "complete_profile_done" | "create_transfer_entry" | "reports_resync" | "invalid_phone_number" | "transactions_categorized_updated_failed" | "transaction_categorized_updated_failed" | "transactionsCategorized_transactionsUpdated" | "transactionsCategorized_transactionUpdated" | "transactionCategorized_transactionsUpdated" | "transactionCategorized_transactionUpdated" | "transactionsCategorized_transactionsFailed" | "transactionsCategorized_transactionFailed" | "transactionCategorized_transactionsFailed" | "transactionCategorized_transactionFailed" | "transactionsUpdated_transactionsFailed" | "transactionsUpdated_transactionFailed" | "transactionUpdated_transactionsFailed" | "transactionUpdated_transactionFailed" | "transactionsCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionsUpdated_transactionFailed" | "transactionsCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionsUpdated_transactionsFailed" | "transactionsCategorized_transactionUpdated_transactionFailed" | "transactionCategorized_transactionsUpdated_transactionFailed" | "transactionCategorized_transactionUpdated_transactionsFailed" | "transactionCategorized_transactionUpdated_transactionFailed" | "accounting_classes_enabled_update" | "capitalization_threshold_update" | "account_excluded_from_reconciliation" | "account_included_in_reconciliation" | "statement_parsing_in_progress" | "statement_parsing_complete" | "ai_accountant_trigger_job" | "oauth_consent_approve" | "oauth_consent_invalid_request" | "credit_agent_update_profile" | "credit_agent_save_macro" | "credit_agent_schedule_cron" | "qbo_connection_already_linked" | "qbo_connection_failed";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
3
  export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "failed" | "success";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
@@ -225,6 +225,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
225
225
  'credit_agent_save_macro',
226
226
  'credit_agent_schedule_cron',
227
227
  'qbo_connection_already_linked',
228
+ 'qbo_connection_failed',
228
229
  ];
229
230
  const toSnackbarMessageSection = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
230
231
  exports.toSnackbarMessageSection = toSnackbarMessageSection;
@@ -11,10 +11,9 @@ const responsePayload_1 = require("../../../responsePayload");
11
11
  const companyReducer_1 = require("../../company/companyReducer");
12
12
  const snackbarReducer_1 = require("../../snackbar/snackbarReducer");
13
13
  const tenantReducer_1 = require("../tenantReducer");
14
- // Backend returns 409 with a user-facing message when the QBO realm is
15
- // already linked to another active tenant (tenant PR #1950). Surface that
16
- // specific case via snackbar so the user sees the rejection copy rather than
17
- // the generic save-connection failure UI.
14
+ // Backend returns 409 when the QBO realm is already linked to another active
15
+ // tenant. That case gets specific rejection copy; every other connect failure
16
+ // falls back to the generic connect-failure snackbar.
18
17
  const QBO_REALM_ALREADY_LINKED_STATUS = 409;
19
18
  const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pipe((0, operators_1.filter)(tenantReducer_1.saveExternalConnection.match), (0, operators_1.switchMap)((action) => zeniAPI
20
19
  .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/connections/${action.payload.connectionMeta.connection_id}`, {
@@ -43,13 +42,17 @@ const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pipe((0, o
43
42
  }
44
43
  else {
45
44
  actions.push((0, tenantReducer_1.saveExternalConnectionFailure)(action.payload.tenantId, response.status));
46
- if (response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS) {
47
- actions.push((0, snackbarReducer_1.openSnackbar)({
45
+ actions.push((0, snackbarReducer_1.openSnackbar)(response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
46
+ ? {
48
47
  messageSection: 'qbo_connection_already_linked',
49
48
  messageText: 'failed',
50
49
  type: 'error',
50
+ }
51
+ : {
52
+ messageSection: 'qbo_connection_failed',
53
+ messageText: 'failed',
54
+ type: 'error',
51
55
  }));
52
- }
53
56
  if (action.payload.companyId != null &&
54
57
  action.payload.userId != null) {
55
58
  actions.push((0, companyReducer_1.updateQBOConnectionStatusForCompany)({
@@ -65,6 +68,11 @@ const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pipe((0, o
65
68
  const actions = [];
66
69
  actions.push((0, tenantReducer_1.saveExternalConnectionFailure)(action.payload.tenantId, (0, responsePayload_1.createZeniAPIStatus)('Unexpected error', 'Save Connection REST API call errored out' +
67
70
  JSON.stringify(error))));
71
+ actions.push((0, snackbarReducer_1.openSnackbar)({
72
+ messageSection: 'qbo_connection_failed',
73
+ messageText: 'failed',
74
+ type: 'error',
75
+ }));
68
76
  if (action.payload.companyId != null &&
69
77
  action.payload.userId != null) {
70
78
  actions.push((0, companyReducer_1.updateQBOConnectionStatusForCompany)({
@@ -5,9 +5,9 @@ import { pushToastNotification } from '../toastNotificationReducer';
5
5
  export type ActionType = ReturnType<typeof pushToastNotification> | ReturnType<typeof openSnackbar>;
6
6
  export declare const pushToastNotificationEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<{
7
7
  payload: {
8
- messageSection: import("../../..").SnackbarMessageSections;
9
- messageText: import("../../..").SnackbarMessageSectionTexts;
10
- type: import("../../..").SnackbarMessageType;
8
+ messageSection: import("../../snackbar/snackbarTypes").SnackbarMessageSections;
9
+ messageText: import("../../snackbar/snackbarTypes").SnackbarMessageSectionTexts;
10
+ type: import("../../snackbar/snackbarTypes").SnackbarMessageType;
11
11
  showStatusIcon?: boolean;
12
12
  variables?: {
13
13
  variableName: string;
@@ -222,6 +222,7 @@ const ALL_SNACKBAR_MESSAGE_SECTIONS = [
222
222
  'credit_agent_save_macro',
223
223
  'credit_agent_schedule_cron',
224
224
  'qbo_connection_already_linked',
225
+ 'qbo_connection_failed',
225
226
  ];
226
227
  export const toSnackbarMessageSection = (v) => stringToUnion(v, ALL_SNACKBAR_MESSAGE_SECTIONS);
227
228
  // Keeping this different from the message type, since we may not have messages in all instances
@@ -5,10 +5,9 @@ import { createZeniAPIStatus, isSuccessResponse } from '../../../responsePayload
5
5
  import { updateQBOConnectionStatusForCompany } from '../../company/companyReducer';
6
6
  import { openSnackbar } from '../../snackbar/snackbarReducer';
7
7
  import { saveExternalConnection, saveExternalConnectionFailure, saveExternalConnectionSuccess, } from '../tenantReducer';
8
- // Backend returns 409 with a user-facing message when the QBO realm is
9
- // already linked to another active tenant (tenant PR #1950). Surface that
10
- // specific case via snackbar so the user sees the rejection copy rather than
11
- // the generic save-connection failure UI.
8
+ // Backend returns 409 when the QBO realm is already linked to another active
9
+ // tenant. That case gets specific rejection copy; every other connect failure
10
+ // falls back to the generic connect-failure snackbar.
12
11
  const QBO_REALM_ALREADY_LINKED_STATUS = 409;
13
12
  export const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pipe(filter(saveExternalConnection.match), switchMap((action) => zeniAPI
14
13
  .putAndGetJSON(`${zeniAPI.apiEndPoints.tenantMicroServiceBaseUrl}/1.0/connections/${action.payload.connectionMeta.connection_id}`, {
@@ -37,13 +36,17 @@ export const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pip
37
36
  }
38
37
  else {
39
38
  actions.push(saveExternalConnectionFailure(action.payload.tenantId, response.status));
40
- if (response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS) {
41
- actions.push(openSnackbar({
39
+ actions.push(openSnackbar(response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
40
+ ? {
42
41
  messageSection: 'qbo_connection_already_linked',
43
42
  messageText: 'failed',
44
43
  type: 'error',
44
+ }
45
+ : {
46
+ messageSection: 'qbo_connection_failed',
47
+ messageText: 'failed',
48
+ type: 'error',
45
49
  }));
46
- }
47
50
  if (action.payload.companyId != null &&
48
51
  action.payload.userId != null) {
49
52
  actions.push(updateQBOConnectionStatusForCompany({
@@ -59,6 +62,11 @@ export const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pip
59
62
  const actions = [];
60
63
  actions.push(saveExternalConnectionFailure(action.payload.tenantId, createZeniAPIStatus('Unexpected error', 'Save Connection REST API call errored out' +
61
64
  JSON.stringify(error))));
65
+ actions.push(openSnackbar({
66
+ messageSection: 'qbo_connection_failed',
67
+ messageText: 'failed',
68
+ type: 'error',
69
+ }));
62
70
  if (action.payload.companyId != null &&
63
71
  action.payload.userId != null) {
64
72
  actions.push(updateQBOConnectionStatusForCompany({
@@ -12,7 +12,7 @@ export declare const fetchAddressEpic: (actions$: ActionsObservable<ActionType>,
12
12
  type: "addressView/fetchAddressSuccess";
13
13
  } | {
14
14
  payload: {
15
- addressId: import("../../..").ID;
15
+ addressId: import("../../../commonStateTypes/common").ID;
16
16
  status: import("../../../responsePayload").ZeniAPIStatus;
17
17
  };
18
18
  type: "addressView/fetchAddressFailure";
@@ -12,7 +12,7 @@ export declare const updateAddressEpic: (actions$: ActionsObservable<ActionType>
12
12
  type: "addressView/updateAddressSuccess";
13
13
  } | {
14
14
  payload: {
15
- addressId: import("../../..").ID;
15
+ addressId: import("../../../commonStateTypes/common").ID;
16
16
  status: import("../../../responsePayload").ZeniAPIStatus;
17
17
  };
18
18
  type: "addressView/updateAddressFailure";
@@ -6,9 +6,9 @@ import { cancelAiAccountantOnboarding, cancelAiAccountantOnboardingFailure, canc
6
6
  export type ActionType = ReturnType<typeof cancelAiAccountantOnboarding> | ReturnType<typeof cancelAiAccountantOnboardingSuccess> | ReturnType<typeof cancelAiAccountantOnboardingFailure> | ReturnType<typeof fetchAiAccountantCustomers> | ReturnType<typeof openSnackbar>;
7
7
  export declare const cancelAiAccountantOnboardingEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
8
8
  payload: {
9
- messageSection: import("../../..").SnackbarMessageSections;
10
- messageText: import("../../..").SnackbarMessageSectionTexts;
11
- type: import("../../..").SnackbarMessageType;
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;
@@ -7,8 +7,8 @@ import { fetchAiAccountantCustomers, updateAiAccountantCustomers, updateAiAccoun
7
7
  export type ActionType = ReturnType<typeof fetchAiAccountantCustomers> | ReturnType<typeof updateAiAccountantCustomers> | ReturnType<typeof updateAiAccountantCustomersFailure> | ReturnType<typeof updateAiAccountantCustomerEntities> | ReturnType<typeof updateAllUsers>;
8
8
  export declare const fetchAiAccountantCustomersEpic: (actions$: ActionsObservable<ActionType>, _: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
9
9
  payload: {
10
- users: import("../../..").UserPayload[];
11
- updateType?: import("../../..").UpdateType;
10
+ users: import("../../../entity/user/userPayload").UserPayload[];
11
+ updateType?: import("../../../commonStateTypes/common").UpdateType;
12
12
  };
13
13
  type: "user/updateAllUsers";
14
14
  } | {
@@ -7,8 +7,8 @@ import { fetchAiAccountantJobs, updateAiAccountantJobs, updateAiAccountantJobsFa
7
7
  export type ActionType = ReturnType<typeof fetchAiAccountantJobs> | ReturnType<typeof updateAiAccountantJobs> | ReturnType<typeof updateAiAccountantJobEntities> | ReturnType<typeof updateAiAccountantJobsFailure> | ReturnType<typeof updateAllUsers>;
8
8
  export declare const fetchAiAccountantJobsEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
9
9
  payload: {
10
- users: import("../../..").UserPayload[];
11
- updateType?: import("../../..").UpdateType;
10
+ users: import("../../../entity/user/userPayload").UserPayload[];
11
+ updateType?: import("../../../commonStateTypes/common").UpdateType;
12
12
  };
13
13
  type: "user/updateAllUsers";
14
14
  } | {
@@ -27,7 +27,7 @@ export declare const fetchAiAccountantJobsEpic: (actions$: ActionsObservable<Act
27
27
  } | {
28
28
  payload: {
29
29
  error: import("../../../responsePayload").ZeniAPIStatus;
30
- tenantId: import("../../..").ID;
30
+ tenantId: import("../../../commonStateTypes/common").ID;
31
31
  };
32
32
  type: "aiAccountantView/updateAiAccountantJobsFailure";
33
33
  }>;
@@ -6,9 +6,9 @@ import { fetchAiAccountantCustomers, triggerAiAccountantJob, triggerAiAccountant
6
6
  export type ActionType = ReturnType<typeof triggerAiAccountantJob> | ReturnType<typeof triggerAiAccountantJobSuccess> | ReturnType<typeof triggerAiAccountantJobFailure> | ReturnType<typeof fetchAiAccountantCustomers> | ReturnType<typeof openSnackbar>;
7
7
  export declare const triggerAiAccountantJobEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => import("rxjs").Observable<{
8
8
  payload: {
9
- messageSection: import("../../..").SnackbarMessageSections;
10
- messageText: import("../../..").SnackbarMessageSectionTexts;
11
- type: import("../../..").SnackbarMessageType;
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;