@questpie/admin 3.0.8 → 3.0.9
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/components/actions/action-button.mjs +2 -1
- package/dist/client/components/admin-link.d.mts +2 -2
- package/dist/client/hooks/use-server-actions.mjs +2 -1
- 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/forgot-password-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/collection/form-view.mjs +34 -6
- 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/client/views/pages/reset-password-page.d.mts +2 -2
- package/dist/client/views/pages/setup-page.d.mts +2 -2
- package/dist/server/modules/admin/collections/account.d.mts +30 -30
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +22 -22
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +42 -42
- package/dist/server/modules/admin/collections/assets.d.mts +20 -20
- 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/verification.d.mts +32 -32
- 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/locales.d.mts +2 -2
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- 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/routes/translations.d.mts +4 -4
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +45 -45
- package/dist/server/modules/audit/.generated/module.d.mts +6 -6
- package/dist/server/modules/audit/collections/audit-log.d.mts +78 -78
- package/dist/server/modules/audit/jobs/audit-cleanup.d.mts +2 -2
- package/package.json +3 -3
|
@@ -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
|
|
|
@@ -40,6 +40,6 @@ declare function BlockRenderer({
|
|
|
40
40
|
selectedBlockId,
|
|
41
41
|
onBlockClick,
|
|
42
42
|
className
|
|
43
|
-
}: BlockRendererProps):
|
|
43
|
+
}: BlockRendererProps): react_jsx_runtime19.JSX.Element | null;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { BlockRenderer, BlockRendererProps };
|
|
@@ -139,7 +139,8 @@ function ActionButton({ action, collection, item, items, helpers, size = "defaul
|
|
|
139
139
|
if (result?.effects?.invalidate === true) await helpers.invalidateAll();
|
|
140
140
|
else if (Array.isArray(result?.effects?.invalidate)) for (const collectionName of result.effects.invalidate) await helpers.invalidateCollection(collectionName);
|
|
141
141
|
if (result?.effects?.redirect) helpers.navigate(result.effects.redirect);
|
|
142
|
-
if (result?.type === "redirect" && result.url)
|
|
142
|
+
if (result?.type === "redirect" && result.url) if (result.external) window.open(result.url, "_blank");
|
|
143
|
+
else helpers.navigate(result.url);
|
|
143
144
|
if (result?.effects?.closeModal) helpers.closeDialog();
|
|
144
145
|
} catch (error) {
|
|
145
146
|
helpers.toast.error(error instanceof Error ? error.message : t("error.actionFailed"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CollectionNames, GlobalNames } from "../builder/index.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
4
4
|
import { QuestpieApp } from "questpie/client";
|
|
5
5
|
|
|
6
6
|
//#region src/client/components/admin-link.d.ts
|
|
@@ -61,6 +61,6 @@ declare function AdminLink<TApp extends QuestpieApp>({
|
|
|
61
61
|
children,
|
|
62
62
|
onClick,
|
|
63
63
|
...rest
|
|
64
|
-
}: AdminLinkProps<TApp>):
|
|
64
|
+
}: AdminLinkProps<TApp>): react_jsx_runtime14.JSX.Element;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { AdminLink };
|
|
@@ -24,7 +24,8 @@ async function applyServerActionEffects(result, ctx) {
|
|
|
24
24
|
if (result.effects?.invalidate === true) await ctx.helpers.invalidateAll();
|
|
25
25
|
else if (Array.isArray(result.effects?.invalidate)) for (const col of result.effects.invalidate) await ctx.helpers.invalidateCollection(col);
|
|
26
26
|
if (result.effects?.redirect) ctx.helpers.navigate(result.effects.redirect);
|
|
27
|
-
if (result.type === "redirect" && result.url)
|
|
27
|
+
if (result.type === "redirect" && result.url) if (result.external) window.open(result.url, "_blank");
|
|
28
|
+
else ctx.helpers.navigate(result.url);
|
|
28
29
|
}
|
|
29
30
|
function buildServerFormFields(rawFields, fieldRegistry) {
|
|
30
31
|
if (!rawFields || !fieldRegistry) return {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 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_runtime24.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_runtime20 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_runtime20.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_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/preview/preview-field.d.ts
|
|
5
5
|
|
|
@@ -45,7 +45,7 @@ declare function PreviewProvider({
|
|
|
45
45
|
fieldType?: "regular" | "block" | "relation";
|
|
46
46
|
}) => void;
|
|
47
47
|
children: React.ReactNode;
|
|
48
|
-
}):
|
|
48
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
49
49
|
/**
|
|
50
50
|
* Hook to access preview context.
|
|
51
51
|
*/
|
|
@@ -81,7 +81,7 @@ declare function PreviewField({
|
|
|
81
81
|
as: Component,
|
|
82
82
|
className,
|
|
83
83
|
onClick
|
|
84
|
-
}: PreviewFieldProps):
|
|
84
|
+
}: PreviewFieldProps): react_jsx_runtime21.JSX.Element;
|
|
85
85
|
/**
|
|
86
86
|
* Standalone PreviewField that works without context.
|
|
87
87
|
* Useful when you can't use PreviewProvider.
|
|
@@ -102,6 +102,6 @@ declare function StandalonePreviewField({
|
|
|
102
102
|
blockId?: string;
|
|
103
103
|
fieldType?: "regular" | "block" | "relation";
|
|
104
104
|
}) => void;
|
|
105
|
-
}):
|
|
105
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
106
106
|
//#endregion
|
|
107
107
|
export { PreviewField, PreviewFieldProps, PreviewProvider, StandalonePreviewField, usePreviewContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime2 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_runtime2.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_runtime0 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_runtime0.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_runtime0.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { AuthDefaultLogo, AuthLayout, AuthLayoutProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/auth/forgot-password-form.d.ts
|
|
4
4
|
/**
|
|
@@ -53,6 +53,6 @@ declare function ForgotPasswordForm({
|
|
|
53
53
|
defaultValues,
|
|
54
54
|
className,
|
|
55
55
|
error
|
|
56
|
-
}: ForgotPasswordFormProps):
|
|
56
|
+
}: ForgotPasswordFormProps): react_jsx_runtime3.JSX.Element;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { ForgotPasswordForm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/client/views/auth/login-form.d.ts
|
|
4
4
|
/**
|
|
@@ -70,6 +70,6 @@ declare function LoginForm({
|
|
|
70
70
|
className,
|
|
71
71
|
error,
|
|
72
72
|
minPasswordLength
|
|
73
|
-
}: LoginFormProps):
|
|
73
|
+
}: LoginFormProps): react_jsx_runtime4.JSX.Element;
|
|
74
74
|
//#endregion
|
|
75
75
|
export { LoginForm };
|
|
@@ -979,15 +979,15 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
|
|
|
979
979
|
setActionLoading(true);
|
|
980
980
|
const apiPromise = async () => {
|
|
981
981
|
const url = `${storeBasePath}/${collection}/${endpoint}`;
|
|
982
|
-
const
|
|
982
|
+
const response_0 = await fetch(url, {
|
|
983
983
|
method,
|
|
984
984
|
headers: { "Content-Type": "application/json" },
|
|
985
985
|
body
|
|
986
986
|
});
|
|
987
|
-
if (!
|
|
987
|
+
if (!response_0.ok) {
|
|
988
988
|
let errorBody = {};
|
|
989
989
|
try {
|
|
990
|
-
errorBody = await
|
|
990
|
+
errorBody = await response_0.json();
|
|
991
991
|
} catch (_parseErr) {}
|
|
992
992
|
let errorMessage;
|
|
993
993
|
if (errorBody.message) if (typeof errorBody.message === "string") errorMessage = errorBody.message;
|
|
@@ -995,7 +995,7 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
|
|
|
995
995
|
else errorMessage = t("toast.actionFailed");
|
|
996
996
|
throw new Error(errorMessage);
|
|
997
997
|
}
|
|
998
|
-
return
|
|
998
|
+
return response_0.json();
|
|
999
999
|
};
|
|
1000
1000
|
const p = apiPromise();
|
|
1001
1001
|
p.then(() => setActionLoading(false), () => setActionLoading(false));
|
|
@@ -1021,6 +1021,34 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
|
|
|
1021
1021
|
}
|
|
1022
1022
|
break;
|
|
1023
1023
|
}
|
|
1024
|
+
case "server": {
|
|
1025
|
+
const serverHandler = handler;
|
|
1026
|
+
setActionLoading(true);
|
|
1027
|
+
try {
|
|
1028
|
+
const routes = client?.routes;
|
|
1029
|
+
if (!routes?.executeAction) throw new Error(t("error.serverActionFailed"));
|
|
1030
|
+
const response = await routes.executeAction({
|
|
1031
|
+
collection: serverHandler.collection,
|
|
1032
|
+
actionId: serverHandler.actionId,
|
|
1033
|
+
itemId: transformedItem?.id || id
|
|
1034
|
+
});
|
|
1035
|
+
if (!response?.success || response.result?.type === "error") throw new Error(response?.error ?? response?.result?.toast?.message ?? t("error.serverActionFailed"));
|
|
1036
|
+
const result_2 = response.result;
|
|
1037
|
+
if (result_2?.toast?.message) toast.success(result_2.toast.message);
|
|
1038
|
+
else toast.success(t("toast.actionSuccess"));
|
|
1039
|
+
if (result_2?.effects?.invalidate === true) await actionHelpers.invalidateAll();
|
|
1040
|
+
else if (Array.isArray(result_2?.effects?.invalidate)) for (const col_1 of result_2.effects.invalidate) await actionHelpers.invalidateCollection(col_1);
|
|
1041
|
+
if (result_2?.effects?.redirect) storeNavigate(result_2.effects.redirect);
|
|
1042
|
+
if (result_2?.type === "redirect" && result_2.url) if (result_2.external) window.open(result_2.url, "_blank");
|
|
1043
|
+
else storeNavigate(result_2.url);
|
|
1044
|
+
if (result_2?.effects?.closeModal) actionHelpers.closeDialog();
|
|
1045
|
+
} catch (error_0) {
|
|
1046
|
+
toast.error(error_0 instanceof Error ? error_0.message : t("error.actionFailed"));
|
|
1047
|
+
} finally {
|
|
1048
|
+
setActionLoading(false);
|
|
1049
|
+
}
|
|
1050
|
+
break;
|
|
1051
|
+
}
|
|
1024
1052
|
}
|
|
1025
1053
|
setConfirmAction(null);
|
|
1026
1054
|
};
|
|
@@ -1032,8 +1060,8 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
|
|
|
1032
1060
|
const payload = { id };
|
|
1033
1061
|
if (typeof pendingRevertVersion.versionId === "string") payload.versionId = pendingRevertVersion.versionId;
|
|
1034
1062
|
else if (typeof pendingRevertVersion.versionNumber === "number") payload.version = pendingRevertVersion.versionNumber;
|
|
1035
|
-
const
|
|
1036
|
-
form.reset(
|
|
1063
|
+
const result_3 = await revertVersionMutation.mutateAsync(payload);
|
|
1064
|
+
form.reset(result_3);
|
|
1037
1065
|
triggerPreviewRefresh();
|
|
1038
1066
|
toast.success(t("version.revertSuccess"));
|
|
1039
1067
|
setPendingRevertVersion(null);
|
|
@@ -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/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_runtime10.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_runtime9 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_runtime9.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_runtime12 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_runtime12.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { LoginPage };
|
|
@@ -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/reset-password-page.d.ts
|
|
5
5
|
|
|
@@ -58,6 +58,6 @@ declare function ResetPasswordPage({
|
|
|
58
58
|
loginPath,
|
|
59
59
|
minPasswordLength,
|
|
60
60
|
getToken
|
|
61
|
-
}: ResetPasswordPageProps):
|
|
61
|
+
}: ResetPasswordPageProps): react_jsx_runtime11.JSX.Element;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { ResetPasswordPage };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/views/pages/setup-page.d.ts
|
|
5
5
|
|
|
@@ -56,6 +56,6 @@ declare function SetupPage({
|
|
|
56
56
|
redirectTo,
|
|
57
57
|
loginPath,
|
|
58
58
|
showLoginLink
|
|
59
|
-
}: SetupPageProps):
|
|
59
|
+
}: SetupPageProps): react_jsx_runtime13.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { SetupPage, SetupPageProps };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as questpie_shared22 from "questpie/shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as questpie152 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js3 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js3 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
5
|
import * as drizzle_orm_pg_core32 from "drizzle-orm/pg-core";
|
|
6
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
|
|
9
|
+
declare const _default: questpie152.CollectionBuilder<questpie_shared22.Override<questpie152.EmptyCollectionState<"account", undefined, {
|
|
10
|
+
readonly text: typeof questpie152.text;
|
|
11
|
+
readonly textarea: typeof questpie152.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js3.email;
|
|
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
|
|
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
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js3.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie152.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "account";
|
|
27
27
|
fields: Record<string, any> & {
|
|
@@ -37,35 +37,35 @@ declare const _default: questpie151.CollectionBuilder<questpie_shared22.Override
|
|
|
37
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
52
|
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
-
},
|
|
54
|
-
readonly accountId:
|
|
53
|
+
}, questpie152.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
56
|
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
-
},
|
|
58
|
-
readonly providerId:
|
|
57
|
+
}, questpie152.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
60
|
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
-
},
|
|
62
|
-
readonly accessToken:
|
|
63
|
-
readonly refreshToken:
|
|
64
|
-
readonly accessTokenExpiresAt:
|
|
65
|
-
readonly refreshTokenExpiresAt:
|
|
66
|
-
readonly scope:
|
|
67
|
-
readonly idToken:
|
|
68
|
-
readonly password:
|
|
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: {};
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared29 from "questpie/shared";
|
|
2
|
+
import * as questpie229 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js5 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js5 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core55 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm31 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-locks.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: questpie229.CollectionBuilder<questpie_shared29.Override<questpie229.EmptyCollectionState<"admin_locks", undefined, {
|
|
10
|
+
readonly text: typeof questpie229.text;
|
|
11
|
+
readonly textarea: typeof questpie229.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js5.email;
|
|
13
|
+
readonly url: typeof questpie229.url;
|
|
14
|
+
readonly number: typeof questpie229.number;
|
|
15
|
+
readonly boolean: typeof questpie229.boolean;
|
|
16
|
+
readonly date: typeof questpie229.date;
|
|
17
|
+
readonly datetime: typeof questpie229.datetime;
|
|
18
|
+
readonly time: typeof questpie229.time;
|
|
19
|
+
readonly select: typeof questpie229.select;
|
|
20
|
+
readonly upload: typeof questpie229.upload;
|
|
21
|
+
readonly relation: typeof questpie229.relation;
|
|
22
|
+
readonly object: typeof questpie229.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js5.json;
|
|
24
|
+
readonly from: typeof questpie229.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_locks";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly resourceType:
|
|
29
|
-
readonly resource:
|
|
30
|
-
readonly resourceId:
|
|
31
|
-
readonly user:
|
|
32
|
-
readonly sessionId:
|
|
33
|
-
readonly expiresAt:
|
|
28
|
+
readonly resourceType: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly resource: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly resourceId: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly user: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
32
|
+
readonly sessionId: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
33
|
+
readonly expiresAt: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgDateStringBuilder>;
|
|
34
34
|
};
|
|
35
35
|
virtuals: undefined;
|
|
36
|
-
relations: Record<string,
|
|
36
|
+
relations: Record<string, questpie229.RelationConfig>;
|
|
37
37
|
indexes: Record<string, any>;
|
|
38
38
|
title: undefined;
|
|
39
|
-
options:
|
|
39
|
+
options: questpie229.CollectionOptions & {
|
|
40
40
|
timestamps: true;
|
|
41
41
|
};
|
|
42
42
|
hooks: Record<string, any>;
|
|
43
43
|
access: Record<string, any>;
|
|
44
44
|
searchable: undefined;
|
|
45
45
|
fieldDefinitions: {
|
|
46
|
-
readonly resourceType:
|
|
46
|
+
readonly resourceType: questpie229.FieldWithMethods<Omit<questpie229.SelectFieldState, "notNull" | "column"> & {
|
|
47
47
|
notNull: true;
|
|
48
|
-
column:
|
|
48
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
49
49
|
} & {
|
|
50
|
-
label:
|
|
51
|
-
},
|
|
52
|
-
readonly resource:
|
|
50
|
+
label: questpie_shared29.I18nText;
|
|
51
|
+
}, questpie229.SelectFieldMethods>;
|
|
52
|
+
readonly resource: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
53
53
|
notNull: true;
|
|
54
|
-
column:
|
|
54
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
55
55
|
} & {
|
|
56
|
-
label:
|
|
57
|
-
},
|
|
58
|
-
readonly resourceId:
|
|
56
|
+
label: questpie_shared29.I18nText;
|
|
57
|
+
}, questpie229.TextFieldMethods>;
|
|
58
|
+
readonly resourceId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
60
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
61
|
} & {
|
|
62
|
-
label:
|
|
63
|
-
},
|
|
64
|
-
readonly user:
|
|
62
|
+
label: questpie_shared29.I18nText;
|
|
63
|
+
}, questpie229.TextFieldMethods>;
|
|
64
|
+
readonly user: questpie229.FieldWithMethods<Omit<questpie229.RelationFieldState<"user">, "notNull" | "column"> & {
|
|
65
65
|
notNull: true;
|
|
66
|
-
column:
|
|
66
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
69
|
-
},
|
|
70
|
-
readonly sessionId:
|
|
68
|
+
label: questpie_shared29.I18nText;
|
|
69
|
+
}, questpie229.RelationFieldMethods>;
|
|
70
|
+
readonly sessionId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
|
|
71
71
|
notNull: true;
|
|
72
|
-
column:
|
|
72
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
|
|
73
73
|
} & {
|
|
74
|
-
label:
|
|
75
|
-
},
|
|
76
|
-
readonly expiresAt:
|
|
74
|
+
label: questpie_shared29.I18nText;
|
|
75
|
+
}, questpie229.TextFieldMethods>;
|
|
76
|
+
readonly expiresAt: questpie229.FieldWithMethods<Omit<questpie229.DateFieldState, "notNull" | "column"> & {
|
|
77
77
|
notNull: true;
|
|
78
|
-
column:
|
|
78
|
+
column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgDateStringBuilder>;
|
|
79
79
|
} & {
|
|
80
|
-
label:
|
|
81
|
-
},
|
|
80
|
+
label: questpie_shared29.I18nText;
|
|
81
|
+
}, questpie229.DateFieldMethods>;
|
|
82
82
|
};
|
|
83
83
|
upload: undefined;
|
|
84
84
|
output: {};
|