@questpie/admin 3.2.4 → 3.2.5
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/blocks/block-renderer.mjs +164 -339
- package/dist/client/components/actions/action-button.mjs +9 -9
- package/dist/client/components/actions/action-dialog.mjs +195 -493
- package/dist/client/components/actions/confirmation-dialog.mjs +44 -159
- package/dist/client/components/actions/header-actions.mjs +73 -165
- package/dist/client/components/admin-link.mjs +40 -126
- package/dist/client/components/auth/auth-loading.mjs +9 -44
- package/dist/client/components/blocks/block-canvas.mjs +31 -95
- package/dist/client/components/blocks/block-editor-context.mjs +13 -57
- package/dist/client/components/blocks/block-editor-layout.mjs +72 -166
- package/dist/client/components/blocks/block-editor-provider.mjs +184 -245
- package/dist/client/components/blocks/block-fields-renderer.mjs +54 -229
- package/dist/client/components/blocks/block-insert-button.mjs +49 -165
- package/dist/client/components/blocks/block-item-menu.mjs +102 -301
- package/dist/client/components/blocks/block-item.mjs +136 -370
- package/dist/client/components/blocks/block-library-sidebar.mjs +103 -230
- package/dist/client/components/blocks/block-tree.mjs +12 -68
- package/dist/client/components/blocks/block-type-icon.mjs +14 -56
- package/dist/client/components/brand-logo.mjs +35 -149
- package/dist/client/components/component-renderer.mjs +42 -118
- package/dist/client/components/error-boundary.mjs +14 -58
- package/dist/client/components/fields/array-field.mjs +209 -521
- package/dist/client/components/fields/asset-preview-field.mjs +41 -141
- package/dist/client/components/fields/blocks-field/blocks-field.mjs +60 -156
- package/dist/client/components/fields/boolean-field.mjs +29 -59
- package/dist/client/components/fields/date-field.mjs +7 -37
- package/dist/client/components/fields/datetime-field.mjs +7 -38
- package/dist/client/components/fields/email-field.mjs +25 -54
- package/dist/client/components/fields/field-wrapper.mjs +30 -105
- package/dist/client/components/fields/json-field.mjs +94 -296
- package/dist/client/components/fields/locale-badge.mjs +6 -15
- package/dist/client/components/fields/number-field.mjs +27 -60
- package/dist/client/components/fields/object-array-field.mjs +283 -659
- package/dist/client/components/fields/object-field.mjs +165 -633
- package/dist/client/components/fields/relation/displays/cards-display.mjs +106 -220
- package/dist/client/components/fields/relation/displays/chips-display.mjs +78 -150
- package/dist/client/components/fields/relation/displays/grid-display.mjs +92 -186
- package/dist/client/components/fields/relation/displays/list-display.mjs +122 -239
- package/dist/client/components/fields/relation/displays/table-display.mjs +70 -244
- package/dist/client/components/fields/relation/relation-items-display.mjs +30 -126
- package/dist/client/components/fields/relation-field.mjs +10 -66
- package/dist/client/components/fields/relation-picker.mjs +18 -18
- package/dist/client/components/fields/relation-select.mjs +12 -12
- package/dist/client/components/fields/rich-text-editor/bubble-menu.mjs +80 -180
- package/dist/client/components/fields/rich-text-editor/image-popover.mjs +2 -2
- package/dist/client/components/fields/rich-text-editor/image-upload.mjs +13 -29
- package/dist/client/components/fields/rich-text-editor/index.mjs +195 -513
- package/dist/client/components/fields/rich-text-editor/slash-commands.mjs +61 -111
- package/dist/client/components/fields/rich-text-editor/table-controls.mjs +105 -415
- package/dist/client/components/fields/rich-text-editor/toolbar.mjs +256 -511
- package/dist/client/components/fields/rich-text-field.mjs +14 -53
- package/dist/client/components/fields/select-field.mjs +39 -74
- package/dist/client/components/fields/text-field.mjs +26 -59
- package/dist/client/components/fields/textarea-field.mjs +26 -58
- package/dist/client/components/fields/time-field.mjs +7 -35
- package/dist/client/components/fields/upload-field.mjs +47 -165
- package/dist/client/components/filter-builder/columns-tab.mjs +80 -280
- package/dist/client/components/filter-builder/filter-builder-sheet.mjs +197 -540
- package/dist/client/components/filter-builder/filters-tab.mjs +96 -386
- package/dist/client/components/filter-builder/saved-views-tab.mjs +133 -351
- package/dist/client/components/history-sidebar.mjs +285 -605
- package/dist/client/components/layout/field-layout-renderer.mjs +106 -254
- package/dist/client/components/locale-switcher.mjs +106 -228
- package/dist/client/components/media/media-grid.mjs +84 -273
- package/dist/client/components/media/media-picker-dialog.mjs +176 -476
- package/dist/client/components/preview/live-preview-mode.mjs +233 -458
- package/dist/client/components/preview/preview-pane.mjs +22 -22
- package/dist/client/components/primitives/asset-preview.mjs +290 -666
- package/dist/client/components/primitives/checkbox-input.mjs +9 -35
- package/dist/client/components/primitives/date-input.mjs +109 -327
- package/dist/client/components/primitives/dropzone.mjs +209 -336
- package/dist/client/components/primitives/field-select-control.mjs +12 -80
- package/dist/client/components/primitives/number-input.mjs +4 -4
- package/dist/client/components/primitives/select-multi.mjs +200 -559
- package/dist/client/components/primitives/select-single.mjs +165 -499
- package/dist/client/components/primitives/time-input.mjs +43 -117
- package/dist/client/components/primitives/toggle-input.mjs +9 -29
- package/dist/client/components/sheets/resource-sheet.mjs +61 -70
- package/dist/client/components/ui/accordion.mjs +35 -155
- package/dist/client/components/ui/alert.mjs +13 -68
- package/dist/client/components/ui/badge.mjs +9 -51
- package/dist/client/components/ui/button.mjs +8 -54
- package/dist/client/components/ui/card.mjs +37 -193
- package/dist/client/components/ui/checkbox.mjs +12 -68
- package/dist/client/components/ui/command.mjs +48 -219
- package/dist/client/components/ui/dialog.mjs +50 -262
- package/dist/client/components/ui/drawer.mjs +55 -259
- package/dist/client/components/ui/dropdown-menu.mjs +86 -427
- package/dist/client/components/ui/empty-state.mjs +28 -98
- package/dist/client/components/ui/field.mjs +73 -309
- package/dist/client/components/ui/input-group.mjs +42 -167
- package/dist/client/components/ui/input.mjs +7 -37
- package/dist/client/components/ui/kbd.mjs +6 -36
- package/dist/client/components/ui/label.mjs +7 -37
- package/dist/client/components/ui/popover.mjs +34 -169
- package/dist/client/components/ui/responsive-dialog.mjs +67 -273
- package/dist/client/components/ui/scroll-fade.mjs +63 -158
- package/dist/client/components/ui/search-input.mjs +33 -100
- package/dist/client/components/ui/select.mjs +72 -393
- package/dist/client/components/ui/separator.mjs +7 -38
- package/dist/client/components/ui/sheet.mjs +49 -269
- package/dist/client/components/ui/sidebar.mjs +171 -690
- package/dist/client/components/ui/skeleton.mjs +7 -38
- package/dist/client/components/ui/sonner.mjs +11 -42
- package/dist/client/components/ui/switch.mjs +9 -45
- package/dist/client/components/ui/table.mjs +48 -266
- package/dist/client/components/ui/tabs.mjs +26 -139
- package/dist/client/components/ui/textarea.mjs +6 -32
- package/dist/client/components/ui/tooltip.mjs +27 -129
- package/dist/client/components/widgets/chart-widget.mjs +174 -522
- package/dist/client/components/widgets/progress-widget.mjs +66 -172
- package/dist/client/components/widgets/quick-actions-widget.mjs +102 -261
- package/dist/client/components/widgets/recent-items-widget.mjs +69 -195
- package/dist/client/components/widgets/stats-widget.mjs +41 -175
- package/dist/client/components/widgets/table-widget.mjs +9 -9
- package/dist/client/components/widgets/timeline-widget.mjs +86 -226
- package/dist/client/components/widgets/value-widget.mjs +74 -381
- package/dist/client/components/widgets/widget-empty-state.mjs +26 -76
- package/dist/client/components/widgets/widget-skeletons.mjs +138 -421
- package/dist/client/contexts/focus-context.mjs +63 -146
- package/dist/client/hooks/typed-hooks.mjs +241 -701
- package/dist/client/hooks/use-action.mjs +62 -198
- package/dist/client/hooks/use-admin-config.mjs +5 -35
- package/dist/client/hooks/use-admin-preferences.mjs +16 -88
- package/dist/client/hooks/use-admin-routes.mjs +22 -56
- package/dist/client/hooks/use-audit-history.mjs +21 -69
- package/dist/client/hooks/use-brand.mjs +1 -9
- package/dist/client/hooks/use-collection-fields.mjs +17 -57
- package/dist/client/hooks/use-collection-meta.mjs +12 -44
- package/dist/client/hooks/use-collection-schema.mjs +10 -33
- package/dist/client/hooks/use-collection-validation.mjs +23 -53
- package/dist/client/hooks/use-collection.mjs +194 -614
- package/dist/client/hooks/use-current-user.mjs +0 -1
- package/dist/client/hooks/use-field-hooks.mjs +10 -10
- package/dist/client/hooks/use-field-options.mjs +61 -202
- package/dist/client/hooks/use-global-fields.mjs +14 -46
- package/dist/client/hooks/use-global-meta.mjs +9 -30
- package/dist/client/hooks/use-global-schema.mjs +9 -30
- package/dist/client/hooks/use-global.mjs +63 -219
- package/dist/client/hooks/use-locks.mjs +117 -325
- package/dist/client/hooks/use-media-query.mjs +16 -36
- package/dist/client/hooks/use-prefill-params.mjs +0 -1
- package/dist/client/hooks/use-questpie-query-options.mjs +12 -29
- package/dist/client/hooks/use-reactive-fields.mjs +1 -1
- package/dist/client/hooks/use-reactive-prop.mjs +65 -223
- package/dist/client/hooks/use-realtime-highlight.mjs +51 -114
- package/dist/client/hooks/use-saved-views.mjs +22 -103
- package/dist/client/hooks/use-search-param-toggle.mjs +28 -79
- package/dist/client/hooks/use-search.mjs +31 -143
- package/dist/client/hooks/use-server-actions.mjs +18 -50
- package/dist/client/hooks/use-server-validation.mjs +72 -166
- package/dist/client/hooks/use-server-widget-data.mjs +7 -33
- package/dist/client/hooks/use-setup-status.mjs +12 -25
- package/dist/client/hooks/use-sidebar-search-param.mjs +33 -78
- package/dist/client/hooks/use-transition-stage.mjs +8 -38
- package/dist/client/hooks/use-upload.mjs +54 -152
- package/dist/client/hooks/use-validation-error-map.mjs +6 -26
- package/dist/client/hooks/use-view-state.mjs +187 -437
- package/dist/client/i18n/hooks.mjs +65 -197
- package/dist/client/lib/render-profiler.mjs +14 -41
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/block-scope-context.mjs +14 -36
- package/dist/client/preview/preview-banner.d.mts +2 -2
- package/dist/client/preview/preview-banner.mjs +42 -108
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/preview/preview-field.mjs +167 -348
- package/dist/client/preview/use-collection-preview.mjs +121 -215
- package/dist/client/runtime/content-locales-provider.mjs +31 -83
- package/dist/client/runtime/locale-scope.mjs +22 -63
- package/dist/client/runtime/provider.mjs +100 -255
- package/dist/client/runtime/translations-provider.mjs +41 -107
- package/dist/client/scope/picker.d.mts +2 -2
- package/dist/client/scope/picker.mjs +86 -321
- package/dist/client/scope/provider.d.mts +2 -2
- package/dist/client/scope/provider.mjs +8 -17
- package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
- package/dist/client/views/auth/accept-invite-form.mjs +121 -412
- package/dist/client/views/auth/auth-layout.d.mts +3 -3
- package/dist/client/views/auth/auth-layout.mjs +104 -284
- package/dist/client/views/auth/forgot-password-form.mjs +94 -325
- package/dist/client/views/auth/invite-form.mjs +107 -442
- package/dist/client/views/auth/login-form.d.mts +2 -2
- package/dist/client/views/auth/login-form.mjs +116 -337
- package/dist/client/views/auth/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/reset-password-form.mjs +128 -453
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/auth/setup-form.mjs +140 -478
- package/dist/client/views/collection/auto-form-fields.mjs +243 -615
- package/dist/client/views/collection/bulk-action-toolbar.mjs +212 -379
- package/dist/client/views/collection/cells/complex-cells.mjs +183 -611
- package/dist/client/views/collection/cells/primitive-cells.mjs +109 -363
- package/dist/client/views/collection/cells/relation-cells.mjs +86 -233
- package/dist/client/views/collection/cells/shared/asset-thumbnail.mjs +142 -371
- package/dist/client/views/collection/cells/shared/relation-chip.mjs +35 -131
- package/dist/client/views/collection/cells/upload-cells.mjs +60 -177
- package/dist/client/views/collection/columns/build-columns.mjs +8 -48
- package/dist/client/views/collection/field-renderer.mjs +58 -182
- package/dist/client/views/collection/form-view.mjs +284 -518
- package/dist/client/views/collection/table-view.mjs +231 -463
- package/dist/client/views/collection/view-skeletons.mjs +112 -237
- package/dist/client/views/common/global-search.mjs +241 -560
- package/dist/client/views/dashboard/dashboard-grid.mjs +256 -775
- package/dist/client/views/dashboard/dashboard-widget.mjs +38 -126
- package/dist/client/views/dashboard/widget-card.mjs +61 -269
- package/dist/client/views/globals/global-form-view.mjs +477 -1301
- package/dist/client/views/layout/admin-layout-provider.mjs +28 -88
- package/dist/client/views/layout/admin-layout.mjs +83 -246
- package/dist/client/views/layout/admin-router.mjs +458 -1274
- package/dist/client/views/layout/admin-sidebar.mjs +510 -1292
- package/dist/client/views/layout/admin-theme.mjs +30 -64
- package/dist/client/views/layout/admin-view-layout.mjs +40 -144
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.mjs +95 -290
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/dashboard-page.mjs +11 -57
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.mjs +31 -83
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.mjs +35 -90
- package/dist/client/views/pages/login-page.mjs +41 -121
- package/dist/client/views/pages/reset-password-page.mjs +46 -173
- package/dist/client/views/pages/setup-page.mjs +33 -95
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/components/rich-text/rich-text-renderer.mjs +9 -33
- package/dist/server/modules/admin/collections/account.d.mts +46 -46
- package/dist/server/modules/admin/collections/admin-locks.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- 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 +39 -39
- package/dist/server/modules/admin/collections/session.d.mts +41 -41
- package/dist/server/modules/admin/collections/user.d.mts +63 -63
- package/dist/server/modules/admin/collections/verification.d.mts +36 -36
- package/dist/server/modules/admin/index.d.mts +20 -19
- 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 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
1
|
+
import * as questpie_shared41 from "questpie/shared";
|
|
2
|
+
import * as questpie316 from "questpie";
|
|
3
|
+
import * as drizzle_orm_pg_core85 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm51 from "drizzle-orm";
|
|
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
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ import * as questpie_src_server_fields_operators_builtin_js7 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: questpie316.CollectionBuilder<questpie_shared41.Override<{
|
|
22
22
|
name: "user";
|
|
23
23
|
fields: Record<string, never>;
|
|
24
24
|
localized: [];
|
|
@@ -38,18 +38,18 @@ declare const adminUserCollection: questpie392.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_orm51.NotNull<drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>>;
|
|
42
|
+
readonly email: drizzle_orm51.NotNull<drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>>;
|
|
43
|
+
readonly emailVerified: drizzle_orm51.NotNull<drizzle_orm_pg_core85.PgBooleanBuilder>;
|
|
44
|
+
readonly image: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
45
|
+
readonly avatar: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
46
|
+
readonly role: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
47
|
+
readonly banned: drizzle_orm51.HasDefault<drizzle_orm_pg_core85.PgBooleanBuilder>;
|
|
48
|
+
readonly banReason: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
49
|
+
readonly banExpires: drizzle_orm_pg_core85.PgTimestampBuilder;
|
|
50
50
|
};
|
|
51
51
|
virtuals: undefined;
|
|
52
|
-
relations: Record<string, never> & Record<string,
|
|
52
|
+
relations: Record<string, never> & Record<string, questpie316.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: questpie392.CollectionBuilder<questpie_shared
|
|
|
59
59
|
access: Record<string, any>;
|
|
60
60
|
searchable: undefined;
|
|
61
61
|
fieldDefinitions: {
|
|
62
|
-
readonly name:
|
|
62
|
+
readonly name: questpie316.Field<Omit<questpie316.DefaultFieldState & {
|
|
63
63
|
type: "text";
|
|
64
64
|
data: string;
|
|
65
|
-
column:
|
|
66
|
-
operators: typeof
|
|
65
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
66
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.stringOps;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
68
|
+
label: questpie_shared41.I18nText;
|
|
69
69
|
}, "notNull" | "column"> & {
|
|
70
70
|
notNull: true;
|
|
71
|
-
column:
|
|
71
|
+
column: drizzle_orm51.NotNull<drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>>;
|
|
72
72
|
}>;
|
|
73
|
-
readonly email:
|
|
73
|
+
readonly email: questpie316.Field<Omit<questpie316.DefaultFieldState & {
|
|
74
74
|
type: "email";
|
|
75
75
|
data: string;
|
|
76
|
-
column:
|
|
77
|
-
operators: typeof
|
|
76
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
77
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.emailOps;
|
|
78
78
|
} & {
|
|
79
|
-
label:
|
|
79
|
+
label: questpie_shared41.I18nText;
|
|
80
80
|
} & {
|
|
81
|
-
description:
|
|
81
|
+
description: questpie_shared41.I18nText;
|
|
82
82
|
}, "notNull" | "column"> & {
|
|
83
83
|
notNull: true;
|
|
84
|
-
column:
|
|
84
|
+
column: drizzle_orm51.NotNull<drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>>;
|
|
85
85
|
}>;
|
|
86
|
-
readonly emailVerified:
|
|
86
|
+
readonly emailVerified: questpie316.Field<Omit<questpie316.DefaultFieldState & {
|
|
87
87
|
type: "boolean";
|
|
88
88
|
data: boolean;
|
|
89
|
-
column:
|
|
90
|
-
operators: typeof
|
|
89
|
+
column: drizzle_orm_pg_core85.PgBooleanBuilder;
|
|
90
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.booleanOps;
|
|
91
91
|
} & {
|
|
92
|
-
label:
|
|
92
|
+
label: questpie_shared41.I18nText;
|
|
93
93
|
} & {
|
|
94
|
-
description:
|
|
94
|
+
description: questpie_shared41.I18nText;
|
|
95
95
|
}, "notNull" | "column"> & {
|
|
96
96
|
notNull: true;
|
|
97
|
-
column:
|
|
97
|
+
column: drizzle_orm51.NotNull<drizzle_orm_pg_core85.PgBooleanBuilder>;
|
|
98
98
|
}>;
|
|
99
|
-
readonly image:
|
|
99
|
+
readonly image: questpie316.FieldWithMethods<questpie316.DefaultFieldState & {
|
|
100
100
|
type: "url";
|
|
101
101
|
data: string;
|
|
102
|
-
column:
|
|
103
|
-
operators: typeof
|
|
102
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
103
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.urlOps;
|
|
104
104
|
} & {
|
|
105
|
-
label:
|
|
106
|
-
},
|
|
107
|
-
readonly avatar:
|
|
105
|
+
label: questpie_shared41.I18nText;
|
|
106
|
+
}, questpie316.UrlFieldMethods>;
|
|
107
|
+
readonly avatar: questpie316.Field<questpie316.DefaultFieldState & {
|
|
108
108
|
type: "upload";
|
|
109
109
|
data: string;
|
|
110
|
-
column:
|
|
111
|
-
operators: typeof
|
|
110
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
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_shared41.I18nText;
|
|
116
116
|
}>;
|
|
117
|
-
readonly role:
|
|
117
|
+
readonly role: questpie316.Field<questpie316.DefaultFieldState & {
|
|
118
118
|
type: "select";
|
|
119
119
|
data: string;
|
|
120
|
-
column:
|
|
121
|
-
operators: typeof
|
|
120
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
121
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.selectSingleOps;
|
|
122
122
|
} & {
|
|
123
|
-
label:
|
|
123
|
+
label: questpie_shared41.I18nText;
|
|
124
124
|
} & {
|
|
125
|
-
description:
|
|
125
|
+
description: questpie_shared41.I18nText;
|
|
126
126
|
}>;
|
|
127
|
-
readonly banned:
|
|
127
|
+
readonly banned: questpie316.Field<Omit<questpie316.DefaultFieldState & {
|
|
128
128
|
type: "boolean";
|
|
129
129
|
data: boolean;
|
|
130
|
-
column:
|
|
131
|
-
operators: typeof
|
|
130
|
+
column: drizzle_orm_pg_core85.PgBooleanBuilder;
|
|
131
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.booleanOps;
|
|
132
132
|
} & {
|
|
133
|
-
label:
|
|
133
|
+
label: questpie_shared41.I18nText;
|
|
134
134
|
} & {
|
|
135
|
-
description:
|
|
135
|
+
description: questpie_shared41.I18nText;
|
|
136
136
|
}, "column" | "hasDefault"> & {
|
|
137
137
|
hasDefault: true;
|
|
138
|
-
column:
|
|
138
|
+
column: drizzle_orm51.HasDefault<drizzle_orm_pg_core85.PgBooleanBuilder>;
|
|
139
139
|
}>;
|
|
140
|
-
readonly banReason:
|
|
140
|
+
readonly banReason: questpie316.Field<questpie316.DefaultFieldState & {
|
|
141
141
|
type: "text";
|
|
142
142
|
data: string;
|
|
143
|
-
column:
|
|
144
|
-
operators: typeof
|
|
143
|
+
column: drizzle_orm_pg_core85.PgVarcharBuilder<[string, ...string[]]>;
|
|
144
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.stringOps;
|
|
145
145
|
} & {
|
|
146
|
-
label:
|
|
146
|
+
label: questpie_shared41.I18nText;
|
|
147
147
|
}>;
|
|
148
|
-
readonly banExpires:
|
|
148
|
+
readonly banExpires: questpie316.FieldWithMethods<questpie316.DefaultFieldState & {
|
|
149
149
|
type: "datetime";
|
|
150
150
|
data: Date;
|
|
151
|
-
column:
|
|
152
|
-
operators: typeof
|
|
151
|
+
column: drizzle_orm_pg_core85.PgTimestampBuilder;
|
|
152
|
+
operators: typeof questpie_src_server_fields_operators_builtin_js11.dateOps;
|
|
153
153
|
} & {
|
|
154
|
-
label:
|
|
154
|
+
label: questpie_shared41.I18nText;
|
|
155
155
|
} & {
|
|
156
|
-
description:
|
|
157
|
-
},
|
|
156
|
+
description: questpie_shared41.I18nText;
|
|
157
|
+
}, questpie316.DatetimeFieldMethods>;
|
|
158
158
|
};
|
|
159
159
|
upload: undefined;
|
|
160
160
|
output: {};
|
|
@@ -1,57 +1,57 @@
|
|
|
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 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/verification.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<"verification", 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: "verification";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly identifier:
|
|
29
|
-
readonly value:
|
|
30
|
-
readonly expiresAt:
|
|
28
|
+
readonly identifier: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly value: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly expiresAt: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgTimestampBuilder>;
|
|
31
31
|
};
|
|
32
32
|
virtuals: undefined;
|
|
33
|
-
relations: Record<string,
|
|
33
|
+
relations: Record<string, questpie152.RelationConfig>;
|
|
34
34
|
indexes: Record<string, any>;
|
|
35
35
|
title: "identifier";
|
|
36
|
-
options:
|
|
36
|
+
options: questpie152.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 identifier:
|
|
43
|
+
readonly identifier: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
44
44
|
notNull: true;
|
|
45
|
-
column:
|
|
46
|
-
},
|
|
47
|
-
readonly value:
|
|
45
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
|
+
}, questpie152.TextFieldMethods>;
|
|
47
|
+
readonly value: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
48
48
|
notNull: true;
|
|
49
|
-
column:
|
|
50
|
-
},
|
|
51
|
-
readonly expiresAt:
|
|
49
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
50
|
+
}, questpie152.TextFieldMethods>;
|
|
51
|
+
readonly expiresAt: questpie152.FieldWithMethods<Omit<questpie152.DatetimeFieldState, "notNull" | "column"> & {
|
|
52
52
|
notNull: true;
|
|
53
|
-
column:
|
|
54
|
-
},
|
|
53
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgTimestampBuilder>;
|
|
54
|
+
}, questpie152.DatetimeFieldMethods>;
|
|
55
55
|
};
|
|
56
56
|
upload: undefined;
|
|
57
57
|
output: {};
|
|
@@ -12,6 +12,7 @@ import * as questpie0 from "questpie";
|
|
|
12
12
|
import * as better_auth0 from "better-auth";
|
|
13
13
|
import * as better_call0 from "better-call";
|
|
14
14
|
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
15
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
15
16
|
import * as questpie_src_server_modules_core_fields_email_js0 from "questpie/src/server/modules/core/fields/email.js";
|
|
16
17
|
import * as questpie_src_server_modules_core_fields_json_js0 from "questpie/src/server/modules/core/fields/json.js";
|
|
17
18
|
|
|
@@ -119,6 +120,7 @@ declare const adminModule: {
|
|
|
119
120
|
auth: {
|
|
120
121
|
plugins: ({
|
|
121
122
|
id: "admin";
|
|
123
|
+
version: string;
|
|
122
124
|
init(): {
|
|
123
125
|
options: {
|
|
124
126
|
databaseHooks: {
|
|
@@ -175,7 +177,7 @@ declare const adminModule: {
|
|
|
175
177
|
body: zod0.ZodObject<{
|
|
176
178
|
userId: zod0.ZodCoercedString<unknown>;
|
|
177
179
|
role: zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>;
|
|
178
|
-
},
|
|
180
|
+
}, zod_v4_core0.$strip>;
|
|
179
181
|
requireHeaders: true;
|
|
180
182
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
181
183
|
session: {
|
|
@@ -229,7 +231,7 @@ declare const adminModule: {
|
|
|
229
231
|
method: "GET";
|
|
230
232
|
query: zod0.ZodObject<{
|
|
231
233
|
id: zod0.ZodString;
|
|
232
|
-
},
|
|
234
|
+
}, zod_v4_core0.$strip>;
|
|
233
235
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
234
236
|
session: {
|
|
235
237
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -278,7 +280,7 @@ declare const adminModule: {
|
|
|
278
280
|
name: zod0.ZodString;
|
|
279
281
|
role: zod0.ZodOptional<zod0.ZodUnion<readonly [zod0.ZodString, zod0.ZodArray<zod0.ZodString>]>>;
|
|
280
282
|
data: zod0.ZodOptional<zod0.ZodRecord<zod0.ZodString, zod0.ZodAny>>;
|
|
281
|
-
},
|
|
283
|
+
}, zod_v4_core0.$strip>;
|
|
282
284
|
metadata: {
|
|
283
285
|
openapi: {
|
|
284
286
|
operationId: string;
|
|
@@ -320,7 +322,7 @@ declare const adminModule: {
|
|
|
320
322
|
body: zod0.ZodObject<{
|
|
321
323
|
userId: zod0.ZodCoercedString<unknown>;
|
|
322
324
|
data: zod0.ZodRecord<zod0.ZodAny, zod0.ZodAny>;
|
|
323
|
-
},
|
|
325
|
+
}, zod_v4_core0.$strip>;
|
|
324
326
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
325
327
|
session: {
|
|
326
328
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -381,8 +383,8 @@ declare const adminModule: {
|
|
|
381
383
|
query: zod0.ZodObject<{
|
|
382
384
|
searchValue: zod0.ZodOptional<zod0.ZodString>;
|
|
383
385
|
searchField: zod0.ZodOptional<zod0.ZodEnum<{
|
|
384
|
-
name: "name";
|
|
385
386
|
email: "email";
|
|
387
|
+
name: "name";
|
|
386
388
|
}>>;
|
|
387
389
|
searchOperator: zod0.ZodOptional<zod0.ZodEnum<{
|
|
388
390
|
contains: "contains";
|
|
@@ -411,7 +413,7 @@ declare const adminModule: {
|
|
|
411
413
|
starts_with: "starts_with";
|
|
412
414
|
ends_with: "ends_with";
|
|
413
415
|
}>>;
|
|
414
|
-
},
|
|
416
|
+
}, zod_v4_core0.$strip>;
|
|
415
417
|
metadata: {
|
|
416
418
|
openapi: {
|
|
417
419
|
operationId: string;
|
|
@@ -472,7 +474,7 @@ declare const adminModule: {
|
|
|
472
474
|
}>)[];
|
|
473
475
|
body: zod0.ZodObject<{
|
|
474
476
|
userId: zod0.ZodCoercedString<unknown>;
|
|
475
|
-
},
|
|
477
|
+
}, zod_v4_core0.$strip>;
|
|
476
478
|
metadata: {
|
|
477
479
|
openapi: {
|
|
478
480
|
operationId: string;
|
|
@@ -507,7 +509,7 @@ declare const adminModule: {
|
|
|
507
509
|
method: "POST";
|
|
508
510
|
body: zod0.ZodObject<{
|
|
509
511
|
userId: zod0.ZodCoercedString<unknown>;
|
|
510
|
-
},
|
|
512
|
+
}, zod_v4_core0.$strip>;
|
|
511
513
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
512
514
|
session: {
|
|
513
515
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -556,7 +558,7 @@ declare const adminModule: {
|
|
|
556
558
|
userId: zod0.ZodCoercedString<unknown>;
|
|
557
559
|
banReason: zod0.ZodOptional<zod0.ZodString>;
|
|
558
560
|
banExpiresIn: zod0.ZodOptional<zod0.ZodNumber>;
|
|
559
|
-
},
|
|
561
|
+
}, zod_v4_core0.$strip>;
|
|
560
562
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
561
563
|
session: {
|
|
562
564
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -603,7 +605,7 @@ declare const adminModule: {
|
|
|
603
605
|
method: "POST";
|
|
604
606
|
body: zod0.ZodObject<{
|
|
605
607
|
userId: zod0.ZodCoercedString<unknown>;
|
|
606
|
-
},
|
|
608
|
+
}, zod_v4_core0.$strip>;
|
|
607
609
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
608
610
|
session: {
|
|
609
611
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -687,7 +689,7 @@ declare const adminModule: {
|
|
|
687
689
|
method: "POST";
|
|
688
690
|
body: zod0.ZodObject<{
|
|
689
691
|
sessionToken: zod0.ZodString;
|
|
690
|
-
},
|
|
692
|
+
}, zod_v4_core0.$strip>;
|
|
691
693
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
692
694
|
session: {
|
|
693
695
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -734,7 +736,7 @@ declare const adminModule: {
|
|
|
734
736
|
method: "POST";
|
|
735
737
|
body: zod0.ZodObject<{
|
|
736
738
|
userId: zod0.ZodCoercedString<unknown>;
|
|
737
|
-
},
|
|
739
|
+
}, zod_v4_core0.$strip>;
|
|
738
740
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
739
741
|
session: {
|
|
740
742
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -781,7 +783,7 @@ declare const adminModule: {
|
|
|
781
783
|
method: "POST";
|
|
782
784
|
body: zod0.ZodObject<{
|
|
783
785
|
userId: zod0.ZodCoercedString<unknown>;
|
|
784
|
-
},
|
|
786
|
+
}, zod_v4_core0.$strip>;
|
|
785
787
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
786
788
|
session: {
|
|
787
789
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -829,7 +831,7 @@ declare const adminModule: {
|
|
|
829
831
|
body: zod0.ZodObject<{
|
|
830
832
|
newPassword: zod0.ZodString;
|
|
831
833
|
userId: zod0.ZodCoercedString<unknown>;
|
|
832
|
-
},
|
|
834
|
+
}, zod_v4_core0.$strip>;
|
|
833
835
|
use: ((inputContext: better_call0.MiddlewareInputContext<better_call0.MiddlewareOptions>) => Promise<{
|
|
834
836
|
session: {
|
|
835
837
|
user: better_auth_plugins0.UserWithRole;
|
|
@@ -877,13 +879,11 @@ declare const adminModule: {
|
|
|
877
879
|
body: zod0.ZodIntersection<zod0.ZodObject<{
|
|
878
880
|
userId: zod0.ZodOptional<zod0.ZodCoercedString<unknown>>;
|
|
879
881
|
role: zod0.ZodOptional<zod0.ZodString>;
|
|
880
|
-
},
|
|
882
|
+
}, zod_v4_core0.$strip>, zod0.ZodXor<readonly [zod0.ZodObject<{
|
|
881
883
|
permission: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
882
|
-
|
|
883
|
-
}, better_auth0.$strip>, zod0.ZodObject<{
|
|
884
|
-
permission: zod0.ZodUndefined;
|
|
884
|
+
}, zod_v4_core0.$strip>, zod0.ZodObject<{
|
|
885
885
|
permissions: zod0.ZodRecord<zod0.ZodString, zod0.ZodArray<zod0.ZodString>>;
|
|
886
|
-
},
|
|
886
|
+
}, zod_v4_core0.$strip>]>>;
|
|
887
887
|
metadata: {
|
|
888
888
|
openapi: {
|
|
889
889
|
description: string;
|
|
@@ -1003,6 +1003,7 @@ declare const adminModule: {
|
|
|
1003
1003
|
options: NoInfer<better_auth_plugins0.AdminOptions>;
|
|
1004
1004
|
} | {
|
|
1005
1005
|
id: "bearer";
|
|
1006
|
+
version: string;
|
|
1006
1007
|
hooks: {
|
|
1007
1008
|
before: {
|
|
1008
1009
|
matcher(context: better_auth0.HookEndpointContext): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie178 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/admin-config.d.ts
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ import * as questpie455 from "questpie";
|
|
|
22
22
|
* Registered via module routes and exposed through the fetch handler.
|
|
23
23
|
*/
|
|
24
24
|
declare const adminConfigFunctions: {
|
|
25
|
-
readonly getAdminConfig:
|
|
25
|
+
readonly getAdminConfig: questpie178.JsonRouteDefinition<Record<string, never> | undefined, any, questpie178.JsonRouteParams>;
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
export { adminConfigFunctions };
|
|
@@ -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 questpie117 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: questpie117.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, questpie117.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: questpie117.JsonRouteDefinition<{
|
|
72
72
|
collection: string;
|
|
73
|
-
}, any,
|
|
73
|
+
}, any, questpie117.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: questpie117.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, questpie117.JsonRouteParams>;
|
|
87
|
+
getActionsConfig: questpie117.JsonRouteDefinition<{
|
|
88
88
|
collection: string;
|
|
89
|
-
}, any,
|
|
89
|
+
}, any, questpie117.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 questpie227 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/locales.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as questpie453 from "questpie";
|
|
|
12
12
|
* Bundle of locale-related functions.
|
|
13
13
|
*/
|
|
14
14
|
declare const localeFunctions: {
|
|
15
|
-
readonly getContentLocales:
|
|
15
|
+
readonly getContentLocales: questpie227.JsonRouteDefinition<Record<string, never> | undefined, any, questpie227.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
|
|
|
@@ -21,13 +21,13 @@ interface PreviewTokenPayload {
|
|
|
21
21
|
* @returns Object with preview functions
|
|
22
22
|
*/
|
|
23
23
|
declare function createPreviewFunctions(secret: string): {
|
|
24
|
-
mintPreviewToken:
|
|
24
|
+
mintPreviewToken: questpie141.JsonRouteDefinition<{
|
|
25
25
|
path: string;
|
|
26
26
|
ttlMs?: number | undefined;
|
|
27
|
-
}, any,
|
|
28
|
-
verifyPreviewToken:
|
|
27
|
+
}, any, questpie141.JsonRouteParams>;
|
|
28
|
+
verifyPreviewToken: questpie141.JsonRouteDefinition<{
|
|
29
29
|
token: string;
|
|
30
|
-
}, any,
|
|
30
|
+
}, any, questpie141.JsonRouteParams>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Verify a preview token without RPC.
|
|
@@ -63,18 +63,18 @@ declare function createPreviewTokenVerifier(secret?: string): (token: string) =>
|
|
|
63
63
|
* Used by the `adminModule` to register preview RPC functions.
|
|
64
64
|
*/
|
|
65
65
|
declare const previewFunctions: {
|
|
66
|
-
getPreviewUrl:
|
|
66
|
+
getPreviewUrl: questpie141.JsonRouteDefinition<{
|
|
67
67
|
collection: string;
|
|
68
68
|
record: Record<string, unknown>;
|
|
69
69
|
locale?: string | undefined;
|
|
70
|
-
}, any,
|
|
71
|
-
mintPreviewToken:
|
|
70
|
+
}, any, questpie141.JsonRouteParams>;
|
|
71
|
+
mintPreviewToken: questpie141.JsonRouteDefinition<{
|
|
72
72
|
path: string;
|
|
73
73
|
ttlMs?: number | undefined;
|
|
74
|
-
}, any,
|
|
75
|
-
verifyPreviewToken:
|
|
74
|
+
}, any, questpie141.JsonRouteParams>;
|
|
75
|
+
verifyPreviewToken: questpie141.JsonRouteDefinition<{
|
|
76
76
|
token: string;
|
|
77
|
-
}, any,
|
|
77
|
+
}, any, questpie141.JsonRouteParams>;
|
|
78
78
|
};
|
|
79
79
|
//#endregion
|
|
80
80
|
export { PreviewTokenPayload, createPreviewFunctions, createPreviewTokenVerifier, previewFunctions, verifyPreviewTokenDirect };
|