@zeniai/client-epic-state 4.11.97 → 4.11.99

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 (433) hide show
  1. package/lib/commonPayloadTypes/balanceChangePayload.d.ts +3 -3
  2. package/lib/commonPayloadTypes/balanceChangePayload.js +2 -3
  3. package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.d.ts +2 -3
  4. package/lib/commonPayloadTypes/classesView/reportByClassPayloadV2.js +1 -1
  5. package/lib/commonPayloadTypes/coaBalancePayload.d.ts +3 -9
  6. package/lib/commonPayloadTypes/coaBalancePayload.js +1 -29
  7. package/lib/commonPayloadTypes/subAccountView/reportBySubAccountPayload.d.ts +3 -2
  8. package/lib/commonPayloadTypes/v2/coaBalancePayload.d.ts +2 -1
  9. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.d.ts +0 -8
  10. package/lib/commonPayloadTypes/v2/getSumOfBalancesGroupedByPeriod.js +0 -83
  11. package/lib/commonStateTypes/accountView/nestedAccountID.d.ts +9 -8
  12. package/lib/commonStateTypes/accountView/nestedAccountID.js +4 -10
  13. package/lib/commonStateTypes/classesView/nestedClassID.d.ts +6 -8
  14. package/lib/commonStateTypes/classesView/nestedClassID.js +1 -10
  15. package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts +0 -1
  16. package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.js +1 -27
  17. package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.d.ts +0 -2
  18. package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.js +1 -2
  19. package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +6 -8
  20. package/lib/commonStateTypes/customerView/nestedCustomerID.js +0 -7
  21. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -3
  22. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -5
  23. package/lib/commonStateTypes/reduceFetchState.d.ts +0 -18
  24. package/lib/commonStateTypes/reduceFetchState.js +7 -10
  25. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +0 -2
  26. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +0 -12
  27. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -2
  28. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -10
  29. package/lib/commonStateTypes/selectorTypes/sortOrderTypes.d.ts +2 -2
  30. package/lib/commonStateTypes/selectorTypes/sortOrderTypes.js +2 -4
  31. package/lib/commonStateTypes/timePeriod.d.ts +2 -3
  32. package/lib/commonStateTypes/timePeriod.js +1 -6
  33. package/lib/commonStateTypes/v2/viewAndReport.d.ts +0 -5
  34. package/lib/commonStateTypes/v2/viewAndReport.js +3 -0
  35. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +2 -2
  36. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +3 -4
  37. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
  38. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
  39. package/lib/commonStateTypes/workingDayHelper.d.ts +0 -1
  40. package/lib/commonStateTypes/workingDayHelper.js +6 -6
  41. package/lib/entity/account/accountPayload.d.ts +1 -6
  42. package/lib/entity/account/accountPayload.js +3 -19
  43. package/lib/entity/account/accountReducer.d.ts +1 -3
  44. package/lib/entity/account/accountReducer.js +2 -3
  45. package/lib/entity/account/accountState.d.ts +2 -1
  46. package/lib/entity/account/accountState.js +1 -2
  47. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +0 -6
  48. package/lib/entity/account/pickAndMergeForecastAccountReport.js +1 -2
  49. package/lib/entity/accountGroup/accountGroupSelector.d.ts +2 -1
  50. package/lib/entity/accountGroup/accountGroupSelector.js +2 -3
  51. package/lib/entity/address/addressReducer.d.ts +1 -2
  52. package/lib/entity/address/addressReducer.js +1 -2
  53. package/lib/entity/approvalRule/approvalRulePayload.d.ts +1 -3
  54. package/lib/entity/approvalRule/approvalRulePayload.js +3 -5
  55. package/lib/entity/approvalRule/approvalRuleState.d.ts +3 -7
  56. package/lib/entity/approvalRule/approvalRuleState.js +1 -13
  57. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -5
  58. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +4 -7
  59. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +9 -8
  60. package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -7
  61. package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +2 -4
  62. package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +3 -5
  63. package/lib/entity/chargeCard/chargeCard.d.ts +6 -7
  64. package/lib/entity/chargeCard/chargeCard.js +2 -7
  65. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +3 -3
  66. package/lib/entity/chargeCardTransaction/chargeCardTransaction.js +1 -3
  67. package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
  68. package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +0 -1
  69. package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +1 -2
  70. package/lib/entity/class/classPayload.d.ts +0 -4
  71. package/lib/entity/class/classPayload.js +1 -16
  72. package/lib/entity/class/classSelectorV2.d.ts +1 -8
  73. package/lib/entity/class/classSelectorV2.js +1 -2
  74. package/lib/entity/company/companyHelper.d.ts +0 -2
  75. package/lib/entity/company/companyHelper.js +2 -7
  76. package/lib/entity/company/companyPayload.d.ts +17 -24
  77. package/lib/entity/company/companyPayload.js +9 -17
  78. package/lib/entity/company/companyStateTypes.d.ts +6 -7
  79. package/lib/entity/company/companyStateTypes.js +3 -6
  80. package/lib/entity/companyHealthMetric/companyHealthMetricPayload.d.ts +5 -6
  81. package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +3 -5
  82. package/lib/entity/currency/currencySelector.d.ts +0 -3
  83. package/lib/entity/currency/currencySelector.js +1 -3
  84. package/lib/entity/customer/customerSelector.d.ts +2 -3
  85. package/lib/entity/customer/customerSelector.js +1 -8
  86. package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.d.ts +2 -4
  87. package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.js +3 -5
  88. package/lib/entity/customerSatisfaction/customerSatisfactionState.d.ts +1 -1
  89. package/lib/entity/customerSatisfaction/customerSatisfactionState.js +1 -2
  90. package/lib/entity/depositAccount/depositAccount.d.ts +3 -4
  91. package/lib/entity/depositAccount/depositAccount.js +1 -5
  92. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +2 -2
  93. package/lib/entity/depositAccountTransaction/depositAccountTransaction.js +3 -3
  94. package/lib/entity/depositAccountTransaction/depositAccountTransactionPayload.d.ts +2 -1
  95. package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +0 -1
  96. package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +1 -2
  97. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +2 -6
  98. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +3 -5
  99. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +3 -4
  100. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -6
  101. package/lib/entity/file/filePayload.d.ts +2 -1
  102. package/lib/entity/file/fileState.d.ts +7 -21
  103. package/lib/entity/file/fileState.js +15 -34
  104. package/lib/entity/genericEntity/entity.d.ts +2 -1
  105. package/lib/entity/globalMerchant/globalMerchantPayload.d.ts +1 -4
  106. package/lib/entity/globalMerchant/globalMerchantPayload.js +2 -32
  107. package/lib/entity/globalMerchant/globalMerchantState.d.ts +2 -1
  108. package/lib/entity/insights/insightReducer.d.ts +1 -2
  109. package/lib/entity/insights/insightReducer.js +2 -3
  110. package/lib/entity/insights/insightState.d.ts +2 -1
  111. package/lib/entity/insights/insightState.js +0 -2
  112. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -2
  113. package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -2
  114. package/lib/entity/notification/types/notificationSelectorTypes.d.ts +2 -1
  115. package/lib/entity/notification/types/notificationTypes.d.ts +2 -11
  116. package/lib/entity/notification/types/notificationTypes.js +15 -24
  117. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +3 -3
  118. package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -3
  119. package/lib/entity/portfolio/accountingSummary/accountingSummaryPayload.d.ts +3 -2
  120. package/lib/entity/reimbursement/reimbursementPayload.d.ts +9 -22
  121. package/lib/entity/reimbursement/reimbursementPayload.js +16 -32
  122. package/lib/entity/reimbursement/reimbursementState.d.ts +2 -1
  123. package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.d.ts +0 -1
  124. package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.js +1 -2
  125. package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.d.ts +0 -1
  126. package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.js +1 -2
  127. package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.d.ts +1 -5
  128. package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +1 -2
  129. package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.d.ts +0 -1
  130. package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.js +1 -2
  131. package/lib/entity/task/taskState.d.ts +2 -5
  132. package/lib/entity/task/taskState.js +3 -10
  133. package/lib/entity/tenant/tenantSelector.d.ts +2 -2
  134. package/lib/entity/tenant/tenantSelector.js +1 -2
  135. package/lib/entity/toastNotification/toastNotificationState.d.ts +3 -6
  136. package/lib/entity/toastNotification/toastNotificationState.js +3 -3
  137. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +11 -21
  138. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -17
  139. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -1
  140. package/lib/entity/transaction/stateTypes/paymentType.d.ts +2 -1
  141. package/lib/entity/transaction/stateTypes/paymentType.js +1 -2
  142. package/lib/entity/transaction/stateTypes/transactionType.d.ts +6 -10
  143. package/lib/entity/transaction/stateTypes/transactionType.js +1 -14
  144. package/lib/entity/user/userReducer.d.ts +1 -3
  145. package/lib/entity/user/userReducer.js +2 -3
  146. package/lib/entity/user/userState.d.ts +2 -1
  147. package/lib/entity/userRole/userRoleState.d.ts +2 -2
  148. package/lib/entity/userRole/userRoleState.js +2 -4
  149. package/lib/entity/userRole/userRoleType.d.ts +0 -6
  150. package/lib/entity/userRole/userRoleType.js +9 -27
  151. package/lib/entity/vendor/vendorPayload.d.ts +2 -1
  152. package/lib/entity/vendorExpense/vendorExpenseReducer.d.ts +1 -2
  153. package/lib/entity/vendorExpense/vendorExpenseReducer.js +7 -7
  154. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -1
  155. package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -2
  156. package/lib/entity/vendorExpense/vendorExpenseTrend.d.ts +2 -1
  157. package/lib/index.d.ts +56 -56
  158. package/lib/index.js +9 -9
  159. package/lib/responsePayload.d.ts +2 -1
  160. package/lib/view/accountList/accountListPayload.d.ts +2 -1
  161. package/lib/view/accountMappingView/accountMappingPayload.d.ts +0 -3
  162. package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +8 -7
  163. package/lib/view/addressView/addressViewPayload.d.ts +2 -1
  164. package/lib/view/apAgingView/apAgingDetail/apAgingDetailState.d.ts +2 -1
  165. package/lib/view/arAgingView/arAgingDetail/arAgingDetailState.d.ts +2 -1
  166. package/lib/view/arAgingView/arAgingReport/arAgingPayload.d.ts +1 -1
  167. package/lib/view/auditReportView/auditReportViewPayload.d.ts +2 -1
  168. package/lib/view/auditReportView/auditReportViewState.d.ts +3 -5
  169. package/lib/view/auditReportView/auditReportViewState.js +5 -6
  170. package/lib/view/autoComplete/entityAutoCompleteReducer.d.ts +1 -1
  171. package/lib/view/balanceSheet/balanceSheetPayload.d.ts +14 -17
  172. package/lib/view/balanceSheet/balanceSheetPayload.js +1 -13
  173. package/lib/view/balanceSheet/balanceSheetSelectorTypes.d.ts +19 -25
  174. package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +27 -36
  175. package/lib/view/bankAccountView/bankAccountViewPayload.d.ts +5 -4
  176. package/lib/view/billPayCard/billPayCardPayload.d.ts +3 -3
  177. package/lib/view/billPayCard/billPayCardState.d.ts +3 -2
  178. package/lib/view/billPayCard/billPayCardState.js +0 -2
  179. package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +3 -3
  180. package/lib/view/cardPayment/cardPaymentViewTypes.d.ts +2 -3
  181. package/lib/view/cardPayment/cardPaymentViewTypes.js +4 -6
  182. package/lib/view/cashFlow/cashFlowPayload.d.ts +7 -8
  183. package/lib/view/cashFlow/cashFlowPayload.js +5 -8
  184. package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +17 -23
  185. package/lib/view/cashFlow/cashFlowSelectorTypes.js +21 -28
  186. package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +3 -4
  187. package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +3 -12
  188. package/lib/view/classList/classListPayload.d.ts +2 -1
  189. package/lib/view/common/recurringViewHelper.d.ts +2 -2
  190. package/lib/view/common/recurringViewHelper.js +1 -4
  191. package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +2 -1
  192. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
  193. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -3
  194. package/lib/view/companyConfigView/companyConfigPayload.d.ts +2 -1
  195. package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +2 -1
  196. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +6 -11
  197. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -13
  198. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewPayload.d.ts +3 -2
  199. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +0 -4
  200. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +2 -3
  201. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewState.d.ts +2 -2
  202. package/lib/view/companyView/companyViewPayload.d.ts +10 -9
  203. package/lib/view/companyView/helpers/cockpitHelpers.d.ts +0 -1
  204. package/lib/view/companyView/helpers/cockpitHelpers.js +3 -3
  205. package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +0 -2
  206. package/lib/view/companyView/selector/companyManagementViewSelector.js +4 -5
  207. package/lib/view/companyView/types/cockpitTypes.d.ts +0 -7
  208. package/lib/view/companyView/types/cockpitTypes.js +11 -19
  209. package/lib/view/companyView/types/companyMetaDataViewState.d.ts +2 -1
  210. package/lib/view/companyView/types/companyPassportViewPayload.d.ts +6 -5
  211. package/lib/view/fileView/fileViewPayload.d.ts +2 -1
  212. package/lib/view/fileView/fileViewState.d.ts +2 -1
  213. package/lib/view/forecastList/forecastListPayload.d.ts +2 -1
  214. package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +0 -7
  215. package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +2 -3
  216. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.d.ts +1 -1
  217. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.d.ts +0 -1
  218. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.js +1 -3
  219. package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +1 -1
  220. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.d.ts +0 -1
  221. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.js +1 -2
  222. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.d.ts +4 -6
  223. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.js +1 -3
  224. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +3 -3
  225. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +4 -6
  226. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.d.ts +9 -11
  227. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.js +3 -4
  228. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.d.ts +0 -1
  229. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.js +1 -3
  230. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +0 -2
  231. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.js +1 -5
  232. package/lib/view/notificationView/notificationViewPayload.d.ts +3 -17
  233. package/lib/view/notificationView/notificationViewState.d.ts +3 -4
  234. package/lib/view/notificationView/notificationViewState.js +7 -9
  235. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -15
  236. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewState.d.ts +2 -1
  237. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -4
  238. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +6 -9
  239. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +0 -6
  240. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +2 -3
  241. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +0 -8
  242. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -2
  243. package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -2
  244. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -6
  245. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -4
  246. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -2
  247. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +5 -7
  248. package/lib/view/opEx/opExSelector.d.ts +0 -13
  249. package/lib/view/opEx/opExSelector.js +3 -4
  250. package/lib/view/opExByVendor/opExByVendorPayload.d.ts +4 -3
  251. package/lib/view/opExByVendor/opExByVendorState.d.ts +0 -1
  252. package/lib/view/opExByVendor/opExByVendorState.js +3 -3
  253. package/lib/view/opExClassesView/opExClassesViewSelectorTypes.d.ts +3 -3
  254. package/lib/view/opExClassesView/opExClassesViewSelectorTypes.js +4 -6
  255. package/lib/view/people/peopleTypes.d.ts +2 -2
  256. package/lib/view/people/peopleTypes.js +2 -4
  257. package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +1 -1
  258. package/lib/view/profitAndLoss/profitAndLossSelector.js +2 -6
  259. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +3 -2
  260. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +1 -3
  261. package/lib/view/recommendation/recommendationPayload.d.ts +3 -2
  262. package/lib/view/referralView/referralPayload.d.ts +4 -3
  263. package/lib/view/referralView/referralState.d.ts +3 -4
  264. package/lib/view/referralView/referralState.js +5 -10
  265. package/lib/view/reimbursementCard/reimbursementCardPayload.d.ts +4 -4
  266. package/lib/view/reimbursementCard/reimbursementCardState.d.ts +3 -2
  267. package/lib/view/reimbursementCard/reimbursementCardState.js +0 -2
  268. package/lib/view/revenue/revenueSelector.d.ts +0 -15
  269. package/lib/view/revenue/revenueSelector.js +1 -2
  270. package/lib/view/revenue/revenueSelectorTypes.d.ts +4 -6
  271. package/lib/view/revenue/revenueSelectorTypes.js +1 -3
  272. package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +3 -3
  273. package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +4 -6
  274. package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +2 -1
  275. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +0 -1
  276. package/lib/view/reviewCompanyView/reviewCompanyViewState.js +3 -3
  277. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +0 -1
  278. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +3 -3
  279. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +7 -14
  280. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +8 -13
  281. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +2 -2
  282. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +2 -4
  283. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -28
  284. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +4 -24
  285. package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +2 -1
  286. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -4
  287. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +7 -8
  288. package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +0 -6
  289. package/lib/view/settingsView/epic/fetchMyProfileEpic.js +1 -3
  290. package/lib/view/settingsView/settingsViewPayload.d.ts +3 -2
  291. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +2 -1
  292. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -4
  293. package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -5
  294. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +4 -4
  295. package/lib/view/spendManagement/billPay/billList/billListState.js +3 -6
  296. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +15 -35
  297. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +7 -13
  298. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigSelector.d.ts +2 -1
  299. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +10 -15
  300. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +15 -21
  301. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +3 -2
  302. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +2 -1
  303. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +2 -2
  304. package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +3 -4
  305. package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +2 -1
  306. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +4 -3
  307. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +2 -1
  308. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -2
  309. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +5 -5
  310. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +3 -30
  311. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.js +1 -25
  312. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  313. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -4
  314. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -2
  315. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +3 -4
  316. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
  317. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +3 -4
  318. package/lib/view/spendManagement/billPay/internationalWire/internationalWire.d.ts +2 -1
  319. package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.d.ts +5 -10
  320. package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.js +3 -5
  321. package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
  322. package/lib/view/spendManagement/billPay/previousBills/previousBillsState.d.ts +2 -1
  323. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +2 -1
  324. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +0 -11
  325. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -5
  326. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +3 -2
  327. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +3 -2
  328. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +3 -2
  329. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -2
  330. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +5 -5
  331. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +2 -1
  332. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -2
  333. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -3
  334. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +2 -2
  335. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewState.d.ts +0 -2
  336. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +2 -1
  337. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +4 -3
  338. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +5 -5
  339. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +2 -3
  340. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -5
  341. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -13
  342. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -5
  343. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  344. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +2 -3
  345. package/lib/view/spendManagement/commonSetup/setupViewState.js +2 -6
  346. package/lib/view/spendManagement/helpers.d.ts +1 -3
  347. package/lib/view/spendManagement/helpers.js +3 -5
  348. package/lib/view/spendManagement/merchantList/merchantListPayload.d.ts +2 -1
  349. package/lib/view/spendManagement/plaidAccount/types/plaidConnection.d.ts +2 -1
  350. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +2 -1
  351. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalState.d.ts +3 -2
  352. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewPayload.d.ts +2 -2
  353. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +2 -3
  354. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +1 -22
  355. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewState.d.ts +2 -1
  356. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
  357. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
  358. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +2 -1
  359. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts +0 -1
  360. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js +1 -8
  361. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts +2 -1
  362. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js +1 -2
  363. package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
  364. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
  365. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +3 -4
  366. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +2 -1
  367. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +0 -8
  368. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +1 -2
  369. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +3 -2
  370. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.d.ts +1 -2
  371. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.js +1 -3
  372. package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +3 -2
  373. package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -7
  374. package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -7
  375. package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
  376. package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +3 -2
  377. package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState.d.ts +2 -1
  378. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +3 -2
  379. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
  380. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +2 -1
  381. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +1 -2
  382. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +2 -1
  383. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +2 -2
  384. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +4 -4
  385. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +2 -3
  386. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +2 -1
  387. package/lib/view/subscriptionView/subscriptionEstmiatePayload.d.ts +1 -1
  388. package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +9 -8
  389. package/lib/view/subscriptionView/subscriptionViewState.d.ts +3 -2
  390. package/lib/view/subscriptionView/types/subscriptionEstmiate.d.ts +4 -3
  391. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +2 -2
  392. package/lib/view/subscriptionView/types/subscriptionTypes.js +3 -4
  393. package/lib/view/tagView/tagViewPayload.d.ts +2 -2
  394. package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +0 -7
  395. package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +2 -1
  396. package/lib/view/taskManager/taskListView/taskList.d.ts +2 -7
  397. package/lib/view/taskManager/taskListView/taskList.js +3 -4
  398. package/lib/view/taskManager/taskListView/taskListPayload.d.ts +2 -1
  399. package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
  400. package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +0 -8
  401. package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +1 -2
  402. package/lib/view/transactionList/transactionListByEntitySelector.d.ts +0 -2
  403. package/lib/view/transactionList/transactionListByEntitySelector.js +1 -2
  404. package/lib/view/transactionList/transactionListPayload.d.ts +5 -4
  405. package/lib/view/transactionList/transactionListState.d.ts +5 -4
  406. package/lib/view/trend/trendPayload.d.ts +4 -3
  407. package/lib/view/trendWithTransactions/trendWithTransactionsState.d.ts +2 -1
  408. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +3 -2
  409. package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +0 -2
  410. package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +2 -3
  411. package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +0 -1
  412. package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +2 -3
  413. package/lib/view/userListView/userListViewPayload.d.ts +2 -1
  414. package/lib/view/userRoleConfigView/userRoleConfigPayload.d.ts +2 -1
  415. package/lib/view/vendorList/vendorListPayload.d.ts +2 -5
  416. package/lib/view/vendorList/vendorListSelector.d.ts +0 -1
  417. package/lib/view/vendorList/vendorListSelector.js +1 -3
  418. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +3 -5
  419. package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -26
  420. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -3
  421. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +3 -3
  422. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +2 -1
  423. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -2
  424. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +3 -3
  425. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +2 -3
  426. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +3 -5
  427. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +0 -2
  428. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +3 -5
  429. package/lib/view/vendorTypeList/vendorTypeListPayload.d.ts +2 -1
  430. package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +0 -12
  431. package/lib/view/vendorTypeList/vendorTypeSelector.js +0 -11
  432. package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
  433. package/package.json +5 -3
@@ -1,19 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toNotificationSubTabTypeStrict = exports.toNotificationSubTabType = exports.ALL_NOTIFICATION_SUB_TABS = exports.toNotificationTabTypeStrict = exports.toNotificationTabType = exports.ALL_NOTIFICATION_TABS = void 0;
3
+ exports.toNotificationSubTabTypeStrict = exports.toNotificationTabTypeStrict = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- exports.ALL_NOTIFICATION_TABS = ['tasks', 'comments'];
6
- const toNotificationTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_TABS);
7
- exports.toNotificationTabType = toNotificationTabType;
8
- const toNotificationTabTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_TABS);
5
+ const ALL_NOTIFICATION_TABS = ['tasks', 'comments'];
6
+ const toNotificationTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_TABS);
7
+ const toNotificationTabTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_NOTIFICATION_TABS);
9
8
  exports.toNotificationTabTypeStrict = toNotificationTabTypeStrict;
10
- exports.ALL_NOTIFICATION_SUB_TABS = [
9
+ const ALL_NOTIFICATION_SUB_TABS = [
11
10
  'all',
12
11
  'read',
13
12
  'unread',
14
13
  'mentions',
15
14
  ];
16
- const toNotificationSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_SUB_TABS);
17
- exports.toNotificationSubTabType = toNotificationSubTabType;
18
- const toNotificationSubTabTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_SUB_TABS);
15
+ const toNotificationSubTabType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_SUB_TABS);
16
+ const toNotificationSubTabTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_NOTIFICATION_SUB_TABS);
19
17
  exports.toNotificationSubTabTypeStrict = toNotificationSubTabTypeStrict;
@@ -10,9 +10,7 @@ import { FilePayload } from '../../../entity/file/filePayload';
10
10
  import { CompanyWithSchema } from '../../../entity/company/companySelector';
11
11
  import { Tenant } from '../../../entity/tenant/tenantState';
12
12
  import { AddressPayload } from '../../../entity/address/addressPayload';
13
- import { AddressUpdatableInfoPayload } from '../../addressView/addressViewPayload';
14
- import { PrimaryContactVerificationPayload } from '../../spendManagement/commonSetup/types/businessVerification';
15
- export interface companiesData {
13
+ interface companiesData {
16
14
  companies: CompanyPayload[];
17
15
  }
18
16
  declare type INVITE_STATUS_TYPE = 'NOT_INVITED' | 'INVITED' | 'INVITE_ACCEPTED';
@@ -33,18 +31,6 @@ export interface OnboardingCompanyDataPayload extends companiesData {
33
31
  }
34
32
  export declare type OnboardingCompanyResponse = ZeniAPIResponse<OnboardingCompanyDataPayload>;
35
33
  export declare type OnboardingCompletedCompaniesResponse = ZeniAPIResponse<companiesData>;
36
- export interface CompanyDetailsPayload {
37
- file_ids: string[];
38
- company_description: string;
39
- company_legal_name: string;
40
- primary_contact_user: Partial<PrimaryContactVerificationPayload>;
41
- tax_id: string;
42
- company_industry: string;
43
- company_url: string;
44
- phone: string;
45
- company_address: AddressUpdatableInfoPayload;
46
- company_inc_type: string;
47
- }
48
34
  export interface OnboardingCustomerPayload extends Partial<OnboardingEmailGroupPayload> {
49
35
  company_email_domain: string;
50
36
  user_email_with_pre_onboard_success: string;
@@ -20,7 +20,7 @@ export interface OnboardingCockpitViewState extends FetchedState {
20
20
  newOnboardedCustomerId?: ID;
21
21
  retryBankAccountConnectionFetchStateByCompanyId: Record<ID, FetchStateAndError>;
22
22
  }
23
- export interface OnboardingCompletedCompaniesState extends FetchedState {
23
+ interface OnboardingCompletedCompaniesState extends FetchedState {
24
24
  ids: ID[];
25
25
  }
26
26
  export interface OnboardingCustomerUpdateState {
@@ -36,3 +36,4 @@ export interface OnboardingCustomerListUIState {
36
36
  sortKey: OnboardingViewSortKey;
37
37
  sortOrder: SortOrder;
38
38
  }
39
+ export {};
@@ -3,11 +3,8 @@ import { CompanyWithSchema } from '../../../../entity/company/companySelector';
3
3
  import { OnboardingCustomerInfo } from '../../../../entity/onboardingCustomer/onboardingCustomerState';
4
4
  import { Tenant } from '../../../../entity/tenant/tenantState';
5
5
  import { CompanyDetailsLocalData, PrimaryContactLocalData } from '../../../spendManagement/commonSetup/setupViewState';
6
- export declare const ALL_PRODUCT_GROUPS: readonly ["bookkeeping", "banking", "spend_management", "other", "cards"];
7
- export declare const toProductGroupType: (v: string) => "other" | "bookkeeping" | "banking" | "spend_management" | "cards";
8
- export declare const toProductGroupTypeStrict: (v: string) => "other" | "bookkeeping" | "banking" | "spend_management" | "cards" | undefined;
6
+ declare const toProductGroupType: (v: string) => "other" | "bookkeeping" | "banking" | "spend_management" | "cards";
9
7
  export declare type ProductGroupType = ReturnType<typeof toProductGroupType>;
10
- export declare const ALL_PRODUCTS: readonly ["bookkeeping", "zeni_checking", "zeni_bill_pay", "zeni_reimbursements", "zeni_cards", "other"];
11
8
  export declare const toProductType: (v: string) => "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards";
12
9
  export declare const toProductTypeStrict: (v: string) => "other" | "bookkeeping" | "zeni_checking" | "zeni_bill_pay" | "zeni_reimbursements" | "zeni_cards" | undefined;
13
10
  export declare type ProductType = ReturnType<typeof toProductType>;
@@ -47,3 +44,4 @@ export declare type CustomerCreationStatus = {
47
44
  export interface OnboardingCompanyDetails extends CompanyDetailsLocalData {
48
45
  primaryContactLocalData?: PrimaryContactLocalData;
49
46
  }
47
+ export {};
@@ -1,19 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toProductTypeStrict = exports.toProductType = exports.ALL_PRODUCTS = exports.toProductGroupTypeStrict = exports.toProductGroupType = exports.ALL_PRODUCT_GROUPS = void 0;
3
+ exports.toProductTypeStrict = exports.toProductType = void 0;
4
4
  const stringToUnion_1 = require("../../../../commonStateTypes/stringToUnion");
5
- exports.ALL_PRODUCT_GROUPS = [
5
+ const ALL_PRODUCT_GROUPS = [
6
6
  'bookkeeping',
7
7
  'banking',
8
8
  'spend_management',
9
9
  'other',
10
10
  'cards',
11
11
  ];
12
- const toProductGroupType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PRODUCT_GROUPS);
13
- exports.toProductGroupType = toProductGroupType;
14
- const toProductGroupTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_PRODUCT_GROUPS);
15
- exports.toProductGroupTypeStrict = toProductGroupTypeStrict;
16
- exports.ALL_PRODUCTS = [
12
+ const toProductGroupType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_PRODUCT_GROUPS);
13
+ const ALL_PRODUCTS = [
17
14
  'bookkeeping',
18
15
  'zeni_checking',
19
16
  'zeni_bill_pay',
@@ -21,7 +18,7 @@ exports.ALL_PRODUCTS = [
21
18
  'zeni_cards',
22
19
  'other',
23
20
  ];
24
- const toProductType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PRODUCTS);
21
+ const toProductType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_PRODUCTS);
25
22
  exports.toProductType = toProductType;
26
- const toProductTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_PRODUCTS);
23
+ const toProductTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_PRODUCTS);
27
24
  exports.toProductTypeStrict = toProductTypeStrict;
@@ -11,11 +11,5 @@ import { updateFiles } from '../../../../../entity/file/fileReducer';
11
11
  import { updateAccounts } from '../../../../../entity/account/accountReducer';
12
12
  import { updatePaymentAccounts } from '../../../../../entity/paymentAccount/paymentAccountReducer';
13
13
  import { updateOnboardingCustomerView, updateOnboardingCustomerViewSuccess, updateOnboardingCustomerViewFailure, updateOnboardingCustomerViewLocalStoreData, updateCurrentStep } from '../../onboardingCustomerViewReducer';
14
- import { CompanyDetailsVerificationPayload } from '../../../../spendManagement/commonSetup/types/businessVerification';
15
- import { CompanyDetailsLocalData } from '../../../../spendManagement/commonSetup/setupViewState';
16
14
  export declare type ActionType = ReturnType<typeof updateOnboardingCustomerView> | ReturnType<typeof updateAllUsers> | ReturnType<typeof updateUserRoles> | ReturnType<typeof updateCompanies> | ReturnType<typeof updateAddresses> | ReturnType<typeof updateFiles> | ReturnType<typeof updateAccounts> | ReturnType<typeof updatePaymentAccounts> | ReturnType<typeof updateOnboardingCustomerViewLocalStoreData> | ReturnType<typeof openSnackbar> | ReturnType<typeof updateCurrentStep> | ReturnType<typeof updateOnboardingCustomerViewSuccess> | ReturnType<typeof updateOnboardingCustomerViewFailure>;
17
15
  export declare const updateOnboardingCustomerViewEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>, zeniAPI: ZeniAPI) => Observable<ActionType>;
18
- /**
19
- * Helpers
20
- */
21
- export declare const toBusinessVerificationMinimalCompanyDataPayload: (companyLocalData: CompanyDetailsLocalData) => Partial<CompanyDetailsVerificationPayload>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toBusinessVerificationMinimalCompanyDataPayload = exports.updateOnboardingCustomerViewEpic = void 0;
3
+ exports.updateOnboardingCustomerViewEpic = void 0;
4
4
  const rxjs_1 = require("rxjs");
5
5
  const operators_1 = require("rxjs/operators");
6
6
  const responsePayload_1 = require("../../../../../responsePayload");
@@ -46,7 +46,7 @@ const updateOnboardingCustomerViewEpic = (actions$, state$, zeniAPI) => actions$
46
46
  let payload;
47
47
  if (currentStep === 'company_officer') {
48
48
  payload = {
49
- company: (0, exports.toBusinessVerificationMinimalCompanyDataPayload)(companyLocalData),
49
+ company: toBusinessVerificationMinimalCompanyDataPayload(companyLocalData),
50
50
  company_officer,
51
51
  };
52
52
  }
@@ -125,4 +125,3 @@ const toBusinessVerificationMinimalCompanyDataPayload = (companyLocalData) => {
125
125
  }
126
126
  return company;
127
127
  };
128
- exports.toBusinessVerificationMinimalCompanyDataPayload = toBusinessVerificationMinimalCompanyDataPayload;
@@ -1,14 +1,6 @@
1
1
  import { ActionsObservable, StateObservable } from 'redux-observable';
2
2
  import { RootState } from '../../../../../reducer';
3
- import { User } from '../../../../../entity/user/userState';
4
- import { Company } from '../../../../../entity/company/companyStateTypes';
5
3
  import { updateCurrentStep, saveOnboardingCustomerViewDataInLocalStore, clearOnboardingCustomerViewDataInLocalStore, updateOnboardingCustomerViewLocalStoreData } from '../../onboardingCustomerViewReducer';
6
- import { OnboardingCustomerViewLocalData } from '../../onboardingCustomerViewState';
7
- import { UserRole } from '../../../../../entity/userRole/userRoleState';
8
4
  import { newAddressInLocalStore, resetNewAddressesInLocalStore } from '../../../../addressView/addressViewReducer';
9
5
  export declare type ActionType = ReturnType<typeof updateOnboardingCustomerViewLocalStoreData> | ReturnType<typeof saveOnboardingCustomerViewDataInLocalStore> | ReturnType<typeof clearOnboardingCustomerViewDataInLocalStore> | ReturnType<typeof resetNewAddressesInLocalStore> | ReturnType<typeof newAddressInLocalStore> | ReturnType<typeof updateCurrentStep>;
10
6
  export declare const updateOnboardingCustomerViewLocalStoreDataEpic: (actions$: ActionsObservable<ActionType>, state$: StateObservable<RootState>) => import("rxjs").Observable<ActionType>;
11
- /**
12
- * Helpers
13
- */
14
- export declare function toOnboardingCustomerViewLocalData(company: Company, users: User[], userRoles: UserRole[], primaryContact?: User): OnboardingCustomerViewLocalData;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.toOnboardingCustomerViewLocalData = exports.updateOnboardingCustomerViewLocalStoreDataEpic = void 0;
6
+ exports.updateOnboardingCustomerViewLocalStoreDataEpic = void 0;
7
7
  const rxjs_1 = require("rxjs");
8
8
  const operators_1 = require("rxjs/operators");
9
9
  const get_1 = __importDefault(require("lodash/get"));
@@ -114,4 +114,3 @@ exports.updateOnboardingCustomerViewLocalStoreDataEpic = updateOnboardingCustome
114
114
  function toOnboardingCustomerViewLocalData(company, users, userRoles, primaryContact) {
115
115
  return (0, updateSetupViewLocalStoreDataEpic_1.toSetupViewLocalData)(company, users, userRoles, primaryContact);
116
116
  }
117
- exports.toOnboardingCustomerViewLocalData = toOnboardingCustomerViewLocalData;
@@ -10,11 +10,11 @@ import { AccountBasePayload } from '../../../entity/account/accountPayload';
10
10
  /**
11
11
  * Onboarding Customer View Payload
12
12
  */
13
- export interface CompaniesData {
13
+ interface CompaniesData {
14
14
  companies: CompanyPayload[];
15
15
  }
16
16
  export declare type OnboardingCompletedCompaniesResponse = ZeniAPIResponse<CompaniesData>;
17
- export interface OnboardingCustomerViewPayload extends CompaniesData {
17
+ interface OnboardingCustomerViewPayload extends CompaniesData {
18
18
  users: UserPayload[];
19
19
  user_roles: UserRolePayload[];
20
20
  files: FilePayload[];
@@ -24,3 +24,4 @@ export interface OnboardingCustomerViewPayload extends CompaniesData {
24
24
  subscription_payment_accounts: SubscriptionPaymentAccountPayload[];
25
25
  }
26
26
  export declare type OnboardingCustomerViewResponse = ZeniAPIResponse<OnboardingCustomerViewPayload>;
27
+ export {};
@@ -41,14 +41,8 @@ export interface OnboardingCustomerView {
41
41
  externalConnections?: TenantExternalConnections;
42
42
  }
43
43
  export declare function getOnboardingCustomerView(state: RootState, companyId: ID): OnboardingCustomerView;
44
- /**
45
- * Helpers
46
- */
47
- export declare function isCompanyDetailsCompleted(fileState: FileState, company?: CompanyView, primaryContact?: User): boolean;
48
44
  export declare function isOfficerDetailsCompleted(companyOfficers: User[], companyOfficerRoles: UserRole[], officerDetails: CompanyOfficerLocalData, fileState: FileState): boolean;
49
45
  export declare const onboardingStepsData: (isValidConnection: boolean, productSettings: TenantProductSettings, accountingConnectionCreationMode?: AccountingConnectionCreationMode | undefined, subscriptionPaymentAccount?: SubscriptionPaymentAccount | undefined) => {
50
46
  allStepsData: OnboardingStep[];
51
47
  requiredStepsData: OnboardingStep[];
52
48
  };
53
- export declare function isCompanyDetailsSavePending(fileState: FileState, company?: CompanyView, primaryContact?: User, companyDetailsLocalData?: CompanyDetails): boolean;
54
- export declare function isOfficerDetailsSavePending(companyOfficers: User[], companyOfficerRoles: UserRole[], fileState: FileState, officerDetails?: CompanyOfficerLocalData): boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isOfficerDetailsSavePending = exports.isCompanyDetailsSavePending = exports.onboardingStepsData = exports.isOfficerDetailsCompleted = exports.isCompanyDetailsCompleted = exports.getOnboardingCustomerView = void 0;
3
+ exports.onboardingStepsData = exports.isOfficerDetailsCompleted = exports.getOnboardingCustomerView = void 0;
4
4
  const paymentAccountSelector_1 = require("../../../entity/paymentAccount/paymentAccountSelector");
5
5
  const subscriptionPaymentAccountSelector_1 = require("../../../entity/subscriptionPaymentAccount/subscriptionPaymentAccountSelector");
6
6
  const onboardingCustomerViewState_1 = require("./onboardingCustomerViewState");
@@ -150,7 +150,6 @@ function isCompanyDetailsCompleted(fileState, company, primaryContact) {
150
150
  Boolean(primaryContact === null || primaryContact === void 0 ? void 0 : primaryContact.email) &&
151
151
  files.length >= 2);
152
152
  }
153
- exports.isCompanyDetailsCompleted = isCompanyDetailsCompleted;
154
153
  function isOfficerDetailsCompleted(companyOfficers, companyOfficerRoles, officerDetails, fileState) {
155
154
  var _a;
156
155
  if (companyOfficers.length === 0) {
@@ -234,7 +233,6 @@ function isCompanyDetailsSavePending(fileState, company, primaryContact, company
234
233
  !(fileIdsLocalData.length === companyFileIds.length &&
235
234
  companyFileIds.every((fileId) => fileIdsLocalData.includes(fileId))));
236
235
  }
237
- exports.isCompanyDetailsSavePending = isCompanyDetailsSavePending;
238
236
  function isOfficerDetailsSavePending(companyOfficers, companyOfficerRoles, fileState, officerDetails) {
239
237
  var _a;
240
238
  if (companyOfficers.length === 0 || officerDetails == null) {
@@ -264,4 +262,3 @@ function isOfficerDetailsSavePending(companyOfficers, companyOfficerRoles, fileS
264
262
  !(fileIdsLocalData.length === fileIds.length &&
265
263
  fileIds.every((fileId) => fileIdsLocalData.includes(fileId))));
266
264
  }
267
- exports.isOfficerDetailsSavePending = isOfficerDetailsSavePending;
@@ -6,12 +6,11 @@ export declare const ZENI_USER_REQUIRED_ONBOARDING_STEPS: readonly ["link_paymen
6
6
  export declare const CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO: readonly ["qbo_connection"];
7
7
  export declare const REQUIRED_ONBOARDING_STEPS: readonly ["link_payment_account", "qbo_connection"];
8
8
  export declare const ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT: readonly ["company_officer", "company_details"];
9
- export declare const ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO: readonly ["qbo_connection", "company_officer", "company_details"];
10
9
  export declare const ALL_ZENI_USER_ONBOARDING_STEPS: readonly ["link_payment_account", "company_officer", "company_details"];
10
+ export declare const ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO: readonly ["qbo_connection", "company_officer", "company_details"];
11
11
  export declare const ALL_ONBOARDING_STEPS: readonly ["link_payment_account", "qbo_connection", "company_officer", "company_details"];
12
12
  export declare const toOnboardingStepType: (v: string) => "company_details" | "company_officer" | "link_payment_account" | "qbo_connection";
13
13
  export declare type OnboardingStep = ReturnType<typeof toOnboardingStepType>;
14
- export declare const toOnboardingStepTypeStrict: (v: string | null) => OnboardingStep | undefined;
15
14
  /**
16
15
  * Onboarding Custiner View Local Data - Intefaces
17
16
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toOnboardingStepTypeStrict = exports.toOnboardingStepType = exports.ALL_ONBOARDING_STEPS = exports.ALL_ZENI_USER_ONBOARDING_STEPS = exports.ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO = exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT = exports.REQUIRED_ONBOARDING_STEPS = exports.CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO = exports.ZENI_USER_REQUIRED_ONBOARDING_STEPS = void 0;
3
+ exports.toOnboardingStepType = exports.ALL_ONBOARDING_STEPS = exports.ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO = exports.ALL_ZENI_USER_ONBOARDING_STEPS = exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT = exports.REQUIRED_ONBOARDING_STEPS = exports.CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO = exports.ZENI_USER_REQUIRED_ONBOARDING_STEPS = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  exports.ZENI_USER_REQUIRED_ONBOARDING_STEPS = [
6
6
  'link_payment_account',
@@ -16,19 +16,17 @@ exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT = [
16
16
  'company_officer',
17
17
  'company_details',
18
18
  ];
19
- exports.ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO = [
20
- ...exports.CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO,
21
- ...exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
22
- ];
23
19
  exports.ALL_ZENI_USER_ONBOARDING_STEPS = [
24
20
  ...exports.ZENI_USER_REQUIRED_ONBOARDING_STEPS,
25
21
  ...exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
26
22
  ];
23
+ exports.ALL_CUSTOMER_ONBOARDING_STEPS_WITH_QBO = [
24
+ ...exports.CUSTOMER_REQUIRED_ONBOARDING_STEPS_WITH_QBO,
25
+ ...exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
26
+ ];
27
27
  exports.ALL_ONBOARDING_STEPS = [
28
28
  ...exports.REQUIRED_ONBOARDING_STEPS,
29
29
  ...exports.ALL_ZENI_USER_ONBOARDING_STEPS_WITHOUT_ACCOUNT,
30
30
  ];
31
31
  const toOnboardingStepType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ONBOARDING_STEPS);
32
32
  exports.toOnboardingStepType = toOnboardingStepType;
33
- const toOnboardingStepTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_ONBOARDING_STEPS);
34
- exports.toOnboardingStepTypeStrict = toOnboardingStepTypeStrict;
@@ -2,22 +2,9 @@ import { RootState } from '../../reducer';
2
2
  import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
3
3
  import { OpExWithForecastState } from './opExState';
4
4
  import { FetchStateAndError, ID } from '../../commonStateTypes/common';
5
- import { COABalance } from '../../commonStateTypes/coaBalance/coaBalance';
6
5
  import { OpExReport, OpExUIStateSelectorView } from './opExSelectorTypes';
7
6
  export declare const getOperatingExpensesUIState: (state: RootState) => OpExUIStateSelectorView;
8
- export declare const getOpExBalancesInTimeFrame: (state: RootState) => COABalance[];
9
7
  export declare const getOperatingExpensesReport: (state: RootState, filter: COABalancesFilter, forecastId?: ID) => OpExReport;
10
8
  export declare const getOperatingExpensesForSelectedRange: (state: RootState) => OpExReport;
11
9
  export declare const getOperatingExpensesForHighlightedRange: (state: RootState) => OpExReport;
12
- /**
13
- * Get Net Burn or Income with forecast data overlaid on actuals.
14
- * @param filter : ;
15
- * @param state
16
- * @notes IMPORTANT:
17
- * 1. Here the forecast data for the given forecast ID is super imposed on actual data.
18
- * 2. This method can super impose forecast data on whole data available date range,
19
- * rather than restricting to ONLY forecast date range.
20
- * This is different from zeni REST API endpoint where it only super imposes forecast data ONLY for the forecast time period.
21
- */
22
- export declare function getOpExWithForecastOnDataAvailableDateRange(state: RootState, filter: COABalancesFilter, selectedforecastId: ID | undefined): OpExReport;
23
10
  export declare const getOperatingExpensesReportFetchState: (forecastId: ID | undefined, opExState: OpExWithForecastState) => FetchStateAndError;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOperatingExpensesReportFetchState = exports.getOpExWithForecastOnDataAvailableDateRange = exports.getOperatingExpensesForHighlightedRange = exports.getOperatingExpensesForSelectedRange = exports.getOperatingExpensesReport = exports.getOpExBalancesInTimeFrame = exports.getOperatingExpensesUIState = void 0;
3
+ exports.getOperatingExpensesReportFetchState = exports.getOperatingExpensesForHighlightedRange = exports.getOperatingExpensesForSelectedRange = exports.getOperatingExpensesReport = exports.getOperatingExpensesUIState = void 0;
4
4
  const toolkit_1 = require("@reduxjs/toolkit");
5
5
  const coaBalancesFilter_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilter");
6
6
  const opExReducer_1 = require("./opExReducer");
@@ -61,7 +61,7 @@ exports.getOperatingExpensesUIState = (0, toolkit_1.createSelector)((state) => s
61
61
  reportFormat,
62
62
  };
63
63
  });
64
- exports.getOpExBalancesInTimeFrame = (0, toolkit_1.createSelector)((state) => state.opExState, (state) => state.sectionAccountsViewState, (opExState, sectionState) => {
64
+ const getOpExBalancesInTimeFrame = (0, toolkit_1.createSelector)((state) => state.opExState, (state) => state.sectionAccountsViewState, (opExState, sectionState) => {
65
65
  const reportId = 'operating_expenses';
66
66
  const opExStateReport = (0, opExReducer_1.getState)(opExState, false, undefined);
67
67
  if (opExStateReport.dataAvailable != null) {
@@ -94,7 +94,7 @@ exports.getOperatingExpensesReport = (0, toolkit_1.createSelector)((state) => st
94
94
  }, filter);
95
95
  });
96
96
  }
97
- const balancesInTimeframe = (0, exports.getOpExBalancesInTimeFrame)(state);
97
+ const balancesInTimeframe = getOpExBalancesInTimeFrame(state);
98
98
  const allTimeframeTicks = balancesInTimeframe.map((balance) => (0, timeframeTick_1.toTimeframeTick)(balance));
99
99
  const forecast = opEx.forecastId != null
100
100
  ? (0, forecastSelector_1.getForecast)(forecastState, opEx.forecastId)
@@ -162,7 +162,6 @@ function getOpExWithForecastOnDataAvailableDateRange(state, filter, selectedfore
162
162
  });
163
163
  return reportF;
164
164
  }
165
- exports.getOpExWithForecastOnDataAvailableDateRange = getOpExWithForecastOnDataAvailableDateRange;
166
165
  const getOperatingExpensesReportFetchState = (forecastId, opExState) => {
167
166
  const opEx = (0, opExReducer_1.getState)(opExState, forecastId != null, forecastId);
168
167
  return (0, reduceFetchState_1.reduceAnyFetchState)([
@@ -5,7 +5,7 @@ import { AccountBasePayload } from '../../entity/account/accountPayload';
5
5
  import { ClassBasePayload } from '../../entity/class/classPayload';
6
6
  import { VendorPayload } from '../../entity/vendor/vendorPayload';
7
7
  import { ZeniReportResponse } from '../../responsePayload';
8
- export interface ReportStatusPayload {
8
+ interface ReportStatusPayload {
9
9
  code: number;
10
10
  description: string;
11
11
  last_refresh_success_time: string | null;
@@ -13,7 +13,7 @@ export interface ReportStatusPayload {
13
13
  last_refresh_attempt_time: string | null;
14
14
  is_report_generated?: boolean;
15
15
  }
16
- export interface PageMetadataPayload {
16
+ interface PageMetadataPayload {
17
17
  next_page_token: string;
18
18
  page_limit: number;
19
19
  total_count: number;
@@ -35,7 +35,7 @@ export interface OpexByVendorReportPayload extends ReportPayload {
35
35
  currency?: CurrencyPayload;
36
36
  }
37
37
  export declare type OpexByVendorReportResponse = ZeniReportResponse<OpexByVendorReportPayload>;
38
- export interface VendorCOABalanceGroupedPayloadByVendorId {
38
+ interface VendorCOABalanceGroupedPayloadByVendorId {
39
39
  [vendorId: string]: COABalanceGroupedByPeriodPayloadV2;
40
40
  }
41
41
  export interface VendorCOABalanceGroupedPayloadV2 extends COABalanceGroupedPayloadV2 {
@@ -48,3 +48,4 @@ export interface OpexByVendorReportSummaryPayload extends ReportPayload {
48
48
  currency?: CurrencyPayload;
49
49
  }
50
50
  export declare type OpexByVendorReportSummaryResponse = ZeniReportResponse<OpexByVendorReportSummaryPayload>;
51
+ export {};
@@ -11,7 +11,6 @@ export interface OpExByVendorQuery {
11
11
  pageLimit?: number;
12
12
  fetchNextPage: boolean;
13
13
  }
14
- export declare const OPEX_BY_VENDOR_SORT_KEYS: readonly ["totals", "vendor", "class", "account"];
15
14
  export declare const toOpexByVendorSortKeyType: (v: string) => "totals" | "vendor" | "account" | "class";
16
15
  export declare type OpexByVendorSortKey = ReturnType<typeof toOpexByVendorSortKeyType>;
17
16
  export declare function getOpexVendorKey(vendorId: ID, accountId: ID | undefined, classId: ID | undefined): string;
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOpexVendorKey = exports.toOpexByVendorSortKeyType = exports.OPEX_BY_VENDOR_SORT_KEYS = void 0;
3
+ exports.getOpexVendorKey = exports.toOpexByVendorSortKeyType = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- exports.OPEX_BY_VENDOR_SORT_KEYS = [
5
+ const OPEX_BY_VENDOR_SORT_KEYS = [
6
6
  'totals',
7
7
  'vendor',
8
8
  'class',
9
9
  'account',
10
10
  ];
11
- const toOpexByVendorSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.OPEX_BY_VENDOR_SORT_KEYS);
11
+ const toOpexByVendorSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, OPEX_BY_VENDOR_SORT_KEYS);
12
12
  exports.toOpexByVendorSortKeyType = toOpexByVendorSortKeyType;
13
13
  function getOpexVendorKey(vendorId, accountId, classId) {
14
14
  return `${vendorId}-${accountId !== null && accountId !== void 0 ? accountId : '-'}-${classId !== null && classId !== void 0 ? classId : '-'}`;
@@ -2,14 +2,14 @@ import { ClassesViewSelectorReportV2 } from '../../commonStateTypes/selectorType
2
2
  import { InsightSummary } from '../../entity/insights/insightSummary';
3
3
  import { OpExClassesViewUIState } from './opExClassesViewState';
4
4
  export declare const ALL_OPEX_CLASSES_VIEW_SECTION_IDS: readonly ["expenses"];
5
- export declare const toOpExClassesViewSectionID: (v: string) => "expenses";
5
+ declare const toOpExClassesViewSectionID: (v: string) => "expenses";
6
6
  export declare type OpExClassesViewSectionID = ReturnType<typeof toOpExClassesViewSectionID>;
7
7
  export declare const isOpExClassesViewSectionID: (id: string) => id is "expenses";
8
- export declare const ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS: readonly [];
9
- export declare const toOpExClassesViewCalculatedSectionID: (v: string) => never;
8
+ declare const toOpExClassesViewCalculatedSectionID: (v: string) => never;
10
9
  export declare type OpExClassesViewCalculatedSectionID = ReturnType<typeof toOpExClassesViewCalculatedSectionID>;
11
10
  export declare const isOpExClassesViewCalculatedSectionID: (id: string) => id is never;
12
11
  export interface OpExClassesViewReport extends ClassesViewSelectorReportV2<OpExClassesViewSectionID, OpExClassesViewCalculatedSectionID> {
13
12
  uiState: OpExClassesViewUIState;
14
13
  insights: InsightSummary[];
15
14
  }
15
+ export {};
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isOpExClassesViewCalculatedSectionID = exports.toOpExClassesViewCalculatedSectionID = exports.ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS = exports.isOpExClassesViewSectionID = exports.toOpExClassesViewSectionID = exports.ALL_OPEX_CLASSES_VIEW_SECTION_IDS = void 0;
3
+ exports.isOpExClassesViewCalculatedSectionID = exports.isOpExClassesViewSectionID = exports.ALL_OPEX_CLASSES_VIEW_SECTION_IDS = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_OPEX_CLASSES_VIEW_SECTION_IDS = ['expenses'];
6
6
  const toOpExClassesViewSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_OPEX_CLASSES_VIEW_SECTION_IDS);
7
- exports.toOpExClassesViewSectionID = toOpExClassesViewSectionID;
8
7
  const isOpExClassesViewSectionID = (id) => exports.ALL_OPEX_CLASSES_VIEW_SECTION_IDS.find((sectionId) => id === sectionId) != null;
9
8
  exports.isOpExClassesViewSectionID = isOpExClassesViewSectionID;
10
- exports.ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS = [];
11
- const toOpExClassesViewCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS);
12
- exports.toOpExClassesViewCalculatedSectionID = toOpExClassesViewCalculatedSectionID;
13
- const isOpExClassesViewCalculatedSectionID = (id) => exports.ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
9
+ const ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS = [];
10
+ const toOpExClassesViewCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS);
11
+ const isOpExClassesViewCalculatedSectionID = (id) => ALL_OPEX_CLASSES_VIEW_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
14
12
  exports.isOpExClassesViewCalculatedSectionID = isOpExClassesViewCalculatedSectionID;
@@ -1,3 +1,3 @@
1
- export declare const ALL_PEOPLE_SORT_KEYS: readonly ["name", "role", "manager", "department", "lastSeen"];
2
- export declare const toPeopleSortKeyType: (v: string) => "name" | "role" | "manager" | "department" | "lastSeen";
1
+ declare const toPeopleSortKeyType: (v: string) => "name" | "role" | "manager" | "department" | "lastSeen";
3
2
  export declare type PeopleViewSortKey = ReturnType<typeof toPeopleSortKeyType>;
3
+ export {};
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toPeopleSortKeyType = exports.ALL_PEOPLE_SORT_KEYS = void 0;
4
3
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- exports.ALL_PEOPLE_SORT_KEYS = [
4
+ const ALL_PEOPLE_SORT_KEYS = [
6
5
  'name',
7
6
  'role',
8
7
  'manager',
9
8
  'department',
10
9
  'lastSeen',
11
10
  ];
12
- const toPeopleSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PEOPLE_SORT_KEYS);
13
- exports.toPeopleSortKeyType = toPeopleSortKeyType;
11
+ const toPeopleSortKeyType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_PEOPLE_SORT_KEYS);
@@ -26,9 +26,9 @@ export interface ProfitAndLossReport extends AccountsViewSelectorReport<PandLRep
26
26
  * 1. Here the forecast data for the given forecast ID is super imposed on actual data.
27
27
  * 2. This method can super impose forecast data on whole data available date range,
28
28
  * rather than restricting to ONLY forecast date range.
29
+ function getProfitAndLossWithForecastOnDataAvailableDateRange(
29
30
  * This is different from zeni REST API endpoint where it only super imposes forecast data ONLY for the forecast time period.
30
31
  */
31
- export declare function getProfitAndLossWithForecastOnDataAvailableDateRange(filter: COABalancesFilter, forecastId: ID, accountState: AccountState, accountGroupState: AccountGroupState, sectionsState: SectionAccountsViewState, state: ProfitAndLossWithForecastState, forecastState: ForecastState): ProfitAndLossReport;
32
32
  export declare const getProfitAndLossReport: (filter: COABalancesFilter, forecastId: ID | undefined, accountState: AccountState, accountGroupState: AccountGroupState, sectionsState: SectionAccountsViewState, profitAndLossState: ProfitAndLossWithForecastState, forecastState: ForecastState) => ProfitAndLossReport;
33
33
  /**
34
34
  * Get FULL profit and loss report for given data available range,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPandLReportFetchState = exports.getProfitAndLossForFullDataAvailableRange = exports.getProfitAndLossReport = exports.getProfitAndLossWithForecastOnDataAvailableDateRange = void 0;
3
+ exports.getPandLReportFetchState = exports.getProfitAndLossForFullDataAvailableRange = exports.getProfitAndLossReport = void 0;
4
4
  const coaBalancesFilter_1 = require("../../commonStateTypes/coaBalance/coaBalancesFilter");
5
5
  const dataAvailable_1 = require("../../commonStateTypes/dataAvailable");
6
6
  const reduceFetchState_1 = require("../../commonStateTypes/reduceFetchState");
@@ -22,13 +22,9 @@ const forecastSelector_1 = require("../../entity/forecast/forecastSelector");
22
22
  * 1. Here the forecast data for the given forecast ID is super imposed on actual data.
23
23
  * 2. This method can super impose forecast data on whole data available date range,
24
24
  * rather than restricting to ONLY forecast date range.
25
+ function getProfitAndLossWithForecastOnDataAvailableDateRange(
25
26
  * This is different from zeni REST API endpoint where it only super imposes forecast data ONLY for the forecast time period.
26
27
  */
27
- function getProfitAndLossWithForecastOnDataAvailableDateRange(filter, forecastId, accountState, accountGroupState, sectionsState, state, forecastState) {
28
- const reportF = (0, exports.getProfitAndLossReport)(filter, forecastId, accountState, accountGroupState, sectionsState, state, forecastState);
29
- return reportF;
30
- }
31
- exports.getProfitAndLossWithForecastOnDataAvailableDateRange = getProfitAndLossWithForecastOnDataAvailableDateRange;
32
28
  const getProfitAndLossReport = (filter, forecastId, accountState, accountGroupState, sectionsState, profitAndLossState, forecastState) => {
33
29
  if (filter.timeframe === 'week' || filter.timeframe === 'free_range') {
34
30
  throw Error('free_range or week period is invalid');
@@ -1,13 +1,14 @@
1
1
  import { ClassesViewSelectorReportV2 } from '../../commonStateTypes/selectorTypes/classesViewSelectorReport';
2
2
  import { ProfitAndLossClassesViewUIState } from './profitAndLossClassesViewState';
3
3
  export declare const ALL_PANDL_REPORT_VIEW_SECTION_IDS: readonly ["cogs", "expenses", "income", "otherExpenses", "otherIncome", "netOperatingIncome"];
4
- export declare const toPandLReportViewSectionID: (v: string) => "expenses" | "cogs" | "income" | "otherIncome" | "otherExpenses" | "netOperatingIncome";
4
+ declare const toPandLReportViewSectionID: (v: string) => "expenses" | "cogs" | "income" | "otherIncome" | "otherExpenses" | "netOperatingIncome";
5
5
  export declare type PandLReportViewSectionID = ReturnType<typeof toPandLReportViewSectionID>;
6
6
  export declare const isPandLReportViewSectionID: (id: string) => id is "expenses" | "cogs" | "income" | "otherIncome" | "otherExpenses" | "netOperatingIncome";
7
7
  export declare const ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS: readonly ["grossProfit", "earningsBeforeInterestAndTax", "netOtherIncome", "netIncome"];
8
- export declare const toPandLReportViewCalculatedSectionID: (v: string) => "netIncome" | "grossProfit" | "earningsBeforeInterestAndTax" | "netOtherIncome";
8
+ declare const toPandLReportViewCalculatedSectionID: (v: string) => "netIncome" | "grossProfit" | "earningsBeforeInterestAndTax" | "netOtherIncome";
9
9
  export declare type PandLReportViewCalculatedSectionID = ReturnType<typeof toPandLReportViewCalculatedSectionID>;
10
10
  export declare const isPandLReportViewCalculatedSectionID: (id: string) => id is "netIncome" | "grossProfit" | "earningsBeforeInterestAndTax" | "netOtherIncome";
11
11
  export interface ProfitAndLossClassesViewReport extends ClassesViewSelectorReportV2<PandLReportViewSectionID, PandLReportViewCalculatedSectionID> {
12
12
  uiState: ProfitAndLossClassesViewUIState;
13
13
  }
14
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPandLReportViewCalculatedSectionID = exports.toPandLReportViewCalculatedSectionID = exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS = exports.isPandLReportViewSectionID = exports.toPandLReportViewSectionID = exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS = void 0;
3
+ exports.isPandLReportViewCalculatedSectionID = exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS = exports.isPandLReportViewSectionID = exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS = [
6
6
  'cogs',
@@ -11,7 +11,6 @@ exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS = [
11
11
  'netOperatingIncome',
12
12
  ];
13
13
  const toPandLReportViewSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS);
14
- exports.toPandLReportViewSectionID = toPandLReportViewSectionID;
15
14
  const isPandLReportViewSectionID = (id) => exports.ALL_PANDL_REPORT_VIEW_SECTION_IDS.find((sectionId) => id === sectionId) != null;
16
15
  exports.isPandLReportViewSectionID = isPandLReportViewSectionID;
17
16
  exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS = [
@@ -21,6 +20,5 @@ exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS = [
21
20
  'netIncome',
22
21
  ];
23
22
  const toPandLReportViewCalculatedSectionID = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS);
24
- exports.toPandLReportViewCalculatedSectionID = toPandLReportViewCalculatedSectionID;
25
23
  const isPandLReportViewCalculatedSectionID = (id) => exports.ALL_PANDL_REPORT_VIEW_CALCULATED_SECTION_IDS.find((calcId) => id === calcId) != null;
26
24
  exports.isPandLReportViewCalculatedSectionID = isPandLReportViewCalculatedSectionID;
@@ -1,10 +1,11 @@
1
1
  import { RecommendationPayload } from '../../commonPayloadTypes/recommendationPayload';
2
2
  import { ZeniAPIResponse } from '../../responsePayload';
3
- export interface RecommendationUpdatePayload {
3
+ interface RecommendationUpdatePayload {
4
4
  recommendations: RecommendationPayload[];
5
5
  }
6
6
  export declare type UpdateRecommendationResponse = ZeniAPIResponse<RecommendationUpdatePayload>;
7
- export interface FetchRecommendationPayload {
7
+ interface FetchRecommendationPayload {
8
8
  recommendations: RecommendationPayload[];
9
9
  }
10
10
  export declare type FetchRecommendationResponse = ZeniAPIResponse<FetchRecommendationPayload>;
11
+ export {};
@@ -2,10 +2,10 @@ import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloa
2
2
  import { AmountPayload } from '../../entity/reimbursement/reimbursementPayload';
3
3
  import { ZeniAPIResponse } from '../../responsePayload';
4
4
  import { ReferralInvitation } from './referralState';
5
- export interface ReferralSubmitPayload {
5
+ interface ReferralSubmitPayload {
6
6
  referral_unique_link: string;
7
7
  }
8
- export interface ReferralResubmitPayload {
8
+ interface ReferralResubmitPayload {
9
9
  last_invite_timestamp?: string;
10
10
  }
11
11
  export declare type ReferralSubmitResponse = ZeniAPIResponse<ReferralSubmitPayload>;
@@ -35,7 +35,7 @@ export interface FetchRewardsPlanPayload {
35
35
  refer_reward_plans: ReferRewardPlansPayload[];
36
36
  static_referral_link: string;
37
37
  }
38
- export interface InviteePayload {
38
+ interface InviteePayload {
39
39
  company_name: string;
40
40
  status_code: string;
41
41
  invitees_id: string;
@@ -50,3 +50,4 @@ export interface InviteePayload {
50
50
  export declare type FetchRewardsResponse = ZeniAPIResponse<FetchRewardsPayload>;
51
51
  export declare type FetchRewardsPlanResponse = ZeniAPIResponse<FetchRewardsPlanPayload>;
52
52
  export declare const toReferralInvitation: (payload: InviteePayload[]) => ReferralInvitation[];
53
+ export {};