@clxmedia/types 1.0.101 → 1.0.103
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CLXFormRuleSet } from "../clxforms";
|
|
2
2
|
import type { EnterpriseEventSlugs } from "../events";
|
|
3
|
-
import type {
|
|
3
|
+
import type { CLXTaskWithStatus } from "../tasks";
|
|
4
4
|
export type CLXProjectTaskInstance = {
|
|
5
5
|
id: number;
|
|
6
6
|
is_required: boolean;
|
|
@@ -11,7 +11,7 @@ export type CLXProjectTaskInstance = {
|
|
|
11
11
|
project_step_id: number;
|
|
12
12
|
created_at: Date;
|
|
13
13
|
updated_at: Date;
|
|
14
|
-
task:
|
|
14
|
+
task: CLXTaskWithStatus;
|
|
15
15
|
};
|
|
16
16
|
export type CLXProjectStepInstance = {
|
|
17
17
|
id: number;
|
|
@@ -26,6 +26,19 @@ export type CLXTaskTarget = {
|
|
|
26
26
|
type: 'snapshot' | 'access_request';
|
|
27
27
|
id: number;
|
|
28
28
|
};
|
|
29
|
+
export type CLXTaskAssignmentType = 'unassigned' | 'internal' | 'external' | 'role' | 'group' | 'user';
|
|
30
|
+
export type CLXTaskAssignmentGeneral = {
|
|
31
|
+
type: 'unassigned' | 'internal' | 'external';
|
|
32
|
+
};
|
|
33
|
+
export type CLXTaskAssignmentSlug = {
|
|
34
|
+
type: 'role' | 'group';
|
|
35
|
+
slug: string;
|
|
36
|
+
};
|
|
37
|
+
export type CLXTaskAssignmentUser = {
|
|
38
|
+
type: 'user';
|
|
39
|
+
email: string;
|
|
40
|
+
};
|
|
41
|
+
export type CLXTaskAssignment = CLXTaskAssignmentGeneral | CLXTaskAssignmentSlug | CLXTaskAssignmentUser;
|
|
29
42
|
export type CLXTask = {
|
|
30
43
|
id: number;
|
|
31
44
|
requires_verification: boolean;
|
|
@@ -37,10 +50,7 @@ export type CLXTask = {
|
|
|
37
50
|
closed_at: Date | null;
|
|
38
51
|
master_id: number;
|
|
39
52
|
entity_name: string;
|
|
40
|
-
|
|
41
|
-
id: number;
|
|
42
|
-
email: string;
|
|
43
|
-
};
|
|
53
|
+
assignment: CLXTaskAssignment;
|
|
44
54
|
target: CLXTaskTargetNone | CLXTaskTarget;
|
|
45
55
|
};
|
|
46
56
|
export type CLXTaskHistoryEntry = {
|
|
@@ -54,8 +64,10 @@ export type CLXTaskHistoryEntry = {
|
|
|
54
64
|
email: string;
|
|
55
65
|
};
|
|
56
66
|
};
|
|
57
|
-
export type
|
|
67
|
+
export type CLXTaskWithStatus = CLXTask & {
|
|
58
68
|
completed_at: Date | null;
|
|
59
69
|
verified_at: Date | null;
|
|
70
|
+
};
|
|
71
|
+
export type CLXTaskWithHistory = CLXTaskWithStatus & {
|
|
60
72
|
history: CLXTaskHistoryEntry[];
|
|
61
73
|
};
|