@confidencesystemsinc/sdk 2.0.16 → 2.0.18
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/dist/components/task/ConfidenceTaskListView.d.ts +21 -0
- package/dist/hooks/comments/useManageComment.d.ts +16 -16
- package/dist/index.cjs +24 -24
- package/dist/index.js +5719 -5645
- package/dist/utils/cookies.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TaskButton } from '../../hooks/useTaskButtons';
|
|
2
|
+
import { Task } from '../../types/task.types';
|
|
3
|
+
export declare const TASK_VERIFICATION_TYPE: {
|
|
4
|
+
readonly PHOTO: "photo";
|
|
5
|
+
readonly SCREENSHOT: "screenshot";
|
|
6
|
+
readonly COMMENT: "comment";
|
|
7
|
+
readonly NO_VERIFICATION: null;
|
|
8
|
+
};
|
|
9
|
+
export type TaskVerificationType = (typeof TASK_VERIFICATION_TYPE)[keyof typeof TASK_VERIFICATION_TYPE];
|
|
10
|
+
export declare const ConfidenceTaskListView: ({ task, onButtonClick, canStart, isExpanded, toggleExpanded, playbookId, taskStyle, listStickyTopBase, }: {
|
|
11
|
+
task: Task;
|
|
12
|
+
onButtonClick: (buttonType: TaskButton) => Promise<void>;
|
|
13
|
+
canStart?: boolean;
|
|
14
|
+
isExpanded?: boolean;
|
|
15
|
+
toggleExpanded?: (expand?: boolean) => void;
|
|
16
|
+
playbookId: number;
|
|
17
|
+
taskStyle?: {
|
|
18
|
+
titleColor?: string;
|
|
19
|
+
};
|
|
20
|
+
listStickyTopBase?: number;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Asset, CommentType } from '../../types/comments.types';
|
|
1
|
+
import { Asset, CommentType, TaskAsset } from '../../types/comments.types';
|
|
2
2
|
export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
3
3
|
playbookInstanceId: string | number;
|
|
4
4
|
}) => {
|
|
@@ -27,7 +27,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
27
27
|
comment?: string;
|
|
28
28
|
commentType?: CommentType;
|
|
29
29
|
hasAssets?: boolean;
|
|
30
|
-
attachments?: Asset[];
|
|
30
|
+
attachments?: Asset[] | TaskAsset[];
|
|
31
31
|
}, {
|
|
32
32
|
previousComments: unknown;
|
|
33
33
|
taskInstanceId: number;
|
|
@@ -58,7 +58,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
58
58
|
comment?: string;
|
|
59
59
|
commentType?: CommentType;
|
|
60
60
|
hasAssets?: boolean;
|
|
61
|
-
attachments?: Asset[];
|
|
61
|
+
attachments?: Asset[] | TaskAsset[];
|
|
62
62
|
}, {
|
|
63
63
|
previousComments: unknown;
|
|
64
64
|
taskInstanceId: number;
|
|
@@ -80,7 +80,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
80
80
|
comment?: string;
|
|
81
81
|
commentType?: CommentType;
|
|
82
82
|
hasAssets?: boolean;
|
|
83
|
-
attachments?: Asset[];
|
|
83
|
+
attachments?: Asset[] | TaskAsset[];
|
|
84
84
|
}, {
|
|
85
85
|
previousComments: unknown;
|
|
86
86
|
taskInstanceId: number;
|
|
@@ -104,7 +104,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
104
104
|
comment?: string;
|
|
105
105
|
commentType?: CommentType;
|
|
106
106
|
hasAssets?: boolean;
|
|
107
|
-
attachments?: Asset[];
|
|
107
|
+
attachments?: Asset[] | TaskAsset[];
|
|
108
108
|
};
|
|
109
109
|
error: null;
|
|
110
110
|
isError: false;
|
|
@@ -129,7 +129,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
129
129
|
comment?: string;
|
|
130
130
|
commentType?: CommentType;
|
|
131
131
|
hasAssets?: boolean;
|
|
132
|
-
attachments?: Asset[];
|
|
132
|
+
attachments?: Asset[] | TaskAsset[];
|
|
133
133
|
}, {
|
|
134
134
|
previousComments: unknown;
|
|
135
135
|
taskInstanceId: number;
|
|
@@ -160,7 +160,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
160
160
|
comment?: string;
|
|
161
161
|
commentType?: CommentType;
|
|
162
162
|
hasAssets?: boolean;
|
|
163
|
-
attachments?: Asset[];
|
|
163
|
+
attachments?: Asset[] | TaskAsset[];
|
|
164
164
|
}, {
|
|
165
165
|
previousComments: unknown;
|
|
166
166
|
taskInstanceId: number;
|
|
@@ -182,7 +182,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
182
182
|
comment?: string;
|
|
183
183
|
commentType?: CommentType;
|
|
184
184
|
hasAssets?: boolean;
|
|
185
|
-
attachments?: Asset[];
|
|
185
|
+
attachments?: Asset[] | TaskAsset[];
|
|
186
186
|
}, {
|
|
187
187
|
previousComments: unknown;
|
|
188
188
|
taskInstanceId: number;
|
|
@@ -207,7 +207,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
207
207
|
comment?: string;
|
|
208
208
|
commentType?: CommentType;
|
|
209
209
|
hasAssets?: boolean;
|
|
210
|
-
attachments?: Asset[];
|
|
210
|
+
attachments?: Asset[] | TaskAsset[];
|
|
211
211
|
};
|
|
212
212
|
isError: true;
|
|
213
213
|
isIdle: false;
|
|
@@ -231,7 +231,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
231
231
|
comment?: string;
|
|
232
232
|
commentType?: CommentType;
|
|
233
233
|
hasAssets?: boolean;
|
|
234
|
-
attachments?: Asset[];
|
|
234
|
+
attachments?: Asset[] | TaskAsset[];
|
|
235
235
|
}, {
|
|
236
236
|
previousComments: unknown;
|
|
237
237
|
taskInstanceId: number;
|
|
@@ -262,7 +262,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
262
262
|
comment?: string;
|
|
263
263
|
commentType?: CommentType;
|
|
264
264
|
hasAssets?: boolean;
|
|
265
|
-
attachments?: Asset[];
|
|
265
|
+
attachments?: Asset[] | TaskAsset[];
|
|
266
266
|
}, {
|
|
267
267
|
previousComments: unknown;
|
|
268
268
|
taskInstanceId: number;
|
|
@@ -284,7 +284,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
284
284
|
comment?: string;
|
|
285
285
|
commentType?: CommentType;
|
|
286
286
|
hasAssets?: boolean;
|
|
287
|
-
attachments?: Asset[];
|
|
287
|
+
attachments?: Asset[] | TaskAsset[];
|
|
288
288
|
}, {
|
|
289
289
|
previousComments: unknown;
|
|
290
290
|
taskInstanceId: number;
|
|
@@ -316,7 +316,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
316
316
|
comment?: string;
|
|
317
317
|
commentType?: CommentType;
|
|
318
318
|
hasAssets?: boolean;
|
|
319
|
-
attachments?: Asset[];
|
|
319
|
+
attachments?: Asset[] | TaskAsset[];
|
|
320
320
|
};
|
|
321
321
|
isError: false;
|
|
322
322
|
isIdle: false;
|
|
@@ -340,7 +340,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
340
340
|
comment?: string;
|
|
341
341
|
commentType?: CommentType;
|
|
342
342
|
hasAssets?: boolean;
|
|
343
|
-
attachments?: Asset[];
|
|
343
|
+
attachments?: Asset[] | TaskAsset[];
|
|
344
344
|
}, {
|
|
345
345
|
previousComments: unknown;
|
|
346
346
|
taskInstanceId: number;
|
|
@@ -371,7 +371,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
371
371
|
comment?: string;
|
|
372
372
|
commentType?: CommentType;
|
|
373
373
|
hasAssets?: boolean;
|
|
374
|
-
attachments?: Asset[];
|
|
374
|
+
attachments?: Asset[] | TaskAsset[];
|
|
375
375
|
}, {
|
|
376
376
|
previousComments: unknown;
|
|
377
377
|
taskInstanceId: number;
|
|
@@ -393,7 +393,7 @@ export declare const useManageComment: ({ playbookInstanceId, }: {
|
|
|
393
393
|
comment?: string;
|
|
394
394
|
commentType?: CommentType;
|
|
395
395
|
hasAssets?: boolean;
|
|
396
|
-
attachments?: Asset[];
|
|
396
|
+
attachments?: Asset[] | TaskAsset[];
|
|
397
397
|
}, {
|
|
398
398
|
previousComments: unknown;
|
|
399
399
|
taskInstanceId: number;
|