@questpie/admin 3.5.1 → 3.5.2
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/scope/picker.d.mts +2 -2
- package/dist/client/scope/provider.d.mts +2 -2
- 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/login-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/server/codegen/admin-client-template.mjs +48 -32
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +35 -35
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +64 -64
- package/dist/server/modules/admin/collections/assets.d.mts +34 -34
- package/dist/server/modules/admin/collections/session.d.mts +38 -38
- package/dist/server/modules/admin/collections/user.d.mts +53 -53
- 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/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/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_runtime25 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_runtime25.JSX.Element | null;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { BlockRenderer, BlockRendererProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScopePickerProps } from "./types.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/scope/picker.d.ts
|
|
5
5
|
|
|
@@ -48,6 +48,6 @@ declare function ScopePicker({
|
|
|
48
48
|
clearText,
|
|
49
49
|
className,
|
|
50
50
|
compact
|
|
51
|
-
}: ScopePickerProps):
|
|
51
|
+
}: ScopePickerProps): react_jsx_runtime26.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { ScopePicker };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScopeContextValue, ScopeProviderProps } from "./types.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/client/scope/provider.d.ts
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ declare function ScopeProvider({
|
|
|
29
29
|
headerName,
|
|
30
30
|
storageKey,
|
|
31
31
|
defaultScope
|
|
32
|
-
}: ScopeProviderProps):
|
|
32
|
+
}: ScopeProviderProps): react_jsx_runtime27.JSX.Element;
|
|
33
33
|
/**
|
|
34
34
|
* Hook to access the current scope context.
|
|
35
35
|
*
|
|
@@ -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_runtime5 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_runtime5.JSX.Element;
|
|
74
74
|
//#endregion
|
|
75
75
|
export { LoginForm };
|
|
@@ -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/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_runtime4.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { ResetPasswordForm };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime19 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_runtime19.JSX.Element | null;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
|
|
@@ -1,5 +1,47 @@
|
|
|
1
|
+
import { categoryRecordEntry, importStatement, sortedValues } from "questpie/codegen";
|
|
2
|
+
|
|
1
3
|
//#region src/server/codegen/admin-client-template.ts
|
|
2
4
|
/**
|
|
5
|
+
* Admin Client Template Generator
|
|
6
|
+
*
|
|
7
|
+
* Custom generator for the `admin-client` codegen target.
|
|
8
|
+
* Produces `questpie/admin/.generated/client.ts` — a plain admin config
|
|
9
|
+
* object that merges module defaults with user-discovered files.
|
|
10
|
+
*
|
|
11
|
+
* ## Architecture
|
|
12
|
+
*
|
|
13
|
+
* The admin-client target works identically to the server target:
|
|
14
|
+
*
|
|
15
|
+
* 1. **Package mode** (`generatePackageModules`): discovers files from
|
|
16
|
+
* `modules/admin/client/` → generates `modules/admin/client/.generated/module.ts`
|
|
17
|
+
* using the standard `generateModuleTemplate()` primitive.
|
|
18
|
+
*
|
|
19
|
+
* 2. **Root app mode** (`runAllTargets`): user has `admin/modules.ts` that imports
|
|
20
|
+
* module packages → this template imports `_mod` and merges generically with
|
|
21
|
+
* user-discovered files from `admin/{blocks,views,fields,...}/`.
|
|
22
|
+
*
|
|
23
|
+
* ## How to create an admin-client module (for third-party packages)
|
|
24
|
+
*
|
|
25
|
+
* 1. Create wrapper files in `modules/<name>/client/{fields,views,...}/`
|
|
26
|
+
* 2. Run `questpie generate` — generates `client/.generated/module.ts`
|
|
27
|
+
* 3. Create `client/index.ts` that re-exports the generated module
|
|
28
|
+
* 4. Add `"./client/module"` to `package.json` exports
|
|
29
|
+
*
|
|
30
|
+
* ## How users extend admin
|
|
31
|
+
*
|
|
32
|
+
* Add files in `questpie/admin/{views,fields,pages,widgets,blocks,components}/`.
|
|
33
|
+
* They are discovered automatically and merged over module defaults.
|
|
34
|
+
*
|
|
35
|
+
* ## Category key strategies
|
|
36
|
+
*
|
|
37
|
+
* - Default: use file key — `"bookingCta": _block_bookingCta`
|
|
38
|
+
* - `keyFromProperty: "name"`: use runtime key — `[_view_kanban.name]: _view_kanban`
|
|
39
|
+
*
|
|
40
|
+
* The strategy is declared per-category in `CategoryDeclaration.keyFromProperty`.
|
|
41
|
+
*
|
|
42
|
+
* @see PLAN-PLUGIN-CONSISTENCY.md §6.2 (admin-client target)
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
3
45
|
* Generate the admin client config file.
|
|
4
46
|
*
|
|
5
47
|
* Called by `runAllTargets()` for the `admin-client` target.
|
|
@@ -18,7 +60,7 @@ function generateAdminClientTemplate(ctx) {
|
|
|
18
60
|
lines.push(" */");
|
|
19
61
|
lines.push("");
|
|
20
62
|
if (modulesFile) {
|
|
21
|
-
lines.push(
|
|
63
|
+
lines.push(importStatement(modulesFile));
|
|
22
64
|
lines.push(`const _mergedModules = Array.isArray(${modulesFile.varName})`);
|
|
23
65
|
lines.push(`\t? ${modulesFile.varName}.reduce((acc: any, m: any) => {`);
|
|
24
66
|
lines.push(" for (const [k, v] of Object.entries(m)) acc[k] = typeof v === \"object\" && v !== null && !Array.isArray(v) ? { ...acc[k], ...v } : v;");
|
|
@@ -27,15 +69,15 @@ function generateAdminClientTemplate(ctx) {
|
|
|
27
69
|
}
|
|
28
70
|
const categoryFiles = /* @__PURE__ */ new Map();
|
|
29
71
|
for (const [cat, fileMap] of ctx.discovered.categories) if (fileMap.size > 0) {
|
|
30
|
-
const sorted =
|
|
72
|
+
const sorted = sortedValues(fileMap);
|
|
31
73
|
categoryFiles.set(cat, sorted);
|
|
32
|
-
for (const file of sorted) lines.push(
|
|
74
|
+
for (const file of sorted) lines.push(importStatement(file));
|
|
33
75
|
}
|
|
34
76
|
const singleFiles = /* @__PURE__ */ new Map();
|
|
35
77
|
for (const [key, file] of ctx.discovered.singles) {
|
|
36
78
|
if (key === "modules") continue;
|
|
37
79
|
singleFiles.set(key, file);
|
|
38
|
-
lines.push(
|
|
80
|
+
lines.push(importStatement(file));
|
|
39
81
|
}
|
|
40
82
|
for (const imp of ctx.extraImports) lines.push(`import ${imp.name} from "${imp.path}";`);
|
|
41
83
|
lines.push("");
|
|
@@ -52,11 +94,11 @@ function generateAdminClientTemplate(ctx) {
|
|
|
52
94
|
const files = categoryFiles.get(cat);
|
|
53
95
|
const catDecl = ctx.target.categories?.[cat];
|
|
54
96
|
if (modulesFile && files && files.length > 0) {
|
|
55
|
-
const entries =
|
|
97
|
+
const entries = files.map((f) => categoryRecordEntry(f, catDecl)).join(", ");
|
|
56
98
|
lines.push(`\t${cat}: { ..._mergedModules.${cat}, ${entries} },`);
|
|
57
99
|
} else if (modulesFile && (!files || files.length === 0)) lines.push(`\t${cat}: { ..._mergedModules.${cat} },`);
|
|
58
100
|
else if (files && files.length > 0) {
|
|
59
|
-
const entries =
|
|
101
|
+
const entries = files.map((f) => categoryRecordEntry(f, catDecl)).join(", ");
|
|
60
102
|
lines.push(`\t${cat}: { ${entries} },`);
|
|
61
103
|
}
|
|
62
104
|
}
|
|
@@ -73,32 +115,6 @@ function generateAdminClientTemplate(ctx) {
|
|
|
73
115
|
lines.push("");
|
|
74
116
|
return { code: lines.join("\n") };
|
|
75
117
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Generate category entries string based on the category's key strategy.
|
|
78
|
-
*
|
|
79
|
-
* When `keyFromProperty` is set (e.g., views with `keyFromProperty: "name"`),
|
|
80
|
-
* uses runtime property as key: `[_view_kanban.name]: _view_kanban`.
|
|
81
|
-
*
|
|
82
|
-
* Otherwise uses the file-derived key: `"bookingCta": _block_bookingCta`.
|
|
83
|
-
*/
|
|
84
|
-
function generateCategoryEntries(files, catDecl) {
|
|
85
|
-
const keyProp = catDecl?.keyFromProperty;
|
|
86
|
-
return files.map((f) => {
|
|
87
|
-
if (keyProp) return `[${f.varName}.${keyProp}]: ${f.varName}`;
|
|
88
|
-
if (catDecl?.keyFromSource === "basename") return `${JSON.stringify(getSourceBasename(f))}: ${f.varName}`;
|
|
89
|
-
return `${JSON.stringify(f.key)}: ${f.varName}`;
|
|
90
|
-
}).join(", ");
|
|
91
|
-
}
|
|
92
|
-
function getSourceBasename(file) {
|
|
93
|
-
return (file.source.replaceAll("\\", "/").split("/").pop() ?? file.key).replace(/\.[^.]+$/, "");
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Generate an import line for a discovered file.
|
|
97
|
-
*/
|
|
98
|
-
function generateImportLine(file) {
|
|
99
|
-
if (file.exportType === "named" && file.namedExportName) return `import { ${file.namedExportName} as ${file.varName} } from "${file.importPath}";`;
|
|
100
|
-
return `import ${file.varName} from "${file.importPath}";`;
|
|
101
|
-
}
|
|
102
118
|
|
|
103
119
|
//#endregion
|
|
104
120
|
export { generateAdminClientTemplate };
|
|
@@ -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_shared40 from "questpie/shared";
|
|
2
|
+
import * as questpie242 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js6 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js6 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core61 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm43 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: questpie242.CollectionBuilder<questpie_shared40.Override<questpie242.EmptyCollectionState<"account", undefined, {
|
|
10
|
+
readonly text: typeof questpie242.text;
|
|
11
|
+
readonly textarea: typeof questpie242.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js6.email;
|
|
13
|
+
readonly url: typeof questpie242.url;
|
|
14
|
+
readonly number: typeof questpie242.number;
|
|
15
|
+
readonly boolean: typeof questpie242.boolean;
|
|
16
|
+
readonly date: typeof questpie242.date;
|
|
17
|
+
readonly datetime: typeof questpie242.datetime;
|
|
18
|
+
readonly time: typeof questpie242.time;
|
|
19
|
+
readonly select: typeof questpie242.select;
|
|
20
|
+
readonly upload: typeof questpie242.upload;
|
|
21
|
+
readonly relation: typeof questpie242.relation;
|
|
22
|
+
readonly object: typeof questpie242.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js6.json;
|
|
24
|
+
readonly from: typeof questpie242.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_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly accountId: drizzle_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly providerId: drizzle_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly accessToken: drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly refreshToken: drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly accessTokenExpiresAt: drizzle_orm_pg_core61.PgTimestampBuilder;
|
|
34
|
+
readonly refreshTokenExpiresAt: drizzle_orm_pg_core61.PgTimestampBuilder;
|
|
35
|
+
readonly scope: drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>;
|
|
36
|
+
readonly idToken: drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>;
|
|
37
|
+
readonly password: drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>;
|
|
38
38
|
};
|
|
39
39
|
virtuals: undefined;
|
|
40
|
-
relations: Record<string,
|
|
40
|
+
relations: Record<string, questpie242.RelationConfig>;
|
|
41
41
|
indexes: Record<string, any>;
|
|
42
42
|
title: "providerId";
|
|
43
|
-
options:
|
|
43
|
+
options: questpie242.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: questpie242.FieldWithMethods<Omit<questpie242.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
},
|
|
54
|
-
readonly accountId:
|
|
52
|
+
column: drizzle_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie242.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie242.FieldWithMethods<Omit<questpie242.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
},
|
|
58
|
-
readonly providerId:
|
|
56
|
+
column: drizzle_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
+
}, questpie242.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie242.FieldWithMethods<Omit<questpie242.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_orm43.NotNull<drizzle_orm_pg_core61.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
+
}, questpie242.TextFieldMethods>;
|
|
62
|
+
readonly accessToken: questpie242.FieldWithMethods<questpie242.TextFieldState, questpie242.TextFieldMethods>;
|
|
63
|
+
readonly refreshToken: questpie242.FieldWithMethods<questpie242.TextFieldState, questpie242.TextFieldMethods>;
|
|
64
|
+
readonly accessTokenExpiresAt: questpie242.FieldWithMethods<questpie242.DatetimeFieldState, questpie242.DatetimeFieldMethods>;
|
|
65
|
+
readonly refreshTokenExpiresAt: questpie242.FieldWithMethods<questpie242.DatetimeFieldState, questpie242.DatetimeFieldMethods>;
|
|
66
|
+
readonly scope: questpie242.FieldWithMethods<questpie242.TextFieldState, questpie242.TextFieldMethods>;
|
|
67
|
+
readonly idToken: questpie242.FieldWithMethods<questpie242.TextFieldState, questpie242.TextFieldMethods>;
|
|
68
|
+
readonly password: questpie242.FieldWithMethods<questpie242.TextFieldState, questpie242.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_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/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: questpie152.CollectionBuilder<questpie_shared23.Override<questpie152.EmptyCollectionState<"admin_locks", 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: "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_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly resource: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly resourceId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly user: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
32
|
+
readonly sessionId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
33
|
+
readonly expiresAt: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgDateStringBuilder>;
|
|
34
34
|
};
|
|
35
35
|
virtuals: undefined;
|
|
36
|
-
relations: Record<string,
|
|
36
|
+
relations: Record<string, questpie152.RelationConfig>;
|
|
37
37
|
indexes: Record<string, any>;
|
|
38
38
|
title: undefined;
|
|
39
|
-
options:
|
|
39
|
+
options: questpie152.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: questpie152.FieldWithMethods<Omit<questpie152.SelectFieldState, "notNull" | "column"> & {
|
|
47
47
|
notNull: true;
|
|
48
|
-
column:
|
|
48
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
49
49
|
} & {
|
|
50
|
-
label:
|
|
51
|
-
},
|
|
52
|
-
readonly resource:
|
|
50
|
+
label: questpie_shared23.I18nText;
|
|
51
|
+
}, questpie152.SelectFieldMethods>;
|
|
52
|
+
readonly resource: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
53
53
|
notNull: true;
|
|
54
|
-
column:
|
|
54
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
55
55
|
} & {
|
|
56
|
-
label:
|
|
57
|
-
},
|
|
58
|
-
readonly resourceId:
|
|
56
|
+
label: questpie_shared23.I18nText;
|
|
57
|
+
}, questpie152.TextFieldMethods>;
|
|
58
|
+
readonly resourceId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
60
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
61
|
} & {
|
|
62
|
-
label:
|
|
63
|
-
},
|
|
64
|
-
readonly user:
|
|
62
|
+
label: questpie_shared23.I18nText;
|
|
63
|
+
}, questpie152.TextFieldMethods>;
|
|
64
|
+
readonly user: questpie152.FieldWithMethods<Omit<questpie152.RelationFieldState<"user">, "notNull" | "column"> & {
|
|
65
65
|
notNull: true;
|
|
66
|
-
column:
|
|
66
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
69
|
-
},
|
|
70
|
-
readonly sessionId:
|
|
68
|
+
label: questpie_shared23.I18nText;
|
|
69
|
+
}, questpie152.RelationFieldMethods>;
|
|
70
|
+
readonly sessionId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
71
71
|
notNull: true;
|
|
72
|
-
column:
|
|
72
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
73
73
|
} & {
|
|
74
|
-
label:
|
|
75
|
-
},
|
|
76
|
-
readonly expiresAt:
|
|
74
|
+
label: questpie_shared23.I18nText;
|
|
75
|
+
}, questpie152.TextFieldMethods>;
|
|
76
|
+
readonly expiresAt: questpie152.FieldWithMethods<Omit<questpie152.DateFieldState, "notNull" | "column"> & {
|
|
77
77
|
notNull: true;
|
|
78
|
-
column:
|
|
78
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgDateStringBuilder>;
|
|
79
79
|
} & {
|
|
80
|
-
label:
|
|
81
|
-
},
|
|
80
|
+
label: questpie_shared23.I18nText;
|
|
81
|
+
}, questpie152.DateFieldMethods>;
|
|
82
82
|
};
|
|
83
83
|
upload: undefined;
|
|
84
84
|
output: {};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as questpie_shared36 from "questpie/shared";
|
|
2
|
+
import * as questpie217 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js5 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js5 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as drizzle_orm_pg_core54 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm37 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-preferences.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
9
|
+
declare const _default: questpie217.CollectionBuilder<questpie_shared36.Override<questpie217.EmptyCollectionState<"admin_preferences", undefined, {
|
|
10
|
+
readonly text: typeof questpie217.text;
|
|
11
|
+
readonly textarea: typeof questpie217.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js5.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 questpie217.url;
|
|
14
|
+
readonly number: typeof questpie217.number;
|
|
15
|
+
readonly boolean: typeof questpie217.boolean;
|
|
16
|
+
readonly date: typeof questpie217.date;
|
|
17
|
+
readonly datetime: typeof questpie217.datetime;
|
|
18
|
+
readonly time: typeof questpie217.time;
|
|
19
|
+
readonly select: typeof questpie217.select;
|
|
20
|
+
readonly upload: typeof questpie217.upload;
|
|
21
|
+
readonly relation: typeof questpie217.relation;
|
|
22
|
+
readonly object: typeof questpie217.object;
|
|
23
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js5.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie217.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_preferences";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly key:
|
|
30
|
-
readonly value:
|
|
28
|
+
readonly userId: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly key: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly value: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgJsonbBuilder>;
|
|
31
31
|
};
|
|
32
32
|
virtuals: undefined;
|
|
33
|
-
relations: Record<string,
|
|
34
|
-
indexes: Record<string, any> &
|
|
33
|
+
relations: Record<string, questpie217.RelationConfig>;
|
|
34
|
+
indexes: Record<string, any> & drizzle_orm_pg_core54.IndexBuilder[];
|
|
35
35
|
title: undefined;
|
|
36
|
-
options:
|
|
36
|
+
options: questpie217.CollectionOptions & {
|
|
37
37
|
timestamps: true;
|
|
38
38
|
};
|
|
39
39
|
hooks: Record<string, any>;
|
|
40
40
|
access: Record<string, any>;
|
|
41
41
|
searchable: undefined;
|
|
42
42
|
fieldDefinitions: {
|
|
43
|
-
readonly userId:
|
|
43
|
+
readonly userId: questpie217.FieldWithMethods<Omit<questpie217.TextFieldState, "notNull" | "column"> & {
|
|
44
44
|
notNull: true;
|
|
45
|
-
column:
|
|
45
|
+
column: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
46
|
} & {
|
|
47
|
-
label:
|
|
48
|
-
},
|
|
49
|
-
readonly key:
|
|
47
|
+
label: questpie_shared36.I18nText;
|
|
48
|
+
}, questpie217.TextFieldMethods>;
|
|
49
|
+
readonly key: questpie217.FieldWithMethods<Omit<questpie217.TextFieldState, "notNull" | "column"> & {
|
|
50
50
|
notNull: true;
|
|
51
|
-
column:
|
|
51
|
+
column: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgVarcharBuilder<[string, ...string[]]>>;
|
|
52
52
|
} & {
|
|
53
|
-
label:
|
|
54
|
-
},
|
|
55
|
-
readonly value:
|
|
53
|
+
label: questpie_shared36.I18nText;
|
|
54
|
+
}, questpie217.TextFieldMethods>;
|
|
55
|
+
readonly value: questpie217.Field<Omit<questpie217.JsonFieldState, "notNull" | "column"> & {
|
|
56
56
|
notNull: true;
|
|
57
|
-
column:
|
|
57
|
+
column: drizzle_orm37.NotNull<drizzle_orm_pg_core54.PgJsonbBuilder>;
|
|
58
58
|
} & {
|
|
59
|
-
label:
|
|
59
|
+
label: questpie_shared36.I18nText;
|
|
60
60
|
}>;
|
|
61
61
|
};
|
|
62
62
|
upload: undefined;
|