@n8n/stores 2.33.1 → 2.34.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.cjs +5 -241
- package/dist/cloudPlan.store.d.cts +72 -66
- package/dist/cloudPlan.store.d.mts +72 -66
- package/dist/cloudPlan.store.mjs +5 -241
- package/dist/cloudPlan2.store.cjs +247 -0
- package/dist/cloudPlan2.store.cjs.map +1 -0
- package/dist/cloudPlan2.store.mjs +242 -0
- package/dist/cloudPlan2.store.mjs.map +1 -0
- package/dist/composables/useBasePageRedirectionHelper.cjs +87 -0
- package/dist/composables/useBasePageRedirectionHelper.cjs.map +1 -0
- package/dist/composables/useBasePageRedirectionHelper.d.cts +16 -0
- package/dist/composables/useBasePageRedirectionHelper.d.mts +16 -0
- package/dist/composables/useBasePageRedirectionHelper.mjs +87 -0
- package/dist/composables/useBasePageRedirectionHelper.mjs.map +1 -0
- 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.cjs +2 -8
- package/dist/notifications.store.cjs.map +1 -1
- package/dist/notifications.store.d.cts +4 -25
- package/dist/notifications.store.d.mts +3 -24
- package/dist/notifications.store.mjs +2 -8
- package/dist/notifications.store.mjs.map +1 -1
- package/dist/pageRedirection.d.cts +6 -0
- package/dist/pageRedirection.d.mts +6 -0
- package/dist/rbac.store.d.cts +105 -105
- package/dist/rbac.store.d.mts +105 -105
- package/dist/roles.store.d.cts +21 -21
- package/dist/roles.store.d.mts +21 -21
- package/dist/settings.store.d.cts +243 -237
- package/dist/settings.store.d.mts +243 -237
- package/dist/settings2.store.cjs +5 -5
- package/dist/settings2.store.cjs.map +1 -1
- package/dist/settings2.store.mjs +5 -5
- package/dist/settings2.store.mjs.map +1 -1
- package/dist/types/pageRedirection.cjs +0 -0
- package/dist/types/pageRedirection.d.cts +2 -0
- package/dist/types/pageRedirection.d.mts +2 -0
- package/dist/types/pageRedirection.mjs +1 -0
- package/dist/useAgentRequestStore.d.cts +6 -6
- package/dist/useAgentRequestStore.d.mts +4 -4
- package/dist/useRootStore.d.cts +72 -72
- package/dist/useRootStore.d.mts +70 -70
- package/dist/users.store.cjs +7 -352
- package/dist/users.store.d.cts +71 -59
- package/dist/users.store.d.mts +71 -59
- package/dist/users.store.mjs +7 -349
- package/dist/users2.store.cjs +362 -0
- package/dist/users2.store.cjs.map +1 -0
- package/dist/users2.store.mjs +353 -0
- package/dist/users2.store.mjs.map +1 -0
- package/dist/versions.store.cjs +11 -0
- package/dist/versions.store.d.cts +384 -0
- package/dist/versions.store.d.mts +384 -0
- package/dist/versions.store.mjs +10 -0
- package/dist/versions2.store.cjs +230 -0
- package/dist/versions2.store.cjs.map +1 -0
- package/dist/versions2.store.mjs +218 -0
- package/dist/versions2.store.mjs.map +1 -0
- package/package.json +14 -13
- package/dist/cloudPlan.store.cjs.map +0 -1
- package/dist/cloudPlan.store.mjs.map +0 -1
- package/dist/users.store.cjs.map +0 -1
- package/dist/users.store.mjs.map +0 -1
package/dist/cloudPlan.store.cjs
CHANGED
|
@@ -1,243 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
require('./settings2.store.cjs');
|
|
2
|
+
require('./constants2.cjs');
|
|
3
3
|
require('./metaTagConfig2.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
__n8n_rest_api_client_api_cloudPlans = require_settings_store.__toESM(__n8n_rest_api_client_api_cloudPlans);
|
|
7
|
-
let pinia = require("pinia");
|
|
8
|
-
let vue = require("vue");
|
|
4
|
+
require('./useRootStore2.cjs');
|
|
5
|
+
const require_cloudPlan_store = require('./cloudPlan2.store.cjs');
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
const CLOUD_TRIAL_CHECK_INTERVAL = 5e3;
|
|
12
|
-
const DEFAULT_STATE = {
|
|
13
|
-
initialized: false,
|
|
14
|
-
data: null,
|
|
15
|
-
usage: null,
|
|
16
|
-
loadingPlan: false
|
|
17
|
-
};
|
|
18
|
-
const useCloudPlanStore = (0, pinia.defineStore)(require_constants.STORES.CLOUD_PLAN, () => {
|
|
19
|
-
const rootStore = require_useRootStore.useRootStore();
|
|
20
|
-
const settingsStore = require_settings_store.useSettingsStore();
|
|
21
|
-
const state = (0, vue.reactive)(DEFAULT_STATE);
|
|
22
|
-
const currentUserCloudInfo = (0, vue.ref)(null);
|
|
23
|
-
const now = (0, vue.ref)(Date.now());
|
|
24
|
-
const _isInstanceOwner = (0, vue.ref)(() => false);
|
|
25
|
-
const setIsInstanceOwner = (getter) => {
|
|
26
|
-
_isInstanceOwner.value = getter;
|
|
27
|
-
};
|
|
28
|
-
const reset = () => {
|
|
29
|
-
currentUserCloudInfo.value = null;
|
|
30
|
-
state.data = null;
|
|
31
|
-
state.usage = null;
|
|
32
|
-
};
|
|
33
|
-
const userIsTrialing = (0, vue.computed)(() => state.data?.userIsTrialing ?? false);
|
|
34
|
-
const bannerConfig = (0, vue.computed)(() => state.data?.bannerConfig);
|
|
35
|
-
const bannerForceShow = (0, vue.computed)(() => bannerConfig.value?.forceShow === true);
|
|
36
|
-
const isBannerDismissed = (0, vue.computed)(() => {
|
|
37
|
-
const dismissed = settingsStore.permanentlyDismissedBanners;
|
|
38
|
-
return dismissed.includes("TRIAL") || dismissed.includes("TRIAL_OVER");
|
|
39
|
-
});
|
|
40
|
-
const shouldShowBanner = (0, vue.computed)(() => {
|
|
41
|
-
if (!bannerConfig.value) return false;
|
|
42
|
-
if (!bannerDismissible.value) return true;
|
|
43
|
-
return bannerForceShow.value || !isBannerDismissed.value;
|
|
44
|
-
});
|
|
45
|
-
const bannerTimeLeft = (0, vue.computed)(() => ({
|
|
46
|
-
show: !!bannerConfig.value?.timeLeft,
|
|
47
|
-
text: bannerConfig.value?.timeLeft?.text
|
|
48
|
-
}));
|
|
49
|
-
const showExecutions = (0, vue.computed)(() => bannerConfig.value?.showExecutions === true);
|
|
50
|
-
const bannerCta = (0, vue.computed)(() => ({
|
|
51
|
-
text: bannerConfig.value?.cta?.text ?? "Upgrade Now",
|
|
52
|
-
icon: bannerConfig.value?.cta?.icon ?? "zap",
|
|
53
|
-
size: bannerConfig.value?.cta?.size ?? "small",
|
|
54
|
-
style: bannerConfig.value?.cta?.style ?? "success",
|
|
55
|
-
variant: bannerConfig.value?.cta?.variant,
|
|
56
|
-
href: bannerConfig.value?.cta?.href
|
|
57
|
-
}));
|
|
58
|
-
const bannerIcon = (0, vue.computed)(() => bannerConfig.value?.icon);
|
|
59
|
-
const bannerDismissible = (0, vue.computed)(() => bannerConfig.value?.dismissible ?? true);
|
|
60
|
-
const currentPlanData = (0, vue.computed)(() => state.data);
|
|
61
|
-
const currentUsageData = (0, vue.computed)(() => state.usage);
|
|
62
|
-
const selectedApps = (0, vue.computed)(() => currentUserCloudInfo.value?.selectedApps);
|
|
63
|
-
const codingSkill = (0, vue.computed)(() => {
|
|
64
|
-
const information = currentUserCloudInfo.value?.information;
|
|
65
|
-
if (!information) return 0;
|
|
66
|
-
if (!("which_of_these_do_you_feel_comfortable_doing" in information && information.which_of_these_do_you_feel_comfortable_doing && Array.isArray(information.which_of_these_do_you_feel_comfortable_doing))) return 0;
|
|
67
|
-
return information.which_of_these_do_you_feel_comfortable_doing.length;
|
|
68
|
-
});
|
|
69
|
-
const trialExpired = (0, vue.computed)(() => state.data?.userIsTrialing && Date.now() >= new Date(state.data?.expirationDate).getTime());
|
|
70
|
-
const allExecutionsUsed = (0, vue.computed)(() => {
|
|
71
|
-
if (!state.usage?.executions || !state.data?.monthlyExecutionsLimit) return false;
|
|
72
|
-
return state.usage?.executions >= state.data?.monthlyExecutionsLimit;
|
|
73
|
-
});
|
|
74
|
-
const hasCloudPlan = (0, vue.computed)(() => {
|
|
75
|
-
const { n8nMetadata } = settingsStore.settings;
|
|
76
|
-
const isCloud = Boolean(settingsStore.isCloudDeployment);
|
|
77
|
-
return _isInstanceOwner.value() && isCloud && !!n8nMetadata?.userId;
|
|
78
|
-
});
|
|
79
|
-
const getUserCloudAccount = async () => {
|
|
80
|
-
if (!hasCloudPlan.value) throw new Error("User does not have a cloud plan");
|
|
81
|
-
let cloudUser = null;
|
|
82
|
-
try {
|
|
83
|
-
cloudUser = await __n8n_rest_api_client_api_cloudPlans.getCloudUserInfo(rootStore.restApiContext);
|
|
84
|
-
currentUserCloudInfo.value = cloudUser;
|
|
85
|
-
} catch (error) {
|
|
86
|
-
throw new Error(error.message);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
const getAutoLoginCode = async () => {
|
|
90
|
-
return await (0, __n8n_rest_api_client_api_cloudPlans.getAdminPanelLoginCode)(rootStore.restApiContext);
|
|
91
|
-
};
|
|
92
|
-
const getOwnerCurrentPlan = async () => {
|
|
93
|
-
if (!hasCloudPlan.value) throw new Error("User does not have a cloud plan");
|
|
94
|
-
state.loadingPlan = true;
|
|
95
|
-
let plan;
|
|
96
|
-
try {
|
|
97
|
-
plan = await (0, __n8n_rest_api_client_api_cloudPlans.getCurrentPlan)(rootStore.restApiContext);
|
|
98
|
-
state.data = plan;
|
|
99
|
-
state.loadingPlan = false;
|
|
100
|
-
} catch (error) {
|
|
101
|
-
state.loadingPlan = false;
|
|
102
|
-
throw new Error(error);
|
|
103
|
-
}
|
|
104
|
-
return plan;
|
|
105
|
-
};
|
|
106
|
-
const getInstanceCurrentUsage = async () => {
|
|
107
|
-
const usage = await (0, __n8n_rest_api_client_api_cloudPlans.getCurrentUsage)({
|
|
108
|
-
baseUrl: rootStore.baseUrl,
|
|
109
|
-
pushRef: ""
|
|
110
|
-
});
|
|
111
|
-
state.usage = usage;
|
|
112
|
-
return usage;
|
|
113
|
-
};
|
|
114
|
-
const usageLeft = (0, vue.computed)(() => {
|
|
115
|
-
if (!state.data || !state.usage) return {
|
|
116
|
-
workflowsLeft: -1,
|
|
117
|
-
executionsLeft: -1
|
|
118
|
-
};
|
|
119
|
-
return {
|
|
120
|
-
workflowsLeft: state.data.activeWorkflowsLimit - state.usage.activeWorkflows,
|
|
121
|
-
executionsLeft: state.data.monthlyExecutionsLimit - state.usage.executions
|
|
122
|
-
};
|
|
123
|
-
});
|
|
124
|
-
const trialDaysLeft = (0, vue.computed)(() => {
|
|
125
|
-
if (!state.data?.expirationDate) return -1;
|
|
126
|
-
const differenceInMs = (/* @__PURE__ */ new Date()).valueOf() - new Date(state.data.expirationDate).valueOf();
|
|
127
|
-
const differenceInDays = Math.floor(differenceInMs / (1e3 * 60 * 60 * 24));
|
|
128
|
-
return Math.ceil(differenceInDays);
|
|
129
|
-
});
|
|
130
|
-
const trialTimeLeft = (0, vue.computed)(() => {
|
|
131
|
-
if (!state.data?.expirationDate) return {
|
|
132
|
-
count: 0,
|
|
133
|
-
unit: "days"
|
|
134
|
-
};
|
|
135
|
-
const msLeft = new Date(state.data.expirationDate).valueOf() - now.value;
|
|
136
|
-
if (msLeft <= 0) return {
|
|
137
|
-
count: 0,
|
|
138
|
-
unit: "minutes"
|
|
139
|
-
};
|
|
140
|
-
const hours = msLeft / (1e3 * 60 * 60);
|
|
141
|
-
if (hours < 1) return {
|
|
142
|
-
count: Math.ceil(msLeft / (1e3 * 60)),
|
|
143
|
-
unit: "minutes"
|
|
144
|
-
};
|
|
145
|
-
else if (hours < 24) return {
|
|
146
|
-
count: Math.ceil(hours),
|
|
147
|
-
unit: "hours"
|
|
148
|
-
};
|
|
149
|
-
else return {
|
|
150
|
-
count: Math.ceil(hours / 24),
|
|
151
|
-
unit: "days"
|
|
152
|
-
};
|
|
153
|
-
});
|
|
154
|
-
const startPollingInstanceUsageData = () => {
|
|
155
|
-
const interval = setInterval(async () => {
|
|
156
|
-
now.value = Date.now();
|
|
157
|
-
try {
|
|
158
|
-
await getInstanceCurrentUsage();
|
|
159
|
-
if (trialExpired.value || allExecutionsUsed.value) {
|
|
160
|
-
clearInterval(interval);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
} catch {}
|
|
164
|
-
}, CLOUD_TRIAL_CHECK_INTERVAL);
|
|
165
|
-
};
|
|
166
|
-
const checkForCloudPlanData = async () => {
|
|
167
|
-
try {
|
|
168
|
-
await getOwnerCurrentPlan();
|
|
169
|
-
if (!userIsTrialing.value) return;
|
|
170
|
-
await getInstanceCurrentUsage();
|
|
171
|
-
startPollingInstanceUsageData();
|
|
172
|
-
} catch (e) {
|
|
173
|
-
throw new Error(e.message);
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
const fetchUserCloudAccount = async () => {
|
|
177
|
-
try {
|
|
178
|
-
await getUserCloudAccount();
|
|
179
|
-
} catch (e) {
|
|
180
|
-
throw new Error(e.message);
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
const initialize = async () => {
|
|
184
|
-
if (state.initialized) return;
|
|
185
|
-
try {
|
|
186
|
-
await checkForCloudPlanData();
|
|
187
|
-
} catch (error) {
|
|
188
|
-
console.warn("Error checking for cloud plan data:", error);
|
|
189
|
-
}
|
|
190
|
-
try {
|
|
191
|
-
await fetchUserCloudAccount();
|
|
192
|
-
} catch (error) {
|
|
193
|
-
console.warn("Error fetching user cloud account:", error);
|
|
194
|
-
}
|
|
195
|
-
state.initialized = true;
|
|
196
|
-
};
|
|
197
|
-
const generateCloudDashboardAutoLoginLink = async (data) => {
|
|
198
|
-
const searchParams = new URLSearchParams();
|
|
199
|
-
const adminPanelHost = new URL(window.location.href).host.split(".").slice(1).join(".");
|
|
200
|
-
const { code } = await getAutoLoginCode();
|
|
201
|
-
const linkUrl = `https://${adminPanelHost}/login`;
|
|
202
|
-
searchParams.set("code", code);
|
|
203
|
-
searchParams.set("returnPath", data.redirectionPath);
|
|
204
|
-
return `${linkUrl}?${searchParams.toString()}`;
|
|
205
|
-
};
|
|
206
|
-
return {
|
|
207
|
-
state,
|
|
208
|
-
usageLeft,
|
|
209
|
-
trialDaysLeft,
|
|
210
|
-
trialTimeLeft,
|
|
211
|
-
userIsTrialing,
|
|
212
|
-
currentPlanData,
|
|
213
|
-
currentUsageData,
|
|
214
|
-
trialExpired,
|
|
215
|
-
allExecutionsUsed,
|
|
216
|
-
hasCloudPlan,
|
|
217
|
-
currentUserCloudInfo,
|
|
218
|
-
generateCloudDashboardAutoLoginLink,
|
|
219
|
-
initialize,
|
|
220
|
-
getOwnerCurrentPlan,
|
|
221
|
-
getInstanceCurrentUsage,
|
|
222
|
-
reset,
|
|
223
|
-
checkForCloudPlanData,
|
|
224
|
-
fetchUserCloudAccount,
|
|
225
|
-
getAutoLoginCode,
|
|
226
|
-
selectedApps,
|
|
227
|
-
codingSkill,
|
|
228
|
-
shouldShowBanner,
|
|
229
|
-
bannerConfig,
|
|
230
|
-
bannerForceShow,
|
|
231
|
-
isBannerDismissed,
|
|
232
|
-
bannerTimeLeft,
|
|
233
|
-
showExecutions,
|
|
234
|
-
bannerCta,
|
|
235
|
-
bannerIcon,
|
|
236
|
-
bannerDismissible,
|
|
237
|
-
setIsInstanceOwner
|
|
238
|
-
};
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
//#endregion
|
|
242
|
-
exports.useCloudPlanStore = useCloudPlanStore;
|
|
243
|
-
//# sourceMappingURL=cloudPlan.store.cjs.map
|
|
7
|
+
exports.useCloudPlanStore = require_cloudPlan_store.useCloudPlanStore;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as vue116 from "vue";
|
|
2
|
+
import * as pinia1 from "pinia";
|
|
3
3
|
import { Cloud, InstanceUsage } from "@n8n/rest-api-client/api/cloudPlans";
|
|
4
4
|
|
|
5
5
|
//#region src/cloudPlan.store.d.ts
|
|
@@ -9,7 +9,7 @@ interface CloudPlanState {
|
|
|
9
9
|
usage: InstanceUsage | null;
|
|
10
10
|
loadingPlan: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const useCloudPlanStore:
|
|
12
|
+
declare const useCloudPlanStore: pinia1.StoreDefinition<"cloudPlan", Pick<{
|
|
13
13
|
state: {
|
|
14
14
|
initialized: boolean;
|
|
15
15
|
data: {
|
|
@@ -47,6 +47,7 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
47
47
|
dismissible?: boolean | undefined;
|
|
48
48
|
forceShow?: boolean | undefined;
|
|
49
49
|
} | undefined;
|
|
50
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
50
51
|
} | null;
|
|
51
52
|
usage: {
|
|
52
53
|
timeframe?: string | undefined;
|
|
@@ -55,17 +56,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
55
56
|
} | null;
|
|
56
57
|
loadingPlan: boolean;
|
|
57
58
|
};
|
|
58
|
-
usageLeft:
|
|
59
|
+
usageLeft: vue116.ComputedRef<{
|
|
59
60
|
workflowsLeft: number;
|
|
60
61
|
executionsLeft: number;
|
|
61
62
|
}>;
|
|
62
|
-
trialDaysLeft:
|
|
63
|
-
trialTimeLeft:
|
|
63
|
+
trialDaysLeft: vue116.ComputedRef<number>;
|
|
64
|
+
trialTimeLeft: vue116.ComputedRef<{
|
|
64
65
|
count: number;
|
|
65
66
|
unit: "days" | "hours" | "minutes";
|
|
66
67
|
}>;
|
|
67
|
-
userIsTrialing:
|
|
68
|
-
currentPlanData:
|
|
68
|
+
userIsTrialing: vue116.ComputedRef<boolean>;
|
|
69
|
+
currentPlanData: vue116.ComputedRef<{
|
|
69
70
|
planId: number;
|
|
70
71
|
monthlyExecutionsLimit: number;
|
|
71
72
|
activeWorkflowsLimit: number;
|
|
@@ -100,16 +101,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
100
101
|
dismissible?: boolean | undefined;
|
|
101
102
|
forceShow?: boolean | undefined;
|
|
102
103
|
} | undefined;
|
|
104
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
103
105
|
} | null>;
|
|
104
|
-
currentUsageData:
|
|
106
|
+
currentUsageData: vue116.ComputedRef<{
|
|
105
107
|
timeframe?: string | undefined;
|
|
106
108
|
executions: number;
|
|
107
109
|
activeWorkflows: number;
|
|
108
110
|
} | null>;
|
|
109
|
-
trialExpired:
|
|
110
|
-
allExecutionsUsed:
|
|
111
|
-
hasCloudPlan:
|
|
112
|
-
currentUserCloudInfo:
|
|
111
|
+
trialExpired: vue116.ComputedRef<boolean | undefined>;
|
|
112
|
+
allExecutionsUsed: vue116.ComputedRef<boolean>;
|
|
113
|
+
hasCloudPlan: vue116.ComputedRef<boolean>;
|
|
114
|
+
currentUserCloudInfo: vue116.Ref<{
|
|
113
115
|
confirmed: boolean;
|
|
114
116
|
username: string;
|
|
115
117
|
email: string;
|
|
@@ -142,10 +144,10 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
142
144
|
getAutoLoginCode: () => Promise<{
|
|
143
145
|
code: string;
|
|
144
146
|
}>;
|
|
145
|
-
selectedApps:
|
|
146
|
-
codingSkill:
|
|
147
|
-
shouldShowBanner:
|
|
148
|
-
bannerConfig:
|
|
147
|
+
selectedApps: vue116.ComputedRef<string[] | undefined>;
|
|
148
|
+
codingSkill: vue116.ComputedRef<number>;
|
|
149
|
+
shouldShowBanner: vue116.ComputedRef<boolean>;
|
|
150
|
+
bannerConfig: vue116.ComputedRef<{
|
|
149
151
|
timeLeft?: {
|
|
150
152
|
text?: string | undefined;
|
|
151
153
|
} | undefined;
|
|
@@ -162,14 +164,14 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
162
164
|
dismissible?: boolean | undefined;
|
|
163
165
|
forceShow?: boolean | undefined;
|
|
164
166
|
} | undefined>;
|
|
165
|
-
bannerForceShow:
|
|
166
|
-
isBannerDismissed:
|
|
167
|
-
bannerTimeLeft:
|
|
167
|
+
bannerForceShow: vue116.ComputedRef<boolean>;
|
|
168
|
+
isBannerDismissed: vue116.ComputedRef<boolean>;
|
|
169
|
+
bannerTimeLeft: vue116.ComputedRef<{
|
|
168
170
|
show: boolean;
|
|
169
171
|
text: string | undefined;
|
|
170
172
|
}>;
|
|
171
|
-
showExecutions:
|
|
172
|
-
bannerCta:
|
|
173
|
+
showExecutions: vue116.ComputedRef<boolean>;
|
|
174
|
+
bannerCta: vue116.ComputedRef<{
|
|
173
175
|
text: string;
|
|
174
176
|
icon: string;
|
|
175
177
|
size: "small" | "medium";
|
|
@@ -177,8 +179,8 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
177
179
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
178
180
|
href: string | undefined;
|
|
179
181
|
}>;
|
|
180
|
-
bannerIcon:
|
|
181
|
-
bannerDismissible:
|
|
182
|
+
bannerIcon: vue116.ComputedRef<string | undefined>;
|
|
183
|
+
bannerDismissible: vue116.ComputedRef<boolean>;
|
|
182
184
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
183
185
|
}, "state" | "currentUserCloudInfo">, Pick<{
|
|
184
186
|
state: {
|
|
@@ -218,6 +220,7 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
218
220
|
dismissible?: boolean | undefined;
|
|
219
221
|
forceShow?: boolean | undefined;
|
|
220
222
|
} | undefined;
|
|
223
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
221
224
|
} | null;
|
|
222
225
|
usage: {
|
|
223
226
|
timeframe?: string | undefined;
|
|
@@ -226,17 +229,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
226
229
|
} | null;
|
|
227
230
|
loadingPlan: boolean;
|
|
228
231
|
};
|
|
229
|
-
usageLeft:
|
|
232
|
+
usageLeft: vue116.ComputedRef<{
|
|
230
233
|
workflowsLeft: number;
|
|
231
234
|
executionsLeft: number;
|
|
232
235
|
}>;
|
|
233
|
-
trialDaysLeft:
|
|
234
|
-
trialTimeLeft:
|
|
236
|
+
trialDaysLeft: vue116.ComputedRef<number>;
|
|
237
|
+
trialTimeLeft: vue116.ComputedRef<{
|
|
235
238
|
count: number;
|
|
236
239
|
unit: "days" | "hours" | "minutes";
|
|
237
240
|
}>;
|
|
238
|
-
userIsTrialing:
|
|
239
|
-
currentPlanData:
|
|
241
|
+
userIsTrialing: vue116.ComputedRef<boolean>;
|
|
242
|
+
currentPlanData: vue116.ComputedRef<{
|
|
240
243
|
planId: number;
|
|
241
244
|
monthlyExecutionsLimit: number;
|
|
242
245
|
activeWorkflowsLimit: number;
|
|
@@ -271,16 +274,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
271
274
|
dismissible?: boolean | undefined;
|
|
272
275
|
forceShow?: boolean | undefined;
|
|
273
276
|
} | undefined;
|
|
277
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
274
278
|
} | null>;
|
|
275
|
-
currentUsageData:
|
|
279
|
+
currentUsageData: vue116.ComputedRef<{
|
|
276
280
|
timeframe?: string | undefined;
|
|
277
281
|
executions: number;
|
|
278
282
|
activeWorkflows: number;
|
|
279
283
|
} | null>;
|
|
280
|
-
trialExpired:
|
|
281
|
-
allExecutionsUsed:
|
|
282
|
-
hasCloudPlan:
|
|
283
|
-
currentUserCloudInfo:
|
|
284
|
+
trialExpired: vue116.ComputedRef<boolean | undefined>;
|
|
285
|
+
allExecutionsUsed: vue116.ComputedRef<boolean>;
|
|
286
|
+
hasCloudPlan: vue116.ComputedRef<boolean>;
|
|
287
|
+
currentUserCloudInfo: vue116.Ref<{
|
|
284
288
|
confirmed: boolean;
|
|
285
289
|
username: string;
|
|
286
290
|
email: string;
|
|
@@ -313,10 +317,10 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
313
317
|
getAutoLoginCode: () => Promise<{
|
|
314
318
|
code: string;
|
|
315
319
|
}>;
|
|
316
|
-
selectedApps:
|
|
317
|
-
codingSkill:
|
|
318
|
-
shouldShowBanner:
|
|
319
|
-
bannerConfig:
|
|
320
|
+
selectedApps: vue116.ComputedRef<string[] | undefined>;
|
|
321
|
+
codingSkill: vue116.ComputedRef<number>;
|
|
322
|
+
shouldShowBanner: vue116.ComputedRef<boolean>;
|
|
323
|
+
bannerConfig: vue116.ComputedRef<{
|
|
320
324
|
timeLeft?: {
|
|
321
325
|
text?: string | undefined;
|
|
322
326
|
} | undefined;
|
|
@@ -333,14 +337,14 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
333
337
|
dismissible?: boolean | undefined;
|
|
334
338
|
forceShow?: boolean | undefined;
|
|
335
339
|
} | undefined>;
|
|
336
|
-
bannerForceShow:
|
|
337
|
-
isBannerDismissed:
|
|
338
|
-
bannerTimeLeft:
|
|
340
|
+
bannerForceShow: vue116.ComputedRef<boolean>;
|
|
341
|
+
isBannerDismissed: vue116.ComputedRef<boolean>;
|
|
342
|
+
bannerTimeLeft: vue116.ComputedRef<{
|
|
339
343
|
show: boolean;
|
|
340
344
|
text: string | undefined;
|
|
341
345
|
}>;
|
|
342
|
-
showExecutions:
|
|
343
|
-
bannerCta:
|
|
346
|
+
showExecutions: vue116.ComputedRef<boolean>;
|
|
347
|
+
bannerCta: vue116.ComputedRef<{
|
|
344
348
|
text: string;
|
|
345
349
|
icon: string;
|
|
346
350
|
size: "small" | "medium";
|
|
@@ -348,8 +352,8 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
348
352
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
349
353
|
href: string | undefined;
|
|
350
354
|
}>;
|
|
351
|
-
bannerIcon:
|
|
352
|
-
bannerDismissible:
|
|
355
|
+
bannerIcon: vue116.ComputedRef<string | undefined>;
|
|
356
|
+
bannerDismissible: vue116.ComputedRef<boolean>;
|
|
353
357
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
354
358
|
}, "userIsTrialing" | "bannerConfig" | "selectedApps" | "showExecutions" | "usageLeft" | "trialDaysLeft" | "trialTimeLeft" | "currentPlanData" | "currentUsageData" | "trialExpired" | "allExecutionsUsed" | "hasCloudPlan" | "codingSkill" | "shouldShowBanner" | "bannerForceShow" | "isBannerDismissed" | "bannerTimeLeft" | "bannerCta" | "bannerIcon" | "bannerDismissible">, Pick<{
|
|
355
359
|
state: {
|
|
@@ -389,6 +393,7 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
389
393
|
dismissible?: boolean | undefined;
|
|
390
394
|
forceShow?: boolean | undefined;
|
|
391
395
|
} | undefined;
|
|
396
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
392
397
|
} | null;
|
|
393
398
|
usage: {
|
|
394
399
|
timeframe?: string | undefined;
|
|
@@ -397,17 +402,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
397
402
|
} | null;
|
|
398
403
|
loadingPlan: boolean;
|
|
399
404
|
};
|
|
400
|
-
usageLeft:
|
|
405
|
+
usageLeft: vue116.ComputedRef<{
|
|
401
406
|
workflowsLeft: number;
|
|
402
407
|
executionsLeft: number;
|
|
403
408
|
}>;
|
|
404
|
-
trialDaysLeft:
|
|
405
|
-
trialTimeLeft:
|
|
409
|
+
trialDaysLeft: vue116.ComputedRef<number>;
|
|
410
|
+
trialTimeLeft: vue116.ComputedRef<{
|
|
406
411
|
count: number;
|
|
407
412
|
unit: "days" | "hours" | "minutes";
|
|
408
413
|
}>;
|
|
409
|
-
userIsTrialing:
|
|
410
|
-
currentPlanData:
|
|
414
|
+
userIsTrialing: vue116.ComputedRef<boolean>;
|
|
415
|
+
currentPlanData: vue116.ComputedRef<{
|
|
411
416
|
planId: number;
|
|
412
417
|
monthlyExecutionsLimit: number;
|
|
413
418
|
activeWorkflowsLimit: number;
|
|
@@ -442,16 +447,17 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
442
447
|
dismissible?: boolean | undefined;
|
|
443
448
|
forceShow?: boolean | undefined;
|
|
444
449
|
} | undefined;
|
|
450
|
+
licenseFeatures?: Record<string, number> | undefined;
|
|
445
451
|
} | null>;
|
|
446
|
-
currentUsageData:
|
|
452
|
+
currentUsageData: vue116.ComputedRef<{
|
|
447
453
|
timeframe?: string | undefined;
|
|
448
454
|
executions: number;
|
|
449
455
|
activeWorkflows: number;
|
|
450
456
|
} | null>;
|
|
451
|
-
trialExpired:
|
|
452
|
-
allExecutionsUsed:
|
|
453
|
-
hasCloudPlan:
|
|
454
|
-
currentUserCloudInfo:
|
|
457
|
+
trialExpired: vue116.ComputedRef<boolean | undefined>;
|
|
458
|
+
allExecutionsUsed: vue116.ComputedRef<boolean>;
|
|
459
|
+
hasCloudPlan: vue116.ComputedRef<boolean>;
|
|
460
|
+
currentUserCloudInfo: vue116.Ref<{
|
|
455
461
|
confirmed: boolean;
|
|
456
462
|
username: string;
|
|
457
463
|
email: string;
|
|
@@ -484,10 +490,10 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
484
490
|
getAutoLoginCode: () => Promise<{
|
|
485
491
|
code: string;
|
|
486
492
|
}>;
|
|
487
|
-
selectedApps:
|
|
488
|
-
codingSkill:
|
|
489
|
-
shouldShowBanner:
|
|
490
|
-
bannerConfig:
|
|
493
|
+
selectedApps: vue116.ComputedRef<string[] | undefined>;
|
|
494
|
+
codingSkill: vue116.ComputedRef<number>;
|
|
495
|
+
shouldShowBanner: vue116.ComputedRef<boolean>;
|
|
496
|
+
bannerConfig: vue116.ComputedRef<{
|
|
491
497
|
timeLeft?: {
|
|
492
498
|
text?: string | undefined;
|
|
493
499
|
} | undefined;
|
|
@@ -504,14 +510,14 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
504
510
|
dismissible?: boolean | undefined;
|
|
505
511
|
forceShow?: boolean | undefined;
|
|
506
512
|
} | undefined>;
|
|
507
|
-
bannerForceShow:
|
|
508
|
-
isBannerDismissed:
|
|
509
|
-
bannerTimeLeft:
|
|
513
|
+
bannerForceShow: vue116.ComputedRef<boolean>;
|
|
514
|
+
isBannerDismissed: vue116.ComputedRef<boolean>;
|
|
515
|
+
bannerTimeLeft: vue116.ComputedRef<{
|
|
510
516
|
show: boolean;
|
|
511
517
|
text: string | undefined;
|
|
512
518
|
}>;
|
|
513
|
-
showExecutions:
|
|
514
|
-
bannerCta:
|
|
519
|
+
showExecutions: vue116.ComputedRef<boolean>;
|
|
520
|
+
bannerCta: vue116.ComputedRef<{
|
|
515
521
|
text: string;
|
|
516
522
|
icon: string;
|
|
517
523
|
size: "small" | "medium";
|
|
@@ -519,8 +525,8 @@ declare const useCloudPlanStore: pinia0.StoreDefinition<"cloudPlan", Pick<{
|
|
|
519
525
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
520
526
|
href: string | undefined;
|
|
521
527
|
}>;
|
|
522
|
-
bannerIcon:
|
|
523
|
-
bannerDismissible:
|
|
528
|
+
bannerIcon: vue116.ComputedRef<string | undefined>;
|
|
529
|
+
bannerDismissible: vue116.ComputedRef<boolean>;
|
|
524
530
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
525
531
|
}, "reset" | "initialize" | "generateCloudDashboardAutoLoginLink" | "getOwnerCurrentPlan" | "getInstanceCurrentUsage" | "checkForCloudPlanData" | "fetchUserCloudAccount" | "getAutoLoginCode" | "setIsInstanceOwner">>;
|
|
526
532
|
//#endregion
|