mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 08:34:04 +08:00
types
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
import { Json, Timestamp, Generated } from '@docmost/db/types/db';
|
||||||
|
|
||||||
|
export interface ConfluenceApiImports {
|
||||||
|
id: Generated<string>;
|
||||||
|
fileTaskId: string;
|
||||||
|
siteUrl: string;
|
||||||
|
authType: string;
|
||||||
|
authEmail: string | null;
|
||||||
|
authToken: string | null;
|
||||||
|
authUsername: string | null;
|
||||||
|
totalSpaces: Generated<number>;
|
||||||
|
importedSpaces: Generated<number>;
|
||||||
|
totalPages: Generated<number>;
|
||||||
|
importedPages: Generated<number>;
|
||||||
|
totalUsers: Generated<number>;
|
||||||
|
importedUsers: Generated<number>;
|
||||||
|
idMapping: Generated<Json>;
|
||||||
|
warnings: Generated<Json>;
|
||||||
|
currentPhase: string | null;
|
||||||
|
cancelled: Generated<boolean>;
|
||||||
|
workspaceId: string;
|
||||||
|
creatorId: string | null;
|
||||||
|
createdAt: Generated<Timestamp>;
|
||||||
|
updatedAt: Generated<Timestamp>;
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
import { DB } from '@docmost/db/types/db';
|
import { DB } from '@docmost/db/types/db';
|
||||||
import { PageEmbeddings } from '@docmost/db/types/embeddings.types';
|
import { PageEmbeddings } from '@docmost/db/types/embeddings.types';
|
||||||
|
import { ConfluenceApiImports } from './custom.types';
|
||||||
|
|
||||||
export interface DbInterface extends DB {
|
export interface DbInterface extends DB {
|
||||||
pageEmbeddings: PageEmbeddings;
|
pageEmbeddings: PageEmbeddings;
|
||||||
|
confluenceApiImports: ConfluenceApiImports;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: e703b8bf47...7d1b155d5f
@@ -11,6 +11,7 @@ export enum FileImportSource {
|
|||||||
Generic = 'generic',
|
Generic = 'generic',
|
||||||
Notion = 'notion',
|
Notion = 'notion',
|
||||||
Confluence = 'confluence',
|
Confluence = 'confluence',
|
||||||
|
ConfluenceApi = 'confluence-api'
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum FileTaskStatus {
|
export enum FileTaskStatus {
|
||||||
|
|||||||
Reference in New Issue
Block a user