@mikemo-coposit/am-accounting-shared 0.0.4 → 0.0.6
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.
- package/dist/cjs/constants/cma-transaction/cma-input-type.constant.d.ts +3 -1
- package/dist/cjs/constants/cma-transaction/cma-input-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/cma-transaction/cma-transaction-status.constant.d.ts +8 -0
- package/dist/cjs/constants/cma-transaction/cma-transaction-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/cma-transaction/cma-transaction-type.constant.d.ts +8 -8
- package/dist/cjs/constants/cma-transaction/cma-transaction-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/cma-transaction/index.d.ts +1 -0
- package/dist/cjs/constants/cma-transaction/index.d.ts.map +1 -1
- package/dist/cjs/constants/index.d.ts +2 -2
- package/dist/cjs/constants/index.d.ts.map +1 -1
- package/dist/cjs/constants/mta-transaction/index.d.ts +1 -0
- package/dist/cjs/constants/mta-transaction/index.d.ts.map +1 -1
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts +3 -1
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/mta-transaction/mta-transaction-status.constant.d.ts +8 -0
- package/dist/cjs/constants/mta-transaction/mta-transaction-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts +0 -4
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts.map +1 -1
- package/dist/cjs/constants/payout/index.d.ts +4 -0
- package/dist/cjs/constants/payout/index.d.ts.map +1 -0
- package/dist/cjs/constants/payout/payout-status.constant.d.ts +9 -0
- package/dist/cjs/constants/payout/payout-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/payout/payout-type.constant.d.ts +9 -0
- package/dist/cjs/constants/payout/payout-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/payout/payout.constant.d.ts +37 -0
- package/dist/cjs/constants/payout/payout.constant.d.ts.map +1 -0
- package/dist/cjs/constants/payout-bank-file/index.d.ts +2 -0
- package/dist/cjs/constants/payout-bank-file/index.d.ts.map +1 -0
- package/dist/cjs/constants/payout-bank-file/payout-bank-file-status.constant.d.ts +8 -0
- package/dist/cjs/constants/payout-bank-file/payout-bank-file-status.constant.d.ts.map +1 -0
- package/dist/cjs/index.js +1549 -781
- package/dist/cjs/schemas/cma/cma.entity.schema.d.ts +1053 -24
- package/dist/cjs/schemas/cma/cma.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts +759 -0
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma/create-cma.schema.d.ts +4 -4
- package/dist/cjs/schemas/cma/index.d.ts +1 -1
- package/dist/cjs/schemas/cma/index.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +1561 -2305
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period.entity.schema.d.ts +10 -10
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +623 -570
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/update-cma-period-reconciled-to.schema.d.ts +4 -4
- package/dist/cjs/schemas/cma-account-period/update-cma-period-reconciled-to.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.entity.schema.d.ts +8 -8
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +2210 -21
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciliation/cma-reconciliation.entity.schema.d.ts +12 -12
- package/dist/cjs/schemas/cma-reconciliation/cma-reconciliation.rest.schema.d.ts +24 -24
- package/dist/cjs/schemas/cma-reconciliation/cma-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/cma-reconciliation/update-cma-reconciliation-current-bank-balance.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/cma-reconciliation/update-cma-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +13 -0
- package/dist/cjs/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +815 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +1495 -12
- package/dist/cjs/schemas/cma-transaction/cma-transaction.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +456 -826
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +6 -6
- package/dist/cjs/schemas/cma-transaction/index.d.ts +2 -0
- package/dist/cjs/schemas/cma-transaction/index.d.ts.map +1 -1
- package/dist/cjs/schemas/common/account/account-bsb.schma.d.ts +4 -0
- package/dist/cjs/schemas/common/account/account-bsb.schma.d.ts.map +1 -0
- package/dist/cjs/schemas/common/account/account-number.schma.d.ts +4 -0
- package/dist/cjs/schemas/common/account/account-number.schma.d.ts.map +1 -0
- package/dist/cjs/schemas/common/account/bank-code.schema.d.ts +4 -0
- package/dist/cjs/schemas/common/account/bank-code.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/account/index.d.ts +5 -0
- package/dist/cjs/schemas/common/account/index.d.ts.map +1 -0
- package/dist/cjs/schemas/common/account/state-code.schema.d.ts +4 -0
- package/dist/cjs/schemas/common/account/state-code.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/amount/cents-to-dollars.schema.d.ts +3 -0
- package/dist/cjs/schemas/common/amount/cents-to-dollars.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/amount/dollars-to-cents.schema.d.ts +3 -0
- package/dist/cjs/schemas/common/amount/dollars-to-cents.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/amount/index.d.ts +3 -0
- package/dist/cjs/schemas/common/amount/index.d.ts.map +1 -0
- package/dist/cjs/schemas/common/index.d.ts +4 -0
- package/dist/cjs/schemas/common/index.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/bool-filter.schema.d.ts +8 -0
- package/dist/cjs/schemas/common/search/bool-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/date-filter.schema.d.ts +32 -0
- package/dist/cjs/schemas/common/search/date-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/index.d.ts +6 -0
- package/dist/cjs/schemas/common/search/index.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/json-filter.schema.d.ts +31 -0
- package/dist/cjs/schemas/common/search/json-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts +66 -0
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts +41 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/developer/developer.enity.schema.d.ts +2 -2
- package/dist/cjs/schemas/index.d.ts +4 -0
- package/dist/cjs/schemas/index.d.ts.map +1 -1
- package/dist/cjs/schemas/mta/create-mta.rest.schema.d.ts +6 -6
- package/dist/cjs/schemas/mta/mta.entity.schema.d.ts +12 -12
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts +211 -426
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +1444 -2200
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period.entity.schema.d.ts +8 -8
- package/dist/cjs/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +215 -675
- package/dist/cjs/schemas/mta-account-period/mta-account-period.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +4 -4
- package/dist/cjs/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +24 -24
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts +8 -8
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +2036 -21
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +4 -4
- package/dist/cjs/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts +10 -10
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts +22 -22
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +8 -10
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +15 -12
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +439 -817
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/cancel-payout.rest.schema.d.ts +13 -0
- package/dist/cjs/schemas/payout/cancel-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts +19 -0
- package/dist/cjs/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts +57 -0
- package/dist/cjs/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts +416 -0
- package/dist/cjs/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/index.d.ts +9 -1
- package/dist/cjs/schemas/payout/index.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts +787 -0
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout-provision-data.rest.schema.d.ts +14755 -0
- package/dist/cjs/schemas/payout/payout-provision-data.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout-search.rest.schema.d.ts +260 -0
- package/dist/cjs/schemas/payout/payout-search.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout-status-summary.rest.schema.d.ts +19 -0
- package/dist/cjs/schemas/payout/payout-status-summary.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +401 -285
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts +12 -26
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts +401 -110
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +36678 -0
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts +361 -114
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout-bank-file/index.d.ts +3 -0
- package/dist/cjs/schemas/payout-bank-file/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-bank-file/payout-bank-file.entity.schema.d.ts +46 -0
- package/dist/cjs/schemas/payout-bank-file/payout-bank-file.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-bank-file/payout-bank-file.rest.schem.d.ts +367 -0
- package/dist/cjs/schemas/payout-bank-file/payout-bank-file.rest.schem.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-bank-file-download-history/index.d.ts +2 -0
- package/dist/cjs/schemas/payout-bank-file-download-history/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-bank-file-download-history/payout-bank-file-download-histor.entity.schema.d.ts +108 -0
- package/dist/cjs/schemas/payout-bank-file-download-history/payout-bank-file-download-histor.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-transaction/index.d.ts +3 -0
- package/dist/cjs/schemas/payout-transaction/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +67 -0
- package/dist/cjs/schemas/payout-transaction/payout-transactin.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +7175 -0
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -0
- package/dist/cjs/schemas/project/project.entity.schema.d.ts +86 -6
- package/dist/cjs/schemas/project/project.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/project/project.rest.schema.d.ts +218 -215
- package/dist/cjs/schemas/project/project.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts +2 -2
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +72 -71
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/customer.entity.schema.d.ts +7 -7
- package/dist/cjs/schemas/property/index.d.ts +1 -0
- package/dist/cjs/schemas/property/index.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property-accounts-balance.rest.schema.d.ts +4 -4
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts +864 -0
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +734 -17
- package/dist/cjs/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +2479 -984
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/user/index.d.ts +1 -0
- package/dist/cjs/schemas/user/index.d.ts.map +1 -1
- package/dist/cjs/schemas/user/user.entity.schema.d.ts +4 -4
- package/dist/cjs/schemas/user/user.rest.schema.d.ts +35 -0
- package/dist/cjs/schemas/user/user.rest.schema.d.ts.map +1 -0
- package/dist/cjs/utils/amount.util.d.ts +2 -2
- package/dist/cjs/utils/amount.util.d.ts.map +1 -1
- package/dist/cjs/utils/bank-account.util.d.ts +17 -0
- package/dist/cjs/utils/bank-account.util.d.ts.map +1 -0
- package/dist/cjs/utils/index.d.ts +2 -0
- package/dist/cjs/utils/index.d.ts.map +1 -1
- package/dist/cjs/utils/property.util.d.ts +12 -0
- package/dist/cjs/utils/property.util.d.ts.map +1 -0
- package/dist/cjs/utils/transaction.util.d.ts.map +1 -1
- package/dist/esm/constants/cma-transaction/cma-input-type.constant.d.ts +3 -1
- package/dist/esm/constants/cma-transaction/cma-input-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/cma-transaction/cma-transaction-status.constant.d.ts +8 -0
- package/dist/esm/constants/cma-transaction/cma-transaction-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/cma-transaction/cma-transaction-type.constant.d.ts +8 -8
- package/dist/esm/constants/cma-transaction/cma-transaction-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/cma-transaction/index.d.ts +1 -0
- package/dist/esm/constants/cma-transaction/index.d.ts.map +1 -1
- package/dist/esm/constants/index.d.ts +2 -2
- package/dist/esm/constants/index.d.ts.map +1 -1
- package/dist/esm/constants/mta-transaction/index.d.ts +1 -0
- package/dist/esm/constants/mta-transaction/index.d.ts.map +1 -1
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts +3 -1
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/mta-transaction/mta-transaction-status.constant.d.ts +8 -0
- package/dist/esm/constants/mta-transaction/mta-transaction-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts +0 -4
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts.map +1 -1
- package/dist/esm/constants/payout/index.d.ts +4 -0
- package/dist/esm/constants/payout/index.d.ts.map +1 -0
- package/dist/esm/constants/payout/payout-status.constant.d.ts +9 -0
- package/dist/esm/constants/payout/payout-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/payout/payout-type.constant.d.ts +9 -0
- package/dist/esm/constants/payout/payout-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/payout/payout.constant.d.ts +37 -0
- package/dist/esm/constants/payout/payout.constant.d.ts.map +1 -0
- package/dist/esm/constants/payout-bank-file/index.d.ts +2 -0
- package/dist/esm/constants/payout-bank-file/index.d.ts.map +1 -0
- package/dist/esm/constants/payout-bank-file/payout-bank-file-status.constant.d.ts +8 -0
- package/dist/esm/constants/payout-bank-file/payout-bank-file-status.constant.d.ts.map +1 -0
- package/dist/esm/index.mjs +1699 -1159
- package/dist/esm/schemas/cma/cma.entity.schema.d.ts +1053 -24
- package/dist/esm/schemas/cma/cma.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts +759 -0
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma/create-cma.schema.d.ts +4 -4
- package/dist/esm/schemas/cma/index.d.ts +1 -1
- package/dist/esm/schemas/cma/index.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +1561 -2305
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period.entity.schema.d.ts +10 -10
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +623 -570
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/update-cma-period-reconciled-to.schema.d.ts +4 -4
- package/dist/esm/schemas/cma-account-period/update-cma-period-reconciled-to.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.entity.schema.d.ts +8 -8
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +2210 -21
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciliation/cma-reconciliation.entity.schema.d.ts +12 -12
- package/dist/esm/schemas/cma-reconciliation/cma-reconciliation.rest.schema.d.ts +24 -24
- package/dist/esm/schemas/cma-reconciliation/cma-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/cma-reconciliation/update-cma-reconciliation-current-bank-balance.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/cma-reconciliation/update-cma-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +13 -0
- package/dist/esm/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +815 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +1495 -12
- package/dist/esm/schemas/cma-transaction/cma-transaction.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +456 -826
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +6 -6
- package/dist/esm/schemas/cma-transaction/index.d.ts +2 -0
- package/dist/esm/schemas/cma-transaction/index.d.ts.map +1 -1
- package/dist/esm/schemas/common/account/account-bsb.schma.d.ts +4 -0
- package/dist/esm/schemas/common/account/account-bsb.schma.d.ts.map +1 -0
- package/dist/esm/schemas/common/account/account-number.schma.d.ts +4 -0
- package/dist/esm/schemas/common/account/account-number.schma.d.ts.map +1 -0
- package/dist/esm/schemas/common/account/bank-code.schema.d.ts +4 -0
- package/dist/esm/schemas/common/account/bank-code.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/account/index.d.ts +5 -0
- package/dist/esm/schemas/common/account/index.d.ts.map +1 -0
- package/dist/esm/schemas/common/account/state-code.schema.d.ts +4 -0
- package/dist/esm/schemas/common/account/state-code.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/amount/cents-to-dollars.schema.d.ts +3 -0
- package/dist/esm/schemas/common/amount/cents-to-dollars.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/amount/dollars-to-cents.schema.d.ts +3 -0
- package/dist/esm/schemas/common/amount/dollars-to-cents.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/amount/index.d.ts +3 -0
- package/dist/esm/schemas/common/amount/index.d.ts.map +1 -0
- package/dist/esm/schemas/common/index.d.ts +4 -0
- package/dist/esm/schemas/common/index.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/bool-filter.schema.d.ts +8 -0
- package/dist/esm/schemas/common/search/bool-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/date-filter.schema.d.ts +32 -0
- package/dist/esm/schemas/common/search/date-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/index.d.ts +6 -0
- package/dist/esm/schemas/common/search/index.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/json-filter.schema.d.ts +31 -0
- package/dist/esm/schemas/common/search/json-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts +66 -0
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts +41 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/developer/developer.enity.schema.d.ts +2 -2
- package/dist/esm/schemas/index.d.ts +4 -0
- package/dist/esm/schemas/index.d.ts.map +1 -1
- package/dist/esm/schemas/mta/create-mta.rest.schema.d.ts +6 -6
- package/dist/esm/schemas/mta/mta.entity.schema.d.ts +12 -12
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts +211 -426
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +1444 -2200
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period.entity.schema.d.ts +8 -8
- package/dist/esm/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +215 -675
- package/dist/esm/schemas/mta-account-period/mta-account-period.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +4 -4
- package/dist/esm/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +24 -24
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts +8 -8
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +2036 -21
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +4 -4
- package/dist/esm/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts +10 -10
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts +22 -22
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +8 -10
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +15 -12
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +439 -817
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/cancel-payout.rest.schema.d.ts +13 -0
- package/dist/esm/schemas/payout/cancel-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts +19 -0
- package/dist/esm/schemas/payout/confirm-bank-file-processed.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts +57 -0
- package/dist/esm/schemas/payout/create-mta-to-cma-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts +416 -0
- package/dist/esm/schemas/payout/create-settlement-payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/index.d.ts +9 -1
- package/dist/esm/schemas/payout/index.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts +787 -0
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout-provision-data.rest.schema.d.ts +14755 -0
- package/dist/esm/schemas/payout/payout-provision-data.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout-search.rest.schema.d.ts +260 -0
- package/dist/esm/schemas/payout/payout-search.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout-status-summary.rest.schema.d.ts +19 -0
- package/dist/esm/schemas/payout/payout-status-summary.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +401 -285
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts +12 -26
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts +401 -110
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +36678 -0
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts +361 -114
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout-bank-file/index.d.ts +3 -0
- package/dist/esm/schemas/payout-bank-file/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout-bank-file/payout-bank-file.entity.schema.d.ts +46 -0
- package/dist/esm/schemas/payout-bank-file/payout-bank-file.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout-bank-file/payout-bank-file.rest.schem.d.ts +367 -0
- package/dist/esm/schemas/payout-bank-file/payout-bank-file.rest.schem.d.ts.map +1 -0
- package/dist/esm/schemas/payout-bank-file-download-history/index.d.ts +2 -0
- package/dist/esm/schemas/payout-bank-file-download-history/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout-bank-file-download-history/payout-bank-file-download-histor.entity.schema.d.ts +108 -0
- package/dist/esm/schemas/payout-bank-file-download-history/payout-bank-file-download-histor.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout-transaction/index.d.ts +3 -0
- package/dist/esm/schemas/payout-transaction/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout-transaction/payout-transactin.entity.schema.d.ts +67 -0
- package/dist/esm/schemas/payout-transaction/payout-transactin.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +7175 -0
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -0
- package/dist/esm/schemas/project/project.entity.schema.d.ts +86 -6
- package/dist/esm/schemas/project/project.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/project/project.rest.schema.d.ts +218 -215
- package/dist/esm/schemas/project/project.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts +2 -2
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +72 -71
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/customer.entity.schema.d.ts +7 -7
- package/dist/esm/schemas/property/index.d.ts +1 -0
- package/dist/esm/schemas/property/index.d.ts.map +1 -1
- package/dist/esm/schemas/property/property-accounts-balance.rest.schema.d.ts +4 -4
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts +864 -0
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/property/property.entity.schema.d.ts +734 -17
- package/dist/esm/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts +2479 -984
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/user/index.d.ts +1 -0
- package/dist/esm/schemas/user/index.d.ts.map +1 -1
- package/dist/esm/schemas/user/user.entity.schema.d.ts +4 -4
- package/dist/esm/schemas/user/user.rest.schema.d.ts +35 -0
- package/dist/esm/schemas/user/user.rest.schema.d.ts.map +1 -0
- package/dist/esm/utils/amount.util.d.ts +2 -2
- package/dist/esm/utils/amount.util.d.ts.map +1 -1
- package/dist/esm/utils/bank-account.util.d.ts +17 -0
- package/dist/esm/utils/bank-account.util.d.ts.map +1 -0
- package/dist/esm/utils/index.d.ts +2 -0
- package/dist/esm/utils/index.d.ts.map +1 -1
- package/dist/esm/utils/property.util.d.ts +12 -0
- package/dist/esm/utils/property.util.d.ts.map +1 -0
- package/dist/esm/utils/transaction.util.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/cjs/constants/mta-account-period/index.d.ts +0 -2
- package/dist/cjs/constants/mta-account-period/index.d.ts.map +0 -1
- package/dist/cjs/constants/mta-account-period/mta-account-period.constant.d.ts +0 -5
- package/dist/cjs/constants/mta-account-period/mta-account-period.constant.d.ts.map +0 -1
- package/dist/cjs/constants/mta-reconciliation/index.d.ts +0 -2
- package/dist/cjs/constants/mta-reconciliation/index.d.ts.map +0 -1
- package/dist/cjs/constants/mta-reconciliation/mta-reconciliation.constant.d.ts +0 -5
- package/dist/cjs/constants/mta-reconciliation/mta-reconciliation.constant.d.ts.map +0 -1
- package/dist/cjs/schemas/cma/cma-res.schema.d.ts +0 -333
- package/dist/cjs/schemas/cma/cma-res.schema.d.ts.map +0 -1
- package/dist/cjs/schemas/payout/payout.create.schema.d.ts +0 -157
- package/dist/cjs/schemas/payout/payout.create.schema.d.ts.map +0 -1
- package/dist/esm/constants/mta-account-period/index.d.ts +0 -2
- package/dist/esm/constants/mta-account-period/index.d.ts.map +0 -1
- package/dist/esm/constants/mta-account-period/mta-account-period.constant.d.ts +0 -5
- package/dist/esm/constants/mta-account-period/mta-account-period.constant.d.ts.map +0 -1
- package/dist/esm/constants/mta-reconciliation/index.d.ts +0 -2
- package/dist/esm/constants/mta-reconciliation/index.d.ts.map +0 -1
- package/dist/esm/constants/mta-reconciliation/mta-reconciliation.constant.d.ts +0 -5
- package/dist/esm/constants/mta-reconciliation/mta-reconciliation.constant.d.ts.map +0 -1
- package/dist/esm/schemas/cma/cma-res.schema.d.ts +0 -333
- package/dist/esm/schemas/cma/cma-res.schema.d.ts.map +0 -1
- package/dist/esm/schemas/payout/payout.create.schema.d.ts +0 -157
- package/dist/esm/schemas/payout/payout.create.schema.d.ts.map +0 -1
package/dist/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { AuStateCode, AuTrustAccountBankCode, PaymentProviderCode } from "@mikemo-coposit/am-zshared";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
4
|
var __webpack_require__ = {};
|
|
5
5
|
(()=>{
|
|
6
6
|
__webpack_require__.d = (exports, definition)=>{
|
|
@@ -37,20 +37,32 @@ const CmaStatus = {
|
|
|
37
37
|
INACTIVE: 'inactive'
|
|
38
38
|
};
|
|
39
39
|
var cma_input_type_constant_CmaTransactionInputType = /*#__PURE__*/ function(CmaTransactionInputType) {
|
|
40
|
-
CmaTransactionInputType["
|
|
40
|
+
CmaTransactionInputType["MANUAL"] = "manual";
|
|
41
|
+
CmaTransactionInputType["SYSTEM"] = "system";
|
|
42
|
+
CmaTransactionInputType["FROM_PAYOUT"] = "from_payout";
|
|
41
43
|
return CmaTransactionInputType;
|
|
42
44
|
}({});
|
|
43
45
|
var cma_payment_method_constant_CmaTransactionPaymentMethod = /*#__PURE__*/ function(CmaTransactionPaymentMethod) {
|
|
44
46
|
CmaTransactionPaymentMethod["EFT"] = "EFT";
|
|
45
47
|
return CmaTransactionPaymentMethod;
|
|
46
48
|
}({});
|
|
49
|
+
const CmaTransactionStatus = {
|
|
50
|
+
CLEARING: 'clearing',
|
|
51
|
+
CLEARED: 'cleared',
|
|
52
|
+
RECONCILED: 'reconciled'
|
|
53
|
+
};
|
|
54
|
+
const CmaTransactionStatusToDisplayTextMapper = {
|
|
55
|
+
[CmaTransactionStatus.CLEARING]: 'Clearing',
|
|
56
|
+
[CmaTransactionStatus.CLEARED]: 'Cleared',
|
|
57
|
+
[CmaTransactionStatus.RECONCILED]: 'Reconciled'
|
|
58
|
+
};
|
|
47
59
|
const CmaReceiptTransactionType = {
|
|
48
60
|
INTEREST: 'interest',
|
|
49
|
-
|
|
61
|
+
RECEIPT: 'receipt'
|
|
50
62
|
};
|
|
51
63
|
const CmaPayoutTransactionType = {
|
|
52
64
|
CMA_SETTLEMENT_PAYOUT: 'cma_settlement_payout',
|
|
53
|
-
|
|
65
|
+
CMA_REFUND_PAYOUT: 'cma_refund_payout'
|
|
54
66
|
};
|
|
55
67
|
const CmaTransactionType = {
|
|
56
68
|
...CmaReceiptTransactionType,
|
|
@@ -59,9 +71,9 @@ const CmaTransactionType = {
|
|
|
59
71
|
};
|
|
60
72
|
const CmaTransactionTypeToDisplayTextMapper = {
|
|
61
73
|
[CmaTransactionType.INTEREST]: 'Interest',
|
|
62
|
-
[CmaTransactionType.
|
|
74
|
+
[CmaTransactionType.RECEIPT]: 'Receipt',
|
|
63
75
|
[CmaTransactionType.CMA_SETTLEMENT_PAYOUT]: 'CMA Settlement Payout',
|
|
64
|
-
[CmaTransactionType.
|
|
76
|
+
[CmaTransactionType.CMA_REFUND_PAYOUT]: 'CMA Refund Payout',
|
|
65
77
|
[CmaTransactionType.TRANSACTION_CANCEL]: 'Transaction Cancel'
|
|
66
78
|
};
|
|
67
79
|
var account_period_constant_AccountPeriodStatus = /*#__PURE__*/ function(AccountPeriodStatus) {
|
|
@@ -103,39 +115,39 @@ var mta_MtaStatus = /*#__PURE__*/ function(MtaStatus) {
|
|
|
103
115
|
MtaStatus["INACTIVE"] = "inactive";
|
|
104
116
|
return MtaStatus;
|
|
105
117
|
}({});
|
|
106
|
-
var mta_account_period_constant_MtaAccountPeriodStatus = /*#__PURE__*/ function(MtaAccountPeriodStatus) {
|
|
107
|
-
MtaAccountPeriodStatus["OPEN"] = "open";
|
|
108
|
-
MtaAccountPeriodStatus["CLOSED"] = "closed";
|
|
109
|
-
return MtaAccountPeriodStatus;
|
|
110
|
-
}({});
|
|
111
|
-
var mta_reconciliation_constant_MtaReconciliationStatus = /*#__PURE__*/ function(MtaReconciliationStatus) {
|
|
112
|
-
MtaReconciliationStatus["FINAL_IN_ACCOUNT_PERIOD"] = "final-in-account-period";
|
|
113
|
-
MtaReconciliationStatus["COMPLETED"] = "completed";
|
|
114
|
-
return MtaReconciliationStatus;
|
|
115
|
-
}({});
|
|
116
118
|
var mta_input_type_constant_MtaTransactionInputType = /*#__PURE__*/ function(MtaTransactionInputType) {
|
|
117
119
|
MtaTransactionInputType["UNKNOWN"] = "unknown";
|
|
118
120
|
MtaTransactionInputType["CUSTOMER"] = "customer";
|
|
119
121
|
MtaTransactionInputType["SYSTEM"] = "system";
|
|
122
|
+
MtaTransactionInputType["PAYOUT"] = "payout";
|
|
123
|
+
MtaTransactionInputType["MANUAL"] = "manual";
|
|
120
124
|
return MtaTransactionInputType;
|
|
121
125
|
}({});
|
|
122
126
|
var mta_payment_method_constant_MtaTransactionPaymentMethod = /*#__PURE__*/ function(MtaTransactionPaymentMethod) {
|
|
123
127
|
MtaTransactionPaymentMethod["EFT"] = "EFT";
|
|
124
128
|
return MtaTransactionPaymentMethod;
|
|
125
129
|
}({});
|
|
130
|
+
const MtaTransactionStatus = {
|
|
131
|
+
CLEARING: 'clearing',
|
|
132
|
+
CLEARED: 'cleared',
|
|
133
|
+
RECONCILED: 'reconciled'
|
|
134
|
+
};
|
|
135
|
+
const MtaTransactionStatusToDisplayTextMapper = {
|
|
136
|
+
[MtaTransactionStatus.CLEARING]: 'Clearing',
|
|
137
|
+
[MtaTransactionStatus.CLEARED]: 'Cleared',
|
|
138
|
+
[MtaTransactionStatus.RECONCILED]: 'Reconciled'
|
|
139
|
+
};
|
|
126
140
|
const MtaReceiptTransactionType = {
|
|
127
141
|
UNKNOWN: 'unknown',
|
|
128
142
|
HOLDING_DEPOSIT: 'holding_deposit',
|
|
129
143
|
SIGNING_DEPOSIT: 'signing_deposit',
|
|
130
|
-
WEEKLY_PAYMENT: 'weekly_payment'
|
|
131
|
-
INTEREST: 'interest'
|
|
144
|
+
WEEKLY_PAYMENT: 'weekly_payment'
|
|
132
145
|
};
|
|
133
146
|
const ASSIGN_UNKNOWN_TO_CUSTOMER = 'assign_unknown_to_customer';
|
|
134
147
|
const TRANSACTION_CANCEL = 'transaction_cancel';
|
|
135
148
|
const MtaPayoutTransactionType = {
|
|
136
149
|
TRUST_TO_CMA_PAYOUT: 'trust_to_cma_payout',
|
|
137
150
|
TRUST_SETTLEMENT_PAYOUT: 'trust_settlement_payout',
|
|
138
|
-
CMA_SETTLEMENT_PAYOUT: 'cma_settlement_payout',
|
|
139
151
|
TRUST_REFUND_PAYOUT: 'trust_refund_payout',
|
|
140
152
|
UNKNOWN_PAYOUT: 'unknown_payout'
|
|
141
153
|
};
|
|
@@ -150,15 +162,71 @@ const MtaTransactionTypeToDisplayTextMapper = {
|
|
|
150
162
|
[MtaTransactionType.HOLDING_DEPOSIT]: 'Holding Deposit',
|
|
151
163
|
[MtaTransactionType.SIGNING_DEPOSIT]: 'Signing Deposit',
|
|
152
164
|
[MtaTransactionType.WEEKLY_PAYMENT]: 'Weekly Payment',
|
|
153
|
-
[MtaTransactionType.INTEREST]: 'Interest',
|
|
154
165
|
[MtaTransactionType.TRUST_TO_CMA_PAYOUT]: 'Trust to CMA Payout',
|
|
155
166
|
[MtaTransactionType.TRUST_SETTLEMENT_PAYOUT]: 'Trust Settlement Payout',
|
|
156
|
-
[MtaTransactionType.CMA_SETTLEMENT_PAYOUT]: 'CMA Settlement Payout',
|
|
157
167
|
[MtaTransactionType.TRUST_REFUND_PAYOUT]: 'Trust Refund Payout',
|
|
158
168
|
[MtaTransactionType.UNKNOWN_PAYOUT]: 'Unknown Payout',
|
|
159
169
|
[MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER]: 'Assign Unknown',
|
|
160
170
|
[MtaTransactionType.TRANSACTION_CANCEL]: 'Cancel Transaction'
|
|
161
171
|
};
|
|
172
|
+
const PayoutStatus = {
|
|
173
|
+
PENDING: 'pending',
|
|
174
|
+
PROCESSING: 'processing',
|
|
175
|
+
CLEARING: 'clearing',
|
|
176
|
+
COMPLETED: 'completed',
|
|
177
|
+
CANCELLED: 'cancelled'
|
|
178
|
+
};
|
|
179
|
+
const PayoutType = {
|
|
180
|
+
TRUST_TO_CMA_PAYOUT: 'trust_to_cma_payout',
|
|
181
|
+
TRUST_SETTLEMENT_PAYOUT: 'trust_settlement_payout',
|
|
182
|
+
CMA_SETTLEMENT_PAYOUT: 'cma_settlement_payout',
|
|
183
|
+
TRUST_REFUND_PAYOUT: 'trust_refund_payout',
|
|
184
|
+
UNKNOWN_PAYOUT: 'unknown_payout'
|
|
185
|
+
};
|
|
186
|
+
var payout_constant_PayoutSourceAccountType = /*#__PURE__*/ function(PayoutSourceAccountType) {
|
|
187
|
+
PayoutSourceAccountType["CMA"] = "cma";
|
|
188
|
+
PayoutSourceAccountType["MTA"] = "mta";
|
|
189
|
+
return PayoutSourceAccountType;
|
|
190
|
+
}({});
|
|
191
|
+
var payout_constant_PayoutTargetAccountType = /*#__PURE__*/ function(PayoutTargetAccountType) {
|
|
192
|
+
PayoutTargetAccountType["CMA"] = "cma";
|
|
193
|
+
PayoutTargetAccountType["OTHER"] = "other";
|
|
194
|
+
return PayoutTargetAccountType;
|
|
195
|
+
}({});
|
|
196
|
+
const DEFAULT_PAYOUT_TARGET_BANK_REF = {
|
|
197
|
+
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
198
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Settlement',
|
|
199
|
+
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
200
|
+
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
201
|
+
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
202
|
+
};
|
|
203
|
+
const DEFAULT_PAYOUT_TARGET_DESCRIPTION = {
|
|
204
|
+
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
205
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Settlement',
|
|
206
|
+
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
207
|
+
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
208
|
+
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
209
|
+
};
|
|
210
|
+
const DEFAULT_PAYOUT_SOURCE_BANK_REF = {
|
|
211
|
+
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Investment',
|
|
212
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Settlement',
|
|
213
|
+
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
214
|
+
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
215
|
+
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
216
|
+
};
|
|
217
|
+
const DEFAULT_PAYOUT_SOURCE_DESCRIPTION = {
|
|
218
|
+
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Investment',
|
|
219
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Settlement',
|
|
220
|
+
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
221
|
+
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
222
|
+
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
223
|
+
};
|
|
224
|
+
const PayoutBankFileStatus = {
|
|
225
|
+
GENERATED: 'generated',
|
|
226
|
+
DOWNLOADED: 'downloaded',
|
|
227
|
+
PROCESSED: 'processed',
|
|
228
|
+
ARCHIVED: 'archived'
|
|
229
|
+
};
|
|
162
230
|
const ProjectMtaAllocationStatus = {
|
|
163
231
|
PENDING_APPROVAL: 'pending_approval',
|
|
164
232
|
APPROVED: 'approved',
|
|
@@ -177,6 +245,199 @@ const PropertyStage = {
|
|
|
177
245
|
STANDARD_SALE: "standard_sale",
|
|
178
246
|
COPOSIT_SALE: "coposit_sale"
|
|
179
247
|
};
|
|
248
|
+
const cmaReconciledTransactionEntitySchema = z.object({
|
|
249
|
+
id: z.string().uuid(),
|
|
250
|
+
cmaTransactionId: z.string(),
|
|
251
|
+
accountPeriodId: z.string().nullable(),
|
|
252
|
+
reconciledByReconciliationId: z.string(),
|
|
253
|
+
reconciledAt: z.coerce.date(),
|
|
254
|
+
status: z.string(),
|
|
255
|
+
isArchived: z.boolean(),
|
|
256
|
+
createdBy: z.string(),
|
|
257
|
+
createdAt: z.coerce.date(),
|
|
258
|
+
updatedAt: z.coerce.date()
|
|
259
|
+
});
|
|
260
|
+
const cmaTransactionEntitySchema = z.object({
|
|
261
|
+
id: z.string().uuid(),
|
|
262
|
+
cmaId: z.string(),
|
|
263
|
+
sequence: z.number().int(),
|
|
264
|
+
propertyId: z.string().nullable(),
|
|
265
|
+
payoutId: z.string().nullable(),
|
|
266
|
+
inputType: z.string(),
|
|
267
|
+
creditAmountCents: z.bigint(),
|
|
268
|
+
debitAmountCents: z.bigint(),
|
|
269
|
+
balanceCents: z.bigint(),
|
|
270
|
+
createType: z.string(),
|
|
271
|
+
bankRef: z.string().nullable(),
|
|
272
|
+
description: z.string().nullable(),
|
|
273
|
+
transactionType: z.string(),
|
|
274
|
+
status: z.string(),
|
|
275
|
+
isCanceled: z.boolean(),
|
|
276
|
+
isArchived: z.boolean(),
|
|
277
|
+
isRefunded: z.boolean(),
|
|
278
|
+
clearedAt: z.coerce.date().nullable(),
|
|
279
|
+
createdAt: z.coerce.date(),
|
|
280
|
+
syncedAt: z.coerce.date().nullable(),
|
|
281
|
+
updatedAt: z.coerce.date(),
|
|
282
|
+
sourceTransactionId: z.string().nullable(),
|
|
283
|
+
cancelType: z.string().nullable(),
|
|
284
|
+
canceledBy: z.string().nullable(),
|
|
285
|
+
canceledAt: z.coerce.date().nullable(),
|
|
286
|
+
canceledReason: z.string().nullable(),
|
|
287
|
+
createdBy: z.string()
|
|
288
|
+
});
|
|
289
|
+
const cmaTransactionNestedSchema = z.object({
|
|
290
|
+
property: z.lazy(()=>propertyNestedEntitySchema),
|
|
291
|
+
cma: z.lazy(()=>cmaEntitySchema),
|
|
292
|
+
sourceTransaction: z.lazy(()=>cmaTransactionEntitySchema).optional(),
|
|
293
|
+
subsequentTransactions: z.lazy(()=>cmaTransactionEntitySchema.array()).optional(),
|
|
294
|
+
reconciledTransactions: z.lazy(()=>cmaReconciledTransactionEntitySchema.array()).optional()
|
|
295
|
+
});
|
|
296
|
+
const mtaTransactionEntitySchema = z.object({
|
|
297
|
+
id: z.string().uuid(),
|
|
298
|
+
referenceId: z.string().nullable(),
|
|
299
|
+
sequence: z.number().int(),
|
|
300
|
+
mtaId: z.string(),
|
|
301
|
+
propertyId: z.string().nullable(),
|
|
302
|
+
inputType: z.string(),
|
|
303
|
+
transactionType: z.string(),
|
|
304
|
+
creditAmountCents: z.bigint(),
|
|
305
|
+
debitAmountCents: z.bigint(),
|
|
306
|
+
balanceCents: z.bigint(),
|
|
307
|
+
bankRef: z.string().nullable(),
|
|
308
|
+
description: z.string().nullable(),
|
|
309
|
+
status: z.string(),
|
|
310
|
+
isRefunded: z.boolean(),
|
|
311
|
+
isCanceled: z.boolean(),
|
|
312
|
+
isArchived: z.boolean(),
|
|
313
|
+
clearedAt: z.coerce.date().nullable(),
|
|
314
|
+
createdAt: z.coerce.date(),
|
|
315
|
+
syncedAt: z.coerce.date(),
|
|
316
|
+
updatedAt: z.coerce.date(),
|
|
317
|
+
note: z.string().nullable(),
|
|
318
|
+
sourceTransactionId: z.string().nullable(),
|
|
319
|
+
cancelType: z.string().nullable(),
|
|
320
|
+
canceledBy: z.string().nullable(),
|
|
321
|
+
canceledAt: z.coerce.date().nullable(),
|
|
322
|
+
canceledReason: z.string().nullable(),
|
|
323
|
+
createdBy: z.string().uuid().nullable(),
|
|
324
|
+
payoutId: z.string().uuid().nullable()
|
|
325
|
+
});
|
|
326
|
+
const mtaEntitySchema = z.object({
|
|
327
|
+
id: z.string().uuid(),
|
|
328
|
+
name: z.string(),
|
|
329
|
+
country: z.string(),
|
|
330
|
+
stateCode: z.string(),
|
|
331
|
+
bankCode: z.string(),
|
|
332
|
+
subsidiaryId: z.string(),
|
|
333
|
+
bsb: z.string(),
|
|
334
|
+
accountNumber: z.string(),
|
|
335
|
+
balanceCents: z.bigint(),
|
|
336
|
+
currentReceiveSeq: z.number().int(),
|
|
337
|
+
currentPayoutSeq: z.number().int(),
|
|
338
|
+
status: z.string(),
|
|
339
|
+
isArchived: z.boolean(),
|
|
340
|
+
createdAt: z.coerce.date(),
|
|
341
|
+
syncedAt: z.coerce.date().nullable(),
|
|
342
|
+
updatedAt: z.coerce.date(),
|
|
343
|
+
createdBy: z.string().nullable(),
|
|
344
|
+
updatedBy: z.string().nullable()
|
|
345
|
+
});
|
|
346
|
+
const developerEntitySchema = z.object({
|
|
347
|
+
id: z.string().uuid(),
|
|
348
|
+
companyName: z.string().nullable(),
|
|
349
|
+
status: z.string(),
|
|
350
|
+
isArchived: z.boolean(),
|
|
351
|
+
createdAt: z.coerce.date(),
|
|
352
|
+
syncedAt: z.coerce.date(),
|
|
353
|
+
updatedAt: z.coerce.date()
|
|
354
|
+
});
|
|
355
|
+
const projectEntitySchema = z.object({
|
|
356
|
+
id: z.string(),
|
|
357
|
+
name: z.string(),
|
|
358
|
+
developerId: z.string(),
|
|
359
|
+
mtaId: z.string().nullable(),
|
|
360
|
+
state: z.string(),
|
|
361
|
+
type: z.string(),
|
|
362
|
+
status: z.string(),
|
|
363
|
+
isArchived: z.boolean(),
|
|
364
|
+
createdAt: z.coerce.date(),
|
|
365
|
+
syncedAt: z.coerce.date(),
|
|
366
|
+
updatedAt: z.coerce.date()
|
|
367
|
+
});
|
|
368
|
+
const projectNestedEntitySchema = projectEntitySchema.extend({
|
|
369
|
+
developer: developerEntitySchema.nullish()
|
|
370
|
+
});
|
|
371
|
+
const customerEntitySchema = z.object({
|
|
372
|
+
id: z.string().uuid(),
|
|
373
|
+
fullName: z.string().nullable(),
|
|
374
|
+
mobile: z.string().nullable(),
|
|
375
|
+
email: z.string(),
|
|
376
|
+
status: z.string(),
|
|
377
|
+
isArchived: z.boolean(),
|
|
378
|
+
createdAt: z.coerce.date(),
|
|
379
|
+
syncedAt: z.coerce.date(),
|
|
380
|
+
updatedAt: z.coerce.date()
|
|
381
|
+
});
|
|
382
|
+
const propertyEntitySchema = z.object({
|
|
383
|
+
id: z.string().uuid(),
|
|
384
|
+
customerId: z.string(),
|
|
385
|
+
projectId: z.string(),
|
|
386
|
+
buyerName: z.string().optional().nullable(),
|
|
387
|
+
lotDetail: z.string().nullable(),
|
|
388
|
+
propertyAddress: z.string(),
|
|
389
|
+
balanceCents: z.union([
|
|
390
|
+
z.bigint(),
|
|
391
|
+
z.number()
|
|
392
|
+
]),
|
|
393
|
+
cmaBalanceCents: z.union([
|
|
394
|
+
z.bigint(),
|
|
395
|
+
z.number()
|
|
396
|
+
]),
|
|
397
|
+
mtaBalanceCents: z.union([
|
|
398
|
+
z.bigint(),
|
|
399
|
+
z.number()
|
|
400
|
+
]),
|
|
401
|
+
stage: z.string(),
|
|
402
|
+
status: z.string(),
|
|
403
|
+
mtaId: z.string(),
|
|
404
|
+
isArchived: z.boolean(),
|
|
405
|
+
createdAt: z.coerce.date(),
|
|
406
|
+
syncedAt: z.coerce.date(),
|
|
407
|
+
updatedAt: z.coerce.date()
|
|
408
|
+
});
|
|
409
|
+
const propertyNestedEntitySchema = propertyEntitySchema.extend({
|
|
410
|
+
project: z.lazy(()=>projectNestedEntitySchema).nullish(),
|
|
411
|
+
customer: z.lazy(()=>customerEntitySchema).nullish(),
|
|
412
|
+
cma: z.lazy(()=>cmaEntitySchema).nullish(),
|
|
413
|
+
mta: z.lazy(()=>mtaEntitySchema).nullish(),
|
|
414
|
+
cmaTransactions: z.lazy(()=>cmaTransactionEntitySchema.array()).nullish(),
|
|
415
|
+
mtaTransactions: z.lazy(()=>mtaTransactionEntitySchema.array()).nullish()
|
|
416
|
+
});
|
|
417
|
+
const cmaEntitySchema = z.object({
|
|
418
|
+
id: z.string().uuid(),
|
|
419
|
+
cmaSeq: z.number().int(),
|
|
420
|
+
country: z.string(),
|
|
421
|
+
stateCode: z.string(),
|
|
422
|
+
description: z.string().nullable(),
|
|
423
|
+
bankCode: z.string(),
|
|
424
|
+
bsb: z.string(),
|
|
425
|
+
accountNumber: z.string(),
|
|
426
|
+
accountName: z.string(),
|
|
427
|
+
propertyId: z.string(),
|
|
428
|
+
balanceCents: z.bigint(),
|
|
429
|
+
currentReceiveSeq: z.number().int(),
|
|
430
|
+
currentPayoutSeq: z.number().int(),
|
|
431
|
+
payoutId: z.number().int(),
|
|
432
|
+
status: z.string(),
|
|
433
|
+
isArchived: z.boolean(),
|
|
434
|
+
createdAt: z.coerce.date(),
|
|
435
|
+
updatedAt: z.coerce.date(),
|
|
436
|
+
createdBy: z.string()
|
|
437
|
+
});
|
|
438
|
+
const cmaNestedEntitySchema = z.object({
|
|
439
|
+
property: z.lazy(()=>propertyNestedEntitySchema).nullish()
|
|
440
|
+
});
|
|
180
441
|
const maskString = (input, options = {})=>{
|
|
181
442
|
if (!input) return '';
|
|
182
443
|
const { visibleStart = 0, visibleEnd = 2, maskChar = '*' } = options;
|
|
@@ -190,354 +451,117 @@ const maskString = (input, options = {})=>{
|
|
|
190
451
|
const masked = maskChar.repeat(length - actualVisibleStart - actualVisibleEnd);
|
|
191
452
|
return start + masked + end;
|
|
192
453
|
};
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
})
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
openingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
228
|
-
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
229
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
230
|
-
closedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
231
|
-
closedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
232
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
233
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
234
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
235
|
-
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
236
|
-
closingDescription: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
237
|
-
});
|
|
238
|
-
const mtaEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
239
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
240
|
-
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
241
|
-
country: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
242
|
-
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
243
|
-
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
244
|
-
subsidiaryId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
245
|
-
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
246
|
-
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
247
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
248
|
-
currentReceiveSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
249
|
-
currentPayoutSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
250
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
251
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
252
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
253
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
254
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
255
|
-
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
256
|
-
updatedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
257
|
-
});
|
|
258
|
-
const paymentProviderEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
259
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
260
|
-
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
261
|
-
providerCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
262
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
263
|
-
settings: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
264
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
265
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
266
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
267
|
-
});
|
|
268
|
-
const mtaPaymentMethodAccountConfigSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
269
|
-
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
270
|
-
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
271
|
-
credential: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
272
|
-
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
273
|
-
})
|
|
274
|
-
});
|
|
275
|
-
const mtaPaymentMethodFloatAccountConfigSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
276
|
-
domainName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().email(),
|
|
277
|
-
credential: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
278
|
-
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
279
|
-
})
|
|
454
|
+
const maskBankBsb = (bsb)=>{
|
|
455
|
+
if (!bsb) return null;
|
|
456
|
+
const bsbString = bsb.toString().replace(/[^\d*]/g, '');
|
|
457
|
+
return maskString(bsbString, {
|
|
458
|
+
visibleStart: 0,
|
|
459
|
+
visibleEnd: 3
|
|
460
|
+
})?.replace(/^(\*+)(\d{3})$/, '$1-$2');
|
|
461
|
+
};
|
|
462
|
+
const formatBankBsb = (bsb)=>{
|
|
463
|
+
if (!bsb) return null;
|
|
464
|
+
return bsb.toString().replace(/^(\d{3})(\d{3})$/, '$1-$2');
|
|
465
|
+
};
|
|
466
|
+
const maskBankAccountNumber = (accountNumber)=>{
|
|
467
|
+
if (!accountNumber) return null;
|
|
468
|
+
return maskString(accountNumber?.toString().replace(/[^\d*]/g, ''), {
|
|
469
|
+
visibleStart: 0,
|
|
470
|
+
visibleEnd: 2
|
|
471
|
+
});
|
|
472
|
+
};
|
|
473
|
+
const displayBankAccount = (payload)=>{
|
|
474
|
+
if (payload?.masked === false) {
|
|
475
|
+
const bsb = payload.bsb?.toString()?.replace(/^(\d{3})(\d{3})$/, '$1-$2');
|
|
476
|
+
return `${bsb} ${payload.accountNumber}`;
|
|
477
|
+
}
|
|
478
|
+
return `${maskBankBsb(payload.bsb)} ${maskBankAccountNumber(payload.accountNumber)}`;
|
|
479
|
+
};
|
|
480
|
+
const maskBankAccount = (payload)=>({
|
|
481
|
+
bsb: maskBankBsb(payload.bsb),
|
|
482
|
+
accountNumber: maskBankAccountNumber(payload.accountNumber),
|
|
483
|
+
account: `${maskBankBsb(payload.bsb)} ${maskBankAccountNumber(payload.accountNumber)}`
|
|
484
|
+
});
|
|
485
|
+
const accountBsbMaskedSchema = z.string().transform(maskBankBsb);
|
|
486
|
+
const accountBsbValidationSchema = z.coerce.string().min(1, 'BSB is required').length(6, 'BSB must be 6 digits').regex(/^\d+$/, {
|
|
487
|
+
message: 'BSB must be all digits'
|
|
280
488
|
});
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
paymentProviderId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
285
|
-
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
286
|
-
account: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
287
|
-
floatAccount: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
288
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
289
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
290
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
291
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
489
|
+
const accountNumberMaskedSchema = z.string().transform(maskBankAccountNumber);
|
|
490
|
+
const accountNumberValidationSchema = z.coerce.string().min(1, 'Account Number is required').max(9, 'Account Number must be less than 9 digits').regex(/^\d+$/, {
|
|
491
|
+
message: 'Account number must be all digits'
|
|
292
492
|
});
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
310
|
-
reconciledTo: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
311
|
-
reconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
312
|
-
unreconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
313
|
-
totalReconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
314
|
-
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
315
|
-
closingVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
316
|
-
closedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
317
|
-
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
318
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
319
|
-
updatedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
320
|
-
closedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
321
|
-
editable: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
322
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
323
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean()
|
|
493
|
+
const bankCodeSchema = z.string().pipe(z.nativeEnum(AuTrustAccountBankCode));
|
|
494
|
+
const stateCodeSchema = z.string().pipe(z.nativeEnum(AuStateCode));
|
|
495
|
+
const fromCentsToDollars = (amount)=>Number(amount) / 100;
|
|
496
|
+
const fromDollarsToCents = (amount)=>100n * BigInt(amount);
|
|
497
|
+
const centsToDollarsSchema = z.union([
|
|
498
|
+
z.string(),
|
|
499
|
+
z.bigint(),
|
|
500
|
+
z.number()
|
|
501
|
+
]).transform(fromCentsToDollars).pipe(z.number());
|
|
502
|
+
const cmaRestResBaseSchema = cmaEntitySchema.extend({
|
|
503
|
+
balanceCents: centsToDollarsSchema,
|
|
504
|
+
stateCode: stateCodeSchema,
|
|
505
|
+
bankCode: bankCodeSchema,
|
|
506
|
+
accountNumber: accountNumberMaskedSchema,
|
|
507
|
+
bsb: accountBsbMaskedSchema,
|
|
508
|
+
status: z.string().pipe(z.nativeEnum(CmaStatus))
|
|
324
509
|
});
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
333
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
334
|
-
closingVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
335
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
336
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
337
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
338
|
-
currentTrustBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
339
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
340
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
341
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
342
|
-
currentReconciledBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
343
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
344
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
345
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
346
|
-
currentVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
347
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
348
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
349
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish()
|
|
350
|
-
});
|
|
351
|
-
const mtaRestResSchema = mtaEntitySchema.extend({
|
|
352
|
-
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
353
|
-
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuTrustAccountBankCode),
|
|
354
|
-
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
355
|
-
visibleStart: 0,
|
|
356
|
-
visibleEnd: 2
|
|
357
|
-
})),
|
|
358
|
-
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
359
|
-
visibleStart: 0,
|
|
360
|
-
visibleEnd: 3
|
|
361
|
-
})?.replace(/^(\*+)(\d{3})$/, '$1-$2')),
|
|
362
|
-
subsidiaryId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
363
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
364
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
365
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
366
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
367
|
-
paymentMethods: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>__WEBPACK_EXTERNAL_MODULE_zod__.z.array(mtaPaymentMethodRestResSchema)).optional(),
|
|
368
|
-
accountPeriods: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaAccountPeriodEntitySchema.array().optional())
|
|
369
|
-
});
|
|
370
|
-
const mtaListItemRestResSchema = mtaRestResSchema.omit({
|
|
371
|
-
paymentMethods: true,
|
|
372
|
-
accountPeriods: true
|
|
373
|
-
}).extend({
|
|
374
|
-
currentReconciliation: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
375
|
-
});
|
|
376
|
-
const projectEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
377
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
378
|
-
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
379
|
-
developerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
380
|
-
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
381
|
-
state: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
382
|
-
type: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
383
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
384
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
385
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
386
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
387
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
388
|
-
});
|
|
389
|
-
const customerEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
390
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
391
|
-
fullName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
392
|
-
mobile: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
393
|
-
email: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
394
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
395
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
396
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
397
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
398
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
399
|
-
});
|
|
400
|
-
const propertyEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
401
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
402
|
-
customerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
403
|
-
projectId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
404
|
-
buyerName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
405
|
-
lotDetail: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
406
|
-
propertyAddress: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
407
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
408
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
409
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
410
|
-
]),
|
|
411
|
-
cmaBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
412
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
413
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
414
|
-
]),
|
|
415
|
-
mtaBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
416
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
417
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
418
|
-
]),
|
|
419
|
-
stage: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyStage),
|
|
420
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyRestResStatus),
|
|
421
|
-
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
422
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
423
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
424
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
425
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
426
|
-
});
|
|
427
|
-
const propertyListRestResSchema = propertyEntitySchema.extend({
|
|
428
|
-
customerEmail: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
429
|
-
customerMobile: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
430
|
-
projectType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
431
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyRestResStatus),
|
|
432
|
-
stage: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.PropertyStage),
|
|
433
|
-
projectName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
434
|
-
propertyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
435
|
-
propertyAddress: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
436
|
-
hasCMA: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
437
|
-
developerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
438
|
-
developerCompanyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
439
|
-
cma: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>cmaEntitySchema).optional().nullish()
|
|
440
|
-
}).strip();
|
|
441
|
-
const propertyWithProjectRestResSchema = propertyEntitySchema.extend({
|
|
442
|
-
project: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>projectEntitySchema.extend({
|
|
443
|
-
developer: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>developerEntitySchema).optional().nullish()
|
|
444
|
-
}))
|
|
445
|
-
});
|
|
446
|
-
const propertyRestResSchema = propertyWithProjectRestResSchema.extend({
|
|
447
|
-
customer: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>customerEntitySchema).nullish(),
|
|
448
|
-
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema.omit({
|
|
449
|
-
accountPeriods: true,
|
|
450
|
-
paymentMethods: true
|
|
451
|
-
})).nullish(),
|
|
452
|
-
cma: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>cmaRestResSchema.omit({
|
|
453
|
-
property: true
|
|
454
|
-
})).nullish()
|
|
510
|
+
const cmaRestResSchema = cmaRestResBaseSchema.extend({
|
|
511
|
+
property: z.lazy(()=>propertyNestedEntitySchema.omit({
|
|
512
|
+
cma: true,
|
|
513
|
+
mta: true,
|
|
514
|
+
cmaTransactions: true,
|
|
515
|
+
mtaTransactions: true
|
|
516
|
+
}).optional())
|
|
455
517
|
});
|
|
456
|
-
const
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
462
|
-
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuTrustAccountBankCode),
|
|
463
|
-
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
464
|
-
visibleStart: 0,
|
|
465
|
-
visibleEnd: 2
|
|
466
|
-
})),
|
|
467
|
-
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
468
|
-
visibleStart: 0,
|
|
469
|
-
visibleEnd: 3
|
|
470
|
-
})?.replace(/^(\*+)(\d{3})$/, '$1-$2')),
|
|
471
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(CmaStatus),
|
|
472
|
-
property: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>propertyWithProjectRestResSchema).nullish()
|
|
473
|
-
}).strip();
|
|
474
|
-
const createCmaRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
475
|
-
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
476
|
-
accountName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
477
|
-
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuTrustAccountBankCode),
|
|
478
|
-
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().length(6).regex(/^\d+$/, {
|
|
518
|
+
const createCmaRestReqSchema = z.object({
|
|
519
|
+
propertyId: z.string().uuid(),
|
|
520
|
+
accountName: z.string(),
|
|
521
|
+
bankCode: z.nativeEnum(AuTrustAccountBankCode),
|
|
522
|
+
bsb: z.string().length(6).regex(/^\d+$/, {
|
|
479
523
|
message: 'BSB must be all digits'
|
|
480
524
|
}),
|
|
481
|
-
accountNumber:
|
|
525
|
+
accountNumber: z.string().min(6).max(10).regex(/^\d+$/, {
|
|
482
526
|
message: 'Account number must be all digits'
|
|
483
527
|
})
|
|
484
528
|
});
|
|
485
|
-
const cmaAccountPeriodCloseRestReqSchema =
|
|
486
|
-
cmaId:
|
|
487
|
-
cmaAccountPeriodId:
|
|
488
|
-
endDate:
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
]).transform((date)=>(
|
|
492
|
-
closingDescription:
|
|
529
|
+
const cmaAccountPeriodCloseRestReqSchema = z.object({
|
|
530
|
+
cmaId: z.string().uuid(),
|
|
531
|
+
cmaAccountPeriodId: z.string().uuid(),
|
|
532
|
+
endDate: z.union([
|
|
533
|
+
z.string(),
|
|
534
|
+
z.date()
|
|
535
|
+
]).transform((date)=>dayjs(date).endOf('day').toDate()).pipe(z.date()),
|
|
536
|
+
closingDescription: z.string().optional()
|
|
493
537
|
});
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
514
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean()
|
|
538
|
+
const cmaReconciliationEntitySchema = z.object({
|
|
539
|
+
id: z.string().uuid(),
|
|
540
|
+
cmaAccountPeriodId: z.string(),
|
|
541
|
+
cmaId: z.string(),
|
|
542
|
+
closingBalanceCents: z.bigint().nullable(),
|
|
543
|
+
reconciledTo: z.coerce.date(),
|
|
544
|
+
reconciledAmountCents: z.bigint().nullable(),
|
|
545
|
+
unreconciledAmountCents: z.bigint().nullable(),
|
|
546
|
+
totalReconciledAmountCents: z.bigint().nullable(),
|
|
547
|
+
bankStatementBalanceCents: z.bigint(),
|
|
548
|
+
closingVarianceCents: z.bigint().nullable(),
|
|
549
|
+
closedAt: z.coerce.date().nullable(),
|
|
550
|
+
createdBy: z.string(),
|
|
551
|
+
createdAt: z.coerce.date(),
|
|
552
|
+
updatedBy: z.string().nullable(),
|
|
553
|
+
closedBy: z.string().nullable(),
|
|
554
|
+
editable: z.boolean(),
|
|
555
|
+
status: z.string(),
|
|
556
|
+
isArchived: z.boolean()
|
|
515
557
|
});
|
|
516
558
|
const cmaReconciliationRestResSchema = cmaReconciliationEntitySchema.extend({
|
|
517
|
-
closingBalanceCents:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
524
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
525
|
-
closingVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
526
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
527
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
528
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
529
|
-
currentTrustBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
530
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
531
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
532
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
533
|
-
currentReconciledBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
534
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
535
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
536
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
537
|
-
currentVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
538
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
539
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
540
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish()
|
|
559
|
+
closingBalanceCents: centsToDollarsSchema.nullish(),
|
|
560
|
+
bankStatementBalanceCents: centsToDollarsSchema,
|
|
561
|
+
closingVarianceCents: centsToDollarsSchema.nullish(),
|
|
562
|
+
currentTrustBalanceCents: centsToDollarsSchema.nullish(),
|
|
563
|
+
currentReconciledBalanceCents: centsToDollarsSchema.nullish(),
|
|
564
|
+
currentVarianceCents: centsToDollarsSchema.nullish()
|
|
541
565
|
});
|
|
542
566
|
const formatCurrency = (amount, options)=>{
|
|
543
567
|
const { locale = 'en-AU', defaultValue = null, currency = 'AUD', style = 'currency', ...rest } = options || {};
|
|
@@ -575,9 +599,8 @@ const isUnknownReceiptAssignedToProperty = (transaction)=>{
|
|
|
575
599
|
return false;
|
|
576
600
|
};
|
|
577
601
|
const isInterestTransaction = (transaction)=>{
|
|
578
|
-
const isMtaInterest = transaction.transactionType === MtaTransactionType.INTEREST;
|
|
579
602
|
const isCmaInterest = transaction.transactionType === CmaTransactionType.INTEREST;
|
|
580
|
-
return
|
|
603
|
+
return isCmaInterest;
|
|
581
604
|
};
|
|
582
605
|
const isTransactionCancelable = (transaction)=>{
|
|
583
606
|
const isUnkonwn = isUnknownTransaction(transaction);
|
|
@@ -658,145 +681,178 @@ const getTransactionStatus = (transaction)=>{
|
|
|
658
681
|
isReconciled
|
|
659
682
|
};
|
|
660
683
|
};
|
|
661
|
-
const cmaAccountPeriodEntitySchema =
|
|
662
|
-
id:
|
|
663
|
-
startDate:
|
|
664
|
-
endDate:
|
|
665
|
-
openingBalanceCents:
|
|
666
|
-
closingBalanceCents:
|
|
667
|
-
status:
|
|
668
|
-
closedBy:
|
|
669
|
-
closedAt:
|
|
670
|
-
isArchived:
|
|
671
|
-
createdAt:
|
|
672
|
-
updatedAt:
|
|
673
|
-
cmaId:
|
|
674
|
-
closingDescription:
|
|
684
|
+
const cmaAccountPeriodEntitySchema = z.object({
|
|
685
|
+
id: z.string().uuid(),
|
|
686
|
+
startDate: z.coerce.date(),
|
|
687
|
+
endDate: z.coerce.date().nullable(),
|
|
688
|
+
openingBalanceCents: z.bigint(),
|
|
689
|
+
closingBalanceCents: z.bigint().nullable(),
|
|
690
|
+
status: z.string(),
|
|
691
|
+
closedBy: z.string().nullable(),
|
|
692
|
+
closedAt: z.coerce.date().nullable(),
|
|
693
|
+
isArchived: z.boolean(),
|
|
694
|
+
createdAt: z.coerce.date(),
|
|
695
|
+
updatedAt: z.coerce.date(),
|
|
696
|
+
cmaId: z.string(),
|
|
697
|
+
closingDescription: z.string().nullable()
|
|
675
698
|
});
|
|
676
699
|
const cmaAccountPeriodRestResBaseSchema = cmaAccountPeriodEntitySchema.extend({
|
|
677
|
-
openingBalanceCents:
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
684
|
-
]).nullish().transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
700
|
+
openingBalanceCents: centsToDollarsSchema,
|
|
701
|
+
closingBalanceCents: centsToDollarsSchema.nullish(),
|
|
702
|
+
reconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
703
|
+
totalReconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
704
|
+
unreconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
705
|
+
status: z.string().pipe(z.nativeEnum(account_period_constant_AccountPeriodStatus))
|
|
685
706
|
});
|
|
686
707
|
const cmaAccountPeriodRestResSchema = cmaAccountPeriodRestResBaseSchema.extend({
|
|
687
|
-
cma:
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
708
|
+
cma: z.lazy(()=>cmaRestResSchema).optional()
|
|
709
|
+
});
|
|
710
|
+
const cmaClosedAccountPeriodRestResSchema = cmaAccountPeriodEntitySchema.extend({
|
|
711
|
+
currentReconciliation: z.lazy(()=>cmaReconciliationRestResSchema).nullish()
|
|
712
|
+
});
|
|
713
|
+
const cmaReconciledTransactionRestResSchema = cmaReconciledTransactionEntitySchema.extend({
|
|
714
|
+
cmaTransaction: z.lazy(()=>cmaTransactionRestResSchema).optional(),
|
|
715
|
+
accountPeriod: z.lazy(()=>cmaAccountPeriodRestResSchema).optional()
|
|
716
|
+
});
|
|
717
|
+
const payoutSourceDetailsEntitySchema = z.object({
|
|
718
|
+
sourceAccountId: z.string(),
|
|
719
|
+
sourceAccountType: z.string(),
|
|
720
|
+
sourceAccountName: z.string(),
|
|
721
|
+
sourceBsb: z.string(),
|
|
722
|
+
sourceAccountNumber: z.string(),
|
|
723
|
+
sourceAccountStateCode: z.string(),
|
|
724
|
+
sourceAccountBankCode: z.string(),
|
|
725
|
+
debitAmountCents: z.coerce.bigint(),
|
|
726
|
+
description: z.string(),
|
|
727
|
+
bankRef: z.string(),
|
|
728
|
+
transactionType: z.string().nullish()
|
|
729
|
+
}).passthrough();
|
|
730
|
+
const payoutTargetDetailsBaseEntitySchema = z.object({
|
|
731
|
+
targetBsb: z.string().nullish(),
|
|
732
|
+
targetAccountType: z.string().nullish(),
|
|
733
|
+
targetAccountNumber: z.string().nullish(),
|
|
734
|
+
targetAccountName: z.string().nullish(),
|
|
735
|
+
creditAmountCents: z.coerce.bigint(),
|
|
736
|
+
description: z.string().trim().min(1),
|
|
737
|
+
bankRef: z.string().nullish(),
|
|
738
|
+
transactionType: z.string().nullish()
|
|
739
|
+
}).passthrough();
|
|
740
|
+
const payoutMtaToCmaTargetDetailsEntitySchema = payoutTargetDetailsBaseEntitySchema.extend({
|
|
741
|
+
targetAccountId: z.string().uuid(),
|
|
742
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.CMA),
|
|
743
|
+
targetBsb: z.string(),
|
|
744
|
+
targetAccountNumber: z.string(),
|
|
745
|
+
targetAccountName: z.string()
|
|
746
|
+
}).passthrough();
|
|
747
|
+
const payoutOtherTargetDetailsEntitySchema = payoutTargetDetailsBaseEntitySchema.extend({
|
|
748
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER),
|
|
749
|
+
sourcePropertyId: z.string().uuid().optional()
|
|
750
|
+
});
|
|
751
|
+
const payoutTargetDetailsEntitySchema = z.discriminatedUnion('targetAccountType', [
|
|
752
|
+
payoutMtaToCmaTargetDetailsEntitySchema,
|
|
753
|
+
payoutOtherTargetDetailsEntitySchema
|
|
754
|
+
]);
|
|
755
|
+
const payoutMtaToCmaProvisionDataEntitySchema = z.object({
|
|
756
|
+
sourceDetails: payoutSourceDetailsEntitySchema,
|
|
757
|
+
targetDetails: payoutMtaToCmaTargetDetailsEntitySchema.array()
|
|
758
|
+
});
|
|
759
|
+
const payoutOtherProvisionDataEntitySchema = z.object({
|
|
760
|
+
projectId: z.string().uuid().optional(),
|
|
761
|
+
sourceDetails: payoutSourceDetailsEntitySchema,
|
|
762
|
+
targetDetails: payoutOtherTargetDetailsEntitySchema.array()
|
|
763
|
+
});
|
|
764
|
+
const payoutProvisionDataEntitySchema = z.object({
|
|
765
|
+
sourceDetails: payoutSourceDetailsEntitySchema,
|
|
766
|
+
targetDetails: payoutTargetDetailsEntitySchema.array()
|
|
767
|
+
}).passthrough();
|
|
768
|
+
const payoutEntitySchema = z.object({
|
|
769
|
+
id: z.string().uuid(),
|
|
770
|
+
sequence: z.number().int(),
|
|
771
|
+
payoutType: z.string(),
|
|
772
|
+
sourceAccountType: z.string(),
|
|
773
|
+
sourceAccountId: z.string(),
|
|
774
|
+
totalAmountCents: z.bigint(),
|
|
775
|
+
description: z.string().nullable(),
|
|
776
|
+
status: z.string(),
|
|
777
|
+
createdAt: z.coerce.date(),
|
|
778
|
+
updatedAt: z.coerce.date(),
|
|
779
|
+
createdBy: z.string(),
|
|
780
|
+
updatedBy: z.string().nullable(),
|
|
781
|
+
isArchived: z.boolean(),
|
|
782
|
+
provisionDetails: payoutProvisionDataEntitySchema,
|
|
783
|
+
bankRef: z.string().nullable(),
|
|
784
|
+
canceledAt: z.coerce.date().nullable(),
|
|
785
|
+
canceledBy: z.string().nullable(),
|
|
786
|
+
canceledReason: z.string().nullable()
|
|
787
|
+
});
|
|
788
|
+
const userEntitySchema = z.object({
|
|
789
|
+
id: z.string().uuid(),
|
|
790
|
+
email: z.string(),
|
|
791
|
+
firstName: z.string().nullable(),
|
|
792
|
+
lastName: z.string().nullable(),
|
|
793
|
+
mobile: z.string(),
|
|
794
|
+
avatar: z.string().nullable(),
|
|
795
|
+
password: z.string(),
|
|
796
|
+
passwordVersion: z.number().int(),
|
|
797
|
+
isTwoFaRequired: z.boolean(),
|
|
798
|
+
preferTwoFaMethod: z.string().nullable(),
|
|
799
|
+
twoFaAvailableMethods: z.string().array(),
|
|
800
|
+
status: z.string(),
|
|
801
|
+
isArchived: z.boolean(),
|
|
802
|
+
createdAt: z.coerce.date(),
|
|
803
|
+
updatedAt: z.coerce.date()
|
|
804
|
+
});
|
|
805
|
+
const userRestResSchema = userEntitySchema.pick({
|
|
806
|
+
id: true,
|
|
807
|
+
email: true,
|
|
808
|
+
firstName: true,
|
|
809
|
+
lastName: true
|
|
703
810
|
}).extend({
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
passwordVersion: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
732
|
-
isTwoFaRequired: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
733
|
-
preferTwoFaMethod: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
734
|
-
twoFaAvailableMethods: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().array(),
|
|
735
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
736
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
737
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
738
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
739
|
-
});
|
|
740
|
-
const cmaTransactionEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
741
|
-
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
742
|
-
cmaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
743
|
-
sequence: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
744
|
-
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
745
|
-
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
746
|
-
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
747
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
748
|
-
createType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
749
|
-
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
750
|
-
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
751
|
-
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
752
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
753
|
-
isCanceled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
754
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
755
|
-
isRefunded: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
756
|
-
clearedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
757
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
758
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
759
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
760
|
-
sourceTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
761
|
-
cancelType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
762
|
-
canceledBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
763
|
-
canceledAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
764
|
-
canceledReason: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
765
|
-
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
766
|
-
});
|
|
767
|
-
const baseSchema = cmaTransactionEntitySchema.extend({
|
|
768
|
-
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
769
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
770
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
771
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
772
|
-
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
773
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
774
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
775
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
776
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
777
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
778
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
779
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
780
|
-
inputType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(cma_input_type_constant_CmaTransactionInputType).default(cma_input_type_constant_CmaTransactionInputType.CUSTOMER),
|
|
781
|
-
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(CmaTransactionType),
|
|
782
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(common_status_constant_AccountingCommonStatus),
|
|
783
|
-
creator: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema).optional().nullish(),
|
|
784
|
-
canceler: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema).optional().nullish(),
|
|
785
|
-
property: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>propertyRestResSchema.omit({
|
|
811
|
+
fullName: z.string().nullish(),
|
|
812
|
+
email: z.string().email(),
|
|
813
|
+
firstName: z.string().nullish(),
|
|
814
|
+
lastName: z.string().nullish()
|
|
815
|
+
}).superRefine((data)=>{
|
|
816
|
+
const name = [
|
|
817
|
+
data.firstName,
|
|
818
|
+
data.lastName
|
|
819
|
+
].filter(Boolean).join(' ').trim();
|
|
820
|
+
if (name) data.fullName = name;
|
|
821
|
+
});
|
|
822
|
+
const cmaTransactionRestResBaseSchema = cmaTransactionEntitySchema.extend({
|
|
823
|
+
creditAmountCents: centsToDollarsSchema,
|
|
824
|
+
debitAmountCents: centsToDollarsSchema,
|
|
825
|
+
balanceCents: centsToDollarsSchema,
|
|
826
|
+
inputType: z.string().pipe(z.nativeEnum(cma_input_type_constant_CmaTransactionInputType)),
|
|
827
|
+
transactionType: z.string().pipe(z.nativeEnum(CmaTransactionType)),
|
|
828
|
+
createdBy: z.union([
|
|
829
|
+
z.string().uuid(),
|
|
830
|
+
userRestResSchema
|
|
831
|
+
]).nullish(),
|
|
832
|
+
canceledBy: z.union([
|
|
833
|
+
z.string().uuid(),
|
|
834
|
+
userRestResSchema
|
|
835
|
+
]).nullish(),
|
|
836
|
+
property: z.lazy(()=>propertyNestedEntitySchema.omit({
|
|
837
|
+
cma: true,
|
|
786
838
|
mta: true,
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
})
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
839
|
+
cmaTransactions: true,
|
|
840
|
+
mtaTransactions: true
|
|
841
|
+
})).nullish(),
|
|
842
|
+
status: z.string().pipe(z.nativeEnum(CmaTransactionStatus))
|
|
843
|
+
});
|
|
844
|
+
const cmaTransactionRestResSchema = cmaTransactionRestResBaseSchema.extend({
|
|
845
|
+
cma: z.lazy(()=>cmaEntitySchema).nullish(),
|
|
846
|
+
sourceTransaction: z.lazy(()=>cmaTransactionRestResSchema).nullish(),
|
|
847
|
+
subsequentTransactions: z.lazy(()=>cmaTransactionRestResSchema.array()).nullish(),
|
|
848
|
+
reconciledTransactions: z.lazy(()=>cmaReconciledTransactionRestResSchema.array()).nullish(),
|
|
849
|
+
isReceipt: z.boolean().optional(),
|
|
850
|
+
isPayment: z.boolean().optional(),
|
|
851
|
+
isReconciled: z.boolean().optional(),
|
|
852
|
+
isCancelable: z.boolean().nullish(),
|
|
853
|
+
amountStr: z.string().optional(),
|
|
854
|
+
transactionNumber: z.string().optional(),
|
|
855
|
+
payout: z.lazy(()=>payoutEntitySchema).nullish()
|
|
800
856
|
}).transform((obj)=>{
|
|
801
857
|
const { isReceipt, isPayment, amountStr, isCancelable, transactionNumber } = getTransactionStatus(obj);
|
|
802
858
|
return {
|
|
@@ -808,319 +864,572 @@ const cmaTransactionRestResSchema = baseSchema.extend({
|
|
|
808
864
|
transactionNumber
|
|
809
865
|
};
|
|
810
866
|
});
|
|
811
|
-
const cmaAccountPeriodClosingSummaryRestReqSchema =
|
|
812
|
-
cmaAccountPeriodId:
|
|
813
|
-
endDate:
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
]).transform((arg)=>(
|
|
817
|
-
});
|
|
818
|
-
const cmaAccountPeriodClosingSummaryRestResSchema =
|
|
819
|
-
startDate:
|
|
820
|
-
endDate:
|
|
821
|
-
bankStatementBalanceCents:
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
]).transform(fromCentsToDollars).pipe(
|
|
825
|
-
currentTrustBalanceSummary:
|
|
826
|
-
totalAmountCents:
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
]).transform(fromCentsToDollars).pipe(
|
|
830
|
-
totalCreditAmountCents:
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
]).transform(fromCentsToDollars).pipe(
|
|
834
|
-
totalDebitAmountCents:
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
]).transform(fromCentsToDollars).pipe(
|
|
838
|
-
totalTransactionsCount:
|
|
867
|
+
const cmaAccountPeriodClosingSummaryRestReqSchema = z.object({
|
|
868
|
+
cmaAccountPeriodId: z.string().uuid(),
|
|
869
|
+
endDate: z.union([
|
|
870
|
+
z.string(),
|
|
871
|
+
z.date()
|
|
872
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()).pipe(z.date())
|
|
873
|
+
});
|
|
874
|
+
const cmaAccountPeriodClosingSummaryRestResSchema = z.object({
|
|
875
|
+
startDate: z.date(),
|
|
876
|
+
endDate: z.date(),
|
|
877
|
+
bankStatementBalanceCents: z.union([
|
|
878
|
+
z.bigint(),
|
|
879
|
+
z.number()
|
|
880
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
881
|
+
currentTrustBalanceSummary: z.object({
|
|
882
|
+
totalAmountCents: z.union([
|
|
883
|
+
z.bigint(),
|
|
884
|
+
z.number()
|
|
885
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
886
|
+
totalCreditAmountCents: z.union([
|
|
887
|
+
z.bigint(),
|
|
888
|
+
z.number()
|
|
889
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
890
|
+
totalDebitAmountCents: z.union([
|
|
891
|
+
z.bigint(),
|
|
892
|
+
z.number()
|
|
893
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
894
|
+
totalTransactionsCount: z.number()
|
|
839
895
|
}),
|
|
840
|
-
reconciliations:
|
|
841
|
-
totalReconciledAmountSummary:
|
|
842
|
-
totalReconciledAmountCents:
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
]).transform(fromCentsToDollars).pipe(
|
|
846
|
-
totalReconciledCreditAmountCents:
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
]).transform(fromCentsToDollars).pipe(
|
|
850
|
-
totalReconciledDebitAmountCents:
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
]).transform(fromCentsToDollars).pipe(
|
|
854
|
-
totalReconciledTransactionsCount:
|
|
896
|
+
reconciliations: z.lazy(()=>cmaReconciliationRestResSchema.array()).nullish(),
|
|
897
|
+
totalReconciledAmountSummary: z.object({
|
|
898
|
+
totalReconciledAmountCents: z.union([
|
|
899
|
+
z.bigint(),
|
|
900
|
+
z.number()
|
|
901
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
902
|
+
totalReconciledCreditAmountCents: z.union([
|
|
903
|
+
z.bigint(),
|
|
904
|
+
z.number()
|
|
905
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
906
|
+
totalReconciledDebitAmountCents: z.union([
|
|
907
|
+
z.bigint(),
|
|
908
|
+
z.number()
|
|
909
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
910
|
+
totalReconciledTransactionsCount: z.number()
|
|
855
911
|
}),
|
|
856
|
-
totalUnreconciledAmountSummary:
|
|
857
|
-
totalUnreconciledAmountCents:
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
]).transform(fromCentsToDollars).pipe(
|
|
861
|
-
totalUnreconciledCreditAmountCents:
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
]).transform(fromCentsToDollars).pipe(
|
|
865
|
-
totalUnreconciledDebitAmountCents:
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
]).transform(fromCentsToDollars).pipe(
|
|
869
|
-
totalUnreconciledTransactionsCount:
|
|
912
|
+
totalUnreconciledAmountSummary: z.object({
|
|
913
|
+
totalUnreconciledAmountCents: z.union([
|
|
914
|
+
z.bigint(),
|
|
915
|
+
z.number()
|
|
916
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
917
|
+
totalUnreconciledCreditAmountCents: z.union([
|
|
918
|
+
z.bigint(),
|
|
919
|
+
z.number()
|
|
920
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
921
|
+
totalUnreconciledDebitAmountCents: z.union([
|
|
922
|
+
z.bigint(),
|
|
923
|
+
z.number()
|
|
924
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
925
|
+
totalUnreconciledTransactionsCount: z.number()
|
|
870
926
|
}),
|
|
871
|
-
transactionsSummary:
|
|
872
|
-
reconciledAmountCents:
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
]).transform(fromCentsToDollars).pipe(
|
|
876
|
-
reconciledTransactions:
|
|
877
|
-
unreconciledAmountCents:
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
]).transform(fromCentsToDollars).pipe(
|
|
881
|
-
unreconciledTransactions:
|
|
927
|
+
transactionsSummary: z.object({
|
|
928
|
+
reconciledAmountCents: z.union([
|
|
929
|
+
z.bigint(),
|
|
930
|
+
z.number()
|
|
931
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
932
|
+
reconciledTransactions: z.lazy(()=>cmaTransactionRestResSchema.array()).nullish(),
|
|
933
|
+
unreconciledAmountCents: z.union([
|
|
934
|
+
z.bigint(),
|
|
935
|
+
z.number()
|
|
936
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
937
|
+
unreconciledTransactions: z.lazy(()=>cmaTransactionRestResSchema.array()).nullish()
|
|
882
938
|
})
|
|
883
939
|
});
|
|
884
|
-
const
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
]).
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
940
|
+
const dollarsToCentsSchema = z.union([
|
|
941
|
+
z.string(),
|
|
942
|
+
z.bigint(),
|
|
943
|
+
z.number()
|
|
944
|
+
]).transform(fromDollarsToCents).pipe(z.bigint());
|
|
945
|
+
const updateCmaAccountPeriodReconciledToRestReqSchema = z.object({
|
|
946
|
+
cmaAccountPeriodId: z.string().uuid(),
|
|
947
|
+
reconciledTo: z.union([
|
|
948
|
+
z.string(),
|
|
949
|
+
z.date()
|
|
950
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()),
|
|
951
|
+
bankStatementBalanceCents: dollarsToCentsSchema,
|
|
952
|
+
lastUpdatedAt: z.union([
|
|
953
|
+
z.string().datetime(),
|
|
954
|
+
z.date()
|
|
955
|
+
]).pipe(z.coerce.date())
|
|
956
|
+
});
|
|
957
|
+
const createCmaReconciliationRestReqSchema = z.object({
|
|
958
|
+
bankStatementBalanceCents: z.union([
|
|
959
|
+
z.bigint(),
|
|
960
|
+
z.number()
|
|
961
|
+
]).transform((arg)=>100n * BigInt(arg)).pipe(z.bigint()),
|
|
962
|
+
reconciledTo: z.union([
|
|
963
|
+
z.string(),
|
|
964
|
+
z.date()
|
|
965
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()).pipe(z.coerce.date()),
|
|
966
|
+
cmaAccountPeriodId: z.string().uuid()
|
|
967
|
+
});
|
|
968
|
+
const updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema = z.object({
|
|
969
|
+
cmaReconciliationId: z.string().uuid(),
|
|
970
|
+
bankStatementBalanceCents: dollarsToCentsSchema
|
|
971
|
+
});
|
|
972
|
+
const cancelCmaTransactionRestReqSchema = z.object({
|
|
973
|
+
transactionId: z.string().uuid(),
|
|
974
|
+
description: z.string().transform((val)=>val.trim()).nullish(),
|
|
975
|
+
reason: z.string().transform((val)=>val.trim()).nullish()
|
|
976
|
+
});
|
|
977
|
+
const markCmaTransactionAsClearedRestReqSchema = z.object({
|
|
978
|
+
transactionId: z.string().uuid(),
|
|
979
|
+
clearedAt: z.coerce.date()
|
|
980
|
+
});
|
|
981
|
+
const boolFilterBaseSchema = z.object({
|
|
982
|
+
equals: z.boolean().optional(),
|
|
983
|
+
not: z.union([
|
|
984
|
+
z.boolean(),
|
|
985
|
+
z.lazy(()=>boolFilterBaseSchema)
|
|
986
|
+
]).optional()
|
|
987
|
+
}).strict();
|
|
988
|
+
const boolFilterSchema = boolFilterBaseSchema.extend({
|
|
989
|
+
not: z.union([
|
|
990
|
+
z.boolean(),
|
|
991
|
+
z.lazy(()=>boolFilterBaseSchema)
|
|
992
|
+
]).optional()
|
|
993
|
+
});
|
|
994
|
+
const intFilterBaseSchema = z.object({
|
|
995
|
+
equals: z.number().optional(),
|
|
996
|
+
in: z.number().array().optional(),
|
|
997
|
+
notIn: z.number().array().optional(),
|
|
998
|
+
lt: z.number().optional(),
|
|
999
|
+
lte: z.number().optional(),
|
|
1000
|
+
gt: z.number().optional(),
|
|
1001
|
+
gte: z.number().optional()
|
|
1002
|
+
});
|
|
1003
|
+
const intFilterSchema = intFilterBaseSchema.extend({
|
|
1004
|
+
not: z.union([
|
|
1005
|
+
z.coerce.number(),
|
|
1006
|
+
z.lazy(()=>intFilterBaseSchema)
|
|
1007
|
+
]).optional()
|
|
1008
|
+
});
|
|
1009
|
+
const bigIntFilterBaseSchema = z.object({
|
|
1010
|
+
equals: z.union([
|
|
1011
|
+
z.coerce.bigint(),
|
|
1012
|
+
z.coerce.number()
|
|
1013
|
+
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
1014
|
+
in: z.union([
|
|
1015
|
+
z.coerce.bigint(),
|
|
1016
|
+
z.coerce.number()
|
|
1017
|
+
]).transform(BigInt).pipe(z.bigint()).array().optional(),
|
|
1018
|
+
notIn: z.union([
|
|
1019
|
+
z.coerce.bigint(),
|
|
1020
|
+
z.coerce.number()
|
|
1021
|
+
]).transform(BigInt).pipe(z.bigint()).array().optional(),
|
|
1022
|
+
lt: z.union([
|
|
1023
|
+
z.coerce.bigint(),
|
|
1024
|
+
z.coerce.number()
|
|
1025
|
+
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
1026
|
+
lte: z.union([
|
|
1027
|
+
z.coerce.bigint(),
|
|
1028
|
+
z.coerce.number()
|
|
1029
|
+
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
1030
|
+
gt: z.union([
|
|
1031
|
+
z.coerce.bigint(),
|
|
1032
|
+
z.coerce.number()
|
|
1033
|
+
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
1034
|
+
gte: z.union([
|
|
1035
|
+
z.coerce.bigint(),
|
|
1036
|
+
z.coerce.number()
|
|
1037
|
+
]).transform(BigInt).pipe(z.bigint()).optional()
|
|
1038
|
+
});
|
|
1039
|
+
const bigIntFilterSchema = bigIntFilterBaseSchema.extend({
|
|
1040
|
+
not: z.union([
|
|
1041
|
+
z.union([
|
|
1042
|
+
z.coerce.bigint(),
|
|
1043
|
+
z.coerce.number()
|
|
1044
|
+
]).transform(BigInt).pipe(z.bigint()),
|
|
1045
|
+
z.lazy(()=>bigIntFilterBaseSchema)
|
|
1046
|
+
]).optional()
|
|
1047
|
+
});
|
|
1048
|
+
const StringFilterBaseSchema = z.object({
|
|
1049
|
+
equals: z.string().optional(),
|
|
1050
|
+
in: z.string().array().optional(),
|
|
1051
|
+
notIn: z.string().array().optional(),
|
|
1052
|
+
lt: z.string().optional(),
|
|
1053
|
+
lte: z.string().optional(),
|
|
1054
|
+
gt: z.string().optional(),
|
|
1055
|
+
gte: z.string().optional(),
|
|
1056
|
+
contains: z.string().optional(),
|
|
1057
|
+
startsWith: z.string().optional(),
|
|
1058
|
+
endsWith: z.string().optional()
|
|
1059
|
+
}).strict();
|
|
1060
|
+
const stringFilterSchema = z.object({
|
|
1061
|
+
equals: z.string().optional(),
|
|
1062
|
+
in: z.string().array().optional(),
|
|
1063
|
+
notIn: z.string().array().optional(),
|
|
1064
|
+
lt: z.string().optional(),
|
|
1065
|
+
lte: z.string().optional(),
|
|
1066
|
+
gt: z.string().optional(),
|
|
1067
|
+
gte: z.string().optional(),
|
|
1068
|
+
contains: z.string().optional(),
|
|
1069
|
+
startsWith: z.string().optional(),
|
|
1070
|
+
endsWith: z.string().optional(),
|
|
1071
|
+
not: z.union([
|
|
1072
|
+
z.string(),
|
|
1073
|
+
z.lazy(()=>StringFilterBaseSchema)
|
|
1074
|
+
]).optional()
|
|
1075
|
+
}).strict();
|
|
1076
|
+
const cmaTransactionSearchRestReqSchema = z.object({
|
|
1077
|
+
cmaId: z.union([
|
|
1078
|
+
z.lazy(()=>stringFilterSchema),
|
|
1079
|
+
z.string()
|
|
1080
|
+
]).optional(),
|
|
1081
|
+
propertyId: z.union([
|
|
1082
|
+
z.lazy(()=>stringFilterSchema),
|
|
1083
|
+
z.string()
|
|
1084
|
+
]).optional(),
|
|
1085
|
+
createType: z.union([
|
|
1086
|
+
z.lazy(()=>stringFilterSchema),
|
|
1087
|
+
z.string()
|
|
1088
|
+
]).optional(),
|
|
1089
|
+
transactionType: z.union([
|
|
1090
|
+
z.lazy(()=>stringFilterSchema),
|
|
1091
|
+
z.string()
|
|
1092
|
+
]).optional(),
|
|
1093
|
+
isCanceled: z.union([
|
|
1094
|
+
z.lazy(()=>boolFilterSchema),
|
|
1095
|
+
z.string()
|
|
1096
|
+
]).optional(),
|
|
1097
|
+
isRefunded: z.union([
|
|
1098
|
+
z.lazy(()=>boolFilterSchema),
|
|
1099
|
+
z.string()
|
|
1100
|
+
]).optional(),
|
|
1101
|
+
mtaId: z.union([
|
|
1102
|
+
z.lazy(()=>stringFilterSchema),
|
|
1103
|
+
z.string()
|
|
1104
|
+
]).optional(),
|
|
1105
|
+
mtaBalanceCents: z.union([
|
|
1106
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1107
|
+
z.bigint()
|
|
1108
|
+
]).optional(),
|
|
1109
|
+
cmaBalanceCents: z.union([
|
|
1110
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1111
|
+
z.bigint()
|
|
1112
|
+
]).optional(),
|
|
1113
|
+
balanceCents: z.union([
|
|
1114
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1115
|
+
z.bigint()
|
|
1116
|
+
]).optional(),
|
|
1117
|
+
status: z.union([
|
|
1118
|
+
z.lazy(()=>stringFilterSchema),
|
|
1119
|
+
z.string()
|
|
1120
|
+
]).optional(),
|
|
1121
|
+
payoutId: z.union([
|
|
1122
|
+
z.lazy(()=>stringFilterSchema),
|
|
1123
|
+
z.string()
|
|
1124
|
+
]).optional()
|
|
1125
|
+
});
|
|
1126
|
+
const createCmaTransactionRestReqSchema = z.object({
|
|
1127
|
+
amount: z.number().positive().transform((val)=>100n * BigInt(val)).pipe(z.bigint()),
|
|
1128
|
+
clearedAt: z.coerce.date(),
|
|
1129
|
+
description: z.string().trim().min(1, "Description is required"),
|
|
1130
|
+
cmaId: z.string().uuid(),
|
|
1131
|
+
bankRef: z.string().transform((val)=>val.trim()),
|
|
1132
|
+
transactionType: z.union([
|
|
1133
|
+
z.nativeEnum(cma_payment_method_constant_CmaTransactionPaymentMethod),
|
|
1134
|
+
z.string()
|
|
928
1135
|
]).refine((val)=>val === CmaTransactionType.INTEREST, {
|
|
929
1136
|
message: 'Only interest transaction is allowed'
|
|
930
|
-
}).pipe(
|
|
931
|
-
paymentMethod:
|
|
932
|
-
|
|
933
|
-
|
|
1137
|
+
}).pipe(z.nativeEnum(CmaTransactionType)),
|
|
1138
|
+
paymentMethod: z.union([
|
|
1139
|
+
z.nativeEnum(cma_payment_method_constant_CmaTransactionPaymentMethod),
|
|
1140
|
+
z.string().length(0)
|
|
934
1141
|
]).transform((val)=>'' === val ? cma_payment_method_constant_CmaTransactionPaymentMethod.EFT : val).default(cma_payment_method_constant_CmaTransactionPaymentMethod.EFT),
|
|
935
|
-
inputType:
|
|
936
|
-
});
|
|
937
|
-
const reconcileCmaTransactionRestReqSchema =
|
|
938
|
-
cmaTransactionId:
|
|
939
|
-
reconciliationId:
|
|
940
|
-
action:
|
|
941
|
-
});
|
|
942
|
-
const
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1142
|
+
inputType: z.nativeEnum(cma_input_type_constant_CmaTransactionInputType).default(cma_input_type_constant_CmaTransactionInputType.MANUAL)
|
|
1143
|
+
});
|
|
1144
|
+
const reconcileCmaTransactionRestReqSchema = z.object({
|
|
1145
|
+
cmaTransactionId: z.string().uuid(),
|
|
1146
|
+
reconciliationId: z.string().uuid(),
|
|
1147
|
+
action: z.nativeEnum(reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
1148
|
+
});
|
|
1149
|
+
const dateTimeFilterBaseSchema = z.object({
|
|
1150
|
+
equals: z.coerce.date().optional(),
|
|
1151
|
+
in: z.coerce.date().array().optional(),
|
|
1152
|
+
notIn: z.coerce.date().array().optional(),
|
|
1153
|
+
lt: z.coerce.date().optional(),
|
|
1154
|
+
lte: z.coerce.date().optional(),
|
|
1155
|
+
gt: z.coerce.date().optional(),
|
|
1156
|
+
gte: z.coerce.date().optional()
|
|
1157
|
+
}).strict();
|
|
1158
|
+
const dateTimeFilterSchema = z.object({
|
|
1159
|
+
equals: z.coerce.date().optional(),
|
|
1160
|
+
in: z.coerce.date().array().optional(),
|
|
1161
|
+
notIn: z.coerce.date().array().optional(),
|
|
1162
|
+
lt: z.coerce.date().optional(),
|
|
1163
|
+
lte: z.coerce.date().optional(),
|
|
1164
|
+
gt: z.coerce.date().optional(),
|
|
1165
|
+
gte: z.coerce.date().optional(),
|
|
1166
|
+
not: z.union([
|
|
1167
|
+
z.coerce.date(),
|
|
1168
|
+
z.lazy(()=>dateTimeFilterBaseSchema)
|
|
1169
|
+
]).optional()
|
|
1170
|
+
}).strict();
|
|
1171
|
+
const InputJsonValueSchema = z.lazy(()=>z.union([
|
|
1172
|
+
z.string(),
|
|
1173
|
+
z.number(),
|
|
1174
|
+
z.boolean(),
|
|
1175
|
+
z.object({
|
|
1176
|
+
toJSON: z["function"](z.tuple([]), z.any())
|
|
1177
|
+
}),
|
|
1178
|
+
z.record(z.lazy(()=>z.union([
|
|
1179
|
+
InputJsonValueSchema,
|
|
1180
|
+
z.literal(null)
|
|
1181
|
+
]))),
|
|
1182
|
+
z.array(z.lazy(()=>z.union([
|
|
1183
|
+
InputJsonValueSchema,
|
|
1184
|
+
z.literal(null)
|
|
1185
|
+
])))
|
|
1186
|
+
]));
|
|
1187
|
+
const JsonNullableFilterSchema = z.object({
|
|
1188
|
+
equals: z.string().optional(),
|
|
1189
|
+
path: z.string().array().optional(),
|
|
1190
|
+
string_contains: z.string().optional(),
|
|
1191
|
+
string_starts_with: z.string().optional(),
|
|
1192
|
+
string_ends_with: z.string().optional()
|
|
1193
|
+
});
|
|
1194
|
+
const createMenuRestReqSchema = z.object({
|
|
1195
|
+
parentId: z.string().optional(),
|
|
1196
|
+
label: z.string(),
|
|
1197
|
+
title: z.string().optional(),
|
|
1198
|
+
section: z.string().optional(),
|
|
1199
|
+
icon: z.string().optional(),
|
|
1200
|
+
show: z.boolean().optional().default(true),
|
|
1201
|
+
path: z.string().optional(),
|
|
1202
|
+
type: z.nativeEnum(MenuType),
|
|
1203
|
+
permissionKey: z.string().min(1, 'Permission key is required'),
|
|
1204
|
+
sort: z.number().optional().default(99),
|
|
1205
|
+
status: z.nativeEnum(MenuStatus).default(MenuStatus.ACTIVE)
|
|
1206
|
+
});
|
|
1207
|
+
const menuSchema = z.object({
|
|
1208
|
+
id: z.string(),
|
|
1209
|
+
parentId: z.string().nullish(),
|
|
1210
|
+
label: z.string(),
|
|
1211
|
+
title: z.string().nullish(),
|
|
1212
|
+
section: z.string().nullish(),
|
|
1213
|
+
icon: z.string().nullish(),
|
|
1214
|
+
path: z.string().nullish(),
|
|
1215
|
+
absolutePath: z.string().nullish(),
|
|
1216
|
+
type: z.nativeEnum(MenuType),
|
|
1217
|
+
permissionKey: z.string().nullish(),
|
|
1218
|
+
sort: z.number().nullish(),
|
|
1219
|
+
show: z.boolean().nullish(),
|
|
1220
|
+
status: z.nativeEnum(MenuStatus),
|
|
1221
|
+
createdAt: z.date(),
|
|
1222
|
+
updatedAt: z.date(),
|
|
1223
|
+
isArchived: z.boolean()
|
|
972
1224
|
});
|
|
973
1225
|
const menuRestResSchema = menuSchema.extend({
|
|
974
|
-
children:
|
|
1226
|
+
children: z.array(menuSchema).optional()
|
|
975
1227
|
});
|
|
976
1228
|
const updateMenuRestReqSchema = createMenuRestReqSchema.extend({
|
|
977
|
-
id:
|
|
1229
|
+
id: z.string()
|
|
978
1230
|
});
|
|
979
|
-
const createMtaRestReqSchema =
|
|
980
|
-
name:
|
|
981
|
-
country:
|
|
1231
|
+
const createMtaRestReqSchema = z.object({
|
|
1232
|
+
name: z.string().trim().min(1),
|
|
1233
|
+
country: z.string().refine((val)=>'Australia' === val, {
|
|
982
1234
|
message: 'Country must be Australia'
|
|
983
1235
|
}),
|
|
984
|
-
stateCode:
|
|
985
|
-
bankCode:
|
|
986
|
-
bsb:
|
|
1236
|
+
stateCode: z.nativeEnum(AuStateCode),
|
|
1237
|
+
bankCode: z.nativeEnum(AuTrustAccountBankCode),
|
|
1238
|
+
bsb: z.string().length(6).regex(/^\d+$/, {
|
|
987
1239
|
message: 'BSB must be all digits'
|
|
988
1240
|
}),
|
|
989
|
-
accountNumber:
|
|
1241
|
+
accountNumber: z.string().min(6).max(10).regex(/^\d+$/, {
|
|
990
1242
|
message: 'Account number must be all digits'
|
|
991
1243
|
}),
|
|
992
|
-
directDebitBankAccountId:
|
|
993
|
-
directDebitProviderCode:
|
|
994
|
-
payIdBankAccountId:
|
|
995
|
-
payIdProviderCode:
|
|
996
|
-
zeptoBankAccountId:
|
|
997
|
-
});
|
|
998
|
-
const
|
|
999
|
-
id:
|
|
1000
|
-
|
|
1244
|
+
directDebitBankAccountId: z.string().uuid(),
|
|
1245
|
+
directDebitProviderCode: z.nativeEnum(PaymentProviderCode),
|
|
1246
|
+
payIdBankAccountId: z.string().uuid(),
|
|
1247
|
+
payIdProviderCode: z.nativeEnum(PaymentProviderCode),
|
|
1248
|
+
zeptoBankAccountId: z.string().uuid()
|
|
1249
|
+
});
|
|
1250
|
+
const mtaAccountPeriodEntitySchema = z.object({
|
|
1251
|
+
id: z.string().uuid(),
|
|
1252
|
+
startDate: z.coerce.date(),
|
|
1253
|
+
endDate: z.coerce.date().nullable(),
|
|
1254
|
+
openingBalanceCents: z.bigint(),
|
|
1255
|
+
closingBalanceCents: z.bigint().nullable(),
|
|
1256
|
+
status: z.string(),
|
|
1257
|
+
closedBy: z.string().nullable(),
|
|
1258
|
+
closedAt: z.coerce.date().nullable(),
|
|
1259
|
+
isArchived: z.boolean(),
|
|
1260
|
+
createdAt: z.coerce.date(),
|
|
1261
|
+
updatedAt: z.coerce.date(),
|
|
1262
|
+
mtaId: z.string(),
|
|
1263
|
+
closingDescription: z.string().nullable()
|
|
1264
|
+
});
|
|
1265
|
+
const paymentProviderEntitySchema = z.object({
|
|
1266
|
+
id: z.string().uuid(),
|
|
1267
|
+
name: z.string(),
|
|
1268
|
+
providerCode: z.string(),
|
|
1269
|
+
isArchived: z.boolean(),
|
|
1270
|
+
settings: z.string(),
|
|
1271
|
+
status: z.string(),
|
|
1272
|
+
createdAt: z.coerce.date(),
|
|
1273
|
+
updatedAt: z.coerce.date()
|
|
1274
|
+
});
|
|
1275
|
+
const mtaPaymentMethodAccountConfigSchema = z.object({
|
|
1276
|
+
bsb: z.string(),
|
|
1277
|
+
accountNumber: z.string(),
|
|
1278
|
+
credential: z.object({
|
|
1279
|
+
bankAccountId: z.string()
|
|
1280
|
+
})
|
|
1281
|
+
});
|
|
1282
|
+
const mtaPaymentMethodFloatAccountConfigSchema = z.object({
|
|
1283
|
+
domainName: z.string().email(),
|
|
1284
|
+
credential: z.object({
|
|
1285
|
+
bankAccountId: z.string()
|
|
1286
|
+
})
|
|
1287
|
+
});
|
|
1288
|
+
const mtaPaymentMethodEntitySchema = z.object({
|
|
1289
|
+
id: z.string().uuid(),
|
|
1290
|
+
mtaId: z.string(),
|
|
1291
|
+
paymentProviderId: z.string(),
|
|
1292
|
+
bankAccountId: z.string(),
|
|
1293
|
+
account: z.string(),
|
|
1294
|
+
floatAccount: z.string().nullable(),
|
|
1295
|
+
status: z.string(),
|
|
1296
|
+
isArchived: z.boolean(),
|
|
1297
|
+
createdAt: z.coerce.date(),
|
|
1298
|
+
updatedAt: z.coerce.date()
|
|
1299
|
+
});
|
|
1300
|
+
const mtaPaymentMethodRestResSchema = mtaPaymentMethodEntitySchema.extend({
|
|
1301
|
+
paymentProvider: z.lazy(()=>paymentProviderEntitySchema).optional(),
|
|
1302
|
+
mta: z.lazy(()=>mtaEntitySchema).optional(),
|
|
1303
|
+
account: z.string().transform((val)=>{
|
|
1304
|
+
if ('string' == typeof val) return JSON.parse(val);
|
|
1305
|
+
return val;
|
|
1306
|
+
}).pipe(mtaPaymentMethodAccountConfigSchema),
|
|
1307
|
+
floatAccount: z.string().nullable().transform((val)=>{
|
|
1308
|
+
if ('string' == typeof val) return JSON.parse(val);
|
|
1309
|
+
return val;
|
|
1310
|
+
}).pipe(mtaPaymentMethodFloatAccountConfigSchema).nullish()
|
|
1311
|
+
});
|
|
1312
|
+
const mtaReconciliationEntitySchema = z.object({
|
|
1313
|
+
id: z.string().uuid(),
|
|
1314
|
+
mtaAccountPeriodId: z.string(),
|
|
1315
|
+
mtaId: z.string(),
|
|
1316
|
+
closingBalanceCents: z.bigint().nullable(),
|
|
1317
|
+
reconciledTo: z.coerce.date(),
|
|
1318
|
+
reconciledAmountCents: z.bigint().nullable(),
|
|
1319
|
+
unreconciledAmountCents: z.bigint().nullable(),
|
|
1320
|
+
totalReconciledAmountCents: z.bigint().nullable(),
|
|
1321
|
+
bankStatementBalanceCents: z.bigint(),
|
|
1322
|
+
closingVarianceCents: z.bigint().nullable(),
|
|
1323
|
+
closedAt: z.coerce.date().nullable(),
|
|
1324
|
+
createdBy: z.string(),
|
|
1325
|
+
createdAt: z.coerce.date(),
|
|
1326
|
+
updatedBy: z.string().nullable(),
|
|
1327
|
+
closedBy: z.string().nullable(),
|
|
1328
|
+
editable: z.boolean(),
|
|
1329
|
+
status: z.string(),
|
|
1330
|
+
isArchived: z.boolean()
|
|
1331
|
+
});
|
|
1332
|
+
const mtaReconciliationRestResSchema = mtaReconciliationEntitySchema.extend({
|
|
1333
|
+
closingBalanceCents: centsToDollarsSchema.nullish(),
|
|
1334
|
+
bankStatementBalanceCents: centsToDollarsSchema,
|
|
1335
|
+
closingVarianceCents: centsToDollarsSchema.nullish(),
|
|
1336
|
+
currentTrustBalanceCents: centsToDollarsSchema.nullish(),
|
|
1337
|
+
currentReconciledBalanceCents: centsToDollarsSchema.nullish(),
|
|
1338
|
+
currentVarianceCents: centsToDollarsSchema.nullish()
|
|
1339
|
+
});
|
|
1340
|
+
const mtaRestResBaseSchema = mtaEntitySchema.extend({
|
|
1341
|
+
stateCode: stateCodeSchema,
|
|
1342
|
+
bankCode: bankCodeSchema,
|
|
1343
|
+
accountNumber: accountNumberMaskedSchema,
|
|
1344
|
+
bsb: accountBsbMaskedSchema,
|
|
1345
|
+
balanceCents: centsToDollarsSchema
|
|
1346
|
+
});
|
|
1347
|
+
const mtaRestResSchema = mtaRestResBaseSchema.extend({
|
|
1348
|
+
paymentMethods: z.lazy(()=>z.array(mtaPaymentMethodRestResSchema)).optional(),
|
|
1349
|
+
accountPeriods: z.lazy(()=>mtaAccountPeriodEntitySchema.array().optional())
|
|
1350
|
+
});
|
|
1351
|
+
const mtaListItemRestResSchema = mtaRestResBaseSchema.extend({
|
|
1352
|
+
currentReconciliation: z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
1353
|
+
});
|
|
1354
|
+
const updateMtaRestReqSchema = z.object({
|
|
1355
|
+
id: z.string().uuid(),
|
|
1356
|
+
name: z.string().trim().min(1)
|
|
1001
1357
|
}).strip();
|
|
1002
|
-
const mtaAccountPeriodCloseRestReqSchema =
|
|
1003
|
-
mtaId:
|
|
1004
|
-
mtaAccountPeriodId:
|
|
1005
|
-
endDate:
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
]).transform((date)=>(
|
|
1009
|
-
closingDescription:
|
|
1358
|
+
const mtaAccountPeriodCloseRestReqSchema = z.object({
|
|
1359
|
+
mtaId: z.string().uuid(),
|
|
1360
|
+
mtaAccountPeriodId: z.string().uuid(),
|
|
1361
|
+
endDate: z.union([
|
|
1362
|
+
z.string(),
|
|
1363
|
+
z.date()
|
|
1364
|
+
]).transform((date)=>dayjs(date).endOf('day').toDate()).pipe(z.date()),
|
|
1365
|
+
closingDescription: z.string().optional()
|
|
1010
1366
|
});
|
|
1011
1367
|
const mtaAccountPeriodRestResBaseSchema = mtaAccountPeriodEntitySchema.extend({
|
|
1012
|
-
openingBalanceCents:
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1019
|
-
]).nullish().transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
1368
|
+
openingBalanceCents: centsToDollarsSchema,
|
|
1369
|
+
closingBalanceCents: centsToDollarsSchema.nullish(),
|
|
1370
|
+
reconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
1371
|
+
totalReconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
1372
|
+
unreconciledAmountCents: centsToDollarsSchema.nullish(),
|
|
1373
|
+
status: z.string().pipe(z.nativeEnum(account_period_constant_AccountPeriodStatus))
|
|
1020
1374
|
});
|
|
1021
1375
|
const mtaAccountPeriodRestResSchema = mtaAccountPeriodRestResBaseSchema.extend({
|
|
1022
|
-
mta:
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
})
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
referenceId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1061
|
-
sequence: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
1062
|
-
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1063
|
-
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1064
|
-
inputType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1065
|
-
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1066
|
-
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1067
|
-
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1068
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1069
|
-
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1070
|
-
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1071
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1072
|
-
isRefunded: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1073
|
-
isCanceled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1074
|
-
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1075
|
-
clearedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
1076
|
-
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1077
|
-
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1078
|
-
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1079
|
-
note: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1080
|
-
sourceTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1081
|
-
cancelType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1082
|
-
canceledBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1083
|
-
canceledAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
1084
|
-
canceledReason: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1085
|
-
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid().nullable()
|
|
1086
|
-
});
|
|
1087
|
-
const mta_transaction_rest_schema_baseSchema = mtaTransactionEntitySchema.extend({
|
|
1088
|
-
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1089
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1090
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1091
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
1092
|
-
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1093
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1094
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1095
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
1096
|
-
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1097
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1098
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1099
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
1100
|
-
inputType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(mta_input_type_constant_MtaTransactionInputType),
|
|
1101
|
-
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MtaTransactionType),
|
|
1102
|
-
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(common_status_constant_AccountingCommonStatus),
|
|
1103
|
-
creator: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema).optional().nullish(),
|
|
1104
|
-
canceler: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema).optional().nullish(),
|
|
1105
|
-
property: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>propertyRestResSchema.omit({
|
|
1376
|
+
mta: z.lazy(()=>mtaRestResSchema).optional()
|
|
1377
|
+
});
|
|
1378
|
+
const mtaClosedAccountPeriodRestResSchema = mtaAccountPeriodEntitySchema.extend({
|
|
1379
|
+
currentReconciliation: z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
1380
|
+
});
|
|
1381
|
+
const mtaReconciledTransactionEntitySchema = z.object({
|
|
1382
|
+
id: z.string().uuid(),
|
|
1383
|
+
mtaTransactionId: z.string(),
|
|
1384
|
+
accountPeriodId: z.string().nullable(),
|
|
1385
|
+
reconciledByReconciliationId: z.string(),
|
|
1386
|
+
reconciledAt: z.coerce.date(),
|
|
1387
|
+
status: z.string(),
|
|
1388
|
+
isArchived: z.boolean(),
|
|
1389
|
+
createdBy: z.string(),
|
|
1390
|
+
createdAt: z.coerce.date(),
|
|
1391
|
+
updatedAt: z.coerce.date()
|
|
1392
|
+
});
|
|
1393
|
+
const mtaReconciledTransactionRestResSchema = mtaReconciledTransactionEntitySchema.extend({
|
|
1394
|
+
mtaTransaction: z.lazy(()=>mtaTransactionRestResSchema).optional(),
|
|
1395
|
+
accountPeriod: z.lazy(()=>mtaAccountPeriodRestResSchema).optional()
|
|
1396
|
+
});
|
|
1397
|
+
const mtaTransactionRestResBaseSchema = mtaTransactionEntitySchema.extend({
|
|
1398
|
+
creditAmountCents: centsToDollarsSchema,
|
|
1399
|
+
debitAmountCents: centsToDollarsSchema,
|
|
1400
|
+
balanceCents: centsToDollarsSchema,
|
|
1401
|
+
inputType: z.string().pipe(z.nativeEnum(mta_input_type_constant_MtaTransactionInputType)),
|
|
1402
|
+
transactionType: z.string().pipe(z.nativeEnum(MtaTransactionType)),
|
|
1403
|
+
status: z.string().pipe(z.nativeEnum(common_status_constant_AccountingCommonStatus)),
|
|
1404
|
+
createdBy: z.union([
|
|
1405
|
+
z.string().uuid(),
|
|
1406
|
+
userRestResSchema
|
|
1407
|
+
]).nullish(),
|
|
1408
|
+
canceledBy: z.union([
|
|
1409
|
+
z.string().uuid(),
|
|
1410
|
+
userRestResSchema
|
|
1411
|
+
]).nullish(),
|
|
1412
|
+
property: z.lazy(()=>propertyNestedEntitySchema.omit({
|
|
1413
|
+
cma: true,
|
|
1106
1414
|
mta: true,
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
})
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1415
|
+
cmaTransactions: true,
|
|
1416
|
+
mtaTransactions: true
|
|
1417
|
+
})).nullish()
|
|
1418
|
+
});
|
|
1419
|
+
const mtaTransactionRestResSchema = mtaTransactionRestResBaseSchema.extend({
|
|
1420
|
+
mta: z.lazy(()=>mtaRestResSchema).nullish(),
|
|
1421
|
+
sourceTransaction: z.lazy(()=>mtaTransactionRestResSchema).nullish(),
|
|
1422
|
+
subsequentTransactions: z.lazy(()=>mtaTransactionRestResSchema.array()).nullish(),
|
|
1423
|
+
reconciledTransactions: z.lazy(()=>mtaReconciledTransactionRestResSchema.array()).nullish(),
|
|
1424
|
+
isUnknown: z.boolean().optional(),
|
|
1425
|
+
isReceipt: z.boolean().optional(),
|
|
1426
|
+
isPayment: z.boolean().optional(),
|
|
1427
|
+
isReconciled: z.boolean().optional(),
|
|
1428
|
+
isAssignableToProperty: z.boolean().nullish(),
|
|
1429
|
+
isAssignedToProperty: z.boolean().nullish(),
|
|
1430
|
+
isCancelable: z.boolean().nullish(),
|
|
1431
|
+
amountStr: z.string().optional(),
|
|
1432
|
+
transactionNumber: z.string().optional()
|
|
1124
1433
|
}).transform((obj)=>{
|
|
1125
1434
|
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber } = getTransactionStatus(obj);
|
|
1126
1435
|
return {
|
|
@@ -1134,311 +1443,463 @@ const mtaTransactionRestResSchema = mta_transaction_rest_schema_baseSchema.exten
|
|
|
1134
1443
|
transactionNumber
|
|
1135
1444
|
};
|
|
1136
1445
|
});
|
|
1137
|
-
const mtaAccountPeriodClosingSummaryRestReqSchema =
|
|
1138
|
-
mtaAccountPeriodId:
|
|
1139
|
-
endDate:
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
]).transform((arg)=>(
|
|
1143
|
-
});
|
|
1144
|
-
const mtaAccountPeriodClosingSummaryRestResSchema =
|
|
1145
|
-
startDate:
|
|
1146
|
-
endDate:
|
|
1147
|
-
bankStatementBalanceCents:
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1151
|
-
currentTrustBalanceSummary:
|
|
1152
|
-
totalAmountCents:
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1156
|
-
totalCreditAmountCents:
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1160
|
-
totalDebitAmountCents:
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1164
|
-
totalTransactionsCount:
|
|
1446
|
+
const mtaAccountPeriodClosingSummaryRestReqSchema = z.object({
|
|
1447
|
+
mtaAccountPeriodId: z.string().uuid(),
|
|
1448
|
+
endDate: z.union([
|
|
1449
|
+
z.string(),
|
|
1450
|
+
z.date()
|
|
1451
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()).pipe(z.date())
|
|
1452
|
+
});
|
|
1453
|
+
const mtaAccountPeriodClosingSummaryRestResSchema = z.object({
|
|
1454
|
+
startDate: z.date(),
|
|
1455
|
+
endDate: z.date(),
|
|
1456
|
+
bankStatementBalanceCents: z.union([
|
|
1457
|
+
z.bigint(),
|
|
1458
|
+
z.number()
|
|
1459
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1460
|
+
currentTrustBalanceSummary: z.object({
|
|
1461
|
+
totalAmountCents: z.union([
|
|
1462
|
+
z.bigint(),
|
|
1463
|
+
z.number()
|
|
1464
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1465
|
+
totalCreditAmountCents: z.union([
|
|
1466
|
+
z.bigint(),
|
|
1467
|
+
z.number()
|
|
1468
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1469
|
+
totalDebitAmountCents: z.union([
|
|
1470
|
+
z.bigint(),
|
|
1471
|
+
z.number()
|
|
1472
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1473
|
+
totalTransactionsCount: z.number()
|
|
1165
1474
|
}),
|
|
1166
|
-
reconciliations:
|
|
1167
|
-
totalReconciledAmountSummary:
|
|
1168
|
-
totalReconciledAmountCents:
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1172
|
-
totalReconciledCreditAmountCents:
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1176
|
-
totalReconciledDebitAmountCents:
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1180
|
-
totalReconciledTransactionsCount:
|
|
1475
|
+
reconciliations: z.lazy(()=>mtaReconciliationRestResSchema.array()).nullish(),
|
|
1476
|
+
totalReconciledAmountSummary: z.object({
|
|
1477
|
+
totalReconciledAmountCents: z.union([
|
|
1478
|
+
z.bigint(),
|
|
1479
|
+
z.number()
|
|
1480
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1481
|
+
totalReconciledCreditAmountCents: z.union([
|
|
1482
|
+
z.bigint(),
|
|
1483
|
+
z.number()
|
|
1484
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1485
|
+
totalReconciledDebitAmountCents: z.union([
|
|
1486
|
+
z.bigint(),
|
|
1487
|
+
z.number()
|
|
1488
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1489
|
+
totalReconciledTransactionsCount: z.number()
|
|
1181
1490
|
}),
|
|
1182
|
-
totalUnreconciledAmountSummary:
|
|
1183
|
-
totalUnreconciledAmountCents:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1187
|
-
totalUnreconciledCreditAmountCents:
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1191
|
-
totalUnreconciledDebitAmountCents:
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1195
|
-
totalUnreconciledTransactionsCount:
|
|
1491
|
+
totalUnreconciledAmountSummary: z.object({
|
|
1492
|
+
totalUnreconciledAmountCents: z.union([
|
|
1493
|
+
z.bigint(),
|
|
1494
|
+
z.number()
|
|
1495
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1496
|
+
totalUnreconciledCreditAmountCents: z.union([
|
|
1497
|
+
z.bigint(),
|
|
1498
|
+
z.number()
|
|
1499
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1500
|
+
totalUnreconciledDebitAmountCents: z.union([
|
|
1501
|
+
z.bigint(),
|
|
1502
|
+
z.number()
|
|
1503
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1504
|
+
totalUnreconciledTransactionsCount: z.number()
|
|
1196
1505
|
}),
|
|
1197
|
-
transactionsSummary:
|
|
1198
|
-
reconciledAmountCents:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1202
|
-
reconciledTransactions:
|
|
1203
|
-
unreconciledAmountCents:
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
]).transform(fromCentsToDollars).pipe(
|
|
1207
|
-
unreconciledTransactions:
|
|
1506
|
+
transactionsSummary: z.object({
|
|
1507
|
+
reconciledAmountCents: z.union([
|
|
1508
|
+
z.bigint(),
|
|
1509
|
+
z.number()
|
|
1510
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1511
|
+
reconciledTransactions: z.lazy(()=>mtaTransactionRestResSchema.array()).nullish(),
|
|
1512
|
+
unreconciledAmountCents: z.union([
|
|
1513
|
+
z.bigint(),
|
|
1514
|
+
z.number()
|
|
1515
|
+
]).transform(fromCentsToDollars).pipe(z.number()),
|
|
1516
|
+
unreconciledTransactions: z.lazy(()=>mtaTransactionRestResSchema.array()).nullish()
|
|
1208
1517
|
})
|
|
1209
1518
|
});
|
|
1210
|
-
const updateMtaAccountPeriodReconciledToRestReqSchema =
|
|
1211
|
-
mtaAccountPeriodId:
|
|
1212
|
-
reconciledTo:
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
]).transform((arg)=>(
|
|
1216
|
-
bankStatementBalanceCents:
|
|
1217
|
-
lastUpdatedAt:
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
]).pipe(
|
|
1221
|
-
});
|
|
1222
|
-
const createMtaReconciliationRestReqSchema =
|
|
1223
|
-
bankStatementBalanceCents:
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
]).transform((arg)=>'bigint' == typeof arg ? arg : 100n * BigInt(arg)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint())
|
|
1239
|
-
});
|
|
1240
|
-
const assignUnknownReceiptToPropertyRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1241
|
-
mtaTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1242
|
-
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1243
|
-
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z["enum"]([
|
|
1519
|
+
const updateMtaAccountPeriodReconciledToRestReqSchema = z.object({
|
|
1520
|
+
mtaAccountPeriodId: z.string().uuid(),
|
|
1521
|
+
reconciledTo: z.union([
|
|
1522
|
+
z.string(),
|
|
1523
|
+
z.date()
|
|
1524
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()),
|
|
1525
|
+
bankStatementBalanceCents: dollarsToCentsSchema,
|
|
1526
|
+
lastUpdatedAt: z.union([
|
|
1527
|
+
z.string().datetime(),
|
|
1528
|
+
z.date()
|
|
1529
|
+
]).pipe(z.coerce.date())
|
|
1530
|
+
});
|
|
1531
|
+
const createMtaReconciliationRestReqSchema = z.object({
|
|
1532
|
+
bankStatementBalanceCents: dollarsToCentsSchema,
|
|
1533
|
+
reconciledTo: z.union([
|
|
1534
|
+
z.string(),
|
|
1535
|
+
z.date()
|
|
1536
|
+
]).transform((arg)=>dayjs(arg).endOf('day').toDate()).pipe(z.coerce.date()),
|
|
1537
|
+
mtaAccountPeriodId: z.string().uuid()
|
|
1538
|
+
});
|
|
1539
|
+
const updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema = z.object({
|
|
1540
|
+
mtaReconciliationId: z.string().uuid(),
|
|
1541
|
+
bankStatementBalanceCents: dollarsToCentsSchema
|
|
1542
|
+
});
|
|
1543
|
+
const assignUnknownReceiptToPropertyRestReqSchema = z.object({
|
|
1544
|
+
mtaTransactionId: z.string().uuid(),
|
|
1545
|
+
propertyId: z.string().uuid(),
|
|
1546
|
+
transactionType: z["enum"]([
|
|
1244
1547
|
MtaReceiptTransactionType.HOLDING_DEPOSIT,
|
|
1245
1548
|
MtaReceiptTransactionType.SIGNING_DEPOSIT,
|
|
1246
1549
|
MtaReceiptTransactionType.WEEKLY_PAYMENT
|
|
1247
1550
|
]),
|
|
1248
|
-
description:
|
|
1249
|
-
});
|
|
1250
|
-
const cancelMtaTransactionRestReqSchema =
|
|
1251
|
-
transactionId:
|
|
1252
|
-
description:
|
|
1253
|
-
reason:
|
|
1254
|
-
});
|
|
1255
|
-
const createMtaTransactionRestReqSchema =
|
|
1256
|
-
amount:
|
|
1257
|
-
clearedAt:
|
|
1258
|
-
description:
|
|
1259
|
-
inputType:
|
|
1260
|
-
transactionType:
|
|
1261
|
-
propertyId:
|
|
1262
|
-
mtaId:
|
|
1263
|
-
bankRef:
|
|
1264
|
-
paymentMethod:
|
|
1265
|
-
|
|
1266
|
-
|
|
1551
|
+
description: z.string().transform((val)=>val.trim())
|
|
1552
|
+
});
|
|
1553
|
+
const cancelMtaTransactionRestReqSchema = z.object({
|
|
1554
|
+
transactionId: z.string().uuid(),
|
|
1555
|
+
description: z.string().transform((val)=>val.trim()).nullish(),
|
|
1556
|
+
reason: z.string().transform((val)=>val.trim()).nullish()
|
|
1557
|
+
});
|
|
1558
|
+
const createMtaTransactionRestReqSchema = z.object({
|
|
1559
|
+
amount: z.number().positive().transform((val)=>100n * BigInt(val)).pipe(z.bigint()),
|
|
1560
|
+
clearedAt: z.coerce.date(),
|
|
1561
|
+
description: z.string().transform((val)=>val.trim()),
|
|
1562
|
+
inputType: z.nativeEnum(mta_input_type_constant_MtaTransactionInputType),
|
|
1563
|
+
transactionType: z.nativeEnum(MtaTransactionType),
|
|
1564
|
+
propertyId: z.string().uuid().optional(),
|
|
1565
|
+
mtaId: z.string().uuid(),
|
|
1566
|
+
bankRef: z.string().transform((val)=>val.trim()),
|
|
1567
|
+
paymentMethod: z.union([
|
|
1568
|
+
z.nativeEnum(mta_payment_method_constant_MtaTransactionPaymentMethod),
|
|
1569
|
+
z.string().length(0)
|
|
1267
1570
|
]).transform((val)=>'' === val ? mta_payment_method_constant_MtaTransactionPaymentMethod.EFT : val).default(mta_payment_method_constant_MtaTransactionPaymentMethod.EFT)
|
|
1268
1571
|
}).superRefine((data, ctx)=>{
|
|
1269
1572
|
if (data.inputType !== mta_input_type_constant_MtaTransactionInputType.UNKNOWN && !data.transactionType) ctx.addIssue({
|
|
1270
|
-
code:
|
|
1573
|
+
code: z.ZodIssueCode.custom,
|
|
1271
1574
|
message: 'transactionType is required unless is "unknown" receipt',
|
|
1272
1575
|
path: [
|
|
1273
1576
|
'transactionType'
|
|
1274
1577
|
]
|
|
1275
1578
|
});
|
|
1276
1579
|
if (data.inputType === mta_input_type_constant_MtaTransactionInputType.CUSTOMER && !data.propertyId) ctx.addIssue({
|
|
1277
|
-
code:
|
|
1580
|
+
code: z.ZodIssueCode.custom,
|
|
1278
1581
|
message: 'property is required unless is "unknown" receipt',
|
|
1279
1582
|
path: [
|
|
1280
1583
|
'inputType'
|
|
1281
1584
|
]
|
|
1282
1585
|
});
|
|
1283
1586
|
});
|
|
1284
|
-
const reconcileMtaTransactionRestReqSchema =
|
|
1285
|
-
mtaTransactionId:
|
|
1286
|
-
reconciliationId:
|
|
1287
|
-
action:
|
|
1288
|
-
});
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
description:
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
});
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
})
|
|
1341
|
-
const
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1587
|
+
const reconcileMtaTransactionRestReqSchema = z.object({
|
|
1588
|
+
mtaTransactionId: z.string().uuid(),
|
|
1589
|
+
reconciliationId: z.string().uuid(),
|
|
1590
|
+
action: z.nativeEnum(reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
1591
|
+
});
|
|
1592
|
+
const cancelPayoutRestReqSchema = z.object({
|
|
1593
|
+
id: z.string().uuid(),
|
|
1594
|
+
reason: z.string().trim().min(1)
|
|
1595
|
+
});
|
|
1596
|
+
const confirmBankFileProcessedRestReqSchema = z.object({
|
|
1597
|
+
payoutId: z.string().uuid(),
|
|
1598
|
+
bankRef: z.string().nullish(),
|
|
1599
|
+
description: z.string().nullish(),
|
|
1600
|
+
clearedAt: z.coerce.date()
|
|
1601
|
+
});
|
|
1602
|
+
const createMtaToCmaPayoutRestReqSchema = z.object({
|
|
1603
|
+
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT),
|
|
1604
|
+
payoutSourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA),
|
|
1605
|
+
bankRef: z.string(),
|
|
1606
|
+
description: z.string().trim().min(1),
|
|
1607
|
+
mtaId: z.string().uuid(),
|
|
1608
|
+
targetDetails: z.array(z.object({
|
|
1609
|
+
cmaId: z.string().uuid(),
|
|
1610
|
+
propertyId: z.string().uuid(),
|
|
1611
|
+
creditAmountCents: z.number().gt(0).transform(fromDollarsToCents).pipe(z.bigint()),
|
|
1612
|
+
description: z.string().trim().min(1),
|
|
1613
|
+
bankRef: z.string()
|
|
1614
|
+
})).min(1)
|
|
1615
|
+
});
|
|
1616
|
+
const createSettlementPayoutTargetAccountSchema = z.object({
|
|
1617
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER),
|
|
1618
|
+
creditAmountCents: dollarsToCentsSchema,
|
|
1619
|
+
description: z.string().trim().min(1),
|
|
1620
|
+
bankRef: z.string().trim().min(1),
|
|
1621
|
+
targetAccountName: z.string().trim().min(1),
|
|
1622
|
+
targetAccountNumber: accountNumberValidationSchema,
|
|
1623
|
+
targetBsb: accountBsbValidationSchema,
|
|
1624
|
+
sourcePropertyId: z.string().uuid().optional()
|
|
1625
|
+
});
|
|
1626
|
+
const createCmaSettlementPayoutSourceAccountSchema = z.object({
|
|
1627
|
+
sourceAccountId: z.string().uuid(),
|
|
1628
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.CMA),
|
|
1629
|
+
sourceBankRef: z.string().trim().min(1),
|
|
1630
|
+
sourceDescription: z.string().trim().min(1)
|
|
1631
|
+
});
|
|
1632
|
+
const createMtaSettlementPayoutSourceAccountSchema = z.object({
|
|
1633
|
+
sourceAccountId: z.string().uuid(),
|
|
1634
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA),
|
|
1635
|
+
sourceBankRef: z.string().trim().min(1),
|
|
1636
|
+
sourceDescription: z.string().trim().min(1)
|
|
1637
|
+
});
|
|
1638
|
+
const createMtaSettlementPayoutRestReqSchema = z.object({
|
|
1639
|
+
projectId: z.string().uuid(),
|
|
1640
|
+
payoutType: z.literal(PayoutType.TRUST_SETTLEMENT_PAYOUT),
|
|
1641
|
+
sourceAccount: z.lazy(()=>createMtaSettlementPayoutSourceAccountSchema),
|
|
1642
|
+
targetAccounts: z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
|
|
1643
|
+
});
|
|
1644
|
+
const createCmaSettlementPayoutRestReqSchema = z.object({
|
|
1645
|
+
projectId: z.string().uuid(),
|
|
1646
|
+
payoutType: z.literal(PayoutType.CMA_SETTLEMENT_PAYOUT),
|
|
1647
|
+
sourceAccount: z.lazy(()=>createCmaSettlementPayoutSourceAccountSchema),
|
|
1648
|
+
targetAccounts: z.lazy(()=>createSettlementPayoutTargetAccountSchema.array().min(1))
|
|
1649
|
+
});
|
|
1650
|
+
const createSettlementPayoutRestReqSchema = z.discriminatedUnion('payoutType', [
|
|
1651
|
+
createMtaSettlementPayoutRestReqSchema,
|
|
1652
|
+
createCmaSettlementPayoutRestReqSchema
|
|
1653
|
+
]);
|
|
1654
|
+
const payoutSourceDetailsRestResBaseSchema = payoutSourceDetailsEntitySchema.extend({
|
|
1655
|
+
debitAmountCents: centsToDollarsSchema,
|
|
1656
|
+
sourceBsb: accountBsbMaskedSchema,
|
|
1657
|
+
sourceAccountType: z.string().pipe(z.nativeEnum(payout_constant_PayoutSourceAccountType)),
|
|
1658
|
+
sourceAccountId: z.string().uuid(),
|
|
1659
|
+
sourceAccountName: z.string(),
|
|
1660
|
+
sourceAccountNumber: accountNumberMaskedSchema,
|
|
1661
|
+
sourceAccountStateCode: stateCodeSchema,
|
|
1662
|
+
sourceAccountBankCode: bankCodeSchema,
|
|
1663
|
+
sequence: z.number().nullish()
|
|
1664
|
+
}).passthrough();
|
|
1665
|
+
const payoutMtaSourceDetailsRestSchema = payoutSourceDetailsRestResBaseSchema.extend({
|
|
1666
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.MTA),
|
|
1667
|
+
transaction: mtaTransactionRestResSchema.nullish()
|
|
1668
|
+
}).passthrough();
|
|
1669
|
+
const payoutCmaSourceDetailsRestSchema = payoutSourceDetailsRestResBaseSchema.extend({
|
|
1670
|
+
sourceAccountType: z.literal(payout_constant_PayoutSourceAccountType.CMA),
|
|
1671
|
+
transaction: z.lazy(()=>cmaTransactionRestResSchema).nullish()
|
|
1672
|
+
}).passthrough();
|
|
1673
|
+
const payoutSourceDetailsRestSchema = z.discriminatedUnion('sourceAccountType', [
|
|
1674
|
+
payoutMtaSourceDetailsRestSchema,
|
|
1675
|
+
payoutCmaSourceDetailsRestSchema
|
|
1676
|
+
]);
|
|
1677
|
+
const payoutTargetDetailsRestResBaseSchema = payoutTargetDetailsBaseEntitySchema.extend({
|
|
1678
|
+
creditAmountCents: centsToDollarsSchema,
|
|
1679
|
+
targetBsb: accountBsbMaskedSchema,
|
|
1680
|
+
targetAccountNumber: accountNumberMaskedSchema,
|
|
1681
|
+
targetAccountType: z.string().pipe(z.nativeEnum(payout_constant_PayoutTargetAccountType)),
|
|
1682
|
+
sequence: z.number().nullish(),
|
|
1683
|
+
bankRef: z.string().nullish(),
|
|
1684
|
+
description: z.string().nullish()
|
|
1685
|
+
}).passthrough();
|
|
1686
|
+
const payoutCmaTargetDetailsRestSchema = payoutTargetDetailsRestResBaseSchema.extend({
|
|
1687
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.CMA),
|
|
1688
|
+
transaction: z.lazy(()=>cmaTransactionRestResSchema).nullish(),
|
|
1689
|
+
targetAccountId: z.string().uuid(),
|
|
1690
|
+
cma: z.lazy(()=>cmaRestResSchema)
|
|
1691
|
+
}).passthrough();
|
|
1692
|
+
const payoutOtherTargetDetailsRestSchema = payoutTargetDetailsRestResBaseSchema.extend({
|
|
1693
|
+
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER)
|
|
1694
|
+
}).passthrough();
|
|
1695
|
+
const payoutTargetDetailsRestSchema = z.discriminatedUnion('targetAccountType', [
|
|
1696
|
+
payoutCmaTargetDetailsRestSchema,
|
|
1697
|
+
payoutOtherTargetDetailsRestSchema
|
|
1698
|
+
]);
|
|
1699
|
+
const payoutSearchRestReqSchema = z.object({
|
|
1700
|
+
payoutType: z.union([
|
|
1701
|
+
z.lazy(()=>stringFilterSchema),
|
|
1702
|
+
z.string()
|
|
1703
|
+
]).optional(),
|
|
1704
|
+
provisionDetails: z.lazy(()=>JsonNullableFilterSchema).optional(),
|
|
1705
|
+
sourceAccountId: z.union([
|
|
1706
|
+
z.lazy(()=>stringFilterSchema),
|
|
1707
|
+
z.string()
|
|
1708
|
+
]).optional(),
|
|
1709
|
+
sourceAccountType: z.union([
|
|
1710
|
+
z.lazy(()=>stringFilterSchema),
|
|
1711
|
+
z.string()
|
|
1712
|
+
]).optional(),
|
|
1713
|
+
status: z.union([
|
|
1714
|
+
z.lazy(()=>stringFilterSchema),
|
|
1715
|
+
z.string()
|
|
1716
|
+
]).optional()
|
|
1717
|
+
});
|
|
1718
|
+
const payoutStatusSummaryRestResSchema = z.object({
|
|
1719
|
+
status: z.string().pipe(z.nativeEnum(PayoutStatus)),
|
|
1720
|
+
count: z.number()
|
|
1721
|
+
});
|
|
1722
|
+
const basePayoutItemShape = z.object({
|
|
1723
|
+
propertyId: z.string().optional().nullable(),
|
|
1724
|
+
accountId: z.string(),
|
|
1725
|
+
description: z.string().optional().nullable(),
|
|
1726
|
+
targetAccountType: z["enum"]([
|
|
1368
1727
|
'CMA',
|
|
1369
1728
|
'BANK'
|
|
1370
1729
|
])
|
|
1371
1730
|
});
|
|
1372
1731
|
const payoutItemReqSchema = basePayoutItemShape.extend({
|
|
1373
|
-
amount:
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
]).transform((arg)=>Math.round(100 * Number(arg))).pipe(
|
|
1377
|
-
});
|
|
1378
|
-
const payoutRestReqSchema =
|
|
1379
|
-
payoutType:
|
|
1380
|
-
sourceAccountId:
|
|
1381
|
-
totalAmount:
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
]).transform((arg)=>Math.round(100 * Number(arg))).transform((arg)=>BigInt(arg)).pipe(
|
|
1385
|
-
payoutItems:
|
|
1386
|
-
}).strip();
|
|
1387
|
-
const payoutRestResSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1388
|
-
totalFromAccountUpdatedNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
1389
|
-
totalToAccountUpdatedNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
1390
|
-
totalAmount: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1391
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1392
|
-
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1393
|
-
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
1732
|
+
amount: z.union([
|
|
1733
|
+
z.number(),
|
|
1734
|
+
z.bigint()
|
|
1735
|
+
]).transform((arg)=>Math.round(100 * Number(arg))).pipe(z.number())
|
|
1736
|
+
});
|
|
1737
|
+
const payoutRestReqSchema = z.object({
|
|
1738
|
+
payoutType: z.string(),
|
|
1739
|
+
sourceAccountId: z.string(),
|
|
1740
|
+
totalAmount: z.union([
|
|
1741
|
+
z.number(),
|
|
1742
|
+
z.bigint()
|
|
1743
|
+
]).transform((arg)=>Math.round(100 * Number(arg))).transform((arg)=>BigInt(arg)).pipe(z.bigint()),
|
|
1744
|
+
payoutItems: z.lazy(()=>z.array(payoutItemReqSchema))
|
|
1394
1745
|
}).strip();
|
|
1395
1746
|
const payoutListRestResSchema = payoutEntitySchema.extend({
|
|
1396
|
-
payoutType:
|
|
1397
|
-
fromState:
|
|
1398
|
-
fromBank:
|
|
1399
|
-
fromAccount:
|
|
1400
|
-
createdAt:
|
|
1401
|
-
totalAmount:
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
]).transform((arg)=>Number(arg) / 100).pipe(
|
|
1405
|
-
abaStatus:
|
|
1406
|
-
status:
|
|
1747
|
+
payoutType: z.string(),
|
|
1748
|
+
fromState: z.string(),
|
|
1749
|
+
fromBank: z.string(),
|
|
1750
|
+
fromAccount: z.string(),
|
|
1751
|
+
createdAt: z.string().datetime(),
|
|
1752
|
+
totalAmount: z.union([
|
|
1753
|
+
z.bigint(),
|
|
1754
|
+
z.number()
|
|
1755
|
+
]).transform((arg)=>Number(arg) / 100).pipe(z.number()),
|
|
1756
|
+
abaStatus: z.string(),
|
|
1757
|
+
status: z.string()
|
|
1407
1758
|
}).strip();
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1759
|
+
const payoutBankFileDownloadHistoryEntitySchema = z.object({
|
|
1760
|
+
id: z.string().uuid(),
|
|
1761
|
+
payoutId: z.string(),
|
|
1762
|
+
bankFileId: z.string(),
|
|
1763
|
+
fileName: z.string(),
|
|
1764
|
+
downloadedAt: z.coerce.date(),
|
|
1765
|
+
downloadedBy: z.string(),
|
|
1766
|
+
downloader: z.lazy(()=>userEntitySchema).nullish()
|
|
1767
|
+
});
|
|
1768
|
+
const payoutBankFileEntitySchema = z.object({
|
|
1769
|
+
id: z.string().uuid(),
|
|
1770
|
+
payoutId: z.string(),
|
|
1771
|
+
sequence: z.number().int(),
|
|
1772
|
+
fileContent: z.string(),
|
|
1773
|
+
payoutProvsionDetailBackup: z.any().nullable(),
|
|
1774
|
+
status: z.string(),
|
|
1775
|
+
firstDownloadedAt: z.coerce.date().nullable(),
|
|
1776
|
+
lastDonwloadAt: z.coerce.date().nullable(),
|
|
1777
|
+
lastDonwloadBy: z.string().nullable(),
|
|
1778
|
+
isArchived: z.boolean(),
|
|
1779
|
+
createdAt: z.coerce.date(),
|
|
1780
|
+
updatedAt: z.coerce.date(),
|
|
1781
|
+
createdBy: z.string()
|
|
1782
|
+
});
|
|
1783
|
+
const payoutBankFileRestResSchema = payoutBankFileEntitySchema.omit({
|
|
1784
|
+
payoutProvsionDetailBackup: true,
|
|
1785
|
+
fileContent: true
|
|
1786
|
+
}).extend({
|
|
1787
|
+
status: z.string().pipe(z.nativeEnum(PayoutBankFileStatus)),
|
|
1788
|
+
creator: z.lazy(()=>userEntitySchema).nullish(),
|
|
1789
|
+
lastDownloader: z.lazy(()=>userEntitySchema).nullish(),
|
|
1790
|
+
fileDownloadHistories: z.lazy(()=>payoutBankFileDownloadHistoryEntitySchema).array().nullish()
|
|
1791
|
+
});
|
|
1792
|
+
const payoutTransactionEntitySchema = z.object({
|
|
1793
|
+
id: z.string().uuid(),
|
|
1794
|
+
sequence: z.number().int(),
|
|
1795
|
+
payoutId: z.string(),
|
|
1796
|
+
mtaTransactionId: z.string().nullable(),
|
|
1797
|
+
cmaTransactionId: z.string().nullable(),
|
|
1798
|
+
isCanceled: z.boolean(),
|
|
1799
|
+
canceledAt: z.coerce.date().nullable(),
|
|
1800
|
+
status: z.string(),
|
|
1801
|
+
createdAt: z.coerce.date(),
|
|
1802
|
+
updatedAt: z.coerce.date(),
|
|
1803
|
+
isArchived: z.boolean(),
|
|
1804
|
+
triggerDetails: z.string().nullable(),
|
|
1805
|
+
propertyId: z.string().nullable(),
|
|
1806
|
+
targetBsb: z.string().nullable(),
|
|
1807
|
+
targetAccountNumber: z.string().nullable(),
|
|
1808
|
+
targetAccountName: z.string().nullable(),
|
|
1809
|
+
targetAccountType: z.string().nullable(),
|
|
1810
|
+
amountCents: z.bigint(),
|
|
1811
|
+
bankRef: z.string().nullable(),
|
|
1812
|
+
description: z.string().nullable()
|
|
1813
|
+
});
|
|
1814
|
+
const payoutRestResBaseSchema = payoutEntitySchema.extend({
|
|
1815
|
+
id: z.string().uuid(),
|
|
1816
|
+
totalAmountCents: centsToDollarsSchema,
|
|
1817
|
+
payoutType: z.string().pipe(z.nativeEnum(PayoutType)),
|
|
1818
|
+
sourceAccount: z.lazy(()=>payoutSourceDetailsRestSchema),
|
|
1819
|
+
targetAccounts: z.lazy(()=>payoutTargetDetailsRestSchema.array()),
|
|
1820
|
+
status: z.string().pipe(z.nativeEnum(PayoutStatus)),
|
|
1821
|
+
createdBy: z.union([
|
|
1822
|
+
z.string().uuid(),
|
|
1823
|
+
userRestResSchema
|
|
1824
|
+
]).nullish(),
|
|
1825
|
+
cancelledBy: z.union([
|
|
1826
|
+
z.string().uuid(),
|
|
1827
|
+
userRestResSchema
|
|
1828
|
+
]).nullish(),
|
|
1829
|
+
provisionDetails: z.lazy(()=>payoutProvisionDataEntitySchema),
|
|
1830
|
+
transactions: z.lazy(()=>payoutTransactionEntitySchema.array()).nullish(),
|
|
1831
|
+
payoutBankFiles: z.lazy(()=>payoutBankFileRestResSchema.array()).nullish()
|
|
1832
|
+
});
|
|
1833
|
+
const payoutRestResSchema = payoutRestResBaseSchema;
|
|
1834
|
+
const payoutMtaToCmaRestResSchema = payoutRestResBaseSchema.extend({
|
|
1835
|
+
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT),
|
|
1836
|
+
sourceAccount: z.lazy(()=>payoutMtaSourceDetailsRestSchema),
|
|
1837
|
+
targetAccounts: z.lazy(()=>payoutCmaTargetDetailsRestSchema.array())
|
|
1838
|
+
});
|
|
1839
|
+
const payoutPaymentItemSchema = z.object({
|
|
1840
|
+
propertyId: z.string().uuid(),
|
|
1841
|
+
propertyName: z.string(),
|
|
1842
|
+
customerName: z.string(),
|
|
1843
|
+
targetAccount: z.string(),
|
|
1844
|
+
amountCents: z.union([
|
|
1845
|
+
z.bigint(),
|
|
1846
|
+
z.number()
|
|
1847
|
+
]).transform((arg)=>Number(arg) / 100).pipe(z.number())
|
|
1417
1848
|
});
|
|
1418
1849
|
const payoutDetailRestResSchema = payoutEntitySchema.omit({
|
|
1419
1850
|
provisionDetails: true
|
|
1420
1851
|
}).extend({
|
|
1421
|
-
fileContent:
|
|
1422
|
-
mta:
|
|
1423
|
-
paymentList:
|
|
1424
|
-
});
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1852
|
+
fileContent: z.string().optional().nullable(),
|
|
1853
|
+
mta: z.lazy(()=>mtaEntitySchema).optional().nullable(),
|
|
1854
|
+
paymentList: z.array(payoutPaymentItemSchema).optional()
|
|
1855
|
+
});
|
|
1856
|
+
const propertyRestResBaseSchema = propertyEntitySchema.extend({
|
|
1857
|
+
balanceCents: centsToDollarsSchema,
|
|
1858
|
+
cmaBalanceCents: centsToDollarsSchema,
|
|
1859
|
+
mtaBalanceCents: centsToDollarsSchema
|
|
1860
|
+
});
|
|
1861
|
+
const propertyRestResSchema = propertyRestResBaseSchema.extend({
|
|
1862
|
+
customer: customerEntitySchema.nullish(),
|
|
1863
|
+
project: projectNestedEntitySchema.nullish(),
|
|
1864
|
+
mta: mtaRestResBaseSchema.nullish(),
|
|
1865
|
+
cma: cmaRestResBaseSchema.nullish(),
|
|
1866
|
+
cmaTransactions: cmaTransactionRestResSchema.array().nullish(),
|
|
1867
|
+
mtaTransactions: mtaTransactionRestResSchema.array().nullish()
|
|
1868
|
+
});
|
|
1869
|
+
const payoutTransactionRestResSchema = payoutTransactionEntitySchema.extend({
|
|
1870
|
+
property: z.lazy(()=>propertyRestResSchema).nullish(),
|
|
1871
|
+
cmaTransaction: z.lazy(()=>cmaTransactionEntitySchema.passthrough()).pipe(cmaTransactionRestResSchema).nullish(),
|
|
1872
|
+
mtaTransaction: z.lazy(()=>mtaTransactionEntitySchema.passthrough()).pipe(mtaTransactionRestResSchema).nullish(),
|
|
1873
|
+
cma: z.lazy(()=>cmaEntitySchema.passthrough()).pipe(cmaRestResSchema.omit({
|
|
1874
|
+
property: true
|
|
1875
|
+
})).nullish(),
|
|
1876
|
+
mta: z.lazy(()=>mtaEntitySchema.passthrough()).pipe(mtaRestResSchema.omit({
|
|
1877
|
+
paymentMethods: true,
|
|
1878
|
+
accountPeriods: true
|
|
1879
|
+
})).nullish(),
|
|
1880
|
+
amountCents: z.union([
|
|
1881
|
+
z.number(),
|
|
1882
|
+
z.string(),
|
|
1883
|
+
z.bigint()
|
|
1884
|
+
]).transform(fromCentsToDollars).pipe(z.number())
|
|
1885
|
+
});
|
|
1886
|
+
const projectMtaAllocationEntitySchema = z.object({
|
|
1887
|
+
id: z.string().uuid(),
|
|
1888
|
+
projectId: z.string(),
|
|
1889
|
+
mtaId: z.string(),
|
|
1890
|
+
applyStatus: z.nativeEnum(ProjectMtaAllocationStatus),
|
|
1891
|
+
status: z.nativeEnum(common_status_constant_AccountingCommonStatus),
|
|
1892
|
+
createdAt: z.coerce.date(),
|
|
1893
|
+
approvedAt: z.coerce.date().nullable(),
|
|
1894
|
+
approvedBy: z.string().nullable(),
|
|
1895
|
+
createdBy: z.string().nullable(),
|
|
1896
|
+
updatedAt: z.coerce.date(),
|
|
1897
|
+
lastSyncedAt: z.coerce.date().nullable(),
|
|
1898
|
+
syncStatus: z.nativeEnum(AccountingCommonSyncStatus).optional().nullish(),
|
|
1899
|
+
isArchived: z.boolean()
|
|
1439
1900
|
});
|
|
1440
1901
|
const projectMtaAllocationRestResSchema = projectMtaAllocationEntitySchema.extend({
|
|
1441
|
-
mta:
|
|
1902
|
+
mta: z.lazy(()=>mtaRestResSchema.pick({
|
|
1442
1903
|
id: true,
|
|
1443
1904
|
name: true,
|
|
1444
1905
|
stateCode: true,
|
|
@@ -1446,48 +1907,95 @@ const projectMtaAllocationRestResSchema = projectMtaAllocationEntitySchema.exten
|
|
|
1446
1907
|
accountNumber: true,
|
|
1447
1908
|
bsb: true
|
|
1448
1909
|
})),
|
|
1449
|
-
creator:
|
|
1910
|
+
creator: z.lazy(()=>userEntitySchema.pick({
|
|
1450
1911
|
id: true,
|
|
1451
1912
|
firstName: true,
|
|
1452
1913
|
lastName: true
|
|
1453
1914
|
})),
|
|
1454
|
-
approver:
|
|
1915
|
+
approver: z.lazy(()=>userEntitySchema.pick({
|
|
1455
1916
|
id: true,
|
|
1456
1917
|
firstName: true,
|
|
1457
1918
|
lastName: true
|
|
1458
1919
|
})).optional()
|
|
1459
1920
|
});
|
|
1460
1921
|
const projectRestResSchema = projectEntitySchema.extend({
|
|
1461
|
-
developer:
|
|
1462
|
-
mta:
|
|
1463
|
-
mtaAllocations:
|
|
1464
|
-
applyStatus:
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1922
|
+
developer: z.lazy(()=>developerEntitySchema).optional().nullish(),
|
|
1923
|
+
mta: z.lazy(()=>mtaRestResSchema).optional().nullish(),
|
|
1924
|
+
mtaAllocations: z.lazy(()=>projectMtaAllocationRestResSchema.array()).optional().nullish(),
|
|
1925
|
+
applyStatus: z.nativeEnum(ProjectApplyStatusRestRes),
|
|
1926
|
+
state: z.nativeEnum(AuStateCode)
|
|
1927
|
+
});
|
|
1928
|
+
const allocateMtaToProjectRestReqSchema = z.object({
|
|
1929
|
+
projectId: z.string().uuid(),
|
|
1930
|
+
mtaId: z.string().uuid()
|
|
1931
|
+
});
|
|
1932
|
+
const approveMtaAllocationRestReqSchema = z.object({
|
|
1933
|
+
projectId: z.string().uuid(),
|
|
1934
|
+
projectMtaAllocationId: z.string().uuid()
|
|
1935
|
+
});
|
|
1936
|
+
const balanceRestResSchema = z.object({
|
|
1937
|
+
debitAmountCents: z.union([
|
|
1938
|
+
z.bigint(),
|
|
1939
|
+
z.number()
|
|
1940
|
+
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable()),
|
|
1941
|
+
creditAmountCents: z.union([
|
|
1942
|
+
z.bigint(),
|
|
1943
|
+
z.number()
|
|
1944
|
+
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable()),
|
|
1945
|
+
balanceCents: z.union([
|
|
1946
|
+
z.bigint(),
|
|
1947
|
+
z.number()
|
|
1948
|
+
]).transform((val)=>fromCentsToDollars(val)).pipe(z.number().nullable())
|
|
1949
|
+
});
|
|
1950
|
+
const propertyAccountsBalanceRestResSchema = z.object({
|
|
1951
|
+
mta: z.lazy(()=>balanceRestResSchema),
|
|
1952
|
+
cma: z.lazy(()=>balanceRestResSchema)
|
|
1953
|
+
});
|
|
1954
|
+
const propertySearchRestReqSchema = z.object({
|
|
1955
|
+
customerId: z.union([
|
|
1956
|
+
z.lazy(()=>stringFilterSchema),
|
|
1957
|
+
z.string()
|
|
1958
|
+
]).optional(),
|
|
1959
|
+
projectId: z.union([
|
|
1960
|
+
z.lazy(()=>stringFilterSchema),
|
|
1961
|
+
z.string()
|
|
1962
|
+
]).optional(),
|
|
1963
|
+
buyerName: z.union([
|
|
1964
|
+
z.lazy(()=>stringFilterSchema),
|
|
1965
|
+
z.string()
|
|
1966
|
+
]).optional().nullable(),
|
|
1967
|
+
lotDetail: z.union([
|
|
1968
|
+
z.lazy(()=>stringFilterSchema),
|
|
1969
|
+
z.string()
|
|
1970
|
+
]).optional().nullable(),
|
|
1971
|
+
propertyAddress: z.union([
|
|
1972
|
+
z.lazy(()=>stringFilterSchema),
|
|
1973
|
+
z.string()
|
|
1974
|
+
]).optional(),
|
|
1975
|
+
stage: z.union([
|
|
1976
|
+
z.lazy(()=>stringFilterSchema),
|
|
1977
|
+
z.string()
|
|
1978
|
+
]).optional(),
|
|
1979
|
+
mtaId: z.union([
|
|
1980
|
+
z.lazy(()=>stringFilterSchema),
|
|
1981
|
+
z.string()
|
|
1982
|
+
]).optional(),
|
|
1983
|
+
mtaBalanceCents: z.union([
|
|
1984
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1985
|
+
z.bigint()
|
|
1986
|
+
]).optional(),
|
|
1987
|
+
cmaBalanceCents: z.union([
|
|
1988
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1989
|
+
z.bigint()
|
|
1990
|
+
]).optional(),
|
|
1991
|
+
balanceCents: z.union([
|
|
1992
|
+
z.lazy(()=>bigIntFilterSchema),
|
|
1993
|
+
z.bigint()
|
|
1994
|
+
]).optional(),
|
|
1995
|
+
status: z.union([
|
|
1996
|
+
z.lazy(()=>stringFilterSchema),
|
|
1997
|
+
z.string()
|
|
1998
|
+
]).optional()
|
|
1491
1999
|
});
|
|
1492
2000
|
function bind(fn, thisArg) {
|
|
1493
2001
|
return function() {
|
|
@@ -1808,7 +2316,7 @@ const utils = {
|
|
|
1808
2316
|
asap,
|
|
1809
2317
|
isIterable
|
|
1810
2318
|
};
|
|
1811
|
-
function
|
|
2319
|
+
function AxiosError_AxiosError(message, code, config, request, response) {
|
|
1812
2320
|
Error.call(this);
|
|
1813
2321
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
1814
2322
|
else this.stack = new Error().stack;
|
|
@@ -1822,7 +2330,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
1822
2330
|
this.status = response.status ? response.status : null;
|
|
1823
2331
|
}
|
|
1824
2332
|
}
|
|
1825
|
-
utils.inherits(
|
|
2333
|
+
utils.inherits(AxiosError_AxiosError, Error, {
|
|
1826
2334
|
toJSON: function() {
|
|
1827
2335
|
return {
|
|
1828
2336
|
message: this.message,
|
|
@@ -1839,7 +2347,7 @@ utils.inherits(AxiosError, Error, {
|
|
|
1839
2347
|
};
|
|
1840
2348
|
}
|
|
1841
2349
|
});
|
|
1842
|
-
const AxiosError_prototype =
|
|
2350
|
+
const AxiosError_prototype = AxiosError_AxiosError.prototype;
|
|
1843
2351
|
const AxiosError_descriptors = {};
|
|
1844
2352
|
[
|
|
1845
2353
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -1859,22 +2367,22 @@ const AxiosError_descriptors = {};
|
|
|
1859
2367
|
value: code
|
|
1860
2368
|
};
|
|
1861
2369
|
});
|
|
1862
|
-
Object.defineProperties(
|
|
2370
|
+
Object.defineProperties(AxiosError_AxiosError, AxiosError_descriptors);
|
|
1863
2371
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
1864
2372
|
value: true
|
|
1865
2373
|
});
|
|
1866
|
-
|
|
2374
|
+
AxiosError_AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
1867
2375
|
const axiosError = Object.create(AxiosError_prototype);
|
|
1868
2376
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
1869
2377
|
return obj !== Error.prototype;
|
|
1870
2378
|
}, (prop)=>'isAxiosError' !== prop);
|
|
1871
|
-
|
|
2379
|
+
AxiosError_AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
1872
2380
|
axiosError.cause = error;
|
|
1873
2381
|
axiosError.name = error.name;
|
|
1874
2382
|
customProps && Object.assign(axiosError, customProps);
|
|
1875
2383
|
return axiosError;
|
|
1876
2384
|
};
|
|
1877
|
-
const
|
|
2385
|
+
const AxiosError = AxiosError_AxiosError;
|
|
1878
2386
|
const helpers_null = null;
|
|
1879
2387
|
function isVisitable(thing) {
|
|
1880
2388
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
@@ -1895,7 +2403,7 @@ function isFlatArray(arr) {
|
|
|
1895
2403
|
const predicates = utils.toFlatObject(utils, {}, null, function(prop) {
|
|
1896
2404
|
return /^is[A-Z]/.test(prop);
|
|
1897
2405
|
});
|
|
1898
|
-
function
|
|
2406
|
+
function toFormData(obj, formData, options) {
|
|
1899
2407
|
if (!utils.isObject(obj)) throw new TypeError('target must be an object');
|
|
1900
2408
|
formData = formData || new (helpers_null || FormData)();
|
|
1901
2409
|
options = utils.toFlatObject(options, {
|
|
@@ -1915,7 +2423,7 @@ function toFormData_toFormData(obj, formData, options) {
|
|
|
1915
2423
|
function convertValue(value) {
|
|
1916
2424
|
if (null === value) return '';
|
|
1917
2425
|
if (utils.isDate(value)) return value.toISOString();
|
|
1918
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
2426
|
+
if (!useBlob && utils.isBlob(value)) throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1919
2427
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
1920
2428
|
value
|
|
1921
2429
|
]) : Buffer.from(value);
|
|
@@ -1963,7 +2471,7 @@ function toFormData_toFormData(obj, formData, options) {
|
|
|
1963
2471
|
build(obj);
|
|
1964
2472
|
return formData;
|
|
1965
2473
|
}
|
|
1966
|
-
const
|
|
2474
|
+
const helpers_toFormData = toFormData;
|
|
1967
2475
|
function encode(str) {
|
|
1968
2476
|
const charMap = {
|
|
1969
2477
|
'!': '%21',
|
|
@@ -1978,11 +2486,11 @@ function encode(str) {
|
|
|
1978
2486
|
return charMap[match];
|
|
1979
2487
|
});
|
|
1980
2488
|
}
|
|
1981
|
-
function
|
|
2489
|
+
function AxiosURLSearchParams(params, options) {
|
|
1982
2490
|
this._pairs = [];
|
|
1983
|
-
params &&
|
|
2491
|
+
params && helpers_toFormData(params, this, options);
|
|
1984
2492
|
}
|
|
1985
|
-
const AxiosURLSearchParams_prototype =
|
|
2493
|
+
const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype;
|
|
1986
2494
|
AxiosURLSearchParams_prototype.append = function(name, value) {
|
|
1987
2495
|
this._pairs.push([
|
|
1988
2496
|
name,
|
|
@@ -1997,7 +2505,7 @@ AxiosURLSearchParams_prototype.toString = function(encoder) {
|
|
|
1997
2505
|
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
1998
2506
|
}, '').join('&');
|
|
1999
2507
|
};
|
|
2000
|
-
const
|
|
2508
|
+
const helpers_AxiosURLSearchParams = AxiosURLSearchParams;
|
|
2001
2509
|
function buildURL_encode(val) {
|
|
2002
2510
|
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
2003
2511
|
}
|
|
@@ -2009,7 +2517,7 @@ function buildURL(url, params, options) {
|
|
|
2009
2517
|
};
|
|
2010
2518
|
const serializeFn = options && options.serialize;
|
|
2011
2519
|
let serializedParams;
|
|
2012
|
-
serializedParams = serializeFn ? serializeFn(params, options) : utils.isURLSearchParams(params) ? params.toString() : new
|
|
2520
|
+
serializedParams = serializeFn ? serializeFn(params, options) : utils.isURLSearchParams(params) ? params.toString() : new helpers_AxiosURLSearchParams(params, options).toString(_encode);
|
|
2013
2521
|
if (serializedParams) {
|
|
2014
2522
|
const hashmarkIndex = url.indexOf("#");
|
|
2015
2523
|
if (-1 !== hashmarkIndex) url = url.slice(0, hashmarkIndex);
|
|
@@ -2048,7 +2556,7 @@ const defaults_transitional = {
|
|
|
2048
2556
|
forcedJSONParsing: true,
|
|
2049
2557
|
clarifyTimeoutError: false
|
|
2050
2558
|
};
|
|
2051
|
-
const classes_URLSearchParams = 'undefined' != typeof URLSearchParams ? URLSearchParams :
|
|
2559
|
+
const classes_URLSearchParams = 'undefined' != typeof URLSearchParams ? URLSearchParams : helpers_AxiosURLSearchParams;
|
|
2052
2560
|
const classes_FormData = 'undefined' != typeof FormData ? FormData : null;
|
|
2053
2561
|
const classes_Blob = 'undefined' != typeof Blob ? Blob : null;
|
|
2054
2562
|
const browser = {
|
|
@@ -2081,7 +2589,7 @@ const platform = {
|
|
|
2081
2589
|
...browser
|
|
2082
2590
|
};
|
|
2083
2591
|
function toURLEncodedForm(data, options) {
|
|
2084
|
-
return
|
|
2592
|
+
return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
2085
2593
|
visitor: function(value, key, path, helpers) {
|
|
2086
2594
|
if (platform.isNode && utils.isBuffer(value)) {
|
|
2087
2595
|
this.append(key, value.toString('base64'));
|
|
@@ -2106,7 +2614,7 @@ function arrayToObject(arr) {
|
|
|
2106
2614
|
}
|
|
2107
2615
|
return obj;
|
|
2108
2616
|
}
|
|
2109
|
-
function
|
|
2617
|
+
function formDataToJSON(formData) {
|
|
2110
2618
|
function buildPath(path, value, target, index) {
|
|
2111
2619
|
let name = path[index++];
|
|
2112
2620
|
if ('__proto__' === name) return true;
|
|
@@ -2135,7 +2643,7 @@ function formDataToJSON_formDataToJSON(formData) {
|
|
|
2135
2643
|
}
|
|
2136
2644
|
return null;
|
|
2137
2645
|
}
|
|
2138
|
-
const
|
|
2646
|
+
const helpers_formDataToJSON = formDataToJSON;
|
|
2139
2647
|
function stringifySafely(rawValue, parser, encoder) {
|
|
2140
2648
|
if (utils.isString(rawValue)) try {
|
|
2141
2649
|
(parser || JSON.parse)(rawValue);
|
|
@@ -2159,7 +2667,7 @@ const defaults = {
|
|
|
2159
2667
|
const isObjectPayload = utils.isObject(data);
|
|
2160
2668
|
if (isObjectPayload && utils.isHTMLForm(data)) data = new FormData(data);
|
|
2161
2669
|
const isFormData = utils.isFormData(data);
|
|
2162
|
-
if (isFormData) return hasJSONContentType ? JSON.stringify(
|
|
2670
|
+
if (isFormData) return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data;
|
|
2163
2671
|
if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) || utils.isReadableStream(data)) return data;
|
|
2164
2672
|
if (utils.isArrayBufferView(data)) return data.buffer;
|
|
2165
2673
|
if (utils.isURLSearchParams(data)) {
|
|
@@ -2171,7 +2679,7 @@ const defaults = {
|
|
|
2171
2679
|
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
2172
2680
|
if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
2173
2681
|
const _FormData = this.env && this.env.FormData;
|
|
2174
|
-
return
|
|
2682
|
+
return helpers_toFormData(isFileList ? {
|
|
2175
2683
|
'files[]': data
|
|
2176
2684
|
} : data, _FormData && new _FormData(), this.formSerializer);
|
|
2177
2685
|
}
|
|
@@ -2196,7 +2704,7 @@ const defaults = {
|
|
|
2196
2704
|
return JSON.parse(data);
|
|
2197
2705
|
} catch (e) {
|
|
2198
2706
|
if (strictJSONParsing) {
|
|
2199
|
-
if ('SyntaxError' === e.name) throw
|
|
2707
|
+
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
2200
2708
|
throw e;
|
|
2201
2709
|
}
|
|
2202
2710
|
}
|
|
@@ -2312,7 +2820,7 @@ function buildAccessors(obj, header) {
|
|
|
2312
2820
|
});
|
|
2313
2821
|
});
|
|
2314
2822
|
}
|
|
2315
|
-
class
|
|
2823
|
+
class AxiosHeaders_AxiosHeaders {
|
|
2316
2824
|
constructor(headers){
|
|
2317
2825
|
headers && this.set(headers);
|
|
2318
2826
|
}
|
|
@@ -2459,7 +2967,7 @@ class AxiosHeaders {
|
|
|
2459
2967
|
return this;
|
|
2460
2968
|
}
|
|
2461
2969
|
}
|
|
2462
|
-
|
|
2970
|
+
AxiosHeaders_AxiosHeaders.accessor([
|
|
2463
2971
|
'Content-Type',
|
|
2464
2972
|
'Content-Length',
|
|
2465
2973
|
'Accept',
|
|
@@ -2467,7 +2975,7 @@ AxiosHeaders.accessor([
|
|
|
2467
2975
|
'User-Agent',
|
|
2468
2976
|
'Authorization'
|
|
2469
2977
|
]);
|
|
2470
|
-
utils.reduceDescriptors(
|
|
2978
|
+
utils.reduceDescriptors(AxiosHeaders_AxiosHeaders.prototype, ({ value }, key)=>{
|
|
2471
2979
|
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
2472
2980
|
return {
|
|
2473
2981
|
get: ()=>value,
|
|
@@ -2476,12 +2984,12 @@ utils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key)=>{
|
|
|
2476
2984
|
}
|
|
2477
2985
|
};
|
|
2478
2986
|
});
|
|
2479
|
-
utils.freezeMethods(
|
|
2480
|
-
const
|
|
2987
|
+
utils.freezeMethods(AxiosHeaders_AxiosHeaders);
|
|
2988
|
+
const AxiosHeaders = AxiosHeaders_AxiosHeaders;
|
|
2481
2989
|
function transformData(fns, response) {
|
|
2482
2990
|
const config = this || lib_defaults;
|
|
2483
2991
|
const context = response || config;
|
|
2484
|
-
const headers =
|
|
2992
|
+
const headers = AxiosHeaders.from(context.headers);
|
|
2485
2993
|
let data = context.data;
|
|
2486
2994
|
utils.forEach(fns, function(fn) {
|
|
2487
2995
|
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
@@ -2492,20 +3000,20 @@ function transformData(fns, response) {
|
|
|
2492
3000
|
function isCancel(value) {
|
|
2493
3001
|
return !!(value && value.__CANCEL__);
|
|
2494
3002
|
}
|
|
2495
|
-
function
|
|
2496
|
-
|
|
3003
|
+
function CanceledError(message, config, request) {
|
|
3004
|
+
AxiosError.call(this, null == message ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
2497
3005
|
this.name = 'CanceledError';
|
|
2498
3006
|
}
|
|
2499
|
-
utils.inherits(
|
|
3007
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
2500
3008
|
__CANCEL__: true
|
|
2501
3009
|
});
|
|
2502
|
-
const
|
|
3010
|
+
const cancel_CanceledError = CanceledError;
|
|
2503
3011
|
function settle(resolve, reject, response) {
|
|
2504
3012
|
const validateStatus = response.config.validateStatus;
|
|
2505
3013
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
2506
|
-
else reject(new
|
|
2507
|
-
|
|
2508
|
-
|
|
3014
|
+
else reject(new AxiosError('Request failed with status code ' + response.status, [
|
|
3015
|
+
AxiosError.ERR_BAD_REQUEST,
|
|
3016
|
+
AxiosError.ERR_BAD_RESPONSE
|
|
2509
3017
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
2510
3018
|
}
|
|
2511
3019
|
function parseProtocol(url) {
|
|
@@ -2540,7 +3048,7 @@ function speedometer(samplesCount, min) {
|
|
|
2540
3048
|
};
|
|
2541
3049
|
}
|
|
2542
3050
|
const helpers_speedometer = speedometer;
|
|
2543
|
-
function
|
|
3051
|
+
function throttle_throttle(fn, freq) {
|
|
2544
3052
|
let timestamp = 0;
|
|
2545
3053
|
let threshold = 1000 / freq;
|
|
2546
3054
|
let lastArgs;
|
|
@@ -2572,11 +3080,11 @@ function throttle(fn, freq) {
|
|
|
2572
3080
|
flush
|
|
2573
3081
|
];
|
|
2574
3082
|
}
|
|
2575
|
-
const
|
|
3083
|
+
const throttle = throttle_throttle;
|
|
2576
3084
|
const progressEventReducer = (listener, isDownloadStream, freq = 3)=>{
|
|
2577
3085
|
let bytesNotified = 0;
|
|
2578
3086
|
const _speedometer = helpers_speedometer(50, 250);
|
|
2579
|
-
return
|
|
3087
|
+
return throttle((e)=>{
|
|
2580
3088
|
const loaded = e.loaded;
|
|
2581
3089
|
const total = e.lengthComputable ? e.total : void 0;
|
|
2582
3090
|
const progressBytes = loaded - bytesNotified;
|
|
@@ -2649,7 +3157,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
2649
3157
|
if (baseURL && (isRelativeUrl || false == allowAbsoluteUrls)) return combineURLs(baseURL, requestedURL);
|
|
2650
3158
|
return requestedURL;
|
|
2651
3159
|
}
|
|
2652
|
-
const headersToObject = (thing)=>thing instanceof
|
|
3160
|
+
const headersToObject = (thing)=>thing instanceof AxiosHeaders ? {
|
|
2653
3161
|
...thing
|
|
2654
3162
|
} : thing;
|
|
2655
3163
|
function mergeConfig(config1, config2) {
|
|
@@ -2719,7 +3227,7 @@ function mergeConfig(config1, config2) {
|
|
|
2719
3227
|
const resolveConfig = (config)=>{
|
|
2720
3228
|
const newConfig = mergeConfig({}, config);
|
|
2721
3229
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2722
|
-
newConfig.headers = headers =
|
|
3230
|
+
newConfig.headers = headers = AxiosHeaders.from(headers);
|
|
2723
3231
|
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
2724
3232
|
if (auth) headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
2725
3233
|
let contentType;
|
|
@@ -2747,7 +3255,7 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
2747
3255
|
return new Promise(function(resolve, reject) {
|
|
2748
3256
|
const _config = resolveConfig(config);
|
|
2749
3257
|
let requestData = _config.data;
|
|
2750
|
-
const requestHeaders =
|
|
3258
|
+
const requestHeaders = AxiosHeaders.from(_config.headers).normalize();
|
|
2751
3259
|
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
2752
3260
|
let onCanceled;
|
|
2753
3261
|
let uploadThrottled, downloadThrottled;
|
|
@@ -2763,7 +3271,7 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
2763
3271
|
request.timeout = _config.timeout;
|
|
2764
3272
|
function onloadend() {
|
|
2765
3273
|
if (!request) return;
|
|
2766
|
-
const responseHeaders =
|
|
3274
|
+
const responseHeaders = AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
|
|
2767
3275
|
const responseData = responseType && 'text' !== responseType && 'json' !== responseType ? request.response : request.responseText;
|
|
2768
3276
|
const response = {
|
|
2769
3277
|
data: responseData,
|
|
@@ -2790,18 +3298,18 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
2790
3298
|
};
|
|
2791
3299
|
request.onabort = function() {
|
|
2792
3300
|
if (!request) return;
|
|
2793
|
-
reject(new
|
|
3301
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
2794
3302
|
request = null;
|
|
2795
3303
|
};
|
|
2796
3304
|
request.onerror = function() {
|
|
2797
|
-
reject(new
|
|
3305
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
2798
3306
|
request = null;
|
|
2799
3307
|
};
|
|
2800
3308
|
request.ontimeout = function() {
|
|
2801
3309
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
2802
3310
|
const transitional = _config.transitional || defaults_transitional;
|
|
2803
3311
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2804
|
-
reject(new
|
|
3312
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
2805
3313
|
request = null;
|
|
2806
3314
|
};
|
|
2807
3315
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -2822,7 +3330,7 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
2822
3330
|
if (_config.cancelToken || _config.signal) {
|
|
2823
3331
|
onCanceled = (cancel)=>{
|
|
2824
3332
|
if (!request) return;
|
|
2825
|
-
reject(!cancel || cancel.type ? new
|
|
3333
|
+
reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel);
|
|
2826
3334
|
request.abort();
|
|
2827
3335
|
request = null;
|
|
2828
3336
|
};
|
|
@@ -2830,11 +3338,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
2830
3338
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
2831
3339
|
}
|
|
2832
3340
|
const protocol = parseProtocol(_config.url);
|
|
2833
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
3341
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
2834
3342
|
request.send(requestData || null);
|
|
2835
3343
|
});
|
|
2836
3344
|
};
|
|
2837
|
-
const
|
|
3345
|
+
const composeSignals_composeSignals = (signals, timeout)=>{
|
|
2838
3346
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
2839
3347
|
if (timeout || length) {
|
|
2840
3348
|
let controller = new AbortController();
|
|
@@ -2844,12 +3352,12 @@ const composeSignals = (signals, timeout)=>{
|
|
|
2844
3352
|
aborted = true;
|
|
2845
3353
|
unsubscribe();
|
|
2846
3354
|
const err = reason instanceof Error ? reason : this.reason;
|
|
2847
|
-
controller.abort(err instanceof
|
|
3355
|
+
controller.abort(err instanceof AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
2848
3356
|
}
|
|
2849
3357
|
};
|
|
2850
3358
|
let timer = timeout && setTimeout(()=>{
|
|
2851
3359
|
timer = null;
|
|
2852
|
-
onabort(new
|
|
3360
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
2853
3361
|
}, timeout);
|
|
2854
3362
|
const unsubscribe = ()=>{
|
|
2855
3363
|
if (signals) {
|
|
@@ -2867,7 +3375,7 @@ const composeSignals = (signals, timeout)=>{
|
|
|
2867
3375
|
return signal;
|
|
2868
3376
|
}
|
|
2869
3377
|
};
|
|
2870
|
-
const
|
|
3378
|
+
const composeSignals = composeSignals_composeSignals;
|
|
2871
3379
|
const streamChunk = function*(chunk, chunkSize) {
|
|
2872
3380
|
let len = chunk.byteLength;
|
|
2873
3381
|
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
@@ -2969,7 +3477,7 @@ isFetchSupported && ((res)=>{
|
|
|
2969
3477
|
'stream'
|
|
2970
3478
|
].forEach((type)=>{
|
|
2971
3479
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
2972
|
-
throw new
|
|
3480
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
2973
3481
|
});
|
|
2974
3482
|
});
|
|
2975
3483
|
})(new Response);
|
|
@@ -2994,7 +3502,7 @@ const resolveBodyLength = async (headers, body)=>{
|
|
|
2994
3502
|
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
2995
3503
|
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
2996
3504
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2997
|
-
let composedSignal =
|
|
3505
|
+
let composedSignal = composeSignals([
|
|
2998
3506
|
signal,
|
|
2999
3507
|
cancelToken && cancelToken.toAbortSignal()
|
|
3000
3508
|
], timeout);
|
|
@@ -3052,7 +3560,7 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
3052
3560
|
return await new Promise((resolve, reject)=>{
|
|
3053
3561
|
settle(resolve, reject, {
|
|
3054
3562
|
data: responseData,
|
|
3055
|
-
headers:
|
|
3563
|
+
headers: AxiosHeaders.from(response.headers),
|
|
3056
3564
|
status: response.status,
|
|
3057
3565
|
statusText: response.statusText,
|
|
3058
3566
|
config,
|
|
@@ -3061,10 +3569,10 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
3061
3569
|
});
|
|
3062
3570
|
} catch (err) {
|
|
3063
3571
|
unsubscribe && unsubscribe();
|
|
3064
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
3572
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
3065
3573
|
cause: err.cause || err
|
|
3066
3574
|
});
|
|
3067
|
-
throw
|
|
3575
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
3068
3576
|
}
|
|
3069
3577
|
});
|
|
3070
3578
|
const knownAdapters = {
|
|
@@ -3101,7 +3609,7 @@ const adapters_adapters = {
|
|
|
3101
3609
|
adapter = nameOrAdapter;
|
|
3102
3610
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
3103
3611
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
3104
|
-
if (void 0 === adapter) throw new
|
|
3612
|
+
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
3105
3613
|
}
|
|
3106
3614
|
if (adapter) break;
|
|
3107
3615
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -3109,7 +3617,7 @@ const adapters_adapters = {
|
|
|
3109
3617
|
if (!adapter) {
|
|
3110
3618
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
3111
3619
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
3112
|
-
throw new
|
|
3620
|
+
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
3113
3621
|
}
|
|
3114
3622
|
return adapter;
|
|
3115
3623
|
},
|
|
@@ -3117,11 +3625,11 @@ const adapters_adapters = {
|
|
|
3117
3625
|
};
|
|
3118
3626
|
function throwIfCancellationRequested(config) {
|
|
3119
3627
|
if (config.cancelToken) config.cancelToken.throwIfRequested();
|
|
3120
|
-
if (config.signal && config.signal.aborted) throw new
|
|
3628
|
+
if (config.signal && config.signal.aborted) throw new cancel_CanceledError(null, config);
|
|
3121
3629
|
}
|
|
3122
3630
|
function dispatchRequest(config) {
|
|
3123
3631
|
throwIfCancellationRequested(config);
|
|
3124
|
-
config.headers =
|
|
3632
|
+
config.headers = AxiosHeaders.from(config.headers);
|
|
3125
3633
|
config.data = transformData.call(config, config.transformRequest);
|
|
3126
3634
|
if (-1 !== [
|
|
3127
3635
|
'post',
|
|
@@ -3132,14 +3640,14 @@ function dispatchRequest(config) {
|
|
|
3132
3640
|
return adapter(config).then(function(response) {
|
|
3133
3641
|
throwIfCancellationRequested(config);
|
|
3134
3642
|
response.data = transformData.call(config, config.transformResponse, response);
|
|
3135
|
-
response.headers =
|
|
3643
|
+
response.headers = AxiosHeaders.from(response.headers);
|
|
3136
3644
|
return response;
|
|
3137
3645
|
}, function(reason) {
|
|
3138
3646
|
if (!isCancel(reason)) {
|
|
3139
3647
|
throwIfCancellationRequested(config);
|
|
3140
3648
|
if (reason && reason.response) {
|
|
3141
3649
|
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
3142
|
-
reason.response.headers =
|
|
3650
|
+
reason.response.headers = AxiosHeaders.from(reason.response.headers);
|
|
3143
3651
|
}
|
|
3144
3652
|
}
|
|
3145
3653
|
return Promise.reject(reason);
|
|
@@ -3165,7 +3673,7 @@ validators.transitional = function(validator, version, message) {
|
|
|
3165
3673
|
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
3166
3674
|
}
|
|
3167
3675
|
return (value, opt, opts)=>{
|
|
3168
|
-
if (false === validator) throw new
|
|
3676
|
+
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
3169
3677
|
if (version && !deprecatedWarnings[opt]) {
|
|
3170
3678
|
deprecatedWarnings[opt] = true;
|
|
3171
3679
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -3180,7 +3688,7 @@ validators.spelling = function(correctSpelling) {
|
|
|
3180
3688
|
};
|
|
3181
3689
|
};
|
|
3182
3690
|
function assertOptions(options, schema, allowUnknown) {
|
|
3183
|
-
if ('object' != typeof options) throw new
|
|
3691
|
+
if ('object' != typeof options) throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3184
3692
|
const keys = Object.keys(options);
|
|
3185
3693
|
let i = keys.length;
|
|
3186
3694
|
while(i-- > 0){
|
|
@@ -3189,10 +3697,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
3189
3697
|
if (validator) {
|
|
3190
3698
|
const value = options[opt];
|
|
3191
3699
|
const result = void 0 === value || validator(value, opt, options);
|
|
3192
|
-
if (true !== result) throw new
|
|
3700
|
+
if (true !== result) throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
3193
3701
|
continue;
|
|
3194
3702
|
}
|
|
3195
|
-
if (true !== allowUnknown) throw new
|
|
3703
|
+
if (true !== allowUnknown) throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
3196
3704
|
}
|
|
3197
3705
|
}
|
|
3198
3706
|
const helpers_validator = {
|
|
@@ -3264,7 +3772,7 @@ class Axios_Axios {
|
|
|
3264
3772
|
], (method)=>{
|
|
3265
3773
|
delete headers[method];
|
|
3266
3774
|
});
|
|
3267
|
-
config.headers =
|
|
3775
|
+
config.headers = AxiosHeaders.concat(contextHeaders, headers);
|
|
3268
3776
|
const requestInterceptorChain = [];
|
|
3269
3777
|
let synchronousRequestInterceptors = true;
|
|
3270
3778
|
this.interceptors.request.forEach(function(interceptor) {
|
|
@@ -3355,7 +3863,7 @@ utils.forEach([
|
|
|
3355
3863
|
Axios_Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
3356
3864
|
});
|
|
3357
3865
|
const Axios = Axios_Axios;
|
|
3358
|
-
class
|
|
3866
|
+
class CancelToken_CancelToken {
|
|
3359
3867
|
constructor(executor){
|
|
3360
3868
|
if ('function' != typeof executor) throw new TypeError('executor must be a function.');
|
|
3361
3869
|
let resolvePromise;
|
|
@@ -3382,7 +3890,7 @@ class CancelToken {
|
|
|
3382
3890
|
};
|
|
3383
3891
|
executor(function(message, config, request) {
|
|
3384
3892
|
if (token.reason) return;
|
|
3385
|
-
token.reason = new
|
|
3893
|
+
token.reason = new cancel_CanceledError(message, config, request);
|
|
3386
3894
|
resolvePromise(token.reason);
|
|
3387
3895
|
});
|
|
3388
3896
|
}
|
|
@@ -3412,7 +3920,7 @@ class CancelToken {
|
|
|
3412
3920
|
}
|
|
3413
3921
|
static source() {
|
|
3414
3922
|
let cancel;
|
|
3415
|
-
const token = new
|
|
3923
|
+
const token = new CancelToken_CancelToken(function(c) {
|
|
3416
3924
|
cancel = c;
|
|
3417
3925
|
});
|
|
3418
3926
|
return {
|
|
@@ -3421,7 +3929,7 @@ class CancelToken {
|
|
|
3421
3929
|
};
|
|
3422
3930
|
}
|
|
3423
3931
|
}
|
|
3424
|
-
const
|
|
3932
|
+
const CancelToken = CancelToken_CancelToken;
|
|
3425
3933
|
function spread(callback) {
|
|
3426
3934
|
return function(arr) {
|
|
3427
3935
|
return callback.apply(null, arr);
|
|
@@ -3515,12 +4023,12 @@ function createInstance(defaultConfig) {
|
|
|
3515
4023
|
}
|
|
3516
4024
|
const axios = createInstance(lib_defaults);
|
|
3517
4025
|
axios.Axios = Axios;
|
|
3518
|
-
axios.CanceledError =
|
|
3519
|
-
axios.CancelToken =
|
|
4026
|
+
axios.CanceledError = cancel_CanceledError;
|
|
4027
|
+
axios.CancelToken = CancelToken;
|
|
3520
4028
|
axios.isCancel = isCancel;
|
|
3521
4029
|
axios.VERSION = VERSION;
|
|
3522
|
-
axios.toFormData =
|
|
3523
|
-
axios.AxiosError =
|
|
4030
|
+
axios.toFormData = helpers_toFormData;
|
|
4031
|
+
axios.AxiosError = AxiosError;
|
|
3524
4032
|
axios.Cancel = axios.CanceledError;
|
|
3525
4033
|
axios.all = function(promises) {
|
|
3526
4034
|
return Promise.all(promises);
|
|
@@ -3528,8 +4036,8 @@ axios.all = function(promises) {
|
|
|
3528
4036
|
axios.spread = spread;
|
|
3529
4037
|
axios.isAxiosError = isAxiosError;
|
|
3530
4038
|
axios.mergeConfig = mergeConfig;
|
|
3531
|
-
axios.AxiosHeaders =
|
|
3532
|
-
axios.formToJSON = (thing)=>
|
|
4039
|
+
axios.AxiosHeaders = AxiosHeaders;
|
|
4040
|
+
axios.formToJSON = (thing)=>helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3533
4041
|
axios.getAdapter = adapters_adapters.getAdapter;
|
|
3534
4042
|
axios.HttpStatusCode = helpers_HttpStatusCode;
|
|
3535
4043
|
axios.default = axios;
|
|
@@ -3590,4 +4098,36 @@ const generateMtaPaymentMethodFloatAccountConfigForZepto = (payload)=>{
|
|
|
3590
4098
|
}
|
|
3591
4099
|
};
|
|
3592
4100
|
};
|
|
3593
|
-
|
|
4101
|
+
const getPropertyName = (property, options)=>{
|
|
4102
|
+
const { project, buyerName } = property;
|
|
4103
|
+
let lotDetail = property.lotDetail?.trim();
|
|
4104
|
+
if (lotDetail) if (lotDetail?.toLowerCase()?.startsWith('lot')) {
|
|
4105
|
+
lotDetail = lotDetail.replace(/^lot\s+/i, '').trim();
|
|
4106
|
+
lotDetail = `Lot ${lotDetail}`;
|
|
4107
|
+
} else if (lotDetail?.toLowerCase()?.startsWith('unit')) {
|
|
4108
|
+
lotDetail = lotDetail.replace(/^unit\s+/i, '').trim();
|
|
4109
|
+
lotDetail = `Unit ${lotDetail}`;
|
|
4110
|
+
} else lotDetail = `Lot ${lotDetail}`;
|
|
4111
|
+
else lotDetail = 'Lot N/A';
|
|
4112
|
+
const { target = 'payout' } = options || {};
|
|
4113
|
+
let names = [];
|
|
4114
|
+
if ('cma' === target || 'mta' === target) {
|
|
4115
|
+
names = [
|
|
4116
|
+
lotDetail,
|
|
4117
|
+
project?.name
|
|
4118
|
+
].filter(Boolean);
|
|
4119
|
+
if (buyerName) return `${names.join(' ')} | ${buyerName}`;
|
|
4120
|
+
return names.length > 0 ? names.join(' ') : 'Nill';
|
|
4121
|
+
}
|
|
4122
|
+
if ('payout' === target) names = [
|
|
4123
|
+
project?.name,
|
|
4124
|
+
lotDetail
|
|
4125
|
+
];
|
|
4126
|
+
if ('refund' === target) names = [
|
|
4127
|
+
lotDetail,
|
|
4128
|
+
project?.name
|
|
4129
|
+
];
|
|
4130
|
+
names = names.filter(Boolean);
|
|
4131
|
+
return names.length > 0 ? names.join(' ') : 'Nill';
|
|
4132
|
+
};
|
|
4133
|
+
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyRestResStatus, PropertyStage, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, basePayoutItemShape, bigIntFilterSchema, boolFilterBaseSchema, boolFilterSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaEntitySchema, cmaNestedEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaTransactionEntitySchema, cmaTransactionNestedSchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, confirmBankFileProcessedRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRestReqSchema, createCmaSettlementPayoutRestReqSchema, createCmaSettlementPayoutSourceAccountSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaSettlementPayoutRestReqSchema, createMtaSettlementPayoutSourceAccountSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutTargetAccountSchema, customerEntitySchema, dateTimeFilterBaseSchema, dateTimeFilterSchema, developerEntitySchema, displayBankAccount, dollarsToCentsSchema, formatBankBsb, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getPropertyName, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, intFilterSchema, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, mtaTransactionEntitySchema, mtaTransactionRestResBaseSchema, mtaTransactionRestResSchema, paymentProviderEntitySchema, payoutBankFileDownloadHistoryEntitySchema, payoutBankFileEntitySchema, payoutBankFileRestResSchema, payoutCmaSourceDetailsRestSchema, payoutCmaTargetDetailsRestSchema, payoutDetailRestResSchema, payoutEntitySchema, payoutItemReqSchema, payoutListRestResSchema, payoutMtaSourceDetailsRestSchema, payoutMtaToCmaProvisionDataEntitySchema, payoutMtaToCmaRestResSchema, payoutMtaToCmaTargetDetailsEntitySchema, payoutOtherProvisionDataEntitySchema, payoutOtherTargetDetailsEntitySchema, payoutOtherTargetDetailsRestSchema, payoutPaymentItemSchema, payoutProvisionDataEntitySchema, payoutRestReqSchema, payoutRestResBaseSchema, payoutRestResSchema, payoutSearchRestReqSchema, payoutSourceDetailsEntitySchema, payoutSourceDetailsRestResBaseSchema, payoutSourceDetailsRestSchema, payoutStatusSummaryRestResSchema, payoutTargetDetailsBaseEntitySchema, payoutTargetDetailsEntitySchema, payoutTargetDetailsRestResBaseSchema, payoutTargetDetailsRestSchema, payoutTransactionEntitySchema, payoutTransactionRestResSchema, projectEntitySchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, stateCodeSchema, stringFilterSchema, updateCmaAccountPeriodReconciledToRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateMenuRestReqSchema, updateMtaAccountPeriodReconciledToRestReqSchema, updateMtaRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, userEntitySchema, userRestResSchema };
|