@clxmedia/types 1.0.147 → 1.0.149
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/core/auth/index.d.ts +30 -0
- package/dist/core/tasks/index.d.ts +4 -17
- package/package.json +1 -1
|
@@ -23,3 +23,33 @@ export type XperienceRightsData = {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
export type CLiQUserLocatorType = 'user' | 'group' | 'role' | 'right' | 'odoo_role';
|
|
27
|
+
export type CLiQUserLocatorConstraint = 'internal' | 'external';
|
|
28
|
+
export type CLiQUserLocatorRoles = 'implementation_specialist' | 'account_manager' | 'client_service_analyst';
|
|
29
|
+
export type CLiQUserLocatorBase = {
|
|
30
|
+
type: CLiQUserLocatorType;
|
|
31
|
+
constraint?: CLiQUserLocatorConstraint;
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
export type CLiQUserLocatorUser = CLiQUserLocatorBase & {
|
|
35
|
+
type: 'user';
|
|
36
|
+
value: `${string}@${string}`;
|
|
37
|
+
};
|
|
38
|
+
export type CLiQUserLocatorGroup = CLiQUserLocatorBase & {
|
|
39
|
+
type: 'group';
|
|
40
|
+
};
|
|
41
|
+
export type CLiQUserLocatorRole = CLiQUserLocatorBase & {
|
|
42
|
+
type: 'role';
|
|
43
|
+
constraint: 'internal';
|
|
44
|
+
};
|
|
45
|
+
export type CLiQUserLocatorRight = CLiQUserLocatorBase & {
|
|
46
|
+
type: 'right';
|
|
47
|
+
value: `${XperienceScopes}@${XperienceAbility}`;
|
|
48
|
+
};
|
|
49
|
+
export type CLiQUserLocatorOdooRole = CLiQUserLocatorBase & {
|
|
50
|
+
type: 'odoo_role';
|
|
51
|
+
};
|
|
52
|
+
export type CLiQUserLocator = CLiQUserLocatorUser | CLiQUserLocatorGroup | CLiQUserLocatorRole | CLiQUserLocatorRight | CLiQUserLocatorOdooRole;
|
|
53
|
+
export type CLiQuserLocatorSlugUnqualified = `${CLiQUserLocatorType}:${string}`;
|
|
54
|
+
export type CLiQuserLocatorSlugQualified = `${CLiQUserLocatorType}:${string}:${CLiQUserLocatorConstraint}`;
|
|
55
|
+
export type CLiQuserLocatorSlug = CLiQuserLocatorSlugUnqualified | CLiQuserLocatorSlugQualified;
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
+
import { CLiQUserLocator, CLiQuserLocatorSlug } from "../auth";
|
|
1
2
|
import { CLXFormRuleSet } from "../clxforms";
|
|
2
3
|
import type { EnterpriseEventSlugs } from "../events";
|
|
3
4
|
export type CLXSortDirection = 'asc' | 'desc';
|
|
4
|
-
export type CLXTaskAssignmentType = 'unassigned' | 'internal' | 'external' | 'role' | 'group' | 'user' | 'right';
|
|
5
|
-
export type CLXTaskAssignmentGeneral = {
|
|
6
|
-
type: 'unassigned' | 'internal' | 'external';
|
|
7
|
-
};
|
|
8
|
-
export type CLXTaskAssignmentSlug = {
|
|
9
|
-
type: 'role' | 'group' | 'right';
|
|
10
|
-
slug: string;
|
|
11
|
-
};
|
|
12
|
-
export type CLXTaskAssignmentUser = {
|
|
13
|
-
type: 'user';
|
|
14
|
-
email: string;
|
|
15
|
-
};
|
|
16
|
-
export type CLXTaskAssignment = CLXTaskAssignmentGeneral | CLXTaskAssignmentSlug | CLXTaskAssignmentUser;
|
|
17
5
|
export type CLXTaskStatus = 'pending' | 'open' | 'done';
|
|
18
6
|
export type CLXTaskFilter = {
|
|
19
|
-
|
|
20
|
-
assignment_value?: string;
|
|
7
|
+
cliq_user_locator_slug: CLiQuserLocatorSlug;
|
|
21
8
|
my_tasks?: boolean;
|
|
22
9
|
master_id?: number;
|
|
23
10
|
include_closed?: boolean;
|
|
@@ -219,7 +206,7 @@ export type ProjectReminderConfig = {
|
|
|
219
206
|
schedule: ProjectReminderScheduleEntry[];
|
|
220
207
|
};
|
|
221
208
|
export type CLXTaskMetaData = {
|
|
222
|
-
verifier:
|
|
209
|
+
verifier: CLiQUserLocator | null;
|
|
223
210
|
resource?: {
|
|
224
211
|
path: string;
|
|
225
212
|
label: string;
|
|
@@ -267,7 +254,7 @@ export type CLXTask = CLXTaskBase & {
|
|
|
267
254
|
closed_at: Date | null;
|
|
268
255
|
master_id: number;
|
|
269
256
|
entity_name: string;
|
|
270
|
-
assignment:
|
|
257
|
+
assignment: CLiQUserLocator | null;
|
|
271
258
|
target: CLXTaskTargetNone | CLXTaskTarget;
|
|
272
259
|
};
|
|
273
260
|
export type CLXTaskHistoryEntry = {
|