@clxmedia/types 1.0.122 → 1.0.124
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 { CLXTaskWithStatus } from "../tasks";
|
|
3
|
+
import type { CLXTaskAssignment, CLXTaskWithStatus } from "../tasks";
|
|
4
4
|
export type CLXProjectTaskInstance = {
|
|
5
5
|
id: number;
|
|
6
6
|
is_required: boolean;
|
|
@@ -28,11 +28,21 @@ export type CLXProjectDetails = {
|
|
|
28
28
|
implementation_specialist?: CLXUserInstance;
|
|
29
29
|
client_service_analyst?: CLXUserInstance;
|
|
30
30
|
};
|
|
31
|
+
export type CLXProjectNotificationDefinition = {
|
|
32
|
+
id: number;
|
|
33
|
+
on_event_slug: EnterpriseEventSlugs;
|
|
34
|
+
recipient: CLXTaskAssignment;
|
|
35
|
+
notificationSlug: string;
|
|
36
|
+
repeatable: boolean;
|
|
37
|
+
created_at: Date;
|
|
38
|
+
sent_at: Date | null;
|
|
39
|
+
}[];
|
|
31
40
|
export type CLXProjectInstance = {
|
|
32
41
|
id: number;
|
|
33
42
|
master_id: number;
|
|
34
43
|
name: string;
|
|
35
44
|
slug: string;
|
|
45
|
+
notifications?: CLXProjectNotificationDefinition[];
|
|
36
46
|
details?: CLXProjectDetails;
|
|
37
47
|
created_at: Date;
|
|
38
48
|
updated_at: Date;
|
|
@@ -45,14 +45,19 @@ export type TimeDelay = {
|
|
|
45
45
|
unit: 'seconds' | 'minutes' | 'hours' | 'days';
|
|
46
46
|
value: number;
|
|
47
47
|
} | 'immediately';
|
|
48
|
+
export type CLXTaskNotificationType = 'default' | 'initial_notify' | 'first_reminder' | 'second_reminder' | 'third_reminder' | 'final_reminder' | 'alert';
|
|
48
49
|
export type CLXTaskReminderScheduleEntry = {
|
|
49
50
|
delay: TimeDelay;
|
|
50
51
|
type: 'complete' | 'verify';
|
|
51
52
|
notificationSlug: string;
|
|
52
|
-
notificationType
|
|
53
|
-
|
|
54
|
-
recipient?: CLXTaskAssignment;
|
|
53
|
+
notificationType: CLXTaskNotificationType;
|
|
54
|
+
recipient: CLXTaskAssignment | 'current_assignee';
|
|
55
55
|
};
|
|
56
|
+
export type CLXTaskNotificationDefinition = {
|
|
57
|
+
on_action: CLXTaskActionType;
|
|
58
|
+
recipient: CLXTaskAssignment;
|
|
59
|
+
notificationSlug: string;
|
|
60
|
+
}[];
|
|
56
61
|
export type CLXTaskMetaData = {
|
|
57
62
|
verifier: CLXTaskAssignment | null;
|
|
58
63
|
resource?: {
|
|
@@ -60,6 +65,7 @@ export type CLXTaskMetaData = {
|
|
|
60
65
|
label: string;
|
|
61
66
|
};
|
|
62
67
|
reminder_schedule?: CLXTaskReminderScheduleEntry[];
|
|
68
|
+
notifications?: CLXTaskNotificationDefinition[];
|
|
63
69
|
};
|
|
64
70
|
export type CLXTask = {
|
|
65
71
|
id: number;
|