@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.
Files changed (68) hide show
  1. package/dist/{chunk-DQZVU3WB.cjs → chunk-5GO3AMON.cjs} +13 -7
  2. package/dist/chunk-5GO3AMON.cjs.map +1 -0
  3. package/dist/{chunk-YFJJU26H.js → chunk-BUPNX3ZM.js} +375 -3
  4. package/dist/chunk-BUPNX3ZM.js.map +1 -0
  5. package/dist/{chunk-SHU7Q66Q.cjs → chunk-E2GKK5HX.cjs} +7 -3
  6. package/dist/chunk-E2GKK5HX.cjs.map +1 -0
  7. package/dist/{chunk-LDFMYRG6.cjs → chunk-EAJJHE5F.cjs} +9 -2
  8. package/dist/chunk-EAJJHE5F.cjs.map +1 -0
  9. package/dist/{chunk-STTZVLY2.js → chunk-FW5CGNM2.js} +9 -2
  10. package/dist/chunk-FW5CGNM2.js.map +1 -0
  11. package/dist/{chunk-KSB6FXOP.cjs → chunk-HGKBMUYY.cjs} +1194 -278
  12. package/dist/chunk-HGKBMUYY.cjs.map +1 -0
  13. package/dist/{chunk-25YNV4RK.js → chunk-JFMBYQTC.js} +10 -4
  14. package/dist/chunk-JFMBYQTC.js.map +1 -0
  15. package/dist/{chunk-64APW3DW.cjs → chunk-LFAQUR7P.cjs} +9 -2
  16. package/dist/chunk-LFAQUR7P.cjs.map +1 -0
  17. package/dist/{chunk-2JGQKF7B.js → chunk-SDAGUFOF.js} +1079 -163
  18. package/dist/chunk-SDAGUFOF.js.map +1 -0
  19. package/dist/{chunk-MPT5PA6U.cjs → chunk-TWCQVJ6M.cjs} +381 -2
  20. package/dist/chunk-TWCQVJ6M.cjs.map +1 -0
  21. package/dist/{chunk-7JMMLHPQ.js → chunk-VJCLJH3X.js} +9 -2
  22. package/dist/chunk-VJCLJH3X.js.map +1 -0
  23. package/dist/{chunk-3FHMXGLF.js → chunk-YXTFJPMN.js} +7 -3
  24. package/dist/chunk-YXTFJPMN.js.map +1 -0
  25. package/dist/{collection-config-DckWhkdL.d.cts → collection-config-B4PG-AaF.d.cts} +2 -0
  26. package/dist/{collection-config-DckWhkdL.d.ts → collection-config-B4PG-AaF.d.ts} +2 -0
  27. package/dist/index.cjs +170 -142
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +3 -3
  30. package/dist/index.d.ts +3 -3
  31. package/dist/index.js +10 -10
  32. package/dist/index.js.map +1 -1
  33. package/dist/middleware.cjs +29 -29
  34. package/dist/middleware.js +3 -3
  35. package/dist/migrations-ADK6YNM2.js +4 -0
  36. package/dist/{migrations-SZSR3C3G.js.map → migrations-ADK6YNM2.js.map} +1 -1
  37. package/dist/migrations-EM2D6EG2.cjs +13 -0
  38. package/dist/{migrations-QQWGDWGB.cjs.map → migrations-EM2D6EG2.cjs.map} +1 -1
  39. package/dist/{plugin-bootstrap-BAz7NY0H.d.cts → plugin-bootstrap-B8PXeGj_.d.cts} +230 -2
  40. package/dist/{plugin-bootstrap-Cz3-bj8X.d.ts → plugin-bootstrap-CD63DZ-p.d.ts} +230 -2
  41. package/dist/routes.cjs +29 -29
  42. package/dist/routes.js +6 -6
  43. package/dist/services.cjs +60 -32
  44. package/dist/services.d.cts +2 -2
  45. package/dist/services.d.ts +2 -2
  46. package/dist/services.js +3 -3
  47. package/dist/types.d.cts +1 -1
  48. package/dist/types.d.ts +1 -1
  49. package/dist/utils.cjs +11 -11
  50. package/dist/utils.d.cts +1 -1
  51. package/dist/utils.d.ts +1 -1
  52. package/dist/utils.js +1 -1
  53. package/migrations/033_form_content_integration.sql +19 -0
  54. package/package.json +5 -1
  55. package/dist/chunk-25YNV4RK.js.map +0 -1
  56. package/dist/chunk-2JGQKF7B.js.map +0 -1
  57. package/dist/chunk-3FHMXGLF.js.map +0 -1
  58. package/dist/chunk-64APW3DW.cjs.map +0 -1
  59. package/dist/chunk-7JMMLHPQ.js.map +0 -1
  60. package/dist/chunk-DQZVU3WB.cjs.map +0 -1
  61. package/dist/chunk-KSB6FXOP.cjs.map +0 -1
  62. package/dist/chunk-LDFMYRG6.cjs.map +0 -1
  63. package/dist/chunk-MPT5PA6U.cjs.map +0 -1
  64. package/dist/chunk-SHU7Q66Q.cjs.map +0 -1
  65. package/dist/chunk-STTZVLY2.js.map +0 -1
  66. package/dist/chunk-YFJJU26H.js.map +0 -1
  67. package/dist/migrations-QQWGDWGB.cjs +0 -13
  68. package/dist/migrations-SZSR3C3G.js +0 -4
@@ -1,4 +1,4 @@
1
- import { C as CollectionConfig, d as CollectionSyncResult } from './collection-config-DckWhkdL.js';
1
+ import { C as CollectionConfig, d as CollectionSyncResult } from './collection-config-B4PG-AaF.js';
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 { insertPluginRouteSchema as $, type PluginRoute as A, PluginService as B, type Collection as C, apiTokens as D, cleanupRemovedCollections as E, collections as F, content as G, contentVersions as H, fullCollectionSync as I, getAvailableCollectionNames as J, getLogger as K, type LogCategory as L, type Media as M, type NewCollection as N, getManagedCollections as O, type Plugin as P, initLogger as Q, insertCollectionSchema as R, type SystemLog as S, insertContentSchema as T, type User as U, insertLogConfigSchema as V, type WorkflowHistory as W, insertMediaSchema as X, insertPluginActivityLogSchema as Y, insertPluginAssetSchema as Z, insertPluginHookSchema as _, type Content as a, insertPluginSchema as a0, insertSystemLogSchema as a1, insertUserSchema as a2, insertWorkflowHistorySchema as a3, isCollectionManaged as a4, loadCollectionConfig as a5, loadCollectionConfigs as a6, logConfig as a7, media as a8, pluginActivityLog as a9, pluginAssets as aa, pluginHooks as ab, pluginRoutes as ac, plugins as ad, registerCollections as ae, selectCollectionSchema as af, selectContentSchema as ag, selectLogConfigSchema as ah, selectMediaSchema as ai, selectPluginActivityLogSchema as aj, selectPluginAssetSchema as ak, selectPluginHookSchema as al, selectPluginRouteSchema as am, selectPluginSchema as an, selectSystemLogSchema as ao, selectUserSchema as ap, selectWorkflowHistorySchema as aq, syncCollection as ar, syncCollections as as, systemLogs as at, users as au, validateCollectionConfig as av, workflowHistory as aw, 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 };
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 };
package/dist/routes.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkKSB6FXOP_cjs = require('./chunk-KSB6FXOP.cjs');
4
- require('./chunk-64APW3DW.cjs');
5
- require('./chunk-DQZVU3WB.cjs');
6
- require('./chunk-MPT5PA6U.cjs');
7
- require('./chunk-LDFMYRG6.cjs');
3
+ var chunkHGKBMUYY_cjs = require('./chunk-HGKBMUYY.cjs');
4
+ require('./chunk-LFAQUR7P.cjs');
5
+ require('./chunk-5GO3AMON.cjs');
6
+ require('./chunk-TWCQVJ6M.cjs');
7
+ require('./chunk-EAJJHE5F.cjs');
8
8
  require('./chunk-LTKV7AE5.cjs');
9
9
  require('./chunk-6FHNRRJ3.cjs');
10
- require('./chunk-SHU7Q66Q.cjs');
10
+ require('./chunk-E2GKK5HX.cjs');
11
11
  require('./chunk-P3XDZL6Q.cjs');
12
12
  require('./chunk-RCQ2HIQD.cjs');
13
13
  require('./chunk-MNWKYY5E.cjs');
@@ -17,95 +17,95 @@ require('./chunk-IGJUBJBW.cjs');
17
17
 
18
18
  Object.defineProperty(exports, "ROUTES_INFO", {
19
19
  enumerable: true,
20
- get: function () { return chunkKSB6FXOP_cjs.ROUTES_INFO; }
20
+ get: function () { return chunkHGKBMUYY_cjs.ROUTES_INFO; }
21
21
  });
22
22
  Object.defineProperty(exports, "adminApiReferenceRoutes", {
23
23
  enumerable: true,
24
- get: function () { return chunkKSB6FXOP_cjs.router2; }
24
+ get: function () { return chunkHGKBMUYY_cjs.router2; }
25
25
  });
26
26
  Object.defineProperty(exports, "adminApiRoutes", {
27
27
  enumerable: true,
28
- get: function () { return chunkKSB6FXOP_cjs.admin_api_default; }
28
+ get: function () { return chunkHGKBMUYY_cjs.admin_api_default; }
29
29
  });
30
30
  Object.defineProperty(exports, "adminCheckboxRoutes", {
31
31
  enumerable: true,
32
- get: function () { return chunkKSB6FXOP_cjs.adminCheckboxRoutes; }
32
+ get: function () { return chunkHGKBMUYY_cjs.adminCheckboxRoutes; }
33
33
  });
34
34
  Object.defineProperty(exports, "adminCodeExamplesRoutes", {
35
35
  enumerable: true,
36
- get: function () { return chunkKSB6FXOP_cjs.admin_code_examples_default; }
36
+ get: function () { return chunkHGKBMUYY_cjs.admin_code_examples_default; }
37
37
  });
38
38
  Object.defineProperty(exports, "adminCollectionsRoutes", {
39
39
  enumerable: true,
40
- get: function () { return chunkKSB6FXOP_cjs.adminCollectionsRoutes; }
40
+ get: function () { return chunkHGKBMUYY_cjs.adminCollectionsRoutes; }
41
41
  });
42
42
  Object.defineProperty(exports, "adminContentRoutes", {
43
43
  enumerable: true,
44
- get: function () { return chunkKSB6FXOP_cjs.admin_content_default; }
44
+ get: function () { return chunkHGKBMUYY_cjs.admin_content_default; }
45
45
  });
46
46
  Object.defineProperty(exports, "adminDashboardRoutes", {
47
47
  enumerable: true,
48
- get: function () { return chunkKSB6FXOP_cjs.router; }
48
+ get: function () { return chunkHGKBMUYY_cjs.router; }
49
49
  });
50
50
  Object.defineProperty(exports, "adminDesignRoutes", {
51
51
  enumerable: true,
52
- get: function () { return chunkKSB6FXOP_cjs.adminDesignRoutes; }
52
+ get: function () { return chunkHGKBMUYY_cjs.adminDesignRoutes; }
53
53
  });
54
54
  Object.defineProperty(exports, "adminFormsRoutes", {
55
55
  enumerable: true,
56
- get: function () { return chunkKSB6FXOP_cjs.adminFormsRoutes; }
56
+ get: function () { return chunkHGKBMUYY_cjs.adminFormsRoutes; }
57
57
  });
58
58
  Object.defineProperty(exports, "adminLogsRoutes", {
59
59
  enumerable: true,
60
- get: function () { return chunkKSB6FXOP_cjs.adminLogsRoutes; }
60
+ get: function () { return chunkHGKBMUYY_cjs.adminLogsRoutes; }
61
61
  });
62
62
  Object.defineProperty(exports, "adminMediaRoutes", {
63
63
  enumerable: true,
64
- get: function () { return chunkKSB6FXOP_cjs.adminMediaRoutes; }
64
+ get: function () { return chunkHGKBMUYY_cjs.adminMediaRoutes; }
65
65
  });
66
66
  Object.defineProperty(exports, "adminPluginRoutes", {
67
67
  enumerable: true,
68
- get: function () { return chunkKSB6FXOP_cjs.adminPluginRoutes; }
68
+ get: function () { return chunkHGKBMUYY_cjs.adminPluginRoutes; }
69
69
  });
70
70
  Object.defineProperty(exports, "adminSettingsRoutes", {
71
71
  enumerable: true,
72
- get: function () { return chunkKSB6FXOP_cjs.adminSettingsRoutes; }
72
+ get: function () { return chunkHGKBMUYY_cjs.adminSettingsRoutes; }
73
73
  });
74
74
  Object.defineProperty(exports, "adminTestimonialsRoutes", {
75
75
  enumerable: true,
76
- get: function () { return chunkKSB6FXOP_cjs.admin_testimonials_default; }
76
+ get: function () { return chunkHGKBMUYY_cjs.admin_testimonials_default; }
77
77
  });
78
78
  Object.defineProperty(exports, "adminUsersRoutes", {
79
79
  enumerable: true,
80
- get: function () { return chunkKSB6FXOP_cjs.userRoutes; }
80
+ get: function () { return chunkHGKBMUYY_cjs.userRoutes; }
81
81
  });
82
82
  Object.defineProperty(exports, "apiContentCrudRoutes", {
83
83
  enumerable: true,
84
- get: function () { return chunkKSB6FXOP_cjs.api_content_crud_default; }
84
+ get: function () { return chunkHGKBMUYY_cjs.api_content_crud_default; }
85
85
  });
86
86
  Object.defineProperty(exports, "apiMediaRoutes", {
87
87
  enumerable: true,
88
- get: function () { return chunkKSB6FXOP_cjs.api_media_default; }
88
+ get: function () { return chunkHGKBMUYY_cjs.api_media_default; }
89
89
  });
90
90
  Object.defineProperty(exports, "apiRoutes", {
91
91
  enumerable: true,
92
- get: function () { return chunkKSB6FXOP_cjs.api_default; }
92
+ get: function () { return chunkHGKBMUYY_cjs.api_default; }
93
93
  });
94
94
  Object.defineProperty(exports, "apiSystemRoutes", {
95
95
  enumerable: true,
96
- get: function () { return chunkKSB6FXOP_cjs.api_system_default; }
96
+ get: function () { return chunkHGKBMUYY_cjs.api_system_default; }
97
97
  });
98
98
  Object.defineProperty(exports, "authRoutes", {
99
99
  enumerable: true,
100
- get: function () { return chunkKSB6FXOP_cjs.auth_default; }
100
+ get: function () { return chunkHGKBMUYY_cjs.auth_default; }
101
101
  });
102
102
  Object.defineProperty(exports, "publicFormsRoutes", {
103
103
  enumerable: true,
104
- get: function () { return chunkKSB6FXOP_cjs.public_forms_default; }
104
+ get: function () { return chunkHGKBMUYY_cjs.public_forms_default; }
105
105
  });
106
106
  Object.defineProperty(exports, "testCleanupRoutes", {
107
107
  enumerable: true,
108
- get: function () { return chunkKSB6FXOP_cjs.test_cleanup_default; }
108
+ get: function () { return chunkHGKBMUYY_cjs.test_cleanup_default; }
109
109
  });
110
110
  //# sourceMappingURL=routes.cjs.map
111
111
  //# sourceMappingURL=routes.cjs.map
package/dist/routes.js CHANGED
@@ -1,11 +1,11 @@
1
- export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-2JGQKF7B.js';
2
- import './chunk-7JMMLHPQ.js';
3
- import './chunk-25YNV4RK.js';
4
- import './chunk-YFJJU26H.js';
5
- import './chunk-STTZVLY2.js';
1
+ export { ROUTES_INFO, router2 as adminApiReferenceRoutes, admin_api_default as adminApiRoutes, adminCheckboxRoutes, admin_code_examples_default as adminCodeExamplesRoutes, adminCollectionsRoutes, admin_content_default as adminContentRoutes, router as adminDashboardRoutes, adminDesignRoutes, adminFormsRoutes, adminLogsRoutes, adminMediaRoutes, adminPluginRoutes, adminSettingsRoutes, admin_testimonials_default as adminTestimonialsRoutes, userRoutes as adminUsersRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes, public_forms_default as publicFormsRoutes, test_cleanup_default as testCleanupRoutes } from './chunk-SDAGUFOF.js';
2
+ import './chunk-VJCLJH3X.js';
3
+ import './chunk-JFMBYQTC.js';
4
+ import './chunk-BUPNX3ZM.js';
5
+ import './chunk-FW5CGNM2.js';
6
6
  import './chunk-JJS7JZCH.js';
7
7
  import './chunk-J5WGMRSU.js';
8
- import './chunk-3FHMXGLF.js';
8
+ import './chunk-YXTFJPMN.js';
9
9
  import './chunk-X7ZAEI5S.js';
10
10
  import './chunk-FICTAGD4.js';
11
11
  import './chunk-TQABQWOP.js';
package/dist/services.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunk64APW3DW_cjs = require('./chunk-64APW3DW.cjs');
4
- var chunkMPT5PA6U_cjs = require('./chunk-MPT5PA6U.cjs');
5
- var chunkLDFMYRG6_cjs = require('./chunk-LDFMYRG6.cjs');
3
+ var chunkLFAQUR7P_cjs = require('./chunk-LFAQUR7P.cjs');
4
+ var chunkTWCQVJ6M_cjs = require('./chunk-TWCQVJ6M.cjs');
5
+ var chunkEAJJHE5F_cjs = require('./chunk-EAJJHE5F.cjs');
6
6
  require('./chunk-P3XDZL6Q.cjs');
7
7
  require('./chunk-IGJUBJBW.cjs');
8
8
 
@@ -10,119 +10,147 @@ require('./chunk-IGJUBJBW.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "CACHE_CONFIGS", {
12
12
  enumerable: true,
13
- get: function () { return chunk64APW3DW_cjs.CACHE_CONFIGS; }
13
+ get: function () { return chunkLFAQUR7P_cjs.CACHE_CONFIGS; }
14
14
  });
15
15
  Object.defineProperty(exports, "CATEGORY_INFO", {
16
16
  enumerable: true,
17
- get: function () { return chunk64APW3DW_cjs.CATEGORY_INFO; }
17
+ get: function () { return chunkLFAQUR7P_cjs.CATEGORY_INFO; }
18
18
  });
19
19
  Object.defineProperty(exports, "CacheService", {
20
20
  enumerable: true,
21
- get: function () { return chunk64APW3DW_cjs.CacheService; }
21
+ get: function () { return chunkLFAQUR7P_cjs.CacheService; }
22
22
  });
23
23
  Object.defineProperty(exports, "Logger", {
24
24
  enumerable: true,
25
- get: function () { return chunk64APW3DW_cjs.Logger; }
25
+ get: function () { return chunkLFAQUR7P_cjs.Logger; }
26
26
  });
27
27
  Object.defineProperty(exports, "SettingsService", {
28
28
  enumerable: true,
29
- get: function () { return chunk64APW3DW_cjs.SettingsService; }
29
+ get: function () { return chunkLFAQUR7P_cjs.SettingsService; }
30
30
  });
31
31
  Object.defineProperty(exports, "TelemetryService", {
32
32
  enumerable: true,
33
- get: function () { return chunk64APW3DW_cjs.TelemetryService; }
33
+ get: function () { return chunkLFAQUR7P_cjs.TelemetryService; }
34
34
  });
35
35
  Object.defineProperty(exports, "buildRouteList", {
36
36
  enumerable: true,
37
- get: function () { return chunk64APW3DW_cjs.buildRouteList; }
37
+ get: function () { return chunkLFAQUR7P_cjs.buildRouteList; }
38
38
  });
39
39
  Object.defineProperty(exports, "createInstallationIdentity", {
40
40
  enumerable: true,
41
- get: function () { return chunk64APW3DW_cjs.createInstallationIdentity; }
41
+ get: function () { return chunkLFAQUR7P_cjs.createInstallationIdentity; }
42
42
  });
43
43
  Object.defineProperty(exports, "getAppInstance", {
44
44
  enumerable: true,
45
- get: function () { return chunk64APW3DW_cjs.getAppInstance; }
45
+ get: function () { return chunkLFAQUR7P_cjs.getAppInstance; }
46
46
  });
47
47
  Object.defineProperty(exports, "getCacheService", {
48
48
  enumerable: true,
49
- get: function () { return chunk64APW3DW_cjs.getCacheService; }
49
+ get: function () { return chunkLFAQUR7P_cjs.getCacheService; }
50
50
  });
51
51
  Object.defineProperty(exports, "getLogger", {
52
52
  enumerable: true,
53
- get: function () { return chunk64APW3DW_cjs.getLogger; }
53
+ get: function () { return chunkLFAQUR7P_cjs.getLogger; }
54
54
  });
55
55
  Object.defineProperty(exports, "getTelemetryService", {
56
56
  enumerable: true,
57
- get: function () { return chunk64APW3DW_cjs.getTelemetryService; }
57
+ get: function () { return chunkLFAQUR7P_cjs.getTelemetryService; }
58
58
  });
59
59
  Object.defineProperty(exports, "initLogger", {
60
60
  enumerable: true,
61
- get: function () { return chunk64APW3DW_cjs.initLogger; }
61
+ get: function () { return chunkLFAQUR7P_cjs.initLogger; }
62
62
  });
63
63
  Object.defineProperty(exports, "initTelemetry", {
64
64
  enumerable: true,
65
- get: function () { return chunk64APW3DW_cjs.initTelemetry; }
65
+ get: function () { return chunkLFAQUR7P_cjs.initTelemetry; }
66
66
  });
67
67
  Object.defineProperty(exports, "setAppInstance", {
68
68
  enumerable: true,
69
- get: function () { return chunk64APW3DW_cjs.setAppInstance; }
69
+ get: function () { return chunkLFAQUR7P_cjs.setAppInstance; }
70
70
  });
71
71
  Object.defineProperty(exports, "PluginBootstrapService", {
72
72
  enumerable: true,
73
- get: function () { return chunkMPT5PA6U_cjs.PluginBootstrapService; }
73
+ get: function () { return chunkTWCQVJ6M_cjs.PluginBootstrapService; }
74
74
  });
75
75
  Object.defineProperty(exports, "PluginService", {
76
76
  enumerable: true,
77
- get: function () { return chunkMPT5PA6U_cjs.PluginService; }
77
+ get: function () { return chunkTWCQVJ6M_cjs.PluginService; }
78
+ });
79
+ Object.defineProperty(exports, "backfillFormSubmissions", {
80
+ enumerable: true,
81
+ get: function () { return chunkTWCQVJ6M_cjs.backfillFormSubmissions; }
78
82
  });
79
83
  Object.defineProperty(exports, "cleanupRemovedCollections", {
80
84
  enumerable: true,
81
- get: function () { return chunkMPT5PA6U_cjs.cleanupRemovedCollections; }
85
+ get: function () { return chunkTWCQVJ6M_cjs.cleanupRemovedCollections; }
86
+ });
87
+ Object.defineProperty(exports, "createContentFromSubmission", {
88
+ enumerable: true,
89
+ get: function () { return chunkTWCQVJ6M_cjs.createContentFromSubmission; }
90
+ });
91
+ Object.defineProperty(exports, "deriveCollectionSchemaFromFormio", {
92
+ enumerable: true,
93
+ get: function () { return chunkTWCQVJ6M_cjs.deriveCollectionSchemaFromFormio; }
94
+ });
95
+ Object.defineProperty(exports, "deriveSubmissionTitle", {
96
+ enumerable: true,
97
+ get: function () { return chunkTWCQVJ6M_cjs.deriveSubmissionTitle; }
82
98
  });
83
99
  Object.defineProperty(exports, "fullCollectionSync", {
84
100
  enumerable: true,
85
- get: function () { return chunkMPT5PA6U_cjs.fullCollectionSync; }
101
+ get: function () { return chunkTWCQVJ6M_cjs.fullCollectionSync; }
86
102
  });
87
103
  Object.defineProperty(exports, "getAvailableCollectionNames", {
88
104
  enumerable: true,
89
- get: function () { return chunkMPT5PA6U_cjs.getAvailableCollectionNames; }
105
+ get: function () { return chunkTWCQVJ6M_cjs.getAvailableCollectionNames; }
90
106
  });
91
107
  Object.defineProperty(exports, "getManagedCollections", {
92
108
  enumerable: true,
93
- get: function () { return chunkMPT5PA6U_cjs.getManagedCollections; }
109
+ get: function () { return chunkTWCQVJ6M_cjs.getManagedCollections; }
94
110
  });
95
111
  Object.defineProperty(exports, "isCollectionManaged", {
96
112
  enumerable: true,
97
- get: function () { return chunkMPT5PA6U_cjs.isCollectionManaged; }
113
+ get: function () { return chunkTWCQVJ6M_cjs.isCollectionManaged; }
98
114
  });
99
115
  Object.defineProperty(exports, "loadCollectionConfig", {
100
116
  enumerable: true,
101
- get: function () { return chunkMPT5PA6U_cjs.loadCollectionConfig; }
117
+ get: function () { return chunkTWCQVJ6M_cjs.loadCollectionConfig; }
102
118
  });
103
119
  Object.defineProperty(exports, "loadCollectionConfigs", {
104
120
  enumerable: true,
105
- get: function () { return chunkMPT5PA6U_cjs.loadCollectionConfigs; }
121
+ get: function () { return chunkTWCQVJ6M_cjs.loadCollectionConfigs; }
122
+ });
123
+ Object.defineProperty(exports, "mapFormStatusToContentStatus", {
124
+ enumerable: true,
125
+ get: function () { return chunkTWCQVJ6M_cjs.mapFormStatusToContentStatus; }
106
126
  });
107
127
  Object.defineProperty(exports, "registerCollections", {
108
128
  enumerable: true,
109
- get: function () { return chunkMPT5PA6U_cjs.registerCollections; }
129
+ get: function () { return chunkTWCQVJ6M_cjs.registerCollections; }
130
+ });
131
+ Object.defineProperty(exports, "syncAllFormCollections", {
132
+ enumerable: true,
133
+ get: function () { return chunkTWCQVJ6M_cjs.syncAllFormCollections; }
110
134
  });
111
135
  Object.defineProperty(exports, "syncCollection", {
112
136
  enumerable: true,
113
- get: function () { return chunkMPT5PA6U_cjs.syncCollection; }
137
+ get: function () { return chunkTWCQVJ6M_cjs.syncCollection; }
114
138
  });
115
139
  Object.defineProperty(exports, "syncCollections", {
116
140
  enumerable: true,
117
- get: function () { return chunkMPT5PA6U_cjs.syncCollections; }
141
+ get: function () { return chunkTWCQVJ6M_cjs.syncCollections; }
142
+ });
143
+ Object.defineProperty(exports, "syncFormCollection", {
144
+ enumerable: true,
145
+ get: function () { return chunkTWCQVJ6M_cjs.syncFormCollection; }
118
146
  });
119
147
  Object.defineProperty(exports, "validateCollectionConfig", {
120
148
  enumerable: true,
121
- get: function () { return chunkMPT5PA6U_cjs.validateCollectionConfig; }
149
+ get: function () { return chunkTWCQVJ6M_cjs.validateCollectionConfig; }
122
150
  });
123
151
  Object.defineProperty(exports, "MigrationService", {
124
152
  enumerable: true,
125
- get: function () { return chunkLDFMYRG6_cjs.MigrationService; }
153
+ get: function () { return chunkEAJJHE5F_cjs.MigrationService; }
126
154
  });
127
155
  //# sourceMappingURL=services.cjs.map
128
156
  //# sourceMappingURL=services.cjs.map
@@ -1,6 +1,6 @@
1
- export { b as CorePlugin, L as LogCategory, e as LogEntry, f as LogFilter, g as LogLevel, h as Logger, i as Migration, j as MigrationService, k as MigrationStatus, z as PluginBootstrapService, B as PluginService, E as cleanupRemovedCollections, I as fullCollectionSync, J as getAvailableCollectionNames, K as getLogger, O as getManagedCollections, Q as initLogger, a4 as isCollectionManaged, a5 as loadCollectionConfig, a6 as loadCollectionConfigs, ae as registerCollections, ar as syncCollection, as as syncCollections, av as validateCollectionConfig } from './plugin-bootstrap-BAz7NY0H.cjs';
1
+ export { b as CorePlugin, L as LogCategory, e as LogEntry, f as LogFilter, g as LogLevel, h as Logger, i as Migration, j as MigrationService, k as MigrationStatus, z as PluginBootstrapService, B as PluginService, E as backfillFormSubmissions, F as cleanupRemovedCollections, J as createContentFromSubmission, K as deriveCollectionSchemaFromFormio, O as deriveSubmissionTitle, Q as fullCollectionSync, R as getAvailableCollectionNames, T as getLogger, V as getManagedCollections, X as initLogger, a8 as isCollectionManaged, a9 as loadCollectionConfig, aa as loadCollectionConfigs, ac as mapFormStatusToContentStatus, aj as registerCollections, aw as syncAllFormCollections, ax as syncCollection, ay as syncCollections, az as syncFormCollection, aC as validateCollectionConfig } from './plugin-bootstrap-B8PXeGj_.cjs';
2
2
  import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-B9vIV4wh.cjs';
3
- import './collection-config-DckWhkdL.cjs';
3
+ import './collection-config-B4PG-AaF.cjs';
4
4
  import '@cloudflare/workers-types';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -1,6 +1,6 @@
1
- export { b as CorePlugin, L as LogCategory, e as LogEntry, f as LogFilter, g as LogLevel, h as Logger, i as Migration, j as MigrationService, k as MigrationStatus, z as PluginBootstrapService, B as PluginService, E as cleanupRemovedCollections, I as fullCollectionSync, J as getAvailableCollectionNames, K as getLogger, O as getManagedCollections, Q as initLogger, a4 as isCollectionManaged, a5 as loadCollectionConfig, a6 as loadCollectionConfigs, ae as registerCollections, ar as syncCollection, as as syncCollections, av as validateCollectionConfig } from './plugin-bootstrap-Cz3-bj8X.js';
1
+ export { b as CorePlugin, L as LogCategory, e as LogEntry, f as LogFilter, g as LogLevel, h as Logger, i as Migration, j as MigrationService, k as MigrationStatus, z as PluginBootstrapService, B as PluginService, E as backfillFormSubmissions, F as cleanupRemovedCollections, J as createContentFromSubmission, K as deriveCollectionSchemaFromFormio, O as deriveSubmissionTitle, Q as fullCollectionSync, R as getAvailableCollectionNames, T as getLogger, V as getManagedCollections, X as initLogger, a8 as isCollectionManaged, a9 as loadCollectionConfig, aa as loadCollectionConfigs, ac as mapFormStatusToContentStatus, aj as registerCollections, aw as syncAllFormCollections, ax as syncCollection, ay as syncCollections, az as syncFormCollection, aC as validateCollectionConfig } from './plugin-bootstrap-CD63DZ-p.js';
2
2
  import { T as TelemetryConfig, b as TelemetryIdentity, a as TelemetryEvent, c as TelemetryProperties } from './telemetry-B9vIV4wh.js';
3
- import './collection-config-DckWhkdL.js';
3
+ import './collection-config-B4PG-AaF.js';
4
4
  import '@cloudflare/workers-types';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';