@mikemo-coposit/am-accounting-shared 0.0.17 → 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/package-version.constant.d.ts +1 -1
- package/dist/cjs/index.js +77 -18
- package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +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/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +53 -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 +26 -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/mta-transaction.entity.schema.d.ts +16 -16
- package/dist/cjs/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +5 -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.map +1 -1
- package/dist/cjs/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +78 -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 +4 -4
- package/dist/cjs/schemas/payout/payout.entity.schema.d.ts +4 -4
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts +303 -276
- package/dist/cjs/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +8 -8
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +31 -28
- package/dist/cjs/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/cjs/schemas/property/property.entity.schema.d.ts +4 -4
- package/dist/cjs/schemas/property/property.rest.schema.d.ts +26 -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 +8 -0
- 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/package-version.constant.d.ts +1 -1
- package/dist/esm/index.mjs +69 -16
- package/dist/esm/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/cma-reconciliation/create-cma-reconciliation.rest.schema.d.ts +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/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +53 -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 +26 -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/mta-transaction.entity.schema.d.ts +16 -16
- package/dist/esm/schemas/mta-transaction/mta-transaction.rest.schema.d.ts +5 -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.map +1 -1
- package/dist/esm/schemas/payout/mta-to-cma-payout/provision-data.mta-to-cma-payout.rest.schema.d.ts +78 -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 +4 -4
- package/dist/esm/schemas/payout/payout.entity.schema.d.ts +4 -4
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts +303 -276
- package/dist/esm/schemas/payout/payout.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/payout/unknown-payout/provision-data.unknown-payout.entity.schema.d.ts +8 -8
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts +31 -28
- package/dist/esm/schemas/payout-transaction/payout-transaction.rest.entity.d.ts.map +1 -1
- package/dist/esm/schemas/property/property.entity.schema.d.ts +4 -4
- package/dist/esm/schemas/property/property.rest.schema.d.ts +26 -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 +8 -0
- 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 +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "0.0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "0.0.18";
|
|
2
2
|
//# sourceMappingURL=package-version.constant.d.ts.map
|
package/dist/cjs/index.js
CHANGED
|
@@ -2675,6 +2675,7 @@ var __webpack_exports__ = {};
|
|
|
2675
2675
|
payoutTransactionEntitySchema: ()=>payoutTransactionEntitySchema,
|
|
2676
2676
|
safeParseDateFromStr: ()=>safeParseDateFromStr,
|
|
2677
2677
|
stringToBoolSchema: ()=>stringToBoolSchema,
|
|
2678
|
+
validateGetPropertyNameFormat: ()=>validateGetPropertyNameFormat,
|
|
2678
2679
|
createCmaReconciliationRestReqSchema: ()=>createCmaReconciliationRestReqSchema,
|
|
2679
2680
|
cancelCmaTransactionRestReqSchema: ()=>cancelCmaTransactionRestReqSchema,
|
|
2680
2681
|
createMtaRestReqSchema: ()=>createMtaRestReqSchema,
|
|
@@ -2711,15 +2712,15 @@ var __webpack_exports__ = {};
|
|
|
2711
2712
|
boolFilterBaseSchema: ()=>boolFilterBaseSchema,
|
|
2712
2713
|
updateSettlementPayoutRestReqSchema: ()=>updateSettlementPayoutRestReqSchema,
|
|
2713
2714
|
bigIntSimpleFilterSchema: ()=>bigIntSimpleFilterSchema,
|
|
2714
|
-
projectMtaAllocationEntitySchema: ()=>projectMtaAllocationEntitySchema,
|
|
2715
2715
|
PropertyInitialDepositStatusToDisplayTextMapper: ()=>PropertyInitialDepositStatusToDisplayTextMapper,
|
|
2716
|
+
projectMtaAllocationEntitySchema: ()=>projectMtaAllocationEntitySchema,
|
|
2716
2717
|
projectMtaAllocationRestResSchema: ()=>projectMtaAllocationRestResSchema,
|
|
2717
2718
|
projectRestResSchema: ()=>projectRestResSchema,
|
|
2718
2719
|
updateMtaSettlementPayoutRestReqSchema: ()=>updateMtaSettlementPayoutRestReqSchema,
|
|
2719
2720
|
CmaTransactionPaymentMethod: ()=>cma_payment_method_constant_CmaTransactionPaymentMethod,
|
|
2720
2721
|
balanceRestResSchema: ()=>balanceRestResSchema,
|
|
2721
2722
|
bigIntFilterSchema: ()=>bigIntFilterSchema,
|
|
2722
|
-
PACKAGE_VERSION: ()=>"0.0.
|
|
2723
|
+
PACKAGE_VERSION: ()=>"0.0.18",
|
|
2723
2724
|
stateCodeSchema: ()=>stateCodeSchema,
|
|
2724
2725
|
queryModeSchema: ()=>queryModeSchema,
|
|
2725
2726
|
settlementPayoutTargetDetailEntitySchema: ()=>settlementPayoutTargetDetailEntitySchema,
|
|
@@ -2878,6 +2879,7 @@ var __webpack_exports__ = {};
|
|
|
2878
2879
|
MtaTransactionStatusToDisplayTextMapper: ()=>MtaTransactionStatusToDisplayTextMapper,
|
|
2879
2880
|
payoutRestResBaseSchema: ()=>payoutRestResBaseSchema,
|
|
2880
2881
|
updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema: ()=>updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema,
|
|
2882
|
+
isUnknownReceiptPaidOut: ()=>isUnknownReceiptPaidOut,
|
|
2881
2883
|
mtaToCmaPayoutProvisionDataRestSchema: ()=>mtaToCmaPayoutProvisionDataRestSchema,
|
|
2882
2884
|
CmaStatus: ()=>CmaStatus,
|
|
2883
2885
|
MtaTransactionStatus: ()=>MtaTransactionStatus,
|
|
@@ -2892,8 +2894,8 @@ var __webpack_exports__ = {};
|
|
|
2892
2894
|
paymentProviderEntitySchema: ()=>paymentProviderEntitySchema,
|
|
2893
2895
|
isUnknownTransaction: ()=>isUnknownTransaction,
|
|
2894
2896
|
cmaEntitySchema: ()=>cmaEntitySchema,
|
|
2895
|
-
maskBankBsb: ()=>maskBankBsb,
|
|
2896
2897
|
projectEntitySchema: ()=>projectEntitySchema,
|
|
2898
|
+
maskBankBsb: ()=>maskBankBsb,
|
|
2897
2899
|
mtaRestResSchema: ()=>mtaRestResSchema,
|
|
2898
2900
|
updateUnknownPayoutTargetDetailRestReqSchema: ()=>updateUnknownPayoutTargetDetailRestReqSchema,
|
|
2899
2901
|
generateMtaPaymentMethodAccountConfigForZepto: ()=>generateMtaPaymentMethodAccountConfigForZepto,
|
|
@@ -3125,14 +3127,14 @@ var __webpack_exports__ = {};
|
|
|
3125
3127
|
}({});
|
|
3126
3128
|
const DEFAULT_PAYOUT_TARGET_BANK_REF = {
|
|
3127
3129
|
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
3128
|
-
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA
|
|
3130
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Installment',
|
|
3129
3131
|
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
3130
3132
|
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
3131
3133
|
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
3132
3134
|
};
|
|
3133
3135
|
const DEFAULT_PAYOUT_TARGET_DESCRIPTION = {
|
|
3134
3136
|
[PayoutType.TRUST_TO_CMA_PAYOUT]: ()=>'CMA Payout',
|
|
3135
|
-
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA
|
|
3137
|
+
[PayoutType.CMA_SETTLEMENT_PAYOUT]: ()=>'CMA Installment',
|
|
3136
3138
|
[PayoutType.TRUST_REFUND_PAYOUT]: ()=>'Refund',
|
|
3137
3139
|
[PayoutType.TRUST_SETTLEMENT_PAYOUT]: ()=>'Settlement',
|
|
3138
3140
|
[PayoutType.UNKNOWN_PAYOUT]: ()=>'Pay Unknown'
|
|
@@ -3498,6 +3500,10 @@ var __webpack_exports__ = {};
|
|
|
3498
3500
|
const isCmaInterest = transaction.transactionType === CmaTransactionType.INTEREST;
|
|
3499
3501
|
return isCmaInterest;
|
|
3500
3502
|
};
|
|
3503
|
+
const isUnknownReceiptPaidOut = (transaction)=>{
|
|
3504
|
+
const t = transaction.subsequentTransactions?.find((t)=>t.transactionType === MtaTransactionType.UNKNOWN_PAYOUT);
|
|
3505
|
+
return !!t;
|
|
3506
|
+
};
|
|
3501
3507
|
const isTransactionCancelable = (transaction)=>{
|
|
3502
3508
|
if (transaction.isCanceled) return {
|
|
3503
3509
|
isCancelable: false,
|
|
@@ -3537,14 +3543,22 @@ var __webpack_exports__ = {};
|
|
|
3537
3543
|
isAssignable: false,
|
|
3538
3544
|
reason: 'Transaction is refunded'
|
|
3539
3545
|
};
|
|
3540
|
-
if (
|
|
3546
|
+
if (transaction.transactionType === MtaTransactionType.TRANSACTION_CANCEL) return {
|
|
3541
3547
|
isAssignable: false,
|
|
3542
3548
|
reason: 'Cannot assign to property cancel transaction'
|
|
3543
3549
|
};
|
|
3544
|
-
if (
|
|
3550
|
+
if (transaction.transactionType === MtaTransactionType.ASSIGN_UNKNOWN_TO_CUSTOMER) return {
|
|
3545
3551
|
isAssignable: false,
|
|
3546
3552
|
reason: 'Transaction is already assigned to property'
|
|
3547
3553
|
};
|
|
3554
|
+
if (isUnknownReceiptAssignedToProperty(transaction)) return {
|
|
3555
|
+
isAssignable: false,
|
|
3556
|
+
reason: 'Cannot assign to property transaction due to this unknown transaction has been assigned to property'
|
|
3557
|
+
};
|
|
3558
|
+
if (isUnknownReceiptPaidOut(transaction)) return {
|
|
3559
|
+
isAssignable: false,
|
|
3560
|
+
reason: 'Cannot assign to property transaction due to this unknown transaction has been paid out'
|
|
3561
|
+
};
|
|
3548
3562
|
return {
|
|
3549
3563
|
isAssignable: true
|
|
3550
3564
|
};
|
|
@@ -3563,6 +3577,7 @@ var __webpack_exports__ = {};
|
|
|
3563
3577
|
const transactionNumber = getTransactionNumber(transaction);
|
|
3564
3578
|
const isCancelable = isTransactionCancelable(transaction);
|
|
3565
3579
|
const isReconciled = transaction.reconciledTransactions?.length ? transaction.reconciledTransactions.length > 0 : false;
|
|
3580
|
+
const isPaidout = isUnknownReceiptPaidOut(transaction);
|
|
3566
3581
|
return {
|
|
3567
3582
|
isReceipt,
|
|
3568
3583
|
isPayment,
|
|
@@ -3572,7 +3587,8 @@ var __webpack_exports__ = {};
|
|
|
3572
3587
|
amountStr,
|
|
3573
3588
|
transactionNumber,
|
|
3574
3589
|
isCancelable: isCancelable.isCancelable,
|
|
3575
|
-
isReconciled
|
|
3590
|
+
isReconciled,
|
|
3591
|
+
isPaidout
|
|
3576
3592
|
};
|
|
3577
3593
|
};
|
|
3578
3594
|
const external_decimal_js_namespaceObject = require("decimal.js");
|
|
@@ -3857,7 +3873,7 @@ var __webpack_exports__ = {};
|
|
|
3857
3873
|
inputType: external_zod_namespaceObject.z.literal(mta_input_type_constant_MtaTransactionInputType.PAYMENT).prefault(mta_input_type_constant_MtaTransactionInputType.PAYMENT),
|
|
3858
3874
|
transactionType: external_zod_namespaceObject.z.literal(MtaTransactionType.TRUST_TO_CMA_PAYOUT).prefault(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
3859
3875
|
clearedAt: external_zod_namespaceObject.z.coerce.date().nullish()
|
|
3860
|
-
}).
|
|
3876
|
+
}).loose();
|
|
3861
3877
|
const mtaToCmaPayoutTargetDetailEntitySchema = external_zod_namespaceObject.z.object({
|
|
3862
3878
|
targetAccountId: external_zod_namespaceObject.z.string(),
|
|
3863
3879
|
targetAccountType: external_zod_namespaceObject.z.literal(payout_constant_PayoutTargetAccountType.CMA).prefault(payout_constant_PayoutTargetAccountType.CMA),
|
|
@@ -3871,7 +3887,7 @@ var __webpack_exports__ = {};
|
|
|
3871
3887
|
inputType: external_zod_namespaceObject.z.literal(cma_input_type_constant_CmaTransactionInputType.RECEIPT).prefault(cma_input_type_constant_CmaTransactionInputType.RECEIPT),
|
|
3872
3888
|
transactionType: external_zod_namespaceObject.z.literal(CmaTransactionType.RECEIPT).prefault(MtaTransactionType.TRUST_TO_CMA_PAYOUT),
|
|
3873
3889
|
clearedAt: external_zod_namespaceObject.z.coerce.date().nullish()
|
|
3874
|
-
}).
|
|
3890
|
+
}).loose();
|
|
3875
3891
|
const mtaToCmaPayoutPaymentEntitySchema = external_zod_namespaceObject.z.looseObject({
|
|
3876
3892
|
sourceDetail: mtaToCmaPayoutSourceDetailEntitySchema,
|
|
3877
3893
|
targetDetail: mtaToCmaPayoutTargetDetailEntitySchema,
|
|
@@ -3892,7 +3908,7 @@ var __webpack_exports__ = {};
|
|
|
3892
3908
|
bankRef: external_zod_namespaceObject.z.string().trim().min(1),
|
|
3893
3909
|
propertyId: external_zod_namespaceObject.z.uuid().nullish(),
|
|
3894
3910
|
clearedAt: external_zod_namespaceObject.z.coerce.date().nullish()
|
|
3895
|
-
}).
|
|
3911
|
+
}).loose();
|
|
3896
3912
|
const commonPayoutSourceDetailEntitySchema = external_zod_namespaceObject.z.object({
|
|
3897
3913
|
debitAmountCents: external_zod_namespaceObject.z.coerce.number(),
|
|
3898
3914
|
sourceAccountId: external_zod_namespaceObject.z.string(),
|
|
@@ -3907,7 +3923,7 @@ var __webpack_exports__ = {};
|
|
|
3907
3923
|
bankRef: external_zod_namespaceObject.z.string(),
|
|
3908
3924
|
description: external_zod_namespaceObject.z.string(),
|
|
3909
3925
|
clearedAt: external_zod_namespaceObject.z.coerce.date().nullish()
|
|
3910
|
-
}).
|
|
3926
|
+
}).loose();
|
|
3911
3927
|
const settlementPayoutSourceDetailEntitySchema = commonPayoutSourceDetailEntitySchema.extend({
|
|
3912
3928
|
propertyId: external_zod_namespaceObject.z.uuid()
|
|
3913
3929
|
}).loose();
|
|
@@ -4185,7 +4201,9 @@ var __webpack_exports__ = {};
|
|
|
4185
4201
|
date: dateStr,
|
|
4186
4202
|
dayjs: external_dayjs_default()(dateStr).tz(timeZone)
|
|
4187
4203
|
};
|
|
4188
|
-
|
|
4204
|
+
let parsedDate = external_dayjs_default()(dateStr?.trim());
|
|
4205
|
+
if (dateStr.trim().endsWith('Z')) parsedDate = external_dayjs_default()(dateStr?.trim()).tz(timeZone);
|
|
4206
|
+
else external_dayjs_default()(dateStr?.trim(), format, timeZone, strict);
|
|
4189
4207
|
if (!parsedDate.isValid()) return {
|
|
4190
4208
|
isValid: false,
|
|
4191
4209
|
date: null,
|
|
@@ -4236,6 +4254,7 @@ var __webpack_exports__ = {};
|
|
|
4236
4254
|
closingDescription: external_zod_namespaceObject.z.string().optional()
|
|
4237
4255
|
});
|
|
4238
4256
|
const stringToEndOfDaySchema = external_zod_namespaceObject.z.union([
|
|
4257
|
+
external_zod_namespaceObject.z.custom((data)=>external_dayjs_default().isDayjs(data)),
|
|
4239
4258
|
external_zod_namespaceObject.z.string(),
|
|
4240
4259
|
external_zod_namespaceObject.z.date(),
|
|
4241
4260
|
external_zod_namespaceObject.z.iso.datetime()
|
|
@@ -4497,6 +4516,7 @@ var __webpack_exports__ = {};
|
|
|
4497
4516
|
error: 'Account number must be all digits'
|
|
4498
4517
|
});
|
|
4499
4518
|
const stringToStartOfDaySchema = external_zod_namespaceObject.z.union([
|
|
4519
|
+
external_zod_namespaceObject.z.custom((data)=>external_dayjs_default().isDayjs(data)),
|
|
4500
4520
|
external_zod_namespaceObject.z.string(),
|
|
4501
4521
|
external_zod_namespaceObject.z.date(),
|
|
4502
4522
|
external_zod_namespaceObject.z.iso.datetime()
|
|
@@ -4772,11 +4792,12 @@ var __webpack_exports__ = {};
|
|
|
4772
4792
|
isReconciled: external_zod_namespaceObject.z.boolean().optional(),
|
|
4773
4793
|
isAssignableToProperty: external_zod_namespaceObject.z.boolean().nullish(),
|
|
4774
4794
|
isAssignedToProperty: external_zod_namespaceObject.z.boolean().nullish(),
|
|
4795
|
+
isPaidout: external_zod_namespaceObject.z.boolean().optional(),
|
|
4775
4796
|
isCancelable: external_zod_namespaceObject.z.boolean().nullish(),
|
|
4776
4797
|
amountStr: external_zod_namespaceObject.z.string().optional(),
|
|
4777
4798
|
transactionNumber: external_zod_namespaceObject.z.string().optional()
|
|
4778
4799
|
}).transform((obj)=>{
|
|
4779
|
-
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber } = getTransactionStatus(obj);
|
|
4800
|
+
const { isUnknown, isAssignedToProperty, isReceipt, isPayment, isAssignableToProperty, amountStr, transactionNumber, isPaidout } = getTransactionStatus(obj);
|
|
4780
4801
|
return {
|
|
4781
4802
|
...obj,
|
|
4782
4803
|
isUnknown,
|
|
@@ -4784,6 +4805,7 @@ var __webpack_exports__ = {};
|
|
|
4784
4805
|
isPayment,
|
|
4785
4806
|
isAssignableToProperty,
|
|
4786
4807
|
isAssignedToProperty,
|
|
4808
|
+
isPaidout,
|
|
4787
4809
|
amountStr,
|
|
4788
4810
|
transactionNumber
|
|
4789
4811
|
};
|
|
@@ -5060,11 +5082,11 @@ var __webpack_exports__ = {};
|
|
|
5060
5082
|
debitAmountCents: centsToDollarsSchema,
|
|
5061
5083
|
property: external_zod_namespaceObject.z.lazy(()=>propertyRestResBaseSchema).nullish(),
|
|
5062
5084
|
mtaTransaction: external_zod_namespaceObject.z.lazy(()=>mtaTransactionRestResSchema).nullish()
|
|
5063
|
-
}).
|
|
5085
|
+
}).loose();
|
|
5064
5086
|
const mtaToCmaPayoutTargetDetailRestSchema = mtaToCmaPayoutTargetDetailEntitySchema.extend({
|
|
5065
5087
|
creditAmountCents: centsToDollarsSchema,
|
|
5066
5088
|
cma: external_zod_namespaceObject.z.lazy(()=>cmaRestResSchema).nullish()
|
|
5067
|
-
}).
|
|
5089
|
+
}).loose();
|
|
5068
5090
|
const mtaToCmaPayoutPaymentRestSchema = external_zod_namespaceObject.z.looseObject({
|
|
5069
5091
|
sourceDetail: mtaToCmaPayoutSourceDetailRestSchema,
|
|
5070
5092
|
targetDetail: mtaToCmaPayoutTargetDetailRestSchema
|
|
@@ -5073,7 +5095,7 @@ var __webpack_exports__ = {};
|
|
|
5073
5095
|
mta: external_zod_namespaceObject.z.lazy(()=>mtaEntitySchema).nullish(),
|
|
5074
5096
|
payments: mtaToCmaPayoutPaymentRestSchema.array(),
|
|
5075
5097
|
payoutType: external_zod_namespaceObject.z.literal(PayoutType.TRUST_TO_CMA_PAYOUT).prefault(PayoutType.TRUST_TO_CMA_PAYOUT)
|
|
5076
|
-
}).
|
|
5098
|
+
}).loose();
|
|
5077
5099
|
const updateMtaToCmaPayoutRestReqSchema = external_zod_namespaceObject.z.object({
|
|
5078
5100
|
payoutId: external_zod_namespaceObject.z.uuid(),
|
|
5079
5101
|
bankRef: external_zod_namespaceObject.z.string().trim().min(1),
|
|
@@ -8247,6 +8269,22 @@ var __webpack_exports__ = {};
|
|
|
8247
8269
|
}
|
|
8248
8270
|
};
|
|
8249
8271
|
};
|
|
8272
|
+
const validateGetPropertyNameFormat = (template)=>{
|
|
8273
|
+
const validVariables = [
|
|
8274
|
+
'lotDetail',
|
|
8275
|
+
'buyerName',
|
|
8276
|
+
'projectName',
|
|
8277
|
+
'developerName',
|
|
8278
|
+
'propertyAddress'
|
|
8279
|
+
];
|
|
8280
|
+
const variableRegex = /\{\{([^}]+)\}\}/g;
|
|
8281
|
+
const matches = template.matchAll(variableRegex);
|
|
8282
|
+
for (const match of matches){
|
|
8283
|
+
const variable = match[1];
|
|
8284
|
+
if (!validVariables.includes(variable)) throw new Error(`Invalid template variable: ${variable}. Valid variables are: ${validVariables.join(', ')}`);
|
|
8285
|
+
}
|
|
8286
|
+
return template;
|
|
8287
|
+
};
|
|
8250
8288
|
const getPropertyName = (property, options)=>{
|
|
8251
8289
|
const { project, buyerName } = property;
|
|
8252
8290
|
let lotDetail = property.lotDetail?.trim();
|
|
@@ -8258,6 +8296,23 @@ var __webpack_exports__ = {};
|
|
|
8258
8296
|
lotDetail = `Unit ${lotDetail}`;
|
|
8259
8297
|
} else lotDetail = `Lot ${lotDetail}`;
|
|
8260
8298
|
else lotDetail = 'Lot N/A';
|
|
8299
|
+
if (options?.format) {
|
|
8300
|
+
const template = validateGetPropertyNameFormat(options.format);
|
|
8301
|
+
const templateVariables = {
|
|
8302
|
+
lotDetail,
|
|
8303
|
+
buyerName: buyerName || '',
|
|
8304
|
+
projectName: project?.name || '',
|
|
8305
|
+
developerName: project?.developer?.companyName || '',
|
|
8306
|
+
propertyAddress: property.propertyAddress || ''
|
|
8307
|
+
};
|
|
8308
|
+
let result = template;
|
|
8309
|
+
Object.entries(templateVariables).forEach(([key, value])=>{
|
|
8310
|
+
const placeholder = `{{${key}}}`;
|
|
8311
|
+
result = result.replace(new RegExp(placeholder, 'g'), value);
|
|
8312
|
+
});
|
|
8313
|
+
result = result.replace(/\{\{[^}]+\}\}/g, '').trim();
|
|
8314
|
+
return result || 'Nill';
|
|
8315
|
+
}
|
|
8261
8316
|
const { target = 'payout' } = options || {};
|
|
8262
8317
|
let separator = ' ';
|
|
8263
8318
|
if (options?.separator) separator = options.separator;
|
|
@@ -8457,6 +8512,7 @@ exports.isReceiptTransaction = __webpack_exports__.isReceiptTransaction;
|
|
|
8457
8512
|
exports.isTransactionAssignable = __webpack_exports__.isTransactionAssignable;
|
|
8458
8513
|
exports.isTransactionCancelable = __webpack_exports__.isTransactionCancelable;
|
|
8459
8514
|
exports.isUnknownReceiptAssignedToProperty = __webpack_exports__.isUnknownReceiptAssignedToProperty;
|
|
8515
|
+
exports.isUnknownReceiptPaidOut = __webpack_exports__.isUnknownReceiptPaidOut;
|
|
8460
8516
|
exports.isUnknownTransaction = __webpack_exports__.isUnknownTransaction;
|
|
8461
8517
|
exports.markCmaTransactionAsClearedRestReqSchema = __webpack_exports__.markCmaTransactionAsClearedRestReqSchema;
|
|
8462
8518
|
exports.maskBankAccount = __webpack_exports__.maskBankAccount;
|
|
@@ -8572,6 +8628,7 @@ exports.updateUnknownPayoutRestReqSchema = __webpack_exports__.updateUnknownPayo
|
|
|
8572
8628
|
exports.updateUnknownPayoutTargetDetailRestReqSchema = __webpack_exports__.updateUnknownPayoutTargetDetailRestReqSchema;
|
|
8573
8629
|
exports.userEntitySchema = __webpack_exports__.userEntitySchema;
|
|
8574
8630
|
exports.userRestResSchema = __webpack_exports__.userRestResSchema;
|
|
8631
|
+
exports.validateGetPropertyNameFormat = __webpack_exports__.validateGetPropertyNameFormat;
|
|
8575
8632
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
8576
8633
|
"ASSIGN_UNKNOWN_TO_CUSTOMER",
|
|
8577
8634
|
"AccountPeriodStatus",
|
|
@@ -8733,6 +8790,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8733
8790
|
"isTransactionAssignable",
|
|
8734
8791
|
"isTransactionCancelable",
|
|
8735
8792
|
"isUnknownReceiptAssignedToProperty",
|
|
8793
|
+
"isUnknownReceiptPaidOut",
|
|
8736
8794
|
"isUnknownTransaction",
|
|
8737
8795
|
"markCmaTransactionAsClearedRestReqSchema",
|
|
8738
8796
|
"maskBankAccount",
|
|
@@ -8847,7 +8905,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8847
8905
|
"updateUnknownPayoutRestReqSchema",
|
|
8848
8906
|
"updateUnknownPayoutTargetDetailRestReqSchema",
|
|
8849
8907
|
"userEntitySchema",
|
|
8850
|
-
"userRestResSchema"
|
|
8908
|
+
"userRestResSchema",
|
|
8909
|
+
"validateGetPropertyNameFormat"
|
|
8851
8910
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
8852
8911
|
Object.defineProperty(exports, '__esModule', {
|
|
8853
8912
|
value: true
|
package/dist/cjs/schemas/cma-account-period/cma-account-period-closing-summary.rest.schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const cmaAccountPeriodClosingSummaryRestReqSchema: z.ZodObject<{
|
|
3
3
|
cmaAccountPeriodId: z.ZodUUID;
|
|
4
|
-
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | Date>>, z.ZodDate>;
|
|
4
|
+
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCustom<import("dayjs").Dayjs, import("dayjs").Dayjs>, z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | import("dayjs").Dayjs | Date>>, z.ZodDate>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type CmaAccountPeriodClosingSummaryRestReq = z.input<typeof cmaAccountPeriodClosingSummaryRestReqSchema>;
|
|
7
7
|
export declare const cmaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const createCmaReconciliationRestReqSchema: z.ZodObject<{
|
|
3
3
|
bankStatementBalanceCents: z.ZodCodec<z.ZodUnion<readonly [z.ZodString, z.ZodBigInt, z.ZodNumber]>, z.ZodBigInt>;
|
|
4
|
-
reconciledTo: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | Date>>, z.ZodDate>;
|
|
4
|
+
reconciledTo: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCustom<import("dayjs").Dayjs, import("dayjs").Dayjs>, z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | import("dayjs").Dayjs | Date>>, z.ZodDate>;
|
|
5
5
|
cmaAccountPeriodId: z.ZodUUID;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export type CreateCmaReconciliationRestReq = z.input<typeof createCmaReconciliationRestReqSchema>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
export declare const stringToEndOfDaySchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | Date>>, z.ZodDate>;
|
|
3
|
+
export declare const stringToEndOfDaySchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCustom<dayjs.Dayjs, dayjs.Dayjs>, z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | dayjs.Dayjs | Date>>, z.ZodDate>;
|
|
3
4
|
//# sourceMappingURL=string-to-end-of-day.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-to-end-of-day.schema.d.ts","sourceRoot":"","sources":["../../../../../packages/schemas/common/date/string-to-end-of-day.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"string-to-end-of-day.schema.d.ts","sourceRoot":"","sources":["../../../../../packages/schemas/common/date/string-to-end-of-day.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB,qMAkBlB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
1
2
|
import { z } from 'zod';
|
|
2
|
-
export declare const stringToStartOfDaySchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | Date>>, z.ZodDate>;
|
|
3
|
+
export declare const stringToStartOfDaySchema: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCustom<dayjs.Dayjs, dayjs.Dayjs>, z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | dayjs.Dayjs | Date>>, z.ZodDate>;
|
|
3
4
|
//# sourceMappingURL=string-to-start-of-day.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string-to-start-of-day.schema.d.ts","sourceRoot":"","sources":["../../../../../packages/schemas/common/date/string-to-start-of-day.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"string-to-start-of-day.schema.d.ts","sourceRoot":"","sources":["../../../../../packages/schemas/common/date/string-to-start-of-day.schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB,qMAiBpB,CAAC"}
|
package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const mtaAccountPeriodClosingSummaryRestReqSchema: z.ZodObject<{
|
|
3
3
|
mtaAccountPeriodId: z.ZodUUID;
|
|
4
|
-
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | Date>>, z.ZodDate>;
|
|
4
|
+
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodCustom<import("dayjs").Dayjs, import("dayjs").Dayjs>, z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | import("dayjs").Dayjs | Date>>, z.ZodDate>;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type MtaAccountPeriodClosingSummaryRestReq = z.input<typeof mtaAccountPeriodClosingSummaryRestReqSchema>;
|
|
7
7
|
export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
@@ -344,6 +344,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
344
344
|
isUnknown?: boolean | null | undefined;
|
|
345
345
|
isAssignableToProperty?: boolean | null | undefined;
|
|
346
346
|
isAssignedToProperty?: boolean | null | undefined;
|
|
347
|
+
isPaidout?: boolean | null | undefined;
|
|
347
348
|
amountStr?: string | null | undefined;
|
|
348
349
|
transactionNumber?: string | null | undefined;
|
|
349
350
|
isCancelable?: boolean | null | undefined;
|
|
@@ -358,10 +359,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
358
359
|
isRefunded: boolean;
|
|
359
360
|
isCanceled: boolean;
|
|
360
361
|
isArchived: boolean;
|
|
361
|
-
clearedAt:
|
|
362
|
-
createdAt:
|
|
363
|
-
syncedAt:
|
|
364
|
-
updatedAt:
|
|
362
|
+
clearedAt: Date | null;
|
|
363
|
+
createdAt: Date;
|
|
364
|
+
syncedAt: Date;
|
|
365
|
+
updatedAt: Date;
|
|
365
366
|
note: string | null;
|
|
366
367
|
sourceTransactionId: string | null;
|
|
367
368
|
cancelType: string | null;
|
|
@@ -454,10 +455,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
454
455
|
isRefunded: boolean;
|
|
455
456
|
isCanceled: boolean;
|
|
456
457
|
isArchived: boolean;
|
|
457
|
-
clearedAt:
|
|
458
|
-
createdAt:
|
|
459
|
-
syncedAt:
|
|
460
|
-
updatedAt:
|
|
458
|
+
clearedAt: Date | null;
|
|
459
|
+
createdAt: Date;
|
|
460
|
+
syncedAt: Date;
|
|
461
|
+
updatedAt: Date;
|
|
461
462
|
note: string | null;
|
|
462
463
|
sourceTransactionId: string | null;
|
|
463
464
|
cancelType: string | null;
|
|
@@ -549,10 +550,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
549
550
|
isRefunded: boolean;
|
|
550
551
|
isCanceled: boolean;
|
|
551
552
|
isArchived: boolean;
|
|
552
|
-
clearedAt:
|
|
553
|
-
createdAt:
|
|
554
|
-
syncedAt:
|
|
555
|
-
updatedAt:
|
|
553
|
+
clearedAt: Date | null;
|
|
554
|
+
createdAt: Date;
|
|
555
|
+
syncedAt: Date;
|
|
556
|
+
updatedAt: Date;
|
|
556
557
|
note: string | null;
|
|
557
558
|
sourceTransactionId: string | null;
|
|
558
559
|
cancelType: string | null;
|
|
@@ -927,6 +928,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
927
928
|
isUnknown?: boolean | null | undefined;
|
|
928
929
|
isAssignableToProperty?: boolean | null | undefined;
|
|
929
930
|
isAssignedToProperty?: boolean | null | undefined;
|
|
931
|
+
isPaidout?: boolean | null | undefined;
|
|
930
932
|
amountStr?: string | null | undefined;
|
|
931
933
|
transactionNumber?: string | null | undefined;
|
|
932
934
|
isCancelable?: boolean | null | undefined;
|
|
@@ -941,10 +943,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
941
943
|
isRefunded: boolean;
|
|
942
944
|
isCanceled: boolean;
|
|
943
945
|
isArchived: boolean;
|
|
944
|
-
clearedAt:
|
|
945
|
-
createdAt:
|
|
946
|
-
syncedAt:
|
|
947
|
-
updatedAt:
|
|
946
|
+
clearedAt: Date | null;
|
|
947
|
+
createdAt: Date;
|
|
948
|
+
syncedAt: Date;
|
|
949
|
+
updatedAt: Date;
|
|
948
950
|
note: string | null;
|
|
949
951
|
sourceTransactionId: string | null;
|
|
950
952
|
cancelType: string | null;
|
|
@@ -1037,10 +1039,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1037
1039
|
isRefunded: boolean;
|
|
1038
1040
|
isCanceled: boolean;
|
|
1039
1041
|
isArchived: boolean;
|
|
1040
|
-
clearedAt:
|
|
1041
|
-
createdAt:
|
|
1042
|
-
syncedAt:
|
|
1043
|
-
updatedAt:
|
|
1042
|
+
clearedAt: Date | null;
|
|
1043
|
+
createdAt: Date;
|
|
1044
|
+
syncedAt: Date;
|
|
1045
|
+
updatedAt: Date;
|
|
1044
1046
|
note: string | null;
|
|
1045
1047
|
sourceTransactionId: string | null;
|
|
1046
1048
|
cancelType: string | null;
|
|
@@ -1132,10 +1134,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1132
1134
|
isRefunded: boolean;
|
|
1133
1135
|
isCanceled: boolean;
|
|
1134
1136
|
isArchived: boolean;
|
|
1135
|
-
clearedAt:
|
|
1136
|
-
createdAt:
|
|
1137
|
-
syncedAt:
|
|
1138
|
-
updatedAt:
|
|
1137
|
+
clearedAt: Date | null;
|
|
1138
|
+
createdAt: Date;
|
|
1139
|
+
syncedAt: Date;
|
|
1140
|
+
updatedAt: Date;
|
|
1139
1141
|
note: string | null;
|
|
1140
1142
|
sourceTransactionId: string | null;
|
|
1141
1143
|
cancelType: string | null;
|
|
@@ -1512,6 +1514,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1512
1514
|
isUnknown?: boolean | null | undefined;
|
|
1513
1515
|
isAssignableToProperty?: boolean | null | undefined;
|
|
1514
1516
|
isAssignedToProperty?: boolean | null | undefined;
|
|
1517
|
+
isPaidout?: boolean | null | undefined;
|
|
1515
1518
|
amountStr?: string | null | undefined;
|
|
1516
1519
|
transactionNumber?: string | null | undefined;
|
|
1517
1520
|
isCancelable?: boolean | null | undefined;
|
|
@@ -1526,10 +1529,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1526
1529
|
isRefunded: boolean;
|
|
1527
1530
|
isCanceled: boolean;
|
|
1528
1531
|
isArchived: boolean;
|
|
1529
|
-
clearedAt:
|
|
1530
|
-
createdAt:
|
|
1531
|
-
syncedAt:
|
|
1532
|
-
updatedAt:
|
|
1532
|
+
clearedAt: Date | null;
|
|
1533
|
+
createdAt: Date;
|
|
1534
|
+
syncedAt: Date;
|
|
1535
|
+
updatedAt: Date;
|
|
1533
1536
|
note: string | null;
|
|
1534
1537
|
sourceTransactionId: string | null;
|
|
1535
1538
|
cancelType: string | null;
|
|
@@ -1622,10 +1625,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1622
1625
|
isRefunded: boolean;
|
|
1623
1626
|
isCanceled: boolean;
|
|
1624
1627
|
isArchived: boolean;
|
|
1625
|
-
clearedAt:
|
|
1626
|
-
createdAt:
|
|
1627
|
-
syncedAt:
|
|
1628
|
-
updatedAt:
|
|
1628
|
+
clearedAt: Date | null;
|
|
1629
|
+
createdAt: Date;
|
|
1630
|
+
syncedAt: Date;
|
|
1631
|
+
updatedAt: Date;
|
|
1629
1632
|
note: string | null;
|
|
1630
1633
|
sourceTransactionId: string | null;
|
|
1631
1634
|
cancelType: string | null;
|
|
@@ -1717,10 +1720,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
1717
1720
|
isRefunded: boolean;
|
|
1718
1721
|
isCanceled: boolean;
|
|
1719
1722
|
isArchived: boolean;
|
|
1720
|
-
clearedAt:
|
|
1721
|
-
createdAt:
|
|
1722
|
-
syncedAt:
|
|
1723
|
-
updatedAt:
|
|
1723
|
+
clearedAt: Date | null;
|
|
1724
|
+
createdAt: Date;
|
|
1725
|
+
syncedAt: Date;
|
|
1726
|
+
updatedAt: Date;
|
|
1724
1727
|
note: string | null;
|
|
1725
1728
|
sourceTransactionId: string | null;
|
|
1726
1729
|
cancelType: string | null;
|
|
@@ -2095,6 +2098,7 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2095
2098
|
isUnknown?: boolean | null | undefined;
|
|
2096
2099
|
isAssignableToProperty?: boolean | null | undefined;
|
|
2097
2100
|
isAssignedToProperty?: boolean | null | undefined;
|
|
2101
|
+
isPaidout?: boolean | null | undefined;
|
|
2098
2102
|
amountStr?: string | null | undefined;
|
|
2099
2103
|
transactionNumber?: string | null | undefined;
|
|
2100
2104
|
isCancelable?: boolean | null | undefined;
|
|
@@ -2109,10 +2113,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2109
2113
|
isRefunded: boolean;
|
|
2110
2114
|
isCanceled: boolean;
|
|
2111
2115
|
isArchived: boolean;
|
|
2112
|
-
clearedAt:
|
|
2113
|
-
createdAt:
|
|
2114
|
-
syncedAt:
|
|
2115
|
-
updatedAt:
|
|
2116
|
+
clearedAt: Date | null;
|
|
2117
|
+
createdAt: Date;
|
|
2118
|
+
syncedAt: Date;
|
|
2119
|
+
updatedAt: Date;
|
|
2116
2120
|
note: string | null;
|
|
2117
2121
|
sourceTransactionId: string | null;
|
|
2118
2122
|
cancelType: string | null;
|
|
@@ -2205,10 +2209,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2205
2209
|
isRefunded: boolean;
|
|
2206
2210
|
isCanceled: boolean;
|
|
2207
2211
|
isArchived: boolean;
|
|
2208
|
-
clearedAt:
|
|
2209
|
-
createdAt:
|
|
2210
|
-
syncedAt:
|
|
2211
|
-
updatedAt:
|
|
2212
|
+
clearedAt: Date | null;
|
|
2213
|
+
createdAt: Date;
|
|
2214
|
+
syncedAt: Date;
|
|
2215
|
+
updatedAt: Date;
|
|
2212
2216
|
note: string | null;
|
|
2213
2217
|
sourceTransactionId: string | null;
|
|
2214
2218
|
cancelType: string | null;
|
|
@@ -2300,10 +2304,10 @@ export declare const mtaAccountPeriodClosingSummaryRestResSchema: z.ZodObject<{
|
|
|
2300
2304
|
isRefunded: boolean;
|
|
2301
2305
|
isCanceled: boolean;
|
|
2302
2306
|
isArchived: boolean;
|
|
2303
|
-
clearedAt:
|
|
2304
|
-
createdAt:
|
|
2305
|
-
syncedAt:
|
|
2306
|
-
updatedAt:
|
|
2307
|
+
clearedAt: Date | null;
|
|
2308
|
+
createdAt: Date;
|
|
2309
|
+
syncedAt: Date;
|
|
2310
|
+
updatedAt: Date;
|
|
2307
2311
|
note: string | null;
|
|
2308
2312
|
sourceTransactionId: string | null;
|
|
2309
2313
|
cancelType: string | null;
|
package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mta-account-period-closing-summary.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2CAA2C;;;iBAGtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,eAAO,MAAM,2CAA2C
|
|
1
|
+
{"version":3,"file":"mta-account-period-closing-summary.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2CAA2C;;;iBAGtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC;AAEhH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC"}
|