@questpie/admin 3.0.0 → 3.0.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/README.md +76 -43
- package/dist/client/blocks/block-renderer.d.mts +2 -2
- 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/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/server/modules/admin/block/prefetch.d.mts +4 -0
- package/dist/server/modules/admin/collections/account.d.mts +23 -23
- 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 +68 -68
- 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 +28 -28
- package/dist/server/modules/admin/collections/verification.d.mts +36 -36
- 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 +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/modules/audit/jobs/audit-cleanup.d.mts +2 -2
- package/package.json +4 -3
- package/skills/questpie-admin/SKILL.md +0 -397
- package/skills/questpie-admin/blocks/SKILL.md +0 -305
- package/skills/questpie-admin/custom-ui/SKILL.md +0 -307
- package/skills/questpie-admin/views/SKILL.md +0 -442
package/README.md
CHANGED
|
@@ -19,15 +19,13 @@ bun add @questpie/admin questpie @questpie/tanstack-query @tanstack/react-query
|
|
|
19
19
|
|
|
20
20
|
## Server Setup
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Add the admin module to `modules.ts`:
|
|
23
23
|
|
|
24
24
|
```ts
|
|
25
25
|
// questpie.config.ts
|
|
26
26
|
import { runtimeConfig } from "questpie";
|
|
27
|
-
import { adminPlugin } from "@questpie/admin/plugin";
|
|
28
27
|
|
|
29
28
|
export default runtimeConfig({
|
|
30
|
-
plugins: [adminPlugin()],
|
|
31
29
|
app: { url: process.env.APP_URL! },
|
|
32
30
|
db: { url: process.env.DATABASE_URL! },
|
|
33
31
|
secret: process.env.AUTH_SECRET!,
|
|
@@ -41,7 +39,25 @@ import { adminModule } from "@questpie/admin/server";
|
|
|
41
39
|
export default [adminModule] as const;
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
Branding, sidebar, and
|
|
42
|
+
Branding, sidebar, dashboard, and admin locale are configured via `config/admin.ts`:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// config/admin.ts
|
|
46
|
+
import { adminConfig } from "#questpie/factories";
|
|
47
|
+
|
|
48
|
+
export default adminConfig({
|
|
49
|
+
branding: { name: "My Admin" },
|
|
50
|
+
sidebar: {
|
|
51
|
+
sections: [
|
|
52
|
+
{
|
|
53
|
+
id: "main",
|
|
54
|
+
title: "Content",
|
|
55
|
+
items: [{ type: "collection", collection: "posts" }],
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
```
|
|
45
61
|
|
|
46
62
|
Collections, globals, routes, and jobs are auto-discovered via file convention. Codegen produces a `.generated/index.ts` with the fully-typed `App` and runtime `app` instance.
|
|
47
63
|
|
|
@@ -54,7 +70,12 @@ const posts = collection("posts")
|
|
|
54
70
|
.fields(({ f }) => ({
|
|
55
71
|
title: f.text(255).required().label("Title"),
|
|
56
72
|
content: f.richText().label("Content"),
|
|
57
|
-
status: f
|
|
73
|
+
status: f
|
|
74
|
+
.select([
|
|
75
|
+
{ value: "draft", label: "Draft" },
|
|
76
|
+
{ value: "published", label: "Published" },
|
|
77
|
+
])
|
|
78
|
+
.label("Status"),
|
|
58
79
|
cover: f.upload({ to: "assets", mimeTypes: ["image/*"] }),
|
|
59
80
|
publishedAt: f.date(),
|
|
60
81
|
}))
|
|
@@ -147,35 +168,51 @@ Server-evaluated reactive behaviors in form config:
|
|
|
147
168
|
### Dashboard Actions
|
|
148
169
|
|
|
149
170
|
```ts
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
171
|
+
export default adminConfig({
|
|
172
|
+
dashboard: {
|
|
173
|
+
title: "Dashboard",
|
|
174
|
+
items: [
|
|
175
|
+
{
|
|
176
|
+
id: "posts",
|
|
177
|
+
type: "stats",
|
|
178
|
+
collection: "posts",
|
|
179
|
+
label: "Posts",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: "quick-actions",
|
|
183
|
+
type: "quickActions",
|
|
184
|
+
label: "Quick Actions",
|
|
185
|
+
actions: [
|
|
186
|
+
{
|
|
187
|
+
label: "New Post",
|
|
188
|
+
action: { type: "create", collection: "posts" },
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
label: "Open Site",
|
|
192
|
+
action: { type: "link", href: "/" },
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
},
|
|
198
|
+
});
|
|
162
199
|
```
|
|
163
200
|
|
|
164
201
|
## Client Setup
|
|
165
202
|
|
|
166
|
-
|
|
203
|
+
Codegen creates a typed admin config from the client module registry and the server projection:
|
|
167
204
|
|
|
168
|
-
### 1. Admin
|
|
205
|
+
### 1. Admin Client Modules
|
|
169
206
|
|
|
170
207
|
```ts
|
|
171
|
-
// questpie/admin/
|
|
172
|
-
|
|
173
|
-
import type { App } from "#questpie";
|
|
174
|
-
|
|
175
|
-
export const admin = qa<App>().use(adminModule);
|
|
208
|
+
// questpie/admin/modules.ts
|
|
209
|
+
export { default } from "@questpie/admin/client-module";
|
|
176
210
|
```
|
|
177
211
|
|
|
178
|
-
|
|
212
|
+
```ts
|
|
213
|
+
// questpie/admin/admin.ts
|
|
214
|
+
export { default as admin } from "./.generated/client";
|
|
215
|
+
```
|
|
179
216
|
|
|
180
217
|
### 2. Typed Hooks
|
|
181
218
|
|
|
@@ -200,7 +237,7 @@ export const {
|
|
|
200
237
|
```tsx
|
|
201
238
|
// routes/admin.tsx
|
|
202
239
|
import { AdminRouter } from "@questpie/admin/client";
|
|
203
|
-
import { admin } from "@/questpie/admin/
|
|
240
|
+
import { admin } from "@/questpie/admin/admin";
|
|
204
241
|
import { appClient } from "@/lib/client";
|
|
205
242
|
import { queryClient } from "@/lib/query-client";
|
|
206
243
|
|
|
@@ -208,7 +245,7 @@ export default function AdminRoute() {
|
|
|
208
245
|
return (
|
|
209
246
|
<AdminRouter
|
|
210
247
|
admin={admin}
|
|
211
|
-
client={
|
|
248
|
+
client={appClient}
|
|
212
249
|
queryClient={queryClient}
|
|
213
250
|
basePath="/admin"
|
|
214
251
|
/>
|
|
@@ -239,7 +276,7 @@ const heroBlock = block("hero")
|
|
|
239
276
|
category: { label: "Sections", icon: c.icon("ph:layout") },
|
|
240
277
|
}))
|
|
241
278
|
.fields(({ f }) => ({
|
|
242
|
-
title: f.text(
|
|
279
|
+
title: f.text().required(),
|
|
243
280
|
subtitle: f.textarea(),
|
|
244
281
|
backgroundImage: f.upload({ to: "assets", mimeTypes: ["image/*"] }),
|
|
245
282
|
}))
|
|
@@ -249,19 +286,19 @@ const heroBlock = block("hero")
|
|
|
249
286
|
Render blocks on the client with `BlockRenderer`:
|
|
250
287
|
|
|
251
288
|
```tsx
|
|
252
|
-
import { BlockRenderer
|
|
289
|
+
import { BlockRenderer } from "@questpie/admin/client";
|
|
253
290
|
|
|
254
|
-
const
|
|
255
|
-
hero: ({
|
|
256
|
-
<section
|
|
257
|
-
<h1>{
|
|
258
|
-
<p>{
|
|
291
|
+
const renderers = {
|
|
292
|
+
hero: ({ values }) => (
|
|
293
|
+
<section>
|
|
294
|
+
<h1>{values.title}</h1>
|
|
295
|
+
<p>{values.subtitle}</p>
|
|
259
296
|
</section>
|
|
260
297
|
),
|
|
261
|
-
}
|
|
298
|
+
};
|
|
262
299
|
|
|
263
|
-
function Page({
|
|
264
|
-
return <BlockRenderer
|
|
300
|
+
function Page({ content }) {
|
|
301
|
+
return <BlockRenderer content={content} renderers={renderers} />;
|
|
265
302
|
}
|
|
266
303
|
```
|
|
267
304
|
|
|
@@ -305,19 +342,15 @@ Legacy params (`history`, `viewOptions`, and `sidebar=preview`) are still read f
|
|
|
305
342
|
## Package Exports
|
|
306
343
|
|
|
307
344
|
```ts
|
|
308
|
-
// Client (React components,
|
|
345
|
+
// Client (React components, generated admin config, hooks)
|
|
309
346
|
import {
|
|
310
|
-
qa,
|
|
311
|
-
adminModule,
|
|
312
347
|
AdminRouter,
|
|
313
348
|
createTypedHooks,
|
|
314
349
|
BlockRenderer,
|
|
315
|
-
createBlockRegistry,
|
|
316
350
|
} from "@questpie/admin/client";
|
|
317
351
|
|
|
318
|
-
// Server (admin module +
|
|
352
|
+
// Server (admin module + server factories/config)
|
|
319
353
|
import { adminModule, auditModule } from "@questpie/admin/server";
|
|
320
|
-
import { adminPlugin } from "@questpie/admin/plugin";
|
|
321
354
|
|
|
322
355
|
// Styles
|
|
323
356
|
import "@questpie/admin/styles/index.css";
|
|
@@ -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_runtime17 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_runtime17.JSX.Element | null;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { BlockRenderer, BlockRendererProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 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_runtime19.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_runtime18 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_runtime18.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_runtime20 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_runtime20.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_runtime20.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_runtime20.JSX.Element;
|
|
106
106
|
//#endregion
|
|
107
107
|
export { PreviewField, PreviewFieldProps, PreviewProvider, StandalonePreviewField, usePreviewContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime8 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_runtime8.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_runtime7 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_runtime7.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { InvitePage };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime23 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_runtime23.JSX.Element | null;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
|
|
@@ -14,6 +14,10 @@ interface BlocksPrefetchContext {
|
|
|
14
14
|
db: unknown;
|
|
15
15
|
/** Current locale */
|
|
16
16
|
locale?: string;
|
|
17
|
+
/** Collections accessor */
|
|
18
|
+
collections?: unknown;
|
|
19
|
+
/** Globals accessor */
|
|
20
|
+
globals?: unknown;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* Process blocks data for a single blocks document.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie_shared29 from "questpie/shared";
|
|
2
2
|
import * as questpie187 from "questpie";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as drizzle_orm_pg_core44 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm27 from "drizzle-orm";
|
|
5
5
|
import * as questpie_src_server_modules_core_fields_email_js4 from "questpie/src/server/modules/core/fields/email.js";
|
|
6
6
|
import * as questpie_src_server_modules_core_fields_json_js4 from "questpie/src/server/modules/core/fields/json.js";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/account.d.ts
|
|
9
|
-
declare const _default: questpie187.CollectionBuilder<
|
|
9
|
+
declare const _default: questpie187.CollectionBuilder<questpie_shared29.Override<questpie187.EmptyCollectionState<"account", undefined, {
|
|
10
10
|
readonly text: typeof questpie187.text;
|
|
11
11
|
readonly textarea: typeof questpie187.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js4.email;
|
|
@@ -25,16 +25,16 @@ declare const _default: questpie187.CollectionBuilder<questpie_shared23.Override
|
|
|
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_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly accountId: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly providerId: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly accessToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly refreshToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly accessTokenExpiresAt: drizzle_orm_pg_core44.PgTimestampBuilder;
|
|
34
|
+
readonly refreshTokenExpiresAt: drizzle_orm_pg_core44.PgTimestampBuilder;
|
|
35
|
+
readonly scope: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
|
|
36
|
+
readonly idToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
|
|
37
|
+
readonly password: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
|
|
38
38
|
};
|
|
39
39
|
virtuals: undefined;
|
|
40
40
|
relations: Record<string, questpie187.RelationConfig>;
|
|
@@ -47,18 +47,18 @@ declare const _default: questpie187.CollectionBuilder<questpie_shared23.Override
|
|
|
47
47
|
access: Record<string, any>;
|
|
48
48
|
searchable: undefined;
|
|
49
49
|
fieldDefinitions: {
|
|
50
|
-
readonly userId: questpie187.
|
|
50
|
+
readonly userId: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
}>;
|
|
54
|
-
readonly accountId: questpie187.
|
|
52
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie187.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
}>;
|
|
58
|
-
readonly providerId: questpie187.
|
|
56
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
+
}, questpie187.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
61
|
-
}>;
|
|
60
|
+
column: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
+
}, questpie187.TextFieldMethods>;
|
|
62
62
|
readonly accessToken: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
|
|
63
63
|
readonly refreshToken: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
|
|
64
64
|
readonly accessTokenExpiresAt: questpie187.FieldWithMethods<questpie187.DatetimeFieldState, questpie187.DatetimeFieldMethods>;
|
|
@@ -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_shared22 from "questpie/shared";
|
|
2
|
+
import * as questpie152 from "questpie";
|
|
3
|
+
import * as drizzle_orm_pg_core32 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm15 from "drizzle-orm";
|
|
5
|
+
import * as questpie_src_server_modules_core_fields_email_js3 from "questpie/src/server/modules/core/fields/email.js";
|
|
6
|
+
import * as questpie_src_server_modules_core_fields_json_js3 from "questpie/src/server/modules/core/fields/json.js";
|
|
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_shared22.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_shared22.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_shared22.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_shared22.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_shared22.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_shared22.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_shared22.I18nText;
|
|
81
|
+
}, questpie152.DateFieldMethods>;
|
|
82
82
|
};
|
|
83
83
|
upload: undefined;
|
|
84
84
|
output: {};
|