File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
packages/notion-types/src Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type CollectionViewType =
7
7
| 'list'
8
8
| 'board'
9
9
| 'calendar'
10
+ | 'reducer'
10
11
11
12
export type CollectionCardCoverType =
12
13
| 'page_cover'
@@ -123,9 +124,18 @@ export interface CalendarCollectionView extends BaseCollectionView {
123
124
// TODO
124
125
}
125
126
127
+ export interface ReducerCollectionView {
128
+ type : 'reducer' ,
129
+ reducerResults : {
130
+ collection_group_results : object
131
+ }
132
+ sizeHint : number
133
+ }
134
+
126
135
export type CollectionView =
127
136
| TableCollectionView
128
137
| GalleryCollectionView
129
138
| ListCollectionView
130
139
| BoardCollectionView
131
140
| CalendarCollectionView
141
+ | ReducerCollectionView
Original file line number Diff line number Diff line change @@ -88,6 +88,18 @@ export interface CollectionQueryResult {
88
88
blockIds : ID [ ]
89
89
hasMore : boolean
90
90
}
91
+
92
+ reducerResults ?: {
93
+ collection_group_results : {
94
+ type : string
95
+ blockIds : ID [ ]
96
+ hasMore : boolean
97
+ }
98
+ }
99
+
100
+ collectionIds : ID [ ]
101
+
102
+ recordMap ?: ExtendedRecordMap
91
103
}
92
104
93
105
export interface AggregationResult {
You can’t perform that action at this time.
0 commit comments