@livetiles/reach-plugin-types 0.5.0-preview.150 → 0.5.0-preview.154
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.
- package/lib/index.d.ts +23 -20
- 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) =>
|
|
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<
|
|
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) =>
|
|
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>) =>
|
|
6858
|
-
createEditorComment: (itemId: string, comment: Partial<Comment>) =>
|
|
6859
|
-
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) =>
|
|
6860
|
-
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) =>
|
|
6861
|
-
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) =>
|
|
6862
|
-
getEditorConversations: (itemId: string) =>
|
|
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) =>
|
|
6865
|
-
deleteEditorComment: (itemId: string, commentId: string) =>
|
|
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) =>
|
|
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) =>
|
|
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;
|
|
@@ -10047,8 +10049,9 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
10047
10049
|
import { FC, ReactNode } from 'react';
|
|
10048
10050
|
export const DetailViewNavigation: FC<{
|
|
10049
10051
|
offsetRight?: number;
|
|
10050
|
-
children?: ReactNode;
|
|
10051
10052
|
callout?: ReactNode;
|
|
10053
|
+
className?: string;
|
|
10054
|
+
children?: ReactNode;
|
|
10052
10055
|
}>;
|
|
10053
10056
|
}
|
|
10054
10057
|
declare module "libs/reach/feature/content/src/common/detail/controls/DetailViewBodyExternalContent" {
|
|
@@ -11675,8 +11678,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11675
11678
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11676
11679
|
export type ShareTokenType = 'preview' | 'published';
|
|
11677
11680
|
export function useShareTokenEditorApi(): {
|
|
11678
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11679
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11681
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11682
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11680
11683
|
};
|
|
11681
11684
|
}
|
|
11682
11685
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11687,9 +11690,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11687
11690
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11688
11691
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11689
11692
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11690
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11693
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11691
11694
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11692
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11695
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11693
11696
|
};
|
|
11694
11697
|
}
|
|
11695
11698
|
declare module "libs/reach/feature/content/src/editor/index" {
|