Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@deboxsoft/accounting-api

Package Overview
Dependencies
Maintainers
1
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/accounting-api - npm Package Compare versions

Comparing version 1.5.4 to 1.5.5

18

package.json
{
"name": "@deboxsoft/accounting-api",
"version": "1.5.4",
"version": "1.5.5",
"license": "SEE LICENSE IN LICENSE.md",

@@ -33,4 +33,7 @@ "repository": {

"dependencies": {
"change-case": "^4.1.1",
"dayjs": "^1.11.1",
"mustache": "~4.1.0",
"performant-array-to-tree": "~1.8.2"
"performant-array-to-tree": "~1.8.2",
"universal-base64": "^2.1.0"
},

@@ -44,7 +47,5 @@ "devDependencies": {

"@nurdiansyah/bump": "^6.1.2",
"@nurdiansyah/rollup": "^1.8.1",
"@types/faker": "^5.5.9",
"@types/mustache": "^4.1.2",
"ava": "^4.2.0",
"dayjs": "^1.11.1",
"esbuild-node-loader": "^0.8.0",

@@ -54,10 +55,3 @@ "faker": "^5.5.3",

"rimraf": "^3.0.2",
"rollup": "^2.70.2",
"testdouble": "^3.16.4",
"ts-node": "^10.7.0",
"ts-to-zod": "^1.10.0",
"tslib": "^2.3.1",
"tsm": "^2.2.1",
"typescript": "~4.5.5",
"utility-types": "^3.10.0",
"watchlist": "^0.3.1"

@@ -94,3 +88,3 @@ },

"build": "run-p build:*",
"build:rollup": "rollup -c",
"build:rollup": "cre8-bundle",
"build:tsc": "rimraf types clean && tsc",

@@ -97,0 +91,0 @@ "lint": "eslint --fix 'src/**/*.ts'",

@@ -38,7 +38,7 @@ import { z } from "@deboxsoft/zod";

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>;

@@ -56,21 +56,21 @@ export declare const AccountSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
active?: boolean | null | undefined;
isParent?: boolean | null | undefined;
lastIdChild?: string | null | undefined;
parentId?: string | null | undefined;
division?: string | null | undefined;
startBalance?: number | null | undefined;
perDate?: Date | null | undefined;
id: string;
name: string;
id?: string;
active?: boolean;
name?: string;
isParent?: boolean;
lastIdChild?: string;
parentId?: string;
division?: string;
startBalance?: number;
perDate?: Date;
}, {
active?: boolean | null | undefined;
isParent?: boolean | null | undefined;
lastIdChild?: string | null | undefined;
parentId?: string | null | undefined;
division?: string | null | undefined;
startBalance?: number | null | undefined;
perDate?: Date | null | undefined;
id: string;
name: string;
id?: string;
active?: boolean;
name?: string;
isParent?: boolean;
lastIdChild?: string;
parentId?: string;
division?: string;
startBalance?: number;
perDate?: Date;
}>;

@@ -77,0 +77,0 @@ export declare type AccountType = {

@@ -43,17 +43,17 @@ import type { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
balance?: number | null | undefined;
branch?: string | null | undefined;
name: string;
date: number | Date;
accountId: string;
nameAccountBank: string;
noAccountBank: string;
name?: string;
date?: number | Date;
balance?: number;
accountId?: string;
branch?: string;
nameAccountBank?: string;
noAccountBank?: string;
}, {
balance?: number | null | undefined;
branch?: string | null | undefined;
name: string;
date: number | Date;
accountId: string;
nameAccountBank: string;
noAccountBank: string;
name?: string;
date?: number | Date;
balance?: number;
accountId?: string;
branch?: string;
nameAccountBank?: string;
noAccountBank?: string;
}>;

@@ -68,15 +68,15 @@ export declare const BankStatementInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
in?: number | null | undefined;
out?: number | null | undefined;
date: number | Date;
balance: number;
accountId: string;
description?: string;
date?: number | Date;
balance?: number;
accountId?: string;
in?: number;
out?: number;
}, {
description?: string | null | undefined;
in?: number | null | undefined;
out?: number | null | undefined;
date: number | Date;
balance: number;
accountId: string;
description?: string;
date?: number | Date;
balance?: number;
accountId?: string;
in?: number;
out?: number;
}>;

@@ -64,7 +64,7 @@ import type { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -80,43 +80,43 @@ amortizationAccount: z.ZodString;

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
posting: boolean;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>;

@@ -132,17 +132,17 @@ export declare const AmortizationInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
description: string;
name: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
name?: string;
date?: number | Date;
amount?: number;
userId?: string;
debitAccount?: string;
creditAccount?: string;
}, {
date?: number | Date | null | undefined;
description: string;
name: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
name?: string;
date?: number | Date;
amount?: number;
userId?: string;
debitAccount?: string;
creditAccount?: string;
}>;

@@ -162,7 +162,7 @@ export declare const BddUpdateInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">>;

@@ -178,43 +178,43 @@ amortizationAccount: z.ZodOptional<z.ZodString>;

}, "strip", z.ZodTypeAny, {
name?: string | undefined;
date?: number | Date | null | undefined;
userId?: string | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id: string;
amount: number;
}[] | undefined;
expenseAccount?: string | undefined;
dateStart?: number | Date | undefined;
monthLife?: number | undefined;
bddAccount?: string | undefined;
taxAccount?: string | null | undefined;
amortizationAccount?: string | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
id?: string;
amount?: number;
}[];
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}, {
name?: string | undefined;
date?: number | Date | null | undefined;
userId?: string | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id: string;
amount: number;
}[] | undefined;
expenseAccount?: string | undefined;
dateStart?: number | Date | undefined;
monthLife?: number | undefined;
bddAccount?: string | undefined;
taxAccount?: string | null | undefined;
amortizationAccount?: string | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
id?: string;
amount?: number;
}[];
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>;

@@ -237,7 +237,7 @@ export declare const BddTransactionInputSchema: z.ZodObject<z.extendShape<z.extendShape<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -262,7 +262,7 @@ status: z.ZodDefault<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>;

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -278,69 +278,69 @@ amortizationAccount: z.ZodString;

}>, "strip", z.ZodTypeAny, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
description: string;
type: string;
name: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
name?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
paymentAccounts: {
id: string;
amount: number;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
posting: boolean;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
description: string;
type: string;
name: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
name?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
paymentAccounts: {
id: string;
amount: number;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>;

@@ -369,7 +369,7 @@ export declare const calcAmortization: ({ paymentAccounts, monthLife, taxRate, amortizationCount }: Bdd) => {

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -385,64 +385,64 @@ amortizationAccount: z.ZodString;

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
posting: boolean;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>, BddRepoInput, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>;

@@ -462,7 +462,7 @@ export declare const transformBddToTransactionInput: z.ZodEffects<z.ZodObject<z.extendShape<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -480,82 +480,82 @@ amortizationAccount: z.ZodString;

}>, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
posting: boolean;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
dateEnd?: number | Date | null | undefined;
taxAccount?: string | null | undefined;
taxRate?: number | null | undefined;
amortizationStartMonth?: number | null | undefined;
category?: string | null | undefined;
posting?: boolean | undefined;
name: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
name?: string;
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
dateEnd?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
expenseAccount: string;
dateStart: number | Date;
monthLife: number;
bddAccount: string;
amortizationAccount: string;
expenseAccount?: string;
dateStart?: number | Date;
monthLife?: number;
bddAccount?: string;
taxAccount?: string;
amortizationAccount?: string;
taxRate?: number;
amortizationStartMonth?: number;
category?: string;
posting?: boolean;
}>;

@@ -571,43 +571,43 @@ export declare const transformAmortizationToTransactionInput: z.ZodEffects<z.ZodObject<{

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
description: string;
name: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
name?: string;
date?: number | Date;
amount?: number;
userId?: string;
debitAccount?: string;
creditAccount?: string;
}, {
date?: number | Date | null | undefined;
description: string;
name: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
name?: string;
date?: number | Date;
amount?: number;
userId?: string;
debitAccount?: string;
creditAccount?: string;
}>, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
date?: number | Date | null | undefined;
description: string;
name: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
name?: string;
date?: number | Date;
amount?: number;
userId?: string;
debitAccount?: string;
creditAccount?: string;
}>;

@@ -13,11 +13,11 @@ import { z } from "@deboxsoft/zod";

}, "strip", z.ZodTypeAny, {
id: string;
name: string;
accountId: string;
expenseAccount: string;
id?: string;
name?: string;
accountId?: string;
expenseAccount?: string;
}, {
id: string;
name: string;
accountId: string;
expenseAccount: string;
id?: string;
name?: string;
accountId?: string;
expenseAccount?: string;
}>;

@@ -29,9 +29,9 @@ export declare const CategoryProductCreateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
name: string;
accountId: string;
expenseAccount: string;
name?: string;
accountId?: string;
expenseAccount?: string;
}, {
name: string;
accountId: string;
expenseAccount: string;
name?: string;
accountId?: string;
expenseAccount?: string;
}>;

@@ -43,9 +43,9 @@ export declare const CategoryProductUpdateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
name?: string | undefined;
accountId?: string | undefined;
expenseAccount?: string | undefined;
name?: string;
accountId?: string;
expenseAccount?: string;
}, {
name?: string | undefined;
accountId?: string | undefined;
expenseAccount?: string | undefined;
name?: string;
accountId?: string;
expenseAccount?: string;
}>;

@@ -52,0 +52,0 @@ export declare type CategoryProduct = z.infer<typeof CategoryProductSchema>;

@@ -10,7 +10,7 @@ import { z } from "@deboxsoft/zod";

}, "strip", z.ZodTypeAny, {
name: string;
unit: string;
name?: string;
unit?: string;
}, {
name: string;
unit: string;
name?: string;
unit?: string;
}>;

@@ -24,19 +24,19 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
balance?: number | null | undefined;
id: string;
date: number | Date;
amount: number;
accountId: string;
transactionId: string;
transactionType: string;
description?: string;
id?: string;
date?: number | Date;
balance?: number;
amount?: number;
accountId?: string;
transactionId?: string;
transactionType?: string;
}, {
description?: string | null | undefined;
balance?: number | null | undefined;
id: string;
date: number | Date;
amount: number;
accountId: string;
transactionId: string;
transactionType: string;
description?: string;
id?: string;
date?: number | Date;
balance?: number;
amount?: number;
accountId?: string;
transactionId?: string;
transactionType?: string;
}>;

@@ -52,17 +52,17 @@ export declare const GeneralLedgerInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
balance?: number | null | undefined;
date: number | Date;
amount: number;
accountId: string;
transactionId: string;
transactionType: string;
description?: string;
date?: number | Date;
balance?: number;
amount?: number;
accountId?: string;
transactionId?: string;
transactionType?: string;
}, {
description?: string | null | undefined;
balance?: number | null | undefined;
date: number | Date;
amount: number;
accountId: string;
transactionId: string;
transactionType: string;
description?: string;
date?: number | Date;
balance?: number;
amount?: number;
accountId?: string;
transactionId?: string;
transactionType?: string;
}>;

@@ -54,11 +54,11 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
location?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
location?: string;
brand?: string;
condition?: string;
person?: string;
}, {
location?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
location?: string;
brand?: string;
condition?: string;
person?: string;
}>;

@@ -71,11 +71,11 @@ export declare const InventoryItemSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}>;

@@ -101,33 +101,33 @@ export declare const InventoryBaseSchema: z.ZodObject<z.extendShape<z.extendShape<{

}>, "strip", z.ZodTypeAny, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
depreciationCount: number;
depreciationFinished: boolean;
location?: string;
name?: string;
date?: number | Date;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
depreciationCount?: number;
depreciationFinished?: boolean;
}, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
depreciationCount?: number | undefined;
depreciationFinished?: boolean | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
location?: string;
name?: string;
date?: number | Date;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
depreciationCount?: number;
depreciationFinished?: boolean;
}>;

@@ -156,31 +156,31 @@ export declare const InventoryInputSchema: z.ZodObject<z.extendShape<z.extendShape<{

}>, "strip", z.ZodTypeAny, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
location?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
}, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
location?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
}>;

@@ -226,7 +226,7 @@ export declare const InventorySchema: z.ZodObject<z.extendShape<z.extendShape<z.extendShape<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -236,108 +236,108 @@ status: z.ZodDefault<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>;

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}>>>;
}>, "strip", z.ZodTypeAny, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
location?: string;
id?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
transaction?: {
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
} | null | undefined;
id: string;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
approveBy?: string;
};
}, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
location?: string;
id?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
transaction?: {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
} | null | undefined;
id: string;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
approveBy?: string;
};
}>;

@@ -350,11 +350,11 @@ export declare const CategoryInventoryInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
accumulatedDepreciationAccount?: string | null | undefined;
expenseDepreciationAccount?: string | null | undefined;
groupDepreciationId?: string | null | undefined;
name: string;
name?: string;
accumulatedDepreciationAccount?: string;
expenseDepreciationAccount?: string;
groupDepreciationId?: string;
}, {
accumulatedDepreciationAccount?: string | null | undefined;
expenseDepreciationAccount?: string | null | undefined;
groupDepreciationId?: string | null | undefined;
name: string;
name?: string;
accumulatedDepreciationAccount?: string;
expenseDepreciationAccount?: string;
groupDepreciationId?: string;
}>;

@@ -370,17 +370,17 @@ export declare const InventoryRemoveInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
date?: number | Date;
amount?: number;
userId?: string;
approveBy?: string;
debitAccount?: string;
creditAccount?: string;
}, {
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
amount: number;
userId: string;
debitAccount: string;
creditAccount: string;
description?: string;
date?: number | Date;
amount?: number;
userId?: string;
approveBy?: string;
debitAccount?: string;
creditAccount?: string;
}>;

@@ -390,5 +390,5 @@ export declare const CategoryInventoryUpdateInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
name: string;
name?: string;
}, {
name: string;
name?: string;
}>;

@@ -399,7 +399,7 @@ export declare const DepreciationInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
month: string;
amount: number;
month?: string;
amount?: number;
}, {
month: string;
amount: number;
month?: string;
amount?: number;
}>;

@@ -414,13 +414,13 @@ export declare const DepreciationTransactionInputSchema: z.ZodObject<z.extendShape<{

}>, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
debitAccount?: string | null | undefined;
creditAccount?: string | null | undefined;
month: string;
amount: number;
description?: string;
month?: string;
amount?: number;
debitAccount?: string;
creditAccount?: string;
}, {
description?: string | null | undefined;
debitAccount?: string | null | undefined;
creditAccount?: string | null | undefined;
month: string;
amount: number;
description?: string;
month?: string;
amount?: number;
debitAccount?: string;
creditAccount?: string;
}>;

@@ -434,11 +434,11 @@ export declare const DepreciationDataInputSchema: z.ZodObject<z.extendShape<{

}>, "strip", z.ZodTypeAny, {
month: string;
amount: number;
transactionId: string;
categoryId: string;
month?: string;
amount?: number;
transactionId?: string;
categoryId?: string;
}, {
month: string;
amount: number;
transactionId: string;
categoryId: string;
month?: string;
amount?: number;
transactionId?: string;
categoryId?: string;
}>;

@@ -482,49 +482,49 @@ export declare const calcDepreciation: ({ priceItem, quantity, groupDepreciationId, depreciationCount }: {

}>, "strip", z.ZodTypeAny, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
groupDepreciationId: string;
location?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
groupDepreciationId?: string;
}, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
groupDepreciationId: string;
location?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
groupDepreciationId?: string;
}>, InventoryRepoInput, {
location?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
brand?: string | null | undefined;
condition?: string | null | undefined;
person?: string | null | undefined;
supplier?: string | null | undefined;
depreciationAccount?: number | null | undefined;
name: string;
categoryId: string;
priceItem: number;
quantity: number;
datePurchase: number | Date;
groupDepreciationId: string;
location?: string;
name?: string;
date?: number | Date;
transactionId?: string;
no?: string;
brand?: string;
condition?: string;
person?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
datePurchase?: number | Date;
supplier?: string;
depreciationAccount?: number;
groupDepreciationId?: string;
}>;

@@ -22,7 +22,7 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -38,11 +38,11 @@ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;

}, "strip", z.ZodTypeAny, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}>, "many">;

@@ -52,42 +52,42 @@ userId: z.ZodString;

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
supplier?: string | null | undefined;
id: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date: Date;
items: {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
description?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: Date;
items?: {
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}[];
userId: string;
datePurchase: Date;
inventoryAccount: string;
paymentAccounts: {
id: string;
amount: number;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: Date;
supplier?: string;
inventoryAccount?: string;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
}, {
description?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
supplier?: string | null | undefined;
id: string;
date: Date;
items: {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
description?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: Date;
items?: {
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}[];
userId: string;
datePurchase: Date;
inventoryAccount: string;
paymentAccounts: {
id: string;
amount: number;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: Date;
supplier?: string;
inventoryAccount?: string;
paymentAccounts?: {
id?: string;
amount?: number;
}[];

@@ -105,11 +105,11 @@ }>;

}, "strip", z.ZodTypeAny, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}, {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}>, "many">;

@@ -126,47 +126,47 @@ userId: z.ZodString;

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;
}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
supplier?: string | null | undefined;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date: Date;
items: {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: Date;
items?: {
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}[];
userId: string;
datePurchase: Date;
inventoryAccount: string;
paymentAccounts: {
id: string;
amount: number;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: Date;
supplier?: string;
inventoryAccount?: string;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
}, {
description?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
supplier?: string | null | undefined;
date: Date;
items: {
name: string;
categoryId: string;
priceItem: number;
quantity: number;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: Date;
items?: {
name?: string;
categoryId?: string;
priceItem?: number;
quantity?: number;
}[];
userId: string;
datePurchase: Date;
inventoryAccount: string;
paymentAccounts: {
id: string;
amount: number;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: Date;
supplier?: string;
inventoryAccount?: string;
paymentAccounts?: {
id?: string;
amount?: number;
}[];

@@ -173,0 +173,0 @@ }>;

@@ -66,45 +66,45 @@ import { z } from "@deboxsoft/zod";

}, "strip", z.ZodTypeAny, {
depreciationSchedule?: number | undefined;
verificationTimeTransaction?: number | undefined;
bdd: string;
expenseAmortization: string;
accumulationAmortization: string;
inventory: string;
expenseDepreciation: string;
accumulationDepreciation: string;
stock: string;
profitLastYear: string;
profitCurrent: string;
period: number;
assets: string;
payable: string;
equities: string;
revenue: string;
expense: string;
cash: string;
receivable: string;
inventoryPayableAccount: string;
stockPaymentPayableAccount: string;
bdd?: string;
expenseAmortization?: string;
accumulationAmortization?: string;
inventory?: string;
expenseDepreciation?: string;
accumulationDepreciation?: string;
stock?: string;
profitLastYear?: string;
profitCurrent?: string;
depreciationSchedule?: number;
verificationTimeTransaction?: number;
period?: number;
assets?: string;
payable?: string;
equities?: string;
revenue?: string;
expense?: string;
cash?: string;
receivable?: string;
inventoryPayableAccount?: string;
stockPaymentPayableAccount?: string;
}, {
depreciationSchedule?: number | undefined;
verificationTimeTransaction?: number | undefined;
bdd: string;
expenseAmortization: string;
accumulationAmortization: string;
inventory: string;
expenseDepreciation: string;
accumulationDepreciation: string;
stock: string;
profitLastYear: string;
profitCurrent: string;
period: number;
assets: string;
payable: string;
equities: string;
revenue: string;
expense: string;
cash: string;
receivable: string;
inventoryPayableAccount: string;
stockPaymentPayableAccount: string;
bdd?: string;
expenseAmortization?: string;
accumulationAmortization?: string;
inventory?: string;
expenseDepreciation?: string;
accumulationDepreciation?: string;
stock?: string;
profitLastYear?: string;
profitCurrent?: string;
depreciationSchedule?: number;
verificationTimeTransaction?: number;
period?: number;
assets?: string;
payable?: string;
equities?: string;
revenue?: string;
expense?: string;
cash?: string;
receivable?: string;
inventoryPayableAccount?: string;
stockPaymentPayableAccount?: string;
}>;

@@ -134,68 +134,68 @@ export declare const transformPreferenceAccountingInput: (bank: PreferenceAccounting["bank"]) => z.ZodEffects<z.ZodObject<{

}, "strip", z.ZodTypeAny, {
depreciationSchedule?: number | undefined;
verificationTimeTransaction?: number | undefined;
bdd: string;
expenseAmortization: string;
accumulationAmortization: string;
inventory: string;
expenseDepreciation: string;
accumulationDepreciation: string;
stock: string;
profitLastYear: string;
profitCurrent: string;
period: number;
assets: string;
payable: string;
equities: string;
revenue: string;
expense: string;
cash: string;
receivable: string;
inventoryPayableAccount: string;
stockPaymentPayableAccount: string;
bdd?: string;
expenseAmortization?: string;
accumulationAmortization?: string;
inventory?: string;
expenseDepreciation?: string;
accumulationDepreciation?: string;
stock?: string;
profitLastYear?: string;
profitCurrent?: string;
depreciationSchedule?: number;
verificationTimeTransaction?: number;
period?: number;
assets?: string;
payable?: string;
equities?: string;
revenue?: string;
expense?: string;
cash?: string;
receivable?: string;
inventoryPayableAccount?: string;
stockPaymentPayableAccount?: string;
}, {
depreciationSchedule?: number | undefined;
verificationTimeTransaction?: number | undefined;
bdd: string;
expenseAmortization: string;
accumulationAmortization: string;
inventory: string;
expenseDepreciation: string;
accumulationDepreciation: string;
stock: string;
profitLastYear: string;
profitCurrent: string;
period: number;
assets: string;
payable: string;
equities: string;
revenue: string;
expense: string;
cash: string;
receivable: string;
inventoryPayableAccount: string;
stockPaymentPayableAccount: string;
bdd?: string;
expenseAmortization?: string;
accumulationAmortization?: string;
inventory?: string;
expenseDepreciation?: string;
accumulationDepreciation?: string;
stock?: string;
profitLastYear?: string;
profitCurrent?: string;
depreciationSchedule?: number;
verificationTimeTransaction?: number;
period?: number;
assets?: string;
payable?: string;
equities?: string;
revenue?: string;
expense?: string;
cash?: string;
receivable?: string;
inventoryPayableAccount?: string;
stockPaymentPayableAccount?: string;
}>, PreferenceAccounting, {
depreciationSchedule?: number | undefined;
verificationTimeTransaction?: number | undefined;
bdd: string;
expenseAmortization: string;
accumulationAmortization: string;
inventory: string;
expenseDepreciation: string;
accumulationDepreciation: string;
stock: string;
profitLastYear: string;
profitCurrent: string;
period: number;
assets: string;
payable: string;
equities: string;
revenue: string;
expense: string;
cash: string;
receivable: string;
inventoryPayableAccount: string;
stockPaymentPayableAccount: string;
bdd?: string;
expenseAmortization?: string;
accumulationAmortization?: string;
inventory?: string;
expenseDepreciation?: string;
accumulationDepreciation?: string;
stock?: string;
profitLastYear?: string;
profitCurrent?: string;
depreciationSchedule?: number;
verificationTimeTransaction?: number;
period?: number;
assets?: string;
payable?: string;
equities?: string;
revenue?: string;
expense?: string;
cash?: string;
receivable?: string;
inventoryPayableAccount?: string;
stockPaymentPayableAccount?: string;
}>;
export declare const transformPreferenceAccountingForm: ({ exclusiveCodeAccount, typeCodeAccount, transaction, depreciation, inventory, stockPayment, ..._ }: PreferenceAccounting) => PreferenceAccountingForm;

@@ -19,17 +19,17 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
supplierId?: string | null | undefined;
price?: number | null | undefined;
available?: number | null | undefined;
id: string;
name: string;
unit: string;
categoryId: string;
id?: string;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
price?: number;
available?: number;
}, {
supplierId?: string | null | undefined;
price?: number | null | undefined;
available?: number | null | undefined;
id: string;
name: string;
unit: string;
categoryId: string;
id?: string;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
price?: number;
available?: number;
}>;

@@ -44,15 +44,15 @@ export declare const ProductCreateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
supplierId?: string | null | undefined;
price?: number | null | undefined;
available?: number | null | undefined;
name: string;
unit: string;
categoryId: string;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
price?: number;
available?: number;
}, {
supplierId?: string | null | undefined;
price?: number | null | undefined;
available?: number | null | undefined;
name: string;
unit: string;
categoryId: string;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
price?: number;
available?: number;
}>;

@@ -65,11 +65,11 @@ export declare const ProductUpdateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
name?: string | undefined;
unit?: string | undefined;
categoryId?: string | undefined;
supplierId?: string | null | undefined;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
}, {
name?: string | undefined;
unit?: string | undefined;
categoryId?: string | undefined;
supplierId?: string | null | undefined;
name?: string;
unit?: string;
categoryId?: string;
supplierId?: string;
}>;

@@ -81,9 +81,9 @@ export declare const ProductItemSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>;

@@ -90,0 +90,0 @@ export declare type Product = z.infer<typeof ProductSchema>;

@@ -22,25 +22,25 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
id: string;
quantity: number;
price: number;
available: number;
productId: string;
mutation: "STOCK_IN" | "STOCK_OUT";
description?: string;
id?: string;
date?: number | Date;
transactionId?: string;
no?: string;
quantity?: number;
datePurchase?: number | Date;
price?: number;
available?: number;
productId?: string;
mutation?: "STOCK_IN" | "STOCK_OUT";
}, {
description?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
id: string;
quantity: number;
price: number;
available: number;
productId: string;
mutation: "STOCK_IN" | "STOCK_OUT";
description?: string;
id?: string;
date?: number | Date;
transactionId?: string;
no?: string;
quantity?: number;
datePurchase?: number | Date;
price?: number;
available?: number;
productId?: string;
mutation?: "STOCK_IN" | "STOCK_OUT";
}>;

@@ -59,23 +59,23 @@ export declare const StockInputSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
quantity: number;
price: number;
available: number;
productId: string;
mutation: "STOCK_IN" | "STOCK_OUT";
description?: string;
date?: number | Date;
transactionId?: string;
no?: string;
quantity?: number;
datePurchase?: number | Date;
price?: number;
available?: number;
productId?: string;
mutation?: "STOCK_IN" | "STOCK_OUT";
}, {
description?: string | null | undefined;
date?: number | Date | null | undefined;
transactionId?: string | null | undefined;
no?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
quantity: number;
price: number;
available: number;
productId: string;
mutation: "STOCK_IN" | "STOCK_OUT";
description?: string;
date?: number | Date;
transactionId?: string;
no?: string;
quantity?: number;
datePurchase?: number | Date;
price?: number;
available?: number;
productId?: string;
mutation?: "STOCK_IN" | "STOCK_OUT";
}>;

@@ -82,0 +82,0 @@ export declare type Stock = z.infer<typeof StockSchema>;

@@ -22,9 +22,9 @@ import { z } from "@deboxsoft/zod";

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">;

@@ -34,24 +34,24 @@ userId: z.ZodString;

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
userId: string;
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
approveBy?: string;
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
userId: string;
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
approveBy?: string;
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];

@@ -69,9 +69,9 @@ }>;

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">;

@@ -88,45 +88,45 @@ userId: z.ZodString;

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;
}>, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
description: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
userId: string;
paymentAccounts: {
id: string;
amount: number;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
mutation: "STOCK_IN";
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
mutation?: "STOCK_IN";
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
description: string;
userId: string;
paymentAccounts: {
id: string;
amount: number;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: number | Date;
paymentAccounts?: {
id?: string;
amount?: number;
}[];
mutation: "STOCK_IN";
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
mutation?: "STOCK_IN";
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];

@@ -144,9 +144,9 @@ }>;

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">;

@@ -159,29 +159,29 @@ userId: z.ZodString;

}>, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
userId: string;
mutation: "STOCK_OUT";
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
approveBy?: string;
mutation?: "STOCK_OUT";
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];
expenseAccount: string;
expenseAccount?: string;
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
approveBy?: string | null | undefined;
description: string;
userId: string;
mutation: "STOCK_OUT";
stockAccount: string;
productItems: {
quantity: number;
price: number;
productId: string;
description?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
approveBy?: string;
mutation?: "STOCK_OUT";
stockAccount?: string;
productItems?: {
quantity?: number;
price?: number;
productId?: string;
}[];
expenseAccount: string;
expenseAccount?: string;
}>;

@@ -198,9 +198,9 @@ export declare const StockTransactionSchema: z.ZodObject<z.extendShape<z.extendShape<z.extendShape<{

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">;

@@ -221,9 +221,9 @@ userId: z.ZodString;

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">>;

@@ -237,7 +237,7 @@ no: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">>;

@@ -256,9 +256,9 @@ }>, {

}, "strip", z.ZodTypeAny, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}, {
quantity: number;
price: number;
productId: string;
quantity?: number;
price?: number;
productId?: string;
}>, "many">>;

@@ -271,43 +271,43 @@ mutation: z.ZodOptional<z.ZodLiteral<"STOCK_OUT">>;

}>, "strip", z.ZodTypeAny, {
description?: string | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
userId?: string | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
description?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: number | Date;
paymentAccounts?: {
id: string;
amount: number;
}[] | undefined;
stockAccount?: string | undefined;
id?: string;
amount?: number;
}[];
mutation?: "STOCK_IN" | "STOCK_OUT";
stockAccount?: string;
productItems?: {
quantity: number;
price: number;
productId: string;
}[] | undefined;
expenseAccount?: string | undefined;
id: string;
mutation: "STOCK_IN" | "STOCK_OUT";
quantity?: number;
price?: number;
productId?: string;
}[];
expenseAccount?: string;
}, {
description?: string | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
userId?: string | undefined;
no?: string | null | undefined;
approveBy?: string | null | undefined;
datePurchase?: number | Date | null | undefined;
description?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
userId?: string;
no?: string;
approveBy?: string;
datePurchase?: number | Date;
paymentAccounts?: {
id: string;
amount: number;
}[] | undefined;
stockAccount?: string | undefined;
id?: string;
amount?: number;
}[];
mutation?: "STOCK_IN" | "STOCK_OUT";
stockAccount?: string;
productItems?: {
quantity: number;
price: number;
productId: string;
}[] | undefined;
expenseAccount?: string | undefined;
id: string;
mutation: "STOCK_IN" | "STOCK_OUT";
quantity?: number;
price?: number;
productId?: string;
}[];
expenseAccount?: string;
}>;

@@ -314,0 +314,0 @@ export declare type StockTransactionInput = z.infer<typeof StockTransactionInputSchema>;

@@ -15,13 +15,13 @@ import { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
address?: string | null | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
id: string;
name: string;
id?: string;
address?: string;
name?: string;
email?: string;
phone?: string;
}, {
address?: string | null | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
id: string;
name: string;
id?: string;
address?: string;
name?: string;
email?: string;
phone?: string;
}>;

@@ -34,11 +34,11 @@ export declare const SupplierCreateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
address?: string | null | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
name: string;
address?: string;
name?: string;
email?: string;
phone?: string;
}, {
address?: string | null | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
name: string;
address?: string;
name?: string;
email?: string;
phone?: string;
}>;

@@ -51,11 +51,11 @@ export declare const SupplierUpdateSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
address?: string | null | undefined;
name?: string | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
address?: string;
name?: string;
email?: string;
phone?: string;
}, {
address?: string | null | undefined;
name?: string | undefined;
email?: string | null | undefined;
phone?: string | null | undefined;
address?: string;
name?: string;
email?: string;
phone?: string;
}>;

@@ -62,0 +62,0 @@ export declare type Supplier = z.infer<typeof SupplierSchema>;

@@ -35,11 +35,11 @@ import type { CollectionParams } from "@deboxsoft/module-core";

}, "strip", z.ZodTypeAny, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
accountId?: string | null | undefined;
startDate?: number | Date | null | undefined;
endDate?: number | Date | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
accountId?: string;
startDate?: number | Date;
endDate?: number | Date;
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
accountId?: string | null | undefined;
startDate?: number | Date | null | undefined;
endDate?: number | Date | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
accountId?: string;
startDate?: number | Date;
endDate?: number | Date;
}>;

@@ -62,7 +62,7 @@ export declare const TransactionSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -72,37 +72,37 @@ status: z.ZodDefault<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>;

}, "strip", z.ZodTypeAny, {
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
id: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}>;

@@ -113,7 +113,7 @@ export declare const TransactionTypeSchema: z.ZodObject<{

}, "strip", z.ZodTypeAny, {
code: string;
name: string;
code?: string;
name?: string;
}, {
code: string;
name: string;
code?: string;
name?: string;
}>;

@@ -136,7 +136,7 @@ export declare const TransactionInputSchema: z.ZodObject<z.extendShape<{

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -149,37 +149,37 @@ status: z.ZodDefault<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>;

}>, "strip", z.ZodTypeAny, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}>;

@@ -203,7 +203,7 @@ export declare const transformTransactionInput: (_: any) => TransactionInput;

}, "strip", z.ZodTypeAny, {
id: string;
amount: number;
id?: string;
amount?: number;
}, {
id: string;
amount: number;
id?: string;
amount?: number;
}>, "many">;

@@ -216,73 +216,73 @@ status: z.ZodDefault<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>;

}>, "strip", z.ZodTypeAny, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}>, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}, {
id?: string | null | undefined;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined;
date?: number | Date | null | undefined;
dateApproved?: number | Date | null | undefined;
dateLastModified?: number | Date | null | undefined;
no?: string | null | undefined;
isCredit?: boolean | null | undefined;
approveBy?: string | null | undefined;
description: string;
type: string;
amount: number;
accountId: string;
userId: string;
oppositeAccounts: {
id: string;
amount: number;
description?: string;
type?: string;
id?: string;
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED";
date?: number | Date;
amount?: number;
accountId?: string;
userId?: string;
dateApproved?: number | Date;
dateLastModified?: number | Date;
no?: string;
isCredit?: boolean;
oppositeAccounts?: {
id?: string;
amount?: number;
}[];
approveBy?: string;
}>;

@@ -17,3 +17,3 @@ import { Account, AccountBalance, BalanceData, BalanceReport, BalanceSheetReport, RatioBalanceReport } from "../models";

export declare const aggBalanceReportUtils: (balanceReport: BalanceReport, balanceReportResource: BalanceReport, { subtract }?: {
subtract?: boolean | undefined;
subtract?: boolean;
}) => void;
/// <reference types="dayjs/plugin/issameorafter" />
/// <reference types="dayjs/plugin/issameorbefore" />
/// <reference types="dayjs/plugin/utc" />
/// <reference types="dayjs/plugin/localedata" />
import dayjsBase, { Dayjs } from "dayjs";

@@ -5,0 +6,0 @@ declare type Options = {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc