@whitewall/blip-warehouse 0.0.7 → 0.0.8
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.
|
@@ -17,11 +17,15 @@ export type SearchResultTypes = {
|
|
|
17
17
|
messages: IndexedMessage;
|
|
18
18
|
};
|
|
19
19
|
export type PaginationCursor = z.infer<typeof cursorSchema>;
|
|
20
|
+
export type SearchResultItem = {
|
|
21
|
+
index: 'contacts';
|
|
22
|
+
data: IndexedContact;
|
|
23
|
+
} | {
|
|
24
|
+
index: 'messages';
|
|
25
|
+
data: IndexedMessage;
|
|
26
|
+
};
|
|
20
27
|
export type SearchResult = {
|
|
21
|
-
items: Array<
|
|
22
|
-
index: keyof SearchResultTypes;
|
|
23
|
-
data: SearchResultTypes[keyof SearchResultTypes];
|
|
24
|
-
}>;
|
|
28
|
+
items: Array<SearchResultItem>;
|
|
25
29
|
cursor?: PaginationCursor;
|
|
26
30
|
};
|
|
27
31
|
export type SearchParams = {
|