import { EntityDict } from '../oak-app-domain'; import { EntityDict as BaseEntityDict } from 'oak-domain/lib/types/Entity'; import BackendRuntimeContext from '../context/BackendRuntimeContext'; export default interface ShipClazz> { getReceiverInfo(orderIds: string[], applicationId: string, context: Context): Promise<{ openId?: string; appWxId?: string; }>; available(shipServiceId: string, orderIds: string[], context: Context): Promise; eOrder(shipId: string, context: Context): Promise; cancelOrder(shipId: string, context: Context): Promise; syncState(shipId: string, context: Context): Promise<{ state: EntityDict['ship']['OpSchema']['iState']; time?: number; }>; syncPaths(shipId: string, context: Context): Promise; getPrintInfo(shipId: string, context: Context): Promise<{ type: 'html'; data: string; }>; }