migrate services.js to ts

This commit is contained in:
MaysWind
2025-01-05 17:00:25 +08:00
parent 41d34af4c7
commit 454e97c9f1
37 changed files with 1294 additions and 764 deletions
+9
View File
@@ -1,5 +1,14 @@
import type { UserBasicInfo } from './user.ts';
export const TOKEN_CLI_USER_AGENT: string = 'ezbookkeeping Cli';
export interface TokenRefreshResponse {
readonly newToken?: string;
readonly oldTokenId?: string;
readonly user: UserBasicInfo;
readonly notificationContent?: string;
}
export interface TokenInfoResponse {
readonly tokenId: string;
readonly tokenType: number;