@mikemo-coposit/am-accounting-shared 1.2.0 → 1.2.1

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.
@@ -1,2 +1,2 @@
1
- export declare const PACKAGE_VERSION = "1.2.0";
1
+ export declare const PACKAGE_VERSION = "1.2.1";
2
2
  //# sourceMappingURL=package-version.constant.d.ts.map
@@ -2657,6 +2657,7 @@ var __webpack_exports__ = {};
2657
2657
  maskString: ()=>maskString,
2658
2658
  balanceRestResSchema: ()=>balanceRestResSchema,
2659
2659
  cmaAccountPeriodRestResSchema: ()=>cmaAccountPeriodRestResSchema,
2660
+ buyerLedgerRestReqBaseSchema: ()=>buyerLedgerRestReqBaseSchema,
2660
2661
  getTransactionNumber: ()=>getTransactionNumber,
2661
2662
  PayoutType: ()=>PayoutType,
2662
2663
  intFilterSchema: ()=>intFilterSchema,
@@ -2802,7 +2803,7 @@ var __webpack_exports__ = {};
2802
2803
  MtaTransactionPaymentMethod: ()=>mta_payment_method_constant_MtaTransactionPaymentMethod,
2803
2804
  JsonNullableFilterSchema: ()=>JsonNullableFilterSchema,
2804
2805
  stringToEndOfDaySchema: ()=>stringToEndOfDaySchema,
2805
- PACKAGE_VERSION: ()=>"1.2.0",
2806
+ PACKAGE_VERSION: ()=>"1.2.1",
2806
2807
  createSettlementPayoutRestReqSchema: ()=>createSettlementPayoutRestReqSchema,
2807
2808
  DEFAULT_PAYOUT_TARGET_BANK_REF: ()=>DEFAULT_PAYOUT_TARGET_BANK_REF,
2808
2809
  CmaTransactionStatus: ()=>CmaTransactionStatus,
@@ -5764,10 +5765,37 @@ var __webpack_exports__ = {};
5764
5765
  });
5765
5766
  });
5766
5767
  const bankReconciliationSummaryRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
5767
- const buyerLedgerRestReqSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
5768
+ const buyerLedgerRestReqBaseSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
5768
5769
  propertyIds: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.uuid()).min(1),
5769
- reportGroupType: external_zod_namespaceObject.z["enum"](report_group_type_constant_ReportGroupType)
5770
+ reportGroupType: external_zod_namespaceObject.z["enum"](report_group_type_constant_ReportGroupType),
5771
+ showMta: external_zod_namespaceObject.z.boolean().default(true),
5772
+ showCma: external_zod_namespaceObject.z.boolean().default(true),
5773
+ mtaTransactionTypes: external_zod_namespaceObject.z["enum"](MtaTransactionType).array().optional(),
5774
+ cmaTransactionTypes: external_zod_namespaceObject.z["enum"](CmaTransactionType).array().optional()
5770
5775
  }));
5776
+ const buyerLedgerRestReqSchema = buyerLedgerRestReqBaseSchema.superRefine((data, ctx)=>{
5777
+ if (!data.showMta && !data.showCma) ctx.addIssue({
5778
+ code: "custom",
5779
+ message: "At least one of MTA or CMA must be selected",
5780
+ path: [
5781
+ "showMta"
5782
+ ]
5783
+ });
5784
+ if (data.showMta && (!data.mtaTransactionTypes || 0 === data.mtaTransactionTypes.length)) ctx.addIssue({
5785
+ code: "custom",
5786
+ message: "Select at least one MTA transaction type",
5787
+ path: [
5788
+ "mtaTransactionTypes"
5789
+ ]
5790
+ });
5791
+ if (data.showCma && (!data.cmaTransactionTypes || 0 === data.cmaTransactionTypes.length)) ctx.addIssue({
5792
+ code: "custom",
5793
+ message: "Select at least one CMA transaction type",
5794
+ path: [
5795
+ "cmaTransactionTypes"
5796
+ ]
5797
+ });
5798
+ });
5771
5799
  const paymentListReportRestReqSchema = commonReportRestReqSchema.and(external_zod_namespaceObject.z.object({
5772
5800
  accountId: external_zod_namespaceObject.z.uuid(),
5773
5801
  accountType: external_zod_namespaceObject.z["enum"](account_type_constant_AccountType)
@@ -8948,6 +8976,7 @@ exports.bigIntObjectFilterSchema = __webpack_exports__.bigIntObjectFilterSchema;
8948
8976
  exports.bigIntSimpleFilterSchema = __webpack_exports__.bigIntSimpleFilterSchema;
8949
8977
  exports.boolFilterBaseSchema = __webpack_exports__.boolFilterBaseSchema;
8950
8978
  exports.boolFilterSchema = __webpack_exports__.boolFilterSchema;
8979
+ exports.buyerLedgerRestReqBaseSchema = __webpack_exports__.buyerLedgerRestReqBaseSchema;
8951
8980
  exports.buyerLedgerRestReqSchema = __webpack_exports__.buyerLedgerRestReqSchema;
8952
8981
  exports.cancelCmaTransactionRestReqSchema = __webpack_exports__.cancelCmaTransactionRestReqSchema;
8953
8982
  exports.cancelMtaTransactionRestReqSchema = __webpack_exports__.cancelMtaTransactionRestReqSchema;
@@ -9254,6 +9283,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
9254
9283
  "bigIntSimpleFilterSchema",
9255
9284
  "boolFilterBaseSchema",
9256
9285
  "boolFilterSchema",
9286
+ "buyerLedgerRestReqBaseSchema",
9257
9287
  "buyerLedgerRestReqSchema",
9258
9288
  "cancelCmaTransactionRestReqSchema",
9259
9289
  "cancelMtaTransactionRestReqSchema",
@@ -1,5 +1,42 @@
1
1
  import { z } from "zod";
2
2
  import { ReportGroupType } from "../../constants/report/common/report-group-type.constant";
3
+ export declare const buyerLedgerRestReqBaseSchema: z.ZodIntersection<z.ZodObject<{
4
+ reportDataRangeType: z.ZodEnum<typeof import("../..").ReportDataRangeType>;
5
+ endDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
6
+ startDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
7
+ }, z.core.$strip>, z.ZodObject<{
8
+ propertyIds: z.ZodArray<z.ZodUUID>;
9
+ reportGroupType: z.ZodEnum<typeof ReportGroupType>;
10
+ showMta: z.ZodDefault<z.ZodBoolean>;
11
+ showCma: z.ZodDefault<z.ZodBoolean>;
12
+ mtaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
13
+ ASSIGN_UNKNOWN_TO_CUSTOMER: string;
14
+ TRANSACTION_CANCEL: string;
15
+ TRUST_TO_CMA_PAYOUT: string;
16
+ TRUST_SETTLEMENT_PAYOUT: string;
17
+ REFUND_PAYOUT: string;
18
+ UNKNOWN_PAYOUT: string;
19
+ PAYOUT: string;
20
+ UNKNOWN: string;
21
+ HOLDING_DEPOSIT: string;
22
+ SIGNING_DEPOSIT: string;
23
+ WEEKLY_PAYMENT: string;
24
+ CMA_CLOSURE_DEPOSIT: string;
25
+ CMA_INTEREST: string;
26
+ }>>>;
27
+ cmaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
28
+ TRANSACTION_CANCEL: string;
29
+ CMA_SETTLEMENT_PAYOUT: string;
30
+ CMA_REFUND_PAYOUT: string;
31
+ CMA_BANK_FEE: string;
32
+ INTEREST: string;
33
+ RECEIPT: string;
34
+ }>>>;
35
+ }, z.core.$strip>>;
36
+ /**
37
+ * Full schema with cross-field validation — used by the frontend for
38
+ * safeParseAsync and by the backend validation pipe at runtime.
39
+ */
3
40
  export declare const buyerLedgerRestReqSchema: z.ZodIntersection<z.ZodObject<{
4
41
  reportDataRangeType: z.ZodEnum<typeof import("../..").ReportDataRangeType>;
5
42
  endDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
@@ -7,6 +44,31 @@ export declare const buyerLedgerRestReqSchema: z.ZodIntersection<z.ZodObject<{
7
44
  }, z.core.$strip>, z.ZodObject<{
8
45
  propertyIds: z.ZodArray<z.ZodUUID>;
9
46
  reportGroupType: z.ZodEnum<typeof ReportGroupType>;
47
+ showMta: z.ZodDefault<z.ZodBoolean>;
48
+ showCma: z.ZodDefault<z.ZodBoolean>;
49
+ mtaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50
+ ASSIGN_UNKNOWN_TO_CUSTOMER: string;
51
+ TRANSACTION_CANCEL: string;
52
+ TRUST_TO_CMA_PAYOUT: string;
53
+ TRUST_SETTLEMENT_PAYOUT: string;
54
+ REFUND_PAYOUT: string;
55
+ UNKNOWN_PAYOUT: string;
56
+ PAYOUT: string;
57
+ UNKNOWN: string;
58
+ HOLDING_DEPOSIT: string;
59
+ SIGNING_DEPOSIT: string;
60
+ WEEKLY_PAYMENT: string;
61
+ CMA_CLOSURE_DEPOSIT: string;
62
+ CMA_INTEREST: string;
63
+ }>>>;
64
+ cmaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
65
+ TRANSACTION_CANCEL: string;
66
+ CMA_SETTLEMENT_PAYOUT: string;
67
+ CMA_REFUND_PAYOUT: string;
68
+ CMA_BANK_FEE: string;
69
+ INTEREST: string;
70
+ RECEIPT: string;
71
+ }>>>;
10
72
  }, z.core.$strip>>;
11
73
  export type BuyerLedgerRestReq = z.input<typeof buyerLedgerRestReqSchema>;
12
74
  //# sourceMappingURL=buyer-ledger.rest.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buyer-ledger.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/buyer-ledger.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAG3F,eAAO,MAAM,wBAAwB;;;;;;;kBAKpC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"buyer-ledger.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/buyer-ledger.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAG3F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const PACKAGE_VERSION = "1.2.0";
1
+ export declare const PACKAGE_VERSION = "1.2.1";
2
2
  //# sourceMappingURL=package-version.constant.d.ts.map
package/dist/esm/index.js CHANGED
@@ -2926,10 +2926,37 @@ const commonReportWithCmaSelectionRestReqSchema = commonReportRestReqSchema.and(
2926
2926
  });
2927
2927
  });
2928
2928
  const bankReconciliationSummaryRestReqSchema = commonReportWithCmaSelectionRestReqSchema;
2929
- const buyerLedgerRestReqSchema = commonReportRestReqSchema.and(z.object({
2929
+ const buyerLedgerRestReqBaseSchema = commonReportRestReqSchema.and(z.object({
2930
2930
  propertyIds: z.array(z.uuid()).min(1),
2931
- reportGroupType: z["enum"](report_group_type_constant_ReportGroupType)
2931
+ reportGroupType: z["enum"](report_group_type_constant_ReportGroupType),
2932
+ showMta: z.boolean().default(true),
2933
+ showCma: z.boolean().default(true),
2934
+ mtaTransactionTypes: z["enum"](MtaTransactionType).array().optional(),
2935
+ cmaTransactionTypes: z["enum"](CmaTransactionType).array().optional()
2932
2936
  }));
2937
+ const buyerLedgerRestReqSchema = buyerLedgerRestReqBaseSchema.superRefine((data, ctx)=>{
2938
+ if (!data.showMta && !data.showCma) ctx.addIssue({
2939
+ code: "custom",
2940
+ message: "At least one of MTA or CMA must be selected",
2941
+ path: [
2942
+ "showMta"
2943
+ ]
2944
+ });
2945
+ if (data.showMta && (!data.mtaTransactionTypes || 0 === data.mtaTransactionTypes.length)) ctx.addIssue({
2946
+ code: "custom",
2947
+ message: "Select at least one MTA transaction type",
2948
+ path: [
2949
+ "mtaTransactionTypes"
2950
+ ]
2951
+ });
2952
+ if (data.showCma && (!data.cmaTransactionTypes || 0 === data.cmaTransactionTypes.length)) ctx.addIssue({
2953
+ code: "custom",
2954
+ message: "Select at least one CMA transaction type",
2955
+ path: [
2956
+ "cmaTransactionTypes"
2957
+ ]
2958
+ });
2959
+ });
2933
2960
  const paymentListReportRestReqSchema = commonReportRestReqSchema.and(z.object({
2934
2961
  accountId: z.uuid(),
2935
2962
  accountType: z["enum"](account_type_constant_AccountType)
@@ -5232,5 +5259,5 @@ const getPropertyName = (property, options)=>{
5232
5259
  };
5233
5260
  var __webpack_exports__DEFAULT_PAGE = 1;
5234
5261
  var __webpack_exports__DEFAULT_PAGE_SIZE = 500;
5235
- var __webpack_exports__PACKAGE_VERSION = "1.2.0";
5236
- 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, cma_creation_request_constant_CmaRequestApprovalStatus as CmaRequestApprovalStatus, 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, approveCmaClosureRequestRestReqSchema, approveCmaRequestRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, bigIntNullableFilterSchema, bigIntNullableObjectFilterSchema, bigIntObjectFilterSchema, bigIntSimpleFilterSchema, boolFilterBaseSchema, boolFilterSchema, buyerLedgerRestReqSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaClosureRequestEntitySchema, cmaCreationRequestEntitySchema, cmaEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqBaseSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaClosureRequestRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRequestRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createRefundPayoutRestReqSchema, createRefundPayoutSourceAccountSchema, createRefundPayoutTargetAccountSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerSyncFromAmmozeGrpcReqSchema, 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, markPropertyCmaNotRequiredReqSchema, 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, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, projectSearchRestReqSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqBaseSchema, propertySearchRestReqSchema, propertySyncFromAmmozeGrpcReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, refundPayoutPaymentEntitySchema, refundPayoutProvisionDataEntitySchema, refundPayoutRestResSchema, refundPayoutSourceDetailEntitySchema, refundPayoutTargetDetailEntitySchema, rejectCmaClosureRequestRestReqSchema, rejectCmaRequestRestReqSchema, safeParseDateFromStr, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, sortReqSchema, stateCodeSchema, statusFilterSchema, statusNullableFilterSchema, stringFilterSchema, stringNullSchema, stringNullableFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaRequestRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateMtaTransactionRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateRefundPayoutRestReqSchema, updateRefundPayoutTargetDetailRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema, validateGetPropertyNameFormat, vendorLedgerRestReqSchema, __webpack_exports__DEFAULT_PAGE as DEFAULT_PAGE, __webpack_exports__DEFAULT_PAGE_SIZE as DEFAULT_PAGE_SIZE, __webpack_exports__PACKAGE_VERSION as PACKAGE_VERSION };
5262
+ var __webpack_exports__PACKAGE_VERSION = "1.2.1";
5263
+ 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, cma_creation_request_constant_CmaRequestApprovalStatus as CmaRequestApprovalStatus, 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, approveCmaClosureRequestRestReqSchema, approveCmaRequestRestReqSchema, approveMtaAllocationRestReqSchema, assignUnknownReceiptToPropertyRestReqSchema, balanceRestResSchema, bankCodeSchema, bankReconciliationSummaryRestReqSchema, bigIntFilterSchema, bigIntNullableFilterSchema, bigIntNullableObjectFilterSchema, bigIntObjectFilterSchema, bigIntSimpleFilterSchema, boolFilterBaseSchema, boolFilterSchema, buyerLedgerRestReqBaseSchema, buyerLedgerRestReqSchema, cancelCmaTransactionRestReqSchema, cancelMtaTransactionRestReqSchema, cancelPayoutPaymentRestReqSchema, cancelPayoutRestReqSchema, centsToDollarsSchema, cmaAccountPeriodCloseRestReqSchema, cmaAccountPeriodClosingSummaryRestReqSchema, cmaAccountPeriodClosingSummaryRestResSchema, cmaAccountPeriodEntitySchema, cmaAccountPeriodRestResBaseSchema, cmaAccountPeriodRestResSchema, cmaClosedAccountPeriodRestResSchema, cmaClosureRequestEntitySchema, cmaCreationRequestEntitySchema, cmaEntitySchema, cmaReconciledTransactionEntitySchema, cmaReconciledTransactionRestResSchema, cmaReconciliationEntitySchema, cmaReconciliationRestResSchema, cmaRestResBaseSchema, cmaRestResSchema, cmaSearchRestReqBaseSchema, cmaSearchRestReqSchema, cmaSettlementPayoutRestResSchema, cmaTransactionEntitySchema, cmaTransactionRestResBaseSchema, cmaTransactionRestResSchema, cmaTransactionSearchRestReqSchema, commonPayoutSourceDetailEntitySchema, commonPayoutTargetDetailEntitySchema, commonReportRestReqSchema, commonReportWithCmaSelectionRestReqSchema, commonUpdatePayoutRestReqSchema, commonUpdatePayoutTargetDetailRestReqSchema, confirmPayoutBankFileProcessedRestReqSchema, createCmaClosureRequestRestReqSchema, createCmaReconciliationRestReqSchema, createCmaRequestRestReqSchema, createCmaRestReqSchema, createCmaTransactionRestReqSchema, createMenuRestReqSchema, createMtaReconciliationRestReqSchema, createMtaRestReqSchema, createMtaToCmaPayoutRestReqSchema, createMtaTransactionRestReqSchema, createRefundPayoutRestReqSchema, createRefundPayoutSourceAccountSchema, createRefundPayoutTargetAccountSchema, createSettlementPayoutRestReqSchema, createSettlementPayoutSourceAccountSchema, createSettlementPayoutTargetAccountSchema, createUnknownPayoutRestReqSchema, customerEntitySchema, customerSyncFromAmmozeGrpcReqSchema, 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, markPropertyCmaNotRequiredReqSchema, 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, projectMtaAllocationEntitySchema, projectMtaAllocationRestResSchema, projectNestedEntitySchema, projectRestResSchema, projectSearchRestReqSchema, propertyAccountsBalanceRestResSchema, propertyEntitySchema, propertyNestedEntitySchema, propertyRestResBaseSchema, propertyRestResSchema, propertySearchRestReqBaseSchema, propertySearchRestReqSchema, propertySyncFromAmmozeGrpcReqSchema, queryModeSchema, receiptListReportRestReqSchema, reconcileCmaTransactionRestReqSchema, reconcileMtaTransactionRestReqSchema, reconciledItemsListReportRestReqSchema, refundPayoutPaymentEntitySchema, refundPayoutProvisionDataEntitySchema, refundPayoutRestResSchema, refundPayoutSourceDetailEntitySchema, refundPayoutTargetDetailEntitySchema, rejectCmaClosureRequestRestReqSchema, rejectCmaRequestRestReqSchema, safeParseDateFromStr, settlementPayoutPaymentEntitySchema, settlementPayoutProvisionDataEntitySchema, settlementPayoutRestResSchema, settlementPayoutSourceDetailEntitySchema, settlementPayoutTargetDetailEntitySchema, simpleStringFilterSchema, sortReqSchema, stateCodeSchema, statusFilterSchema, statusNullableFilterSchema, stringFilterSchema, stringNullSchema, stringNullableFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaRequestRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateMtaTransactionRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateRefundPayoutRestReqSchema, updateRefundPayoutTargetDetailRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema, validateGetPropertyNameFormat, vendorLedgerRestReqSchema, __webpack_exports__DEFAULT_PAGE as DEFAULT_PAGE, __webpack_exports__DEFAULT_PAGE_SIZE as DEFAULT_PAGE_SIZE, __webpack_exports__PACKAGE_VERSION as PACKAGE_VERSION };
@@ -1,5 +1,42 @@
1
1
  import { z } from "zod";
2
2
  import { ReportGroupType } from "../../constants/report/common/report-group-type.constant";
3
+ export declare const buyerLedgerRestReqBaseSchema: z.ZodIntersection<z.ZodObject<{
4
+ reportDataRangeType: z.ZodEnum<typeof import("../..").ReportDataRangeType>;
5
+ endDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
6
+ startDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
7
+ }, z.core.$strip>, z.ZodObject<{
8
+ propertyIds: z.ZodArray<z.ZodUUID>;
9
+ reportGroupType: z.ZodEnum<typeof ReportGroupType>;
10
+ showMta: z.ZodDefault<z.ZodBoolean>;
11
+ showCma: z.ZodDefault<z.ZodBoolean>;
12
+ mtaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
13
+ ASSIGN_UNKNOWN_TO_CUSTOMER: string;
14
+ TRANSACTION_CANCEL: string;
15
+ TRUST_TO_CMA_PAYOUT: string;
16
+ TRUST_SETTLEMENT_PAYOUT: string;
17
+ REFUND_PAYOUT: string;
18
+ UNKNOWN_PAYOUT: string;
19
+ PAYOUT: string;
20
+ UNKNOWN: string;
21
+ HOLDING_DEPOSIT: string;
22
+ SIGNING_DEPOSIT: string;
23
+ WEEKLY_PAYMENT: string;
24
+ CMA_CLOSURE_DEPOSIT: string;
25
+ CMA_INTEREST: string;
26
+ }>>>;
27
+ cmaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
28
+ TRANSACTION_CANCEL: string;
29
+ CMA_SETTLEMENT_PAYOUT: string;
30
+ CMA_REFUND_PAYOUT: string;
31
+ CMA_BANK_FEE: string;
32
+ INTEREST: string;
33
+ RECEIPT: string;
34
+ }>>>;
35
+ }, z.core.$strip>>;
36
+ /**
37
+ * Full schema with cross-field validation — used by the frontend for
38
+ * safeParseAsync and by the backend validation pipe at runtime.
39
+ */
3
40
  export declare const buyerLedgerRestReqSchema: z.ZodIntersection<z.ZodObject<{
4
41
  reportDataRangeType: z.ZodEnum<typeof import("../..").ReportDataRangeType>;
5
42
  endDate: z.ZodPipe<z.ZodOptional<z.ZodNullable<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>>>, z.ZodDate>;
@@ -7,6 +44,31 @@ export declare const buyerLedgerRestReqSchema: z.ZodIntersection<z.ZodObject<{
7
44
  }, z.core.$strip>, z.ZodObject<{
8
45
  propertyIds: z.ZodArray<z.ZodUUID>;
9
46
  reportGroupType: z.ZodEnum<typeof ReportGroupType>;
47
+ showMta: z.ZodDefault<z.ZodBoolean>;
48
+ showCma: z.ZodDefault<z.ZodBoolean>;
49
+ mtaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
50
+ ASSIGN_UNKNOWN_TO_CUSTOMER: string;
51
+ TRANSACTION_CANCEL: string;
52
+ TRUST_TO_CMA_PAYOUT: string;
53
+ TRUST_SETTLEMENT_PAYOUT: string;
54
+ REFUND_PAYOUT: string;
55
+ UNKNOWN_PAYOUT: string;
56
+ PAYOUT: string;
57
+ UNKNOWN: string;
58
+ HOLDING_DEPOSIT: string;
59
+ SIGNING_DEPOSIT: string;
60
+ WEEKLY_PAYMENT: string;
61
+ CMA_CLOSURE_DEPOSIT: string;
62
+ CMA_INTEREST: string;
63
+ }>>>;
64
+ cmaTransactionTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
65
+ TRANSACTION_CANCEL: string;
66
+ CMA_SETTLEMENT_PAYOUT: string;
67
+ CMA_REFUND_PAYOUT: string;
68
+ CMA_BANK_FEE: string;
69
+ INTEREST: string;
70
+ RECEIPT: string;
71
+ }>>>;
10
72
  }, z.core.$strip>>;
11
73
  export type BuyerLedgerRestReq = z.input<typeof buyerLedgerRestReqSchema>;
12
74
  //# sourceMappingURL=buyer-ledger.rest.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buyer-ledger.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/buyer-ledger.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAG3F,eAAO,MAAM,wBAAwB;;;;;;;kBAKpC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"buyer-ledger.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/buyer-ledger.rest.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,eAAe,EAAE,MAAM,0DAA0D,CAAC;AAG3F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBASxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikemo-coposit/am-accounting-shared",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "description": "Shared packages for AM Accounting",
6
6
  "license": "ISC",