41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
import { IPmcData } from "../models/eft/common/IPmcData";
|
|
import { IItemEventRouterResponse } from "../models/eft/itemEvent/IItemEventRouterResponse";
|
|
import { IAkiProfile } from "../models/eft/profile/IAkiProfile";
|
|
export declare class Router {
|
|
private handledRoutes;
|
|
getTopLevelRoute(): string;
|
|
protected getHandledRoutes(): HandledRoute[];
|
|
private getInternalHandledRoutes;
|
|
canHandle(url: string, partialMatch?: boolean): boolean;
|
|
}
|
|
export declare class StaticRouter extends Router {
|
|
private routes;
|
|
constructor(routes: RouteAction[]);
|
|
handleStatic(url: string, info: any, sessionID: string, output: string): any;
|
|
getHandledRoutes(): HandledRoute[];
|
|
}
|
|
export declare class DynamicRouter extends Router {
|
|
private routes;
|
|
constructor(routes: RouteAction[]);
|
|
handleDynamic(url: string, info: any, sessionID: string, output: string): any;
|
|
getHandledRoutes(): HandledRoute[];
|
|
}
|
|
export declare class ItemEventRouterDefinition extends Router {
|
|
constructor();
|
|
handleItemEvent(url: string, pmcData: IPmcData, body: any, sessionID: string): IItemEventRouterResponse;
|
|
}
|
|
export declare class SaveLoadRouter extends Router {
|
|
constructor();
|
|
handleLoad(profile: IAkiProfile): IAkiProfile;
|
|
}
|
|
export declare class HandledRoute {
|
|
route: string;
|
|
dynamic: boolean;
|
|
constructor(route: string, dynamic: boolean);
|
|
}
|
|
export declare class RouteAction {
|
|
url: string;
|
|
action: (url: string, info: any, sessionID: string, output: string) => any;
|
|
constructor(url: string, action: (url: string, info: any, sessionID: string, output: string) => any);
|
|
}
|