@sonicjs-cms/core 2.9.0 → 2.10.1
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-DQZVU3WB.cjs → chunk-5GO3AMON.cjs} +13 -7
- package/dist/chunk-5GO3AMON.cjs.map +1 -0
- package/dist/{chunk-YFJJU26H.js → chunk-BUPNX3ZM.js} +375 -3
- package/dist/chunk-BUPNX3ZM.js.map +1 -0
- package/dist/{chunk-SHU7Q66Q.cjs → chunk-E2GKK5HX.cjs} +7 -3
- package/dist/chunk-E2GKK5HX.cjs.map +1 -0
- package/dist/{chunk-LDFMYRG6.cjs → chunk-EAJJHE5F.cjs} +9 -2
- package/dist/chunk-EAJJHE5F.cjs.map +1 -0
- package/dist/{chunk-STTZVLY2.js → chunk-FW5CGNM2.js} +9 -2
- package/dist/chunk-FW5CGNM2.js.map +1 -0
- package/dist/{chunk-KSB6FXOP.cjs → chunk-HGKBMUYY.cjs} +1194 -278
- package/dist/chunk-HGKBMUYY.cjs.map +1 -0
- package/dist/{chunk-25YNV4RK.js → chunk-JFMBYQTC.js} +10 -4
- package/dist/chunk-JFMBYQTC.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-2JGQKF7B.js → chunk-SDAGUFOF.js} +1079 -163
- package/dist/chunk-SDAGUFOF.js.map +1 -0
- package/dist/{chunk-MPT5PA6U.cjs → chunk-TWCQVJ6M.cjs} +381 -2
- package/dist/chunk-TWCQVJ6M.cjs.map +1 -0
- package/dist/{chunk-7JMMLHPQ.js → chunk-VJCLJH3X.js} +9 -2
- package/dist/chunk-VJCLJH3X.js.map +1 -0
- package/dist/{chunk-3FHMXGLF.js → chunk-YXTFJPMN.js} +7 -3
- package/dist/chunk-YXTFJPMN.js.map +1 -0
- package/dist/{collection-config-DckWhkdL.d.cts → collection-config-B4PG-AaF.d.cts} +2 -0
- package/dist/{collection-config-DckWhkdL.d.ts → collection-config-B4PG-AaF.d.ts} +2 -0
- package/dist/index.cjs +170 -142
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +29 -29
- package/dist/middleware.js +3 -3
- package/dist/migrations-ADK6YNM2.js +4 -0
- package/dist/{migrations-SZSR3C3G.js.map → migrations-ADK6YNM2.js.map} +1 -1
- package/dist/migrations-EM2D6EG2.cjs +13 -0
- package/dist/{migrations-QQWGDWGB.cjs.map → migrations-EM2D6EG2.cjs.map} +1 -1
- package/dist/{plugin-bootstrap-BAz7NY0H.d.cts → plugin-bootstrap-B8PXeGj_.d.cts} +230 -2
- package/dist/{plugin-bootstrap-Cz3-bj8X.d.ts → plugin-bootstrap-CD63DZ-p.d.ts} +230 -2
- package/dist/routes.cjs +29 -29
- package/dist/routes.js +6 -6
- package/dist/services.cjs +60 -32
- package/dist/services.d.cts +2 -2
- package/dist/services.d.ts +2 -2
- package/dist/services.js +3 -3
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.cjs +11 -11
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/migrations/033_form_content_integration.sql +19 -0
- package/package.json +5 -1
- package/dist/chunk-25YNV4RK.js.map +0 -1
- package/dist/chunk-2JGQKF7B.js.map +0 -1
- package/dist/chunk-3FHMXGLF.js.map +0 -1
- package/dist/chunk-64APW3DW.cjs.map +0 -1
- package/dist/chunk-7JMMLHPQ.js.map +0 -1
- package/dist/chunk-DQZVU3WB.cjs.map +0 -1
- package/dist/chunk-KSB6FXOP.cjs.map +0 -1
- package/dist/chunk-LDFMYRG6.cjs.map +0 -1
- package/dist/chunk-MPT5PA6U.cjs.map +0 -1
- package/dist/chunk-SHU7Q66Q.cjs.map +0 -1
- package/dist/chunk-STTZVLY2.js.map +0 -1
- package/dist/chunk-YFJJU26H.js.map +0 -1
- package/dist/migrations-QQWGDWGB.cjs +0 -13
- package/dist/migrations-SZSR3C3G.js +0 -4
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 chunk5GO3AMON_cjs = require('./chunk-5GO3AMON.cjs');
|
|
4
|
+
require('./chunk-TWCQVJ6M.cjs');
|
|
5
|
+
require('./chunk-EAJJHE5F.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 chunk5GO3AMON_cjs.AuthManager; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PermissionManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5GO3AMON_cjs.PermissionManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk5GO3AMON_cjs.bootstrapMiddleware; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk5GO3AMON_cjs.cacheHeaders; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk5GO3AMON_cjs.compressionMiddleware; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "csrfProtection", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk5GO3AMON_cjs.csrfProtection; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk5GO3AMON_cjs.detailedLoggingMiddleware; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "generateCsrfToken", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk5GO3AMON_cjs.generateCsrfToken; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk5GO3AMON_cjs.getActivePlugins; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isPluginActive", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk5GO3AMON_cjs.isPluginActive; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "logActivity", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk5GO3AMON_cjs.logActivity; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk5GO3AMON_cjs.loggingMiddleware; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "metricsMiddleware", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk5GO3AMON_cjs.metricsMiddleware; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "optionalAuth", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk5GO3AMON_cjs.optionalAuth; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk5GO3AMON_cjs.performanceLoggingMiddleware; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "rateLimit", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk5GO3AMON_cjs.rateLimit; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk5GO3AMON_cjs.requireActivePlugin; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk5GO3AMON_cjs.requireActivePlugins; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk5GO3AMON_cjs.requireAnyPermission; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "requireAuth", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk5GO3AMON_cjs.requireAuth; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "requirePermission", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk5GO3AMON_cjs.requirePermission; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "requireRole", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk5GO3AMON_cjs.requireRole; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "securityHeaders", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk5GO3AMON_cjs.securityHeadersMiddleware; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk5GO3AMON_cjs.securityLoggingMiddleware; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "validateCsrfToken", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk5GO3AMON_cjs.validateCsrfToken; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "verifySecurityConfig", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk5GO3AMON_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-JFMBYQTC.js';
|
|
2
|
+
import './chunk-BUPNX3ZM.js';
|
|
3
|
+
import './chunk-FW5CGNM2.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-ADK6YNM2.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkEAJJHE5F_cjs = require('./chunk-EAJJHE5F.cjs');
|
|
4
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkEAJJHE5F_cjs.MigrationService; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=migrations-EM2D6EG2.cjs.map
|
|
13
|
+
//# sourceMappingURL=migrations-EM2D6EG2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-EM2D6EG2.cjs"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollectionConfig, d as CollectionSyncResult } from './collection-config-
|
|
1
|
+
import { C as CollectionConfig, d as CollectionSyncResult } from './collection-config-B4PG-AaF.cjs';
|
|
2
2
|
import { D1Database as D1Database$1 } from '@cloudflare/workers-types';
|
|
3
3
|
import * as drizzle_zod from 'drizzle-zod';
|
|
4
4
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -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 { insertMediaSchema as $, type PluginRoute as A, PluginService as B, type Collection as C, apiTokens as D, backfillFormSubmissions as E, cleanupRemovedCollections as F, collections as G, content as H, contentVersions as I, createContentFromSubmission as J, deriveCollectionSchemaFromFormio as K, type LogCategory as L, type Media as M, type NewCollection as N, deriveSubmissionTitle as O, type Plugin as P, fullCollectionSync as Q, getAvailableCollectionNames as R, type SystemLog as S, getLogger as T, type User as U, getManagedCollections as V, type WorkflowHistory as W, initLogger as X, insertCollectionSchema as Y, insertContentSchema as Z, insertLogConfigSchema as _, type Content as a, insertPluginActivityLogSchema as a0, insertPluginAssetSchema as a1, insertPluginHookSchema as a2, insertPluginRouteSchema as a3, insertPluginSchema as a4, insertSystemLogSchema as a5, insertUserSchema as a6, insertWorkflowHistorySchema as a7, isCollectionManaged as a8, loadCollectionConfig as a9, systemLogs as aA, users as aB, validateCollectionConfig as aC, workflowHistory as aD, loadCollectionConfigs as aa, logConfig as ab, mapFormStatusToContentStatus as ac, media as ad, pluginActivityLog as ae, pluginAssets as af, pluginHooks as ag, pluginRoutes as ah, plugins as ai, registerCollections as aj, selectCollectionSchema as ak, selectContentSchema as al, selectLogConfigSchema as am, selectMediaSchema as an, selectPluginActivityLogSchema as ao, selectPluginAssetSchema as ap, selectPluginHookSchema as aq, selectPluginRouteSchema as ar, selectPluginSchema as as, selectSystemLogSchema as at, selectUserSchema as au, selectWorkflowHistorySchema as av, syncAllFormCollections as aw, syncCollection as ax, syncCollections as ay, syncFormCollection as az, type CorePlugin as b, type PluginHook as c, type LogConfig as d, type LogEntry as e, type LogFilter as f, type LogLevel as g, Logger as h, type Migration as i, MigrationService as j, type MigrationStatus as k, type NewContent as l, type NewLogConfig as m, type NewMedia as n, type NewPlugin as o, type NewPluginActivityLog as p, type NewPluginAsset as q, type NewPluginHook as r, schema as s, type NewPluginRoute as t, type NewSystemLog as u, type NewUser as v, type NewWorkflowHistory as w, type PluginActivityLog as x, type PluginAsset as y, PluginBootstrapService as z };
|