@snolla/data 0.0.0-stage → 1.0.7

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 (67) hide show
  1. package/dist/actor.d.ts +28 -0
  2. package/dist/actor.js +63 -0
  3. package/dist/audit.d.ts +36 -0
  4. package/dist/audit.js +198 -0
  5. package/dist/dataProvider.d.ts +41 -0
  6. package/dist/dataProvider.js +148 -0
  7. package/dist/dataSource.d.ts +4 -0
  8. package/dist/dataSource.js +65 -0
  9. package/dist/dbProvider.d.ts +1261 -0
  10. package/dist/dbProvider.js +1898 -0
  11. package/dist/freeze.d.ts +29 -0
  12. package/dist/freeze.js +69 -0
  13. package/dist/guard.d.ts +53 -0
  14. package/dist/guard.js +397 -0
  15. package/dist/insert.d.ts +9 -0
  16. package/dist/insert.js +44 -0
  17. package/dist/migrations/siteid.d.mts +738 -0
  18. package/dist/migrations/siteid.mjs +512 -0
  19. package/dist/publish.d.ts +1 -0
  20. package/dist/publish.js +1 -0
  21. package/dist/schema/dsl.d.ts +64 -0
  22. package/dist/schema/dsl.js +28 -0
  23. package/dist/schema/generate.d.mts +14 -0
  24. package/dist/schema/generate.mjs +282 -0
  25. package/dist/schema/generated/ddl.d.ts +7 -0
  26. package/dist/schema/generated/ddl.js +11 -0
  27. package/dist/schema/generated/kysely-types.d.ts +1988 -0
  28. package/dist/schema/generated/kysely-types.js +5 -0
  29. package/dist/schema/index.d.ts +2 -0
  30. package/dist/schema/index.js +7 -0
  31. package/dist/schema/provision.d.mts +11 -0
  32. package/dist/schema/provision.mjs +111 -0
  33. package/dist/schema/tables.d.ts +2 -0
  34. package/dist/schema/tables.js +3301 -0
  35. package/dist/scripts/canon-audit.d.mts +25 -0
  36. package/dist/scripts/canon-audit.mjs +213 -0
  37. package/dist/scripts/canon-smoke.d.mts +1 -0
  38. package/dist/scripts/canon-smoke.mjs +44 -0
  39. package/dist/scripts/dialect-ddl-stand.d.mts +1 -0
  40. package/dist/scripts/dialect-ddl-stand.mjs +136 -0
  41. package/dist/scripts/owner-spec-check.d.mts +1 -0
  42. package/dist/scripts/owner-spec-check.mjs +166 -0
  43. package/dist/scripts/owners/owner-resolve-spec.json +540 -0
  44. package/dist/scripts/owners-audit.d.mts +60 -0
  45. package/dist/scripts/owners-audit.mjs +443 -0
  46. package/dist/scripts/owners-fixture.d.mts +20 -0
  47. package/dist/scripts/owners-fixture.mjs +192 -0
  48. package/dist/scripts/schema-lengths-audit.d.mts +22 -0
  49. package/dist/scripts/schema-lengths-audit.mjs +146 -0
  50. package/dist/scripts/siteid-migrate.d.mts +7 -0
  51. package/dist/scripts/siteid-migrate.mjs +260 -0
  52. package/dist/scripts/tenant-invariant-audit.d.mts +1 -0
  53. package/dist/scripts/tenant-invariant-audit.mjs +34 -0
  54. package/dist/singleMode.d.ts +5 -0
  55. package/dist/singleMode.js +23 -0
  56. package/dist/sqliteDialect.d.ts +6 -0
  57. package/dist/sqliteDialect.js +92 -0
  58. package/dist/templateDefs.d.ts +38 -0
  59. package/dist/templateDefs.js +163 -0
  60. package/dist/test/fixtures/broken-driver/index.d.ts +3 -0
  61. package/dist/test/fixtures/broken-driver/index.js +5 -0
  62. package/dist/test/support/dialect-stand.d.ts +37 -0
  63. package/dist/test/support/dialect-stand.js +162 -0
  64. package/dist/test/support/render-parity.d.ts +44 -0
  65. package/dist/test/support/render-parity.js +262 -0
  66. package/package.json +50 -5
  67. package/README.md +0 -3
@@ -0,0 +1,1261 @@
1
+ export const DIALECTS: string[];
2
+ export const CELL_REQUIRED_KEYS: string[];
3
+ export namespace SLICES {
4
+ namespace sites {
5
+ let table: string;
6
+ let key: string;
7
+ let columns: string[];
8
+ function shape(row: any): {
9
+ id: any;
10
+ accountId: any;
11
+ title: any;
12
+ alias: any;
13
+ loweredAlias: any;
14
+ primaryDomain: any;
15
+ timeOffset: any;
16
+ culture: any;
17
+ multiCultural: boolean;
18
+ cultures: any;
19
+ activeThemeId: any;
20
+ robotsTxt: any;
21
+ live: boolean;
22
+ production: boolean;
23
+ prefixAction: any;
24
+ settingsData: any;
25
+ defaultContentType: any;
26
+ defaultEncoding: any;
27
+ defaultPageName: any;
28
+ defaultExtension: any;
29
+ cachingOptions: any;
30
+ enableCors: boolean;
31
+ defaultCorsPolicy: any;
32
+ contentCacheOptions: any;
33
+ writable: boolean;
34
+ searchIndexCreationTimestamp: any;
35
+ key: any;
36
+ };
37
+ }
38
+ namespace themes {
39
+ let table_1: string;
40
+ export { table_1 as table };
41
+ let key_1: string;
42
+ export { key_1 as key };
43
+ let columns_1: string[];
44
+ export { columns_1 as columns };
45
+ export function shape_1(row: any): {
46
+ id: any;
47
+ siteId: any;
48
+ name: any;
49
+ viewEngineId: any;
50
+ imageSizes: any;
51
+ parentThemeId: any;
52
+ settingsData: any;
53
+ settingsMarkup: any;
54
+ key: any;
55
+ };
56
+ export { shape_1 as shape };
57
+ }
58
+ namespace domains {
59
+ let table_2: string;
60
+ export { table_2 as table };
61
+ let key_2: string;
62
+ export { key_2 as key };
63
+ let columns_2: string[];
64
+ export { columns_2 as columns };
65
+ export function shape_2(row: any): {
66
+ id: any;
67
+ siteId: any;
68
+ name: any;
69
+ themeId: any;
70
+ prefixAction: any;
71
+ robotsTxt: any;
72
+ public: boolean;
73
+ settingsData: any;
74
+ key: any;
75
+ };
76
+ export { shape_2 as shape };
77
+ }
78
+ namespace redirections {
79
+ let table_3: string;
80
+ export { table_3 as table };
81
+ let key_3: string;
82
+ export { key_3 as key };
83
+ let columns_3: string[];
84
+ export { columns_3 as columns };
85
+ export function shape_3(row: any): {
86
+ id: any;
87
+ siteId: any;
88
+ title: any;
89
+ seq: any;
90
+ urlDetection: boolean;
91
+ sourceUrl: any;
92
+ sourceType: any;
93
+ regex: boolean;
94
+ ignoreCase: boolean;
95
+ action: any;
96
+ destinationUrl: any;
97
+ permanent: boolean;
98
+ themeId: any;
99
+ browserDetection: boolean;
100
+ mobileDeviceDetection: boolean;
101
+ deviceTypeDetection: boolean;
102
+ ignoreOptions: boolean;
103
+ key: any;
104
+ };
105
+ export { shape_3 as shape };
106
+ }
107
+ namespace stores {
108
+ let table_4: string;
109
+ export { table_4 as table };
110
+ let key_4: string;
111
+ export { key_4 as key };
112
+ let columns_4: string[];
113
+ export { columns_4 as columns };
114
+ export function shape_4(row: any): {
115
+ id: any;
116
+ siteId: any;
117
+ title: any;
118
+ path: any;
119
+ alias: any;
120
+ content: any;
121
+ storeFields: any;
122
+ storeLayout: any;
123
+ storeLayouts: any;
124
+ productLayout: any;
125
+ productsPath: any;
126
+ productPath: any;
127
+ productNumberFormat: any;
128
+ categoriesLayout: any;
129
+ categoryLayout: any;
130
+ categoryLayouts: any;
131
+ categoryFields: any;
132
+ categoriesPath: any;
133
+ tagsLayout: any;
134
+ tagLayout: any;
135
+ tagLayouts: any;
136
+ tagFields: any;
137
+ tagsPath: any;
138
+ vendorsLayout: any;
139
+ vendorLayout: any;
140
+ vendorLayouts: any;
141
+ vendorFields: any;
142
+ vendorsPath: any;
143
+ includeInSitemap: boolean;
144
+ sitemapLastUpdatedTime: any;
145
+ sitemapChangeFrequency: any;
146
+ sitemapPriority: any;
147
+ key: any;
148
+ };
149
+ export { shape_4 as shape };
150
+ }
151
+ namespace storeProducts {
152
+ let table_5: string;
153
+ export { table_5 as table };
154
+ let key_5: string;
155
+ export { key_5 as key };
156
+ let columns_5: string[];
157
+ export { columns_5 as columns };
158
+ export function shape_5(row: any): {
159
+ id: any;
160
+ storeId: any;
161
+ number: any;
162
+ templateId: any;
163
+ content: any;
164
+ slug: any;
165
+ title: any;
166
+ rating: any;
167
+ votesCount: any;
168
+ countryOfOrigin: any;
169
+ vendorId: any;
170
+ published: boolean;
171
+ dateCreated: any;
172
+ includeInSitemap: boolean;
173
+ sitemapLastUpdatedTime: any;
174
+ sitemapChangeFrequency: any;
175
+ sitemapPriority: any;
176
+ key: any;
177
+ };
178
+ export { shape_5 as shape };
179
+ }
180
+ namespace storeProductTemplates {
181
+ let table_6: string;
182
+ export { table_6 as table };
183
+ let key_6: string;
184
+ export { key_6 as key };
185
+ let columns_6: string[];
186
+ export { columns_6 as columns };
187
+ export function shape_6(row: any): {
188
+ id: any;
189
+ name: any;
190
+ description: any;
191
+ storeId: any;
192
+ content: any;
193
+ alias: any;
194
+ customDefaultLayout: any;
195
+ layouts: any;
196
+ variantTemplateId: any;
197
+ key: any;
198
+ };
199
+ export { shape_6 as shape };
200
+ }
201
+ namespace storeProductVariantTemplates {
202
+ let table_7: string;
203
+ export { table_7 as table };
204
+ let key_7: string;
205
+ export { key_7 as key };
206
+ let columns_7: string[];
207
+ export { columns_7 as columns };
208
+ export function shape_7(row: any): {
209
+ id: any;
210
+ storeId: any;
211
+ name: any;
212
+ alias: any;
213
+ description: any;
214
+ content: any;
215
+ customDefaultLayout: any;
216
+ layouts: any;
217
+ key: any;
218
+ };
219
+ export { shape_7 as shape };
220
+ }
221
+ namespace storeProductVariants {
222
+ let table_8: string;
223
+ export { table_8 as table };
224
+ let key_8: string;
225
+ export { key_8 as key };
226
+ let columns_8: string[];
227
+ export { columns_8 as columns };
228
+ export function shape_8(row: any): {
229
+ id: any;
230
+ productId: any;
231
+ position: any;
232
+ title: any;
233
+ sku: any;
234
+ vendorCode: any;
235
+ templateId: any;
236
+ content: any;
237
+ price: any;
238
+ compareAtPrice: any;
239
+ inventoryQuantity: any;
240
+ inventoryPolicyId: any;
241
+ key: any;
242
+ };
243
+ export { shape_8 as shape };
244
+ }
245
+ namespace storeCategories {
246
+ let table_9: string;
247
+ export { table_9 as table };
248
+ let key_9: string;
249
+ export { key_9 as key };
250
+ let columns_9: string[];
251
+ export { columns_9 as columns };
252
+ export function shape_9(row: any): {
253
+ id: any;
254
+ storeId: any;
255
+ title: any;
256
+ description: any;
257
+ slug: any;
258
+ content: any;
259
+ key: any;
260
+ };
261
+ export { shape_9 as shape };
262
+ }
263
+ namespace storeTags {
264
+ let table_10: string;
265
+ export { table_10 as table };
266
+ let key_10: string;
267
+ export { key_10 as key };
268
+ let columns_10: string[];
269
+ export { columns_10 as columns };
270
+ export function shape_10(row: any): {
271
+ id: any;
272
+ storeId: any;
273
+ title: any;
274
+ slug: any;
275
+ content: any;
276
+ key: any;
277
+ };
278
+ export { shape_10 as shape };
279
+ }
280
+ namespace storeVendors {
281
+ let table_11: string;
282
+ export { table_11 as table };
283
+ let key_11: string;
284
+ export { key_11 as key };
285
+ let columns_11: string[];
286
+ export { columns_11 as columns };
287
+ export function shape_11(row: any): {
288
+ id: any;
289
+ storeId: any;
290
+ title: any;
291
+ slug: any;
292
+ content: any;
293
+ key: any;
294
+ };
295
+ export { shape_11 as shape };
296
+ }
297
+ namespace productStoreCategories {
298
+ let table_12: string;
299
+ export { table_12 as table };
300
+ let key_12: string;
301
+ export { key_12 as key };
302
+ let columns_12: string[];
303
+ export { columns_12 as columns };
304
+ export function shape_12(row: any): {
305
+ productId: any;
306
+ categoryId: any;
307
+ key: any;
308
+ };
309
+ export { shape_12 as shape };
310
+ }
311
+ namespace productStoreTags {
312
+ let table_13: string;
313
+ export { table_13 as table };
314
+ let key_13: string;
315
+ export { key_13 as key };
316
+ let columns_13: string[];
317
+ export { columns_13 as columns };
318
+ export function shape_13(row: any): {
319
+ productId: any;
320
+ tagId: any;
321
+ key: any;
322
+ };
323
+ export { shape_13 as shape };
324
+ }
325
+ namespace blogs {
326
+ let table_14: string;
327
+ export { table_14 as table };
328
+ let key_14: string;
329
+ export { key_14 as key };
330
+ let columns_14: string[];
331
+ export { columns_14 as columns };
332
+ export function shape_14(row: any): {
333
+ id: any;
334
+ siteId: any;
335
+ title: any;
336
+ path: any;
337
+ alias: any;
338
+ content: any;
339
+ subtitle: any;
340
+ about: any;
341
+ aboutType: any;
342
+ blogLayout: any;
343
+ blogLayouts: any;
344
+ postLayout: any;
345
+ categoryLayout: any;
346
+ tagLayout: any;
347
+ authorLayout: any;
348
+ archiveLayout: any;
349
+ blogFields: any;
350
+ categoryFields: any;
351
+ tagFields: any;
352
+ authorFields: any;
353
+ postPath: any;
354
+ categoriesPath: any;
355
+ tagsPath: any;
356
+ authorsPath: any;
357
+ archivesPath: any;
358
+ postNumberFormat: any;
359
+ yearFormat: any;
360
+ monthFormat: any;
361
+ dayFormat: any;
362
+ lastDateUpdated: any;
363
+ includeInSitemap: boolean;
364
+ sitemapLastUpdatedTime: any;
365
+ sitemapChangeFrequency: any;
366
+ sitemapPriority: any;
367
+ key: any;
368
+ };
369
+ export { shape_14 as shape };
370
+ }
371
+ namespace blogPosts {
372
+ let table_15: string;
373
+ export { table_15 as table };
374
+ let key_15: string;
375
+ export { key_15 as key };
376
+ let columns_15: string[];
377
+ export { columns_15 as columns };
378
+ export function shape_15(row: any): {
379
+ id: any;
380
+ blogId: any;
381
+ authorId: any;
382
+ number: any;
383
+ title: any;
384
+ excerpt: any;
385
+ excerptType: any;
386
+ content: any;
387
+ slug: any;
388
+ published: boolean;
389
+ datePublished: any;
390
+ dateCreated: any;
391
+ templateId: any;
392
+ includeInSitemap: boolean;
393
+ sitemapLastUpdatedTime: any;
394
+ sitemapChangeFrequency: any;
395
+ sitemapPriority: any;
396
+ key: any;
397
+ };
398
+ export { shape_15 as shape };
399
+ }
400
+ namespace blogPostTemplates {
401
+ let table_16: string;
402
+ export { table_16 as table };
403
+ let key_16: string;
404
+ export { key_16 as key };
405
+ let columns_16: string[];
406
+ export { columns_16 as columns };
407
+ export function shape_16(row: any): {
408
+ id: any;
409
+ blogId: any;
410
+ name: any;
411
+ alias: any;
412
+ description: any;
413
+ content: any;
414
+ customDefaultLayout: any;
415
+ layouts: any;
416
+ key: any;
417
+ };
418
+ export { shape_16 as shape };
419
+ }
420
+ namespace blogCategories {
421
+ let table_17: string;
422
+ export { table_17 as table };
423
+ let key_17: string;
424
+ export { key_17 as key };
425
+ let columns_17: string[];
426
+ export { columns_17 as columns };
427
+ export function shape_17(row: any): {
428
+ id: any;
429
+ blogId: any;
430
+ title: any;
431
+ description: any;
432
+ slug: any;
433
+ published: boolean;
434
+ content: any;
435
+ key: any;
436
+ };
437
+ export { shape_17 as shape };
438
+ }
439
+ namespace blogTags {
440
+ let table_18: string;
441
+ export { table_18 as table };
442
+ let key_18: string;
443
+ export { key_18 as key };
444
+ let columns_18: string[];
445
+ export { columns_18 as columns };
446
+ export function shape_18(row: any): {
447
+ id: any;
448
+ blogId: any;
449
+ title: any;
450
+ description: any;
451
+ slug: any;
452
+ published: boolean;
453
+ content: any;
454
+ key: any;
455
+ };
456
+ export { shape_18 as shape };
457
+ }
458
+ namespace blogAuthors {
459
+ let table_19: string;
460
+ export { table_19 as table };
461
+ let key_19: string;
462
+ export { key_19 as key };
463
+ let columns_19: string[];
464
+ export { columns_19 as columns };
465
+ export function shape_19(row: any): {
466
+ id: any;
467
+ blogId: any;
468
+ title: any;
469
+ slug: any;
470
+ administratorId: any;
471
+ content: any;
472
+ key: any;
473
+ };
474
+ export { shape_19 as shape };
475
+ }
476
+ namespace blogCategoryPosts {
477
+ let table_20: string;
478
+ export { table_20 as table };
479
+ let key_20: string;
480
+ export { key_20 as key };
481
+ let columns_20: string[];
482
+ export { columns_20 as columns };
483
+ export function shape_20(row: any): {
484
+ categoryId: any;
485
+ postId: any;
486
+ key: any;
487
+ };
488
+ export { shape_20 as shape };
489
+ }
490
+ namespace blogTagPosts {
491
+ let table_21: string;
492
+ export { table_21 as table };
493
+ let key_21: string;
494
+ export { key_21 as key };
495
+ let columns_21: string[];
496
+ export { columns_21 as columns };
497
+ export function shape_21(row: any): {
498
+ tagId: any;
499
+ postId: any;
500
+ key: any;
501
+ };
502
+ export { shape_21 as shape };
503
+ }
504
+ namespace pages {
505
+ let table_22: string;
506
+ export { table_22 as table };
507
+ let key_22: string;
508
+ export { key_22 as key };
509
+ export let keyFold: string;
510
+ let columns_22: string[];
511
+ export { columns_22 as columns };
512
+ export namespace join {
513
+ let table_23: string;
514
+ export { table_23 as table };
515
+ export let on: string[];
516
+ let columns_23: string[];
517
+ export { columns_23 as columns };
518
+ }
519
+ export function shape_22(row: any): {
520
+ id: any;
521
+ siteId: any;
522
+ path: any;
523
+ title: any;
524
+ content: any;
525
+ templateId: any;
526
+ published: boolean;
527
+ includeInSitemap: boolean;
528
+ sitemapLastUpdatedTime: any;
529
+ sitemapChangeFrequency: any;
530
+ sitemapPriority: any;
531
+ template: {
532
+ id: any;
533
+ alias: any;
534
+ name: any;
535
+ content: any;
536
+ customDefaultLayout: any;
537
+ layouts: any;
538
+ };
539
+ key: any;
540
+ };
541
+ export { shape_22 as shape };
542
+ }
543
+ namespace staticPages {
544
+ let table_24: string;
545
+ export { table_24 as table };
546
+ let key_23: string;
547
+ export { key_23 as key };
548
+ let columns_24: string[];
549
+ export { columns_24 as columns };
550
+ export function shape_23(row: any): {
551
+ id: any;
552
+ siteId: any;
553
+ path: any;
554
+ content: any;
555
+ contentType: any;
556
+ encoding: any;
557
+ published: boolean;
558
+ includeInSitemap: boolean;
559
+ sitemapLastUpdatedTime: any;
560
+ sitemapChangeFrequency: any;
561
+ sitemapPriority: any;
562
+ key: any;
563
+ };
564
+ export { shape_23 as shape };
565
+ }
566
+ namespace pageTemplates {
567
+ let table_25: string;
568
+ export { table_25 as table };
569
+ let key_24: string;
570
+ export { key_24 as key };
571
+ let columns_25: string[];
572
+ export { columns_25 as columns };
573
+ export function shape_24(row: any): {
574
+ id: any;
575
+ siteId: any;
576
+ alias: any;
577
+ name: any;
578
+ content: any;
579
+ customDefaultLayout: any;
580
+ layouts: any;
581
+ key: any;
582
+ };
583
+ export { shape_24 as shape };
584
+ }
585
+ namespace reviewTemplates {
586
+ let table_26: string;
587
+ export { table_26 as table };
588
+ let key_25: string;
589
+ export { key_25 as key };
590
+ let columns_26: string[];
591
+ export { columns_26 as columns };
592
+ export function shape_25(row: any): {
593
+ id: any;
594
+ siteId: any;
595
+ name: any;
596
+ alias: any;
597
+ description: any;
598
+ content: any;
599
+ customDefaultLayout: any;
600
+ layouts: any;
601
+ key: any;
602
+ };
603
+ export { shape_25 as shape };
604
+ }
605
+ namespace reviews {
606
+ let table_27: string;
607
+ export { table_27 as table };
608
+ let key_26: string;
609
+ export { key_26 as key };
610
+ let columns_27: string[];
611
+ export { columns_27 as columns };
612
+ export namespace join_1 {
613
+ let table_28: string;
614
+ export { table_28 as table };
615
+ let on_1: string[];
616
+ export { on_1 as on };
617
+ let columns_28: string[];
618
+ export { columns_28 as columns };
619
+ }
620
+ export { join_1 as join };
621
+ export function shape_26(row: any): {
622
+ id: any;
623
+ siteId: any;
624
+ itemType: any;
625
+ itemId: any;
626
+ templateId: any;
627
+ reviewerName: any;
628
+ reviewerEmail: any;
629
+ public: boolean;
630
+ rating: any;
631
+ summary: any;
632
+ details: any;
633
+ pros: any;
634
+ cons: any;
635
+ fields: any;
636
+ helpfulVotesCount: any;
637
+ notHelpfulVotesCount: any;
638
+ published: boolean;
639
+ datePublished: any;
640
+ isSpam: boolean;
641
+ isDublicate: boolean;
642
+ item: {
643
+ id: any;
644
+ path: any;
645
+ title: any;
646
+ };
647
+ key: any;
648
+ };
649
+ export { shape_26 as shape };
650
+ }
651
+ namespace feeds {
652
+ let table_29: string;
653
+ export { table_29 as table };
654
+ let key_27: string;
655
+ export { key_27 as key };
656
+ let columns_29: string[];
657
+ export { columns_29 as columns };
658
+ export function shape_27(row: any): {
659
+ id: any;
660
+ siteId: any;
661
+ title: any;
662
+ alias: any;
663
+ loweredAlias: any;
664
+ discriminator: any;
665
+ content: any;
666
+ fetchInterval: any;
667
+ key: any;
668
+ };
669
+ export { shape_27 as shape };
670
+ }
671
+ namespace feedParams {
672
+ let table_30: string;
673
+ export { table_30 as table };
674
+ let key_28: string;
675
+ export { key_28 as key };
676
+ let columns_30: string[];
677
+ export { columns_30 as columns };
678
+ export function shape_28(row: any): {
679
+ id: any;
680
+ feedId: any;
681
+ key: any;
682
+ value: any;
683
+ liquidizable: boolean;
684
+ };
685
+ export { shape_28 as shape };
686
+ }
687
+ namespace feedPages {
688
+ let table_31: string;
689
+ export { table_31 as table };
690
+ let key_29: string;
691
+ export { key_29 as key };
692
+ let columns_31: string[];
693
+ export { columns_31 as columns };
694
+ export function shape_29(row: any): {
695
+ id: any;
696
+ siteId: any;
697
+ parentPageId: any;
698
+ discriminator: any;
699
+ path: any;
700
+ slug: any;
701
+ title: any;
702
+ feedId: any;
703
+ templateName: any;
704
+ pageContent: any;
705
+ pageNumberParamName: any;
706
+ pageSizeParamName: any;
707
+ pageSize: any;
708
+ level: any;
709
+ params: any;
710
+ key: any;
711
+ };
712
+ export { shape_29 as shape };
713
+ }
714
+ namespace catalogs {
715
+ let table_32: string;
716
+ export { table_32 as table };
717
+ let key_30: string;
718
+ export { key_30 as key };
719
+ let columns_32: string[];
720
+ export { columns_32 as columns };
721
+ export function shape_30(row: any): {
722
+ id: any;
723
+ siteId: any;
724
+ title: any;
725
+ path: any;
726
+ alias: any;
727
+ content: any;
728
+ catalogLayout: any;
729
+ catalogLayouts: any;
730
+ catalogFields: any;
731
+ categoriesLayout: any;
732
+ categoryLayout: any;
733
+ categoryLayouts: any;
734
+ categoryFields: any;
735
+ tagsLayout: any;
736
+ tagLayout: any;
737
+ tagLayouts: any;
738
+ tagFields: any;
739
+ productLayout: any;
740
+ productPath: any;
741
+ productsPath: any;
742
+ productNumberFormat: any;
743
+ categoriesPath: any;
744
+ tagsPath: any;
745
+ includeInSitemap: boolean;
746
+ sitemapLastUpdatedTime: any;
747
+ sitemapChangeFrequency: any;
748
+ sitemapPriority: any;
749
+ key: any;
750
+ };
751
+ export { shape_30 as shape };
752
+ }
753
+ namespace catalogProducts {
754
+ let table_33: string;
755
+ export { table_33 as table };
756
+ let key_31: string;
757
+ export { key_31 as key };
758
+ let columns_33: string[];
759
+ export { columns_33 as columns };
760
+ export function shape_31(row: any): {
761
+ id: any;
762
+ catalogId: any;
763
+ templateId: any;
764
+ number: any;
765
+ slug: any;
766
+ title: any;
767
+ content: any;
768
+ published: boolean;
769
+ includeInSitemap: boolean;
770
+ sitemapLastUpdatedTime: any;
771
+ sitemapChangeFrequency: any;
772
+ sitemapPriority: any;
773
+ key: any;
774
+ };
775
+ export { shape_31 as shape };
776
+ }
777
+ namespace catalogCategories {
778
+ let table_34: string;
779
+ export { table_34 as table };
780
+ let key_32: string;
781
+ export { key_32 as key };
782
+ let columns_34: string[];
783
+ export { columns_34 as columns };
784
+ export function shape_32(row: any): {
785
+ id: any;
786
+ catalogId: any;
787
+ title: any;
788
+ slug: any;
789
+ content: any;
790
+ key: any;
791
+ };
792
+ export { shape_32 as shape };
793
+ }
794
+ namespace catalogTags {
795
+ let table_35: string;
796
+ export { table_35 as table };
797
+ let key_33: string;
798
+ export { key_33 as key };
799
+ let columns_35: string[];
800
+ export { columns_35 as columns };
801
+ export function shape_33(row: any): {
802
+ id: any;
803
+ catalogId: any;
804
+ title: any;
805
+ slug: any;
806
+ content: any;
807
+ key: any;
808
+ };
809
+ export { shape_33 as shape };
810
+ }
811
+ namespace catalogProductTemplates {
812
+ let table_36: string;
813
+ export { table_36 as table };
814
+ let key_34: string;
815
+ export { key_34 as key };
816
+ let columns_36: string[];
817
+ export { columns_36 as columns };
818
+ export function shape_34(row: any): {
819
+ id: any;
820
+ catalogId: any;
821
+ name: any;
822
+ alias: any;
823
+ content: any;
824
+ key: any;
825
+ };
826
+ export { shape_34 as shape };
827
+ }
828
+ namespace catalogProductsCategories {
829
+ let table_37: string;
830
+ export { table_37 as table };
831
+ let key_35: string;
832
+ export { key_35 as key };
833
+ let columns_37: string[];
834
+ export { columns_37 as columns };
835
+ export function shape_35(row: any): {
836
+ productId: any;
837
+ categoryId: any;
838
+ key: any;
839
+ };
840
+ export { shape_35 as shape };
841
+ }
842
+ namespace catalogProductsTags {
843
+ let table_38: string;
844
+ export { table_38 as table };
845
+ let key_36: string;
846
+ export { key_36 as key };
847
+ let columns_38: string[];
848
+ export { columns_38 as columns };
849
+ export function shape_36(row: any): {
850
+ productId: any;
851
+ tagId: any;
852
+ key: any;
853
+ };
854
+ export { shape_36 as shape };
855
+ }
856
+ namespace galleries {
857
+ let table_39: string;
858
+ export { table_39 as table };
859
+ let key_37: string;
860
+ export { key_37 as key };
861
+ let columns_39: string[];
862
+ export { columns_39 as columns };
863
+ export function shape_37(row: any): {
864
+ id: any;
865
+ ownerId: any;
866
+ name: any;
867
+ title: any;
868
+ description: any;
869
+ templateId: any;
870
+ key: any;
871
+ };
872
+ export { shape_37 as shape };
873
+ }
874
+ namespace galleryImages {
875
+ let table_40: string;
876
+ export { table_40 as table };
877
+ let key_38: string;
878
+ export { key_38 as key };
879
+ let columns_40: string[];
880
+ export { columns_40 as columns };
881
+ export function shape_38(row: any): {
882
+ id: any;
883
+ galleryId: any;
884
+ seq: any;
885
+ title: any;
886
+ alt: any;
887
+ description: any;
888
+ visible: boolean;
889
+ author: any;
890
+ copyright: any;
891
+ hash: any;
892
+ originalFilename: any;
893
+ storageClient: any;
894
+ storageFilename: any;
895
+ mimeType: any;
896
+ width: any;
897
+ height: any;
898
+ fileSize: any;
899
+ key: any;
900
+ };
901
+ export { shape_38 as shape };
902
+ }
903
+ namespace layouts {
904
+ let table_41: string;
905
+ export { table_41 as table };
906
+ let key_39: string;
907
+ export { key_39 as key };
908
+ let columns_41: string[];
909
+ export { columns_41 as columns };
910
+ export function shape_39(row: any): {
911
+ id: any;
912
+ siteId: any;
913
+ themeId: any;
914
+ name: any;
915
+ loweredName: any;
916
+ content: any;
917
+ viewEngineId: any;
918
+ key: any;
919
+ };
920
+ export { shape_39 as shape };
921
+ }
922
+ namespace folders {
923
+ let table_42: string;
924
+ export { table_42 as table };
925
+ let key_40: string;
926
+ export { key_40 as key };
927
+ let columns_42: string[];
928
+ export { columns_42 as columns };
929
+ export function shape_40(row: any): {
930
+ id: any;
931
+ siteId: any;
932
+ ownerId: any;
933
+ path: any;
934
+ loweredPath: any;
935
+ key: any;
936
+ };
937
+ export { shape_40 as shape };
938
+ }
939
+ namespace files {
940
+ let table_43: string;
941
+ export { table_43 as table };
942
+ let key_41: string;
943
+ export { key_41 as key };
944
+ let columns_43: string[];
945
+ export { columns_43 as columns };
946
+ export function shape_41(row: any): {
947
+ id: any;
948
+ siteId: any;
949
+ folderId: any;
950
+ filename: any;
951
+ loweredFilename: any;
952
+ contentType: any;
953
+ size: number;
954
+ storageClient: any;
955
+ storageFilename: any;
956
+ hash: any;
957
+ key: any;
958
+ };
959
+ export { shape_41 as shape };
960
+ }
961
+ namespace emailTemplates {
962
+ let table_44: string;
963
+ export { table_44 as table };
964
+ let key_42: string;
965
+ export { key_42 as key };
966
+ let columns_44: string[];
967
+ export { columns_44 as columns };
968
+ export function shape_42(row: any): {
969
+ id: any;
970
+ siteId: any;
971
+ name: any;
972
+ loweredName: any;
973
+ description: any;
974
+ from: any;
975
+ fromDisplayName: any;
976
+ to: any;
977
+ cc: any;
978
+ bcc: any;
979
+ subject: any;
980
+ htmlEnabled: boolean;
981
+ plainText: any;
982
+ html: any;
983
+ key: any;
984
+ };
985
+ export { shape_42 as shape };
986
+ }
987
+ namespace forms {
988
+ let table_45: string;
989
+ export { table_45 as table };
990
+ let key_43: string;
991
+ export { key_43 as key };
992
+ let columns_45: string[];
993
+ export { columns_45 as columns };
994
+ export namespace join_2 {
995
+ let table_46: string;
996
+ export { table_46 as table };
997
+ let on_2: string[];
998
+ export { on_2 as on };
999
+ let columns_46: string[];
1000
+ export { columns_46 as columns };
1001
+ }
1002
+ export { join_2 as join };
1003
+ export function shape_43(row: any): {
1004
+ id: any;
1005
+ siteId: any;
1006
+ name: any;
1007
+ content: any;
1008
+ submissionAction: any;
1009
+ redirectUrl: any;
1010
+ successMessage: any;
1011
+ path: any;
1012
+ templateId: any;
1013
+ template: {
1014
+ id: any;
1015
+ alias: any;
1016
+ name: any;
1017
+ content: any;
1018
+ confirmationEmailTemplate: any;
1019
+ submissionEmailTemplate: any;
1020
+ customDefaultLayout: any;
1021
+ layouts: any;
1022
+ };
1023
+ key: any;
1024
+ };
1025
+ export { shape_43 as shape };
1026
+ }
1027
+ namespace formSubmissions {
1028
+ let table_47: string;
1029
+ export { table_47 as table };
1030
+ let key_44: string;
1031
+ export { key_44 as key };
1032
+ let columns_47: string[];
1033
+ export { columns_47 as columns };
1034
+ export function shape_44(row: any): {
1035
+ id: any;
1036
+ siteId: any;
1037
+ formId: any;
1038
+ date: any;
1039
+ utcDate: any;
1040
+ number: any;
1041
+ ipAddress: any;
1042
+ userAgent: any;
1043
+ isSpam: boolean;
1044
+ content: any;
1045
+ key: any;
1046
+ };
1047
+ export { shape_44 as shape };
1048
+ }
1049
+ namespace formRecipients {
1050
+ let table_48: string;
1051
+ export { table_48 as table };
1052
+ let key_45: string;
1053
+ export { key_45 as key };
1054
+ let columns_48: string[];
1055
+ export { columns_48 as columns };
1056
+ export function shape_45(row: any): {
1057
+ id: any;
1058
+ siteId: any;
1059
+ formId: any;
1060
+ administratorId: any;
1061
+ dateCreated: any;
1062
+ key: any;
1063
+ };
1064
+ export { shape_45 as shape };
1065
+ }
1066
+ namespace administrators {
1067
+ let table_49: string;
1068
+ export { table_49 as table };
1069
+ let key_46: string;
1070
+ export { key_46 as key };
1071
+ let columns_49: string[];
1072
+ export { columns_49 as columns };
1073
+ export function shape_46(row: any): {
1074
+ id: any;
1075
+ username: any;
1076
+ firstName: any;
1077
+ lastName: any;
1078
+ email: any;
1079
+ dateCreated: any;
1080
+ key: any;
1081
+ };
1082
+ export { shape_46 as shape };
1083
+ }
1084
+ namespace numberingTasks {
1085
+ let table_50: string;
1086
+ export { table_50 as table };
1087
+ let key_47: string;
1088
+ export { key_47 as key };
1089
+ let columns_50: string[];
1090
+ export { columns_50 as columns };
1091
+ export function shape_47(row: any): {
1092
+ id: any;
1093
+ label: any;
1094
+ name: any;
1095
+ description: any;
1096
+ periodTypeId: any;
1097
+ minNumber: any;
1098
+ maxNumber: any;
1099
+ key: any;
1100
+ };
1101
+ export { shape_47 as shape };
1102
+ }
1103
+ namespace numberingCounters {
1104
+ let table_51: string;
1105
+ export { table_51 as table };
1106
+ let key_48: string;
1107
+ export { key_48 as key };
1108
+ let columns_51: string[];
1109
+ export { columns_51 as columns };
1110
+ export function shape_48(row: any): {
1111
+ id: any;
1112
+ siteId: any;
1113
+ taskId: any;
1114
+ ownerId: any;
1115
+ date: any;
1116
+ lastNumber: any;
1117
+ key: any;
1118
+ };
1119
+ export { shape_48 as shape };
1120
+ }
1121
+ namespace pagePartTemplates {
1122
+ export { table };
1123
+ let key_49: string;
1124
+ export { key_49 as key };
1125
+ let columns_52: any[];
1126
+ export { columns_52 as columns };
1127
+ export function shape_49(row: any): {
1128
+ id: any;
1129
+ ownerId: any;
1130
+ name: any;
1131
+ alias: any;
1132
+ content: any;
1133
+ customDefaultLayout: any;
1134
+ layouts: any;
1135
+ key: any;
1136
+ };
1137
+ export { shape_49 as shape };
1138
+ }
1139
+ namespace blogPostPartTemplates { }
1140
+ namespace catalogProductPartTemplates { }
1141
+ namespace storeProductPartTemplates { }
1142
+ namespace storePartTemplates { }
1143
+ namespace tableRecordPartTemplates { }
1144
+ namespace tables {
1145
+ let table_52: string;
1146
+ export { table_52 as table };
1147
+ let key_50: string;
1148
+ export { key_50 as key };
1149
+ let columns_53: string[];
1150
+ export { columns_53 as columns };
1151
+ export namespace join_3 {
1152
+ let table_53: string;
1153
+ export { table_53 as table };
1154
+ let on_3: string[];
1155
+ export { on_3 as on };
1156
+ let columns_54: string[];
1157
+ export { columns_54 as columns };
1158
+ }
1159
+ export { join_3 as join };
1160
+ export function shape_50(row: any): {
1161
+ id: any;
1162
+ siteId: any;
1163
+ title: any;
1164
+ slug: any;
1165
+ templateId: any;
1166
+ template: {
1167
+ id: any;
1168
+ alias: any;
1169
+ name: any;
1170
+ description: any;
1171
+ content: any;
1172
+ customDefaultLayout: any;
1173
+ layouts: any;
1174
+ };
1175
+ key: any;
1176
+ };
1177
+ export { shape_50 as shape };
1178
+ }
1179
+ namespace tableRecords {
1180
+ let table_54: string;
1181
+ export { table_54 as table };
1182
+ let key_51: string;
1183
+ export { key_51 as key };
1184
+ let columns_55: string[];
1185
+ export { columns_55 as columns };
1186
+ export function shape_51(row: any): {
1187
+ id: any;
1188
+ siteId: any;
1189
+ tableId: any;
1190
+ title: any;
1191
+ slug: any;
1192
+ content: any;
1193
+ published: boolean;
1194
+ datePublished: any;
1195
+ key: any;
1196
+ };
1197
+ export { shape_51 as shape };
1198
+ }
1199
+ }
1200
+ export function dialectOf(dsn: any): "postgres" | "mariadb" | "sqlite" | "mssql";
1201
+ export function normalizeDsn(dialect: any, dsn: any): any;
1202
+ export function loadDriver(specifier: any, dialect: any): Promise<any>;
1203
+ export function openDb({ dialect, dsn }?: {}): Promise<Kysely<any>>;
1204
+ export class DbDataProvider {
1205
+ /** Build a provider from a cell config; connections stay lazy until the first query. */
1206
+ static fromCell(cell: any, { slices }?: {}): Promise<DbDataProvider>;
1207
+ /**
1208
+ * @param {object} options
1209
+ * @param {import('kysely').Kysely<any>} options.db an open Kysely instance (the cell's runtime)
1210
+ * @param {string} [options.siteId] the tenant every read is scoped to (site channel only)
1211
+ * @param {'site'|'control'} [options.channel] `site` (default) or the control-plane channel
1212
+ * that reads dictionaries and the site registry — and may not touch site-scoped tables
1213
+ * @param {object} [options.slices] slice declarations (tests may add their own)
1214
+ * @param {boolean} [options.ownsDb] true when the provider built the connection itself
1215
+ */
1216
+ constructor({ db, siteId, channel, slices, ownsDb }?: {
1217
+ db: import("kysely").Kysely<any>;
1218
+ siteId?: string;
1219
+ channel?: "site" | "control";
1220
+ slices?: object;
1221
+ ownsDb?: boolean;
1222
+ });
1223
+ get siteId(): string;
1224
+ get channel(): "site" | "control";
1225
+ /** One entity by key (path/slug/id) — the seam contract of dataProvider.js. */
1226
+ get(slice: any, key: any): Promise<any>;
1227
+ /** All entities of a slice, ordered by the slice key so listing is deterministic. */
1228
+ enumerate(slice: any, opts?: {}): Promise<any>;
1229
+ /** The count behind a listing — same tenant scope and filters as `enumerate`, no page window. */
1230
+ count(slice: any, opts?: {}): Promise<number>;
1231
+ /**
1232
+ * The write half of the seam (task:3933): a slice may be written, not only read.
1233
+ *
1234
+ * `values` names CANON columns, exactly like `where` does, and only columns the slice
1235
+ * declares: the declaration is the contract on both sides, so a write cannot reach a
1236
+ * column the reads never see. The tenant key is NOT the caller's to set — the guard
1237
+ * injects `SiteId` from the provider it belongs to and refuses a payload that carries one.
1238
+ */
1239
+ insert(slice: any, values?: {}): Promise<any>;
1240
+ /**
1241
+ * Change one row by key, within the tenant: the guard adds the site predicate to the UPDATE.
1242
+ *
1243
+ * `opts.where` makes the write conditional (a compare-and-set): the row is updated only while
1244
+ * the named columns still hold the named values. The read-back cannot tell a conditional miss
1245
+ * from a match, so a CAS caller compares the field it stamped — the search drainer does
1246
+ * exactly that (`SearchIndexCreationTimestamp` still null means a save re-dirtied the site).
1247
+ */
1248
+ update(slice: any, key: any, values?: {}, opts?: {}): Promise<any>;
1249
+ /**
1250
+ * Raw connectivity probe (the MSSQL source role). Deliberately runs on the
1251
+ * UNGUARDED handle: a raw statement cannot be scoped by the guard, so pretending
1252
+ * otherwise would be worse than saying it out loud. It is an operator/diagnostic
1253
+ * entry point — never feed it a query parameter (canon: raw SQL is an escape hatch).
1254
+ */
1255
+ probe(statement: any): Promise<unknown[]>;
1256
+ /** Closes the connection only when the provider owns it; an injected db is the caller's. */
1257
+ close(): Promise<void>;
1258
+ #private;
1259
+ }
1260
+ export function createDbProvider(cell: any, options: any): Promise<DbDataProvider>;
1261
+ import { Kysely } from 'kysely';