@mikemo-coposit/am-accounting-shared 0.0.1 → 0.0.3
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/cma-account.constant.d.ts +6 -0
- package/dist/cjs/constants/cma/cma-account.constant.d.ts.map +1 -0
- package/dist/cjs/constants/cma/index.d.ts +2 -0
- package/dist/cjs/constants/cma/index.d.ts.map +1 -0
- package/dist/cjs/constants/common/common-status.constant.d.ts +5 -0
- package/dist/cjs/constants/common/common-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/common/common-sync-status.constant.d.ts +7 -0
- package/dist/cjs/constants/common/common-sync-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/common/index.d.ts +4 -0
- package/dist/cjs/constants/common/index.d.ts.map +1 -0
- package/dist/cjs/constants/common/reconcile-transaction-action.constant.d.ts +5 -0
- package/dist/cjs/constants/common/reconcile-transaction-action.constant.d.ts.map +1 -0
- package/dist/cjs/constants/index.d.ts +10 -0
- package/dist/cjs/constants/index.d.ts.map +1 -0
- package/dist/cjs/constants/menu/index.d.ts +3 -0
- package/dist/cjs/constants/menu/index.d.ts.map +1 -0
- package/dist/cjs/constants/menu/menu-status.constant.d.ts +6 -0
- package/dist/cjs/constants/menu/menu-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/menu/menu-type.constant.d.ts +7 -0
- package/dist/cjs/constants/menu/menu-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta/index.d.ts +2 -0
- package/dist/cjs/constants/mta/index.d.ts.map +1 -0
- package/dist/cjs/constants/mta/mta.d.ts +5 -0
- package/dist/cjs/constants/mta/mta.d.ts.map +1 -0
- package/dist/cjs/constants/mta-account-period/index.d.ts +2 -0
- package/dist/cjs/constants/mta-account-period/index.d.ts.map +1 -0
- package/dist/cjs/constants/mta-account-period/mta-account-period.constant.d.ts +5 -0
- package/dist/cjs/constants/mta-account-period/mta-account-period.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-reconciliation/index.d.ts +2 -0
- package/dist/cjs/constants/mta-reconciliation/index.d.ts.map +1 -0
- package/dist/cjs/constants/mta-reconciliation/mta-reconciliation.constant.d.ts +5 -0
- package/dist/cjs/constants/mta-reconciliation/mta-reconciliation.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/index.d.ts +4 -0
- package/dist/cjs/constants/mta-transaction/index.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts +6 -0
- package/dist/cjs/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/mta-payment-method.constant.d.ts +4 -0
- package/dist/cjs/constants/mta-transaction/mta-payment-method.constant.d.ts.map +1 -0
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts +35 -0
- package/dist/cjs/constants/mta-transaction/mta-type.constant.d.ts.map +1 -0
- package/dist/cjs/constants/project/index.d.ts +3 -0
- package/dist/cjs/constants/project/index.d.ts.map +1 -0
- package/dist/cjs/constants/project/project-apply-status.rest.constant.d.ts +9 -0
- package/dist/cjs/constants/project/project-apply-status.rest.constant.d.ts.map +1 -0
- package/dist/cjs/constants/project/project-mta-allocation-status.constant.d.ts +7 -0
- package/dist/cjs/constants/project/project-mta-allocation-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/property/index.d.ts +2 -0
- package/dist/cjs/constants/property/index.d.ts.map +1 -0
- package/dist/cjs/constants/property/property-status.constant.d.ts +10 -0
- package/dist/cjs/constants/property/property-status.constant.d.ts.map +1 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +6747 -0
- package/dist/cjs/index.js.LICENSE.txt +13 -0
- package/dist/cjs/interfaces/common/common.interface.d.ts +5 -0
- package/dist/cjs/interfaces/common/common.interface.d.ts.map +1 -0
- package/dist/cjs/interfaces/common/index.d.ts +2 -0
- package/dist/cjs/interfaces/common/index.d.ts.map +1 -0
- package/dist/cjs/interfaces/index.d.ts +2 -0
- package/dist/cjs/interfaces/index.d.ts.map +1 -0
- package/dist/cjs/schemas/cma/cma-account-res.schema.d.ts +67 -0
- package/dist/cjs/schemas/cma/cma-account-res.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma/cma-account.entity.schema.d.ts +67 -0
- package/dist/cjs/schemas/cma/cma-account.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma/create-cma-account.schema.d.ts +24 -0
- package/dist/cjs/schemas/cma/create-cma-account.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma/index.d.ts +4 -0
- package/dist/cjs/schemas/cma/index.d.ts.map +1 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +76 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/cma-transaction/index.d.ts +2 -0
- package/dist/cjs/schemas/cma-transaction/index.d.ts.map +1 -0
- package/dist/cjs/schemas/developer/developer.enity.schema.d.ts +28 -0
- package/dist/cjs/schemas/developer/developer.enity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/developer/index.d.ts +2 -0
- package/dist/cjs/schemas/developer/index.d.ts.map +1 -0
- package/dist/cjs/schemas/index.d.ts +17 -0
- package/dist/cjs/schemas/index.d.ts.map +1 -0
- package/dist/{schemas → cjs/schemas}/menu/create-menu.schema.d.ts +5 -7
- package/dist/cjs/schemas/menu/create-menu.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/menu/index.d.ts +4 -0
- package/dist/cjs/schemas/menu/index.d.ts.map +1 -0
- package/dist/{schemas → cjs/schemas}/menu/menu-res.schema.d.ts +36 -38
- package/dist/cjs/schemas/menu/menu-res.schema.d.ts.map +1 -0
- package/dist/{schemas → cjs/schemas}/menu/update-menu.schema.d.ts +7 -9
- package/dist/cjs/schemas/menu/update-menu.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta/create-mta.rest.schema.d.ts +41 -0
- package/dist/cjs/schemas/mta/create-mta.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta/index.d.ts +5 -0
- package/dist/cjs/schemas/mta/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta/mta.entity.schema.d.ts +61 -0
- package/dist/cjs/schemas/mta/mta.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts +914 -0
- package/dist/cjs/schemas/mta/mta.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta/update-mta.schema.d.ts +13 -0
- package/dist/cjs/schemas/mta/update-mta.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/index.d.ts +6 -0
- package/dist/cjs/schemas/mta-account-period/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts +19 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +4039 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period.entity.schema.d.ts +46 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +1357 -0
- package/dist/cjs/schemas/mta-account-period/mta-account-period.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +19 -0
- package/dist/cjs/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-payment-method/index.d.ts +3 -0
- package/dist/cjs/schemas/mta-payment-method/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.entity.schema.d.ts +82 -0
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +236 -0
- package/dist/cjs/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/index.d.ts +3 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts +37 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +49 -0
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +16 -0
- package/dist/cjs/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciliation/index.d.ts +5 -0
- package/dist/cjs/schemas/mta-reconciliation/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts +61 -0
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts +71 -0
- package/dist/cjs/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts +13 -0
- package/dist/cjs/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/assign-unknonw-receipt-to-property.rest.schema.d.ts +19 -0
- package/dist/cjs/schemas/mta-transaction/assign-unknonw-receipt-to-property.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/cancel-mta-transaction.rest.schema.d.ts +16 -0
- package/dist/cjs/schemas/mta-transaction/cancel-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +69 -0
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/index.d.ts +7 -0
- package/dist/cjs/schemas/mta-transaction/index.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +88 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +1999 -0
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/mta-transaction/reconcile-mta-transaction.rest.schema.d.ts +17 -0
- package/dist/cjs/schemas/mta-transaction/reconcile-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payment-provider/index.d.ts +2 -0
- package/dist/cjs/schemas/payment-provider/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payment-provider/payment-provider.entity.schema.d.ts +31 -0
- package/dist/cjs/schemas/payment-provider/payment-provider.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/index.d.ts +6 -0
- package/dist/cjs/schemas/payout/index.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.create.schema.d.ts +157 -0
- package/dist/cjs/schemas/payout/payout.create.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +342 -0
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts +101 -0
- package/dist/cjs/schemas/payout/payout.rest.create.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts +183 -0
- package/dist/cjs/schemas/payout/payout.rest.list.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts +282 -0
- package/dist/cjs/schemas/payout/payout.rest.view.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project/index.d.ts +3 -0
- package/dist/cjs/schemas/project/index.d.ts.map +1 -0
- package/dist/cjs/schemas/project/project.entity.schema.d.ts +41 -0
- package/dist/cjs/schemas/project/project.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project/project.rest.schema.d.ts +1233 -0
- package/dist/cjs/schemas/project/project.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project-mta-allocation/allocate-mta-to-project.schema.d.ts +13 -0
- package/dist/cjs/schemas/project-mta-allocation/allocate-mta-to-project.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts +13 -0
- package/dist/cjs/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project-mta-allocation/index.d.ts +5 -0
- package/dist/cjs/schemas/project-mta-allocation/index.d.ts.map +1 -0
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts +55 -0
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +452 -0
- package/dist/cjs/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/property/index.d.ts +3 -0
- package/dist/cjs/schemas/property/index.d.ts.map +1 -0
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +61 -0
- package/dist/cjs/schemas/property/property.entity.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +2021 -0
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/user/index.d.ts +2 -0
- package/dist/cjs/schemas/user/index.d.ts.map +1 -0
- package/dist/cjs/schemas/user/user.entity.schema.d.ts +52 -0
- package/dist/cjs/schemas/user/user.entity.schema.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/ammo-zepto.client.d.ts +13 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/ammo-zepto.client.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/bank-account.type.d.ts +19 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/bank-account.type.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/bank-accounts.api.d.ts +8 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/bank-accounts.api.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/index.d.ts +3 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/bank-accounts/index.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/index.d.ts +3 -0
- package/dist/cjs/third-party-integrations/ammo-zepto/index.d.ts.map +1 -0
- package/dist/cjs/third-party-integrations/index.d.ts +2 -0
- package/dist/cjs/third-party-integrations/index.d.ts.map +1 -0
- package/dist/cjs/utils/amount.util.d.ts +3 -0
- package/dist/cjs/utils/amount.util.d.ts.map +1 -0
- package/dist/cjs/utils/currency.util.d.ts +5 -0
- package/dist/cjs/utils/currency.util.d.ts.map +1 -0
- package/dist/cjs/utils/index.d.ts +6 -0
- package/dist/cjs/utils/index.d.ts.map +1 -0
- package/dist/cjs/utils/mask-string.util.d.ts +6 -0
- package/dist/cjs/utils/mask-string.util.d.ts.map +1 -0
- package/dist/cjs/utils/payment-credential-generate.util.d.ts +11 -0
- package/dist/cjs/utils/payment-credential-generate.util.d.ts.map +1 -0
- package/dist/cjs/utils/transaction.util.d.ts +45 -0
- package/dist/cjs/utils/transaction.util.d.ts.map +1 -0
- package/dist/esm/constants/cma/cma-account.constant.d.ts +6 -0
- package/dist/esm/constants/cma/cma-account.constant.d.ts.map +1 -0
- package/dist/esm/constants/cma/index.d.ts +2 -0
- package/dist/esm/constants/cma/index.d.ts.map +1 -0
- package/dist/esm/constants/common/common-status.constant.d.ts +5 -0
- package/dist/esm/constants/common/common-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/common/common-sync-status.constant.d.ts +7 -0
- package/dist/esm/constants/common/common-sync-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/common/index.d.ts +4 -0
- package/dist/esm/constants/common/index.d.ts.map +1 -0
- package/dist/esm/constants/common/reconcile-transaction-action.constant.d.ts +5 -0
- package/dist/esm/constants/common/reconcile-transaction-action.constant.d.ts.map +1 -0
- package/dist/esm/constants/index.d.ts +10 -0
- package/dist/esm/constants/index.d.ts.map +1 -0
- package/dist/esm/constants/menu/index.d.ts +3 -0
- package/dist/esm/constants/menu/index.d.ts.map +1 -0
- package/dist/esm/constants/menu/menu-status.constant.d.ts +6 -0
- package/dist/esm/constants/menu/menu-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/menu/menu-type.constant.d.ts +7 -0
- package/dist/esm/constants/menu/menu-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta/index.d.ts +2 -0
- package/dist/esm/constants/mta/index.d.ts.map +1 -0
- package/dist/esm/constants/mta/mta.d.ts +5 -0
- package/dist/esm/constants/mta/mta.d.ts.map +1 -0
- package/dist/esm/constants/mta-account-period/index.d.ts +2 -0
- package/dist/esm/constants/mta-account-period/index.d.ts.map +1 -0
- package/dist/esm/constants/mta-account-period/mta-account-period.constant.d.ts +5 -0
- package/dist/esm/constants/mta-account-period/mta-account-period.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-reconciliation/index.d.ts +2 -0
- package/dist/esm/constants/mta-reconciliation/index.d.ts.map +1 -0
- package/dist/esm/constants/mta-reconciliation/mta-reconciliation.constant.d.ts +5 -0
- package/dist/esm/constants/mta-reconciliation/mta-reconciliation.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/index.d.ts +4 -0
- package/dist/esm/constants/mta-transaction/index.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts +6 -0
- package/dist/esm/constants/mta-transaction/mta-input-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/mta-payment-method.constant.d.ts +4 -0
- package/dist/esm/constants/mta-transaction/mta-payment-method.constant.d.ts.map +1 -0
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts +35 -0
- package/dist/esm/constants/mta-transaction/mta-type.constant.d.ts.map +1 -0
- package/dist/esm/constants/project/index.d.ts +3 -0
- package/dist/esm/constants/project/index.d.ts.map +1 -0
- package/dist/esm/constants/project/project-apply-status.rest.constant.d.ts +9 -0
- package/dist/esm/constants/project/project-apply-status.rest.constant.d.ts.map +1 -0
- package/dist/esm/constants/project/project-mta-allocation-status.constant.d.ts +7 -0
- package/dist/esm/constants/project/project-mta-allocation-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/property/index.d.ts +2 -0
- package/dist/esm/constants/property/index.d.ts.map +1 -0
- package/dist/esm/constants/property/property-status.constant.d.ts +10 -0
- package/dist/esm/constants/property/property-status.constant.d.ts.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.mjs +3214 -0
- package/dist/esm/interfaces/common/common.interface.d.ts +5 -0
- package/dist/esm/interfaces/common/common.interface.d.ts.map +1 -0
- package/dist/esm/interfaces/common/index.d.ts +2 -0
- package/dist/esm/interfaces/common/index.d.ts.map +1 -0
- package/dist/esm/interfaces/index.d.ts +2 -0
- package/dist/esm/interfaces/index.d.ts.map +1 -0
- package/dist/esm/schemas/cma/cma-account-res.schema.d.ts +67 -0
- package/dist/esm/schemas/cma/cma-account-res.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma/cma-account.entity.schema.d.ts +67 -0
- package/dist/esm/schemas/cma/cma-account.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma/create-cma-account.schema.d.ts +24 -0
- package/dist/esm/schemas/cma/create-cma-account.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma/index.d.ts +4 -0
- package/dist/esm/schemas/cma/index.d.ts.map +1 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.entity.schema.d.ts +76 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/cma-transaction/index.d.ts +2 -0
- package/dist/esm/schemas/cma-transaction/index.d.ts.map +1 -0
- package/dist/esm/schemas/developer/developer.enity.schema.d.ts +28 -0
- package/dist/esm/schemas/developer/developer.enity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/developer/index.d.ts +2 -0
- package/dist/esm/schemas/developer/index.d.ts.map +1 -0
- package/dist/esm/schemas/index.d.ts +17 -0
- package/dist/esm/schemas/index.d.ts.map +1 -0
- package/dist/{schemas/menu/create-menu.schema.d.mts → esm/schemas/menu/create-menu.schema.d.ts} +5 -7
- package/dist/esm/schemas/menu/create-menu.schema.d.ts.map +1 -0
- package/dist/esm/schemas/menu/index.d.ts +4 -0
- package/dist/esm/schemas/menu/index.d.ts.map +1 -0
- package/dist/{schemas/menu/menu-res.schema.d.mts → esm/schemas/menu/menu-res.schema.d.ts} +36 -38
- package/dist/esm/schemas/menu/menu-res.schema.d.ts.map +1 -0
- package/dist/{schemas/menu/update-menu.schema.d.mts → esm/schemas/menu/update-menu.schema.d.ts} +7 -9
- package/dist/esm/schemas/menu/update-menu.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta/create-mta.rest.schema.d.ts +41 -0
- package/dist/esm/schemas/mta/create-mta.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta/index.d.ts +5 -0
- package/dist/esm/schemas/mta/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta/mta.entity.schema.d.ts +61 -0
- package/dist/esm/schemas/mta/mta.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts +914 -0
- package/dist/esm/schemas/mta/mta.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta/update-mta.schema.d.ts +13 -0
- package/dist/esm/schemas/mta/update-mta.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/index.d.ts +6 -0
- package/dist/esm/schemas/mta-account-period/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts +19 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +4039 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period.entity.schema.d.ts +46 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period.rest.schema.d.ts +1357 -0
- package/dist/esm/schemas/mta-account-period/mta-account-period.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts +19 -0
- package/dist/esm/schemas/mta-account-period/update-mta-period-reconciled-to.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-payment-method/index.d.ts +3 -0
- package/dist/esm/schemas/mta-payment-method/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.entity.schema.d.ts +82 -0
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts +236 -0
- package/dist/esm/schemas/mta-payment-method/mta-payment-method.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciled-transaction/index.d.ts +3 -0
- package/dist/esm/schemas/mta-reconciled-transaction/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts +37 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +49 -0
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +16 -0
- package/dist/esm/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciliation/index.d.ts +5 -0
- package/dist/esm/schemas/mta-reconciliation/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts +61 -0
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts +71 -0
- package/dist/esm/schemas/mta-reconciliation/mta-reconciliation.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts +13 -0
- package/dist/esm/schemas/mta-reconciliation/update-mta-reconciliation-current-bank-balance.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/assign-unknonw-receipt-to-property.rest.schema.d.ts +19 -0
- package/dist/esm/schemas/mta-transaction/assign-unknonw-receipt-to-property.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/cancel-mta-transaction.rest.schema.d.ts +16 -0
- package/dist/esm/schemas/mta-transaction/cancel-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +69 -0
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/index.d.ts +7 -0
- package/dist/esm/schemas/mta-transaction/index.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +88 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +1999 -0
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/mta-transaction/reconcile-mta-transaction.rest.schema.d.ts +17 -0
- package/dist/esm/schemas/mta-transaction/reconcile-mta-transaction.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payment-provider/index.d.ts +2 -0
- package/dist/esm/schemas/payment-provider/index.d.ts.map +1 -0
- package/dist/esm/schemas/payment-provider/payment-provider.entity.schema.d.ts +31 -0
- package/dist/esm/schemas/payment-provider/payment-provider.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/index.d.ts +6 -0
- package/dist/esm/schemas/payout/index.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.create.schema.d.ts +157 -0
- package/dist/esm/schemas/payout/payout.create.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +342 -0
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts +101 -0
- package/dist/esm/schemas/payout/payout.rest.create.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts +183 -0
- package/dist/esm/schemas/payout/payout.rest.list.schema.d.ts.map +1 -0
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts +282 -0
- package/dist/esm/schemas/payout/payout.rest.view.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project/index.d.ts +3 -0
- package/dist/esm/schemas/project/index.d.ts.map +1 -0
- package/dist/esm/schemas/project/project.entity.schema.d.ts +41 -0
- package/dist/esm/schemas/project/project.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project/project.rest.schema.d.ts +1233 -0
- package/dist/esm/schemas/project/project.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project-mta-allocation/allocate-mta-to-project.schema.d.ts +13 -0
- package/dist/esm/schemas/project-mta-allocation/allocate-mta-to-project.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts +13 -0
- package/dist/esm/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project-mta-allocation/index.d.ts +5 -0
- package/dist/esm/schemas/project-mta-allocation/index.d.ts.map +1 -0
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts +55 -0
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts +452 -0
- package/dist/esm/schemas/project-mta-allocation/project-mta-allocation.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/property/index.d.ts +3 -0
- package/dist/esm/schemas/property/index.d.ts.map +1 -0
- package/dist/esm/schemas/property/property.entity.schema.d.ts +61 -0
- package/dist/esm/schemas/property/property.entity.schema.d.ts.map +1 -0
- package/dist/esm/schemas/property/property.rest.schema.d.ts +2021 -0
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -0
- package/dist/esm/schemas/user/index.d.ts +2 -0
- package/dist/esm/schemas/user/index.d.ts.map +1 -0
- package/dist/esm/schemas/user/user.entity.schema.d.ts +52 -0
- package/dist/esm/schemas/user/user.entity.schema.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/ammo-zepto/ammo-zepto.client.d.ts +13 -0
- package/dist/esm/third-party-integrations/ammo-zepto/ammo-zepto.client.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/bank-account.type.d.ts +19 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/bank-account.type.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/bank-accounts.api.d.ts +8 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/bank-accounts.api.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/index.d.ts +3 -0
- package/dist/esm/third-party-integrations/ammo-zepto/bank-accounts/index.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/ammo-zepto/index.d.ts +3 -0
- package/dist/esm/third-party-integrations/ammo-zepto/index.d.ts.map +1 -0
- package/dist/esm/third-party-integrations/index.d.ts +2 -0
- package/dist/esm/third-party-integrations/index.d.ts.map +1 -0
- package/dist/esm/utils/amount.util.d.ts +3 -0
- package/dist/esm/utils/amount.util.d.ts.map +1 -0
- package/dist/esm/utils/currency.util.d.ts +5 -0
- package/dist/esm/utils/currency.util.d.ts.map +1 -0
- package/dist/esm/utils/index.d.ts +6 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/mask-string.util.d.ts +6 -0
- package/dist/esm/utils/mask-string.util.d.ts.map +1 -0
- package/dist/esm/utils/payment-credential-generate.util.d.ts +11 -0
- package/dist/esm/utils/payment-credential-generate.util.d.ts.map +1 -0
- package/dist/esm/utils/transaction.util.d.ts +45 -0
- package/dist/esm/utils/transaction.util.d.ts.map +1 -0
- package/package.json +14 -64
- package/dist/constants/index.d.mts +0 -5
- package/dist/constants/index.d.ts +0 -5
- package/dist/constants/index.js +0 -21
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/index.mjs +0 -4
- package/dist/constants/index.mjs.map +0 -1
- package/dist/constants/menu/index.d.mts +0 -2
- package/dist/constants/menu/index.d.ts +0 -2
- package/dist/constants/menu/index.js +0 -20
- package/dist/constants/menu/index.js.map +0 -1
- package/dist/constants/menu/index.mjs +0 -3
- package/dist/constants/menu/index.mjs.map +0 -1
- package/dist/constants/menu/menu-status.constant.d.mts +0 -7
- package/dist/constants/menu/menu-status.constant.d.ts +0 -7
- package/dist/constants/menu/menu-status.constant.js +0 -28
- package/dist/constants/menu/menu-status.constant.js.map +0 -1
- package/dist/constants/menu/menu-status.constant.mjs +0 -8
- package/dist/constants/menu/menu-status.constant.mjs.map +0 -1
- package/dist/constants/menu/menu-type.constant.d.mts +0 -8
- package/dist/constants/menu/menu-type.constant.d.ts +0 -8
- package/dist/constants/menu/menu-type.constant.js +0 -29
- package/dist/constants/menu/menu-type.constant.js.map +0 -1
- package/dist/constants/menu/menu-type.constant.mjs +0 -9
- package/dist/constants/menu/menu-type.constant.mjs.map +0 -1
- package/dist/constants/project/index.d.mts +0 -2
- package/dist/constants/project/index.d.ts +0 -2
- package/dist/constants/project/index.js +0 -20
- package/dist/constants/project/index.js.map +0 -1
- package/dist/constants/project/index.mjs +0 -3
- package/dist/constants/project/index.mjs.map +0 -1
- package/dist/constants/project/project-res-status.constant.d.mts +0 -10
- package/dist/constants/project/project-res-status.constant.d.ts +0 -10
- package/dist/constants/project/project-res-status.constant.js +0 -31
- package/dist/constants/project/project-res-status.constant.js.map +0 -1
- package/dist/constants/project/project-res-status.constant.mjs +0 -11
- package/dist/constants/project/project-res-status.constant.mjs.map +0 -1
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.mts +0 -8
- package/dist/constants/project/project-trust-account-allocation-status.constant.d.ts +0 -8
- package/dist/constants/project/project-trust-account-allocation-status.constant.js +0 -29
- package/dist/constants/project/project-trust-account-allocation-status.constant.js.map +0 -1
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs +0 -9
- package/dist/constants/project/project-trust-account-allocation-status.constant.mjs.map +0 -1
- package/dist/constants/trust-account/index.d.mts +0 -1
- package/dist/constants/trust-account/index.d.ts +0 -1
- package/dist/constants/trust-account/index.js +0 -19
- package/dist/constants/trust-account/index.js.map +0 -1
- package/dist/constants/trust-account/index.mjs +0 -2
- package/dist/constants/trust-account/index.mjs.map +0 -1
- package/dist/constants/trust-account/trust-account-status.constant.d.mts +0 -6
- package/dist/constants/trust-account/trust-account-status.constant.d.ts +0 -6
- package/dist/constants/trust-account/trust-account-status.constant.js +0 -29
- package/dist/constants/trust-account/trust-account-status.constant.js.map +0 -1
- package/dist/constants/trust-account/trust-account-status.constant.mjs +0 -9
- package/dist/constants/trust-account/trust-account-status.constant.mjs.map +0 -1
- package/dist/grpc/constants/accountms.constant.d.mts +0 -14
- package/dist/grpc/constants/accountms.constant.d.ts +0 -14
- package/dist/grpc/constants/accountms.constant.js +0 -39
- package/dist/grpc/constants/accountms.constant.js.map +0 -1
- package/dist/grpc/constants/accountms.constant.mjs +0 -19
- package/dist/grpc/constants/accountms.constant.mjs.map +0 -1
- package/dist/grpc/constants/index.d.mts +0 -1
- package/dist/grpc/constants/index.d.ts +0 -1
- package/dist/grpc/constants/index.js +0 -19
- package/dist/grpc/constants/index.js.map +0 -1
- package/dist/grpc/constants/index.mjs +0 -2
- package/dist/grpc/constants/index.mjs.map +0 -1
- package/dist/grpc/index.d.mts +0 -4
- package/dist/grpc/index.d.ts +0 -4
- package/dist/grpc/index.js +0 -20
- package/dist/grpc/index.js.map +0 -1
- package/dist/grpc/index.mjs +0 -3
- package/dist/grpc/index.mjs.map +0 -1
- package/dist/grpc/protos/common/common.file.d.mts +0 -2
- package/dist/grpc/protos/common/common.file.d.ts +0 -2
- package/dist/grpc/protos/common/common.file.proto +0 -30
- package/dist/grpc/protos/common/common.general.d.mts +0 -2
- package/dist/grpc/protos/common/common.general.d.ts +0 -2
- package/dist/grpc/protos/common/common.general.proto +0 -53
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.mts +0 -2
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.d.ts +0 -2
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.mts +0 -2
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.d.ts +0 -2
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.e.proto +0 -16
- package/dist/grpc/protos/project-trust-account-allocation/project-trust-account-allocation.proto +0 -28
- package/dist/grpc/protos/trust-account/trust-account.d.mts +0 -2
- package/dist/grpc/protos/trust-account/trust-account.d.ts +0 -2
- package/dist/grpc/protos/trust-account/trust-account.e.d.mts +0 -2
- package/dist/grpc/protos/trust-account/trust-account.e.d.ts +0 -2
- package/dist/grpc/protos/trust-account/trust-account.e.proto +0 -18
- package/dist/grpc/protos/trust-account/trust-account.proto +0 -35
- package/dist/grpc/utils/grpc.options.util.d.mts +0 -10
- package/dist/grpc/utils/grpc.options.util.d.ts +0 -10
- package/dist/grpc/utils/grpc.options.util.js +0 -57
- package/dist/grpc/utils/grpc.options.util.js.map +0 -1
- package/dist/grpc/utils/grpc.options.util.mjs +0 -37
- package/dist/grpc/utils/grpc.options.util.mjs.map +0 -1
- package/dist/grpc/utils/index.d.mts +0 -3
- package/dist/grpc/utils/index.d.ts +0 -3
- package/dist/grpc/utils/index.js +0 -20
- package/dist/grpc/utils/index.js.map +0 -1
- package/dist/grpc/utils/index.mjs +0 -3
- package/dist/grpc/utils/index.mjs.map +0 -1
- package/dist/grpc/utils/proto.util.d.mts +0 -18
- package/dist/grpc/utils/proto.util.d.ts +0 -18
- package/dist/grpc/utils/proto.util.js +0 -102
- package/dist/grpc/utils/proto.util.js.map +0 -1
- package/dist/grpc/utils/proto.util.mjs +0 -82
- package/dist/grpc/utils/proto.util.mjs.map +0 -1
- package/dist/index.d.mts +0 -28
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -23
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -6
- package/dist/index.mjs.map +0 -1
- package/dist/interfaces/common/common.interface.d.mts +0 -6
- package/dist/interfaces/common/common.interface.d.ts +0 -6
- package/dist/interfaces/common/common.interface.js +0 -17
- package/dist/interfaces/common/common.interface.js.map +0 -1
- package/dist/interfaces/common/common.interface.mjs +0 -1
- package/dist/interfaces/common/common.interface.mjs.map +0 -1
- package/dist/interfaces/common/index.d.mts +0 -1
- package/dist/interfaces/common/index.d.ts +0 -1
- package/dist/interfaces/common/index.js +0 -19
- package/dist/interfaces/common/index.js.map +0 -1
- package/dist/interfaces/common/index.mjs +0 -2
- package/dist/interfaces/common/index.mjs.map +0 -1
- package/dist/interfaces/index.d.mts +0 -12
- package/dist/interfaces/index.d.ts +0 -12
- package/dist/interfaces/index.js +0 -21
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/index.mjs +0 -4
- package/dist/interfaces/index.mjs.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/index.d.mts +0 -7
- package/dist/interfaces/project-trust-account-allocation/index.d.ts +0 -7
- package/dist/interfaces/project-trust-account-allocation/index.js +0 -20
- package/dist/interfaces/project-trust-account-allocation/index.js.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/index.mjs +0 -3
- package/dist/interfaces/project-trust-account-allocation/index.mjs.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.mts +0 -16
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.d.ts +0 -16
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js +0 -17
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.js.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.entity.interface.mjs.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.mts +0 -24
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.d.ts +0 -24
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js +0 -17
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.js.map +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs +0 -1
- package/dist/interfaces/project-trust-account-allocation/project-trust-account-allocation.grpc.interface.mjs.map +0 -1
- package/dist/interfaces/trust-account/index.d.mts +0 -8
- package/dist/interfaces/trust-account/index.d.ts +0 -8
- package/dist/interfaces/trust-account/index.js +0 -20
- package/dist/interfaces/trust-account/index.js.map +0 -1
- package/dist/interfaces/trust-account/index.mjs +0 -3
- package/dist/interfaces/trust-account/index.mjs.map +0 -1
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.mts +0 -18
- package/dist/interfaces/trust-account/trust-account.entity.interface.d.ts +0 -18
- package/dist/interfaces/trust-account/trust-account.entity.interface.js +0 -17
- package/dist/interfaces/trust-account/trust-account.entity.interface.js.map +0 -1
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs +0 -1
- package/dist/interfaces/trust-account/trust-account.entity.interface.mjs.map +0 -1
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.mts +0 -24
- package/dist/interfaces/trust-account/trust-account.grpc.interface.d.ts +0 -24
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js +0 -17
- package/dist/interfaces/trust-account/trust-account.grpc.interface.js.map +0 -1
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs +0 -1
- package/dist/interfaces/trust-account/trust-account.grpc.interface.mjs.map +0 -1
- package/dist/schemas/index.d.mts +0 -12
- package/dist/schemas/index.d.ts +0 -12
- package/dist/schemas/index.js +0 -22
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/index.mjs +0 -5
- package/dist/schemas/index.mjs.map +0 -1
- package/dist/schemas/menu/create-menu.schema.js +0 -40
- package/dist/schemas/menu/create-menu.schema.js.map +0 -1
- package/dist/schemas/menu/create-menu.schema.mjs +0 -20
- package/dist/schemas/menu/create-menu.schema.mjs.map +0 -1
- package/dist/schemas/menu/index.d.mts +0 -4
- package/dist/schemas/menu/index.d.ts +0 -4
- package/dist/schemas/menu/index.js +0 -21
- package/dist/schemas/menu/index.js.map +0 -1
- package/dist/schemas/menu/index.mjs +0 -4
- package/dist/schemas/menu/index.mjs.map +0 -1
- package/dist/schemas/menu/menu-res.schema.js +0 -49
- package/dist/schemas/menu/menu-res.schema.js.map +0 -1
- package/dist/schemas/menu/menu-res.schema.mjs +0 -29
- package/dist/schemas/menu/menu-res.schema.mjs.map +0 -1
- package/dist/schemas/menu/update-menu.schema.js +0 -29
- package/dist/schemas/menu/update-menu.schema.js.map +0 -1
- package/dist/schemas/menu/update-menu.schema.mjs +0 -9
- package/dist/schemas/menu/update-menu.schema.mjs.map +0 -1
- package/dist/schemas/project/index.d.mts +0 -3
- package/dist/schemas/project/index.d.ts +0 -3
- package/dist/schemas/project/index.js +0 -19
- package/dist/schemas/project/index.js.map +0 -1
- package/dist/schemas/project/index.mjs +0 -2
- package/dist/schemas/project/index.mjs.map +0 -1
- package/dist/schemas/project/project-res.schema.d.mts +0 -154
- package/dist/schemas/project/project-res.schema.d.ts +0 -154
- package/dist/schemas/project/project-res.schema.js +0 -42
- package/dist/schemas/project/project-res.schema.js.map +0 -1
- package/dist/schemas/project/project-res.schema.mjs +0 -22
- package/dist/schemas/project/project-res.schema.mjs.map +0 -1
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.mts +0 -15
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.d.ts +0 -15
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js +0 -29
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.js.map +0 -1
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs +0 -9
- package/dist/schemas/project-trust-account-allocation/allocate-trust-account-to-project.schema.mjs.map +0 -1
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.mts +0 -12
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.d.ts +0 -12
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js +0 -28
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.js.map +0 -1
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs +0 -8
- package/dist/schemas/project-trust-account-allocation/approve-trust-account-allocation.schema.mjs.map +0 -1
- package/dist/schemas/project-trust-account-allocation/index.d.mts +0 -4
- package/dist/schemas/project-trust-account-allocation/index.d.ts +0 -4
- package/dist/schemas/project-trust-account-allocation/index.js +0 -21
- package/dist/schemas/project-trust-account-allocation/index.js.map +0 -1
- package/dist/schemas/project-trust-account-allocation/index.mjs +0 -4
- package/dist/schemas/project-trust-account-allocation/index.mjs.map +0 -1
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.mts +0 -46
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.d.ts +0 -46
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js +0 -39
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.js.map +0 -1
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs +0 -19
- package/dist/schemas/project-trust-account-allocation/project-trust-account-allocation-res.schema.mjs.map +0 -1
- package/dist/schemas/trust-account/create-trust-account.schema.d.mts +0 -28
- package/dist/schemas/trust-account/create-trust-account.schema.d.ts +0 -28
- package/dist/schemas/trust-account/create-trust-account.schema.js +0 -36
- package/dist/schemas/trust-account/create-trust-account.schema.js.map +0 -1
- package/dist/schemas/trust-account/create-trust-account.schema.mjs +0 -16
- package/dist/schemas/trust-account/create-trust-account.schema.mjs.map +0 -1
- package/dist/schemas/trust-account/index.d.mts +0 -5
- package/dist/schemas/trust-account/index.d.ts +0 -5
- package/dist/schemas/trust-account/index.js +0 -21
- package/dist/schemas/trust-account/index.js.map +0 -1
- package/dist/schemas/trust-account/index.mjs +0 -4
- package/dist/schemas/trust-account/index.mjs.map +0 -1
- package/dist/schemas/trust-account/trust-account-res.schema.d.mts +0 -31
- package/dist/schemas/trust-account/trust-account-res.schema.d.ts +0 -31
- package/dist/schemas/trust-account/trust-account-res.schema.js +0 -46
- package/dist/schemas/trust-account/trust-account-res.schema.js.map +0 -1
- package/dist/schemas/trust-account/trust-account-res.schema.mjs +0 -26
- package/dist/schemas/trust-account/trust-account-res.schema.mjs.map +0 -1
- package/dist/schemas/trust-account/update-trust-account.schema.d.mts +0 -15
- package/dist/schemas/trust-account/update-trust-account.schema.d.ts +0 -15
- package/dist/schemas/trust-account/update-trust-account.schema.js +0 -29
- package/dist/schemas/trust-account/update-trust-account.schema.js.map +0 -1
- package/dist/schemas/trust-account/update-trust-account.schema.mjs +0 -9
- package/dist/schemas/trust-account/update-trust-account.schema.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -19
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -2
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/mask.d.mts +0 -7
- package/dist/utils/mask.d.ts +0 -7
- package/dist/utils/mask.js +0 -41
- package/dist/utils/mask.js.map +0 -1
- package/dist/utils/mask.mjs +0 -21
- package/dist/utils/mask.mjs.map +0 -1
|
@@ -0,0 +1,3214 @@
|
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_zod__ from "zod";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__ from "@mikemo-coposit/am-zshared";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_dayjs__ from "dayjs";
|
|
4
|
+
var __webpack_require__ = {};
|
|
5
|
+
(()=>{
|
|
6
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
7
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: definition[key]
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
(()=>{
|
|
14
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = (exports)=>{
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var common_utils_namespaceObject = {};
|
|
27
|
+
__webpack_require__.r(common_utils_namespaceObject);
|
|
28
|
+
__webpack_require__.d(common_utils_namespaceObject, {
|
|
29
|
+
hasBrowserEnv: ()=>hasBrowserEnv,
|
|
30
|
+
hasStandardBrowserEnv: ()=>hasStandardBrowserEnv,
|
|
31
|
+
hasStandardBrowserWebWorkerEnv: ()=>hasStandardBrowserWebWorkerEnv,
|
|
32
|
+
navigator: ()=>_navigator,
|
|
33
|
+
origin: ()=>utils_origin
|
|
34
|
+
});
|
|
35
|
+
const CMAStatus = {
|
|
36
|
+
ACTIVE: 'active',
|
|
37
|
+
INACTIVE: 'inactive'
|
|
38
|
+
};
|
|
39
|
+
var common_status_constant_AccountingCommonStatus = /*#__PURE__*/ function(AccountingCommonStatus) {
|
|
40
|
+
AccountingCommonStatus["ACTIVE"] = "active";
|
|
41
|
+
AccountingCommonStatus["INACTIVE"] = "inactive";
|
|
42
|
+
return AccountingCommonStatus;
|
|
43
|
+
}({});
|
|
44
|
+
const AccountingCommonSyncStatus = {
|
|
45
|
+
PENDING: 'pending',
|
|
46
|
+
SYNCED: 'synced',
|
|
47
|
+
FAILED: 'failed'
|
|
48
|
+
};
|
|
49
|
+
var reconcile_transaction_action_constant_ReconcileTransactionAction = /*#__PURE__*/ function(ReconcileTransactionAction) {
|
|
50
|
+
ReconcileTransactionAction["RECONCILE"] = "reconcile";
|
|
51
|
+
ReconcileTransactionAction["UNRECONCILE"] = "unreconcile";
|
|
52
|
+
return ReconcileTransactionAction;
|
|
53
|
+
}({});
|
|
54
|
+
const MenuStatus = {
|
|
55
|
+
ACTIVE: 'active',
|
|
56
|
+
DISABLED: 'disabled'
|
|
57
|
+
};
|
|
58
|
+
const MenuType = {
|
|
59
|
+
DIRECTORY: 'directory',
|
|
60
|
+
MENU: 'menu',
|
|
61
|
+
PERMISSION: 'permission'
|
|
62
|
+
};
|
|
63
|
+
var mta_MtaStatus = /*#__PURE__*/ function(MtaStatus) {
|
|
64
|
+
MtaStatus["ACTIVE"] = "active";
|
|
65
|
+
MtaStatus["INACTIVE"] = "inactive";
|
|
66
|
+
return MtaStatus;
|
|
67
|
+
}({});
|
|
68
|
+
var mta_account_period_constant_MtaAccountPeriodStatus = /*#__PURE__*/ function(MtaAccountPeriodStatus) {
|
|
69
|
+
MtaAccountPeriodStatus["OPEN"] = "open";
|
|
70
|
+
MtaAccountPeriodStatus["CLOSED"] = "closed";
|
|
71
|
+
return MtaAccountPeriodStatus;
|
|
72
|
+
}({});
|
|
73
|
+
var mta_reconciliation_constant_MtaReconciliationStatus = /*#__PURE__*/ function(MtaReconciliationStatus) {
|
|
74
|
+
MtaReconciliationStatus["FINAL_IN_ACCOUNT_PERIOD"] = "final-in-account-period";
|
|
75
|
+
MtaReconciliationStatus["COMPLETED"] = "completed";
|
|
76
|
+
return MtaReconciliationStatus;
|
|
77
|
+
}({});
|
|
78
|
+
var mta_input_type_constant_MtaTransactionInputType = /*#__PURE__*/ function(MtaTransactionInputType) {
|
|
79
|
+
MtaTransactionInputType["UNKNOWN"] = "unknown";
|
|
80
|
+
MtaTransactionInputType["CUSTOMER"] = "customer";
|
|
81
|
+
MtaTransactionInputType["SYSTEM"] = "system";
|
|
82
|
+
return MtaTransactionInputType;
|
|
83
|
+
}({});
|
|
84
|
+
var mta_payment_method_constant_MtaTransactionPaymentMethod = /*#__PURE__*/ function(MtaTransactionPaymentMethod) {
|
|
85
|
+
MtaTransactionPaymentMethod["EFT"] = "EFT";
|
|
86
|
+
return MtaTransactionPaymentMethod;
|
|
87
|
+
}({});
|
|
88
|
+
const MtaReceiptTransactionType = {
|
|
89
|
+
UNKNOWN: 'unknown',
|
|
90
|
+
HOLDING_DEPOSIT: 'holding_deposit',
|
|
91
|
+
SIGNING_DEPOSIT: 'signing_deposit',
|
|
92
|
+
WEEKLY_PAYMENT: 'weekly_payment',
|
|
93
|
+
INTEREST: 'interest'
|
|
94
|
+
};
|
|
95
|
+
const ASSIGN_UNKNOWN_TO_CUSTOMER = 'assign_unknown_to_customer';
|
|
96
|
+
const TRANSACTION_CANCEL = 'transaction_cancel';
|
|
97
|
+
const MtaPayoutTransactionType = {
|
|
98
|
+
TRUST_TO_CMA_PAYOUT: 'trust_to_cma_payout',
|
|
99
|
+
TRUST_SETTLEMENT_PAYOUT: 'trust_settlement_payout',
|
|
100
|
+
CMA_SETTLEMENT_PAYOUT: 'cma_settlement_payout',
|
|
101
|
+
TRUST_REFUND_PAYOUT: 'trust_refund_payout',
|
|
102
|
+
UNKNOWN_PAYOUT: 'unknown_payout'
|
|
103
|
+
};
|
|
104
|
+
const MtaTransactionType = {
|
|
105
|
+
...MtaReceiptTransactionType,
|
|
106
|
+
...MtaPayoutTransactionType,
|
|
107
|
+
ASSIGN_UNKNOWN_TO_CUSTOMER,
|
|
108
|
+
TRANSACTION_CANCEL
|
|
109
|
+
};
|
|
110
|
+
const MtaTransactionTypeToDisplayTextMapper = {
|
|
111
|
+
[MtaTransactionType.UNKNOWN]: 'Unknown',
|
|
112
|
+
[MtaTransactionType.HOLDING_DEPOSIT]: 'Holding Deposit',
|
|
113
|
+
[MtaTransactionType.SIGNING_DEPOSIT]: 'Signing Deposit',
|
|
114
|
+
[MtaTransactionType.WEEKLY_PAYMENT]: 'Weekly Payment',
|
|
115
|
+
[MtaTransactionType.INTEREST]: 'Interest',
|
|
116
|
+
[MtaTransactionType.TRUST_TO_CMA_PAYOUT]: 'Trust to CMA Payout',
|
|
117
|
+
[MtaTransactionType.TRUST_SETTLEMENT_PAYOUT]: 'Trust Settlement Payout',
|
|
118
|
+
[MtaTransactionType.CMA_SETTLEMENT_PAYOUT]: 'CMA Settlement Payout',
|
|
119
|
+
[MtaTransactionType.TRUST_REFUND_PAYOUT]: 'Trust Refund Payout',
|
|
120
|
+
[MtaTransactionType.UNKNOWN_PAYOUT]: 'Unknown Payout',
|
|
121
|
+
[MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER]: 'Assign Unknown',
|
|
122
|
+
[MtaTransactionType.TRANSACTION_CANCEL]: 'Cancel Transaction'
|
|
123
|
+
};
|
|
124
|
+
const ProjectMtaAllocationStatus = {
|
|
125
|
+
PENDING_APPROVAL: 'pending_approval',
|
|
126
|
+
APPROVED: 'approved',
|
|
127
|
+
REJECTED: 'rejected'
|
|
128
|
+
};
|
|
129
|
+
const ProjectApplyStatusRestRes = {
|
|
130
|
+
MISS_MATCH: 'miss_match',
|
|
131
|
+
PENDING_TRUST_ACCOUNT: 'pending_trust_account',
|
|
132
|
+
...ProjectMtaAllocationStatus
|
|
133
|
+
};
|
|
134
|
+
const PropertyRestResStatus = {
|
|
135
|
+
ACTIVE: 'active'
|
|
136
|
+
};
|
|
137
|
+
const PropertyStage = {
|
|
138
|
+
INITIAL_DEPOSIT: "initial_deposit",
|
|
139
|
+
STANDARD_SALE: "standard_sale",
|
|
140
|
+
COPOSIT_SALE: "coposit_sale"
|
|
141
|
+
};
|
|
142
|
+
const cmaListRestResSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
143
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
144
|
+
cmaSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
145
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
146
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nonnegative().transform((arg)=>Number(arg) / 100),
|
|
147
|
+
currentReceiveSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
148
|
+
currentPayoutSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
149
|
+
payoutId: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
150
|
+
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
151
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
152
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
153
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
154
|
+
accountName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
155
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(CMAStatus),
|
|
156
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
157
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
158
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
159
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
160
|
+
developerCompanyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
161
|
+
buyerName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
162
|
+
}).strip();
|
|
163
|
+
const cmaEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
164
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
165
|
+
cmaSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().gte(0),
|
|
166
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
167
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
168
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
169
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
170
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
171
|
+
currentReceiveSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().gte(0),
|
|
172
|
+
currentPayoutSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().gte(0),
|
|
173
|
+
payoutId: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().gte(0),
|
|
174
|
+
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
175
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
176
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
177
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
178
|
+
accountName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
179
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(CMAStatus),
|
|
180
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
181
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
182
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
183
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
184
|
+
developerCompanyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
185
|
+
buyerName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable()
|
|
186
|
+
}).strip();
|
|
187
|
+
const createCMARestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
188
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
189
|
+
accountName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
190
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
191
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
192
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
193
|
+
});
|
|
194
|
+
const cmaTransactionEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
195
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
196
|
+
cmaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
197
|
+
sequence: __WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
198
|
+
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
199
|
+
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
200
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
201
|
+
createType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
202
|
+
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
203
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
204
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
205
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().max(50),
|
|
206
|
+
isCanceled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().default(false),
|
|
207
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().default(false),
|
|
208
|
+
clearedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date().nullable().optional(),
|
|
209
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date().default(new Date()),
|
|
210
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date().nullable().optional().default(new Date()),
|
|
211
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
212
|
+
cancelSourceId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
213
|
+
cancelType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
214
|
+
canceledBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
215
|
+
canceledAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date().nullable().optional(),
|
|
216
|
+
canceledReason: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
217
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
218
|
+
});
|
|
219
|
+
const developerEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
220
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
221
|
+
companyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
222
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
223
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
224
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
225
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
226
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
227
|
+
});
|
|
228
|
+
const createMenuRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
229
|
+
parentId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
230
|
+
label: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
231
|
+
title: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
232
|
+
section: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
233
|
+
icon: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
234
|
+
show: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().optional().default(true),
|
|
235
|
+
path: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
236
|
+
type: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MenuType),
|
|
237
|
+
permissionKey: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().min(1, 'Permission key is required'),
|
|
238
|
+
sort: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().optional().default(99),
|
|
239
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MenuStatus).default(MenuStatus.ACTIVE)
|
|
240
|
+
});
|
|
241
|
+
const menuSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
242
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
243
|
+
parentId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
244
|
+
label: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
245
|
+
title: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
246
|
+
section: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
247
|
+
icon: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
248
|
+
path: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
249
|
+
absolutePath: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
250
|
+
type: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MenuType),
|
|
251
|
+
permissionKey: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullish(),
|
|
252
|
+
sort: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().nullish(),
|
|
253
|
+
show: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().nullish(),
|
|
254
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MenuStatus),
|
|
255
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
256
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
257
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean()
|
|
258
|
+
});
|
|
259
|
+
const menuRestResSchema = menuSchema.extend({
|
|
260
|
+
children: __WEBPACK_EXTERNAL_MODULE_zod__.z.array(menuSchema).optional()
|
|
261
|
+
});
|
|
262
|
+
const updateMenuRestReqSchema = createMenuRestReqSchema.extend({
|
|
263
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
264
|
+
});
|
|
265
|
+
const createMtaRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
266
|
+
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().trim().min(1),
|
|
267
|
+
country: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().refine((val)=>'Australia' === val, {
|
|
268
|
+
message: 'Country must be Australia'
|
|
269
|
+
}),
|
|
270
|
+
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
271
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuTrustAccountBankCode),
|
|
272
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().length(6).regex(/^\d+$/, {
|
|
273
|
+
message: 'BSB must be all digits'
|
|
274
|
+
}),
|
|
275
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().min(6).max(10).regex(/^\d+$/, {
|
|
276
|
+
message: 'Account number must be all digits'
|
|
277
|
+
}),
|
|
278
|
+
directDebitBankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
279
|
+
directDebitProviderCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.PaymentProviderCode),
|
|
280
|
+
payIdBankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
281
|
+
payIdProviderCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.PaymentProviderCode),
|
|
282
|
+
zeptoBankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid()
|
|
283
|
+
});
|
|
284
|
+
const mtaEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
285
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
286
|
+
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
287
|
+
country: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
288
|
+
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
289
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
290
|
+
subsidiaryId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
291
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
292
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
293
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
294
|
+
currentReceiveSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
295
|
+
currentPayoutSeq: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
296
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
297
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
298
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
299
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
300
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
301
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
302
|
+
updatedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
303
|
+
});
|
|
304
|
+
const maskString = (input, options = {})=>{
|
|
305
|
+
if (!input) return '';
|
|
306
|
+
const { visibleStart = 0, visibleEnd = 2, maskChar = '*' } = options;
|
|
307
|
+
const length = input.length;
|
|
308
|
+
if (length <= 2) return input;
|
|
309
|
+
const maxVisible = length - 2;
|
|
310
|
+
const actualVisibleStart = Math.min(visibleStart, maxVisible - visibleEnd);
|
|
311
|
+
const actualVisibleEnd = Math.min(visibleEnd, maxVisible - actualVisibleStart);
|
|
312
|
+
const start = input.slice(0, actualVisibleStart);
|
|
313
|
+
const end = input.slice(-actualVisibleEnd);
|
|
314
|
+
const masked = maskChar.repeat(length - actualVisibleStart - actualVisibleEnd);
|
|
315
|
+
return start + masked + end;
|
|
316
|
+
};
|
|
317
|
+
const mtaAccountPeriodEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
318
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
319
|
+
startDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
320
|
+
endDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
321
|
+
openingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
322
|
+
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
323
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
324
|
+
closedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
325
|
+
closedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
326
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
327
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
328
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
329
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
330
|
+
closingDescription: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
331
|
+
});
|
|
332
|
+
const paymentProviderEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
333
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
334
|
+
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
335
|
+
providerCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
336
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
337
|
+
settings: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
338
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
339
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
340
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
341
|
+
});
|
|
342
|
+
const mtaPaymentMethodAccountConfigSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
343
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
344
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
345
|
+
credential: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
346
|
+
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
347
|
+
})
|
|
348
|
+
});
|
|
349
|
+
const mtaPaymentMethodFloatAccountConfigSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
350
|
+
domainName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().email(),
|
|
351
|
+
credential: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
352
|
+
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
353
|
+
})
|
|
354
|
+
});
|
|
355
|
+
const mtaPaymentMethodEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
356
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
357
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
358
|
+
paymentProviderId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
359
|
+
bankAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
360
|
+
account: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
361
|
+
floatAccount: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
362
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
363
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
364
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
365
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
366
|
+
});
|
|
367
|
+
const mtaPaymentMethodRestResSchema = mtaPaymentMethodEntitySchema.extend({
|
|
368
|
+
paymentProvider: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>paymentProviderEntitySchema).optional(),
|
|
369
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaEntitySchema).optional(),
|
|
370
|
+
account: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>{
|
|
371
|
+
if ('string' == typeof val) return JSON.parse(val);
|
|
372
|
+
return val;
|
|
373
|
+
}).pipe(mtaPaymentMethodAccountConfigSchema),
|
|
374
|
+
floatAccount: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().transform((val)=>{
|
|
375
|
+
if ('string' == typeof val) return JSON.parse(val);
|
|
376
|
+
return val;
|
|
377
|
+
}).pipe(mtaPaymentMethodFloatAccountConfigSchema).nullish()
|
|
378
|
+
}).strip();
|
|
379
|
+
const mtaReconciliationEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
380
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
381
|
+
mtaAccountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
382
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
383
|
+
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
384
|
+
reconciledTo: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
385
|
+
reconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
386
|
+
unreconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
387
|
+
totalReconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
388
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
389
|
+
closingVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint().nullable(),
|
|
390
|
+
closedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
391
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
392
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
393
|
+
updatedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
394
|
+
closedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
395
|
+
editable: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
396
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
397
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean()
|
|
398
|
+
});
|
|
399
|
+
const mtaReconciliationRestResSchema = mtaReconciliationEntitySchema.extend({
|
|
400
|
+
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
401
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
402
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
403
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
404
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
405
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
406
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
407
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
408
|
+
closingVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
409
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
410
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
411
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
412
|
+
currentTrustBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
413
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
414
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
415
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
416
|
+
currentReconciledBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
417
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
418
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
419
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
420
|
+
currentVarianceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
421
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
422
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
423
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish()
|
|
424
|
+
});
|
|
425
|
+
const mtaRestResSchema = mtaEntitySchema.extend({
|
|
426
|
+
stateCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
427
|
+
bankCode: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuTrustAccountBankCode),
|
|
428
|
+
accountNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
429
|
+
visibleStart: 0,
|
|
430
|
+
visibleEnd: 2
|
|
431
|
+
})),
|
|
432
|
+
bsb: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((arg)=>maskString(arg, {
|
|
433
|
+
visibleStart: 0,
|
|
434
|
+
visibleEnd: 3
|
|
435
|
+
})?.replace(/^(\*+)(\d{3})$/, '$1-$2')),
|
|
436
|
+
subsidiaryId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
437
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
438
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
439
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
440
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
441
|
+
paymentMethods: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>__WEBPACK_EXTERNAL_MODULE_zod__.z.array(mtaPaymentMethodRestResSchema)).optional(),
|
|
442
|
+
accountPeriods: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaAccountPeriodEntitySchema.array().optional())
|
|
443
|
+
});
|
|
444
|
+
const mtaListItemRestResSchema = mtaRestResSchema.omit({
|
|
445
|
+
paymentMethods: true,
|
|
446
|
+
accountPeriods: true
|
|
447
|
+
}).extend({
|
|
448
|
+
currentReconciliation: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
449
|
+
});
|
|
450
|
+
const updateMtaRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
451
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
452
|
+
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().trim().min(1)
|
|
453
|
+
}).strip();
|
|
454
|
+
const mtaAccountPeriodCloseRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
455
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
456
|
+
mtaAccountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
457
|
+
endDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
458
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
459
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.date()
|
|
460
|
+
]).transform((date)=>(0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(date).endOf('day').toDate()).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.date()),
|
|
461
|
+
closingDescription: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional()
|
|
462
|
+
});
|
|
463
|
+
const fromCentsToDollars = (amount)=>Number(amount) / 100;
|
|
464
|
+
const fromDollarsToCents = (amount)=>100n * BigInt(amount);
|
|
465
|
+
const formatCurrency = (amount, options)=>{
|
|
466
|
+
const { locale = 'en-AU', defaultValue = null, currency = 'AUD', style = 'currency', ...rest } = options || {};
|
|
467
|
+
const num = Number(amount);
|
|
468
|
+
if (null == amount || Number.isNaN(num)) return defaultValue;
|
|
469
|
+
return num.toLocaleString(locale, {
|
|
470
|
+
style,
|
|
471
|
+
currency,
|
|
472
|
+
...rest
|
|
473
|
+
});
|
|
474
|
+
};
|
|
475
|
+
const isUnknownTransaction = (transaction)=>transaction.transactionType === MtaTransactionType.UNKNOWN;
|
|
476
|
+
const isReceiptTransaction = (transaction)=>Object.values(MtaReceiptTransactionType).includes(transaction.transactionType);
|
|
477
|
+
const isPaymentTransaction = (transaction)=>Object.values(MtaPayoutTransactionType).includes(transaction.transactionType);
|
|
478
|
+
const getTransactionAmountStr = (transaction)=>{
|
|
479
|
+
if (!transaction) return;
|
|
480
|
+
const debitAmountCents = Number(transaction.debitAmountCents);
|
|
481
|
+
const creditAmountCents = Number(transaction.creditAmountCents);
|
|
482
|
+
const amount = debitAmountCents > 0 ? 0 - debitAmountCents : creditAmountCents;
|
|
483
|
+
if (0 === amount) return;
|
|
484
|
+
return formatCurrency(amount);
|
|
485
|
+
};
|
|
486
|
+
const isUnknownReceiptAssignedToProperty = (transaction)=>{
|
|
487
|
+
if (transaction.transactionType !== MtaTransactionType.UNKNOWN) return null;
|
|
488
|
+
const index = (transaction.subsequentTransactions || []).findIndex((item)=>item.inputType === mta_input_type_constant_MtaTransactionInputType.CUSTOMER);
|
|
489
|
+
if (index > -1) return true;
|
|
490
|
+
return false;
|
|
491
|
+
};
|
|
492
|
+
const isTransactionCancelable = (transaction)=>{
|
|
493
|
+
const isUnkonwn = isUnknownTransaction(transaction);
|
|
494
|
+
if (true !== isUnkonwn) return {
|
|
495
|
+
isCancelable: false,
|
|
496
|
+
reason: 'Transaction is not unknown'
|
|
497
|
+
};
|
|
498
|
+
if (transaction.isCanceled) return {
|
|
499
|
+
isCancelable: false,
|
|
500
|
+
reason: 'Transaction is already canceled'
|
|
501
|
+
};
|
|
502
|
+
if (transaction.isRefunded) return {
|
|
503
|
+
isCancelable: false,
|
|
504
|
+
reason: 'Transaction is already refunded'
|
|
505
|
+
};
|
|
506
|
+
if (isUnkonwn && transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
507
|
+
isCancelable: false,
|
|
508
|
+
reason: 'Cannot cancel cancel transaction'
|
|
509
|
+
};
|
|
510
|
+
if (isUnkonwn && transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
511
|
+
isCancelable: false,
|
|
512
|
+
reason: 'Cannot cancel assign unknown transaction'
|
|
513
|
+
};
|
|
514
|
+
return {
|
|
515
|
+
isCancelable: true
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
const isTransactionAssignable = (transaction)=>{
|
|
519
|
+
const isUnkonwn = isUnknownTransaction(transaction);
|
|
520
|
+
if (true !== isUnkonwn) return {
|
|
521
|
+
isAssignable: false,
|
|
522
|
+
reason: 'Only unknown transaction can be assigned to property'
|
|
523
|
+
};
|
|
524
|
+
if (transaction.isCanceled) return {
|
|
525
|
+
isAssignable: false,
|
|
526
|
+
reason: 'Transaction is canceled'
|
|
527
|
+
};
|
|
528
|
+
if (transaction.isRefunded) return {
|
|
529
|
+
isAssignable: false,
|
|
530
|
+
reason: 'Transaction is refunded'
|
|
531
|
+
};
|
|
532
|
+
if (isUnkonwn && transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
533
|
+
isAssignable: false,
|
|
534
|
+
reason: 'Cannot assign to property cancel transaction'
|
|
535
|
+
};
|
|
536
|
+
if (isUnkonwn && transaction.transactionType === MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER) return {
|
|
537
|
+
isAssignable: false,
|
|
538
|
+
reason: 'Transaction is already assigned to property'
|
|
539
|
+
};
|
|
540
|
+
return {
|
|
541
|
+
isAssignable: true
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
const getTransactionNumber = (transaction)=>{
|
|
545
|
+
if (transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return `(${transaction.sequence})`;
|
|
546
|
+
return `${transaction.sequence}`;
|
|
547
|
+
};
|
|
548
|
+
const getTransactionStatus = (transaction)=>{
|
|
549
|
+
const isReceipt = isReceiptTransaction(transaction);
|
|
550
|
+
const isPayment = isPaymentTransaction(transaction);
|
|
551
|
+
const isUnknown = isUnknownTransaction(transaction);
|
|
552
|
+
const isAssignableToProperty = isTransactionAssignable(transaction);
|
|
553
|
+
const isAssignedToProperty = isUnknownReceiptAssignedToProperty(transaction);
|
|
554
|
+
const amountStr = getTransactionAmountStr(transaction);
|
|
555
|
+
const transactionNumber = getTransactionNumber(transaction);
|
|
556
|
+
const isCancelable = isTransactionCancelable(transaction);
|
|
557
|
+
const isReconciled = transaction.reconciledTransactions?.length ? transaction.reconciledTransactions.length > 0 : false;
|
|
558
|
+
return {
|
|
559
|
+
isReceipt,
|
|
560
|
+
isPayment,
|
|
561
|
+
isUnknown,
|
|
562
|
+
isAssignableToProperty: isAssignableToProperty.isAssignable,
|
|
563
|
+
isAssignedToProperty,
|
|
564
|
+
amountStr,
|
|
565
|
+
transactionNumber,
|
|
566
|
+
isCancelable: isCancelable.isCancelable,
|
|
567
|
+
isReconciled
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
const mtaAccountPeriodRestResBaseSchema = mtaAccountPeriodEntitySchema.extend({
|
|
571
|
+
openingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
572
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
573
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
574
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
575
|
+
closingBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
576
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
577
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
578
|
+
]).nullish().transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
579
|
+
});
|
|
580
|
+
const mtaAccountPeriodRestResSchema = mtaAccountPeriodRestResBaseSchema.extend({
|
|
581
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema).optional(),
|
|
582
|
+
reconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
583
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
584
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
585
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
586
|
+
totalReconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
587
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
588
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
589
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish(),
|
|
590
|
+
unreconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
591
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
592
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
593
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()).nullish()
|
|
594
|
+
});
|
|
595
|
+
const mtaClosedAccountPeriodRestResSchema = mtaAccountPeriodRestResSchema.omit({
|
|
596
|
+
mta: true
|
|
597
|
+
}).extend({
|
|
598
|
+
currentReconciliation: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaReconciliationRestResSchema).nullish()
|
|
599
|
+
});
|
|
600
|
+
const mtaReconciledTransactionEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
601
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
602
|
+
mtaTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
603
|
+
accountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
604
|
+
reconciledByReconciliationId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
605
|
+
reconciledAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
606
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
607
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
608
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
609
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
610
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
611
|
+
});
|
|
612
|
+
const mtaReconciledTransactionRestResBaseSchema = mtaReconciledTransactionEntitySchema.extend({});
|
|
613
|
+
const mtaReconciledTransactionRestResSchema = mtaReconciledTransactionRestResBaseSchema.extend({
|
|
614
|
+
mtaTransaction: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaTransactionRestResSchema).nullish(),
|
|
615
|
+
accountPeriod: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaAccountPeriodRestResSchema).nullish()
|
|
616
|
+
});
|
|
617
|
+
const userEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
618
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
619
|
+
email: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
620
|
+
firstName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
621
|
+
lastName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
622
|
+
mobile: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
623
|
+
avatar: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
624
|
+
password: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
625
|
+
passwordVersion: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
626
|
+
isTwoFaRequired: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
627
|
+
preferTwoFaMethod: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
628
|
+
twoFaAvailableMethods: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().array(),
|
|
629
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
630
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
631
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
632
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
633
|
+
});
|
|
634
|
+
const projectMtaAllocationEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
635
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
636
|
+
projectId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
637
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
638
|
+
applyStatus: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(ProjectMtaAllocationStatus),
|
|
639
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(common_status_constant_AccountingCommonStatus),
|
|
640
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
641
|
+
approvedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
642
|
+
approvedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
643
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
644
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
645
|
+
lastSyncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
646
|
+
syncStatus: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(AccountingCommonSyncStatus).optional().nullish(),
|
|
647
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean()
|
|
648
|
+
});
|
|
649
|
+
const projectMtaAllocationRestResSchema = projectMtaAllocationEntitySchema.extend({
|
|
650
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema.pick({
|
|
651
|
+
id: true,
|
|
652
|
+
name: true,
|
|
653
|
+
stateCode: true,
|
|
654
|
+
bankCode: true,
|
|
655
|
+
accountNumber: true,
|
|
656
|
+
bsb: true
|
|
657
|
+
})),
|
|
658
|
+
creator: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema.pick({
|
|
659
|
+
id: true,
|
|
660
|
+
firstName: true,
|
|
661
|
+
lastName: true
|
|
662
|
+
})),
|
|
663
|
+
approver: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>userEntitySchema.pick({
|
|
664
|
+
id: true,
|
|
665
|
+
firstName: true,
|
|
666
|
+
lastName: true
|
|
667
|
+
})).optional()
|
|
668
|
+
});
|
|
669
|
+
const projectEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
670
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
671
|
+
name: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
672
|
+
developerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
673
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
674
|
+
state: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.AuStateCode),
|
|
675
|
+
type: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
676
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
677
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
678
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
679
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
680
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
681
|
+
});
|
|
682
|
+
const projectRestResSchema = projectEntitySchema.extend({
|
|
683
|
+
developer: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>developerEntitySchema).optional().nullish(),
|
|
684
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema).optional().nullish(),
|
|
685
|
+
mtaAllocations: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>projectMtaAllocationRestResSchema.array()).optional().nullish(),
|
|
686
|
+
applyStatus: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(ProjectApplyStatusRestRes)
|
|
687
|
+
});
|
|
688
|
+
const propertyEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
689
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
690
|
+
customerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
691
|
+
projectId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
692
|
+
buyerName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
693
|
+
lotDetail: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
694
|
+
propertyAddress: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
695
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
696
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
697
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
698
|
+
]),
|
|
699
|
+
cmaBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
700
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
701
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
702
|
+
]),
|
|
703
|
+
mtaBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
704
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
705
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
706
|
+
]),
|
|
707
|
+
stage: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyStage),
|
|
708
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyRestResStatus),
|
|
709
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
710
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
711
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
712
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
713
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()
|
|
714
|
+
});
|
|
715
|
+
const propertyListRestResSchema = propertyEntitySchema.extend({
|
|
716
|
+
customerEmail: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
717
|
+
customerMobile: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
718
|
+
projectType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
719
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(PropertyRestResStatus),
|
|
720
|
+
stage: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(__WEBPACK_EXTERNAL_MODULE__mikemo_coposit_am_zshared_87ea352e__.PropertyStage),
|
|
721
|
+
projectName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
722
|
+
propertyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
723
|
+
propertyAddress: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
724
|
+
hasCMA: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
725
|
+
developerId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
726
|
+
developerCompanyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
727
|
+
cma: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>cmaEntitySchema).optional().nullish()
|
|
728
|
+
}).strip();
|
|
729
|
+
const propertyRestResSchema = propertyEntitySchema.extend({
|
|
730
|
+
project: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>projectRestResSchema.omit({
|
|
731
|
+
applyStatus: true,
|
|
732
|
+
mtaAllocations: true,
|
|
733
|
+
mta: true
|
|
734
|
+
})).nullish(),
|
|
735
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema).nullish(),
|
|
736
|
+
cma: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>cmaListRestResSchema).nullish()
|
|
737
|
+
});
|
|
738
|
+
const mtaTransactionEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
739
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
740
|
+
referenceId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
741
|
+
sequence: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
742
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
743
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
744
|
+
inputType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
745
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
746
|
+
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
747
|
+
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
748
|
+
balanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
749
|
+
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
750
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
751
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
752
|
+
isRefunded: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
753
|
+
isCanceled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
754
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
755
|
+
clearedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
756
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
757
|
+
syncedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
758
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
759
|
+
note: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
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().uuid().nullable()
|
|
766
|
+
});
|
|
767
|
+
const baseSchema = mtaTransactionEntitySchema.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(mta_input_type_constant_MtaTransactionInputType),
|
|
781
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MtaTransactionType),
|
|
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({
|
|
786
|
+
mta: true,
|
|
787
|
+
cma: true
|
|
788
|
+
})).optional().nullish()
|
|
789
|
+
});
|
|
790
|
+
const mtaTransactionRestResSchema = baseSchema.extend({
|
|
791
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaRestResSchema).nullish(),
|
|
792
|
+
sourceTransaction: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaTransactionRestResSchema).nullish(),
|
|
793
|
+
subsequentTransactions: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaTransactionRestResSchema.array()).nullish(),
|
|
794
|
+
reconciledTransactions: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaReconciledTransactionRestResSchema.array()).nullish(),
|
|
795
|
+
isUnknown: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().optional(),
|
|
796
|
+
isReceipt: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().optional(),
|
|
797
|
+
isPayment: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().optional(),
|
|
798
|
+
isReconciled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().optional(),
|
|
799
|
+
isAssignableToProperty: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().nullish(),
|
|
800
|
+
isAssignedToProperty: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().nullish(),
|
|
801
|
+
isCancelable: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean().nullish(),
|
|
802
|
+
amountStr: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
803
|
+
transactionNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional()
|
|
804
|
+
}).transform((obj)=>{
|
|
805
|
+
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber } = getTransactionStatus(obj);
|
|
806
|
+
return {
|
|
807
|
+
...obj,
|
|
808
|
+
isUnknown,
|
|
809
|
+
isReceipt,
|
|
810
|
+
isPayment,
|
|
811
|
+
isAssignableToProperty,
|
|
812
|
+
isAssignedToProperty,
|
|
813
|
+
amountStr,
|
|
814
|
+
transactionNumber
|
|
815
|
+
};
|
|
816
|
+
});
|
|
817
|
+
const mtaAccountPeriodClosingSummaryRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
818
|
+
mtaAccountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
819
|
+
endDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
820
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
821
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.date()
|
|
822
|
+
]).transform((arg)=>(0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(arg).endOf('day').toDate()).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.date())
|
|
823
|
+
});
|
|
824
|
+
const mtaAccountPeriodClosingSummaryRestResSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
825
|
+
startDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
826
|
+
endDate: __WEBPACK_EXTERNAL_MODULE_zod__.z.date(),
|
|
827
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
828
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
829
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
830
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
831
|
+
currentTrustBalanceSummary: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
832
|
+
totalAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
833
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
834
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
835
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
836
|
+
totalCreditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
837
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
838
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
839
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
840
|
+
totalDebitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
841
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
842
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
843
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
844
|
+
totalTransactionsCount: __WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
845
|
+
}),
|
|
846
|
+
reconciliations: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaReconciliationRestResSchema.array()).nullish(),
|
|
847
|
+
totalReconciledAmountSummary: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
848
|
+
totalReconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
849
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
850
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
851
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
852
|
+
totalReconciledCreditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
853
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
854
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
855
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
856
|
+
totalReconciledDebitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
857
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
858
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
859
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
860
|
+
totalReconciledTransactionsCount: __WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
861
|
+
}),
|
|
862
|
+
totalUnreconciledAmountSummary: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
863
|
+
totalUnreconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
864
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
865
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
866
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
867
|
+
totalUnreconciledCreditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
868
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
869
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
870
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
871
|
+
totalUnreconciledDebitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
872
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
873
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
874
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
875
|
+
totalUnreconciledTransactionsCount: __WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
876
|
+
}),
|
|
877
|
+
transactionsSummary: __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
878
|
+
reconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
879
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
880
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
881
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
882
|
+
reconciledTransactions: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaTransactionRestResSchema.array()).nullish(),
|
|
883
|
+
unreconciledAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
884
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
885
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
886
|
+
]).transform(fromCentsToDollars).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
887
|
+
unreconciledTransactions: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaTransactionRestResSchema.array()).nullish()
|
|
888
|
+
})
|
|
889
|
+
});
|
|
890
|
+
const updateMtaAccountPeriodReconciledToRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
891
|
+
mtaAccountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
892
|
+
reconciledTo: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
893
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
894
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.date()
|
|
895
|
+
]).transform((arg)=>(0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(arg).endOf('day').toDate()),
|
|
896
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().transform((arg)=>100n * BigInt(arg)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()),
|
|
897
|
+
lastUpdatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
898
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string().datetime(),
|
|
899
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.date()
|
|
900
|
+
]).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date())
|
|
901
|
+
});
|
|
902
|
+
const createMtaReconciliationRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
903
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
904
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
905
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
906
|
+
]).transform((arg)=>100n * BigInt(arg)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()),
|
|
907
|
+
reconciledTo: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
908
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
909
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.date()
|
|
910
|
+
]).transform((arg)=>(0, __WEBPACK_EXTERNAL_MODULE_dayjs__["default"])(arg).endOf('day').toDate()).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date()),
|
|
911
|
+
mtaAccountPeriodId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid()
|
|
912
|
+
});
|
|
913
|
+
const updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
914
|
+
mtaReconciliationId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
915
|
+
bankStatementBalanceCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
916
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
917
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()
|
|
918
|
+
]).transform((arg)=>'bigint' == typeof arg ? arg : 100n * BigInt(arg)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint())
|
|
919
|
+
});
|
|
920
|
+
const assignUnknownReceiptToPropertyRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
921
|
+
mtaTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
922
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
923
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z["enum"]([
|
|
924
|
+
MtaReceiptTransactionType.HOLDING_DEPOSIT,
|
|
925
|
+
MtaReceiptTransactionType.SIGNING_DEPOSIT,
|
|
926
|
+
MtaReceiptTransactionType.WEEKLY_PAYMENT
|
|
927
|
+
]),
|
|
928
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>val.trim())
|
|
929
|
+
});
|
|
930
|
+
const cancelMtaTransactionRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
931
|
+
transactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
932
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>val.trim()).nullish(),
|
|
933
|
+
reason: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>val.trim()).nullish()
|
|
934
|
+
});
|
|
935
|
+
const createMtaTransactionRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
936
|
+
amount: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().positive().transform((val)=>100n * BigInt(val)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()),
|
|
937
|
+
clearedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().transform((val)=>val.toISOString().split('T')[0]),
|
|
938
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>val.trim()),
|
|
939
|
+
inputType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(mta_input_type_constant_MtaTransactionInputType),
|
|
940
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(MtaTransactionType),
|
|
941
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid().optional(),
|
|
942
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
943
|
+
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().transform((val)=>val.trim()),
|
|
944
|
+
paymentMethod: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
945
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(mta_payment_method_constant_MtaTransactionPaymentMethod),
|
|
946
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string().length(0)
|
|
947
|
+
]).transform((val)=>'' === val ? mta_payment_method_constant_MtaTransactionPaymentMethod.EFT : val).default(mta_payment_method_constant_MtaTransactionPaymentMethod.EFT)
|
|
948
|
+
}).superRefine((data, ctx)=>{
|
|
949
|
+
if (data.inputType !== mta_input_type_constant_MtaTransactionInputType.UNKNOWN && !data.transactionType) ctx.addIssue({
|
|
950
|
+
code: __WEBPACK_EXTERNAL_MODULE_zod__.z.ZodIssueCode.custom,
|
|
951
|
+
message: 'transactionType is required unless is "unknown" receipt',
|
|
952
|
+
path: [
|
|
953
|
+
'transactionType'
|
|
954
|
+
]
|
|
955
|
+
});
|
|
956
|
+
if (data.inputType === mta_input_type_constant_MtaTransactionInputType.CUSTOMER && !data.propertyId) ctx.addIssue({
|
|
957
|
+
code: __WEBPACK_EXTERNAL_MODULE_zod__.z.ZodIssueCode.custom,
|
|
958
|
+
message: 'property is required unless is "unknown" receipt',
|
|
959
|
+
path: [
|
|
960
|
+
'inputType'
|
|
961
|
+
]
|
|
962
|
+
});
|
|
963
|
+
});
|
|
964
|
+
const reconcileMtaTransactionRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
965
|
+
mtaTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
966
|
+
reconciliationId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
967
|
+
action: __WEBPACK_EXTERNAL_MODULE_zod__.z.nativeEnum(reconcile_transaction_action_constant_ReconcileTransactionAction)
|
|
968
|
+
});
|
|
969
|
+
const payoutSourceDetailsSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
970
|
+
sourceAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
971
|
+
transactionType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
972
|
+
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
973
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
974
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
975
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string().regex(/^\d+$/).transform((val)=>BigInt(val))
|
|
976
|
+
]),
|
|
977
|
+
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
978
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
979
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
980
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.string().regex(/^\d+$/).transform((val)=>BigInt(val))
|
|
981
|
+
]),
|
|
982
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional()
|
|
983
|
+
}).catchall(__WEBPACK_EXTERNAL_MODULE_zod__.z.unknown());
|
|
984
|
+
const payoutTargetDetailsSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
985
|
+
toAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
986
|
+
toAccountType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
987
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional(),
|
|
988
|
+
creditAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
989
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
990
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
991
|
+
]),
|
|
992
|
+
debitAmountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
993
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
994
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
995
|
+
]),
|
|
996
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional(),
|
|
997
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable().optional()
|
|
998
|
+
}).catchall(__WEBPACK_EXTERNAL_MODULE_zod__.z.unknown());
|
|
999
|
+
const provisionDetailsSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1000
|
+
sourceDetails: payoutSourceDetailsSchema,
|
|
1001
|
+
targetDetails: __WEBPACK_EXTERNAL_MODULE_zod__.z.array(payoutTargetDetailsSchema)
|
|
1002
|
+
});
|
|
1003
|
+
const payoutEntitySchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1004
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1005
|
+
sequence: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int(),
|
|
1006
|
+
payoutType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1007
|
+
sourceAccountType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1008
|
+
sourceAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1009
|
+
amountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1010
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1011
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1012
|
+
]),
|
|
1013
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1014
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1015
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1016
|
+
createdBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1017
|
+
updatedBy: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1018
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1019
|
+
provisionDetails: provisionDetailsSchema
|
|
1020
|
+
}).strip();
|
|
1021
|
+
const payoutTransactionSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1022
|
+
id: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1023
|
+
payoutId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1024
|
+
mainTrustTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1025
|
+
cmaTransactionId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1026
|
+
isCanceled: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1027
|
+
canceledAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date().nullable(),
|
|
1028
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1029
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1030
|
+
updatedAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.coerce.date(),
|
|
1031
|
+
isArchived: __WEBPACK_EXTERNAL_MODULE_zod__.z.boolean(),
|
|
1032
|
+
targetAccountDetails: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1033
|
+
bankRef: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable(),
|
|
1034
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().nullable()
|
|
1035
|
+
}).strip();
|
|
1036
|
+
const CreatePayoutSchema = payoutEntitySchema.omit({
|
|
1037
|
+
id: true,
|
|
1038
|
+
createdAt: true,
|
|
1039
|
+
updatedAt: true,
|
|
1040
|
+
updatedBy: true,
|
|
1041
|
+
isArchived: true
|
|
1042
|
+
});
|
|
1043
|
+
const basePayoutItemShape = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1044
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
1045
|
+
accountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1046
|
+
description: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
1047
|
+
targetAccountType: __WEBPACK_EXTERNAL_MODULE_zod__.z["enum"]([
|
|
1048
|
+
'CMA',
|
|
1049
|
+
'BANK'
|
|
1050
|
+
])
|
|
1051
|
+
});
|
|
1052
|
+
const payoutItemReqSchema = basePayoutItemShape.extend({
|
|
1053
|
+
amount: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1054
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
1055
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()
|
|
1056
|
+
]).transform((arg)=>Math.round(100 * Number(arg))).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
1057
|
+
});
|
|
1058
|
+
const payoutRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1059
|
+
payoutType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1060
|
+
sourceAccountId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1061
|
+
totalAmount: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1062
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number(),
|
|
1063
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()
|
|
1064
|
+
]).transform((arg)=>Math.round(100 * Number(arg))).transform((arg)=>BigInt(arg)).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint()),
|
|
1065
|
+
payoutItems: __WEBPACK_EXTERNAL_MODULE_zod__.z.array(payoutItemReqSchema)
|
|
1066
|
+
}).strip();
|
|
1067
|
+
const payoutRestResSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1068
|
+
totalFromAccountUpdatedNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
1069
|
+
totalToAccountUpdatedNumber: __WEBPACK_EXTERNAL_MODULE_zod__.z.number().int().nonnegative(),
|
|
1070
|
+
totalAmount: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1071
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1072
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1073
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
1074
|
+
}).strip();
|
|
1075
|
+
const payoutListRestResSchema = payoutEntitySchema.extend({
|
|
1076
|
+
payoutType: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1077
|
+
fromState: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1078
|
+
fromBank: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1079
|
+
fromAccount: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1080
|
+
createdAt: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().datetime(),
|
|
1081
|
+
totalAmount: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1082
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1083
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1084
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number()),
|
|
1085
|
+
abaStatus: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1086
|
+
status: __WEBPACK_EXTERNAL_MODULE_zod__.z.string()
|
|
1087
|
+
}).strip();
|
|
1088
|
+
const payoutPaymentItemSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1089
|
+
propertyId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1090
|
+
propertyName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1091
|
+
customerName: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1092
|
+
targetAccount: __WEBPACK_EXTERNAL_MODULE_zod__.z.string(),
|
|
1093
|
+
amountCents: __WEBPACK_EXTERNAL_MODULE_zod__.z.union([
|
|
1094
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.bigint(),
|
|
1095
|
+
__WEBPACK_EXTERNAL_MODULE_zod__.z.number()
|
|
1096
|
+
]).transform((arg)=>Number(arg) / 100).pipe(__WEBPACK_EXTERNAL_MODULE_zod__.z.number())
|
|
1097
|
+
});
|
|
1098
|
+
const payoutDetailRestResSchema = payoutEntitySchema.omit({
|
|
1099
|
+
provisionDetails: true
|
|
1100
|
+
}).extend({
|
|
1101
|
+
fileContent: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().optional().nullable(),
|
|
1102
|
+
mta: __WEBPACK_EXTERNAL_MODULE_zod__.z.lazy(()=>mtaEntitySchema).optional().nullable(),
|
|
1103
|
+
paymentList: __WEBPACK_EXTERNAL_MODULE_zod__.z.array(payoutPaymentItemSchema).optional()
|
|
1104
|
+
});
|
|
1105
|
+
const allocateMtaToProjectRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1106
|
+
projectId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1107
|
+
mtaId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid()
|
|
1108
|
+
});
|
|
1109
|
+
const approveMtaAllocationRestReqSchema = __WEBPACK_EXTERNAL_MODULE_zod__.z.object({
|
|
1110
|
+
projectId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid(),
|
|
1111
|
+
projectMtaAllocationId: __WEBPACK_EXTERNAL_MODULE_zod__.z.string().uuid()
|
|
1112
|
+
});
|
|
1113
|
+
function bind(fn, thisArg) {
|
|
1114
|
+
return function() {
|
|
1115
|
+
return fn.apply(thisArg, arguments);
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
const { toString: utils_toString } = Object.prototype;
|
|
1119
|
+
const { getPrototypeOf } = Object;
|
|
1120
|
+
const { iterator: utils_iterator, toStringTag } = Symbol;
|
|
1121
|
+
const kindOf = ((cache)=>(thing)=>{
|
|
1122
|
+
const str = utils_toString.call(thing);
|
|
1123
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
1124
|
+
})(Object.create(null));
|
|
1125
|
+
const kindOfTest = (type)=>{
|
|
1126
|
+
type = type.toLowerCase();
|
|
1127
|
+
return (thing)=>kindOf(thing) === type;
|
|
1128
|
+
};
|
|
1129
|
+
const typeOfTest = (type)=>(thing)=>typeof thing === type;
|
|
1130
|
+
const { isArray } = Array;
|
|
1131
|
+
const isUndefined = typeOfTest('undefined');
|
|
1132
|
+
function isBuffer(val) {
|
|
1133
|
+
return null !== val && !isUndefined(val) && null !== val.constructor && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
|
1134
|
+
}
|
|
1135
|
+
const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
1136
|
+
function isArrayBufferView(val) {
|
|
1137
|
+
let result;
|
|
1138
|
+
result = 'undefined' != typeof ArrayBuffer && ArrayBuffer.isView ? ArrayBuffer.isView(val) : val && val.buffer && isArrayBuffer(val.buffer);
|
|
1139
|
+
return result;
|
|
1140
|
+
}
|
|
1141
|
+
const isString = typeOfTest('string');
|
|
1142
|
+
const isFunction = typeOfTest('function');
|
|
1143
|
+
const isNumber = typeOfTest('number');
|
|
1144
|
+
const isObject = (thing)=>null !== thing && 'object' == typeof thing;
|
|
1145
|
+
const isBoolean = (thing)=>true === thing || false === thing;
|
|
1146
|
+
const isPlainObject = (val)=>{
|
|
1147
|
+
if ('object' !== kindOf(val)) return false;
|
|
1148
|
+
const prototype = getPrototypeOf(val);
|
|
1149
|
+
return (null === prototype || prototype === Object.prototype || null === Object.getPrototypeOf(prototype)) && !(toStringTag in val) && !(utils_iterator in val);
|
|
1150
|
+
};
|
|
1151
|
+
const isDate = kindOfTest('Date');
|
|
1152
|
+
const isFile = kindOfTest('File');
|
|
1153
|
+
const isBlob = kindOfTest('Blob');
|
|
1154
|
+
const utils_isFileList = kindOfTest('FileList');
|
|
1155
|
+
const isStream = (val)=>isObject(val) && isFunction(val.pipe);
|
|
1156
|
+
const utils_isFormData = (thing)=>{
|
|
1157
|
+
let kind;
|
|
1158
|
+
return thing && ('function' == typeof FormData && thing instanceof FormData || isFunction(thing.append) && ('formdata' === (kind = kindOf(thing)) || 'object' === kind && isFunction(thing.toString) && '[object FormData]' === thing.toString()));
|
|
1159
|
+
};
|
|
1160
|
+
const isURLSearchParams = kindOfTest('URLSearchParams');
|
|
1161
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
1162
|
+
'ReadableStream',
|
|
1163
|
+
'Request',
|
|
1164
|
+
'Response',
|
|
1165
|
+
'Headers'
|
|
1166
|
+
].map(kindOfTest);
|
|
1167
|
+
const trim = (str)=>str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
|
1168
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
1169
|
+
if (null == obj) return;
|
|
1170
|
+
let i;
|
|
1171
|
+
let l;
|
|
1172
|
+
if ('object' != typeof obj) obj = [
|
|
1173
|
+
obj
|
|
1174
|
+
];
|
|
1175
|
+
if (isArray(obj)) for(i = 0, l = obj.length; i < l; i++)fn.call(null, obj[i], i, obj);
|
|
1176
|
+
else {
|
|
1177
|
+
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
|
1178
|
+
const len = keys.length;
|
|
1179
|
+
let key;
|
|
1180
|
+
for(i = 0; i < len; i++){
|
|
1181
|
+
key = keys[i];
|
|
1182
|
+
fn.call(null, obj[key], key, obj);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
function findKey(obj, key) {
|
|
1187
|
+
key = key.toLowerCase();
|
|
1188
|
+
const keys = Object.keys(obj);
|
|
1189
|
+
let i = keys.length;
|
|
1190
|
+
let _key;
|
|
1191
|
+
while(i-- > 0){
|
|
1192
|
+
_key = keys[i];
|
|
1193
|
+
if (key === _key.toLowerCase()) return _key;
|
|
1194
|
+
}
|
|
1195
|
+
return null;
|
|
1196
|
+
}
|
|
1197
|
+
const _global = (()=>{
|
|
1198
|
+
if ("undefined" != typeof globalThis) return globalThis;
|
|
1199
|
+
return "undefined" != typeof self ? self : 'undefined' != typeof window ? window : global;
|
|
1200
|
+
})();
|
|
1201
|
+
const isContextDefined = (context)=>!isUndefined(context) && context !== _global;
|
|
1202
|
+
function utils_merge() {
|
|
1203
|
+
const { caseless } = isContextDefined(this) && this || {};
|
|
1204
|
+
const result = {};
|
|
1205
|
+
const assignValue = (val, key)=>{
|
|
1206
|
+
const targetKey = caseless && findKey(result, key) || key;
|
|
1207
|
+
if (isPlainObject(result[targetKey]) && isPlainObject(val)) result[targetKey] = utils_merge(result[targetKey], val);
|
|
1208
|
+
else if (isPlainObject(val)) result[targetKey] = utils_merge({}, val);
|
|
1209
|
+
else if (isArray(val)) result[targetKey] = val.slice();
|
|
1210
|
+
else result[targetKey] = val;
|
|
1211
|
+
};
|
|
1212
|
+
for(let i = 0, l = arguments.length; i < l; i++)arguments[i] && forEach(arguments[i], assignValue);
|
|
1213
|
+
return result;
|
|
1214
|
+
}
|
|
1215
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {})=>{
|
|
1216
|
+
forEach(b, (val, key)=>{
|
|
1217
|
+
if (thisArg && isFunction(val)) a[key] = bind(val, thisArg);
|
|
1218
|
+
else a[key] = val;
|
|
1219
|
+
}, {
|
|
1220
|
+
allOwnKeys
|
|
1221
|
+
});
|
|
1222
|
+
return a;
|
|
1223
|
+
};
|
|
1224
|
+
const stripBOM = (content)=>{
|
|
1225
|
+
if (0xFEFF === content.charCodeAt(0)) content = content.slice(1);
|
|
1226
|
+
return content;
|
|
1227
|
+
};
|
|
1228
|
+
const inherits = (constructor, superConstructor, props, descriptors)=>{
|
|
1229
|
+
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
1230
|
+
constructor.prototype.constructor = constructor;
|
|
1231
|
+
Object.defineProperty(constructor, 'super', {
|
|
1232
|
+
value: superConstructor.prototype
|
|
1233
|
+
});
|
|
1234
|
+
props && Object.assign(constructor.prototype, props);
|
|
1235
|
+
};
|
|
1236
|
+
const toFlatObject = (sourceObj, destObj, filter, propFilter)=>{
|
|
1237
|
+
let props;
|
|
1238
|
+
let i;
|
|
1239
|
+
let prop;
|
|
1240
|
+
const merged = {};
|
|
1241
|
+
destObj = destObj || {};
|
|
1242
|
+
if (null == sourceObj) return destObj;
|
|
1243
|
+
do {
|
|
1244
|
+
props = Object.getOwnPropertyNames(sourceObj);
|
|
1245
|
+
i = props.length;
|
|
1246
|
+
while(i-- > 0){
|
|
1247
|
+
prop = props[i];
|
|
1248
|
+
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
1249
|
+
destObj[prop] = sourceObj[prop];
|
|
1250
|
+
merged[prop] = true;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
sourceObj = false !== filter && getPrototypeOf(sourceObj);
|
|
1254
|
+
}while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
1255
|
+
return destObj;
|
|
1256
|
+
};
|
|
1257
|
+
const endsWith = (str, searchString, position)=>{
|
|
1258
|
+
str = String(str);
|
|
1259
|
+
if (void 0 === position || position > str.length) position = str.length;
|
|
1260
|
+
position -= searchString.length;
|
|
1261
|
+
const lastIndex = str.indexOf(searchString, position);
|
|
1262
|
+
return -1 !== lastIndex && lastIndex === position;
|
|
1263
|
+
};
|
|
1264
|
+
const toArray = (thing)=>{
|
|
1265
|
+
if (!thing) return null;
|
|
1266
|
+
if (isArray(thing)) return thing;
|
|
1267
|
+
let i = thing.length;
|
|
1268
|
+
if (!isNumber(i)) return null;
|
|
1269
|
+
const arr = new Array(i);
|
|
1270
|
+
while(i-- > 0)arr[i] = thing[i];
|
|
1271
|
+
return arr;
|
|
1272
|
+
};
|
|
1273
|
+
const isTypedArray = ((TypedArray)=>(thing)=>TypedArray && thing instanceof TypedArray)('undefined' != typeof Uint8Array && getPrototypeOf(Uint8Array));
|
|
1274
|
+
const forEachEntry = (obj, fn)=>{
|
|
1275
|
+
const generator = obj && obj[utils_iterator];
|
|
1276
|
+
const _iterator = generator.call(obj);
|
|
1277
|
+
let result;
|
|
1278
|
+
while((result = _iterator.next()) && !result.done){
|
|
1279
|
+
const pair = result.value;
|
|
1280
|
+
fn.call(obj, pair[0], pair[1]);
|
|
1281
|
+
}
|
|
1282
|
+
};
|
|
1283
|
+
const matchAll = (regExp, str)=>{
|
|
1284
|
+
let matches;
|
|
1285
|
+
const arr = [];
|
|
1286
|
+
while(null !== (matches = regExp.exec(str)))arr.push(matches);
|
|
1287
|
+
return arr;
|
|
1288
|
+
};
|
|
1289
|
+
const isHTMLForm = kindOfTest('HTMLFormElement');
|
|
1290
|
+
const toCamelCase = (str)=>str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(m, p1, p2) {
|
|
1291
|
+
return p1.toUpperCase() + p2;
|
|
1292
|
+
});
|
|
1293
|
+
const utils_hasOwnProperty = (({ hasOwnProperty })=>(obj, prop)=>hasOwnProperty.call(obj, prop))(Object.prototype);
|
|
1294
|
+
const isRegExp = kindOfTest('RegExp');
|
|
1295
|
+
const reduceDescriptors = (obj, reducer)=>{
|
|
1296
|
+
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
1297
|
+
const reducedDescriptors = {};
|
|
1298
|
+
forEach(descriptors, (descriptor, name)=>{
|
|
1299
|
+
let ret;
|
|
1300
|
+
if (false !== (ret = reducer(descriptor, name, obj))) reducedDescriptors[name] = ret || descriptor;
|
|
1301
|
+
});
|
|
1302
|
+
Object.defineProperties(obj, reducedDescriptors);
|
|
1303
|
+
};
|
|
1304
|
+
const freezeMethods = (obj)=>{
|
|
1305
|
+
reduceDescriptors(obj, (descriptor, name)=>{
|
|
1306
|
+
if (isFunction(obj) && -1 !== [
|
|
1307
|
+
'arguments',
|
|
1308
|
+
'caller',
|
|
1309
|
+
'callee'
|
|
1310
|
+
].indexOf(name)) return false;
|
|
1311
|
+
const value = obj[name];
|
|
1312
|
+
if (!isFunction(value)) return;
|
|
1313
|
+
descriptor.enumerable = false;
|
|
1314
|
+
if ('writable' in descriptor) {
|
|
1315
|
+
descriptor.writable = false;
|
|
1316
|
+
return;
|
|
1317
|
+
}
|
|
1318
|
+
if (!descriptor.set) descriptor.set = ()=>{
|
|
1319
|
+
throw Error('Can not rewrite read-only method \'' + name + '\'');
|
|
1320
|
+
};
|
|
1321
|
+
});
|
|
1322
|
+
};
|
|
1323
|
+
const toObjectSet = (arrayOrString, delimiter)=>{
|
|
1324
|
+
const obj = {};
|
|
1325
|
+
const define = (arr)=>{
|
|
1326
|
+
arr.forEach((value)=>{
|
|
1327
|
+
obj[value] = true;
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
1331
|
+
return obj;
|
|
1332
|
+
};
|
|
1333
|
+
const noop = ()=>{};
|
|
1334
|
+
const toFiniteNumber = (value, defaultValue)=>null != value && Number.isFinite(value *= 1) ? value : defaultValue;
|
|
1335
|
+
function isSpecCompliantForm(thing) {
|
|
1336
|
+
return !!(thing && isFunction(thing.append) && 'FormData' === thing[toStringTag] && thing[utils_iterator]);
|
|
1337
|
+
}
|
|
1338
|
+
const toJSONObject = (obj)=>{
|
|
1339
|
+
const stack = new Array(10);
|
|
1340
|
+
const visit = (source, i)=>{
|
|
1341
|
+
if (isObject(source)) {
|
|
1342
|
+
if (stack.indexOf(source) >= 0) return;
|
|
1343
|
+
if (!('toJSON' in source)) {
|
|
1344
|
+
stack[i] = source;
|
|
1345
|
+
const target = isArray(source) ? [] : {};
|
|
1346
|
+
forEach(source, (value, key)=>{
|
|
1347
|
+
const reducedValue = visit(value, i + 1);
|
|
1348
|
+
isUndefined(reducedValue) || (target[key] = reducedValue);
|
|
1349
|
+
});
|
|
1350
|
+
stack[i] = void 0;
|
|
1351
|
+
return target;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
return source;
|
|
1355
|
+
};
|
|
1356
|
+
return visit(obj, 0);
|
|
1357
|
+
};
|
|
1358
|
+
const isAsyncFn = kindOfTest('AsyncFunction');
|
|
1359
|
+
const isThenable = (thing)=>thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
1360
|
+
const _setImmediate = ((setImmediateSupported, postMessageSupported)=>{
|
|
1361
|
+
if (setImmediateSupported) return setImmediate;
|
|
1362
|
+
return postMessageSupported ? ((token, callbacks)=>{
|
|
1363
|
+
_global.addEventListener("message", ({ source, data })=>{
|
|
1364
|
+
if (source === _global && data === token) callbacks.length && callbacks.shift()();
|
|
1365
|
+
}, false);
|
|
1366
|
+
return (cb)=>{
|
|
1367
|
+
callbacks.push(cb);
|
|
1368
|
+
_global.postMessage(token, "*");
|
|
1369
|
+
};
|
|
1370
|
+
})(`axios@${Math.random()}`, []) : (cb)=>setTimeout(cb);
|
|
1371
|
+
})('function' == typeof setImmediate, isFunction(_global.postMessage));
|
|
1372
|
+
const asap = 'undefined' != typeof queueMicrotask ? queueMicrotask.bind(_global) : 'undefined' != typeof process && process.nextTick || _setImmediate;
|
|
1373
|
+
const isIterable = (thing)=>null != thing && isFunction(thing[utils_iterator]);
|
|
1374
|
+
const utils = {
|
|
1375
|
+
isArray,
|
|
1376
|
+
isArrayBuffer,
|
|
1377
|
+
isBuffer,
|
|
1378
|
+
isFormData: utils_isFormData,
|
|
1379
|
+
isArrayBufferView,
|
|
1380
|
+
isString,
|
|
1381
|
+
isNumber,
|
|
1382
|
+
isBoolean,
|
|
1383
|
+
isObject,
|
|
1384
|
+
isPlainObject,
|
|
1385
|
+
isReadableStream,
|
|
1386
|
+
isRequest,
|
|
1387
|
+
isResponse,
|
|
1388
|
+
isHeaders,
|
|
1389
|
+
isUndefined,
|
|
1390
|
+
isDate,
|
|
1391
|
+
isFile,
|
|
1392
|
+
isBlob,
|
|
1393
|
+
isRegExp,
|
|
1394
|
+
isFunction,
|
|
1395
|
+
isStream,
|
|
1396
|
+
isURLSearchParams,
|
|
1397
|
+
isTypedArray,
|
|
1398
|
+
isFileList: utils_isFileList,
|
|
1399
|
+
forEach,
|
|
1400
|
+
merge: utils_merge,
|
|
1401
|
+
extend,
|
|
1402
|
+
trim,
|
|
1403
|
+
stripBOM,
|
|
1404
|
+
inherits,
|
|
1405
|
+
toFlatObject,
|
|
1406
|
+
kindOf,
|
|
1407
|
+
kindOfTest,
|
|
1408
|
+
endsWith,
|
|
1409
|
+
toArray,
|
|
1410
|
+
forEachEntry,
|
|
1411
|
+
matchAll,
|
|
1412
|
+
isHTMLForm,
|
|
1413
|
+
hasOwnProperty: utils_hasOwnProperty,
|
|
1414
|
+
hasOwnProp: utils_hasOwnProperty,
|
|
1415
|
+
reduceDescriptors,
|
|
1416
|
+
freezeMethods,
|
|
1417
|
+
toObjectSet,
|
|
1418
|
+
toCamelCase,
|
|
1419
|
+
noop,
|
|
1420
|
+
toFiniteNumber,
|
|
1421
|
+
findKey,
|
|
1422
|
+
global: _global,
|
|
1423
|
+
isContextDefined,
|
|
1424
|
+
isSpecCompliantForm,
|
|
1425
|
+
toJSONObject,
|
|
1426
|
+
isAsyncFn,
|
|
1427
|
+
isThenable,
|
|
1428
|
+
setImmediate: _setImmediate,
|
|
1429
|
+
asap,
|
|
1430
|
+
isIterable
|
|
1431
|
+
};
|
|
1432
|
+
function AxiosError(message, code, config, request, response) {
|
|
1433
|
+
Error.call(this);
|
|
1434
|
+
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
1435
|
+
else this.stack = new Error().stack;
|
|
1436
|
+
this.message = message;
|
|
1437
|
+
this.name = 'AxiosError';
|
|
1438
|
+
code && (this.code = code);
|
|
1439
|
+
config && (this.config = config);
|
|
1440
|
+
request && (this.request = request);
|
|
1441
|
+
if (response) {
|
|
1442
|
+
this.response = response;
|
|
1443
|
+
this.status = response.status ? response.status : null;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
utils.inherits(AxiosError, Error, {
|
|
1447
|
+
toJSON: function() {
|
|
1448
|
+
return {
|
|
1449
|
+
message: this.message,
|
|
1450
|
+
name: this.name,
|
|
1451
|
+
description: this.description,
|
|
1452
|
+
number: this.number,
|
|
1453
|
+
fileName: this.fileName,
|
|
1454
|
+
lineNumber: this.lineNumber,
|
|
1455
|
+
columnNumber: this.columnNumber,
|
|
1456
|
+
stack: this.stack,
|
|
1457
|
+
config: utils.toJSONObject(this.config),
|
|
1458
|
+
code: this.code,
|
|
1459
|
+
status: this.status
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
});
|
|
1463
|
+
const AxiosError_prototype = AxiosError.prototype;
|
|
1464
|
+
const AxiosError_descriptors = {};
|
|
1465
|
+
[
|
|
1466
|
+
'ERR_BAD_OPTION_VALUE',
|
|
1467
|
+
'ERR_BAD_OPTION',
|
|
1468
|
+
'ECONNABORTED',
|
|
1469
|
+
'ETIMEDOUT',
|
|
1470
|
+
'ERR_NETWORK',
|
|
1471
|
+
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
1472
|
+
'ERR_DEPRECATED',
|
|
1473
|
+
'ERR_BAD_RESPONSE',
|
|
1474
|
+
'ERR_BAD_REQUEST',
|
|
1475
|
+
'ERR_CANCELED',
|
|
1476
|
+
'ERR_NOT_SUPPORT',
|
|
1477
|
+
'ERR_INVALID_URL'
|
|
1478
|
+
].forEach((code)=>{
|
|
1479
|
+
AxiosError_descriptors[code] = {
|
|
1480
|
+
value: code
|
|
1481
|
+
};
|
|
1482
|
+
});
|
|
1483
|
+
Object.defineProperties(AxiosError, AxiosError_descriptors);
|
|
1484
|
+
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
1485
|
+
value: true
|
|
1486
|
+
});
|
|
1487
|
+
AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
1488
|
+
const axiosError = Object.create(AxiosError_prototype);
|
|
1489
|
+
utils.toFlatObject(error, axiosError, function(obj) {
|
|
1490
|
+
return obj !== Error.prototype;
|
|
1491
|
+
}, (prop)=>'isAxiosError' !== prop);
|
|
1492
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
1493
|
+
axiosError.cause = error;
|
|
1494
|
+
axiosError.name = error.name;
|
|
1495
|
+
customProps && Object.assign(axiosError, customProps);
|
|
1496
|
+
return axiosError;
|
|
1497
|
+
};
|
|
1498
|
+
const core_AxiosError = AxiosError;
|
|
1499
|
+
const helpers_null = null;
|
|
1500
|
+
function isVisitable(thing) {
|
|
1501
|
+
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
1502
|
+
}
|
|
1503
|
+
function removeBrackets(key) {
|
|
1504
|
+
return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
|
|
1505
|
+
}
|
|
1506
|
+
function renderKey(path, key, dots) {
|
|
1507
|
+
if (!path) return key;
|
|
1508
|
+
return path.concat(key).map(function(token, i) {
|
|
1509
|
+
token = removeBrackets(token);
|
|
1510
|
+
return !dots && i ? '[' + token + ']' : token;
|
|
1511
|
+
}).join(dots ? '.' : '');
|
|
1512
|
+
}
|
|
1513
|
+
function isFlatArray(arr) {
|
|
1514
|
+
return utils.isArray(arr) && !arr.some(isVisitable);
|
|
1515
|
+
}
|
|
1516
|
+
const predicates = utils.toFlatObject(utils, {}, null, function(prop) {
|
|
1517
|
+
return /^is[A-Z]/.test(prop);
|
|
1518
|
+
});
|
|
1519
|
+
function toFormData_toFormData(obj, formData, options) {
|
|
1520
|
+
if (!utils.isObject(obj)) throw new TypeError('target must be an object');
|
|
1521
|
+
formData = formData || new (helpers_null || FormData)();
|
|
1522
|
+
options = utils.toFlatObject(options, {
|
|
1523
|
+
metaTokens: true,
|
|
1524
|
+
dots: false,
|
|
1525
|
+
indexes: false
|
|
1526
|
+
}, false, function(option, source) {
|
|
1527
|
+
return !utils.isUndefined(source[option]);
|
|
1528
|
+
});
|
|
1529
|
+
const metaTokens = options.metaTokens;
|
|
1530
|
+
const visitor = options.visitor || defaultVisitor;
|
|
1531
|
+
const dots = options.dots;
|
|
1532
|
+
const indexes = options.indexes;
|
|
1533
|
+
const _Blob = options.Blob || 'undefined' != typeof Blob && Blob;
|
|
1534
|
+
const useBlob = _Blob && utils.isSpecCompliantForm(formData);
|
|
1535
|
+
if (!utils.isFunction(visitor)) throw new TypeError('visitor must be a function');
|
|
1536
|
+
function convertValue(value) {
|
|
1537
|
+
if (null === value) return '';
|
|
1538
|
+
if (utils.isDate(value)) return value.toISOString();
|
|
1539
|
+
if (!useBlob && utils.isBlob(value)) throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
1540
|
+
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
1541
|
+
value
|
|
1542
|
+
]) : Buffer.from(value);
|
|
1543
|
+
return value;
|
|
1544
|
+
}
|
|
1545
|
+
function defaultVisitor(value, key, path) {
|
|
1546
|
+
let arr = value;
|
|
1547
|
+
if (value && !path && 'object' == typeof value) {
|
|
1548
|
+
if (utils.endsWith(key, '{}')) {
|
|
1549
|
+
key = metaTokens ? key : key.slice(0, -2);
|
|
1550
|
+
value = JSON.stringify(value);
|
|
1551
|
+
} else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))) {
|
|
1552
|
+
key = removeBrackets(key);
|
|
1553
|
+
arr.forEach(function(el, index) {
|
|
1554
|
+
utils.isUndefined(el) || null === el || formData.append(true === indexes ? renderKey([
|
|
1555
|
+
key
|
|
1556
|
+
], index, dots) : null === indexes ? key : key + '[]', convertValue(el));
|
|
1557
|
+
});
|
|
1558
|
+
return false;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (isVisitable(value)) return true;
|
|
1562
|
+
formData.append(renderKey(path, key, dots), convertValue(value));
|
|
1563
|
+
return false;
|
|
1564
|
+
}
|
|
1565
|
+
const stack = [];
|
|
1566
|
+
const exposedHelpers = Object.assign(predicates, {
|
|
1567
|
+
defaultVisitor,
|
|
1568
|
+
convertValue,
|
|
1569
|
+
isVisitable
|
|
1570
|
+
});
|
|
1571
|
+
function build(value, path) {
|
|
1572
|
+
if (utils.isUndefined(value)) return;
|
|
1573
|
+
if (-1 !== stack.indexOf(value)) throw Error('Circular reference detected in ' + path.join('.'));
|
|
1574
|
+
stack.push(value);
|
|
1575
|
+
utils.forEach(value, function(el, key) {
|
|
1576
|
+
const result = !(utils.isUndefined(el) || null === el) && visitor.call(formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers);
|
|
1577
|
+
if (true === result) build(el, path ? path.concat(key) : [
|
|
1578
|
+
key
|
|
1579
|
+
]);
|
|
1580
|
+
});
|
|
1581
|
+
stack.pop();
|
|
1582
|
+
}
|
|
1583
|
+
if (!utils.isObject(obj)) throw new TypeError('data must be an object');
|
|
1584
|
+
build(obj);
|
|
1585
|
+
return formData;
|
|
1586
|
+
}
|
|
1587
|
+
const toFormData = toFormData_toFormData;
|
|
1588
|
+
function encode(str) {
|
|
1589
|
+
const charMap = {
|
|
1590
|
+
'!': '%21',
|
|
1591
|
+
"'": '%27',
|
|
1592
|
+
'(': '%28',
|
|
1593
|
+
')': '%29',
|
|
1594
|
+
'~': '%7E',
|
|
1595
|
+
'%20': '+',
|
|
1596
|
+
'%00': '\x00'
|
|
1597
|
+
};
|
|
1598
|
+
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function(match) {
|
|
1599
|
+
return charMap[match];
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1602
|
+
function AxiosURLSearchParams_AxiosURLSearchParams(params, options) {
|
|
1603
|
+
this._pairs = [];
|
|
1604
|
+
params && toFormData(params, this, options);
|
|
1605
|
+
}
|
|
1606
|
+
const AxiosURLSearchParams_prototype = AxiosURLSearchParams_AxiosURLSearchParams.prototype;
|
|
1607
|
+
AxiosURLSearchParams_prototype.append = function(name, value) {
|
|
1608
|
+
this._pairs.push([
|
|
1609
|
+
name,
|
|
1610
|
+
value
|
|
1611
|
+
]);
|
|
1612
|
+
};
|
|
1613
|
+
AxiosURLSearchParams_prototype.toString = function(encoder) {
|
|
1614
|
+
const _encode = encoder ? function(value) {
|
|
1615
|
+
return encoder.call(this, value, encode);
|
|
1616
|
+
} : encode;
|
|
1617
|
+
return this._pairs.map(function(pair) {
|
|
1618
|
+
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
|
1619
|
+
}, '').join('&');
|
|
1620
|
+
};
|
|
1621
|
+
const AxiosURLSearchParams = AxiosURLSearchParams_AxiosURLSearchParams;
|
|
1622
|
+
function buildURL_encode(val) {
|
|
1623
|
+
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
1624
|
+
}
|
|
1625
|
+
function buildURL(url, params, options) {
|
|
1626
|
+
if (!params) return url;
|
|
1627
|
+
const _encode = options && options.encode || buildURL_encode;
|
|
1628
|
+
if (utils.isFunction(options)) options = {
|
|
1629
|
+
serialize: options
|
|
1630
|
+
};
|
|
1631
|
+
const serializeFn = options && options.serialize;
|
|
1632
|
+
let serializedParams;
|
|
1633
|
+
serializedParams = serializeFn ? serializeFn(params, options) : utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);
|
|
1634
|
+
if (serializedParams) {
|
|
1635
|
+
const hashmarkIndex = url.indexOf("#");
|
|
1636
|
+
if (-1 !== hashmarkIndex) url = url.slice(0, hashmarkIndex);
|
|
1637
|
+
url += (-1 === url.indexOf('?') ? '?' : '&') + serializedParams;
|
|
1638
|
+
}
|
|
1639
|
+
return url;
|
|
1640
|
+
}
|
|
1641
|
+
class InterceptorManager {
|
|
1642
|
+
constructor(){
|
|
1643
|
+
this.handlers = [];
|
|
1644
|
+
}
|
|
1645
|
+
use(fulfilled, rejected, options) {
|
|
1646
|
+
this.handlers.push({
|
|
1647
|
+
fulfilled,
|
|
1648
|
+
rejected,
|
|
1649
|
+
synchronous: options ? options.synchronous : false,
|
|
1650
|
+
runWhen: options ? options.runWhen : null
|
|
1651
|
+
});
|
|
1652
|
+
return this.handlers.length - 1;
|
|
1653
|
+
}
|
|
1654
|
+
eject(id) {
|
|
1655
|
+
if (this.handlers[id]) this.handlers[id] = null;
|
|
1656
|
+
}
|
|
1657
|
+
clear() {
|
|
1658
|
+
if (this.handlers) this.handlers = [];
|
|
1659
|
+
}
|
|
1660
|
+
forEach(fn) {
|
|
1661
|
+
utils.forEach(this.handlers, function(h) {
|
|
1662
|
+
if (null !== h) fn(h);
|
|
1663
|
+
});
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
const core_InterceptorManager = InterceptorManager;
|
|
1667
|
+
const defaults_transitional = {
|
|
1668
|
+
silentJSONParsing: true,
|
|
1669
|
+
forcedJSONParsing: true,
|
|
1670
|
+
clarifyTimeoutError: false
|
|
1671
|
+
};
|
|
1672
|
+
const classes_URLSearchParams = 'undefined' != typeof URLSearchParams ? URLSearchParams : AxiosURLSearchParams;
|
|
1673
|
+
const classes_FormData = 'undefined' != typeof FormData ? FormData : null;
|
|
1674
|
+
const classes_Blob = 'undefined' != typeof Blob ? Blob : null;
|
|
1675
|
+
const browser = {
|
|
1676
|
+
isBrowser: true,
|
|
1677
|
+
classes: {
|
|
1678
|
+
URLSearchParams: classes_URLSearchParams,
|
|
1679
|
+
FormData: classes_FormData,
|
|
1680
|
+
Blob: classes_Blob
|
|
1681
|
+
},
|
|
1682
|
+
protocols: [
|
|
1683
|
+
'http',
|
|
1684
|
+
'https',
|
|
1685
|
+
'file',
|
|
1686
|
+
'blob',
|
|
1687
|
+
'url',
|
|
1688
|
+
'data'
|
|
1689
|
+
]
|
|
1690
|
+
};
|
|
1691
|
+
const hasBrowserEnv = 'undefined' != typeof window && 'undefined' != typeof document;
|
|
1692
|
+
const _navigator = 'object' == typeof navigator && navigator || void 0;
|
|
1693
|
+
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
|
1694
|
+
'ReactNative',
|
|
1695
|
+
'NativeScript',
|
|
1696
|
+
'NS'
|
|
1697
|
+
].indexOf(_navigator.product) < 0);
|
|
1698
|
+
const hasStandardBrowserWebWorkerEnv = (()=>'undefined' != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && 'function' == typeof self.importScripts)();
|
|
1699
|
+
const utils_origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
1700
|
+
const platform = {
|
|
1701
|
+
...common_utils_namespaceObject,
|
|
1702
|
+
...browser
|
|
1703
|
+
};
|
|
1704
|
+
function toURLEncodedForm(data, options) {
|
|
1705
|
+
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
|
1706
|
+
visitor: function(value, key, path, helpers) {
|
|
1707
|
+
if (platform.isNode && utils.isBuffer(value)) {
|
|
1708
|
+
this.append(key, value.toString('base64'));
|
|
1709
|
+
return false;
|
|
1710
|
+
}
|
|
1711
|
+
return helpers.defaultVisitor.apply(this, arguments);
|
|
1712
|
+
}
|
|
1713
|
+
}, options));
|
|
1714
|
+
}
|
|
1715
|
+
function parsePropPath(name) {
|
|
1716
|
+
return utils.matchAll(/\w+|\[(\w*)]/g, name).map((match)=>'[]' === match[0] ? '' : match[1] || match[0]);
|
|
1717
|
+
}
|
|
1718
|
+
function arrayToObject(arr) {
|
|
1719
|
+
const obj = {};
|
|
1720
|
+
const keys = Object.keys(arr);
|
|
1721
|
+
let i;
|
|
1722
|
+
const len = keys.length;
|
|
1723
|
+
let key;
|
|
1724
|
+
for(i = 0; i < len; i++){
|
|
1725
|
+
key = keys[i];
|
|
1726
|
+
obj[key] = arr[key];
|
|
1727
|
+
}
|
|
1728
|
+
return obj;
|
|
1729
|
+
}
|
|
1730
|
+
function formDataToJSON_formDataToJSON(formData) {
|
|
1731
|
+
function buildPath(path, value, target, index) {
|
|
1732
|
+
let name = path[index++];
|
|
1733
|
+
if ('__proto__' === name) return true;
|
|
1734
|
+
const isNumericKey = Number.isFinite(+name);
|
|
1735
|
+
const isLast = index >= path.length;
|
|
1736
|
+
name = !name && utils.isArray(target) ? target.length : name;
|
|
1737
|
+
if (isLast) {
|
|
1738
|
+
if (utils.hasOwnProp(target, name)) target[name] = [
|
|
1739
|
+
target[name],
|
|
1740
|
+
value
|
|
1741
|
+
];
|
|
1742
|
+
else target[name] = value;
|
|
1743
|
+
return !isNumericKey;
|
|
1744
|
+
}
|
|
1745
|
+
if (!target[name] || !utils.isObject(target[name])) target[name] = [];
|
|
1746
|
+
const result = buildPath(path, value, target[name], index);
|
|
1747
|
+
if (result && utils.isArray(target[name])) target[name] = arrayToObject(target[name]);
|
|
1748
|
+
return !isNumericKey;
|
|
1749
|
+
}
|
|
1750
|
+
if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
|
|
1751
|
+
const obj = {};
|
|
1752
|
+
utils.forEachEntry(formData, (name, value)=>{
|
|
1753
|
+
buildPath(parsePropPath(name), value, obj, 0);
|
|
1754
|
+
});
|
|
1755
|
+
return obj;
|
|
1756
|
+
}
|
|
1757
|
+
return null;
|
|
1758
|
+
}
|
|
1759
|
+
const formDataToJSON = formDataToJSON_formDataToJSON;
|
|
1760
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
1761
|
+
if (utils.isString(rawValue)) try {
|
|
1762
|
+
(parser || JSON.parse)(rawValue);
|
|
1763
|
+
return utils.trim(rawValue);
|
|
1764
|
+
} catch (e) {
|
|
1765
|
+
if ('SyntaxError' !== e.name) throw e;
|
|
1766
|
+
}
|
|
1767
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
1768
|
+
}
|
|
1769
|
+
const defaults = {
|
|
1770
|
+
transitional: defaults_transitional,
|
|
1771
|
+
adapter: [
|
|
1772
|
+
'xhr',
|
|
1773
|
+
'http',
|
|
1774
|
+
'fetch'
|
|
1775
|
+
],
|
|
1776
|
+
transformRequest: [
|
|
1777
|
+
function(data, headers) {
|
|
1778
|
+
const contentType = headers.getContentType() || '';
|
|
1779
|
+
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
|
1780
|
+
const isObjectPayload = utils.isObject(data);
|
|
1781
|
+
if (isObjectPayload && utils.isHTMLForm(data)) data = new FormData(data);
|
|
1782
|
+
const isFormData = utils.isFormData(data);
|
|
1783
|
+
if (isFormData) return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;
|
|
1784
|
+
if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) || utils.isReadableStream(data)) return data;
|
|
1785
|
+
if (utils.isArrayBufferView(data)) return data.buffer;
|
|
1786
|
+
if (utils.isURLSearchParams(data)) {
|
|
1787
|
+
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
|
1788
|
+
return data.toString();
|
|
1789
|
+
}
|
|
1790
|
+
let isFileList;
|
|
1791
|
+
if (isObjectPayload) {
|
|
1792
|
+
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) return toURLEncodedForm(data, this.formSerializer).toString();
|
|
1793
|
+
if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
|
1794
|
+
const _FormData = this.env && this.env.FormData;
|
|
1795
|
+
return toFormData(isFileList ? {
|
|
1796
|
+
'files[]': data
|
|
1797
|
+
} : data, _FormData && new _FormData(), this.formSerializer);
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
if (isObjectPayload || hasJSONContentType) {
|
|
1801
|
+
headers.setContentType('application/json', false);
|
|
1802
|
+
return stringifySafely(data);
|
|
1803
|
+
}
|
|
1804
|
+
return data;
|
|
1805
|
+
}
|
|
1806
|
+
],
|
|
1807
|
+
transformResponse: [
|
|
1808
|
+
function(data) {
|
|
1809
|
+
const transitional = this.transitional || defaults.transitional;
|
|
1810
|
+
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
|
1811
|
+
const JSONRequested = 'json' === this.responseType;
|
|
1812
|
+
if (utils.isResponse(data) || utils.isReadableStream(data)) return data;
|
|
1813
|
+
if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
1814
|
+
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
|
1815
|
+
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
1816
|
+
try {
|
|
1817
|
+
return JSON.parse(data);
|
|
1818
|
+
} catch (e) {
|
|
1819
|
+
if (strictJSONParsing) {
|
|
1820
|
+
if ('SyntaxError' === e.name) throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
1821
|
+
throw e;
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
return data;
|
|
1826
|
+
}
|
|
1827
|
+
],
|
|
1828
|
+
timeout: 0,
|
|
1829
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
|
1830
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
|
1831
|
+
maxContentLength: -1,
|
|
1832
|
+
maxBodyLength: -1,
|
|
1833
|
+
env: {
|
|
1834
|
+
FormData: platform.classes.FormData,
|
|
1835
|
+
Blob: platform.classes.Blob
|
|
1836
|
+
},
|
|
1837
|
+
validateStatus: function(status) {
|
|
1838
|
+
return status >= 200 && status < 300;
|
|
1839
|
+
},
|
|
1840
|
+
headers: {
|
|
1841
|
+
common: {
|
|
1842
|
+
Accept: 'application/json, text/plain, */*',
|
|
1843
|
+
'Content-Type': void 0
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
};
|
|
1847
|
+
utils.forEach([
|
|
1848
|
+
'delete',
|
|
1849
|
+
'get',
|
|
1850
|
+
'head',
|
|
1851
|
+
'post',
|
|
1852
|
+
'put',
|
|
1853
|
+
'patch'
|
|
1854
|
+
], (method)=>{
|
|
1855
|
+
defaults.headers[method] = {};
|
|
1856
|
+
});
|
|
1857
|
+
const lib_defaults = defaults;
|
|
1858
|
+
const ignoreDuplicateOf = utils.toObjectSet([
|
|
1859
|
+
'age',
|
|
1860
|
+
'authorization',
|
|
1861
|
+
'content-length',
|
|
1862
|
+
'content-type',
|
|
1863
|
+
'etag',
|
|
1864
|
+
'expires',
|
|
1865
|
+
'from',
|
|
1866
|
+
'host',
|
|
1867
|
+
'if-modified-since',
|
|
1868
|
+
'if-unmodified-since',
|
|
1869
|
+
'last-modified',
|
|
1870
|
+
'location',
|
|
1871
|
+
'max-forwards',
|
|
1872
|
+
'proxy-authorization',
|
|
1873
|
+
'referer',
|
|
1874
|
+
'retry-after',
|
|
1875
|
+
'user-agent'
|
|
1876
|
+
]);
|
|
1877
|
+
const parseHeaders = (rawHeaders)=>{
|
|
1878
|
+
const parsed = {};
|
|
1879
|
+
let key;
|
|
1880
|
+
let val;
|
|
1881
|
+
let i;
|
|
1882
|
+
rawHeaders && rawHeaders.split('\n').forEach(function(line) {
|
|
1883
|
+
i = line.indexOf(':');
|
|
1884
|
+
key = line.substring(0, i).trim().toLowerCase();
|
|
1885
|
+
val = line.substring(i + 1).trim();
|
|
1886
|
+
if (!key || parsed[key] && ignoreDuplicateOf[key]) return;
|
|
1887
|
+
if ('set-cookie' === key) if (parsed[key]) parsed[key].push(val);
|
|
1888
|
+
else parsed[key] = [
|
|
1889
|
+
val
|
|
1890
|
+
];
|
|
1891
|
+
else parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
|
1892
|
+
});
|
|
1893
|
+
return parsed;
|
|
1894
|
+
};
|
|
1895
|
+
const $internals = Symbol('internals');
|
|
1896
|
+
function normalizeHeader(header) {
|
|
1897
|
+
return header && String(header).trim().toLowerCase();
|
|
1898
|
+
}
|
|
1899
|
+
function normalizeValue(value) {
|
|
1900
|
+
if (false === value || null == value) return value;
|
|
1901
|
+
return utils.isArray(value) ? value.map(normalizeValue) : String(value);
|
|
1902
|
+
}
|
|
1903
|
+
function parseTokens(str) {
|
|
1904
|
+
const tokens = Object.create(null);
|
|
1905
|
+
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
1906
|
+
let match;
|
|
1907
|
+
while(match = tokensRE.exec(str))tokens[match[1]] = match[2];
|
|
1908
|
+
return tokens;
|
|
1909
|
+
}
|
|
1910
|
+
const isValidHeaderName = (str)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
|
1911
|
+
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
|
1912
|
+
if (utils.isFunction(filter)) return filter.call(this, value, header);
|
|
1913
|
+
if (isHeaderNameFilter) value = header;
|
|
1914
|
+
if (!utils.isString(value)) return;
|
|
1915
|
+
if (utils.isString(filter)) return -1 !== value.indexOf(filter);
|
|
1916
|
+
if (utils.isRegExp(filter)) return filter.test(value);
|
|
1917
|
+
}
|
|
1918
|
+
function formatHeader(header) {
|
|
1919
|
+
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str)=>char.toUpperCase() + str);
|
|
1920
|
+
}
|
|
1921
|
+
function buildAccessors(obj, header) {
|
|
1922
|
+
const accessorName = utils.toCamelCase(' ' + header);
|
|
1923
|
+
[
|
|
1924
|
+
'get',
|
|
1925
|
+
'set',
|
|
1926
|
+
'has'
|
|
1927
|
+
].forEach((methodName)=>{
|
|
1928
|
+
Object.defineProperty(obj, methodName + accessorName, {
|
|
1929
|
+
value: function(arg1, arg2, arg3) {
|
|
1930
|
+
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
1931
|
+
},
|
|
1932
|
+
configurable: true
|
|
1933
|
+
});
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1936
|
+
class AxiosHeaders {
|
|
1937
|
+
constructor(headers){
|
|
1938
|
+
headers && this.set(headers);
|
|
1939
|
+
}
|
|
1940
|
+
set(header, valueOrRewrite, rewrite) {
|
|
1941
|
+
const self1 = this;
|
|
1942
|
+
function setHeader(_value, _header, _rewrite) {
|
|
1943
|
+
const lHeader = normalizeHeader(_header);
|
|
1944
|
+
if (!lHeader) throw new Error('header name must be a non-empty string');
|
|
1945
|
+
const key = utils.findKey(self1, lHeader);
|
|
1946
|
+
if (!key || void 0 === self1[key] || true === _rewrite || void 0 === _rewrite && false !== self1[key]) self1[key || _header] = normalizeValue(_value);
|
|
1947
|
+
}
|
|
1948
|
+
const setHeaders = (headers, _rewrite)=>utils.forEach(headers, (_value, _header)=>setHeader(_value, _header, _rewrite));
|
|
1949
|
+
if (utils.isPlainObject(header) || header instanceof this.constructor) setHeaders(header, valueOrRewrite);
|
|
1950
|
+
else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) setHeaders(parseHeaders(header), valueOrRewrite);
|
|
1951
|
+
else if (utils.isObject(header) && utils.isIterable(header)) {
|
|
1952
|
+
let obj = {}, dest, key;
|
|
1953
|
+
for (const entry of header){
|
|
1954
|
+
if (!utils.isArray(entry)) throw TypeError('Object iterator must return a key-value pair');
|
|
1955
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils.isArray(dest) ? [
|
|
1956
|
+
...dest,
|
|
1957
|
+
entry[1]
|
|
1958
|
+
] : [
|
|
1959
|
+
dest,
|
|
1960
|
+
entry[1]
|
|
1961
|
+
] : entry[1];
|
|
1962
|
+
}
|
|
1963
|
+
setHeaders(obj, valueOrRewrite);
|
|
1964
|
+
} else null != header && setHeader(valueOrRewrite, header, rewrite);
|
|
1965
|
+
return this;
|
|
1966
|
+
}
|
|
1967
|
+
get(header, parser) {
|
|
1968
|
+
header = normalizeHeader(header);
|
|
1969
|
+
if (header) {
|
|
1970
|
+
const key = utils.findKey(this, header);
|
|
1971
|
+
if (key) {
|
|
1972
|
+
const value = this[key];
|
|
1973
|
+
if (!parser) return value;
|
|
1974
|
+
if (true === parser) return parseTokens(value);
|
|
1975
|
+
if (utils.isFunction(parser)) return parser.call(this, value, key);
|
|
1976
|
+
if (utils.isRegExp(parser)) return parser.exec(value);
|
|
1977
|
+
throw new TypeError('parser must be boolean|regexp|function');
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
has(header, matcher) {
|
|
1982
|
+
header = normalizeHeader(header);
|
|
1983
|
+
if (header) {
|
|
1984
|
+
const key = utils.findKey(this, header);
|
|
1985
|
+
return !!(key && void 0 !== this[key] && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
1986
|
+
}
|
|
1987
|
+
return false;
|
|
1988
|
+
}
|
|
1989
|
+
delete(header, matcher) {
|
|
1990
|
+
const self1 = this;
|
|
1991
|
+
let deleted = false;
|
|
1992
|
+
function deleteHeader(_header) {
|
|
1993
|
+
_header = normalizeHeader(_header);
|
|
1994
|
+
if (_header) {
|
|
1995
|
+
const key = utils.findKey(self1, _header);
|
|
1996
|
+
if (key && (!matcher || matchHeaderValue(self1, self1[key], key, matcher))) {
|
|
1997
|
+
delete self1[key];
|
|
1998
|
+
deleted = true;
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
if (utils.isArray(header)) header.forEach(deleteHeader);
|
|
2003
|
+
else deleteHeader(header);
|
|
2004
|
+
return deleted;
|
|
2005
|
+
}
|
|
2006
|
+
clear(matcher) {
|
|
2007
|
+
const keys = Object.keys(this);
|
|
2008
|
+
let i = keys.length;
|
|
2009
|
+
let deleted = false;
|
|
2010
|
+
while(i--){
|
|
2011
|
+
const key = keys[i];
|
|
2012
|
+
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
2013
|
+
delete this[key];
|
|
2014
|
+
deleted = true;
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
return deleted;
|
|
2018
|
+
}
|
|
2019
|
+
normalize(format) {
|
|
2020
|
+
const self1 = this;
|
|
2021
|
+
const headers = {};
|
|
2022
|
+
utils.forEach(this, (value, header)=>{
|
|
2023
|
+
const key = utils.findKey(headers, header);
|
|
2024
|
+
if (key) {
|
|
2025
|
+
self1[key] = normalizeValue(value);
|
|
2026
|
+
delete self1[header];
|
|
2027
|
+
return;
|
|
2028
|
+
}
|
|
2029
|
+
const normalized = format ? formatHeader(header) : String(header).trim();
|
|
2030
|
+
if (normalized !== header) delete self1[header];
|
|
2031
|
+
self1[normalized] = normalizeValue(value);
|
|
2032
|
+
headers[normalized] = true;
|
|
2033
|
+
});
|
|
2034
|
+
return this;
|
|
2035
|
+
}
|
|
2036
|
+
concat(...targets) {
|
|
2037
|
+
return this.constructor.concat(this, ...targets);
|
|
2038
|
+
}
|
|
2039
|
+
toJSON(asStrings) {
|
|
2040
|
+
const obj = Object.create(null);
|
|
2041
|
+
utils.forEach(this, (value, header)=>{
|
|
2042
|
+
null != value && false !== value && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
|
|
2043
|
+
});
|
|
2044
|
+
return obj;
|
|
2045
|
+
}
|
|
2046
|
+
[Symbol.iterator]() {
|
|
2047
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
2048
|
+
}
|
|
2049
|
+
toString() {
|
|
2050
|
+
return Object.entries(this.toJSON()).map(([header, value])=>header + ': ' + value).join('\n');
|
|
2051
|
+
}
|
|
2052
|
+
getSetCookie() {
|
|
2053
|
+
return this.get("set-cookie") || [];
|
|
2054
|
+
}
|
|
2055
|
+
get [Symbol.toStringTag]() {
|
|
2056
|
+
return 'AxiosHeaders';
|
|
2057
|
+
}
|
|
2058
|
+
static from(thing) {
|
|
2059
|
+
return thing instanceof this ? thing : new this(thing);
|
|
2060
|
+
}
|
|
2061
|
+
static concat(first, ...targets) {
|
|
2062
|
+
const computed = new this(first);
|
|
2063
|
+
targets.forEach((target)=>computed.set(target));
|
|
2064
|
+
return computed;
|
|
2065
|
+
}
|
|
2066
|
+
static accessor(header) {
|
|
2067
|
+
const internals = this[$internals] = this[$internals] = {
|
|
2068
|
+
accessors: {}
|
|
2069
|
+
};
|
|
2070
|
+
const accessors = internals.accessors;
|
|
2071
|
+
const prototype = this.prototype;
|
|
2072
|
+
function defineAccessor(_header) {
|
|
2073
|
+
const lHeader = normalizeHeader(_header);
|
|
2074
|
+
if (!accessors[lHeader]) {
|
|
2075
|
+
buildAccessors(prototype, _header);
|
|
2076
|
+
accessors[lHeader] = true;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
2080
|
+
return this;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
AxiosHeaders.accessor([
|
|
2084
|
+
'Content-Type',
|
|
2085
|
+
'Content-Length',
|
|
2086
|
+
'Accept',
|
|
2087
|
+
'Accept-Encoding',
|
|
2088
|
+
'User-Agent',
|
|
2089
|
+
'Authorization'
|
|
2090
|
+
]);
|
|
2091
|
+
utils.reduceDescriptors(AxiosHeaders.prototype, ({ value }, key)=>{
|
|
2092
|
+
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
2093
|
+
return {
|
|
2094
|
+
get: ()=>value,
|
|
2095
|
+
set (headerValue) {
|
|
2096
|
+
this[mapped] = headerValue;
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
});
|
|
2100
|
+
utils.freezeMethods(AxiosHeaders);
|
|
2101
|
+
const core_AxiosHeaders = AxiosHeaders;
|
|
2102
|
+
function transformData(fns, response) {
|
|
2103
|
+
const config = this || lib_defaults;
|
|
2104
|
+
const context = response || config;
|
|
2105
|
+
const headers = core_AxiosHeaders.from(context.headers);
|
|
2106
|
+
let data = context.data;
|
|
2107
|
+
utils.forEach(fns, function(fn) {
|
|
2108
|
+
data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
|
|
2109
|
+
});
|
|
2110
|
+
headers.normalize();
|
|
2111
|
+
return data;
|
|
2112
|
+
}
|
|
2113
|
+
function isCancel(value) {
|
|
2114
|
+
return !!(value && value.__CANCEL__);
|
|
2115
|
+
}
|
|
2116
|
+
function CanceledError_CanceledError(message, config, request) {
|
|
2117
|
+
core_AxiosError.call(this, null == message ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
|
|
2118
|
+
this.name = 'CanceledError';
|
|
2119
|
+
}
|
|
2120
|
+
utils.inherits(CanceledError_CanceledError, core_AxiosError, {
|
|
2121
|
+
__CANCEL__: true
|
|
2122
|
+
});
|
|
2123
|
+
const CanceledError = CanceledError_CanceledError;
|
|
2124
|
+
function settle(resolve, reject, response) {
|
|
2125
|
+
const validateStatus = response.config.validateStatus;
|
|
2126
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
2127
|
+
else reject(new core_AxiosError('Request failed with status code ' + response.status, [
|
|
2128
|
+
core_AxiosError.ERR_BAD_REQUEST,
|
|
2129
|
+
core_AxiosError.ERR_BAD_RESPONSE
|
|
2130
|
+
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
2131
|
+
}
|
|
2132
|
+
function parseProtocol(url) {
|
|
2133
|
+
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
2134
|
+
return match && match[1] || '';
|
|
2135
|
+
}
|
|
2136
|
+
function speedometer(samplesCount, min) {
|
|
2137
|
+
samplesCount = samplesCount || 10;
|
|
2138
|
+
const bytes = new Array(samplesCount);
|
|
2139
|
+
const timestamps = new Array(samplesCount);
|
|
2140
|
+
let head = 0;
|
|
2141
|
+
let tail = 0;
|
|
2142
|
+
let firstSampleTS;
|
|
2143
|
+
min = void 0 !== min ? min : 1000;
|
|
2144
|
+
return function(chunkLength) {
|
|
2145
|
+
const now = Date.now();
|
|
2146
|
+
const startedAt = timestamps[tail];
|
|
2147
|
+
if (!firstSampleTS) firstSampleTS = now;
|
|
2148
|
+
bytes[head] = chunkLength;
|
|
2149
|
+
timestamps[head] = now;
|
|
2150
|
+
let i = tail;
|
|
2151
|
+
let bytesCount = 0;
|
|
2152
|
+
while(i !== head){
|
|
2153
|
+
bytesCount += bytes[i++];
|
|
2154
|
+
i %= samplesCount;
|
|
2155
|
+
}
|
|
2156
|
+
head = (head + 1) % samplesCount;
|
|
2157
|
+
if (head === tail) tail = (tail + 1) % samplesCount;
|
|
2158
|
+
if (now - firstSampleTS < min) return;
|
|
2159
|
+
const passed = startedAt && now - startedAt;
|
|
2160
|
+
return passed ? Math.round(1000 * bytesCount / passed) : void 0;
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2163
|
+
const helpers_speedometer = speedometer;
|
|
2164
|
+
function throttle(fn, freq) {
|
|
2165
|
+
let timestamp = 0;
|
|
2166
|
+
let threshold = 1000 / freq;
|
|
2167
|
+
let lastArgs;
|
|
2168
|
+
let timer;
|
|
2169
|
+
const invoke = (args, now = Date.now())=>{
|
|
2170
|
+
timestamp = now;
|
|
2171
|
+
lastArgs = null;
|
|
2172
|
+
if (timer) {
|
|
2173
|
+
clearTimeout(timer);
|
|
2174
|
+
timer = null;
|
|
2175
|
+
}
|
|
2176
|
+
fn.apply(null, args);
|
|
2177
|
+
};
|
|
2178
|
+
const throttled = (...args)=>{
|
|
2179
|
+
const now = Date.now();
|
|
2180
|
+
const passed = now - timestamp;
|
|
2181
|
+
if (passed >= threshold) invoke(args, now);
|
|
2182
|
+
else {
|
|
2183
|
+
lastArgs = args;
|
|
2184
|
+
if (!timer) timer = setTimeout(()=>{
|
|
2185
|
+
timer = null;
|
|
2186
|
+
invoke(lastArgs);
|
|
2187
|
+
}, threshold - passed);
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
2190
|
+
const flush = ()=>lastArgs && invoke(lastArgs);
|
|
2191
|
+
return [
|
|
2192
|
+
throttled,
|
|
2193
|
+
flush
|
|
2194
|
+
];
|
|
2195
|
+
}
|
|
2196
|
+
const helpers_throttle = throttle;
|
|
2197
|
+
const progressEventReducer = (listener, isDownloadStream, freq = 3)=>{
|
|
2198
|
+
let bytesNotified = 0;
|
|
2199
|
+
const _speedometer = helpers_speedometer(50, 250);
|
|
2200
|
+
return helpers_throttle((e)=>{
|
|
2201
|
+
const loaded = e.loaded;
|
|
2202
|
+
const total = e.lengthComputable ? e.total : void 0;
|
|
2203
|
+
const progressBytes = loaded - bytesNotified;
|
|
2204
|
+
const rate = _speedometer(progressBytes);
|
|
2205
|
+
const inRange = loaded <= total;
|
|
2206
|
+
bytesNotified = loaded;
|
|
2207
|
+
const data = {
|
|
2208
|
+
loaded,
|
|
2209
|
+
total,
|
|
2210
|
+
progress: total ? loaded / total : void 0,
|
|
2211
|
+
bytes: progressBytes,
|
|
2212
|
+
rate: rate ? rate : void 0,
|
|
2213
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
2214
|
+
event: e,
|
|
2215
|
+
lengthComputable: null != total,
|
|
2216
|
+
[isDownloadStream ? 'download' : 'upload']: true
|
|
2217
|
+
};
|
|
2218
|
+
listener(data);
|
|
2219
|
+
}, freq);
|
|
2220
|
+
};
|
|
2221
|
+
const progressEventDecorator = (total, throttled)=>{
|
|
2222
|
+
const lengthComputable = null != total;
|
|
2223
|
+
return [
|
|
2224
|
+
(loaded)=>throttled[0]({
|
|
2225
|
+
lengthComputable,
|
|
2226
|
+
total,
|
|
2227
|
+
loaded
|
|
2228
|
+
}),
|
|
2229
|
+
throttled[1]
|
|
2230
|
+
];
|
|
2231
|
+
};
|
|
2232
|
+
const asyncDecorator = (fn)=>(...args)=>utils.asap(()=>fn(...args));
|
|
2233
|
+
const isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin, isMSIE)=>(url)=>{
|
|
2234
|
+
url = new URL(url, platform.origin);
|
|
2235
|
+
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
|
2236
|
+
})(new URL(platform.origin), platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)) : ()=>true;
|
|
2237
|
+
const cookies = platform.hasStandardBrowserEnv ? {
|
|
2238
|
+
write (name, value, expires, path, domain, secure) {
|
|
2239
|
+
const cookie = [
|
|
2240
|
+
name + '=' + encodeURIComponent(value)
|
|
2241
|
+
];
|
|
2242
|
+
utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
|
|
2243
|
+
utils.isString(path) && cookie.push('path=' + path);
|
|
2244
|
+
utils.isString(domain) && cookie.push('domain=' + domain);
|
|
2245
|
+
true === secure && cookie.push('secure');
|
|
2246
|
+
document.cookie = cookie.join('; ');
|
|
2247
|
+
},
|
|
2248
|
+
read (name) {
|
|
2249
|
+
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
|
2250
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
2251
|
+
},
|
|
2252
|
+
remove (name) {
|
|
2253
|
+
this.write(name, '', Date.now() - 86400000);
|
|
2254
|
+
}
|
|
2255
|
+
} : {
|
|
2256
|
+
write () {},
|
|
2257
|
+
read () {
|
|
2258
|
+
return null;
|
|
2259
|
+
},
|
|
2260
|
+
remove () {}
|
|
2261
|
+
};
|
|
2262
|
+
function isAbsoluteURL(url) {
|
|
2263
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
2264
|
+
}
|
|
2265
|
+
function combineURLs(baseURL, relativeURL) {
|
|
2266
|
+
return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
|
|
2267
|
+
}
|
|
2268
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
2269
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
2270
|
+
if (baseURL && (isRelativeUrl || false == allowAbsoluteUrls)) return combineURLs(baseURL, requestedURL);
|
|
2271
|
+
return requestedURL;
|
|
2272
|
+
}
|
|
2273
|
+
const headersToObject = (thing)=>thing instanceof core_AxiosHeaders ? {
|
|
2274
|
+
...thing
|
|
2275
|
+
} : thing;
|
|
2276
|
+
function mergeConfig(config1, config2) {
|
|
2277
|
+
config2 = config2 || {};
|
|
2278
|
+
const config = {};
|
|
2279
|
+
function getMergedValue(target, source, prop, caseless) {
|
|
2280
|
+
if (utils.isPlainObject(target) && utils.isPlainObject(source)) return utils.merge.call({
|
|
2281
|
+
caseless
|
|
2282
|
+
}, target, source);
|
|
2283
|
+
if (utils.isPlainObject(source)) return utils.merge({}, source);
|
|
2284
|
+
if (utils.isArray(source)) return source.slice();
|
|
2285
|
+
return source;
|
|
2286
|
+
}
|
|
2287
|
+
function mergeDeepProperties(a, b, prop, caseless) {
|
|
2288
|
+
if (!utils.isUndefined(b)) return getMergedValue(a, b, prop, caseless);
|
|
2289
|
+
if (!utils.isUndefined(a)) return getMergedValue(void 0, a, prop, caseless);
|
|
2290
|
+
}
|
|
2291
|
+
function valueFromConfig2(a, b) {
|
|
2292
|
+
if (!utils.isUndefined(b)) return getMergedValue(void 0, b);
|
|
2293
|
+
}
|
|
2294
|
+
function defaultToConfig2(a, b) {
|
|
2295
|
+
if (!utils.isUndefined(b)) return getMergedValue(void 0, b);
|
|
2296
|
+
if (!utils.isUndefined(a)) return getMergedValue(void 0, a);
|
|
2297
|
+
}
|
|
2298
|
+
function mergeDirectKeys(a, b, prop) {
|
|
2299
|
+
if (prop in config2) return getMergedValue(a, b);
|
|
2300
|
+
if (prop in config1) return getMergedValue(void 0, a);
|
|
2301
|
+
}
|
|
2302
|
+
const mergeMap = {
|
|
2303
|
+
url: valueFromConfig2,
|
|
2304
|
+
method: valueFromConfig2,
|
|
2305
|
+
data: valueFromConfig2,
|
|
2306
|
+
baseURL: defaultToConfig2,
|
|
2307
|
+
transformRequest: defaultToConfig2,
|
|
2308
|
+
transformResponse: defaultToConfig2,
|
|
2309
|
+
paramsSerializer: defaultToConfig2,
|
|
2310
|
+
timeout: defaultToConfig2,
|
|
2311
|
+
timeoutMessage: defaultToConfig2,
|
|
2312
|
+
withCredentials: defaultToConfig2,
|
|
2313
|
+
withXSRFToken: defaultToConfig2,
|
|
2314
|
+
adapter: defaultToConfig2,
|
|
2315
|
+
responseType: defaultToConfig2,
|
|
2316
|
+
xsrfCookieName: defaultToConfig2,
|
|
2317
|
+
xsrfHeaderName: defaultToConfig2,
|
|
2318
|
+
onUploadProgress: defaultToConfig2,
|
|
2319
|
+
onDownloadProgress: defaultToConfig2,
|
|
2320
|
+
decompress: defaultToConfig2,
|
|
2321
|
+
maxContentLength: defaultToConfig2,
|
|
2322
|
+
maxBodyLength: defaultToConfig2,
|
|
2323
|
+
beforeRedirect: defaultToConfig2,
|
|
2324
|
+
transport: defaultToConfig2,
|
|
2325
|
+
httpAgent: defaultToConfig2,
|
|
2326
|
+
httpsAgent: defaultToConfig2,
|
|
2327
|
+
cancelToken: defaultToConfig2,
|
|
2328
|
+
socketPath: defaultToConfig2,
|
|
2329
|
+
responseEncoding: defaultToConfig2,
|
|
2330
|
+
validateStatus: mergeDirectKeys,
|
|
2331
|
+
headers: (a, b, prop)=>mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
2332
|
+
};
|
|
2333
|
+
utils.forEach(Object.keys(Object.assign({}, config1, config2)), function(prop) {
|
|
2334
|
+
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
2335
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
2336
|
+
utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
|
2337
|
+
});
|
|
2338
|
+
return config;
|
|
2339
|
+
}
|
|
2340
|
+
const resolveConfig = (config)=>{
|
|
2341
|
+
const newConfig = mergeConfig({}, config);
|
|
2342
|
+
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
2343
|
+
newConfig.headers = headers = core_AxiosHeaders.from(headers);
|
|
2344
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
2345
|
+
if (auth) headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
|
2346
|
+
let contentType;
|
|
2347
|
+
if (utils.isFormData(data)) {
|
|
2348
|
+
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) headers.setContentType(void 0);
|
|
2349
|
+
else if (false !== (contentType = headers.getContentType())) {
|
|
2350
|
+
const [type, ...tokens] = contentType ? contentType.split(';').map((token)=>token.trim()).filter(Boolean) : [];
|
|
2351
|
+
headers.setContentType([
|
|
2352
|
+
type || 'multipart/form-data',
|
|
2353
|
+
...tokens
|
|
2354
|
+
].join('; '));
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
if (platform.hasStandardBrowserEnv) {
|
|
2358
|
+
withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
2359
|
+
if (withXSRFToken || false !== withXSRFToken && isURLSameOrigin(newConfig.url)) {
|
|
2360
|
+
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
2361
|
+
if (xsrfValue) headers.set(xsrfHeaderName, xsrfValue);
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
return newConfig;
|
|
2365
|
+
};
|
|
2366
|
+
const isXHRAdapterSupported = 'undefined' != typeof XMLHttpRequest;
|
|
2367
|
+
const xhr = isXHRAdapterSupported && function(config) {
|
|
2368
|
+
return new Promise(function(resolve, reject) {
|
|
2369
|
+
const _config = resolveConfig(config);
|
|
2370
|
+
let requestData = _config.data;
|
|
2371
|
+
const requestHeaders = core_AxiosHeaders.from(_config.headers).normalize();
|
|
2372
|
+
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
2373
|
+
let onCanceled;
|
|
2374
|
+
let uploadThrottled, downloadThrottled;
|
|
2375
|
+
let flushUpload, flushDownload;
|
|
2376
|
+
function done() {
|
|
2377
|
+
flushUpload && flushUpload();
|
|
2378
|
+
flushDownload && flushDownload();
|
|
2379
|
+
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
|
2380
|
+
_config.signal && _config.signal.removeEventListener('abort', onCanceled);
|
|
2381
|
+
}
|
|
2382
|
+
let request = new XMLHttpRequest();
|
|
2383
|
+
request.open(_config.method.toUpperCase(), _config.url, true);
|
|
2384
|
+
request.timeout = _config.timeout;
|
|
2385
|
+
function onloadend() {
|
|
2386
|
+
if (!request) return;
|
|
2387
|
+
const responseHeaders = core_AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
|
|
2388
|
+
const responseData = responseType && 'text' !== responseType && 'json' !== responseType ? request.response : request.responseText;
|
|
2389
|
+
const response = {
|
|
2390
|
+
data: responseData,
|
|
2391
|
+
status: request.status,
|
|
2392
|
+
statusText: request.statusText,
|
|
2393
|
+
headers: responseHeaders,
|
|
2394
|
+
config,
|
|
2395
|
+
request
|
|
2396
|
+
};
|
|
2397
|
+
settle(function(value) {
|
|
2398
|
+
resolve(value);
|
|
2399
|
+
done();
|
|
2400
|
+
}, function(err) {
|
|
2401
|
+
reject(err);
|
|
2402
|
+
done();
|
|
2403
|
+
}, response);
|
|
2404
|
+
request = null;
|
|
2405
|
+
}
|
|
2406
|
+
if ('onloadend' in request) request.onloadend = onloadend;
|
|
2407
|
+
else request.onreadystatechange = function() {
|
|
2408
|
+
if (!request || 4 !== request.readyState) return;
|
|
2409
|
+
if (0 === request.status && !(request.responseURL && 0 === request.responseURL.indexOf('file:'))) return;
|
|
2410
|
+
setTimeout(onloadend);
|
|
2411
|
+
};
|
|
2412
|
+
request.onabort = function() {
|
|
2413
|
+
if (!request) return;
|
|
2414
|
+
reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
|
|
2415
|
+
request = null;
|
|
2416
|
+
};
|
|
2417
|
+
request.onerror = function() {
|
|
2418
|
+
reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
|
|
2419
|
+
request = null;
|
|
2420
|
+
};
|
|
2421
|
+
request.ontimeout = function() {
|
|
2422
|
+
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
2423
|
+
const transitional = _config.transitional || defaults_transitional;
|
|
2424
|
+
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
2425
|
+
reject(new core_AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED, config, request));
|
|
2426
|
+
request = null;
|
|
2427
|
+
};
|
|
2428
|
+
void 0 === requestData && requestHeaders.setContentType(null);
|
|
2429
|
+
if ('setRequestHeader' in request) utils.forEach(requestHeaders.toJSON(), function(val, key) {
|
|
2430
|
+
request.setRequestHeader(key, val);
|
|
2431
|
+
});
|
|
2432
|
+
if (!utils.isUndefined(_config.withCredentials)) request.withCredentials = !!_config.withCredentials;
|
|
2433
|
+
if (responseType && 'json' !== responseType) request.responseType = _config.responseType;
|
|
2434
|
+
if (onDownloadProgress) {
|
|
2435
|
+
[downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
|
|
2436
|
+
request.addEventListener('progress', downloadThrottled);
|
|
2437
|
+
}
|
|
2438
|
+
if (onUploadProgress && request.upload) {
|
|
2439
|
+
[uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
|
|
2440
|
+
request.upload.addEventListener('progress', uploadThrottled);
|
|
2441
|
+
request.upload.addEventListener('loadend', flushUpload);
|
|
2442
|
+
}
|
|
2443
|
+
if (_config.cancelToken || _config.signal) {
|
|
2444
|
+
onCanceled = (cancel)=>{
|
|
2445
|
+
if (!request) return;
|
|
2446
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
|
2447
|
+
request.abort();
|
|
2448
|
+
request = null;
|
|
2449
|
+
};
|
|
2450
|
+
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
|
2451
|
+
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
2452
|
+
}
|
|
2453
|
+
const protocol = parseProtocol(_config.url);
|
|
2454
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
|
|
2455
|
+
request.send(requestData || null);
|
|
2456
|
+
});
|
|
2457
|
+
};
|
|
2458
|
+
const composeSignals_composeSignals = (signals, timeout)=>{
|
|
2459
|
+
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
2460
|
+
if (timeout || length) {
|
|
2461
|
+
let controller = new AbortController();
|
|
2462
|
+
let aborted;
|
|
2463
|
+
const onabort = function(reason) {
|
|
2464
|
+
if (!aborted) {
|
|
2465
|
+
aborted = true;
|
|
2466
|
+
unsubscribe();
|
|
2467
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
2468
|
+
controller.abort(err instanceof core_AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
|
2469
|
+
}
|
|
2470
|
+
};
|
|
2471
|
+
let timer = timeout && setTimeout(()=>{
|
|
2472
|
+
timer = null;
|
|
2473
|
+
onabort(new core_AxiosError(`timeout ${timeout} of ms exceeded`, core_AxiosError.ETIMEDOUT));
|
|
2474
|
+
}, timeout);
|
|
2475
|
+
const unsubscribe = ()=>{
|
|
2476
|
+
if (signals) {
|
|
2477
|
+
timer && clearTimeout(timer);
|
|
2478
|
+
timer = null;
|
|
2479
|
+
signals.forEach((signal)=>{
|
|
2480
|
+
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
|
|
2481
|
+
});
|
|
2482
|
+
signals = null;
|
|
2483
|
+
}
|
|
2484
|
+
};
|
|
2485
|
+
signals.forEach((signal)=>signal.addEventListener('abort', onabort));
|
|
2486
|
+
const { signal } = controller;
|
|
2487
|
+
signal.unsubscribe = ()=>utils.asap(unsubscribe);
|
|
2488
|
+
return signal;
|
|
2489
|
+
}
|
|
2490
|
+
};
|
|
2491
|
+
const composeSignals = composeSignals_composeSignals;
|
|
2492
|
+
const streamChunk = function*(chunk, chunkSize) {
|
|
2493
|
+
let len = chunk.byteLength;
|
|
2494
|
+
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
2495
|
+
let pos = 0;
|
|
2496
|
+
let end;
|
|
2497
|
+
while(pos < len){
|
|
2498
|
+
end = pos + chunkSize;
|
|
2499
|
+
yield chunk.slice(pos, end);
|
|
2500
|
+
pos = end;
|
|
2501
|
+
}
|
|
2502
|
+
};
|
|
2503
|
+
const readBytes = async function*(iterable, chunkSize) {
|
|
2504
|
+
for await (const chunk of readStream(iterable))yield* streamChunk(chunk, chunkSize);
|
|
2505
|
+
};
|
|
2506
|
+
const readStream = async function*(stream) {
|
|
2507
|
+
if (stream[Symbol.asyncIterator]) return void (yield* stream);
|
|
2508
|
+
const reader = stream.getReader();
|
|
2509
|
+
try {
|
|
2510
|
+
for(;;){
|
|
2511
|
+
const { done, value } = await reader.read();
|
|
2512
|
+
if (done) break;
|
|
2513
|
+
yield value;
|
|
2514
|
+
}
|
|
2515
|
+
} finally{
|
|
2516
|
+
await reader.cancel();
|
|
2517
|
+
}
|
|
2518
|
+
};
|
|
2519
|
+
const trackStream = (stream, chunkSize, onProgress, onFinish)=>{
|
|
2520
|
+
const iterator = readBytes(stream, chunkSize);
|
|
2521
|
+
let bytes = 0;
|
|
2522
|
+
let done;
|
|
2523
|
+
let _onFinish = (e)=>{
|
|
2524
|
+
if (!done) {
|
|
2525
|
+
done = true;
|
|
2526
|
+
onFinish && onFinish(e);
|
|
2527
|
+
}
|
|
2528
|
+
};
|
|
2529
|
+
return new ReadableStream({
|
|
2530
|
+
async pull (controller) {
|
|
2531
|
+
try {
|
|
2532
|
+
const { done, value } = await iterator.next();
|
|
2533
|
+
if (done) {
|
|
2534
|
+
_onFinish();
|
|
2535
|
+
controller.close();
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
let len = value.byteLength;
|
|
2539
|
+
if (onProgress) {
|
|
2540
|
+
let loadedBytes = bytes += len;
|
|
2541
|
+
onProgress(loadedBytes);
|
|
2542
|
+
}
|
|
2543
|
+
controller.enqueue(new Uint8Array(value));
|
|
2544
|
+
} catch (err) {
|
|
2545
|
+
_onFinish(err);
|
|
2546
|
+
throw err;
|
|
2547
|
+
}
|
|
2548
|
+
},
|
|
2549
|
+
cancel (reason) {
|
|
2550
|
+
_onFinish(reason);
|
|
2551
|
+
return iterator.return();
|
|
2552
|
+
}
|
|
2553
|
+
}, {
|
|
2554
|
+
highWaterMark: 2
|
|
2555
|
+
});
|
|
2556
|
+
};
|
|
2557
|
+
const isFetchSupported = 'function' == typeof fetch && 'function' == typeof Request && 'function' == typeof Response;
|
|
2558
|
+
const isReadableStreamSupported = isFetchSupported && 'function' == typeof ReadableStream;
|
|
2559
|
+
const encodeText = isFetchSupported && ('function' == typeof TextEncoder ? ((encoder)=>(str)=>encoder.encode(str))(new TextEncoder()) : async (str)=>new Uint8Array(await new Response(str).arrayBuffer()));
|
|
2560
|
+
const test = (fn, ...args)=>{
|
|
2561
|
+
try {
|
|
2562
|
+
return !!fn(...args);
|
|
2563
|
+
} catch (e) {
|
|
2564
|
+
return false;
|
|
2565
|
+
}
|
|
2566
|
+
};
|
|
2567
|
+
const supportsRequestStream = isReadableStreamSupported && test(()=>{
|
|
2568
|
+
let duplexAccessed = false;
|
|
2569
|
+
const hasContentType = new Request(platform.origin, {
|
|
2570
|
+
body: new ReadableStream(),
|
|
2571
|
+
method: 'POST',
|
|
2572
|
+
get duplex () {
|
|
2573
|
+
duplexAccessed = true;
|
|
2574
|
+
return 'half';
|
|
2575
|
+
}
|
|
2576
|
+
}).headers.has('Content-Type');
|
|
2577
|
+
return duplexAccessed && !hasContentType;
|
|
2578
|
+
});
|
|
2579
|
+
const DEFAULT_CHUNK_SIZE = 65536;
|
|
2580
|
+
const supportsResponseStream = isReadableStreamSupported && test(()=>utils.isReadableStream(new Response('').body));
|
|
2581
|
+
const resolvers = {
|
|
2582
|
+
stream: supportsResponseStream && ((res)=>res.body)
|
|
2583
|
+
};
|
|
2584
|
+
isFetchSupported && ((res)=>{
|
|
2585
|
+
[
|
|
2586
|
+
'text',
|
|
2587
|
+
'arrayBuffer',
|
|
2588
|
+
'blob',
|
|
2589
|
+
'formData',
|
|
2590
|
+
'stream'
|
|
2591
|
+
].forEach((type)=>{
|
|
2592
|
+
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
2593
|
+
throw new core_AxiosError(`Response type '${type}' is not supported`, core_AxiosError.ERR_NOT_SUPPORT, config);
|
|
2594
|
+
});
|
|
2595
|
+
});
|
|
2596
|
+
})(new Response);
|
|
2597
|
+
const getBodyLength = async (body)=>{
|
|
2598
|
+
if (null == body) return 0;
|
|
2599
|
+
if (utils.isBlob(body)) return body.size;
|
|
2600
|
+
if (utils.isSpecCompliantForm(body)) {
|
|
2601
|
+
const _request = new Request(platform.origin, {
|
|
2602
|
+
method: 'POST',
|
|
2603
|
+
body
|
|
2604
|
+
});
|
|
2605
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
2606
|
+
}
|
|
2607
|
+
if (utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) return body.byteLength;
|
|
2608
|
+
if (utils.isURLSearchParams(body)) body += '';
|
|
2609
|
+
if (utils.isString(body)) return (await encodeText(body)).byteLength;
|
|
2610
|
+
};
|
|
2611
|
+
const resolveBodyLength = async (headers, body)=>{
|
|
2612
|
+
const length = utils.toFiniteNumber(headers.getContentLength());
|
|
2613
|
+
return null == length ? getBodyLength(body) : length;
|
|
2614
|
+
};
|
|
2615
|
+
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
2616
|
+
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
2617
|
+
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
2618
|
+
let composedSignal = composeSignals([
|
|
2619
|
+
signal,
|
|
2620
|
+
cancelToken && cancelToken.toAbortSignal()
|
|
2621
|
+
], timeout);
|
|
2622
|
+
let request;
|
|
2623
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
|
2624
|
+
composedSignal.unsubscribe();
|
|
2625
|
+
});
|
|
2626
|
+
let requestContentLength;
|
|
2627
|
+
try {
|
|
2628
|
+
if (onUploadProgress && supportsRequestStream && 'get' !== method && 'head' !== method && 0 !== (requestContentLength = await resolveBodyLength(headers, data))) {
|
|
2629
|
+
let _request = new Request(url, {
|
|
2630
|
+
method: 'POST',
|
|
2631
|
+
body: data,
|
|
2632
|
+
duplex: "half"
|
|
2633
|
+
});
|
|
2634
|
+
let contentTypeHeader;
|
|
2635
|
+
if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) headers.setContentType(contentTypeHeader);
|
|
2636
|
+
if (_request.body) {
|
|
2637
|
+
const [onProgress, flush] = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress)));
|
|
2638
|
+
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
if (!utils.isString(withCredentials)) withCredentials = withCredentials ? 'include' : 'omit';
|
|
2642
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
2643
|
+
request = new Request(url, {
|
|
2644
|
+
...fetchOptions,
|
|
2645
|
+
signal: composedSignal,
|
|
2646
|
+
method: method.toUpperCase(),
|
|
2647
|
+
headers: headers.normalize().toJSON(),
|
|
2648
|
+
body: data,
|
|
2649
|
+
duplex: "half",
|
|
2650
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
2651
|
+
});
|
|
2652
|
+
let response = await fetch(request);
|
|
2653
|
+
const isStreamResponse = supportsResponseStream && ('stream' === responseType || 'response' === responseType);
|
|
2654
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
2655
|
+
const options = {};
|
|
2656
|
+
[
|
|
2657
|
+
'status',
|
|
2658
|
+
'statusText',
|
|
2659
|
+
'headers'
|
|
2660
|
+
].forEach((prop)=>{
|
|
2661
|
+
options[prop] = response[prop];
|
|
2662
|
+
});
|
|
2663
|
+
const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
2664
|
+
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
|
|
2665
|
+
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, ()=>{
|
|
2666
|
+
flush && flush();
|
|
2667
|
+
unsubscribe && unsubscribe();
|
|
2668
|
+
}), options);
|
|
2669
|
+
}
|
|
2670
|
+
responseType = responseType || 'text';
|
|
2671
|
+
let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);
|
|
2672
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
2673
|
+
return await new Promise((resolve, reject)=>{
|
|
2674
|
+
settle(resolve, reject, {
|
|
2675
|
+
data: responseData,
|
|
2676
|
+
headers: core_AxiosHeaders.from(response.headers),
|
|
2677
|
+
status: response.status,
|
|
2678
|
+
statusText: response.statusText,
|
|
2679
|
+
config,
|
|
2680
|
+
request
|
|
2681
|
+
});
|
|
2682
|
+
});
|
|
2683
|
+
} catch (err) {
|
|
2684
|
+
unsubscribe && unsubscribe();
|
|
2685
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request), {
|
|
2686
|
+
cause: err.cause || err
|
|
2687
|
+
});
|
|
2688
|
+
throw core_AxiosError.from(err, err && err.code, config, request);
|
|
2689
|
+
}
|
|
2690
|
+
});
|
|
2691
|
+
const knownAdapters = {
|
|
2692
|
+
http: helpers_null,
|
|
2693
|
+
xhr: xhr,
|
|
2694
|
+
fetch: adapters_fetch
|
|
2695
|
+
};
|
|
2696
|
+
utils.forEach(knownAdapters, (fn, value)=>{
|
|
2697
|
+
if (fn) {
|
|
2698
|
+
try {
|
|
2699
|
+
Object.defineProperty(fn, 'name', {
|
|
2700
|
+
value
|
|
2701
|
+
});
|
|
2702
|
+
} catch (e) {}
|
|
2703
|
+
Object.defineProperty(fn, 'adapterName', {
|
|
2704
|
+
value
|
|
2705
|
+
});
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
const renderReason = (reason)=>`- ${reason}`;
|
|
2709
|
+
const isResolvedHandle = (adapter)=>utils.isFunction(adapter) || null === adapter || false === adapter;
|
|
2710
|
+
const adapters_adapters = {
|
|
2711
|
+
getAdapter: (adapters)=>{
|
|
2712
|
+
adapters = utils.isArray(adapters) ? adapters : [
|
|
2713
|
+
adapters
|
|
2714
|
+
];
|
|
2715
|
+
const { length } = adapters;
|
|
2716
|
+
let nameOrAdapter;
|
|
2717
|
+
let adapter;
|
|
2718
|
+
const rejectedReasons = {};
|
|
2719
|
+
for(let i = 0; i < length; i++){
|
|
2720
|
+
nameOrAdapter = adapters[i];
|
|
2721
|
+
let id;
|
|
2722
|
+
adapter = nameOrAdapter;
|
|
2723
|
+
if (!isResolvedHandle(nameOrAdapter)) {
|
|
2724
|
+
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
2725
|
+
if (void 0 === adapter) throw new core_AxiosError(`Unknown adapter '${id}'`);
|
|
2726
|
+
}
|
|
2727
|
+
if (adapter) break;
|
|
2728
|
+
rejectedReasons[id || '#' + i] = adapter;
|
|
2729
|
+
}
|
|
2730
|
+
if (!adapter) {
|
|
2731
|
+
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
2732
|
+
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
2733
|
+
throw new core_AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
2734
|
+
}
|
|
2735
|
+
return adapter;
|
|
2736
|
+
},
|
|
2737
|
+
adapters: knownAdapters
|
|
2738
|
+
};
|
|
2739
|
+
function throwIfCancellationRequested(config) {
|
|
2740
|
+
if (config.cancelToken) config.cancelToken.throwIfRequested();
|
|
2741
|
+
if (config.signal && config.signal.aborted) throw new CanceledError(null, config);
|
|
2742
|
+
}
|
|
2743
|
+
function dispatchRequest(config) {
|
|
2744
|
+
throwIfCancellationRequested(config);
|
|
2745
|
+
config.headers = core_AxiosHeaders.from(config.headers);
|
|
2746
|
+
config.data = transformData.call(config, config.transformRequest);
|
|
2747
|
+
if (-1 !== [
|
|
2748
|
+
'post',
|
|
2749
|
+
'put',
|
|
2750
|
+
'patch'
|
|
2751
|
+
].indexOf(config.method)) config.headers.setContentType('application/x-www-form-urlencoded', false);
|
|
2752
|
+
const adapter = adapters_adapters.getAdapter(config.adapter || lib_defaults.adapter);
|
|
2753
|
+
return adapter(config).then(function(response) {
|
|
2754
|
+
throwIfCancellationRequested(config);
|
|
2755
|
+
response.data = transformData.call(config, config.transformResponse, response);
|
|
2756
|
+
response.headers = core_AxiosHeaders.from(response.headers);
|
|
2757
|
+
return response;
|
|
2758
|
+
}, function(reason) {
|
|
2759
|
+
if (!isCancel(reason)) {
|
|
2760
|
+
throwIfCancellationRequested(config);
|
|
2761
|
+
if (reason && reason.response) {
|
|
2762
|
+
reason.response.data = transformData.call(config, config.transformResponse, reason.response);
|
|
2763
|
+
reason.response.headers = core_AxiosHeaders.from(reason.response.headers);
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
return Promise.reject(reason);
|
|
2767
|
+
});
|
|
2768
|
+
}
|
|
2769
|
+
const VERSION = "1.9.0";
|
|
2770
|
+
const validators = {};
|
|
2771
|
+
[
|
|
2772
|
+
'object',
|
|
2773
|
+
'boolean',
|
|
2774
|
+
'number',
|
|
2775
|
+
'function',
|
|
2776
|
+
'string',
|
|
2777
|
+
'symbol'
|
|
2778
|
+
].forEach((type, i)=>{
|
|
2779
|
+
validators[type] = function(thing) {
|
|
2780
|
+
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
2781
|
+
};
|
|
2782
|
+
});
|
|
2783
|
+
const deprecatedWarnings = {};
|
|
2784
|
+
validators.transitional = function(validator, version, message) {
|
|
2785
|
+
function formatMessage(opt, desc) {
|
|
2786
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
2787
|
+
}
|
|
2788
|
+
return (value, opt, opts)=>{
|
|
2789
|
+
if (false === validator) throw new core_AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), core_AxiosError.ERR_DEPRECATED);
|
|
2790
|
+
if (version && !deprecatedWarnings[opt]) {
|
|
2791
|
+
deprecatedWarnings[opt] = true;
|
|
2792
|
+
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
2793
|
+
}
|
|
2794
|
+
return validator ? validator(value, opt, opts) : true;
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
validators.spelling = function(correctSpelling) {
|
|
2798
|
+
return (value, opt)=>{
|
|
2799
|
+
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
2800
|
+
return true;
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
function assertOptions(options, schema, allowUnknown) {
|
|
2804
|
+
if ('object' != typeof options) throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2805
|
+
const keys = Object.keys(options);
|
|
2806
|
+
let i = keys.length;
|
|
2807
|
+
while(i-- > 0){
|
|
2808
|
+
const opt = keys[i];
|
|
2809
|
+
const validator = schema[opt];
|
|
2810
|
+
if (validator) {
|
|
2811
|
+
const value = options[opt];
|
|
2812
|
+
const result = void 0 === value || validator(value, opt, options);
|
|
2813
|
+
if (true !== result) throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
2814
|
+
continue;
|
|
2815
|
+
}
|
|
2816
|
+
if (true !== allowUnknown) throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
const helpers_validator = {
|
|
2820
|
+
assertOptions,
|
|
2821
|
+
validators
|
|
2822
|
+
};
|
|
2823
|
+
const Axios_validators = helpers_validator.validators;
|
|
2824
|
+
class Axios_Axios {
|
|
2825
|
+
constructor(instanceConfig){
|
|
2826
|
+
this.defaults = instanceConfig || {};
|
|
2827
|
+
this.interceptors = {
|
|
2828
|
+
request: new core_InterceptorManager(),
|
|
2829
|
+
response: new core_InterceptorManager()
|
|
2830
|
+
};
|
|
2831
|
+
}
|
|
2832
|
+
async request(configOrUrl, config) {
|
|
2833
|
+
try {
|
|
2834
|
+
return await this._request(configOrUrl, config);
|
|
2835
|
+
} catch (err) {
|
|
2836
|
+
if (err instanceof Error) {
|
|
2837
|
+
let dummy = {};
|
|
2838
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
2839
|
+
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
|
2840
|
+
try {
|
|
2841
|
+
if (err.stack) {
|
|
2842
|
+
if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) err.stack += '\n' + stack;
|
|
2843
|
+
} else err.stack = stack;
|
|
2844
|
+
} catch (e) {}
|
|
2845
|
+
}
|
|
2846
|
+
throw err;
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
_request(configOrUrl, config) {
|
|
2850
|
+
if ('string' == typeof configOrUrl) {
|
|
2851
|
+
config = config || {};
|
|
2852
|
+
config.url = configOrUrl;
|
|
2853
|
+
} else config = configOrUrl || {};
|
|
2854
|
+
config = mergeConfig(this.defaults, config);
|
|
2855
|
+
const { transitional, paramsSerializer, headers } = config;
|
|
2856
|
+
if (void 0 !== transitional) helpers_validator.assertOptions(transitional, {
|
|
2857
|
+
silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
2858
|
+
forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
|
|
2859
|
+
clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
|
|
2860
|
+
}, false);
|
|
2861
|
+
if (null != paramsSerializer) if (utils.isFunction(paramsSerializer)) config.paramsSerializer = {
|
|
2862
|
+
serialize: paramsSerializer
|
|
2863
|
+
};
|
|
2864
|
+
else helpers_validator.assertOptions(paramsSerializer, {
|
|
2865
|
+
encode: Axios_validators.function,
|
|
2866
|
+
serialize: Axios_validators.function
|
|
2867
|
+
}, true);
|
|
2868
|
+
if (void 0 !== config.allowAbsoluteUrls) ;
|
|
2869
|
+
else if (void 0 !== this.defaults.allowAbsoluteUrls) config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
2870
|
+
else config.allowAbsoluteUrls = true;
|
|
2871
|
+
helpers_validator.assertOptions(config, {
|
|
2872
|
+
baseUrl: Axios_validators.spelling('baseURL'),
|
|
2873
|
+
withXsrfToken: Axios_validators.spelling('withXSRFToken')
|
|
2874
|
+
}, true);
|
|
2875
|
+
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
|
2876
|
+
let contextHeaders = headers && utils.merge(headers.common, headers[config.method]);
|
|
2877
|
+
headers && utils.forEach([
|
|
2878
|
+
'delete',
|
|
2879
|
+
'get',
|
|
2880
|
+
'head',
|
|
2881
|
+
'post',
|
|
2882
|
+
'put',
|
|
2883
|
+
'patch',
|
|
2884
|
+
'common'
|
|
2885
|
+
], (method)=>{
|
|
2886
|
+
delete headers[method];
|
|
2887
|
+
});
|
|
2888
|
+
config.headers = core_AxiosHeaders.concat(contextHeaders, headers);
|
|
2889
|
+
const requestInterceptorChain = [];
|
|
2890
|
+
let synchronousRequestInterceptors = true;
|
|
2891
|
+
this.interceptors.request.forEach(function(interceptor) {
|
|
2892
|
+
if ('function' == typeof interceptor.runWhen && false === interceptor.runWhen(config)) return;
|
|
2893
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
2894
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
2895
|
+
});
|
|
2896
|
+
const responseInterceptorChain = [];
|
|
2897
|
+
this.interceptors.response.forEach(function(interceptor) {
|
|
2898
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
2899
|
+
});
|
|
2900
|
+
let promise;
|
|
2901
|
+
let i = 0;
|
|
2902
|
+
let len;
|
|
2903
|
+
if (!synchronousRequestInterceptors) {
|
|
2904
|
+
const chain = [
|
|
2905
|
+
dispatchRequest.bind(this),
|
|
2906
|
+
void 0
|
|
2907
|
+
];
|
|
2908
|
+
chain.unshift.apply(chain, requestInterceptorChain);
|
|
2909
|
+
chain.push.apply(chain, responseInterceptorChain);
|
|
2910
|
+
len = chain.length;
|
|
2911
|
+
promise = Promise.resolve(config);
|
|
2912
|
+
while(i < len)promise = promise.then(chain[i++], chain[i++]);
|
|
2913
|
+
return promise;
|
|
2914
|
+
}
|
|
2915
|
+
len = requestInterceptorChain.length;
|
|
2916
|
+
let newConfig = config;
|
|
2917
|
+
i = 0;
|
|
2918
|
+
while(i < len){
|
|
2919
|
+
const onFulfilled = requestInterceptorChain[i++];
|
|
2920
|
+
const onRejected = requestInterceptorChain[i++];
|
|
2921
|
+
try {
|
|
2922
|
+
newConfig = onFulfilled(newConfig);
|
|
2923
|
+
} catch (error) {
|
|
2924
|
+
onRejected.call(this, error);
|
|
2925
|
+
break;
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
try {
|
|
2929
|
+
promise = dispatchRequest.call(this, newConfig);
|
|
2930
|
+
} catch (error) {
|
|
2931
|
+
return Promise.reject(error);
|
|
2932
|
+
}
|
|
2933
|
+
i = 0;
|
|
2934
|
+
len = responseInterceptorChain.length;
|
|
2935
|
+
while(i < len)promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
2936
|
+
return promise;
|
|
2937
|
+
}
|
|
2938
|
+
getUri(config) {
|
|
2939
|
+
config = mergeConfig(this.defaults, config);
|
|
2940
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
2941
|
+
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
utils.forEach([
|
|
2945
|
+
'delete',
|
|
2946
|
+
'get',
|
|
2947
|
+
'head',
|
|
2948
|
+
'options'
|
|
2949
|
+
], function(method) {
|
|
2950
|
+
Axios_Axios.prototype[method] = function(url, config) {
|
|
2951
|
+
return this.request(mergeConfig(config || {}, {
|
|
2952
|
+
method,
|
|
2953
|
+
url,
|
|
2954
|
+
data: (config || {}).data
|
|
2955
|
+
}));
|
|
2956
|
+
};
|
|
2957
|
+
});
|
|
2958
|
+
utils.forEach([
|
|
2959
|
+
'post',
|
|
2960
|
+
'put',
|
|
2961
|
+
'patch'
|
|
2962
|
+
], function(method) {
|
|
2963
|
+
function generateHTTPMethod(isForm) {
|
|
2964
|
+
return function(url, data, config) {
|
|
2965
|
+
return this.request(mergeConfig(config || {}, {
|
|
2966
|
+
method,
|
|
2967
|
+
headers: isForm ? {
|
|
2968
|
+
'Content-Type': 'multipart/form-data'
|
|
2969
|
+
} : {},
|
|
2970
|
+
url,
|
|
2971
|
+
data
|
|
2972
|
+
}));
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
Axios_Axios.prototype[method] = generateHTTPMethod();
|
|
2976
|
+
Axios_Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
|
2977
|
+
});
|
|
2978
|
+
const Axios = Axios_Axios;
|
|
2979
|
+
class CancelToken {
|
|
2980
|
+
constructor(executor){
|
|
2981
|
+
if ('function' != typeof executor) throw new TypeError('executor must be a function.');
|
|
2982
|
+
let resolvePromise;
|
|
2983
|
+
this.promise = new Promise(function(resolve) {
|
|
2984
|
+
resolvePromise = resolve;
|
|
2985
|
+
});
|
|
2986
|
+
const token = this;
|
|
2987
|
+
this.promise.then((cancel)=>{
|
|
2988
|
+
if (!token._listeners) return;
|
|
2989
|
+
let i = token._listeners.length;
|
|
2990
|
+
while(i-- > 0)token._listeners[i](cancel);
|
|
2991
|
+
token._listeners = null;
|
|
2992
|
+
});
|
|
2993
|
+
this.promise.then = (onfulfilled)=>{
|
|
2994
|
+
let _resolve;
|
|
2995
|
+
const promise = new Promise((resolve)=>{
|
|
2996
|
+
token.subscribe(resolve);
|
|
2997
|
+
_resolve = resolve;
|
|
2998
|
+
}).then(onfulfilled);
|
|
2999
|
+
promise.cancel = function() {
|
|
3000
|
+
token.unsubscribe(_resolve);
|
|
3001
|
+
};
|
|
3002
|
+
return promise;
|
|
3003
|
+
};
|
|
3004
|
+
executor(function(message, config, request) {
|
|
3005
|
+
if (token.reason) return;
|
|
3006
|
+
token.reason = new CanceledError(message, config, request);
|
|
3007
|
+
resolvePromise(token.reason);
|
|
3008
|
+
});
|
|
3009
|
+
}
|
|
3010
|
+
throwIfRequested() {
|
|
3011
|
+
if (this.reason) throw this.reason;
|
|
3012
|
+
}
|
|
3013
|
+
subscribe(listener) {
|
|
3014
|
+
if (this.reason) return void listener(this.reason);
|
|
3015
|
+
if (this._listeners) this._listeners.push(listener);
|
|
3016
|
+
else this._listeners = [
|
|
3017
|
+
listener
|
|
3018
|
+
];
|
|
3019
|
+
}
|
|
3020
|
+
unsubscribe(listener) {
|
|
3021
|
+
if (!this._listeners) return;
|
|
3022
|
+
const index = this._listeners.indexOf(listener);
|
|
3023
|
+
if (-1 !== index) this._listeners.splice(index, 1);
|
|
3024
|
+
}
|
|
3025
|
+
toAbortSignal() {
|
|
3026
|
+
const controller = new AbortController();
|
|
3027
|
+
const abort = (err)=>{
|
|
3028
|
+
controller.abort(err);
|
|
3029
|
+
};
|
|
3030
|
+
this.subscribe(abort);
|
|
3031
|
+
controller.signal.unsubscribe = ()=>this.unsubscribe(abort);
|
|
3032
|
+
return controller.signal;
|
|
3033
|
+
}
|
|
3034
|
+
static source() {
|
|
3035
|
+
let cancel;
|
|
3036
|
+
const token = new CancelToken(function(c) {
|
|
3037
|
+
cancel = c;
|
|
3038
|
+
});
|
|
3039
|
+
return {
|
|
3040
|
+
token,
|
|
3041
|
+
cancel
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
const cancel_CancelToken = CancelToken;
|
|
3046
|
+
function spread(callback) {
|
|
3047
|
+
return function(arr) {
|
|
3048
|
+
return callback.apply(null, arr);
|
|
3049
|
+
};
|
|
3050
|
+
}
|
|
3051
|
+
function isAxiosError(payload) {
|
|
3052
|
+
return utils.isObject(payload) && true === payload.isAxiosError;
|
|
3053
|
+
}
|
|
3054
|
+
const HttpStatusCode = {
|
|
3055
|
+
Continue: 100,
|
|
3056
|
+
SwitchingProtocols: 101,
|
|
3057
|
+
Processing: 102,
|
|
3058
|
+
EarlyHints: 103,
|
|
3059
|
+
Ok: 200,
|
|
3060
|
+
Created: 201,
|
|
3061
|
+
Accepted: 202,
|
|
3062
|
+
NonAuthoritativeInformation: 203,
|
|
3063
|
+
NoContent: 204,
|
|
3064
|
+
ResetContent: 205,
|
|
3065
|
+
PartialContent: 206,
|
|
3066
|
+
MultiStatus: 207,
|
|
3067
|
+
AlreadyReported: 208,
|
|
3068
|
+
ImUsed: 226,
|
|
3069
|
+
MultipleChoices: 300,
|
|
3070
|
+
MovedPermanently: 301,
|
|
3071
|
+
Found: 302,
|
|
3072
|
+
SeeOther: 303,
|
|
3073
|
+
NotModified: 304,
|
|
3074
|
+
UseProxy: 305,
|
|
3075
|
+
Unused: 306,
|
|
3076
|
+
TemporaryRedirect: 307,
|
|
3077
|
+
PermanentRedirect: 308,
|
|
3078
|
+
BadRequest: 400,
|
|
3079
|
+
Unauthorized: 401,
|
|
3080
|
+
PaymentRequired: 402,
|
|
3081
|
+
Forbidden: 403,
|
|
3082
|
+
NotFound: 404,
|
|
3083
|
+
MethodNotAllowed: 405,
|
|
3084
|
+
NotAcceptable: 406,
|
|
3085
|
+
ProxyAuthenticationRequired: 407,
|
|
3086
|
+
RequestTimeout: 408,
|
|
3087
|
+
Conflict: 409,
|
|
3088
|
+
Gone: 410,
|
|
3089
|
+
LengthRequired: 411,
|
|
3090
|
+
PreconditionFailed: 412,
|
|
3091
|
+
PayloadTooLarge: 413,
|
|
3092
|
+
UriTooLong: 414,
|
|
3093
|
+
UnsupportedMediaType: 415,
|
|
3094
|
+
RangeNotSatisfiable: 416,
|
|
3095
|
+
ExpectationFailed: 417,
|
|
3096
|
+
ImATeapot: 418,
|
|
3097
|
+
MisdirectedRequest: 421,
|
|
3098
|
+
UnprocessableEntity: 422,
|
|
3099
|
+
Locked: 423,
|
|
3100
|
+
FailedDependency: 424,
|
|
3101
|
+
TooEarly: 425,
|
|
3102
|
+
UpgradeRequired: 426,
|
|
3103
|
+
PreconditionRequired: 428,
|
|
3104
|
+
TooManyRequests: 429,
|
|
3105
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
3106
|
+
UnavailableForLegalReasons: 451,
|
|
3107
|
+
InternalServerError: 500,
|
|
3108
|
+
NotImplemented: 501,
|
|
3109
|
+
BadGateway: 502,
|
|
3110
|
+
ServiceUnavailable: 503,
|
|
3111
|
+
GatewayTimeout: 504,
|
|
3112
|
+
HttpVersionNotSupported: 505,
|
|
3113
|
+
VariantAlsoNegotiates: 506,
|
|
3114
|
+
InsufficientStorage: 507,
|
|
3115
|
+
LoopDetected: 508,
|
|
3116
|
+
NotExtended: 510,
|
|
3117
|
+
NetworkAuthenticationRequired: 511
|
|
3118
|
+
};
|
|
3119
|
+
Object.entries(HttpStatusCode).forEach(([key, value])=>{
|
|
3120
|
+
HttpStatusCode[value] = key;
|
|
3121
|
+
});
|
|
3122
|
+
const helpers_HttpStatusCode = HttpStatusCode;
|
|
3123
|
+
function createInstance(defaultConfig) {
|
|
3124
|
+
const context = new Axios(defaultConfig);
|
|
3125
|
+
const instance = bind(Axios.prototype.request, context);
|
|
3126
|
+
utils.extend(instance, Axios.prototype, context, {
|
|
3127
|
+
allOwnKeys: true
|
|
3128
|
+
});
|
|
3129
|
+
utils.extend(instance, context, null, {
|
|
3130
|
+
allOwnKeys: true
|
|
3131
|
+
});
|
|
3132
|
+
instance.create = function(instanceConfig) {
|
|
3133
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
|
3134
|
+
};
|
|
3135
|
+
return instance;
|
|
3136
|
+
}
|
|
3137
|
+
const axios = createInstance(lib_defaults);
|
|
3138
|
+
axios.Axios = Axios;
|
|
3139
|
+
axios.CanceledError = CanceledError;
|
|
3140
|
+
axios.CancelToken = cancel_CancelToken;
|
|
3141
|
+
axios.isCancel = isCancel;
|
|
3142
|
+
axios.VERSION = VERSION;
|
|
3143
|
+
axios.toFormData = toFormData;
|
|
3144
|
+
axios.AxiosError = core_AxiosError;
|
|
3145
|
+
axios.Cancel = axios.CanceledError;
|
|
3146
|
+
axios.all = function(promises) {
|
|
3147
|
+
return Promise.all(promises);
|
|
3148
|
+
};
|
|
3149
|
+
axios.spread = spread;
|
|
3150
|
+
axios.isAxiosError = isAxiosError;
|
|
3151
|
+
axios.mergeConfig = mergeConfig;
|
|
3152
|
+
axios.AxiosHeaders = core_AxiosHeaders;
|
|
3153
|
+
axios.formToJSON = (thing)=>formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
|
|
3154
|
+
axios.getAdapter = adapters_adapters.getAdapter;
|
|
3155
|
+
axios.HttpStatusCode = helpers_HttpStatusCode;
|
|
3156
|
+
axios.default = axios;
|
|
3157
|
+
const lib_axios = axios;
|
|
3158
|
+
class AmmoZeptoClient {
|
|
3159
|
+
constructor(config){
|
|
3160
|
+
this.config = config;
|
|
3161
|
+
const { baseUrl, accessToken, perPage = 100 } = config;
|
|
3162
|
+
if (!baseUrl || !accessToken) throw new Error('Invalid config');
|
|
3163
|
+
this.client = lib_axios.create({
|
|
3164
|
+
baseURL: this.config.baseUrl.replace(/\/$/, ''),
|
|
3165
|
+
headers: {
|
|
3166
|
+
Accepts: 'application/json',
|
|
3167
|
+
'Content-Type': 'application/json',
|
|
3168
|
+
Authorization: `Bearer ${this.config.accessToken}`,
|
|
3169
|
+
'Per-Page': perPage
|
|
3170
|
+
}
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3173
|
+
async getAllBankAccounts() {
|
|
3174
|
+
const response = await this.client.get('/bank-accounts');
|
|
3175
|
+
return response.data;
|
|
3176
|
+
}
|
|
3177
|
+
}
|
|
3178
|
+
class AmmoZeptoBankAccounts extends AmmoZeptoClient {
|
|
3179
|
+
constructor(config){
|
|
3180
|
+
super(config), this.endpoint = '/bank_accounts';
|
|
3181
|
+
}
|
|
3182
|
+
async getAllBankAccounts() {
|
|
3183
|
+
const response = await this.client.get(this.endpoint);
|
|
3184
|
+
return response.data;
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
const generateMtaPaymentMethodAccountConfigForZepto = (payload)=>{
|
|
3188
|
+
const { bsb, accountNumber, bankAccountId } = payload;
|
|
3189
|
+
const maskedBsb = maskString(bsb, {
|
|
3190
|
+
visibleStart: 0,
|
|
3191
|
+
visibleEnd: 2
|
|
3192
|
+
});
|
|
3193
|
+
const maskedAccountNumber = maskString(accountNumber, {
|
|
3194
|
+
visibleStart: 0,
|
|
3195
|
+
visibleEnd: 2
|
|
3196
|
+
});
|
|
3197
|
+
return {
|
|
3198
|
+
bsb: maskedBsb,
|
|
3199
|
+
accountNumber: maskedAccountNumber,
|
|
3200
|
+
credential: {
|
|
3201
|
+
bankAccountId
|
|
3202
|
+
}
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
3205
|
+
const generateMtaPaymentMethodFloatAccountConfigForZepto = (payload)=>{
|
|
3206
|
+
const { domainName, bankAccountId } = payload;
|
|
3207
|
+
return {
|
|
3208
|
+
domainName,
|
|
3209
|
+
credential: {
|
|
3210
|
+
bankAccountId
|
|
3211
|
+
}
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
3214
|
+
export { ASSIGN_UNKNOWN_TO_CUSTOMER, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CMAStatus, CreatePayoutSchema, MenuStatus, MenuType, mta_account_period_constant_MtaAccountPeriodStatus as MtaAccountPeriodStatus, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_reconciliation_constant_MtaReconciliationStatus as MtaReconciliationStatus, mta_MtaStatus as MtaStatus, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyRestResStatus, PropertyStage, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, TRANSACTION_CANCEL, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, basePayoutItemShape, cancelMtaTransactionRestReqSchema, cmaEntitySchema, cmaListRestResSchema, cmaTransactionEntitySchema, createCMARestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaTransactionRestReqSchema, developerEntitySchema, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownTransaction, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResSchema, mtaTransactionEntitySchema, mtaTransactionRestResSchema, paymentProviderEntitySchema, payoutDetailRestResSchema, payoutEntitySchema, payoutItemReqSchema, payoutListRestResSchema, payoutPaymentItemSchema, payoutRestReqSchema, payoutRestResSchema, payoutSourceDetailsSchema, payoutTargetDetailsSchema, payoutTransactionSchema, projectEntitySchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectRestResSchema, propertyEntitySchema, propertyListRestResSchema, propertyRestResSchema, provisionDetailsSchema, reconcileMtaTransactionRestReqSchema, updateMenuRestReqSchema, updateMtaAccountPeriodReconciledToRestReqSchema, updateMtaRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, userEntitySchema };
|