@questpie/admin 3.5.0 → 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/components/blocks/block-canvas.mjs +1 -1
- package/dist/client/components/blocks/block-editor-layout.mjs +2 -2
- package/dist/client/components/blocks/block-insert-button.mjs +3 -3
- package/dist/client/components/blocks/block-item-menu.mjs +9 -9
- package/dist/client/components/blocks/block-item.mjs +5 -5
- package/dist/client/components/blocks/block-library-sidebar.mjs +3 -3
- package/dist/client/components/fields/array-field.mjs +2 -2
- package/dist/client/components/fields/date-field.mjs +6 -5
- package/dist/client/components/fields/datetime-field.mjs +6 -1
- package/dist/client/components/fields/object-array-field.mjs +2 -2
- package/dist/client/components/fields/relation/displays/cards-display.mjs +1 -1
- package/dist/client/components/fields/relation/displays/grid-display.mjs +1 -1
- package/dist/client/components/fields/relation/displays/list-display.mjs +3 -3
- package/dist/client/components/fields/relation/displays/table-display.mjs +1 -1
- package/dist/client/components/fields/relation-picker.mjs +3 -3
- package/dist/client/components/fields/relation-select.mjs +2 -2
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +16 -16
- package/dist/client/components/history-sidebar.mjs +12 -4
- package/dist/client/components/layout/field-layout-renderer.mjs +8 -3
- package/dist/client/components/media/media-grid.mjs +2 -2
- package/dist/client/components/preview/live-preview-mode.mjs +4 -4
- package/dist/client/components/preview/preview-pane.mjs +4 -4
- package/dist/client/components/primitives/asset-preview.mjs +5 -5
- package/dist/client/components/primitives/dropzone.mjs +1 -1
- package/dist/client/components/ui/kbd.mjs +1 -1
- package/dist/client/components/ui/scroll-fade.mjs +4 -4
- package/dist/client/components/ui/sidebar.mjs +1 -1
- package/dist/client/components/ui/skeleton.mjs +1 -1
- package/dist/client/components/ui/table.mjs +1 -1
- package/dist/client/components/widgets/quick-actions-widget.mjs +6 -6
- package/dist/client/components/widgets/timeline-widget.mjs +3 -3
- package/dist/client/components/widgets/value-widget.mjs +1 -1
- package/dist/client/components/widgets/widget-skeletons.mjs +2 -2
- package/dist/client/hooks/typed-hooks.mjs +66 -21
- package/dist/client/hooks/use-collection.mjs +48 -7
- package/dist/client/i18n/date-locale.mjs +0 -14
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/diff.mjs +4 -1
- package/dist/client/preview/patch.mjs +1 -1
- package/dist/client/preview/paths.mjs +85 -0
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/runtime/translations-provider.mjs +1 -1
- package/dist/client/styles/base.css +51 -1
- 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/client/views/collection/auto-form-fields.mjs +1 -1
- package/dist/client/views/collection/cells/primitive-cells.mjs +2 -2
- package/dist/client/views/collection/cells/upload-cells.mjs +2 -2
- package/dist/client/views/collection/form-view.mjs +45 -26
- package/dist/client/views/collection/table-view.mjs +33 -20
- package/dist/client/views/collection/view-skeletons.mjs +37 -38
- package/dist/client/views/common/global-search.mjs +3 -3
- package/dist/client/views/dashboard/widget-card.mjs +7 -7
- package/dist/client/views/layout/admin-router.mjs +84 -37
- package/dist/client/views/layout/admin-sidebar.mjs +22 -21
- 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/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/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import * as questpie_shared41 from "questpie/shared";
|
|
2
|
+
import * as questpie289 from "questpie";
|
|
3
|
+
import * as drizzle_orm_pg_core74 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm49 from "drizzle-orm";
|
|
5
5
|
import * as questpie_src_server_fields_operators_builtin_js7 from "questpie/src/server/fields/operators/builtin.js";
|
|
6
6
|
|
|
7
7
|
//#region src/server/modules/admin/collections/assets.d.ts
|
|
@@ -17,7 +17,7 @@ import * as questpie_src_server_fields_operators_builtin_js7 from "questpie/src/
|
|
|
17
17
|
* @see account.ts for explanation of the collection().merge().set() pattern.
|
|
18
18
|
* stateKey mapping: admin=".admin()", adminList=".list()", adminForm=".form()"
|
|
19
19
|
*/
|
|
20
|
-
declare const adminAssetsCollection:
|
|
20
|
+
declare const adminAssetsCollection: questpie289.CollectionBuilder<questpie_shared41.Override<{
|
|
21
21
|
name: "assets";
|
|
22
22
|
fields: Record<string, never>;
|
|
23
23
|
localized: [];
|
|
@@ -37,19 +37,19 @@ declare const adminAssetsCollection: questpie358.CollectionBuilder<questpie_shar
|
|
|
37
37
|
}, {
|
|
38
38
|
name: "assets";
|
|
39
39
|
fields: Record<string, never> & {
|
|
40
|
-
readonly width:
|
|
41
|
-
readonly height:
|
|
42
|
-
readonly alt:
|
|
43
|
-
readonly caption:
|
|
40
|
+
readonly width: drizzle_orm_pg_core74.PgIntegerBuilder;
|
|
41
|
+
readonly height: drizzle_orm_pg_core74.PgIntegerBuilder;
|
|
42
|
+
readonly alt: drizzle_orm_pg_core74.PgVarcharBuilder<[string, ...string[]]>;
|
|
43
|
+
readonly caption: drizzle_orm_pg_core74.PgTextBuilder<[string, ...string[]]>;
|
|
44
44
|
} & {
|
|
45
|
-
key:
|
|
46
|
-
filename:
|
|
47
|
-
mimeType:
|
|
48
|
-
size:
|
|
49
|
-
visibility:
|
|
45
|
+
key: drizzle_orm49.NotNull<drizzle_orm_pg_core74.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
|
+
filename: drizzle_orm49.NotNull<drizzle_orm_pg_core74.PgVarcharBuilder<[string, ...string[]]>>;
|
|
47
|
+
mimeType: drizzle_orm49.NotNull<drizzle_orm_pg_core74.PgVarcharBuilder<[string, ...string[]]>>;
|
|
48
|
+
size: drizzle_orm49.NotNull<drizzle_orm_pg_core74.PgIntegerBuilder>;
|
|
49
|
+
visibility: drizzle_orm49.HasDefault<drizzle_orm49.NotNull<drizzle_orm_pg_core74.PgVarcharBuilder<["public", "private"]>>>;
|
|
50
50
|
};
|
|
51
51
|
virtuals: undefined;
|
|
52
|
-
relations: Record<string, never> & Record<string,
|
|
52
|
+
relations: Record<string, never> & Record<string, questpie289.RelationConfig>;
|
|
53
53
|
indexes: Record<string, never> & Record<string, any>;
|
|
54
54
|
title: "filename";
|
|
55
55
|
options: Record<string, never> & {
|
|
@@ -59,48 +59,48 @@ declare const adminAssetsCollection: questpie358.CollectionBuilder<questpie_shar
|
|
|
59
59
|
access: Record<string, any>;
|
|
60
60
|
searchable: undefined;
|
|
61
61
|
fieldDefinitions: {
|
|
62
|
-
readonly width:
|
|
62
|
+
readonly width: questpie289.FieldWithMethods<questpie289.DefaultFieldState & {
|
|
63
63
|
type: "number";
|
|
64
64
|
data: number;
|
|
65
|
-
column:
|
|
65
|
+
column: drizzle_orm_pg_core74.PgIntegerBuilder;
|
|
66
66
|
operators: typeof questpie_src_server_fields_operators_builtin_js7.numberOps;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
68
|
+
label: questpie_shared41.I18nText;
|
|
69
69
|
} & {
|
|
70
|
-
description:
|
|
71
|
-
},
|
|
72
|
-
readonly height:
|
|
70
|
+
description: questpie_shared41.I18nText;
|
|
71
|
+
}, questpie289.NumberFieldMethods>;
|
|
72
|
+
readonly height: questpie289.FieldWithMethods<questpie289.DefaultFieldState & {
|
|
73
73
|
type: "number";
|
|
74
74
|
data: number;
|
|
75
|
-
column:
|
|
75
|
+
column: drizzle_orm_pg_core74.PgIntegerBuilder;
|
|
76
76
|
operators: typeof questpie_src_server_fields_operators_builtin_js7.numberOps;
|
|
77
77
|
} & {
|
|
78
|
-
label:
|
|
78
|
+
label: questpie_shared41.I18nText;
|
|
79
79
|
} & {
|
|
80
|
-
description:
|
|
81
|
-
},
|
|
82
|
-
readonly alt:
|
|
80
|
+
description: questpie_shared41.I18nText;
|
|
81
|
+
}, questpie289.NumberFieldMethods>;
|
|
82
|
+
readonly alt: questpie289.Field<questpie289.DefaultFieldState & {
|
|
83
83
|
type: "text";
|
|
84
84
|
data: string;
|
|
85
|
-
column:
|
|
85
|
+
column: drizzle_orm_pg_core74.PgVarcharBuilder<[string, ...string[]]>;
|
|
86
86
|
operators: typeof questpie_src_server_fields_operators_builtin_js7.stringOps;
|
|
87
87
|
} & {
|
|
88
|
-
label:
|
|
88
|
+
label: questpie_shared41.I18nText;
|
|
89
89
|
} & {
|
|
90
|
-
description:
|
|
90
|
+
description: questpie_shared41.I18nText;
|
|
91
91
|
}>;
|
|
92
|
-
readonly caption:
|
|
92
|
+
readonly caption: questpie289.Field<questpie289.DefaultFieldState & {
|
|
93
93
|
type: "textarea";
|
|
94
94
|
data: string;
|
|
95
|
-
column:
|
|
95
|
+
column: drizzle_orm_pg_core74.PgTextBuilder;
|
|
96
96
|
operators: typeof questpie_src_server_fields_operators_builtin_js7.stringOps;
|
|
97
97
|
} & {
|
|
98
|
-
label:
|
|
98
|
+
label: questpie_shared41.I18nText;
|
|
99
99
|
} & {
|
|
100
|
-
description:
|
|
100
|
+
description: questpie_shared41.I18nText;
|
|
101
101
|
}>;
|
|
102
102
|
};
|
|
103
|
-
upload:
|
|
103
|
+
upload: questpie289.UploadOptions;
|
|
104
104
|
output: {
|
|
105
105
|
url: string;
|
|
106
106
|
};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as questpie_shared66 from "questpie/shared";
|
|
2
|
+
import * as questpie393 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js8 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js8 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
5
|
+
import * as drizzle_orm_pg_core132 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm73 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/session.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
9
|
+
declare const _default: questpie393.CollectionBuilder<questpie_shared66.Override<questpie393.EmptyCollectionState<"session", undefined, {
|
|
10
|
+
readonly text: typeof questpie393.text;
|
|
11
|
+
readonly textarea: typeof questpie393.textarea;
|
|
12
12
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js8.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 questpie393.url;
|
|
14
|
+
readonly number: typeof questpie393.number;
|
|
15
|
+
readonly boolean: typeof questpie393.boolean;
|
|
16
|
+
readonly date: typeof questpie393.date;
|
|
17
|
+
readonly datetime: typeof questpie393.datetime;
|
|
18
|
+
readonly time: typeof questpie393.time;
|
|
19
|
+
readonly select: typeof questpie393.select;
|
|
20
|
+
readonly upload: typeof questpie393.upload;
|
|
21
|
+
readonly relation: typeof questpie393.relation;
|
|
22
|
+
readonly object: typeof questpie393.object;
|
|
23
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js8.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie393.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "session";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly token:
|
|
30
|
-
readonly expiresAt:
|
|
31
|
-
readonly ipAddress:
|
|
32
|
-
readonly userAgent:
|
|
33
|
-
readonly impersonatedBy:
|
|
28
|
+
readonly userId: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly token: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly expiresAt: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgTimestampBuilder>;
|
|
31
|
+
readonly ipAddress: drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly userAgent: drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly impersonatedBy: drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>;
|
|
34
34
|
};
|
|
35
35
|
virtuals: undefined;
|
|
36
|
-
relations: Record<string,
|
|
36
|
+
relations: Record<string, questpie393.RelationConfig>;
|
|
37
37
|
indexes: Record<string, any>;
|
|
38
38
|
title: "token";
|
|
39
|
-
options:
|
|
39
|
+
options: questpie393.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 userId:
|
|
46
|
+
readonly userId: questpie393.FieldWithMethods<Omit<questpie393.TextFieldState, "notNull" | "column"> & {
|
|
47
47
|
notNull: true;
|
|
48
|
-
column:
|
|
49
|
-
},
|
|
50
|
-
readonly token:
|
|
48
|
+
column: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>>;
|
|
49
|
+
}, questpie393.TextFieldMethods>;
|
|
50
|
+
readonly token: questpie393.FieldWithMethods<Omit<questpie393.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
},
|
|
54
|
-
readonly expiresAt:
|
|
52
|
+
column: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie393.TextFieldMethods>;
|
|
54
|
+
readonly expiresAt: questpie393.FieldWithMethods<Omit<questpie393.DatetimeFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
},
|
|
58
|
-
readonly ipAddress:
|
|
59
|
-
readonly userAgent:
|
|
60
|
-
readonly impersonatedBy:
|
|
56
|
+
column: drizzle_orm73.NotNull<drizzle_orm_pg_core132.PgTimestampBuilder>;
|
|
57
|
+
}, questpie393.DatetimeFieldMethods>;
|
|
58
|
+
readonly ipAddress: questpie393.FieldWithMethods<questpie393.TextFieldState, questpie393.TextFieldMethods>;
|
|
59
|
+
readonly userAgent: questpie393.FieldWithMethods<questpie393.TextFieldState, questpie393.TextFieldMethods>;
|
|
60
|
+
readonly impersonatedBy: questpie393.FieldWithMethods<questpie393.TextFieldState, questpie393.TextFieldMethods>;
|
|
61
61
|
};
|
|
62
62
|
upload: undefined;
|
|
63
63
|
output: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import * as questpie_shared51 from "questpie/shared";
|
|
2
|
+
import * as questpie371 from "questpie";
|
|
3
|
+
import * as drizzle_orm_pg_core110 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm65 from "drizzle-orm";
|
|
5
5
|
import * as questpie_src_server_fields_operators_builtin_js11 from "questpie/src/server/fields/operators/builtin.js";
|
|
6
6
|
|
|
7
7
|
//#region src/server/modules/admin/collections/user.d.ts
|
|
@@ -18,7 +18,7 @@ import * as questpie_src_server_fields_operators_builtin_js11 from "questpie/src
|
|
|
18
18
|
* @see account.ts for explanation of the collection().merge().set() pattern.
|
|
19
19
|
* stateKey mapping: admin=".admin()", adminList=".list()", adminForm=".form()", adminActions=".actions()"
|
|
20
20
|
*/
|
|
21
|
-
declare const adminUserCollection:
|
|
21
|
+
declare const adminUserCollection: questpie371.CollectionBuilder<questpie_shared51.Override<{
|
|
22
22
|
name: "user";
|
|
23
23
|
fields: Record<string, never>;
|
|
24
24
|
localized: [];
|
|
@@ -38,18 +38,18 @@ declare const adminUserCollection: questpie406.CollectionBuilder<questpie_shared
|
|
|
38
38
|
}, {
|
|
39
39
|
name: "user";
|
|
40
40
|
fields: Record<string, never> & {
|
|
41
|
-
readonly name:
|
|
42
|
-
readonly email:
|
|
43
|
-
readonly emailVerified:
|
|
44
|
-
readonly image:
|
|
45
|
-
readonly avatar:
|
|
46
|
-
readonly role:
|
|
47
|
-
readonly banned:
|
|
48
|
-
readonly banReason:
|
|
49
|
-
readonly banExpires:
|
|
41
|
+
readonly name: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>>;
|
|
42
|
+
readonly email: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>>;
|
|
43
|
+
readonly emailVerified: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgBooleanBuilder>;
|
|
44
|
+
readonly image: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
45
|
+
readonly avatar: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
46
|
+
readonly role: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
47
|
+
readonly banned: drizzle_orm65.HasDefault<drizzle_orm_pg_core110.PgBooleanBuilder>;
|
|
48
|
+
readonly banReason: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
49
|
+
readonly banExpires: drizzle_orm_pg_core110.PgTimestampBuilder;
|
|
50
50
|
};
|
|
51
51
|
virtuals: undefined;
|
|
52
|
-
relations: Record<string, never> & Record<string,
|
|
52
|
+
relations: Record<string, never> & Record<string, questpie371.RelationConfig>;
|
|
53
53
|
indexes: Record<string, never> & Record<string, any>;
|
|
54
54
|
title: "name";
|
|
55
55
|
options: Record<string, never> & {
|
|
@@ -59,102 +59,102 @@ declare const adminUserCollection: questpie406.CollectionBuilder<questpie_shared
|
|
|
59
59
|
access: Record<string, any>;
|
|
60
60
|
searchable: undefined;
|
|
61
61
|
fieldDefinitions: {
|
|
62
|
-
readonly name:
|
|
62
|
+
readonly name: questpie371.Field<Omit<questpie371.DefaultFieldState & {
|
|
63
63
|
type: "text";
|
|
64
64
|
data: string;
|
|
65
|
-
column:
|
|
65
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
66
66
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.stringOps;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
68
|
+
label: questpie_shared51.I18nText;
|
|
69
69
|
}, "notNull" | "column"> & {
|
|
70
70
|
notNull: true;
|
|
71
|
-
column:
|
|
71
|
+
column: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>>;
|
|
72
72
|
}>;
|
|
73
|
-
readonly email:
|
|
73
|
+
readonly email: questpie371.Field<Omit<questpie371.DefaultFieldState & {
|
|
74
74
|
type: "email";
|
|
75
75
|
data: string;
|
|
76
|
-
column:
|
|
76
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
77
77
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.emailOps;
|
|
78
78
|
} & {
|
|
79
|
-
label:
|
|
79
|
+
label: questpie_shared51.I18nText;
|
|
80
80
|
} & {
|
|
81
|
-
description:
|
|
81
|
+
description: questpie_shared51.I18nText;
|
|
82
82
|
}, "notNull" | "column"> & {
|
|
83
83
|
notNull: true;
|
|
84
|
-
column:
|
|
84
|
+
column: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>>;
|
|
85
85
|
}>;
|
|
86
|
-
readonly emailVerified:
|
|
86
|
+
readonly emailVerified: questpie371.Field<Omit<questpie371.DefaultFieldState & {
|
|
87
87
|
type: "boolean";
|
|
88
88
|
data: boolean;
|
|
89
|
-
column:
|
|
89
|
+
column: drizzle_orm_pg_core110.PgBooleanBuilder;
|
|
90
90
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.booleanOps;
|
|
91
91
|
} & {
|
|
92
|
-
label:
|
|
92
|
+
label: questpie_shared51.I18nText;
|
|
93
93
|
} & {
|
|
94
|
-
description:
|
|
94
|
+
description: questpie_shared51.I18nText;
|
|
95
95
|
}, "notNull" | "column"> & {
|
|
96
96
|
notNull: true;
|
|
97
|
-
column:
|
|
97
|
+
column: drizzle_orm65.NotNull<drizzle_orm_pg_core110.PgBooleanBuilder>;
|
|
98
98
|
}>;
|
|
99
|
-
readonly image:
|
|
99
|
+
readonly image: questpie371.FieldWithMethods<questpie371.DefaultFieldState & {
|
|
100
100
|
type: "url";
|
|
101
101
|
data: string;
|
|
102
|
-
column:
|
|
102
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
103
103
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.urlOps;
|
|
104
104
|
} & {
|
|
105
|
-
label:
|
|
106
|
-
},
|
|
107
|
-
readonly avatar:
|
|
105
|
+
label: questpie_shared51.I18nText;
|
|
106
|
+
}, questpie371.UrlFieldMethods>;
|
|
107
|
+
readonly avatar: questpie371.Field<questpie371.DefaultFieldState & {
|
|
108
108
|
type: "upload";
|
|
109
109
|
data: string;
|
|
110
|
-
column:
|
|
110
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
111
111
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.belongsToOps;
|
|
112
112
|
relationTo: "assets";
|
|
113
113
|
relationKind: "one";
|
|
114
114
|
} & {
|
|
115
|
-
label:
|
|
115
|
+
label: questpie_shared51.I18nText;
|
|
116
116
|
}>;
|
|
117
|
-
readonly role:
|
|
117
|
+
readonly role: questpie371.Field<questpie371.DefaultFieldState & {
|
|
118
118
|
type: "select";
|
|
119
119
|
data: string;
|
|
120
|
-
column:
|
|
120
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
121
121
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.selectSingleOps;
|
|
122
122
|
} & {
|
|
123
|
-
label:
|
|
123
|
+
label: questpie_shared51.I18nText;
|
|
124
124
|
} & {
|
|
125
|
-
description:
|
|
125
|
+
description: questpie_shared51.I18nText;
|
|
126
126
|
}>;
|
|
127
|
-
readonly banned:
|
|
127
|
+
readonly banned: questpie371.Field<Omit<questpie371.DefaultFieldState & {
|
|
128
128
|
type: "boolean";
|
|
129
129
|
data: boolean;
|
|
130
|
-
column:
|
|
130
|
+
column: drizzle_orm_pg_core110.PgBooleanBuilder;
|
|
131
131
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.booleanOps;
|
|
132
132
|
} & {
|
|
133
|
-
label:
|
|
133
|
+
label: questpie_shared51.I18nText;
|
|
134
134
|
} & {
|
|
135
|
-
description:
|
|
135
|
+
description: questpie_shared51.I18nText;
|
|
136
136
|
}, "column" | "hasDefault"> & {
|
|
137
137
|
hasDefault: true;
|
|
138
|
-
column:
|
|
138
|
+
column: drizzle_orm65.HasDefault<drizzle_orm_pg_core110.PgBooleanBuilder>;
|
|
139
139
|
}>;
|
|
140
|
-
readonly banReason:
|
|
140
|
+
readonly banReason: questpie371.Field<questpie371.DefaultFieldState & {
|
|
141
141
|
type: "text";
|
|
142
142
|
data: string;
|
|
143
|
-
column:
|
|
143
|
+
column: drizzle_orm_pg_core110.PgVarcharBuilder<[string, ...string[]]>;
|
|
144
144
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.stringOps;
|
|
145
145
|
} & {
|
|
146
|
-
label:
|
|
146
|
+
label: questpie_shared51.I18nText;
|
|
147
147
|
}>;
|
|
148
|
-
readonly banExpires:
|
|
148
|
+
readonly banExpires: questpie371.FieldWithMethods<questpie371.DefaultFieldState & {
|
|
149
149
|
type: "datetime";
|
|
150
150
|
data: Date;
|
|
151
|
-
column:
|
|
151
|
+
column: drizzle_orm_pg_core110.PgTimestampBuilder;
|
|
152
152
|
operators: typeof questpie_src_server_fields_operators_builtin_js11.dateOps;
|
|
153
153
|
} & {
|
|
154
|
-
label:
|
|
154
|
+
label: questpie_shared51.I18nText;
|
|
155
155
|
} & {
|
|
156
|
-
description:
|
|
157
|
-
},
|
|
156
|
+
description: questpie_shared51.I18nText;
|
|
157
|
+
}, questpie371.DatetimeFieldMethods>;
|
|
158
158
|
};
|
|
159
159
|
upload: undefined;
|
|
160
160
|
output: {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServerActionDefinition, ServerActionResult } from "../../../augmentation/actions.mjs";
|
|
2
2
|
import "../../../augmentation.mjs";
|
|
3
3
|
import { App } from "./route-helpers.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as questpie69 from "questpie";
|
|
5
5
|
|
|
6
6
|
//#region src/server/modules/admin/routes/execute-action.d.ts
|
|
7
7
|
|
|
@@ -56,37 +56,37 @@ declare function executeAction(app: App, request: ExecuteActionRequest, session?
|
|
|
56
56
|
* });
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
declare const executeActionFn:
|
|
59
|
+
declare const executeActionFn: questpie69.JsonRouteDefinition<{
|
|
60
60
|
collection: string;
|
|
61
61
|
actionId: string;
|
|
62
62
|
itemId?: string | undefined;
|
|
63
63
|
itemIds?: string[] | undefined;
|
|
64
64
|
data?: Record<string, unknown> | undefined;
|
|
65
65
|
locale?: string | undefined;
|
|
66
|
-
}, any,
|
|
66
|
+
}, any, questpie69.JsonRouteParams>;
|
|
67
67
|
/**
|
|
68
68
|
* Get actions configuration for a collection.
|
|
69
69
|
* Returns action definitions without handlers for client rendering.
|
|
70
70
|
*/
|
|
71
|
-
declare const getActionsConfigFn:
|
|
71
|
+
declare const getActionsConfigFn: questpie69.JsonRouteDefinition<{
|
|
72
72
|
collection: string;
|
|
73
|
-
}, any,
|
|
73
|
+
}, any, questpie69.JsonRouteParams>;
|
|
74
74
|
/**
|
|
75
75
|
* QUESTPIE functions for action execution.
|
|
76
76
|
* These are registered on the `adminModule`.
|
|
77
77
|
*/
|
|
78
78
|
declare const actionFunctions: {
|
|
79
|
-
executeAction:
|
|
79
|
+
executeAction: questpie69.JsonRouteDefinition<{
|
|
80
80
|
collection: string;
|
|
81
81
|
actionId: string;
|
|
82
82
|
itemId?: string | undefined;
|
|
83
83
|
itemIds?: string[] | undefined;
|
|
84
84
|
data?: Record<string, unknown> | undefined;
|
|
85
85
|
locale?: string | undefined;
|
|
86
|
-
}, any,
|
|
87
|
-
getActionsConfig:
|
|
86
|
+
}, any, questpie69.JsonRouteParams>;
|
|
87
|
+
getActionsConfig: questpie69.JsonRouteDefinition<{
|
|
88
88
|
collection: string;
|
|
89
|
-
}, any,
|
|
89
|
+
}, any, questpie69.JsonRouteParams>;
|
|
90
90
|
};
|
|
91
91
|
//#endregion
|
|
92
92
|
export { ExecuteActionRequest, ExecuteActionResponse, actionFunctions, executeAction, executeActionFn, getActionsConfig, getActionsConfigFn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie460 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/locales.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as questpie456 from "questpie";
|
|
|
12
12
|
* Bundle of locale-related functions.
|
|
13
13
|
*/
|
|
14
14
|
declare const localeFunctions: {
|
|
15
|
-
readonly getContentLocales:
|
|
15
|
+
readonly getContentLocales: questpie460.JsonRouteDefinition<Record<string, never> | undefined, any, questpie460.JsonRouteParams>;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { localeFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie141 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/preview.d.ts
|
|
4
4
|
|
|
@@ -25,13 +25,13 @@ interface PreviewTokenPayload {
|
|
|
25
25
|
* @returns Object with preview functions
|
|
26
26
|
*/
|
|
27
27
|
declare function createPreviewFunctions(secret?: PreviewSecretSource): {
|
|
28
|
-
mintPreviewToken:
|
|
28
|
+
mintPreviewToken: questpie141.JsonRouteDefinition<{
|
|
29
29
|
path: string;
|
|
30
30
|
ttlMs?: number | undefined;
|
|
31
|
-
}, any,
|
|
32
|
-
verifyPreviewToken:
|
|
31
|
+
}, any, questpie141.JsonRouteParams>;
|
|
32
|
+
verifyPreviewToken: questpie141.JsonRouteDefinition<{
|
|
33
33
|
token: string;
|
|
34
|
-
}, any,
|
|
34
|
+
}, any, questpie141.JsonRouteParams>;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* Verify a preview token without RPC.
|
|
@@ -68,18 +68,18 @@ declare function createPreviewTokenVerifier(secret: string): (token: string) =>
|
|
|
68
68
|
* Used by the `adminModule` to register preview RPC functions.
|
|
69
69
|
*/
|
|
70
70
|
declare const previewFunctions: {
|
|
71
|
-
getPreviewUrl:
|
|
71
|
+
getPreviewUrl: questpie141.JsonRouteDefinition<{
|
|
72
72
|
collection: string;
|
|
73
73
|
record: Record<string, unknown>;
|
|
74
74
|
locale?: string | undefined;
|
|
75
|
-
}, any,
|
|
76
|
-
mintPreviewToken:
|
|
75
|
+
}, any, questpie141.JsonRouteParams>;
|
|
76
|
+
mintPreviewToken: questpie141.JsonRouteDefinition<{
|
|
77
77
|
path: string;
|
|
78
78
|
ttlMs?: number | undefined;
|
|
79
|
-
}, any,
|
|
80
|
-
verifyPreviewToken:
|
|
79
|
+
}, any, questpie141.JsonRouteParams>;
|
|
80
|
+
verifyPreviewToken: questpie141.JsonRouteDefinition<{
|
|
81
81
|
token: string;
|
|
82
|
-
}, any,
|
|
82
|
+
}, any, questpie141.JsonRouteParams>;
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
85
85
|
export { PreviewTokenPayload, createPreviewFunctions, createPreviewTokenVerifier, previewFunctions, verifyPreviewTokenDirect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie125 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/reactive.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import * as questpie91 from "questpie";
|
|
|
13
13
|
* Batch reactive endpoint.
|
|
14
14
|
* Executes multiple reactive handlers in a single request.
|
|
15
15
|
*/
|
|
16
|
-
declare const batchReactive:
|
|
16
|
+
declare const batchReactive: questpie125.JsonRouteDefinition<{
|
|
17
17
|
collection: string;
|
|
18
18
|
type: "collection" | "global";
|
|
19
19
|
requests: {
|
|
@@ -27,12 +27,12 @@ declare const batchReactive: questpie91.JsonRouteDefinition<{
|
|
|
27
27
|
}[];
|
|
28
28
|
formData?: Record<string, unknown> | undefined;
|
|
29
29
|
prevData?: Record<string, unknown> | null | undefined;
|
|
30
|
-
}, any,
|
|
30
|
+
}, any, questpie125.JsonRouteParams>;
|
|
31
31
|
/**
|
|
32
32
|
* Dynamic options endpoint.
|
|
33
33
|
* Fetches options for select/relation fields with search and pagination.
|
|
34
34
|
*/
|
|
35
|
-
declare const fieldOptions:
|
|
35
|
+
declare const fieldOptions: questpie125.JsonRouteDefinition<{
|
|
36
36
|
collection: string;
|
|
37
37
|
type: "collection" | "global";
|
|
38
38
|
field: string;
|
|
@@ -41,12 +41,12 @@ declare const fieldOptions: questpie91.JsonRouteDefinition<{
|
|
|
41
41
|
page: number;
|
|
42
42
|
limit: number;
|
|
43
43
|
siblingData?: Record<string, unknown> | null | undefined;
|
|
44
|
-
}, any,
|
|
44
|
+
}, any, questpie125.JsonRouteParams>;
|
|
45
45
|
/**
|
|
46
46
|
* Reactive functions bundle.
|
|
47
47
|
*/
|
|
48
48
|
declare const reactiveFunctions: {
|
|
49
|
-
readonly batchReactive:
|
|
49
|
+
readonly batchReactive: questpie125.JsonRouteDefinition<{
|
|
50
50
|
collection: string;
|
|
51
51
|
type: "collection" | "global";
|
|
52
52
|
requests: {
|
|
@@ -60,8 +60,8 @@ declare const reactiveFunctions: {
|
|
|
60
60
|
}[];
|
|
61
61
|
formData?: Record<string, unknown> | undefined;
|
|
62
62
|
prevData?: Record<string, unknown> | null | undefined;
|
|
63
|
-
}, any,
|
|
64
|
-
readonly fieldOptions:
|
|
63
|
+
}, any, questpie125.JsonRouteParams>;
|
|
64
|
+
readonly fieldOptions: questpie125.JsonRouteDefinition<{
|
|
65
65
|
collection: string;
|
|
66
66
|
type: "collection" | "global";
|
|
67
67
|
field: string;
|
|
@@ -70,7 +70,7 @@ declare const reactiveFunctions: {
|
|
|
70
70
|
page: number;
|
|
71
71
|
limit: number;
|
|
72
72
|
siblingData?: Record<string, unknown> | null | undefined;
|
|
73
|
-
}, any,
|
|
73
|
+
}, any, questpie125.JsonRouteParams>;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
export { batchReactive, fieldOptions, reactiveFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie133 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/setup.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import * as questpie99 from "questpie";
|
|
|
13
13
|
* }
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
declare const isSetupRequired:
|
|
16
|
+
declare const isSetupRequired: questpie133.JsonRouteDefinition<Record<string, never>, any, questpie133.JsonRouteParams>;
|
|
17
17
|
/**
|
|
18
18
|
* Create the first admin user in the system.
|
|
19
19
|
* This function only works when no admin users exist (setup mode).
|
|
@@ -36,21 +36,21 @@ declare const isSetupRequired: questpie99.JsonRouteDefinition<Record<string, nev
|
|
|
36
36
|
* }
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
declare const createFirstAdmin:
|
|
39
|
+
declare const createFirstAdmin: questpie133.JsonRouteDefinition<{
|
|
40
40
|
email: string;
|
|
41
41
|
password: string;
|
|
42
42
|
name: string;
|
|
43
|
-
}, any,
|
|
43
|
+
}, any, questpie133.JsonRouteParams>;
|
|
44
44
|
/**
|
|
45
45
|
* Bundle of setup-related functions.
|
|
46
46
|
*/
|
|
47
47
|
declare const setupFunctions: {
|
|
48
|
-
readonly isSetupRequired:
|
|
49
|
-
readonly createFirstAdmin:
|
|
48
|
+
readonly isSetupRequired: questpie133.JsonRouteDefinition<Record<string, never>, any, questpie133.JsonRouteParams>;
|
|
49
|
+
readonly createFirstAdmin: questpie133.JsonRouteDefinition<{
|
|
50
50
|
email: string;
|
|
51
51
|
password: string;
|
|
52
52
|
name: string;
|
|
53
|
-
}, any,
|
|
53
|
+
}, any, questpie133.JsonRouteParams>;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
56
|
export { createFirstAdmin, isSetupRequired, setupFunctions };
|