@lystech/core 3.0.150 → 3.1.0
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/index.d.ts +12 -4
- package/dist/lystech-core-provider.es.js +2948 -2948
- package/dist/lystech-core-provider.umd.js +56 -56
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -62,10 +62,16 @@ declare type AuthContextType = {
|
|
|
62
62
|
auth: any;
|
|
63
63
|
isLoggedIn: boolean;
|
|
64
64
|
isCheckingSession: boolean;
|
|
65
|
-
|
|
65
|
+
/** Propriétaire de l'organisation où l'on se trouve. */
|
|
66
|
+
isOwner: boolean;
|
|
67
|
+
/** Pouvoirs de plateforme de la personne (équipe Lystech) ; vide pour tous les autres. */
|
|
68
|
+
pouvoirs: string[];
|
|
69
|
+
/** Même règle que la garde serveur plateforme(pouvoir). */
|
|
70
|
+
aLePouvoir: (pouvoir: string) => boolean;
|
|
71
|
+
/** Au moins un pouvoir de plateforme (menus et outils de l'équipe Lystech). */
|
|
72
|
+
estEquipeLystech: boolean;
|
|
66
73
|
isAdmin: boolean;
|
|
67
74
|
isUser: boolean;
|
|
68
|
-
isSuperAdminInAnyOrganization: boolean;
|
|
69
75
|
isAdminInAnyOrganization: boolean;
|
|
70
76
|
areRoleDetailsLoading: boolean;
|
|
71
77
|
homeRoute: string;
|
|
@@ -2052,13 +2058,15 @@ export declare const useQueryClient: () => QueryClient;
|
|
|
2052
2058
|
export declare type UserRoleDetails = {
|
|
2053
2059
|
role: string;
|
|
2054
2060
|
isOwner: boolean;
|
|
2055
|
-
isSuperAdmin: boolean;
|
|
2056
2061
|
isAdmin: boolean;
|
|
2057
2062
|
isUser: boolean;
|
|
2058
|
-
isSuperAdminOrMore: boolean;
|
|
2059
2063
|
isAdminOrMore: boolean;
|
|
2060
2064
|
isUserOrMore: boolean;
|
|
2061
2065
|
isAdminInAnyOrganization: boolean;
|
|
2066
|
+
/** Peut écrire le contenu du site de cette organisation. */
|
|
2067
|
+
isEditorOrMore?: boolean;
|
|
2068
|
+
/** Pouvoirs de PLATEFORME de la personne (équipe Lystech) ; vide pour tous les autres. */
|
|
2069
|
+
pouvoirs?: string[];
|
|
2062
2070
|
};
|
|
2063
2071
|
|
|
2064
2072
|
export declare type UserSubscription = {
|