@deboxsoft/accounting-api
Advanced tools
Comparing version 0.1.0-alpha.5 to 0.1.0-alpha.6
{ | ||
"name": "@deboxsoft/accounting-api", | ||
"version": "0.1.0-alpha.5", | ||
"version": "0.1.0-alpha.6", | ||
"license": "SEE LICENSE IN LICENSE.md", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -1,10 +0,5 @@ | ||
import type { Account, CreateAccountInput, CreateResult, UpdateAccountInput, UpdateResult, RemoveResult } from "../types"; | ||
import type { Account, CreateAccountInput, UpdateAccountInput } from "../types"; | ||
import type { Repository } from "./Repository"; | ||
export interface AccountRepo extends Repository<Account, CreateAccountInput, UpdateAccountInput> { | ||
create(input: any): Promise<CreateResult>; | ||
update(id: any, input: any): Promise<UpdateResult>; | ||
removeById(id: any): Promise<RemoveResult>; | ||
findAll(): Promise<Account[]>; | ||
findById(id: any): Promise<Account | undefined>; | ||
getChildAccount(id: string): Promise<Account[]>; | ||
} |
@@ -1,7 +0,7 @@ | ||
export interface Repository<Data, Input, UpdateInput = Input, ID = string> { | ||
create(input: Input): Promise<any>; | ||
update(id: ID, input: UpdateInput): Promise<any>; | ||
export interface Repository<Data, Input, UpdateInput = Partial<Input>, ID = string> { | ||
create(input: Input): Promise<Data>; | ||
update(id: ID, input: UpdateInput): Promise<Data>; | ||
findById(id: ID): Promise<Data | undefined>; | ||
findAll(): Promise<Data[]>; | ||
removeById(id: ID): Promise<any>; | ||
find(filter?: any): Promise<Data[]>; | ||
remove(id: ID): Promise<boolean>; | ||
} |
import type { Repository } from "./Repository"; | ||
import type { CreateResult, RemoveResult, Transaction, TransactionInput, UpdateResult } from "../types"; | ||
import type { Transaction, TransactionInput } from "../types"; | ||
export interface TransactionRepo extends Repository<Transaction, TransactionInput> { | ||
create(input: any): Promise<CreateResult>; | ||
update(id: any, input: any): Promise<UpdateResult>; | ||
removeById(id: any): Promise<RemoveResult>; | ||
} |
@@ -71,8 +71,8 @@ export declare type Maybe<T> = T | undefined; | ||
export declare type Mutation = { | ||
createAccount?: Maybe<CreateResult>; | ||
createTransaction?: Maybe<CreateResult>; | ||
removeAccount?: Maybe<RemoveResult>; | ||
removeTransaction?: Maybe<RemoveResult>; | ||
updateAccount?: Maybe<UpdateResult>; | ||
updateTransaction?: Maybe<UpdateResult>; | ||
createAccount?: Maybe<Account>; | ||
createTransaction?: Maybe<Transaction>; | ||
removeAccount?: Maybe<Scalars["Boolean"]>; | ||
removeTransaction?: Maybe<Scalars["Boolean"]>; | ||
updateAccount?: Maybe<Account>; | ||
updateTransaction?: Maybe<Transaction>; | ||
}; | ||
@@ -118,5 +118,5 @@ export declare type MutationCreateAccountArgs = { | ||
parentId?: Maybe<Scalars["ID"]>; | ||
level: Scalars["Int"]; | ||
active: Scalars["Boolean"]; | ||
isParent: Scalars["Boolean"]; | ||
level?: Maybe<Scalars["Int"]>; | ||
active?: Maybe<Scalars["Boolean"]>; | ||
isParent?: Maybe<Scalars["Boolean"]>; | ||
fiscal?: Maybe<Scalars["Boolean"]>; | ||
@@ -123,0 +123,0 @@ memo?: Maybe<Scalars["String"]>; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
17104
417