@questpie/admin 3.5.4 → 3.5.6
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/components/primitives/dropzone.d.mts +2 -2
- package/dist/client/components/ui/button.d.mts +2 -2
- package/dist/client/components/ui/dropdown-menu.d.mts +9 -9
- package/dist/client/components/ui/sheet.d.mts +7 -7
- package/dist/client/components/ui/table.d.mts +8 -8
- package/dist/client/components/ui/tooltip.d.mts +4 -4
- package/dist/client/i18n/hooks.d.mts +0 -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/reset-password-form.d.mts +2 -2
- package/dist/client/views/auth/setup-form.d.mts +2 -2
- package/dist/client/views/pages/accept-invite-page.d.mts +2 -2
- package/dist/client/views/pages/dashboard-page.d.mts +2 -2
- package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
- package/dist/client/views/pages/invite-page.d.mts +2 -2
- package/dist/client/views/pages/login-page.d.mts +2 -2
- package/dist/client/views/pages/reset-password-page.d.mts +2 -2
- package/dist/client/views/pages/setup-page.d.mts +2 -2
- package/dist/factories.d.mts +0 -2
- package/dist/server/adapters/nextjs.d.mts +0 -1
- package/dist/server/modules/admin/collections/account.d.mts +30 -30
- package/dist/server/modules/admin/collections/admin-locks.d.mts +29 -29
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +22 -22
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +25 -25
- package/dist/server/modules/admin/collections/apikey.d.mts +40 -40
- package/dist/server/modules/admin/collections/assets.d.mts +10 -10
- package/dist/server/modules/admin/collections/session.d.mts +26 -26
- package/dist/server/modules/admin/collections/user.d.mts +14 -14
- package/dist/server/modules/admin/collections/verification.d.mts +23 -23
- package/dist/server/modules/admin/index.d.mts +1 -1
- package/dist/server/modules/admin/routes/admin-config.d.mts +3 -4
- 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/dist/server.d.mts +0 -2
- package/package.json +3 -3
- package/dist/server/adapters/index.d.mts +0 -2
- package/dist/server/auth-helpers.d.mts +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as questpie_shared67 from "questpie/shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as questpie435 from "questpie";
|
|
3
3
|
import * as questpie_src_server_modules_core_fields_email_js9 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
4
|
import * as questpie_src_server_modules_core_fields_json_js9 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
5
|
import * as drizzle_orm_pg_core144 from "drizzle-orm/pg-core";
|
|
@@ -7,22 +7,22 @@ import * as drizzle_orm80 from "drizzle-orm";
|
|
|
7
7
|
import * as questpie_src_server_collection_builder_types_js17 from "questpie/src/server/collection/builder/types.js";
|
|
8
8
|
|
|
9
9
|
//#region src/server/modules/admin/collections/verification.d.ts
|
|
10
|
-
declare const _default:
|
|
11
|
-
readonly text: typeof
|
|
12
|
-
readonly textarea: typeof
|
|
10
|
+
declare const _default: questpie435.CollectionBuilder<questpie_shared67.Override<questpie435.EmptyCollectionState<"verification", undefined, {
|
|
11
|
+
readonly text: typeof questpie435.text;
|
|
12
|
+
readonly textarea: typeof questpie435.textarea;
|
|
13
13
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js9.email;
|
|
14
|
-
readonly url: typeof
|
|
15
|
-
readonly number: typeof
|
|
16
|
-
readonly boolean: typeof
|
|
17
|
-
readonly date: typeof
|
|
18
|
-
readonly datetime: typeof
|
|
19
|
-
readonly time: typeof
|
|
20
|
-
readonly select: typeof
|
|
21
|
-
readonly upload: typeof
|
|
22
|
-
readonly relation: typeof
|
|
23
|
-
readonly object: typeof
|
|
14
|
+
readonly url: typeof questpie435.url;
|
|
15
|
+
readonly number: typeof questpie435.number;
|
|
16
|
+
readonly boolean: typeof questpie435.boolean;
|
|
17
|
+
readonly date: typeof questpie435.date;
|
|
18
|
+
readonly datetime: typeof questpie435.datetime;
|
|
19
|
+
readonly time: typeof questpie435.time;
|
|
20
|
+
readonly select: typeof questpie435.select;
|
|
21
|
+
readonly upload: typeof questpie435.upload;
|
|
22
|
+
readonly relation: typeof questpie435.relation;
|
|
23
|
+
readonly object: typeof questpie435.object;
|
|
24
24
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js9.json;
|
|
25
|
-
readonly from: typeof
|
|
25
|
+
readonly from: typeof questpie435.from;
|
|
26
26
|
}>, {
|
|
27
27
|
name: "verification";
|
|
28
28
|
fields: Record<string, any> & {
|
|
@@ -31,28 +31,28 @@ declare const _default: questpie430.CollectionBuilder<questpie_shared67.Override
|
|
|
31
31
|
readonly expiresAt: drizzle_orm80.NotNull<drizzle_orm_pg_core144.PgTimestampBuilder>;
|
|
32
32
|
};
|
|
33
33
|
virtuals: undefined;
|
|
34
|
-
relations: Record<string,
|
|
34
|
+
relations: Record<string, questpie435.RelationConfig>;
|
|
35
35
|
indexes: Record<string, any>;
|
|
36
36
|
title: "identifier";
|
|
37
|
-
options:
|
|
37
|
+
options: questpie435.CollectionOptions & {
|
|
38
38
|
timestamps: true;
|
|
39
39
|
};
|
|
40
40
|
hooks: questpie_src_server_collection_builder_types_js17.CollectionHooksStorage;
|
|
41
41
|
access: questpie_src_server_collection_builder_types_js17.CollectionAccessStorage;
|
|
42
42
|
searchable: undefined;
|
|
43
43
|
fieldDefinitions: {
|
|
44
|
-
readonly identifier:
|
|
44
|
+
readonly identifier: questpie435.FieldWithMethods<Omit<questpie435.TextFieldState, "notNull" | "column"> & {
|
|
45
45
|
notNull: true;
|
|
46
46
|
column: drizzle_orm80.NotNull<drizzle_orm_pg_core144.PgVarcharBuilder<[string, ...string[]]>>;
|
|
47
|
-
},
|
|
48
|
-
readonly value:
|
|
47
|
+
}, questpie435.TextFieldMethods>;
|
|
48
|
+
readonly value: questpie435.FieldWithMethods<Omit<questpie435.TextFieldState, "notNull" | "column"> & {
|
|
49
49
|
notNull: true;
|
|
50
50
|
column: drizzle_orm80.NotNull<drizzle_orm_pg_core144.PgVarcharBuilder<[string, ...string[]]>>;
|
|
51
|
-
},
|
|
52
|
-
readonly expiresAt:
|
|
51
|
+
}, questpie435.TextFieldMethods>;
|
|
52
|
+
readonly expiresAt: questpie435.FieldWithMethods<Omit<questpie435.DatetimeFieldState, "notNull" | "column"> & {
|
|
53
53
|
notNull: true;
|
|
54
54
|
column: drizzle_orm80.NotNull<drizzle_orm_pg_core144.PgTimestampBuilder>;
|
|
55
|
-
},
|
|
55
|
+
}, questpie435.DatetimeFieldMethods>;
|
|
56
56
|
};
|
|
57
57
|
upload: undefined;
|
|
58
58
|
output: {};
|
|
@@ -927,7 +927,7 @@ declare const adminModule: {
|
|
|
927
927
|
$Infer: {
|
|
928
928
|
body: {
|
|
929
929
|
permissions: {
|
|
930
|
-
readonly user?: ("
|
|
930
|
+
readonly user?: ("list" | "create" | "update" | "set-role" | "ban" | "impersonate" | "impersonate-admins" | "delete" | "set-password" | "get")[] | undefined;
|
|
931
931
|
readonly session?: ("list" | "delete" | "revoke")[] | undefined;
|
|
932
932
|
};
|
|
933
933
|
} & {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import * as questpie456 from "questpie";
|
|
1
|
+
import * as questpie461 from "questpie";
|
|
3
2
|
|
|
4
3
|
//#region src/server/modules/admin/routes/admin-config.d.ts
|
|
5
4
|
|
|
@@ -8,8 +7,8 @@ import * as questpie456 from "questpie";
|
|
|
8
7
|
* Registered via module routes and exposed through the fetch handler.
|
|
9
8
|
*/
|
|
10
9
|
declare const adminConfigFunctions: {
|
|
11
|
-
readonly getAdminConfig:
|
|
12
|
-
readonly getPublicAdminConfig:
|
|
10
|
+
readonly getAdminConfig: questpie461.JsonRouteDefinition<Record<string, never> | undefined, any, questpie461.JsonRouteParams>;
|
|
11
|
+
readonly getPublicAdminConfig: questpie461.JsonRouteDefinition<Record<string, never> | undefined, any, questpie461.JsonRouteParams>;
|
|
13
12
|
};
|
|
14
13
|
//#endregion
|
|
15
14
|
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 questpie465 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/locales.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as questpie460 from "questpie";
|
|
|
12
12
|
* Bundle of locale-related functions.
|
|
13
13
|
*/
|
|
14
14
|
declare const localeFunctions: {
|
|
15
|
-
readonly getContentLocales:
|
|
15
|
+
readonly getContentLocales: questpie465.JsonRouteDefinition<Record<string, never> | undefined, any, questpie465.JsonRouteParams>;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { localeFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie125 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: questpie125.JsonRouteDefinition<{
|
|
29
29
|
path: string;
|
|
30
30
|
ttlMs?: number | undefined;
|
|
31
|
-
}, any,
|
|
32
|
-
verifyPreviewToken:
|
|
31
|
+
}, any, questpie125.JsonRouteParams>;
|
|
32
|
+
verifyPreviewToken: questpie125.JsonRouteDefinition<{
|
|
33
33
|
token: string;
|
|
34
|
-
}, any,
|
|
34
|
+
}, any, questpie125.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: questpie125.JsonRouteDefinition<{
|
|
72
72
|
collection: string;
|
|
73
73
|
record: Record<string, unknown>;
|
|
74
74
|
locale?: string | undefined;
|
|
75
|
-
}, any,
|
|
76
|
-
mintPreviewToken:
|
|
75
|
+
}, any, questpie125.JsonRouteParams>;
|
|
76
|
+
mintPreviewToken: questpie125.JsonRouteDefinition<{
|
|
77
77
|
path: string;
|
|
78
78
|
ttlMs?: number | undefined;
|
|
79
|
-
}, any,
|
|
80
|
-
verifyPreviewToken:
|
|
79
|
+
}, any, questpie125.JsonRouteParams>;
|
|
80
|
+
verifyPreviewToken: questpie125.JsonRouteDefinition<{
|
|
81
81
|
token: string;
|
|
82
|
-
}, any,
|
|
82
|
+
}, any, questpie125.JsonRouteParams>;
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
85
85
|
export { PreviewTokenPayload, createPreviewFunctions, createPreviewTokenVerifier, previewFunctions, verifyPreviewTokenDirect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie135 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/reactive.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import * as questpie82 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: questpie135.JsonRouteDefinition<{
|
|
17
17
|
collection: string;
|
|
18
18
|
type: "collection" | "global";
|
|
19
19
|
requests: {
|
|
@@ -27,12 +27,12 @@ declare const batchReactive: questpie82.JsonRouteDefinition<{
|
|
|
27
27
|
}[];
|
|
28
28
|
formData?: Record<string, unknown> | undefined;
|
|
29
29
|
prevData?: Record<string, unknown> | null | undefined;
|
|
30
|
-
}, any,
|
|
30
|
+
}, any, questpie135.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: questpie135.JsonRouteDefinition<{
|
|
36
36
|
collection: string;
|
|
37
37
|
type: "collection" | "global";
|
|
38
38
|
field: string;
|
|
@@ -41,12 +41,12 @@ declare const fieldOptions: questpie82.JsonRouteDefinition<{
|
|
|
41
41
|
page: number;
|
|
42
42
|
limit: number;
|
|
43
43
|
siblingData?: Record<string, unknown> | null | undefined;
|
|
44
|
-
}, any,
|
|
44
|
+
}, any, questpie135.JsonRouteParams>;
|
|
45
45
|
/**
|
|
46
46
|
* Reactive functions bundle.
|
|
47
47
|
*/
|
|
48
48
|
declare const reactiveFunctions: {
|
|
49
|
-
readonly batchReactive:
|
|
49
|
+
readonly batchReactive: questpie135.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, questpie135.JsonRouteParams>;
|
|
64
|
+
readonly fieldOptions: questpie135.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, questpie135.JsonRouteParams>;
|
|
74
74
|
};
|
|
75
75
|
//#endregion
|
|
76
76
|
export { batchReactive, fieldOptions, reactiveFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie143 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/setup.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import * as questpie90 from "questpie";
|
|
|
13
13
|
* }
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
declare const isSetupRequired:
|
|
16
|
+
declare const isSetupRequired: questpie143.JsonRouteDefinition<Record<string, never>, any, questpie143.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: questpie90.JsonRouteDefinition<Record<string, nev
|
|
|
36
36
|
* }
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
declare const createFirstAdmin:
|
|
39
|
+
declare const createFirstAdmin: questpie143.JsonRouteDefinition<{
|
|
40
40
|
email: string;
|
|
41
41
|
password: string;
|
|
42
42
|
name: string;
|
|
43
|
-
}, any,
|
|
43
|
+
}, any, questpie143.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: questpie143.JsonRouteDefinition<Record<string, never>, any, questpie143.JsonRouteParams>;
|
|
49
|
+
readonly createFirstAdmin: questpie143.JsonRouteDefinition<{
|
|
50
50
|
email: string;
|
|
51
51
|
password: string;
|
|
52
52
|
name: string;
|
|
53
|
-
}, any,
|
|
53
|
+
}, any, questpie143.JsonRouteParams>;
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
56
|
export { createFirstAdmin, isSetupRequired, setupFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie409 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/translations.d.ts
|
|
4
4
|
|
|
@@ -17,10 +17,10 @@ import * as questpie462 from "questpie";
|
|
|
17
17
|
* Bundle of translation-related functions.
|
|
18
18
|
*/
|
|
19
19
|
declare const translationFunctions: {
|
|
20
|
-
readonly getAdminTranslations:
|
|
20
|
+
readonly getAdminTranslations: questpie409.JsonRouteDefinition<{
|
|
21
21
|
locale: string;
|
|
22
|
-
}, any,
|
|
23
|
-
readonly getAdminLocales:
|
|
22
|
+
}, any, questpie409.JsonRouteParams>;
|
|
23
|
+
readonly getAdminLocales: questpie409.JsonRouteDefinition<Record<string, never> | undefined, any, questpie409.JsonRouteParams>;
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
26
|
export { translationFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie69 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/widget-data.d.ts
|
|
4
4
|
|
|
@@ -20,13 +20,13 @@ import * as questpie16 from "questpie";
|
|
|
20
20
|
* const data = await client.routes.fetchWidgetData({ widgetId: "my-widget" });
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
declare const fetchWidgetData:
|
|
23
|
+
declare const fetchWidgetData: questpie69.JsonRouteDefinition<{
|
|
24
24
|
widgetId: string;
|
|
25
|
-
}, any,
|
|
25
|
+
}, any, questpie69.JsonRouteParams>;
|
|
26
26
|
declare const widgetDataFunctions: {
|
|
27
|
-
readonly fetchWidgetData:
|
|
27
|
+
readonly fetchWidgetData: questpie69.JsonRouteDefinition<{
|
|
28
28
|
widgetId: string;
|
|
29
|
-
}, any,
|
|
29
|
+
}, any, questpie69.JsonRouteParams>;
|
|
30
30
|
};
|
|
31
31
|
//#endregion
|
|
32
32
|
export { fetchWidgetData, widgetDataFunctions };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FilterOperator, FilterRule, SortConfig, ViewConfiguration } from "../../../../shared/types/saved-views.types.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
2
|
+
import * as questpie_shared16 from "questpie/shared";
|
|
3
|
+
import * as questpie89 from "questpie";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_email_js2 from "questpie/src/server/modules/core/fields/email.js";
|
|
5
|
+
import * as questpie_src_server_modules_core_fields_json_js2 from "questpie/src/server/modules/core/fields/json.js";
|
|
6
|
+
import * as drizzle_orm_pg_core22 from "drizzle-orm/pg-core";
|
|
7
|
+
import * as drizzle_orm5 from "drizzle-orm";
|
|
8
8
|
|
|
9
9
|
//#region src/server/modules/admin-preferences/collections/saved-views.d.ts
|
|
10
10
|
|
|
@@ -31,61 +31,61 @@ import * as drizzle_orm0 from "drizzle-orm";
|
|
|
31
31
|
* });
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
declare const savedViewsCollection:
|
|
35
|
-
readonly text: typeof
|
|
36
|
-
readonly textarea: typeof
|
|
37
|
-
readonly email: typeof
|
|
38
|
-
readonly url: typeof
|
|
39
|
-
readonly number: typeof
|
|
40
|
-
readonly boolean: typeof
|
|
41
|
-
readonly date: typeof
|
|
42
|
-
readonly datetime: typeof
|
|
43
|
-
readonly time: typeof
|
|
44
|
-
readonly select: typeof
|
|
45
|
-
readonly upload: typeof
|
|
46
|
-
readonly relation: typeof
|
|
47
|
-
readonly object: typeof
|
|
48
|
-
readonly json: typeof
|
|
49
|
-
readonly from: typeof
|
|
34
|
+
declare const savedViewsCollection: questpie89.CollectionBuilder<questpie_shared16.Override<questpie_shared16.Override<questpie89.EmptyCollectionState<"admin_saved_views", undefined, {
|
|
35
|
+
readonly text: typeof questpie89.text;
|
|
36
|
+
readonly textarea: typeof questpie89.textarea;
|
|
37
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js2.email;
|
|
38
|
+
readonly url: typeof questpie89.url;
|
|
39
|
+
readonly number: typeof questpie89.number;
|
|
40
|
+
readonly boolean: typeof questpie89.boolean;
|
|
41
|
+
readonly date: typeof questpie89.date;
|
|
42
|
+
readonly datetime: typeof questpie89.datetime;
|
|
43
|
+
readonly time: typeof questpie89.time;
|
|
44
|
+
readonly select: typeof questpie89.select;
|
|
45
|
+
readonly upload: typeof questpie89.upload;
|
|
46
|
+
readonly relation: typeof questpie89.relation;
|
|
47
|
+
readonly object: typeof questpie89.object;
|
|
48
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js2.json;
|
|
49
|
+
readonly from: typeof questpie89.from;
|
|
50
50
|
}>, {
|
|
51
51
|
fields: {
|
|
52
|
-
readonly userId:
|
|
53
|
-
readonly collectionName:
|
|
54
|
-
readonly name:
|
|
55
|
-
readonly configuration:
|
|
56
|
-
readonly isDefault:
|
|
52
|
+
readonly userId: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
readonly collectionName: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
54
|
+
readonly name: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
55
|
+
readonly configuration: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgJsonbBuilder>;
|
|
56
|
+
readonly isDefault: drizzle_orm5.HasDefault<drizzle_orm_pg_core22.PgBooleanBuilder>;
|
|
57
57
|
};
|
|
58
58
|
localized: readonly string[];
|
|
59
59
|
fieldDefinitions: {
|
|
60
|
-
readonly userId:
|
|
60
|
+
readonly userId: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
61
61
|
notNull: true;
|
|
62
|
-
column:
|
|
62
|
+
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
63
63
|
} & {
|
|
64
|
-
label:
|
|
65
|
-
},
|
|
66
|
-
readonly collectionName:
|
|
64
|
+
label: questpie_shared16.I18nText;
|
|
65
|
+
}, questpie89.TextFieldMethods>;
|
|
66
|
+
readonly collectionName: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
67
67
|
notNull: true;
|
|
68
|
-
column:
|
|
68
|
+
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
69
69
|
} & {
|
|
70
|
-
label:
|
|
71
|
-
},
|
|
72
|
-
readonly name:
|
|
70
|
+
label: questpie_shared16.I18nText;
|
|
71
|
+
}, questpie89.TextFieldMethods>;
|
|
72
|
+
readonly name: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
73
73
|
notNull: true;
|
|
74
|
-
column:
|
|
74
|
+
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
75
75
|
} & {
|
|
76
|
-
label:
|
|
77
|
-
},
|
|
78
|
-
readonly configuration:
|
|
76
|
+
label: questpie_shared16.I18nText;
|
|
77
|
+
}, questpie89.TextFieldMethods>;
|
|
78
|
+
readonly configuration: questpie89.Field<Omit<questpie89.JsonFieldState, "notNull" | "column"> & {
|
|
79
79
|
notNull: true;
|
|
80
|
-
column:
|
|
80
|
+
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgJsonbBuilder>;
|
|
81
81
|
} & {
|
|
82
|
-
label:
|
|
82
|
+
label: questpie_shared16.I18nText;
|
|
83
83
|
}>;
|
|
84
|
-
readonly isDefault:
|
|
84
|
+
readonly isDefault: questpie89.Field<Omit<questpie89.BooleanFieldState, "column" | "hasDefault"> & {
|
|
85
85
|
hasDefault: true;
|
|
86
|
-
column:
|
|
86
|
+
column: drizzle_orm5.HasDefault<drizzle_orm_pg_core22.PgBooleanBuilder>;
|
|
87
87
|
} & {
|
|
88
|
-
label:
|
|
88
|
+
label: questpie_shared16.I18nText;
|
|
89
89
|
}>;
|
|
90
90
|
};
|
|
91
91
|
}>, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { auditLogCollection } from "../collections/audit-log.mjs";
|
|
2
2
|
import { auditCleanupJob } from "../jobs/audit-cleanup.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as questpie16 from "questpie";
|
|
4
4
|
|
|
5
5
|
//#region src/server/modules/audit/.generated/module.d.ts
|
|
6
6
|
interface AuditCollections {
|
|
@@ -43,13 +43,13 @@ declare const _module: {
|
|
|
43
43
|
app: {
|
|
44
44
|
hooks: {
|
|
45
45
|
collections: {
|
|
46
|
-
afterChange: (ctx:
|
|
47
|
-
afterDelete: (ctx:
|
|
48
|
-
afterTransition: (ctx:
|
|
46
|
+
afterChange: (ctx: questpie16.GlobalCollectionHookContext) => Promise<void>;
|
|
47
|
+
afterDelete: (ctx: questpie16.GlobalCollectionHookContext) => Promise<void>;
|
|
48
|
+
afterTransition: (ctx: questpie16.GlobalCollectionTransitionHookContext) => Promise<void>;
|
|
49
49
|
};
|
|
50
50
|
globals: {
|
|
51
|
-
afterChange: (ctx:
|
|
52
|
-
afterTransition: (ctx:
|
|
51
|
+
afterChange: (ctx: questpie16.GlobalGlobalHookContext) => Promise<void>;
|
|
52
|
+
afterTransition: (ctx: questpie16.GlobalGlobalTransitionHookContext) => Promise<void>;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
};
|