import * as IShared from '../../../shared/interface'; import { Printer } from '../../../shared/entities/print'; export type Entity = Printer; export declare const Route = "printer"; export declare const UpperName = "Printer"; export declare const LowerName: string; export type IFindDetailedResponse = Entity & { npc: Pick; }; export type IPrinterData = Omit; export type IUpdateRequest = Omit; export interface IGetOrSetPrintersResponse { printers_a4: IPrinterData[]; printers_pos: IPrinterData[]; } export type IPrinterA4 = Pick; export type IPrinterPos = Pick; export interface IGetOrSetPrintersRequest { computer_id: string; printers_a4: IPrinterA4[]; printers_pos: IPrinterPos[]; } export interface IUpdateManyRequest { id: string; name: string; enable: boolean; paper: boolean; receipt: boolean; sticker: boolean; } export interface IRepository { find: () => Promise; findByOwnerId: (selector: IShared.IFindByOwnerIdRequest) => Promise; update: (params: IShared.IFindByIdRequest, data: IUpdateRequest) => Promise; updateMany: (data: IUpdateManyRequest[]) => Promise; getOrSetPrinters: (data: IGetOrSetPrintersRequest) => Promise; } export type IController = IShared.IEntityWithUserToken;