@n8n/stores 2.33.0 → 2.33.1
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/notifications.store.d.cts +2 -2
- package/dist/rbac.store.d.cts +18 -18
- package/dist/roles.store.d.cts +21 -21
- package/dist/settings.store.d.cts +231 -231
- package/dist/useAgentRequestStore.d.cts +2 -2
- package/dist/useAgentRequestStore.d.mts +6 -6
- package/dist/useRootStore.d.cts +72 -72
- package/dist/useRootStore.d.mts +72 -72
- package/dist/users.store.d.cts +51 -51
- package/dist/users.store.d.mts +55 -55
- package/package.json +5 -5
package/dist/users.store.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IInviteResponse } from "./invitation2.api.mjs";
|
|
2
2
|
import { t as ModalOpeners } from "./modalOpeners2.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as pinia3 from "pinia";
|
|
4
|
+
import * as vue260 from "vue";
|
|
5
5
|
import { LoginRequestDto, PasswordUpdateRequestDto, SettingsUpdateRequestDto, User, UserSelfSettingsUpdateRequestDto, UserUpdateRequestDto, UsersListFilterDto } from "@n8n/api-types";
|
|
6
6
|
import { AssignableGlobalRole } from "@n8n/permissions";
|
|
7
|
-
import * as
|
|
7
|
+
import * as _vueuse_core0 from "@vueuse/core";
|
|
8
8
|
import * as mfaApi from "@n8n/rest-api-client/api/mfa";
|
|
9
9
|
import { CurrentUserResponse, IPersonalizationLatestVersion, IUser, IUserResponse, UpdateGlobalRolePayload } from "@n8n/rest-api-client/api/users";
|
|
10
10
|
import * as zod0 from "zod";
|
|
@@ -12,23 +12,23 @@ import * as zod0 from "zod";
|
|
|
12
12
|
//#region src/users.store.d.ts
|
|
13
13
|
type LoginHook = (user: CurrentUserResponse) => void | Promise<void>;
|
|
14
14
|
type LogoutHook = () => void | Promise<void>;
|
|
15
|
-
declare const useUsersStore:
|
|
16
|
-
initialized:
|
|
17
|
-
currentUserId:
|
|
18
|
-
usersById:
|
|
19
|
-
allUsers:
|
|
20
|
-
currentUser:
|
|
21
|
-
userActivated:
|
|
22
|
-
isDefaultUser:
|
|
23
|
-
isInstanceOwner:
|
|
24
|
-
isAdmin:
|
|
25
|
-
isAdminOrOwner:
|
|
26
|
-
mfaEnabled:
|
|
27
|
-
globalRoleName:
|
|
28
|
-
userClaimedAiCredits:
|
|
29
|
-
isEasyAIWorkflowOnboardingDone:
|
|
30
|
-
canUserUpdateVersion:
|
|
31
|
-
usersLimitNotReached:
|
|
15
|
+
declare const useUsersStore: pinia3.StoreDefinition<"users", Pick<{
|
|
16
|
+
initialized: vue260.Ref<boolean, boolean>;
|
|
17
|
+
currentUserId: vue260.Ref<string | null, string | null>;
|
|
18
|
+
usersById: vue260.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
19
|
+
allUsers: vue260.ComputedRef<IUser[]>;
|
|
20
|
+
currentUser: vue260.ComputedRef<IUser | null>;
|
|
21
|
+
userActivated: vue260.ComputedRef<boolean>;
|
|
22
|
+
isDefaultUser: vue260.ComputedRef<boolean>;
|
|
23
|
+
isInstanceOwner: vue260.ComputedRef<boolean>;
|
|
24
|
+
isAdmin: vue260.ComputedRef<boolean>;
|
|
25
|
+
isAdminOrOwner: vue260.ComputedRef<boolean>;
|
|
26
|
+
mfaEnabled: vue260.ComputedRef<boolean>;
|
|
27
|
+
globalRoleName: vue260.ComputedRef<string>;
|
|
28
|
+
userClaimedAiCredits: vue260.ComputedRef<boolean | undefined>;
|
|
29
|
+
isEasyAIWorkflowOnboardingDone: vue260.ComputedRef<boolean>;
|
|
30
|
+
canUserUpdateVersion: vue260.ComputedRef<boolean>;
|
|
31
|
+
usersLimitNotReached: vue260.ComputedRef<boolean>;
|
|
32
32
|
addUsers: (newUsers: User[]) => void;
|
|
33
33
|
loginWithCookie: () => Promise<void>;
|
|
34
34
|
initialize: () => Promise<void>;
|
|
@@ -140,7 +140,7 @@ declare const useUsersStore: pinia5.StoreDefinition<"users", Pick<{
|
|
|
140
140
|
setCalloutDismissed: (callout: string) => void;
|
|
141
141
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
142
142
|
setUserQuota: (quota?: number) => void;
|
|
143
|
-
usersList:
|
|
143
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
144
144
|
count: number;
|
|
145
145
|
items: {
|
|
146
146
|
id: string;
|
|
@@ -187,22 +187,22 @@ declare const useUsersStore: pinia5.StoreDefinition<"users", Pick<{
|
|
|
187
187
|
}[];
|
|
188
188
|
}, [filter?: UsersListFilterDto | undefined], true>;
|
|
189
189
|
}, "initialized" | "currentUserId" | "usersById" | "usersList">, Pick<{
|
|
190
|
-
initialized:
|
|
191
|
-
currentUserId:
|
|
192
|
-
usersById:
|
|
193
|
-
allUsers:
|
|
194
|
-
currentUser:
|
|
195
|
-
userActivated:
|
|
196
|
-
isDefaultUser:
|
|
197
|
-
isInstanceOwner:
|
|
198
|
-
isAdmin:
|
|
199
|
-
isAdminOrOwner:
|
|
200
|
-
mfaEnabled:
|
|
201
|
-
globalRoleName:
|
|
202
|
-
userClaimedAiCredits:
|
|
203
|
-
isEasyAIWorkflowOnboardingDone:
|
|
204
|
-
canUserUpdateVersion:
|
|
205
|
-
usersLimitNotReached:
|
|
190
|
+
initialized: vue260.Ref<boolean, boolean>;
|
|
191
|
+
currentUserId: vue260.Ref<string | null, string | null>;
|
|
192
|
+
usersById: vue260.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
193
|
+
allUsers: vue260.ComputedRef<IUser[]>;
|
|
194
|
+
currentUser: vue260.ComputedRef<IUser | null>;
|
|
195
|
+
userActivated: vue260.ComputedRef<boolean>;
|
|
196
|
+
isDefaultUser: vue260.ComputedRef<boolean>;
|
|
197
|
+
isInstanceOwner: vue260.ComputedRef<boolean>;
|
|
198
|
+
isAdmin: vue260.ComputedRef<boolean>;
|
|
199
|
+
isAdminOrOwner: vue260.ComputedRef<boolean>;
|
|
200
|
+
mfaEnabled: vue260.ComputedRef<boolean>;
|
|
201
|
+
globalRoleName: vue260.ComputedRef<string>;
|
|
202
|
+
userClaimedAiCredits: vue260.ComputedRef<boolean | undefined>;
|
|
203
|
+
isEasyAIWorkflowOnboardingDone: vue260.ComputedRef<boolean>;
|
|
204
|
+
canUserUpdateVersion: vue260.ComputedRef<boolean>;
|
|
205
|
+
usersLimitNotReached: vue260.ComputedRef<boolean>;
|
|
206
206
|
addUsers: (newUsers: User[]) => void;
|
|
207
207
|
loginWithCookie: () => Promise<void>;
|
|
208
208
|
initialize: () => Promise<void>;
|
|
@@ -314,7 +314,7 @@ declare const useUsersStore: pinia5.StoreDefinition<"users", Pick<{
|
|
|
314
314
|
setCalloutDismissed: (callout: string) => void;
|
|
315
315
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
316
316
|
setUserQuota: (quota?: number) => void;
|
|
317
|
-
usersList:
|
|
317
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
318
318
|
count: number;
|
|
319
319
|
items: {
|
|
320
320
|
id: string;
|
|
@@ -361,22 +361,22 @@ declare const useUsersStore: pinia5.StoreDefinition<"users", Pick<{
|
|
|
361
361
|
}[];
|
|
362
362
|
}, [filter?: UsersListFilterDto | undefined], true>;
|
|
363
363
|
}, "allUsers" | "currentUser" | "userActivated" | "isDefaultUser" | "isInstanceOwner" | "isAdmin" | "isAdminOrOwner" | "mfaEnabled" | "globalRoleName" | "userClaimedAiCredits" | "isEasyAIWorkflowOnboardingDone" | "canUserUpdateVersion" | "usersLimitNotReached">, Pick<{
|
|
364
|
-
initialized:
|
|
365
|
-
currentUserId:
|
|
366
|
-
usersById:
|
|
367
|
-
allUsers:
|
|
368
|
-
currentUser:
|
|
369
|
-
userActivated:
|
|
370
|
-
isDefaultUser:
|
|
371
|
-
isInstanceOwner:
|
|
372
|
-
isAdmin:
|
|
373
|
-
isAdminOrOwner:
|
|
374
|
-
mfaEnabled:
|
|
375
|
-
globalRoleName:
|
|
376
|
-
userClaimedAiCredits:
|
|
377
|
-
isEasyAIWorkflowOnboardingDone:
|
|
378
|
-
canUserUpdateVersion:
|
|
379
|
-
usersLimitNotReached:
|
|
364
|
+
initialized: vue260.Ref<boolean, boolean>;
|
|
365
|
+
currentUserId: vue260.Ref<string | null, string | null>;
|
|
366
|
+
usersById: vue260.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
367
|
+
allUsers: vue260.ComputedRef<IUser[]>;
|
|
368
|
+
currentUser: vue260.ComputedRef<IUser | null>;
|
|
369
|
+
userActivated: vue260.ComputedRef<boolean>;
|
|
370
|
+
isDefaultUser: vue260.ComputedRef<boolean>;
|
|
371
|
+
isInstanceOwner: vue260.ComputedRef<boolean>;
|
|
372
|
+
isAdmin: vue260.ComputedRef<boolean>;
|
|
373
|
+
isAdminOrOwner: vue260.ComputedRef<boolean>;
|
|
374
|
+
mfaEnabled: vue260.ComputedRef<boolean>;
|
|
375
|
+
globalRoleName: vue260.ComputedRef<string>;
|
|
376
|
+
userClaimedAiCredits: vue260.ComputedRef<boolean | undefined>;
|
|
377
|
+
isEasyAIWorkflowOnboardingDone: vue260.ComputedRef<boolean>;
|
|
378
|
+
canUserUpdateVersion: vue260.ComputedRef<boolean>;
|
|
379
|
+
usersLimitNotReached: vue260.ComputedRef<boolean>;
|
|
380
380
|
addUsers: (newUsers: User[]) => void;
|
|
381
381
|
loginWithCookie: () => Promise<void>;
|
|
382
382
|
initialize: () => Promise<void>;
|
|
@@ -488,7 +488,7 @@ declare const useUsersStore: pinia5.StoreDefinition<"users", Pick<{
|
|
|
488
488
|
setCalloutDismissed: (callout: string) => void;
|
|
489
489
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
490
490
|
setUserQuota: (quota?: number) => void;
|
|
491
|
-
usersList:
|
|
491
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
492
492
|
count: number;
|
|
493
493
|
items: {
|
|
494
494
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/stores",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.33.
|
|
4
|
+
"version": "2.33.1",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"LICENSE_EE.md",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"bowser": "2.11.0",
|
|
28
28
|
"pinia": "^2.2.4",
|
|
29
29
|
"vue": "^3.5.13",
|
|
30
|
-
"@n8n/api-types": "1.33.
|
|
30
|
+
"@n8n/api-types": "1.33.1",
|
|
31
31
|
"@n8n/frontend-constants": "0.2.0",
|
|
32
32
|
"@n8n/constants": "0.32.0",
|
|
33
|
-
"@n8n/i18n": "2.33.
|
|
33
|
+
"@n8n/i18n": "2.33.1",
|
|
34
34
|
"@n8n/permissions": "0.70.0",
|
|
35
|
-
"n8n-
|
|
36
|
-
"
|
|
35
|
+
"@n8n/rest-api-client": "2.33.1",
|
|
36
|
+
"n8n-workflow": "2.33.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@testing-library/jest-dom": "^6.6.3",
|