@deboxsoft/accounting-api
Advanced tools
Comparing version 0.1.0-alpha.47 to 0.1.0-alpha.48
@@ -14,4 +14,4 @@ 'use strict'; | ||
isParent: sh.boolean().optional(), | ||
memo: sh.string().optional(), | ||
parentId: sh.string().optional() | ||
memo: sh.string().optional().nullable(), | ||
parentId: sh.string().optional().nullable() | ||
}); | ||
@@ -31,3 +31,3 @@ | ||
noTransaction: sh.string().nonempty(), | ||
description: sh.string(), | ||
description: sh.string().nullable().optional(), | ||
type: sh.string().nonempty(), | ||
@@ -45,3 +45,3 @@ total: numberNonNullSchema, | ||
name: sh.string().nonempty(), | ||
address: sh.string(), | ||
address: sh.string().nonempty(), | ||
divisions: sh.array(divisionSchema) | ||
@@ -61,3 +61,3 @@ }); | ||
date: sh.union([sh.date(), sh.string().nonempty()]), | ||
description: sh.string(), | ||
description: sh.string().optional().nullable(), | ||
in: sh.number(), | ||
@@ -64,0 +64,0 @@ out: sh.number(), |
10
index.js
@@ -10,4 +10,4 @@ import { object, string, boolean, number, union, date, array, enum as enum$1 } from '@deboxsoft/zod'; | ||
isParent: boolean().optional(), | ||
memo: string().optional(), | ||
parentId: string().optional() | ||
memo: string().optional().nullable(), | ||
parentId: string().optional().nullable() | ||
}); | ||
@@ -27,3 +27,3 @@ | ||
noTransaction: string().nonempty(), | ||
description: string(), | ||
description: string().nullable().optional(), | ||
type: string().nonempty(), | ||
@@ -41,3 +41,3 @@ total: numberNonNullSchema, | ||
name: string().nonempty(), | ||
address: string(), | ||
address: string().nonempty(), | ||
divisions: array(divisionSchema) | ||
@@ -57,3 +57,3 @@ }); | ||
date: union([date(), string().nonempty()]), | ||
description: string(), | ||
description: string().optional().nullable(), | ||
in: number(), | ||
@@ -60,0 +60,0 @@ out: number(), |
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "0.1.0-alpha.47", | ||
"version": "0.1.0-alpha.48", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -7,9 +7,9 @@ export declare const accountSchema: import("@deboxsoft/zod").ZodObject<{ | ||
isParent: import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodBoolean>; | ||
memo: import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>; | ||
parentId: import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>; | ||
memo: import("@deboxsoft/zod").ZodNullable<import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>>; | ||
parentId: import("@deboxsoft/zod").ZodNullable<import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>>; | ||
}, "strip", import("@deboxsoft/zod").ZodTypeAny, { | ||
active?: boolean | undefined; | ||
isParent?: boolean | undefined; | ||
memo?: string | undefined; | ||
parentId?: string | undefined; | ||
memo?: string | null | undefined; | ||
parentId?: string | null | undefined; | ||
code: string; | ||
@@ -21,4 +21,4 @@ type: string; | ||
isParent?: boolean | undefined; | ||
memo?: string | undefined; | ||
parentId?: string | undefined; | ||
memo?: string | null | undefined; | ||
parentId?: string | null | undefined; | ||
code: string; | ||
@@ -25,0 +25,0 @@ type: string; |
@@ -28,3 +28,3 @@ import { TypeOf } from "@deboxsoft/zod"; | ||
date: import("@deboxsoft/zod").ZodUnion<[import("@deboxsoft/zod").ZodDate, import("@deboxsoft/zod").ZodString]>; | ||
description: import("@deboxsoft/zod").ZodString; | ||
description: import("@deboxsoft/zod").ZodNullable<import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>>; | ||
in: import("@deboxsoft/zod").ZodNumber; | ||
@@ -34,3 +34,3 @@ out: import("@deboxsoft/zod").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod").ZodTypeAny, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -41,3 +41,3 @@ balance: number; | ||
}, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -50,3 +50,3 @@ balance: number; | ||
date: import("@deboxsoft/zod").ZodUnion<[import("@deboxsoft/zod").ZodDate, import("@deboxsoft/zod").ZodString]>; | ||
description: import("@deboxsoft/zod").ZodString; | ||
description: import("@deboxsoft/zod").ZodNullable<import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodString>>; | ||
in: import("@deboxsoft/zod").ZodNumber; | ||
@@ -56,3 +56,3 @@ out: import("@deboxsoft/zod").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod").ZodTypeAny, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -63,3 +63,3 @@ balance: number; | ||
}, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -66,0 +66,0 @@ balance: number; |
@@ -17,3 +17,3 @@ import { TypeOf } from "@deboxsoft/zod"; | ||
noTransaction: import("@deboxsoft/zod").ZodString; | ||
description: import("@deboxsoft/zod").ZodString; | ||
description: import("@deboxsoft/zod").ZodOptional<import("@deboxsoft/zod").ZodNullable<import("@deboxsoft/zod").ZodString>>; | ||
type: import("@deboxsoft/zod").ZodString; | ||
@@ -33,3 +33,3 @@ total: import("@deboxsoft/zod").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod").ZodTypeAny, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -46,3 +46,3 @@ type: string; | ||
}, { | ||
description: string; | ||
description?: string | null | undefined; | ||
date: string | Date; | ||
@@ -49,0 +49,0 @@ type: string; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35272