@livetiles/reach-plugin-types 0.4.0-preview.211 → 0.4.0-preview.215

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +148 -3
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1797,7 +1797,6 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1797
1797
  headline?: string;
1798
1798
  intro?: string;
1799
1799
  body?: string;
1800
- bodyRaw?: string;
1801
1800
  customProperties?: {
1802
1801
  [key: string]: any;
1803
1802
  };
@@ -9595,8 +9594,107 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
9595
9594
  onAfterDelete?: (id: string) => unknown;
9596
9595
  }>;
9597
9596
  }
9598
- declare module "libs/reach/feature/content/src/stream/stream-utils" {
9599
- export const MARK_ITEMS_AS_READ_MUTATION: import("@apollo/client").DocumentNode;
9597
+ declare module "libs/reach/feature/content/src/stream/streamUtils" {
9598
+ import { BaseAttachment, Comment, EventItem, GraphQLAttachmentType, Keyword, NewsItem, PageItem, PageNavigationNode, PaginatedList } from "libs/reach/util/common/src/index";
9599
+ import { Post } from "libs/reach/feature/content/src/posts/index";
9600
+ import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
9601
+ enum StreamItemTypes {
9602
+ Post = "POST",
9603
+ News = "NEWS",
9604
+ Event = "EVENT",
9605
+ Page = "PAGE"
9606
+ }
9607
+ export enum StreamConversationScope {
9608
+ Public = "PUBLIC",
9609
+ Editor = "EDITOR",
9610
+ Posts = "POSTS"
9611
+ }
9612
+ export interface PostStreamItem extends Post {
9613
+ type: StreamItemTypes.Post;
9614
+ isUnread: boolean;
9615
+ keywordsList?: Keyword[];
9616
+ groupIds?: string[];
9617
+ postAuthor: StreamAuthor;
9618
+ postAttachments?: StreamAttachment[];
9619
+ postComments?: PaginatedList<StreamPostComment>;
9620
+ hasMoreUnreadComments: boolean;
9621
+ }
9622
+ export interface StreamPostComment extends Comment {
9623
+ postCommentAttachments?: StreamAttachment[];
9624
+ streamConversationScope?: StreamConversationScope;
9625
+ }
9626
+ export interface StreamAttachment extends BaseAttachment {
9627
+ type: GraphQLAttachmentType;
9628
+ }
9629
+ export interface NewsStreamItem extends NewsItem {
9630
+ type: StreamItemTypes.News;
9631
+ contentsList: StreamPublishableItemContents[];
9632
+ channelsList: string[];
9633
+ isUnread: boolean;
9634
+ keywordsList?: Keyword[];
9635
+ }
9636
+ export interface EventStreamItem extends EventItem {
9637
+ type: StreamItemTypes.Event;
9638
+ contentsList: StreamPublishableItemContents[];
9639
+ channelsList: string[];
9640
+ isUnread: boolean;
9641
+ keywordsList?: Keyword[];
9642
+ userResponseType?: StreamEventResponse;
9643
+ }
9644
+ export interface PageStreamItem extends PageItem {
9645
+ type: StreamItemTypes.Page;
9646
+ contentsList: StreamPublishableItemContents[];
9647
+ channelsList: string[];
9648
+ isUnread: boolean;
9649
+ keywordsList?: Keyword[];
9650
+ streamPageType?: string;
9651
+ path?: (PageNavigationNode & {
9652
+ parentId?: string;
9653
+ })[];
9654
+ }
9655
+ interface StreamPublishableItemContents {
9656
+ language: string;
9657
+ title: string;
9658
+ intro?: string;
9659
+ headline?: string;
9660
+ }
9661
+ export interface StreamAuthor {
9662
+ userId: string;
9663
+ }
9664
+ export type StreamItem = PostStreamItem | NewsStreamItem | EventStreamItem | PageStreamItem;
9665
+ export function isPost(item: StreamItem): item is PostStreamItem;
9666
+ export function isNews(item: StreamItem): item is NewsStreamItem;
9667
+ export function isEvent(item: StreamItem): item is EventStreamItem;
9668
+ export function isPage(item: StreamItem): item is PageStreamItem;
9669
+ }
9670
+ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
9671
+ import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
9672
+ import { DocumentNode } from '@apollo/client';
9673
+ import { Channel } from "libs/reach/util/common/src/index";
9674
+ import { BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, ItemTypeFilterDefinition, KeywordsFilterDefinition, OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/index";
9675
+ export enum StreamEventResponse {
9676
+ NotSet = "NOTSET",
9677
+ Registered = "REGISTERED",
9678
+ Declined = "DECLINED"
9679
+ }
9680
+ export interface StreamFilterDefinition extends BeforePublishingDateFilterDefinition, OwnerFilterDefinition, ChannelsFilterDefinition, KeywordsFilterDefinition, ItemTypeFilterDefinition {
9681
+ }
9682
+ export function useStreamItemsQuery(query: DocumentNode, searchText?: string, doNotLoadOnEmpty?: boolean): {
9683
+ items: StreamItem[];
9684
+ setItems: import("react").Dispatch<import("react").SetStateAction<StreamItem[]>>;
9685
+ loadMore: () => Promise<void>;
9686
+ pageInfo: {
9687
+ errors?: any;
9688
+ hasNextPage: boolean;
9689
+ skip: number;
9690
+ };
9691
+ refresh: () => Promise<void>;
9692
+ };
9693
+ export const getStreamQuery: () => DocumentNode;
9694
+ export const getSearchQuery: (filter?: StreamFilterDefinition, channels?: Channel[]) => DocumentNode;
9695
+ export const STREAM_QUERY: (includeAllItems: boolean, additionalWhereConditions?: string) => DocumentNode;
9696
+ export const MARK_STREAM_AS_READ_MUTATION: DocumentNode;
9697
+ export const MARK_ITEMS_AS_READ_MUTATION: DocumentNode;
9600
9698
  }
9601
9699
  declare module "libs/reach/feature/content/src/posts/useMarkPostsAndCommentsAsRead" {
9602
9700
  import { Post } from "libs/reach/feature/content/src/posts/utils";
@@ -9728,6 +9826,51 @@ declare module "libs/reach/feature/content/src/editor/index" {
9728
9826
  declare module "libs/reach/feature/content/src/public-user/index" {
9729
9827
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
9730
9828
  }
9829
+ declare module "libs/reach/feature/content/src/stream/StreamPostItemCard" {
9830
+ import { FC } from 'react';
9831
+ import { PostStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
9832
+ export const StreamPostItemCard: FC<{
9833
+ post: PostStreamItem;
9834
+ onPostDelete: (id: string) => unknown;
9835
+ }>;
9836
+ }
9837
+ declare module "libs/reach/feature/content/src/stream/StreamNewsItemCard" {
9838
+ import { FC } from 'react';
9839
+ import { NewsStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
9840
+ export const StreamNewsItemCard: FC<{
9841
+ news: NewsStreamItem;
9842
+ }>;
9843
+ }
9844
+ declare module "libs/reach/feature/content/src/stream/StreamEventItemCard" {
9845
+ import { FC } from 'react';
9846
+ import { EventStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
9847
+ export const StreamEventItemCard: FC<{
9848
+ event: EventStreamItem;
9849
+ }>;
9850
+ }
9851
+ declare module "libs/reach/feature/content/src/search/GlobalSearchButton" {
9852
+ import { FC } from 'react';
9853
+ export const GlobalSearchButton: FC;
9854
+ }
9855
+ declare module "libs/reach/feature/content/src/stream/StreamList" {
9856
+ import { FC } from 'react';
9857
+ import { StreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
9858
+ export type StreamQueryResult = {
9859
+ items: StreamItem[];
9860
+ };
9861
+ export const StreamList: FC;
9862
+ }
9863
+ declare module "libs/reach/feature/content/src/stream/index" {
9864
+ export * from "libs/reach/feature/content/src/stream/StreamList";
9865
+ export * from "libs/reach/feature/content/src/stream/streamUtils";
9866
+ export * from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
9867
+ export * from "libs/reach/feature/content/src/stream/StreamEventItemCard";
9868
+ export * from "libs/reach/feature/content/src/stream/StreamNewsItemCard";
9869
+ export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
9870
+ }
9871
+ declare module "libs/reach/feature/content/src/search/index" {
9872
+ export * from "libs/reach/feature/content/src/search/GlobalSearchButton";
9873
+ }
9731
9874
  declare module "libs/reach/feature/content/src/index" {
9732
9875
  export * from "libs/reach/feature/content/src/comments/index";
9733
9876
  export * from "libs/reach/feature/content/src/common/index";
@@ -9740,6 +9883,8 @@ declare module "libs/reach/feature/content/src/index" {
9740
9883
  export * from "libs/reach/feature/content/src/posts/index";
9741
9884
  export * from "libs/reach/feature/content/src/editor/index";
9742
9885
  export * from "libs/reach/feature/content/src/public-user/index";
9886
+ export * from "libs/reach/feature/content/src/stream/index";
9887
+ export * from "libs/reach/feature/content/src/search/index";
9743
9888
  }
9744
9889
  declare module "apps/reach-app/src/app/PublicAccessContext" {
9745
9890
  import { FC } from 'react';
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.211",
7
+ "version": "0.4.0-preview.215",
8
8
  "dependencies": {}
9
9
  }