@livetiles/reach-plugin-types 0.4.0-preview.225 → 0.4.0-preview.230
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/index.d.ts +4 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -9615,7 +9615,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
9615
9615
|
isUnread: boolean;
|
|
9616
9616
|
keywordsList?: Keyword[];
|
|
9617
9617
|
groupIds?: string[];
|
|
9618
|
-
postAuthor: StreamAuthor;
|
|
9619
9618
|
postAttachments?: StreamAttachment[];
|
|
9620
9619
|
postComments?: PaginatedList<StreamPostComment>;
|
|
9621
9620
|
hasMoreUnreadComments: boolean;
|
|
@@ -9659,9 +9658,6 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
|
|
|
9659
9658
|
intro?: string;
|
|
9660
9659
|
headline?: string;
|
|
9661
9660
|
}
|
|
9662
|
-
export interface StreamAuthor {
|
|
9663
|
-
userId: string;
|
|
9664
|
-
}
|
|
9665
9661
|
export type StreamItem = PostStreamItem | NewsStreamItem | EventStreamItem | PageStreamItem;
|
|
9666
9662
|
export function isPost(item: StreamItem): item is PostStreamItem;
|
|
9667
9663
|
export function isNews(item: StreamItem): item is NewsStreamItem;
|
|
@@ -9680,7 +9676,7 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
9680
9676
|
}
|
|
9681
9677
|
export interface StreamFilterDefinition extends BeforePublishingDateFilterDefinition, OwnerFilterDefinition, ChannelsFilterDefinition, KeywordsFilterDefinition, ItemTypeFilterDefinition {
|
|
9682
9678
|
}
|
|
9683
|
-
export function useStreamItemsQuery(query: DocumentNode, searchText?: string, doNotLoadOnEmpty?: boolean): {
|
|
9679
|
+
export function useStreamItemsQuery(query: DocumentNode, searchText?: string, defaultPageSize?: number, doNotLoadOnEmpty?: boolean): {
|
|
9684
9680
|
items: StreamItem[];
|
|
9685
9681
|
setItems: import("react").Dispatch<import("react").SetStateAction<StreamItem[]>>;
|
|
9686
9682
|
loadMore: () => Promise<void>;
|
|
@@ -9693,6 +9689,9 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
|
|
|
9693
9689
|
};
|
|
9694
9690
|
export const getStreamQuery: () => DocumentNode;
|
|
9695
9691
|
export const getSearchQuery: (filter?: StreamFilterDefinition, channels?: Channel[]) => DocumentNode;
|
|
9692
|
+
export const CHANNELS_OR_CONDITION: (channels: string[]) => string;
|
|
9693
|
+
export const KEYWORDS_OR_CONDITION: (keywords: string[]) => string;
|
|
9694
|
+
export const NEWS_QUERY: (includeAllItems: boolean, whereConditions?: string) => DocumentNode;
|
|
9696
9695
|
export const STREAM_QUERY: (includeAllItems: boolean, additionalWhereConditions?: string) => DocumentNode;
|
|
9697
9696
|
export const MARK_STREAM_AS_READ_MUTATION: DocumentNode;
|
|
9698
9697
|
export const MARK_ITEMS_AS_READ_MUTATION: DocumentNode;
|