@livetiles/reach-plugin-types 0.5.0-preview.18 → 0.5.0-preview.20

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 +112 -18
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -522,6 +522,12 @@ declare module "libs/reach/util/common/src/useCacheLanguageApi" {
522
522
  getLocaleFromLocalStorage: () => Promise<string>;
523
523
  };
524
524
  }
525
+ declare module "libs/reach/util/common/src/resources/languages/da.async" {
526
+ import '@formatjs/intl-pluralrules/dist/locale-data/da';
527
+ import '@formatjs/intl-relativetimeformat/dist/locale-data/da';
528
+ import da from "libs/reach/util/common/src/resources/languages/string-resources/da";
529
+ export default da;
530
+ }
525
531
  declare module "libs/reach/util/common/src/resources/languages/de.async" {
526
532
  import '@formatjs/intl-pluralrules/dist/locale-data/de';
527
533
  import '@formatjs/intl-relativetimeformat/dist/locale-data/de';
@@ -577,7 +583,7 @@ declare module "libs/reach/util/common/src/resources/languages/en.async" {
577
583
  export default en;
578
584
  }
579
585
  declare module "libs/reach/util/common/src/resources/LazyLanguageResourcesImporter" {
580
- export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/de.async")> | Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
586
+ export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/da.async")> | Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
581
587
  }
582
588
  declare module "libs/reach/util/common/src/resources/locales/ar-dz.async" {
583
589
  import '@formatjs/intl-pluralrules/dist/locale-data/ar';
@@ -1437,6 +1443,7 @@ declare module "libs/reach/util/common/src/user/User" {
1437
1443
  subscriptionId: string;
1438
1444
  tenantId: string;
1439
1445
  expires?: string;
1446
+ hasPrivateEmail?: boolean;
1440
1447
  }
1441
1448
  export interface HashUser {
1442
1449
  id: string;
@@ -1482,6 +1489,7 @@ declare module "libs/reach/util/common/src/user/User" {
1482
1489
  export interface SubscriptionJoinResult {
1483
1490
  user: UserSummary;
1484
1491
  type: SubscriptionJoinResultType;
1492
+ message?: string;
1485
1493
  }
1486
1494
  export interface UserActivationResult {
1487
1495
  type: UserActivationResultType;
@@ -1743,6 +1751,19 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1743
1751
  id?: string;
1744
1752
  statistics?: ItemStatistics;
1745
1753
  poll?: Poll;
1754
+ searchHighlights?: SearchHighlightSummary;
1755
+ }
1756
+ export interface SearchHighlightSummary {
1757
+ title: SearchHighlight[];
1758
+ content: SearchHighlight[];
1759
+ }
1760
+ export interface SearchHighlight {
1761
+ language: string;
1762
+ texts: {
1763
+ value: string;
1764
+ type: 'text' | 'hit';
1765
+ }[];
1766
+ score: number;
1746
1767
  }
1747
1768
  export interface Poll {
1748
1769
  questions: PollQuestion[];
@@ -1810,7 +1831,6 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1810
1831
  headline?: string;
1811
1832
  intro?: string;
1812
1833
  body?: string;
1813
- bodyRaw?: string;
1814
1834
  customProperties?: {
1815
1835
  [key: string]: any;
1816
1836
  };
@@ -2500,6 +2520,7 @@ declare module "libs/reach/util/common/src/user/useUserAdminApi" {
2500
2520
  updateUserProfilePropertiesByUPN: (upn: string, newProperties: UpdatableUserProperties) => Promise<unknown>;
2501
2521
  updateUserAvatarByUPN: (upn: string, subscriptionId: string, file?: File) => Promise<unknown>;
2502
2522
  deleteUserAvatarByUPN: (upn: string) => Promise<unknown>;
2523
+ importUsers: (file: File) => Promise<SubscriptionJoinResult[]>;
2503
2524
  };
2504
2525
  }
2505
2526
  declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
@@ -3324,7 +3345,7 @@ declare module "libs/reach/ui/common/src/Tooltip" {
3324
3345
  import { FC } from 'react';
3325
3346
  import { ITooltipHostProps } from 'office-ui-fabric-react';
3326
3347
  export interface TooltipProps extends ITooltipHostProps {
3327
- text?: string;
3348
+ text?: string | JSX.Element;
3328
3349
  resourceKey?: string;
3329
3350
  values?: {
3330
3351
  [key: string]: string | number | boolean | Date;
@@ -3948,7 +3969,6 @@ declare module "libs/reach/ui/common/src/common/Search" {
3948
3969
  searchText: string;
3949
3970
  className?: string;
3950
3971
  placeholder?: string;
3951
- showClearButton?: boolean;
3952
3972
  onClear?: () => void;
3953
3973
  useLightTheme?: boolean;
3954
3974
  shouldAutoFocus?: boolean;
@@ -6311,6 +6331,48 @@ declare module "apps/reach-app/src/app/admin/users/GenerateApiKeyButton" {
6311
6331
  onApiKeyAdded: () => void;
6312
6332
  }>;
6313
6333
  }
6334
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview" {
6335
+ import { FC } from 'react';
6336
+ import { SubscriptionJoinResultType } from "libs/reach/util/common/src/index";
6337
+ export enum GenericErrorType {
6338
+ Error = -1
6339
+ }
6340
+ export interface UserImport {
6341
+ displayName?: string;
6342
+ email?: string;
6343
+ hasPrivateEmail?: boolean;
6344
+ importResult?: SubscriptionJoinResultType | GenericErrorType;
6345
+ errorMessage?: string;
6346
+ }
6347
+ export const ImportUsersPreview: FC<{
6348
+ previewUsers: UserImport[];
6349
+ }>;
6350
+ }
6351
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/useUserCsvInviter" {
6352
+ import { UserImport } from "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUsersPreview";
6353
+ export function useUserCsvInviter(): {
6354
+ invitedUsers: UserImport[];
6355
+ isValidating: boolean;
6356
+ isCsvValid: boolean;
6357
+ parseCsvFile: (csvFile: File) => void;
6358
+ error: string;
6359
+ setError: import("react").Dispatch<import("react").SetStateAction<string>>;
6360
+ inviteUsers: (onSuccess?: () => void) => Promise<void>;
6361
+ isParserReady: boolean;
6362
+ isImporting: boolean;
6363
+ };
6364
+ }
6365
+ declare module "apps/reach-app/src/app/admin/users/invite-users-csv/ImportUserButton" {
6366
+ import { FC } from 'react';
6367
+ export const ImportUserButton: FC<{
6368
+ onSuccessfulImport?: () => void;
6369
+ className?: string;
6370
+ }>;
6371
+ export const ImportUserDialog: FC<{
6372
+ onDismiss: () => void;
6373
+ onSuccessfulImport?: () => void;
6374
+ }>;
6375
+ }
6314
6376
  declare module "apps/reach-app/src/app/admin/users/UsersPage" {
6315
6377
  import { FC } from 'react';
6316
6378
  export const UsersPage: FC;
@@ -8241,6 +8303,15 @@ declare module "libs/reach/feature/content/src/common/cards/CardStyles" {
8241
8303
  export const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8242
8304
  export const Intro: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
8243
8305
  }
8306
+ declare module "libs/reach/feature/content/src/pages/SearchHighlighter" {
8307
+ import { FC } from 'react';
8308
+ import { SearchHighlight } from "libs/reach/util/common/src/index";
8309
+ export const SearchHighlighter: FC<{
8310
+ highlight: SearchHighlight;
8311
+ }>;
8312
+ export function tryGetHighlight(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight;
8313
+ export function tryGetAllHighlights(highlights: SearchHighlight[], preferredLanguage: string): SearchHighlight[];
8314
+ }
8244
8315
  declare module "libs/reach/feature/content/src/pages/PageTitle" {
8245
8316
  import { FC } from 'react';
8246
8317
  import { PageItem } from "libs/reach/util/common/src/index";
@@ -8280,11 +8351,9 @@ declare module "libs/reach/feature/content/src/common/breadcrumb/PageBreadcrumb"
8280
8351
  }
8281
8352
  declare module "libs/reach/feature/content/src/pages/PageListItemBody" {
8282
8353
  import { FC } from 'react';
8283
- import { PublishableItemContent } from "libs/reach/util/common/src/index";
8354
+ import { PageItem } from "libs/reach/util/common/src/index";
8284
8355
  export const PageListItemBody: FC<{
8285
- contents: {
8286
- [key: string]: PublishableItemContent;
8287
- };
8356
+ page: PageItem;
8288
8357
  search?: string;
8289
8358
  }>;
8290
8359
  }
@@ -10301,6 +10370,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10301
10370
  isDemoContent?: boolean;
10302
10371
  isFollowing?: boolean;
10303
10372
  poll?: import("@livetiles/reach/util/common").Poll;
10373
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10304
10374
  fileAccessToken?: string;
10305
10375
  attachmentContainerId?: string;
10306
10376
  } | {
@@ -10400,6 +10470,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10400
10470
  useExternalContent?: boolean;
10401
10471
  isDemoContent?: boolean;
10402
10472
  poll?: import("@livetiles/reach/util/common").Poll;
10473
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10403
10474
  } | {
10404
10475
  groupId: string;
10405
10476
  attachments: {
@@ -10505,6 +10576,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10505
10576
  useExternalContent?: boolean;
10506
10577
  isDemoContent?: boolean;
10507
10578
  poll?: import("@livetiles/reach/util/common").Poll;
10579
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10508
10580
  } | {
10509
10581
  groupId: string;
10510
10582
  attachments: {
@@ -10605,6 +10677,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10605
10677
  useExternalContent?: boolean;
10606
10678
  isDemoContent?: boolean;
10607
10679
  poll?: import("@livetiles/reach/util/common").Poll;
10680
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10608
10681
  })[];
10609
10682
  export function convertProperties(items: StreamItem[], user: CurrentUser, subscriptionChannels?: Channel[]): ({
10610
10683
  keywords: {
@@ -10631,6 +10704,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10631
10704
  isDemoContent?: boolean;
10632
10705
  isFollowing?: boolean;
10633
10706
  poll?: import("@livetiles/reach/util/common").Poll;
10707
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10634
10708
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10635
10709
  fileAccessToken?: string;
10636
10710
  attachmentContainerId?: string;
@@ -10680,6 +10754,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10680
10754
  useExternalContent?: boolean;
10681
10755
  isDemoContent?: boolean;
10682
10756
  poll?: import("@livetiles/reach/util/common").Poll;
10757
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10683
10758
  } | {
10684
10759
  keywords: {
10685
10760
  [key: string]: Keyword[];
@@ -10734,6 +10809,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10734
10809
  useExternalContent?: boolean;
10735
10810
  isDemoContent?: boolean;
10736
10811
  poll?: import("@livetiles/reach/util/common").Poll;
10812
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10737
10813
  } | {
10738
10814
  keywords: {
10739
10815
  [key: string]: Keyword[];
@@ -10783,6 +10859,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10783
10859
  useExternalContent?: boolean;
10784
10860
  isDemoContent?: boolean;
10785
10861
  poll?: import("@livetiles/reach/util/common").Poll;
10862
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10786
10863
  } | {
10787
10864
  userResponse: EventResponse;
10788
10865
  cancelInformation: {
@@ -10833,6 +10910,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10833
10910
  isDemoContent?: boolean;
10834
10911
  isFollowing?: boolean;
10835
10912
  poll?: import("@livetiles/reach/util/common").Poll;
10913
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10836
10914
  attachments?: import("@livetiles/reach/util/common").Attachment[];
10837
10915
  fileAccessToken?: string;
10838
10916
  attachmentContainerId?: string;
@@ -10904,6 +10982,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10904
10982
  useExternalContent?: boolean;
10905
10983
  isDemoContent?: boolean;
10906
10984
  poll?: import("@livetiles/reach/util/common").Poll;
10985
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10907
10986
  } | {
10908
10987
  userResponse: EventResponse;
10909
10988
  cancelInformation: {
@@ -10976,6 +11055,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10976
11055
  useExternalContent?: boolean;
10977
11056
  isDemoContent?: boolean;
10978
11057
  poll?: import("@livetiles/reach/util/common").Poll;
11058
+ searchHighlights?: import("@livetiles/reach/util/common").SearchHighlightSummary;
10979
11059
  })[];
10980
11060
  }
10981
11061
  declare module "libs/reach/feature/content/src/stream/useStreamItemsQuery" {
@@ -11143,6 +11223,19 @@ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11143
11223
  deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11144
11224
  };
11145
11225
  }
11226
+ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11227
+ import { EventCancelReasons, EventCancelInformation, EventItem } from "libs/reach/util/common/src/index";
11228
+ import { PublishableItem } from "libs/reach/util/common/src/index";
11229
+ export function useEventsEditorApi(): {
11230
+ getEvent: (eventId: string) => Promise<EventItem>;
11231
+ cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11232
+ uncancelEvent: (id: string) => Promise<unknown>;
11233
+ unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11234
+ deleteEventPermanently: (eventId: string) => any;
11235
+ saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11236
+ deleteModifiedRecurrence: (eventId: string) => any;
11237
+ };
11238
+ }
11146
11239
  declare module "libs/reach/feature/content/src/editor/index" {
11147
11240
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11148
11241
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11152,6 +11245,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11152
11245
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11153
11246
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11154
11247
  export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11248
+ export * from "libs/reach/feature/content/src/editor/useEventsEditorApi";
11155
11249
  }
11156
11250
  declare module "libs/reach/feature/content/src/public-user/index" {
11157
11251
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
@@ -11203,15 +11297,6 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11203
11297
  export const EVENTS_QUERY: (includeAllItems: boolean, whereConditions?: string, sortByAscending?: boolean) => import("@apollo/client").DocumentNode;
11204
11298
  export const CONTACTS_CONDITION: (contacts: string[]) => string;
11205
11299
  }
11206
- declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11207
- import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11208
- import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11209
- export interface onMarkAsReadHandlers {
11210
- onStarted?: () => unknown;
11211
- onFinished?: () => unknown;
11212
- }
11213
- export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11214
- }
11215
11300
  declare module "libs/reach/feature/content/src/stream/PostStreamFilterDefinition" {
11216
11301
  import { AuthorFilterDefinition, BeforePublishingDateFilterDefinition, PostFilterDefinition } from "libs/reach/feature/content/src/index";
11217
11302
  export interface PostStreamFilterDefinition extends PostFilterDefinition, BeforePublishingDateFilterDefinition, AuthorFilterDefinition {
@@ -11224,6 +11309,15 @@ declare module "libs/reach/feature/content/src/stream/usePostsStreamDataLoader"
11224
11309
  export function usePostsStreamDataLoader(groupId?: string, filter?: PostStreamFilterDefinition, searchText?: string): ItemLoader<PostStreamItem, number>;
11225
11310
  export const POSTS_QUERY: (whereConditions?: string) => import("@apollo/client").DocumentNode;
11226
11311
  }
11312
+ declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11313
+ import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11314
+ import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11315
+ export interface onMarkAsReadHandlers {
11316
+ onStarted?: () => unknown;
11317
+ onFinished?: () => unknown;
11318
+ }
11319
+ export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11320
+ }
11227
11321
  declare module "libs/reach/feature/content/src/stream/usePagesStreamDataLoader" {
11228
11322
  import { ItemLoader } from "libs/reach/ui/common/src/index";
11229
11323
  import { PageStreamItem } from "libs/reach/feature/content/src/stream/streamUtils";
@@ -11240,8 +11334,8 @@ declare module "libs/reach/feature/content/src/stream/index" {
11240
11334
  export * from "libs/reach/feature/content/src/stream/StreamPostItemCard";
11241
11335
  export * from "libs/reach/feature/content/src/stream/useNewsStreamDataLoader";
11242
11336
  export * from "libs/reach/feature/content/src/stream/useEventsStreamDataLoader";
11243
- export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11244
11337
  export * from "libs/reach/feature/content/src/stream/usePostsStreamDataLoader";
11338
+ export * from "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead";
11245
11339
  export * from "libs/reach/feature/content/src/stream/PostStreamFilterDefinition";
11246
11340
  export * from "libs/reach/feature/content/src/stream/usePagesStreamDataLoader";
11247
11341
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.18",
7
+ "version": "0.5.0-preview.20",
8
8
  "dependencies": {}
9
9
  }