22 lines
843 B
TypeScript
22 lines
843 B
TypeScript
import { BackendRuntimeContext } from '../context/BackendRuntimeContext';
|
|
import { EntityDict } from '../oak-app-domain';
|
|
export type AspectDict<ED extends EntityDict> = {
|
|
getWithdrawCreateData: (params: {
|
|
accountId: string;
|
|
price: number;
|
|
withdrawAccountId?: string;
|
|
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
|
|
getMpShipState: (params: {
|
|
shipId: string;
|
|
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['ship']['Schema']['iState']>;
|
|
getExpressPrintInfo: (params: {
|
|
shipId: string;
|
|
}, context: BackendRuntimeContext<ED>) => Promise<{
|
|
type: "html";
|
|
data: string;
|
|
}>;
|
|
shipConfirmSuccess: (params: {
|
|
shipId: string;
|
|
}, context: BackendRuntimeContext<ED>) => Promise<Boolean>;
|
|
};
|