import { FindManyOptions } from 'typeorm'; import { WeightLimitRule } from '../entities/weight-limit-rule.entity'; export interface IWeightLimitRulesRepository { findById(id: string): Promise; findActiveByContainerTypeId( containerTypeId: string, tradeDirection: string, ): Promise; findByPattern( containerTypeId: string, tradeDirection: string, excludeId?: string, ): Promise; findAll(options?: FindManyOptions): Promise; findAndCount(options?: FindManyOptions): Promise<[WeightLimitRule[], number]>; create(data: Partial): Promise; update(id: string, data: Partial): Promise; softDelete(id: string): Promise; } export const WEIGHT_LIMIT_RULES_REPOSITORY = Symbol('WEIGHT_LIMIT_RULES_REPOSITORY');