@zeniai/client-epic-state 5.0.36-betaRD13 → 5.0.36-betaRD2

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 (79) hide show
  1. package/lib/commonStateTypes/recommendationBase.d.ts +1 -1
  2. package/lib/entity/project/projectPayload.d.ts +0 -7
  3. package/lib/entity/project/projectPayload.js +1 -15
  4. package/lib/entity/tenant/clearAllEpic.d.ts +2 -2
  5. package/lib/entity/tenant/clearAllEpic.js +2 -2
  6. package/lib/entity/tenant/epic/deleteConnectionEpic.d.ts +19 -0
  7. package/lib/entity/tenant/epic/deleteConnectionEpic.js +29 -0
  8. package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.d.ts +19 -0
  9. package/lib/entity/tenant/epic/saveAPIKeyConnectionEpic.js +31 -0
  10. package/lib/entity/tenant/epic/saveOAuthConnectionEpic.d.ts +19 -0
  11. package/lib/entity/tenant/epic/saveOAuthConnectionEpic.js +33 -0
  12. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  13. package/lib/entity/tenant/tenantReducer.d.ts +59 -1
  14. package/lib/entity/tenant/tenantReducer.js +139 -4
  15. package/lib/entity/tenant/tenantState.d.ts +7 -0
  16. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +0 -2
  17. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +0 -9
  18. package/lib/entity/transaction/stateTypes/transactionLine.d.ts +0 -2
  19. package/lib/epic.d.ts +3 -2
  20. package/lib/epic.js +6 -2
  21. package/lib/esm/entity/project/projectPayload.js +0 -12
  22. package/lib/esm/entity/tenant/clearAllEpic.js +2 -2
  23. package/lib/esm/entity/tenant/epic/deleteConnectionEpic.js +25 -0
  24. package/lib/esm/entity/tenant/epic/saveAPIKeyConnectionEpic.js +27 -0
  25. package/lib/esm/entity/tenant/epic/saveOAuthConnectionEpic.js +29 -0
  26. package/lib/esm/entity/tenant/tenantReducer.js +135 -2
  27. package/lib/esm/entity/transaction/payloadTypes/transactionLinePayload.js +0 -9
  28. package/lib/esm/epic.js +6 -2
  29. package/lib/esm/index.js +6 -5
  30. package/lib/esm/reducer.js +3 -3
  31. package/lib/esm/view/featureNotificationView/epics/fetchRegisteredInterestsEpic.js +23 -0
  32. package/lib/esm/view/featureNotificationView/epics/notifyMeForFeatureEpic.js +25 -0
  33. package/lib/esm/view/featureNotificationView/featureNotificationViewPayload.js +11 -0
  34. package/lib/esm/view/featureNotificationView/featureNotificationViewReducer.js +106 -0
  35. package/lib/esm/view/featureNotificationView/featureNotificationViewSelector.js +4 -0
  36. package/lib/esm/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  37. package/lib/esm/view/transactionDetail/epics/transactionDetailEpic.js +0 -6
  38. package/lib/esm/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -3
  39. package/lib/esm/view/transactionDetail/transactionDetailSelector.js +2 -14
  40. package/lib/index.d.ts +7 -5
  41. package/lib/index.js +45 -35
  42. package/lib/reducer.d.ts +3 -3
  43. package/lib/reducer.js +3 -3
  44. package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
  45. package/lib/view/featureNotificationView/epics/fetchRegisteredInterestsEpic.d.ts +16 -0
  46. package/lib/view/featureNotificationView/epics/fetchRegisteredInterestsEpic.js +27 -0
  47. package/lib/view/featureNotificationView/epics/notifyMeForFeatureEpic.d.ts +14 -0
  48. package/lib/view/featureNotificationView/epics/notifyMeForFeatureEpic.js +29 -0
  49. package/lib/view/featureNotificationView/featureNotificationViewPayload.d.ts +23 -0
  50. package/lib/view/featureNotificationView/featureNotificationViewPayload.js +15 -0
  51. package/lib/view/featureNotificationView/featureNotificationViewReducer.d.ts +19 -0
  52. package/lib/view/featureNotificationView/featureNotificationViewReducer.js +110 -0
  53. package/lib/view/featureNotificationView/featureNotificationViewSelector.d.ts +6 -0
  54. package/lib/view/featureNotificationView/featureNotificationViewSelector.js +11 -0
  55. package/lib/view/featureNotificationView/featureNotificationViewState.d.ts +26 -0
  56. package/lib/view/transactionDetail/epics/saveTransactionHelper.js +0 -1
  57. package/lib/view/transactionDetail/epics/transactionDetailEpic.d.ts +1 -2
  58. package/lib/view/transactionDetail/epics/transactionDetailEpic.js +0 -6
  59. package/lib/view/transactionDetail/epics/updateTransactionDetailEpic.js +0 -3
  60. package/lib/view/transactionDetail/transactionDetailSelector.d.ts +0 -3
  61. package/lib/view/transactionDetail/transactionDetailSelector.js +1 -13
  62. package/lib/view/transactionDetail/transactionDetailState.d.ts +0 -2
  63. package/lib/view/transactionDetail/transactionDetailTypes.d.ts +0 -2
  64. package/package.json +1 -1
  65. package/lib/esm/view/projectList/fetchProjectListEpic.js +0 -38
  66. package/lib/esm/view/projectList/projectListReducer.js +0 -39
  67. package/lib/esm/view/projectList/projectListSelector.js +0 -9
  68. package/lib/esm/view/projectList/projectListState.js +0 -1
  69. package/lib/view/projectList/fetchProjectListEpic.d.ts +0 -8
  70. package/lib/view/projectList/fetchProjectListEpic.js +0 -42
  71. package/lib/view/projectList/projectListPayload.d.ts +0 -7
  72. package/lib/view/projectList/projectListReducer.d.ts +0 -9
  73. package/lib/view/projectList/projectListReducer.js +0 -43
  74. package/lib/view/projectList/projectListSelector.d.ts +0 -8
  75. package/lib/view/projectList/projectListSelector.js +0 -13
  76. package/lib/view/projectList/projectListState.d.ts +0 -4
  77. package/lib/view/projectList/projectListState.js +0 -2
  78. /package/lib/esm/view/{projectList/projectListPayload.js → featureNotificationView/featureNotificationViewState.js} +0 -0
  79. /package/lib/view/{projectList/projectListPayload.js → featureNotificationView/featureNotificationViewState.js} +0 -0
package/lib/reducer.d.ts CHANGED
@@ -105,6 +105,7 @@ import { MissingReceiptsViewState as ExpenseAutomationMissingReceiptsViewState }
105
105
  import { ReconciliationViewState as ExpenseAutomationReconciliationViewState } from './view/expenseAutomationView/types/reconciliationViewState';
106
106
  import { TransactionsViewState as ExpenseAutomationTransactionsViewState } from './view/expenseAutomationView/types/transactionsViewState';
107
107
  import { FileViewState } from './view/fileView/fileViewState';
108
+ import { FeatureNotificationViewState } from './view/featureNotificationView/featureNotificationViewState';
108
109
  import { FinanceStatementState } from './view/financeStatement/financeStatementState';
109
110
  import { ForecastListState } from './view/forecastList/forecastListState';
110
111
  import { GlobalMerchantAutoCompleteState } from './view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState';
@@ -125,7 +126,6 @@ import { PeopleState } from './view/people/peopleState';
125
126
  import { ProfitAndLossWithForecastState } from './view/profitAndLoss/profitAndLossState';
126
127
  import { ProfitAndLossClassesViewState } from './view/profitAndLossClassesView/profitAndLossClassesViewState';
127
128
  import { ProfitAndLossProjectViewState } from './view/profitAndLossProjectView/profitAndLossProjectViewState';
128
- import { ProjectListState } from './view/projectList/projectListState';
129
129
  import { EntityRecommendationState } from './view/recommendation/recommendationState';
130
130
  import { ReferralViewState } from './view/referralView/referralState';
131
131
  import { ReimbursementCardState } from './view/reimbursementCard/reimbursementCardState';
@@ -353,6 +353,7 @@ type ViewsState = {
353
353
  expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
354
354
  expenseAutomationViewState: ExpenseAutomationViewState;
355
355
  expressPayState: ExpressPayState;
356
+ featureNotificationViewState: FeatureNotificationViewState;
356
357
  fileViewState: FileViewState;
357
358
  financeStatementState: FinanceStatementState;
358
359
  forecastListState: ForecastListState;
@@ -382,7 +383,6 @@ type ViewsState = {
382
383
  profitAndLossClassesViewState: ProfitAndLossClassesViewState;
383
384
  profitAndLossProjectViewState: ProfitAndLossProjectViewState;
384
385
  profitAndLossState: ProfitAndLossWithForecastState;
385
- projectListState: ProjectListState;
386
386
  realTimeApprovalState: RealTimeApprovalState;
387
387
  referralViewState: ReferralViewState;
388
388
  reimbursementCardState: ReimbursementCardState;
@@ -510,6 +510,7 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
510
510
  expenseAutomationTransactionsViewState: ExpenseAutomationTransactionsViewState;
511
511
  expenseAutomationViewState: ExpenseAutomationViewState;
512
512
  expressPayState: ExpressPayState;
513
+ featureNotificationViewState: FeatureNotificationViewState;
513
514
  fileViewState: FileViewState;
514
515
  financeStatementState: FinanceStatementState;
515
516
  forecastListState: ForecastListState;
@@ -540,7 +541,6 @@ declare const reducers: import("redux").Reducer<import("redux").CombinedState<{
540
541
  profitAndLossClassesViewState: ProfitAndLossClassesViewState;
541
542
  profitAndLossProjectViewState: ProfitAndLossProjectViewState;
542
543
  profitAndLossState: ProfitAndLossWithForecastState;
543
- projectListState: ProjectListState;
544
544
  realTimeApprovalState: RealTimeApprovalState;
545
545
  referralViewState: ReferralViewState;
546
546
  reimbursementCardState: ReimbursementCardState;
package/lib/reducer.js CHANGED
@@ -146,6 +146,7 @@ const reconciliationViewReducer_1 = __importStar(require("./view/expenseAutomati
146
146
  const transactionsViewReducer_1 = __importStar(require("./view/expenseAutomationView/reducers/transactionsViewReducer"));
147
147
  const fileViewReducer_1 = __importDefault(require("./view/fileView/fileViewReducer"));
148
148
  const fileViewState_1 = require("./view/fileView/fileViewState");
149
+ const featureNotificationViewReducer_1 = __importStar(require("./view/featureNotificationView/featureNotificationViewReducer"));
149
150
  const financeStatementReducer_1 = __importStar(require("./view/financeStatement/financeStatementReducer"));
150
151
  const forecastListReducer_1 = __importStar(require("./view/forecastList/forecastListReducer"));
151
152
  const globalMerchantAutoCompleteViewReducer_1 = __importStar(require("./view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer"));
@@ -166,7 +167,6 @@ const peopleReducer_1 = __importStar(require("./view/people/peopleReducer"));
166
167
  const profitAndLossReducer_1 = __importStar(require("./view/profitAndLoss/profitAndLossReducer"));
167
168
  const profitAndLossClassesViewReducer_1 = __importStar(require("./view/profitAndLossClassesView/profitAndLossClassesViewReducer"));
168
169
  const profitAndLossProjectViewReducer_1 = __importStar(require("./view/profitAndLossProjectView/profitAndLossProjectViewReducer"));
169
- const projectListReducer_1 = __importStar(require("./view/projectList/projectListReducer"));
170
170
  const recommendationReducer_1 = __importStar(require("./view/recommendation/recommendationReducer"));
171
171
  const referralReducer_1 = __importStar(require("./view/referralView/referralReducer"));
172
172
  const reimbursementCardReducer_1 = __importStar(require("./view/reimbursementCard/reimbursementCardReducer"));
@@ -395,6 +395,7 @@ const initialViewsState = {
395
395
  expenseAutomationTransactionsViewState: transactionsViewReducer_1.initialState,
396
396
  expenseAutomationViewState: expenseAutomationViewReducer_1.initialState,
397
397
  expressPayState: expressPayReducer_1.initialState,
398
+ featureNotificationViewState: featureNotificationViewReducer_1.initialState,
398
399
  fileViewState: fileViewState_1.initialFileViewState,
399
400
  financeStatementState: financeStatementReducer_1.initialFinanceStatementState,
400
401
  forecastListState: forecastListReducer_1.initialState,
@@ -424,7 +425,6 @@ const initialViewsState = {
424
425
  profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.initialState,
425
426
  profitAndLossProjectViewState: profitAndLossProjectViewReducer_1.initialState,
426
427
  profitAndLossState: profitAndLossReducer_1.initialState,
427
- projectListState: projectListReducer_1.initialState,
428
428
  realTimeApprovalState: realTimeApprovalReducer_1.initialState,
429
429
  referralViewState: referralReducer_1.initialState,
430
430
  reimbursementCardState: reimbursementCardReducer_1.initialState,
@@ -627,6 +627,7 @@ const viewReducers = {
627
627
  expenseAutomationTransactionsViewState: transactionsViewReducer_1.default,
628
628
  expenseAutomationViewState: expenseAutomationViewReducer_1.default,
629
629
  expressPayState: expressPayReducer_1.default,
630
+ featureNotificationViewState: featureNotificationViewReducer_1.default,
630
631
  fileViewState: fileViewReducer_1.default,
631
632
  financeStatementState: financeStatementReducer_1.default,
632
633
  forecastListState: forecastListReducer_1.default,
@@ -657,7 +658,6 @@ const viewReducers = {
657
658
  profitAndLossClassesViewState: profitAndLossClassesViewReducer_1.default,
658
659
  profitAndLossProjectViewState: profitAndLossProjectViewReducer_1.default,
659
660
  profitAndLossState: profitAndLossReducer_1.default,
660
- projectListState: projectListReducer_1.default,
661
661
  realTimeApprovalState: realTimeApprovalReducer_1.default,
662
662
  referralViewState: referralReducer_1.default,
663
663
  reimbursementCardState: reimbursementCardReducer_1.default,