@livetiles/reach-plugin-types 0.4.0-preview.564 → 0.4.0-preview.568

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 +16 -0
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1703,6 +1703,11 @@ declare module "libs/reach/util/common/src/content/NewsItem" {
1703
1703
  knownState: KnownNewsState;
1704
1704
  hasNewComments?: boolean;
1705
1705
  isLiked?: boolean;
1706
+ shareToken?: ShareToken;
1707
+ }
1708
+ export interface ShareToken {
1709
+ published?: string;
1710
+ preview?: string;
1706
1711
  }
1707
1712
  export interface NewsItemAlertOptions {
1708
1713
  duration?: string;
@@ -10237,6 +10242,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10237
10242
  knownState: KnownNewsState;
10238
10243
  hasNewComments?: boolean;
10239
10244
  isLiked?: boolean;
10245
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10240
10246
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10241
10247
  channels?: import("@livetiles/reach/util/common").SchedulableItemChannel[];
10242
10248
  lease: import("@livetiles/reach/util/common").LeaseInfo;
@@ -10732,6 +10738,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10732
10738
  expiryDate?: string;
10733
10739
  hasNewComments?: boolean;
10734
10740
  isLiked?: boolean;
10741
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10735
10742
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10736
10743
  lease: import("@livetiles/reach/util/common").LeaseInfo;
10737
10744
  id?: string;
@@ -10801,6 +10808,7 @@ declare module "libs/reach/feature/content/src/stream/streamUtils" {
10801
10808
  expiryDate?: string;
10802
10809
  hasNewComments?: boolean;
10803
10810
  isLiked?: boolean;
10811
+ shareToken?: import("@livetiles/reach/util/common").ShareToken;
10804
10812
  metadata?: import("@livetiles/reach/util/common").NewsMetadata;
10805
10813
  lease: import("@livetiles/reach/util/common").LeaseInfo;
10806
10814
  id?: string;
@@ -11440,6 +11448,13 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
11440
11448
  save: (item: NewsItem, subscriptionId: string) => Observable<NewsItem>;
11441
11449
  };
11442
11450
  }
11451
+ declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11452
+ export type ShareTokenType = 'preview' | 'published';
11453
+ export function useShareTokenEditorApi(): {
11454
+ activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11455
+ deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11456
+ };
11457
+ }
11443
11458
  declare module "libs/reach/feature/content/src/editor/index" {
11444
11459
  export * from "libs/reach/feature/content/src/editor/EditorListItem";
11445
11460
  export * from "libs/reach/feature/content/src/editor/NewsEditorItem";
@@ -11448,6 +11463,7 @@ declare module "libs/reach/feature/content/src/editor/index" {
11448
11463
  export * from "libs/reach/feature/content/src/editor/editorUtils";
11449
11464
  export * from "libs/reach/feature/content/src/editor/useEditorApi";
11450
11465
  export * from "libs/reach/feature/content/src/editor/useNewsEditorApi";
11466
+ export * from "libs/reach/feature/content/src/editor/useShareTokenEditorApi";
11451
11467
  }
11452
11468
  declare module "libs/reach/feature/content/src/public-user/index" {
11453
11469
  export * from "libs/reach/feature/content/src/public-user/PublicUserFullAccessButton";
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.564",
7
+ "version": "0.4.0-preview.568",
8
8
  "dependencies": {}
9
9
  }