@questpie/admin 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/preview/block-scope-context.d.mts +2 -2
- package/dist/client/preview/preview-field.d.mts +4 -4
- package/dist/client/views/auth/auth-layout.d.mts +2 -2
- package/dist/client/views/auth/forgot-password-form.d.mts +2 -2
- package/dist/client/views/auth/login-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/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 +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 +20 -20
- package/dist/server/modules/admin/collections/session.d.mts +42 -42
- package/dist/server/modules/admin/collections/user.d.mts +28 -28
- package/dist/server/modules/admin/collections/verification.d.mts +32 -32
- 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 +2 -2
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +23 -23
- package/dist/server/modules/audit/.generated/module.d.mts +6 -6
- package/dist/server/modules/audit/collections/audit-log.d.mts +37 -37
- package/dist/server/modules/audit/jobs/audit-cleanup.d.mts +2 -2
- package/package.json +3 -3
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import * as questpie_shared38 from "questpie/shared";
|
|
2
|
+
import * as questpie404 from "questpie";
|
|
3
|
+
import * as drizzle_orm_pg_core117 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as drizzle_orm69 from "drizzle-orm";
|
|
5
5
|
import * as questpie_src_server_modules_core_fields_email_js8 from "questpie/src/server/modules/core/fields/email.js";
|
|
6
6
|
import * as questpie_src_server_modules_core_fields_json_js8 from "questpie/src/server/modules/core/fields/json.js";
|
|
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
|
|
9
|
+
declare const _default: questpie404.CollectionBuilder<questpie_shared38.Override<questpie404.EmptyCollectionState<"verification", undefined, {
|
|
10
|
+
readonly text: typeof questpie404.text;
|
|
11
|
+
readonly textarea: typeof questpie404.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 questpie404.url;
|
|
14
|
+
readonly number: typeof questpie404.number;
|
|
15
|
+
readonly boolean: typeof questpie404.boolean;
|
|
16
|
+
readonly date: typeof questpie404.date;
|
|
17
|
+
readonly datetime: typeof questpie404.datetime;
|
|
18
|
+
readonly time: typeof questpie404.time;
|
|
19
|
+
readonly select: typeof questpie404.select;
|
|
20
|
+
readonly upload: typeof questpie404.upload;
|
|
21
|
+
readonly relation: typeof questpie404.relation;
|
|
22
|
+
readonly object: typeof questpie404.object;
|
|
23
23
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js8.json;
|
|
24
|
-
readonly from: typeof
|
|
24
|
+
readonly from: typeof questpie404.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_orm69.NotNull<drizzle_orm_pg_core117.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly value: drizzle_orm69.NotNull<drizzle_orm_pg_core117.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly expiresAt: drizzle_orm69.NotNull<drizzle_orm_pg_core117.PgTimestampBuilder>;
|
|
31
31
|
};
|
|
32
32
|
virtuals: undefined;
|
|
33
|
-
relations: Record<string,
|
|
33
|
+
relations: Record<string, questpie404.RelationConfig>;
|
|
34
34
|
indexes: Record<string, any>;
|
|
35
35
|
title: "identifier";
|
|
36
|
-
options:
|
|
36
|
+
options: questpie404.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: questpie404.FieldWithMethods<Omit<questpie404.TextFieldState, "notNull" | "column"> & {
|
|
44
44
|
notNull: true;
|
|
45
|
-
column:
|
|
46
|
-
},
|
|
47
|
-
readonly value:
|
|
45
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core117.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
|
+
}, questpie404.TextFieldMethods>;
|
|
47
|
+
readonly value: questpie404.FieldWithMethods<Omit<questpie404.TextFieldState, "notNull" | "column"> & {
|
|
48
48
|
notNull: true;
|
|
49
|
-
column:
|
|
50
|
-
},
|
|
51
|
-
readonly expiresAt:
|
|
49
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core117.PgVarcharBuilder<[string, ...string[]]>>;
|
|
50
|
+
}, questpie404.TextFieldMethods>;
|
|
51
|
+
readonly expiresAt: questpie404.FieldWithMethods<Omit<questpie404.DatetimeFieldState, "notNull" | "column"> & {
|
|
52
52
|
notNull: true;
|
|
53
|
-
column:
|
|
54
|
-
},
|
|
53
|
+
column: drizzle_orm69.NotNull<drizzle_orm_pg_core117.PgTimestampBuilder>;
|
|
54
|
+
}, questpie404.DatetimeFieldMethods>;
|
|
55
55
|
};
|
|
56
56
|
upload: undefined;
|
|
57
57
|
output: {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie434 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/admin-config.d.ts
|
|
4
4
|
|
|
@@ -22,7 +22,7 @@ import * as questpie390 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: questpie434.JsonRouteDefinition<Record<string, never> | undefined, any, questpie434.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 questpie402 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/locales.d.ts
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import * as questpie339 from "questpie";
|
|
|
12
12
|
* Bundle of locale-related functions.
|
|
13
13
|
*/
|
|
14
14
|
declare const localeFunctions: {
|
|
15
|
-
readonly getContentLocales:
|
|
15
|
+
readonly getContentLocales: questpie402.JsonRouteDefinition<Record<string, never> | undefined, any, questpie402.JsonRouteParams>;
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { localeFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie133 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: questpie133.JsonRouteDefinition<{
|
|
25
25
|
path: string;
|
|
26
26
|
ttlMs?: number | undefined;
|
|
27
|
-
}, any>;
|
|
28
|
-
verifyPreviewToken:
|
|
27
|
+
}, any, questpie133.JsonRouteParams>;
|
|
28
|
+
verifyPreviewToken: questpie133.JsonRouteDefinition<{
|
|
29
29
|
token: string;
|
|
30
|
-
}, any>;
|
|
30
|
+
}, any, questpie133.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: questpie133.JsonRouteDefinition<{
|
|
67
67
|
collection: string;
|
|
68
68
|
record: Record<string, unknown>;
|
|
69
69
|
locale?: string | undefined;
|
|
70
|
-
}, any>;
|
|
71
|
-
mintPreviewToken:
|
|
70
|
+
}, any, questpie133.JsonRouteParams>;
|
|
71
|
+
mintPreviewToken: questpie133.JsonRouteDefinition<{
|
|
72
72
|
path: string;
|
|
73
73
|
ttlMs?: number | undefined;
|
|
74
|
-
}, any>;
|
|
75
|
-
verifyPreviewToken:
|
|
74
|
+
}, any, questpie133.JsonRouteParams>;
|
|
75
|
+
verifyPreviewToken: questpie133.JsonRouteDefinition<{
|
|
76
76
|
token: string;
|
|
77
|
-
}, any>;
|
|
77
|
+
}, any, questpie133.JsonRouteParams>;
|
|
78
78
|
};
|
|
79
79
|
//#endregion
|
|
80
80
|
export { PreviewTokenPayload, createPreviewFunctions, createPreviewTokenVerifier, previewFunctions, verifyPreviewTokenDirect };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie143 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/reactive.d.ts
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ import * as questpie92 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: questpie143.JsonRouteDefinition<{
|
|
17
17
|
collection: string;
|
|
18
18
|
type: "collection" | "global";
|
|
19
19
|
requests: {
|
|
@@ -26,12 +26,12 @@ declare const batchReactive: questpie92.JsonRouteDefinition<{
|
|
|
26
26
|
}[];
|
|
27
27
|
formData?: Record<string, unknown> | undefined;
|
|
28
28
|
prevData?: Record<string, unknown> | null | undefined;
|
|
29
|
-
}, any>;
|
|
29
|
+
}, any, questpie143.JsonRouteParams>;
|
|
30
30
|
/**
|
|
31
31
|
* Dynamic options endpoint.
|
|
32
32
|
* Fetches options for select/relation fields with search and pagination.
|
|
33
33
|
*/
|
|
34
|
-
declare const fieldOptions:
|
|
34
|
+
declare const fieldOptions: questpie143.JsonRouteDefinition<{
|
|
35
35
|
collection: string;
|
|
36
36
|
type: "collection" | "global";
|
|
37
37
|
field: string;
|
|
@@ -40,12 +40,12 @@ declare const fieldOptions: questpie92.JsonRouteDefinition<{
|
|
|
40
40
|
page: number;
|
|
41
41
|
limit: number;
|
|
42
42
|
siblingData?: Record<string, unknown> | null | undefined;
|
|
43
|
-
}, any>;
|
|
43
|
+
}, any, questpie143.JsonRouteParams>;
|
|
44
44
|
/**
|
|
45
45
|
* Reactive functions bundle.
|
|
46
46
|
*/
|
|
47
47
|
declare const reactiveFunctions: {
|
|
48
|
-
readonly batchReactive:
|
|
48
|
+
readonly batchReactive: questpie143.JsonRouteDefinition<{
|
|
49
49
|
collection: string;
|
|
50
50
|
type: "collection" | "global";
|
|
51
51
|
requests: {
|
|
@@ -58,8 +58,8 @@ declare const reactiveFunctions: {
|
|
|
58
58
|
}[];
|
|
59
59
|
formData?: Record<string, unknown> | undefined;
|
|
60
60
|
prevData?: Record<string, unknown> | null | undefined;
|
|
61
|
-
}, any>;
|
|
62
|
-
readonly fieldOptions:
|
|
61
|
+
}, any, questpie143.JsonRouteParams>;
|
|
62
|
+
readonly fieldOptions: questpie143.JsonRouteDefinition<{
|
|
63
63
|
collection: string;
|
|
64
64
|
type: "collection" | "global";
|
|
65
65
|
field: string;
|
|
@@ -68,7 +68,7 @@ declare const reactiveFunctions: {
|
|
|
68
68
|
page: number;
|
|
69
69
|
limit: number;
|
|
70
70
|
siblingData?: Record<string, unknown> | null | undefined;
|
|
71
|
-
}, any>;
|
|
71
|
+
}, any, questpie143.JsonRouteParams>;
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
export { batchReactive, fieldOptions, reactiveFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie125 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/setup.d.ts
|
|
4
4
|
|
|
@@ -20,7 +20,7 @@ import * as questpie124 from "questpie";
|
|
|
20
20
|
* }
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
declare const isSetupRequired:
|
|
23
|
+
declare const isSetupRequired: questpie125.JsonRouteDefinition<Record<string, never>, any, questpie125.JsonRouteParams>;
|
|
24
24
|
/**
|
|
25
25
|
* Create the first admin user in the system.
|
|
26
26
|
* This function only works when no users exist (setup mode).
|
|
@@ -43,21 +43,21 @@ declare const isSetupRequired: questpie124.JsonRouteDefinition<Record<string, ne
|
|
|
43
43
|
* }
|
|
44
44
|
* ```
|
|
45
45
|
*/
|
|
46
|
-
declare const createFirstAdmin:
|
|
46
|
+
declare const createFirstAdmin: questpie125.JsonRouteDefinition<{
|
|
47
47
|
email: string;
|
|
48
48
|
password: string;
|
|
49
49
|
name: string;
|
|
50
|
-
}, any>;
|
|
50
|
+
}, any, questpie125.JsonRouteParams>;
|
|
51
51
|
/**
|
|
52
52
|
* Bundle of setup-related functions.
|
|
53
53
|
*/
|
|
54
54
|
declare const setupFunctions: {
|
|
55
|
-
readonly isSetupRequired:
|
|
56
|
-
readonly createFirstAdmin:
|
|
55
|
+
readonly isSetupRequired: questpie125.JsonRouteDefinition<Record<string, never>, any, questpie125.JsonRouteParams>;
|
|
56
|
+
readonly createFirstAdmin: questpie125.JsonRouteDefinition<{
|
|
57
57
|
email: string;
|
|
58
58
|
password: string;
|
|
59
59
|
name: string;
|
|
60
|
-
}, any>;
|
|
60
|
+
}, any, questpie125.JsonRouteParams>;
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
63
|
export { createFirstAdmin, isSetupRequired, setupFunctions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as questpie430 from "questpie";
|
|
2
2
|
|
|
3
3
|
//#region src/server/modules/admin/routes/translations.d.ts
|
|
4
4
|
|
|
@@ -17,10 +17,10 @@ import * as questpie441 from "questpie";
|
|
|
17
17
|
* Bundle of translation-related functions.
|
|
18
18
|
*/
|
|
19
19
|
declare const translationFunctions: {
|
|
20
|
-
readonly getAdminTranslations:
|
|
20
|
+
readonly getAdminTranslations: questpie430.JsonRouteDefinition<{
|
|
21
21
|
locale: string;
|
|
22
|
-
}, any>;
|
|
23
|
-
readonly getAdminLocales:
|
|
22
|
+
}, any, questpie430.JsonRouteParams>;
|
|
23
|
+
readonly getAdminLocales: questpie430.JsonRouteDefinition<Record<string, never> | undefined, any, questpie430.JsonRouteParams>;
|
|
24
24
|
};
|
|
25
25
|
//#endregion
|
|
26
26
|
export { translationFunctions };
|
|
@@ -22,11 +22,11 @@ import * as questpie69 from "questpie";
|
|
|
22
22
|
*/
|
|
23
23
|
declare const fetchWidgetData: questpie69.JsonRouteDefinition<{
|
|
24
24
|
widgetId: string;
|
|
25
|
-
}, any>;
|
|
25
|
+
}, any, questpie69.JsonRouteParams>;
|
|
26
26
|
declare const widgetDataFunctions: {
|
|
27
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,6 +1,6 @@
|
|
|
1
1
|
import { FilterOperator, FilterRule, SortConfig, ViewConfiguration } from "../../../../shared/types/saved-views.types.mjs";
|
|
2
2
|
import * as questpie_shared15 from "questpie/shared";
|
|
3
|
-
import * as
|
|
3
|
+
import * as questpie89 from "questpie";
|
|
4
4
|
import * as drizzle_orm_pg_core22 from "drizzle-orm/pg-core";
|
|
5
5
|
import * as drizzle_orm5 from "drizzle-orm";
|
|
6
6
|
import * as questpie_src_server_modules_core_fields_email_js2 from "questpie/src/server/modules/core/fields/email.js";
|
|
@@ -33,22 +33,22 @@ import * as questpie_src_server_modules_core_fields_json_js2 from "questpie/src/
|
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
declare const savedViewsCollection:
|
|
37
|
-
readonly text: typeof
|
|
38
|
-
readonly textarea: typeof
|
|
36
|
+
declare const savedViewsCollection: questpie89.CollectionBuilder<questpie_shared15.Override<questpie_shared15.Override<questpie89.EmptyCollectionState<"admin_saved_views", undefined, {
|
|
37
|
+
readonly text: typeof questpie89.text;
|
|
38
|
+
readonly textarea: typeof questpie89.textarea;
|
|
39
39
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js2.email;
|
|
40
|
-
readonly url: typeof
|
|
41
|
-
readonly number: typeof
|
|
42
|
-
readonly boolean: typeof
|
|
43
|
-
readonly date: typeof
|
|
44
|
-
readonly datetime: typeof
|
|
45
|
-
readonly time: typeof
|
|
46
|
-
readonly select: typeof
|
|
47
|
-
readonly upload: typeof
|
|
48
|
-
readonly relation: typeof
|
|
49
|
-
readonly object: typeof
|
|
40
|
+
readonly url: typeof questpie89.url;
|
|
41
|
+
readonly number: typeof questpie89.number;
|
|
42
|
+
readonly boolean: typeof questpie89.boolean;
|
|
43
|
+
readonly date: typeof questpie89.date;
|
|
44
|
+
readonly datetime: typeof questpie89.datetime;
|
|
45
|
+
readonly time: typeof questpie89.time;
|
|
46
|
+
readonly select: typeof questpie89.select;
|
|
47
|
+
readonly upload: typeof questpie89.upload;
|
|
48
|
+
readonly relation: typeof questpie89.relation;
|
|
49
|
+
readonly object: typeof questpie89.object;
|
|
50
50
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js2.json;
|
|
51
|
-
readonly from: typeof
|
|
51
|
+
readonly from: typeof questpie89.from;
|
|
52
52
|
}>, {
|
|
53
53
|
fields: {
|
|
54
54
|
readonly userId: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -59,31 +59,31 @@ declare const savedViewsCollection: questpie96.CollectionBuilder<questpie_shared
|
|
|
59
59
|
};
|
|
60
60
|
localized: readonly string[];
|
|
61
61
|
fieldDefinitions: {
|
|
62
|
-
readonly userId:
|
|
62
|
+
readonly userId: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
63
63
|
notNull: true;
|
|
64
64
|
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
65
65
|
} & {
|
|
66
66
|
label: questpie_shared15.I18nText;
|
|
67
|
-
},
|
|
68
|
-
readonly collectionName:
|
|
67
|
+
}, questpie89.TextFieldMethods>;
|
|
68
|
+
readonly collectionName: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
69
69
|
notNull: true;
|
|
70
70
|
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
71
71
|
} & {
|
|
72
72
|
label: questpie_shared15.I18nText;
|
|
73
|
-
},
|
|
74
|
-
readonly name:
|
|
73
|
+
}, questpie89.TextFieldMethods>;
|
|
74
|
+
readonly name: questpie89.FieldWithMethods<Omit<questpie89.TextFieldState, "notNull" | "column"> & {
|
|
75
75
|
notNull: true;
|
|
76
76
|
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgVarcharBuilder<[string, ...string[]]>>;
|
|
77
77
|
} & {
|
|
78
78
|
label: questpie_shared15.I18nText;
|
|
79
|
-
},
|
|
80
|
-
readonly configuration:
|
|
79
|
+
}, questpie89.TextFieldMethods>;
|
|
80
|
+
readonly configuration: questpie89.Field<Omit<questpie89.JsonFieldState, "notNull" | "column"> & {
|
|
81
81
|
notNull: true;
|
|
82
82
|
column: drizzle_orm5.NotNull<drizzle_orm_pg_core22.PgJsonbBuilder>;
|
|
83
83
|
} & {
|
|
84
84
|
label: questpie_shared15.I18nText;
|
|
85
85
|
}>;
|
|
86
|
-
readonly isDefault:
|
|
86
|
+
readonly isDefault: questpie89.Field<Omit<questpie89.BooleanFieldState, "column" | "hasDefault"> & {
|
|
87
87
|
hasDefault: true;
|
|
88
88
|
column: drizzle_orm5.HasDefault<drizzle_orm_pg_core22.PgBooleanBuilder>;
|
|
89
89
|
} & {
|
|
@@ -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
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as questpie_shared0 from "questpie/shared";
|
|
2
|
-
import * as
|
|
2
|
+
import * as questpie21 from "questpie";
|
|
3
3
|
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
4
4
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
5
5
|
import * as questpie_src_server_modules_core_fields_email_js0 from "questpie/src/server/modules/core/fields/email.js";
|
|
@@ -19,22 +19,22 @@ import * as questpie_src_server_fields_operators_builtin_js0 from "questpie/src/
|
|
|
19
19
|
* - update: disallowed
|
|
20
20
|
* - read: allowed (for admin UI display)
|
|
21
21
|
*/
|
|
22
|
-
declare const auditLogCollection:
|
|
23
|
-
readonly text: typeof
|
|
24
|
-
readonly textarea: typeof
|
|
22
|
+
declare const auditLogCollection: questpie21.CollectionBuilder<questpie_shared0.Override<questpie_shared0.Override<questpie_shared0.Override<questpie_shared0.Override<questpie_shared0.Override<questpie21.EmptyCollectionState<"admin_audit_log", undefined, {
|
|
23
|
+
readonly text: typeof questpie21.text;
|
|
24
|
+
readonly textarea: typeof questpie21.textarea;
|
|
25
25
|
readonly email: typeof questpie_src_server_modules_core_fields_email_js0.email;
|
|
26
|
-
readonly url: typeof
|
|
27
|
-
readonly number: typeof
|
|
28
|
-
readonly boolean: typeof
|
|
29
|
-
readonly date: typeof
|
|
30
|
-
readonly datetime: typeof
|
|
31
|
-
readonly time: typeof
|
|
32
|
-
readonly select: typeof
|
|
33
|
-
readonly upload: typeof
|
|
34
|
-
readonly relation: typeof
|
|
35
|
-
readonly object: typeof
|
|
26
|
+
readonly url: typeof questpie21.url;
|
|
27
|
+
readonly number: typeof questpie21.number;
|
|
28
|
+
readonly boolean: typeof questpie21.boolean;
|
|
29
|
+
readonly date: typeof questpie21.date;
|
|
30
|
+
readonly datetime: typeof questpie21.datetime;
|
|
31
|
+
readonly time: typeof questpie21.time;
|
|
32
|
+
readonly select: typeof questpie21.select;
|
|
33
|
+
readonly upload: typeof questpie21.upload;
|
|
34
|
+
readonly relation: typeof questpie21.relation;
|
|
35
|
+
readonly object: typeof questpie21.object;
|
|
36
36
|
readonly json: typeof questpie_src_server_modules_core_fields_json_js0.json;
|
|
37
|
-
readonly from: typeof
|
|
37
|
+
readonly from: typeof questpie21.from;
|
|
38
38
|
}>, {
|
|
39
39
|
fields: {
|
|
40
40
|
readonly action: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
@@ -52,98 +52,98 @@ declare const auditLogCollection: questpie16.CollectionBuilder<questpie_shared0.
|
|
|
52
52
|
localized: readonly string[];
|
|
53
53
|
fieldDefinitions: {
|
|
54
54
|
/** Action performed: create, update, delete, transition, custom */
|
|
55
|
-
readonly action:
|
|
55
|
+
readonly action: questpie21.FieldWithMethods<Omit<questpie21.TextFieldState, "notNull" | "column"> & {
|
|
56
56
|
notNull: true;
|
|
57
57
|
column: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
58
58
|
} & {
|
|
59
59
|
label: questpie_shared0.I18nText;
|
|
60
|
-
},
|
|
60
|
+
}, questpie21.TextFieldMethods>;
|
|
61
61
|
/** Resource type: collection, global, auth, system, custom */
|
|
62
|
-
readonly resourceType:
|
|
62
|
+
readonly resourceType: questpie21.FieldWithMethods<Omit<questpie21.TextFieldState, "notNull" | "column"> & {
|
|
63
63
|
notNull: true;
|
|
64
64
|
column: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
65
65
|
} & {
|
|
66
66
|
label: questpie_shared0.I18nText;
|
|
67
|
-
},
|
|
67
|
+
}, questpie21.TextFieldMethods>;
|
|
68
68
|
/** Resource slug (collection/global name) */
|
|
69
|
-
readonly resource:
|
|
69
|
+
readonly resource: questpie21.FieldWithMethods<Omit<questpie21.TextFieldState, "notNull" | "column"> & {
|
|
70
70
|
notNull: true;
|
|
71
71
|
column: drizzle_orm0.NotNull<drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>>;
|
|
72
72
|
} & {
|
|
73
73
|
label: questpie_shared0.I18nText;
|
|
74
|
-
},
|
|
74
|
+
}, questpie21.TextFieldMethods>;
|
|
75
75
|
/** ID of the specific record (null for globals) */
|
|
76
|
-
readonly resourceId:
|
|
76
|
+
readonly resourceId: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
77
77
|
type: "text";
|
|
78
78
|
data: string;
|
|
79
79
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
80
80
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
81
81
|
} & {
|
|
82
82
|
label: questpie_shared0.I18nText;
|
|
83
|
-
},
|
|
83
|
+
}, questpie21.TextFieldMethods>;
|
|
84
84
|
/** Denormalized display label for the affected record */
|
|
85
|
-
readonly resourceLabel:
|
|
85
|
+
readonly resourceLabel: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
86
86
|
type: "text";
|
|
87
87
|
data: string;
|
|
88
88
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
89
89
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
90
90
|
} & {
|
|
91
91
|
label: questpie_shared0.I18nText;
|
|
92
|
-
},
|
|
92
|
+
}, questpie21.TextFieldMethods>;
|
|
93
93
|
/** User who performed the action */
|
|
94
|
-
readonly userId:
|
|
94
|
+
readonly userId: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
95
95
|
type: "text";
|
|
96
96
|
data: string;
|
|
97
97
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
98
98
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
99
99
|
} & {
|
|
100
100
|
label: questpie_shared0.I18nText;
|
|
101
|
-
},
|
|
101
|
+
}, questpie21.TextFieldMethods>;
|
|
102
102
|
/** Denormalized user display name */
|
|
103
|
-
readonly userName:
|
|
103
|
+
readonly userName: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
104
104
|
type: "text";
|
|
105
105
|
data: string;
|
|
106
106
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
107
107
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
108
108
|
} & {
|
|
109
109
|
label: questpie_shared0.I18nText;
|
|
110
|
-
},
|
|
110
|
+
}, questpie21.TextFieldMethods>;
|
|
111
111
|
/** Locale context of the operation */
|
|
112
|
-
readonly locale:
|
|
112
|
+
readonly locale: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
113
113
|
type: "text";
|
|
114
114
|
data: string;
|
|
115
115
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
116
116
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
117
117
|
} & {
|
|
118
118
|
label: questpie_shared0.I18nText;
|
|
119
|
-
},
|
|
119
|
+
}, questpie21.TextFieldMethods>;
|
|
120
120
|
/** Field-level diffs: { field: { from, to } } or null */
|
|
121
|
-
readonly changes:
|
|
121
|
+
readonly changes: questpie21.Field<questpie21.DefaultFieldState & {
|
|
122
122
|
type: "json";
|
|
123
|
-
data:
|
|
123
|
+
data: questpie21.JsonValue;
|
|
124
124
|
column: drizzle_orm_pg_core0.PgJsonbBuilder;
|
|
125
125
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.basicOps;
|
|
126
126
|
} & {
|
|
127
127
|
label: questpie_shared0.I18nText;
|
|
128
128
|
}>;
|
|
129
129
|
/** Extra context metadata */
|
|
130
|
-
readonly metadata:
|
|
130
|
+
readonly metadata: questpie21.Field<questpie21.DefaultFieldState & {
|
|
131
131
|
type: "json";
|
|
132
|
-
data:
|
|
132
|
+
data: questpie21.JsonValue;
|
|
133
133
|
column: drizzle_orm_pg_core0.PgJsonbBuilder;
|
|
134
134
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.basicOps;
|
|
135
135
|
} & {
|
|
136
136
|
label: questpie_shared0.I18nText;
|
|
137
137
|
}>;
|
|
138
138
|
/** Human-readable title: "User Action ResourceType 'ResourceLabel'" */
|
|
139
|
-
readonly title:
|
|
139
|
+
readonly title: questpie21.FieldWithMethods<questpie21.DefaultFieldState & {
|
|
140
140
|
type: "text";
|
|
141
141
|
data: string;
|
|
142
142
|
column: drizzle_orm_pg_core0.PgVarcharBuilder<[string, ...string[]]>;
|
|
143
143
|
operators: typeof questpie_src_server_fields_operators_builtin_js0.stringOps;
|
|
144
144
|
} & {
|
|
145
145
|
label: questpie_shared0.I18nText;
|
|
146
|
-
},
|
|
146
|
+
}, questpie21.TextFieldMethods>;
|
|
147
147
|
};
|
|
148
148
|
}>, {
|
|
149
149
|
options: {
|