@geenius/docs 0.1.0 → 0.4.0
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/CHANGELOG.md +7 -0
- package/README.md +53 -1
- package/package.json +96 -13
- package/packages/convex/dist/index.d.ts +503 -0
- package/packages/convex/dist/index.js +482 -0
- package/packages/convex/dist/index.js.map +1 -0
- package/packages/react/dist/index.d.ts +439 -0
- package/packages/react/dist/index.js +4954 -0
- package/packages/react/dist/index.js.map +1 -0
- package/packages/react-css/{src/styles.css → dist/index.css} +183 -223
- package/packages/react-css/dist/index.css.map +1 -0
- package/packages/react-css/dist/index.d.ts +443 -0
- package/packages/react-css/dist/index.js +5058 -0
- package/packages/react-css/dist/index.js.map +1 -0
- package/packages/shared/dist/index.d.ts +684 -0
- package/packages/shared/dist/index.js +788 -0
- package/packages/shared/dist/index.js.map +1 -0
- package/packages/solidjs/dist/index.d.ts +435 -0
- package/packages/solidjs/dist/index.js +4584 -0
- package/packages/solidjs/dist/index.js.map +1 -0
- package/packages/solidjs-css/{src/styles.css → dist/index.css} +183 -223
- package/packages/solidjs-css/dist/index.css.map +1 -0
- package/packages/solidjs-css/dist/index.d.ts +432 -0
- package/packages/solidjs-css/dist/index.js +4934 -0
- package/packages/solidjs-css/dist/index.js.map +1 -0
- package/.changeset/config.json +0 -11
- package/.github/CODEOWNERS +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -16
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -11
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -10
- package/.github/dependabot.yml +0 -11
- package/.github/workflows/ci.yml +0 -23
- package/.github/workflows/release.yml +0 -29
- package/.nvmrc +0 -1
- package/.project/ACCOUNT.yaml +0 -4
- package/.project/IDEAS.yaml +0 -7
- package/.project/PROJECT.yaml +0 -11
- package/.project/ROADMAP.yaml +0 -15
- package/CODE_OF_CONDUCT.md +0 -16
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -15
- package/SUPPORT.md +0 -8
- package/packages/convex/README.md +0 -1
- package/packages/convex/package.json +0 -12
- package/packages/convex/src/convex.config.ts +0 -3
- package/packages/convex/src/index.ts +0 -3
- package/packages/convex/src/mutations.ts +0 -270
- package/packages/convex/src/queries.ts +0 -175
- package/packages/convex/src/schema.ts +0 -55
- package/packages/react/README.md +0 -1
- package/packages/react/package.json +0 -36
- package/packages/react/src/DocsLayout.tsx +0 -116
- package/packages/react/src/DocsProvider.tsx +0 -93
- package/packages/react/src/RouterDocsContent.tsx +0 -148
- package/packages/react/src/RouterDocsLayout.tsx +0 -161
- package/packages/react/src/components/Breadcrumbs.tsx +0 -34
- package/packages/react/src/components/DocPage.tsx +0 -191
- package/packages/react/src/components/DocSearch.tsx +0 -140
- package/packages/react/src/components/DocSidebar.tsx +0 -86
- package/packages/react/src/components/DocsLayout.tsx +0 -62
- package/packages/react/src/components/EditButton.tsx +0 -26
- package/packages/react/src/components/PageNavigation.tsx +0 -45
- package/packages/react/src/components/TableOfContents.tsx +0 -46
- package/packages/react/src/components/VersionSelector.tsx +0 -60
- package/packages/react/src/components/index.ts +0 -9
- package/packages/react/src/hooks/index.ts +0 -8
- package/packages/react/src/hooks/useDocSearch.ts +0 -55
- package/packages/react/src/hooks/useDocs.ts +0 -57
- package/packages/react/src/hooks/useDocsAdmin.ts +0 -151
- package/packages/react/src/hooks/useTableOfContents.ts +0 -66
- package/packages/react/src/index.ts +0 -38
- package/packages/react/src/pages/DocSearchPage.tsx +0 -129
- package/packages/react/src/pages/DocViewPage.tsx +0 -158
- package/packages/react/src/pages/DocsAdminPage.tsx +0 -330
- package/packages/react/src/pages/DocsIndexPage.tsx +0 -172
- package/packages/react/src/pages/index.ts +0 -4
- package/packages/react/src/useDocs.ts +0 -58
- package/packages/react/tsup.config.ts +0 -12
- package/packages/react-css/README.md +0 -1
- package/packages/react-css/package.json +0 -37
- package/packages/react-css/src/DocsLayout.tsx +0 -117
- package/packages/react-css/src/DocsProvider.tsx +0 -93
- package/packages/react-css/src/RouterDocsContent.tsx +0 -60
- package/packages/react-css/src/RouterDocsLayout.tsx +0 -101
- package/packages/react-css/src/components/DocPage.tsx +0 -21
- package/packages/react-css/src/components/DocSearch.tsx +0 -55
- package/packages/react-css/src/components/DocSidebar.tsx +0 -56
- package/packages/react-css/src/components/DocsLayout.tsx +0 -28
- package/packages/react-css/src/components/common.tsx +0 -93
- package/packages/react-css/src/components/index.ts +0 -5
- package/packages/react-css/src/hooks/index.ts +0 -2
- package/packages/react-css/src/index.ts +0 -6
- package/packages/react-css/src/index.tsx +0 -3
- package/packages/react-css/src/pages/DocViewPage.tsx +0 -78
- package/packages/react-css/src/pages/DocsAdminPage.tsx +0 -101
- package/packages/react-css/src/pages/DocsIndexPage.tsx +0 -68
- package/packages/react-css/src/pages/index.ts +0 -3
- package/packages/react-css/src/useDocs.ts +0 -58
- package/packages/react-css/tsconfig.json +0 -19
- package/packages/react-css/tsup.config.ts +0 -10
- package/packages/shared/README.md +0 -1
- package/packages/shared/package.json +0 -31
- package/packages/shared/src/__tests__/docs.test.ts +0 -69
- package/packages/shared/src/config.ts +0 -80
- package/packages/shared/src/index.ts +0 -179
- package/packages/shared/src/providers/astro.ts +0 -94
- package/packages/shared/src/providers/fumadocs.ts +0 -116
- package/packages/shared/src/providers/internal.ts +0 -80
- package/packages/shared/src/types.ts +0 -73
- package/packages/shared/tsconfig.json +0 -18
- package/packages/shared/tsup.config.ts +0 -12
- package/packages/shared/vitest.config.ts +0 -4
- package/packages/solidjs/README.md +0 -1
- package/packages/solidjs/package.json +0 -33
- package/packages/solidjs/src/DocsLayout.tsx +0 -87
- package/packages/solidjs/src/DocsProvider.tsx +0 -95
- package/packages/solidjs/src/RouterDocsContent.tsx +0 -147
- package/packages/solidjs/src/RouterDocsLayout.tsx +0 -161
- package/packages/solidjs/src/components/Breadcrumbs.tsx +0 -27
- package/packages/solidjs/src/components/DocPage.tsx +0 -110
- package/packages/solidjs/src/components/DocSearch.tsx +0 -81
- package/packages/solidjs/src/components/DocSidebar.tsx +0 -92
- package/packages/solidjs/src/components/DocsLayout.tsx +0 -38
- package/packages/solidjs/src/components/EditButton.tsx +0 -15
- package/packages/solidjs/src/components/PageNavigation.tsx +0 -31
- package/packages/solidjs/src/components/TableOfContents.tsx +0 -41
- package/packages/solidjs/src/components/VersionSelector.tsx +0 -30
- package/packages/solidjs/src/components/index.ts +0 -9
- package/packages/solidjs/src/createDocs.ts +0 -62
- package/packages/solidjs/src/index.ts +0 -28
- package/packages/solidjs/src/pages/DocSearchPage.tsx +0 -72
- package/packages/solidjs/src/pages/DocViewPage.tsx +0 -80
- package/packages/solidjs/src/pages/DocsAdminPage.tsx +0 -123
- package/packages/solidjs/src/pages/DocsIndexPage.tsx +0 -85
- package/packages/solidjs/src/pages/index.ts +0 -4
- package/packages/solidjs/src/primitives/createDocSearch.ts +0 -42
- package/packages/solidjs/src/primitives/createDocs.ts +0 -35
- package/packages/solidjs/src/primitives/createDocsAdmin.ts +0 -63
- package/packages/solidjs/src/primitives/createTableOfContents.ts +0 -51
- package/packages/solidjs/src/primitives/index.ts +0 -4
- package/packages/solidjs/tsup.config.ts +0 -12
- package/packages/solidjs-css/README.md +0 -1
- package/packages/solidjs-css/package.json +0 -36
- package/packages/solidjs-css/src/DocsLayout.tsx +0 -106
- package/packages/solidjs-css/src/DocsProvider.tsx +0 -95
- package/packages/solidjs-css/src/RouterDocsContent.tsx +0 -54
- package/packages/solidjs-css/src/RouterDocsLayout.tsx +0 -104
- package/packages/solidjs-css/src/createDocs.ts +0 -62
- package/packages/solidjs-css/src/index.ts +0 -7
- package/packages/solidjs-css/src/index.tsx +0 -17
- package/packages/solidjs-css/src/pages/DocViewPage.tsx +0 -111
- package/packages/solidjs-css/src/pages/DocsAdminPage.tsx +0 -332
- package/packages/solidjs-css/src/pages/DocsIndexPage.tsx +0 -116
- package/packages/solidjs-css/src/pages/index.ts +0 -3
- package/packages/solidjs-css/src/primitives/index.ts +0 -1
- package/packages/solidjs-css/tsconfig.json +0 -20
- package/packages/solidjs-css/tsup.config.ts +0 -10
- package/pnpm-workspace.yaml +0 -2
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
import * as convex_server from 'convex/server';
|
|
2
|
+
import * as convex_values from 'convex/values';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @module docsConvexConfig
|
|
6
|
+
* @package @geenius/docs-convex
|
|
7
|
+
* @description Declares the Convex component identity for the docs package so
|
|
8
|
+
* consuming apps can register the component under the canonical docs name.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Convex component definition for the docs package.
|
|
12
|
+
*/
|
|
13
|
+
declare const component: convex_server.ComponentDefinition<any>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @module docsConvexMutations
|
|
17
|
+
* @package @geenius/docs-convex
|
|
18
|
+
* @description Declares the typed Convex mutation surface for creating,
|
|
19
|
+
* updating, reordering, publishing, and deleting docs sections and pages.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Creates a docs section record.
|
|
23
|
+
*/
|
|
24
|
+
declare const createSection: convex_server.RegisteredMutation<"public", {
|
|
25
|
+
parentId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
26
|
+
icon?: string | undefined;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
title: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
order: number;
|
|
31
|
+
access: "public" | "team" | "admin";
|
|
32
|
+
}, Promise<convex_values.GenericId<"doc_sections">>>;
|
|
33
|
+
/**
|
|
34
|
+
* Updates mutable fields on a docs section.
|
|
35
|
+
*/
|
|
36
|
+
declare const updateSection: convex_server.RegisteredMutation<"public", {
|
|
37
|
+
title?: string | undefined;
|
|
38
|
+
slug?: string | undefined;
|
|
39
|
+
order?: number | undefined;
|
|
40
|
+
icon?: string | undefined;
|
|
41
|
+
description?: string | undefined;
|
|
42
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
43
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
44
|
+
}, Promise<null>>;
|
|
45
|
+
/**
|
|
46
|
+
* Deletes a docs section and its dependent pages and search index entries.
|
|
47
|
+
*/
|
|
48
|
+
declare const deleteSection: convex_server.RegisteredMutation<"public", {
|
|
49
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
50
|
+
}, Promise<null>>;
|
|
51
|
+
/**
|
|
52
|
+
* Reorders sections according to the provided id sequence.
|
|
53
|
+
*/
|
|
54
|
+
declare const reorderSections: convex_server.RegisteredMutation<"public", {
|
|
55
|
+
sectionIds: convex_values.GenericId<"doc_sections">[];
|
|
56
|
+
}, Promise<null>>;
|
|
57
|
+
/**
|
|
58
|
+
* Creates a docs page and derives reading-time metadata from its content.
|
|
59
|
+
*/
|
|
60
|
+
declare const createPage: convex_server.RegisteredMutation<"public", {
|
|
61
|
+
order?: number | undefined;
|
|
62
|
+
excerpt?: string | undefined;
|
|
63
|
+
author?: {
|
|
64
|
+
avatar?: string | undefined;
|
|
65
|
+
name: string;
|
|
66
|
+
} | undefined;
|
|
67
|
+
version?: string | undefined;
|
|
68
|
+
tags?: string[] | undefined;
|
|
69
|
+
status?: "draft" | "published" | "archived" | undefined;
|
|
70
|
+
title: string;
|
|
71
|
+
slug: string;
|
|
72
|
+
access: "public" | "team" | "admin";
|
|
73
|
+
content: string;
|
|
74
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
75
|
+
}, Promise<convex_values.GenericId<"doc_pages">>>;
|
|
76
|
+
/**
|
|
77
|
+
* Updates an existing docs page and recalculates derived metadata when needed.
|
|
78
|
+
*/
|
|
79
|
+
declare const updatePage: convex_server.RegisteredMutation<"public", {
|
|
80
|
+
title?: string | undefined;
|
|
81
|
+
slug?: string | undefined;
|
|
82
|
+
order?: number | undefined;
|
|
83
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
84
|
+
content?: string | undefined;
|
|
85
|
+
excerpt?: string | undefined;
|
|
86
|
+
sectionId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
87
|
+
lastEditedBy?: {
|
|
88
|
+
name: string;
|
|
89
|
+
editedAt: string;
|
|
90
|
+
} | undefined;
|
|
91
|
+
version?: string | undefined;
|
|
92
|
+
tags?: string[] | undefined;
|
|
93
|
+
status?: "draft" | "published" | "archived" | undefined;
|
|
94
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
95
|
+
}, Promise<null>>;
|
|
96
|
+
/**
|
|
97
|
+
* Publishes a docs page.
|
|
98
|
+
*/
|
|
99
|
+
declare const publishPage: convex_server.RegisteredMutation<"public", {
|
|
100
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
101
|
+
}, Promise<null>>;
|
|
102
|
+
/**
|
|
103
|
+
* Archives a docs page.
|
|
104
|
+
*/
|
|
105
|
+
declare const archivePage: convex_server.RegisteredMutation<"public", {
|
|
106
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
107
|
+
}, Promise<null>>;
|
|
108
|
+
/**
|
|
109
|
+
* Deletes a docs page and its search index entries.
|
|
110
|
+
*/
|
|
111
|
+
declare const deletePage: convex_server.RegisteredMutation<"public", {
|
|
112
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
113
|
+
}, Promise<null>>;
|
|
114
|
+
/**
|
|
115
|
+
* Reorders pages within a section according to the provided id sequence.
|
|
116
|
+
*/
|
|
117
|
+
declare const reorderPages: convex_server.RegisteredMutation<"public", {
|
|
118
|
+
pageIds: convex_values.GenericId<"doc_pages">[];
|
|
119
|
+
}, Promise<null>>;
|
|
120
|
+
/**
|
|
121
|
+
* Increments the view count for a docs page.
|
|
122
|
+
*/
|
|
123
|
+
declare const incrementViewCount: convex_server.RegisteredMutation<"public", {
|
|
124
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
125
|
+
}, Promise<null>>;
|
|
126
|
+
/**
|
|
127
|
+
* Moves a docs page into a new section and order slot.
|
|
128
|
+
*/
|
|
129
|
+
declare const movePage: convex_server.RegisteredMutation<"public", {
|
|
130
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
131
|
+
newSectionId: convex_values.GenericId<"doc_sections">;
|
|
132
|
+
newOrder: number;
|
|
133
|
+
}, Promise<null>>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @module docsConvexQueries
|
|
137
|
+
* @package @geenius/docs-convex
|
|
138
|
+
* @description Declares the typed Convex query surface used by the docs
|
|
139
|
+
* package. The validators mirror the schema so consumers never fall back to
|
|
140
|
+
* `v.any()` for docs sections, pages, or tree payloads.
|
|
141
|
+
*/
|
|
142
|
+
declare const listSections: convex_server.RegisteredQuery<"public", {
|
|
143
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
144
|
+
}, Promise<{
|
|
145
|
+
_id: convex_values.GenericId<"doc_sections">;
|
|
146
|
+
_creationTime: number;
|
|
147
|
+
parentId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
148
|
+
icon?: string | undefined;
|
|
149
|
+
description?: string | undefined;
|
|
150
|
+
title: string;
|
|
151
|
+
slug: string;
|
|
152
|
+
order: number;
|
|
153
|
+
access: "public" | "team" | "admin";
|
|
154
|
+
createdAt: number;
|
|
155
|
+
}[]>>;
|
|
156
|
+
declare const getSection: convex_server.RegisteredQuery<"public", {
|
|
157
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
158
|
+
}, Promise<{
|
|
159
|
+
_id: convex_values.GenericId<"doc_sections">;
|
|
160
|
+
_creationTime: number;
|
|
161
|
+
parentId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
162
|
+
icon?: string | undefined;
|
|
163
|
+
description?: string | undefined;
|
|
164
|
+
title: string;
|
|
165
|
+
slug: string;
|
|
166
|
+
order: number;
|
|
167
|
+
access: "public" | "team" | "admin";
|
|
168
|
+
createdAt: number;
|
|
169
|
+
} | null>>;
|
|
170
|
+
declare const listPagesBySection: convex_server.RegisteredQuery<"public", {
|
|
171
|
+
status?: "draft" | "published" | "archived" | undefined;
|
|
172
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
173
|
+
}, Promise<{
|
|
174
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
175
|
+
_creationTime: number;
|
|
176
|
+
excerpt?: string | undefined;
|
|
177
|
+
lastEditedBy?: {
|
|
178
|
+
name: string;
|
|
179
|
+
editedAt: string;
|
|
180
|
+
} | undefined;
|
|
181
|
+
version?: string | undefined;
|
|
182
|
+
title: string;
|
|
183
|
+
slug: string;
|
|
184
|
+
order: number;
|
|
185
|
+
access: "public" | "team" | "admin";
|
|
186
|
+
createdAt: number;
|
|
187
|
+
content: string;
|
|
188
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
189
|
+
author: {
|
|
190
|
+
avatar?: string | undefined;
|
|
191
|
+
name: string;
|
|
192
|
+
};
|
|
193
|
+
tags: string[];
|
|
194
|
+
status: "draft" | "published" | "archived";
|
|
195
|
+
updatedAt: number;
|
|
196
|
+
wordCount: number;
|
|
197
|
+
readingTime: number;
|
|
198
|
+
viewCount: number;
|
|
199
|
+
}[]>>;
|
|
200
|
+
declare const getPage: convex_server.RegisteredQuery<"public", {
|
|
201
|
+
slug: string;
|
|
202
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
203
|
+
}, Promise<{
|
|
204
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
205
|
+
_creationTime: number;
|
|
206
|
+
excerpt?: string | undefined;
|
|
207
|
+
lastEditedBy?: {
|
|
208
|
+
name: string;
|
|
209
|
+
editedAt: string;
|
|
210
|
+
} | undefined;
|
|
211
|
+
version?: string | undefined;
|
|
212
|
+
title: string;
|
|
213
|
+
slug: string;
|
|
214
|
+
order: number;
|
|
215
|
+
access: "public" | "team" | "admin";
|
|
216
|
+
createdAt: number;
|
|
217
|
+
content: string;
|
|
218
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
219
|
+
author: {
|
|
220
|
+
avatar?: string | undefined;
|
|
221
|
+
name: string;
|
|
222
|
+
};
|
|
223
|
+
tags: string[];
|
|
224
|
+
status: "draft" | "published" | "archived";
|
|
225
|
+
updatedAt: number;
|
|
226
|
+
wordCount: number;
|
|
227
|
+
readingTime: number;
|
|
228
|
+
viewCount: number;
|
|
229
|
+
} | null>>;
|
|
230
|
+
declare const getPageById: convex_server.RegisteredQuery<"public", {
|
|
231
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
232
|
+
}, Promise<{
|
|
233
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
234
|
+
_creationTime: number;
|
|
235
|
+
excerpt?: string | undefined;
|
|
236
|
+
lastEditedBy?: {
|
|
237
|
+
name: string;
|
|
238
|
+
editedAt: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
version?: string | undefined;
|
|
241
|
+
title: string;
|
|
242
|
+
slug: string;
|
|
243
|
+
order: number;
|
|
244
|
+
access: "public" | "team" | "admin";
|
|
245
|
+
createdAt: number;
|
|
246
|
+
content: string;
|
|
247
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
248
|
+
author: {
|
|
249
|
+
avatar?: string | undefined;
|
|
250
|
+
name: string;
|
|
251
|
+
};
|
|
252
|
+
tags: string[];
|
|
253
|
+
status: "draft" | "published" | "archived";
|
|
254
|
+
updatedAt: number;
|
|
255
|
+
wordCount: number;
|
|
256
|
+
readingTime: number;
|
|
257
|
+
viewCount: number;
|
|
258
|
+
} | null>>;
|
|
259
|
+
declare const searchPages: convex_server.RegisteredQuery<"public", {
|
|
260
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
261
|
+
query: string;
|
|
262
|
+
}, Promise<{
|
|
263
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
264
|
+
_creationTime: number;
|
|
265
|
+
excerpt?: string | undefined;
|
|
266
|
+
lastEditedBy?: {
|
|
267
|
+
name: string;
|
|
268
|
+
editedAt: string;
|
|
269
|
+
} | undefined;
|
|
270
|
+
version?: string | undefined;
|
|
271
|
+
title: string;
|
|
272
|
+
slug: string;
|
|
273
|
+
order: number;
|
|
274
|
+
access: "public" | "team" | "admin";
|
|
275
|
+
createdAt: number;
|
|
276
|
+
content: string;
|
|
277
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
278
|
+
author: {
|
|
279
|
+
avatar?: string | undefined;
|
|
280
|
+
name: string;
|
|
281
|
+
};
|
|
282
|
+
tags: string[];
|
|
283
|
+
status: "draft" | "published" | "archived";
|
|
284
|
+
updatedAt: number;
|
|
285
|
+
wordCount: number;
|
|
286
|
+
readingTime: number;
|
|
287
|
+
viewCount: number;
|
|
288
|
+
}[]>>;
|
|
289
|
+
declare const getFullTree: convex_server.RegisteredQuery<"public", {
|
|
290
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
291
|
+
}, Promise<{
|
|
292
|
+
id: convex_values.GenericId<"doc_sections">;
|
|
293
|
+
pages: {
|
|
294
|
+
id: convex_values.GenericId<"doc_pages">;
|
|
295
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
296
|
+
_creationTime: number;
|
|
297
|
+
excerpt?: string | undefined;
|
|
298
|
+
lastEditedBy?: {
|
|
299
|
+
name: string;
|
|
300
|
+
editedAt: string;
|
|
301
|
+
} | undefined;
|
|
302
|
+
version?: string | undefined;
|
|
303
|
+
title: string;
|
|
304
|
+
slug: string;
|
|
305
|
+
order: number;
|
|
306
|
+
access: "public" | "team" | "admin";
|
|
307
|
+
createdAt: number;
|
|
308
|
+
content: string;
|
|
309
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
310
|
+
author: {
|
|
311
|
+
avatar?: string | undefined;
|
|
312
|
+
name: string;
|
|
313
|
+
};
|
|
314
|
+
tags: string[];
|
|
315
|
+
status: "draft" | "published" | "archived";
|
|
316
|
+
updatedAt: number;
|
|
317
|
+
wordCount: number;
|
|
318
|
+
readingTime: number;
|
|
319
|
+
viewCount: number;
|
|
320
|
+
}[];
|
|
321
|
+
pageCount: number;
|
|
322
|
+
_id: convex_values.GenericId<"doc_sections">;
|
|
323
|
+
_creationTime: number;
|
|
324
|
+
parentId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
325
|
+
icon?: string | undefined;
|
|
326
|
+
description?: string | undefined;
|
|
327
|
+
title: string;
|
|
328
|
+
slug: string;
|
|
329
|
+
order: number;
|
|
330
|
+
access: "public" | "team" | "admin";
|
|
331
|
+
createdAt: number;
|
|
332
|
+
}[]>>;
|
|
333
|
+
declare const getRecentPages: convex_server.RegisteredQuery<"public", {
|
|
334
|
+
access?: "public" | "team" | "admin" | undefined;
|
|
335
|
+
limit?: number | undefined;
|
|
336
|
+
}, Promise<{
|
|
337
|
+
id: convex_values.GenericId<"doc_pages">;
|
|
338
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
339
|
+
_creationTime: number;
|
|
340
|
+
excerpt?: string | undefined;
|
|
341
|
+
lastEditedBy?: {
|
|
342
|
+
name: string;
|
|
343
|
+
editedAt: string;
|
|
344
|
+
} | undefined;
|
|
345
|
+
version?: string | undefined;
|
|
346
|
+
title: string;
|
|
347
|
+
slug: string;
|
|
348
|
+
order: number;
|
|
349
|
+
access: "public" | "team" | "admin";
|
|
350
|
+
createdAt: number;
|
|
351
|
+
content: string;
|
|
352
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
353
|
+
author: {
|
|
354
|
+
avatar?: string | undefined;
|
|
355
|
+
name: string;
|
|
356
|
+
};
|
|
357
|
+
tags: string[];
|
|
358
|
+
status: "draft" | "published" | "archived";
|
|
359
|
+
updatedAt: number;
|
|
360
|
+
wordCount: number;
|
|
361
|
+
readingTime: number;
|
|
362
|
+
viewCount: number;
|
|
363
|
+
}[]>>;
|
|
364
|
+
declare const getPageVersions: convex_server.RegisteredQuery<"public", {
|
|
365
|
+
slug: string;
|
|
366
|
+
}, Promise<{
|
|
367
|
+
id: convex_values.GenericId<"doc_pages">;
|
|
368
|
+
_id: convex_values.GenericId<"doc_pages">;
|
|
369
|
+
_creationTime: number;
|
|
370
|
+
excerpt?: string | undefined;
|
|
371
|
+
lastEditedBy?: {
|
|
372
|
+
name: string;
|
|
373
|
+
editedAt: string;
|
|
374
|
+
} | undefined;
|
|
375
|
+
version?: string | undefined;
|
|
376
|
+
title: string;
|
|
377
|
+
slug: string;
|
|
378
|
+
order: number;
|
|
379
|
+
access: "public" | "team" | "admin";
|
|
380
|
+
createdAt: number;
|
|
381
|
+
content: string;
|
|
382
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
383
|
+
author: {
|
|
384
|
+
avatar?: string | undefined;
|
|
385
|
+
name: string;
|
|
386
|
+
};
|
|
387
|
+
tags: string[];
|
|
388
|
+
status: "draft" | "published" | "archived";
|
|
389
|
+
updatedAt: number;
|
|
390
|
+
wordCount: number;
|
|
391
|
+
readingTime: number;
|
|
392
|
+
viewCount: number;
|
|
393
|
+
}[]>>;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @module docsConvexSchema
|
|
397
|
+
* @package @geenius/docs-convex
|
|
398
|
+
* @description Declares the docs Convex schema and exports the reusable
|
|
399
|
+
* tables object so consuming apps can merge it into larger schemas.
|
|
400
|
+
*/
|
|
401
|
+
/**
|
|
402
|
+
* Reusable Convex tables for the docs package.
|
|
403
|
+
*/
|
|
404
|
+
declare const docsTables: {
|
|
405
|
+
doc_sections: convex_server.TableDefinition<convex_values.VObject<{
|
|
406
|
+
parentId?: convex_values.GenericId<"doc_sections"> | undefined;
|
|
407
|
+
icon?: string | undefined;
|
|
408
|
+
description?: string | undefined;
|
|
409
|
+
title: string;
|
|
410
|
+
slug: string;
|
|
411
|
+
order: number;
|
|
412
|
+
access: "public" | "team" | "admin";
|
|
413
|
+
createdAt: number;
|
|
414
|
+
}, {
|
|
415
|
+
title: convex_values.VString<string, "required">;
|
|
416
|
+
slug: convex_values.VString<string, "required">;
|
|
417
|
+
parentId: convex_values.VId<convex_values.GenericId<"doc_sections"> | undefined, "optional">;
|
|
418
|
+
order: convex_values.VFloat64<number, "required">;
|
|
419
|
+
icon: convex_values.VString<string | undefined, "optional">;
|
|
420
|
+
description: convex_values.VString<string | undefined, "optional">;
|
|
421
|
+
access: convex_values.VUnion<"public" | "team" | "admin", [convex_values.VLiteral<"public", "required">, convex_values.VLiteral<"team", "required">, convex_values.VLiteral<"admin", "required">], "required", never>;
|
|
422
|
+
createdAt: convex_values.VFloat64<number, "required">;
|
|
423
|
+
}, "required", "title" | "slug" | "parentId" | "order" | "icon" | "description" | "access" | "createdAt">, {
|
|
424
|
+
by_slug: ["slug", "_creationTime"];
|
|
425
|
+
by_parentId: ["parentId", "_creationTime"];
|
|
426
|
+
by_order: ["order", "_creationTime"];
|
|
427
|
+
}, {}, {}>;
|
|
428
|
+
doc_pages: convex_server.TableDefinition<convex_values.VObject<{
|
|
429
|
+
excerpt?: string | undefined;
|
|
430
|
+
lastEditedBy?: {
|
|
431
|
+
name: string;
|
|
432
|
+
editedAt: string;
|
|
433
|
+
} | undefined;
|
|
434
|
+
version?: string | undefined;
|
|
435
|
+
title: string;
|
|
436
|
+
slug: string;
|
|
437
|
+
order: number;
|
|
438
|
+
access: "public" | "team" | "admin";
|
|
439
|
+
createdAt: number;
|
|
440
|
+
content: string;
|
|
441
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
442
|
+
author: {
|
|
443
|
+
avatar?: string | undefined;
|
|
444
|
+
name: string;
|
|
445
|
+
};
|
|
446
|
+
tags: string[];
|
|
447
|
+
status: "draft" | "published" | "archived";
|
|
448
|
+
updatedAt: number;
|
|
449
|
+
wordCount: number;
|
|
450
|
+
readingTime: number;
|
|
451
|
+
viewCount: number;
|
|
452
|
+
}, {
|
|
453
|
+
title: convex_values.VString<string, "required">;
|
|
454
|
+
slug: convex_values.VString<string, "required">;
|
|
455
|
+
content: convex_values.VString<string, "required">;
|
|
456
|
+
excerpt: convex_values.VString<string | undefined, "optional">;
|
|
457
|
+
sectionId: convex_values.VId<convex_values.GenericId<"doc_sections">, "required">;
|
|
458
|
+
order: convex_values.VFloat64<number, "required">;
|
|
459
|
+
author: convex_values.VObject<{
|
|
460
|
+
avatar?: string | undefined;
|
|
461
|
+
name: string;
|
|
462
|
+
}, {
|
|
463
|
+
name: convex_values.VString<string, "required">;
|
|
464
|
+
avatar: convex_values.VString<string | undefined, "optional">;
|
|
465
|
+
}, "required", "name" | "avatar">;
|
|
466
|
+
lastEditedBy: convex_values.VObject<{
|
|
467
|
+
name: string;
|
|
468
|
+
editedAt: string;
|
|
469
|
+
} | undefined, {
|
|
470
|
+
name: convex_values.VString<string, "required">;
|
|
471
|
+
editedAt: convex_values.VString<string, "required">;
|
|
472
|
+
}, "optional", "name" | "editedAt">;
|
|
473
|
+
version: convex_values.VString<string | undefined, "optional">;
|
|
474
|
+
access: convex_values.VUnion<"public" | "team" | "admin", [convex_values.VLiteral<"public", "required">, convex_values.VLiteral<"team", "required">, convex_values.VLiteral<"admin", "required">], "required", never>;
|
|
475
|
+
tags: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
|
|
476
|
+
status: convex_values.VUnion<"draft" | "published" | "archived", [convex_values.VLiteral<"draft", "required">, convex_values.VLiteral<"published", "required">, convex_values.VLiteral<"archived", "required">], "required", never>;
|
|
477
|
+
createdAt: convex_values.VFloat64<number, "required">;
|
|
478
|
+
updatedAt: convex_values.VFloat64<number, "required">;
|
|
479
|
+
wordCount: convex_values.VFloat64<number, "required">;
|
|
480
|
+
readingTime: convex_values.VFloat64<number, "required">;
|
|
481
|
+
viewCount: convex_values.VFloat64<number, "required">;
|
|
482
|
+
}, "required", "title" | "slug" | "order" | "access" | "createdAt" | "content" | "excerpt" | "sectionId" | "author" | "lastEditedBy" | "version" | "tags" | "status" | "updatedAt" | "wordCount" | "readingTime" | "viewCount" | "author.name" | "author.avatar" | "lastEditedBy.name" | "lastEditedBy.editedAt">, {
|
|
483
|
+
by_sectionId: ["sectionId", "_creationTime"];
|
|
484
|
+
by_slug: ["slug", "_creationTime"];
|
|
485
|
+
by_status: ["status", "_creationTime"];
|
|
486
|
+
by_access: ["access", "_creationTime"];
|
|
487
|
+
}, {}, {}>;
|
|
488
|
+
doc_search_index: convex_server.TableDefinition<convex_values.VObject<{
|
|
489
|
+
sectionId: convex_values.GenericId<"doc_sections">;
|
|
490
|
+
updatedAt: number;
|
|
491
|
+
pageId: convex_values.GenericId<"doc_pages">;
|
|
492
|
+
tokens: string[];
|
|
493
|
+
}, {
|
|
494
|
+
pageId: convex_values.VId<convex_values.GenericId<"doc_pages">, "required">;
|
|
495
|
+
sectionId: convex_values.VId<convex_values.GenericId<"doc_sections">, "required">;
|
|
496
|
+
tokens: convex_values.VArray<string[], convex_values.VString<string, "required">, "required">;
|
|
497
|
+
updatedAt: convex_values.VFloat64<number, "required">;
|
|
498
|
+
}, "required", "sectionId" | "updatedAt" | "pageId" | "tokens">, {
|
|
499
|
+
by_pageId: ["pageId", "_creationTime"];
|
|
500
|
+
}, {}, {}>;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export { archivePage, component as componentDefinition, createPage, createSection, deletePage, deleteSection, docsTables, getFullTree, getPage, getPageById, getPageVersions, getRecentPages, getSection, incrementViewCount, listPagesBySection, listSections, movePage, publishPage, reorderPages, reorderSections, searchPages, updatePage, updateSection };
|