@n8n/stores 2.37.2 → 2.38.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/cloudPlan.store.d.cts +64 -64
- package/dist/constants2.cjs +1 -0
- package/dist/constants2.cjs.map +1 -1
- package/dist/constants2.d.cts +1 -0
- package/dist/constants2.d.mts +1 -0
- package/dist/constants2.mjs +1 -0
- package/dist/constants2.mjs.map +1 -1
- 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 +250 -250
- package/dist/useAgentRequestStore.d.cts +6 -6
- package/dist/useRootStore.d.cts +76 -81
- package/dist/useRootStore.d.mts +4 -9
- package/dist/useRootStore2.cjs.map +1 -1
- package/dist/useRootStore2.mjs.map +1 -1
- package/dist/users.store.d.cts +56 -56
- package/dist/users.store.d.mts +52 -52
- package/dist/versions.store.d.cts +41 -41
- package/dist/versions.store.d.mts +31 -31
- package/package.json +13 -13
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as pinia2 from "pinia";
|
|
2
2
|
import { AgentRequestQuery } from "n8n-workflow";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _vueuse_core2 from "@vueuse/core";
|
|
4
4
|
|
|
5
5
|
//#region src/useAgentRequestStore.d.ts
|
|
6
6
|
interface IAgentRequest {
|
|
@@ -12,8 +12,8 @@ interface IAgentRequestStoreState {
|
|
|
12
12
|
[nodeName: string]: IAgentRequest;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
declare const useAgentRequestStore:
|
|
16
|
-
agentRequests:
|
|
15
|
+
declare const useAgentRequestStore: pinia2.StoreDefinition<"agentRequest", Pick<{
|
|
16
|
+
agentRequests: _vueuse_core2.RemovableRef<IAgentRequestStoreState>;
|
|
17
17
|
getAgentRequests: (workflowId: string, nodeId: string) => IAgentRequest["query"];
|
|
18
18
|
getQueryValue: (workflowId: string, nodeId: string, nodeName: string, paramName?: string) => unknown;
|
|
19
19
|
setAgentRequestForNode: (workflowId: string, nodeId: string, request: IAgentRequest) => void;
|
|
@@ -21,7 +21,7 @@ declare const useAgentRequestStore: pinia4.StoreDefinition<"agentRequest", Pick<
|
|
|
21
21
|
clearAllAgentRequests: (workflowId?: string) => void;
|
|
22
22
|
getAgentRequest: (workflowId: string, nodeId: string) => IAgentRequest | undefined;
|
|
23
23
|
}, "agentRequests">, Pick<{
|
|
24
|
-
agentRequests:
|
|
24
|
+
agentRequests: _vueuse_core2.RemovableRef<IAgentRequestStoreState>;
|
|
25
25
|
getAgentRequests: (workflowId: string, nodeId: string) => IAgentRequest["query"];
|
|
26
26
|
getQueryValue: (workflowId: string, nodeId: string, nodeName: string, paramName?: string) => unknown;
|
|
27
27
|
setAgentRequestForNode: (workflowId: string, nodeId: string, request: IAgentRequest) => void;
|
|
@@ -29,7 +29,7 @@ declare const useAgentRequestStore: pinia4.StoreDefinition<"agentRequest", Pick<
|
|
|
29
29
|
clearAllAgentRequests: (workflowId?: string) => void;
|
|
30
30
|
getAgentRequest: (workflowId: string, nodeId: string) => IAgentRequest | undefined;
|
|
31
31
|
}, never>, Pick<{
|
|
32
|
-
agentRequests:
|
|
32
|
+
agentRequests: _vueuse_core2.RemovableRef<IAgentRequestStoreState>;
|
|
33
33
|
getAgentRequests: (workflowId: string, nodeId: string) => IAgentRequest["query"];
|
|
34
34
|
getQueryValue: (workflowId: string, nodeId: string, nodeName: string, paramName?: string) => unknown;
|
|
35
35
|
setAgentRequestForNode: (workflowId: string, nodeId: string, request: IAgentRequest) => void;
|
package/dist/useRootStore.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
|
+
import * as pinia0 from "pinia";
|
|
3
|
+
import { PublicApiContext } from "@n8n/rest-api-client";
|
|
3
4
|
|
|
4
5
|
//#region src/useRootStore.d.ts
|
|
5
6
|
type RootStoreState = {
|
|
@@ -31,36 +32,34 @@ type RootStoreState = {
|
|
|
31
32
|
instanceId: string;
|
|
32
33
|
binaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';
|
|
33
34
|
};
|
|
34
|
-
declare const useRootStore:
|
|
35
|
-
baseUrl:
|
|
36
|
-
formUrl:
|
|
37
|
-
formTestUrl:
|
|
38
|
-
formWaitingUrl:
|
|
39
|
-
mcpUrl:
|
|
40
|
-
mcpTestUrl:
|
|
41
|
-
webhookUrl:
|
|
42
|
-
webhookTestUrl:
|
|
43
|
-
webhookWaitingUrl:
|
|
44
|
-
restUrl:
|
|
45
|
-
restApiContext:
|
|
35
|
+
declare const useRootStore: pinia0.StoreDefinition<"root", Pick<{
|
|
36
|
+
baseUrl: vue0.ComputedRef<string>;
|
|
37
|
+
formUrl: vue0.ComputedRef<string>;
|
|
38
|
+
formTestUrl: vue0.ComputedRef<string>;
|
|
39
|
+
formWaitingUrl: vue0.ComputedRef<string>;
|
|
40
|
+
mcpUrl: vue0.ComputedRef<string>;
|
|
41
|
+
mcpTestUrl: vue0.ComputedRef<string>;
|
|
42
|
+
webhookUrl: vue0.ComputedRef<string>;
|
|
43
|
+
webhookTestUrl: vue0.ComputedRef<string>;
|
|
44
|
+
webhookWaitingUrl: vue0.ComputedRef<string>;
|
|
45
|
+
restUrl: vue0.ComputedRef<string>;
|
|
46
|
+
restApiContext: vue0.ComputedRef<{
|
|
46
47
|
baseUrl: string;
|
|
47
48
|
pushRef: string;
|
|
48
49
|
}>;
|
|
49
|
-
publicApiContext:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
maxExecutionTimeout: vue335.ComputedRef<number>;
|
|
63
|
-
timezone: vue335.ComputedRef<string>;
|
|
50
|
+
publicApiContext: vue0.ComputedRef<PublicApiContext>;
|
|
51
|
+
urlBaseEditor: vue0.ComputedRef<string>;
|
|
52
|
+
urlBaseWebhook: vue0.ComputedRef<string>;
|
|
53
|
+
versionCli: vue0.ComputedRef<string>;
|
|
54
|
+
instanceId: vue0.ComputedRef<string>;
|
|
55
|
+
pushRef: vue0.ComputedRef<string>;
|
|
56
|
+
defaultLocale: vue0.ComputedRef<string>;
|
|
57
|
+
binaryDataMode: vue0.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
|
|
58
|
+
OAuthCallbackUrls: vue0.ComputedRef<object>;
|
|
59
|
+
jwksUri: vue0.ComputedRef<string>;
|
|
60
|
+
executionTimeout: vue0.ComputedRef<number>;
|
|
61
|
+
maxExecutionTimeout: vue0.ComputedRef<number>;
|
|
62
|
+
timezone: vue0.ComputedRef<string>;
|
|
64
63
|
setUrlBaseWebhook: (value: string) => void;
|
|
65
64
|
setUrlBaseEditor: (value: string) => void;
|
|
66
65
|
setUrlBaseWebhookTest: (value: string) => void;
|
|
@@ -85,35 +84,33 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
|
|
|
85
84
|
setPushRef: (value: string) => void;
|
|
86
85
|
setPublicApiPath: (value: string) => void;
|
|
87
86
|
}, never>, Pick<{
|
|
88
|
-
baseUrl:
|
|
89
|
-
formUrl:
|
|
90
|
-
formTestUrl:
|
|
91
|
-
formWaitingUrl:
|
|
92
|
-
mcpUrl:
|
|
93
|
-
mcpTestUrl:
|
|
94
|
-
webhookUrl:
|
|
95
|
-
webhookTestUrl:
|
|
96
|
-
webhookWaitingUrl:
|
|
97
|
-
restUrl:
|
|
98
|
-
restApiContext:
|
|
87
|
+
baseUrl: vue0.ComputedRef<string>;
|
|
88
|
+
formUrl: vue0.ComputedRef<string>;
|
|
89
|
+
formTestUrl: vue0.ComputedRef<string>;
|
|
90
|
+
formWaitingUrl: vue0.ComputedRef<string>;
|
|
91
|
+
mcpUrl: vue0.ComputedRef<string>;
|
|
92
|
+
mcpTestUrl: vue0.ComputedRef<string>;
|
|
93
|
+
webhookUrl: vue0.ComputedRef<string>;
|
|
94
|
+
webhookTestUrl: vue0.ComputedRef<string>;
|
|
95
|
+
webhookWaitingUrl: vue0.ComputedRef<string>;
|
|
96
|
+
restUrl: vue0.ComputedRef<string>;
|
|
97
|
+
restApiContext: vue0.ComputedRef<{
|
|
99
98
|
baseUrl: string;
|
|
100
99
|
pushRef: string;
|
|
101
100
|
}>;
|
|
102
|
-
publicApiContext:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
maxExecutionTimeout: vue335.ComputedRef<number>;
|
|
116
|
-
timezone: vue335.ComputedRef<string>;
|
|
101
|
+
publicApiContext: vue0.ComputedRef<PublicApiContext>;
|
|
102
|
+
urlBaseEditor: vue0.ComputedRef<string>;
|
|
103
|
+
urlBaseWebhook: vue0.ComputedRef<string>;
|
|
104
|
+
versionCli: vue0.ComputedRef<string>;
|
|
105
|
+
instanceId: vue0.ComputedRef<string>;
|
|
106
|
+
pushRef: vue0.ComputedRef<string>;
|
|
107
|
+
defaultLocale: vue0.ComputedRef<string>;
|
|
108
|
+
binaryDataMode: vue0.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
|
|
109
|
+
OAuthCallbackUrls: vue0.ComputedRef<object>;
|
|
110
|
+
jwksUri: vue0.ComputedRef<string>;
|
|
111
|
+
executionTimeout: vue0.ComputedRef<number>;
|
|
112
|
+
maxExecutionTimeout: vue0.ComputedRef<number>;
|
|
113
|
+
timezone: vue0.ComputedRef<string>;
|
|
117
114
|
setUrlBaseWebhook: (value: string) => void;
|
|
118
115
|
setUrlBaseEditor: (value: string) => void;
|
|
119
116
|
setUrlBaseWebhookTest: (value: string) => void;
|
|
@@ -138,35 +135,33 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
|
|
|
138
135
|
setPushRef: (value: string) => void;
|
|
139
136
|
setPublicApiPath: (value: string) => void;
|
|
140
137
|
}, "executionTimeout" | "maxExecutionTimeout" | "jwksUri" | "timezone" | "urlBaseWebhook" | "urlBaseEditor" | "versionCli" | "binaryDataMode" | "instanceId" | "defaultLocale" | "baseUrl" | "pushRef" | "formUrl" | "formTestUrl" | "formWaitingUrl" | "mcpUrl" | "mcpTestUrl" | "webhookUrl" | "webhookTestUrl" | "webhookWaitingUrl" | "restUrl" | "restApiContext" | "publicApiContext" | "OAuthCallbackUrls">, Pick<{
|
|
141
|
-
baseUrl:
|
|
142
|
-
formUrl:
|
|
143
|
-
formTestUrl:
|
|
144
|
-
formWaitingUrl:
|
|
145
|
-
mcpUrl:
|
|
146
|
-
mcpTestUrl:
|
|
147
|
-
webhookUrl:
|
|
148
|
-
webhookTestUrl:
|
|
149
|
-
webhookWaitingUrl:
|
|
150
|
-
restUrl:
|
|
151
|
-
restApiContext:
|
|
138
|
+
baseUrl: vue0.ComputedRef<string>;
|
|
139
|
+
formUrl: vue0.ComputedRef<string>;
|
|
140
|
+
formTestUrl: vue0.ComputedRef<string>;
|
|
141
|
+
formWaitingUrl: vue0.ComputedRef<string>;
|
|
142
|
+
mcpUrl: vue0.ComputedRef<string>;
|
|
143
|
+
mcpTestUrl: vue0.ComputedRef<string>;
|
|
144
|
+
webhookUrl: vue0.ComputedRef<string>;
|
|
145
|
+
webhookTestUrl: vue0.ComputedRef<string>;
|
|
146
|
+
webhookWaitingUrl: vue0.ComputedRef<string>;
|
|
147
|
+
restUrl: vue0.ComputedRef<string>;
|
|
148
|
+
restApiContext: vue0.ComputedRef<{
|
|
152
149
|
baseUrl: string;
|
|
153
150
|
pushRef: string;
|
|
154
151
|
}>;
|
|
155
|
-
publicApiContext:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
maxExecutionTimeout: vue335.ComputedRef<number>;
|
|
169
|
-
timezone: vue335.ComputedRef<string>;
|
|
152
|
+
publicApiContext: vue0.ComputedRef<PublicApiContext>;
|
|
153
|
+
urlBaseEditor: vue0.ComputedRef<string>;
|
|
154
|
+
urlBaseWebhook: vue0.ComputedRef<string>;
|
|
155
|
+
versionCli: vue0.ComputedRef<string>;
|
|
156
|
+
instanceId: vue0.ComputedRef<string>;
|
|
157
|
+
pushRef: vue0.ComputedRef<string>;
|
|
158
|
+
defaultLocale: vue0.ComputedRef<string>;
|
|
159
|
+
binaryDataMode: vue0.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
|
|
160
|
+
OAuthCallbackUrls: vue0.ComputedRef<object>;
|
|
161
|
+
jwksUri: vue0.ComputedRef<string>;
|
|
162
|
+
executionTimeout: vue0.ComputedRef<number>;
|
|
163
|
+
maxExecutionTimeout: vue0.ComputedRef<number>;
|
|
164
|
+
timezone: vue0.ComputedRef<string>;
|
|
170
165
|
setUrlBaseWebhook: (value: string) => void;
|
|
171
166
|
setUrlBaseEditor: (value: string) => void;
|
|
172
167
|
setUrlBaseWebhookTest: (value: string) => void;
|
package/dist/useRootStore.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pinia5 from "pinia";
|
|
2
2
|
import * as vue335 from "vue";
|
|
3
|
+
import { PublicApiContext } from "@n8n/rest-api-client";
|
|
3
4
|
|
|
4
5
|
//#region src/useRootStore.d.ts
|
|
5
6
|
type RootStoreState = {
|
|
@@ -46,9 +47,7 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
|
|
|
46
47
|
baseUrl: string;
|
|
47
48
|
pushRef: string;
|
|
48
49
|
}>;
|
|
49
|
-
publicApiContext: vue335.ComputedRef<
|
|
50
|
-
baseUrl: string;
|
|
51
|
-
}>;
|
|
50
|
+
publicApiContext: vue335.ComputedRef<PublicApiContext>;
|
|
52
51
|
urlBaseEditor: vue335.ComputedRef<string>;
|
|
53
52
|
urlBaseWebhook: vue335.ComputedRef<string>;
|
|
54
53
|
versionCli: vue335.ComputedRef<string>;
|
|
@@ -99,9 +98,7 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
|
|
|
99
98
|
baseUrl: string;
|
|
100
99
|
pushRef: string;
|
|
101
100
|
}>;
|
|
102
|
-
publicApiContext: vue335.ComputedRef<
|
|
103
|
-
baseUrl: string;
|
|
104
|
-
}>;
|
|
101
|
+
publicApiContext: vue335.ComputedRef<PublicApiContext>;
|
|
105
102
|
urlBaseEditor: vue335.ComputedRef<string>;
|
|
106
103
|
urlBaseWebhook: vue335.ComputedRef<string>;
|
|
107
104
|
versionCli: vue335.ComputedRef<string>;
|
|
@@ -152,9 +149,7 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
|
|
|
152
149
|
baseUrl: string;
|
|
153
150
|
pushRef: string;
|
|
154
151
|
}>;
|
|
155
|
-
publicApiContext: vue335.ComputedRef<
|
|
156
|
-
baseUrl: string;
|
|
157
|
-
}>;
|
|
152
|
+
publicApiContext: vue335.ComputedRef<PublicApiContext>;
|
|
158
153
|
urlBaseEditor: vue335.ComputedRef<string>;
|
|
159
154
|
urlBaseWebhook: vue335.ComputedRef<string>;
|
|
160
155
|
versionCli: vue335.ComputedRef<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRootStore2.cjs","names":["STORES","getConfigFromMetaTag"],"sources":["../src/useRootStore.ts"],"sourcesContent":["import { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauth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2.cjs","names":["STORES","getConfigFromMetaTag"],"sources":["../src/useRootStore.ts"],"sourcesContent":["import type { PublicApiContext } from '@n8n/rest-api-client';\nimport { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed<PublicApiContext>(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;;AAQA,MAAM,EAAE,4BAAqC;AAgC7C,MAAa,sCAA2BA,yBAAO,YAAY;CAC1D,MAAM,qBAA4B;EACjC,SAAS,wBAAwB,OAAO;EACxC,cAAcC,2CAAqB,gBAAgB,IAAI;EACvD,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,qBAAqB;EACrB,wBAAwB;EACxB,UAAU;EACV,kBAAkB;EAClB,qBAAqB,OAAO;EAC5B,YAAY;EACZ,mBAAmB,EAAE;EACrB,SAAS;EACT,aAAa,EAAE;EACf,wCAAsB,GAAG,CAAC,aAAa;EACvC,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,oBAAoB;EACpB,YAAY;EACZ,gBAAgB;EAChB,CAAC;CAMF,MAAM,kCAAyB,MAAM,MAAM,QAAQ;CAEnD,MAAM,kCAAyB,GAAG,MAAM,MAAM,iBAAiB,MAAM,MAAM,eAAe;CAE1F,MAAM,sCACC,GAAG,MAAM,MAAM,qBAAqB,MAAM,MAAM,mBACtD;CAED,MAAM,yCACC,GAAG,MAAM,M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B,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;AAK7B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRootStore2.mjs","names":[],"sources":["../src/useRootStore.ts"],"sourcesContent":["import { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;AAOA,MAAM,EAAE,yBAAyB,OAAO,KAAK;AAgC7C,MAAa,eAAe,YAAY,OAAO,YAAY;CAC1D,MAAM,QAAQ,IAAoB;EACjC,SAAS,wBAAwB,OAAO;EACxC,cAAc,qBAAqB,gBAAgB,IAAI;EACvD,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,qBAAqB;EACrB,wBAAwB;EACxB,UAAU;EACV,kBAAkB;EAClB,qBAAqB,OAAO;EAC5B,YAAY;EACZ,mBA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M,uBAAuB,UAAkB;AAC9C,QAAM,MAAM,mBAAmB;;CAGhC,MAAM,0BAA0B,UAAkB;AACjD,QAAM,MAAM,sBAAsB;;CAGnC,MAAM,iBAAiB,UAAkB;AACxC,QAAM,MAAM,aAAa;;CAG1B,MAAM,iBAAiB,UAAkB;AACxC,QAAM,MAAM,aAAa;;CAG1B,MAAM,wBAAwB,UAA+C;AAC5E,QAAM,MAAM,oBAAoB;;CAGjC,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,kBAAkB,UAAyC;AAChE,QAAM,MAAM,cAAc;;CAG3B,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;CAG7B,MAAM,qBAAqB,UAA4C;AACtE,QAAM,MAAM,iBAAiB;;CAG9B,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;AAK7B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
1
|
+
{"version":3,"file":"useRootStore2.mjs","names":[],"sources":["../src/useRootStore.ts"],"sourcesContent":["import type { PublicApiContext } from '@n8n/rest-api-client';\nimport { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed<PublicApiContext>(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId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EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
package/dist/users.store.d.cts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { t as IInviteResponse } from "./invitation2.api.cjs";
|
|
2
2
|
import { t as ModalOpeners } from "./modalOpeners2.cjs";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as vue134 from "vue";
|
|
4
|
+
import * as pinia1 from "pinia";
|
|
5
5
|
import { LoginRequestDto, PasswordUpdateRequestDto, SettingsUpdateRequestDto, User, UserSelfSettingsUpdateRequestDto, UserUpdateRequestDto, UsersListFilterDto } from "@n8n/api-types";
|
|
6
6
|
import { AssignableGlobalRole } from "@n8n/permissions";
|
|
7
7
|
import { CurrentUserResponse, IPersonalizationLatestVersion, IUser, IUserResponse, UpdateGlobalRolePayload } from "@n8n/rest-api-client/api/users";
|
|
8
|
-
import * as
|
|
8
|
+
import * as _vueuse_core0 from "@vueuse/core";
|
|
9
9
|
import * as zod0 from "zod";
|
|
10
10
|
import * as mfaApi from "@n8n/rest-api-client/api/mfa";
|
|
11
11
|
|
|
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: pinia1.StoreDefinition<"users", Pick<{
|
|
16
|
+
initialized: vue134.Ref<boolean, boolean>;
|
|
17
|
+
currentUserId: vue134.Ref<string | null, string | null>;
|
|
18
|
+
usersById: vue134.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
19
|
+
allUsers: vue134.ComputedRef<IUser[]>;
|
|
20
|
+
currentUser: vue134.ComputedRef<IUser | null>;
|
|
21
|
+
userActivated: vue134.ComputedRef<boolean>;
|
|
22
|
+
isDefaultUser: vue134.ComputedRef<boolean>;
|
|
23
|
+
isInstanceOwner: vue134.ComputedRef<boolean>;
|
|
24
|
+
isAdmin: vue134.ComputedRef<boolean>;
|
|
25
|
+
isAdminOrOwner: vue134.ComputedRef<boolean>;
|
|
26
|
+
mfaEnabled: vue134.ComputedRef<boolean>;
|
|
27
|
+
globalRoleName: vue134.ComputedRef<string>;
|
|
28
|
+
userClaimedAiCredits: vue134.ComputedRef<boolean | undefined>;
|
|
29
|
+
isEasyAIWorkflowOnboardingDone: vue134.ComputedRef<boolean>;
|
|
30
|
+
canUserUpdateVersion: vue134.ComputedRef<boolean>;
|
|
31
|
+
usersLimitNotReached: vue134.ComputedRef<boolean>;
|
|
32
32
|
addUsers: (newUsers: User[]) => void;
|
|
33
33
|
loginWithCookie: () => Promise<void>;
|
|
34
34
|
initialize: () => Promise<void>;
|
|
@@ -144,7 +144,7 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
144
144
|
setCalloutDismissed: (callout: string) => void;
|
|
145
145
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
146
146
|
setUserQuota: (quota?: number) => void;
|
|
147
|
-
usersList:
|
|
147
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
148
148
|
count: number;
|
|
149
149
|
items: {
|
|
150
150
|
id: string;
|
|
@@ -191,22 +191,22 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
191
191
|
}[];
|
|
192
192
|
}, [filter?: UsersListFilterDto | undefined], true>;
|
|
193
193
|
}, "initialized" | "currentUserId" | "usersById" | "usersList">, Pick<{
|
|
194
|
-
initialized:
|
|
195
|
-
currentUserId:
|
|
196
|
-
usersById:
|
|
197
|
-
allUsers:
|
|
198
|
-
currentUser:
|
|
199
|
-
userActivated:
|
|
200
|
-
isDefaultUser:
|
|
201
|
-
isInstanceOwner:
|
|
202
|
-
isAdmin:
|
|
203
|
-
isAdminOrOwner:
|
|
204
|
-
mfaEnabled:
|
|
205
|
-
globalRoleName:
|
|
206
|
-
userClaimedAiCredits:
|
|
207
|
-
isEasyAIWorkflowOnboardingDone:
|
|
208
|
-
canUserUpdateVersion:
|
|
209
|
-
usersLimitNotReached:
|
|
194
|
+
initialized: vue134.Ref<boolean, boolean>;
|
|
195
|
+
currentUserId: vue134.Ref<string | null, string | null>;
|
|
196
|
+
usersById: vue134.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
197
|
+
allUsers: vue134.ComputedRef<IUser[]>;
|
|
198
|
+
currentUser: vue134.ComputedRef<IUser | null>;
|
|
199
|
+
userActivated: vue134.ComputedRef<boolean>;
|
|
200
|
+
isDefaultUser: vue134.ComputedRef<boolean>;
|
|
201
|
+
isInstanceOwner: vue134.ComputedRef<boolean>;
|
|
202
|
+
isAdmin: vue134.ComputedRef<boolean>;
|
|
203
|
+
isAdminOrOwner: vue134.ComputedRef<boolean>;
|
|
204
|
+
mfaEnabled: vue134.ComputedRef<boolean>;
|
|
205
|
+
globalRoleName: vue134.ComputedRef<string>;
|
|
206
|
+
userClaimedAiCredits: vue134.ComputedRef<boolean | undefined>;
|
|
207
|
+
isEasyAIWorkflowOnboardingDone: vue134.ComputedRef<boolean>;
|
|
208
|
+
canUserUpdateVersion: vue134.ComputedRef<boolean>;
|
|
209
|
+
usersLimitNotReached: vue134.ComputedRef<boolean>;
|
|
210
210
|
addUsers: (newUsers: User[]) => void;
|
|
211
211
|
loginWithCookie: () => Promise<void>;
|
|
212
212
|
initialize: () => Promise<void>;
|
|
@@ -322,7 +322,7 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
322
322
|
setCalloutDismissed: (callout: string) => void;
|
|
323
323
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
324
324
|
setUserQuota: (quota?: number) => void;
|
|
325
|
-
usersList:
|
|
325
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
326
326
|
count: number;
|
|
327
327
|
items: {
|
|
328
328
|
id: string;
|
|
@@ -369,22 +369,22 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
369
369
|
}[];
|
|
370
370
|
}, [filter?: UsersListFilterDto | undefined], true>;
|
|
371
371
|
}, "allUsers" | "currentUser" | "userActivated" | "isDefaultUser" | "isInstanceOwner" | "isAdmin" | "isAdminOrOwner" | "mfaEnabled" | "globalRoleName" | "userClaimedAiCredits" | "isEasyAIWorkflowOnboardingDone" | "canUserUpdateVersion" | "usersLimitNotReached">, Pick<{
|
|
372
|
-
initialized:
|
|
373
|
-
currentUserId:
|
|
374
|
-
usersById:
|
|
375
|
-
allUsers:
|
|
376
|
-
currentUser:
|
|
377
|
-
userActivated:
|
|
378
|
-
isDefaultUser:
|
|
379
|
-
isInstanceOwner:
|
|
380
|
-
isAdmin:
|
|
381
|
-
isAdminOrOwner:
|
|
382
|
-
mfaEnabled:
|
|
383
|
-
globalRoleName:
|
|
384
|
-
userClaimedAiCredits:
|
|
385
|
-
isEasyAIWorkflowOnboardingDone:
|
|
386
|
-
canUserUpdateVersion:
|
|
387
|
-
usersLimitNotReached:
|
|
372
|
+
initialized: vue134.Ref<boolean, boolean>;
|
|
373
|
+
currentUserId: vue134.Ref<string | null, string | null>;
|
|
374
|
+
usersById: vue134.Ref<Record<string, IUser>, Record<string, IUser>>;
|
|
375
|
+
allUsers: vue134.ComputedRef<IUser[]>;
|
|
376
|
+
currentUser: vue134.ComputedRef<IUser | null>;
|
|
377
|
+
userActivated: vue134.ComputedRef<boolean>;
|
|
378
|
+
isDefaultUser: vue134.ComputedRef<boolean>;
|
|
379
|
+
isInstanceOwner: vue134.ComputedRef<boolean>;
|
|
380
|
+
isAdmin: vue134.ComputedRef<boolean>;
|
|
381
|
+
isAdminOrOwner: vue134.ComputedRef<boolean>;
|
|
382
|
+
mfaEnabled: vue134.ComputedRef<boolean>;
|
|
383
|
+
globalRoleName: vue134.ComputedRef<string>;
|
|
384
|
+
userClaimedAiCredits: vue134.ComputedRef<boolean | undefined>;
|
|
385
|
+
isEasyAIWorkflowOnboardingDone: vue134.ComputedRef<boolean>;
|
|
386
|
+
canUserUpdateVersion: vue134.ComputedRef<boolean>;
|
|
387
|
+
usersLimitNotReached: vue134.ComputedRef<boolean>;
|
|
388
388
|
addUsers: (newUsers: User[]) => void;
|
|
389
389
|
loginWithCookie: () => Promise<void>;
|
|
390
390
|
initialize: () => Promise<void>;
|
|
@@ -500,7 +500,7 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
500
500
|
setCalloutDismissed: (callout: string) => void;
|
|
501
501
|
submitContactEmail: (email: string, agree: boolean) => Promise<string | null>;
|
|
502
502
|
setUserQuota: (quota?: number) => void;
|
|
503
|
-
usersList:
|
|
503
|
+
usersList: _vueuse_core0.UseAsyncStateReturn<{
|
|
504
504
|
count: number;
|
|
505
505
|
items: {
|
|
506
506
|
id: string;
|
|
@@ -546,7 +546,7 @@ declare const useUsersStore: pinia6.StoreDefinition<"users", Pick<{
|
|
|
546
546
|
isManagedByEnv?: boolean | undefined;
|
|
547
547
|
}[];
|
|
548
548
|
}, [filter?: UsersListFilterDto | undefined], true>;
|
|
549
|
-
}, "initialize" | "generateInviteLink" | "addUsers" | "loginWithCookie" | "setPersonalizationAnswers" | "loginWithCreds" | "logout" | "registerLoginHook" | "registerLogoutHook" | "
|
|
549
|
+
}, "initialize" | "generateInviteLink" | "registerModalOpeners" | "addUsers" | "loginWithCookie" | "setPersonalizationAnswers" | "loginWithCreds" | "logout" | "registerLoginHook" | "registerLogoutHook" | "setPermissionsResolvers" | "createOwner" | "validateSignupToken" | "acceptInvitation" | "sendForgotPasswordEmail" | "validatePasswordToken" | "changePassword" | "updateUser" | "updateUserName" | "updateUserSettings" | "updateOtherUserSettings" | "updateCurrentUserPassword" | "deleteUser" | "fetchUsers" | "inviteUsers" | "reinviteUser" | "getUserPasswordResetLink" | "submitPersonalizationSurvey" | "showPersonalizationSurvey" | "fetchMfaQR" | "verifyMfaCode" | "enableMfa" | "disableMfa" | "updateEnforceMfa" | "canEnableMFA" | "sendConfirmationEmail" | "updateGlobalRole" | "setEasyAIWorkflowOnboardingDone" | "isCalloutDismissed" | "setCalloutDismissed" | "submitContactEmail" | "setUserQuota">>;
|
|
550
550
|
//#endregion
|
|
551
551
|
export { LoginHook, useUsersStore };
|
|
552
552
|
//# sourceMappingURL=users.store.d.cts.map
|