import { BaseModel } from '@anthor/entities-types'; export interface FindByIdResponse> { findById: T; } export interface FindOneResponse> { findOne: T; } export interface FindByIdsResponse> { findByIds: T[]; } export interface FindManyResponse> { findMany: T[]; } export interface PaginationInfoResponse { currentPage: number; perPage: number; pageCount: number; itemCount: number; hasNextPage: boolean; hasPreviousPage: boolean; } export interface PaginationFragmentResponse> { count: number; items: T[]; pageInfo: PaginationInfoResponse; } export interface PaginationResponse> { pagination: PaginationFragmentResponse; } export interface CountResponse> { count: number; } export interface RecordIdAndRecordResponse> { recordId: string; record: T; } export interface CreateManyResponse> { recordIds: string[]; createCount: number; records: T[]; } export interface NumAffectedResponse { numAffected: number; } export interface UpdateManyResponse { updateMany: NumAffectedResponse; } export interface RemoveManyResponse { removeMany: NumAffectedResponse; } export interface DistinctResponse { distinct: string[]; }