@sonicjs-cms/core 2.16.1 → 2.17.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/{app-D9L3mrC-.d.cts → app-C9esKLmh.d.cts} +2 -0
- package/dist/{app-D9L3mrC-.d.ts → app-C9esKLmh.d.ts} +2 -0
- package/dist/{chunk-7HHIZQNE.cjs → chunk-3TVMUQWG.cjs} +155 -17
- package/dist/chunk-3TVMUQWG.cjs.map +1 -0
- package/dist/{chunk-U6FOL6EO.cjs → chunk-47HKH3D6.cjs} +34 -6
- package/dist/chunk-47HKH3D6.cjs.map +1 -0
- package/dist/{chunk-V76ERLX6.cjs → chunk-5EBTBD2Z.cjs} +3 -3
- package/dist/{chunk-V76ERLX6.cjs.map → chunk-5EBTBD2Z.cjs.map} +1 -1
- package/dist/{chunk-MZS33LLH.cjs → chunk-5ITJB5ZT.cjs} +354 -180
- package/dist/chunk-5ITJB5ZT.cjs.map +1 -0
- package/dist/{chunk-JF5RQXPN.js → chunk-7D7SI5P7.js} +3 -3
- package/dist/{chunk-JF5RQXPN.js.map → chunk-7D7SI5P7.js.map} +1 -1
- package/dist/{chunk-W33MHOPA.js → chunk-EUFBU4T4.js} +34 -6
- package/dist/chunk-EUFBU4T4.js.map +1 -0
- package/dist/{chunk-HU4MN74Q.cjs → chunk-I6444XLU.cjs} +2 -2
- package/dist/{chunk-HU4MN74Q.cjs.map → chunk-I6444XLU.cjs.map} +1 -1
- package/dist/{chunk-KYAF33AF.js → chunk-P5IDHMOL.js} +149 -14
- package/dist/chunk-P5IDHMOL.js.map +1 -0
- package/dist/{chunk-TBJY2FF7.js → chunk-QFWHAFEO.js} +22 -2
- package/dist/chunk-QFWHAFEO.js.map +1 -0
- package/dist/{chunk-PUZMLXOJ.js → chunk-QZBZEUZF.js} +2 -2
- package/dist/{chunk-PUZMLXOJ.js.map → chunk-QZBZEUZF.js.map} +1 -1
- package/dist/{chunk-BAMJVG33.js → chunk-UDUHP4PA.js} +229 -55
- package/dist/chunk-UDUHP4PA.js.map +1 -0
- package/dist/{chunk-NZWFCUDA.cjs → chunk-WAEQXGCX.cjs} +22 -2
- package/dist/chunk-WAEQXGCX.cjs.map +1 -0
- package/dist/index.cjs +194 -186
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -22
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +41 -29
- package/dist/middleware.d.cts +38 -4
- package/dist/middleware.d.ts +38 -4
- package/dist/middleware.js +3 -3
- package/dist/migrations-3TVS3HU5.js +4 -0
- package/dist/{migrations-WCEBO5QQ.js.map → migrations-3TVS3HU5.js.map} +1 -1
- package/dist/migrations-VQ4UX4M4.cjs +13 -0
- package/dist/{migrations-MYQI2KAJ.cjs.map → migrations-VQ4UX4M4.cjs.map} +1 -1
- package/dist/routes.cjs +29 -29
- package/dist/routes.d.cts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/routes.js +6 -6
- package/dist/services.cjs +39 -39
- package/dist/services.d.cts +12 -0
- package/dist/services.d.ts +12 -0
- package/dist/services.js +3 -3
- package/dist/utils.cjs +11 -11
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-7HHIZQNE.cjs.map +0 -1
- package/dist/chunk-BAMJVG33.js.map +0 -1
- package/dist/chunk-KYAF33AF.js.map +0 -1
- package/dist/chunk-MZS33LLH.cjs.map +0 -1
- package/dist/chunk-NZWFCUDA.cjs.map +0 -1
- package/dist/chunk-TBJY2FF7.js.map +0 -1
- package/dist/chunk-U6FOL6EO.cjs.map +0 -1
- package/dist/chunk-W33MHOPA.js.map +0 -1
- package/dist/migrations-MYQI2KAJ.cjs +0 -13
- package/dist/migrations-WCEBO5QQ.js +0 -4
package/dist/index.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunk5ITJB5ZT_cjs = require('./chunk-5ITJB5ZT.cjs');
|
|
4
|
+
var chunkWAEQXGCX_cjs = require('./chunk-WAEQXGCX.cjs');
|
|
5
|
+
var chunk3TVMUQWG_cjs = require('./chunk-3TVMUQWG.cjs');
|
|
6
|
+
var chunk47HKH3D6_cjs = require('./chunk-47HKH3D6.cjs');
|
|
7
|
+
var chunkI6444XLU_cjs = require('./chunk-I6444XLU.cjs');
|
|
8
8
|
var chunk4ZSNJDLS_cjs = require('./chunk-4ZSNJDLS.cjs');
|
|
9
9
|
var chunkOHYBNCVL_cjs = require('./chunk-OHYBNCVL.cjs');
|
|
10
10
|
var chunkUYJ6TJHX_cjs = require('./chunk-UYJ6TJHX.cjs');
|
|
11
11
|
var chunkABB34XUS_cjs = require('./chunk-ABB34XUS.cjs');
|
|
12
12
|
var chunk635JAMSE_cjs = require('./chunk-635JAMSE.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunk5EBTBD2Z_cjs = require('./chunk-5EBTBD2Z.cjs');
|
|
14
14
|
require('./chunk-P3XDZL6Q.cjs');
|
|
15
15
|
var chunkRCQ2HIQD_cjs = require('./chunk-RCQ2HIQD.cjs');
|
|
16
16
|
var chunkMNWKYY5E_cjs = require('./chunk-MNWKYY5E.cjs');
|
|
@@ -560,7 +560,7 @@ function formatCellValue(value) {
|
|
|
560
560
|
// src/plugins/core-plugins/database-tools-plugin/admin-routes.ts
|
|
561
561
|
function createDatabaseToolsAdminRoutes() {
|
|
562
562
|
const router3 = new hono.Hono();
|
|
563
|
-
router3.use("*",
|
|
563
|
+
router3.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
564
564
|
router3.get("/api/stats", async (c) => {
|
|
565
565
|
try {
|
|
566
566
|
const user = c.get("user");
|
|
@@ -1777,7 +1777,7 @@ function createOTPLoginPlugin() {
|
|
|
1777
1777
|
console.warn("Failed to parse OTP plugin settings, using defaults");
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
const settingsService = new
|
|
1780
|
+
const settingsService = new chunkWAEQXGCX_cjs.SettingsService(db);
|
|
1781
1781
|
const generalSettings = await settingsService.getGeneralSettings();
|
|
1782
1782
|
const siteName = generalSettings.siteName;
|
|
1783
1783
|
const canRequest = await otpService.checkRateLimit(normalizedEmail, settings);
|
|
@@ -1939,13 +1939,13 @@ function createOTPLoginPlugin() {
|
|
|
1939
1939
|
error: "Account is deactivated"
|
|
1940
1940
|
}, 403);
|
|
1941
1941
|
}
|
|
1942
|
-
const
|
|
1942
|
+
const tokenTtl = await chunk3TVMUQWG_cjs.getJwtExpirySecondsFromDb(db, c.env);
|
|
1943
|
+
const token = await chunk3TVMUQWG_cjs.AuthManager.generateToken(user.id, user.email, user.role, c.env.JWT_SECRET, tokenTtl);
|
|
1943
1944
|
cookie.setCookie(c, "auth_token", token, {
|
|
1944
1945
|
httpOnly: true,
|
|
1945
1946
|
secure: true,
|
|
1946
1947
|
sameSite: "Strict",
|
|
1947
|
-
maxAge:
|
|
1948
|
-
// 24 hours
|
|
1948
|
+
maxAge: tokenTtl
|
|
1949
1949
|
});
|
|
1950
1950
|
return c.json({
|
|
1951
1951
|
success: true,
|
|
@@ -2409,13 +2409,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2409
2409
|
if (!user || !user.is_active) {
|
|
2410
2410
|
return c.redirect("/auth/login?error=Account is deactivated");
|
|
2411
2411
|
}
|
|
2412
|
-
const
|
|
2412
|
+
const tokenTtl2 = await chunk3TVMUQWG_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2413
|
+
const jwt2 = await chunk3TVMUQWG_cjs.AuthManager.generateToken(
|
|
2413
2414
|
user.id,
|
|
2414
2415
|
user.email,
|
|
2415
2416
|
user.role,
|
|
2416
|
-
c.env.JWT_SECRET
|
|
2417
|
+
c.env.JWT_SECRET,
|
|
2418
|
+
tokenTtl2
|
|
2417
2419
|
);
|
|
2418
|
-
|
|
2420
|
+
chunk3TVMUQWG_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax", maxAge: tokenTtl2 });
|
|
2419
2421
|
return c.redirect("/admin");
|
|
2420
2422
|
}
|
|
2421
2423
|
const existingUser = await oauthService.findUserByEmail(profile.email);
|
|
@@ -2432,13 +2434,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2432
2434
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2433
2435
|
profileData: JSON.stringify(profile)
|
|
2434
2436
|
});
|
|
2435
|
-
const
|
|
2437
|
+
const tokenTtl2 = await chunk3TVMUQWG_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2438
|
+
const jwt2 = await chunk3TVMUQWG_cjs.AuthManager.generateToken(
|
|
2436
2439
|
existingUser.id,
|
|
2437
2440
|
existingUser.email,
|
|
2438
2441
|
existingUser.role,
|
|
2439
|
-
c.env.JWT_SECRET
|
|
2442
|
+
c.env.JWT_SECRET,
|
|
2443
|
+
tokenTtl2
|
|
2440
2444
|
);
|
|
2441
|
-
|
|
2445
|
+
chunk3TVMUQWG_cjs.AuthManager.setAuthCookie(c, jwt2, { sameSite: "Lax", maxAge: tokenTtl2 });
|
|
2442
2446
|
return c.redirect("/admin");
|
|
2443
2447
|
}
|
|
2444
2448
|
const newUserId = await oauthService.createUserFromOAuth(profile);
|
|
@@ -2451,13 +2455,15 @@ function createOAuthProvidersPlugin() {
|
|
|
2451
2455
|
tokenExpiresAt: tokenExpiresAt ?? void 0,
|
|
2452
2456
|
profileData: JSON.stringify(profile)
|
|
2453
2457
|
});
|
|
2454
|
-
const
|
|
2458
|
+
const tokenTtl = await chunk3TVMUQWG_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
2459
|
+
const jwt = await chunk3TVMUQWG_cjs.AuthManager.generateToken(
|
|
2455
2460
|
newUserId,
|
|
2456
2461
|
profile.email.toLowerCase(),
|
|
2457
2462
|
"viewer",
|
|
2458
|
-
c.env.JWT_SECRET
|
|
2463
|
+
c.env.JWT_SECRET,
|
|
2464
|
+
tokenTtl
|
|
2459
2465
|
);
|
|
2460
|
-
|
|
2466
|
+
chunk3TVMUQWG_cjs.AuthManager.setAuthCookie(c, jwt, { sameSite: "Lax", maxAge: tokenTtl });
|
|
2461
2467
|
return c.redirect("/admin");
|
|
2462
2468
|
} catch (error) {
|
|
2463
2469
|
console.error("OAuth callback error:", error);
|
|
@@ -4150,7 +4156,7 @@ function renderSettingsPage(data) {
|
|
|
4150
4156
|
|
|
4151
4157
|
// src/plugins/core-plugins/ai-search-plugin/routes/admin.ts
|
|
4152
4158
|
var adminRoutes = new hono.Hono();
|
|
4153
|
-
adminRoutes.use("*",
|
|
4159
|
+
adminRoutes.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
4154
4160
|
adminRoutes.get("/", async (c) => {
|
|
4155
4161
|
try {
|
|
4156
4162
|
const user = c.get("user");
|
|
@@ -4551,13 +4557,15 @@ function createMagicLinkAuthPlugin() {
|
|
|
4551
4557
|
SET used = 1, used_at = ?
|
|
4552
4558
|
WHERE id = ?
|
|
4553
4559
|
`).bind(Date.now(), magicLink.id).run();
|
|
4554
|
-
const
|
|
4560
|
+
const tokenTtl = await chunk3TVMUQWG_cjs.getJwtExpirySecondsFromDb(c.env.DB, c.env);
|
|
4561
|
+
const jwtToken = await chunk3TVMUQWG_cjs.AuthManager.generateToken(
|
|
4555
4562
|
user.id,
|
|
4556
4563
|
user.email,
|
|
4557
4564
|
user.role,
|
|
4558
|
-
c.env.JWT_SECRET
|
|
4565
|
+
c.env.JWT_SECRET,
|
|
4566
|
+
tokenTtl
|
|
4559
4567
|
);
|
|
4560
|
-
|
|
4568
|
+
chunk3TVMUQWG_cjs.AuthManager.setAuthCookie(c, jwtToken, { maxAge: tokenTtl });
|
|
4561
4569
|
await db.prepare(`
|
|
4562
4570
|
UPDATE users SET last_login_at = ? WHERE id = ?
|
|
4563
4571
|
`).bind(Date.now(), user.id).run();
|
|
@@ -5567,7 +5575,7 @@ function renderSecuritySettingsPage(data) {
|
|
|
5567
5575
|
|
|
5568
5576
|
// src/plugins/core-plugins/security-audit-plugin/routes/admin.ts
|
|
5569
5577
|
var adminRoutes2 = new hono.Hono();
|
|
5570
|
-
adminRoutes2.use("*",
|
|
5578
|
+
adminRoutes2.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
5571
5579
|
adminRoutes2.use("*", async (c, next) => {
|
|
5572
5580
|
const user = c.get("user");
|
|
5573
5581
|
if (user?.role !== "admin") {
|
|
@@ -5577,7 +5585,7 @@ adminRoutes2.use("*", async (c, next) => {
|
|
|
5577
5585
|
});
|
|
5578
5586
|
async function getSettings(db) {
|
|
5579
5587
|
try {
|
|
5580
|
-
const pluginService = new
|
|
5588
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
5581
5589
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
5582
5590
|
if (plugin2?.settings) {
|
|
5583
5591
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -5682,7 +5690,7 @@ adminRoutes2.post("/settings", async (c) => {
|
|
|
5682
5690
|
autoPurge: body["retention.autoPurge"] === "true"
|
|
5683
5691
|
}
|
|
5684
5692
|
};
|
|
5685
|
-
const pluginService = new
|
|
5693
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
5686
5694
|
await pluginService.updatePluginSettings("security-audit", settings);
|
|
5687
5695
|
if (c.req.header("HX-Request")) {
|
|
5688
5696
|
return c.json({ success: true });
|
|
@@ -5843,7 +5851,7 @@ var BruteForceDetector = class {
|
|
|
5843
5851
|
|
|
5844
5852
|
// src/plugins/core-plugins/security-audit-plugin/routes/api.ts
|
|
5845
5853
|
var apiRoutes2 = new hono.Hono();
|
|
5846
|
-
apiRoutes2.use("*",
|
|
5854
|
+
apiRoutes2.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
5847
5855
|
apiRoutes2.use("*", async (c, next) => {
|
|
5848
5856
|
const user = c.get("user");
|
|
5849
5857
|
if (user?.role !== "admin") {
|
|
@@ -5853,7 +5861,7 @@ apiRoutes2.use("*", async (c, next) => {
|
|
|
5853
5861
|
});
|
|
5854
5862
|
async function getSettings2(db) {
|
|
5855
5863
|
try {
|
|
5856
|
-
const pluginService = new
|
|
5864
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
5857
5865
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
5858
5866
|
if (plugin2?.settings) {
|
|
5859
5867
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -6001,7 +6009,7 @@ function generateFingerprint(ip, userAgent) {
|
|
|
6001
6009
|
}
|
|
6002
6010
|
async function getPluginSettings(db) {
|
|
6003
6011
|
try {
|
|
6004
|
-
const pluginService = new
|
|
6012
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
6005
6013
|
const plugin2 = await pluginService.getPlugin("security-audit");
|
|
6006
6014
|
if (plugin2?.settings) {
|
|
6007
6015
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7011,7 +7019,7 @@ var DEFAULT_SETTINGS3 = {
|
|
|
7011
7019
|
|
|
7012
7020
|
// src/plugins/core-plugins/stripe-plugin/routes/admin.ts
|
|
7013
7021
|
var adminRoutes3 = new hono.Hono();
|
|
7014
|
-
adminRoutes3.use("*",
|
|
7022
|
+
adminRoutes3.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
7015
7023
|
adminRoutes3.use("*", async (c, next) => {
|
|
7016
7024
|
const user = c.get("user");
|
|
7017
7025
|
if (user?.role !== "admin") {
|
|
@@ -7021,7 +7029,7 @@ adminRoutes3.use("*", async (c, next) => {
|
|
|
7021
7029
|
});
|
|
7022
7030
|
async function getSettings3(db) {
|
|
7023
7031
|
try {
|
|
7024
|
-
const pluginService = new
|
|
7032
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
7025
7033
|
const plugin2 = await pluginService.getPlugin("stripe");
|
|
7026
7034
|
if (plugin2?.settings) {
|
|
7027
7035
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7343,7 +7351,7 @@ function timingSafeEqual(a, b) {
|
|
|
7343
7351
|
var apiRoutes3 = new hono.Hono();
|
|
7344
7352
|
async function getSettings4(db) {
|
|
7345
7353
|
try {
|
|
7346
|
-
const pluginService = new
|
|
7354
|
+
const pluginService = new chunk47HKH3D6_cjs.PluginService(db);
|
|
7347
7355
|
const plugin2 = await pluginService.getPlugin("stripe");
|
|
7348
7356
|
if (plugin2?.settings) {
|
|
7349
7357
|
const settings = typeof plugin2.settings === "string" ? JSON.parse(plugin2.settings) : plugin2.settings;
|
|
@@ -7494,7 +7502,7 @@ apiRoutes3.post("/webhook", async (c) => {
|
|
|
7494
7502
|
}
|
|
7495
7503
|
return c.json({ received: true });
|
|
7496
7504
|
});
|
|
7497
|
-
apiRoutes3.post("/create-checkout-session",
|
|
7505
|
+
apiRoutes3.post("/create-checkout-session", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7498
7506
|
const db = c.env.DB;
|
|
7499
7507
|
const user = c.get("user");
|
|
7500
7508
|
if (!user) return c.json({ error: "Unauthorized" }, 401);
|
|
@@ -7534,7 +7542,7 @@ apiRoutes3.post("/create-checkout-session", chunk7HHIZQNE_cjs.requireAuth(), asy
|
|
|
7534
7542
|
});
|
|
7535
7543
|
return c.json({ sessionId: session.id, url: session.url });
|
|
7536
7544
|
});
|
|
7537
|
-
apiRoutes3.get("/subscription",
|
|
7545
|
+
apiRoutes3.get("/subscription", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7538
7546
|
const user = c.get("user");
|
|
7539
7547
|
if (!user) return c.json({ error: "Unauthorized" }, 401);
|
|
7540
7548
|
const db = c.env.DB;
|
|
@@ -7546,7 +7554,7 @@ apiRoutes3.get("/subscription", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
|
|
|
7546
7554
|
}
|
|
7547
7555
|
return c.json({ subscription });
|
|
7548
7556
|
});
|
|
7549
|
-
apiRoutes3.get("/subscriptions",
|
|
7557
|
+
apiRoutes3.get("/subscriptions", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7550
7558
|
const user = c.get("user");
|
|
7551
7559
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7552
7560
|
const db = c.env.DB;
|
|
@@ -7562,7 +7570,7 @@ apiRoutes3.get("/subscriptions", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
|
|
|
7562
7570
|
const result = await subscriptionService.list(filters);
|
|
7563
7571
|
return c.json(result);
|
|
7564
7572
|
});
|
|
7565
|
-
apiRoutes3.get("/stats",
|
|
7573
|
+
apiRoutes3.get("/stats", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7566
7574
|
const user = c.get("user");
|
|
7567
7575
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7568
7576
|
const db = c.env.DB;
|
|
@@ -7571,7 +7579,7 @@ apiRoutes3.get("/stats", chunk7HHIZQNE_cjs.requireAuth(), async (c) => {
|
|
|
7571
7579
|
const stats = await subscriptionService.getStats();
|
|
7572
7580
|
return c.json(stats);
|
|
7573
7581
|
});
|
|
7574
|
-
apiRoutes3.post("/sync-subscriptions",
|
|
7582
|
+
apiRoutes3.post("/sync-subscriptions", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7575
7583
|
const user = c.get("user");
|
|
7576
7584
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7577
7585
|
const db = c.env.DB;
|
|
@@ -7619,7 +7627,7 @@ apiRoutes3.post("/sync-subscriptions", chunk7HHIZQNE_cjs.requireAuth(), async (c
|
|
|
7619
7627
|
}, 500);
|
|
7620
7628
|
}
|
|
7621
7629
|
});
|
|
7622
|
-
apiRoutes3.get("/events",
|
|
7630
|
+
apiRoutes3.get("/events", chunk3TVMUQWG_cjs.requireAuth(), async (c) => {
|
|
7623
7631
|
const user = c.get("user");
|
|
7624
7632
|
if (user?.role !== "admin") return c.json({ error: "Access denied" }, 403);
|
|
7625
7633
|
const db = c.env.DB;
|
|
@@ -7685,7 +7693,7 @@ function createStripePlugin() {
|
|
|
7685
7693
|
var stripePlugin = createStripePlugin();
|
|
7686
7694
|
|
|
7687
7695
|
// src/middleware/plugin-menu.ts
|
|
7688
|
-
var REGISTRY_MENU_PLUGINS = Object.values(
|
|
7696
|
+
var REGISTRY_MENU_PLUGINS = Object.values(chunk47HKH3D6_cjs.PLUGIN_REGISTRY).filter((p) => p.adminMenu !== null).map((p) => ({
|
|
7689
7697
|
codeName: p.codeName,
|
|
7690
7698
|
label: p.adminMenu.label,
|
|
7691
7699
|
path: p.adminMenu.path,
|
|
@@ -7784,7 +7792,7 @@ var HOOKS2 = {
|
|
|
7784
7792
|
USER_LOGIN: "user:login"};
|
|
7785
7793
|
chunkUYJ6TJHX_cjs.init_admin_layout_catalyst_template();
|
|
7786
7794
|
var adminRoutes4 = new hono.Hono();
|
|
7787
|
-
adminRoutes4.use("*",
|
|
7795
|
+
adminRoutes4.use("*", chunk3TVMUQWG_cjs.requireAuth());
|
|
7788
7796
|
adminRoutes4.use("*", async (c, next) => {
|
|
7789
7797
|
const user = c.get("user");
|
|
7790
7798
|
if (user?.role !== "admin") {
|
|
@@ -9583,7 +9591,7 @@ function renderCacheDashboard(data) {
|
|
|
9583
9591
|
</script>
|
|
9584
9592
|
|
|
9585
9593
|
<!-- Confirmation Dialogs -->
|
|
9586
|
-
${
|
|
9594
|
+
${chunk5ITJB5ZT_cjs.renderConfirmationDialog({
|
|
9587
9595
|
id: "clear-all-cache-confirm",
|
|
9588
9596
|
title: "Clear All Cache",
|
|
9589
9597
|
message: "Are you sure you want to clear all cache entries? This cannot be undone.",
|
|
@@ -9594,7 +9602,7 @@ function renderCacheDashboard(data) {
|
|
|
9594
9602
|
onConfirm: "performClearAllCaches()"
|
|
9595
9603
|
})}
|
|
9596
9604
|
|
|
9597
|
-
${
|
|
9605
|
+
${chunk5ITJB5ZT_cjs.renderConfirmationDialog({
|
|
9598
9606
|
id: "clear-namespace-cache-confirm",
|
|
9599
9607
|
title: "Clear Namespace Cache",
|
|
9600
9608
|
message: "Clear cache for this namespace?",
|
|
@@ -9605,7 +9613,7 @@ function renderCacheDashboard(data) {
|
|
|
9605
9613
|
onConfirm: "performClearNamespaceCache()"
|
|
9606
9614
|
})}
|
|
9607
9615
|
|
|
9608
|
-
${
|
|
9616
|
+
${chunk5ITJB5ZT_cjs.getConfirmationDialogScript()}
|
|
9609
9617
|
`;
|
|
9610
9618
|
const layoutData = {
|
|
9611
9619
|
title: "Cache System",
|
|
@@ -10291,14 +10299,14 @@ var faviconSvg = `<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
10291
10299
|
// src/app.ts
|
|
10292
10300
|
function createSonicJSApp(config = {}) {
|
|
10293
10301
|
const app2 = new hono.Hono();
|
|
10294
|
-
const appVersion = config.version ||
|
|
10302
|
+
const appVersion = config.version || chunk5EBTBD2Z_cjs.getCoreVersion();
|
|
10295
10303
|
const appName = config.name || "SonicJS AI";
|
|
10296
10304
|
app2.use("*", async (c, next) => {
|
|
10297
10305
|
c.set("appVersion", appVersion);
|
|
10298
10306
|
await next();
|
|
10299
10307
|
});
|
|
10300
|
-
app2.use("*",
|
|
10301
|
-
app2.use("*",
|
|
10308
|
+
app2.use("*", chunk3TVMUQWG_cjs.metricsMiddleware());
|
|
10309
|
+
app2.use("*", chunk3TVMUQWG_cjs.bootstrapMiddleware(config));
|
|
10302
10310
|
if (config.middleware?.beforeAuth) {
|
|
10303
10311
|
for (const middleware of config.middleware.beforeAuth) {
|
|
10304
10312
|
app2.use("*", middleware);
|
|
@@ -10307,32 +10315,32 @@ function createSonicJSApp(config = {}) {
|
|
|
10307
10315
|
app2.use("*", async (_c, next) => {
|
|
10308
10316
|
await next();
|
|
10309
10317
|
});
|
|
10310
|
-
app2.use("*",
|
|
10311
|
-
app2.use("*",
|
|
10318
|
+
app2.use("*", chunk3TVMUQWG_cjs.securityHeadersMiddleware());
|
|
10319
|
+
app2.use("*", chunk3TVMUQWG_cjs.csrfProtection());
|
|
10312
10320
|
if (config.middleware?.afterAuth) {
|
|
10313
10321
|
for (const middleware of config.middleware.afterAuth) {
|
|
10314
10322
|
app2.use("*", middleware);
|
|
10315
10323
|
}
|
|
10316
10324
|
}
|
|
10317
10325
|
const adminRoles = config.adminAccessRoles || ["admin"];
|
|
10318
|
-
app2.use("/admin/*",
|
|
10319
|
-
app2.use("/admin/*",
|
|
10326
|
+
app2.use("/admin/*", chunk3TVMUQWG_cjs.requireAuth());
|
|
10327
|
+
app2.use("/admin/*", chunk3TVMUQWG_cjs.requireRole(adminRoles));
|
|
10320
10328
|
app2.use("/admin/*", pluginMenuMiddleware());
|
|
10321
|
-
app2.route("/api",
|
|
10322
|
-
app2.route("/api/media",
|
|
10323
|
-
app2.route("/api/system",
|
|
10324
|
-
app2.route("/admin/api",
|
|
10325
|
-
app2.route("/admin/dashboard",
|
|
10326
|
-
app2.route("/admin/collections",
|
|
10327
|
-
app2.route("/admin/forms",
|
|
10328
|
-
app2.route("/admin/settings",
|
|
10329
|
-
app2.route("/forms",
|
|
10330
|
-
app2.route("/api/forms",
|
|
10331
|
-
app2.route("/admin/api-reference",
|
|
10329
|
+
app2.route("/api", chunk5ITJB5ZT_cjs.api_default);
|
|
10330
|
+
app2.route("/api/media", chunk5ITJB5ZT_cjs.api_media_default);
|
|
10331
|
+
app2.route("/api/system", chunk5ITJB5ZT_cjs.api_system_default);
|
|
10332
|
+
app2.route("/admin/api", chunk5ITJB5ZT_cjs.admin_api_default);
|
|
10333
|
+
app2.route("/admin/dashboard", chunk5ITJB5ZT_cjs.router);
|
|
10334
|
+
app2.route("/admin/collections", chunk5ITJB5ZT_cjs.adminCollectionsRoutes);
|
|
10335
|
+
app2.route("/admin/forms", chunk5ITJB5ZT_cjs.adminFormsRoutes);
|
|
10336
|
+
app2.route("/admin/settings", chunk5ITJB5ZT_cjs.adminSettingsRoutes);
|
|
10337
|
+
app2.route("/forms", chunk5ITJB5ZT_cjs.public_forms_default);
|
|
10338
|
+
app2.route("/api/forms", chunk5ITJB5ZT_cjs.public_forms_default);
|
|
10339
|
+
app2.route("/admin/api-reference", chunk5ITJB5ZT_cjs.router2);
|
|
10332
10340
|
app2.route("/admin/database-tools", createDatabaseToolsAdminRoutes());
|
|
10333
10341
|
app2.route("/admin/seed-data", createSeedDataAdminRoutes());
|
|
10334
|
-
app2.route("/admin/content",
|
|
10335
|
-
app2.route("/admin/media",
|
|
10342
|
+
app2.route("/admin/content", chunk5ITJB5ZT_cjs.admin_content_default);
|
|
10343
|
+
app2.route("/admin/media", chunk5ITJB5ZT_cjs.adminMediaRoutes);
|
|
10336
10344
|
app2.use("/auth/*", securityAuditMiddleware());
|
|
10337
10345
|
if (securityAuditPlugin.routes && securityAuditPlugin.routes.length > 0) {
|
|
10338
10346
|
for (const route of securityAuditPlugin.routes) {
|
|
@@ -10350,8 +10358,8 @@ function createSonicJSApp(config = {}) {
|
|
|
10350
10358
|
app2.route(route.path, route.handler);
|
|
10351
10359
|
}
|
|
10352
10360
|
}
|
|
10353
|
-
if (
|
|
10354
|
-
for (const route of
|
|
10361
|
+
if (chunk5ITJB5ZT_cjs.userProfilesPlugin.routes && chunk5ITJB5ZT_cjs.userProfilesPlugin.routes.length > 0) {
|
|
10362
|
+
for (const route of chunk5ITJB5ZT_cjs.userProfilesPlugin.routes) {
|
|
10355
10363
|
app2.route(route.path, route.handler);
|
|
10356
10364
|
}
|
|
10357
10365
|
}
|
|
@@ -10371,11 +10379,11 @@ function createSonicJSApp(config = {}) {
|
|
|
10371
10379
|
app2.route(route.path, route.handler);
|
|
10372
10380
|
}
|
|
10373
10381
|
}
|
|
10374
|
-
app2.route("/admin/plugins",
|
|
10375
|
-
app2.route("/admin/logs",
|
|
10376
|
-
app2.route("/admin",
|
|
10377
|
-
app2.route("/auth",
|
|
10378
|
-
app2.route("/",
|
|
10382
|
+
app2.route("/admin/plugins", chunk5ITJB5ZT_cjs.adminPluginRoutes);
|
|
10383
|
+
app2.route("/admin/logs", chunk5ITJB5ZT_cjs.adminLogsRoutes);
|
|
10384
|
+
app2.route("/admin", chunk5ITJB5ZT_cjs.userRoutes);
|
|
10385
|
+
app2.route("/auth", chunk5ITJB5ZT_cjs.auth_default);
|
|
10386
|
+
app2.route("/", chunk5ITJB5ZT_cjs.test_cleanup_default);
|
|
10379
10387
|
if (emailPlugin.routes && emailPlugin.routes.length > 0) {
|
|
10380
10388
|
for (const route of emailPlugin.routes) {
|
|
10381
10389
|
app2.route(route.path, route.handler);
|
|
@@ -10438,7 +10446,7 @@ function createSonicJSApp(config = {}) {
|
|
|
10438
10446
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
10439
10447
|
});
|
|
10440
10448
|
});
|
|
10441
|
-
|
|
10449
|
+
chunkWAEQXGCX_cjs.setAppInstance(app2);
|
|
10442
10450
|
app2.notFound((c) => {
|
|
10443
10451
|
return c.json({ error: "Not Found", status: 404 }, 404);
|
|
10444
10452
|
});
|
|
@@ -10455,431 +10463,431 @@ function setupCoreRoutes(_app) {
|
|
|
10455
10463
|
console.warn("setupCoreRoutes is deprecated. Use createSonicJSApp() instead.");
|
|
10456
10464
|
}
|
|
10457
10465
|
function createDb(d1$1) {
|
|
10458
|
-
return d1.drizzle(d1$1, { schema:
|
|
10466
|
+
return d1.drizzle(d1$1, { schema: chunkWAEQXGCX_cjs.schema_exports });
|
|
10459
10467
|
}
|
|
10460
10468
|
|
|
10461
10469
|
// src/index.ts
|
|
10462
|
-
var VERSION =
|
|
10470
|
+
var VERSION = chunk5EBTBD2Z_cjs.package_default.version;
|
|
10463
10471
|
|
|
10464
10472
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
10465
10473
|
enumerable: true,
|
|
10466
|
-
get: function () { return
|
|
10474
|
+
get: function () { return chunk5ITJB5ZT_cjs.ROUTES_INFO; }
|
|
10467
10475
|
});
|
|
10468
10476
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
10469
10477
|
enumerable: true,
|
|
10470
|
-
get: function () { return
|
|
10478
|
+
get: function () { return chunk5ITJB5ZT_cjs.admin_api_default; }
|
|
10471
10479
|
});
|
|
10472
10480
|
Object.defineProperty(exports, "adminCheckboxRoutes", {
|
|
10473
10481
|
enumerable: true,
|
|
10474
|
-
get: function () { return
|
|
10482
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminCheckboxRoutes; }
|
|
10475
10483
|
});
|
|
10476
10484
|
Object.defineProperty(exports, "adminCodeExamplesRoutes", {
|
|
10477
10485
|
enumerable: true,
|
|
10478
|
-
get: function () { return
|
|
10486
|
+
get: function () { return chunk5ITJB5ZT_cjs.admin_code_examples_default; }
|
|
10479
10487
|
});
|
|
10480
10488
|
Object.defineProperty(exports, "adminCollectionsRoutes", {
|
|
10481
10489
|
enumerable: true,
|
|
10482
|
-
get: function () { return
|
|
10490
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminCollectionsRoutes; }
|
|
10483
10491
|
});
|
|
10484
10492
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
10485
10493
|
enumerable: true,
|
|
10486
|
-
get: function () { return
|
|
10494
|
+
get: function () { return chunk5ITJB5ZT_cjs.admin_content_default; }
|
|
10487
10495
|
});
|
|
10488
10496
|
Object.defineProperty(exports, "adminDashboardRoutes", {
|
|
10489
10497
|
enumerable: true,
|
|
10490
|
-
get: function () { return
|
|
10498
|
+
get: function () { return chunk5ITJB5ZT_cjs.router; }
|
|
10491
10499
|
});
|
|
10492
10500
|
Object.defineProperty(exports, "adminDesignRoutes", {
|
|
10493
10501
|
enumerable: true,
|
|
10494
|
-
get: function () { return
|
|
10502
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminDesignRoutes; }
|
|
10495
10503
|
});
|
|
10496
10504
|
Object.defineProperty(exports, "adminLogsRoutes", {
|
|
10497
10505
|
enumerable: true,
|
|
10498
|
-
get: function () { return
|
|
10506
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminLogsRoutes; }
|
|
10499
10507
|
});
|
|
10500
10508
|
Object.defineProperty(exports, "adminMediaRoutes", {
|
|
10501
10509
|
enumerable: true,
|
|
10502
|
-
get: function () { return
|
|
10510
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminMediaRoutes; }
|
|
10503
10511
|
});
|
|
10504
10512
|
Object.defineProperty(exports, "adminPluginRoutes", {
|
|
10505
10513
|
enumerable: true,
|
|
10506
|
-
get: function () { return
|
|
10514
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminPluginRoutes; }
|
|
10507
10515
|
});
|
|
10508
10516
|
Object.defineProperty(exports, "adminSettingsRoutes", {
|
|
10509
10517
|
enumerable: true,
|
|
10510
|
-
get: function () { return
|
|
10518
|
+
get: function () { return chunk5ITJB5ZT_cjs.adminSettingsRoutes; }
|
|
10511
10519
|
});
|
|
10512
10520
|
Object.defineProperty(exports, "adminTestimonialsRoutes", {
|
|
10513
10521
|
enumerable: true,
|
|
10514
|
-
get: function () { return
|
|
10522
|
+
get: function () { return chunk5ITJB5ZT_cjs.admin_testimonials_default; }
|
|
10515
10523
|
});
|
|
10516
10524
|
Object.defineProperty(exports, "adminUsersRoutes", {
|
|
10517
10525
|
enumerable: true,
|
|
10518
|
-
get: function () { return
|
|
10526
|
+
get: function () { return chunk5ITJB5ZT_cjs.userRoutes; }
|
|
10519
10527
|
});
|
|
10520
10528
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
10521
10529
|
enumerable: true,
|
|
10522
|
-
get: function () { return
|
|
10530
|
+
get: function () { return chunk5ITJB5ZT_cjs.api_content_crud_default; }
|
|
10523
10531
|
});
|
|
10524
10532
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
10525
10533
|
enumerable: true,
|
|
10526
|
-
get: function () { return
|
|
10534
|
+
get: function () { return chunk5ITJB5ZT_cjs.api_media_default; }
|
|
10527
10535
|
});
|
|
10528
10536
|
Object.defineProperty(exports, "apiRoutes", {
|
|
10529
10537
|
enumerable: true,
|
|
10530
|
-
get: function () { return
|
|
10538
|
+
get: function () { return chunk5ITJB5ZT_cjs.api_default; }
|
|
10531
10539
|
});
|
|
10532
10540
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
10533
10541
|
enumerable: true,
|
|
10534
|
-
get: function () { return
|
|
10542
|
+
get: function () { return chunk5ITJB5ZT_cjs.api_system_default; }
|
|
10535
10543
|
});
|
|
10536
10544
|
Object.defineProperty(exports, "authRoutes", {
|
|
10537
10545
|
enumerable: true,
|
|
10538
|
-
get: function () { return
|
|
10546
|
+
get: function () { return chunk5ITJB5ZT_cjs.auth_default; }
|
|
10539
10547
|
});
|
|
10540
10548
|
Object.defineProperty(exports, "createUserProfilesPlugin", {
|
|
10541
10549
|
enumerable: true,
|
|
10542
|
-
get: function () { return
|
|
10550
|
+
get: function () { return chunk5ITJB5ZT_cjs.createUserProfilesPlugin; }
|
|
10543
10551
|
});
|
|
10544
10552
|
Object.defineProperty(exports, "defineUserProfile", {
|
|
10545
10553
|
enumerable: true,
|
|
10546
|
-
get: function () { return
|
|
10554
|
+
get: function () { return chunk5ITJB5ZT_cjs.defineUserProfile; }
|
|
10547
10555
|
});
|
|
10548
10556
|
Object.defineProperty(exports, "getUserProfileConfig", {
|
|
10549
10557
|
enumerable: true,
|
|
10550
|
-
get: function () { return
|
|
10558
|
+
get: function () { return chunk5ITJB5ZT_cjs.getUserProfileConfig; }
|
|
10551
10559
|
});
|
|
10552
10560
|
Object.defineProperty(exports, "userProfilesPlugin", {
|
|
10553
10561
|
enumerable: true,
|
|
10554
|
-
get: function () { return
|
|
10562
|
+
get: function () { return chunk5ITJB5ZT_cjs.userProfilesPlugin; }
|
|
10555
10563
|
});
|
|
10556
10564
|
Object.defineProperty(exports, "Logger", {
|
|
10557
10565
|
enumerable: true,
|
|
10558
|
-
get: function () { return
|
|
10566
|
+
get: function () { return chunkWAEQXGCX_cjs.Logger; }
|
|
10559
10567
|
});
|
|
10560
10568
|
Object.defineProperty(exports, "apiTokens", {
|
|
10561
10569
|
enumerable: true,
|
|
10562
|
-
get: function () { return
|
|
10570
|
+
get: function () { return chunkWAEQXGCX_cjs.apiTokens; }
|
|
10563
10571
|
});
|
|
10564
10572
|
Object.defineProperty(exports, "collections", {
|
|
10565
10573
|
enumerable: true,
|
|
10566
|
-
get: function () { return
|
|
10574
|
+
get: function () { return chunkWAEQXGCX_cjs.collections; }
|
|
10567
10575
|
});
|
|
10568
10576
|
Object.defineProperty(exports, "content", {
|
|
10569
10577
|
enumerable: true,
|
|
10570
|
-
get: function () { return
|
|
10578
|
+
get: function () { return chunkWAEQXGCX_cjs.content; }
|
|
10571
10579
|
});
|
|
10572
10580
|
Object.defineProperty(exports, "contentVersions", {
|
|
10573
10581
|
enumerable: true,
|
|
10574
|
-
get: function () { return
|
|
10582
|
+
get: function () { return chunkWAEQXGCX_cjs.contentVersions; }
|
|
10575
10583
|
});
|
|
10576
10584
|
Object.defineProperty(exports, "getLogger", {
|
|
10577
10585
|
enumerable: true,
|
|
10578
|
-
get: function () { return
|
|
10586
|
+
get: function () { return chunkWAEQXGCX_cjs.getLogger; }
|
|
10579
10587
|
});
|
|
10580
10588
|
Object.defineProperty(exports, "initLogger", {
|
|
10581
10589
|
enumerable: true,
|
|
10582
|
-
get: function () { return
|
|
10590
|
+
get: function () { return chunkWAEQXGCX_cjs.initLogger; }
|
|
10583
10591
|
});
|
|
10584
10592
|
Object.defineProperty(exports, "insertCollectionSchema", {
|
|
10585
10593
|
enumerable: true,
|
|
10586
|
-
get: function () { return
|
|
10594
|
+
get: function () { return chunkWAEQXGCX_cjs.insertCollectionSchema; }
|
|
10587
10595
|
});
|
|
10588
10596
|
Object.defineProperty(exports, "insertContentSchema", {
|
|
10589
10597
|
enumerable: true,
|
|
10590
|
-
get: function () { return
|
|
10598
|
+
get: function () { return chunkWAEQXGCX_cjs.insertContentSchema; }
|
|
10591
10599
|
});
|
|
10592
10600
|
Object.defineProperty(exports, "insertLogConfigSchema", {
|
|
10593
10601
|
enumerable: true,
|
|
10594
|
-
get: function () { return
|
|
10602
|
+
get: function () { return chunkWAEQXGCX_cjs.insertLogConfigSchema; }
|
|
10595
10603
|
});
|
|
10596
10604
|
Object.defineProperty(exports, "insertMediaSchema", {
|
|
10597
10605
|
enumerable: true,
|
|
10598
|
-
get: function () { return
|
|
10606
|
+
get: function () { return chunkWAEQXGCX_cjs.insertMediaSchema; }
|
|
10599
10607
|
});
|
|
10600
10608
|
Object.defineProperty(exports, "insertPluginActivityLogSchema", {
|
|
10601
10609
|
enumerable: true,
|
|
10602
|
-
get: function () { return
|
|
10610
|
+
get: function () { return chunkWAEQXGCX_cjs.insertPluginActivityLogSchema; }
|
|
10603
10611
|
});
|
|
10604
10612
|
Object.defineProperty(exports, "insertPluginAssetSchema", {
|
|
10605
10613
|
enumerable: true,
|
|
10606
|
-
get: function () { return
|
|
10614
|
+
get: function () { return chunkWAEQXGCX_cjs.insertPluginAssetSchema; }
|
|
10607
10615
|
});
|
|
10608
10616
|
Object.defineProperty(exports, "insertPluginHookSchema", {
|
|
10609
10617
|
enumerable: true,
|
|
10610
|
-
get: function () { return
|
|
10618
|
+
get: function () { return chunkWAEQXGCX_cjs.insertPluginHookSchema; }
|
|
10611
10619
|
});
|
|
10612
10620
|
Object.defineProperty(exports, "insertPluginRouteSchema", {
|
|
10613
10621
|
enumerable: true,
|
|
10614
|
-
get: function () { return
|
|
10622
|
+
get: function () { return chunkWAEQXGCX_cjs.insertPluginRouteSchema; }
|
|
10615
10623
|
});
|
|
10616
10624
|
Object.defineProperty(exports, "insertPluginSchema", {
|
|
10617
10625
|
enumerable: true,
|
|
10618
|
-
get: function () { return
|
|
10626
|
+
get: function () { return chunkWAEQXGCX_cjs.insertPluginSchema; }
|
|
10619
10627
|
});
|
|
10620
10628
|
Object.defineProperty(exports, "insertSystemLogSchema", {
|
|
10621
10629
|
enumerable: true,
|
|
10622
|
-
get: function () { return
|
|
10630
|
+
get: function () { return chunkWAEQXGCX_cjs.insertSystemLogSchema; }
|
|
10623
10631
|
});
|
|
10624
10632
|
Object.defineProperty(exports, "insertUserSchema", {
|
|
10625
10633
|
enumerable: true,
|
|
10626
|
-
get: function () { return
|
|
10634
|
+
get: function () { return chunkWAEQXGCX_cjs.insertUserSchema; }
|
|
10627
10635
|
});
|
|
10628
10636
|
Object.defineProperty(exports, "insertWorkflowHistorySchema", {
|
|
10629
10637
|
enumerable: true,
|
|
10630
|
-
get: function () { return
|
|
10638
|
+
get: function () { return chunkWAEQXGCX_cjs.insertWorkflowHistorySchema; }
|
|
10631
10639
|
});
|
|
10632
10640
|
Object.defineProperty(exports, "logConfig", {
|
|
10633
10641
|
enumerable: true,
|
|
10634
|
-
get: function () { return
|
|
10642
|
+
get: function () { return chunkWAEQXGCX_cjs.logConfig; }
|
|
10635
10643
|
});
|
|
10636
10644
|
Object.defineProperty(exports, "media", {
|
|
10637
10645
|
enumerable: true,
|
|
10638
|
-
get: function () { return
|
|
10646
|
+
get: function () { return chunkWAEQXGCX_cjs.media; }
|
|
10639
10647
|
});
|
|
10640
10648
|
Object.defineProperty(exports, "pluginActivityLog", {
|
|
10641
10649
|
enumerable: true,
|
|
10642
|
-
get: function () { return
|
|
10650
|
+
get: function () { return chunkWAEQXGCX_cjs.pluginActivityLog; }
|
|
10643
10651
|
});
|
|
10644
10652
|
Object.defineProperty(exports, "pluginAssets", {
|
|
10645
10653
|
enumerable: true,
|
|
10646
|
-
get: function () { return
|
|
10654
|
+
get: function () { return chunkWAEQXGCX_cjs.pluginAssets; }
|
|
10647
10655
|
});
|
|
10648
10656
|
Object.defineProperty(exports, "pluginHooks", {
|
|
10649
10657
|
enumerable: true,
|
|
10650
|
-
get: function () { return
|
|
10658
|
+
get: function () { return chunkWAEQXGCX_cjs.pluginHooks; }
|
|
10651
10659
|
});
|
|
10652
10660
|
Object.defineProperty(exports, "pluginRoutes", {
|
|
10653
10661
|
enumerable: true,
|
|
10654
|
-
get: function () { return
|
|
10662
|
+
get: function () { return chunkWAEQXGCX_cjs.pluginRoutes; }
|
|
10655
10663
|
});
|
|
10656
10664
|
Object.defineProperty(exports, "plugins", {
|
|
10657
10665
|
enumerable: true,
|
|
10658
|
-
get: function () { return
|
|
10666
|
+
get: function () { return chunkWAEQXGCX_cjs.plugins; }
|
|
10659
10667
|
});
|
|
10660
10668
|
Object.defineProperty(exports, "selectCollectionSchema", {
|
|
10661
10669
|
enumerable: true,
|
|
10662
|
-
get: function () { return
|
|
10670
|
+
get: function () { return chunkWAEQXGCX_cjs.selectCollectionSchema; }
|
|
10663
10671
|
});
|
|
10664
10672
|
Object.defineProperty(exports, "selectContentSchema", {
|
|
10665
10673
|
enumerable: true,
|
|
10666
|
-
get: function () { return
|
|
10674
|
+
get: function () { return chunkWAEQXGCX_cjs.selectContentSchema; }
|
|
10667
10675
|
});
|
|
10668
10676
|
Object.defineProperty(exports, "selectLogConfigSchema", {
|
|
10669
10677
|
enumerable: true,
|
|
10670
|
-
get: function () { return
|
|
10678
|
+
get: function () { return chunkWAEQXGCX_cjs.selectLogConfigSchema; }
|
|
10671
10679
|
});
|
|
10672
10680
|
Object.defineProperty(exports, "selectMediaSchema", {
|
|
10673
10681
|
enumerable: true,
|
|
10674
|
-
get: function () { return
|
|
10682
|
+
get: function () { return chunkWAEQXGCX_cjs.selectMediaSchema; }
|
|
10675
10683
|
});
|
|
10676
10684
|
Object.defineProperty(exports, "selectPluginActivityLogSchema", {
|
|
10677
10685
|
enumerable: true,
|
|
10678
|
-
get: function () { return
|
|
10686
|
+
get: function () { return chunkWAEQXGCX_cjs.selectPluginActivityLogSchema; }
|
|
10679
10687
|
});
|
|
10680
10688
|
Object.defineProperty(exports, "selectPluginAssetSchema", {
|
|
10681
10689
|
enumerable: true,
|
|
10682
|
-
get: function () { return
|
|
10690
|
+
get: function () { return chunkWAEQXGCX_cjs.selectPluginAssetSchema; }
|
|
10683
10691
|
});
|
|
10684
10692
|
Object.defineProperty(exports, "selectPluginHookSchema", {
|
|
10685
10693
|
enumerable: true,
|
|
10686
|
-
get: function () { return
|
|
10694
|
+
get: function () { return chunkWAEQXGCX_cjs.selectPluginHookSchema; }
|
|
10687
10695
|
});
|
|
10688
10696
|
Object.defineProperty(exports, "selectPluginRouteSchema", {
|
|
10689
10697
|
enumerable: true,
|
|
10690
|
-
get: function () { return
|
|
10698
|
+
get: function () { return chunkWAEQXGCX_cjs.selectPluginRouteSchema; }
|
|
10691
10699
|
});
|
|
10692
10700
|
Object.defineProperty(exports, "selectPluginSchema", {
|
|
10693
10701
|
enumerable: true,
|
|
10694
|
-
get: function () { return
|
|
10702
|
+
get: function () { return chunkWAEQXGCX_cjs.selectPluginSchema; }
|
|
10695
10703
|
});
|
|
10696
10704
|
Object.defineProperty(exports, "selectSystemLogSchema", {
|
|
10697
10705
|
enumerable: true,
|
|
10698
|
-
get: function () { return
|
|
10706
|
+
get: function () { return chunkWAEQXGCX_cjs.selectSystemLogSchema; }
|
|
10699
10707
|
});
|
|
10700
10708
|
Object.defineProperty(exports, "selectUserSchema", {
|
|
10701
10709
|
enumerable: true,
|
|
10702
|
-
get: function () { return
|
|
10710
|
+
get: function () { return chunkWAEQXGCX_cjs.selectUserSchema; }
|
|
10703
10711
|
});
|
|
10704
10712
|
Object.defineProperty(exports, "selectWorkflowHistorySchema", {
|
|
10705
10713
|
enumerable: true,
|
|
10706
|
-
get: function () { return
|
|
10714
|
+
get: function () { return chunkWAEQXGCX_cjs.selectWorkflowHistorySchema; }
|
|
10707
10715
|
});
|
|
10708
10716
|
Object.defineProperty(exports, "systemLogs", {
|
|
10709
10717
|
enumerable: true,
|
|
10710
|
-
get: function () { return
|
|
10718
|
+
get: function () { return chunkWAEQXGCX_cjs.systemLogs; }
|
|
10711
10719
|
});
|
|
10712
10720
|
Object.defineProperty(exports, "users", {
|
|
10713
10721
|
enumerable: true,
|
|
10714
|
-
get: function () { return
|
|
10722
|
+
get: function () { return chunkWAEQXGCX_cjs.users; }
|
|
10715
10723
|
});
|
|
10716
10724
|
Object.defineProperty(exports, "workflowHistory", {
|
|
10717
10725
|
enumerable: true,
|
|
10718
|
-
get: function () { return
|
|
10726
|
+
get: function () { return chunkWAEQXGCX_cjs.workflowHistory; }
|
|
10719
10727
|
});
|
|
10720
10728
|
Object.defineProperty(exports, "AuthManager", {
|
|
10721
10729
|
enumerable: true,
|
|
10722
|
-
get: function () { return
|
|
10730
|
+
get: function () { return chunk3TVMUQWG_cjs.AuthManager; }
|
|
10723
10731
|
});
|
|
10724
10732
|
Object.defineProperty(exports, "PermissionManager", {
|
|
10725
10733
|
enumerable: true,
|
|
10726
|
-
get: function () { return
|
|
10734
|
+
get: function () { return chunk3TVMUQWG_cjs.PermissionManager; }
|
|
10727
10735
|
});
|
|
10728
10736
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
10729
10737
|
enumerable: true,
|
|
10730
|
-
get: function () { return
|
|
10738
|
+
get: function () { return chunk3TVMUQWG_cjs.bootstrapMiddleware; }
|
|
10731
10739
|
});
|
|
10732
10740
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
10733
10741
|
enumerable: true,
|
|
10734
|
-
get: function () { return
|
|
10742
|
+
get: function () { return chunk3TVMUQWG_cjs.cacheHeaders; }
|
|
10735
10743
|
});
|
|
10736
10744
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
10737
10745
|
enumerable: true,
|
|
10738
|
-
get: function () { return
|
|
10746
|
+
get: function () { return chunk3TVMUQWG_cjs.compressionMiddleware; }
|
|
10739
10747
|
});
|
|
10740
10748
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
10741
10749
|
enumerable: true,
|
|
10742
|
-
get: function () { return
|
|
10750
|
+
get: function () { return chunk3TVMUQWG_cjs.detailedLoggingMiddleware; }
|
|
10743
10751
|
});
|
|
10744
10752
|
Object.defineProperty(exports, "getActivePlugins", {
|
|
10745
10753
|
enumerable: true,
|
|
10746
|
-
get: function () { return
|
|
10754
|
+
get: function () { return chunk3TVMUQWG_cjs.getActivePlugins; }
|
|
10747
10755
|
});
|
|
10748
10756
|
Object.defineProperty(exports, "isPluginActive", {
|
|
10749
10757
|
enumerable: true,
|
|
10750
|
-
get: function () { return
|
|
10758
|
+
get: function () { return chunk3TVMUQWG_cjs.isPluginActive; }
|
|
10751
10759
|
});
|
|
10752
10760
|
Object.defineProperty(exports, "logActivity", {
|
|
10753
10761
|
enumerable: true,
|
|
10754
|
-
get: function () { return
|
|
10762
|
+
get: function () { return chunk3TVMUQWG_cjs.logActivity; }
|
|
10755
10763
|
});
|
|
10756
10764
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
10757
10765
|
enumerable: true,
|
|
10758
|
-
get: function () { return
|
|
10766
|
+
get: function () { return chunk3TVMUQWG_cjs.loggingMiddleware; }
|
|
10759
10767
|
});
|
|
10760
10768
|
Object.defineProperty(exports, "optionalAuth", {
|
|
10761
10769
|
enumerable: true,
|
|
10762
|
-
get: function () { return
|
|
10770
|
+
get: function () { return chunk3TVMUQWG_cjs.optionalAuth; }
|
|
10763
10771
|
});
|
|
10764
10772
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
10765
10773
|
enumerable: true,
|
|
10766
|
-
get: function () { return
|
|
10774
|
+
get: function () { return chunk3TVMUQWG_cjs.performanceLoggingMiddleware; }
|
|
10767
10775
|
});
|
|
10768
10776
|
Object.defineProperty(exports, "requireActivePlugin", {
|
|
10769
10777
|
enumerable: true,
|
|
10770
|
-
get: function () { return
|
|
10778
|
+
get: function () { return chunk3TVMUQWG_cjs.requireActivePlugin; }
|
|
10771
10779
|
});
|
|
10772
10780
|
Object.defineProperty(exports, "requireActivePlugins", {
|
|
10773
10781
|
enumerable: true,
|
|
10774
|
-
get: function () { return
|
|
10782
|
+
get: function () { return chunk3TVMUQWG_cjs.requireActivePlugins; }
|
|
10775
10783
|
});
|
|
10776
10784
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
10777
10785
|
enumerable: true,
|
|
10778
|
-
get: function () { return
|
|
10786
|
+
get: function () { return chunk3TVMUQWG_cjs.requireAnyPermission; }
|
|
10779
10787
|
});
|
|
10780
10788
|
Object.defineProperty(exports, "requireAuth", {
|
|
10781
10789
|
enumerable: true,
|
|
10782
|
-
get: function () { return
|
|
10790
|
+
get: function () { return chunk3TVMUQWG_cjs.requireAuth; }
|
|
10783
10791
|
});
|
|
10784
10792
|
Object.defineProperty(exports, "requirePermission", {
|
|
10785
10793
|
enumerable: true,
|
|
10786
|
-
get: function () { return
|
|
10794
|
+
get: function () { return chunk3TVMUQWG_cjs.requirePermission; }
|
|
10787
10795
|
});
|
|
10788
10796
|
Object.defineProperty(exports, "requireRole", {
|
|
10789
10797
|
enumerable: true,
|
|
10790
|
-
get: function () { return
|
|
10798
|
+
get: function () { return chunk3TVMUQWG_cjs.requireRole; }
|
|
10791
10799
|
});
|
|
10792
10800
|
Object.defineProperty(exports, "securityHeaders", {
|
|
10793
10801
|
enumerable: true,
|
|
10794
|
-
get: function () { return
|
|
10802
|
+
get: function () { return chunk3TVMUQWG_cjs.securityHeadersMiddleware; }
|
|
10795
10803
|
});
|
|
10796
10804
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
10797
10805
|
enumerable: true,
|
|
10798
|
-
get: function () { return
|
|
10806
|
+
get: function () { return chunk3TVMUQWG_cjs.securityLoggingMiddleware; }
|
|
10799
10807
|
});
|
|
10800
10808
|
Object.defineProperty(exports, "PluginBootstrapService", {
|
|
10801
10809
|
enumerable: true,
|
|
10802
|
-
get: function () { return
|
|
10810
|
+
get: function () { return chunk47HKH3D6_cjs.PluginBootstrapService; }
|
|
10803
10811
|
});
|
|
10804
10812
|
Object.defineProperty(exports, "PluginServiceClass", {
|
|
10805
10813
|
enumerable: true,
|
|
10806
|
-
get: function () { return
|
|
10814
|
+
get: function () { return chunk47HKH3D6_cjs.PluginService; }
|
|
10807
10815
|
});
|
|
10808
10816
|
Object.defineProperty(exports, "backfillFormSubmissions", {
|
|
10809
10817
|
enumerable: true,
|
|
10810
|
-
get: function () { return
|
|
10818
|
+
get: function () { return chunk47HKH3D6_cjs.backfillFormSubmissions; }
|
|
10811
10819
|
});
|
|
10812
10820
|
Object.defineProperty(exports, "cleanupRemovedCollections", {
|
|
10813
10821
|
enumerable: true,
|
|
10814
|
-
get: function () { return
|
|
10822
|
+
get: function () { return chunk47HKH3D6_cjs.cleanupRemovedCollections; }
|
|
10815
10823
|
});
|
|
10816
10824
|
Object.defineProperty(exports, "createContentFromSubmission", {
|
|
10817
10825
|
enumerable: true,
|
|
10818
|
-
get: function () { return
|
|
10826
|
+
get: function () { return chunk47HKH3D6_cjs.createContentFromSubmission; }
|
|
10819
10827
|
});
|
|
10820
10828
|
Object.defineProperty(exports, "deriveCollectionSchemaFromFormio", {
|
|
10821
10829
|
enumerable: true,
|
|
10822
|
-
get: function () { return
|
|
10830
|
+
get: function () { return chunk47HKH3D6_cjs.deriveCollectionSchemaFromFormio; }
|
|
10823
10831
|
});
|
|
10824
10832
|
Object.defineProperty(exports, "deriveSubmissionTitle", {
|
|
10825
10833
|
enumerable: true,
|
|
10826
|
-
get: function () { return
|
|
10834
|
+
get: function () { return chunk47HKH3D6_cjs.deriveSubmissionTitle; }
|
|
10827
10835
|
});
|
|
10828
10836
|
Object.defineProperty(exports, "fullCollectionSync", {
|
|
10829
10837
|
enumerable: true,
|
|
10830
|
-
get: function () { return
|
|
10838
|
+
get: function () { return chunk47HKH3D6_cjs.fullCollectionSync; }
|
|
10831
10839
|
});
|
|
10832
10840
|
Object.defineProperty(exports, "getAvailableCollectionNames", {
|
|
10833
10841
|
enumerable: true,
|
|
10834
|
-
get: function () { return
|
|
10842
|
+
get: function () { return chunk47HKH3D6_cjs.getAvailableCollectionNames; }
|
|
10835
10843
|
});
|
|
10836
10844
|
Object.defineProperty(exports, "getManagedCollections", {
|
|
10837
10845
|
enumerable: true,
|
|
10838
|
-
get: function () { return
|
|
10846
|
+
get: function () { return chunk47HKH3D6_cjs.getManagedCollections; }
|
|
10839
10847
|
});
|
|
10840
10848
|
Object.defineProperty(exports, "isCollectionManaged", {
|
|
10841
10849
|
enumerable: true,
|
|
10842
|
-
get: function () { return
|
|
10850
|
+
get: function () { return chunk47HKH3D6_cjs.isCollectionManaged; }
|
|
10843
10851
|
});
|
|
10844
10852
|
Object.defineProperty(exports, "loadCollectionConfig", {
|
|
10845
10853
|
enumerable: true,
|
|
10846
|
-
get: function () { return
|
|
10854
|
+
get: function () { return chunk47HKH3D6_cjs.loadCollectionConfig; }
|
|
10847
10855
|
});
|
|
10848
10856
|
Object.defineProperty(exports, "loadCollectionConfigs", {
|
|
10849
10857
|
enumerable: true,
|
|
10850
|
-
get: function () { return
|
|
10858
|
+
get: function () { return chunk47HKH3D6_cjs.loadCollectionConfigs; }
|
|
10851
10859
|
});
|
|
10852
10860
|
Object.defineProperty(exports, "mapFormStatusToContentStatus", {
|
|
10853
10861
|
enumerable: true,
|
|
10854
|
-
get: function () { return
|
|
10862
|
+
get: function () { return chunk47HKH3D6_cjs.mapFormStatusToContentStatus; }
|
|
10855
10863
|
});
|
|
10856
10864
|
Object.defineProperty(exports, "registerCollections", {
|
|
10857
10865
|
enumerable: true,
|
|
10858
|
-
get: function () { return
|
|
10866
|
+
get: function () { return chunk47HKH3D6_cjs.registerCollections; }
|
|
10859
10867
|
});
|
|
10860
10868
|
Object.defineProperty(exports, "syncAllFormCollections", {
|
|
10861
10869
|
enumerable: true,
|
|
10862
|
-
get: function () { return
|
|
10870
|
+
get: function () { return chunk47HKH3D6_cjs.syncAllFormCollections; }
|
|
10863
10871
|
});
|
|
10864
10872
|
Object.defineProperty(exports, "syncCollection", {
|
|
10865
10873
|
enumerable: true,
|
|
10866
|
-
get: function () { return
|
|
10874
|
+
get: function () { return chunk47HKH3D6_cjs.syncCollection; }
|
|
10867
10875
|
});
|
|
10868
10876
|
Object.defineProperty(exports, "syncCollections", {
|
|
10869
10877
|
enumerable: true,
|
|
10870
|
-
get: function () { return
|
|
10878
|
+
get: function () { return chunk47HKH3D6_cjs.syncCollections; }
|
|
10871
10879
|
});
|
|
10872
10880
|
Object.defineProperty(exports, "syncFormCollection", {
|
|
10873
10881
|
enumerable: true,
|
|
10874
|
-
get: function () { return
|
|
10882
|
+
get: function () { return chunk47HKH3D6_cjs.syncFormCollection; }
|
|
10875
10883
|
});
|
|
10876
10884
|
Object.defineProperty(exports, "validateCollectionConfig", {
|
|
10877
10885
|
enumerable: true,
|
|
10878
|
-
get: function () { return
|
|
10886
|
+
get: function () { return chunk47HKH3D6_cjs.validateCollectionConfig; }
|
|
10879
10887
|
});
|
|
10880
10888
|
Object.defineProperty(exports, "MigrationService", {
|
|
10881
10889
|
enumerable: true,
|
|
10882
|
-
get: function () { return
|
|
10890
|
+
get: function () { return chunkI6444XLU_cjs.MigrationService; }
|
|
10883
10891
|
});
|
|
10884
10892
|
Object.defineProperty(exports, "renderFilterBar", {
|
|
10885
10893
|
enumerable: true,
|
|
@@ -10947,31 +10955,31 @@ Object.defineProperty(exports, "PluginHelpers", {
|
|
|
10947
10955
|
});
|
|
10948
10956
|
Object.defineProperty(exports, "QueryFilterBuilder", {
|
|
10949
10957
|
enumerable: true,
|
|
10950
|
-
get: function () { return
|
|
10958
|
+
get: function () { return chunk5EBTBD2Z_cjs.QueryFilterBuilder; }
|
|
10951
10959
|
});
|
|
10952
10960
|
Object.defineProperty(exports, "SONICJS_VERSION", {
|
|
10953
10961
|
enumerable: true,
|
|
10954
|
-
get: function () { return
|
|
10962
|
+
get: function () { return chunk5EBTBD2Z_cjs.SONICJS_VERSION; }
|
|
10955
10963
|
});
|
|
10956
10964
|
Object.defineProperty(exports, "TemplateRenderer", {
|
|
10957
10965
|
enumerable: true,
|
|
10958
|
-
get: function () { return
|
|
10966
|
+
get: function () { return chunk5EBTBD2Z_cjs.TemplateRenderer; }
|
|
10959
10967
|
});
|
|
10960
10968
|
Object.defineProperty(exports, "buildQuery", {
|
|
10961
10969
|
enumerable: true,
|
|
10962
|
-
get: function () { return
|
|
10970
|
+
get: function () { return chunk5EBTBD2Z_cjs.buildQuery; }
|
|
10963
10971
|
});
|
|
10964
10972
|
Object.defineProperty(exports, "getCoreVersion", {
|
|
10965
10973
|
enumerable: true,
|
|
10966
|
-
get: function () { return
|
|
10974
|
+
get: function () { return chunk5EBTBD2Z_cjs.getCoreVersion; }
|
|
10967
10975
|
});
|
|
10968
10976
|
Object.defineProperty(exports, "renderTemplate", {
|
|
10969
10977
|
enumerable: true,
|
|
10970
|
-
get: function () { return
|
|
10978
|
+
get: function () { return chunk5EBTBD2Z_cjs.renderTemplate; }
|
|
10971
10979
|
});
|
|
10972
10980
|
Object.defineProperty(exports, "templateRenderer", {
|
|
10973
10981
|
enumerable: true,
|
|
10974
|
-
get: function () { return
|
|
10982
|
+
get: function () { return chunk5EBTBD2Z_cjs.templateRenderer; }
|
|
10975
10983
|
});
|
|
10976
10984
|
Object.defineProperty(exports, "metricsTracker", {
|
|
10977
10985
|
enumerable: true,
|