@sonicjs-cms/core 2.10.0 → 2.11.0
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/{chunk-CJYFSKH7.js → chunk-2MXF4RYZ.js} +3 -3
- package/dist/{chunk-CJYFSKH7.js.map → chunk-2MXF4RYZ.js.map} +1 -1
- package/dist/{chunk-MNFY6DWY.cjs → chunk-56GUBLJE.cjs} +7 -7
- package/dist/{chunk-MNFY6DWY.cjs.map → chunk-56GUBLJE.cjs.map} +1 -1
- package/dist/{chunk-IIBRG5S5.cjs → chunk-6BVLPACH.cjs} +408 -2
- package/dist/chunk-6BVLPACH.cjs.map +1 -0
- package/dist/{chunk-RCA6R6VE.cjs → chunk-ASAEJ4B7.cjs} +315 -162
- package/dist/chunk-ASAEJ4B7.cjs.map +1 -0
- package/dist/{chunk-IT2TC4ZD.cjs → chunk-B2ASV5RD.cjs} +13 -7
- package/dist/chunk-B2ASV5RD.cjs.map +1 -0
- package/dist/{chunk-IZWNIUJI.js → chunk-BUU2US2Z.js} +3 -3
- package/dist/{chunk-IZWNIUJI.js.map → chunk-BUU2US2Z.js.map} +1 -1
- package/dist/{chunk-ZMVWMJ3S.cjs → chunk-DE5YTNCD.cjs} +9 -2
- package/dist/chunk-DE5YTNCD.cjs.map +1 -0
- package/dist/{chunk-4TTMQQC7.js → chunk-GKRGDJGG.js} +10 -4
- package/dist/chunk-GKRGDJGG.js.map +1 -0
- package/dist/{chunk-6O3RJV3C.js → chunk-H55AYIRI.js} +9 -2
- package/dist/chunk-H55AYIRI.js.map +1 -0
- package/dist/{chunk-JTNUM7JE.js → chunk-JTQBNSZX.js} +187 -34
- package/dist/chunk-JTQBNSZX.js.map +1 -0
- package/dist/{chunk-64APW3DW.cjs → chunk-LFAQUR7P.cjs} +9 -2
- package/dist/chunk-LFAQUR7P.cjs.map +1 -0
- package/dist/{chunk-27AOVQTR.js → chunk-NMLFKXWW.js} +402 -3
- package/dist/chunk-NMLFKXWW.js.map +1 -0
- package/dist/{chunk-EKPLKUZT.cjs → chunk-QLPFENZ2.cjs} +3 -3
- package/dist/{chunk-EKPLKUZT.cjs.map → chunk-QLPFENZ2.cjs.map} +1 -1
- package/dist/{chunk-KYGRJCZM.cjs → chunk-QTFKZBLC.cjs} +3 -2
- package/dist/chunk-QTFKZBLC.cjs.map +1 -0
- package/dist/{chunk-LOUJRBXV.js → chunk-QXOZI5Q2.js} +3 -2
- package/dist/chunk-QXOZI5Q2.js.map +1 -0
- package/dist/{chunk-7JMMLHPQ.js → chunk-VJCLJH3X.js} +9 -2
- package/dist/chunk-VJCLJH3X.js.map +1 -0
- package/dist/index.cjs +751 -152
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +125 -5
- package/dist/index.d.ts +125 -5
- package/dist/index.js +582 -15
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +29 -29
- package/dist/middleware.js +3 -3
- package/dist/migrations-UFVJTPVT.js +4 -0
- package/dist/{migrations-N2C2VPJU.js.map → migrations-UFVJTPVT.js.map} +1 -1
- package/dist/migrations-VNYOSUNE.cjs +13 -0
- package/dist/{migrations-ONIAY6GK.cjs.map → migrations-VNYOSUNE.cjs.map} +1 -1
- package/dist/{plugin-0Xogrln-.d.cts → plugin-DDYetMF-.d.cts} +1 -0
- package/dist/{plugin-0Xogrln-.d.ts → plugin-DDYetMF-.d.ts} +1 -0
- package/dist/{plugin-bootstrap-fpG98Otb.d.cts → plugin-bootstrap-DCXpeQVb.d.cts} +229 -1
- package/dist/{plugin-bootstrap-WmpvYM5w.d.ts → plugin-bootstrap-DXBAYaqM.d.ts} +229 -1
- package/dist/{plugin-manager-GcIeb226.d.cts → plugin-manager-BoM3Q7o7.d.cts} +1 -1
- package/dist/{plugin-manager-Clf2gXwj.d.ts → plugin-manager-Efx9RyDX.d.ts} +1 -1
- package/dist/plugins.cjs +10 -10
- package/dist/plugins.d.cts +2 -2
- package/dist/plugins.d.ts +2 -2
- package/dist/plugins.js +2 -2
- package/dist/routes.cjs +29 -29
- package/dist/routes.js +6 -6
- package/dist/services.cjs +60 -32
- package/dist/services.d.cts +1 -1
- package/dist/services.d.ts +1 -1
- package/dist/services.js +3 -3
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/migrations/033_form_content_integration.sql +19 -0
- package/package.json +1 -1
- package/dist/chunk-27AOVQTR.js.map +0 -1
- package/dist/chunk-4TTMQQC7.js.map +0 -1
- package/dist/chunk-64APW3DW.cjs.map +0 -1
- package/dist/chunk-6O3RJV3C.js.map +0 -1
- package/dist/chunk-7JMMLHPQ.js.map +0 -1
- package/dist/chunk-IIBRG5S5.cjs.map +0 -1
- package/dist/chunk-IT2TC4ZD.cjs.map +0 -1
- package/dist/chunk-JTNUM7JE.js.map +0 -1
- package/dist/chunk-KYGRJCZM.cjs.map +0 -1
- package/dist/chunk-LOUJRBXV.js.map +0 -1
- package/dist/chunk-RCA6R6VE.cjs.map +0 -1
- package/dist/chunk-ZMVWMJ3S.cjs.map +0 -1
- package/dist/migrations-N2C2VPJU.js +0 -4
- package/dist/migrations-ONIAY6GK.cjs +0 -13
package/dist/middleware.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkB2ASV5RD_cjs = require('./chunk-B2ASV5RD.cjs');
|
|
4
|
+
require('./chunk-6BVLPACH.cjs');
|
|
5
|
+
require('./chunk-DE5YTNCD.cjs');
|
|
6
6
|
require('./chunk-RCQ2HIQD.cjs');
|
|
7
7
|
require('./chunk-IGJUBJBW.cjs');
|
|
8
8
|
|
|
@@ -10,107 +10,107 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AuthManager", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkB2ASV5RD_cjs.AuthManager; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PermissionManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkB2ASV5RD_cjs.PermissionManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkB2ASV5RD_cjs.bootstrapMiddleware; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkB2ASV5RD_cjs.cacheHeaders; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkB2ASV5RD_cjs.compressionMiddleware; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "csrfProtection", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkB2ASV5RD_cjs.csrfProtection; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkB2ASV5RD_cjs.detailedLoggingMiddleware; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "generateCsrfToken", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkB2ASV5RD_cjs.generateCsrfToken; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkB2ASV5RD_cjs.getActivePlugins; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isPluginActive", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkB2ASV5RD_cjs.isPluginActive; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "logActivity", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkB2ASV5RD_cjs.logActivity; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkB2ASV5RD_cjs.loggingMiddleware; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "metricsMiddleware", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkB2ASV5RD_cjs.metricsMiddleware; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "optionalAuth", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkB2ASV5RD_cjs.optionalAuth; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkB2ASV5RD_cjs.performanceLoggingMiddleware; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "rateLimit", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkB2ASV5RD_cjs.rateLimit; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkB2ASV5RD_cjs.requireActivePlugin; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkB2ASV5RD_cjs.requireActivePlugins; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkB2ASV5RD_cjs.requireAnyPermission; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "requireAuth", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkB2ASV5RD_cjs.requireAuth; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "requirePermission", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkB2ASV5RD_cjs.requirePermission; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "requireRole", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkB2ASV5RD_cjs.requireRole; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "securityHeaders", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkB2ASV5RD_cjs.securityHeadersMiddleware; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkB2ASV5RD_cjs.securityLoggingMiddleware; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "validateCsrfToken", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkB2ASV5RD_cjs.validateCsrfToken; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "verifySecurityConfig", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkB2ASV5RD_cjs.verifySecurityConfig; }
|
|
114
114
|
});
|
|
115
115
|
//# sourceMappingURL=middleware.cjs.map
|
|
116
116
|
//# sourceMappingURL=middleware.cjs.map
|
package/dist/middleware.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, rateLimit, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware, validateCsrfToken, verifySecurityConfig } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, rateLimit, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware, validateCsrfToken, verifySecurityConfig } from './chunk-GKRGDJGG.js';
|
|
2
|
+
import './chunk-NMLFKXWW.js';
|
|
3
|
+
import './chunk-H55AYIRI.js';
|
|
4
4
|
import './chunk-FICTAGD4.js';
|
|
5
5
|
import './chunk-V4OQ3NZ2.js';
|
|
6
6
|
//# sourceMappingURL=middleware.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-UFVJTPVT.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDE5YTNCD_cjs = require('./chunk-DE5YTNCD.cjs');
|
|
4
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkDE5YTNCD_cjs.MigrationService; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=migrations-VNYOSUNE.cjs.map
|
|
13
|
+
//# sourceMappingURL=migrations-VNYOSUNE.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-VNYOSUNE.cjs"}
|
|
@@ -336,6 +336,7 @@ declare const HOOKS: {
|
|
|
336
336
|
readonly USER_LOGIN: "user:login";
|
|
337
337
|
readonly USER_LOGOUT: "user:logout";
|
|
338
338
|
readonly CONTENT_CREATE: "content:create";
|
|
339
|
+
readonly CONTENT_READ: "content:read";
|
|
339
340
|
readonly CONTENT_UPDATE: "content:update";
|
|
340
341
|
readonly CONTENT_DELETE: "content:delete";
|
|
341
342
|
readonly CONTENT_PUBLISH: "content:publish";
|
|
@@ -336,6 +336,7 @@ declare const HOOKS: {
|
|
|
336
336
|
readonly USER_LOGIN: "user:login";
|
|
337
337
|
readonly USER_LOGOUT: "user:logout";
|
|
338
338
|
readonly CONTENT_CREATE: "content:create";
|
|
339
|
+
readonly CONTENT_READ: "content:read";
|
|
339
340
|
readonly CONTENT_UPDATE: "content:update";
|
|
340
341
|
readonly CONTENT_DELETE: "content:delete";
|
|
341
342
|
readonly CONTENT_PUBLISH: "content:publish";
|
|
@@ -73,6 +73,63 @@ declare function fullCollectionSync(db: D1Database): Promise<{
|
|
|
73
73
|
removed: string[];
|
|
74
74
|
}>;
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Form-Collection Sync Service
|
|
78
|
+
*
|
|
79
|
+
* Bridge logic that creates "shadow collections" for forms and
|
|
80
|
+
* dual-writes form submissions to the content table, enabling
|
|
81
|
+
* unified content management for form submissions.
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Convert a Form.io schema into a collection JSON schema definition
|
|
85
|
+
*/
|
|
86
|
+
declare function deriveCollectionSchemaFromFormio(formioSchema: any): any;
|
|
87
|
+
/**
|
|
88
|
+
* Derive a human-readable title from form submission data
|
|
89
|
+
*/
|
|
90
|
+
declare function deriveSubmissionTitle(data: Record<string, any>, formDisplayName: string): string;
|
|
91
|
+
/**
|
|
92
|
+
* Map form submission status to content status.
|
|
93
|
+
* Form submissions are complete data — they default to 'published'.
|
|
94
|
+
* Only rejected/spam submissions get demoted.
|
|
95
|
+
*/
|
|
96
|
+
declare function mapFormStatusToContentStatus(formStatus: string): string;
|
|
97
|
+
/**
|
|
98
|
+
* Create or update a shadow collection for a given form
|
|
99
|
+
*/
|
|
100
|
+
declare function syncFormCollection(db: D1Database, form: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
display_name: string;
|
|
104
|
+
description?: string | null;
|
|
105
|
+
formio_schema: any;
|
|
106
|
+
is_active: number | boolean;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
collectionId: string;
|
|
109
|
+
status: 'created' | 'updated' | 'unchanged';
|
|
110
|
+
}>;
|
|
111
|
+
/**
|
|
112
|
+
* Sync all active forms to shadow collections
|
|
113
|
+
*/
|
|
114
|
+
declare function syncAllFormCollections(db: D1Database): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Create a content item from a form submission
|
|
117
|
+
*/
|
|
118
|
+
declare function createContentFromSubmission(db: D1Database, submissionData: Record<string, any>, form: {
|
|
119
|
+
id: string;
|
|
120
|
+
name: string;
|
|
121
|
+
display_name: string;
|
|
122
|
+
}, submissionId: string, metadata?: {
|
|
123
|
+
ipAddress?: string | null;
|
|
124
|
+
userAgent?: string | null;
|
|
125
|
+
userEmail?: string | null;
|
|
126
|
+
userId?: string | null;
|
|
127
|
+
}): Promise<string | null>;
|
|
128
|
+
/**
|
|
129
|
+
* Backfill existing form submissions that don't have a content_id
|
|
130
|
+
*/
|
|
131
|
+
declare function backfillFormSubmissions(db: D1Database, formId: string, collectionId: string): Promise<number>;
|
|
132
|
+
|
|
76
133
|
interface Migration {
|
|
77
134
|
id: string;
|
|
78
135
|
name: string;
|
|
@@ -515,6 +572,44 @@ declare const collections: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
515
572
|
identity: undefined;
|
|
516
573
|
generated: undefined;
|
|
517
574
|
}, {}, {}>;
|
|
575
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
576
|
+
name: "source_type";
|
|
577
|
+
tableName: "collections";
|
|
578
|
+
dataType: "string";
|
|
579
|
+
columnType: "SQLiteText";
|
|
580
|
+
data: string;
|
|
581
|
+
driverParam: string;
|
|
582
|
+
notNull: false;
|
|
583
|
+
hasDefault: true;
|
|
584
|
+
isPrimaryKey: false;
|
|
585
|
+
isAutoincrement: false;
|
|
586
|
+
hasRuntimeDefault: false;
|
|
587
|
+
enumValues: [string, ...string[]];
|
|
588
|
+
baseColumn: never;
|
|
589
|
+
identity: undefined;
|
|
590
|
+
generated: undefined;
|
|
591
|
+
}, {}, {
|
|
592
|
+
length: number | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
595
|
+
name: "source_id";
|
|
596
|
+
tableName: "collections";
|
|
597
|
+
dataType: "string";
|
|
598
|
+
columnType: "SQLiteText";
|
|
599
|
+
data: string;
|
|
600
|
+
driverParam: string;
|
|
601
|
+
notNull: false;
|
|
602
|
+
hasDefault: false;
|
|
603
|
+
isPrimaryKey: false;
|
|
604
|
+
isAutoincrement: false;
|
|
605
|
+
hasRuntimeDefault: false;
|
|
606
|
+
enumValues: [string, ...string[]];
|
|
607
|
+
baseColumn: never;
|
|
608
|
+
identity: undefined;
|
|
609
|
+
generated: undefined;
|
|
610
|
+
}, {}, {
|
|
611
|
+
length: number | undefined;
|
|
612
|
+
}>;
|
|
518
613
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
519
614
|
name: "created_at";
|
|
520
615
|
tableName: "collections";
|
|
@@ -3068,6 +3163,44 @@ declare const insertCollectionSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
3068
3163
|
identity: undefined;
|
|
3069
3164
|
generated: undefined;
|
|
3070
3165
|
}, {}, {}>;
|
|
3166
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3167
|
+
name: "source_type";
|
|
3168
|
+
tableName: "collections";
|
|
3169
|
+
dataType: "string";
|
|
3170
|
+
columnType: "SQLiteText";
|
|
3171
|
+
data: string;
|
|
3172
|
+
driverParam: string;
|
|
3173
|
+
notNull: false;
|
|
3174
|
+
hasDefault: true;
|
|
3175
|
+
isPrimaryKey: false;
|
|
3176
|
+
isAutoincrement: false;
|
|
3177
|
+
hasRuntimeDefault: false;
|
|
3178
|
+
enumValues: [string, ...string[]];
|
|
3179
|
+
baseColumn: never;
|
|
3180
|
+
identity: undefined;
|
|
3181
|
+
generated: undefined;
|
|
3182
|
+
}, {}, {
|
|
3183
|
+
length: number | undefined;
|
|
3184
|
+
}>;
|
|
3185
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3186
|
+
name: "source_id";
|
|
3187
|
+
tableName: "collections";
|
|
3188
|
+
dataType: "string";
|
|
3189
|
+
columnType: "SQLiteText";
|
|
3190
|
+
data: string;
|
|
3191
|
+
driverParam: string;
|
|
3192
|
+
notNull: false;
|
|
3193
|
+
hasDefault: false;
|
|
3194
|
+
isPrimaryKey: false;
|
|
3195
|
+
isAutoincrement: false;
|
|
3196
|
+
hasRuntimeDefault: false;
|
|
3197
|
+
enumValues: [string, ...string[]];
|
|
3198
|
+
baseColumn: never;
|
|
3199
|
+
identity: undefined;
|
|
3200
|
+
generated: undefined;
|
|
3201
|
+
}, {}, {
|
|
3202
|
+
length: number | undefined;
|
|
3203
|
+
}>;
|
|
3071
3204
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3072
3205
|
name: "created_at";
|
|
3073
3206
|
tableName: "collections";
|
|
@@ -3234,6 +3367,44 @@ declare const selectCollectionSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
3234
3367
|
identity: undefined;
|
|
3235
3368
|
generated: undefined;
|
|
3236
3369
|
}, {}, {}>;
|
|
3370
|
+
sourceType: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3371
|
+
name: "source_type";
|
|
3372
|
+
tableName: "collections";
|
|
3373
|
+
dataType: "string";
|
|
3374
|
+
columnType: "SQLiteText";
|
|
3375
|
+
data: string;
|
|
3376
|
+
driverParam: string;
|
|
3377
|
+
notNull: false;
|
|
3378
|
+
hasDefault: true;
|
|
3379
|
+
isPrimaryKey: false;
|
|
3380
|
+
isAutoincrement: false;
|
|
3381
|
+
hasRuntimeDefault: false;
|
|
3382
|
+
enumValues: [string, ...string[]];
|
|
3383
|
+
baseColumn: never;
|
|
3384
|
+
identity: undefined;
|
|
3385
|
+
generated: undefined;
|
|
3386
|
+
}, {}, {
|
|
3387
|
+
length: number | undefined;
|
|
3388
|
+
}>;
|
|
3389
|
+
sourceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3390
|
+
name: "source_id";
|
|
3391
|
+
tableName: "collections";
|
|
3392
|
+
dataType: "string";
|
|
3393
|
+
columnType: "SQLiteText";
|
|
3394
|
+
data: string;
|
|
3395
|
+
driverParam: string;
|
|
3396
|
+
notNull: false;
|
|
3397
|
+
hasDefault: false;
|
|
3398
|
+
isPrimaryKey: false;
|
|
3399
|
+
isAutoincrement: false;
|
|
3400
|
+
hasRuntimeDefault: false;
|
|
3401
|
+
enumValues: [string, ...string[]];
|
|
3402
|
+
baseColumn: never;
|
|
3403
|
+
identity: undefined;
|
|
3404
|
+
generated: undefined;
|
|
3405
|
+
}, {}, {
|
|
3406
|
+
length: number | undefined;
|
|
3407
|
+
}>;
|
|
3237
3408
|
createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3238
3409
|
name: "created_at";
|
|
3239
3410
|
tableName: "collections";
|
|
@@ -8728,6 +8899,25 @@ declare const formSubmissions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
8728
8899
|
identity: undefined;
|
|
8729
8900
|
generated: undefined;
|
|
8730
8901
|
}, {}, {}>;
|
|
8902
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8903
|
+
name: "content_id";
|
|
8904
|
+
tableName: "form_submissions";
|
|
8905
|
+
dataType: "string";
|
|
8906
|
+
columnType: "SQLiteText";
|
|
8907
|
+
data: string;
|
|
8908
|
+
driverParam: string;
|
|
8909
|
+
notNull: false;
|
|
8910
|
+
hasDefault: false;
|
|
8911
|
+
isPrimaryKey: false;
|
|
8912
|
+
isAutoincrement: false;
|
|
8913
|
+
hasRuntimeDefault: false;
|
|
8914
|
+
enumValues: [string, ...string[]];
|
|
8915
|
+
baseColumn: never;
|
|
8916
|
+
identity: undefined;
|
|
8917
|
+
generated: undefined;
|
|
8918
|
+
}, {}, {
|
|
8919
|
+
length: number | undefined;
|
|
8920
|
+
}>;
|
|
8731
8921
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
8732
8922
|
name: "submitted_at";
|
|
8733
8923
|
tableName: "form_submissions";
|
|
@@ -9884,6 +10074,25 @@ declare const insertFormSubmissionSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
9884
10074
|
identity: undefined;
|
|
9885
10075
|
generated: undefined;
|
|
9886
10076
|
}, {}, {}>;
|
|
10077
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10078
|
+
name: "content_id";
|
|
10079
|
+
tableName: "form_submissions";
|
|
10080
|
+
dataType: "string";
|
|
10081
|
+
columnType: "SQLiteText";
|
|
10082
|
+
data: string;
|
|
10083
|
+
driverParam: string;
|
|
10084
|
+
notNull: false;
|
|
10085
|
+
hasDefault: false;
|
|
10086
|
+
isPrimaryKey: false;
|
|
10087
|
+
isAutoincrement: false;
|
|
10088
|
+
hasRuntimeDefault: false;
|
|
10089
|
+
enumValues: [string, ...string[]];
|
|
10090
|
+
baseColumn: never;
|
|
10091
|
+
identity: undefined;
|
|
10092
|
+
generated: undefined;
|
|
10093
|
+
}, {}, {
|
|
10094
|
+
length: number | undefined;
|
|
10095
|
+
}>;
|
|
9887
10096
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
9888
10097
|
name: "submitted_at";
|
|
9889
10098
|
tableName: "form_submissions";
|
|
@@ -10252,6 +10461,25 @@ declare const selectFormSubmissionSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
10252
10461
|
identity: undefined;
|
|
10253
10462
|
generated: undefined;
|
|
10254
10463
|
}, {}, {}>;
|
|
10464
|
+
contentId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10465
|
+
name: "content_id";
|
|
10466
|
+
tableName: "form_submissions";
|
|
10467
|
+
dataType: "string";
|
|
10468
|
+
columnType: "SQLiteText";
|
|
10469
|
+
data: string;
|
|
10470
|
+
driverParam: string;
|
|
10471
|
+
notNull: false;
|
|
10472
|
+
hasDefault: false;
|
|
10473
|
+
isPrimaryKey: false;
|
|
10474
|
+
isAutoincrement: false;
|
|
10475
|
+
hasRuntimeDefault: false;
|
|
10476
|
+
enumValues: [string, ...string[]];
|
|
10477
|
+
baseColumn: never;
|
|
10478
|
+
identity: undefined;
|
|
10479
|
+
generated: undefined;
|
|
10480
|
+
}, {}, {
|
|
10481
|
+
length: number | undefined;
|
|
10482
|
+
}>;
|
|
10255
10483
|
submittedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
10256
10484
|
name: "submitted_at";
|
|
10257
10485
|
tableName: "form_submissions";
|
|
@@ -10790,4 +11018,4 @@ declare class PluginBootstrapService {
|
|
|
10790
11018
|
isBootstrapNeeded(): Promise<boolean>;
|
|
10791
11019
|
}
|
|
10792
11020
|
|
|
10793
|
-
export {
|
|
11021
|
+
export { type SystemLog as $, validateCollectionConfig as A, schema as B, type CorePlugin as C, type Collection as D, type Content as E, type Plugin as F, type PluginHook as G, type LogConfig as H, type Media as I, type NewContent as J, type NewLogConfig as K, type LogCategory as L, type Migration as M, type NewCollection as N, type NewMedia as O, PluginBootstrapService as P, type NewPlugin as Q, type NewPluginActivityLog as R, type NewPluginAsset as S, type NewPluginHook as T, type NewPluginRoute as U, type NewSystemLog as V, type NewUser as W, type NewWorkflowHistory as X, type PluginActivityLog as Y, type PluginAsset as Z, type PluginRoute as _, type LogEntry as a, type User as a0, type WorkflowHistory as a1, apiTokens as a2, collections as a3, content as a4, contentVersions as a5, insertCollectionSchema as a6, insertContentSchema as a7, insertLogConfigSchema as a8, insertMediaSchema as a9, selectWorkflowHistorySchema as aA, systemLogs as aB, users as aC, workflowHistory as aD, insertPluginActivityLogSchema as aa, insertPluginAssetSchema as ab, insertPluginHookSchema as ac, insertPluginRouteSchema as ad, insertPluginSchema as ae, insertSystemLogSchema as af, insertUserSchema as ag, insertWorkflowHistorySchema as ah, logConfig as ai, media as aj, pluginActivityLog as ak, pluginAssets as al, pluginHooks as am, pluginRoutes as an, plugins as ao, selectCollectionSchema as ap, selectContentSchema as aq, selectLogConfigSchema as ar, selectMediaSchema as as, selectPluginActivityLogSchema as at, selectPluginAssetSchema as au, selectPluginHookSchema as av, selectPluginRouteSchema as aw, selectPluginSchema as ax, selectSystemLogSchema as ay, selectUserSchema as az, type LogFilter as b, type LogLevel as c, Logger as d, MigrationService as e, type MigrationStatus as f, PluginService as g, backfillFormSubmissions as h, cleanupRemovedCollections as i, createContentFromSubmission as j, deriveCollectionSchemaFromFormio as k, deriveSubmissionTitle as l, fullCollectionSync as m, getAvailableCollectionNames as n, getLogger as o, getManagedCollections as p, initLogger as q, isCollectionManaged as r, loadCollectionConfig as s, loadCollectionConfigs as t, mapFormStatusToContentStatus as u, registerCollections as v, syncAllFormCollections as w, syncCollection as x, syncCollections as y, syncFormCollection as z };
|