import * as IShared from '../../../shared/interface'; import { UnitOfMeasure } from '../../../shared/entities/stock'; export type Entity = UnitOfMeasure; export declare const UpperName = "UnitOfMeasure"; export declare const LowerName: string; export declare const Route = "unit_of_measure"; type IFindDetailedResponse = Entity; 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 { name: string; notation: string; type: string; external_id?: string | null; default_quantity?: boolean; integer_only?: boolean; divisible?: boolean; } export interface IUpdateRequest { name?: string; notation?: string; type?: string; external_id?: string | null; default_quantity?: boolean; integer_only?: boolean; divisible?: boolean; } export interface IRepository { findById(selector: IShared.IFindByIdRequest): Promise; findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise; findMinified(params?: IShared.IFindMinifiedRequest): 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 {};