@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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toApprovalSteps = exports.toApprovalCriteria = exports.toApprovalRule = void 0;
3
+ exports.toApprovalRule = void 0;
4
4
  const amount_1 = require("../../commonStateTypes/amount");
5
5
  const zeniDayJS_1 = require("../../zeniDayJS");
6
6
  const entityApprovalStatusState_1 = require("../entityApprovalStatus/entityApprovalStatusState");
@@ -17,8 +17,8 @@ const toApprovalRule = (payload) => {
17
17
  createTime: (0, zeniDayJS_1.dateLocal)(payload.create_time),
18
18
  updateTime: (0, zeniDayJS_1.dateLocal)(payload.update_time),
19
19
  version: payload.version,
20
- criteria: (0, exports.toApprovalCriteria)(payload.criteria),
21
- steps: (0, exports.toApprovalSteps)(payload.steps),
20
+ criteria: toApprovalCriteria(payload.criteria),
21
+ steps: toApprovalSteps(payload.steps),
22
22
  });
23
23
  };
24
24
  exports.toApprovalRule = toApprovalRule;
@@ -34,7 +34,6 @@ const toApprovalCriteria = (payload) => {
34
34
  },
35
35
  }));
36
36
  };
37
- exports.toApprovalCriteria = toApprovalCriteria;
38
37
  const toApprovalSteps = (payload) => {
39
38
  return payload.map((step) => ({
40
39
  action: (0, approvalRuleState_1.toApprovalActionType)(step.action),
@@ -51,4 +50,3 @@ const toApprovalSteps = (payload) => {
51
50
  }),
52
51
  }));
53
52
  };
54
- exports.toApprovalSteps = toApprovalSteps;
@@ -5,23 +5,18 @@ import { EntityType } from '../entityApprovalStatus/entityApprovalStatusState';
5
5
  import { User } from '../user/userState';
6
6
  export declare const toApprovalActionType: (v: string) => "require_approval" | "send_notification";
7
7
  export declare type ApprovalActionType = ReturnType<typeof toApprovalActionType>;
8
- export declare const toApprovalActionTypeStrict: (v: string | null) => ApprovalActionType | undefined;
9
8
  export declare const toActorApprovalType: (v: string) => "rejected" | "approved";
10
9
  export declare type ActorApprovalType = ReturnType<typeof toActorApprovalType>;
11
- export declare const toActorApprovalTypeStrict: (v: string | null) => ActorApprovalType | undefined;
12
10
  export declare const toStepOperatorType: (v: string) => "and" | "or" | "is";
13
11
  export declare type StepOperatorType = ReturnType<typeof toStepOperatorType>;
14
- export declare const toStepOperatorTypeStrict: (v: string | null) => StepOperatorType | undefined;
15
12
  export declare const toActorType: (v: string) => "user" | "attribute" | "role";
16
13
  export declare type ActorType = ReturnType<typeof toActorType>;
17
- export declare const toActorTypeStrict: (v: string | null) => ActorType | undefined;
18
- export declare const toAttributeType: (v: string) => "manager" | "vendor_owner" | "manager_of_manager";
14
+ declare const toAttributeType: (v: string) => "manager" | "vendor_owner" | "manager_of_manager";
19
15
  export declare type AttributeType = ReturnType<typeof toAttributeType>;
20
16
  export declare const toAttributeTypeStrict: (v: string | null) => AttributeType | undefined;
21
- export declare const toRoleType: (v: string) => "admin";
17
+ declare const toRoleType: (v: string) => "admin";
22
18
  export declare type RoleType = ReturnType<typeof toRoleType>;
23
19
  export declare const toRoleTypeStrict: (v: string | null) => RoleType | undefined;
24
- export declare const toAttributeOrRoleType: (v: string) => "manager" | "vendor_owner" | "manager_of_manager" | "admin";
25
20
  export declare const toAttributeOrRoleTypeStrict: (v: string | null) => AttributeType | RoleType | undefined;
26
21
  export interface Actor {
27
22
  type: ActorType;
@@ -63,3 +58,4 @@ export interface Approvers {
63
58
  users: User[];
64
59
  attributes: AttributeType[];
65
60
  }
61
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toAttributeOrRoleTypeStrict = exports.toAttributeOrRoleType = exports.toRoleTypeStrict = exports.toRoleType = exports.toAttributeTypeStrict = exports.toAttributeType = exports.toActorTypeStrict = exports.toActorType = exports.toStepOperatorTypeStrict = exports.toStepOperatorType = exports.toActorApprovalTypeStrict = exports.toActorApprovalType = exports.toApprovalActionTypeStrict = exports.toApprovalActionType = void 0;
3
+ exports.toAttributeOrRoleTypeStrict = exports.toRoleTypeStrict = exports.toAttributeTypeStrict = exports.toActorType = exports.toStepOperatorType = exports.toActorApprovalType = exports.toApprovalActionType = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  const ALL_APPROVAL_ACTION_TYPES = [
6
6
  'require_approval',
@@ -8,39 +8,27 @@ const ALL_APPROVAL_ACTION_TYPES = [
8
8
  ];
9
9
  const toApprovalActionType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_APPROVAL_ACTION_TYPES);
10
10
  exports.toApprovalActionType = toApprovalActionType;
11
- const toApprovalActionTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_APPROVAL_ACTION_TYPES);
12
- exports.toApprovalActionTypeStrict = toApprovalActionTypeStrict;
13
11
  const ALL_ACTOR_APPROVAL_TYPES = ['approved', 'rejected'];
14
12
  const toActorApprovalType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ACTOR_APPROVAL_TYPES);
15
13
  exports.toActorApprovalType = toActorApprovalType;
16
- const toActorApprovalTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ACTOR_APPROVAL_TYPES);
17
- exports.toActorApprovalTypeStrict = toActorApprovalTypeStrict;
18
14
  const ALL_STEP_OPERATOR_TYPES = ['and', 'or', 'is'];
19
15
  const toStepOperatorType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_STEP_OPERATOR_TYPES);
20
16
  exports.toStepOperatorType = toStepOperatorType;
21
- const toStepOperatorTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_STEP_OPERATOR_TYPES);
22
- exports.toStepOperatorTypeStrict = toStepOperatorTypeStrict;
23
17
  const ALL_ACTOR_TYPES = ['user', 'attribute', 'role'];
24
18
  const toActorType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ACTOR_TYPES);
25
19
  exports.toActorType = toActorType;
26
- const toActorTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ACTOR_TYPES);
27
- exports.toActorTypeStrict = toActorTypeStrict;
28
20
  const ALL_ATTRIBUTE_TYPES = [
29
21
  'manager',
30
22
  'vendor_owner',
31
23
  'manager_of_manager',
32
24
  ];
33
25
  const toAttributeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ATTRIBUTE_TYPES);
34
- exports.toAttributeType = toAttributeType;
35
26
  const toAttributeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ATTRIBUTE_TYPES);
36
27
  exports.toAttributeTypeStrict = toAttributeTypeStrict;
37
28
  const ALL_ROLE_TYPES = ['admin'];
38
29
  const toRoleType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ROLE_TYPES);
39
- exports.toRoleType = toRoleType;
40
30
  const toRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ROLE_TYPES);
41
31
  exports.toRoleTypeStrict = toRoleTypeStrict;
42
32
  const ALL_ATTRIBUTE_OR_ROLE_TYPES = [...ALL_ROLE_TYPES, ...ALL_ATTRIBUTE_TYPES];
43
- const toAttributeOrRoleType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ATTRIBUTE_OR_ROLE_TYPES);
44
- exports.toAttributeOrRoleType = toAttributeOrRoleType;
45
33
  const toAttributeOrRoleTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ATTRIBUTE_OR_ROLE_TYPES);
46
34
  exports.toAttributeOrRoleTypeStrict = toAttributeOrRoleTypeStrict;
@@ -1,6 +1,6 @@
1
1
  import { ID } from '../../../commonStateTypes/common';
2
2
  import { VendorTransactionPayload } from '../../transaction/payloadTypes/vendorTransactionPayload';
3
- import { BillPayInfo, BillStage, BillTransaction, BillAccount, BillPaymentMethod, BillPaymentStatus, BillStatus, FromBillAccount, DeletionInfo } from './billTransactionState';
3
+ import { BillStage, BillTransaction, BillPaymentMethod, BillPaymentStatus, BillStatus, DeletionInfo } from './billTransactionState';
4
4
  export interface BillTransactionPayload extends VendorTransactionPayload {
5
5
  bill_pay_info: BillPayInfoPayload;
6
6
  entity_approval_id: ID;
@@ -37,7 +37,7 @@ export interface BillTransactionPayload extends VendorTransactionPayload {
37
37
  } | null;
38
38
  } | null;
39
39
  }
40
- export interface BillPayInfoPayload {
40
+ interface BillPayInfoPayload {
41
41
  stage: BillStagePayload;
42
42
  payment_date?: string;
43
43
  scheduled_date?: string | null;
@@ -94,11 +94,9 @@ export interface DeletionInfoPayload {
94
94
  deleted_by_user_name: string | null;
95
95
  }
96
96
  export declare const toBillTransaction: (payload: BillTransactionPayload) => BillTransaction;
97
- export declare const toBillPayInfo: (payload: BillPayInfoPayload) => BillPayInfo;
98
97
  export declare const toBillStage: (payload: BillStagePayload) => BillStage;
99
98
  export declare const toBillPaymentMethod: (payload: BillPaymentMethodPayload) => BillPaymentMethod;
100
- export declare const toBillAccount: (payload: BillAccountPayload, billPaymentMethod: BillPaymentMethod) => BillAccount;
101
- export declare const toFromBillAccount: (payload: BillAccountPayload) => FromBillAccount;
102
99
  export declare const toBillPaymentStatus: (payload: BillPaymentStatusPayload) => BillPaymentStatus;
103
100
  export declare const toBillStatus: (payload: BillStatusPayload) => BillStatus;
104
101
  export declare const toDeletionInfo: (payload: DeletionInfoPayload) => DeletionInfo;
102
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toDeletionInfo = exports.toBillStatus = exports.toBillPaymentStatus = exports.toFromBillAccount = exports.toBillAccount = exports.toBillPaymentMethod = exports.toBillStage = exports.toBillPayInfo = exports.toBillTransaction = void 0;
3
+ exports.toDeletionInfo = exports.toBillStatus = exports.toBillPaymentStatus = exports.toBillPaymentMethod = exports.toBillStage = exports.toBillTransaction = void 0;
4
4
  const amount_1 = require("../../../commonStateTypes/amount");
5
5
  const zeniDayJS_1 = require("../../../zeniDayJS");
6
6
  const vendorTransactionPayload_1 = require("../../transaction/payloadTypes/vendorTransactionPayload");
@@ -9,7 +9,7 @@ const billTransactionState_1 = require("./billTransactionState");
9
9
  const billPayConfigPayload_1 = require("../../../view/spendManagement/billPay/billPayConfig/billPayConfigPayload");
10
10
  const toBillTransaction = (payload) => {
11
11
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
12
- return Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: (0, exports.toBillPayInfo)(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null
12
+ return Object.assign(Object.assign({}, (0, vendorTransactionPayload_1.toVendorTransaction)(payload)), { billPayInfo: toBillPayInfo(payload.bill_pay_info), classId: (_a = payload.class_id) !== null && _a !== void 0 ? _a : '', className: (_b = payload.class_name) !== null && _b !== void 0 ? _b : '', qboClassId: (_c = payload.qbo_class_id) !== null && _c !== void 0 ? _c : '', transactionReferenceId: (_d = payload.transaction_reference_id) !== null && _d !== void 0 ? _d : '', entityApprovalId: payload.entity_approval_id, updateTime: (0, zeniDayJS_1.date)(payload.update_time), createdBy: (_e = payload.created_by_user_id) !== null && _e !== void 0 ? _e : '', candidateVendorName: (_f = payload.candidate_vendor_name) !== null && _f !== void 0 ? _f : '', bookCloseDate: payload.book_close_date != null
13
13
  ? (0, zeniDayJS_1.date)(payload.book_close_date)
14
14
  : undefined, lastUpdatedByUserId: (_g = payload.last_updated_by_user_id) !== null && _g !== void 0 ? _g : '', paymentProcessingTotalFee: (0, amount_1.toAmount)((_h = payload.total_fee) !== null && _h !== void 0 ? _h : 0, payload.currency_code, payload.currency_symbol), isDeleted: payload.is_deleted, deletionInfo: (0, exports.toDeletionInfo)(payload.deletion_info), isRecurring: payload.is_recurring, recurringBillConfigId: (_j = payload.recurring_bill_config_id) !== null && _j !== void 0 ? _j : undefined, recurringBillInstance: (_k = payload.recurring_bill_instance) !== null && _k !== void 0 ? _k : undefined, totalAmountInUSD: payload.home_currency_amount != null &&
15
15
  payload.home_currency_code != null &&
@@ -47,8 +47,8 @@ const toBillPayInfo = (payload) => {
47
47
  ? (0, zeniDayJS_1.date)(payload.bill_payment_status_update_time)
48
48
  : undefined,
49
49
  billPaymentMethodType: (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type),
50
- fromAccount: (0, exports.toFromBillAccount)(payload.from_account),
51
- toAccount: (0, exports.toBillAccount)(payload.to_account, (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type)),
50
+ fromAccount: toFromBillAccount(payload.from_account),
51
+ toAccount: toBillAccount(payload.to_account, (0, exports.toBillPaymentMethod)(payload.bill_payment_method_type)),
52
52
  isCancelled: payload.is_cancelled,
53
53
  billStatus: (0, exports.toBillStatus)(payload.bill_status),
54
54
  actualDepositDate: payload.actual_deposit_date != null
@@ -64,7 +64,6 @@ const toBillPayInfo = (payload) => {
64
64
  : undefined,
65
65
  });
66
66
  };
67
- exports.toBillPayInfo = toBillPayInfo;
68
67
  const toBillStage = (payload) => {
69
68
  var _a;
70
69
  return ({
@@ -98,7 +97,6 @@ const toBillAccount = (payload, billPaymentMethod) => ({
98
97
  ? (0, billTransactionState_1.toBillAccountHolderType)(payload.account_holder_type)
99
98
  : undefined,
100
99
  });
101
- exports.toBillAccount = toBillAccount;
102
100
  const toFromBillAccount = (payload) => ({
103
101
  billAccountId: payload.account_id != null
104
102
  ? payload.account_id
@@ -112,7 +110,6 @@ const toFromBillAccount = (payload) => ({
112
110
  ? (0, billTransactionState_1.toBillAccountHolderType)(payload.account_holder_type)
113
111
  : undefined,
114
112
  });
115
- exports.toFromBillAccount = toFromBillAccount;
116
113
  const toBillPaymentStatus = (payload) => {
117
114
  var _a;
118
115
  return ({
@@ -95,23 +95,24 @@ export interface DeletionInfo {
95
95
  deletionSource?: DeletionSourceType;
96
96
  deletedByUserName?: string;
97
97
  }
98
- export declare const toBillStageCodeType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
98
+ declare const toBillStageCodeType: (v: string) => "paid" | "pending_approval" | "scheduled" | "draft";
99
99
  export declare type BillStageCodeType = ReturnType<typeof toBillStageCodeType>;
100
- export declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "processing" | "paid" | "returned" | "posted" | "cancelled" | "pending_vendor_action";
100
+ declare const toBillPaymentStatusCodeType: (v: string) => "failed" | "processing" | "paid" | "returned" | "posted" | "cancelled" | "pending_vendor_action";
101
101
  export declare type BillPaymentStatusCodeType = ReturnType<typeof toBillPaymentStatusCodeType>;
102
- export declare const toBillStatusCodeType: (v: string) => "rejected" | "approved" | "pending_approval" | "initiated";
102
+ declare const toBillStatusCodeType: (v: string) => "rejected" | "approved" | "pending_approval" | "initiated";
103
103
  export declare type BillStatusCodeType = ReturnType<typeof toBillStatusCodeType>;
104
- export declare const toBillStatusSummaryCodeType: (v: string) => "rejected" | "approval_in_progress";
104
+ declare const toBillStatusSummaryCodeType: (v: string) => "rejected" | "approval_in_progress";
105
105
  export declare type BillStatusSummaryCodeType = ReturnType<typeof toBillStatusSummaryCodeType>;
106
- export declare const toBillPaymentStatusSummaryCodeType: (v: string) => "pending_vendor_action" | "preparing_for_payment" | "issue_with_bill_payment" | "error_processing" | "paid_via_ach" | "bill_cancelled";
106
+ declare const toBillPaymentStatusSummaryCodeType: (v: string) => "pending_vendor_action" | "preparing_for_payment" | "issue_with_bill_payment" | "error_processing" | "paid_via_ach" | "bill_cancelled";
107
107
  export declare type BillPaymentStatusSummaryCodeType = ReturnType<typeof toBillPaymentStatusSummaryCodeType>;
108
- export declare const toBillPaymentStatusDescriptionCodeType: (v: string) => "pending_vendor_action" | "preparing_for_payment" | "error_processing" | "bill_cancelled" | "preparing_for_payment_without_expected_deposit_date" | "destination_bank_account_closed" | "destination_bank_declined_payment" | "invalid_bank_account" | "funds_arrived";
108
+ declare const toBillPaymentStatusDescriptionCodeType: (v: string) => "pending_vendor_action" | "preparing_for_payment" | "error_processing" | "bill_cancelled" | "preparing_for_payment_without_expected_deposit_date" | "destination_bank_account_closed" | "destination_bank_declined_payment" | "invalid_bank_account" | "funds_arrived";
109
109
  export declare type BillPaymentStatusDescriptionCodeType = ReturnType<typeof toBillPaymentStatusDescriptionCodeType>;
110
110
  export declare const toBillAccountType: (v: string) => "deposit_account" | "payment_account" | "bank_account" | "payment_instrument";
111
- export declare type BillAccountType = ReturnType<typeof toBillAccountType>;
111
+ declare type BillAccountType = ReturnType<typeof toBillAccountType>;
112
112
  export declare const toBillAccountHolderType: (v: string) => "vendor" | "customer";
113
- export declare type BillAccountHolderType = ReturnType<typeof toBillAccountHolderType>;
113
+ declare type BillAccountHolderType = ReturnType<typeof toBillAccountHolderType>;
114
114
  export declare const toDeletionSourceType: (v: string) => "zeni_dashboard" | "qbo" | "netsuite";
115
115
  export declare type DeletionSourceType = ReturnType<typeof toDeletionSourceType>;
116
116
  export declare const toBillProcessingStateType: (v: string) => "error" | "processing_queued" | "processing" | "processed";
117
117
  export declare type BillProcessingStateType = ReturnType<typeof toBillProcessingStateType>;
118
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toBillProcessingStateType = exports.toDeletionSourceType = exports.toBillAccountHolderType = exports.toBillAccountType = exports.toBillPaymentStatusDescriptionCodeType = exports.toBillPaymentStatusSummaryCodeType = exports.toBillStatusSummaryCodeType = exports.toBillStatusCodeType = exports.toBillPaymentStatusCodeType = exports.toBillStageCodeType = exports.toInternationalTransferFeeBearerPaymentMethod = void 0;
3
+ exports.toBillProcessingStateType = exports.toDeletionSourceType = exports.toBillAccountHolderType = exports.toBillAccountType = exports.toInternationalTransferFeeBearerPaymentMethod = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
5
  const ALL_INTERNATIONAL_TRANSFER_FEE_BEARER_PAYMENT_METHOD = [
6
6
  'swift_our',
@@ -15,7 +15,6 @@ const BILL_STAGE_CODE = [
15
15
  'draft',
16
16
  ];
17
17
  const toBillStageCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_STAGE_CODE);
18
- exports.toBillStageCodeType = toBillStageCodeType;
19
18
  const BILL_PAYMENT_STATUS_CODE = [
20
19
  'paid',
21
20
  'failed',
@@ -26,7 +25,6 @@ const BILL_PAYMENT_STATUS_CODE = [
26
25
  'pending_vendor_action',
27
26
  ];
28
27
  const toBillPaymentStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_STATUS_CODE);
29
- exports.toBillPaymentStatusCodeType = toBillPaymentStatusCodeType;
30
28
  const BILL_STATUS_CODE = [
31
29
  'initiated',
32
30
  'pending_approval',
@@ -34,10 +32,8 @@ const BILL_STATUS_CODE = [
34
32
  'rejected',
35
33
  ];
36
34
  const toBillStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_STATUS_CODE);
37
- exports.toBillStatusCodeType = toBillStatusCodeType;
38
35
  const BILL_STATUS_SUMMARY_CODE = ['approval_in_progress', 'rejected'];
39
36
  const toBillStatusSummaryCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_STATUS_SUMMARY_CODE);
40
- exports.toBillStatusSummaryCodeType = toBillStatusSummaryCodeType;
41
37
  const BILL_PAYMENT_STATUS_SUMMARY_CODE = [
42
38
  'preparing_for_payment',
43
39
  'issue_with_bill_payment',
@@ -47,7 +43,6 @@ const BILL_PAYMENT_STATUS_SUMMARY_CODE = [
47
43
  'pending_vendor_action',
48
44
  ];
49
45
  const toBillPaymentStatusSummaryCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_STATUS_SUMMARY_CODE);
50
- exports.toBillPaymentStatusSummaryCodeType = toBillPaymentStatusSummaryCodeType;
51
46
  const BILL_PAYMENT_STATUS_DESCRIPTION_CODE = [
52
47
  'preparing_for_payment',
53
48
  'preparing_for_payment_without_expected_deposit_date',
@@ -60,7 +55,6 @@ const BILL_PAYMENT_STATUS_DESCRIPTION_CODE = [
60
55
  'pending_vendor_action',
61
56
  ];
62
57
  const toBillPaymentStatusDescriptionCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, BILL_PAYMENT_STATUS_DESCRIPTION_CODE);
63
- exports.toBillPaymentStatusDescriptionCodeType = toBillPaymentStatusDescriptionCodeType;
64
58
  const BILL_ACCOUNT_CODE = [
65
59
  'deposit_account',
66
60
  'payment_account',
@@ -1,6 +1,6 @@
1
1
  import { BillStage } from '../billTransaction/billTransactionState';
2
- import { RecurringBillConfig, RecurringBillData, RecurringBillFrequency, RecurringBillPaymentStatus, RecurringBillStatus } from './recurringBillsState';
3
- export interface RecurringBillConfigBasePayload {
2
+ import { RecurringBillConfig, RecurringBillData, RecurringBillFrequency } from './recurringBillsState';
3
+ interface RecurringBillConfigBasePayload {
4
4
  is_approval_required: boolean;
5
5
  start_date: string;
6
6
  end_date: string;
@@ -44,6 +44,4 @@ export interface RecurringBillDataPayload {
44
44
  }
45
45
  export declare const toRecurringBillData: (payload: RecurringBillDataPayload) => RecurringBillData;
46
46
  export declare const toRecurringConfigPayload: (recurringConfig: Partial<RecurringBillConfig>) => Partial<RecurringBillConfigBodyPayload>;
47
- export declare const toRecurringBillPaymentStatus: (payload: RecurringBillPaymentStatusPayload) => RecurringBillPaymentStatus;
48
- export declare const toRecurringBillStatus: (payload: RecurringBillStatusPayload) => RecurringBillStatus;
49
47
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toRecurringBillStatus = exports.toRecurringBillPaymentStatus = exports.toRecurringConfigPayload = exports.toRecurringBillData = exports.toRecurringBillConfig = void 0;
3
+ exports.toRecurringConfigPayload = exports.toRecurringBillData = exports.toRecurringBillConfig = void 0;
4
4
  const zeniDayJS_1 = require("../../../zeniDayJS");
5
5
  const toRecurringBillConfig = (payload) => ({
6
6
  id: payload.recurring_bill_config_id,
@@ -27,10 +27,10 @@ const toRecurringBillData = (payload) => {
27
27
  transactionId: (_a = payload.transaction_id) !== null && _a !== void 0 ? _a : undefined,
28
28
  isDeleted: (_b = payload.is_deleted) !== null && _b !== void 0 ? _b : false,
29
29
  billStatus: payload.bill_status != null
30
- ? (0, exports.toRecurringBillStatus)(payload.bill_status)
30
+ ? toRecurringBillStatus(payload.bill_status)
31
31
  : undefined,
32
32
  billPaymentStatus: payload.bill_payment_status != null
33
- ? (0, exports.toRecurringBillPaymentStatus)(payload.bill_payment_status)
33
+ ? toRecurringBillPaymentStatus(payload.bill_payment_status)
34
34
  : undefined,
35
35
  });
36
36
  };
@@ -59,9 +59,7 @@ const toRecurringBillPaymentStatus = (payload) => {
59
59
  name: (_a = payload.name) !== null && _a !== void 0 ? _a : '',
60
60
  });
61
61
  };
62
- exports.toRecurringBillPaymentStatus = toRecurringBillPaymentStatus;
63
62
  const toRecurringBillStatus = (payload) => ({
64
63
  code: payload.code,
65
64
  name: payload.name,
66
65
  });
67
- exports.toRecurringBillStatus = toRecurringBillStatus;
@@ -31,23 +31,22 @@ export interface CreditLimitFrequency {
31
31
  name: string;
32
32
  }
33
33
  export declare const toCreditLimitFrequencyCodeType: (v: string) => "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
34
- export declare const toCreditLimitFrequencyCodeTypeStrict: (v?: string | undefined) => "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | undefined;
35
34
  export declare type CreditLimitFrequencyCodeType = ReturnType<typeof toCreditLimitFrequencyCodeType>;
36
- export interface CardStatus {
35
+ interface CardStatus {
37
36
  code: CardStatusCodeType;
38
37
  name: string;
39
38
  }
40
39
  export declare const toCardStatusCodeType: (v: string) => "frozen" | "active" | "inactive" | "stolen" | "lost" | "closed_by_customer" | "suspected_fraud";
41
- export declare const toCardStatusCodeTypeStrict: (v?: string | undefined) => "frozen" | "active" | "inactive" | "stolen" | "lost" | "closed_by_customer" | "suspected_fraud" | undefined;
42
- export declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
40
+ declare type CardStatusCodeType = ReturnType<typeof toCardStatusCodeType>;
43
41
  export interface ValidThru {
44
42
  month: number;
45
43
  year: number;
46
44
  }
47
- export declare const toCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card";
48
- export declare type CardCodeType = ReturnType<typeof toCardCodeType>;
49
- export interface CardType {
45
+ declare const toCardCodeType: (v: string) => "business_physical_credit_card" | "business_virtual_credit_card";
46
+ declare type CardCodeType = ReturnType<typeof toCardCodeType>;
47
+ interface CardType {
50
48
  code: CardCodeType;
51
49
  name: string;
52
50
  }
53
51
  export declare const toCardType: (payload: CardTypePayload) => CardType;
52
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCardType = exports.toCardCodeType = exports.toCardStatusCodeTypeStrict = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeTypeStrict = exports.toCreditLimitFrequencyCodeType = void 0;
3
+ exports.toCardType = exports.toCardStatusCodeType = exports.toCreditLimitFrequencyCodeType = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  const ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE = [
6
6
  'monthly',
@@ -11,8 +11,6 @@ const ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE = [
11
11
  ];
12
12
  const toCreditLimitFrequencyCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE);
13
13
  exports.toCreditLimitFrequencyCodeType = toCreditLimitFrequencyCodeType;
14
- const toCreditLimitFrequencyCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_CREDIT_LIMIT_FREQUENCY_TYPE_CODE);
15
- exports.toCreditLimitFrequencyCodeTypeStrict = toCreditLimitFrequencyCodeTypeStrict;
16
14
  const ALL_CARD_STATUS_CODE = [
17
15
  'active',
18
16
  'inactive',
@@ -24,16 +22,13 @@ const ALL_CARD_STATUS_CODE = [
24
22
  ];
25
23
  const toCardStatusCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_CARD_STATUS_CODE);
26
24
  exports.toCardStatusCodeType = toCardStatusCodeType;
27
- const toCardStatusCodeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_CARD_STATUS_CODE);
28
- exports.toCardStatusCodeTypeStrict = toCardStatusCodeTypeStrict;
29
25
  const CARD_TYPE_CODE = [
30
26
  'business_physical_credit_card',
31
27
  'business_virtual_credit_card',
32
28
  ];
33
29
  const toCardCodeType = (v) => (0, stringToUnion_1.stringToUnion)(v, CARD_TYPE_CODE);
34
- exports.toCardCodeType = toCardCodeType;
35
30
  const toCardType = (payload) => ({
36
- code: (0, exports.toCardCodeType)(payload.code),
31
+ code: toCardCodeType(payload.code),
37
32
  name: payload.name,
38
33
  });
39
34
  exports.toCardType = toCardType;
@@ -17,7 +17,7 @@ export interface ChargeCardTransaction {
17
17
  zeniAccountId?: ID;
18
18
  zeniVendorId?: ID;
19
19
  }
20
- export interface ChargeCardTransactionType {
20
+ interface ChargeCardTransactionType {
21
21
  code: ChargeCardTransactionTypeCode;
22
22
  name: string;
23
23
  }
@@ -25,7 +25,7 @@ export interface ChargeCardTransactionStatus {
25
25
  code: ChargeCardTransactionStatusCode;
26
26
  name: string;
27
27
  }
28
- export interface ChargeCardMerchant {
28
+ interface ChargeCardMerchant {
29
29
  name: string;
30
30
  brandName?: string;
31
31
  logo?: Logo;
@@ -34,7 +34,7 @@ export interface ChargeCardTransactionState {
34
34
  chargeCardTransactionById: Record<ID, ChargeCardTransaction>;
35
35
  }
36
36
  export declare const toCardTransactionTypeCode: (v: string) => "purchase";
37
- export declare const toCardTransactionTypeCodeStrict: (v?: string | undefined) => "purchase" | undefined;
38
37
  export declare type ChargeCardTransactionTypeCode = ReturnType<typeof toCardTransactionTypeCode>;
39
38
  export declare const toCardTransactionStatusCode: (v: string) => "canceled" | "paid" | "declined" | "authorized";
40
39
  export declare type ChargeCardTransactionStatusCode = ReturnType<typeof toCardTransactionStatusCode>;
40
+ export {};
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toCardTransactionStatusCode = exports.toCardTransactionTypeCodeStrict = exports.toCardTransactionTypeCode = void 0;
3
+ exports.toCardTransactionStatusCode = exports.toCardTransactionTypeCode = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  const CHARGE_CARD_TRANSACTION_TYPE_CODE = ['purchase'];
6
6
  const toCardTransactionTypeCode = (v) => (0, stringToUnion_1.stringToUnion)(v, CHARGE_CARD_TRANSACTION_TYPE_CODE);
7
7
  exports.toCardTransactionTypeCode = toCardTransactionTypeCode;
8
- const toCardTransactionTypeCodeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', CHARGE_CARD_TRANSACTION_TYPE_CODE);
9
- exports.toCardTransactionTypeCodeStrict = toCardTransactionTypeCodeStrict;
10
8
  const CHARGE_CARD_TRANSACTION_STATUS_CODE = [
11
9
  'authorized',
12
10
  'canceled',
@@ -17,9 +17,10 @@ export interface ChargeCardTransactionPayload {
17
17
  zeni_account_id?: string;
18
18
  zeni_vendor_id?: string;
19
19
  }
20
- export interface ChargeCardMerchantPayload {
20
+ interface ChargeCardMerchantPayload {
21
21
  name: string;
22
22
  logo?: URLPayload;
23
23
  brand_name?: string | null;
24
24
  }
25
25
  export declare const toChargeCardTransaction: (payload: ChargeCardTransactionPayload) => ChargeCardTransaction;
26
+ export {};
@@ -1,4 +1,3 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
2
  import { ChargeCardTransactionState, ChargeCardTransaction } from './chargeCardTransaction';
3
3
  export declare function getChargeCardTransactionsByIds(chargeCardTransactionState: ChargeCardTransactionState, chargeCardTransIds: ID[]): ChargeCardTransaction[];
4
- export declare function getChargeCardTransactionById(chargeCardTransactionState: ChargeCardTransactionState, chargeCardTransId: ID): ChargeCardTransaction | undefined;
@@ -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.getChargeCardTransactionById = exports.getChargeCardTransactionsByIds = void 0;
6
+ exports.getChargeCardTransactionsByIds = void 0;
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
8
  function getChargeCardTransactionsByIds(chargeCardTransactionState, chargeCardTransIds) {
9
9
  const chargeCardTransactions = chargeCardTransIds
@@ -15,4 +15,3 @@ exports.getChargeCardTransactionsByIds = getChargeCardTransactionsByIds;
15
15
  function getChargeCardTransactionById(chargeCardTransactionState, chargeCardTransId) {
16
16
  return (0, get_1.default)(chargeCardTransactionState.chargeCardTransactionById, chargeCardTransId, undefined);
17
17
  }
18
- exports.getChargeCardTransactionById = getChargeCardTransactionById;
@@ -16,10 +16,6 @@ export declare function mapClassBasePayloadToClassBase(payload: ClassBasePayload
16
16
  export declare function mapRecommendedClassBasePayloadToRecommendedClassBase(payload: RecommendedClassBasePayload): RecommendedClassBase | undefined;
17
17
  export declare const toClassBasePayload: (cl: ClassBase | undefined) => ClassBasePayload;
18
18
  export declare const toRecommendedClassBasePayload: (cl: RecommendedClassBase) => RecommendedClassBasePayload;
19
- export declare const toRecommendedClassBasePayloadForAmountRange: (cl: RecommendedClassBase | undefined, amountRange: {
20
- min: number;
21
- max?: number;
22
- }) => RecommendedClassBasePayload;
23
19
  export interface ClassMetadataPayload extends ClassBasePayload {
24
20
  parent_accounting_class_id: string | null;
25
21
  is_sub_accounting_class: boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toClassMetadata = exports.toRecommendedClassBasePayloadForAmountRange = exports.toRecommendedClassBasePayload = exports.toClassBasePayload = exports.mapRecommendedClassBasePayloadToRecommendedClassBase = exports.mapClassBasePayloadToClassBase = exports.mapClassBasePayloadToClass = void 0;
3
+ exports.toClassMetadata = exports.toRecommendedClassBasePayload = exports.toClassBasePayload = exports.mapRecommendedClassBasePayloadToRecommendedClassBase = exports.mapClassBasePayloadToClassBase = exports.mapClassBasePayloadToClass = void 0;
4
4
  const recommendationPayload_1 = require("../../commonPayloadTypes/recommendationPayload");
5
5
  const classState_1 = require("./classState");
6
6
  function mapClassBasePayloadToClass(payload, reportId, classesViewParentId) {
@@ -68,21 +68,6 @@ const toRecommendedClassBasePayload = (cl) => {
68
68
  return Object.assign({ accounting_class_id: (_a = cl === null || cl === void 0 ? void 0 : cl.classId) !== null && _a !== void 0 ? _a : '', accounting_class_name: (_b = cl === null || cl === void 0 ? void 0 : cl.className) !== null && _b !== void 0 ? _b : '', qbo_id: (_c = cl === null || cl === void 0 ? void 0 : cl.qboId) !== null && _c !== void 0 ? _c : null, fully_qualified_accounting_class_name: (_d = cl === null || cl === void 0 ? void 0 : cl.fullyQualifiedAccountingClassName) !== null && _d !== void 0 ? _d : '', accounting_class_number: (_e = cl === null || cl === void 0 ? void 0 : cl.accountingClassNumber) !== null && _e !== void 0 ? _e : null }, (0, recommendationPayload_1.toRecommendationBasePayload)(cl));
69
69
  };
70
70
  exports.toRecommendedClassBasePayload = toRecommendedClassBasePayload;
71
- const toRecommendedClassBasePayloadForAmountRange = (cl, amountRange) => {
72
- var _a, _b, _c, _d, _e, _f;
73
- // min max to always be sent to API even if the class base is null
74
- return {
75
- accounting_class_id: (_a = cl === null || cl === void 0 ? void 0 : cl.classId) !== null && _a !== void 0 ? _a : '',
76
- accounting_class_name: (_b = cl === null || cl === void 0 ? void 0 : cl.className) !== null && _b !== void 0 ? _b : '',
77
- qbo_id: (_c = cl === null || cl === void 0 ? void 0 : cl.qboId) !== null && _c !== void 0 ? _c : null,
78
- fully_qualified_accounting_class_name: (_d = cl === null || cl === void 0 ? void 0 : cl.fullyQualifiedAccountingClassName) !== null && _d !== void 0 ? _d : '',
79
- accounting_class_number: (_e = cl === null || cl === void 0 ? void 0 : cl.accountingClassNumber) !== null && _e !== void 0 ? _e : null,
80
- min: amountRange.min,
81
- max: amountRange.max,
82
- type: (_f = cl === null || cl === void 0 ? void 0 : cl.type) !== null && _f !== void 0 ? _f : '',
83
- };
84
- };
85
- exports.toRecommendedClassBasePayloadForAmountRange = toRecommendedClassBasePayloadForAmountRange;
86
71
  const toClassMetadata = (payload) => (Object.assign(Object.assign({}, mapClassBasePayloadToClassBase(payload)), { parentClassId: payload.parent_accounting_class_id != null
87
72
  ? payload.parent_accounting_class_id
88
73
  : undefined, isSubclass: payload.is_sub_accounting_class }));
@@ -1,10 +1,8 @@
1
- import { ClassesViewParentID, NestedClassID, NestedClassIDHierarchy } from '../../commonStateTypes/classesView/nestedClassID';
2
- import { COABalancesFilter } from '../../commonStateTypes/coaBalance/coaBalancesFilter';
1
+ import { ClassesViewParentID, NestedClassIDHierarchy } from '../../commonStateTypes/classesView/nestedClassID';
3
2
  import { COABalancesFilterClassesView } from '../../commonStateTypes/coaBalance/coaBalancesFilterClassesView';
4
3
  import { ID } from '../../commonStateTypes/common';
5
4
  import { ReportID } from '../../commonStateTypes/viewAndReport/viewAndReport';
6
5
  import { AccountState } from '../account/accountState';
7
- import { ClassReportV2 } from './classSelectorTypes';
8
6
  import { Class, ClassState } from './classState';
9
7
  import { NestedClassReportV2 } from '../sectionClassesViewV2/sectionClassesViewSelectorTypes';
10
8
  export declare function getClassesByIds(classState: ClassState, id: {
@@ -17,11 +15,6 @@ export declare function getClassById(classState: ClassState, id: {
17
15
  reportId: ReportID;
18
16
  classesViewParentId?: ClassesViewParentID;
19
17
  }): Class | undefined;
20
- export declare function getClassReportV2(classState: ClassState, accountState: AccountState, id: {
21
- nestedClassId: NestedClassID;
22
- reportId: ReportID;
23
- classesViewParentId?: ClassesViewParentID;
24
- }, filter: COABalancesFilter): ClassReportV2 | undefined;
25
18
  /**
26
19
  * This function helps build the nested class report for a given classId in a section in a report
27
20
  */
@@ -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.getNestedClassReportForClass = exports.getClassReportV2 = exports.getClassById = exports.getClassesByIds = void 0;
6
+ exports.getNestedClassReportForClass = exports.getClassById = exports.getClassesByIds = void 0;
7
7
  const get_1 = __importDefault(require("lodash/get"));
8
8
  const getNestedClassIDHierarchyForReport_1 = require("../../commonStateTypes/classesView/getNestedClassIDHierarchyForReport");
9
9
  const coaBalance_1 = require("../../commonStateTypes/coaBalance/coaBalance");
@@ -67,7 +67,6 @@ function getClassReportV2(classState, accountState, id, filter) {
67
67
  const balanceSlice = (0, coaBalance_1.getCOABalances)(classObject === null || classObject === void 0 ? void 0 : classObject.balancesByPeriod, filter);
68
68
  return Object.assign(Object.assign({ classId: id.nestedClassId[0], className: classObject.className, qboId: classObject.qboId, fullyQualifiedAccountingClassName: classObject.fullyQualifiedAccountingClassName, accountingClassNumber: classObject.accountingClassNumber }, balanceSlice), { classesViewParentId: id.classesViewParentId, accounts: sortedAccountReports });
69
69
  }
70
- exports.getClassReportV2 = getClassReportV2;
71
70
  /**
72
71
  * This function helps build the nested class report for a given classId in a section in a report
73
72
  */
@@ -1,7 +1,5 @@
1
1
  import { ID } from '../../commonStateTypes/common';
2
2
  import { User } from '../user/userState';
3
- export declare const getControllersEmails: (controllers: User[]) => ID[];
4
- export declare const getControllersUserIds: (controllers: User[]) => ID[];
5
3
  export declare const getFirstControllerEmail: (controllers: User[]) => ID[];
6
4
  export declare const getFirstControllerId: (controllerUserIds: ID[]) => ID[];
7
5
  export declare const getControllersName: (controllers: User[]) => string[];
@@ -1,18 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFirstControllerIdFromControllers = exports.getControllersName = exports.getFirstControllerId = exports.getFirstControllerEmail = exports.getControllersUserIds = exports.getControllersEmails = void 0;
3
+ exports.getFirstControllerIdFromControllers = exports.getControllersName = exports.getFirstControllerId = exports.getFirstControllerEmail = void 0;
4
4
  const getControllersEmails = (controllers) => {
5
5
  return controllers
6
6
  .map((controller) => controller.email)
7
7
  .filter((email) => Boolean(email));
8
8
  };
9
- exports.getControllersEmails = getControllersEmails;
10
- const getControllersUserIds = (controllers) => {
11
- return controllers.map((controller) => controller.userId);
12
- };
13
- exports.getControllersUserIds = getControllersUserIds;
14
9
  const getFirstControllerEmail = (controllers) => {
15
- const controllerEmail = (0, exports.getControllersEmails)(controllers);
10
+ const controllerEmail = getControllersEmails(controllers);
16
11
  if (controllerEmail.length === 0) {
17
12
  return [];
18
13
  }