@livetiles/reach-plugin-types 0.4.22 → 0.4.24
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 -17
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2165,6 +2165,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
}
|
|
2167
2167
|
declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
2168
|
+
import { Api } from 'restful.js';
|
|
2168
2169
|
import { EnvironmentConfig } from "libs/shared/util/environment/src/index";
|
|
2169
2170
|
export class ClientFactoryInstance {
|
|
2170
2171
|
private env;
|
|
@@ -2175,7 +2176,7 @@ declare module "libs/reach/util/api-factory/src/ClientFactoryInstance" {
|
|
|
2175
2176
|
constructor(env: EnvironmentConfig, apiEndpoint: string, getToken: () => Promise<string>, handleError?: (error: any, config: {
|
|
2176
2177
|
url: string;
|
|
2177
2178
|
}) => Promise<unknown>);
|
|
2178
|
-
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) =>
|
|
2179
|
+
createApi: (useAsUnauthorized: boolean, subscriptionId?: string) => Api;
|
|
2179
2180
|
private createApiInternal;
|
|
2180
2181
|
private addRequestTimeLogger;
|
|
2181
2182
|
createApiUrl: (url: string, query?: {
|
|
@@ -2947,7 +2948,7 @@ declare module "libs/reach/util/common/src/plugins/usePluginApi" {
|
|
|
2947
2948
|
getPluginFileUrl: (pluginId: string, bundleUrl?: string, bundleModificationDate?: string) => string;
|
|
2948
2949
|
saveDefinition: (plugin: WebPluginDefinition) => Promise<unknown>;
|
|
2949
2950
|
saveFile: (pluginId: string, file: File) => Promise<Response>;
|
|
2950
|
-
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<
|
|
2951
|
+
generateApiKey: (pluginId: string, displayName: string, expiryDate?: string) => Promise<string>;
|
|
2951
2952
|
linkPlugin: (pluginId: string, settings: Record<string, string>) => Promise<any>;
|
|
2952
2953
|
unlinkPlugin: (pluginId: string) => Promise<any>;
|
|
2953
2954
|
};
|
|
@@ -3743,6 +3744,9 @@ declare module "libs/reach/ui/common/src/content-keyword-utils" {
|
|
|
3743
3744
|
export function getPreSelectedKeywords(keywords: Keyword[], mandatoryKeywords: Keyword[]): Keyword[];
|
|
3744
3745
|
export function checkIfHasSameKeywords(keywordsArray1: Keyword[], keywordsArray2: Keyword[]): boolean;
|
|
3745
3746
|
}
|
|
3747
|
+
declare module "libs/reach/ui/common/src/common/messagebar/MessageBarStyles" {
|
|
3748
|
+
export const MessageBarBaseStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
3749
|
+
}
|
|
3746
3750
|
declare module "libs/reach/ui/common/src/NotificationBar" {
|
|
3747
3751
|
import { FC } from 'react';
|
|
3748
3752
|
export const NotificationBar: FC;
|
|
@@ -5145,6 +5149,7 @@ declare module "libs/reach/ui/common/src/common/index" {
|
|
|
5145
5149
|
export * from "libs/reach/ui/common/src/common/error-states/index";
|
|
5146
5150
|
export * from "libs/reach/ui/common/src/common/MenuItemBadge";
|
|
5147
5151
|
export * from "libs/reach/ui/common/src/common/editor-svg/index";
|
|
5152
|
+
export * from "libs/reach/ui/common/src/common/messagebar/MessageBarStyles";
|
|
5148
5153
|
}
|
|
5149
5154
|
declare module "libs/reach/ui/common/src/error/PageAlert" {
|
|
5150
5155
|
import { ReactNode } from 'react';
|
|
@@ -6504,7 +6509,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
|
|
|
6504
6509
|
import { UserRegistrationResult } from "libs/reach/util/common/src/index";
|
|
6505
6510
|
import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
|
|
6506
6511
|
export function useSelfRegistrationApi(): {
|
|
6507
|
-
changeRegistrationStatus: (upn: string, doAccept: boolean) =>
|
|
6512
|
+
changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6508
6513
|
hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
|
|
6509
6514
|
register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
|
|
6510
6515
|
updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
|
|
@@ -6814,19 +6819,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
6814
6819
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6815
6820
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6816
6821
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6822
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6817
6823
|
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6818
6824
|
export function useCommentApi(): {
|
|
6819
|
-
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) =>
|
|
6820
|
-
createEditorComment: (itemId: string, comment: Partial<Comment>) =>
|
|
6821
|
-
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) =>
|
|
6822
|
-
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) =>
|
|
6823
|
-
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) =>
|
|
6824
|
-
getEditorConversations: (itemId: string) =>
|
|
6825
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6826
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6827
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6828
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6829
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6830
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6825
6831
|
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
6826
|
-
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) =>
|
|
6827
|
-
deleteEditorComment: (itemId: string, commentId: string) =>
|
|
6832
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6833
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6828
6834
|
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6829
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) =>
|
|
6835
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6830
6836
|
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6831
6837
|
};
|
|
6832
6838
|
}
|
|
@@ -7288,7 +7294,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
7288
7294
|
deletePost: (postId: string) => Promise<unknown>;
|
|
7289
7295
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
7290
7296
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
7291
|
-
translatePost: (postId: string, language: string) =>
|
|
7297
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
7292
7298
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
7293
7299
|
};
|
|
7294
7300
|
}
|
|
@@ -11623,8 +11629,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11623
11629
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11624
11630
|
export type ShareTokenType = 'preview' | 'published';
|
|
11625
11631
|
export function useShareTokenEditorApi(): {
|
|
11626
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11627
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11632
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11633
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11628
11634
|
};
|
|
11629
11635
|
}
|
|
11630
11636
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11635,9 +11641,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11635
11641
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11636
11642
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11637
11643
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11638
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11644
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11639
11645
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11640
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11646
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11641
11647
|
};
|
|
11642
11648
|
}
|
|
11643
11649
|
declare module "libs/reach/feature/content/src/editor/index" {
|