1 | import { SequelizeAdapter } from './adapter';
|
2 | import type { SequelizeAdapterParams } from './declarations';
|
3 | import type { Id, Paginated, Params, ServiceMethods } from '@feathersjs/feathers';
|
4 | import type { PaginationOptions } from '@feathersjs/adapter-commons';
|
5 | import type { PaginatedOrArray } from './internal.types';
|
6 | export * from './declarations';
|
7 | export * from './adapter';
|
8 | export * from './hooks';
|
9 | export { ERROR, errorHandler } from './utils';
|
10 | export declare class SequelizeService<Result = any, Data = Partial<Result>, ServiceParams extends Params<any> = SequelizeAdapterParams, PatchData = Partial<Data>> extends SequelizeAdapter<Result, Data, ServiceParams, PatchData> implements ServiceMethods<Result | Paginated<Result>, Data, ServiceParams, PatchData> {
|
11 | find<P extends ServiceParams & {
|
12 | paginate?: PaginationOptions | false;
|
13 | }>(params?: P): Promise<PaginatedOrArray<Result, P>>;
|
14 | get(id: Id, params?: ServiceParams): Promise<Result>;
|
15 | create(data: Data, params?: ServiceParams): Promise<Result>;
|
16 | create(data: Data[], params?: ServiceParams): Promise<Result[]>;
|
17 | create(data: Data | Data[], params?: ServiceParams): Promise<Result | Result[]>;
|
18 | update(id: Id, data: Data, params?: ServiceParams): Promise<Result>;
|
19 | patch(id: Id, data: PatchData, params?: ServiceParams): Promise<Result>;
|
20 | patch(id: null, data: PatchData, params?: ServiceParams): Promise<Result[]>;
|
21 | remove(id: Id, params?: ServiceParams): Promise<Result>;
|
22 | remove(id: null, params?: ServiceParams): Promise<Result[]>;
|
23 | }
|