@edifice.io/wiki 3.4.0-develop-pedago.1
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/lib/BAGVG3AX.js +33 -0
- package/lib/DeleteListModal.js +36 -0
- package/lib/KZB72KQG.js +42 -0
- package/lib/NITRNJ62.js +9215 -0
- package/lib/PrintModal.js +74 -0
- package/lib/components/AIButton/AIButton.d.ts +6 -0
- package/lib/components/ButtonGroup/index.d.ts +6 -0
- package/lib/components/CancelModal/index.d.ts +6 -0
- package/lib/components/ResourceModal/index.d.ts +2 -0
- package/lib/components/ShareModal/index.d.ts +2 -0
- package/lib/components/SimpleRadioCard/SimpleRadioCard.d.ts +37 -0
- package/lib/components/Toggle/index.d.ts +2 -0
- package/lib/components/WikiApp/components/WikiApp.d.ts +15 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.context.d.ts +7 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.d.ts +9 -0
- package/lib/components/WikiApp/providers/WikiAppProvider.hook.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/config/constants.d.ts +7 -0
- package/lib/config/explorer.d.ts +2 -0
- package/lib/config/index.d.ts +3 -0
- package/lib/config/workflows.d.ts +19 -0
- package/lib/features/app/AppActions/AppActions.d.ts +8 -0
- package/lib/features/app/AppActions/AppActions.test.d.ts +1 -0
- package/lib/features/app/AppHeader/AppHeader.d.ts +1 -0
- package/lib/features/app/AppHeader/AppHeader.test.d.ts +1 -0
- package/lib/features/index.d.ts +13 -0
- package/lib/features/page/ConfirmVisibilityModal/ConfirmVisibilityModal.d.ts +4 -0
- package/lib/features/page/DeleteListModal/DeleteListModal.d.ts +4 -0
- package/lib/features/page/DeleteListModal/DeleteListModal.test.d.ts +1 -0
- package/lib/features/page/DeletePageModal/DeletePageModal.d.ts +1 -0
- package/lib/features/page/DuplicateModal/DuplicateModal.d.ts +16 -0
- package/lib/features/page/DuplicateModal/DuplicateModal.test.d.ts +1 -0
- package/lib/features/page/FormPage/FormPage.d.ts +4 -0
- package/lib/features/page/MoveModal/MoveModal.d.ts +6 -0
- package/lib/features/page/MoveModal/MoveModal.test.d.ts +1 -0
- package/lib/features/page/PageHeader/PageHeader.d.ts +6 -0
- package/lib/features/page/PageHeader/PageHeader.test.d.ts +1 -0
- package/lib/features/page/PrintModal/PrintModal.d.ts +1 -0
- package/lib/features/page/PrintModal/PrintModal.test.d.ts +1 -0
- package/lib/features/page/RevisionHeader/RevisionHeader.d.ts +4 -0
- package/lib/features/page/RevisionHeader/RevisionHeader.test.d.ts +1 -0
- package/lib/features/page/RevisionModal/RevisionModal.d.ts +4 -0
- package/lib/features/page/RevisionModal/RevisionModal.test.d.ts +1 -0
- package/lib/features/page/RevisionModal/useRevisionModal.d.ts +16 -0
- package/lib/features/wiki/DropdownTreeview/DropdownTreeview.d.ts +6 -0
- package/lib/features/wiki/NewPage/NewPage.d.ts +1 -0
- package/lib/features/wiki/NewPage/NewPage.test.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep1Form.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep2Form.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep3StructureLoading.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/PagesAssistantAIStep4StructureResult.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useLevels.d.ts +23 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantAISteps/useSubjects.d.ts +12 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantAICard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantImportPollCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantLibraryCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantCards/PagesAssistantManualCreationCard.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantLeftPane.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/PagesAssistantRoot.d.ts +1 -0
- package/lib/features/wiki/PagesAssistant/animations/loading.json.d.ts +2290 -0
- package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.d.ts +2 -0
- package/lib/features/wiki/WikiEmptyScreen/WikiEmptyScreen.test.d.ts +1 -0
- package/lib/hooks/index.d.ts +4 -0
- package/lib/hooks/useCancelPage.d.ts +7 -0
- package/lib/hooks/useCheckablePrint.d.ts +11 -0
- package/lib/hooks/useCheckableTable.d.ts +9 -0
- package/lib/hooks/useFeedData.d.ts +19 -0
- package/lib/hooks/useFilterCurrentPageFromTree.d.ts +8 -0
- package/lib/hooks/useFilterVisiblePage.d.ts +2 -0
- package/lib/hooks/useFilteredWikis.d.ts +10 -0
- package/lib/hooks/useFindTreeItemById.d.ts +11 -0
- package/lib/hooks/useFormPage/useFormPage.d.ts +23 -0
- package/lib/hooks/useFormPage/useFormPage.test.d.ts +1 -0
- package/lib/hooks/useIsAuthorOrManager.d.ts +8 -0
- package/lib/hooks/useIsOnlyRead.d.ts +1 -0
- package/lib/hooks/useListPage/useListPage.d.ts +5 -0
- package/lib/hooks/useListPage/useListPage.test.d.ts +1 -0
- package/lib/hooks/useMenu.d.ts +11 -0
- package/lib/hooks/useRedirectDefaultPage.d.ts +1 -0
- package/lib/hooks/useReorganizeTree.d.ts +16 -0
- package/lib/hooks/useRevision/useRevision.d.ts +54 -0
- package/lib/hooks/useRevision/useRevision.test.d.ts +1 -0
- package/lib/hooks/useUpdatePages.d.ts +4 -0
- package/lib/i18n.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +4 -0
- package/lib/index2.js +12448 -0
- package/lib/index3.js +5 -0
- package/lib/index4.js +5 -0
- package/lib/main.d.ts +0 -0
- package/lib/mocks/handlers.d.ts +4 -0
- package/lib/mocks/index.d.ts +413 -0
- package/lib/mocks/polyfills.d.ts +5 -0
- package/lib/mocks/renderWithRouter.d.ts +2 -0
- package/lib/mocks/server.d.ts +1 -0
- package/lib/mocks/setup.d.ts +11 -0
- package/lib/models/comment.d.ts +20 -0
- package/lib/models/date.d.ts +12 -0
- package/lib/models/index.d.ts +5 -0
- package/lib/models/page.d.ts +91 -0
- package/lib/models/payload.d.ts +28 -0
- package/lib/models/revision.d.ts +12 -0
- package/lib/models/wiki.d.ts +68 -0
- package/lib/providers/index.d.ts +9 -0
- package/lib/routes/errors/index.d.ts +3 -0
- package/lib/routes/errors/not-found.d.ts +1 -0
- package/lib/routes/index.d.ts +6 -0
- package/lib/routes/old-format/index.d.ts +36 -0
- package/lib/routes/page/create.d.ts +4 -0
- package/lib/routes/page/edit.d.ts +11 -0
- package/lib/routes/page/index.d.ts +37 -0
- package/lib/routes/page/list/list.d.ts +46 -0
- package/lib/routes/page/list/list.test.d.ts +1 -0
- package/lib/routes/page/pageEditAction.d.ts +4 -0
- package/lib/routes/print/index.d.ts +36 -0
- package/lib/routes/root/index.d.ts +4 -0
- package/lib/routes/wiki/index.d.ts +45 -0
- package/lib/routes/wiki/index.test.d.ts +1 -0
- package/lib/services/api/assistant/assistant.service.d.ts +9 -0
- package/lib/services/api/assistant/assistant.types.d.ts +19 -0
- package/lib/services/api/index.d.ts +261 -0
- package/lib/services/api/index.test.d.ts +1 -0
- package/lib/services/api/poll/poll.service.d.ts +17 -0
- package/lib/services/api/poll/poll.types.d.ts +27 -0
- package/lib/services/index.d.ts +12 -0
- package/lib/services/queries/actions.d.ts +11 -0
- package/lib/services/queries/comment.d.ts +20 -0
- package/lib/services/queries/index.d.ts +4 -0
- package/lib/services/queries/page/page.d.ts +264 -0
- package/lib/services/queries/page/page.test.d.ts +1 -0
- package/lib/services/queries/poll/poll.query.d.ts +9 -0
- package/lib/services/queries/poll/poll.test.d.ts +1 -0
- package/lib/services/queries/wiki/wiki.d.ts +235 -0
- package/lib/services/queries/wiki/wiki.test.d.ts +1 -0
- package/lib/services/resource/index.d.ts +47 -0
- package/lib/store/assistant/index.d.ts +7 -0
- package/lib/store/index.d.ts +3 -0
- package/lib/store/rights/index.d.ts +11 -0
- package/lib/store/toast/index.d.ts +13 -0
- package/lib/store/treeview/index.d.ts +12 -0
- package/lib/store/wiki/index.d.ts +55 -0
- package/lib/style.css +1 -0
- package/lib/utils/dtoToPage.d.ts +33 -0
- package/lib/utils/dtoToWiki.d.ts +43 -0
- package/lib/utils/dtoToWikiPages.d.ts +33 -0
- package/lib/utils/findDefaultPage.d.ts +5 -0
- package/lib/utils/findDefaultPage.test.d.ts +1 -0
- package/lib/utils/findLastPage.d.ts +4 -0
- package/lib/utils/findPage.d.ts +2 -0
- package/lib/utils/findPage.test.d.ts +1 -0
- package/lib/utils/getChildrenRecursively.d.ts +19 -0
- package/lib/utils/getFormValue.d.ts +1 -0
- package/lib/utils/sortPagesByDate.d.ts +2 -0
- package/lib/utils/sortPagesByPosition.d.ts +2 -0
- package/package.json +90 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { DuplicatePageResultOrError, PagePostPayload, PagePutPayload } from '../../../models';
|
|
2
|
+
/**
|
|
3
|
+
* Page Query Options Factory
|
|
4
|
+
*/
|
|
5
|
+
export declare const pageQueryOptions: {
|
|
6
|
+
base: readonly ["page"];
|
|
7
|
+
findOne: ({ wikiId, pageId, originalformat, }: {
|
|
8
|
+
wikiId: string;
|
|
9
|
+
pageId: string;
|
|
10
|
+
originalformat?: boolean;
|
|
11
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
|
12
|
+
comments: {
|
|
13
|
+
id: string;
|
|
14
|
+
comment: string;
|
|
15
|
+
authorId: string;
|
|
16
|
+
authorName: string;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
replyTo: string | undefined;
|
|
20
|
+
deleted: boolean | undefined;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
isVisible: boolean;
|
|
23
|
+
_id: string;
|
|
24
|
+
title: string;
|
|
25
|
+
content: string;
|
|
26
|
+
contentPlain: string;
|
|
27
|
+
contentVersion: number;
|
|
28
|
+
author: string;
|
|
29
|
+
authorName: string;
|
|
30
|
+
created?: import('../../../models').Created;
|
|
31
|
+
modified: import('../../../models').Modified;
|
|
32
|
+
lastContributer?: string;
|
|
33
|
+
lastContributerName?: string;
|
|
34
|
+
children?: [{
|
|
35
|
+
_id: string;
|
|
36
|
+
title: string;
|
|
37
|
+
isVisible: boolean;
|
|
38
|
+
position?: number;
|
|
39
|
+
}];
|
|
40
|
+
parentId?: string;
|
|
41
|
+
position?: number;
|
|
42
|
+
}, Error, {
|
|
43
|
+
comments: {
|
|
44
|
+
id: string;
|
|
45
|
+
comment: string;
|
|
46
|
+
authorId: string;
|
|
47
|
+
authorName: string;
|
|
48
|
+
createdAt: number;
|
|
49
|
+
updatedAt: number;
|
|
50
|
+
replyTo: string | undefined;
|
|
51
|
+
deleted: boolean | undefined;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
isVisible: boolean;
|
|
54
|
+
_id: string;
|
|
55
|
+
title: string;
|
|
56
|
+
content: string;
|
|
57
|
+
contentPlain: string;
|
|
58
|
+
contentVersion: number;
|
|
59
|
+
author: string;
|
|
60
|
+
authorName: string;
|
|
61
|
+
created?: import('../../../models').Created;
|
|
62
|
+
modified: import('../../../models').Modified;
|
|
63
|
+
lastContributer?: string;
|
|
64
|
+
lastContributerName?: string;
|
|
65
|
+
children?: [{
|
|
66
|
+
_id: string;
|
|
67
|
+
title: string;
|
|
68
|
+
isVisible: boolean;
|
|
69
|
+
position?: number;
|
|
70
|
+
}];
|
|
71
|
+
parentId?: string;
|
|
72
|
+
position?: number;
|
|
73
|
+
}, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
74
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<{
|
|
75
|
+
comments: {
|
|
76
|
+
id: string;
|
|
77
|
+
comment: string;
|
|
78
|
+
authorId: string;
|
|
79
|
+
authorName: string;
|
|
80
|
+
createdAt: number;
|
|
81
|
+
updatedAt: number;
|
|
82
|
+
replyTo: string | undefined;
|
|
83
|
+
deleted: boolean | undefined;
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
isVisible: boolean;
|
|
86
|
+
_id: string;
|
|
87
|
+
title: string;
|
|
88
|
+
content: string;
|
|
89
|
+
contentPlain: string;
|
|
90
|
+
contentVersion: number;
|
|
91
|
+
author: string;
|
|
92
|
+
authorName: string;
|
|
93
|
+
created?: import('../../../models').Created;
|
|
94
|
+
modified: import('../../../models').Modified;
|
|
95
|
+
lastContributer?: string;
|
|
96
|
+
lastContributerName?: string;
|
|
97
|
+
children?: [{
|
|
98
|
+
_id: string;
|
|
99
|
+
title: string;
|
|
100
|
+
isVisible: boolean;
|
|
101
|
+
position?: number;
|
|
102
|
+
}];
|
|
103
|
+
parentId?: string;
|
|
104
|
+
position?: number;
|
|
105
|
+
}, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
106
|
+
} & {
|
|
107
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, {
|
|
108
|
+
comments: {
|
|
109
|
+
id: string;
|
|
110
|
+
comment: string;
|
|
111
|
+
authorId: string;
|
|
112
|
+
authorName: string;
|
|
113
|
+
createdAt: number;
|
|
114
|
+
updatedAt: number;
|
|
115
|
+
replyTo: string | undefined;
|
|
116
|
+
deleted: boolean | undefined;
|
|
117
|
+
}[] | undefined;
|
|
118
|
+
isVisible: boolean;
|
|
119
|
+
_id: string;
|
|
120
|
+
title: string;
|
|
121
|
+
content: string;
|
|
122
|
+
contentPlain: string;
|
|
123
|
+
contentVersion: number;
|
|
124
|
+
author: string;
|
|
125
|
+
authorName: string;
|
|
126
|
+
created?: import('../../../models').Created;
|
|
127
|
+
modified: import('../../../models').Modified;
|
|
128
|
+
lastContributer?: string;
|
|
129
|
+
lastContributerName?: string;
|
|
130
|
+
children?: [{
|
|
131
|
+
_id: string;
|
|
132
|
+
title: string;
|
|
133
|
+
isVisible: boolean;
|
|
134
|
+
position?: number;
|
|
135
|
+
}];
|
|
136
|
+
parentId?: string;
|
|
137
|
+
position?: number;
|
|
138
|
+
}>;
|
|
139
|
+
};
|
|
140
|
+
findAllFromWiki: ({ wikiId, content, }: {
|
|
141
|
+
wikiId: string;
|
|
142
|
+
content: boolean;
|
|
143
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Page[], Error, import('../../../models').Page[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
144
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Page[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
145
|
+
} & {
|
|
146
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').Page[]>;
|
|
147
|
+
};
|
|
148
|
+
findAllRevisionsForPage: ({ wikiId, pageId, }: {
|
|
149
|
+
wikiId: string;
|
|
150
|
+
pageId: string;
|
|
151
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision[], Error, import('../../../models/revision').Revision[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
152
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
153
|
+
} & {
|
|
154
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models/revision').Revision[]>;
|
|
155
|
+
};
|
|
156
|
+
findOneRevision: ({ wikiId, pageId, revisionId, }: {
|
|
157
|
+
wikiId: string;
|
|
158
|
+
pageId: string;
|
|
159
|
+
revisionId?: string;
|
|
160
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models/revision').Revision, Error, import('../../../models/revision').Revision, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
161
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models/revision').Revision, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
162
|
+
} & {
|
|
163
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models/revision').Revision>;
|
|
164
|
+
};
|
|
165
|
+
findPagesViewsCounter: ({ pageIds }: {
|
|
166
|
+
pageIds: string[];
|
|
167
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsCounters, Error, import('@edifice.io/client').ViewsCounters, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
168
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsCounters, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
169
|
+
} & {
|
|
170
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').ViewsCounters>;
|
|
171
|
+
};
|
|
172
|
+
findPageViewsDetails: ({ pageId }: {
|
|
173
|
+
pageId: string;
|
|
174
|
+
}) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').ViewsDetails | undefined, Error, import('@edifice.io/client').ViewsDetails | undefined, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
175
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').ViewsDetails | undefined, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
176
|
+
} & {
|
|
177
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').ViewsDetails | undefined>;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* All queries and mutations
|
|
182
|
+
*/
|
|
183
|
+
export declare const useGetPage: ({ wikiId, pageId, originalformat, }: {
|
|
184
|
+
wikiId: string;
|
|
185
|
+
pageId: string;
|
|
186
|
+
originalformat?: boolean;
|
|
187
|
+
}) => import('@tanstack/react-query').UseQueryResult<{
|
|
188
|
+
comments: {
|
|
189
|
+
id: string;
|
|
190
|
+
comment: string;
|
|
191
|
+
authorId: string;
|
|
192
|
+
authorName: string;
|
|
193
|
+
createdAt: number;
|
|
194
|
+
updatedAt: number;
|
|
195
|
+
replyTo: string | undefined;
|
|
196
|
+
deleted: boolean | undefined;
|
|
197
|
+
}[] | undefined;
|
|
198
|
+
isVisible: boolean;
|
|
199
|
+
_id: string;
|
|
200
|
+
title: string;
|
|
201
|
+
content: string;
|
|
202
|
+
contentPlain: string;
|
|
203
|
+
contentVersion: number;
|
|
204
|
+
author: string;
|
|
205
|
+
authorName: string;
|
|
206
|
+
created?: import('../../../models').Created;
|
|
207
|
+
modified: import('../../../models').Modified;
|
|
208
|
+
lastContributer?: string;
|
|
209
|
+
lastContributerName?: string;
|
|
210
|
+
children?: [{
|
|
211
|
+
_id: string;
|
|
212
|
+
title: string;
|
|
213
|
+
isVisible: boolean;
|
|
214
|
+
position?: number;
|
|
215
|
+
}];
|
|
216
|
+
parentId?: string;
|
|
217
|
+
position?: number;
|
|
218
|
+
}, Error>;
|
|
219
|
+
export declare const useGetPagesFromWiki: ({ wikiId, content, }: {
|
|
220
|
+
wikiId: string;
|
|
221
|
+
content: boolean;
|
|
222
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('../../../models').Page[], Error>;
|
|
223
|
+
export declare const useGetPagesViewsCounter: ({ pageIds }: {
|
|
224
|
+
pageIds: string[];
|
|
225
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('@edifice.io/client').ViewsCounters, Error>;
|
|
226
|
+
export declare const useGetPageViewsDetails: ({ pageId }: {
|
|
227
|
+
pageId: string;
|
|
228
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('@edifice.io/client').ViewsDetails | undefined, Error>;
|
|
229
|
+
export declare const useGetRevisionsPage: ({ wikiId, pageId, }: {
|
|
230
|
+
wikiId: string;
|
|
231
|
+
pageId: string;
|
|
232
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('../../../models/revision').Revision[], Error>;
|
|
233
|
+
export declare const useGetRevisionPage: ({ wikiId, pageId, revisionId, }: {
|
|
234
|
+
wikiId: string;
|
|
235
|
+
pageId: string;
|
|
236
|
+
revisionId?: string;
|
|
237
|
+
}) => import('@tanstack/react-query').UseQueryResult<import('../../../models/revision').Revision, Error>;
|
|
238
|
+
export declare const useCreatePage: () => import('@tanstack/react-query').UseMutationResult<import('../../../models').Page, Error, {
|
|
239
|
+
wikiId: string;
|
|
240
|
+
data: PagePostPayload;
|
|
241
|
+
}, unknown>;
|
|
242
|
+
export declare const useUpdatePage: () => import('@tanstack/react-query').UseMutationResult<import('../../../models').Page, Error, {
|
|
243
|
+
wikiId: string;
|
|
244
|
+
pageId: string;
|
|
245
|
+
data: PagePutPayload;
|
|
246
|
+
}, unknown>;
|
|
247
|
+
export declare const useDeletePage: () => import('@tanstack/react-query').UseMutationResult<import('../../../models').Page, Error, {
|
|
248
|
+
wikiId: string;
|
|
249
|
+
pageId: string;
|
|
250
|
+
}, unknown>;
|
|
251
|
+
/**
|
|
252
|
+
* Duplicate page mutation
|
|
253
|
+
* On success, invalidate the following queries:
|
|
254
|
+
*/
|
|
255
|
+
export declare const useDuplicatePage: () => {
|
|
256
|
+
shouldIncludeSubPages: boolean;
|
|
257
|
+
toggleShouldIncludeSubPages: () => void;
|
|
258
|
+
mutation: import('@tanstack/react-query').UseMutationResult<DuplicatePageResultOrError, Error, {
|
|
259
|
+
sourceWikiId: string;
|
|
260
|
+
sourcePageId: string;
|
|
261
|
+
targetWikiIds: string[];
|
|
262
|
+
shouldIncludeSubPages: boolean;
|
|
263
|
+
}, unknown>;
|
|
264
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const pollQueryOptions: {
|
|
2
|
+
base: readonly ["poll"];
|
|
3
|
+
findOne: (pollName: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../api/poll/poll.types').Poll, Error, import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
4
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../api/poll/poll.types').Poll, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../api/poll/poll.types').Poll>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const useGetPoll: (pollName: string) => import('@tanstack/react-query').UseQueryResult<import('../../api/poll/poll.types').Poll, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wiki Query Options Factory
|
|
3
|
+
*/
|
|
4
|
+
export declare const wikiQueryOptions: {
|
|
5
|
+
base: readonly ["wiki"];
|
|
6
|
+
findAllAsResources: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('@edifice.io/client').IResource[], Error, import('@edifice.io/client').IResource[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
7
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('@edifice.io/client').IResource[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('@edifice.io/client').IResource[]>;
|
|
10
|
+
};
|
|
11
|
+
findAll: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').PickedWiki[], Error, import('../../../models').PickedWiki[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
12
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').PickedWiki[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').PickedWiki[]>;
|
|
15
|
+
};
|
|
16
|
+
findAllWithPages: () => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../../../models').Wiki[], Error, import('../../../models').Wiki[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
17
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<import('../../../models').Wiki[], import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../../../models').Wiki[]>;
|
|
20
|
+
};
|
|
21
|
+
findOne: (wikiId: string) => import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
|
|
22
|
+
pages: {
|
|
23
|
+
isVisible: boolean;
|
|
24
|
+
_id: string;
|
|
25
|
+
title: string;
|
|
26
|
+
content: string;
|
|
27
|
+
contentPlain: string;
|
|
28
|
+
contentVersion: number;
|
|
29
|
+
author: string;
|
|
30
|
+
authorName: string;
|
|
31
|
+
modified: import('../../../models').Modified;
|
|
32
|
+
created?: import('../../../models').Created;
|
|
33
|
+
lastContributer?: string;
|
|
34
|
+
lastContributerName?: string;
|
|
35
|
+
comments?: import('../../../models').Comment[];
|
|
36
|
+
children?: [{
|
|
37
|
+
_id: string;
|
|
38
|
+
title: string;
|
|
39
|
+
isVisible: boolean;
|
|
40
|
+
position?: number;
|
|
41
|
+
}];
|
|
42
|
+
position?: number;
|
|
43
|
+
parentId?: string;
|
|
44
|
+
error?: any;
|
|
45
|
+
views?: number;
|
|
46
|
+
aiMetadata?: {
|
|
47
|
+
contentGenerated?: boolean;
|
|
48
|
+
contentGeneratedDate?: import('../../../models').Created;
|
|
49
|
+
};
|
|
50
|
+
}[];
|
|
51
|
+
_id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
thumbnail: string;
|
|
54
|
+
created: import('../../../models').Created;
|
|
55
|
+
modified: import('../../../models').Modified;
|
|
56
|
+
owner: import('../../../models').Owner;
|
|
57
|
+
rights: string[];
|
|
58
|
+
index?: string;
|
|
59
|
+
shared?: string[];
|
|
60
|
+
aiGenerated?: boolean;
|
|
61
|
+
aiMetadata?: import('../../../models').AIMetadata;
|
|
62
|
+
}, Error, {
|
|
63
|
+
pages: {
|
|
64
|
+
isVisible: boolean;
|
|
65
|
+
_id: string;
|
|
66
|
+
title: string;
|
|
67
|
+
content: string;
|
|
68
|
+
contentPlain: string;
|
|
69
|
+
contentVersion: number;
|
|
70
|
+
author: string;
|
|
71
|
+
authorName: string;
|
|
72
|
+
modified: import('../../../models').Modified;
|
|
73
|
+
created?: import('../../../models').Created;
|
|
74
|
+
lastContributer?: string;
|
|
75
|
+
lastContributerName?: string;
|
|
76
|
+
comments?: import('../../../models').Comment[];
|
|
77
|
+
children?: [{
|
|
78
|
+
_id: string;
|
|
79
|
+
title: string;
|
|
80
|
+
isVisible: boolean;
|
|
81
|
+
position?: number;
|
|
82
|
+
}];
|
|
83
|
+
position?: number;
|
|
84
|
+
parentId?: string;
|
|
85
|
+
error?: any;
|
|
86
|
+
views?: number;
|
|
87
|
+
aiMetadata?: {
|
|
88
|
+
contentGenerated?: boolean;
|
|
89
|
+
contentGeneratedDate?: import('../../../models').Created;
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
_id: string;
|
|
93
|
+
title: string;
|
|
94
|
+
thumbnail: string;
|
|
95
|
+
created: import('../../../models').Created;
|
|
96
|
+
modified: import('../../../models').Modified;
|
|
97
|
+
owner: import('../../../models').Owner;
|
|
98
|
+
rights: string[];
|
|
99
|
+
index?: string;
|
|
100
|
+
shared?: string[];
|
|
101
|
+
aiGenerated?: boolean;
|
|
102
|
+
aiMetadata?: import('../../../models').AIMetadata;
|
|
103
|
+
}, import('@tanstack/react-query').QueryKey>, "queryFn"> & {
|
|
104
|
+
queryFn?: import('@tanstack/react-query').QueryFunction<{
|
|
105
|
+
pages: {
|
|
106
|
+
isVisible: boolean;
|
|
107
|
+
_id: string;
|
|
108
|
+
title: string;
|
|
109
|
+
content: string;
|
|
110
|
+
contentPlain: string;
|
|
111
|
+
contentVersion: number;
|
|
112
|
+
author: string;
|
|
113
|
+
authorName: string;
|
|
114
|
+
modified: import('../../../models').Modified;
|
|
115
|
+
created?: import('../../../models').Created;
|
|
116
|
+
lastContributer?: string;
|
|
117
|
+
lastContributerName?: string;
|
|
118
|
+
comments?: import('../../../models').Comment[];
|
|
119
|
+
children?: [{
|
|
120
|
+
_id: string;
|
|
121
|
+
title: string;
|
|
122
|
+
isVisible: boolean;
|
|
123
|
+
position?: number;
|
|
124
|
+
}];
|
|
125
|
+
position?: number;
|
|
126
|
+
parentId?: string;
|
|
127
|
+
error?: any;
|
|
128
|
+
views?: number;
|
|
129
|
+
aiMetadata?: {
|
|
130
|
+
contentGenerated?: boolean;
|
|
131
|
+
contentGeneratedDate?: import('../../../models').Created;
|
|
132
|
+
};
|
|
133
|
+
}[];
|
|
134
|
+
_id: string;
|
|
135
|
+
title: string;
|
|
136
|
+
thumbnail: string;
|
|
137
|
+
created: import('../../../models').Created;
|
|
138
|
+
modified: import('../../../models').Modified;
|
|
139
|
+
owner: import('../../../models').Owner;
|
|
140
|
+
rights: string[];
|
|
141
|
+
index?: string;
|
|
142
|
+
shared?: string[];
|
|
143
|
+
aiGenerated?: boolean;
|
|
144
|
+
aiMetadata?: import('../../../models').AIMetadata;
|
|
145
|
+
}, import('@tanstack/react-query').QueryKey, never> | undefined;
|
|
146
|
+
} & {
|
|
147
|
+
queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, {
|
|
148
|
+
pages: {
|
|
149
|
+
isVisible: boolean;
|
|
150
|
+
_id: string;
|
|
151
|
+
title: string;
|
|
152
|
+
content: string;
|
|
153
|
+
contentPlain: string;
|
|
154
|
+
contentVersion: number;
|
|
155
|
+
author: string;
|
|
156
|
+
authorName: string;
|
|
157
|
+
modified: import('../../../models').Modified;
|
|
158
|
+
created?: import('../../../models').Created;
|
|
159
|
+
lastContributer?: string;
|
|
160
|
+
lastContributerName?: string;
|
|
161
|
+
comments?: import('../../../models').Comment[];
|
|
162
|
+
children?: [{
|
|
163
|
+
_id: string;
|
|
164
|
+
title: string;
|
|
165
|
+
isVisible: boolean;
|
|
166
|
+
position?: number;
|
|
167
|
+
}];
|
|
168
|
+
position?: number;
|
|
169
|
+
parentId?: string;
|
|
170
|
+
error?: any;
|
|
171
|
+
views?: number;
|
|
172
|
+
aiMetadata?: {
|
|
173
|
+
contentGenerated?: boolean;
|
|
174
|
+
contentGeneratedDate?: import('../../../models').Created;
|
|
175
|
+
};
|
|
176
|
+
}[];
|
|
177
|
+
_id: string;
|
|
178
|
+
title: string;
|
|
179
|
+
thumbnail: string;
|
|
180
|
+
created: import('../../../models').Created;
|
|
181
|
+
modified: import('../../../models').Modified;
|
|
182
|
+
owner: import('../../../models').Owner;
|
|
183
|
+
rights: string[];
|
|
184
|
+
index?: string;
|
|
185
|
+
shared?: string[];
|
|
186
|
+
aiGenerated?: boolean;
|
|
187
|
+
aiMetadata?: import('../../../models').AIMetadata;
|
|
188
|
+
}>;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
export declare const useGetWikis: () => import('@tanstack/react-query').UseQueryResult<import('../../../models').PickedWiki[], Error>;
|
|
192
|
+
export declare const useGetAllWikisAsResources: () => import('@tanstack/react-query').UseQueryResult<import('@edifice.io/client').IResource[], Error>;
|
|
193
|
+
export declare const useGetAllWikisWithPages: () => import('@tanstack/react-query').UseQueryResult<import('../../../models').Wiki[], Error>;
|
|
194
|
+
export declare const useGetWiki: (wikiId: string) => import('@tanstack/react-query').UseQueryResult<{
|
|
195
|
+
pages: {
|
|
196
|
+
isVisible: boolean;
|
|
197
|
+
_id: string;
|
|
198
|
+
title: string;
|
|
199
|
+
content: string;
|
|
200
|
+
contentPlain: string;
|
|
201
|
+
contentVersion: number;
|
|
202
|
+
author: string;
|
|
203
|
+
authorName: string;
|
|
204
|
+
modified: import('../../../models').Modified;
|
|
205
|
+
created?: import('../../../models').Created;
|
|
206
|
+
lastContributer?: string;
|
|
207
|
+
lastContributerName?: string;
|
|
208
|
+
comments?: import('../../../models').Comment[];
|
|
209
|
+
children?: [{
|
|
210
|
+
_id: string;
|
|
211
|
+
title: string;
|
|
212
|
+
isVisible: boolean;
|
|
213
|
+
position?: number;
|
|
214
|
+
}];
|
|
215
|
+
position?: number;
|
|
216
|
+
parentId?: string;
|
|
217
|
+
error?: any;
|
|
218
|
+
views?: number;
|
|
219
|
+
aiMetadata?: {
|
|
220
|
+
contentGenerated?: boolean;
|
|
221
|
+
contentGeneratedDate?: import('../../../models').Created;
|
|
222
|
+
};
|
|
223
|
+
}[];
|
|
224
|
+
_id: string;
|
|
225
|
+
title: string;
|
|
226
|
+
thumbnail: string;
|
|
227
|
+
created: import('../../../models').Created;
|
|
228
|
+
modified: import('../../../models').Modified;
|
|
229
|
+
owner: import('../../../models').Owner;
|
|
230
|
+
rights: string[];
|
|
231
|
+
index?: string;
|
|
232
|
+
shared?: string[];
|
|
233
|
+
aiGenerated?: boolean;
|
|
234
|
+
aiMetadata?: import('../../../models').AIMetadata;
|
|
235
|
+
}, Error>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CreateParameters, CreateResult, ResourceService, UpdateParameters, UpdateResult } from '@edifice.io/client';
|
|
2
|
+
export declare class WikiResourceService extends ResourceService {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @returns APP
|
|
6
|
+
*/
|
|
7
|
+
getApplication(): string;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param resourceId
|
|
11
|
+
* @returns print url
|
|
12
|
+
*/
|
|
13
|
+
getPrintUrl(resourceId: string): string;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param resourceId
|
|
17
|
+
* @returns resource url
|
|
18
|
+
*/
|
|
19
|
+
getViewUrl(resourceId: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* (optional) Must be use to redirect to angularjs route to create a resource
|
|
22
|
+
* @param folderId
|
|
23
|
+
*/
|
|
24
|
+
getFormUrl(): string;
|
|
25
|
+
/**
|
|
26
|
+
* (optional) Must be use to redirect to angularjs route to edit a resource
|
|
27
|
+
* @param resourceId
|
|
28
|
+
*/
|
|
29
|
+
getEditUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Allow to create a new resource
|
|
32
|
+
* @param parameters
|
|
33
|
+
* @returns id and thumbnail
|
|
34
|
+
*/
|
|
35
|
+
create(parameters: CreateParameters): Promise<CreateResult>;
|
|
36
|
+
/**
|
|
37
|
+
* Allow to update a resource
|
|
38
|
+
* @param parameters
|
|
39
|
+
* @returns thumbnail and id
|
|
40
|
+
*/
|
|
41
|
+
update(parameters: UpdateParameters): Promise<UpdateResult>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @returns RESOURCE
|
|
45
|
+
*/
|
|
46
|
+
getResourceType(): string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PagesAssistantAIFormValues, PageStructure } from '../../services/api/assistant/assistant.types';
|
|
2
|
+
export declare const useFormValuesStore: () => PagesAssistantAIFormValues;
|
|
3
|
+
export declare const usePagesStructureStore: () => PageStructure[];
|
|
4
|
+
export declare const usePagesAssistantActions: () => {
|
|
5
|
+
setFormValues: (formData: PagesAssistantAIFormValues) => void;
|
|
6
|
+
setPagesStructure: (pagesStructure: PageStructure[]) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RightRole } from '@edifice.io/client';
|
|
2
|
+
type UserRights = Record<RightRole, boolean>;
|
|
3
|
+
export declare const getUserRights: () => UserRights;
|
|
4
|
+
export declare const getUserRightsActions: () => {
|
|
5
|
+
setUserRights: (userRights: UserRights) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useUserRights: () => UserRights;
|
|
8
|
+
export declare const useUserRightsActions: () => {
|
|
9
|
+
setUserRights: (userRights: UserRights) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ToastMessage {
|
|
2
|
+
type: 'success' | 'error' | 'info' | 'warning';
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const getToastActions: () => {
|
|
6
|
+
addToastMessage: (message: Omit<ToastMessage, "id">) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useToastMessages: () => ToastMessage[];
|
|
9
|
+
export declare const useToastActions: () => {
|
|
10
|
+
addToastMessage: (message: Omit<ToastMessage, "id">) => void;
|
|
11
|
+
clearToastMessages: () => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WikiTreeItem } from '../../models';
|
|
2
|
+
export declare const getTreeData: () => WikiTreeItem[];
|
|
3
|
+
export declare const getTreeActions: () => {
|
|
4
|
+
setTreeData: (treeData: WikiTreeItem[]) => void;
|
|
5
|
+
setSelectedNodeId: (selectedNodeId: string | null) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useTreeData: () => WikiTreeItem[];
|
|
8
|
+
export declare const useSelectedNodeId: () => string | null;
|
|
9
|
+
export declare const useTreeActions: () => {
|
|
10
|
+
setTreeData: (treeData: WikiTreeItem[]) => void;
|
|
11
|
+
setSelectedNodeId: (selectedNodeId: string | null) => void;
|
|
12
|
+
};
|