@deboxsoft/accounting-api
Advanced tools
Comparing version 1.5.0-beta.65 to 1.5.0-beta.66
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "1.5.0-beta.65", | ||
"version": "1.5.0-beta.66", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -56,5 +56,5 @@ import { z } from "@deboxsoft/zod"; | ||
active?: boolean | null | undefined; | ||
parentId?: string | null | undefined; | ||
isParent?: boolean | null | undefined; | ||
lastIdChild?: string | null | undefined; | ||
parentId?: string | null | undefined; | ||
division?: string | null | undefined; | ||
@@ -67,5 +67,5 @@ startBalance?: number | null | undefined; | ||
active?: boolean | null | undefined; | ||
parentId?: string | null | undefined; | ||
isParent?: boolean | null | undefined; | ||
lastIdChild?: string | null | undefined; | ||
parentId?: string | null | undefined; | ||
division?: string | null | undefined; | ||
@@ -72,0 +72,0 @@ startBalance?: number | null | undefined; |
@@ -71,4 +71,4 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
date: number | Date; | ||
balance: number; | ||
accountId: string; | ||
balance: number; | ||
}, { | ||
@@ -79,4 +79,4 @@ description?: string | null | undefined; | ||
date: number | Date; | ||
balance: number; | ||
accountId: string; | ||
balance: number; | ||
}>; |
@@ -295,4 +295,4 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
name: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -331,4 +331,4 @@ oppositeAccounts: { | ||
name: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -538,4 +538,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -604,4 +604,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -608,0 +608,0 @@ oppositeAccounts: { |
@@ -28,6 +28,6 @@ import { CollectionParams } from "@deboxsoft/module-core"; | ||
date: number | Date; | ||
amount: number; | ||
accountId: string; | ||
transactionId: string; | ||
transactionType: string; | ||
amount: number; | ||
}, { | ||
@@ -38,6 +38,6 @@ description?: string | null | undefined; | ||
date: number | Date; | ||
amount: number; | ||
accountId: string; | ||
transactionId: string; | ||
transactionType: string; | ||
amount: number; | ||
}>; | ||
@@ -47,7 +47,7 @@ export declare const GeneralLedgerInputSchema: z.ZodObject<{ | ||
date: z.ZodUnion<[z.ZodDate, z.ZodNumber]>; | ||
balance: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; | ||
amount: z.ZodNumber; | ||
accountId: z.ZodString; | ||
transactionId: z.ZodString; | ||
transactionType: z.ZodString; | ||
amount: z.ZodNumber; | ||
balance: z.ZodNullable<z.ZodOptional<z.ZodNumber>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -57,6 +57,6 @@ description?: string | null | undefined; | ||
date: number | Date; | ||
amount: number; | ||
accountId: string; | ||
transactionId: string; | ||
transactionType: string; | ||
amount: number; | ||
}, { | ||
@@ -66,6 +66,6 @@ description?: string | null | undefined; | ||
date: number | Date; | ||
amount: number; | ||
accountId: string; | ||
transactionId: string; | ||
transactionType: string; | ||
amount: number; | ||
}>; |
@@ -241,4 +241,4 @@ import { CollectionParams } from "@deboxsoft/module-core"; | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -260,4 +260,4 @@ oppositeAccounts: { | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -289,4 +289,4 @@ oppositeAccounts: { | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -325,4 +325,4 @@ oppositeAccounts: { | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -361,12 +361,3 @@ oppositeAccounts: { | ||
debitAccount: z.ZodString; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
amount: number; | ||
}, { | ||
id: string; | ||
amount: number; | ||
}>, "many">; | ||
creditAccount: z.ZodString; | ||
description: z.ZodString; | ||
@@ -383,6 +374,3 @@ amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
debitAccount: string; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
creditAccount: string; | ||
}, { | ||
@@ -395,6 +383,3 @@ date?: number | Date | null | undefined; | ||
debitAccount: string; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
creditAccount: string; | ||
}>; | ||
@@ -446,9 +431,9 @@ export declare const CategoryInventoryUpdateInputSchema: z.ZodObject<{ | ||
month: string; | ||
amount: number; | ||
transactionId: string; | ||
amount: number; | ||
categoryId: string; | ||
}, { | ||
month: string; | ||
amount: number; | ||
transactionId: string; | ||
amount: number; | ||
categoryId: string; | ||
@@ -455,0 +440,0 @@ }>; |
@@ -19,4 +19,12 @@ import { CollectionParams } from "@deboxsoft/module-core"; | ||
payableAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
cashAccount: z.ZodString; | ||
cashAmount: z.ZodNumber; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
amount: number; | ||
}, { | ||
id: string; | ||
amount: number; | ||
}>, "many">; | ||
description: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
@@ -61,4 +69,6 @@ supplier: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
inventoryAccount: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
}, { | ||
@@ -82,4 +92,6 @@ description?: string | null | undefined; | ||
inventoryAccount: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
}>; | ||
@@ -113,4 +125,12 @@ export declare const InventoryTransactionInputSchema: z.ZodObject<{ | ||
payableAccount: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
cashAccount: z.ZodString; | ||
cashAmount: z.ZodNumber; | ||
creditAccounts: z.ZodArray<z.ZodObject<{ | ||
id: z.ZodString; | ||
amount: z.ZodEffects<z.ZodNumber, number, number>; | ||
}, "strip", z.ZodTypeAny, { | ||
id: string; | ||
amount: number; | ||
}, { | ||
id: string; | ||
amount: number; | ||
}>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -133,4 +153,6 @@ description?: string | null | undefined; | ||
inventoryAccount: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
}, { | ||
@@ -153,4 +175,6 @@ description?: string | null | undefined; | ||
inventoryAccount: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
creditAccounts: { | ||
id: string; | ||
amount: number; | ||
}[]; | ||
}>; | ||
@@ -157,0 +181,0 @@ export declare type InventoryTransaction = z.infer<typeof InventoryTransactionSchema>; |
@@ -88,4 +88,2 @@ import { z } from "@deboxsoft/zod"; | ||
userId: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
mutation: "STOCK_IN"; | ||
@@ -98,2 +96,4 @@ stockAccount: string; | ||
}[]; | ||
cashAccount: string; | ||
cashAmount: number; | ||
}, { | ||
@@ -107,4 +107,2 @@ date?: number | Date | null | undefined; | ||
userId: string; | ||
cashAccount: string; | ||
cashAmount: number; | ||
mutation: "STOCK_IN"; | ||
@@ -117,2 +115,4 @@ stockAccount: string; | ||
}[]; | ||
cashAccount: string; | ||
cashAmount: number; | ||
}>; | ||
@@ -244,4 +244,2 @@ export declare const StockOutTransactionInputSchema: z.ZodObject<z.extendShape<{ | ||
datePurchase?: number | Date | null | undefined; | ||
cashAccount?: string | undefined; | ||
cashAmount?: number | undefined; | ||
stockAccount?: string | undefined; | ||
@@ -253,2 +251,4 @@ productItems?: { | ||
}[] | undefined; | ||
cashAccount?: string | undefined; | ||
cashAmount?: number | undefined; | ||
expenseAccount?: string | undefined; | ||
@@ -265,4 +265,2 @@ id: string; | ||
datePurchase?: number | Date | null | undefined; | ||
cashAccount?: string | undefined; | ||
cashAmount?: number | undefined; | ||
stockAccount?: string | undefined; | ||
@@ -274,2 +272,4 @@ productItems?: { | ||
}[] | undefined; | ||
cashAccount?: string | undefined; | ||
cashAmount?: number | undefined; | ||
expenseAccount?: string | undefined; | ||
@@ -276,0 +276,0 @@ id: string; |
@@ -80,4 +80,4 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -99,4 +99,4 @@ oppositeAccounts: { | ||
status: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED"; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -156,4 +156,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -175,4 +175,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -223,4 +223,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -242,4 +242,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -261,4 +261,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -280,4 +280,4 @@ oppositeAccounts: { | ||
type: string; | ||
amount: number; | ||
accountId: string; | ||
amount: number; | ||
userId: string; | ||
@@ -284,0 +284,0 @@ oppositeAccounts: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
299280
7812