22 lines
809 B
TypeScript
22 lines
809 B
TypeScript
import { GET } from "../defs.js";
|
|
import type { structure } from "../../apiStructure/sammoRootAPI.js";
|
|
import type { ExtractError, ExtractQuery, ExtractResponse } from "../../apiStructure/defs.js";
|
|
import { declProcDecorators } from "../ProcDecorator/base.js";
|
|
import { ReqLogin } from "../ProcDecorator/ReqLogin.js";
|
|
import { StartSession } from "../ProcDecorator/StartSession.js";
|
|
|
|
type BaseAPI = typeof structure.Login.ReqNonce;
|
|
type RType = ExtractResponse<BaseAPI>;
|
|
type EType = ExtractError<BaseAPI>;
|
|
type QType = ExtractQuery<BaseAPI>;
|
|
const argValidator = undefined;
|
|
|
|
export const ReqNonce = GET<RType, EType, QType>
|
|
(argValidator)
|
|
(declProcDecorators([
|
|
StartSession,
|
|
ReqLogin,
|
|
] as const))
|
|
((query, ctx) => {
|
|
throw new Error("Method not implemented.");
|
|
}); |