import * as S from 'ufc-schema'; export interface UtkPrintersParmas { keyword?: string; materialId?: S.Id; utkPrinterModelId?: S.Id; totalCnt?: number; pageNum?: number; pageSize?: number; withAttr?: boolean; withReservation?: boolean; withReservationCreator?: boolean; withScheduledWorkOrders?: boolean; withPrintingWorkOrder?: boolean; withLastPrintingWorkOrder?: boolean; } export interface ReservationParams { printerId: S.Id[]; endDateTime: string; startDateTime: string; withCreatorInfo: boolean; withOrders: boolean; withOrderIds: boolean; withUtkPrinter: boolean; withWorkOrders: boolean; withWorkOrderIds: boolean; } export interface OperationLogParams { utkPrinterId: S.Id; pageNum: number; pageSize: number; endDate?: string; userIds?: S.Id[]; startDate?: string; descSort?: 'ASC' | 'DESC'; levels?: 'DANGER' | 'IMPORTANT' | 'ORDINARY'; } /** * 打印机设备批量上传配置文件,解析接口 */ export declare const DeviceExcelConfigPathAction = "/device/utk_printer/batch_config"; /** 获取到设备的统计信息 */ export declare function getPrinterStatistics(): Promise; /** 针对电视展示的场景返回打印设备筛选后的列表 */ export declare function getUtkPrintersForTv(): Promise; export declare function getUtkPrinters(params?: UtkPrintersParmas): Promise; /** 获取打印设备列表 */ export declare function getPartialUtkPrinters(utkPrintersParams?: UtkPrintersParmas): Promise; /** 获取某个打印设备详情 */ export declare function getUtkPrinterById(deviceId: S.Id): Promise; /** 获取某个打印设备详情(设备编码) */ export declare function getUtkPrinterByCode(code: string): Promise; /** 更新设备配置 */ export declare function updatePrinterConfig({ utkPrinterId, name, bpId, materialId, variableSpot, optimal, }: { utkPrinterId: S.Id; name?: string; bpId?: S.Id; materialId?: S.Id; variableSpot?: boolean; optimal?: boolean; }): Promise; /** 获取某个打印设备的属性 */ export declare function getUtkPrinterAttrById(deviceId: S.Id, keys?: S.UtkPrinterAttrKeyType[]): Promise; /** 批量获取设备属性 */ export declare function getUtkPrinterAttrByIds(utkPrinterIds: S.Id[]): Promise>; /** 批量获取设备属性 */ export declare function getUtkPrinterParaByIds(utkPrinterIds: S.Id[]): Promise>; /** 编辑某个打印设备的属性 */ export declare function updatePrinterAttr(utkPrinterId: S.Id, attr: S.UtkPrinterAttr): Promise; /** 禁用或启用某个设备 */ export declare function togglePrinter(utkPrinterId: S.Id, disable: boolean): Promise; /** 打印设备相关的接口调用 */ export declare function getUtkPrinterModel(materialId?: S.Id, name?: string): Promise; /** 获取设备的统计值 */ export declare function getTelemetryValues(utkPrinterId: S.Id, keys?: readonly S.UTK_PRINTER_TELEMETRY_FIELD[], { limit, agg, startTs, endTs, interval, sortType, }?: { limit?: number; agg?: S.AGG; startTs?: number; endTs?: number; interval?: number; sortType?: 'ASC' | 'DESC'; }): Promise; /** 获取到某个设备的最新数值 */ export declare function getTelemetryLatestValues(utkPrinterId: S.Id, keys?: readonly S.UTK_PRINTER_TELEMETRY_FIELD[]): Promise; /** 解析配置文件 */ export declare function resovleConfig({ fileId, }: { fileId: string; }): Promise<{ data?: S.UtkPrinterConfigFileParse[]; err?: { code: string; reason: string; }; }>; /** 批量上传配置 */ export declare function batchConfig({ excelConfigFileId, }: { excelConfigFileId: string; }): Promise; /** 批量上传配置 */ export declare function batchConfigByMd5({ md5, }: { md5: string; }): Promise; /** 批量上传配置 */ export declare function getPathFileUrl(): Promise; /** * 获取批量上传文件模板的id */ export declare function getPathFileId(): Promise; /** 获取设备分组 */ export declare function getUtkPrinterGroup(searchText?: string): Promise; /** 修改设备分组名称 */ export declare function editGroupName(groupId: S.Id, name: string): Promise; /** 新增设备分组 */ export declare function addUtkPrintGroup(name: string): Promise; /** 删除设备分组 */ export declare function deletePrintGroup(groupId: S.Id): Promise; /** 更新设备分组 */ export declare function changePrinterGroup(groupId: S.Id, utkPrintStrIds: S.Id[]): Promise; /** 更新设备分组授权 */ export declare function changeAuthority(groupId: S.Id, userIds: S.Id[]): Promise; /** 设备操作日志 */ export declare function getOperationLog(operationLogParams: OperationLogParams): Promise<{ data: S.UtkPrinterOperationLog[]; meta: S.Meta; }>; /** 获取所有打印设备列表 */ export declare function getAllUtkPrinters(): Promise; /** 新增打印设备 */ export declare function addDeviceUtkPrinter(deviceCode: string, iotGatewayId: string): Promise; /** 获取打印设备的历史打印单 */ export declare function getUtkPrinterHistoryWorkOrders({ id, pageNum, pageSize, }: { id: S.Id; pageNum?: number; pageSize?: number; }): Promise; /** 设备预约 */ export declare function reserveUtkPrinterById(utkPrinterId: S.Id, options: { orderCodes?: string[]; workOrderCodes?: string[]; type: 'PRODUCTION' | 'MAINTENANCE'; ranges: { end: string; start: string; }[]; remark?: Record; }): Promise; /** 更新设备预约任务 */ export declare function updateUtkPrinterReservation(utkPrinterId: S.Id, reservationId: S.Id, options: { type: 'PRODUCTION' | 'MAINTENANCE'; ranges: { end: string; start: string; }[]; remark?: Record; }): Promise; /** 删除设备预约任务 */ export declare function removeUtkPrinterReservation(utkPrinterId: S.Id, reservationId: S.Id): Promise; /** 通过 utkPrinterId 获取预约信息 */ export declare function getReservationsByUtkPrinterId(utkPrinterId: S.Id, options?: Partial): Promise; /** 批量获取设备预约任务 */ export declare function getReservationsMap(options: Partial): Promise>>; /** 预约任务绑定订单 */ export declare function reservationBindInquiryOrder(reservationId: S.Id, orderCode: string): Promise; /** 解除预约任务绑定订单 */ export declare function reservationUnbindInquiryOrder(reservationId: S.Id, orderCode: string): Promise;