@confidencesystemsinc/sdk 1.5.4 → 1.5.5

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.
Files changed (52) hide show
  1. package/dist/SelfShadowComponent.d.ts +1 -1
  2. package/dist/components/comments/CommentBoxRoot.d.ts +1 -0
  3. package/dist/components/comments/CommentContainer.d.ts +13 -0
  4. package/dist/components/comments/CommentContextMenu.d.ts +9 -0
  5. package/dist/components/comments/CommentEditor/CommentEditor.d.ts +18 -0
  6. package/dist/components/comments/CommentEditor/CommentFileThumbnail.d.ts +7 -0
  7. package/dist/components/comments/CommentEditor/CommentImageThumbnail.d.ts +5 -0
  8. package/dist/components/comments/CommentEditor/CommentToolbar.d.ts +9 -0
  9. package/dist/components/comments/CommentEditor/FloatingLinkEditorPlugin.d.ts +6 -0
  10. package/dist/components/comments/CommentEditor/theme.d.ts +15 -0
  11. package/dist/components/comments/CommentFilePreview.d.ts +4 -0
  12. package/dist/components/comments/CommentImagePreview.d.ts +6 -0
  13. package/dist/components/comments/ConfidenceCommentBox.d.ts +49 -0
  14. package/dist/components/playbook/{playbook-header.d.ts → PlaybookHeader.d.ts} +1 -1
  15. package/dist/components/task/CommentButton.d.ts +7 -0
  16. package/dist/components/task/{confidence-task.d.ts → ConfidenceTask.d.ts} +3 -2
  17. package/dist/components/task/{task-dropdown-badge.d.ts → TaskDropdownBadge.d.ts} +5 -2
  18. package/dist/components/ui/avatar.d.ts +5 -0
  19. package/dist/components/ui/context-menu.d.ts +10 -0
  20. package/dist/components/ui/input.d.ts +2 -1
  21. package/dist/components/ui/modal.d.ts +2 -2
  22. package/dist/context/comment-context.d.ts +18 -0
  23. package/dist/context/confidence-context.d.ts +5 -1
  24. package/dist/empty.png +0 -0
  25. package/dist/hooks/comments/useComments.d.ts +178 -0
  26. package/dist/hooks/comments/useManageComment.d.ts +408 -0
  27. package/dist/hooks/task/useTaskDetails.d.ts +6 -0
  28. package/dist/hooks/useTaskButtons.d.ts +1 -0
  29. package/dist/index.cjs +94 -66
  30. package/dist/index.css +1 -0
  31. package/dist/index.js +23078 -10849
  32. package/dist/profile-ghost.jpg +0 -0
  33. package/dist/services/get-comments.service.d.ts +4 -0
  34. package/dist/services/manage-comment.service.d.ts +19 -0
  35. package/dist/services/upload-attachment.service.d.ts +6 -0
  36. package/dist/stories/{confidence-task.stories.d.ts → ConfidenceTask.stories.d.ts} +3 -0
  37. package/dist/stories/modal.stories.d.ts +1 -1
  38. package/dist/theme.css +1 -1
  39. package/dist/types/comments.types.d.ts +38 -0
  40. package/dist/types/task.types.d.ts +5 -0
  41. package/dist/utils/asset.d.ts +23 -0
  42. package/dist/utils/editor.d.ts +1 -0
  43. package/dist/utils/encode.d.ts +2 -0
  44. package/dist/utils/url.d.ts +2 -0
  45. package/package.json +13 -2
  46. /package/dist/components/playbook/{confidence-playbook.d.ts → ConfidencePlaybook.d.ts} +0 -0
  47. /package/dist/components/task/{task-buttons.d.ts → TaskButtons.d.ts} +0 -0
  48. /package/dist/components/task/{task-expanded-content.d.ts → TaskExpandedContent.d.ts} +0 -0
  49. /package/dist/components/task/{task-left-panel.d.ts → TaskLeftPanel.d.ts} +0 -0
  50. /package/dist/components/task/{task-status-badge.d.ts → TaskStatusBadge.d.ts} +0 -0
  51. /package/dist/stories/{confidence-playbook-button.stories.d.ts → ConfidencePlaybookButton.stories.d.ts} +0 -0
  52. /package/dist/stories/{initiate-playbook-modal.stories.d.ts → InitiatePlaybookModal.stories.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { ConfidencePlaybook } from './components/playbook/confidence-playbook';
1
+ import { ConfidencePlaybook } from './components/playbook/ConfidencePlaybook';
2
2
  export declare const SelfShadowComponent: {
3
3
  (props: React.ComponentProps<typeof ConfidencePlaybook>): import('react').ReactPortal;
4
4
  AutoInstantiated: (props: React.ComponentProps<typeof ConfidencePlaybook.AutoInstantiated>) => import('react').ReactPortal;
@@ -0,0 +1 @@
1
+ export declare const commentBoxRoot: HTMLElement;
@@ -0,0 +1,13 @@
1
+ import { TaskAsset, CommentType } from '../../types/comments.types';
2
+ export declare const CommentContainer: ({ commentType, author, username, comment, createdDate, onDelete, onEdit, hasAssets, taskAssets, taskVerified, }: {
3
+ author: string;
4
+ username: string;
5
+ comment: string;
6
+ commentType: CommentType;
7
+ createdDate?: string;
8
+ hasAssets: boolean;
9
+ taskAssets?: TaskAsset[];
10
+ onDelete: () => void;
11
+ onEdit: (value: string, commentType: CommentType) => void;
12
+ taskVerified: boolean;
13
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { CommentType } from '../../types/comments.types';
2
+ export declare const CommentContextMenu: ({ commentType, onEdit, onSaveCommentType, onDelete, taskVerified, isUsernameAuthor, }: {
3
+ commentType: CommentType;
4
+ onEdit: () => void;
5
+ onSaveCommentType: (type: CommentType) => void;
6
+ onDelete: () => void;
7
+ taskVerified: boolean;
8
+ isUsernameAuthor: boolean;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { Asset, CommentType } from '../../../types/comments.types';
2
+ export interface CommentEditorProps {
3
+ clearKey?: number;
4
+ inputFieldClassName?: string;
5
+ containerClassName?: string;
6
+ initialValue?: string;
7
+ onChange: (value: string) => void;
8
+ commentType: CommentType;
9
+ onCommentTypeChange?: (type: CommentType) => void;
10
+ isCommentTypeEditable?: boolean;
11
+ actions?: React.ReactNode;
12
+ onAddAttachments?: (files: FileList) => void;
13
+ onRemoveAttachment?: (file: File) => void;
14
+ attachments?: Asset[];
15
+ onSubmit?: () => void;
16
+ isOpen?: boolean;
17
+ }
18
+ export declare function CommentEditor({ attachments, clearKey, inputFieldClassName, containerClassName, initialValue, onChange, commentType, onCommentTypeChange, isCommentTypeEditable, actions, onAddAttachments, onRemoveAttachment, onSubmit, isOpen, }: CommentEditorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ interface CommentFileThumbnailProps {
2
+ onRemoveFile: () => void;
3
+ type: string;
4
+ label: string;
5
+ }
6
+ declare const CommentFileThumbnail: ({ onRemoveFile, type, label, }: CommentFileThumbnailProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default CommentFileThumbnail;
@@ -0,0 +1,5 @@
1
+ declare const CommentImageThumbnail: ({ url, onDelete, }: {
2
+ url: string;
3
+ onDelete: () => void;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default CommentImageThumbnail;
@@ -0,0 +1,9 @@
1
+ import { CommentType } from '../../../types/comments.types';
2
+ export declare function CommentToolbar({ commentType, onCommentTypeChange, isCommentTypeEditable, actions, setIsLinkEditMode, onAddAttachments, }: {
3
+ commentType: CommentType;
4
+ onCommentTypeChange?: (type: CommentType) => void;
5
+ isCommentTypeEditable?: boolean;
6
+ actions?: React.ReactNode;
7
+ setIsLinkEditMode: (isLinkEditMode: boolean) => void;
8
+ onAddAttachments?: (files: FileList) => void;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Dispatch } from 'react';
2
+ export default function FloatingLinkEditorPlugin({ anchorElem, isLinkEditMode, setIsLinkEditMode, }: {
3
+ anchorElem?: HTMLElement;
4
+ isLinkEditMode: boolean;
5
+ setIsLinkEditMode: Dispatch<boolean>;
6
+ }): JSX.Element | null;
@@ -0,0 +1,15 @@
1
+ export declare const commentEditorTheme: {
2
+ paragraph: string;
3
+ list: {
4
+ ol: string;
5
+ ul: string;
6
+ };
7
+ text: {
8
+ bold: string;
9
+ italic: string;
10
+ underline: string;
11
+ strikethrough: string;
12
+ code: string;
13
+ };
14
+ link: string;
15
+ };
@@ -0,0 +1,4 @@
1
+ import { TaskAsset } from '../../types/comments.types';
2
+ export declare const CommentFilePreview: ({ asset }: {
3
+ asset: TaskAsset;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { TaskAsset } from '../../types/comments.types';
3
+ export declare const CommentImagePreview: ({ asset, onSetActiveSrc, }: {
4
+ asset: TaskAsset;
5
+ onSetActiveSrc: Dispatch<SetStateAction<string>>;
6
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import { ConfidenceComment, CommentType } from '../../types/comments.types';
2
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
3
+ export declare const COMMENT_TYPE_STYLE_MAP: {
4
+ Info: {
5
+ icon: IconDefinition;
6
+ bg: string;
7
+ border: string;
8
+ iconColor: string;
9
+ fontColor: string;
10
+ };
11
+ Warning: {
12
+ icon: IconDefinition;
13
+ bg: string;
14
+ border: string;
15
+ iconColor: string;
16
+ fontColor: string;
17
+ };
18
+ Danger: {
19
+ icon: IconDefinition;
20
+ bg: string;
21
+ border: string;
22
+ iconColor: string;
23
+ fontColor: string;
24
+ };
25
+ Success: {
26
+ icon: IconDefinition;
27
+ bg: string;
28
+ border: string;
29
+ iconColor: string;
30
+ fontColor: string;
31
+ };
32
+ };
33
+ export declare const COMMENT_TYPE_BUTTONS: {
34
+ type: CommentType;
35
+ icon: IconDefinition;
36
+ color: string;
37
+ title: string;
38
+ }[];
39
+ export interface ConfidenceCommentBoxProps {
40
+ comments: ConfidenceComment[];
41
+ onClose: () => void;
42
+ isOpen: boolean;
43
+ taskName: string;
44
+ taskInstanceId: number | null;
45
+ isLoading: boolean;
46
+ playbookInstanceId: string | number;
47
+ taskVerification: boolean;
48
+ }
49
+ export declare const ConfidenceCommentBox: ({ comments, onClose, isOpen, taskName, taskInstanceId, isLoading, playbookInstanceId, taskVerification, }: ConfidenceCommentBoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ConfidencePlaybookStyleConfiguration } from './confidence-playbook';
1
+ import { ConfidencePlaybookStyleConfiguration } from './ConfidencePlaybook';
2
2
  export declare const PlaybookHeader: import('react').ForwardRefExoticComponent<Omit<import('react').ClassAttributes<HTMLDivElement> & import('react').HTMLAttributes<HTMLDivElement> & {
3
3
  title: string;
4
4
  playbookStyle?: ConfidencePlaybookStyleConfiguration;
@@ -0,0 +1,7 @@
1
+ import { CommentType } from '../../types/comments.types';
2
+ export declare const CommentButton: ({ onMouseOver, onClick, commentsCount, commentType, }: {
3
+ onMouseOver: () => void;
4
+ onClick: () => void;
5
+ commentsCount: number;
6
+ commentType: CommentType;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
1
  import { TaskButton } from '../../hooks/useTaskButtons';
2
2
  import { PlaybookType } from '../../types/playbook.types';
3
3
  import { Task } from '../../types/task.types';
4
- declare const TASK_VERIFICATION_TYPE: {
4
+ export declare const TASK_VERIFICATION_TYPE: {
5
5
  readonly PHOTO: "photo";
6
6
  readonly SCREENSHOT: "screenshot";
7
+ readonly COMMENT: "comment";
8
+ readonly NO_VERIFICATION: null;
7
9
  };
8
10
  export type TaskVerificationType = (typeof TASK_VERIFICATION_TYPE)[keyof typeof TASK_VERIFICATION_TYPE];
9
11
  export declare const ConfidenceTask: ({ task, step, playbookType, onButtonClick, viewMode, canStart, isExpanded, toggleExpanded, playbookId, taskStyle, listStickyTopBase, }: {
@@ -21,4 +23,3 @@ export declare const ConfidenceTask: ({ task, step, playbookType, onButtonClick,
21
23
  };
22
24
  listStickyTopBase?: number;
23
25
  }) => import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,3 +1,4 @@
1
+ import { TaskVerificationType } from './ConfidenceTask';
1
2
  declare const TASK_DROPDOWN_BADGE_VARIANTS: {
2
3
  readonly default: "text-secondary-600 border-secondary-600";
3
4
  readonly primary: "text-primary-600 border-primary-600";
@@ -8,11 +9,13 @@ interface TaskDropdownBadgeProps {
8
9
  variant?: keyof typeof TASK_DROPDOWN_BADGE_VARIANTS;
9
10
  transitions: {
10
11
  id: string;
11
- color: "primary" | "success";
12
+ color: "primary" | "success" | "danger";
12
13
  action: string;
13
14
  to: string;
14
15
  }[];
15
16
  onClick?: (action: string) => void;
17
+ verificationType: TaskVerificationType;
18
+ taskVerified: boolean;
16
19
  }
17
- export declare const TaskDropdownBadge: ({ title, variant, transitions, onClick, }: TaskDropdownBadgeProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const TaskDropdownBadge: ({ title, variant, transitions, verificationType, taskVerified, onClick, }: TaskDropdownBadgeProps) => import("react/jsx-runtime").JSX.Element;
18
21
  export {};
@@ -0,0 +1,5 @@
1
+ export declare const Avatar: ({ src, alt, size, }: {
2
+ src?: string;
3
+ alt?: string;
4
+ size?: number;
5
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { Placement } from '@floating-ui/react';
2
+ import { ReactElement } from 'react';
3
+ export declare const ContextMenu: ({ placement, children, trigger, title, minWidth, }: {
4
+ placement?: Placement;
5
+ children: React.ReactNode;
6
+ trigger: ReactElement;
7
+ title?: string;
8
+ minWidth?: string;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default ContextMenu;
@@ -3,8 +3,9 @@ interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  label?: string;
4
4
  description?: string;
5
5
  error?: boolean;
6
+ containerClassName?: string;
6
7
  }
7
- export declare const InputField: ({ type, className, label, description, error, ...props }: InputProps & {
8
+ export declare const InputField: ({ type, className, label, description, error, containerClassName, ...props }: InputProps & {
8
9
  className?: string;
9
10
  }) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,11 +1,11 @@
1
- import { default as React } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  /** Since this modal is used on external websites it needs to be displayed inside a shadow root */
3
3
  export declare const Modal: ({ isOpen, close, title, dismissOptions, confirmOptions, children, className, }: {
4
4
  className?: string;
5
5
  isOpen: boolean;
6
6
  close: () => void;
7
7
  title?: string;
8
- children: React.ReactNode;
8
+ children: ReactNode;
9
9
  dismissOptions?: {
10
10
  label: string;
11
11
  onClick: () => void;
@@ -0,0 +1,18 @@
1
+ import { ConfidenceComment } from '../types/comments.types';
2
+ export declare const useCommentContext: () => {
3
+ comments: ConfidenceComment[];
4
+ openTaskDetails: {
5
+ taskInstanceId: number | null;
6
+ taskName: string;
7
+ } | null;
8
+ prefetchQuery: (taskInstanceId: number) => void;
9
+ setOpenTaskDetails: (openTaskDetails: {
10
+ taskInstanceId: number | null;
11
+ taskName: string;
12
+ taskVerification: boolean;
13
+ } | null) => void;
14
+ };
15
+ export declare const CommentProvider: ({ playbookInstanceId, children, }: {
16
+ children: React.ReactNode;
17
+ playbookInstanceId: string | number;
18
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,13 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  export declare const ConfidenceProvider: import('react').Provider<{
3
3
  queryClient: QueryClient;
4
- } | null>;
4
+ username: string;
5
+ setUsername: (username: string) => void;
6
+ }>;
5
7
  export declare const useConfidenceContext: () => {
6
8
  queryClient: QueryClient;
9
+ username: string;
10
+ setUsername: (username: string) => void;
7
11
  };
8
12
  export declare const ConfidenceContext: ({ children, }: {
9
13
  children: React.ReactNode;
package/dist/empty.png ADDED
Binary file
@@ -0,0 +1,178 @@
1
+ export declare const useComments: ({ taskInstanceId, enabled, }: {
2
+ taskInstanceId: number;
3
+ enabled: boolean;
4
+ }) => {
5
+ isLoading: boolean;
6
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
7
+ data: any;
8
+ error: Error;
9
+ isError: true;
10
+ isPending: false;
11
+ isLoadingError: false;
12
+ isRefetchError: true;
13
+ isSuccess: false;
14
+ isPlaceholderData: false;
15
+ status: "error";
16
+ dataUpdatedAt: number;
17
+ errorUpdatedAt: number;
18
+ failureCount: number;
19
+ failureReason: Error | null;
20
+ errorUpdateCount: number;
21
+ isFetched: boolean;
22
+ isFetchedAfterMount: boolean;
23
+ isFetching: boolean;
24
+ isInitialLoading: boolean;
25
+ isPaused: boolean;
26
+ isRefetching: boolean;
27
+ isStale: boolean;
28
+ isEnabled: boolean;
29
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
30
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
31
+ promise: Promise<any>;
32
+ comments: any;
33
+ } | {
34
+ isLoading: boolean;
35
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
36
+ data: any;
37
+ error: null;
38
+ isError: false;
39
+ isPending: false;
40
+ isLoadingError: false;
41
+ isRefetchError: false;
42
+ isSuccess: true;
43
+ isPlaceholderData: false;
44
+ status: "success";
45
+ dataUpdatedAt: number;
46
+ errorUpdatedAt: number;
47
+ failureCount: number;
48
+ failureReason: Error | null;
49
+ errorUpdateCount: number;
50
+ isFetched: boolean;
51
+ isFetchedAfterMount: boolean;
52
+ isFetching: boolean;
53
+ isInitialLoading: boolean;
54
+ isPaused: boolean;
55
+ isRefetching: boolean;
56
+ isStale: boolean;
57
+ isEnabled: boolean;
58
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
59
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
60
+ promise: Promise<any>;
61
+ comments: any;
62
+ } | {
63
+ isLoading: boolean;
64
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
65
+ data: undefined;
66
+ error: Error;
67
+ isError: true;
68
+ isPending: false;
69
+ isLoadingError: true;
70
+ isRefetchError: false;
71
+ isSuccess: false;
72
+ isPlaceholderData: false;
73
+ status: "error";
74
+ dataUpdatedAt: number;
75
+ errorUpdatedAt: number;
76
+ failureCount: number;
77
+ failureReason: Error | null;
78
+ errorUpdateCount: number;
79
+ isFetched: boolean;
80
+ isFetchedAfterMount: boolean;
81
+ isFetching: boolean;
82
+ isInitialLoading: boolean;
83
+ isPaused: boolean;
84
+ isRefetching: boolean;
85
+ isStale: boolean;
86
+ isEnabled: boolean;
87
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
88
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
89
+ promise: Promise<any>;
90
+ comments: any;
91
+ } | {
92
+ isLoading: boolean;
93
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
94
+ data: undefined;
95
+ error: null;
96
+ isError: false;
97
+ isPending: true;
98
+ isLoadingError: false;
99
+ isRefetchError: false;
100
+ isSuccess: false;
101
+ isPlaceholderData: false;
102
+ status: "pending";
103
+ dataUpdatedAt: number;
104
+ errorUpdatedAt: number;
105
+ failureCount: number;
106
+ failureReason: Error | null;
107
+ errorUpdateCount: number;
108
+ isFetched: boolean;
109
+ isFetchedAfterMount: boolean;
110
+ isFetching: boolean;
111
+ isInitialLoading: boolean;
112
+ isPaused: boolean;
113
+ isRefetching: boolean;
114
+ isStale: boolean;
115
+ isEnabled: boolean;
116
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
117
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
118
+ promise: Promise<any>;
119
+ comments: any;
120
+ } | {
121
+ isLoading: boolean;
122
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
123
+ data: undefined;
124
+ error: null;
125
+ isError: false;
126
+ isPending: true;
127
+ isLoadingError: false;
128
+ isRefetchError: false;
129
+ isSuccess: false;
130
+ isPlaceholderData: false;
131
+ status: "pending";
132
+ dataUpdatedAt: number;
133
+ errorUpdatedAt: number;
134
+ failureCount: number;
135
+ failureReason: Error | null;
136
+ errorUpdateCount: number;
137
+ isFetched: boolean;
138
+ isFetchedAfterMount: boolean;
139
+ isFetching: boolean;
140
+ isInitialLoading: boolean;
141
+ isPaused: boolean;
142
+ isRefetching: boolean;
143
+ isStale: boolean;
144
+ isEnabled: boolean;
145
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
146
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
147
+ promise: Promise<any>;
148
+ comments: any;
149
+ } | {
150
+ isLoading: boolean;
151
+ prefetchQuery: (prefetchTaskInstanceId: number) => void;
152
+ data: any;
153
+ isError: false;
154
+ error: null;
155
+ isPending: false;
156
+ isLoadingError: false;
157
+ isRefetchError: false;
158
+ isSuccess: true;
159
+ isPlaceholderData: true;
160
+ status: "success";
161
+ dataUpdatedAt: number;
162
+ errorUpdatedAt: number;
163
+ failureCount: number;
164
+ failureReason: Error | null;
165
+ errorUpdateCount: number;
166
+ isFetched: boolean;
167
+ isFetchedAfterMount: boolean;
168
+ isFetching: boolean;
169
+ isInitialLoading: boolean;
170
+ isPaused: boolean;
171
+ isRefetching: boolean;
172
+ isStale: boolean;
173
+ isEnabled: boolean;
174
+ refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<any, Error>>;
175
+ fetchStatus: import('@tanstack/react-query').FetchStatus;
176
+ promise: Promise<any>;
177
+ comments: any;
178
+ };