@tolinax/ayoune-interfaces 2026.57.1 → 2026.57.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/IWikiPage.d.ts +6 -21
- package/package.json +1 -1
|
@@ -3,6 +3,8 @@ import { ITxtStats } from "./ITxtStats";
|
|
|
3
3
|
import { ITTS } from "./ITTS";
|
|
4
4
|
import { ISEOAttributes } from "./ISEOAttributes";
|
|
5
5
|
import { IPageBlock } from "./IPageBlock";
|
|
6
|
+
import { IComment } from "./IComment";
|
|
7
|
+
import { IVote } from "./IVote";
|
|
6
8
|
/** Entry in a page's auto-generated table of contents. */
|
|
7
9
|
export interface IWikiPageTocEntry {
|
|
8
10
|
/** Heading level (1 = H1, 2 = H2, ...). */
|
|
@@ -68,29 +70,12 @@ export interface IWikiPage extends IDefaultFields {
|
|
|
68
70
|
name?: string;
|
|
69
71
|
}[];
|
|
70
72
|
keywords?: any[];
|
|
71
|
-
comments
|
|
72
|
-
|
|
73
|
-
comment: string;
|
|
74
|
-
createdAt?: Date;
|
|
75
|
-
comments?: {
|
|
76
|
-
_consumerID?: ObjectId;
|
|
77
|
-
comment: string;
|
|
78
|
-
createdAt?: Date;
|
|
79
|
-
}[];
|
|
80
|
-
}[];
|
|
73
|
+
/** Consumer- und User-authored comments. Flat reply-threading via IComment._parentId. */
|
|
74
|
+
comments?: IComment[];
|
|
81
75
|
views?: number;
|
|
82
76
|
shares?: number;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
usermail: string;
|
|
86
|
-
createdAt?: Date;
|
|
87
|
-
}[];
|
|
88
|
-
downVotes?: {
|
|
89
|
-
comment: string;
|
|
90
|
-
_consumerID: ObjectId;
|
|
91
|
-
usermail: string;
|
|
92
|
-
created?: Date;
|
|
93
|
-
}[];
|
|
77
|
+
/** Consumer up/down votes on the page itself (distinct from votes on individual comments, which live inside IComment.votes). */
|
|
78
|
+
votes?: IVote[];
|
|
94
79
|
textBlocks?: any[];
|
|
95
80
|
wikiPages?: any[];
|
|
96
81
|
videoId?: ObjectId;
|