@livetiles/reach-plugin-types 0.4.22 → 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 +19 -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
|
}
|
|
@@ -11623,8 +11625,8 @@ declare module "libs/reach/feature/content/src/editor/useNewsEditorApi" {
|
|
|
11623
11625
|
declare module "libs/reach/feature/content/src/editor/useShareTokenEditorApi" {
|
|
11624
11626
|
export type ShareTokenType = 'preview' | 'published';
|
|
11625
11627
|
export function useShareTokenEditorApi(): {
|
|
11626
|
-
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11627
|
-
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<
|
|
11628
|
+
activateShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<string>;
|
|
11629
|
+
deleteShareToken: (newsId: string, tokenType?: ShareTokenType) => Promise<unknown>;
|
|
11628
11630
|
};
|
|
11629
11631
|
}
|
|
11630
11632
|
declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
@@ -11635,9 +11637,9 @@ declare module "libs/reach/feature/content/src/editor/useEventsEditorApi" {
|
|
|
11635
11637
|
cancelEvent: (id: string, reasons: EventCancelReasons) => Promise<EventCancelInformation>;
|
|
11636
11638
|
uncancelEvent: (id: string) => Promise<unknown>;
|
|
11637
11639
|
unpublishEvent: (id: string, leaseId: string) => Promise<unknown>;
|
|
11638
|
-
deleteEventPermanently: (eventId: string) =>
|
|
11640
|
+
deleteEventPermanently: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11639
11641
|
saveEvent: (subscriptionId: string, event: PublishableItem, createLease: boolean) => Promise<EventItem>;
|
|
11640
|
-
deleteModifiedRecurrence: (eventId: string) =>
|
|
11642
|
+
deleteModifiedRecurrence: (eventId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
11641
11643
|
};
|
|
11642
11644
|
}
|
|
11643
11645
|
declare module "libs/reach/feature/content/src/editor/index" {
|