@deboxsoft/module-server
Advanced tools
Comparing version 1.7.0-5 to 1.8.0-1
{ | ||
"name": "@deboxsoft/module-server", | ||
"version": "1.7.0-5", | ||
"version": "1.8.0-1", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -39,3 +39,3 @@ "maintainers": [ | ||
"dependencies": { | ||
"@deboxsoft/module-core": "^1.7.0-5", | ||
"@deboxsoft/module-core": "^1.8.0-1", | ||
"nanoid": "^3.1.20", | ||
@@ -42,0 +42,0 @@ "nconf": "0.11.0", |
@@ -1,9 +0,8 @@ | ||
import type { CollectionParams, PageCursorResult } from "@deboxsoft/module-core"; | ||
import type { CollectionParams } from "@deboxsoft/module-core"; | ||
export interface Repository<Data, Input, UpdateInput = Partial<Input>, Params extends CollectionParams = {}, ID = string> { | ||
create(input: Input, db?: any): Promise<Data>; | ||
update(id: ID, input: UpdateInput, db?: any): Promise<boolean>; | ||
create(input: Input, db?: any): Promise<any>; | ||
update(id: ID, input: UpdateInput, db?: any): Promise<any>; | ||
findById(id: ID, db?: any): Promise<Data | undefined>; | ||
find(params?: Params, db?: any): Promise<Data[]>; | ||
findPageCursor<DataResult = Data>(params?: Params, db?: any): Promise<PageCursorResult<DataResult>>; | ||
remove(id: ID, db?: any): Promise<boolean>; | ||
find<DataResult = any, P = Params>(params?: P, db?: any): Promise<DataResult>; | ||
remove(id: ID, db?: any): Promise<any>; | ||
} |
Sorry, the diff of this file is not supported yet
5896
122
+ Added@deboxsoft/module-core@1.8.0-17(transitive)
- Removed@deboxsoft/module-core@1.7.0-5(transitive)