@livetiles/reach-plugin-types 0.4.21 → 0.4.23
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
|
};
|
|
@@ -6504,7 +6505,7 @@ declare module "apps/reach-app/src/app/user/useSelfRegistrationApi" {
|
|
|
6504
6505
|
import { UserRegistrationResult } from "libs/reach/util/common/src/index";
|
|
6505
6506
|
import { SelfRegistrationOptions } from "libs/reach/util/common/src/index";
|
|
6506
6507
|
export function useSelfRegistrationApi(): {
|
|
6507
|
-
changeRegistrationStatus: (upn: string, doAccept: boolean) =>
|
|
6508
|
+
changeRegistrationStatus: (upn: string, doAccept: boolean) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6508
6509
|
hasUserPendingRegistration: (subscriptionId: string, upn: string) => Promise<boolean>;
|
|
6509
6510
|
register: (subscriptionId: string, mail: string, displayName: string) => Promise<UserRegistrationResult>;
|
|
6510
6511
|
updateSelfRegistrationOptions: (config: Partial<SelfRegistrationOptions>) => Promise<unknown>;
|
|
@@ -6814,19 +6815,20 @@ declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
|
6814
6815
|
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6815
6816
|
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6816
6817
|
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6818
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6817
6819
|
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6818
6820
|
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) =>
|
|
6821
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6822
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6823
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6824
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6825
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6826
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6825
6827
|
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) =>
|
|
6828
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6829
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6828
6830
|
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6829
|
-
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) =>
|
|
6831
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6830
6832
|
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6831
6833
|
};
|
|
6832
6834
|
}
|
|
@@ -7288,7 +7290,7 @@ declare module "libs/reach/feature/content/src/posts/usePostsApi" {
|
|
|
7288
7290
|
deletePost: (postId: string) => Promise<unknown>;
|
|
7289
7291
|
getPost: (postId: string, commentCount?: number) => Promise<Post>;
|
|
7290
7292
|
getPostThread: (postId: string, threadId: string) => Promise<Post>;
|
|
7291
|
-
translatePost: (postId: string, language: string) =>
|
|
7293
|
+
translatePost: (postId: string, language: string) => Promise<string>;
|
|
7292
7294
|
searchPostMentionUsers: (searchText: string, postGroupId: string) => Promise<Account[]>;
|
|
7293
7295
|
};
|
|
7294
7296
|
}
|
|
@@ -7527,6 +7529,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
7527
7529
|
className?: string;
|
|
7528
7530
|
allowFilterByChannels?: boolean;
|
|
7529
7531
|
channelBackgroundColor?: string;
|
|
7532
|
+
onChannelClick?: (channel: string) => unknown;
|
|
7530
7533
|
}>;
|
|
7531
7534
|
}
|
|
7532
7535
|
declare module "libs/reach/feature/content/src/common/banner/banner-image/BannerImage" {
|
|
@@ -8935,6 +8938,7 @@ declare module "libs/reach/feature/content/src/news/ItemMetaInfo" {
|
|
|
8935
8938
|
language?: string;
|
|
8936
8939
|
buildChannelFilterUrl?: (channelName: string) => string;
|
|
8937
8940
|
clickableAvatar?: boolean;
|
|
8941
|
+
onChannelClick?: (channel: string) => unknown;
|
|
8938
8942
|
}>;
|
|
8939
8943
|
}
|
|
8940
8944
|
declare module "libs/reach/feature/content/src/news/list-view/ExternalNewsLinkButton" {
|
|
@@ -9325,6 +9329,7 @@ declare module "libs/reach/feature/content/src/common/detail/events/controls/Eve
|
|
|
9325
9329
|
import { FC } from 'react';
|
|
9326
9330
|
export const EventDetailViewMetaInfo: FC<{
|
|
9327
9331
|
allowFilterByChannels?: boolean;
|
|
9332
|
+
onChannelClick?: (channel: string) => unknown;
|
|
9328
9333
|
}>;
|
|
9329
9334
|
}
|
|
9330
9335
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventDetailViewDatesInfo" {
|
|
@@ -9955,6 +9960,7 @@ declare module "libs/reach/feature/content/src/common/detail/controls/DetailView
|
|
|
9955
9960
|
import { FC } from 'react';
|
|
9956
9961
|
export const DetailViewKeywords: FC<{
|
|
9957
9962
|
filterBaseUrl: string;
|
|
9963
|
+
onKeywordClick?: (keyword: string) => unknown;
|
|
9958
9964
|
}>;
|
|
9959
9965
|
}
|
|
9960
9966
|
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
@@ -11619,8 +11625,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11619
11625
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11620
11626
|
export type ShareTokenType = 'preview' | 'published';
|
|
11621
11627
|
export function useShareTokenEditorApi(): {
|
|
11622
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11623
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11628
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11629
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11624
11630
|
};
|
|
11625
11631
|
}
|
|
11626
11632
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11631,9 +11637,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11631
11637
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11632
11638
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11633
11639
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11634
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11640
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11635
11641
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11636
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11642
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11637
11643
|
};
|
|
11638
11644
|
}
|
|
11639
11645
|
declare module "libs/reach/feature/content/src/editor/index" {
|