@livetiles/reach-plugin-types 0.4.138 → 0.4.139

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 +294 -259
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2054,7 +2054,8 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2054
2054
  export enum EventResponse {
2055
2055
  NotSet = 0,
2056
2056
  Registered = 1,
2057
- Declined = 2
2057
+ Declined = 2,
2058
+ WaitingList = 3
2058
2059
  }
2059
2060
  export interface EventItem extends SchedulableItem {
2060
2061
  startDate?: string;
@@ -2074,6 +2075,7 @@ declare module "libs/reach/util/common/src/content/EventItem" {
2074
2075
  isAllDayEvent?: boolean;
2075
2076
  }
2076
2077
  export interface EventRegistrationSettings {
2078
+ enableWaitingList?: boolean;
2077
2079
  enabled?: boolean;
2078
2080
  showParticipantsToEverybody?: boolean;
2079
2081
  deadline?: string;
@@ -2477,7 +2479,9 @@ declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
2477
2479
  embeddedAudio = "embedded-audio",
2478
2480
  languageChange = "language-change",
2479
2481
  eventRegistration = "event-registration",
2482
+ eventWaitingList = "event-waiting-list",
2480
2483
  eventSeriesRegistration = "event-series-registration",
2484
+ eventSeriesWaitingList = "event-series-waiting-list",
2481
2485
  translateContent = "translate-content",
2482
2486
  downloadFile = "download-file",
2483
2487
  embeddedIframe = "embedded-iframe",
@@ -7601,26 +7605,27 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
7601
7605
  }>;
7602
7606
  }
7603
7607
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7604
- import { FC } from 'react';
7605
7608
  import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7609
+ import { FC } from 'react';
7606
7610
  export const EventLocationInfo: FC<{
7607
- locations: EventLocation[];
7608
- itemId: string;
7609
7611
  className?: string;
7612
+ itemId: string;
7613
+ locations: EventLocation[];
7614
+ noWrap?: boolean;
7610
7615
  }>;
7611
7616
  export const EventPeopleInfo: FC<{
7612
- item: EventItem;
7617
+ className?: string;
7613
7618
  hideAnnouncer?: boolean;
7614
- showFirstContactOnly?: boolean;
7619
+ item: EventItem;
7615
7620
  labelResourceKey?: string;
7616
- className?: string;
7621
+ showFirstContactOnly?: boolean;
7617
7622
  }>;
7618
7623
  export const EventChannelsDisplay: FC<{
7619
- item: EventItem;
7620
- language: string;
7621
- className?: string;
7622
7624
  allowFilterByChannels?: boolean;
7623
7625
  channelBackgroundColor?: string;
7626
+ className?: string;
7627
+ item: EventItem;
7628
+ language: string;
7624
7629
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
7625
7630
  }>;
7626
7631
  export const RTLMetaInfoStyles: import("styled-components").FlattenSimpleInterpolation;
@@ -7671,31 +7676,15 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7671
7676
  className?: string;
7672
7677
  }>;
7673
7678
  }
7674
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7675
- import { EventItem, EventLocation } from "libs/reach/util/common/src/index";
7676
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7677
- import { EventResponse } from "libs/reach/util/common/src/index";
7678
- export interface EventUserRegistrationContextType {
7679
- item: EventItem;
7680
- answers: PollQuestionAnswer[];
7681
- hasMissingAnswers: boolean;
7682
- isLoading: boolean;
7683
- submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7684
- reset: () => Promise<void>;
7685
- onBehalfOfUpn: string;
7686
- hasPollContext: boolean;
7687
- eventResponse: EventResponse;
7688
- setEventResponse: (response: EventResponse) => unknown;
7689
- seatsInfo: EventRegistrationSeatsInfo;
7690
- }
7691
- export interface EventLocationWithLeftSeats extends EventLocation {
7692
- seatsLeft: number;
7693
- }
7694
- export interface EventRegistrationSeatsInfo {
7695
- hasAnySeatsLeft: boolean;
7696
- locations?: EventLocationWithLeftSeats[];
7697
- }
7698
- export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7679
+ declare module "libs/reach/feature/content/src/events/eventUtils" {
7680
+ import { MessageDescriptor } from 'react-intl';
7681
+ import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7682
+ import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7683
+ export function getLocationQuestionId(item: EventItem): string;
7684
+ export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7685
+ question?: PollQuestion;
7686
+ translations?: TranslationItem[];
7687
+ };
7699
7688
  }
7700
7689
  declare module "libs/reach/feature/content/src/common/detail/events/eventUtils" {
7701
7690
  import { FeedbackItem, FeedbackItemType } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
@@ -7710,40 +7699,58 @@ declare module "libs/reach/feature/content/src/common/detail/events/eventUtils"
7710
7699
  isPastDeadline: boolean;
7711
7700
  };
7712
7701
  }
7702
+ declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7703
+ import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7704
+ import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7705
+ import { EventResponse } from "libs/reach/util/common/src/index";
7706
+ export function useEventRegistrationApi(): {
7707
+ setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7708
+ getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7709
+ getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7710
+ };
7711
+ }
7713
7712
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationButton" {
7714
- import { FC } from 'react';
7715
7713
  import { PrimaryButton } from 'office-ui-fabric-react';
7714
+ import { FC } from 'react';
7716
7715
  export const EventRegistrationButton: FC<{
7717
- isRegistered: boolean;
7718
- eventId: string;
7719
- disabled?: boolean;
7720
7716
  className?: string;
7717
+ disabled?: boolean;
7718
+ eventId: string;
7719
+ infoMessageResourceKey?: string;
7720
+ isRegistered: boolean;
7721
+ isWaitingList: boolean;
7722
+ isWaitingListEnabled?: boolean;
7721
7723
  onClick?: () => void;
7722
7724
  showInfoMessage?: boolean;
7723
- infoMessageResourceKey?: string;
7724
7725
  }>;
7725
7726
  export const RegisterButton: import("styled-components").StyledComponent<typeof PrimaryButton, import("styled-components").DefaultTheme, {
7726
7727
  isRegistered?: boolean;
7727
7728
  }, never>;
7728
7729
  }
7729
- declare module "libs/reach/feature/content/src/events/eventUtils" {
7730
- import { EventItem, PollQuestion, PollResult } from "libs/reach/util/common/src/index";
7731
- import { MessageDescriptor } from 'react-intl';
7732
- import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
7733
- export function getLocationQuestionId(item: EventItem): string;
7734
- export function getLocationPollDefinitions(item: EventItem, formatMessage: (messageDescriptor: MessageDescriptor, values?: Record<string, any>) => string, result?: PollResult, isOnBehalfOf?: boolean): {
7735
- question?: PollQuestion;
7736
- translations?: TranslationItem[];
7737
- };
7738
- }
7739
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7740
- import { FC } from 'react';
7741
- import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7742
- export const EventRegistrationLocationSeatsInfo: FC<{
7730
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext" {
7731
+ import { EventItem, EventLocation, EventResponse, PollQuestionAnswer } from "libs/reach/util/common/src/index";
7732
+ export interface EventUserRegistrationContextType {
7733
+ answers: PollQuestionAnswer[];
7734
+ eventResponse: EventResponse;
7735
+ hasMissingAnswers: boolean;
7736
+ hasPollContext: boolean;
7737
+ isLoading: boolean;
7738
+ isLoadingPollResult: boolean;
7739
+ item: EventItem;
7740
+ onBehalfOfUpn: string;
7741
+ reset: () => Promise<void>;
7742
+ seatsInfo: EventRegistrationSeatsInfo;
7743
+ setEventResponse: (response: EventResponse) => unknown;
7744
+ submitPoll: (savePollAnswers: () => Promise<unknown>) => Promise<unknown>;
7745
+ }
7746
+ export interface EventLocationWithLeftSeats extends EventLocation {
7747
+ seatsLeft: number;
7748
+ }
7749
+ export interface EventRegistrationSeatsInfo {
7743
7750
  hasAnySeatsLeft: boolean;
7744
- locations: EventLocationWithLeftSeats[];
7745
- className?: string;
7746
- }>;
7751
+ locations?: EventLocationWithLeftSeats[];
7752
+ }
7753
+ export const EventUserRegistrationContext: import("react").Context<EventUserRegistrationContextType>;
7747
7754
  }
7748
7755
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationInfoDescription" {
7749
7756
  export const EventRegistrationInfoDescription: import("styled-components").StyledComponent<import("react").FC<{
@@ -7754,62 +7761,65 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
7754
7761
  dir?: string;
7755
7762
  }>, import("styled-components").DefaultTheme, {}, never>;
7756
7763
  }
7757
- declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
7758
- import { FC } from 'react';
7759
- export const EventRegistrationRegisterStatusInfo: FC<{
7760
- isRegistered: boolean;
7761
- onBehalfOfUpn: string;
7762
- className?: string;
7763
- }>;
7764
- }
7765
7764
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationDeadlineInfo" {
7766
7765
  import { FC } from 'react';
7767
7766
  import { EventItem } from "libs/reach/util/common/src/index";
7768
7767
  export const EventRegistrationDeadlineInfo: FC<{
7769
- item: EventItem;
7770
- isRegistered: boolean;
7771
7768
  className?: string;
7769
+ isRegistered: boolean;
7770
+ item: EventItem;
7772
7771
  }>;
7773
7772
  }
7774
7773
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationFullSeriesDialog" {
7775
7774
  import { FC } from 'react';
7776
7775
  import { EventItem } from "libs/reach/util/common/src/index";
7777
7776
  export const EventUserRegistrationFullSeriesDialog: FC<{
7778
- item: EventItem;
7779
- visible: boolean;
7780
7777
  isRegistered: boolean;
7778
+ isWaitingList: boolean;
7779
+ isWaitingListEnabled?: boolean;
7780
+ item: EventItem;
7781
7781
  onClick: (doRegister: boolean) => unknown;
7782
7782
  onDismiss: () => unknown;
7783
+ visible: boolean;
7783
7784
  }>;
7784
7785
  }
7785
- declare module "libs/reach/feature/content/src/common/detail/events/useEventRegistrationApi" {
7786
- import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
7787
- import { EventParticipant, EventRegistrationResult } from "libs/reach/util/common/src/index";
7788
- import { EventResponse } from "libs/reach/util/common/src/index";
7789
- export function useEventRegistrationApi(): {
7790
- setEventRegistration: (itemId: string, response: EventResponse, pollAnswers?: PollQuestionAnswer[], locationId?: string, onBehalfOfUpn?: string) => Promise<unknown>;
7791
- getEventRegistrationResults: (itemId: string) => Promise<EventRegistrationResult>;
7792
- getParticipants: (eventId: string) => Promise<EventParticipant[]>;
7793
- };
7786
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationLocationSeatsInfo" {
7787
+ import { FC } from 'react';
7788
+ import { EventLocationWithLeftSeats } from "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistrationContext";
7789
+ export const EventRegistrationLocationSeatsInfo: FC<{
7790
+ className?: string;
7791
+ hasAnySeatsLeft: boolean;
7792
+ isHidden: boolean;
7793
+ locations: EventLocationWithLeftSeats[];
7794
+ }>;
7795
+ }
7796
+ declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterStatusInfo" {
7797
+ import { FC } from 'react';
7798
+ export const EventRegistrationRegisterStatusInfo: FC<{
7799
+ className?: string;
7800
+ isRegistered: boolean;
7801
+ isWaitingList: boolean;
7802
+ onBehalfOfUpn: string;
7803
+ }>;
7794
7804
  }
7795
7805
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventUserRegistration" {
7796
7806
  import { FC } from 'react';
7797
7807
  import { EventResponse } from "libs/reach/util/common/src/index";
7798
7808
  export const EventUserRegistration: FC<{
7809
+ className?: string;
7799
7810
  disabled?: boolean;
7800
7811
  hideInfoMessage?: boolean;
7801
- onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7802
7812
  onRegistrationRedirect?: (url: string) => void;
7803
- className?: string;
7813
+ onToggleRegister?: (itemId: string, response: EventResponse, isFullSeriesRegistration: boolean) => unknown;
7804
7814
  }>;
7805
7815
  }
7806
7816
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventCardUserRegistration" {
7807
7817
  import { FC } from 'react';
7808
7818
  import { EventItem, LanguageDirection } from "libs/reach/util/common/src/index";
7809
7819
  export const EventCardUserRegistration: FC<{
7810
- item: EventItem;
7811
- disabled?: boolean;
7812
7820
  className?: string;
7821
+ disabled?: boolean;
7822
+ item: EventItem;
7813
7823
  languageDirection?: LanguageDirection;
7814
7824
  onRegistrationRedirect?: (url: string) => void;
7815
7825
  }>;
@@ -8757,10 +8767,167 @@ declare module "libs/reach/feature/content/src/common/cards/CardFooter" {
8757
8767
  }>;
8758
8768
  export const CardFooterHost: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8759
8769
  }
8770
+ declare module "libs/reach/feature/content/src/events/index" {
8771
+ export * from "libs/reach/feature/content/src/events/EventLocationLink";
8772
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
8773
+ export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
8774
+ export * from "libs/reach/feature/content/src/events/eventUtils";
8775
+ export * from "libs/reach/feature/content/src/events/list/EventCard";
8776
+ export * from "libs/reach/feature/content/src/events/useEventsApi";
8777
+ }
8778
+ declare module "libs/reach/feature/content/src/news/DateInfo" {
8779
+ import { FC } from 'react';
8780
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8781
+ interface DateInfoProps {
8782
+ item: Partial<PublishableItem>;
8783
+ dateMode: DateMode;
8784
+ expiryDate?: string;
8785
+ className?: string;
8786
+ }
8787
+ export enum DateMode {
8788
+ Published = 0,
8789
+ Modified = 1
8790
+ }
8791
+ export const DateInfo: FC<DateInfoProps>;
8792
+ }
8793
+ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8794
+ import { FC } from 'react';
8795
+ import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8796
+ import { Account, Channel, PublishableItem } from "libs/reach/util/common/src/index";
8797
+ export const getAuthor: (item: Partial<PublishableItem>) => Account;
8798
+ export const ItemMetaInfo: FC<{
8799
+ item: Partial<PublishableItem>;
8800
+ className?: string;
8801
+ expiryDate?: string;
8802
+ channels?: Channel[];
8803
+ showChannels?: boolean;
8804
+ dateMode: DateMode;
8805
+ readOnly?: boolean;
8806
+ hideAvatar?: boolean;
8807
+ hideDisplayName?: boolean;
8808
+ language?: string;
8809
+ buildChannelFilterUrl?: (channelName: string) => string;
8810
+ clickableAvatar?: boolean;
8811
+ onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
8812
+ }>;
8813
+ }
8814
+ declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
8815
+ import { FC } from 'react';
8816
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8817
+ export const ExternalNewsLinkButton: FC<{
8818
+ item: PublishableItem;
8819
+ disabled?: boolean;
8820
+ onClick?: (e: React.MouseEvent<unknown>) => unknown;
8821
+ className?: string;
8822
+ }>;
8823
+ }
8824
+ declare module "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton" {
8825
+ import { FC, MouseEvent } from 'react';
8826
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8827
+ import { PageNavigationNode } from "libs/reach/util/common/src/index";
8828
+ export const ExternalPagesLinkButton: FC<{
8829
+ item: PublishableItem | PageNavigationNode;
8830
+ disabled?: boolean;
8831
+ onClick?: (e: MouseEvent) => unknown;
8832
+ className?: string;
8833
+ }>;
8834
+ }
8835
+ declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
8836
+ import { FC } from 'react';
8837
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8838
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8839
+ interface Props {
8840
+ id: string;
8841
+ item: PublishableItem;
8842
+ itemResourceType: ItemResourceTypes;
8843
+ }
8844
+ export const CardBanner: FC<Props>;
8845
+ }
8846
+ declare module "libs/reach/feature/content/src/common/cards/Card" {
8847
+ import { FC, ReactNode } from 'react';
8848
+ import { PublishableItem } from "libs/reach/util/common/src/index";
8849
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8850
+ import { CurrentUser } from "libs/reach/util/common/src/index";
8851
+ interface CardProps {
8852
+ item: PublishableItem;
8853
+ itemResourceType: ItemResourceTypes;
8854
+ additionalMetadata?: ReactNode;
8855
+ highlight?: boolean;
8856
+ languageDirection?: string;
8857
+ className?: string;
8858
+ }
8859
+ export const Card: FC<CardProps>;
8860
+ export interface CardItem<TItem = PublishableItem> {
8861
+ item: TItem;
8862
+ language: string;
8863
+ }
8864
+ export function getCardItems<TItem extends PublishableItem>(items: TItem[], user: CurrentUser): CardItem<TItem>[];
8865
+ }
8760
8866
  declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8761
8867
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8762
8868
  export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8763
8869
  }
8870
+ declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
8871
+ import { FC } from 'react';
8872
+ import { NewsItem } from "libs/reach/util/common/src/index";
8873
+ interface NewsCardProps {
8874
+ item: NewsItem;
8875
+ baseRoute: string;
8876
+ language: string;
8877
+ highlight: boolean;
8878
+ className?: string;
8879
+ }
8880
+ export const NewsCard: FC<NewsCardProps>;
8881
+ }
8882
+ declare module "libs/reach/feature/content/src/news/list-view/EmptyChannelsView" {
8883
+ import { FC } from 'react';
8884
+ export const EmptyChannelsView: FC;
8885
+ }
8886
+ declare module "libs/reach/feature/content/src/news/list-view/PromotedNewsItem" {
8887
+ import { FC } from 'react';
8888
+ import { NewsItem } from "libs/reach/util/common/src/index";
8889
+ interface Props {
8890
+ item: NewsItem;
8891
+ iconName: string;
8892
+ iconTooltipStringResource: string;
8893
+ baseItemRoute: string;
8894
+ msColorName: string;
8895
+ }
8896
+ export const PromotedNewsItem: FC<Props>;
8897
+ }
8898
+ declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
8899
+ import { FC } from 'react';
8900
+ import { NewsItem } from "libs/reach/util/common/src/index";
8901
+ import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/index";
8902
+ export const NewsList: FC<{
8903
+ items: NewsItem[];
8904
+ baseItemRoute: string;
8905
+ isLoading: boolean;
8906
+ isLastPage: boolean;
8907
+ unreadOnly?: boolean;
8908
+ filter?: NewsFilterDefinition;
8909
+ activeChannel?: string;
8910
+ }>;
8911
+ }
8912
+ declare module "libs/reach/feature/content/src/news/useTranslateApi" {
8913
+ import { ItemResourceTypes } from "libs/reach/util/common/src/index";
8914
+ import { PublishableItemContent } from "libs/reach/util/common/src/index";
8915
+ export function useTranslateApi(): {
8916
+ translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
8917
+ };
8918
+ }
8919
+ declare module "libs/reach/feature/content/src/news/index" {
8920
+ export * from "libs/reach/feature/content/src/news/DateInfo";
8921
+ export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
8922
+ export * from "libs/reach/feature/content/src/news/NewsService";
8923
+ export * from "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton";
8924
+ export * from "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton";
8925
+ export * from "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton";
8926
+ export * from "libs/reach/feature/content/src/news/list-view/NewsCard";
8927
+ export * from "libs/reach/feature/content/src/news/list-view/NewsList";
8928
+ export * from "libs/reach/feature/content/src/news/useNewsApi";
8929
+ export * from "libs/reach/feature/content/src/news/useTranslateApi";
8930
+ }
8764
8931
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
8765
8932
  import { FC } from 'react';
8766
8933
  import { PageItem } from "libs/reach/util/common/src/index";
@@ -8833,17 +9000,6 @@ declare module "libs/reach/feature/content/src/pages/pageTocUtils" {
8833
9000
  import { PageNavigationNode } from "libs/reach/util/common/src/index";
8834
9001
  export function filterChildren(page: PageNavigationNode, activePage: PageNavigationNode): boolean;
8835
9002
  }
8836
- declare module "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton" {
8837
- import { FC, MouseEvent } from 'react';
8838
- import { PublishableItem } from "libs/reach/util/common/src/index";
8839
- import { PageNavigationNode } from "libs/reach/util/common/src/index";
8840
- export const ExternalPagesLinkButton: FC<{
8841
- item: PublishableItem | PageNavigationNode;
8842
- disabled?: boolean;
8843
- onClick?: (e: MouseEvent) => unknown;
8844
- className?: string;
8845
- }>;
8846
- }
8847
9003
  declare module "libs/reach/feature/content/src/pages/PageTocNode" {
8848
9004
  import { FC } from 'react';
8849
9005
  import { PageNavigationContext, PageNavigationNode } from "libs/reach/util/common/src/index";
@@ -8967,176 +9123,30 @@ declare module "libs/reach/feature/content/src/pages/index" {
8967
9123
  export * from "libs/reach/feature/content/src/pages/utils";
8968
9124
  export * from "libs/reach/feature/content/src/pages/DocumentDownloadButton";
8969
9125
  }
8970
- declare module "libs/reach/feature/content/src/news/DateInfo" {
8971
- import { FC } from 'react';
8972
- import { PublishableItem } from "libs/reach/util/common/src/index";
8973
- interface DateInfoProps {
8974
- item: Partial<PublishableItem>;
8975
- dateMode: DateMode;
8976
- expiryDate?: string;
8977
- className?: string;
8978
- }
8979
- export enum DateMode {
8980
- Published = 0,
8981
- Modified = 1
8982
- }
8983
- export const DateInfo: FC<DateInfoProps>;
8984
- }
8985
- declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
8986
- import { FC } from 'react';
8987
- import { DateMode } from "libs/reach/feature/content/src/news/DateInfo";
8988
- import { Account, Channel, PublishableItem } from "libs/reach/util/common/src/index";
8989
- export const getAuthor: (item: Partial<PublishableItem>) => Account;
8990
- export const ItemMetaInfo: FC<{
8991
- item: Partial<PublishableItem>;
8992
- className?: string;
8993
- expiryDate?: string;
8994
- channels?: Channel[];
8995
- showChannels?: boolean;
8996
- dateMode: DateMode;
8997
- readOnly?: boolean;
8998
- hideAvatar?: boolean;
8999
- hideDisplayName?: boolean;
9000
- language?: string;
9001
- buildChannelFilterUrl?: (channelName: string) => string;
9002
- clickableAvatar?: boolean;
9003
- onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
9004
- }>;
9005
- }
9006
- declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
9007
- import { FC } from 'react';
9008
- import { PublishableItem } from "libs/reach/util/common/src/index";
9009
- export const ExternalNewsLinkButton: FC<{
9010
- item: PublishableItem;
9011
- disabled?: boolean;
9012
- onClick?: (e: React.MouseEvent<unknown>) => unknown;
9013
- className?: string;
9014
- }>;
9015
- }
9016
- declare module "libs/reach/feature/content/src/common/cards/CardBanner" {
9017
- import { FC } from 'react';
9018
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9019
- import { PublishableItem } from "libs/reach/util/common/src/index";
9020
- interface Props {
9021
- id: string;
9022
- item: PublishableItem;
9023
- itemResourceType: ItemResourceTypes;
9024
- }
9025
- export const CardBanner: FC<Props>;
9026
- }
9027
- declare module "libs/reach/feature/content/src/common/cards/Card" {
9028
- import { FC, ReactNode } from 'react';
9029
- import { PublishableItem } from "libs/reach/util/common/src/index";
9030
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9031
- import { CurrentUser } from "libs/reach/util/common/src/index";
9032
- interface CardProps {
9033
- item: PublishableItem;
9034
- itemResourceType: ItemResourceTypes;
9035
- additionalMetadata?: ReactNode;
9036
- highlight?: boolean;
9037
- languageDirection?: string;
9038
- className?: string;
9039
- }
9040
- export const Card: FC<CardProps>;
9041
- export interface CardItem<TItem = PublishableItem> {
9042
- item: TItem;
9043
- language: string;
9044
- }
9045
- export function getCardItems<TItem extends PublishableItem>(items: TItem[], user: CurrentUser): CardItem<TItem>[];
9046
- }
9047
- declare module "libs/reach/feature/content/src/news/list-view/NewsCard" {
9048
- import { FC } from 'react';
9049
- import { NewsItem } from "libs/reach/util/common/src/index";
9050
- interface NewsCardProps {
9051
- item: NewsItem;
9052
- baseRoute: string;
9053
- language: string;
9054
- highlight: boolean;
9055
- className?: string;
9056
- }
9057
- export const NewsCard: FC<NewsCardProps>;
9058
- }
9059
- declare module "libs/reach/feature/content/src/news/list-view/EmptyChannelsView" {
9060
- import { FC } from 'react';
9061
- export const EmptyChannelsView: FC;
9062
- }
9063
- declare module "libs/reach/feature/content/src/news/list-view/PromotedNewsItem" {
9064
- import { FC } from 'react';
9065
- import { NewsItem } from "libs/reach/util/common/src/index";
9066
- interface Props {
9067
- item: NewsItem;
9068
- iconName: string;
9069
- iconTooltipStringResource: string;
9070
- baseItemRoute: string;
9071
- msColorName: string;
9072
- }
9073
- export const PromotedNewsItem: FC<Props>;
9074
- }
9075
- declare module "libs/reach/feature/content/src/news/list-view/NewsList" {
9076
- import { FC } from 'react';
9077
- import { NewsItem } from "libs/reach/util/common/src/index";
9078
- import { NewsFilterDefinition } from "libs/reach/feature/content/src/filter/index";
9079
- export const NewsList: FC<{
9080
- items: NewsItem[];
9081
- baseItemRoute: string;
9082
- isLoading: boolean;
9083
- isLastPage: boolean;
9084
- unreadOnly?: boolean;
9085
- filter?: NewsFilterDefinition;
9086
- activeChannel?: string;
9087
- }>;
9088
- }
9089
- declare module "libs/reach/feature/content/src/news/useTranslateApi" {
9090
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9091
- import { PublishableItemContent } from "libs/reach/util/common/src/index";
9092
- export function useTranslateApi(): {
9093
- translateContents: (type: ItemResourceTypes, itemId: string, language: string) => Promise<PublishableItemContent>;
9094
- };
9095
- }
9096
- declare module "libs/reach/feature/content/src/news/index" {
9097
- export * from "libs/reach/feature/content/src/news/DateInfo";
9098
- export * from "libs/reach/feature/content/src/news/ItemMetaInfo";
9099
- export * from "libs/reach/feature/content/src/news/NewsService";
9100
- export * from "libs/reach/feature/content/src/news/bookmark-button/BookmarkButton";
9101
- export * from "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton";
9102
- export * from "libs/reach/feature/content/src/news/list-view/ExternalPagesLinkButton";
9103
- export * from "libs/reach/feature/content/src/news/list-view/NewsCard";
9104
- export * from "libs/reach/feature/content/src/news/list-view/NewsList";
9105
- export * from "libs/reach/feature/content/src/news/useNewsApi";
9106
- export * from "libs/reach/feature/content/src/news/useTranslateApi";
9107
- }
9108
- declare module "libs/reach/feature/content/src/events/index" {
9109
- export * from "libs/reach/feature/content/src/events/EventLocationLink";
9110
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfo";
9111
- export * from "libs/reach/feature/content/src/events/EventRecurrenceSeriesInfoNavLink";
9112
- export * from "libs/reach/feature/content/src/events/eventUtils";
9113
- export * from "libs/reach/feature/content/src/events/list/EventCard";
9114
- export * from "libs/reach/feature/content/src/events/useEventsApi";
9115
- }
9116
9126
  declare module "libs/reach/feature/content/src/common/item-tile/EventItemTile" {
9117
- import { FC, MouseEvent, ReactNode } from 'react';
9118
9127
  import { Channel, EventItem } from "libs/reach/util/common/src/index";
9128
+ import { FC, MouseEvent, ReactNode } from 'react';
9119
9129
  import { ItemTileLayoutMode } from "libs/reach/feature/content/src/common/item-tile/NewsItemTile";
9120
9130
  interface StyleDefinition {
9121
9131
  backgroundColor?: string;
9122
- noShadow?: boolean;
9123
- channelsBackgroundColor?: string;
9124
9132
  bannerContainerDefaultWidth?: number;
9133
+ channelsBackgroundColor?: string;
9134
+ noShadow?: boolean;
9125
9135
  showPlaceholderIfNoBannerInfo?: boolean;
9126
9136
  }
9127
9137
  interface Props {
9128
- item: EventItem;
9129
9138
  baseRoute: string;
9130
- layoutMode?: ItemTileLayoutMode;
9131
9139
  buttons?: ReactNode;
9132
- openTargetInNewWindow?: boolean;
9133
- onClick?: (event: MouseEvent<unknown>) => unknown;
9140
+ className?: string;
9141
+ item: EventItem;
9142
+ layoutMode?: ItemTileLayoutMode;
9134
9143
  onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
9135
- styleDefinition?: StyleDefinition;
9144
+ onClick?: (event: MouseEvent<unknown>) => unknown;
9145
+ onRegistrationRedirect?: (url: string) => void;
9146
+ openTargetInNewWindow?: boolean;
9136
9147
  showBanner?: boolean;
9137
9148
  showBannerAlwaysOnTheLeft?: boolean;
9138
- onRegistrationRedirect?: (url: string) => void;
9139
- className?: string;
9149
+ styleDefinition?: StyleDefinition;
9140
9150
  }
9141
9151
  export const EventItemTile: FC<Props>;
9142
9152
  }
@@ -9474,22 +9484,20 @@ declare module "libs/reach/feature/content/src/feedback/PollDisplay" {
9474
9484
  }
9475
9485
  declare module "libs/reach/feature/content/src/feedback/PollUserContextProvider" {
9476
9486
  import { FC } from 'react';
9477
- import { PublishableItem } from "libs/reach/util/common/src/index";
9478
- import { ItemResourceTypes } from "libs/reach/util/common/src/index";
9479
- import { PollQuestion, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
9487
+ import { ItemResourceTypes, PollQuestion, PollQuestionAnswer, PollResult, PublishableItem } from "libs/reach/util/common/src/index";
9480
9488
  import { FeedbackItem } from "libs/reach/feature/content/src/feedback/FeedbackSummary";
9481
9489
  import { TranslationItem } from "libs/reach/feature/content/src/feedback/PollTranslationContext";
9482
9490
  export const PollUserContextProvider: FC<{
9483
- item: PublishableItem;
9484
- onBehalfOfUpn?: string;
9485
- resourceType: ItemResourceTypes;
9486
- language: string;
9487
9491
  getAdditionalQuestions?: (pollResult?: PollResult) => {
9488
9492
  questions: PollQuestion[];
9489
9493
  translations: TranslationItem[];
9490
9494
  };
9491
9495
  getAdditionalUserAnswers?: (records: FeedbackItem[]) => PollQuestionAnswer[];
9492
9496
  getPollResults: (itemId: string) => Promise<PollResult>;
9497
+ item: PublishableItem;
9498
+ language: string;
9499
+ onBehalfOfUpn?: string;
9500
+ resourceType: ItemResourceTypes;
9493
9501
  showResult?: boolean;
9494
9502
  }>;
9495
9503
  }
@@ -9526,9 +9534,9 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
9526
9534
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewUserRegistration" {
9527
9535
  import { FC } from 'react';
9528
9536
  export const EventDetailViewUserRegistration: FC<{
9537
+ className?: string;
9529
9538
  hideInfoMessage?: boolean;
9530
9539
  isReadOnly?: boolean;
9531
- className?: string;
9532
9540
  }>;
9533
9541
  }
9534
9542
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventRegistrationRegisterSomeoneElseDialog" {
@@ -10258,10 +10266,16 @@ declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
10258
10266
  import { Channel } from "libs/reach/util/common/src/index";
10259
10267
  import { AfterPublishingDateFilterDefinition, BeforePublishingDateFilterDefinition, ChannelsFilterDefinition, FilterWithLogicalOperator, ItemTypeFilterDefinition, ItemTypeFilterFlag, KeywordsFilterDefinition, OwnerFilterDefinition } from "libs/reach/feature/content/src/filter/index";
10260
10268
  export enum StreamEventResponse {
10261
- NotSet = "NOTSET",
10269
+ NotSet = "NOT_SET",
10262
10270
  Registered = "REGISTERED",
10271
+ WaitingList = "WAITING_LIST",
10263
10272
  Declined = "DECLINED"
10264
10273
  }
10274
+ export enum StreamSeriesRegistrationMode {
10275
+ None = "NONE",
10276
+ FullSeries = "FULL_SERIES",
10277
+ PerInstance = "PER_INSTANCE"
10278
+ }
10265
10279
  export interface StreamFilterDefinition extends BeforePublishingDateFilterDefinition, AfterPublishingDateFilterDefinition, OwnerFilterDefinition, ChannelsFilterDefinition, KeywordsFilterDefinition, ItemTypeFilterDefinition {
10266
10280
  }
10267
10281
  export function useStreamItemsQuery(query: DocumentNode, searchText?: string, defaultPageSize?: number, doNotLoadOnEmpty?: boolean): {
@@ -10321,7 +10335,7 @@ declare module "libs/reach/feature/content/src/posts/index" {
10321
10335
  export * from "libs/reach/feature/content/src/posts/utils";
10322
10336
  }
10323
10337
  declare module "libs/reach/feature/content/src/stream/streamUtils" {
10324
- import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, ItemResourceTypes, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList } from "libs/reach/util/common/src/index";
10338
+ import { AttachmentType, BaseAttachment, Channel, Comment, ConversationScope, EventCancelInformation, EventItem, EventResponse, GraphQLAttachmentType, ItemResourceTypes, Keyword, KnownNewsState, NewsItem, PageItem, PageNavigationContext, PageNavigationNode, PageType, PaginatedList, SeriesRegistrationMode } from "libs/reach/util/common/src/index";
10325
10339
  import { Post } from "libs/reach/feature/content/src/posts/index";
10326
10340
  import { StreamEventResponse } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
10327
10341
  export enum StreamItemTypes {
@@ -10962,6 +10976,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10962
10976
  poll?: import("@livetiles/reach/util/common").Poll;
10963
10977
  } | {
10964
10978
  userResponse: EventResponse;
10979
+ registrationSettings: {
10980
+ seriesMode: SeriesRegistrationMode;
10981
+ enableWaitingList?: boolean;
10982
+ enabled?: boolean;
10983
+ showParticipantsToEverybody?: boolean;
10984
+ deadline?: string;
10985
+ };
10965
10986
  cancelInformation: {
10966
10987
  reasons: {
10967
10988
  [key: string]: string;
@@ -11013,6 +11034,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11013
11034
  attachmentContainerId?: string;
11014
11035
  } | {
11015
11036
  userResponse: EventResponse;
11037
+ registrationSettings: {
11038
+ seriesMode: SeriesRegistrationMode;
11039
+ enableWaitingList?: boolean;
11040
+ enabled?: boolean;
11041
+ showParticipantsToEverybody?: boolean;
11042
+ deadline?: string;
11043
+ };
11016
11044
  cancelInformation: {
11017
11045
  reasons: {
11018
11046
  [key: string]: string;
@@ -11078,6 +11106,13 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
11078
11106
  poll?: import("@livetiles/reach/util/common").Poll;
11079
11107
  } | {
11080
11108
  userResponse: EventResponse;
11109
+ registrationSettings: {
11110
+ seriesMode: SeriesRegistrationMode;
11111
+ enableWaitingList?: boolean;
11112
+ enabled?: boolean;
11113
+ showParticipantsToEverybody?: boolean;
11114
+ deadline?: string;
11115
+ };
11081
11116
  cancelInformation: {
11082
11117
  reasons: {
11083
11118
  [key: string]: string;
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.138",
7
+ "version": "0.4.139",
8
8
  "dependencies": {}
9
9
  }