import * as IShared from '../../../shared/interface'; import { PromotionAssoc, Promotion, Location } from '../../../shared/entities/stock'; export type Entity = PromotionAssoc; export declare const Route = "promotion_assoc"; export declare const UpperName = "PromotionAssoc"; export declare const LowerName: string; interface IFindDetailedResponse extends Entity { location: Location | null; promotion: Promotion; } export type IFindByIdResponse = Omit; export type IFindByOwnerIdResponse = Omit; export type IFindRequest = Record; export type IFindResponse = Omit; export interface IFindPaginatedRequest extends IFindRequest, IShared.IPaginationRequest { } export type IFindWithPaginationResponse = IShared.IPaginationResponse>; export interface ICreateRequest { client_id: string; location_id: string; product_id: string; promotion_id: string; } export interface IUpdateRequest { client_id?: string; location_id?: string; product_id?: string; promotion_id?: string; } export interface IRepository { findById(selector: IShared.IFindByIdRequest): Promise; findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise; find(selector: IFindRequest): Promise; findPaginated(selector: IFindPaginatedRequest): Promise; create(data: ICreateRequest): Promise; update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise; deleteOne(selector: IShared.IFindByIdRequest): Promise; } export type IController = IShared.IEntityWithUserToken; export {};