@deboxsoft/accounting-api
Advanced tools
Comparing version 1.4.0-beta.72 to 1.4.0-beta.73
19
index.js
@@ -325,3 +325,3 @@ 'use strict'; | ||
zod.z.object({ | ||
id: TransactionSchema.shape.id.optional(), | ||
id: TransactionSchema.shape.id.nullish(), | ||
status: TransactionStatusSchema.nullish() | ||
@@ -419,3 +419,3 @@ }) | ||
id: zod.z.string(), | ||
transaction: TransactionSchema.optional() | ||
transaction: TransactionSchema.nullish() | ||
}); | ||
@@ -605,3 +605,3 @@ | ||
name: zod.z.string().min(1), | ||
description: zod.z.string().optional(), | ||
description: zod.z.string().nullish(), | ||
mutation: StockMutationSchema, | ||
@@ -612,4 +612,4 @@ available: zod.z.number().nonnegative(), | ||
price: zod.z.number().positive(), | ||
transactionId: zod.z.string().optional(), | ||
status: TransactionSchema.shape.status.optional(), | ||
transactionId: zod.z.string().nullish(), | ||
status: TransactionSchema.shape.status.nullish(), | ||
userId: zod.z.string() | ||
@@ -625,5 +625,5 @@ }); | ||
// date: StockSchema.shape.date, | ||
// datePurchase: z.union([z.date(), z.number()]).optional(), | ||
// no: z.string().optional(), | ||
// description: z.string().optional(), | ||
// datePurchase: z.union([z.date(), z.number()]).nullish(), | ||
// no: z.string().nullish(), | ||
// description: z.string().nullish(), | ||
// userId: z.string(), | ||
@@ -1023,5 +1023,7 @@ // products: z.array(ProductItemSchema) | ||
const PreferenceAccountingFormSchema = zod.z.object({ | ||
depreciationSchedule: zod.z.number().optional(), | ||
verificationTimeTransaction: zod.z.number().optional(), | ||
period: zod.z.string(), | ||
bdd: zod.z.string(), | ||
@@ -1052,2 +1054,3 @@ expenseAmortization: zod.z.string(), | ||
statementIncome, | ||
period: _.period, | ||
transaction: { | ||
@@ -1054,0 +1057,0 @@ verificationTime: _.verificationTimeTransaction |
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "1.4.0-beta.72", | ||
"version": "1.4.0-beta.73", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -215,3 +215,3 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
}, { | ||
id: z.ZodOptional<z.ZodString>; | ||
id: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>>; | ||
@@ -239,3 +239,3 @@ }>, { | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -270,3 +270,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -453,3 +453,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -515,3 +515,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -518,0 +518,0 @@ date?: number | Date | null | undefined; |
@@ -209,3 +209,3 @@ import { CollectionParams } from "@deboxsoft/module-core"; | ||
id: z.ZodString; | ||
transaction: z.ZodOptional<z.ZodObject<{ | ||
transaction: z.ZodNullable<z.ZodOptional<z.ZodObject<{ | ||
id: z.ZodString; | ||
@@ -267,3 +267,3 @@ userId: z.ZodString; | ||
}[]; | ||
}>>; | ||
}>>>; | ||
}>, "strip", z.ZodTypeAny, { | ||
@@ -295,3 +295,3 @@ location?: string | null | undefined; | ||
}[]; | ||
} | undefined; | ||
} | null | undefined; | ||
id: string; | ||
@@ -331,3 +331,3 @@ name: string; | ||
}[]; | ||
} | undefined; | ||
} | null | undefined; | ||
id: string; | ||
@@ -334,0 +334,0 @@ name: string; |
@@ -8,2 +8,3 @@ import { z } from "@deboxsoft/zod"; | ||
bank: string[]; | ||
period: string; | ||
balanceSheet: { | ||
@@ -52,2 +53,3 @@ assetsCurrent: AccountType; | ||
verificationTimeTransaction: z.ZodOptional<z.ZodNumber>; | ||
period: z.ZodString; | ||
bdd: z.ZodString; | ||
@@ -69,2 +71,3 @@ expenseAmortization: z.ZodString; | ||
verificationTimeTransaction?: number | undefined; | ||
period: string; | ||
bdd: string; | ||
@@ -86,2 +89,3 @@ expenseAmortization: string; | ||
verificationTimeTransaction?: number | undefined; | ||
period: string; | ||
bdd: string; | ||
@@ -104,2 +108,3 @@ expenseAmortization: string; | ||
verificationTimeTransaction: z.ZodOptional<z.ZodNumber>; | ||
period: z.ZodString; | ||
bdd: z.ZodString; | ||
@@ -121,2 +126,3 @@ expenseAmortization: z.ZodString; | ||
verificationTimeTransaction?: number | undefined; | ||
period: string; | ||
bdd: string; | ||
@@ -138,2 +144,3 @@ expenseAmortization: string; | ||
verificationTimeTransaction?: number | undefined; | ||
period: string; | ||
bdd: string; | ||
@@ -155,2 +162,3 @@ expenseAmortization: string; | ||
verificationTimeTransaction?: number | undefined; | ||
period: string; | ||
bdd: string; | ||
@@ -157,0 +165,0 @@ expenseAmortization: string; |
@@ -16,3 +16,3 @@ import { CollectionParams } from "@deboxsoft/module-core"; | ||
name: z.ZodString; | ||
description: z.ZodOptional<z.ZodString>; | ||
description: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
mutation: z.ZodEnum<["STOCK_IN", "STOCK_OUT"]>; | ||
@@ -23,12 +23,12 @@ available: z.ZodNumber; | ||
price: z.ZodNumber; | ||
transactionId: z.ZodOptional<z.ZodString>; | ||
status: z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>; | ||
transactionId: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>>; | ||
userId: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
description?: string | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined; | ||
description?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
date?: number | Date | null | undefined; | ||
no?: string | null | undefined; | ||
datePurchase?: number | Date | null | undefined; | ||
transactionId?: string | undefined; | ||
transactionId?: string | null | undefined; | ||
id: string; | ||
@@ -44,8 +44,8 @@ name: string; | ||
}, { | ||
description?: string | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined; | ||
description?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
date?: number | Date | null | undefined; | ||
no?: string | null | undefined; | ||
datePurchase?: number | Date | null | undefined; | ||
transactionId?: string | undefined; | ||
transactionId?: string | null | undefined; | ||
id: string; | ||
@@ -62,5 +62,5 @@ name: string; | ||
export declare const StockInputSchema: z.ZodObject<{ | ||
description: z.ZodOptional<z.ZodString>; | ||
description: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
name: z.ZodString; | ||
status: z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>; | ||
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>>; | ||
unit: z.ZodString; | ||
@@ -72,3 +72,3 @@ date: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>; | ||
datePurchase: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodDate, z.ZodNumber]>>>; | ||
transactionId: z.ZodOptional<z.ZodString>; | ||
transactionId: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
price: z.ZodNumber; | ||
@@ -79,8 +79,8 @@ available: z.ZodNumber; | ||
}, "strip", z.ZodTypeAny, { | ||
description?: string | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined; | ||
description?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
date?: number | Date | null | undefined; | ||
no?: string | null | undefined; | ||
datePurchase?: number | Date | null | undefined; | ||
transactionId?: string | undefined; | ||
transactionId?: string | null | undefined; | ||
name: string; | ||
@@ -95,8 +95,8 @@ unit: string; | ||
}, { | ||
description?: string | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | undefined; | ||
description?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
date?: number | Date | null | undefined; | ||
no?: string | null | undefined; | ||
datePurchase?: number | Date | null | undefined; | ||
transactionId?: string | undefined; | ||
transactionId?: string | null | undefined; | ||
name: string; | ||
@@ -103,0 +103,0 @@ unit: string; |
@@ -146,7 +146,7 @@ import type { CollectionParams } from "@deboxsoft/module-core"; | ||
}, { | ||
id: z.ZodOptional<z.ZodString>; | ||
id: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>>; | ||
}>, "strip", z.ZodTypeAny, { | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -168,3 +168,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -210,7 +210,7 @@ date?: number | Date | null | undefined; | ||
}, { | ||
id: z.ZodOptional<z.ZodString>; | ||
id: z.ZodNullable<z.ZodOptional<z.ZodString>>; | ||
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["FAILED", "UNAPPROVED", "APPROVED", "REJECTED", "FIXED"]>>>; | ||
}>, "strip", z.ZodTypeAny, { | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -232,3 +232,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -250,3 +250,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -268,3 +268,3 @@ date?: number | Date | null | undefined; | ||
description?: string | null | undefined; | ||
id?: string | undefined; | ||
id?: string | null | undefined; | ||
status?: "FAILED" | "UNAPPROVED" | "APPROVED" | "REJECTED" | "FIXED" | null | undefined; | ||
@@ -271,0 +271,0 @@ date?: number | Date | null | undefined; |
Sorry, the diff of this file is not supported yet
202653
63
5341