- api.php에서 param path 강제 - api.php에서 GET param 허용 - SammoAPI 호출자를 axios에서 fetch 기반(ky)로 변경 - SammoAPI에서 단순 POST대신 REST에 따라 지정 가능하도록 재구성 - SammoAPI에서 NumVar, StrVar를 PathParam으로 변경하도록 변경 - API CallType들을 def/API로 분리 시작 - 일부 API를 시험삼아 변경(login)
40 lines
675 B
TypeScript
40 lines
675 B
TypeScript
|
|
|
|
export type LoginResponse = {
|
|
result: true,
|
|
nextToken: [number, string] | undefined,
|
|
}
|
|
|
|
export type LoginFailed = {
|
|
result: false,
|
|
reqOTP: boolean,
|
|
reason: string,
|
|
}
|
|
|
|
export type LoginResponseWithKakao = LoginResponse | LoginFailed;
|
|
|
|
export type OTPResponse = {
|
|
result: true,
|
|
validUntil: string,
|
|
} | {
|
|
result: false,
|
|
reset: boolean,
|
|
reason: string,
|
|
}
|
|
|
|
|
|
export type AutoLoginNonceResponse = {
|
|
result: true,
|
|
loginNonce: string,
|
|
};
|
|
|
|
export type AutoLoginResponse = {
|
|
result: true,
|
|
nextToken: [number, string] | undefined,
|
|
}
|
|
|
|
export type AutoLoginFailed = {
|
|
result: false,
|
|
silent: boolean,
|
|
reason: string,
|
|
} |