@mikemo-coposit/am-accounting-shared 0.0.16 → 0.0.18
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/common/index.d.ts +2 -0
- package/dist/cjs/constants/common/index.d.ts.map +1 -1
- package/dist/cjs/constants/common/package-version.constant.d.ts +2 -0
- package/dist/cjs/constants/common/package-version.constant.d.ts.map +1 -0
- package/dist/cjs/constants/common/pagination.constant.d.ts +3 -0
- package/dist/cjs/constants/common/pagination.constant.d.ts.map +1 -0
- package/dist/cjs/constants/property/index.d.ts +1 -0
- package/dist/cjs/constants/property/index.d.ts.map +1 -1
- package/dist/cjs/constants/property/property-initial-deposit-status.constant.d.ts +22 -0
- package/dist/cjs/constants/property/property-initial-deposit-status.constant.d.ts.map +1 -0
- package/dist/cjs/constants/property/property-status.constant.d.ts +14 -4
- package/dist/cjs/constants/property/property-status.constant.d.ts.map +1 -1
- package/dist/cjs/index.js +331 -184
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts +153 -150
- package/dist/cjs/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts +26 -0
- package/dist/cjs/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +49 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +26 -0
- package/dist/cjs/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +50 -0
- package/dist/cjs/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +264 -232
- package/dist/cjs/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +2 -0
- package/dist/cjs/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -1
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts +3 -1
- package/dist/cjs/schemas/common/date/string-to-date.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/date/string-to-end-of-day.schema.d.ts +2 -1
- package/dist/cjs/schemas/common/date/string-to-end-of-day.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/date/string-to-start-of-day.schema.d.ts +2 -1
- package/dist/cjs/schemas/common/date/string-to-start-of-day.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/index.d.ts +1 -0
- package/dist/cjs/schemas/common/search/index.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts +144 -35
- package/dist/cjs/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/common/search/status-filter.schema.d.ts +155 -0
- package/dist/cjs/schemas/common/search/status-filter.schema.d.ts.map +1 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts +28 -0
- package/dist/cjs/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +101 -49
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +50 -24
- package/dist/cjs/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +260 -191
- package/dist/cjs/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +18 -16
- package/dist/cjs/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +7 -4
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +234 -72
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts +8 -4
- package/dist/cjs/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout-update.rest.schema.d.ts +3 -3
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +8 -4
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +924 -291
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +4 -0
- package/dist/cjs/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +4 -4
- package/dist/cjs/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +8 -8
- package/dist/cjs/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +100 -29
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts +136 -113
- package/dist/cjs/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +8 -4
- package/dist/cjs/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +78 -24
- package/dist/cjs/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/report/bank-reconciliation-summary.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/common-report-with-cma-selection.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/common-report.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/customer-ledger.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/payment-list.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/project-ledger.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/receipt-list.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/reconciled-items-list.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/trust-trial.rest.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts +2 -2
- package/dist/cjs/schemas/report/unreconciled-items-list.rest.schema.d.ts +2 -2
- package/dist/cjs/utils/date.util.d.ts.map +1 -1
- package/dist/cjs/utils/property.util.d.ts +12 -2
- package/dist/cjs/utils/property.util.d.ts.map +1 -1
- package/dist/cjs/utils/transaction.util.d.ts +2 -0
- package/dist/cjs/utils/transaction.util.d.ts.map +1 -1
- package/dist/esm/constants/common/index.d.ts +2 -0
- package/dist/esm/constants/common/index.d.ts.map +1 -1
- package/dist/esm/constants/common/package-version.constant.d.ts +2 -0
- package/dist/esm/constants/common/package-version.constant.d.ts.map +1 -0
- package/dist/esm/constants/common/pagination.constant.d.ts +3 -0
- package/dist/esm/constants/common/pagination.constant.d.ts.map +1 -0
- package/dist/esm/constants/property/index.d.ts +1 -0
- package/dist/esm/constants/property/index.d.ts.map +1 -1
- package/dist/esm/constants/property/property-initial-deposit-status.constant.d.ts +22 -0
- package/dist/esm/constants/property/property-initial-deposit-status.constant.d.ts.map +1 -0
- package/dist/esm/constants/property/property-status.constant.d.ts +14 -4
- package/dist/esm/constants/property/property-status.constant.d.ts.map +1 -1
- package/dist/esm/index.mjs +263 -164
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts +153 -150
- package/dist/esm/schemas/cma/cma-search.rest.schemal.d.ts.map +1 -1
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts +26 -0
- package/dist/esm/schemas/cma/cma.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-close.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +49 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts +26 -0
- package/dist/esm/schemas/cma-account-period/cma-account-period.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts +50 -0
- package/dist/esm/schemas/cma-reconciled-transaction/cma-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-transaction/clear-cma-transaction.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts +264 -232
- package/dist/esm/schemas/cma-transaction/cma-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts +2 -0
- package/dist/esm/schemas/cma-transaction/cma-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/cma-transaction/create-cma-transactionrest.schema.d.ts +1 -1
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts +3 -1
- package/dist/esm/schemas/common/date/string-to-date.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/date/string-to-end-of-day.schema.d.ts +2 -1
- package/dist/esm/schemas/common/date/string-to-end-of-day.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/date/string-to-start-of-day.schema.d.ts +2 -1
- package/dist/esm/schemas/common/date/string-to-start-of-day.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/index.d.ts +1 -0
- package/dist/esm/schemas/common/search/index.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts +144 -35
- package/dist/esm/schemas/common/search/number-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/pagination-req.schema.d.ts.map +1 -1
- package/dist/esm/schemas/common/search/status-filter.schema.d.ts +155 -0
- package/dist/esm/schemas/common/search/status-filter.schema.d.ts.map +1 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts +28 -0
- package/dist/esm/schemas/common/search/string-filter.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +101 -49
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts +50 -24
- package/dist/esm/schemas/mta-reconciled-transaction/mta-reconciled-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-reconciliation/create-mta-reconciliation.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/mta-transaction/create-mta-transactionrest.schema.d.ts +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts +260 -191
- package/dist/esm/schemas/mta-transaction/mta-transaction-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts +18 -16
- package/dist/esm/schemas/mta-transaction/mta-transaction.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +7 -4
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-source-details.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/common-payout-schemas/common-payout-target-details.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +234 -72
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts +8 -4
- package/dist/esm/schemas/payout/payout-provision-data.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout-update.rest.schema.d.ts +3 -3
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +8 -4
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +924 -291
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts +4 -0
- package/dist/esm/schemas/payout/settlement-payout/provision-data.settlement-payout.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/settlement-payout/update.settlement-payout.rest.schema.d.ts +4 -4
- package/dist/esm/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +8 -8
- package/dist/esm/schemas/payout/unknown-payout/update.unknown-payout.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +100 -29
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts +136 -113
- package/dist/esm/schemas/property/property-search.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.entity.schema.d.ts +8 -4
- package/dist/esm/schemas/property/property.entity.schema.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.rest.schema.d.ts +78 -24
- package/dist/esm/schemas/property/property.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/report/bank-reconciliation-summary.schema.d.ts +2 -2
- package/dist/esm/schemas/report/common-report-with-cma-selection.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/common-report.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/customer-ledger.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/payment-list.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/project-ledger.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/receipt-list.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/reconciled-items-list.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/trust-trial.rest.schema.d.ts +2 -2
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts +2 -2
- package/dist/esm/schemas/report/unreconciled-items-list.rest.schema.d.ts +2 -2
- package/dist/esm/utils/date.util.d.ts.map +1 -1
- package/dist/esm/utils/property.util.d.ts +12 -2
- package/dist/esm/utils/property.util.d.ts.map +1 -1
- package/dist/esm/utils/transaction.util.d.ts +2 -0
- package/dist/esm/utils/transaction.util.d.ts.map +1 -1
- package/package.json +17 -10
package/dist/esm/index.mjs
CHANGED
|
@@ -253,14 +253,14 @@ var payout_constant_PayoutTargetAccountType = /*#__PURE__*/ function(PayoutTarge
|
|
|
253
253
|
}({});
|
|
254
254
|
const DEFAULT_PAYOUT_TARGET_BANK_REF = {
|
|
255
255
|
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
256
|
-
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA
|
|
256
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Installment',
|
|
257
257
|
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
258
258
|
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
259
259
|
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
260
260
|
};
|
|
261
261
|
const DEFAULT_PAYOUT_TARGET_DESCRIPTION = {
|
|
262
262
|
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
263
|
-
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA
|
|
263
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Installment',
|
|
264
264
|
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
265
265
|
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
266
266
|
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
@@ -295,14 +295,42 @@ const ProjectApplyStatusRestRes = {
|
|
|
295
295
|
PENDING_TRUST_ACCOUNT: 'pending_trust_account',
|
|
296
296
|
...ProjectMtaAllocationStatus
|
|
297
297
|
};
|
|
298
|
-
const
|
|
299
|
-
|
|
298
|
+
const PropertyInitialDepositStatus = {
|
|
299
|
+
INIT: 'init',
|
|
300
|
+
PENDING_HOLDING_DEPOSIT: 'pending_holding_deposit',
|
|
301
|
+
PENDING_APPROVAL: 'pending_approval',
|
|
302
|
+
PENDING_SIGNING_DEPOSIT: 'pending_signing_deposit',
|
|
303
|
+
FULFILLED: 'fulfilled',
|
|
304
|
+
COMPLETED: 'completed'
|
|
305
|
+
};
|
|
306
|
+
const PropertyInitialDepositStatusToDisplayTextMapper = {
|
|
307
|
+
[PropertyInitialDepositStatus.INIT]: 'Init',
|
|
308
|
+
[PropertyInitialDepositStatus.PENDING_HOLDING_DEPOSIT]: 'Pending Holding Deposit',
|
|
309
|
+
[PropertyInitialDepositStatus.PENDING_APPROVAL]: 'Pending HD Approval',
|
|
310
|
+
[PropertyInitialDepositStatus.PENDING_SIGNING_DEPOSIT]: 'Pending Signing Deposit',
|
|
311
|
+
[PropertyInitialDepositStatus.FULFILLED]: 'Initial Deposit Fulfilled',
|
|
312
|
+
[PropertyInitialDepositStatus.COMPLETED]: 'Initial Deposit Completed'
|
|
300
313
|
};
|
|
314
|
+
var property_status_constant_PropertyRestResStatus = /*#__PURE__*/ function(PropertyRestResStatus) {
|
|
315
|
+
PropertyRestResStatus["ALL"] = "all";
|
|
316
|
+
PropertyRestResStatus["PENDING_PURCHASE_INFO"] = "pending_purchase_info";
|
|
317
|
+
PropertyRestResStatus["NEED_CMA"] = "need_cma";
|
|
318
|
+
PropertyRestResStatus["CMA_ASSIGNED"] = "cma_assigned";
|
|
319
|
+
PropertyRestResStatus["PENDING_CONTRACT"] = "pending_contract";
|
|
320
|
+
return PropertyRestResStatus;
|
|
321
|
+
}({});
|
|
301
322
|
const PropertyStage = {
|
|
302
323
|
INITIAL_DEPOSIT: 'initial_deposit',
|
|
303
324
|
STANDARD_SALE: 'standard_sale',
|
|
304
325
|
COPOSIT_SALE: 'coposit_sale'
|
|
305
326
|
};
|
|
327
|
+
const PropertyStatusToDisplayTextMapper = {
|
|
328
|
+
["all"]: 'All',
|
|
329
|
+
["pending_purchase_info"]: 'Pending Purchase Info',
|
|
330
|
+
["need_cma"]: 'Need CMA',
|
|
331
|
+
["cma_assigned"]: 'CMA Assigned',
|
|
332
|
+
["pending_contract"]: 'Pending Contract'
|
|
333
|
+
};
|
|
306
334
|
var report_data_range_type_constant_ReportDataRangeType = /*#__PURE__*/ function(ReportDataRangeType) {
|
|
307
335
|
ReportDataRangeType["SPECIFY_EXACT_DATES"] = "specify_exact_dates";
|
|
308
336
|
ReportDataRangeType["ENTIRE_HISTORY_TO_DATE"] = "entire_history_to_date";
|
|
@@ -314,75 +342,70 @@ var report_group_type_constant_ReportGroupType = /*#__PURE__*/ function(ReportGr
|
|
|
314
342
|
ReportGroupType["SEPARATE_REPORTS"] = "separate_reports";
|
|
315
343
|
return ReportGroupType;
|
|
316
344
|
}({});
|
|
345
|
+
const intSimpleFilterSchema = z.coerce.number().int();
|
|
317
346
|
const intFilterBaseSchema = z.object({
|
|
318
|
-
equals:
|
|
319
|
-
in:
|
|
320
|
-
notIn:
|
|
321
|
-
lt:
|
|
322
|
-
lte:
|
|
323
|
-
gt:
|
|
324
|
-
gte:
|
|
325
|
-
});
|
|
326
|
-
const
|
|
347
|
+
equals: intSimpleFilterSchema.optional(),
|
|
348
|
+
in: intSimpleFilterSchema.array().optional(),
|
|
349
|
+
notIn: intSimpleFilterSchema.array().optional(),
|
|
350
|
+
lt: intSimpleFilterSchema.optional(),
|
|
351
|
+
lte: intSimpleFilterSchema.optional(),
|
|
352
|
+
gt: intSimpleFilterSchema.optional(),
|
|
353
|
+
gte: intSimpleFilterSchema.optional()
|
|
354
|
+
});
|
|
355
|
+
const intNullableObjectFilterSchema = intFilterBaseSchema.extend({
|
|
356
|
+
equals: intSimpleFilterSchema.nullish(),
|
|
327
357
|
not: z.union([
|
|
328
|
-
|
|
358
|
+
intSimpleFilterSchema,
|
|
359
|
+
z["null"](),
|
|
329
360
|
z.lazy(()=>intFilterBaseSchema)
|
|
330
361
|
]).optional()
|
|
331
362
|
});
|
|
332
|
-
const
|
|
363
|
+
const intObjectFilterSchema = intFilterBaseSchema.extend({
|
|
333
364
|
not: z.union([
|
|
334
|
-
|
|
365
|
+
intSimpleFilterSchema,
|
|
335
366
|
z.lazy(()=>intFilterBaseSchema)
|
|
336
367
|
]).optional()
|
|
337
368
|
});
|
|
369
|
+
const intFilterSchema = z.union([
|
|
370
|
+
z.lazy(()=>intObjectFilterSchema),
|
|
371
|
+
intSimpleFilterSchema
|
|
372
|
+
]);
|
|
373
|
+
const intNullableFilterSchema = z.union([
|
|
374
|
+
z.lazy(()=>intNullableObjectFilterSchema),
|
|
375
|
+
intSimpleFilterSchema
|
|
376
|
+
]);
|
|
377
|
+
const bigIntSimpleFilterSchema = z.coerce.bigint();
|
|
338
378
|
const bigIntFilterBaseSchema = z.object({
|
|
339
|
-
equals:
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
z.coerce.number()
|
|
350
|
-
]).transform(BigInt).pipe(z.bigint()).array().optional(),
|
|
351
|
-
lt: z.union([
|
|
352
|
-
z.coerce.bigint(),
|
|
353
|
-
z.coerce.number()
|
|
354
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
355
|
-
lte: z.union([
|
|
356
|
-
z.coerce.bigint(),
|
|
357
|
-
z.coerce.number()
|
|
358
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
359
|
-
gt: z.union([
|
|
360
|
-
z.coerce.bigint(),
|
|
361
|
-
z.coerce.number()
|
|
362
|
-
]).transform(BigInt).pipe(z.bigint()).optional(),
|
|
363
|
-
gte: z.union([
|
|
364
|
-
z.coerce.bigint(),
|
|
365
|
-
z.coerce.number()
|
|
366
|
-
]).transform(BigInt).pipe(z.bigint()).optional()
|
|
367
|
-
});
|
|
368
|
-
const bigIntNullableFilterSchema = bigIntFilterBaseSchema.extend({
|
|
379
|
+
equals: bigIntSimpleFilterSchema.optional(),
|
|
380
|
+
in: bigIntSimpleFilterSchema.array().optional(),
|
|
381
|
+
notIn: bigIntSimpleFilterSchema.array().optional(),
|
|
382
|
+
lt: bigIntSimpleFilterSchema.optional(),
|
|
383
|
+
lte: bigIntSimpleFilterSchema.optional(),
|
|
384
|
+
gt: bigIntSimpleFilterSchema.optional(),
|
|
385
|
+
gte: bigIntSimpleFilterSchema.optional()
|
|
386
|
+
});
|
|
387
|
+
const bigIntNullableObjectFilterSchema = bigIntFilterBaseSchema.extend({
|
|
388
|
+
equals: bigIntSimpleFilterSchema.nullish(),
|
|
369
389
|
not: z.union([
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
z.coerce.number()
|
|
373
|
-
]).transform(BigInt).pipe(z.bigint()),
|
|
390
|
+
bigIntSimpleFilterSchema,
|
|
391
|
+
z["null"](),
|
|
374
392
|
z.lazy(()=>bigIntFilterBaseSchema)
|
|
375
393
|
]).optional()
|
|
376
394
|
});
|
|
377
|
-
const
|
|
395
|
+
const bigIntObjectFilterSchema = bigIntFilterBaseSchema.extend({
|
|
378
396
|
not: z.union([
|
|
379
|
-
|
|
380
|
-
z.coerce.bigint(),
|
|
381
|
-
z.coerce.number()
|
|
382
|
-
]).transform(BigInt).pipe(z.bigint()),
|
|
397
|
+
bigIntSimpleFilterSchema,
|
|
383
398
|
z.lazy(()=>bigIntFilterBaseSchema)
|
|
384
399
|
]).optional()
|
|
385
400
|
});
|
|
401
|
+
const bigIntFilterSchema = z.union([
|
|
402
|
+
z.lazy(()=>bigIntObjectFilterSchema),
|
|
403
|
+
bigIntSimpleFilterSchema
|
|
404
|
+
]);
|
|
405
|
+
const bigIntNullableFilterSchema = z.union([
|
|
406
|
+
z.lazy(()=>bigIntNullableObjectFilterSchema),
|
|
407
|
+
bigIntSimpleFilterSchema
|
|
408
|
+
]);
|
|
386
409
|
const QueryMode = {
|
|
387
410
|
DEFAULT: 'default',
|
|
388
411
|
INSENSITIVE: 'insensitive'
|
|
@@ -417,11 +440,50 @@ const stringFilterSchema = z.strictObject({
|
|
|
417
440
|
z.lazy(()=>StringFilterBaseSchema)
|
|
418
441
|
]).optional()
|
|
419
442
|
});
|
|
443
|
+
const stringNullableFilterSchema = z.strictObject({
|
|
444
|
+
...stringFilterSchema.shape,
|
|
445
|
+
equals: z.string().nullish(),
|
|
446
|
+
not: z.union([
|
|
447
|
+
z.string(),
|
|
448
|
+
z["null"](),
|
|
449
|
+
z.lazy(()=>StringFilterBaseSchema)
|
|
450
|
+
]).optional()
|
|
451
|
+
}).nullish();
|
|
420
452
|
const simpleStringFilterSchema = z.strictObject({
|
|
421
453
|
equals: z.string().optional(),
|
|
422
454
|
not: z.string().optional(),
|
|
423
455
|
mode: z.lazy(()=>queryModeSchema).optional()
|
|
424
456
|
});
|
|
457
|
+
const paginationReqSchema = z.object({
|
|
458
|
+
page: z.coerce.number().prefault(1).pipe(z.int().positive()).optional(),
|
|
459
|
+
pageSize: z.coerce.number().pipe(z.int().positive()).optional()
|
|
460
|
+
});
|
|
461
|
+
const sortReqSchema = zod.record(zod.string(), zod.string().transform((val)=>{
|
|
462
|
+
if ('ascend' === val) return sort_order_constant_SortOrder.ASC;
|
|
463
|
+
if ('descend' === val) return sort_order_constant_SortOrder.DESC;
|
|
464
|
+
return val;
|
|
465
|
+
}).pipe(zod["enum"](sort_order_constant_SortOrder)));
|
|
466
|
+
const statusFilterSchema = z.union([
|
|
467
|
+
z.lazy(()=>stringFilterSchema),
|
|
468
|
+
z.string()
|
|
469
|
+
]).transform((val)=>{
|
|
470
|
+
if (null === val) return;
|
|
471
|
+
if ('string' == typeof val && (val?.toLowerCase()?.trim() === 'all' || val?.trim() === '')) return;
|
|
472
|
+
if ('object' == typeof val && val?.equals?.toLowerCase()?.trim() === 'all') return;
|
|
473
|
+
if ('object' == typeof val && 0 === Object.keys(val).length) return;
|
|
474
|
+
return val;
|
|
475
|
+
}).optional();
|
|
476
|
+
const statusNullableFilterSchema = z.union([
|
|
477
|
+
z.lazy(()=>stringFilterSchema),
|
|
478
|
+
z["null"](),
|
|
479
|
+
z.string()
|
|
480
|
+
]).transform((val)=>{
|
|
481
|
+
if (null === val) return null;
|
|
482
|
+
if ('string' == typeof val && (val?.toLowerCase()?.trim() === 'all' || val?.trim() === '')) return;
|
|
483
|
+
if ('object' == typeof val && val?.equals?.toLowerCase()?.trim() === 'all') return;
|
|
484
|
+
if ('object' == typeof val && 0 === Object.keys(val).length) return;
|
|
485
|
+
return val;
|
|
486
|
+
}).nullish();
|
|
425
487
|
const propertySearchRestReqSchema = z.object({
|
|
426
488
|
id: z.union([
|
|
427
489
|
z.lazy(()=>stringFilterSchema),
|
|
@@ -455,22 +517,16 @@ const propertySearchRestReqSchema = z.object({
|
|
|
455
517
|
z.lazy(()=>stringFilterSchema),
|
|
456
518
|
z.string()
|
|
457
519
|
]).optional(),
|
|
458
|
-
mtaBalanceCents:
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
z.lazy(()=>
|
|
464
|
-
z.bigint()
|
|
465
|
-
]).optional(),
|
|
466
|
-
balanceCents: z.union([
|
|
467
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
468
|
-
z.bigint()
|
|
469
|
-
]).optional(),
|
|
470
|
-
status: z.union([
|
|
471
|
-
z.lazy(()=>stringFilterSchema),
|
|
520
|
+
mtaBalanceCents: bigIntFilterSchema.optional(),
|
|
521
|
+
cmaBalanceCents: bigIntFilterSchema.optional(),
|
|
522
|
+
balanceCents: bigIntFilterSchema.optional(),
|
|
523
|
+
status: statusFilterSchema.optional(),
|
|
524
|
+
cmaId: z.union([
|
|
525
|
+
z.lazy(()=>stringNullableFilterSchema),
|
|
472
526
|
z.string()
|
|
473
|
-
]).optional()
|
|
527
|
+
]).optional(),
|
|
528
|
+
...paginationReqSchema.shape,
|
|
529
|
+
sort: sortReqSchema.optional()
|
|
474
530
|
});
|
|
475
531
|
const cmaSearchRestReqSchema = z.object({
|
|
476
532
|
id: z.union([
|
|
@@ -505,10 +561,7 @@ const cmaSearchRestReqSchema = z.object({
|
|
|
505
561
|
z.lazy(()=>stringFilterSchema),
|
|
506
562
|
z.string()
|
|
507
563
|
]).optional(),
|
|
508
|
-
balanceCents:
|
|
509
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
510
|
-
z.bigint()
|
|
511
|
-
]).optional(),
|
|
564
|
+
balanceCents: bigIntFilterSchema.optional(),
|
|
512
565
|
property: z.lazy(()=>propertySearchRestReqSchema).optional()
|
|
513
566
|
});
|
|
514
567
|
const cmaEntitySchema = z.object({
|
|
@@ -571,6 +624,10 @@ const isInterestTransaction = (transaction)=>{
|
|
|
571
624
|
const isCmaInterest = transaction.transactionType === CmaTransactionType.INTEREST;
|
|
572
625
|
return isCmaInterest;
|
|
573
626
|
};
|
|
627
|
+
const isUnknownReceiptPaidOut = (transaction)=>{
|
|
628
|
+
const t = transaction.subsequentTransactions?.find((t)=>t.transactionType === MtaTransactionType.UNKNOWN_PAYOUT);
|
|
629
|
+
return !!t;
|
|
630
|
+
};
|
|
574
631
|
const isTransactionCancelable = (transaction)=>{
|
|
575
632
|
if (transaction.isCanceled) return {
|
|
576
633
|
isCancelable: false,
|
|
@@ -610,14 +667,22 @@ const isTransactionAssignable = (transaction)=>{
|
|
|
610
667
|
isAssignable: false,
|
|
611
668
|
reason: 'Transaction is refunded'
|
|
612
669
|
};
|
|
613
|
-
if (
|
|
670
|
+
if (transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
614
671
|
isAssignable: false,
|
|
615
672
|
reason: 'Cannot assign to property cancel transaction'
|
|
616
673
|
};
|
|
617
|
-
if (
|
|
674
|
+
if (transaction.transactionType === MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER) return {
|
|
618
675
|
isAssignable: false,
|
|
619
676
|
reason: 'Transaction is already assigned to property'
|
|
620
677
|
};
|
|
678
|
+
if (isUnknownReceiptAssignedToProperty(transaction)) return {
|
|
679
|
+
isAssignable: false,
|
|
680
|
+
reason: 'Cannot assign to property transaction due to this unknown transaction has been assigned to property'
|
|
681
|
+
};
|
|
682
|
+
if (isUnknownReceiptPaidOut(transaction)) return {
|
|
683
|
+
isAssignable: false,
|
|
684
|
+
reason: 'Cannot assign to property transaction due to this unknown transaction has been paid out'
|
|
685
|
+
};
|
|
621
686
|
return {
|
|
622
687
|
isAssignable: true
|
|
623
688
|
};
|
|
@@ -636,6 +701,7 @@ const getTransactionStatus = (transaction)=>{
|
|
|
636
701
|
const transactionNumber = getTransactionNumber(transaction);
|
|
637
702
|
const isCancelable = isTransactionCancelable(transaction);
|
|
638
703
|
const isReconciled = transaction.reconciledTransactions?.length ? transaction.reconciledTransactions.length > 0 : false;
|
|
704
|
+
const isPaidout = isUnknownReceiptPaidOut(transaction);
|
|
639
705
|
return {
|
|
640
706
|
isReceipt,
|
|
641
707
|
isPayment,
|
|
@@ -645,7 +711,8 @@ const getTransactionStatus = (transaction)=>{
|
|
|
645
711
|
amountStr,
|
|
646
712
|
transactionNumber,
|
|
647
713
|
isCancelable: isCancelable.isCancelable,
|
|
648
|
-
isReconciled
|
|
714
|
+
isReconciled,
|
|
715
|
+
isPaidout
|
|
649
716
|
};
|
|
650
717
|
};
|
|
651
718
|
const fromCentsToDollars = (amount)=>new decimal(amount).div(100).toNumber();
|
|
@@ -890,6 +957,8 @@ const propertyEntitySchema = z.object({
|
|
|
890
957
|
stage: z.string(),
|
|
891
958
|
status: z.string(),
|
|
892
959
|
mtaId: z.string(),
|
|
960
|
+
cmaId: z.string().nullish(),
|
|
961
|
+
initialDepositStatus: z.string().nullish(),
|
|
893
962
|
isArchived: z.boolean(),
|
|
894
963
|
createdAt: z.coerce.date(),
|
|
895
964
|
syncedAt: z.coerce.date(),
|
|
@@ -926,7 +995,7 @@ const mtaToCmaPayoutSourceDetailEntitySchema = z.object({
|
|
|
926
995
|
inputType: z.literal(mta_input_type_constant_MtaTransactionInputType.PAYMENT).prefault(mta_input_type_constant_MtaTransactionInputType.PAYMENT),
|
|
927
996
|
transactionType: z.literal(MtaTransactionType.TRUST_TO_CMA_PAYOUT).prefault(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
928
997
|
clearedAt: z.coerce.date().nullish()
|
|
929
|
-
}).
|
|
998
|
+
}).loose();
|
|
930
999
|
const mtaToCmaPayoutTargetDetailEntitySchema = z.object({
|
|
931
1000
|
targetAccountId: z.string(),
|
|
932
1001
|
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.CMA).prefault(payout_constant_PayoutTargetAccountType.CMA),
|
|
@@ -940,7 +1009,7 @@ const mtaToCmaPayoutTargetDetailEntitySchema = z.object({
|
|
|
940
1009
|
inputType: z.literal(cma_input_type_constant_CmaTransactionInputType.RECEIPT).prefault(cma_input_type_constant_CmaTransactionInputType.RECEIPT),
|
|
941
1010
|
transactionType: z.literal(CmaTransactionType.RECEIPT).prefault(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
942
1011
|
clearedAt: z.coerce.date().nullish()
|
|
943
|
-
}).
|
|
1012
|
+
}).loose();
|
|
944
1013
|
const mtaToCmaPayoutPaymentEntitySchema = z.looseObject({
|
|
945
1014
|
sourceDetail: mtaToCmaPayoutSourceDetailEntitySchema,
|
|
946
1015
|
targetDetail: mtaToCmaPayoutTargetDetailEntitySchema,
|
|
@@ -961,7 +1030,7 @@ const commonPayoutTargetDetailEntitySchema = z.object({
|
|
|
961
1030
|
bankRef: z.string().trim().min(1),
|
|
962
1031
|
propertyId: z.uuid().nullish(),
|
|
963
1032
|
clearedAt: z.coerce.date().nullish()
|
|
964
|
-
}).
|
|
1033
|
+
}).loose();
|
|
965
1034
|
const commonPayoutSourceDetailEntitySchema = z.object({
|
|
966
1035
|
debitAmountCents: z.coerce.number(),
|
|
967
1036
|
sourceAccountId: z.string(),
|
|
@@ -976,14 +1045,14 @@ const commonPayoutSourceDetailEntitySchema = z.object({
|
|
|
976
1045
|
bankRef: z.string(),
|
|
977
1046
|
description: z.string(),
|
|
978
1047
|
clearedAt: z.coerce.date().nullish()
|
|
979
|
-
}).
|
|
1048
|
+
}).loose();
|
|
980
1049
|
const settlementPayoutSourceDetailEntitySchema = commonPayoutSourceDetailEntitySchema.extend({
|
|
981
1050
|
propertyId: z.uuid()
|
|
982
|
-
}).
|
|
1051
|
+
}).loose();
|
|
983
1052
|
const settlementPayoutTargetDetailEntitySchema = commonPayoutTargetDetailEntitySchema.extend({
|
|
984
1053
|
targetAccountType: z.literal(payout_constant_PayoutTargetAccountType.OTHER).prefault(payout_constant_PayoutTargetAccountType.OTHER),
|
|
985
1054
|
propertyId: z.uuid()
|
|
986
|
-
}).
|
|
1055
|
+
}).loose();
|
|
987
1056
|
const settlementPayoutPaymentEntitySchema = z.looseObject({
|
|
988
1057
|
sourceDetail: settlementPayoutSourceDetailEntitySchema,
|
|
989
1058
|
targetDetail: settlementPayoutTargetDetailEntitySchema,
|
|
@@ -1245,7 +1314,9 @@ const safeParseDateFromStr = (dateStr, options)=>{
|
|
|
1245
1314
|
date: dateStr,
|
|
1246
1315
|
dayjs: dayjs_0(dateStr).tz(timeZone)
|
|
1247
1316
|
};
|
|
1248
|
-
|
|
1317
|
+
let parsedDate = dayjs_0(dateStr?.trim());
|
|
1318
|
+
if (dateStr.trim().endsWith('Z')) parsedDate = dayjs_0(dateStr?.trim()).tz(timeZone);
|
|
1319
|
+
else dayjs_0(dateStr?.trim(), format, timeZone, strict);
|
|
1249
1320
|
if (!parsedDate.isValid()) return {
|
|
1250
1321
|
isValid: false,
|
|
1251
1322
|
date: null,
|
|
@@ -1273,6 +1344,7 @@ const extendDayjs = (input)=>{
|
|
|
1273
1344
|
return date;
|
|
1274
1345
|
};
|
|
1275
1346
|
const stringToDateSchema = z.union([
|
|
1347
|
+
z.custom((data)=>dayjs_0.isDayjs(data)),
|
|
1276
1348
|
z.string(),
|
|
1277
1349
|
z.date(),
|
|
1278
1350
|
z.iso.datetime()
|
|
@@ -1295,6 +1367,7 @@ const cmaAccountPeriodCloseRestReqSchema = z.object({
|
|
|
1295
1367
|
closingDescription: z.string().optional()
|
|
1296
1368
|
});
|
|
1297
1369
|
const stringToEndOfDaySchema = z.union([
|
|
1370
|
+
z.custom((data)=>dayjs_0.isDayjs(data)),
|
|
1298
1371
|
z.string(),
|
|
1299
1372
|
z.date(),
|
|
1300
1373
|
z.iso.datetime()
|
|
@@ -1428,10 +1501,6 @@ const dateTimeFilterSchema = z.strictObject({
|
|
|
1428
1501
|
z.lazy(()=>dateTimeFilterBaseSchema)
|
|
1429
1502
|
]).optional()
|
|
1430
1503
|
});
|
|
1431
|
-
const paginationReqSchema = z.object({
|
|
1432
|
-
page: z.coerce.number().prefault(1).pipe(z.int().positive()).optional(),
|
|
1433
|
-
pageSize: z.coerce.number().pipe(z.int().positive()).optional()
|
|
1434
|
-
});
|
|
1435
1504
|
const stringToBoolSchema = z.union([
|
|
1436
1505
|
z.boolean(),
|
|
1437
1506
|
z.string()
|
|
@@ -1486,10 +1555,7 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1486
1555
|
property: z.union([
|
|
1487
1556
|
z.lazy(()=>propertySearchRestReqSchema)
|
|
1488
1557
|
]).optional(),
|
|
1489
|
-
sequence:
|
|
1490
|
-
z.lazy(()=>intFilterSchema),
|
|
1491
|
-
z.number().int()
|
|
1492
|
-
]).optional(),
|
|
1558
|
+
sequence: intFilterSchema.optional(),
|
|
1493
1559
|
createType: z.union([
|
|
1494
1560
|
z.lazy(()=>stringFilterSchema),
|
|
1495
1561
|
z.string()
|
|
@@ -1510,6 +1576,10 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1510
1576
|
z.lazy(()=>dateTimeFilterSchema),
|
|
1511
1577
|
z.string()
|
|
1512
1578
|
]).optional(),
|
|
1579
|
+
createdAt: z.union([
|
|
1580
|
+
z.lazy(()=>dateTimeFilterSchema),
|
|
1581
|
+
z.string()
|
|
1582
|
+
]).optional(),
|
|
1513
1583
|
transactionType: z.union([
|
|
1514
1584
|
z.lazy(()=>stringFilterSchema),
|
|
1515
1585
|
z.string()
|
|
@@ -1522,22 +1592,14 @@ const cmaTransactionSearchRestReqSchema = z.object({
|
|
|
1522
1592
|
z.lazy(()=>boolFilterSchema),
|
|
1523
1593
|
z.boolean()
|
|
1524
1594
|
]).optional(),
|
|
1525
|
-
status:
|
|
1526
|
-
z.lazy(()=>stringFilterSchema),
|
|
1527
|
-
z.string()
|
|
1528
|
-
]).optional(),
|
|
1595
|
+
status: statusFilterSchema,
|
|
1529
1596
|
payoutId: z.union([
|
|
1530
1597
|
z.lazy(()=>stringFilterSchema),
|
|
1531
1598
|
z.string()
|
|
1532
1599
|
]).optional(),
|
|
1533
|
-
creditAmountCents:
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
]).optional(),
|
|
1537
|
-
debitAmountCents: z.union([
|
|
1538
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
1539
|
-
z.bigint()
|
|
1540
|
-
]).optional()
|
|
1600
|
+
creditAmountCents: bigIntFilterSchema.optional(),
|
|
1601
|
+
debitAmountCents: bigIntFilterSchema.optional(),
|
|
1602
|
+
sort: z.lazy(()=>sortReqSchema).optional()
|
|
1541
1603
|
}).and(paginationReqSchema.optional());
|
|
1542
1604
|
const createCmaTransactionRestReqSchema = z.object({
|
|
1543
1605
|
amount: z.number().positive().transform(fromDollarsToCents).pipe(z.bigint()),
|
|
@@ -1567,6 +1629,7 @@ const accountNumberValidationSchema = z.coerce.string().min(1, 'Account Number i
|
|
|
1567
1629
|
error: 'Account number must be all digits'
|
|
1568
1630
|
});
|
|
1569
1631
|
const stringToStartOfDaySchema = z.union([
|
|
1632
|
+
z.custom((data)=>dayjs_0.isDayjs(data)),
|
|
1570
1633
|
z.string(),
|
|
1571
1634
|
z.date(),
|
|
1572
1635
|
z.iso.datetime()
|
|
@@ -1610,11 +1673,6 @@ const paginatedResSchema = z.object({
|
|
|
1610
1673
|
total: z.coerce.number()
|
|
1611
1674
|
})
|
|
1612
1675
|
});
|
|
1613
|
-
const sortReqSchema = zod.record(zod.string(), zod.string().transform((val)=>{
|
|
1614
|
-
if ('ascend' === val) return sort_order_constant_SortOrder.ASC;
|
|
1615
|
-
if ('descend' === val) return sort_order_constant_SortOrder.DESC;
|
|
1616
|
-
return val;
|
|
1617
|
-
}).pipe(zod["enum"](sort_order_constant_SortOrder)));
|
|
1618
1676
|
const createMenuRestReqSchema = z.object({
|
|
1619
1677
|
parentId: z.string().optional(),
|
|
1620
1678
|
label: z.string(),
|
|
@@ -1847,11 +1905,12 @@ const mtaTransactionRestResSchema = mtaTransactionRestResBaseSchema.extend({
|
|
|
1847
1905
|
isReconciled: z.boolean().optional(),
|
|
1848
1906
|
isAssignableToProperty: z.boolean().nullish(),
|
|
1849
1907
|
isAssignedToProperty: z.boolean().nullish(),
|
|
1908
|
+
isPaidout: z.boolean().optional(),
|
|
1850
1909
|
isCancelable: z.boolean().nullish(),
|
|
1851
1910
|
amountStr: z.string().optional(),
|
|
1852
1911
|
transactionNumber: z.string().optional()
|
|
1853
1912
|
}).transform((obj)=>{
|
|
1854
|
-
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber } = getTransactionStatus(obj);
|
|
1913
|
+
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber, isPaidout } = getTransactionStatus(obj);
|
|
1855
1914
|
return {
|
|
1856
1915
|
...obj,
|
|
1857
1916
|
isUnknown,
|
|
@@ -1859,6 +1918,7 @@ const mtaTransactionRestResSchema = mtaTransactionRestResBaseSchema.extend({
|
|
|
1859
1918
|
isPayment,
|
|
1860
1919
|
isAssignableToProperty,
|
|
1861
1920
|
isAssignedToProperty,
|
|
1921
|
+
isPaidout,
|
|
1862
1922
|
amountStr,
|
|
1863
1923
|
transactionNumber
|
|
1864
1924
|
};
|
|
@@ -1984,7 +2044,7 @@ const mtaTransactionSearchRestReqSchema = z.object({
|
|
|
1984
2044
|
z.lazy(()=>stringFilterSchema),
|
|
1985
2045
|
z.string()
|
|
1986
2046
|
]).optional(),
|
|
1987
|
-
sequence:
|
|
2047
|
+
sequence: intFilterSchema.optional(),
|
|
1988
2048
|
propertyId: z.union([
|
|
1989
2049
|
z.lazy(()=>stringFilterSchema),
|
|
1990
2050
|
z.string()
|
|
@@ -2021,22 +2081,13 @@ const mtaTransactionSearchRestReqSchema = z.object({
|
|
|
2021
2081
|
z.lazy(()=>stringFilterSchema),
|
|
2022
2082
|
z.string()
|
|
2023
2083
|
]).optional(),
|
|
2024
|
-
status:
|
|
2025
|
-
z.lazy(()=>simpleStringFilterSchema),
|
|
2026
|
-
z.string()
|
|
2027
|
-
]).optional(),
|
|
2084
|
+
status: statusFilterSchema.optional(),
|
|
2028
2085
|
payoutId: z.union([
|
|
2029
2086
|
z.lazy(()=>stringFilterSchema),
|
|
2030
2087
|
z.string()
|
|
2031
2088
|
]).optional(),
|
|
2032
|
-
creditAmountCents:
|
|
2033
|
-
|
|
2034
|
-
z.bigint()
|
|
2035
|
-
]).optional(),
|
|
2036
|
-
debitAmountCents: z.union([
|
|
2037
|
-
z.lazy(()=>bigIntFilterSchema),
|
|
2038
|
-
z.bigint()
|
|
2039
|
-
]).optional(),
|
|
2089
|
+
creditAmountCents: bigIntFilterSchema.optional(),
|
|
2090
|
+
debitAmountCents: bigIntFilterSchema.optional(),
|
|
2040
2091
|
property: z.lazy(()=>propertySearchRestReqSchema).optional().nullable(),
|
|
2041
2092
|
sort: z.lazy(()=>sortReqSchema).optional()
|
|
2042
2093
|
}).and(paginationReqSchema.optional());
|
|
@@ -2144,11 +2195,11 @@ const mtaToCmaPayoutSourceDetailRestSchema = mtaToCmaPayoutSourceDetailEntitySch
|
|
|
2144
2195
|
debitAmountCents: centsToDollarsSchema,
|
|
2145
2196
|
property: z.lazy(()=>propertyRestResBaseSchema).nullish(),
|
|
2146
2197
|
mtaTransaction: z.lazy(()=>mtaTransactionRestResSchema).nullish()
|
|
2147
|
-
}).
|
|
2198
|
+
}).loose();
|
|
2148
2199
|
const mtaToCmaPayoutTargetDetailRestSchema = mtaToCmaPayoutTargetDetailEntitySchema.extend({
|
|
2149
2200
|
creditAmountCents: centsToDollarsSchema,
|
|
2150
2201
|
cma: z.lazy(()=>cmaRestResSchema).nullish()
|
|
2151
|
-
}).
|
|
2202
|
+
}).loose();
|
|
2152
2203
|
const mtaToCmaPayoutPaymentRestSchema = z.looseObject({
|
|
2153
2204
|
sourceDetail: mtaToCmaPayoutSourceDetailRestSchema,
|
|
2154
2205
|
targetDetail: mtaToCmaPayoutTargetDetailRestSchema
|
|
@@ -2157,7 +2208,7 @@ const mtaToCmaPayoutProvisionDataRestSchema = mtaToCmaPayoutProvisionDataEntityS
|
|
|
2157
2208
|
mta: z.lazy(()=>mtaEntitySchema).nullish(),
|
|
2158
2209
|
payments: mtaToCmaPayoutPaymentRestSchema.array(),
|
|
2159
2210
|
payoutType: z.literal(PayoutType.TRUST_TO_CMA_PAYOUT).prefault(PayoutType.TRUST_TO_CMA_PAYOUT)
|
|
2160
|
-
}).
|
|
2211
|
+
}).loose();
|
|
2161
2212
|
const updateMtaToCmaPayoutRestReqSchema = z.object({
|
|
2162
2213
|
payoutId: z.uuid(),
|
|
2163
2214
|
bankRef: z.string().trim().min(1),
|
|
@@ -2912,7 +2963,7 @@ const utils = {
|
|
|
2912
2963
|
asap,
|
|
2913
2964
|
isIterable
|
|
2914
2965
|
};
|
|
2915
|
-
function
|
|
2966
|
+
function AxiosError_AxiosError(message, code, config, request, response) {
|
|
2916
2967
|
Error.call(this);
|
|
2917
2968
|
if (Error.captureStackTrace) Error.captureStackTrace(this, this.constructor);
|
|
2918
2969
|
else this.stack = new Error().stack;
|
|
@@ -2926,7 +2977,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
2926
2977
|
this.status = response.status ? response.status : null;
|
|
2927
2978
|
}
|
|
2928
2979
|
}
|
|
2929
|
-
utils.inherits(
|
|
2980
|
+
utils.inherits(AxiosError_AxiosError, Error, {
|
|
2930
2981
|
toJSON: function() {
|
|
2931
2982
|
return {
|
|
2932
2983
|
message: this.message,
|
|
@@ -2943,7 +2994,7 @@ utils.inherits(AxiosError, Error, {
|
|
|
2943
2994
|
};
|
|
2944
2995
|
}
|
|
2945
2996
|
});
|
|
2946
|
-
const AxiosError_prototype =
|
|
2997
|
+
const AxiosError_prototype = AxiosError_AxiosError.prototype;
|
|
2947
2998
|
const AxiosError_descriptors = {};
|
|
2948
2999
|
[
|
|
2949
3000
|
'ERR_BAD_OPTION_VALUE',
|
|
@@ -2963,22 +3014,22 @@ const AxiosError_descriptors = {};
|
|
|
2963
3014
|
value: code
|
|
2964
3015
|
};
|
|
2965
3016
|
});
|
|
2966
|
-
Object.defineProperties(
|
|
3017
|
+
Object.defineProperties(AxiosError_AxiosError, AxiosError_descriptors);
|
|
2967
3018
|
Object.defineProperty(AxiosError_prototype, 'isAxiosError', {
|
|
2968
3019
|
value: true
|
|
2969
3020
|
});
|
|
2970
|
-
|
|
3021
|
+
AxiosError_AxiosError.from = (error, code, config, request, response, customProps)=>{
|
|
2971
3022
|
const axiosError = Object.create(AxiosError_prototype);
|
|
2972
3023
|
utils.toFlatObject(error, axiosError, function(obj) {
|
|
2973
3024
|
return obj !== Error.prototype;
|
|
2974
3025
|
}, (prop)=>'isAxiosError' !== prop);
|
|
2975
|
-
|
|
3026
|
+
AxiosError_AxiosError.call(axiosError, error.message, code, config, request, response);
|
|
2976
3027
|
axiosError.cause = error;
|
|
2977
3028
|
axiosError.name = error.name;
|
|
2978
3029
|
customProps && Object.assign(axiosError, customProps);
|
|
2979
3030
|
return axiosError;
|
|
2980
3031
|
};
|
|
2981
|
-
const
|
|
3032
|
+
const AxiosError = AxiosError_AxiosError;
|
|
2982
3033
|
const helpers_null = null;
|
|
2983
3034
|
function isVisitable(thing) {
|
|
2984
3035
|
return utils.isPlainObject(thing) || utils.isArray(thing);
|
|
@@ -3020,7 +3071,7 @@ function toFormData(obj, formData, options) {
|
|
|
3020
3071
|
if (null === value) return '';
|
|
3021
3072
|
if (utils.isDate(value)) return value.toISOString();
|
|
3022
3073
|
if (utils.isBoolean(value)) return value.toString();
|
|
3023
|
-
if (!useBlob && utils.isBlob(value)) throw new
|
|
3074
|
+
if (!useBlob && utils.isBlob(value)) throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
|
3024
3075
|
if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) return useBlob && 'function' == typeof Blob ? new Blob([
|
|
3025
3076
|
value
|
|
3026
3077
|
]) : Buffer.from(value);
|
|
@@ -3302,7 +3353,7 @@ const defaults = {
|
|
|
3302
3353
|
return JSON.parse(data);
|
|
3303
3354
|
} catch (e) {
|
|
3304
3355
|
if (strictJSONParsing) {
|
|
3305
|
-
if ('SyntaxError' === e.name) throw
|
|
3356
|
+
if ('SyntaxError' === e.name) throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
|
3306
3357
|
throw e;
|
|
3307
3358
|
}
|
|
3308
3359
|
}
|
|
@@ -3599,19 +3650,19 @@ function isCancel(value) {
|
|
|
3599
3650
|
return !!(value && value.__CANCEL__);
|
|
3600
3651
|
}
|
|
3601
3652
|
function CanceledError(message, config, request) {
|
|
3602
|
-
|
|
3653
|
+
AxiosError.call(this, null == message ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
|
3603
3654
|
this.name = 'CanceledError';
|
|
3604
3655
|
}
|
|
3605
|
-
utils.inherits(CanceledError,
|
|
3656
|
+
utils.inherits(CanceledError, AxiosError, {
|
|
3606
3657
|
__CANCEL__: true
|
|
3607
3658
|
});
|
|
3608
3659
|
const cancel_CanceledError = CanceledError;
|
|
3609
3660
|
function settle(resolve, reject, response) {
|
|
3610
3661
|
const validateStatus = response.config.validateStatus;
|
|
3611
3662
|
if (!response.status || !validateStatus || validateStatus(response.status)) resolve(response);
|
|
3612
|
-
else reject(new
|
|
3613
|
-
|
|
3614
|
-
|
|
3663
|
+
else reject(new AxiosError('Request failed with status code ' + response.status, [
|
|
3664
|
+
AxiosError.ERR_BAD_REQUEST,
|
|
3665
|
+
AxiosError.ERR_BAD_RESPONSE
|
|
3615
3666
|
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
|
3616
3667
|
}
|
|
3617
3668
|
function parseProtocol(url) {
|
|
@@ -3899,18 +3950,18 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3899
3950
|
};
|
|
3900
3951
|
request.onabort = function() {
|
|
3901
3952
|
if (!request) return;
|
|
3902
|
-
reject(new
|
|
3953
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
|
3903
3954
|
request = null;
|
|
3904
3955
|
};
|
|
3905
3956
|
request.onerror = function() {
|
|
3906
|
-
reject(new
|
|
3957
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
|
3907
3958
|
request = null;
|
|
3908
3959
|
};
|
|
3909
3960
|
request.ontimeout = function() {
|
|
3910
3961
|
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
3911
3962
|
const transitional = _config.transitional || defaults_transitional;
|
|
3912
3963
|
if (_config.timeoutErrorMessage) timeoutErrorMessage = _config.timeoutErrorMessage;
|
|
3913
|
-
reject(new
|
|
3964
|
+
reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
|
|
3914
3965
|
request = null;
|
|
3915
3966
|
};
|
|
3916
3967
|
void 0 === requestData && requestHeaders.setContentType(null);
|
|
@@ -3939,11 +3990,11 @@ const xhr = isXHRAdapterSupported && function(config) {
|
|
|
3939
3990
|
if (_config.signal) _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
|
3940
3991
|
}
|
|
3941
3992
|
const protocol = parseProtocol(_config.url);
|
|
3942
|
-
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new
|
|
3993
|
+
if (protocol && -1 === platform.protocols.indexOf(protocol)) return void reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
|
3943
3994
|
request.send(requestData || null);
|
|
3944
3995
|
});
|
|
3945
3996
|
};
|
|
3946
|
-
const
|
|
3997
|
+
const composeSignals_composeSignals = (signals, timeout)=>{
|
|
3947
3998
|
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
3948
3999
|
if (timeout || length) {
|
|
3949
4000
|
let controller = new AbortController();
|
|
@@ -3953,12 +4004,12 @@ const composeSignals = (signals, timeout)=>{
|
|
|
3953
4004
|
aborted = true;
|
|
3954
4005
|
unsubscribe();
|
|
3955
4006
|
const err = reason instanceof Error ? reason : this.reason;
|
|
3956
|
-
controller.abort(err instanceof
|
|
4007
|
+
controller.abort(err instanceof AxiosError ? err : new cancel_CanceledError(err instanceof Error ? err.message : err));
|
|
3957
4008
|
}
|
|
3958
4009
|
};
|
|
3959
4010
|
let timer = timeout && setTimeout(()=>{
|
|
3960
4011
|
timer = null;
|
|
3961
|
-
onabort(new
|
|
4012
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
|
3962
4013
|
}, timeout);
|
|
3963
4014
|
const unsubscribe = ()=>{
|
|
3964
4015
|
if (signals) {
|
|
@@ -3976,7 +4027,7 @@ const composeSignals = (signals, timeout)=>{
|
|
|
3976
4027
|
return signal;
|
|
3977
4028
|
}
|
|
3978
4029
|
};
|
|
3979
|
-
const
|
|
4030
|
+
const composeSignals = composeSignals_composeSignals;
|
|
3980
4031
|
const streamChunk = function*(chunk, chunkSize) {
|
|
3981
4032
|
let len = chunk.byteLength;
|
|
3982
4033
|
if (!chunkSize || len < chunkSize) return void (yield chunk);
|
|
@@ -4078,7 +4129,7 @@ isFetchSupported && ((res)=>{
|
|
|
4078
4129
|
'stream'
|
|
4079
4130
|
].forEach((type)=>{
|
|
4080
4131
|
resolvers[type] || (resolvers[type] = utils.isFunction(res[type]) ? (res)=>res[type]() : (_, config)=>{
|
|
4081
|
-
throw new
|
|
4132
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
|
4082
4133
|
});
|
|
4083
4134
|
});
|
|
4084
4135
|
})(new Response);
|
|
@@ -4103,7 +4154,7 @@ const resolveBodyLength = async (headers, body)=>{
|
|
|
4103
4154
|
const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
4104
4155
|
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = resolveConfig(config);
|
|
4105
4156
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
4106
|
-
let composedSignal =
|
|
4157
|
+
let composedSignal = composeSignals([
|
|
4107
4158
|
signal,
|
|
4108
4159
|
cancelToken && cancelToken.toAbortSignal()
|
|
4109
4160
|
], timeout);
|
|
@@ -4170,10 +4221,10 @@ const adapters_fetch = isFetchSupported && (async (config)=>{
|
|
|
4170
4221
|
});
|
|
4171
4222
|
} catch (err) {
|
|
4172
4223
|
unsubscribe && unsubscribe();
|
|
4173
|
-
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new
|
|
4224
|
+
if (err && 'TypeError' === err.name && /Load failed|fetch/i.test(err.message)) throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {
|
|
4174
4225
|
cause: err.cause || err
|
|
4175
4226
|
});
|
|
4176
|
-
throw
|
|
4227
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
|
4177
4228
|
}
|
|
4178
4229
|
});
|
|
4179
4230
|
const knownAdapters = {
|
|
@@ -4210,7 +4261,7 @@ const adapters_adapters = {
|
|
|
4210
4261
|
adapter = nameOrAdapter;
|
|
4211
4262
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
4212
4263
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
4213
|
-
if (void 0 === adapter) throw new
|
|
4264
|
+
if (void 0 === adapter) throw new AxiosError(`Unknown adapter '${id}'`);
|
|
4214
4265
|
}
|
|
4215
4266
|
if (adapter) break;
|
|
4216
4267
|
rejectedReasons[id || '#' + i] = adapter;
|
|
@@ -4218,7 +4269,7 @@ const adapters_adapters = {
|
|
|
4218
4269
|
if (!adapter) {
|
|
4219
4270
|
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (false === state ? 'is not supported by the environment' : 'is not available in the build'));
|
|
4220
4271
|
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
|
4221
|
-
throw new
|
|
4272
|
+
throw new AxiosError("There is no suitable adapter to dispatch the request " + s, 'ERR_NOT_SUPPORT');
|
|
4222
4273
|
}
|
|
4223
4274
|
return adapter;
|
|
4224
4275
|
},
|
|
@@ -4254,7 +4305,6 @@ function dispatchRequest(config) {
|
|
|
4254
4305
|
return Promise.reject(reason);
|
|
4255
4306
|
});
|
|
4256
4307
|
}
|
|
4257
|
-
const VERSION = "1.11.0";
|
|
4258
4308
|
const validators = {};
|
|
4259
4309
|
[
|
|
4260
4310
|
'object',
|
|
@@ -4271,10 +4321,10 @@ const validators = {};
|
|
|
4271
4321
|
const deprecatedWarnings = {};
|
|
4272
4322
|
validators.transitional = function(validator, version, message) {
|
|
4273
4323
|
function formatMessage(opt, desc) {
|
|
4274
|
-
return
|
|
4324
|
+
return "[Axios v1.11.0] Transitional option '" + opt + '\'' + desc + (message ? '. ' + message : '');
|
|
4275
4325
|
}
|
|
4276
4326
|
return (value, opt, opts)=>{
|
|
4277
|
-
if (false === validator) throw new
|
|
4327
|
+
if (false === validator) throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);
|
|
4278
4328
|
if (version && !deprecatedWarnings[opt]) {
|
|
4279
4329
|
deprecatedWarnings[opt] = true;
|
|
4280
4330
|
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
|
@@ -4289,7 +4339,7 @@ validators.spelling = function(correctSpelling) {
|
|
|
4289
4339
|
};
|
|
4290
4340
|
};
|
|
4291
4341
|
function assertOptions(options, schema, allowUnknown) {
|
|
4292
|
-
if ('object' != typeof options) throw new
|
|
4342
|
+
if ('object' != typeof options) throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4293
4343
|
const keys = Object.keys(options);
|
|
4294
4344
|
let i = keys.length;
|
|
4295
4345
|
while(i-- > 0){
|
|
@@ -4298,10 +4348,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
4298
4348
|
if (validator) {
|
|
4299
4349
|
const value = options[opt];
|
|
4300
4350
|
const result = void 0 === value || validator(value, opt, options);
|
|
4301
|
-
if (true !== result) throw new
|
|
4351
|
+
if (true !== result) throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
|
4302
4352
|
continue;
|
|
4303
4353
|
}
|
|
4304
|
-
if (true !== allowUnknown) throw new
|
|
4354
|
+
if (true !== allowUnknown) throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
|
4305
4355
|
}
|
|
4306
4356
|
}
|
|
4307
4357
|
const helpers_validator = {
|
|
@@ -4627,9 +4677,9 @@ axios.Axios = Axios;
|
|
|
4627
4677
|
axios.CanceledError = cancel_CanceledError;
|
|
4628
4678
|
axios.CancelToken = CancelToken;
|
|
4629
4679
|
axios.isCancel = isCancel;
|
|
4630
|
-
axios.VERSION =
|
|
4680
|
+
axios.VERSION = "1.11.0";
|
|
4631
4681
|
axios.toFormData = helpers_toFormData;
|
|
4632
|
-
axios.AxiosError =
|
|
4682
|
+
axios.AxiosError = AxiosError;
|
|
4633
4683
|
axios.Cancel = axios.CanceledError;
|
|
4634
4684
|
axios.all = function(promises) {
|
|
4635
4685
|
return Promise.all(promises);
|
|
@@ -4699,6 +4749,22 @@ const generateMtaPaymentMethodFloatAccountConfigForZepto = (payload)=>{
|
|
|
4699
4749
|
}
|
|
4700
4750
|
};
|
|
4701
4751
|
};
|
|
4752
|
+
const validateGetPropertyNameFormat = (template)=>{
|
|
4753
|
+
const validVariables = [
|
|
4754
|
+
'lotDetail',
|
|
4755
|
+
'buyerName',
|
|
4756
|
+
'projectName',
|
|
4757
|
+
'developerName',
|
|
4758
|
+
'propertyAddress'
|
|
4759
|
+
];
|
|
4760
|
+
const variableRegex = /\{\{([^}]+)\}\}/g;
|
|
4761
|
+
const matches = template.matchAll(variableRegex);
|
|
4762
|
+
for (const match of matches){
|
|
4763
|
+
const variable = match[1];
|
|
4764
|
+
if (!validVariables.includes(variable)) throw new Error(`Invalid template variable: ${variable}. Valid variables are: ${validVariables.join(', ')}`);
|
|
4765
|
+
}
|
|
4766
|
+
return template;
|
|
4767
|
+
};
|
|
4702
4768
|
const getPropertyName = (property, options)=>{
|
|
4703
4769
|
const { project, buyerName } = property;
|
|
4704
4770
|
let lotDetail = property.lotDetail?.trim();
|
|
@@ -4710,7 +4776,26 @@ const getPropertyName = (property, options)=>{
|
|
|
4710
4776
|
lotDetail = `Unit ${lotDetail}`;
|
|
4711
4777
|
} else lotDetail = `Lot ${lotDetail}`;
|
|
4712
4778
|
else lotDetail = 'Lot N/A';
|
|
4779
|
+
if (options?.format) {
|
|
4780
|
+
const template = validateGetPropertyNameFormat(options.format);
|
|
4781
|
+
const templateVariables = {
|
|
4782
|
+
lotDetail,
|
|
4783
|
+
buyerName: buyerName || '',
|
|
4784
|
+
projectName: project?.name || '',
|
|
4785
|
+
developerName: project?.developer?.companyName || '',
|
|
4786
|
+
propertyAddress: property.propertyAddress || ''
|
|
4787
|
+
};
|
|
4788
|
+
let result = template;
|
|
4789
|
+
Object.entries(templateVariables).forEach(([key, value])=>{
|
|
4790
|
+
const placeholder = `{{${key}}}`;
|
|
4791
|
+
result = result.replace(new RegExp(placeholder, 'g'), value);
|
|
4792
|
+
});
|
|
4793
|
+
result = result.replace(/\{\{[^}]+\}\}/g, '').trim();
|
|
4794
|
+
return result || 'Nill';
|
|
4795
|
+
}
|
|
4713
4796
|
const { target = 'payout' } = options || {};
|
|
4797
|
+
let separator = ' ';
|
|
4798
|
+
if (options?.separator) separator = options.separator;
|
|
4714
4799
|
let names = [];
|
|
4715
4800
|
if ('cma' === target || 'mta' === target) {
|
|
4716
4801
|
names = [
|
|
@@ -4732,7 +4817,21 @@ const getPropertyName = (property, options)=>{
|
|
|
4732
4817
|
lotDetail,
|
|
4733
4818
|
property.propertyAddress
|
|
4734
4819
|
];
|
|
4820
|
+
if ('ownership' === target) {
|
|
4821
|
+
if (!options?.separator) separator = ' - ';
|
|
4822
|
+
let first = project?.name;
|
|
4823
|
+
if (project?.name && project?.developer?.companyName) first = `${project?.name} (${project?.developer?.companyName})`;
|
|
4824
|
+
let second = lotDetail;
|
|
4825
|
+
if (lotDetail && buyerName) second = `${lotDetail} ${buyerName}`;
|
|
4826
|
+
names = [
|
|
4827
|
+
first,
|
|
4828
|
+
second
|
|
4829
|
+
];
|
|
4830
|
+
}
|
|
4735
4831
|
names = names.filter(Boolean);
|
|
4736
|
-
return names.length > 0 ? names.join(
|
|
4832
|
+
return names.length > 0 ? names.join(separator) : 'Nill';
|
|
4737
4833
|
};
|
|
4738
|
-
|
|
4834
|
+
var __webpack_exports__DEFAULT_PAGE = 1;
|
|
4835
|
+
var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
|
|
4836
|
+
var __webpack_exports__PACKAGE_VERSION = "0.0.18";
|
|
4837
|
+
export { ASSIGN_UNKNOWN_TO_CUSTOMER, account_period_constant_AccountPeriodStatus as AccountPeriodStatus, account_type_constant_AccountType as AccountType, common_status_constant_AccountingCommonStatus as AccountingCommonStatus, AccountingCommonSyncStatus, AmmoZeptoBankAccounts, AmmoZeptoClient, CmaPayoutTransactionType, CmaReceiptTransactionType, CmaStatus, cma_input_type_constant_CmaTransactionCreateType as CmaTransactionCreateType, CmaTransactionCreateTypeToDisplayText, cma_input_type_constant_CmaTransactionInputType as CmaTransactionInputType, CmaTransactionInputTypeToDisplayText, cma_payment_method_constant_CmaTransactionPaymentMethod as CmaTransactionPaymentMethod, CmaTransactionStatus, CmaTransactionStatusToDisplayTextMapper, CmaTransactionType, CmaTransactionTypeToDisplayTextMapper, DATE_FORMATS, DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_WITH_TIME, DEFAULT_DATE_TIME_ZONE, DEFAULT_PAYOUT_SOURCE_BANK_REF, DEFAULT_PAYOUT_SOURCE_DESCRIPTION, DEFAULT_PAYOUT_TARGET_BANK_REF, DEFAULT_PAYOUT_TARGET_DESCRIPTION, InputJsonValueSchema, JsonNullableFilterSchema, MenuStatus, MenuType, MtaCustomerTransactionType, MtaPayoutTransactionType, MtaReceiptTransactionType, mta_MtaStatus as MtaStatus, MtaTransactionExtendedStatus, MtaTransactionExtendedStatusToDisplayTextMapper, mta_input_type_constant_MtaTransactionInputType as MtaTransactionInputType, MtaTransactionInputTypeToDisplayText, mta_payment_method_constant_MtaTransactionPaymentMethod as MtaTransactionPaymentMethod, MtaTransactionStatus, MtaTransactionStatusToDisplayTextMapper, MtaTransactionType, MtaTransactionTypeToDisplayTextMapper, MtaUnknownTransactionType, payment_method_constant_PaymentMethod as PaymentMethod, PayoutBankFileStatus, payout_constant_PayoutSourceAccountType as PayoutSourceAccountType, PayoutStatus, payout_constant_PayoutTargetAccountType as PayoutTargetAccountType, PayoutType, ProjectApplyStatusRestRes, ProjectMtaAllocationStatus, PropertyInitialDepositStatus, PropertyInitialDepositStatusToDisplayTextMapper, property_status_constant_PropertyRestResStatus as PropertyRestResStatus, PropertyStage, PropertyStatusToDisplayTextMapper, QueryMode, reconcile_transaction_action_constant_ReconcileTransactionAction as ReconcileTransactionAction, reconciliation_constant_ReconciliationStatus as ReconciliationStatus, report_data_range_type_constant_ReportDataRangeType as ReportDataRangeType, report_group_type_constant_ReportGroupType as ReportGroupType, sort_order_constant_SortOrder as SortOrder, StringFilterBaseSchema, TRANSACTION_CANCEL, accountBsbFormattedSchema, accountBsbMaskedSchema, accountBsbValidationSchema, accountNumberMaskedSchema, accountNumberValidationSchema, allocateMtaToProjectRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, bigIntNullableFilterSchema, bigIntNullableObjectFilterSchema, bigIntObjectFilterSchema, bigIntSimpleFilterSchema, boolFilterBaseSchema, boolFilterSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerLedgerRestReqSchema, dateTimeFilterBaseSchema, dateTimeFilterSchema, developerEntitySchema, displayBankAccount, dollarsToCentsSchema, extendDayjs, formatBankBsb, formatCurrency, fromCentsToDollars, fromDollarsToCents, generateMtaPaymentMethodAccountConfigForZepto, generateMtaPaymentMethodFloatAccountConfigForZepto, getPropertyName, getTransactionAmountStr, getTransactionNumber, getTransactionStatus, intFilterSchema, intNullableFilterSchema, intNullableObjectFilterSchema, intObjectFilterSchema, intSimpleFilterSchema, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownReceiptPaidOut, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, mtaSettlementPayoutRestResSchema, mtaToCmaPayoutPaymentEntitySchema, mtaToCmaPayoutPaymentRestSchema, mtaToCmaPayoutProvisionDataEntitySchema, mtaToCmaPayoutProvisionDataRestSchema, mtaToCmaPayoutRestResSchema, mtaToCmaPayoutSourceDetailEntitySchema, mtaToCmaPayoutSourceDetailRestSchema, mtaToCmaPayoutTargetDetailEntitySchema, mtaToCmaPayoutTargetDetailRestSchema, mtaTransactionEntitySchema, mtaTransactionNestedSchema, mtaTransactionRestResBaseSchema, mtaTransactionRestResSchema, mtaTransactionSearchRestReqSchema, mtaTransactionStatusSummaryRestResSchema, paginatedResSchema, paginationReqSchema, parseToDate, parseToDayjs, paymentListReportRestReqSchema, paymentProviderEntitySchema, payoutBankFileDownloadHistoryEntitySchema, payoutBankFileEntitySchema, payoutBankFileRestResSchema, payoutEntitySchema, payoutProvisionDataEntitySchema, payoutRestResBaseSchema, payoutRestResSchema, payoutSearchRestReqSchema, payoutStatusSummaryRestResSchema, payoutTransactionEntitySchema, payoutTransactionRestResSchema, payoutTransactionSearchRestReqSchema, payoutUpdateRestReqSchema, projectEntitySchema, projectLedgerRestReqSchema, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, safeParseDateFromStr, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, sortReqSchema, stateCodeSchema, statusFilterSchema, statusNullableFilterSchema, stringFilterSchema, stringNullableFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema, validateGetPropertyNameFormat, __webpack_exports__DEFAULT_PAGE as DEFAULT_PAGE, __webpack_exports__DEFAULT_PAGE_SIZE as DEFAULT_PAGE_SIZE, __webpack_exports__PACKAGE_VERSION as PACKAGE_VERSION };
|