mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
- feat: remove unnecessary migrations, controllers and models files.
- feat: metable store - feat: metable store with settings store. - feat: settings middleware to auto-save and load. - feat: DI db manager to master container. - feat: write some logs to sale invoices.
This commit is contained in:
28
server/src/interfaces/Metable.ts
Normal file
28
server/src/interfaces/Metable.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
export interface IMetadata {
|
||||
key: string,
|
||||
value: string|boolean|number,
|
||||
group: string,
|
||||
_markAsDeleted?: boolean,
|
||||
_markAsInserted?: boolean,
|
||||
_markAsUpdated?: boolean,
|
||||
};
|
||||
|
||||
export interface IMetaQuery {
|
||||
key: string,
|
||||
group: string,
|
||||
};
|
||||
|
||||
export interface IMetableStore {
|
||||
find(query: string|IMetaQuery): IMetadata;
|
||||
all(): IMetadata[];
|
||||
get(query: string|IMetaQuery, defaultValue: any): string|number|boolean;
|
||||
remove(query: string|IMetaQuery): void;
|
||||
removeAll(): void;
|
||||
toArray(): IMetadata[];
|
||||
};
|
||||
|
||||
export interface IMetableStoreStorage {
|
||||
save(): Promise<void>;
|
||||
}
|
||||
11
server/src/interfaces/Options.ts
Normal file
11
server/src/interfaces/Options.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
export interface IOptionDTO {
|
||||
key: string,
|
||||
value: string|number,
|
||||
group: string,
|
||||
};
|
||||
|
||||
export interface IOptionsDTO {
|
||||
options: IOptionDTO[],
|
||||
};
|
||||
@@ -6,4 +6,8 @@ export interface ISystemUser {
|
||||
|
||||
export interface ISystemUserDTO {
|
||||
|
||||
}
|
||||
|
||||
export interface IInviteUserInput {
|
||||
|
||||
}
|
||||
@@ -34,7 +34,18 @@ import {
|
||||
import {
|
||||
ISystemUser,
|
||||
ISystemUserDTO,
|
||||
IInviteUserInput,
|
||||
} from './User';
|
||||
import {
|
||||
IMetadata,
|
||||
IMetaQuery,
|
||||
IMetableStore,
|
||||
IMetableStoreStorage,
|
||||
} from './Metable';
|
||||
import {
|
||||
IOptionDTO,
|
||||
IOptionsDTO,
|
||||
} from './Options';
|
||||
|
||||
export {
|
||||
IBillPaymentEntry,
|
||||
@@ -69,4 +80,13 @@ export {
|
||||
IRegisterDTO,
|
||||
ISystemUser,
|
||||
ISystemUserDTO,
|
||||
IInviteUserInput,
|
||||
|
||||
IMetadata,
|
||||
IMetaQuery,
|
||||
IMetableStore,
|
||||
IMetableStoreStorage,
|
||||
|
||||
IOptionDTO,
|
||||
IOptionsDTO,
|
||||
};
|
||||
Reference in New Issue
Block a user