@questpie/admin 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/builder/types/action-types.d.mts +2 -2
- package/dist/client/components/actions/action-dialog.mjs +7 -7
- package/dist/client/hooks/use-server-actions.mjs +1 -0
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
- package/dist/client/views/auth/auth-layout.d.mts +3 -3
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/login-page.d.mts +2 -2
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/factories.d.mts +0 -2
- package/dist/server/adapters/nextjs.d.mts +0 -1
- package/dist/server/augmentation/actions.d.mts +2 -0
- package/dist/server/i18n/messages/cs.mjs +2 -0
- package/dist/server/i18n/messages/de.mjs +2 -0
- package/dist/server/i18n/messages/en.mjs +2 -0
- package/dist/server/i18n/messages/es.mjs +2 -0
- package/dist/server/i18n/messages/fr.mjs +2 -0
- package/dist/server/i18n/messages/pl.mjs +2 -0
- package/dist/server/i18n/messages/pt.mjs +2 -0
- package/dist/server/i18n/messages/sk.mjs +2 -0
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +49 -49
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +36 -36
- package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
- package/dist/server/modules/admin/collections/assets.d.mts +34 -34
- package/dist/server/modules/admin/collections/session.d.mts +42 -42
- package/dist/server/modules/admin/collections/user.d.mts +14 -14
- package/dist/server/modules/admin/collections/user.mjs +9 -9
- package/dist/server/modules/admin/collections/verification.d.mts +23 -23
- package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/execute-action.mjs +3 -2
- package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
- package/dist/server/modules/admin/routes/setup.d.mts +7 -7
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +23 -23
- package/dist/server/modules/audit/.generated/module.d.mts +6 -6
- package/dist/server/modules/audit/collections/audit-log.d.mts +37 -37
- package/dist/server.d.mts +0 -2
- package/package.json +3 -3
- package/dist/server/adapters/index.d.mts +0 -2
- package/dist/server/auth-helpers.d.mts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockContent } from "./types.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/client/blocks/block-renderer.d.ts
|
|
6
6
|
|
|
@@ -50,6 +50,6 @@ declare function BlockRenderer({
|
|
|
50
50
|
onBlockClick,
|
|
51
51
|
onBlockInsert,
|
|
52
52
|
className
|
|
53
|
-
}: BlockRendererProps):
|
|
53
|
+
}: BlockRendererProps): react_jsx_runtime19.JSX.Element | null;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { BlockRenderer, BlockRendererProps };
|
|
@@ -130,8 +130,8 @@ interface ActionFormConfig<TItem = any> {
|
|
|
130
130
|
fields: Record<string, FieldInstance>;
|
|
131
131
|
/** Default values */
|
|
132
132
|
defaultValues?: Record<string, any>;
|
|
133
|
-
/** Submit handler */
|
|
134
|
-
onSubmit: (data: Record<string, any>, ctx: ActionContext<TItem>) => void | Promise<void>;
|
|
133
|
+
/** Submit handler — return a string to override the default success toast */
|
|
134
|
+
onSubmit: (data: Record<string, any>, ctx: ActionContext<TItem>) => void | string | Promise<void | string>;
|
|
135
135
|
/** Submit button label */
|
|
136
136
|
submitLabel?: I18nText;
|
|
137
137
|
/** Cancel button label */
|
|
@@ -82,14 +82,14 @@ function FormDialogContent({ action, ctx, onClose }) {
|
|
|
82
82
|
const handleSubmit = form.handleSubmit(async (data) => {
|
|
83
83
|
setIsSubmitting(true);
|
|
84
84
|
const submitPromise = async () => {
|
|
85
|
-
await config.onSubmit(data, ctx);
|
|
86
|
-
return
|
|
85
|
+
const result = await config.onSubmit(data, ctx);
|
|
86
|
+
return typeof result === "string" ? result : void 0;
|
|
87
87
|
};
|
|
88
88
|
toast.promise(submitPromise(), {
|
|
89
89
|
loading: t("toast.processing"),
|
|
90
|
-
success: () => {
|
|
90
|
+
success: (message) => {
|
|
91
91
|
onClose();
|
|
92
|
-
return t("toast.actionSuccess");
|
|
92
|
+
return message || t("toast.actionSuccess");
|
|
93
93
|
},
|
|
94
94
|
error: (error) => {
|
|
95
95
|
return error instanceof Error ? error.message : t("toast.actionFailed");
|
|
@@ -206,19 +206,19 @@ function CustomDialogContent({ action, ctx, onClose }) {
|
|
|
206
206
|
variant: "outline",
|
|
207
207
|
onClick: onClose,
|
|
208
208
|
className: "mt-4",
|
|
209
|
-
children: "
|
|
209
|
+
children: t("common.close")
|
|
210
210
|
})]
|
|
211
211
|
});
|
|
212
212
|
if (!Component) return /* @__PURE__ */ jsxs("div", {
|
|
213
213
|
className: "p-4 text-center",
|
|
214
214
|
children: [/* @__PURE__ */ jsx("p", {
|
|
215
215
|
className: "text-muted-foreground",
|
|
216
|
-
children: "
|
|
216
|
+
children: t("error.componentNotFound")
|
|
217
217
|
}), /* @__PURE__ */ jsx(Button, {
|
|
218
218
|
variant: "outline",
|
|
219
219
|
onClick: onClose,
|
|
220
220
|
className: "mt-4",
|
|
221
|
-
children: "
|
|
221
|
+
children: t("common.close")
|
|
222
222
|
})]
|
|
223
223
|
});
|
|
224
224
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -108,6 +108,7 @@ function mapServerAction(serverAction, collection, fieldRegistry, client, locale
|
|
|
108
108
|
});
|
|
109
109
|
if (!response.success || response.result?.type === "error") throw new Error(getActionErrorMessage(response, t));
|
|
110
110
|
await applyServerActionEffects(response.result, ctx);
|
|
111
|
+
return response.result?.toast?.message;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/preview/block-scope-context.d.ts
|
|
5
5
|
|
|
@@ -35,7 +35,7 @@ declare function BlockScopeProvider({
|
|
|
35
35
|
blockId,
|
|
36
36
|
basePath,
|
|
37
37
|
children
|
|
38
|
-
}: BlockScopeProviderProps):
|
|
38
|
+
}: BlockScopeProviderProps): react_jsx_runtime21.JSX.Element;
|
|
39
39
|
/**
|
|
40
40
|
* Get current block scope context.
|
|
41
41
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/preview/preview-banner.d.ts
|
|
4
4
|
|
|
@@ -40,6 +40,6 @@ declare function PreviewBanner({
|
|
|
40
40
|
isPreviewMode,
|
|
41
41
|
className,
|
|
42
42
|
exitPreviewUrl
|
|
43
|
-
}: PreviewBannerProps):
|
|
43
|
+
}: PreviewBannerProps): react_jsx_runtime22.JSX.Element | null;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { PreviewBanner, PreviewBannerProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/preview/preview-field.d.ts
|
|
5
5
|
|
|
@@ -68,7 +68,7 @@ declare function PreviewProvider({
|
|
|
68
68
|
}) => void;
|
|
69
69
|
onFieldValueEdited?: (payload: PreviewFieldValueEditedPayload) => void;
|
|
70
70
|
children: React.ReactNode;
|
|
71
|
-
}):
|
|
71
|
+
}): react_jsx_runtime23.JSX.Element;
|
|
72
72
|
/**
|
|
73
73
|
* Hook to access preview context.
|
|
74
74
|
*/
|
|
@@ -107,7 +107,7 @@ declare function PreviewField({
|
|
|
107
107
|
style,
|
|
108
108
|
onClick,
|
|
109
109
|
onValueCommit
|
|
110
|
-
}: PreviewFieldProps):
|
|
110
|
+
}: PreviewFieldProps): react_jsx_runtime23.JSX.Element;
|
|
111
111
|
/**
|
|
112
112
|
* Standalone PreviewField that works without context.
|
|
113
113
|
* Useful when you can't use PreviewProvider.
|
|
@@ -131,6 +131,6 @@ declare function StandalonePreviewField({
|
|
|
131
131
|
blockId?: string;
|
|
132
132
|
fieldType?: "regular" | "block" | "relation";
|
|
133
133
|
}) => void;
|
|
134
|
-
}):
|
|
134
|
+
}): react_jsx_runtime23.JSX.Element;
|
|
135
135
|
//#endregion
|
|
136
136
|
export { PreviewField, PreviewFieldProps, PreviewProvider, StandalonePreviewField, usePreviewContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/auth/accept-invite-form.d.ts
|
|
4
4
|
/**
|
|
@@ -67,6 +67,6 @@ declare function AcceptInviteForm({
|
|
|
67
67
|
className,
|
|
68
68
|
error,
|
|
69
69
|
minPasswordLength
|
|
70
|
-
}: AcceptInviteFormProps):
|
|
70
|
+
}: AcceptInviteFormProps): react_jsx_runtime0.JSX.Element;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { AcceptInviteForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/auth/auth-layout.d.ts
|
|
5
5
|
|
|
@@ -26,7 +26,7 @@ declare function AuthDefaultLogo({
|
|
|
26
26
|
brandName
|
|
27
27
|
}: {
|
|
28
28
|
brandName: string;
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime1.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* Minimal split layout for authentication pages (login, register, forgot password, etc.)
|
|
32
32
|
*
|
|
@@ -50,6 +50,6 @@ declare function AuthDefaultLogo({
|
|
|
50
50
|
* </AuthLayout>
|
|
51
51
|
* ```
|
|
52
52
|
*/
|
|
53
|
-
declare function AuthLayout(props: AuthLayoutProps):
|
|
53
|
+
declare function AuthLayout(props: AuthLayoutProps): react_jsx_runtime1.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { AuthDefaultLogo, AuthLayout, AuthLayoutProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/auth/reset-password-form.d.ts
|
|
4
4
|
/**
|
|
@@ -60,6 +60,6 @@ declare function ResetPasswordForm({
|
|
|
60
60
|
minPasswordLength,
|
|
61
61
|
className,
|
|
62
62
|
error
|
|
63
|
-
}: ResetPasswordFormProps):
|
|
63
|
+
}: ResetPasswordFormProps): react_jsx_runtime5.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { ResetPasswordForm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/auth/setup-form.d.ts
|
|
4
4
|
/**
|
|
@@ -55,6 +55,6 @@ declare function SetupForm({
|
|
|
55
55
|
className,
|
|
56
56
|
error,
|
|
57
57
|
minPasswordLength
|
|
58
|
-
}: SetupFormProps):
|
|
58
|
+
}: SetupFormProps): react_jsx_runtime6.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { SetupForm, SetupFormValues };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/pages/accept-invite-page.d.ts
|
|
5
5
|
|
|
@@ -61,6 +61,6 @@ declare function AcceptInvitePage({
|
|
|
61
61
|
redirectTo,
|
|
62
62
|
loginPath,
|
|
63
63
|
minPasswordLength
|
|
64
|
-
}: AcceptInvitePageProps):
|
|
64
|
+
}: AcceptInvitePageProps): react_jsx_runtime7.JSX.Element;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { AcceptInvitePage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/pages/dashboard-page.d.ts
|
|
4
4
|
|
|
@@ -38,6 +38,6 @@ declare function DashboardPage({
|
|
|
38
38
|
title,
|
|
39
39
|
description,
|
|
40
40
|
className
|
|
41
|
-
}: DashboardPageProps):
|
|
41
|
+
}: DashboardPageProps): react_jsx_runtime8.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { DashboardPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/pages/forgot-password-page.d.ts
|
|
5
5
|
|
|
@@ -51,6 +51,6 @@ declare function ForgotPasswordPage({
|
|
|
51
51
|
logo,
|
|
52
52
|
loginPath,
|
|
53
53
|
resetPasswordRedirectUrl
|
|
54
|
-
}: ForgotPasswordPageProps):
|
|
54
|
+
}: ForgotPasswordPageProps): react_jsx_runtime9.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { ForgotPasswordPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/pages/invite-page.d.ts
|
|
5
5
|
|
|
@@ -65,6 +65,6 @@ declare function InvitePage({
|
|
|
65
65
|
defaultRole,
|
|
66
66
|
showMessage,
|
|
67
67
|
onSuccess
|
|
68
|
-
}: InvitePageProps):
|
|
68
|
+
}: InvitePageProps): react_jsx_runtime10.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { InvitePage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/pages/login-page.d.ts
|
|
5
5
|
|
|
@@ -64,6 +64,6 @@ declare function LoginPage({
|
|
|
64
64
|
signUpPath,
|
|
65
65
|
showForgotPassword,
|
|
66
66
|
showSignUp
|
|
67
|
-
}: LoginPageProps):
|
|
67
|
+
}: LoginPageProps): react_jsx_runtime11.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { LoginPage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/rich-text/rich-text-renderer.d.ts
|
|
4
4
|
/**
|
|
@@ -98,6 +98,6 @@ declare function RichTextRenderer({
|
|
|
98
98
|
content,
|
|
99
99
|
styles: customStyles,
|
|
100
100
|
className
|
|
101
|
-
}: RichTextRendererProps):
|
|
101
|
+
}: RichTextRendererProps): react_jsx_runtime20.JSX.Element | null;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
|
package/dist/factories.d.mts
CHANGED
|
@@ -14,8 +14,6 @@ import "./server/block/index.mjs";
|
|
|
14
14
|
import { component, editView, filterViewsByKind, listView, view } from "./server/registry-helpers.mjs";
|
|
15
15
|
import { createActionCallbackProxy, createActionProxy, createComponentCallbackProxy, createComponentProxy, createDashboardCallbackContext, createDashboardContributionProxy, createFieldProxy, createSidebarCallbackContext, createSidebarContributionProxy, createViewCallbackProxy, createViewProxy, resolveDashboardCallback, resolveSidebarCallback } from "./server/proxy-factories.mjs";
|
|
16
16
|
import { AuthSession, GetAdminSessionOptions, RequireAdminAuthOptions, getAdminSession, isAdminUser, requireAdminAuth } from "./server/modules/admin/auth-helpers.mjs";
|
|
17
|
-
import "./server/auth-helpers.mjs";
|
|
18
17
|
import { NextAuthMiddlewareOptions, createNextAuthMiddleware, getNextAdminSession } from "./server/adapters/nextjs.mjs";
|
|
19
18
|
import { BeforeLoadContext, TanStackAuthGuardOptions, createTanStackAuthGuard, createTanStackSessionLoader } from "./server/adapters/tanstack.mjs";
|
|
20
|
-
import "./server/adapters/index.mjs";
|
|
21
19
|
export { type ActionReference, type ActionsConfigContext, type AdminBlockConfig, type AdminCollectionConfig, type AdminConfigContext, type AdminConfigInput, type AdminGlobalConfig, type AdminLocaleConfig, type AdminShellRailPlacement, type AdminShellRouteRules, type AnyBlockBuilder, type AnyBlockDefinition, type AuthSession, BeforeLoadContext, BlockBuilder, type BlockBuilderState, type BlockCategoryConfig, type BlockDefinition, type BlockPrefetchContext, type BlockPrefetchFn, type BlockPrefetchWith, type BlockPrefetchWithOptions, type BlockSchema, type BlocksPrefetchContext, type BuiltinActionType, type ComponentDefinition, type ComponentFactory, type ComponentReference, type ComponentType, type ComponentTypeRegistry, type DashboardActionFactory, type DashboardActionProxy, type DashboardCallback, type DashboardCallbackContext, type DashboardConfigContext, type DashboardContribution, type DashboardItemDef, type DashboardProxy, type DashboardSectionDef, type EditViewDefinition, type EditViewFactory, type ExpandWithResult, type ExpandedRecord, type FieldLayoutItem, type FilterViewsByKind, type FormFieldLayoutItem, type FormReactiveConfig, type FormReactiveContext, type FormSectionLayout, type FormSidebarConfig, type FormTabConfig, type FormTabsLayout, type FormViewConfig, type FormViewConfigContext, type GetAdminSessionOptions, type InferBlockData, type InferBlockValues, type ListViewConfig, type ListViewConfigContext, type ListViewDefinition, type ListViewFactory, NextAuthMiddlewareOptions, type PreviewConfig, type RequireAdminAuthOptions, type ServerActionContext, type ServerActionDefinition, type ServerActionDownload, type ServerActionEffects, type ServerActionError, type ServerActionForm, type ServerActionFormField, type ServerActionHandler, type ServerActionRedirect, type ServerActionResult, type ServerActionSuccess, type ServerActionsConfig, type ServerAdminShellConfig, type ServerAdminShellRailConfig, type ServerBrandingConfig, type ServerChartWidget, type ServerCustomWidget, type ServerDashboardAction, type ServerDashboardConfig, type ServerDashboardItem, type ServerDashboardSection, type ServerDashboardTab, type ServerDashboardTabs, type ServerDashboardWidget, type ServerProgressWidget, type ServerQuickAction, type ServerQuickActionsWidget, type ServerRecentItemsWidget, type ServerSidebarCollectionItem, type ServerSidebarConfig, type ServerSidebarDividerItem, type ServerSidebarGlobalItem, type ServerSidebarItem, type ServerSidebarLinkItem, type ServerSidebarPageItem, type ServerSidebarSection, type ServerStatsWidget, type ServerTableWidget, type ServerTimelineWidget, type ServerValueWidget, type SidebarCallback, type SidebarCallbackContext, type SidebarConfigContext, type SidebarContribution, type SidebarItemDef, type SidebarProxy, type SidebarSectionDef, TanStackAuthGuardOptions, type ViewDefinition, type ViewKind, type ViewKindRegistry, type WidgetAccessRule, type WidgetFetchContext, adminConfig, block, component, createActionCallbackProxy, createActionProxy, createBlocksPrefetchHook, createComponentCallbackProxy, createComponentProxy, createDashboardCallbackContext, createDashboardContributionProxy, createFieldProxy, createNextAuthMiddleware, createSidebarCallbackContext, createSidebarContributionProxy, createTanStackAuthGuard, createTanStackSessionLoader, createViewCallbackProxy, createViewProxy, editView, filterViewsByKind, getAdminSession, getBlocksByCategory, getNextAdminSession, introspectBlock, introspectBlocks, isAdminUser, listView, processBlocksDocument, processDocumentBlocksPrefetch, requireAdminAuth, resolveDashboardCallback, resolveSidebarCallback, view };
|
|
@@ -89,6 +89,8 @@ interface ServerActionContext<TData = Record<string, unknown>> {
|
|
|
89
89
|
session?: unknown;
|
|
90
90
|
/** Current locale */
|
|
91
91
|
locale?: string;
|
|
92
|
+
/** Translation function for admin messages */
|
|
93
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* Action handler function type
|
|
@@ -109,6 +109,7 @@ var cs_default = {
|
|
|
109
109
|
"action.itemNotFound": "Položka nebyla nalezena",
|
|
110
110
|
"action.itemDuplicated": "Položka byla úspěšně duplikována",
|
|
111
111
|
"action.itemIdRequired.transition": "Pro akci přechodu je vyžadováno ID položky",
|
|
112
|
+
"action.itemIdRequired.resetPassword": "Pro resetování hesla je vyžadováno ID uživatele",
|
|
112
113
|
"action.targetStageRequired": "Pro akci přechodu je vyžadována cílová fáze",
|
|
113
114
|
"action.workflowUnsupported": "Workflow přechody nejsou pro tuto kolekci podporovány",
|
|
114
115
|
"action.unknownBuiltin": "Neznámá vestavěná akce: {{action}}",
|
|
@@ -301,6 +302,7 @@ var cs_default = {
|
|
|
301
302
|
"toast.error": "Chyba",
|
|
302
303
|
"toast.warning": "Varování",
|
|
303
304
|
"toast.info": "Informace",
|
|
305
|
+
"toast.processing": "Zpracovávám...",
|
|
304
306
|
"toast.saving": "Ukládání...",
|
|
305
307
|
"toast.saveFailed": "Nepodařilo se uložit změny",
|
|
306
308
|
"toast.saveSuccess": "Změny úspěšně uloženy",
|
|
@@ -107,6 +107,7 @@ var de_default = {
|
|
|
107
107
|
"action.itemNotFound": "Element nicht gefunden",
|
|
108
108
|
"action.itemDuplicated": "Element erfolgreich dupliziert",
|
|
109
109
|
"action.itemIdRequired.transition": "Element-ID ist für die Übergangsaktion erforderlich",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "Benutzer-ID ist für das Zurücksetzen des Passworts erforderlich",
|
|
110
111
|
"action.targetStageRequired": "Zielstatus ist für die Übergangsaktion erforderlich",
|
|
111
112
|
"action.workflowUnsupported": "Workflow-Übergänge werden für diese Sammlung nicht unterstützt",
|
|
112
113
|
"action.unknownBuiltin": "Unbekannte integrierte Aktion: {{action}}",
|
|
@@ -299,6 +300,7 @@ var de_default = {
|
|
|
299
300
|
"toast.error": "Fehler",
|
|
300
301
|
"toast.warning": "Warnung",
|
|
301
302
|
"toast.info": "Info",
|
|
303
|
+
"toast.processing": "Wird verarbeitet...",
|
|
302
304
|
"toast.saving": "Wird gespeichert...",
|
|
303
305
|
"toast.saveFailed": "Fehler beim Speichern der Änderungen",
|
|
304
306
|
"toast.saveSuccess": "Änderungen erfolgreich gespeichert",
|
|
@@ -159,6 +159,7 @@ var en_default = {
|
|
|
159
159
|
"action.itemNotFound": "Item not found",
|
|
160
160
|
"action.itemDuplicated": "Item duplicated successfully",
|
|
161
161
|
"action.itemIdRequired.transition": "Item ID is required for transition action",
|
|
162
|
+
"action.itemIdRequired.resetPassword": "User ID is required for password reset",
|
|
162
163
|
"action.targetStageRequired": "Target stage is required for transition action",
|
|
163
164
|
"action.workflowUnsupported": "Workflow transitions are not supported for this collection",
|
|
164
165
|
"action.unknownBuiltin": "Unknown built-in action: {{action}}",
|
|
@@ -472,6 +473,7 @@ var en_default = {
|
|
|
472
473
|
"toast.error": "Error",
|
|
473
474
|
"toast.warning": "Warning",
|
|
474
475
|
"toast.info": "Info",
|
|
476
|
+
"toast.processing": "Processing...",
|
|
475
477
|
"toast.saving": "Saving...",
|
|
476
478
|
"toast.saveFailed": "Failed to save changes",
|
|
477
479
|
"toast.saveSuccess": "Changes saved successfully",
|
|
@@ -107,6 +107,7 @@ var es_default = {
|
|
|
107
107
|
"action.itemNotFound": "Elemento no encontrado",
|
|
108
108
|
"action.itemDuplicated": "Elemento duplicado correctamente",
|
|
109
109
|
"action.itemIdRequired.transition": "Se requiere el ID del elemento para la transición",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "Se requiere el ID del usuario para restablecer la contraseña",
|
|
110
111
|
"action.targetStageRequired": "Se requiere la etapa de destino para la transición",
|
|
111
112
|
"action.workflowUnsupported": "Las transiciones de workflow no son compatibles con esta colección",
|
|
112
113
|
"action.unknownBuiltin": "Acción integrada desconocida: {{action}}",
|
|
@@ -299,6 +300,7 @@ var es_default = {
|
|
|
299
300
|
"toast.error": "Error",
|
|
300
301
|
"toast.warning": "Advertencia",
|
|
301
302
|
"toast.info": "Información",
|
|
303
|
+
"toast.processing": "Procesando...",
|
|
302
304
|
"toast.saving": "Guardando...",
|
|
303
305
|
"toast.saveFailed": "Error al guardar cambios",
|
|
304
306
|
"toast.saveSuccess": "Cambios guardados correctamente",
|
|
@@ -107,6 +107,7 @@ var fr_default = {
|
|
|
107
107
|
"action.itemNotFound": "Élément introuvable",
|
|
108
108
|
"action.itemDuplicated": "Élément dupliqué avec succès",
|
|
109
109
|
"action.itemIdRequired.transition": "L'ID de l'élément est requis pour l'action de transition",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "L'ID de l'utilisateur est requis pour la réinitialisation du mot de passe",
|
|
110
111
|
"action.targetStageRequired": "L'étape cible est requise pour l'action de transition",
|
|
111
112
|
"action.workflowUnsupported": "Les transitions de workflow ne sont pas prises en charge pour cette collection",
|
|
112
113
|
"action.unknownBuiltin": "Action intégrée inconnue : {{action}}",
|
|
@@ -299,6 +300,7 @@ var fr_default = {
|
|
|
299
300
|
"toast.error": "Erreur",
|
|
300
301
|
"toast.warning": "Avertissement",
|
|
301
302
|
"toast.info": "Information",
|
|
303
|
+
"toast.processing": "Traitement...",
|
|
302
304
|
"toast.saving": "Enregistrement...",
|
|
303
305
|
"toast.saveFailed": "Échec de l'enregistrement des modifications",
|
|
304
306
|
"toast.saveSuccess": "Modifications enregistrées avec succès",
|
|
@@ -111,6 +111,7 @@ var pl_default = {
|
|
|
111
111
|
"action.itemNotFound": "Element nie został znaleziony",
|
|
112
112
|
"action.itemDuplicated": "Element został pomyślnie zduplikowany",
|
|
113
113
|
"action.itemIdRequired.transition": "ID elementu jest wymagane dla akcji przejścia",
|
|
114
|
+
"action.itemIdRequired.resetPassword": "ID użytkownika jest wymagane do zresetowania hasła",
|
|
114
115
|
"action.targetStageRequired": "Docelowy etap jest wymagany dla akcji przejścia",
|
|
115
116
|
"action.workflowUnsupported": "Przejścia workflow nie są obsługiwane dla tej kolekcji",
|
|
116
117
|
"action.unknownBuiltin": "Nieznana akcja wbudowana: {{action}}",
|
|
@@ -303,6 +304,7 @@ var pl_default = {
|
|
|
303
304
|
"toast.error": "Błąd",
|
|
304
305
|
"toast.warning": "Ostrzeżenie",
|
|
305
306
|
"toast.info": "Informacja",
|
|
307
|
+
"toast.processing": "Przetwarzanie...",
|
|
306
308
|
"toast.saving": "Zapisywanie...",
|
|
307
309
|
"toast.saveFailed": "Nie udało się zapisać zmian",
|
|
308
310
|
"toast.saveSuccess": "Zmiany zapisane pomyślnie",
|
|
@@ -107,6 +107,7 @@ var pt_default = {
|
|
|
107
107
|
"action.itemNotFound": "Item não encontrado",
|
|
108
108
|
"action.itemDuplicated": "Item duplicado com sucesso",
|
|
109
109
|
"action.itemIdRequired.transition": "O ID do item é obrigatório para a ação de transição",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "O ID do usuário é obrigatório para a redefinição de senha",
|
|
110
111
|
"action.targetStageRequired": "O estágio de destino é obrigatório para a ação de transição",
|
|
111
112
|
"action.workflowUnsupported": "Transições de workflow não são suportadas para esta coleção",
|
|
112
113
|
"action.unknownBuiltin": "Ação integrada desconhecida: {{action}}",
|
|
@@ -299,6 +300,7 @@ var pt_default = {
|
|
|
299
300
|
"toast.error": "Erro",
|
|
300
301
|
"toast.warning": "Aviso",
|
|
301
302
|
"toast.info": "Informação",
|
|
303
|
+
"toast.processing": "Processando...",
|
|
302
304
|
"toast.saving": "Salvando...",
|
|
303
305
|
"toast.saveFailed": "Falha ao salvar alterações",
|
|
304
306
|
"toast.saveSuccess": "Alterações salvas com sucesso",
|
|
@@ -133,6 +133,7 @@ var sk_default = {
|
|
|
133
133
|
"action.itemNotFound": "Položka nebola nájdená",
|
|
134
134
|
"action.itemDuplicated": "Položka bola úspešne zduplikovaná",
|
|
135
135
|
"action.itemIdRequired.transition": "Pre akciu prechodu je povinné ID položky",
|
|
136
|
+
"action.itemIdRequired.resetPassword": "Pre resetovanie hesla je povinné ID používateľa",
|
|
136
137
|
"action.targetStageRequired": "Pre akciu prechodu je povinná cieľová fáza",
|
|
137
138
|
"action.workflowUnsupported": "Workflow prechody nie sú pre túto kolekciu podporované",
|
|
138
139
|
"action.unknownBuiltin": "Neznáma vstavaná akcia: {{action}}",
|
|
@@ -442,6 +443,7 @@ var sk_default = {
|
|
|
442
443
|
"toast.error": "Chyba",
|
|
443
444
|
"toast.warning": "Upozornenie",
|
|
444
445
|
"toast.info": "Informácia",
|
|
446
|
+
"toast.processing": "Spracovávam...",
|
|
445
447
|
"toast.saving": "Ukladám...",
|
|
446
448
|
"toast.saveFailed": "Nepodarilo sa uložiť zmeny",
|
|
447
449
|
"toast.saveSuccess": "Zmeny úspešne uložené",
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared23 from "questpie/shared";
|
|
2
|
+
import * as questpie152 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js3 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js3 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core32 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm15 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/account.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
12
|
-
readonly email: typeof
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
23
|
-
readonly json: typeof
|
|
24
|
-
readonly from: typeof
|
|
9
|
+
declare const _default: questpie152.CollectionBuilder<questpie_shared23.Override<questpie152.EmptyCollectionState<"account", undefined, {
|
|
10
|
+
readonly text: typeof questpie152.text;
|
|
11
|
+
readonly textarea: typeof questpie152.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js3.email;
|
|
13
|
+
readonly url: typeof questpie152.url;
|
|
14
|
+
readonly number: typeof questpie152.number;
|
|
15
|
+
readonly boolean: typeof questpie152.boolean;
|
|
16
|
+
readonly date: typeof questpie152.date;
|
|
17
|
+
readonly datetime: typeof questpie152.datetime;
|
|
18
|
+
readonly time: typeof questpie152.time;
|
|
19
|
+
readonly select: typeof questpie152.select;
|
|
20
|
+
readonly upload: typeof questpie152.upload;
|
|
21
|
+
readonly relation: typeof questpie152.relation;
|
|
22
|
+
readonly object: typeof questpie152.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js3.json;
|
|
24
|
+
readonly from: typeof questpie152.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "account";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly accountId:
|
|
30
|
-
readonly providerId:
|
|
31
|
-
readonly accessToken:
|
|
32
|
-
readonly refreshToken:
|
|
33
|
-
readonly accessTokenExpiresAt:
|
|
34
|
-
readonly refreshTokenExpiresAt:
|
|
35
|
-
readonly scope:
|
|
36
|
-
readonly idToken:
|
|
37
|
-
readonly password:
|
|
28
|
+
readonly userId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly accountId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly providerId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly accessToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly refreshToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly accessTokenExpiresAt: drizzle_orm_pg_core32.PgTimestampBuilder;
|
|
34
|
+
readonly refreshTokenExpiresAt: drizzle_orm_pg_core32.PgTimestampBuilder;
|
|
35
|
+
readonly scope: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
36
|
+
readonly idToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
37
|
+
readonly password: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
38
38
|
};
|
|
39
39
|
virtuals: undefined;
|
|
40
|
-
relations: Record<string,
|
|
40
|
+
relations: Record<string, questpie152.RelationConfig>;
|
|
41
41
|
indexes: Record<string, any>;
|
|
42
42
|
title: "providerId";
|
|
43
|
-
options:
|
|
43
|
+
options: questpie152.CollectionOptions & {
|
|
44
44
|
timestamps: true;
|
|
45
45
|
};
|
|
46
46
|
hooks: Record<string, any>;
|
|
47
47
|
access: Record<string, any>;
|
|
48
48
|
searchable: undefined;
|
|
49
49
|
fieldDefinitions: {
|
|
50
|
-
readonly userId:
|
|
50
|
+
readonly userId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
},
|
|
54
|
-
readonly accountId:
|
|
52
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie152.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
},
|
|
58
|
-
readonly providerId:
|
|
56
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
+
}, questpie152.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
61
|
-
},
|
|
62
|
-
readonly accessToken:
|
|
63
|
-
readonly refreshToken:
|
|
64
|
-
readonly accessTokenExpiresAt:
|
|
65
|
-
readonly refreshTokenExpiresAt:
|
|
66
|
-
readonly scope:
|
|
67
|
-
readonly idToken:
|
|
68
|
-
readonly password:
|
|
60
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
+
}, questpie152.TextFieldMethods>;
|
|
62
|
+
readonly accessToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
63
|
+
readonly refreshToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
64
|
+
readonly accessTokenExpiresAt: questpie152.FieldWithMethods<questpie152.DatetimeFieldState, questpie152.DatetimeFieldMethods>;
|
|
65
|
+
readonly refreshTokenExpiresAt: questpie152.FieldWithMethods<questpie152.DatetimeFieldState, questpie152.DatetimeFieldMethods>;
|
|
66
|
+
readonly scope: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
67
|
+
readonly idToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
68
|
+
readonly password: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
69
69
|
};
|
|
70
70
|
upload: undefined;
|
|
71
71
|
output: {};
|