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 0.2.0-5 to 0.2.0-6

5

index.cjs.js

@@ -116,6 +116,7 @@ 'use strict';

date: z.union([z.date(), z.string()]),
accountId: z.string().nonempty(),
accountOppositeId: z.string().nonempty(),
accountDebitId: z.string().nonempty(),
accountCreditId: z.string().nonempty(),
transactionId: z.string().nonempty(),
isCredit: z.boolean().optional(),
description: z.string().nullable().optional(),
amount: z.number()

@@ -122,0 +123,0 @@ });

@@ -112,6 +112,7 @@ import { object, string, boolean, number, enum as enum$1, union, date, array } from '@deboxsoft/zod';

date: union([date(), string()]),
accountId: string().nonempty(),
accountOppositeId: string().nonempty(),
accountDebitId: string().nonempty(),
accountCreditId: string().nonempty(),
transactionId: string().nonempty(),
isCredit: boolean().optional(),
description: string().nullable().optional(),
amount: number()

@@ -118,0 +119,0 @@ });

4

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

@@ -41,3 +41,3 @@ "repository": {

"dependencies": {
"@deboxsoft/module-core": "^1.7.0-0"
"@deboxsoft/module-core": "^1.8.0-0"
},

@@ -44,0 +44,0 @@ "devDependencies": {

@@ -14,50 +14,56 @@ import type { CollectionParams } from "@deboxsoft/module-core";

date: z.ZodUnion<[z.ZodDate, z.ZodString]>;
accountId: z.ZodString;
accountOppositeId: z.ZodString;
accountDebitId: z.ZodString;
accountCreditId: z.ZodString;
transactionId: z.ZodString;
isCredit: z.ZodOptional<z.ZodBoolean>;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
amount: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
isCredit?: boolean | undefined;
date: string | Date;
id: string;
accountId: string;
amount: number;
no: string;
accountOppositeId: string;
accountDebitId: string;
accountCreditId: string;
transactionId: string;
}, {
description?: string | null | undefined;
isCredit?: boolean | undefined;
date: string | Date;
id: string;
accountId: string;
amount: number;
no: string;
accountOppositeId: string;
accountDebitId: string;
accountCreditId: string;
transactionId: string;
}>;
export declare const GeneralLedgerInputSchema: z.ZodObject<{
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
date: z.ZodUnion<[z.ZodDate, z.ZodString]>;
accountId: z.ZodString;
amount: z.ZodNumber;
no: z.ZodString;
accountOppositeId: z.ZodString;
accountDebitId: z.ZodString;
accountCreditId: z.ZodString;
transactionId: z.ZodString;
isCredit: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
description?: string | null | undefined;
isCredit?: boolean | undefined;
date: string | Date;
accountId: string;
amount: number;
no: string;
accountOppositeId: string;
accountDebitId: string;
accountCreditId: string;
transactionId: string;
}, {
description?: string | null | undefined;
isCredit?: boolean | undefined;
date: string | Date;
accountId: string;
amount: number;
no: string;
accountOppositeId: string;
accountDebitId: string;
accountCreditId: string;
transactionId: string;
}>;
import type { Account, AccountInput, AccountType } from "../schema";
export interface AccountService {
create(input: AccountInput): Promise<Account>;
create(input: AccountInput): Promise<Account | Account[]>;
update(id: string, input: AccountInput): Promise<boolean>;

@@ -5,0 +5,0 @@ remove(id: string): Promise<boolean>;

import type { PageCursorResult } from "@deboxsoft/module-core";
import type { BankReconciliation, BankStatement, BankStatementInput, BankStatementParams, BankReconciliationHistoryParams, BankReconciliationInput, ImportBankReconciliationResult, BankReconciliationHistory } from "../schema";
export interface BankReconciliationService {
create(input: BankReconciliationInput): Promise<BankReconciliation>;
create(input: BankReconciliationInput): Promise<BankReconciliation | BankReconciliation[]>;
update(id: string, input: BankReconciliationInput): Promise<boolean>;

@@ -6,0 +6,0 @@ import(bankId: string, inputs: BankStatementInput[]): Promise<ImportBankReconciliationResult>;

import type { PageCursorResult } from "@deboxsoft/module-core";
import type { Inventory, InventoryInput, InventoryParams } from "../schema";
export interface InventoryService {
create(input: InventoryInput): Promise<Inventory>;
create(input: InventoryInput): Promise<Inventory | Inventory[]>;
update(id: string, input: InventoryInput): Promise<boolean>;

@@ -6,0 +6,0 @@ remove(id: string): Promise<boolean>;

import type { PageCursorResult } from "@deboxsoft/module-core";
import type { Transaction, TransactionInput, TransactionType, TransactionParams } from "../schema";
export interface TransactionService {
create(input: TransactionInput): Promise<Transaction>;
create(input: TransactionInput): Promise<Transaction | Transaction[]>;
update(id: string, input: Partial<TransactionInput>): Promise<boolean>;

@@ -6,0 +6,0 @@ remove(id: any): Promise<boolean>;

Sorry, the diff of this file is not supported yet

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