@clxmedia/types 1.0.63 → 1.0.65
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.
|
@@ -16,11 +16,18 @@ export type PagedResult<T> = {
|
|
|
16
16
|
skip: number;
|
|
17
17
|
};
|
|
18
18
|
export type TaskActionType = 'create' | 'assign' | 'comment' | 'start' | 'complete' | 'close';
|
|
19
|
+
export type CLXTaskTargetType = 'none' | 'snapshot' | 'access_request';
|
|
20
|
+
export type CLXTaskTargetNone = {
|
|
21
|
+
type: 'none';
|
|
22
|
+
};
|
|
23
|
+
export type CLXTaskTarget = {
|
|
24
|
+
type: Omit<CLXTaskTargetType, 'none'>;
|
|
25
|
+
id: number;
|
|
26
|
+
};
|
|
19
27
|
export type CLXTask = {
|
|
20
28
|
id: number;
|
|
21
29
|
description: string;
|
|
22
30
|
assigned_to_user_id: number;
|
|
23
|
-
snapshot_id: number;
|
|
24
31
|
created_at: Date;
|
|
25
32
|
closed_at: Date;
|
|
26
33
|
task_type_id: number;
|
|
@@ -34,9 +41,7 @@ export type CLXTask = {
|
|
|
34
41
|
assigned_to_user: {
|
|
35
42
|
email: string;
|
|
36
43
|
};
|
|
37
|
-
|
|
38
|
-
summary: string;
|
|
39
|
-
};
|
|
44
|
+
target: CLXTaskTarget | CLXTaskTargetNone;
|
|
40
45
|
};
|
|
41
46
|
export type CLXTaskWithHistory = CLXTask & {
|
|
42
47
|
history: {
|