mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
add server to monorepo.
This commit is contained in:
50
packages/server/src/interfaces/Branches.ts
Normal file
50
packages/server/src/interfaces/Branches.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import { Knex } from 'knex';
|
||||
|
||||
export interface IBranch {
|
||||
id?: number;
|
||||
}
|
||||
|
||||
export interface ICreateBranchDTO {
|
||||
name: string;
|
||||
code: string;
|
||||
|
||||
primary?: boolean;
|
||||
}
|
||||
export interface IEditBranchDTO {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export interface IBranchCreatePayload {
|
||||
tenantId: number;
|
||||
createBranchDTO: ICreateBranchDTO;
|
||||
trx: Knex.Transaction;
|
||||
}
|
||||
export interface IBranchCreatedPayload {}
|
||||
|
||||
export interface IBranchEditPayload {}
|
||||
export interface IBranchEditedPayload {}
|
||||
|
||||
export interface IBranchDeletePayload {}
|
||||
export interface IBranchDeletedPayload {}
|
||||
|
||||
export interface IBranchesActivatePayload {
|
||||
tenantId: number;
|
||||
trx: Knex.Transaction;
|
||||
}
|
||||
export interface IBranchesActivatedPayload {
|
||||
tenantId: number;
|
||||
primaryBranch: IBranch;
|
||||
trx: Knex.Transaction;
|
||||
}
|
||||
|
||||
export interface IBranchMarkAsPrimaryPayload {
|
||||
tenantId: number;
|
||||
oldBranch: IBranch;
|
||||
trx: Knex.Transaction;
|
||||
}
|
||||
export interface IBranchMarkedAsPrimaryPayload {
|
||||
tenantId: number;
|
||||
oldBranch: IBranch;
|
||||
markedBranch: IBranch;
|
||||
trx: Knex.Transaction;
|
||||
}
|
||||
Reference in New Issue
Block a user