import { EntityClassType, EntityRelationType, IdType, TDBAction } from '../../common/types'; import { Count, DataObject, juggler, Where } from '@loopback/repository'; import { AbstractTzRepository } from './base.repository'; import { TBaseTzEntity } from '../models'; export declare abstract class TzCrudRepository extends AbstractTzRepository { constructor(entityClass: EntityClassType, dataSource: juggler.DataSource, scope?: string); existsWith(where?: Where, options?: TDBAction): Promise; create(data: DataObject, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; createAll(datum: DataObject[], options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; createWithReturn(data: DataObject, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; updateById(id: IdType, data: DataObject, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; updateWithReturn(id: IdType, data: DataObject, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; updateAll(data: DataObject, where?: Where, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; upsertWith(data: DataObject, where: Where, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; replaceById(id: IdType, data: DataObject, options?: TDBAction & { authorId?: IdType; ignoreModified?: boolean; }): Promise; private _softDelete; softDelete(where: Where, options?: TDBAction & { databaseSchema?: string; connectorType?: string; softDeleteField?: string; authorId?: IdType; ignoreModified?: boolean; }): Promise; mixTimestamp(entity: DataObject, options?: TDBAction & { newInstance?: boolean; ignoreModified?: boolean; }): DataObject; mixUserAudit(entity: DataObject, options?: { newInstance: boolean; authorId?: IdType; } | undefined): DataObject; _deleteWithReturn(where: Where, options?: TDBAction): Promise<{ count: Count; data: (E & R)[]; }>; deleteWithReturn(where: Where, options?: TDBAction): Promise<{ count: Count; data: (E & R)[]; }>; batchUpdate(opts: { data: DataObject[]; keys: (keyof E)[]; setKeys: (keyof E | { sourceKey: keyof E; targetKey: keyof E; })[]; whereKeys: (keyof E | { sourceKey: keyof E; targetKey: keyof E; })[]; whereRaws?: string[]; options?: TDBAction; }): Promise; } //# sourceMappingURL=tz-crud.repository.d.ts.map