@deboxsoft/accounting-api
Advanced tools
Comparing version 0.1.0-alpha.40 to 0.1.0-alpha.41
@@ -5,3 +5,3 @@ 'use strict'; | ||
var sh = require('zod'); | ||
var sh = require('@deboxsoft/zod'); | ||
var moduleCore = require('@deboxsoft/module-core'); | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { object, string, boolean, union, date, number, array, enum as enum$1 } from 'zod'; | ||
import { object, string, boolean, union, date, number, array, enum as enum$1 } from '@deboxsoft/zod'; | ||
import { DeboxError } from '@deboxsoft/module-core'; | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "0.1.0-alpha.40", | ||
"version": "0.1.0-alpha.41", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -40,3 +40,4 @@ "repository": { | ||
"dependencies": { | ||
"@deboxsoft/module-core": "^1.5.19-0" | ||
"@deboxsoft/module-core": "^1.5.19-0", | ||
"@deboxsoft/zod": "^3.0.0-4" | ||
}, | ||
@@ -46,7 +47,5 @@ "devDependencies": { | ||
"@testing-library/jest-dom": "^5.11.9", | ||
"svelte-jester": "^1.3.0", | ||
"tozod": "^0.1.4", | ||
"zod": "^3.0.0-alpha.4" | ||
"svelte-jester": "^1.3.0" | ||
}, | ||
"gitHead": "b023f06cd22d9b5d6279f3930d90bbfc15186ab2" | ||
} |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"strictNullChecks": true, | ||
"declarationDir": "types" | ||
@@ -5,0 +6,0 @@ }, |
@@ -1,27 +0,27 @@ | ||
import { TypeOf } from "zod"; | ||
export declare const accountSchema: import("zod").ZodObject<{ | ||
code: import("zod").ZodString; | ||
name: import("zod").ZodString; | ||
type: import("zod").ZodString; | ||
active: import("zod").ZodOptional<import("zod").ZodBoolean>; | ||
isParent: import("zod").ZodOptional<import("zod").ZodBoolean>; | ||
memo: import("zod").ZodOptional<import("zod").ZodString>; | ||
parentId: import("zod").ZodOptional<import("zod").ZodString>; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
code?: string; | ||
type?: string; | ||
name?: string; | ||
active?: boolean; | ||
isParent?: boolean; | ||
memo?: string; | ||
parentId?: string; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare const accountSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
code: import("@deboxsoft/zod/lib").ZodString; | ||
name: import("@deboxsoft/zod/lib").ZodString; | ||
type: import("@deboxsoft/zod/lib").ZodString; | ||
active: import("@deboxsoft/zod/lib").ZodOptional<import("@deboxsoft/zod/lib").ZodBoolean>; | ||
isParent: import("@deboxsoft/zod/lib").ZodOptional<import("@deboxsoft/zod/lib").ZodBoolean>; | ||
memo: import("@deboxsoft/zod/lib").ZodOptional<import("@deboxsoft/zod/lib").ZodString>; | ||
parentId: import("@deboxsoft/zod/lib").ZodOptional<import("@deboxsoft/zod/lib").ZodString>; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
active?: boolean | undefined; | ||
isParent?: boolean | undefined; | ||
memo?: string | undefined; | ||
parentId?: string | undefined; | ||
code: string; | ||
type: string; | ||
name: string; | ||
}, { | ||
code?: string; | ||
type?: string; | ||
name?: string; | ||
active?: boolean; | ||
isParent?: boolean; | ||
memo?: string; | ||
parentId?: string; | ||
active?: boolean | undefined; | ||
isParent?: boolean | undefined; | ||
memo?: string | undefined; | ||
parentId?: string | undefined; | ||
code: string; | ||
type: string; | ||
name: string; | ||
}>; | ||
export declare type AccountSchema = TypeOf<typeof accountSchema>; |
@@ -1,63 +0,63 @@ | ||
import { TypeOf } from "zod"; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare type BankReconciliationSchema = TypeOf<typeof bankReconciliationSchema>; | ||
export declare const bankSchema: import("zod").ZodString; | ||
export declare const bankReconciliationSchema: import("zod").ZodObject<{ | ||
accountBank: import("zod").ZodString; | ||
bank: import("zod").ZodString; | ||
accountId: import("zod").ZodString; | ||
nameAccountBank: import("zod").ZodString; | ||
balance: import("zod").ZodNumber; | ||
date: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString]>; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
date?: string | Date; | ||
accountId?: string; | ||
accountBank?: string; | ||
bank?: string; | ||
nameAccountBank?: string; | ||
balance?: number; | ||
export declare const bankSchema: import("@deboxsoft/zod/lib").ZodString; | ||
export declare const bankReconciliationSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
accountBank: import("@deboxsoft/zod/lib").ZodString; | ||
bank: import("@deboxsoft/zod/lib").ZodString; | ||
accountId: import("@deboxsoft/zod/lib").ZodString; | ||
nameAccountBank: import("@deboxsoft/zod/lib").ZodString; | ||
balance: import("@deboxsoft/zod/lib").ZodNumber; | ||
date: import("@deboxsoft/zod/lib").ZodUnion<[import("@deboxsoft/zod/lib").ZodDate, import("@deboxsoft/zod/lib").ZodString]>; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
date: string | Date; | ||
accountId: string; | ||
accountBank: string; | ||
bank: string; | ||
nameAccountBank: string; | ||
balance: number; | ||
}, { | ||
date?: string | Date; | ||
accountId?: string; | ||
accountBank?: string; | ||
bank?: string; | ||
nameAccountBank?: string; | ||
balance?: number; | ||
date: string | Date; | ||
accountId: string; | ||
accountBank: string; | ||
bank: string; | ||
nameAccountBank: string; | ||
balance: number; | ||
}>; | ||
export declare const bankStatementSchema: import("zod").ZodObject<{ | ||
date: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString]>; | ||
description: import("zod").ZodString; | ||
in: import("zod").ZodNumber; | ||
out: import("zod").ZodNumber; | ||
balance: import("zod").ZodNumber; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
description?: string; | ||
date?: string | Date; | ||
balance?: number; | ||
in?: number; | ||
out?: number; | ||
export declare const bankStatementSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
date: import("@deboxsoft/zod/lib").ZodUnion<[import("@deboxsoft/zod/lib").ZodDate, import("@deboxsoft/zod/lib").ZodString]>; | ||
description: import("@deboxsoft/zod/lib").ZodString; | ||
in: import("@deboxsoft/zod/lib").ZodNumber; | ||
out: import("@deboxsoft/zod/lib").ZodNumber; | ||
balance: import("@deboxsoft/zod/lib").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
description: string; | ||
date: string | Date; | ||
balance: number; | ||
in: number; | ||
out: number; | ||
}, { | ||
description?: string; | ||
date?: string | Date; | ||
balance?: number; | ||
in?: number; | ||
out?: number; | ||
description: string; | ||
date: string | Date; | ||
balance: number; | ||
in: number; | ||
out: number; | ||
}>; | ||
export declare const bankStatementListSchema: import("zod").ZodArray<import("zod").ZodObject<{ | ||
date: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString]>; | ||
description: import("zod").ZodString; | ||
in: import("zod").ZodNumber; | ||
out: import("zod").ZodNumber; | ||
balance: import("zod").ZodNumber; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
description?: string; | ||
date?: string | Date; | ||
balance?: number; | ||
in?: number; | ||
out?: number; | ||
export declare const bankStatementListSchema: import("@deboxsoft/zod/lib").ZodArray<import("@deboxsoft/zod/lib").ZodObject<{ | ||
date: import("@deboxsoft/zod/lib").ZodUnion<[import("@deboxsoft/zod/lib").ZodDate, import("@deboxsoft/zod/lib").ZodString]>; | ||
description: import("@deboxsoft/zod/lib").ZodString; | ||
in: import("@deboxsoft/zod/lib").ZodNumber; | ||
out: import("@deboxsoft/zod/lib").ZodNumber; | ||
balance: import("@deboxsoft/zod/lib").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
description: string; | ||
date: string | Date; | ||
balance: number; | ||
in: number; | ||
out: number; | ||
}, { | ||
description?: string; | ||
date?: string | Date; | ||
balance?: number; | ||
in?: number; | ||
out?: number; | ||
description: string; | ||
date: string | Date; | ||
balance: number; | ||
in: number; | ||
out: number; | ||
}>>; |
@@ -1,41 +0,41 @@ | ||
import { TypeOf } from "zod"; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare type DivisionSchema = TypeOf<typeof divisionSchema>; | ||
export declare type CompanySchema = TypeOf<typeof companySchema>; | ||
export declare const divisionSchema: import("zod").ZodObject<{ | ||
code: import("zod").ZodString; | ||
name: import("zod").ZodString; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
code?: string; | ||
name?: string; | ||
export declare const divisionSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
code: import("@deboxsoft/zod/lib").ZodString; | ||
name: import("@deboxsoft/zod/lib").ZodString; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
code: string; | ||
name: string; | ||
}, { | ||
code?: string; | ||
name?: string; | ||
code: string; | ||
name: string; | ||
}>; | ||
export declare const companySchema: import("zod").ZodObject<{ | ||
name: import("zod").ZodString; | ||
address: import("zod").ZodString; | ||
divisions: import("zod").ZodArray<import("zod").ZodObject<{ | ||
code: import("zod").ZodString; | ||
name: import("zod").ZodString; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
code?: string; | ||
name?: string; | ||
export declare const companySchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
name: import("@deboxsoft/zod/lib").ZodString; | ||
address: import("@deboxsoft/zod/lib").ZodString; | ||
divisions: import("@deboxsoft/zod/lib").ZodArray<import("@deboxsoft/zod/lib").ZodObject<{ | ||
code: import("@deboxsoft/zod/lib").ZodString; | ||
name: import("@deboxsoft/zod/lib").ZodString; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
code: string; | ||
name: string; | ||
}, { | ||
code?: string; | ||
name?: string; | ||
code: string; | ||
name: string; | ||
}>>; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
name?: string; | ||
address?: string; | ||
divisions?: { | ||
code?: string; | ||
name?: string; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
name: string; | ||
address: string; | ||
divisions: { | ||
code: string; | ||
name: string; | ||
}[]; | ||
}, { | ||
name?: string; | ||
address?: string; | ||
divisions?: { | ||
code?: string; | ||
name?: string; | ||
name: string; | ||
address: string; | ||
divisions: { | ||
code: string; | ||
name: string; | ||
}[]; | ||
}>; |
@@ -1,21 +0,21 @@ | ||
import { TypeOf } from "zod"; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare type GeneralLedgerSchema = TypeOf<typeof generalLedgerSchema>; | ||
export declare const generalLedgerSchema: import("zod").ZodObject<{ | ||
no: import("zod").ZodString; | ||
date: import("zod").ZodUnion<[import("zod").ZodDate, import("zod").ZodString]>; | ||
accountId: import("zod").ZodString; | ||
isCredit: import("zod").ZodOptional<import("zod").ZodBoolean>; | ||
amount: import("zod").ZodNumber; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
date?: string | Date; | ||
accountId?: string; | ||
amount?: number; | ||
no?: string; | ||
isCredit?: boolean; | ||
export declare const generalLedgerSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
no: import("@deboxsoft/zod/lib").ZodString; | ||
date: import("@deboxsoft/zod/lib").ZodUnion<[import("@deboxsoft/zod/lib").ZodDate, import("@deboxsoft/zod/lib").ZodString]>; | ||
accountId: import("@deboxsoft/zod/lib").ZodString; | ||
isCredit: import("@deboxsoft/zod/lib").ZodOptional<import("@deboxsoft/zod/lib").ZodBoolean>; | ||
amount: import("@deboxsoft/zod/lib").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
isCredit?: boolean | undefined; | ||
date: string | Date; | ||
accountId: string; | ||
amount: number; | ||
no: string; | ||
}, { | ||
date?: string | Date; | ||
accountId?: string; | ||
amount?: number; | ||
no?: string; | ||
isCredit?: boolean; | ||
isCredit?: boolean | undefined; | ||
date: string | Date; | ||
accountId: string; | ||
amount: number; | ||
no: string; | ||
}>; |
@@ -1,15 +0,15 @@ | ||
import { TypeOf } from "zod"; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare type InventorySchema = TypeOf<typeof inventorySchema>; | ||
export declare const inventorySchema: import("zod").ZodObject<{ | ||
name: import("zod").ZodString; | ||
code: import("zod").ZodString; | ||
quantity: import("zod").ZodNumber; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
code?: string; | ||
name?: string; | ||
quantity?: number; | ||
export declare const inventorySchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
name: import("@deboxsoft/zod/lib").ZodString; | ||
code: import("@deboxsoft/zod/lib").ZodString; | ||
quantity: import("@deboxsoft/zod/lib").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
code: string; | ||
name: string; | ||
quantity: number; | ||
}, { | ||
code?: string; | ||
name?: string; | ||
quantity?: number; | ||
code: string; | ||
name: string; | ||
quantity: number; | ||
}>; |
@@ -1,2 +0,2 @@ | ||
import * as sh from "zod"; | ||
import * as sh from "@deboxsoft/zod"; | ||
export declare type StockSchema = sh.TypeOf<typeof stockSchema>; | ||
@@ -10,11 +10,11 @@ export declare const stockTransferType: sh.ZodEnum<["IN", "OUT"]>; | ||
}, "strip", sh.ZodTypeAny, { | ||
date?: Date; | ||
type?: "IN" | "OUT"; | ||
inventoryId?: string; | ||
count?: number; | ||
date: Date; | ||
type: "IN" | "OUT"; | ||
inventoryId: string; | ||
count: number; | ||
}, { | ||
date?: Date; | ||
type?: "IN" | "OUT"; | ||
inventoryId?: string; | ||
count?: number; | ||
date: Date; | ||
type: "IN" | "OUT"; | ||
inventoryId: string; | ||
count: number; | ||
}>; |
@@ -1,39 +0,39 @@ | ||
import { TypeOf } from "zod"; | ||
import { TypeOf } from "@deboxsoft/zod"; | ||
export declare type TransactionSchema = TypeOf<typeof transactionSchema>; | ||
export declare const transactionSchema: import("zod").ZodObject<{ | ||
date: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodDate]>; | ||
noJournal: import("zod").ZodString; | ||
noTransaction: import("zod").ZodString; | ||
type: import("zod").ZodString; | ||
total: import("zod").ZodNumber; | ||
accounts: import("zod").ZodArray<import("zod").ZodObject<{ | ||
accountId: import("zod").ZodString; | ||
amount: import("zod").ZodNumber; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
accountId?: string; | ||
amount?: number; | ||
export declare const transactionSchema: import("@deboxsoft/zod/lib").ZodObject<{ | ||
date: import("@deboxsoft/zod/lib").ZodUnion<[import("@deboxsoft/zod/lib").ZodString, import("@deboxsoft/zod/lib").ZodDate]>; | ||
noJournal: import("@deboxsoft/zod/lib").ZodString; | ||
noTransaction: import("@deboxsoft/zod/lib").ZodString; | ||
type: import("@deboxsoft/zod/lib").ZodString; | ||
total: import("@deboxsoft/zod/lib").ZodNumber; | ||
accounts: import("@deboxsoft/zod/lib").ZodArray<import("@deboxsoft/zod/lib").ZodObject<{ | ||
accountId: import("@deboxsoft/zod/lib").ZodString; | ||
amount: import("@deboxsoft/zod/lib").ZodNumber; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
accountId: string; | ||
amount: number; | ||
}, { | ||
accountId?: string; | ||
amount?: number; | ||
accountId: string; | ||
amount: number; | ||
}>>; | ||
}, "strip", import("zod").ZodTypeAny, { | ||
date?: string | Date; | ||
type?: string; | ||
noJournal?: string; | ||
noTransaction?: string; | ||
total?: number; | ||
accounts?: { | ||
accountId?: string; | ||
amount?: number; | ||
}, "strip", import("@deboxsoft/zod/lib").ZodTypeAny, { | ||
date: string | Date; | ||
type: string; | ||
noJournal: string; | ||
noTransaction: string; | ||
total: number; | ||
accounts: { | ||
accountId: string; | ||
amount: number; | ||
}[]; | ||
}, { | ||
date?: string | Date; | ||
type?: string; | ||
noJournal?: string; | ||
noTransaction?: string; | ||
total?: number; | ||
accounts?: { | ||
accountId?: string; | ||
amount?: number; | ||
date: string | Date; | ||
type: string; | ||
noJournal: string; | ||
noTransaction: string; | ||
total: number; | ||
accounts: { | ||
accountId: string; | ||
amount: number; | ||
}[]; | ||
}>; |
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
33722
3
860
2
+ Added@deboxsoft/zod@^3.0.0-4
+ Added@deboxsoft/zod@3.17.4(transitive)