@livetiles/reach-plugin-types 0.4.0-preview.439 → 0.4.0-preview.441

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 +160 -8
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -7165,6 +7165,8 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7165
7165
  export const EventPeopleInfo: FC<{
7166
7166
  item: EventItem;
7167
7167
  hideAnnouncer?: boolean;
7168
+ showFirstContactOnly?: boolean;
7169
+ labelResourceKey?: string;
7168
7170
  className?: string;
7169
7171
  }>;
7170
7172
  export const EventChannelsDisplay: FC<{
@@ -7468,6 +7470,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7468
7470
  export const EventUserRegistration: FC<{
7469
7471
  disabled?: boolean;
7470
7472
  hideInfoMessage?: boolean;
7473
+ showNoRegistrationRequired?: boolean;
7471
7474
  className?: string;
7472
7475
  }>;
7473
7476
  }
@@ -7477,6 +7480,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7477
7480
  export const EventCardUserRegistration: FC<{
7478
7481
  item: EventItem;
7479
7482
  disabled?: boolean;
7483
+ showNoRegistrationRequired?: boolean;
7480
7484
  className?: string;
7481
7485
  }>;
7482
7486
  }
@@ -8249,11 +8253,12 @@ declare module "libs/reach/feature/content/src/news/bookmark-button/BookmarkButt
8249
8253
  }
8250
8254
  declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8251
8255
  import { FC } from 'react';
8252
- import { NewsItem } from "libs/reach/util/common/src/index";
8256
+ import { EventItem, ItemResourceTypes, NewsItem } from "libs/reach/util/common/src/index";
8253
8257
  export const CardFooter: FC<{
8254
- item: NewsItem;
8258
+ item: NewsItem | EventItem;
8255
8259
  showComments: boolean;
8256
8260
  targetRoute: string;
8261
+ itemResourceType: ItemResourceTypes;
8257
8262
  }>;
8258
8263
  export const CardFooterHost: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {}, never>;
8259
8264
  }
@@ -9890,7 +9895,7 @@ declare module "libs/reach/feature/content/src/posts/PostWithSelfThreadHandling"
9890
9895
  }>;
9891
9896
  }
9892
9897
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
9893
- import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, CurrentUser, EventItem, EventResponse, GraphQLAttachmentType, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
9898
+ import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, CurrentUser, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
9894
9899
  import { Post } from "libs/reach/feature/content/src/posts/index";
9895
9900
  import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
9896
9901
  enum StreamItemTypes {
@@ -9939,6 +9944,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
9939
9944
  isUnread: boolean;
9940
9945
  keywordsList?: Keyword[];
9941
9946
  userResponseType?: StreamEventResponse;
9947
+ eventCancelInformation?: StreamEventCancelInformation;
9942
9948
  }
9943
9949
  export interface PageStreamItem extends PageItem {
9944
9950
  type: StreamItemTypes.Page;
@@ -9957,6 +9963,11 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
9957
9963
  intro?: string;
9958
9964
  headline?: string;
9959
9965
  }
9966
+ interface StreamEventCancelInformation extends EventCancelInformation {
9967
+ cancellationReasons?: {
9968
+ [key: string]: string;
9969
+ }[];
9970
+ }
9960
9971
  export type StreamItem = PostStreamItem | NewsStreamItem | EventStreamItem | PageStreamItem;
9961
9972
  export function isPost(item: StreamItem): item is PostStreamItem;
9962
9973
  export function isNews(item: StreamItem): item is NewsStreamItem;
@@ -10190,13 +10201,14 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10190
10201
  isUnread: boolean;
10191
10202
  keywordsList?: Keyword[];
10192
10203
  userResponseType?: StreamEventResponse;
10204
+ eventCancelInformation?: StreamEventCancelInformation;
10193
10205
  startDate?: string;
10194
10206
  endDate?: string;
10195
10207
  timeZone?: string;
10196
10208
  contacts?: import("@livetiles/reach/util/common").Account[];
10197
10209
  registrationSettings?: import("@livetiles/reach/util/common").EventRegistrationSettings;
10198
10210
  userResponse?: EventResponse;
10199
- cancelInformation?: import("@livetiles/reach/util/common").EventCancelInformation;
10211
+ cancelInformation?: EventCancelInformation;
10200
10212
  locations?: import("@livetiles/reach/util/common").EventLocation[];
10201
10213
  hasNewComments?: boolean;
10202
10214
  isLiked?: boolean;
@@ -10334,6 +10346,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10334
10346
  poll?: import("@livetiles/reach/util/common").Poll;
10335
10347
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10336
10348
  } | {
10349
+ cancelInformation: {
10350
+ reasons: {
10351
+ [key: string]: string;
10352
+ };
10353
+ cancellationReasons?: {
10354
+ [key: string]: string;
10355
+ }[];
10356
+ isCancelled?: boolean;
10357
+ modifiedOn?: string;
10358
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10359
+ };
10337
10360
  knownState?: undefined;
10338
10361
  pageType?: undefined;
10339
10362
  navigationContext?: undefined;
@@ -10378,6 +10401,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10378
10401
  fileAccessToken?: string;
10379
10402
  attachmentContainerId?: string;
10380
10403
  } | {
10404
+ cancelInformation: {
10405
+ reasons: {
10406
+ [key: string]: string;
10407
+ };
10408
+ cancellationReasons?: {
10409
+ [key: string]: string;
10410
+ }[];
10411
+ isCancelled?: boolean;
10412
+ modifiedOn?: string;
10413
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10414
+ };
10381
10415
  knownState: KnownNewsState;
10382
10416
  pageType?: undefined;
10383
10417
  navigationContext?: undefined;
@@ -10422,6 +10456,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10422
10456
  fileAccessToken?: string;
10423
10457
  attachmentContainerId?: string;
10424
10458
  } | {
10459
+ cancelInformation: {
10460
+ reasons: {
10461
+ [key: string]: string;
10462
+ };
10463
+ cancellationReasons?: {
10464
+ [key: string]: string;
10465
+ }[];
10466
+ isCancelled?: boolean;
10467
+ modifiedOn?: string;
10468
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10469
+ };
10425
10470
  knownState?: undefined;
10426
10471
  pageType: PageType;
10427
10472
  navigationContext: PageNavigationContext;
@@ -10466,6 +10511,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10466
10511
  fileAccessToken?: string;
10467
10512
  attachmentContainerId?: string;
10468
10513
  } | {
10514
+ cancelInformation: {
10515
+ reasons: {
10516
+ [key: string]: string;
10517
+ };
10518
+ cancellationReasons?: {
10519
+ [key: string]: string;
10520
+ }[];
10521
+ isCancelled?: boolean;
10522
+ modifiedOn?: string;
10523
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10524
+ };
10469
10525
  knownState: KnownNewsState;
10470
10526
  pageType: PageType;
10471
10527
  navigationContext: PageNavigationContext;
@@ -10510,6 +10566,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10510
10566
  fileAccessToken?: string;
10511
10567
  attachmentContainerId?: string;
10512
10568
  } | {
10569
+ cancelInformation: {
10570
+ reasons: {
10571
+ [key: string]: string;
10572
+ };
10573
+ cancellationReasons?: {
10574
+ [key: string]: string;
10575
+ }[];
10576
+ isCancelled?: boolean;
10577
+ modifiedOn?: string;
10578
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10579
+ };
10513
10580
  knownState: KnownNewsState;
10514
10581
  pageType?: undefined;
10515
10582
  navigationContext?: undefined;
@@ -10568,6 +10635,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10568
10635
  poll?: import("@livetiles/reach/util/common").Poll;
10569
10636
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10570
10637
  } | {
10638
+ cancelInformation: {
10639
+ reasons: {
10640
+ [key: string]: string;
10641
+ };
10642
+ cancellationReasons?: {
10643
+ [key: string]: string;
10644
+ }[];
10645
+ isCancelled?: boolean;
10646
+ modifiedOn?: string;
10647
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10648
+ };
10571
10649
  knownState: KnownNewsState;
10572
10650
  pageType: PageType;
10573
10651
  navigationContext: PageNavigationContext;
@@ -10626,6 +10704,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10626
10704
  poll?: import("@livetiles/reach/util/common").Poll;
10627
10705
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10628
10706
  } | {
10707
+ cancelInformation: {
10708
+ reasons: {
10709
+ [key: string]: string;
10710
+ };
10711
+ cancellationReasons?: {
10712
+ [key: string]: string;
10713
+ }[];
10714
+ isCancelled?: boolean;
10715
+ modifiedOn?: string;
10716
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10717
+ };
10629
10718
  knownState?: undefined;
10630
10719
  pageType?: undefined;
10631
10720
  navigationContext?: undefined;
@@ -10651,12 +10740,12 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10651
10740
  isUnread: boolean;
10652
10741
  keywordsList?: Keyword[];
10653
10742
  userResponseType?: StreamEventResponse;
10743
+ eventCancelInformation?: StreamEventCancelInformation;
10654
10744
  startDate?: string;
10655
10745
  endDate?: string;
10656
10746
  timeZone?: string;
10657
10747
  contacts?: import("@livetiles/reach/util/common").Account[];
10658
10748
  registrationSettings?: import("@livetiles/reach/util/common").EventRegistrationSettings;
10659
- cancelInformation?: import("@livetiles/reach/util/common").EventCancelInformation;
10660
10749
  locations?: import("@livetiles/reach/util/common").EventLocation[];
10661
10750
  hasNewComments?: boolean;
10662
10751
  isLiked?: boolean;
@@ -10692,6 +10781,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10692
10781
  poll?: import("@livetiles/reach/util/common").Poll;
10693
10782
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10694
10783
  } | {
10784
+ cancelInformation: {
10785
+ reasons: {
10786
+ [key: string]: string;
10787
+ };
10788
+ cancellationReasons?: {
10789
+ [key: string]: string;
10790
+ }[];
10791
+ isCancelled?: boolean;
10792
+ modifiedOn?: string;
10793
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10794
+ };
10695
10795
  knownState: KnownNewsState;
10696
10796
  pageType?: undefined;
10697
10797
  navigationContext?: undefined;
@@ -10717,12 +10817,12 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10717
10817
  isUnread: boolean;
10718
10818
  keywordsList?: Keyword[];
10719
10819
  userResponseType?: StreamEventResponse;
10820
+ eventCancelInformation?: StreamEventCancelInformation;
10720
10821
  startDate?: string;
10721
10822
  endDate?: string;
10722
10823
  timeZone?: string;
10723
10824
  contacts?: import("@livetiles/reach/util/common").Account[];
10724
10825
  registrationSettings?: import("@livetiles/reach/util/common").EventRegistrationSettings;
10725
- cancelInformation?: import("@livetiles/reach/util/common").EventCancelInformation;
10726
10826
  locations?: import("@livetiles/reach/util/common").EventLocation[];
10727
10827
  hasNewComments?: boolean;
10728
10828
  isLiked?: boolean;
@@ -10758,6 +10858,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10758
10858
  poll?: import("@livetiles/reach/util/common").Poll;
10759
10859
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10760
10860
  } | {
10861
+ cancelInformation: {
10862
+ reasons: {
10863
+ [key: string]: string;
10864
+ };
10865
+ cancellationReasons?: {
10866
+ [key: string]: string;
10867
+ }[];
10868
+ isCancelled?: boolean;
10869
+ modifiedOn?: string;
10870
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10871
+ };
10761
10872
  knownState?: undefined;
10762
10873
  pageType: PageType;
10763
10874
  navigationContext: PageNavigationContext;
@@ -10783,12 +10894,12 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10783
10894
  isUnread: boolean;
10784
10895
  keywordsList?: Keyword[];
10785
10896
  userResponseType?: StreamEventResponse;
10897
+ eventCancelInformation?: StreamEventCancelInformation;
10786
10898
  startDate?: string;
10787
10899
  endDate?: string;
10788
10900
  timeZone?: string;
10789
10901
  contacts?: import("@livetiles/reach/util/common").Account[];
10790
10902
  registrationSettings?: import("@livetiles/reach/util/common").EventRegistrationSettings;
10791
- cancelInformation?: import("@livetiles/reach/util/common").EventCancelInformation;
10792
10903
  locations?: import("@livetiles/reach/util/common").EventLocation[];
10793
10904
  hasNewComments?: boolean;
10794
10905
  isLiked?: boolean;
@@ -10824,6 +10935,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10824
10935
  poll?: import("@livetiles/reach/util/common").Poll;
10825
10936
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10826
10937
  } | {
10938
+ cancelInformation: {
10939
+ reasons: {
10940
+ [key: string]: string;
10941
+ };
10942
+ cancellationReasons?: {
10943
+ [key: string]: string;
10944
+ }[];
10945
+ isCancelled?: boolean;
10946
+ modifiedOn?: string;
10947
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
10948
+ };
10827
10949
  knownState: KnownNewsState;
10828
10950
  pageType: PageType;
10829
10951
  navigationContext: PageNavigationContext;
@@ -10849,12 +10971,12 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10849
10971
  isUnread: boolean;
10850
10972
  keywordsList?: Keyword[];
10851
10973
  userResponseType?: StreamEventResponse;
10974
+ eventCancelInformation?: StreamEventCancelInformation;
10852
10975
  startDate?: string;
10853
10976
  endDate?: string;
10854
10977
  timeZone?: string;
10855
10978
  contacts?: import("@livetiles/reach/util/common").Account[];
10856
10979
  registrationSettings?: import("@livetiles/reach/util/common").EventRegistrationSettings;
10857
- cancelInformation?: import("@livetiles/reach/util/common").EventCancelInformation;
10858
10980
  locations?: import("@livetiles/reach/util/common").EventLocation[];
10859
10981
  hasNewComments?: boolean;
10860
10982
  isLiked?: boolean;
@@ -10890,6 +11012,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10890
11012
  poll?: import("@livetiles/reach/util/common").Poll;
10891
11013
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10892
11014
  } | {
11015
+ cancelInformation: {
11016
+ reasons: {
11017
+ [key: string]: string;
11018
+ };
11019
+ cancellationReasons?: {
11020
+ [key: string]: string;
11021
+ }[];
11022
+ isCancelled?: boolean;
11023
+ modifiedOn?: string;
11024
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
11025
+ };
10893
11026
  knownState?: undefined;
10894
11027
  pageType?: PageType;
10895
11028
  navigationContext?: PageNavigationContext;
@@ -10952,6 +11085,17 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10952
11085
  poll?: import("@livetiles/reach/util/common").Poll;
10953
11086
  searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10954
11087
  } | {
11088
+ cancelInformation: {
11089
+ reasons: {
11090
+ [key: string]: string;
11091
+ };
11092
+ cancellationReasons?: {
11093
+ [key: string]: string;
11094
+ }[];
11095
+ isCancelled?: boolean;
11096
+ modifiedOn?: string;
11097
+ modifiedBy?: import("@livetiles/reach/util/common").Account;
11098
+ };
10955
11099
  knownState: KnownNewsState;
10956
11100
  pageType?: PageType;
10957
11101
  navigationContext?: PageNavigationContext;
@@ -11223,6 +11367,13 @@ declare module "libs/reach/feature/content/src/stream/useNewsStreamDataLoader" {
11223
11367
  export function useNewsStreamDataLoader(filter?: NewsFilterDefinition, searchText?: string): (take: number, skip?: number) => Promise<PaginatedList<NewsStreamItem>>;
11224
11368
  export const NEWS_QUERY: (includeAllItems: boolean, whereConditions?: string) => import("@apollo/client").DocumentNode;
11225
11369
  }
11370
+ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader" {
11371
+ import { PaginatedList } from "libs/reach/util/common/src/index";
11372
+ import { EventStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
11373
+ import { EventFilterDefinition } from "libs/reach/feature/content/src/index";
11374
+ export function useEventsStreamDataLoader(filter?: EventFilterDefinition, searchText?: string): (take: number, skip?: number) => Promise<PaginatedList<EventStreamItem>>;
11375
+ export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string) => import("@apollo/client").DocumentNode;
11376
+ }
11226
11377
  declare module "libs/reach/feature/content/src/stream/index" {
11227
11378
  export * from "libs/reach/feature/content/src/stream/StreamList";
11228
11379
  export * from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11231,6 +11382,7 @@ declare module "libs/reach/feature/content/src/stream/index" {
11231
11382
  export * from "libs/reach/feature/content/src/stream/StreamNewsItemCard";
11232
11383
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11233
11384
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11385
+ export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11234
11386
  }
11235
11387
  declare module "libs/reach/feature/content/src/search/index" {
11236
11388
  export * from "libs/reach/feature/content/src/search/GlobalSearchButton";
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.439",
7
+ "version": "0.4.0-preview.441",
8
8
  "dependencies": {}
9
9
  }