feat(react/settings): port etapi tokens

This commit is contained in:
Elian Doran
2025-08-15 12:00:11 +03:00
parent 68086ec3f1
commit c9dcbef014
7 changed files with 165 additions and 171 deletions

View File

@@ -1,5 +1,13 @@
import { AttributeRow, NoteType } from "./rows.js";
type Response = {
success: true,
message: string;
} | {
success: false;
message: string;
}
export interface AppInfo {
appVersion: string;
dbVersion: number;
@@ -78,10 +86,14 @@ export interface AnonymizedDbResponse {
fileName: string;
}
export type SyncTestResponse = {
success: true;
message: string;
} | {
success: false;
error: string;
};
export type SyncTestResponse = Response;
export interface EtapiToken {
name: string;
utcDateCreated: string;
etapiTokenId?: string;
}
export interface PostTokensResponse {
authToken: string;
}