@livetiles/reach-plugin-types 0.4.166 → 0.4.178
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 +143 -83
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ declare module "libs/shared/util/environment/src/AnalyticsConfig" {
|
|
|
50
50
|
dashboardHostName: string;
|
|
51
51
|
ingestionHostName: string;
|
|
52
52
|
dashboards: DashboardConfig[];
|
|
53
|
+
matomoConfig: {
|
|
54
|
+
matomoUrl: string;
|
|
55
|
+
scriptUrl: string;
|
|
56
|
+
};
|
|
53
57
|
};
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -899,7 +903,7 @@ declare module "libs/reach/util/common/src/resources/languages/en.async" {
|
|
|
899
903
|
export default en;
|
|
900
904
|
}
|
|
901
905
|
declare module "libs/reach/util/common/src/resources/LazyLanguageResourcesImporter" {
|
|
902
|
-
export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
|
|
906
|
+
export function importLanguageResourcesAsync(language: string): Promise<typeof import("libs/reach/util/common/src/resources/languages/da.async")> | Promise<typeof import("libs/reach/util/common/src/resources/languages/en.async")>;
|
|
903
907
|
}
|
|
904
908
|
declare module "libs/reach/util/common/src/resources/ResourceContextProvider" {
|
|
905
909
|
import { FC } from 'react';
|
|
@@ -1095,6 +1099,8 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1095
1099
|
pageTrackingInfo: PageTrackingInfo;
|
|
1096
1100
|
termsAndConditionsHash?: string;
|
|
1097
1101
|
logoInfo: LogoInfo;
|
|
1102
|
+
analyticsConfig: AnalyticsSubscriptionConfig;
|
|
1103
|
+
systemMessage?: SystemMessage;
|
|
1098
1104
|
disabled: boolean;
|
|
1099
1105
|
}
|
|
1100
1106
|
export interface EssentialSubscriptionData {
|
|
@@ -1125,6 +1131,15 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1125
1131
|
name: string;
|
|
1126
1132
|
contentRegion: string;
|
|
1127
1133
|
}
|
|
1134
|
+
export interface AnalyticsSubscriptionConfig {
|
|
1135
|
+
matomoDimensionMapping: {
|
|
1136
|
+
[key: string]: number;
|
|
1137
|
+
};
|
|
1138
|
+
enableTransferSegment: boolean;
|
|
1139
|
+
matomoSiteId: number;
|
|
1140
|
+
matomoUrl: string;
|
|
1141
|
+
analyticProvider: number;
|
|
1142
|
+
}
|
|
1128
1143
|
export interface SubscriptionSummary extends BaseSubscription {
|
|
1129
1144
|
languages: LanguageBase[];
|
|
1130
1145
|
featureMask: string;
|
|
@@ -1136,6 +1151,9 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1136
1151
|
allowSelfRegistration?: boolean;
|
|
1137
1152
|
brandFolderConfig?: BrandFolderConfig;
|
|
1138
1153
|
hideSubscriptionName?: boolean;
|
|
1154
|
+
profileCardHiddenProperties: string[];
|
|
1155
|
+
useOriginalBannerImageQuality: boolean;
|
|
1156
|
+
useLosslessImageQuality: boolean;
|
|
1139
1157
|
}
|
|
1140
1158
|
export interface BrandFolderConfig {
|
|
1141
1159
|
sections?: string[];
|
|
@@ -1285,6 +1303,14 @@ declare module "libs/reach/util/common/src/user/Subscription" {
|
|
|
1285
1303
|
UserEditable = 2,
|
|
1286
1304
|
Hidden = 3
|
|
1287
1305
|
}
|
|
1306
|
+
export interface SystemMessage {
|
|
1307
|
+
textColor: string;
|
|
1308
|
+
message: string;
|
|
1309
|
+
backgroundColor: string;
|
|
1310
|
+
icon: string;
|
|
1311
|
+
startDate: Date;
|
|
1312
|
+
endDate: Date;
|
|
1313
|
+
}
|
|
1288
1314
|
}
|
|
1289
1315
|
declare module "libs/reach/util/common/src/user/UserChannelSubscription" {
|
|
1290
1316
|
export interface UserChannelSubscription {
|
|
@@ -1553,6 +1579,9 @@ declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
|
1553
1579
|
allowSelfRegistration?: boolean;
|
|
1554
1580
|
brandFolderConfig?: import("libs/reach/util/common/src/user/Subscription").BrandFolderConfig;
|
|
1555
1581
|
hideSubscriptionName?: boolean;
|
|
1582
|
+
profileCardHiddenProperties: string[];
|
|
1583
|
+
useOriginalBannerImageQuality: boolean;
|
|
1584
|
+
useLosslessImageQuality: boolean;
|
|
1556
1585
|
id: string;
|
|
1557
1586
|
subscriptionName: string;
|
|
1558
1587
|
subscriptionHandle?: string;
|
|
@@ -1567,6 +1596,8 @@ declare module "libs/reach/util/common/src/user/useCurrentUserCache" {
|
|
|
1567
1596
|
hasUnreadItems: boolean;
|
|
1568
1597
|
pageTrackingInfo: import("libs/reach/util/common/src/user/Subscription").PageTrackingInfo;
|
|
1569
1598
|
termsAndConditionsHash?: string;
|
|
1599
|
+
analyticsConfig: import("libs/reach/util/common/src/user/Subscription").AnalyticsSubscriptionConfig;
|
|
1600
|
+
systemMessage?: import("libs/reach/util/common/src/user/Subscription").SystemMessage;
|
|
1570
1601
|
disabled: boolean;
|
|
1571
1602
|
};
|
|
1572
1603
|
isEmailVerificationPending?: boolean;
|
|
@@ -2664,7 +2695,8 @@ declare module "libs/reach/util/common/src/analytics/analyticsUtils" {
|
|
|
2664
2695
|
PastEvents = "past",
|
|
2665
2696
|
Users = "users",
|
|
2666
2697
|
WebHooks = "webHooks",
|
|
2667
|
-
Editor = "editor"
|
|
2698
|
+
Editor = "editor",
|
|
2699
|
+
DetailEditor = "detailEditor"
|
|
2668
2700
|
}
|
|
2669
2701
|
export function sanitizeQueryParamsForDownloadLinks(url: string): string;
|
|
2670
2702
|
}
|
|
@@ -2703,9 +2735,9 @@ declare module "libs/reach/util/common/src/analytics/AnalyticsContextProvider" {
|
|
|
2703
2735
|
export function useAnalyticsContext(): {
|
|
2704
2736
|
interaction: (payload: Omit<InteractionProperties, 'module'>) => Promise<void>;
|
|
2705
2737
|
load: (context: import("@livetiles/analytics").AnalyticsContext, baseUrl: string) => void;
|
|
2706
|
-
getUser: () => import("@segment/analytics-next").User;
|
|
2707
2738
|
identify: (userId: string, traits?: Record<string, unknown>) => void;
|
|
2708
2739
|
activity: (payload: import("@livetiles/analytics").ActivityProperties) => import("@livetiles/analytics").Activity;
|
|
2740
|
+
getUser: () => import("@livetiles/analytics").AnalyticUser;
|
|
2709
2741
|
contextualProperties: ContextualProperties;
|
|
2710
2742
|
setContextualProperties: Dispatch<SetStateAction<ContextualProperties>>;
|
|
2711
2743
|
data: EventSearch[];
|
|
@@ -4811,7 +4843,7 @@ declare module "libs/reach/ui/common/src/common/useAttachmentsApi" {
|
|
|
4811
4843
|
uploadImage: (basePath: string, subscriptionId: string, imageId: string, containerId: string, file: File) => Promise<Response>;
|
|
4812
4844
|
uploadFile: (basePath: string, subscriptionId: string, fileId: string, containerId: string, file: File) => Promise<Response>;
|
|
4813
4845
|
getFileUrl: (basePath: string, subscriptionId: string, item: ItemWithAttachments | ChatMessage, fileId: string, token?: string) => string;
|
|
4814
|
-
getImageUrl: (basePath: string, subscriptionId: string, item: ItemWithAttachments, imageId: string, width?: number | 'default', height?: number) => string;
|
|
4846
|
+
getImageUrl: (basePath: string, subscriptionId: string, item: ItemWithAttachments, imageId: string, width?: number | 'default', height?: number, preview?: boolean) => string;
|
|
4815
4847
|
getChatMessageImageUrl: (basePath: string, subscriptionId: string, message: ChatMessage, imageId: string, width?: number | 'default', height?: number) => string;
|
|
4816
4848
|
};
|
|
4817
4849
|
}
|
|
@@ -5209,6 +5241,11 @@ declare module "apps/reach-app/src/app/chrome/MainContentPanelContextProvider" {
|
|
|
5209
5241
|
panelKey?: string;
|
|
5210
5242
|
}>;
|
|
5211
5243
|
}
|
|
5244
|
+
declare module "apps/reach-app/src/app/chrome/SystemMessageBanner" {
|
|
5245
|
+
import { FC } from 'react';
|
|
5246
|
+
export const SystemMessageBanner: FC;
|
|
5247
|
+
export default SystemMessageBanner;
|
|
5248
|
+
}
|
|
5212
5249
|
declare module "apps/reach-app/src/app/chrome/BasicPage" {
|
|
5213
5250
|
import { FC, ReactNode } from 'react';
|
|
5214
5251
|
import { CloseButtonOptions } from "apps/reach-app/src/app/chrome/Header";
|
|
@@ -5348,6 +5385,10 @@ declare module "apps/reach-app/src/app/admin/useSubscriptionAdminApi" {
|
|
|
5348
5385
|
updateCustomNotificationSettings: (customNotificationSettings: {
|
|
5349
5386
|
[key: number]: string;
|
|
5350
5387
|
}) => Promise<unknown>;
|
|
5388
|
+
updateProfileCardHiddenProperties: (hiddenProperties: string[]) => Promise<unknown>;
|
|
5389
|
+
updateImageQualitySettings: (settings: {
|
|
5390
|
+
useOriginalBannerImageQuality: boolean;
|
|
5391
|
+
}) => Promise<unknown>;
|
|
5351
5392
|
};
|
|
5352
5393
|
interface HandleValidationResult {
|
|
5353
5394
|
errorMessage?: string;
|
|
@@ -6203,6 +6244,14 @@ declare module "apps/reach-app/src/app/admin/customization/EmailNotifications" {
|
|
|
6203
6244
|
import { FC } from 'react';
|
|
6204
6245
|
export const EmailNotifications: FC;
|
|
6205
6246
|
}
|
|
6247
|
+
declare module "apps/reach-app/src/app/admin/customization/ProfileCard" {
|
|
6248
|
+
import { FC } from 'react';
|
|
6249
|
+
export const ProfileCard: FC;
|
|
6250
|
+
}
|
|
6251
|
+
declare module "apps/reach-app/src/app/admin/customization/ImageQuality" {
|
|
6252
|
+
import { FC } from 'react';
|
|
6253
|
+
export const ImageQuality: FC;
|
|
6254
|
+
}
|
|
6206
6255
|
declare module "apps/reach-app/src/app/admin/customization/Customization" {
|
|
6207
6256
|
import { FC } from 'react';
|
|
6208
6257
|
export const Customization: FC;
|
|
@@ -6698,6 +6747,16 @@ declare module "apps/reach-app/src/app/admin/users/UsersPage" {
|
|
|
6698
6747
|
import { FC } from 'react';
|
|
6699
6748
|
export const UsersPage: FC;
|
|
6700
6749
|
}
|
|
6750
|
+
declare module "apps/reach-app/src/app/admin/licenses/LicensesData" {
|
|
6751
|
+
export const licenses: {
|
|
6752
|
+
name: string;
|
|
6753
|
+
content: string;
|
|
6754
|
+
}[];
|
|
6755
|
+
}
|
|
6756
|
+
declare module "apps/reach-app/src/app/admin/licenses/LicensesPage" {
|
|
6757
|
+
import { FC } from 'react';
|
|
6758
|
+
export const LicensesPage: FC;
|
|
6759
|
+
}
|
|
6701
6760
|
declare module "libs/reach/feature/content/src/comments/ContentDisplay" {
|
|
6702
6761
|
import { FC } from 'react';
|
|
6703
6762
|
import { Account } from "libs/reach/util/common/src/index";
|
|
@@ -6820,48 +6879,26 @@ declare module "libs/reach/feature/content/src/comments/CommentFilter" {
|
|
|
6820
6879
|
Desc = 1
|
|
6821
6880
|
}
|
|
6822
6881
|
}
|
|
6823
|
-
declare module "libs/reach/feature/content/src/
|
|
6824
|
-
import {
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
}
|
|
6843
|
-
}
|
|
6844
|
-
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
6845
|
-
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
6846
|
-
}
|
|
6847
|
-
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
6848
|
-
import { FC } from 'react';
|
|
6849
|
-
export const ConfirmationBox: FC<{
|
|
6850
|
-
disabled?: boolean;
|
|
6851
|
-
onChange?: (value: boolean) => void;
|
|
6852
|
-
checked: boolean;
|
|
6853
|
-
}>;
|
|
6854
|
-
}
|
|
6855
|
-
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
6856
|
-
import { FC, ReactNode } from 'react';
|
|
6857
|
-
export const GutterMarkerIcon: FC<{
|
|
6858
|
-
iconName: string;
|
|
6859
|
-
children: ReactNode;
|
|
6860
|
-
isActive: boolean;
|
|
6861
|
-
color: string;
|
|
6862
|
-
tooltipResourceKey?: string;
|
|
6863
|
-
className?: string;
|
|
6864
|
-
}>;
|
|
6882
|
+
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
6883
|
+
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
6884
|
+
export default interface FeedbackSummary {
|
|
6885
|
+
records: FeedbackItem[];
|
|
6886
|
+
}
|
|
6887
|
+
export enum FeedbackItemType {
|
|
6888
|
+
comment = "comment",
|
|
6889
|
+
like = "like",
|
|
6890
|
+
confirm = "confirm",
|
|
6891
|
+
poll = "poll",
|
|
6892
|
+
eventRegistration = "eventRegistration"
|
|
6893
|
+
}
|
|
6894
|
+
export interface FeedbackItem {
|
|
6895
|
+
type: FeedbackItemType;
|
|
6896
|
+
timestamp: string;
|
|
6897
|
+
}
|
|
6898
|
+
export interface PollFeedbackItem extends FeedbackItem {
|
|
6899
|
+
type: FeedbackItemType.poll;
|
|
6900
|
+
answers: PollQuestionAnswer[];
|
|
6901
|
+
}
|
|
6865
6902
|
}
|
|
6866
6903
|
declare module "libs/reach/feature/content/src/filter/OwnerFilterDefinition" {
|
|
6867
6904
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
@@ -6915,6 +6952,65 @@ declare module "libs/reach/feature/content/src/filter/BaseFilterDefinition" {
|
|
|
6915
6952
|
And = "AND"
|
|
6916
6953
|
}
|
|
6917
6954
|
}
|
|
6955
|
+
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
6956
|
+
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
6957
|
+
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
6958
|
+
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6959
|
+
export const feedbackCache: {
|
|
6960
|
+
[newsId: string]: Promise<FeedbackSummary>;
|
|
6961
|
+
};
|
|
6962
|
+
export function useFeedbackApi(): {
|
|
6963
|
+
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
6964
|
+
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
6965
|
+
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
6966
|
+
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
6967
|
+
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
6968
|
+
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
6969
|
+
};
|
|
6970
|
+
}
|
|
6971
|
+
declare module "libs/reach/feature/content/src/comments/useCommentApi" {
|
|
6972
|
+
import { ItemResourceTypes } from "libs/reach/util/common/src/index";
|
|
6973
|
+
import { Comment, ConversationScope } from "libs/reach/util/common/src/index";
|
|
6974
|
+
import { Attachment } from "libs/reach/util/common/src/index";
|
|
6975
|
+
import { PaginatedList } from "libs/reach/util/common/src/index";
|
|
6976
|
+
import { CommentFilter } from "libs/reach/feature/content/src/comments/CommentFilter";
|
|
6977
|
+
export function useCommentApi(): {
|
|
6978
|
+
createComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6979
|
+
createEditorComment: (itemId: string, comment: Partial<Comment>) => Promise<Comment>;
|
|
6980
|
+
listComments: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6981
|
+
getCommentReplies: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, filter?: CommentFilter) => Promise<PaginatedList<Comment>>;
|
|
6982
|
+
getCommentThread: (type: ItemResourceTypes, itemId: string, commentId: string) => Promise<PaginatedList<Comment>>;
|
|
6983
|
+
getEditorConversations: (itemId: string) => Promise<Comment[]>;
|
|
6984
|
+
translateComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string, targetLanguage: string) => Promise<string>;
|
|
6985
|
+
deleteComment: (type: ItemResourceTypes, scope: ConversationScope, itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6986
|
+
deleteEditorComment: (itemId: string, commentId: string) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6987
|
+
toggleCommentLike: (commentId: string, isLiked: boolean) => Promise<unknown>;
|
|
6988
|
+
updateComment: (scope: ConversationScope, itemId: string, commentId: string, content: string, attachments: Attachment[], type?: ItemResourceTypes) => Promise<import("restful.js").MemberResponse<unknown>>;
|
|
6989
|
+
onCommentCreated$: import("rxjs").Observable<string>;
|
|
6990
|
+
};
|
|
6991
|
+
}
|
|
6992
|
+
declare module "libs/reach/feature/content/src/forms/NeutralCheckbox" {
|
|
6993
|
+
export const NeutralCheckBox: import("styled-components").StyledComponent<import("react").FunctionComponent<import("office-ui-fabric-react").ICheckboxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
6994
|
+
}
|
|
6995
|
+
declare module "libs/reach/feature/content/src/feedback/ConfirmationBox" {
|
|
6996
|
+
import { FC } from 'react';
|
|
6997
|
+
export const ConfirmationBox: FC<{
|
|
6998
|
+
disabled?: boolean;
|
|
6999
|
+
onChange?: (value: boolean) => void;
|
|
7000
|
+
checked: boolean;
|
|
7001
|
+
}>;
|
|
7002
|
+
}
|
|
7003
|
+
declare module "libs/reach/feature/content/src/feedback/GutterMakerIcon" {
|
|
7004
|
+
import { FC, ReactNode } from 'react';
|
|
7005
|
+
export const GutterMarkerIcon: FC<{
|
|
7006
|
+
iconName: string;
|
|
7007
|
+
children: ReactNode;
|
|
7008
|
+
isActive: boolean;
|
|
7009
|
+
color: string;
|
|
7010
|
+
tooltipResourceKey?: string;
|
|
7011
|
+
className?: string;
|
|
7012
|
+
}>;
|
|
7013
|
+
}
|
|
6918
7014
|
declare module "libs/reach/feature/content/src/filter/AuthorFilterDefinition" {
|
|
6919
7015
|
import { IndexableFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
6920
7016
|
export interface AuthorFilterDefinition extends IndexableFilterDefinition {
|
|
@@ -7140,43 +7236,6 @@ declare module "libs/reach/feature/content/src/news/useNewsApi" {
|
|
|
7140
7236
|
import { NewsApiService } from "libs/reach/feature/content/src/news/NewsApiService";
|
|
7141
7237
|
export function useNewsApi(): NewsApiService;
|
|
7142
7238
|
}
|
|
7143
|
-
declare module "libs/reach/feature/content/src/feedback/FeedbackSummary" {
|
|
7144
|
-
import { PollQuestionAnswer } from "libs/reach/util/common/src/index";
|
|
7145
|
-
export default interface FeedbackSummary {
|
|
7146
|
-
records: FeedbackItem[];
|
|
7147
|
-
}
|
|
7148
|
-
export enum FeedbackItemType {
|
|
7149
|
-
comment = "comment",
|
|
7150
|
-
like = "like",
|
|
7151
|
-
confirm = "confirm",
|
|
7152
|
-
poll = "poll",
|
|
7153
|
-
eventRegistration = "eventRegistration"
|
|
7154
|
-
}
|
|
7155
|
-
export interface FeedbackItem {
|
|
7156
|
-
type: FeedbackItemType;
|
|
7157
|
-
timestamp: string;
|
|
7158
|
-
}
|
|
7159
|
-
export interface PollFeedbackItem extends FeedbackItem {
|
|
7160
|
-
type: FeedbackItemType.poll;
|
|
7161
|
-
answers: PollQuestionAnswer[];
|
|
7162
|
-
}
|
|
7163
|
-
}
|
|
7164
|
-
declare module "libs/reach/feature/content/src/feedback/useFeedbackApi" {
|
|
7165
|
-
import { Account, ItemResourceTypes, PaginatedList, PollQuestionAnswer, PollResult } from "libs/reach/util/common/src/index";
|
|
7166
|
-
import FeedbackSummary from "libs/reach/feature/content/src/feedback/FeedbackSummary";
|
|
7167
|
-
import { BaseFilterDefinition } from "libs/reach/feature/content/src/filter/BaseFilterDefinition";
|
|
7168
|
-
export const feedbackCache: {
|
|
7169
|
-
[newsId: string]: Promise<FeedbackSummary>;
|
|
7170
|
-
};
|
|
7171
|
-
export function useFeedbackApi(): {
|
|
7172
|
-
getFeedback: (type: ItemResourceTypes, itemId: string, onBehalfOfUpn?: string) => Promise<FeedbackSummary>;
|
|
7173
|
-
setFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7174
|
-
unsetFeedback: (type: ItemResourceTypes, itemId: string, feedbackType: string) => Promise<void>;
|
|
7175
|
-
updatePollAnswers: (type: ItemResourceTypes, itemId: string, answers: PollQuestionAnswer[]) => Promise<unknown>;
|
|
7176
|
-
getPollResult: (type: ItemResourceTypes, itemId: string) => Promise<PollResult>;
|
|
7177
|
-
getLikers: (type: ItemResourceTypes, itemId: string, filter: Partial<BaseFilterDefinition>) => Promise<PaginatedList<Account>>;
|
|
7178
|
-
};
|
|
7179
|
-
}
|
|
7180
7239
|
declare module "libs/reach/feature/content/src/feedback/ConfirmationSection" {
|
|
7181
7240
|
import { FC } from 'react';
|
|
7182
7241
|
import { NewsItem } from "libs/reach/util/common/src/index";
|
|
@@ -7247,6 +7306,7 @@ declare module "libs/reach/feature/content/src/comments/FollowComments" {
|
|
|
7247
7306
|
hideProfileUrl?: boolean;
|
|
7248
7307
|
onToggleFollow?: (isFollowed: boolean) => void;
|
|
7249
7308
|
isReadOnly?: boolean;
|
|
7309
|
+
isInDetailView?: boolean;
|
|
7250
7310
|
}
|
|
7251
7311
|
export const FollowComments: FC<Props>;
|
|
7252
7312
|
export const FollowCommentsNotificationWarning: FC<{
|