@livetiles/reach-plugin-types 0.5.0-preview.151 → 0.5.0-preview.155

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 +21 -19
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -2186,6 +2186,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
2186
2186
  }
2187
2187
  }
2188
2188
  declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
2189
+ import { Api } from 'restful.js';
2189
2190
  import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
2190
2191
  export class ClientFactoryInstance {
2191
2192
  private env;
@@ -2196,7 +2197,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
2196
2197
  constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
2197
2198
  url: string;
2198
2199
  }) => Promise<unknown>);
2199
- createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => any;
2200
+ createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
2200
2201
  private createApiInternal;
2201
2202
  private addRequestTimeLogger;
2202
2203
  createApiUrl: (url: string, query?: {
@@ -2968,7 +2969,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
2968
2969
  getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
2969
2970
  saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
2970
2971
  saveFile: (pluginId: string, file: File) => Promise<Response>;
2971
- generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<any>;
2972
+ generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
2972
2973
  linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
2973
2974
  unlinkPlugin: (pluginId: string) => Promise<any>;
2974
2975
  };
@@ -6542,7 +6543,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
6542
6543
  import { UserRegistrationResult } from "libs/reach/util/common/src/index";
6543
6544
  import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
6544
6545
  export function useSelfRegistrationApi(): {
6545
- changeRegistrationStatus: (upn: string, doAccept: boolean) => any;
6546
+ changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
6546
6547
  hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
6547
6548
  register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
6548
6549
  updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
@@ -6852,19 +6853,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
6852
6853
  import { ItemResourceTypes } from "libs/reach/util/common/src/index";
6853
6854
  import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
6854
6855
  import { Attachment } from "libs/reach/util/common/src/index";
6856
+ import { PaginatedList } from "libs/reach/util/common/src/index";
6855
6857
  import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
6856
6858
  export function useCommentApi(): {
6857
- createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => any;
6858
- createEditorComment: (itemId: string, comment: Partial<Comment>) => any;
6859
- listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => any;
6860
- getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => any;
6861
- getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => any;
6862
- getEditorConversations: (itemId: string) => any;
6859
+ createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
6860
+ createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
6861
+ listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
6862
+ getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
6863
+ getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
6864
+ getEditorConversations: (itemId: string) => Promise<Comment[]>;
6863
6865
  translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
6864
- deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => any;
6865
- deleteEditorComment: (itemId: string, commentId: string) => any;
6866
+ deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6867
+ deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
6866
6868
  toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
6867
- updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => any;
6869
+ updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
6868
6870
  onCommentCreated$: import("rxjs").Observable<string>;
6869
6871
  };
6870
6872
  }
@@ -7326,7 +7328,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
7326
7328
  deletePost: (postId: string) => Promise<unknown>;
7327
7329
  getPost: (postId: string, commentCount?: number) => Promise<Post>;
7328
7330
  getPostThread: (postId: string, threadId: string) => Promise<Post>;
7329
- translatePost: (postId: string, language: string) => any;
7331
+ translatePost: (postId: string, language: string) => Promise<string>;
7330
7332
  searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
7331
7333
  };
7332
7334
  }
@@ -8147,9 +8149,9 @@ declare module "libs/reach/feature/content/src/pages/utils" {
8147
8149
  language: string;
8148
8150
  };
8149
8151
  export function getContentForPage(page: PageItem | PageNavigationNode, user: CurrentUser): {
8150
- content: import("@livetiles/reach/util/common").TitleContent & {
8152
+ content: import("@livetiles/reach/util/common").PublishableItemContent | (import("@livetiles/reach/util/common").TitleContent & {
8151
8153
  fileInfo?: import("@livetiles/reach/util/common").DocumentFileInfo;
8152
- };
8154
+ });
8153
8155
  language: string;
8154
8156
  };
8155
8157
  export function getLanguageForPage(page: PageItem | PageNavigationNode, user: CurrentUser): string;
@@ -11676,8 +11678,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
11676
11678
  declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
11677
11679
  export type ShareTokenType = 'preview' | 'published';
11678
11680
  export function useShareTokenEditorApi(): {
11679
- activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11680
- deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<any>;
11681
+ activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
11682
+ deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
11681
11683
  };
11682
11684
  }
11683
11685
  declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
@@ -11688,9 +11690,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
11688
11690
  cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
11689
11691
  uncancelEvent: (id: string) => Promise<unknown>;
11690
11692
  unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
11691
- deleteEventPermanently: (eventId: string) => any;
11693
+ deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
11692
11694
  saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
11693
- deleteModifiedRecurrence: (eventId: string) => any;
11695
+ deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
11694
11696
  };
11695
11697
  }
11696
11698
  declare module "libs/reach/feature/content/src/editor/index" {
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.151",
7
+ "version": "0.5.0-preview.155",
8
8
  "dependencies": {}
9
9
  }