@clxmedia/types 1.0.151 → 1.0.152
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 +13 -9
- package/package.json +1 -1
|
@@ -28,28 +28,32 @@ export type CLiQUserLocatorConstraint = 'internal' | 'external';
|
|
|
28
28
|
export type CLiQUserLocatorRoles = 'implementation_specialist' | 'account_manager' | 'client_service_analyst';
|
|
29
29
|
export type CLiQUserLocatorBase = {
|
|
30
30
|
type: CLiQUserLocatorType;
|
|
31
|
-
constraint?: CLiQUserLocatorConstraint;
|
|
32
31
|
value: string;
|
|
33
32
|
};
|
|
34
33
|
export type CLiQUserLocatorUser = CLiQUserLocatorBase & {
|
|
35
34
|
type: 'user';
|
|
36
|
-
value: `${
|
|
35
|
+
value: `${XperienceScopes}@${XperienceAbility}`;
|
|
37
36
|
};
|
|
37
|
+
export type CLiQUserLocatorUserSlug = `user:${string}@${string}`;
|
|
38
38
|
export type CLiQUserLocatorGroup = CLiQUserLocatorBase & {
|
|
39
39
|
type: 'group';
|
|
40
40
|
};
|
|
41
|
+
export type CLiQUserLocatorGroupSlug = `group:${string}`;
|
|
41
42
|
export type CLiQUserLocatorRole = CLiQUserLocatorBase & {
|
|
42
43
|
type: 'role';
|
|
43
|
-
|
|
44
|
+
value: CLiQUserLocatorRoles;
|
|
45
|
+
};
|
|
46
|
+
export type CLiQUserLocatorRoleSlug = `role:${CLiQUserLocatorRoles}`;
|
|
47
|
+
export type CLiQUserLocatorOdooRole = CLiQUserLocatorBase & {
|
|
48
|
+
type: 'odoo_role';
|
|
44
49
|
};
|
|
50
|
+
export type CLiQUserLocatorOdooRoleSlug = `odoo_role:${string}`;
|
|
45
51
|
export type CLiQUserLocatorRight = CLiQUserLocatorBase & {
|
|
46
52
|
type: 'right';
|
|
47
53
|
value: `${XperienceScopes}@${XperienceAbility}`;
|
|
54
|
+
constraint?: CLiQUserLocatorConstraint;
|
|
48
55
|
};
|
|
49
|
-
export type
|
|
50
|
-
|
|
51
|
-
};
|
|
56
|
+
export type CLiQUserLocatorRightSlug = `right:${XperienceScopes}@${XperienceAbility}`;
|
|
57
|
+
export type CLiQUserLocatorRightQualifiedSlug = `right:${XperienceScopes}@${XperienceAbility}:${CLiQUserLocatorConstraint}`;
|
|
52
58
|
export type CLiQUserLocator = CLiQUserLocatorUser | CLiQUserLocatorGroup | CLiQUserLocatorRole | CLiQUserLocatorRight | CLiQUserLocatorOdooRole;
|
|
53
|
-
export type
|
|
54
|
-
export type CLiQuserLocatorSlugQualified = `${CLiQUserLocatorType}:${string}:${CLiQUserLocatorConstraint}`;
|
|
55
|
-
export type CLiQuserLocatorSlug = CLiQuserLocatorSlugUnqualified | CLiQuserLocatorSlugQualified;
|
|
59
|
+
export type CLiQuserLocatorSlug = CLiQUserLocatorUserSlug | CLiQUserLocatorGroupSlug | CLiQUserLocatorRoleSlug | CLiQUserLocatorRightSlug | CLiQUserLocatorOdooRoleSlug;
|