@mikemo-coposit/am-accounting-shared 0.0.15 → 0.0.16
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/index.js +21 -8
- package/dist/cjs/schemas/cma/create-cma.schema.d.ts +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts +2 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +1 -1
- package/dist/cjs/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/cjs/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts +1 -1
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts +2 -1
- package/dist/cjs/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -1
- package/dist/cjs/utils/date.util.d.ts +13 -4
- package/dist/cjs/utils/date.util.d.ts.map +1 -1
- package/dist/esm/index.mjs +14 -7
- package/dist/esm/schemas/cma/create-cma.schema.d.ts +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts +2 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-close.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts +1 -1
- package/dist/esm/schemas/mta-account-period/mta-account-period-closing-summary.rest.schema.d.ts.map +1 -1
- package/dist/esm/schemas/project-mta-allocation/approve-mta-allocation.schema.d.ts +1 -1
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts +2 -1
- package/dist/esm/schemas/report/unknown-receipt-ledger.schema.d.ts.map +1 -1
- package/dist/esm/utils/date.util.d.ts +13 -4
- package/dist/esm/utils/date.util.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2654,7 +2654,7 @@ var __webpack_exports__ = {};
|
|
|
2654
2654
|
CmaTransactionCreateTypeToDisplayText: ()=>CmaTransactionCreateTypeToDisplayText,
|
|
2655
2655
|
mtaReconciledTransactionRestResSchema: ()=>mtaReconciledTransactionRestResSchema,
|
|
2656
2656
|
DEFAULT_DATE_FORMAT: ()=>DEFAULT_DATE_FORMAT,
|
|
2657
|
-
extendDayjs: ()=>
|
|
2657
|
+
extendDayjs: ()=>extendDayjs,
|
|
2658
2658
|
mtaEntitySchema: ()=>mtaEntitySchema,
|
|
2659
2659
|
mtaPaymentMethodAccountConfigSchema: ()=>mtaPaymentMethodAccountConfigSchema,
|
|
2660
2660
|
settlementPayoutProvisionDataEntitySchema: ()=>settlementPayoutProvisionDataEntitySchema,
|
|
@@ -2749,8 +2749,8 @@ var __webpack_exports__ = {};
|
|
|
2749
2749
|
paymentListReportRestReqSchema: ()=>paymentListReportRestReqSchema,
|
|
2750
2750
|
mtaToCmaPayoutTargetDetailEntitySchema: ()=>mtaToCmaPayoutTargetDetailEntitySchema,
|
|
2751
2751
|
DATE_FORMATS: ()=>DATE_FORMATS,
|
|
2752
|
-
reconcileMtaTransactionRestReqSchema: ()=>reconcileMtaTransactionRestReqSchema,
|
|
2753
2752
|
AmmoZeptoClient: ()=>AmmoZeptoClient,
|
|
2753
|
+
reconcileMtaTransactionRestReqSchema: ()=>reconcileMtaTransactionRestReqSchema,
|
|
2754
2754
|
simpleStringFilterSchema: ()=>simpleStringFilterSchema,
|
|
2755
2755
|
getTransactionNumber: ()=>getTransactionNumber,
|
|
2756
2756
|
createMtaTransactionRestReqSchema: ()=>createMtaTransactionRestReqSchema,
|
|
@@ -2811,6 +2811,7 @@ var __webpack_exports__ = {};
|
|
|
2811
2811
|
cmaReconciliationRestResSchema: ()=>cmaReconciliationRestResSchema,
|
|
2812
2812
|
mtaPaymentMethodEntitySchema: ()=>mtaPaymentMethodEntitySchema,
|
|
2813
2813
|
confirmPayoutBankFileProcessedRestReqSchema: ()=>confirmPayoutBankFileProcessedRestReqSchema,
|
|
2814
|
+
parseToDayjs: ()=>parseToDayjs,
|
|
2814
2815
|
payoutEntitySchema: ()=>payoutEntitySchema,
|
|
2815
2816
|
cmaRestResSchema: ()=>cmaRestResSchema,
|
|
2816
2817
|
DEFAULT_PAYOUT_TARGET_BANK_REF: ()=>DEFAULT_PAYOUT_TARGET_BANK_REF,
|
|
@@ -2853,6 +2854,7 @@ var __webpack_exports__ = {};
|
|
|
2853
2854
|
ProjectMtaAllocationStatus: ()=>ProjectMtaAllocationStatus,
|
|
2854
2855
|
cancelPayoutRestReqSchema: ()=>cancelPayoutRestReqSchema,
|
|
2855
2856
|
unknownPayoutSourceDetailEntitySchema: ()=>unknownPayoutSourceDetailEntitySchema,
|
|
2857
|
+
parseToDate: ()=>parseToDate,
|
|
2856
2858
|
commonReportWithCmaSelectionRestReqSchema: ()=>commonReportWithCmaSelectionRestReqSchema,
|
|
2857
2859
|
mtaListItemRestResSchema: ()=>mtaListItemRestResSchema,
|
|
2858
2860
|
MtaTransactionPaymentMethod: ()=>mta_payment_method_constant_MtaTransactionPaymentMethod,
|
|
@@ -4118,7 +4120,7 @@ var __webpack_exports__ = {};
|
|
|
4118
4120
|
isValid: false,
|
|
4119
4121
|
date: null,
|
|
4120
4122
|
dayjs: null,
|
|
4121
|
-
reason: `invalid date string format, only support ${'string' == typeof format ? format : format.join(', ')}`
|
|
4123
|
+
reason: `invalid date string format, only support ${'string' == typeof format ? format : format.join(', ')}, but received ${dateStr}`
|
|
4122
4124
|
};
|
|
4123
4125
|
return {
|
|
4124
4126
|
isValid: true,
|
|
@@ -4126,7 +4128,17 @@ var __webpack_exports__ = {};
|
|
|
4126
4128
|
dayjs: parsedDate
|
|
4127
4129
|
};
|
|
4128
4130
|
};
|
|
4129
|
-
const
|
|
4131
|
+
const parseToDate = (input, options)=>{
|
|
4132
|
+
const { date, isValid, reason } = safeParseDateFromStr(input, options);
|
|
4133
|
+
if (!isValid) throw new Error(reason);
|
|
4134
|
+
return date;
|
|
4135
|
+
};
|
|
4136
|
+
const parseToDayjs = (input, options)=>{
|
|
4137
|
+
const { dayjs, isValid, reason } = safeParseDateFromStr(input, options);
|
|
4138
|
+
if (!isValid) throw new Error(reason);
|
|
4139
|
+
return dayjs;
|
|
4140
|
+
};
|
|
4141
|
+
const extendDayjs = (input)=>{
|
|
4130
4142
|
const date = external_dayjs_default()(input).tz(DEFAULT_DATE_TIME_ZONE);
|
|
4131
4143
|
return date;
|
|
4132
4144
|
};
|
|
@@ -4723,10 +4735,7 @@ var __webpack_exports__ = {};
|
|
|
4723
4735
|
});
|
|
4724
4736
|
const mtaAccountPeriodClosingSummaryRestReqSchema = external_zod_namespaceObject.z.object({
|
|
4725
4737
|
mtaAccountPeriodId: external_zod_namespaceObject.z.uuid(),
|
|
4726
|
-
endDate:
|
|
4727
|
-
external_zod_namespaceObject.z.string(),
|
|
4728
|
-
external_zod_namespaceObject.z.date()
|
|
4729
|
-
]).transform((arg)=>external_dayjs_default()(arg).endOf('day').toDate()).pipe(external_zod_namespaceObject.z.date())
|
|
4738
|
+
endDate: stringToEndOfDaySchema
|
|
4730
4739
|
});
|
|
4731
4740
|
const mtaAccountPeriodClosingSummaryRestResSchema = external_zod_namespaceObject.z.object({
|
|
4732
4741
|
startDate: external_zod_namespaceObject.z.date(),
|
|
@@ -8422,6 +8431,8 @@ exports.mtaTransactionSearchRestReqSchema = __webpack_exports__.mtaTransactionSe
|
|
|
8422
8431
|
exports.mtaTransactionStatusSummaryRestResSchema = __webpack_exports__.mtaTransactionStatusSummaryRestResSchema;
|
|
8423
8432
|
exports.paginatedResSchema = __webpack_exports__.paginatedResSchema;
|
|
8424
8433
|
exports.paginationReqSchema = __webpack_exports__.paginationReqSchema;
|
|
8434
|
+
exports.parseToDate = __webpack_exports__.parseToDate;
|
|
8435
|
+
exports.parseToDayjs = __webpack_exports__.parseToDayjs;
|
|
8425
8436
|
exports.paymentListReportRestReqSchema = __webpack_exports__.paymentListReportRestReqSchema;
|
|
8426
8437
|
exports.paymentProviderEntitySchema = __webpack_exports__.paymentProviderEntitySchema;
|
|
8427
8438
|
exports.payoutBankFileDownloadHistoryEntitySchema = __webpack_exports__.payoutBankFileDownloadHistoryEntitySchema;
|
|
@@ -8681,6 +8692,8 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
8681
8692
|
"mtaTransactionStatusSummaryRestResSchema",
|
|
8682
8693
|
"paginatedResSchema",
|
|
8683
8694
|
"paginationReqSchema",
|
|
8695
|
+
"parseToDate",
|
|
8696
|
+
"parseToDayjs",
|
|
8684
8697
|
"paymentListReportRestReqSchema",
|
|
8685
8698
|
"paymentProviderEntitySchema",
|
|
8686
8699
|
"payoutBankFileDownloadHistoryEntitySchema",
|
|
@@ -7,5 +7,5 @@ export declare const createCmaRestReqSchema: z.ZodObject<{
|
|
|
7
7
|
bsb: z.ZodString;
|
|
8
8
|
accountNumber: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
export type CreateCmaRestReq = z.
|
|
10
|
+
export type CreateCmaRestReq = z.input<typeof createCmaRestReqSchema>;
|
|
11
11
|
//# sourceMappingURL=create-cma.schema.d.ts.map
|
|
@@ -5,5 +5,6 @@ export declare const mtaAccountPeriodCloseRestReqSchema: z.ZodObject<{
|
|
|
5
5
|
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>, z.ZodDate>;
|
|
6
6
|
closingDescription: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
export type MtaAccountPeriodCloseRestReq = z.
|
|
8
|
+
export type MtaAccountPeriodCloseRestReq = z.input<typeof mtaAccountPeriodCloseRestReqSchema>;
|
|
9
|
+
export type MtaAccountPeriodCloseRes = z.output<typeof mtaAccountPeriodCloseRestReqSchema>;
|
|
9
10
|
//# sourceMappingURL=mta-account-period-close.rest.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mta-account-period-close.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-close.rest.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kCAAkC;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"mta-account-period-close.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-close.rest.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kCAAkC;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kCAAkC,CAAC,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.ZodTransform<Date, string | Date>>, z.ZodDate>;
|
|
4
|
+
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | 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<{
|
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":"
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
6
|
+
export type ApproveMtaAllocationRestReq = z.input<typeof approveMtaAllocationRestReqSchema>;
|
|
7
7
|
//# sourceMappingURL=approve-mta-allocation.schema.d.ts.map
|
|
@@ -6,5 +6,6 @@ export declare const unknownReceiptLedgerRestReqSchema: z.ZodIntersection<z.ZodO
|
|
|
6
6
|
}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
mtaId: z.ZodUUID;
|
|
8
8
|
}, z.core.$strip>>;
|
|
9
|
-
export type UnknownReceiptLedgerRestReq = z.
|
|
9
|
+
export type UnknownReceiptLedgerRestReq = z.input<typeof unknownReceiptLedgerRestReqSchema>;
|
|
10
|
+
export type UnknownReceiptLedgerRes = z.output<typeof unknownReceiptLedgerRestReqSchema>;
|
|
10
11
|
//# sourceMappingURL=unknown-receipt-ledger.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-receipt-ledger.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/unknown-receipt-ledger.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;kBAE3C,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"unknown-receipt-ledger.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/unknown-receipt-ledger.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;kBAE3C,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const DATE_FORMATS: {
|
|
|
7
7
|
export declare const DEFAULT_DATE_FORMAT: "DD/MM/YYYY";
|
|
8
8
|
export declare const DEFAULT_DATE_FORMAT_WITH_TIME = "DD/MM/YYYY HH:mm:ss";
|
|
9
9
|
export declare const DEFAULT_DATE_TIME_ZONE = "Australia/Sydney";
|
|
10
|
-
declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, options?: {
|
|
10
|
+
export declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, options?: {
|
|
11
11
|
format?: string | string[];
|
|
12
12
|
timeZone?: string;
|
|
13
13
|
strict?: boolean;
|
|
@@ -20,8 +20,17 @@ declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, opt
|
|
|
20
20
|
isValid: false;
|
|
21
21
|
date: null;
|
|
22
22
|
dayjs: null;
|
|
23
|
-
reason
|
|
23
|
+
reason: string;
|
|
24
24
|
};
|
|
25
|
-
declare const
|
|
26
|
-
|
|
25
|
+
export declare const parseToDate: (input?: string | Date | Dayjs | null | undefined, options?: {
|
|
26
|
+
format?: string | string[];
|
|
27
|
+
timeZone?: string;
|
|
28
|
+
strict?: boolean;
|
|
29
|
+
}) => Date;
|
|
30
|
+
export declare const parseToDayjs: (input?: string | Date | Dayjs | null | undefined, options?: {
|
|
31
|
+
format?: string | string[];
|
|
32
|
+
timeZone?: string;
|
|
33
|
+
strict?: boolean;
|
|
34
|
+
}) => dayjs.Dayjs;
|
|
35
|
+
export declare const extendDayjs: (input?: string | Date | Dayjs | null | undefined) => dayjs.Dayjs;
|
|
27
36
|
//# sourceMappingURL=date.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.util.d.ts","sourceRoot":"","sources":["../../../packages/utils/date.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAW,MAAM,OAAO,CAAC;AAM9C,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,m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,KAAK,GAAG,IAAI,GAAG,SAAS,EAAE,UAAU;IACvF,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,gBAOA,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,gBAI3E,CAAC"}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1250,7 +1250,7 @@ const safeParseDateFromStr = (dateStr, options)=>{
|
|
|
1250
1250
|
isValid: false,
|
|
1251
1251
|
date: null,
|
|
1252
1252
|
dayjs: null,
|
|
1253
|
-
reason: `invalid date string format, only support ${'string' == typeof format ? format : format.join(', ')}`
|
|
1253
|
+
reason: `invalid date string format, only support ${'string' == typeof format ? format : format.join(', ')}, but received ${dateStr}`
|
|
1254
1254
|
};
|
|
1255
1255
|
return {
|
|
1256
1256
|
isValid: true,
|
|
@@ -1258,7 +1258,17 @@ const safeParseDateFromStr = (dateStr, options)=>{
|
|
|
1258
1258
|
dayjs: parsedDate
|
|
1259
1259
|
};
|
|
1260
1260
|
};
|
|
1261
|
-
const
|
|
1261
|
+
const parseToDate = (input, options)=>{
|
|
1262
|
+
const { date, isValid, reason } = safeParseDateFromStr(input, options);
|
|
1263
|
+
if (!isValid) throw new Error(reason);
|
|
1264
|
+
return date;
|
|
1265
|
+
};
|
|
1266
|
+
const parseToDayjs = (input, options)=>{
|
|
1267
|
+
const { dayjs, isValid, reason } = safeParseDateFromStr(input, options);
|
|
1268
|
+
if (!isValid) throw new Error(reason);
|
|
1269
|
+
return dayjs;
|
|
1270
|
+
};
|
|
1271
|
+
const extendDayjs = (input)=>{
|
|
1262
1272
|
const date = dayjs_0(input).tz(DEFAULT_DATE_TIME_ZONE);
|
|
1263
1273
|
return date;
|
|
1264
1274
|
};
|
|
@@ -1855,10 +1865,7 @@ const mtaTransactionRestResSchema = mtaTransactionRestResBaseSchema.extend({
|
|
|
1855
1865
|
});
|
|
1856
1866
|
const mtaAccountPeriodClosingSummaryRestReqSchema = z.object({
|
|
1857
1867
|
mtaAccountPeriodId: z.uuid(),
|
|
1858
|
-
endDate:
|
|
1859
|
-
z.string(),
|
|
1860
|
-
z.date()
|
|
1861
|
-
]).transform((arg)=>dayjs_0(arg).endOf('day').toDate()).pipe(z.date())
|
|
1868
|
+
endDate: stringToEndOfDaySchema
|
|
1862
1869
|
});
|
|
1863
1870
|
const mtaAccountPeriodClosingSummaryRestResSchema = z.object({
|
|
1864
1871
|
startDate: z.date(),
|
|
@@ -4728,4 +4735,4 @@ const getPropertyName = (property, options)=>{
|
|
|
4728
4735
|
names = names.filter(Boolean);
|
|
4729
4736
|
return names.length > 0 ? names.join(' ') : 'Nill';
|
|
4730
4737
|
};
|
|
4731
|
-
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, PropertyRestResStatus, PropertyStage, 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, 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,
|
|
4738
|
+
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, PropertyRestResStatus, PropertyStage, 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, 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, isInterestTransaction, isPaymentTransaction, isReceiptTransaction, isTransactionAssignable, isTransactionCancelable, isUnknownReceiptAssignedToProperty, isUnknownTransaction, markCmaTransactionAsClearedRestReqSchema, maskBankAccount, maskBankAccountNumber, maskBankBsb, maskString, menuRestResSchema, menuSchema, mtaAccountPeriodCloseRestReqSchema, mtaAccountPeriodClosingSummaryRestReqSchema, mtaAccountPeriodClosingSummaryRestResSchema, mtaAccountPeriodEntitySchema, mtaAccountPeriodRestResSchema, mtaClosedAccountPeriodRestResSchema, mtaEntitySchema, mtaListItemRestResSchema, mtaPaymentMethodAccountConfigSchema, mtaPaymentMethodEntitySchema, mtaPaymentMethodFloatAccountConfigSchema, mtaPaymentMethodRestResSchema, mtaReconciledTransactionEntitySchema, mtaReconciledTransactionRestResSchema, mtaReconciliationEntitySchema, mtaReconciliationRestResSchema, mtaRestResBaseSchema, mtaRestResSchema, 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, stringFilterSchema, stringToBoolSchema, stringToDateSchema, stringToEndOfDaySchema, stringToStartOfDaySchema, trustTrialBalanceReportRestReqSchema, unknownPayoutPaymentEntitySchema, unknownPayoutProvisionDataEntitySchema, unknownPayoutRestResSchema, unknownPayoutSourceDetailEntitySchema, unknownPayoutTargetDetailEntitySchema, unknownReceiptLedgerRestReqSchema, unreconciledItemsListReportRestReqSchema, updateCmaOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateCmaSettlementPayoutRestReqSchema, updateMenuRestReqSchema, updateMtaRestReqSchema, updateMtaSettlementPayoutRestReqSchema, updateMtaToCmaPayoutRestReqSchema, updateOpenReconciliationCurrentBankStatementBalanceRestReqSchema, updateSettlementPayoutRestReqSchema, updateUnknownPayoutRestReqSchema, updateUnknownPayoutTargetDetailRestReqSchema, userEntitySchema, userRestResSchema };
|
|
@@ -7,5 +7,5 @@ export declare const createCmaRestReqSchema: z.ZodObject<{
|
|
|
7
7
|
bsb: z.ZodString;
|
|
8
8
|
accountNumber: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
export type CreateCmaRestReq = z.
|
|
10
|
+
export type CreateCmaRestReq = z.input<typeof createCmaRestReqSchema>;
|
|
11
11
|
//# sourceMappingURL=create-cma.schema.d.ts.map
|
|
@@ -5,5 +5,6 @@ export declare const mtaAccountPeriodCloseRestReqSchema: z.ZodObject<{
|
|
|
5
5
|
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate]>, z.ZodTransform<Date, string | Date>>, z.ZodDate>;
|
|
6
6
|
closingDescription: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
export type MtaAccountPeriodCloseRestReq = z.
|
|
8
|
+
export type MtaAccountPeriodCloseRestReq = z.input<typeof mtaAccountPeriodCloseRestReqSchema>;
|
|
9
|
+
export type MtaAccountPeriodCloseRes = z.output<typeof mtaAccountPeriodCloseRestReqSchema>;
|
|
9
10
|
//# sourceMappingURL=mta-account-period-close.rest.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mta-account-period-close.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-close.rest.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kCAAkC;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"mta-account-period-close.rest.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/mta-account-period/mta-account-period-close.rest.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kCAAkC;;;;;iBAK7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
|
package/dist/esm/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.ZodTransform<Date, string | Date>>, z.ZodDate>;
|
|
4
|
+
endDate: z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodDate, z.ZodISODateTime]>, z.ZodTransform<number | Date, string | 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<{
|
package/dist/esm/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":"
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BtD,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC"}
|
|
@@ -3,5 +3,5 @@ export declare const approveMtaAllocationRestReqSchema: z.ZodObject<{
|
|
|
3
3
|
projectId: z.ZodUUID;
|
|
4
4
|
projectMtaAllocationId: z.ZodUUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
-
export type ApproveMtaAllocationRestReq = z.
|
|
6
|
+
export type ApproveMtaAllocationRestReq = z.input<typeof approveMtaAllocationRestReqSchema>;
|
|
7
7
|
//# sourceMappingURL=approve-mta-allocation.schema.d.ts.map
|
|
@@ -6,5 +6,6 @@ export declare const unknownReceiptLedgerRestReqSchema: z.ZodIntersection<z.ZodO
|
|
|
6
6
|
}, z.core.$strip>, z.ZodObject<{
|
|
7
7
|
mtaId: z.ZodUUID;
|
|
8
8
|
}, z.core.$strip>>;
|
|
9
|
-
export type UnknownReceiptLedgerRestReq = z.
|
|
9
|
+
export type UnknownReceiptLedgerRestReq = z.input<typeof unknownReceiptLedgerRestReqSchema>;
|
|
10
|
+
export type UnknownReceiptLedgerRes = z.output<typeof unknownReceiptLedgerRestReqSchema>;
|
|
10
11
|
//# sourceMappingURL=unknown-receipt-ledger.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unknown-receipt-ledger.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/unknown-receipt-ledger.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;kBAE3C,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"unknown-receipt-ledger.schema.d.ts","sourceRoot":"","sources":["../../../../packages/schemas/report/unknown-receipt-ledger.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;kBAE3C,CAAC;AAEJ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC5F,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const DATE_FORMATS: {
|
|
|
7
7
|
export declare const DEFAULT_DATE_FORMAT: "DD/MM/YYYY";
|
|
8
8
|
export declare const DEFAULT_DATE_FORMAT_WITH_TIME = "DD/MM/YYYY HH:mm:ss";
|
|
9
9
|
export declare const DEFAULT_DATE_TIME_ZONE = "Australia/Sydney";
|
|
10
|
-
declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, options?: {
|
|
10
|
+
export declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, options?: {
|
|
11
11
|
format?: string | string[];
|
|
12
12
|
timeZone?: string;
|
|
13
13
|
strict?: boolean;
|
|
@@ -20,8 +20,17 @@ declare const safeParseDateFromStr: (dateStr?: string | null | Dayjs | Date, opt
|
|
|
20
20
|
isValid: false;
|
|
21
21
|
date: null;
|
|
22
22
|
dayjs: null;
|
|
23
|
-
reason
|
|
23
|
+
reason: string;
|
|
24
24
|
};
|
|
25
|
-
declare const
|
|
26
|
-
|
|
25
|
+
export declare const parseToDate: (input?: string | Date | Dayjs | null | undefined, options?: {
|
|
26
|
+
format?: string | string[];
|
|
27
|
+
timeZone?: string;
|
|
28
|
+
strict?: boolean;
|
|
29
|
+
}) => Date;
|
|
30
|
+
export declare const parseToDayjs: (input?: string | Date | Dayjs | null | undefined, options?: {
|
|
31
|
+
format?: string | string[];
|
|
32
|
+
timeZone?: string;
|
|
33
|
+
strict?: boolean;
|
|
34
|
+
}) => dayjs.Dayjs;
|
|
35
|
+
export declare const extendDayjs: (input?: string | Date | Dayjs | null | undefined) => dayjs.Dayjs;
|
|
27
36
|
//# sourceMappingURL=date.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.util.d.ts","sourceRoot":"","sources":["../../../packages/utils/date.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAW,MAAM,OAAO,CAAC;AAM9C,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,mBAAmB,cAA0B,CAAC;AAE3D,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAOzD,
|
|
1
|
+
{"version":3,"file":"date.util.d.ts","sourceRoot":"","sources":["../../../packages/utils/date.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAW,MAAM,OAAO,CAAC;AAM9C,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,eAAO,MAAM,mBAAmB,cAA0B,CAAC;AAE3D,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAOzD,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,EAAE,UAAU;IACrF,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,KAAG;IACF,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,CAAC,EAAE,KAAK,C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