@zeniai/client-epic-state 4.20.3-betaRD21 → 4.20.3-betaRD3

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 (214) hide show
  1. package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +2 -0
  2. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.d.ts +13 -0
  3. package/lib/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +9 -0
  4. package/lib/commonStateTypes/common.d.ts +1 -1
  5. package/lib/commonStateTypes/projectView/projectViewParentID.d.ts +5 -0
  6. package/lib/commonStateTypes/projectView/projectViewParentID.js +2 -0
  7. package/lib/commonStateTypes/viewAndReport/reportIDHelper.d.ts +1 -0
  8. package/lib/commonStateTypes/viewAndReport/reportIDHelper.js +3 -1
  9. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +2 -2
  10. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +1 -1
  11. package/lib/entity/account/accountPayload.d.ts +0 -2
  12. package/lib/entity/account/accountReducer.d.ts +2 -5
  13. package/lib/entity/account/accountReducer.js +7 -10
  14. package/lib/entity/account/accountSelector.d.ts +7 -0
  15. package/lib/entity/account/accountSelector.js +4 -2
  16. package/lib/entity/account/accountState.d.ts +3 -1
  17. package/lib/entity/account/accountState.js +4 -1
  18. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +1 -0
  19. package/lib/entity/account/subAccountSelector.d.ts +2 -0
  20. package/lib/entity/account/subAccountSelector.js +2 -0
  21. package/lib/entity/accountGroup/accountGroupSelector.d.ts +22 -0
  22. package/lib/entity/accountGroup/accountGroupState.d.ts +1 -1
  23. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +2 -2
  24. package/lib/entity/chargeCard/chargeCard.d.ts +1 -1
  25. package/lib/entity/class/classReducer.d.ts +4 -4
  26. package/lib/entity/class/classState.d.ts +1 -1
  27. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +1 -1
  28. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +2 -2
  29. package/lib/entity/forecast/forecastState.d.ts +1 -1
  30. package/lib/entity/jeSchedules/jeSchedulesTypes.d.ts +1 -1
  31. package/lib/entity/project/projectPayload.d.ts +13 -0
  32. package/lib/entity/project/projectPayload.js +30 -0
  33. package/lib/entity/project/projectReducer.d.ts +10 -0
  34. package/lib/entity/project/projectReducer.js +31 -0
  35. package/lib/entity/project/projectSelector.d.ts +5 -0
  36. package/lib/entity/project/projectSelector.js +12 -0
  37. package/lib/entity/project/projectState.d.ts +13 -0
  38. package/lib/entity/project/projectState.js +2 -0
  39. package/lib/entity/sectionAccountsView/sectionAccountsView.d.ts +1 -1
  40. package/lib/entity/sectionClassesViewV2/sectionClassesView.d.ts +1 -1
  41. package/lib/entity/sectionClassesViewV2/sectionClassesViewReducer.d.ts +2 -2
  42. package/lib/entity/sectionProjectView/sectionProjectView.d.ts +10 -0
  43. package/lib/entity/sectionProjectView/sectionProjectView.js +6 -0
  44. package/lib/entity/sectionProjectView/sectionProjectViewEpic.d.ts +6 -0
  45. package/lib/entity/sectionProjectView/sectionProjectViewEpic.js +56 -0
  46. package/lib/entity/sectionProjectView/sectionProjectViewHelper.d.ts +9 -0
  47. package/lib/entity/sectionProjectView/sectionProjectViewHelper.js +13 -0
  48. package/lib/entity/sectionProjectView/sectionProjectViewReducer.d.ts +15 -0
  49. package/lib/entity/sectionProjectView/sectionProjectViewReducer.js +50 -0
  50. package/lib/entity/sectionProjectView/sectionProjectViewSelector.d.ts +11 -0
  51. package/lib/entity/sectionProjectView/sectionProjectViewSelector.js +103 -0
  52. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.d.ts +16 -0
  53. package/lib/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +2 -0
  54. package/lib/entity/sectionProjectView/sectionProjectViewState.d.ts +4 -0
  55. package/lib/entity/sectionProjectView/sectionProjectViewState.js +2 -0
  56. package/lib/entity/snackbar/snackbarTypes.d.ts +1 -1
  57. package/lib/entity/tenant/clearAllEpic.d.ts +5 -4
  58. package/lib/entity/tenant/clearAllEpic.js +6 -4
  59. package/lib/entity/tenant/tenantPayload.d.ts +1 -0
  60. package/lib/entity/tenant/tenantReducer.js +1 -0
  61. package/lib/entity/tenant/tenantSelector.d.ts +1 -0
  62. package/lib/entity/tenant/tenantSelector.js +9 -1
  63. package/lib/entity/tenant/tenantState.d.ts +1 -0
  64. package/lib/entity/transaction/payloadTypes/transactionPayload.js +0 -1
  65. package/lib/entity/userRole/userRoleType.d.ts +2 -2
  66. package/lib/epic.d.ts +4 -3
  67. package/lib/epic.js +4 -3
  68. package/lib/esm/commonStateTypes/coaBalance/coaBalancesFilterProjectView.js +5 -0
  69. package/lib/esm/commonStateTypes/projectView/projectViewParentID.js +1 -0
  70. package/lib/esm/commonStateTypes/viewAndReport/reportIDHelper.js +1 -0
  71. package/lib/esm/commonStateTypes/viewAndReport/viewAndReport.js +1 -1
  72. package/lib/esm/entity/account/accountReducer.js +6 -9
  73. package/lib/esm/entity/account/accountSelector.js +4 -2
  74. package/lib/esm/entity/account/accountState.js +4 -1
  75. package/lib/esm/entity/account/subAccountSelector.js +2 -0
  76. package/lib/esm/entity/project/projectPayload.js +26 -0
  77. package/lib/esm/entity/project/projectReducer.js +27 -0
  78. package/lib/esm/entity/project/projectSelector.js +8 -0
  79. package/lib/esm/entity/project/projectState.js +1 -0
  80. package/lib/esm/entity/sectionProjectView/sectionProjectView.js +3 -0
  81. package/lib/esm/entity/sectionProjectView/sectionProjectViewEpic.js +52 -0
  82. package/lib/esm/entity/sectionProjectView/sectionProjectViewHelper.js +9 -0
  83. package/lib/esm/entity/sectionProjectView/sectionProjectViewReducer.js +46 -0
  84. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelector.js +96 -0
  85. package/lib/esm/entity/sectionProjectView/sectionProjectViewSelectorTypes.js +1 -0
  86. package/lib/esm/entity/sectionProjectView/sectionProjectViewState.js +1 -0
  87. package/lib/esm/entity/tenant/clearAllEpic.js +6 -4
  88. package/lib/esm/entity/tenant/tenantReducer.js +1 -0
  89. package/lib/esm/entity/tenant/tenantSelector.js +7 -0
  90. package/lib/esm/entity/transaction/payloadTypes/transactionPayload.js +0 -1
  91. package/lib/esm/epic.js +4 -3
  92. package/lib/esm/index.js +11 -15
  93. package/lib/esm/reducer.js +9 -6
  94. package/lib/esm/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +9 -4
  95. package/lib/esm/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -5
  96. package/lib/esm/view/expenseAutomationView/reducers/reconciliationViewReducer.js +3 -163
  97. package/lib/esm/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -1
  98. package/lib/esm/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -112
  99. package/lib/esm/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +6 -10
  100. package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +0 -6
  101. package/lib/esm/view/financeStatement/financeStatementSelector.js +12 -1
  102. package/lib/esm/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +2 -4
  103. package/lib/esm/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +45 -0
  104. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +30 -0
  105. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +1 -0
  106. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +113 -0
  107. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +66 -0
  108. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +1 -0
  109. package/lib/esm/view/profitAndLossProjectView/profitAndLossProjectViewState.js +1 -0
  110. package/lib/esm/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  111. package/lib/index.d.ts +14 -16
  112. package/lib/index.js +45 -65
  113. package/lib/reducer.d.ts +9 -6
  114. package/lib/reducer.js +9 -6
  115. package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
  116. package/lib/view/auditReportView/auditReportViewState.d.ts +1 -1
  117. package/lib/view/billPayCard/billPayCardSelector.d.ts +1 -1
  118. package/lib/view/cardBalance/cardBalanceSelector.d.ts +2 -1
  119. package/lib/view/cashBalance/cashBalanceSelector.d.ts +2 -1
  120. package/lib/view/cashInCashOut/cashInCashOutSelector.d.ts +1 -1
  121. package/lib/view/cashPosition/cashPositionSelector.d.ts +1 -1
  122. package/lib/view/companyView/types/cockpitTypes.d.ts +5 -6
  123. package/lib/view/dashboard/dashboardReducer.d.ts +2 -2
  124. package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +9 -4
  125. package/lib/view/expenseAutomationView/helpers/transactionCategorizationLocalDataHelper.d.ts +1 -1
  126. package/lib/view/expenseAutomationView/payload/reconciliationPayload.d.ts +0 -33
  127. package/lib/view/expenseAutomationView/reducers/jeSchedulesViewReducer.js +1 -5
  128. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.d.ts +4 -18
  129. package/lib/view/expenseAutomationView/reducers/reconciliationViewReducer.js +4 -164
  130. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.d.ts +2 -6
  131. package/lib/view/expenseAutomationView/selectorTypes/reconciliationViewSelectorTypes.js +2 -2
  132. package/lib/view/expenseAutomationView/selectors/reconciliationViewSelector.js +0 -112
  133. package/lib/view/expenseAutomationView/selectors/transactionCategorizationSelector.js +5 -9
  134. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +0 -3
  135. package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +1 -8
  136. package/lib/view/expenseAutomationView/types/missingReceiptsViewState.d.ts +1 -1
  137. package/lib/view/expenseAutomationView/types/reconciliationViewState.d.ts +0 -13
  138. package/lib/view/financeStatement/financeStatementReducer.d.ts +1 -1
  139. package/lib/view/financeStatement/financeStatementSelector.d.ts +2 -0
  140. package/lib/view/financeStatement/financeStatementSelector.js +12 -1
  141. package/lib/view/globalMerchantView/globalMerchantViewReducer.d.ts +2 -2
  142. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +1 -1
  143. package/lib/view/profitAndLossClassesView/profitAndLossClassesByClassHorizontalSelector.js +2 -4
  144. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.d.ts +8 -0
  145. package/lib/view/profitAndLossProjectView/profitAndLossForTimeframeProjectViewEpic.js +49 -0
  146. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.d.ts +6 -0
  147. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewEpic.js +34 -0
  148. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.d.ts +33 -0
  149. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewPayload.js +2 -0
  150. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.d.ts +33 -0
  151. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewReducer.js +117 -0
  152. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.d.ts +9 -0
  153. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelector.js +70 -0
  154. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.d.ts +18 -0
  155. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewSelectorTypes.js +2 -0
  156. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.d.ts +22 -0
  157. package/lib/view/profitAndLossProjectView/profitAndLossProjectViewState.js +2 -0
  158. package/lib/view/reimbursementCard/reimbursementCardSelector.d.ts +1 -1
  159. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.d.ts +2 -1
  160. package/lib/view/reportsResync/reportsClassViewRefetchingEpic.js +4 -0
  161. package/lib/view/reportsResync/reportsResyncReducer.d.ts +2 -2
  162. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +1 -1
  163. package/lib/view/spendManagement/billPay/billList/billListReducer.d.ts +1 -1
  164. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +1 -1
  165. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +1 -1
  166. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailReducer.d.ts +4 -4
  167. package/lib/view/spendManagement/reimbursement/remiListView/remiListReducer.d.ts +1 -1
  168. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +3 -3
  169. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +1 -1
  170. package/lib/view/tasksCard/tasksCardSelector.d.ts +1 -1
  171. package/lib/view/topEx/topExSelector.d.ts +1 -1
  172. package/package.json +1 -1
  173. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.d.ts +0 -44
  174. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +0 -55
  175. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.d.ts +0 -10
  176. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +0 -51
  177. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.d.ts +0 -48
  178. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +0 -66
  179. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.d.ts +0 -52
  180. package/lib/entity/aiAccountantCustomer/aiAccountantCustomerState.js +0 -37
  181. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerPayload.js +0 -49
  182. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerReducer.js +0 -47
  183. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerSelector.js +0 -62
  184. package/lib/esm/entity/aiAccountantCustomer/aiAccountantCustomerState.js +0 -31
  185. package/lib/esm/view/aiAccountantView/aiAccountantViewPayload.js +0 -2
  186. package/lib/esm/view/aiAccountantView/aiAccountantViewReducer.js +0 -149
  187. package/lib/esm/view/aiAccountantView/aiAccountantViewSelector.js +0 -72
  188. package/lib/esm/view/aiAccountantView/aiAccountantViewState.js +0 -11
  189. package/lib/esm/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +0 -46
  190. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +0 -27
  191. package/lib/esm/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +0 -47
  192. package/lib/esm/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +0 -52
  193. package/lib/esm/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +0 -44
  194. package/lib/esm/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +0 -44
  195. package/lib/view/aiAccountantView/aiAccountantViewPayload.d.ts +0 -31
  196. package/lib/view/aiAccountantView/aiAccountantViewPayload.js +0 -8
  197. package/lib/view/aiAccountantView/aiAccountantViewReducer.d.ts +0 -29
  198. package/lib/view/aiAccountantView/aiAccountantViewReducer.js +0 -153
  199. package/lib/view/aiAccountantView/aiAccountantViewSelector.d.ts +0 -14
  200. package/lib/view/aiAccountantView/aiAccountantViewSelector.js +0 -78
  201. package/lib/view/aiAccountantView/aiAccountantViewState.d.ts +0 -27
  202. package/lib/view/aiAccountantView/aiAccountantViewState.js +0 -13
  203. package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.d.ts +0 -33
  204. package/lib/view/aiAccountantView/epics/cancelAiAccountantOnboardingEpic.js +0 -50
  205. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.d.ts +0 -23
  206. package/lib/view/aiAccountantView/epics/fetchAiAccountantCustomersEpic.js +0 -31
  207. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.d.ts +0 -33
  208. package/lib/view/aiAccountantView/epics/fetchAiAccountantJobsEpic.js +0 -51
  209. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.d.ts +0 -28
  210. package/lib/view/aiAccountantView/epics/triggerAiAccountantJobEpic.js +0 -56
  211. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.d.ts +0 -8
  212. package/lib/view/expenseAutomationView/epics/accountRecon/excludeAccountFromReconciliationEpic.js +0 -48
  213. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.d.ts +0 -9
  214. package/lib/view/expenseAutomationView/epics/accountRecon/includeAccountInReconciliationEpic.js +0 -48
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mapProjectMetadataPayloadToProject = void 0;
4
+ const zeniDayJS_1 = require("../../zeniDayJS");
5
+ const mapProjectMetadataPayloadToProject = (payload) => ({
6
+ projectId: payload.zeni_project_id,
7
+ projectName: payload.project_name,
8
+ ...(payload.status != null ? { status: payload.status } : {}),
9
+ ...(payload.start_date != null ? { startDate: (0, zeniDayJS_1.date)(payload.start_date) } : {}),
10
+ ...(payload.parent_customer_payment_provider_id != null
11
+ ? {
12
+ parentCustomerPaymentProviderId: payload.parent_customer_payment_provider_id,
13
+ }
14
+ : {}),
15
+ ...(payload.payment_provider_project_customer_id != null
16
+ ? {
17
+ paymentProviderProjectCustomerId: payload.payment_provider_project_customer_id,
18
+ }
19
+ : {}),
20
+ ...(payload.payment_provider_project_id != null
21
+ ? { paymentProviderProjectId: payload.payment_provider_project_id }
22
+ : {}),
23
+ ...(payload.zeni_parent_customer_id != null
24
+ ? { zeniParentCustomerId: payload.zeni_parent_customer_id }
25
+ : {}),
26
+ ...(payload.zeni_project_customer_id != null
27
+ ? { zeniProjectCustomerId: payload.zeni_project_customer_id }
28
+ : {}),
29
+ });
30
+ exports.mapProjectMetadataPayloadToProject = mapProjectMetadataPayloadToProject;
@@ -0,0 +1,10 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { ProjectMetadataPayload } from './projectPayload';
3
+ import { Project } from './projectState';
4
+ export interface ProjectState {
5
+ projects: Record<ID, Project>;
6
+ }
7
+ export declare const initialState: ProjectState;
8
+ export declare const updateProjects: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: ProjectMetadataPayload[]], ProjectMetadataPayload[], "project/updateProjects", never, never>, clearAllProjects: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"project/clearAllProjects">;
9
+ declare const _default: import("redux").Reducer<ProjectState>;
10
+ export default _default;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllProjects = exports.updateProjects = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const projectPayload_1 = require("./projectPayload");
7
+ exports.initialState = {
8
+ projects: {},
9
+ };
10
+ const projectSlice = (0, toolkit_1.createSlice)({
11
+ name: 'project',
12
+ initialState: exports.initialState,
13
+ reducers: {
14
+ updateProjects: {
15
+ reducer(draft, action) {
16
+ action.payload.forEach((projectPayload) => {
17
+ const project = (0, projectPayload_1.mapProjectMetadataPayloadToProject)(projectPayload);
18
+ draft.projects[project.projectId] = project;
19
+ });
20
+ },
21
+ prepare(payload) {
22
+ return { payload };
23
+ },
24
+ },
25
+ clearAllProjects(draft) {
26
+ Object.assign(draft, exports.initialState);
27
+ },
28
+ },
29
+ });
30
+ _a = projectSlice.actions, exports.updateProjects = _a.updateProjects, exports.clearAllProjects = _a.clearAllProjects;
31
+ exports.default = projectSlice.reducer;
@@ -0,0 +1,5 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { ProjectState } from './projectReducer';
3
+ import { Project } from './projectState';
4
+ export declare function getProjectById(projectState: ProjectState, projectId: ID): Project | undefined;
5
+ export declare function getProjectsByIds(projectState: ProjectState, projectIds: ID[]): Project[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProjectById = getProjectById;
4
+ exports.getProjectsByIds = getProjectsByIds;
5
+ function getProjectById(projectState, projectId) {
6
+ return projectState.projects[projectId];
7
+ }
8
+ function getProjectsByIds(projectState, projectIds) {
9
+ return projectIds
10
+ .map((projectId) => getProjectById(projectState, projectId))
11
+ .filter((project) => project != null);
12
+ }
@@ -0,0 +1,13 @@
1
+ import { ID } from '../../commonStateTypes/common';
2
+ import { ZeniDate } from '../../zeniDayJS';
3
+ export interface Project {
4
+ projectId: ID;
5
+ projectName: string;
6
+ parentCustomerPaymentProviderId?: ID;
7
+ paymentProviderProjectCustomerId?: ID;
8
+ paymentProviderProjectId?: ID;
9
+ startDate?: ZeniDate;
10
+ status?: string;
11
+ zeniParentCustomerId?: ID;
12
+ zeniProjectCustomerId?: ID;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,5 +10,5 @@ export interface SectionAccountsView {
10
10
  sectionId: ID;
11
11
  balancesByPeriod?: COABalanceGroupedByPeriod;
12
12
  }
13
- export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-excluded_account_reconciliation` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-other_connection+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}` | `${string}-excluded_account_reconciliation+${string}`;
13
+ export declare function getSectionAccountViewKey(sectionId: ID, reportId: ReportIDPlusForecastID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-profit_and_loss_by_projects` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-cash_balance+${string}` | `${string}-card_balance+${string}` | `${string}-expense_automation_card+${string}` | `${string}-operating_expenses+${string}` | `${string}-operating_expenses_by_classes+${string}` | `${string}-revenue+${string}` | `${string}-revenue_by_classes+${string}` | `${string}-net_burn_or_income+${string}` | `${string}-net_burn_or_income_story_card+${string}` | `${string}-net_burn_or_income_by_classes+${string}` | `${string}-cash_position+${string}` | `${string}-top_expenses+${string}` | `${string}-profit_and_loss+${string}` | `${string}-profit_and_loss_by_classes+${string}` | `${string}-profit_and_loss_by_projects+${string}` | `${string}-balance_sheet+${string}` | `${string}-cash_flow+${string}` | `${string}-dashboard+${string}` | `${string}-finance_statement+${string}` | `${string}-transaction_list_of_account+${string}` | `${string}-transaction_list_missing_receipt+${string}` | `${string}-transaction_list_of_account_by_class+${string}` | `${string}-transaction_detail+${string}` | `${string}-cash_in_cash_out+${string}` | `${string}-insights_dashboard+${string}` | `${string}-company_details+${string}` | `${string}-class_list+${string}` | `${string}-account_list+${string}` | `${string}-account_list_by_type+${string}` | `${string}-vendor+${string}` | `${string}-task_card+${string}` | `${string}-bill_pay+${string}` | `${string}-reimbursement+${string}` | `${string}-bill_pay_card+${string}` | `${string}-reimbursement_card+${string}` | `${string}-bill_pay_promo_card+${string}` | `${string}-zeni_accounts+${string}` | `${string}-zeni_accounts_promo_card+${string}` | `${string}-zeni_treasury+${string}` | `${string}-charge_cards+${string}` | `${string}-other_connection+${string}` | `${string}-reimbursement_promo_card+${string}` | `${string}-onboarding+${string}` | `${string}-operating_expenses_by_vendor+${string}` | `${string}-operating_expenses_by_vendor_summary+${string}` | `${string}-vendors_tab+${string}` | `${string}-accounts_payable_aging+${string}` | `${string}-accounts_receivable_aging+${string}` | `${string}-vendor_global_review+${string}` | `${string}-prepaid_expenses+${string}` | `${string}-fixed_assets+${string}` | `${string}-notification+${string}` | `${string}-rewards_card+${string}` | `${string}-billing+${string}` | `${string}-flux_analysis_operating_expense+${string}` | `${string}-account_reconciliation+${string}` | `${string}-zeni_credit_promo_card+${string}` | `${string}-treasury_promo_card+${string}`;
14
14
  export type SectionAccountKey = ReturnType<typeof getSectionAccountViewKey>;
@@ -8,5 +8,5 @@ export interface SectionClassesView {
8
8
  sectionId: ID;
9
9
  balancesByPeriod?: COABalanceGroupedByPeriod;
10
10
  }
11
- export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card` | `${string}-excluded_account_reconciliation`;
11
+ export declare function getSectionClassesViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-profit_and_loss_by_projects` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card`;
12
12
  export type SectionClassesKey = ReturnType<typeof getSectionClassesViewKey>;
@@ -4,9 +4,9 @@ import { AccountMetadataPayload } from '../account/accountPayload';
4
4
  import { ClassMetadataPayload } from '../class/classPayload';
5
5
  import { SectionClassesViewStateV2 } from './sectionClassesViewState';
6
6
  export declare const initialState: SectionClassesViewStateV2;
7
- export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "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", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ export declare const updateSectionClassesView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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_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", sectionPayload: SectionByClassCOABalanceGroupedPayloadV2, classesMetadataPayload: ClassMetadataPayload[], accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
8
8
  timeframe: "month" | "year" | "quarter";
9
- 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" | "balance_sheet" | "cash_flow" | "dashboard" | "finance_statement" | "transaction_list_of_account" | "transaction_list_missing_receipt" | "transaction_list_of_account_by_class" | "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";
9
+ 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_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";
10
10
  sectionId: string;
11
11
  sectionPayload: SectionByClassCOABalanceGroupedPayloadV2;
12
12
  classesMetadataPayload: ClassMetadataPayload[];
@@ -0,0 +1,10 @@
1
+ import { COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
+ export interface SectionProjectView {
5
+ key: SectionProjectKey;
6
+ sectionId: ID;
7
+ balancesByPeriod?: COABalanceGroupedByPeriod;
8
+ }
9
+ export declare function getSectionProjectViewKey(sectionId: ID, reportId: ReportID): `${string}-cash_balance` | `${string}-card_balance` | `${string}-expense_automation_card` | `${string}-operating_expenses` | `${string}-operating_expenses_by_classes` | `${string}-revenue` | `${string}-revenue_by_classes` | `${string}-net_burn_or_income` | `${string}-net_burn_or_income_story_card` | `${string}-net_burn_or_income_by_classes` | `${string}-cash_position` | `${string}-top_expenses` | `${string}-profit_and_loss` | `${string}-profit_and_loss_by_classes` | `${string}-profit_and_loss_by_projects` | `${string}-balance_sheet` | `${string}-cash_flow` | `${string}-dashboard` | `${string}-finance_statement` | `${string}-transaction_list_of_account` | `${string}-transaction_list_missing_receipt` | `${string}-transaction_list_of_account_by_class` | `${string}-transaction_detail` | `${string}-cash_in_cash_out` | `${string}-insights_dashboard` | `${string}-company_details` | `${string}-class_list` | `${string}-account_list` | `${string}-account_list_by_type` | `${string}-vendor` | `${string}-task_card` | `${string}-bill_pay` | `${string}-reimbursement` | `${string}-bill_pay_card` | `${string}-reimbursement_card` | `${string}-bill_pay_promo_card` | `${string}-zeni_accounts` | `${string}-zeni_accounts_promo_card` | `${string}-zeni_treasury` | `${string}-charge_cards` | `${string}-other_connection` | `${string}-reimbursement_promo_card` | `${string}-onboarding` | `${string}-operating_expenses_by_vendor` | `${string}-operating_expenses_by_vendor_summary` | `${string}-vendors_tab` | `${string}-accounts_payable_aging` | `${string}-accounts_receivable_aging` | `${string}-vendor_global_review` | `${string}-prepaid_expenses` | `${string}-fixed_assets` | `${string}-notification` | `${string}-rewards_card` | `${string}-billing` | `${string}-flux_analysis_operating_expense` | `${string}-account_reconciliation` | `${string}-zeni_credit_promo_card` | `${string}-treasury_promo_card`;
10
+ export type SectionProjectKey = ReturnType<typeof getSectionProjectViewKey>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSectionProjectViewKey = getSectionProjectViewKey;
4
+ function getSectionProjectViewKey(sectionId, reportId) {
5
+ return `${sectionId}-${reportId}`;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { ActionsObservable } from 'redux-observable';
2
+ import { Observable } from 'rxjs';
3
+ import { updateMultipleSubAccountsWithBalances } from '../account/accountReducer';
4
+ import { updateSectionProjectView } from './sectionProjectViewReducer';
5
+ export type ActionType = ReturnType<typeof updateSectionProjectView> | ReturnType<typeof updateMultipleSubAccountsWithBalances>;
6
+ export declare const updateSectionProjectViewEpic: (actions$: ActionsObservable<ActionType>) => Observable<ActionType>;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateSectionProjectViewEpic = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const operators_1 = require("rxjs/operators");
6
+ const getNestedAccountIDHierarchyForReport_1 = require("../../commonStateTypes/accountView/getNestedAccountIDHierarchyForReport");
7
+ const accountReducer_1 = require("../account/accountReducer");
8
+ const sectionProjectViewReducer_1 = require("./sectionProjectViewReducer");
9
+ const updateSectionProjectViewEpic = (actions$) => actions$.pipe((0, operators_1.filter)(sectionProjectViewReducer_1.updateSectionProjectView.match), (0, operators_1.mergeMap)((action) => {
10
+ const actions = [];
11
+ const sectionPayload = action.payload.sectionPayload;
12
+ const sectionId = action.payload.sectionId;
13
+ const timeframe = action.payload.timeframe;
14
+ const reportId = action.payload.reportId;
15
+ const currencyPayload = action.payload.currencyPayload;
16
+ const accountsMetadataPayload = action.payload.accountsMetadataPayload;
17
+ const accountMetadataRecordsByID = (0, getNestedAccountIDHierarchyForReport_1.getAllAccountMetadataRecordsByID)(accountsMetadataPayload);
18
+ const accountMetadataWithBalancesPayloads = [];
19
+ if (sectionPayload.projects != null) {
20
+ Object.keys(sectionPayload.projects).forEach((projectId) => {
21
+ const projectAccounts = sectionPayload.projects[projectId].accounts;
22
+ const projectsViewParentID = {
23
+ projectId,
24
+ sectionId,
25
+ };
26
+ getSubAccountsMetadataForProjectAccountList(projectAccounts, accountMetadataRecordsByID, sectionId, projectsViewParentID, accountMetadataWithBalancesPayloads);
27
+ });
28
+ }
29
+ if (accountMetadataWithBalancesPayloads.length > 0) {
30
+ actions.push((0, accountReducer_1.updateMultipleSubAccountsWithBalances)(accountMetadataWithBalancesPayloads, currencyPayload, reportId, timeframe));
31
+ }
32
+ return (0, rxjs_1.from)(actions);
33
+ }));
34
+ exports.updateSectionProjectViewEpic = updateSectionProjectViewEpic;
35
+ const getSubAccountsMetadataForProjectAccountList = (accountListWithBalances, accountMetadataRecordsByID, sectionId, projectsViewParentID, result) => {
36
+ if (accountListWithBalances != null) {
37
+ Object.keys(accountListWithBalances).forEach((eachAccountId) => {
38
+ const accountMetadataRecord = accountMetadataRecordsByID[eachAccountId];
39
+ if (accountMetadataRecord != null) {
40
+ const accountId = accountMetadataRecord.nestedAccountId;
41
+ result.push({
42
+ accountsViewParentID: {
43
+ parentAccountId: (0, getNestedAccountIDHierarchyForReport_1.getParentAccountId)(accountId),
44
+ sectionId,
45
+ },
46
+ accountMetadataPayload: accountMetadataRecord.accountMetadataPayload,
47
+ accountBalancesPayload: accountListWithBalances[eachAccountId],
48
+ projectsViewParentID,
49
+ });
50
+ }
51
+ else {
52
+ console.warn(`Account ${eachAccountId} in Section ${sectionId} Project ${projectsViewParentID.projectId} is missing metadata.`);
53
+ }
54
+ });
55
+ }
56
+ };
@@ -0,0 +1,9 @@
1
+ import { COABalanceGroupedByPeriodPayloadV2 } from '../../commonPayloadTypes/v2/coaBalancePayload';
2
+ import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
3
+ import { ID } from '../../commonStateTypes/common';
4
+ import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
5
+ import { SectionProjectView } from './sectionProjectView';
6
+ export declare const mapSectionByProjectCOABalanceGroupedPayloadToSection: (timeframe: "month" | "quarter" | "year", sectionPayload: COABalanceGroupedByPeriodPayloadV2, currencyPayload: CurrencyPayload, id: {
7
+ reportId: ReportID;
8
+ sectionId: ID;
9
+ }) => SectionProjectView;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mapSectionByProjectCOABalanceGroupedPayloadToSection = void 0;
4
+ const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
5
+ const sectionProjectView_1 = require("./sectionProjectView");
6
+ const mapSectionByProjectCOABalanceGroupedPayloadToSection = (timeframe, sectionPayload, currencyPayload, id) => {
7
+ return {
8
+ key: (0, sectionProjectView_1.getSectionProjectViewKey)(id.sectionId, id.reportId),
9
+ sectionId: id.sectionId,
10
+ balancesByPeriod: (0, coaBalancePayload_1.mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod)(sectionPayload, currencyPayload, timeframe),
11
+ };
12
+ };
13
+ exports.mapSectionByProjectCOABalanceGroupedPayloadToSection = mapSectionByProjectCOABalanceGroupedPayloadToSection;
@@ -0,0 +1,15 @@
1
+ import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
2
+ import { AccountMetadataPayload } from '../account/accountPayload';
3
+ import { SectionByProjectCOABalanceGroupedPayloadV2 } from '../../view/profitAndLossProjectView/profitAndLossProjectViewPayload';
4
+ import { SectionProjectViewState } from './sectionProjectViewState';
5
+ export declare const initialState: SectionProjectViewState;
6
+ export declare const updateSectionProjectView: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[timeframe: "month" | "year" | "quarter", sectionId: string, 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_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", sectionPayload: SectionByProjectCOABalanceGroupedPayloadV2, accountsMetadataPayload: AccountMetadataPayload[], currencyPayload: CurrencyPayload], {
7
+ timeframe: "month" | "year" | "quarter";
8
+ 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_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";
9
+ sectionId: string;
10
+ sectionPayload: SectionByProjectCOABalanceGroupedPayloadV2;
11
+ accountsMetadataPayload: AccountMetadataPayload[];
12
+ currencyPayload: CurrencyPayload;
13
+ }, "sectionProjectView/updateSectionProjectView", never, never>, clearAllSectionsProjectView: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"sectionProjectView/clearAllSectionsProjectView">;
14
+ declare const _default: import("redux").Reducer<SectionProjectViewState>;
15
+ export default _default;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var _a;
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.clearAllSectionsProjectView = exports.updateSectionProjectView = exports.initialState = void 0;
5
+ const toolkit_1 = require("@reduxjs/toolkit");
6
+ const coaBalancePayload_1 = require("../../commonPayloadTypes/v2/coaBalancePayload");
7
+ const sectionProjectView_1 = require("./sectionProjectView");
8
+ const sectionProjectViewHelper_1 = require("./sectionProjectViewHelper");
9
+ exports.initialState = {
10
+ sectionsByKey: {},
11
+ };
12
+ const sectionProjectView = (0, toolkit_1.createSlice)({
13
+ name: 'sectionProjectView',
14
+ initialState: exports.initialState,
15
+ reducers: {
16
+ updateSectionProjectView: {
17
+ prepare(timeframe, sectionId, reportId, sectionPayload, accountsMetadataPayload, currencyPayload) {
18
+ return {
19
+ payload: {
20
+ timeframe,
21
+ reportId,
22
+ sectionId,
23
+ sectionPayload,
24
+ accountsMetadataPayload,
25
+ currencyPayload,
26
+ },
27
+ };
28
+ },
29
+ reducer(draft, action) {
30
+ updateSection(draft, action.payload.timeframe, action.payload.sectionPayload, action.payload.sectionId, action.payload.reportId, action.payload.currencyPayload);
31
+ },
32
+ },
33
+ clearAllSectionsProjectView(draft) {
34
+ Object.assign(draft, exports.initialState);
35
+ },
36
+ },
37
+ });
38
+ _a = sectionProjectView.actions, exports.updateSectionProjectView = _a.updateSectionProjectView, exports.clearAllSectionsProjectView = _a.clearAllSectionsProjectView;
39
+ exports.default = sectionProjectView.reducer;
40
+ const updateSection = (draft, timeframe, sectionPayload, sectionId, reportId, currencyPayload) => {
41
+ const sectionKey = (0, sectionProjectView_1.getSectionProjectViewKey)(sectionId, reportId);
42
+ const section = draft.sectionsByKey[sectionKey];
43
+ if (section != null) {
44
+ draft.sectionsByKey[sectionKey].balancesByPeriod = Object.assign({}, draft.sectionsByKey[sectionKey].balancesByPeriod, (0, coaBalancePayload_1.mapCOABalanceGroupedByPeriodPayloadV2ToCOABalanceGroupedByPeriod)(sectionPayload, currencyPayload, timeframe));
45
+ }
46
+ else {
47
+ draft.sectionsByKey[sectionKey] =
48
+ (0, sectionProjectViewHelper_1.mapSectionByProjectCOABalanceGroupedPayloadToSection)(timeframe, sectionPayload, currencyPayload, { sectionId, reportId });
49
+ }
50
+ };
@@ -0,0 +1,11 @@
1
+ import { COABalancesFilterProjectView } from '../../commonStateTypes/coaBalance/coaBalancesFilterProjectView';
2
+ import { ID } from '../../commonStateTypes/common';
3
+ import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
4
+ import { AccountState } from '../account/accountState';
5
+ import { ProjectState } from '../project/projectReducer';
6
+ import { SectionProjectViewReport } from './sectionProjectViewSelectorTypes';
7
+ import { SectionProjectViewState } from './sectionProjectViewState';
8
+ export declare const getSectionProjectViewReport: (accountState: AccountState, projectState: ProjectState, sectionState: SectionProjectViewState, projectIds: ID[], id: {
9
+ reportId: ReportID;
10
+ sectionId: ID;
11
+ }, filter: COABalancesFilterProjectView) => SectionProjectViewReport;
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.getSectionProjectViewReport = void 0;
7
+ const get_1 = __importDefault(require("lodash/get"));
8
+ const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
9
+ const getSumOfBalancesGroupedByPeriod_1 = require("../../commonStateTypes/coaBalance/classBalances/getSumOfBalancesGroupedByPeriod");
10
+ const accountPayload_1 = require("../account/accountPayload");
11
+ const accountState_1 = require("../account/accountState");
12
+ const subAccountSelector_1 = require("../account/subAccountSelector");
13
+ const projectSelector_1 = require("../project/projectSelector");
14
+ const getNestedAccountIDHierarchyForSection_1 = require("../sectionAccountsView/getNestedAccountIDHierarchyForSection");
15
+ const sectionProjectView_1 = require("./sectionProjectView");
16
+ const getSectionProjectViewReport = (accountState, projectState, sectionState, projectIds, id, filter) => {
17
+ const sectionKey = (0, sectionProjectView_1.getSectionProjectViewKey)(id.sectionId, id.reportId);
18
+ const sectionView = (0, get_1.default)(sectionState.sectionsByKey, sectionKey, undefined);
19
+ const projectIdsToShow = projectIds.filter((projectId) => !filter.projectsToFilterOut.includes(projectId));
20
+ const projectReports = [];
21
+ const sectionBalancesTotalByPeriodArray = [];
22
+ const accountsByProject = getAccountsByProject(accountState, id.sectionId, id.reportId);
23
+ projectIdsToShow.forEach((projectId) => {
24
+ const project = (0, projectSelector_1.getProjectById)(projectState, projectId);
25
+ if (project == null) {
26
+ return;
27
+ }
28
+ const projectAccountIds = accountsByProject[projectId] ?? [];
29
+ const accountsMetadata = projectAccountIds
30
+ .map((accountId) => {
31
+ const key = (0, accountState_1.getAccountKey)(id.reportId, accountId, undefined, undefined, { projectId, sectionId: id.sectionId });
32
+ const account = accountState.accountsByKey[key];
33
+ if (account == null) {
34
+ return undefined;
35
+ }
36
+ return (0, accountPayload_1.mapAccountMetadataPayloadToAccountMetadata)({
37
+ account_id: account.accountId,
38
+ account_name: account.accountName,
39
+ account_description: account.accountDescription,
40
+ labels: account.labels,
41
+ is_sub_account: account.accountsViewParentId != null,
42
+ parent_account_id: account.accountsViewParentId?.parentAccountId?.[0] ?? null,
43
+ });
44
+ })
45
+ .filter((metadata) => metadata != null);
46
+ const nestedAccountHierarchy = (0, getNestedAccountIDHierarchyForSection_1.getNestedAccountIDHierarchyForAccounts)(projectAccountIds, accountsMetadata);
47
+ const nestedAccountReports = [];
48
+ nestedAccountHierarchy.forEach((accountIdHierarchy) => {
49
+ const report = (0, subAccountSelector_1.getNestedAccountReportForAccount)(accountState, {
50
+ accountIdHierarchy,
51
+ reportId: id.reportId,
52
+ projectsViewParentId: {
53
+ projectId,
54
+ sectionId: id.sectionId,
55
+ },
56
+ }, filter, nestedAccountHierarchy.length > 1);
57
+ if (report != null) {
58
+ nestedAccountReports.push(report);
59
+ }
60
+ });
61
+ const accountBalancesByPeriod = projectAccountIds
62
+ .map((accountId) => {
63
+ const key = (0, accountState_1.getAccountKey)(id.reportId, accountId, undefined, undefined, { projectId, sectionId: id.sectionId });
64
+ const account = accountState.accountsByKey[key];
65
+ return account?.balancesByPeriod;
66
+ })
67
+ .filter((balancesByPeriod) => balancesByPeriod != null);
68
+ const projectBalancesTotalByPeriod = (0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)(accountBalancesByPeriod) ?? {};
69
+ const projectReport = {
70
+ projectId,
71
+ projectName: project.projectName,
72
+ accounts: nestedAccountReports,
73
+ ...(0, coaBalance_1.getCOABalances)(projectBalancesTotalByPeriod, filter),
74
+ projectBalancesTotalByPeriod,
75
+ };
76
+ projectReports.push(projectReport);
77
+ sectionBalancesTotalByPeriodArray.push(projectBalancesTotalByPeriod);
78
+ });
79
+ const sectionBalancesTotalByPeriod = sectionView?.balancesByPeriod != null
80
+ ? sectionView.balancesByPeriod
81
+ : ((0, getSumOfBalancesGroupedByPeriod_1.getSumOfBalancesByGroupedByPeriod)(sectionBalancesTotalByPeriodArray) ?? {});
82
+ return {
83
+ projects: projectReports,
84
+ ...(0, coaBalance_1.getCOABalances)(sectionBalancesTotalByPeriod, filter),
85
+ sectionBalancesTotalByPeriod,
86
+ };
87
+ };
88
+ exports.getSectionProjectViewReport = getSectionProjectViewReport;
89
+ const getAccountsByProject = (accountState, sectionId, reportId) => {
90
+ const result = {};
91
+ Object.values(accountState.accountsByKey).forEach((account) => {
92
+ if (account.projectsViewParentId != null &&
93
+ account.projectsViewParentId.sectionId === sectionId &&
94
+ account.key.endsWith(reportId)) {
95
+ const projectId = account.projectsViewParentId.projectId;
96
+ if (result[projectId] == null) {
97
+ result[projectId] = [];
98
+ }
99
+ result[projectId].push(account.accountId);
100
+ }
101
+ });
102
+ return result;
103
+ };
@@ -0,0 +1,16 @@
1
+ import { COABalanceGroupedByPeriod } from '../../commonStateTypes/coaBalance/coaBalance';
2
+ import { COABalancesSlice } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
3
+ import { ID } from '../../commonStateTypes/common';
4
+ import { NestedAccountReport } from '../account/subAccountSelector';
5
+ export interface ProjectReportV2 {
6
+ accounts: NestedAccountReport[];
7
+ projectId: ID;
8
+ projectName: string;
9
+ }
10
+ export interface ProjectReportWithBalances extends ProjectReportV2, COABalancesSlice {
11
+ projectBalancesTotalByPeriod: COABalanceGroupedByPeriod;
12
+ }
13
+ export interface SectionProjectViewReport extends COABalancesSlice {
14
+ projects: ProjectReportWithBalances[];
15
+ sectionBalancesTotalByPeriod: COABalanceGroupedByPeriod;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { SectionProjectKey, SectionProjectView } from './sectionProjectView';
2
+ export interface SectionProjectViewState {
3
+ sectionsByKey: Record<SectionProjectKey, SectionProjectView>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
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_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_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" | "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" | "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" | "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" | "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";
2
2
  export type SnackbarMessageSections = ReturnType<typeof toSnackbarMessageSection>;
3
- export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "failed" | "success";
3
+ export declare const toSnackbarMessageSectionTexts: (v: string) => "notification" | "success" | "failed";
4
4
  export type SnackbarMessageSectionTexts = ReturnType<typeof toSnackbarMessageSectionTexts>;
5
5
  export type SnackbarMessageType = 'info' | 'warning' | 'error' | 'none' | 'success' | 'notification';