@zeniai/client-epic-state 4.11.98 → 4.12.0

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 (476) 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/animations.d.ts +2 -0
  14. package/lib/commonStateTypes/animations.js +32 -0
  15. package/lib/commonStateTypes/classesView/nestedClassID.d.ts +6 -8
  16. package/lib/commonStateTypes/classesView/nestedClassID.js +1 -10
  17. package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.d.ts +0 -1
  18. package/lib/commonStateTypes/coaBalance/additionalBalances/getSamePeriodLastYearBalance.js +1 -27
  19. package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.d.ts +0 -2
  20. package/lib/commonStateTypes/coaBalance/pickAndMergeForecast.js +1 -2
  21. package/lib/commonStateTypes/customerView/nestedCustomerID.d.ts +6 -8
  22. package/lib/commonStateTypes/customerView/nestedCustomerID.js +0 -7
  23. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.d.ts +0 -3
  24. package/lib/commonStateTypes/fiscalYearHelpers/formatZeniDateFY.js +2 -5
  25. package/lib/commonStateTypes/reduceFetchState.d.ts +0 -18
  26. package/lib/commonStateTypes/reduceFetchState.js +7 -10
  27. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.d.ts +0 -2
  28. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSection.js +0 -12
  29. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.d.ts +0 -2
  30. package/lib/commonStateTypes/selectorTypes/pickAndMergeForecastSectionWithAcOnly.js +0 -10
  31. package/lib/commonStateTypes/selectorTypes/sortOrderTypes.d.ts +2 -2
  32. package/lib/commonStateTypes/selectorTypes/sortOrderTypes.js +2 -4
  33. package/lib/commonStateTypes/timePeriod.d.ts +2 -3
  34. package/lib/commonStateTypes/timePeriod.js +1 -6
  35. package/lib/commonStateTypes/v2/viewAndReport.d.ts +0 -5
  36. package/lib/commonStateTypes/v2/viewAndReport.js +3 -0
  37. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.d.ts +2 -2
  38. package/lib/commonStateTypes/viewAndReport/agingReportStateTypes.js +3 -4
  39. package/lib/commonStateTypes/viewAndReport/viewAndReport.d.ts +0 -1
  40. package/lib/commonStateTypes/viewAndReport/viewAndReport.js +3 -3
  41. package/lib/commonStateTypes/workingDayHelper.d.ts +0 -1
  42. package/lib/commonStateTypes/workingDayHelper.js +6 -6
  43. package/lib/entity/account/accountPayload.d.ts +1 -6
  44. package/lib/entity/account/accountPayload.js +3 -19
  45. package/lib/entity/account/accountReducer.d.ts +1 -3
  46. package/lib/entity/account/accountReducer.js +2 -3
  47. package/lib/entity/account/accountState.d.ts +2 -1
  48. package/lib/entity/account/accountState.js +1 -2
  49. package/lib/entity/account/pickAndMergeForecastAccountReport.d.ts +0 -6
  50. package/lib/entity/account/pickAndMergeForecastAccountReport.js +1 -2
  51. package/lib/entity/accountGroup/accountGroupSelector.d.ts +2 -1
  52. package/lib/entity/accountGroup/accountGroupSelector.js +2 -3
  53. package/lib/entity/address/addressReducer.d.ts +1 -2
  54. package/lib/entity/address/addressReducer.js +1 -2
  55. package/lib/entity/approvalRule/approvalRulePayload.d.ts +1 -3
  56. package/lib/entity/approvalRule/approvalRulePayload.js +3 -5
  57. package/lib/entity/approvalRule/approvalRuleState.d.ts +3 -7
  58. package/lib/entity/approvalRule/approvalRuleState.js +1 -13
  59. package/lib/entity/billPay/billTransaction/billTransactionPayload.d.ts +3 -5
  60. package/lib/entity/billPay/billTransaction/billTransactionPayload.js +4 -7
  61. package/lib/entity/billPay/billTransaction/billTransactionState.d.ts +9 -8
  62. package/lib/entity/billPay/billTransaction/billTransactionState.js +1 -7
  63. package/lib/entity/billPay/recurringBills/recurringBillsPayload.d.ts +2 -4
  64. package/lib/entity/billPay/recurringBills/recurringBillsPayload.js +3 -5
  65. package/lib/entity/chargeCard/chargeCard.d.ts +6 -7
  66. package/lib/entity/chargeCard/chargeCard.js +2 -7
  67. package/lib/entity/chargeCardTransaction/chargeCardTransaction.d.ts +3 -3
  68. package/lib/entity/chargeCardTransaction/chargeCardTransaction.js +1 -3
  69. package/lib/entity/chargeCardTransaction/chargeCardTransactionPayload.d.ts +2 -1
  70. package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.d.ts +0 -1
  71. package/lib/entity/chargeCardTransaction/chargeCardTransactionSelector.js +1 -2
  72. package/lib/entity/class/classPayload.d.ts +0 -4
  73. package/lib/entity/class/classPayload.js +1 -16
  74. package/lib/entity/class/classSelectorV2.d.ts +1 -8
  75. package/lib/entity/class/classSelectorV2.js +1 -2
  76. package/lib/entity/company/companyHelper.d.ts +0 -2
  77. package/lib/entity/company/companyHelper.js +2 -7
  78. package/lib/entity/company/companyPayload.d.ts +17 -32
  79. package/lib/entity/company/companyPayload.js +9 -19
  80. package/lib/entity/company/companyStateTypes.d.ts +6 -9
  81. package/lib/entity/company/companyStateTypes.js +3 -6
  82. package/lib/entity/companyHealthMetric/companyHealthMetricPayload.d.ts +5 -6
  83. package/lib/entity/companyHealthMetric/companyHealthMetricPayload.js +3 -5
  84. package/lib/entity/currency/currencySelector.d.ts +0 -3
  85. package/lib/entity/currency/currencySelector.js +1 -3
  86. package/lib/entity/customer/customerSelector.d.ts +2 -3
  87. package/lib/entity/customer/customerSelector.js +1 -8
  88. package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.d.ts +2 -4
  89. package/lib/entity/customerSatisfaction/customerSatisfactionReducerHelpers.js +3 -5
  90. package/lib/entity/customerSatisfaction/customerSatisfactionState.d.ts +1 -1
  91. package/lib/entity/customerSatisfaction/customerSatisfactionState.js +1 -2
  92. package/lib/entity/depositAccount/depositAccount.d.ts +3 -4
  93. package/lib/entity/depositAccount/depositAccount.js +1 -5
  94. package/lib/entity/depositAccountTransaction/depositAccountTransaction.d.ts +2 -2
  95. package/lib/entity/depositAccountTransaction/depositAccountTransaction.js +3 -3
  96. package/lib/entity/depositAccountTransaction/depositAccountTransactionPayload.d.ts +2 -1
  97. package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.d.ts +0 -1
  98. package/lib/entity/depositAccountTransaction/depositAccountTransactionSelector.js +1 -2
  99. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.d.ts +2 -6
  100. package/lib/entity/entityApprovalStatus/entityApprovalStatusPayload.js +3 -5
  101. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.d.ts +3 -4
  102. package/lib/entity/entityApprovalStatus/entityApprovalStatusState.js +1 -6
  103. package/lib/entity/file/filePayload.d.ts +2 -1
  104. package/lib/entity/file/fileState.d.ts +7 -21
  105. package/lib/entity/file/fileState.js +15 -34
  106. package/lib/entity/genericEntity/entity.d.ts +2 -1
  107. package/lib/entity/globalMerchant/globalMerchantPayload.d.ts +1 -4
  108. package/lib/entity/globalMerchant/globalMerchantPayload.js +2 -32
  109. package/lib/entity/globalMerchant/globalMerchantState.d.ts +2 -1
  110. package/lib/entity/insights/insightReducer.d.ts +1 -2
  111. package/lib/entity/insights/insightReducer.js +2 -3
  112. package/lib/entity/insights/insightState.d.ts +2 -1
  113. package/lib/entity/insights/insightState.js +0 -2
  114. package/lib/entity/jeSchedules/jeSchedulesPayload.d.ts +1 -2
  115. package/lib/entity/jeSchedules/jeSchedulesPayload.js +1 -2
  116. package/lib/entity/notification/types/notificationSelectorTypes.d.ts +2 -1
  117. package/lib/entity/notification/types/notificationTypes.d.ts +2 -11
  118. package/lib/entity/notification/types/notificationTypes.js +15 -24
  119. package/lib/entity/paymentAccount/paymentAccountPayload.d.ts +3 -3
  120. package/lib/entity/paymentAccount/paymentAccountPayload.js +2 -3
  121. package/lib/entity/portfolio/accountingSummary/accountingSummaryPayload.d.ts +3 -2
  122. package/lib/entity/reimbursement/reimbursementPayload.d.ts +9 -22
  123. package/lib/entity/reimbursement/reimbursementPayload.js +16 -32
  124. package/lib/entity/reimbursement/reimbursementState.d.ts +2 -1
  125. package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.d.ts +0 -1
  126. package/lib/entity/subscription/subscriptionAddOn/subscriptionAddOnSelector.js +1 -2
  127. package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.d.ts +0 -1
  128. package/lib/entity/subscription/subscriptionCoupon/subscriptionCouponSelector.js +1 -2
  129. package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.d.ts +1 -5
  130. package/lib/entity/subscription/subscriptionPlan/subscriptionPlanReducer.js +1 -2
  131. package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.d.ts +0 -1
  132. package/lib/entity/subscription/subscriptionSummary/subscriptionSummarySelector.js +1 -2
  133. package/lib/entity/task/taskState.d.ts +2 -5
  134. package/lib/entity/task/taskState.js +3 -10
  135. package/lib/entity/tenant/tenantSelector.d.ts +2 -2
  136. package/lib/entity/tenant/tenantSelector.js +1 -2
  137. package/lib/entity/toastNotification/toastNotificationState.d.ts +3 -6
  138. package/lib/entity/toastNotification/toastNotificationState.js +3 -3
  139. package/lib/entity/transaction/payloadTypes/transactionLinePayload.d.ts +11 -21
  140. package/lib/entity/transaction/payloadTypes/transactionLinePayload.js +10 -17
  141. package/lib/entity/transaction/stateTypes/attachment.d.ts +2 -1
  142. package/lib/entity/transaction/stateTypes/paymentType.d.ts +2 -1
  143. package/lib/entity/transaction/stateTypes/paymentType.js +1 -2
  144. package/lib/entity/transaction/stateTypes/transactionType.d.ts +6 -10
  145. package/lib/entity/transaction/stateTypes/transactionType.js +1 -14
  146. package/lib/entity/user/userReducer.d.ts +1 -3
  147. package/lib/entity/user/userReducer.js +2 -3
  148. package/lib/entity/user/userState.d.ts +2 -1
  149. package/lib/entity/userRole/userRoleState.d.ts +2 -2
  150. package/lib/entity/userRole/userRoleState.js +2 -4
  151. package/lib/entity/userRole/userRoleType.d.ts +0 -6
  152. package/lib/entity/userRole/userRoleType.js +9 -27
  153. package/lib/entity/vendor/vendorPayload.d.ts +2 -1
  154. package/lib/entity/vendorExpense/vendorExpenseReducer.d.ts +1 -2
  155. package/lib/entity/vendorExpense/vendorExpenseReducer.js +7 -7
  156. package/lib/entity/vendorExpense/vendorExpenseSelector.d.ts +2 -1
  157. package/lib/entity/vendorExpense/vendorExpenseSelector.js +1 -2
  158. package/lib/entity/vendorExpense/vendorExpenseTrend.d.ts +2 -1
  159. package/lib/index.d.ts +58 -56
  160. package/lib/index.js +9 -9
  161. package/lib/responsePayload.d.ts +2 -1
  162. package/lib/view/accountList/accountListPayload.d.ts +2 -1
  163. package/lib/view/accountMappingView/accountMappingPayload.d.ts +0 -3
  164. package/lib/view/accountMappingView/accountTypeRecommendation/accountTypeRecommendationPayload.d.ts +8 -7
  165. package/lib/view/addressView/addressViewPayload.d.ts +2 -1
  166. package/lib/view/apAgingView/apAgingDetail/apAgingDetailState.d.ts +2 -1
  167. package/lib/view/arAgingView/arAgingDetail/arAgingDetailState.d.ts +2 -1
  168. package/lib/view/arAgingView/arAgingReport/arAgingPayload.d.ts +1 -1
  169. package/lib/view/auditReportView/auditReportViewPayload.d.ts +2 -1
  170. package/lib/view/auditReportView/auditReportViewState.d.ts +3 -5
  171. package/lib/view/auditReportView/auditReportViewState.js +5 -6
  172. package/lib/view/autoComplete/entityAutoCompleteReducer.d.ts +1 -1
  173. package/lib/view/balanceSheet/balanceSheetPayload.d.ts +14 -17
  174. package/lib/view/balanceSheet/balanceSheetPayload.js +1 -13
  175. package/lib/view/balanceSheet/balanceSheetSelectorTypes.d.ts +19 -25
  176. package/lib/view/balanceSheet/balanceSheetSelectorTypes.js +27 -36
  177. package/lib/view/bankAccountView/bankAccountViewPayload.d.ts +5 -4
  178. package/lib/view/billPayCard/billPayCardPayload.d.ts +3 -3
  179. package/lib/view/billPayCard/billPayCardState.d.ts +3 -2
  180. package/lib/view/billPayCard/billPayCardState.js +0 -2
  181. package/lib/view/billPayCard/fetchBillPayCardEpic.js +1 -1
  182. package/lib/view/cardPayment/cardPaymentViewPayload.d.ts +3 -3
  183. package/lib/view/cardPayment/cardPaymentViewTypes.d.ts +2 -3
  184. package/lib/view/cardPayment/cardPaymentViewTypes.js +4 -6
  185. package/lib/view/cashFlow/cashFlowPayload.d.ts +7 -8
  186. package/lib/view/cashFlow/cashFlowPayload.js +5 -8
  187. package/lib/view/cashFlow/cashFlowSelectorTypes.d.ts +17 -23
  188. package/lib/view/cashFlow/cashFlowSelectorTypes.js +21 -28
  189. package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.d.ts +3 -4
  190. package/lib/view/cashInCashOut/cashInCashOutSelectorTypes.js +3 -12
  191. package/lib/view/classList/classListPayload.d.ts +2 -1
  192. package/lib/view/common/recurringViewHelper.d.ts +2 -2
  193. package/lib/view/common/recurringViewHelper.js +1 -4
  194. package/lib/view/commonVendorView/transactionVendorView/transactionVendorViewPayload.d.ts +2 -1
  195. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.d.ts +0 -1
  196. package/lib/view/commonVendorView/vendorsTabVendorView/vendorsTabVendorViewSelector.js +1 -3
  197. package/lib/view/companyConfigView/companyConfigPayload.d.ts +2 -1
  198. package/lib/view/companyHealthMetricView/companyHealthMetricViewPayload.d.ts +2 -1
  199. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.d.ts +6 -11
  200. package/lib/view/companyHealthMetricView/companyHealthMetricViewSelector.js +8 -13
  201. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewPayload.d.ts +3 -2
  202. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.d.ts +0 -4
  203. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewSelector.js +2 -3
  204. package/lib/view/companyMonthEndReportView/companyMonthEndReportViewState.d.ts +2 -2
  205. package/lib/view/companyView/companyViewPayload.d.ts +10 -9
  206. package/lib/view/companyView/helpers/cockpitHelpers.d.ts +0 -1
  207. package/lib/view/companyView/helpers/cockpitHelpers.js +3 -3
  208. package/lib/view/companyView/selector/companyManagementViewSelector.d.ts +0 -2
  209. package/lib/view/companyView/selector/companyManagementViewSelector.js +4 -5
  210. package/lib/view/companyView/types/cockpitTypes.d.ts +0 -7
  211. package/lib/view/companyView/types/cockpitTypes.js +11 -19
  212. package/lib/view/companyView/types/companyMetaDataViewState.d.ts +2 -1
  213. package/lib/view/companyView/types/companyPassportViewPayload.d.ts +6 -5
  214. package/lib/view/fileView/fileViewPayload.d.ts +2 -1
  215. package/lib/view/fileView/fileViewState.d.ts +2 -1
  216. package/lib/view/forecastList/forecastListPayload.d.ts +2 -1
  217. package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.d.ts +0 -7
  218. package/lib/view/globalMerchantView/epics/createGlobalMerchantEpic.js +2 -3
  219. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewReducer.d.ts +1 -1
  220. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.d.ts +0 -1
  221. package/lib/view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState.js +1 -3
  222. package/lib/view/globalMerchantView/globalMerchantViewPayload.d.ts +1 -1
  223. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.d.ts +0 -1
  224. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelector.js +1 -2
  225. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.d.ts +4 -6
  226. package/lib/view/netBurnOrIncome/netBurnOrIncomeSelectorTypes.js +1 -3
  227. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.d.ts +3 -3
  228. package/lib/view/netBurnOrIncomeClassesView/netBurnOrIncomeClassesViewSelectorTypes.js +4 -6
  229. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.d.ts +9 -11
  230. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardPayload.js +3 -4
  231. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.d.ts +0 -1
  232. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardSelectorTypes.js +1 -3
  233. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.d.ts +0 -2
  234. package/lib/view/netBurnOrIncomeStoryCard/netBurnOrIncomeStoryCardState.js +1 -5
  235. package/lib/view/notificationView/notificationViewPayload.d.ts +3 -17
  236. package/lib/view/notificationView/notificationViewState.d.ts +3 -4
  237. package/lib/view/notificationView/notificationViewState.js +7 -9
  238. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewPayload.d.ts +1 -15
  239. package/lib/view/onboardingView/cockpitView/onboardingCockpitViewState.d.ts +2 -1
  240. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.d.ts +2 -4
  241. package/lib/view/onboardingView/cockpitView/types/onboardingCockpitViewTypes.js +6 -9
  242. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.d.ts +0 -6
  243. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewEpic.js +2 -3
  244. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.d.ts +0 -8
  245. package/lib/view/onboardingView/customerView/epic/customerDetails/updateOnboardingCustomerViewLocalStoreDataEpic.js +1 -2
  246. package/lib/view/onboardingView/customerView/onboardingCustomerViewPayload.d.ts +3 -2
  247. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.d.ts +0 -6
  248. package/lib/view/onboardingView/customerView/onboardingCustomerViewSelector.js +1 -4
  249. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.d.ts +1 -2
  250. package/lib/view/onboardingView/customerView/onboardingCustomerViewState.js +5 -7
  251. package/lib/view/opEx/opExSelector.d.ts +0 -13
  252. package/lib/view/opEx/opExSelector.js +3 -4
  253. package/lib/view/opExByVendor/opExByVendorPayload.d.ts +4 -3
  254. package/lib/view/opExByVendor/opExByVendorState.d.ts +0 -1
  255. package/lib/view/opExByVendor/opExByVendorState.js +3 -3
  256. package/lib/view/opExClassesView/opExClassesViewSelectorTypes.d.ts +3 -3
  257. package/lib/view/opExClassesView/opExClassesViewSelectorTypes.js +4 -6
  258. package/lib/view/people/peopleTypes.d.ts +2 -2
  259. package/lib/view/people/peopleTypes.js +2 -4
  260. package/lib/view/profitAndLoss/profitAndLossSelector.d.ts +1 -1
  261. package/lib/view/profitAndLoss/profitAndLossSelector.js +2 -6
  262. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.d.ts +3 -2
  263. package/lib/view/profitAndLossClassesView/profitAndLossClassesViewSelectorTypes.js +1 -3
  264. package/lib/view/recommendation/recommendationPayload.d.ts +3 -2
  265. package/lib/view/referralView/referralPayload.d.ts +4 -3
  266. package/lib/view/referralView/referralState.d.ts +3 -4
  267. package/lib/view/referralView/referralState.js +5 -10
  268. package/lib/view/reimbursementCard/fetchReimbursementCardEpic.js +1 -1
  269. package/lib/view/reimbursementCard/reimbursementCardPayload.d.ts +4 -4
  270. package/lib/view/reimbursementCard/reimbursementCardState.d.ts +3 -2
  271. package/lib/view/reimbursementCard/reimbursementCardState.js +0 -2
  272. package/lib/view/revenue/revenueSelector.d.ts +0 -15
  273. package/lib/view/revenue/revenueSelector.js +1 -2
  274. package/lib/view/revenue/revenueSelectorTypes.d.ts +4 -6
  275. package/lib/view/revenue/revenueSelectorTypes.js +1 -3
  276. package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.d.ts +3 -3
  277. package/lib/view/revenueClassesView/revenueClassesViewSelectorTypes.js +4 -6
  278. package/lib/view/reviewCompanyView/reviewCompanyPayload.d.ts +2 -1
  279. package/lib/view/reviewCompanyView/reviewCompanyViewState.d.ts +0 -1
  280. package/lib/view/reviewCompanyView/reviewCompanyViewState.js +3 -3
  281. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.d.ts +0 -1
  282. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailLocalDataHelper.js +3 -3
  283. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.d.ts +7 -14
  284. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailPayload.js +8 -13
  285. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.d.ts +2 -2
  286. package/lib/view/scheduleView/scheduleDetailView/scheduleDetailTypes.js +2 -4
  287. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.d.ts +2 -28
  288. package/lib/view/scheduleView/scheduleListView/scheduleListHelper.js +4 -24
  289. package/lib/view/scheduleView/scheduleListView/scheduleListPayload.d.ts +2 -1
  290. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.d.ts +2 -4
  291. package/lib/view/scheduleView/scheduleListView/scheduleListTypes.js +7 -8
  292. package/lib/view/settingsView/epic/fetchMyProfileEpic.d.ts +0 -6
  293. package/lib/view/settingsView/epic/fetchMyProfileEpic.js +1 -3
  294. package/lib/view/settingsView/settingsViewPayload.d.ts +3 -2
  295. package/lib/view/spendManagement/billPay/billDetailView/billDetailViewPayload.d.ts +2 -1
  296. package/lib/view/spendManagement/billPay/billDetailView/epics/approveOrRejectBillEpic.js +1 -1
  297. package/lib/view/spendManagement/billPay/billDetailView/epics/cancelAndDeleteBillEpic.js +1 -1
  298. package/lib/view/spendManagement/billPay/billDetailView/epics/deleteBillEpic.js +1 -1
  299. package/lib/view/spendManagement/billPay/billDetailView/epics/fetchBillDetailEpic.js +1 -1
  300. package/lib/view/spendManagement/billPay/billList/billListSelector.d.ts +3 -4
  301. package/lib/view/spendManagement/billPay/billList/billListSelector.js +3 -5
  302. package/lib/view/spendManagement/billPay/billList/billListState.d.ts +4 -4
  303. package/lib/view/spendManagement/billPay/billList/billListState.js +3 -6
  304. package/lib/view/spendManagement/billPay/billList/fetchBillListPerTabEpic.js +1 -1
  305. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.d.ts +15 -35
  306. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigPayload.js +7 -13
  307. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigSelector.d.ts +2 -1
  308. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.d.ts +10 -15
  309. package/lib/view/spendManagement/billPay/billPayConfig/billPayConfigState.js +15 -21
  310. package/lib/view/spendManagement/billPay/billPayConfig/fetchBillPayConfigEpic.js +1 -1
  311. package/lib/view/spendManagement/billPay/billPayReview/billPayReviewPayload.d.ts +3 -2
  312. package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewPayload.d.ts +2 -1
  313. package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.d.ts +2 -2
  314. package/lib/view/spendManagement/billPay/billPaySetupView/billPaySetupViewPayload.d.ts +3 -4
  315. package/lib/view/spendManagement/billPay/billPaySetupView/types/billPayTerms.d.ts +2 -1
  316. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewPayload.d.ts +4 -3
  317. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewSelector.d.ts +2 -1
  318. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.d.ts +0 -2
  319. package/lib/view/spendManagement/billPay/billsBulkActionView/billsBulkActionViewState.js +5 -5
  320. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/approveOrRejectBillsBulkActionEpic.js +1 -1
  321. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/cancelOrDeleteBillsBulkActionEpic.js +1 -1
  322. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/reviewDraftBillsBulkActionEpic.ts.js +1 -1
  323. package/lib/view/spendManagement/billPay/billsBulkActionView/epics/submitDraftBillsBulkActionEpic.js +1 -1
  324. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.d.ts +3 -30
  325. package/lib/view/spendManagement/billPay/editBillView/editBillViewPayload.js +1 -25
  326. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.d.ts +0 -2
  327. package/lib/view/spendManagement/billPay/editBillView/editBillViewSelector.js +2 -4
  328. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.d.ts +2 -2
  329. package/lib/view/spendManagement/billPay/editBillView/editBillViewState.js +3 -4
  330. package/lib/view/spendManagement/billPay/editBillView/epics/convertAmountToHomeCurrencyEpic.js +1 -1
  331. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.d.ts +0 -8
  332. package/lib/view/spendManagement/billPay/editBillView/epics/saveBillDetailEpic.js +4 -5
  333. package/lib/view/spendManagement/billPay/internationalWire/internationalWire.d.ts +2 -1
  334. package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.d.ts +5 -10
  335. package/lib/view/spendManagement/billPay/internationalWire/internationalWirePayload.js +3 -5
  336. package/lib/view/spendManagement/billPay/magicLinkView/epics/fetchMagicLinkBillEpic.js +1 -1
  337. package/lib/view/spendManagement/billPay/magicLinkView/magicLinkViewPayload.d.ts +7 -6
  338. package/lib/view/spendManagement/billPay/previousBills/fetchPreviousBillsEpic.js +1 -1
  339. package/lib/view/spendManagement/billPay/previousBills/previousBillsState.d.ts +2 -1
  340. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailPayload.d.ts +2 -1
  341. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.d.ts +0 -11
  342. package/lib/view/spendManagement/chargeCards/cashbackDetail/cashbackDetailReducer.js +3 -5
  343. package/lib/view/spendManagement/chargeCards/chargeCardConfig/chargeCardConfigPayload.d.ts +3 -2
  344. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetail.d.ts +3 -2
  345. package/lib/view/spendManagement/chargeCards/chargeCardDetail/chargeCardDetailPayload.d.ts +3 -2
  346. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.d.ts +0 -2
  347. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardList.js +5 -5
  348. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListPayload.d.ts +2 -1
  349. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.d.ts +1 -2
  350. package/lib/view/spendManagement/chargeCards/chargeCardList/chargeCardListReducer.js +2 -3
  351. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewPayload.d.ts +2 -2
  352. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/chargeCardSetUpViewState.d.ts +0 -2
  353. package/lib/view/spendManagement/chargeCards/chargeCardSetUp/types/chargeCardTerms.d.ts +2 -1
  354. package/lib/view/spendManagement/commonHistoryView/commonHistory.d.ts +4 -3
  355. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.d.ts +5 -5
  356. package/lib/view/spendManagement/commonHistoryView/commonHistoryPayload.js +2 -3
  357. package/lib/view/spendManagement/commonHistoryView/fetchEntityHistoryEpic.js +1 -1
  358. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.d.ts +1 -5
  359. package/lib/view/spendManagement/commonSetup/epic/setup/updateBusinessVerificationDetailsEpic.js +1 -13
  360. package/lib/view/spendManagement/commonSetup/setupViewSelector.d.ts +2 -5
  361. package/lib/view/spendManagement/commonSetup/setupViewSelector.js +1 -2
  362. package/lib/view/spendManagement/commonSetup/setupViewState.d.ts +2 -3
  363. package/lib/view/spendManagement/commonSetup/setupViewState.js +2 -6
  364. package/lib/view/spendManagement/helpers.d.ts +1 -3
  365. package/lib/view/spendManagement/helpers.js +3 -5
  366. package/lib/view/spendManagement/merchantList/merchantListPayload.d.ts +2 -1
  367. package/lib/view/spendManagement/plaidAccount/epic/paymentAccounts/updateMappedCashAccountEpic.js +1 -1
  368. package/lib/view/spendManagement/plaidAccount/types/plaidConnection.d.ts +2 -1
  369. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalPayload.d.ts +2 -1
  370. package/lib/view/spendManagement/realTimeApprovalView/realTimeApprovalState.d.ts +3 -2
  371. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewPayload.d.ts +2 -2
  372. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.d.ts +2 -3
  373. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewSelector.js +1 -22
  374. package/lib/view/spendManagement/reimbursement/editRemiView/editRemiViewState.d.ts +2 -1
  375. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchCurrencyConversionValueEpic.js +1 -1
  376. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.d.ts +0 -6
  377. package/lib/view/spendManagement/reimbursement/editRemiView/epics/fetchRemiAndInitializeLocalStoreEpic.js +2 -12
  378. package/lib/view/spendManagement/reimbursement/editRemiView/epics/saveRemiDetailEpic.js +2 -2
  379. package/lib/view/spendManagement/reimbursement/reimbursementConfig/fetchReimbursementConfigEpic.js +1 -1
  380. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigPayload.d.ts +2 -1
  381. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.d.ts +0 -1
  382. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigSelector.js +1 -8
  383. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.d.ts +2 -1
  384. package/lib/view/spendManagement/reimbursement/reimbursementConfig/reimbursementConfigState.js +1 -2
  385. package/lib/view/spendManagement/reimbursement/remiDetailView/epics/approveOrRejectRemiEpic.js +1 -1
  386. package/lib/view/spendManagement/reimbursement/remiDetailView/epics/cancelAndDeleteRemiEpic.js +1 -1
  387. package/lib/view/spendManagement/reimbursement/remiDetailView/epics/deleteRemiEpic.js +1 -1
  388. package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchDuplicateReimbursementEpic.js +1 -1
  389. package/lib/view/spendManagement/reimbursement/remiDetailView/epics/fetchRemiDetailEpic.js +1 -1
  390. package/lib/view/spendManagement/reimbursement/remiDetailView/remiDetailViewPayload.d.ts +4 -3
  391. package/lib/view/spendManagement/reimbursement/remiListView/fetchRemiListPerTabEpic.js +1 -1
  392. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.d.ts +2 -2
  393. package/lib/view/spendManagement/reimbursement/remiListView/remiListState.js +3 -4
  394. package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewPayload.d.ts +2 -1
  395. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.d.ts +0 -8
  396. package/lib/view/spendManagement/reimbursement/remiSetupView/epic/remiSetup/updateRemiSetupViewLocalStoreDataEpic.js +1 -2
  397. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewPayload.d.ts +3 -2
  398. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.d.ts +1 -2
  399. package/lib/view/spendManagement/reimbursement/remiSetupView/remiSetupViewState.js +1 -3
  400. package/lib/view/spendManagement/reimbursement/remiSetupView/types/remiTerms.d.ts +3 -2
  401. package/lib/view/spendManagement/spendManagementFilterHelpers.d.ts +3 -7
  402. package/lib/view/spendManagement/spendManagementFilterHelpers.js +4 -7
  403. package/lib/view/spendManagement/zeniAccounts/checkDeposit/checkDepositEpic.js +1 -1
  404. package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/depositAccountDetailPayload.d.ts +3 -2
  405. package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountEpic.js +1 -1
  406. package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/fetchDepositAccountHistoryEpic.js +1 -1
  407. package/lib/view/spendManagement/zeniAccounts/depositAccountDetail/updateDepositAccountEpic.js +1 -1
  408. package/lib/view/spendManagement/zeniAccounts/depositAccountList/fetchDepositAccountListEpic.js +1 -1
  409. package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListPayload.d.ts +3 -2
  410. package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/depositAccountTransactionListState.d.ts +2 -1
  411. package/lib/view/spendManagement/zeniAccounts/depositAccountTransactionList/fetchDepositAccountTransactionListEpic.js +1 -1
  412. package/lib/view/spendManagement/zeniAccounts/transferDetail/fetchReviewTransferDetailEpic.js +1 -1
  413. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailPayload.d.ts +3 -2
  414. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferDetailState.d.ts +2 -1
  415. package/lib/view/spendManagement/zeniAccounts/transferDetail/transferMoneyEpic.js +1 -1
  416. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/createCheckingAccountEpic.js +1 -1
  417. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.d.ts +1 -4
  418. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListSelector.js +1 -5
  419. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.d.ts +2 -1
  420. package/lib/view/spendManagement/zeniAccounts/zeniAccountList/zeniAccountListState.js +1 -2
  421. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/types/zeniAccountTerms.d.ts +2 -1
  422. package/lib/view/spendManagement/zeniAccounts/zeniAccountSetUp/zeniAccountSetupViewPayload.d.ts +2 -2
  423. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/fetchZeniAccountsConfigEpic.js +1 -1
  424. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.d.ts +4 -4
  425. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigPayload.js +2 -3
  426. package/lib/view/spendManagement/zeniAccounts/zeniAccountsConfig/zeniAccountsConfigState.d.ts +2 -1
  427. package/lib/view/subscriptionView/subscriptionEstmiatePayload.d.ts +1 -1
  428. package/lib/view/subscriptionView/subscriptionViewPayload.d.ts +9 -8
  429. package/lib/view/subscriptionView/subscriptionViewState.d.ts +3 -2
  430. package/lib/view/subscriptionView/types/subscriptionEstmiate.d.ts +4 -3
  431. package/lib/view/subscriptionView/types/subscriptionTypes.d.ts +2 -2
  432. package/lib/view/subscriptionView/types/subscriptionTypes.js +3 -4
  433. package/lib/view/tagView/tagViewPayload.d.ts +2 -2
  434. package/lib/view/taskManager/taskDetailView/epics/archiveTaskEpic.d.ts +0 -7
  435. package/lib/view/taskManager/taskGroupView/taskGroupViewPayload.d.ts +2 -1
  436. package/lib/view/taskManager/taskListView/taskList.d.ts +2 -7
  437. package/lib/view/taskManager/taskListView/taskList.js +3 -4
  438. package/lib/view/taskManager/taskListView/taskListPayload.d.ts +2 -1
  439. package/lib/view/transactionDetail/transactionDetailPayload.d.ts +1 -1
  440. package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.d.ts +0 -8
  441. package/lib/view/transactionList/parallelFetchEntityTransactionListEpic.js +1 -2
  442. package/lib/view/transactionList/transactionListByEntitySelector.d.ts +0 -2
  443. package/lib/view/transactionList/transactionListByEntitySelector.js +1 -2
  444. package/lib/view/transactionList/transactionListPayload.d.ts +5 -4
  445. package/lib/view/transactionList/transactionListState.d.ts +5 -4
  446. package/lib/view/trend/trendPayload.d.ts +4 -3
  447. package/lib/view/trendWithTransactions/trendWithTransactionsState.d.ts +2 -1
  448. package/lib/view/twoFactorAuthentication/twoFactorAuthenticationPayload.d.ts +3 -2
  449. package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.d.ts +0 -2
  450. package/lib/view/userFinancialAccount/fetchUserFinancialAccountEpic.js +2 -3
  451. package/lib/view/userFinancialAccount/userFinancialAccountSelector.d.ts +0 -1
  452. package/lib/view/userFinancialAccount/userFinancialAccountSelector.js +2 -3
  453. package/lib/view/userListView/userListViewPayload.d.ts +2 -1
  454. package/lib/view/userRoleConfigView/userRoleConfigPayload.d.ts +2 -1
  455. package/lib/view/vendorList/vendorListPayload.d.ts +2 -5
  456. package/lib/view/vendorList/vendorListSelector.d.ts +0 -1
  457. package/lib/view/vendorList/vendorListSelector.js +1 -3
  458. package/lib/view/vendorReviewView/common/state/commonTypes.d.ts +3 -5
  459. package/lib/view/vendorReviewView/common/state/commonTypes.js +4 -26
  460. package/lib/view/vendorReviewView/vendorFirstReviewView/epics/fetchVendorFirstReviewAttachmentsEpic.d.ts +0 -3
  461. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewPayload.d.ts +3 -3
  462. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewSelector.d.ts +2 -1
  463. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.d.ts +2 -2
  464. package/lib/view/vendorReviewView/vendorFirstReviewView/vendorFirstReviewViewState.js +3 -3
  465. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.d.ts +2 -3
  466. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewPayload.js +3 -5
  467. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +0 -2
  468. package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.js +3 -5
  469. package/lib/view/vendorTypeList/vendorTypeListPayload.d.ts +2 -1
  470. package/lib/view/vendorTypeList/vendorTypeSelector.d.ts +0 -12
  471. package/lib/view/vendorTypeList/vendorTypeSelector.js +0 -11
  472. package/lib/view/zeniAccStatementList/fetchZeniAccStatementListEpic.js +2 -2
  473. package/lib/view/zeniAccStatementList/zeniAccStatementListPayload.d.ts +2 -1
  474. package/lib/view/zeniAccountsPromoCard/zeniAccountsPromoCardEpic.js +1 -1
  475. package/lib/zeniAPI.d.ts +2 -0
  476. package/package.json +5 -3
@@ -1,7 +1,5 @@
1
- import { ID } from '../../commonStateTypes/common';
2
1
  import { ActorPayload } from '../approvalRule/approvalRulePayload';
3
- import { ActorApprovalType } from '../approvalRule/approvalRuleState';
4
- import { EntityApprovalStatus, StepApprovalStatus } from './entityApprovalStatusState';
2
+ import { EntityApprovalStatus } from './entityApprovalStatusState';
5
3
  interface StepApprovalActorPayload extends ActorPayload {
6
4
  id: string;
7
5
  }
@@ -11,7 +9,7 @@ interface ActorActivityPayload extends StepApprovalActorPayload {
11
9
  description: string;
12
10
  is_recurring_auto_approve?: boolean | null;
13
11
  }
14
- export interface StepApprovalStatusPayload {
12
+ interface StepApprovalStatusPayload {
15
13
  action: string;
16
14
  operator: string;
17
15
  actors: StepApprovalActorPayload[];
@@ -45,6 +43,4 @@ export interface EntityApprovalStatusPayload {
45
43
  * Helpers
46
44
  */
47
45
  export declare const toEntityApprovalStatus: (payload: EntityApprovalStatusPayload) => EntityApprovalStatus;
48
- export declare const toEntityApprovalByUser: (payload: Record<string, string>) => Record<ID, ActorApprovalType>;
49
- export declare const toStepApprovalStatus: (payload: StepApprovalStatusPayload[]) => StepApprovalStatus[];
50
46
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toStepApprovalStatus = exports.toEntityApprovalByUser = exports.toEntityApprovalStatus = void 0;
3
+ exports.toEntityApprovalStatus = void 0;
4
4
  const zeniDayJS_1 = require("../../zeniDayJS");
5
5
  const approvalRuleState_1 = require("../approvalRule/approvalRuleState");
6
6
  const entityApprovalStatusState_1 = require("./entityApprovalStatusState");
@@ -16,9 +16,9 @@ const toEntityApprovalStatus = (payload) => {
16
16
  status: (0, entityApprovalStatusState_1.toEntityApprovalStatusCodeStrict)(payload.approval_status),
17
17
  approvalRuleId: (_a = payload.approval_rule_id) !== null && _a !== void 0 ? _a : undefined,
18
18
  approvalByUserStatus: payload.approval_by_user_status != null
19
- ? (0, exports.toEntityApprovalByUser)(payload.approval_by_user_status)
19
+ ? toEntityApprovalByUser(payload.approval_by_user_status)
20
20
  : undefined,
21
- stepsApprovalStatus: (0, exports.toStepApprovalStatus)(payload.steps_approval_status),
21
+ stepsApprovalStatus: toStepApprovalStatus(payload.steps_approval_status),
22
22
  approvalLastUpdateTime: (0, zeniDayJS_1.date)(payload.approval_last_update_time),
23
23
  createTime: (0, zeniDayJS_1.date)(payload.create_time),
24
24
  updateTime: (0, zeniDayJS_1.date)(payload.update_time),
@@ -36,7 +36,6 @@ const toEntityApprovalByUser = (payload) => {
36
36
  });
37
37
  return res;
38
38
  };
39
- exports.toEntityApprovalByUser = toEntityApprovalByUser;
40
39
  const toStepApprovalStatus = (payload) => {
41
40
  const stepApprovalStatus = [];
42
41
  payload.forEach((approvalStatus) => {
@@ -79,4 +78,3 @@ const toStepApprovalStatus = (payload) => {
79
78
  });
80
79
  return stepApprovalStatus;
81
80
  };
82
- exports.toStepApprovalStatus = toStepApprovalStatus;
@@ -4,13 +4,11 @@ import { ApprovalActionType, StepOperatorType } from '../approvalRule/approvalRu
4
4
  export declare const ALL_ENTITY_TYPES: readonly ["bill_pay", "reimbursement", "zeni_accounts", "charge_cards"];
5
5
  export declare const toEntityType: (v: string) => "bill_pay" | "reimbursement" | "zeni_accounts" | "charge_cards";
6
6
  export declare type EntityType = ReturnType<typeof toEntityType>;
7
- export declare const toEntityTypeStrict: (v: string | null) => EntityType | undefined;
8
- export declare const toEntityApprovalStatusCode: (v: string) => "pending" | "rejected" | "approved";
9
- export declare type EntityApprovalStatusCode = ReturnType<typeof toEntityApprovalStatusCode>;
7
+ declare const toEntityApprovalStatusCode: (v: string) => "pending" | "rejected" | "approved";
8
+ declare type EntityApprovalStatusCode = ReturnType<typeof toEntityApprovalStatusCode>;
10
9
  export declare const toEntityApprovalStatusCodeStrict: (v: string | null) => EntityApprovalStatusCode | undefined;
11
10
  export declare const toActivityStatus: (v: string) => "pending" | "rejected" | "approved" | "notified";
12
11
  export declare type ActivityStatus = ReturnType<typeof toActivityStatus>;
13
- export declare const toActivityStatusStrict: (v: string | null) => ActivityStatus | undefined;
14
12
  export interface Actor {
15
13
  type: string;
16
14
  userId: ID;
@@ -56,3 +54,4 @@ export interface EntityApprovalStatus {
56
54
  isRealTimeApprovalEnabled: boolean;
57
55
  currentPendingStepIndex?: number;
58
56
  }
57
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toActivityStatusStrict = exports.toActivityStatus = exports.toEntityApprovalStatusCodeStrict = exports.toEntityApprovalStatusCode = exports.toEntityTypeStrict = exports.toEntityType = exports.ALL_ENTITY_TYPES = void 0;
3
+ exports.toActivityStatus = exports.toEntityApprovalStatusCodeStrict = exports.toEntityType = exports.ALL_ENTITY_TYPES = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
5
  exports.ALL_ENTITY_TYPES = [
6
6
  'bill_pay',
@@ -10,15 +10,12 @@ exports.ALL_ENTITY_TYPES = [
10
10
  ];
11
11
  const toEntityType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_ENTITY_TYPES);
12
12
  exports.toEntityType = toEntityType;
13
- const toEntityTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', exports.ALL_ENTITY_TYPES);
14
- exports.toEntityTypeStrict = toEntityTypeStrict;
15
13
  const ALL_ENTITY_APPROVAL_STATUS_CODES = [
16
14
  'approved',
17
15
  'rejected',
18
16
  'pending',
19
17
  ];
20
18
  const toEntityApprovalStatusCode = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ENTITY_APPROVAL_STATUS_CODES);
21
- exports.toEntityApprovalStatusCode = toEntityApprovalStatusCode;
22
19
  const toEntityApprovalStatusCodeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ENTITY_APPROVAL_STATUS_CODES);
23
20
  exports.toEntityApprovalStatusCodeStrict = toEntityApprovalStatusCodeStrict;
24
21
  const ALL_ACTIVITY_STATUS = [
@@ -29,5 +26,3 @@ const ALL_ACTIVITY_STATUS = [
29
26
  ];
30
27
  const toActivityStatus = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_ACTIVITY_STATUS);
31
28
  exports.toActivityStatus = toActivityStatus;
32
- const toActivityStatusStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v !== null && v !== void 0 ? v : '', ALL_ACTIVITY_STATUS);
33
- exports.toActivityStatusStrict = toActivityStatusStrict;
@@ -21,7 +21,7 @@ export interface FilePayload {
21
21
  document_type: string;
22
22
  update_userid?: string | null;
23
23
  }
24
- export interface ImageFilePayload {
24
+ interface ImageFilePayload {
25
25
  file_location: string;
26
26
  height: number;
27
27
  signed_url: string;
@@ -34,3 +34,4 @@ export interface AttachmentFilePayload {
34
34
  name: string;
35
35
  id: ID;
36
36
  }
37
+ export {};
@@ -27,7 +27,7 @@ export interface File {
27
27
  documentType: AllowedDocumentType;
28
28
  updateUserId?: ID;
29
29
  }
30
- export interface ImageFile {
30
+ interface ImageFile {
31
31
  fileLocation: string;
32
32
  height: number;
33
33
  signedUrl: ZeniUrl;
@@ -43,35 +43,21 @@ export interface AttachmentFile {
43
43
  fileName: string;
44
44
  }
45
45
  export declare type FileSizeUnit = 'bytes';
46
- export declare const SUPPORTED_FILE_TYPES: readonly ["application/pdf", "image/jpeg", "image/jpg", "image/png", "image/bmp", "image/heic", "text/html", "text/csv", "text/plain"];
47
- export declare const toSupportedFileType: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain";
46
+ declare const toSupportedFileType: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain";
48
47
  export declare const toSupportedFileTypeStrict: (v: string) => "text/html" | "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/csv" | "text/plain" | undefined;
49
48
  export declare type SupportedFileType = ReturnType<typeof toSupportedFileType>;
50
- export declare const SUPPORTED_FILE_FORMATS: readonly [".pdf", ".jpeg", ".jpg", ".bmp", ".heic", ".png", ".csv", ".txt"];
51
- export declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt";
52
- export declare const toSupportedFileFormatTypeStrict: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt" | undefined;
49
+ declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt";
53
50
  export declare type SupportedFileFormatType = ReturnType<typeof toSupportedFileFormatType>;
54
51
  export declare const SUPPORTED_ATTACHMENT_FILE_TYPES: readonly ["application/pdf", "image/jpeg", "image/jpg", "image/png", "text/plain", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
55
52
  export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
56
- export declare const toSupportedAttachmentFileTypeStrict: (v: string) => "application/pdf" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | undefined;
57
53
  export declare type SupportedAttachmentFileType = ReturnType<typeof toSupportedAttachmentFileType>;
58
- export declare const SUPPORTED_ATTACHMENT_FILE_FORMATS: readonly [".pdf", ".jpeg", ".jpg", ".png", ".txt", ".xls", ".xlsx"];
59
54
  export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx";
60
- export declare const toSupportedAttachmentFileFormatTypeStrict: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx" | undefined;
61
- export declare type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
62
- export declare const ALLOWED_DOCUMENT_TYPES: readonly ["1099_C", "address_verification", "bill_pay", "certificate_of_incorporation", "check", "contract", "driving_license", "employer_identification_number_confirmation", "id_document", "others", "passport", "purchase_order", "social_security_card", "tax_ein", "w4", "w9"];
55
+ declare type SupportedAttachmentFileFormatType = ReturnType<typeof toSupportedAttachmentFileFormatType>;
63
56
  export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9";
64
57
  export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "check" | "others" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | undefined;
65
58
  export declare type AllowedDocumentType = ReturnType<typeof toAllowedDocumentType>;
66
- export declare const ALLOWED_PURPOSE_IDS: readonly ["personal_identity", "business_verification", "personal_identity_others", "business_verification_others", "bill_pay", "others"];
67
- export declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "others";
68
- export declare const toAllowedPurposeIdTypeStrict: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "others" | undefined;
59
+ declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "others";
69
60
  export declare type AllowedPurposeIdType = ReturnType<typeof toAllowedPurposeIdType>;
70
- export declare const ALLOWED_DOCUMENT_SIDES: readonly ["front", "back"];
71
- export declare const toAllowedDocumentSideType: (v: string) => "front" | "back";
72
- export declare const toAllowedDocumentSideTypeStrict: (v: string) => "front" | "back" | undefined;
61
+ declare const toAllowedDocumentSideType: (v: string) => "front" | "back";
73
62
  export declare type AllowedDocumentSideType = ReturnType<typeof toAllowedDocumentSideType>;
74
- export declare const ALLOWED_IMAGE_SIZE_TYPE: readonly ["thumbnail", "original"];
75
- export declare const toAllowedImageSizeType: (v: string) => "thumbnail" | "original";
76
- export declare const toAllowedImageSizeTypeStrict: (v: string) => "thumbnail" | "original" | undefined;
77
- export declare type AllowedImageSizeType = ReturnType<typeof toAllowedImageSizeType>;
63
+ export {};
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toAllowedImageSizeTypeStrict = exports.toAllowedImageSizeType = exports.ALLOWED_IMAGE_SIZE_TYPE = exports.toAllowedDocumentSideTypeStrict = exports.toAllowedDocumentSideType = exports.ALLOWED_DOCUMENT_SIDES = exports.toAllowedPurposeIdTypeStrict = exports.toAllowedPurposeIdType = exports.ALLOWED_PURPOSE_IDS = exports.toAllowedDocumentTypeStrict = exports.toAllowedDocumentType = exports.ALLOWED_DOCUMENT_TYPES = exports.toSupportedAttachmentFileFormatTypeStrict = exports.toSupportedAttachmentFileFormatType = exports.SUPPORTED_ATTACHMENT_FILE_FORMATS = exports.toSupportedAttachmentFileTypeStrict = exports.toSupportedAttachmentFileType = exports.SUPPORTED_ATTACHMENT_FILE_TYPES = exports.toSupportedFileFormatTypeStrict = exports.toSupportedFileFormatType = exports.SUPPORTED_FILE_FORMATS = exports.toSupportedFileTypeStrict = exports.toSupportedFileType = exports.SUPPORTED_FILE_TYPES = void 0;
3
+ exports.toAllowedDocumentTypeStrict = exports.toAllowedDocumentType = exports.toSupportedAttachmentFileFormatType = exports.toSupportedAttachmentFileType = exports.SUPPORTED_ATTACHMENT_FILE_TYPES = exports.toSupportedFileTypeStrict = void 0;
4
4
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
- exports.SUPPORTED_FILE_TYPES = [
5
+ const SUPPORTED_FILE_TYPES = [
6
6
  'application/pdf',
7
7
  'image/jpeg',
8
8
  'image/jpg',
@@ -13,11 +13,10 @@ exports.SUPPORTED_FILE_TYPES = [
13
13
  'text/csv',
14
14
  'text/plain',
15
15
  ];
16
- const toSupportedFileType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUPPORTED_FILE_TYPES);
17
- exports.toSupportedFileType = toSupportedFileType;
18
- const toSupportedFileTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.SUPPORTED_FILE_TYPES);
16
+ const toSupportedFileType = (v) => (0, stringToUnion_1.stringToUnion)(v, SUPPORTED_FILE_TYPES);
17
+ const toSupportedFileTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, SUPPORTED_FILE_TYPES);
19
18
  exports.toSupportedFileTypeStrict = toSupportedFileTypeStrict;
20
- exports.SUPPORTED_FILE_FORMATS = [
19
+ const SUPPORTED_FILE_FORMATS = [
21
20
  '.pdf',
22
21
  '.jpeg',
23
22
  '.jpg',
@@ -27,10 +26,7 @@ exports.SUPPORTED_FILE_FORMATS = [
27
26
  '.csv',
28
27
  '.txt',
29
28
  ];
30
- const toSupportedFileFormatType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUPPORTED_FILE_FORMATS);
31
- exports.toSupportedFileFormatType = toSupportedFileFormatType;
32
- const toSupportedFileFormatTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.SUPPORTED_FILE_FORMATS);
33
- exports.toSupportedFileFormatTypeStrict = toSupportedFileFormatTypeStrict;
29
+ const toSupportedFileFormatType = (v) => (0, stringToUnion_1.stringToUnion)(v, SUPPORTED_FILE_FORMATS);
34
30
  exports.SUPPORTED_ATTACHMENT_FILE_TYPES = [
35
31
  'application/pdf',
36
32
  'image/jpeg',
@@ -42,9 +38,7 @@ exports.SUPPORTED_ATTACHMENT_FILE_TYPES = [
42
38
  ];
43
39
  const toSupportedAttachmentFileType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUPPORTED_ATTACHMENT_FILE_TYPES);
44
40
  exports.toSupportedAttachmentFileType = toSupportedAttachmentFileType;
45
- const toSupportedAttachmentFileTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.SUPPORTED_ATTACHMENT_FILE_TYPES);
46
- exports.toSupportedAttachmentFileTypeStrict = toSupportedAttachmentFileTypeStrict;
47
- exports.SUPPORTED_ATTACHMENT_FILE_FORMATS = [
41
+ const SUPPORTED_ATTACHMENT_FILE_FORMATS = [
48
42
  '.pdf',
49
43
  '.jpeg',
50
44
  '.jpg',
@@ -53,11 +47,9 @@ exports.SUPPORTED_ATTACHMENT_FILE_FORMATS = [
53
47
  '.xls',
54
48
  '.xlsx',
55
49
  ];
56
- const toSupportedAttachmentFileFormatType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.SUPPORTED_ATTACHMENT_FILE_FORMATS);
50
+ const toSupportedAttachmentFileFormatType = (v) => (0, stringToUnion_1.stringToUnion)(v, SUPPORTED_ATTACHMENT_FILE_FORMATS);
57
51
  exports.toSupportedAttachmentFileFormatType = toSupportedAttachmentFileFormatType;
58
- const toSupportedAttachmentFileFormatTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.SUPPORTED_ATTACHMENT_FILE_FORMATS);
59
- exports.toSupportedAttachmentFileFormatTypeStrict = toSupportedAttachmentFileFormatTypeStrict;
60
- exports.ALLOWED_DOCUMENT_TYPES = [
52
+ const ALLOWED_DOCUMENT_TYPES = [
61
53
  '1099_C',
62
54
  'address_verification',
63
55
  'bill_pay',
@@ -75,11 +67,11 @@ exports.ALLOWED_DOCUMENT_TYPES = [
75
67
  'w4',
76
68
  'w9',
77
69
  ];
78
- const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALLOWED_DOCUMENT_TYPES);
70
+ const toAllowedDocumentType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_TYPES);
79
71
  exports.toAllowedDocumentType = toAllowedDocumentType;
80
- const toAllowedDocumentTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALLOWED_DOCUMENT_TYPES);
72
+ const toAllowedDocumentTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALLOWED_DOCUMENT_TYPES);
81
73
  exports.toAllowedDocumentTypeStrict = toAllowedDocumentTypeStrict;
82
- exports.ALLOWED_PURPOSE_IDS = [
74
+ const ALLOWED_PURPOSE_IDS = [
83
75
  'personal_identity',
84
76
  'business_verification',
85
77
  'personal_identity_others',
@@ -87,17 +79,6 @@ exports.ALLOWED_PURPOSE_IDS = [
87
79
  'bill_pay',
88
80
  'others',
89
81
  ];
90
- const toAllowedPurposeIdType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALLOWED_PURPOSE_IDS);
91
- exports.toAllowedPurposeIdType = toAllowedPurposeIdType;
92
- const toAllowedPurposeIdTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALLOWED_PURPOSE_IDS);
93
- exports.toAllowedPurposeIdTypeStrict = toAllowedPurposeIdTypeStrict;
94
- exports.ALLOWED_DOCUMENT_SIDES = ['front', 'back'];
95
- const toAllowedDocumentSideType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALLOWED_DOCUMENT_SIDES);
96
- exports.toAllowedDocumentSideType = toAllowedDocumentSideType;
97
- const toAllowedDocumentSideTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALLOWED_DOCUMENT_SIDES);
98
- exports.toAllowedDocumentSideTypeStrict = toAllowedDocumentSideTypeStrict;
99
- exports.ALLOWED_IMAGE_SIZE_TYPE = ['thumbnail', 'original'];
100
- const toAllowedImageSizeType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALLOWED_IMAGE_SIZE_TYPE);
101
- exports.toAllowedImageSizeType = toAllowedImageSizeType;
102
- const toAllowedImageSizeTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALLOWED_IMAGE_SIZE_TYPE);
103
- exports.toAllowedImageSizeTypeStrict = toAllowedImageSizeTypeStrict;
82
+ const toAllowedPurposeIdType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_PURPOSE_IDS);
83
+ const ALLOWED_DOCUMENT_SIDES = ['front', 'back'];
84
+ const toAllowedDocumentSideType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALLOWED_DOCUMENT_SIDES);
@@ -3,7 +3,7 @@ import { ZeniUrl as Url } from '../../zeniUrl';
3
3
  export declare const toEntityType: (v?: string | undefined) => "vendor" | "customer" | "merchant";
4
4
  export declare type EntityType = NonNullable<ReturnType<typeof toEntityType>>;
5
5
  export declare const toEntityDetailType: (v: string) => "card_merchant" | "bank_merchant";
6
- export declare type EntityDetailType = ReturnType<typeof toEntityDetailType>;
6
+ declare type EntityDetailType = ReturnType<typeof toEntityDetailType>;
7
7
  export interface Entity {
8
8
  id: ID;
9
9
  name: string;
@@ -14,3 +14,4 @@ export interface Entity {
14
14
  zeniId: ID;
15
15
  qboId: ID;
16
16
  }
17
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { URLPayload } from '../../commonPayloadTypes/urlPayload';
2
- import { GlobalMerchantBase, TenantMerchant, GlobalMerchant, GlobalMerchantTenantMetaData } from './globalMerchantState';
2
+ import { GlobalMerchantBase, TenantMerchant, GlobalMerchant } from './globalMerchantState';
3
3
  import { CurrencyPayload } from '../../commonPayloadTypes/v2/viewAndReportPayloadv2';
4
4
  import { UserBasePayload } from '../user/userPayload';
5
5
  export interface GlobalMerchantBasePayload {
@@ -56,10 +56,7 @@ export interface TenantMerchantPayload {
56
56
  * helpers
57
57
  */
58
58
  export declare const toGlobalMerchantBasePayload: (globalMerchant: GlobalMerchantBase) => GlobalMerchantBasePayload;
59
- export declare const toGlobalMerchantPayload: (globalMerchant: GlobalMerchant) => GlobalMerchantPayload;
60
59
  export declare const toGlobalMerchantBase: (globalMerchantPayload: GlobalMerchantBasePayload) => GlobalMerchantBase;
61
60
  export declare const toGlobalMerchant: (globalMerchantPayload: GlobalMerchantPayload) => GlobalMerchant;
62
- export declare const toTenantMetaData: (tenantMetaDataPayload: TenantMetaDataPayload) => GlobalMerchantTenantMetaData;
63
- export declare const toTenantMetaDataPayload: (globalMerchantTenantMetaData: GlobalMerchantTenantMetaData) => TenantMetaDataPayload;
64
61
  export declare const toTenantMerchant: (tenantMerchantPayload: TenantMerchantPayload) => TenantMerchant;
65
62
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toTenantMerchant = exports.toTenantMetaDataPayload = exports.toTenantMetaData = exports.toGlobalMerchant = exports.toGlobalMerchantBase = exports.toGlobalMerchantPayload = exports.toGlobalMerchantBasePayload = void 0;
3
+ exports.toTenantMerchant = exports.toGlobalMerchant = exports.toGlobalMerchantBase = exports.toGlobalMerchantBasePayload = void 0;
4
4
  const globalMerchantAutoCompleteViewState_1 = require("../../view/globalMerchantView/globalMerchantAutoCompleteView/globalMerchantAutoCompleteViewState");
5
5
  const zeniUrl_1 = require("../../zeniUrl");
6
6
  const zeniDayJS_1 = require("../../zeniDayJS");
@@ -34,23 +34,6 @@ const toGlobalMerchantBasePayload = (globalMerchant) => {
34
34
  return payload;
35
35
  };
36
36
  exports.toGlobalMerchantBasePayload = toGlobalMerchantBasePayload;
37
- const toGlobalMerchantPayload = (globalMerchant) => {
38
- var _a, _b, _c, _d, _e, _f;
39
- return Object.assign(Object.assign({}, (0, exports.toGlobalMerchantBasePayload)(globalMerchant)), { created_by_user_id: (_a = globalMerchant.createdByUserId) !== null && _a !== void 0 ? _a : null, legal_name: (_b = globalMerchant.legalName) !== null && _b !== void 0 ? _b : null, is_reviewed: globalMerchant.isReviewed, display_name: (_c = globalMerchant.displayName) !== null && _c !== void 0 ? _c : null, source: (_d = globalMerchant.source) !== null && _d !== void 0 ? _d : null, merchant_name_lower_case: globalMerchant.globalMerchantNameInLowerCase, tenant_metadata: globalMerchant.tenantMetadata != null
40
- ? (0, exports.toTenantMetaDataPayload)(globalMerchant.tenantMetadata)
41
- : null, currency: globalMerchant.currency != null
42
- ? {
43
- currency_code: globalMerchant.currency.currencyCode,
44
- currency_symbol: globalMerchant.currency.currencySymbol,
45
- }
46
- : null, merchant_insights: (_e = globalMerchant.merchantInsights) !== null && _e !== void 0 ? _e : null, remarks: (_f = globalMerchant.remarks) !== null && _f !== void 0 ? _f : null, other_attributes: globalMerchant.otherAttributes != null
47
- ? {
48
- labels: globalMerchant.otherAttributes.labels,
49
- location: globalMerchant.otherAttributes.location,
50
- }
51
- : null });
52
- };
53
- exports.toGlobalMerchantPayload = toGlobalMerchantPayload;
54
37
  const toGlobalMerchantBase = (globalMerchantPayload) => {
55
38
  var _a, _b, _c, _d, _e;
56
39
  return {
@@ -80,7 +63,7 @@ exports.toGlobalMerchantBase = toGlobalMerchantBase;
80
63
  const toGlobalMerchant = (globalMerchantPayload) => {
81
64
  var _a, _b, _c, _d, _e, _f;
82
65
  return Object.assign(Object.assign({}, (0, exports.toGlobalMerchantBase)(globalMerchantPayload)), { globalMerchantNameInLowerCase: globalMerchantPayload.merchant_name_lower_case, isReviewed: globalMerchantPayload.is_reviewed, tenantMetadata: globalMerchantPayload.tenant_metadata != null
83
- ? (0, exports.toTenantMetaData)(globalMerchantPayload.tenant_metadata)
66
+ ? toTenantMetaData(globalMerchantPayload.tenant_metadata)
84
67
  : undefined, createdUserId: (_a = globalMerchantPayload.created_by_user_id) !== null && _a !== void 0 ? _a : undefined, legalName: (_b = globalMerchantPayload.legal_name) !== null && _b !== void 0 ? _b : undefined, remarks: (_c = globalMerchantPayload.remarks) !== null && _c !== void 0 ? _c : undefined, displayName: (_d = globalMerchantPayload.display_name) !== null && _d !== void 0 ? _d : undefined, otherAttributes: globalMerchantPayload.other_attributes != null
85
68
  ? {
86
69
  labels: globalMerchantPayload.other_attributes.labels,
@@ -102,19 +85,6 @@ const toTenantMetaData = (tenantMetaDataPayload) => {
102
85
  remarks: tenantMetaDataPayload.remarks,
103
86
  };
104
87
  };
105
- exports.toTenantMetaData = toTenantMetaData;
106
- const toTenantMetaDataPayload = (globalMerchantTenantMetaData) => {
107
- return {
108
- tenant_id: globalMerchantTenantMetaData.tenantId,
109
- zeni_vendor_id: globalMerchantTenantMetaData.zeniVendorId,
110
- qbo_vendor_id: globalMerchantTenantMetaData.qboVendorId,
111
- vendor_name: globalMerchantTenantMetaData.vendorName,
112
- requestor_email: globalMerchantTenantMetaData.requestorEmail,
113
- requestor_user_id: globalMerchantTenantMetaData.requestorUserId,
114
- remarks: globalMerchantTenantMetaData.remarks,
115
- };
116
- };
117
- exports.toTenantMetaDataPayload = toTenantMetaDataPayload;
118
88
  const toTenantMerchant = (tenantMerchantPayload) => {
119
89
  var _a, _b, _c;
120
90
  return {
@@ -24,7 +24,7 @@ export interface GlobalMerchantTenantMetaData {
24
24
  requestorUserId: ID;
25
25
  remarks: string;
26
26
  }
27
- export interface OtherAttributes {
27
+ interface OtherAttributes {
28
28
  labels: string;
29
29
  location: string;
30
30
  }
@@ -60,3 +60,4 @@ export interface GlobalMerchantState {
60
60
  }
61
61
  export declare function getTenantMerchantKey(tenantId: ID, merchantId: ID): `${string}-${string}`;
62
62
  export declare type TenantMerchantKey = ReturnType<typeof getTenantMerchantKey>;
63
+ export {};
@@ -1,10 +1,9 @@
1
1
  import { UpdateType } from '../../commonStateTypes/common';
2
2
  import { InsightPayload } from './insightPayload';
3
- import { InsightState, Insight } from './insightState';
3
+ import { InsightState } from './insightState';
4
4
  export declare const initialState: InsightState;
5
5
  export declare const updateInsights: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: InsightPayload[], updateType?: UpdateType | undefined], InsightPayload[], string, never, {
6
6
  updateType: UpdateType;
7
7
  }>, clearAllInsights: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
8
8
  declare const _default: import("@reduxjs/toolkit").Reducer<InsightState, import("@reduxjs/toolkit").AnyAction>;
9
9
  export default _default;
10
- export declare const mapInsightPayloadtoInsightsState: (payload: InsightPayload) => Insight;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.mapInsightPayloadtoInsightsState = exports.clearAllInsights = exports.updateInsights = exports.initialState = void 0;
7
+ exports.clearAllInsights = exports.updateInsights = exports.initialState = void 0;
8
8
  const toolkit_1 = require("@reduxjs/toolkit");
9
9
  const zeniUrl_1 = require("../../zeniUrl");
10
10
  const zeniDayJS_1 = require("../../zeniDayJS");
@@ -36,7 +36,7 @@ exports.default = insights.reducer;
36
36
  */
37
37
  function doUpdateInsights(draft, payload, updateType) {
38
38
  payload.forEach((insightPayload) => {
39
- const latestInsight = (0, exports.mapInsightPayloadtoInsightsState)(insightPayload);
39
+ const latestInsight = mapInsightPayloadtoInsightsState(insightPayload);
40
40
  if (latestInsight.insightId in draft && updateType === 'merge') {
41
41
  (0, assignWith_1.default)(draft[latestInsight.insightId], latestInsight, (objValue, srcValue) => (srcValue == null ? objValue : srcValue));
42
42
  }
@@ -57,7 +57,6 @@ const mapInsightPayloadtoInsightsState = (payload) => {
57
57
  icon: (0, zeniUrl_1.toZeniUrl)((_c = (_b = payload.icon) === null || _b === void 0 ? void 0 : _b.url) !== null && _c !== void 0 ? _c : ''),
58
58
  });
59
59
  };
60
- exports.mapInsightPayloadtoInsightsState = mapInsightPayloadtoInsightsState;
61
60
  const mapChangePayloadToChange = (changePayload) => {
62
61
  var _a;
63
62
  return {
@@ -17,5 +17,6 @@ export interface Insight {
17
17
  export interface InsightState {
18
18
  insightsByID: Record<ID, Insight>;
19
19
  }
20
- export declare const toInsightType: (v: string) => "operating_expenses" | "revenue" | "cash_position" | "cash_in_cash_out" | "cost_of_sales" | "charge_card_cashback";
20
+ declare const toInsightType: (v: string) => "operating_expenses" | "revenue" | "cash_position" | "cash_in_cash_out" | "cost_of_sales" | "charge_card_cashback";
21
21
  export declare type InsightType = ReturnType<typeof toInsightType>;
22
+ export {};
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toInsightType = void 0;
4
3
  const stringToUnion_1 = require("../../commonStateTypes/stringToUnion");
5
4
  /**
6
5
  * InsightType is used to show the list of reports we will have as part of insights card.
@@ -15,4 +14,3 @@ const ALL_INSIGHT_TYPES = [
15
14
  'charge_card_cashback',
16
15
  ];
17
16
  const toInsightType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_INSIGHT_TYPES);
18
- exports.toInsightType = toInsightType;
@@ -6,7 +6,7 @@ import { ScheduleTransactionPayload } from '../transaction/payloadTypes/schedule
6
6
  import { TransactionCategory } from '../transaction/stateTypes/transactionType';
7
7
  import { UserPayload } from '../user/userPayload';
8
8
  import { VendorPayload } from '../vendor/vendorPayload';
9
- import { JEScheduleOtherAttributes, JEScheduledTransactionState, ScheduledJournalEntryState } from './jeSchedulesState';
9
+ import { JEScheduledTransactionState, ScheduledJournalEntryState } from './jeSchedulesState';
10
10
  import { JEScheduleKey } from './jeSchedulesTypes';
11
11
  export interface JEScheduleOtherAttributesPayload {
12
12
  asset_id?: string | null;
@@ -56,5 +56,4 @@ export declare function toScheduledJournalEntryState(payload: ScheduledJournalEn
56
56
  export declare function toJEAccountPayload(payload: JEScheduledTransactionPayload, type: TransactionCategory): AccountPayload | undefined;
57
57
  export declare function toJEClassPayload(payload: JEScheduledTransactionPayload, type: TransactionCategory): ClassBasePayload | undefined;
58
58
  export declare function getTransactionDetailKeyPayload(payload: ScheduleTransactionPayload): JEScheduleKey;
59
- export declare function toJEScheduleOtherAttributes(payload: JEScheduleOtherAttributesPayload): JEScheduleOtherAttributes;
60
59
  export declare function toJEScheduledTransaction(payload: JEScheduledTransactionPayload): JEScheduledTransactionState;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toJEScheduledTransaction = exports.toJEScheduleOtherAttributes = exports.getTransactionDetailKeyPayload = exports.toJEClassPayload = exports.toJEAccountPayload = exports.toScheduledJournalEntryState = void 0;
3
+ exports.toJEScheduledTransaction = exports.getTransactionDetailKeyPayload = exports.toJEClassPayload = exports.toJEAccountPayload = exports.toScheduledJournalEntryState = void 0;
4
4
  const amount_1 = require("../../commonStateTypes/amount");
5
5
  const timePeriod_1 = require("../../commonStateTypes/timePeriod");
6
6
  const transactionDetailState_1 = require("../../view/transactionDetail/transactionDetailState");
@@ -101,7 +101,6 @@ function toJEScheduleOtherAttributes(payload) {
101
101
  assetId: (_a = payload.asset_id) !== null && _a !== void 0 ? _a : undefined,
102
102
  };
103
103
  }
104
- exports.toJEScheduleOtherAttributes = toJEScheduleOtherAttributes;
105
104
  function toJEScheduledTransaction(payload) {
106
105
  var _a, _b, _c, _d, _e, _f;
107
106
  return {
@@ -1,8 +1,9 @@
1
1
  import { User } from '../../user/userState';
2
2
  import { NotificationEventData, Notification } from './notificationStateTypes';
3
- export interface NotificationEventDataWithAuthors extends Omit<NotificationEventData, 'authorIds'> {
3
+ interface NotificationEventDataWithAuthors extends Omit<NotificationEventData, 'authorIds'> {
4
4
  authors: User[];
5
5
  }
6
6
  export interface NotificationWithAuthors extends Omit<Notification, 'eventData'> {
7
7
  eventData: NotificationEventDataWithAuthors;
8
8
  }
9
+ export {};
@@ -1,26 +1,16 @@
1
1
  import { ID } from '../../../commonStateTypes/common';
2
- export declare const ALL_NOTIFICATION_GROUPS: readonly ["task_manager"];
3
2
  export declare const toNotificationGroup: (v: string) => "task_manager";
4
- export declare const toNotificationGroupStrict: (v: string) => "task_manager" | undefined;
5
3
  export declare type NotificationGroup = ReturnType<typeof toNotificationGroup>;
6
- export declare const ALL_NOTIFICATION_STATUSES: readonly ["read", "unread"];
7
4
  export declare const toNotificationStatus: (v: string) => "read" | "unread";
8
- export declare const toNotificationStatusStrict: (v: string) => "read" | "unread" | undefined;
9
5
  export declare type NotificationStatus = ReturnType<typeof toNotificationStatus>;
10
- export declare const ALL_NOTIFICATION_MODES: readonly ["dashboard", "email"];
11
6
  export declare const toNotificationMode: (v: string) => "dashboard" | "email";
12
7
  export declare const toNotificationModeStrict: (v: string) => "dashboard" | "email" | undefined;
13
8
  export declare type NotificationMode = ReturnType<typeof toNotificationMode>;
14
- export declare const ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES: readonly ["task_assigned", "task_status_updated", "task_activities", "task_created", "task_deleted", "task_archived", "task_due", "task_overdue"];
15
- export declare const ALL_NOTIFICATION_ACTIVITY_TYPES: readonly ["task_assigned", "task_status_updated", "task_activities", "task_created", "task_deleted", "task_archived", "task_due", "task_overdue"];
16
9
  export declare const toNotificationActivityType: (v: string) => "task_assigned" | "task_status_updated" | "task_activities" | "task_created" | "task_deleted" | "task_archived" | "task_due" | "task_overdue";
17
- export declare const toNotificationActivityTypeStrict: (v: string) => "task_assigned" | "task_status_updated" | "task_activities" | "task_created" | "task_deleted" | "task_archived" | "task_due" | "task_overdue" | undefined;
18
10
  export declare type NotificationActivityType = ReturnType<typeof toNotificationActivityType>;
19
- export declare const ALL_NOTIFICATION_UPDATE_VALUE_TYPES: readonly ["string", "list", "code_name_pair"];
20
11
  export declare const toNotificationUpdateValueType: (v: string) => "string" | "list" | "code_name_pair";
21
- export declare const toNotificationUpdateValueTypeStrict: (v: string) => "string" | "list" | "code_name_pair" | undefined;
22
12
  export declare type NotificationUpdateValue = ReturnType<typeof toNotificationUpdateValueType>;
23
- export declare const getNotificationIdentifier: (notificationGroup: NotificationGroup, notificationType: NotificationActivityType) => "task_manager.task_assigned.notification" | "task_manager.task_status_updated.notification" | "task_manager.task_activities.notification" | "task_manager.task_created.notification" | "task_manager.task_deleted.notification" | "task_manager.task_archived.notification" | "task_manager.task_due.notification" | "task_manager.task_overdue.notification";
13
+ declare const getNotificationIdentifier: (notificationGroup: NotificationGroup, notificationType: NotificationActivityType) => "task_manager.task_assigned.notification" | "task_manager.task_status_updated.notification" | "task_manager.task_activities.notification" | "task_manager.task_created.notification" | "task_manager.task_deleted.notification" | "task_manager.task_archived.notification" | "task_manager.task_due.notification" | "task_manager.task_overdue.notification";
24
14
  export declare type NotificationIdentifierType = ReturnType<typeof getNotificationIdentifier>;
25
15
  export declare const toNotificationIdentifier: (notification_identifier: string) => NotificationIdentifierType;
26
16
  export interface CustomNotificationData {
@@ -29,3 +19,4 @@ export interface CustomNotificationData {
29
19
  timeStamp: Date;
30
20
  notification: string;
31
21
  }
22
+ export {};
@@ -1,23 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toNotificationIdentifier = exports.getNotificationIdentifier = exports.toNotificationUpdateValueTypeStrict = exports.toNotificationUpdateValueType = exports.ALL_NOTIFICATION_UPDATE_VALUE_TYPES = exports.toNotificationActivityTypeStrict = exports.toNotificationActivityType = exports.ALL_NOTIFICATION_ACTIVITY_TYPES = exports.ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES = exports.toNotificationModeStrict = exports.toNotificationMode = exports.ALL_NOTIFICATION_MODES = exports.toNotificationStatusStrict = exports.toNotificationStatus = exports.ALL_NOTIFICATION_STATUSES = exports.toNotificationGroupStrict = exports.toNotificationGroup = exports.ALL_NOTIFICATION_GROUPS = void 0;
3
+ exports.toNotificationIdentifier = exports.toNotificationUpdateValueType = exports.toNotificationActivityType = exports.toNotificationModeStrict = exports.toNotificationMode = exports.toNotificationStatus = exports.toNotificationGroup = void 0;
4
4
  const stringToUnion_1 = require("../../../commonStateTypes/stringToUnion");
5
- exports.ALL_NOTIFICATION_GROUPS = ['task_manager'];
6
- const toNotificationGroup = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_GROUPS);
5
+ const ALL_NOTIFICATION_GROUPS = ['task_manager'];
6
+ const toNotificationGroup = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_GROUPS);
7
7
  exports.toNotificationGroup = toNotificationGroup;
8
- const toNotificationGroupStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_GROUPS);
9
- exports.toNotificationGroupStrict = toNotificationGroupStrict;
10
- exports.ALL_NOTIFICATION_STATUSES = ['read', 'unread'];
11
- const toNotificationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_STATUSES);
8
+ const ALL_NOTIFICATION_STATUSES = ['read', 'unread'];
9
+ const toNotificationStatus = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_STATUSES);
12
10
  exports.toNotificationStatus = toNotificationStatus;
13
- const toNotificationStatusStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_STATUSES);
14
- exports.toNotificationStatusStrict = toNotificationStatusStrict;
15
- exports.ALL_NOTIFICATION_MODES = ['dashboard', 'email'];
16
- const toNotificationMode = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_MODES);
11
+ const ALL_NOTIFICATION_MODES = ['dashboard', 'email'];
12
+ const toNotificationMode = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_MODES);
17
13
  exports.toNotificationMode = toNotificationMode;
18
- const toNotificationModeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_MODES);
14
+ const toNotificationModeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, ALL_NOTIFICATION_MODES);
19
15
  exports.toNotificationModeStrict = toNotificationModeStrict;
20
- exports.ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES = [
16
+ const ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES = [
21
17
  'task_assigned',
22
18
  'task_status_updated',
23
19
  'task_activities',
@@ -27,24 +23,19 @@ exports.ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES = [
27
23
  'task_due',
28
24
  'task_overdue',
29
25
  ];
30
- exports.ALL_NOTIFICATION_ACTIVITY_TYPES = [
31
- ...exports.ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES, // We'll add more feature based lists here
26
+ const ALL_NOTIFICATION_ACTIVITY_TYPES = [
27
+ ...ALL_TASK_MANAGER_NOTIFICATION_ACTIVITY_TYPES, // We'll add more feature based lists here
32
28
  ];
33
- const toNotificationActivityType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_ACTIVITY_TYPES);
29
+ const toNotificationActivityType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_ACTIVITY_TYPES);
34
30
  exports.toNotificationActivityType = toNotificationActivityType;
35
- const toNotificationActivityTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_ACTIVITY_TYPES);
36
- exports.toNotificationActivityTypeStrict = toNotificationActivityTypeStrict;
37
- exports.ALL_NOTIFICATION_UPDATE_VALUE_TYPES = [
31
+ const ALL_NOTIFICATION_UPDATE_VALUE_TYPES = [
38
32
  'string',
39
33
  'list',
40
34
  'code_name_pair',
41
35
  ];
42
- const toNotificationUpdateValueType = (v) => (0, stringToUnion_1.stringToUnion)(v, exports.ALL_NOTIFICATION_UPDATE_VALUE_TYPES);
36
+ const toNotificationUpdateValueType = (v) => (0, stringToUnion_1.stringToUnion)(v, ALL_NOTIFICATION_UPDATE_VALUE_TYPES);
43
37
  exports.toNotificationUpdateValueType = toNotificationUpdateValueType;
44
- const toNotificationUpdateValueTypeStrict = (v) => (0, stringToUnion_1.stringToUnionStrict)(v, exports.ALL_NOTIFICATION_UPDATE_VALUE_TYPES);
45
- exports.toNotificationUpdateValueTypeStrict = toNotificationUpdateValueTypeStrict;
46
38
  const getNotificationIdentifier = (notificationGroup, notificationType) => `${notificationGroup}.${notificationType}.notification`;
47
- exports.getNotificationIdentifier = getNotificationIdentifier;
48
39
  const toNotificationIdentifier = (notification_identifier // Expected format from platform is - {notification_group}.{notification_type}.notification
49
40
  ) => {
50
41
  const notificationIdentifiers = notification_identifier.split('.');
@@ -53,6 +44,6 @@ const toNotificationIdentifier = (notification_identifier // Expected format fro
53
44
  throw new Error(`Invalid notificationIdentifier received - ${notification_identifier}`);
54
45
  }
55
46
  const [notification_group, notification_type] = notificationIdentifiers;
56
- return (0, exports.getNotificationIdentifier)((0, exports.toNotificationGroup)(notification_group), (0, exports.toNotificationActivityType)(notification_type));
47
+ return getNotificationIdentifier((0, exports.toNotificationGroup)(notification_group), (0, exports.toNotificationActivityType)(notification_type));
57
48
  };
58
49
  exports.toNotificationIdentifier = toNotificationIdentifier;