@crossworks/client-types 0.232.204 → 0.232.207
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/package.json +1 -1
- package/src/dto/rows.ts +15 -0
package/package.json
CHANGED
package/src/dto/rows.ts
CHANGED
|
@@ -130,6 +130,21 @@ export type PageRow = {
|
|
|
130
130
|
updatedAt: string;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
/**
|
|
134
|
+
* A row of the /pages LIST response (`GET /api/pages`): a `PageRow` plus where
|
|
135
|
+
* it sits in the hierarchy. The list needs this per row because a search or tag
|
|
136
|
+
* filter returns only the HITS, so the client cannot derive it from the rows it
|
|
137
|
+
* holds: a hit's children and its parent are usually not among them.
|
|
138
|
+
*/
|
|
139
|
+
export type PageListRow = PageRow & {
|
|
140
|
+
/** Direct sub-pages, counted across the whole hierarchy (not just this
|
|
141
|
+
* response), so a search hit can offer the way into its sub-pages. */
|
|
142
|
+
childCount: number;
|
|
143
|
+
/** The parent page's title, or null for a top-level page, so a hit can say
|
|
144
|
+
* where it lives. */
|
|
145
|
+
parentTitle: string | null;
|
|
146
|
+
};
|
|
147
|
+
|
|
133
148
|
export type AppRow = {
|
|
134
149
|
id: string;
|
|
135
150
|
title: string;
|