@crombolo/data 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "SQLite and Postgres storage for crombolo: schema, migrations and repositories.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@crombolo/core": "0.
|
|
31
|
+
"@crombolo/core": "0.22.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -532,10 +532,41 @@ export class DocumentRepository {
|
|
|
532
532
|
[t, this.objectType, this.#db.dialect.boolValue(false)],
|
|
533
533
|
)
|
|
534
534
|
const languages = await this.#languages()
|
|
535
|
-
const stateId = await visibleStateIdFor(this.#db, this.#nodeState)
|
|
536
535
|
const typesById = new Map<number, PropertyTypeRow[]>()
|
|
536
|
+
const rowsById = await this.#currentValueRowsFor(rows.map((row) => Number(row.id)))
|
|
537
|
+
const out = []
|
|
538
|
+
for (const row of rows) {
|
|
539
|
+
const typeId = Number(row.content_type_id)
|
|
540
|
+
if (!typesById.has(typeId)) typesById.set(typeId, await this.#propertyTypes(typeId))
|
|
541
|
+
const propertyTypes = typesById.get(typeId) as PropertyTypeRow[]
|
|
542
|
+
out.push({
|
|
543
|
+
id: Number(row.id),
|
|
544
|
+
key: normaliseUuid(String(row.unique_id)),
|
|
545
|
+
name: String(row.draft_name ?? row.text ?? ''),
|
|
546
|
+
contentTypeAlias: String(row.content_type_alias),
|
|
547
|
+
parentId: Number(row.parent_id),
|
|
548
|
+
sortOrder: Number(row.sort_order),
|
|
549
|
+
createDate: DbDate.fromDb(row.create_date) ?? new Date(0),
|
|
550
|
+
updateDate:
|
|
551
|
+
DbDate.fromDb(row.version_date) ?? DbDate.fromDb(row.create_date) ?? new Date(0),
|
|
552
|
+
values:
|
|
553
|
+
propertyTypes.length === 0
|
|
554
|
+
? []
|
|
555
|
+
: this.#valuesFromRows(rowsById.get(Number(row.id)) ?? [], propertyTypes, languages),
|
|
556
|
+
})
|
|
557
|
+
}
|
|
558
|
+
return out
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* The values an editor sees now, per node: the current ones, or, on a node
|
|
563
|
+
* reading an older schema state, the latest at or before it. Read in slices.
|
|
564
|
+
*/
|
|
565
|
+
async #currentValueRowsFor(ids: number[]): Promise<Map<number, ValueRow[]>> {
|
|
566
|
+
const t = this.#db.dialect.boolValue(true)
|
|
567
|
+
const stateId = await visibleStateIdFor(this.#db, this.#nodeState)
|
|
537
568
|
const rowsById = new Map<number, ValueRow[]>()
|
|
538
|
-
for (const slice of slices(
|
|
569
|
+
for (const slice of slices(ids)) {
|
|
539
570
|
if (stateId === undefined) {
|
|
540
571
|
const current = await this.#db.query(
|
|
541
572
|
`SELECT id, node_id, event_id, property_type_id, language_id, segment,
|
|
@@ -557,28 +588,82 @@ export class DocumentRepository {
|
|
|
557
588
|
}
|
|
558
589
|
}
|
|
559
590
|
}
|
|
560
|
-
|
|
591
|
+
return rowsById
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Every document not in the bin as an editor last saved it, published or not,
|
|
596
|
+
* in the published cache's shape: the draft cache behind previewing in an app
|
|
597
|
+
* (story 053). A culture is there once it has a name.
|
|
598
|
+
*/
|
|
599
|
+
async loadDrafts(): Promise<PublishedNodeRow[]> {
|
|
600
|
+
const t = this.#db.dialect.boolValue(true)
|
|
601
|
+
const rows = await this.#db.query(
|
|
602
|
+
`SELECT n.id, n.unique_id, n.parent_id, n.level, n.path, n.sort_order, n.create_date, n.text,
|
|
603
|
+
head.text AS draft_name, head.version_date,
|
|
604
|
+
ct.alias AS content_type_alias, c.content_type_id, tpl.alias AS template_alias
|
|
605
|
+
FROM node n
|
|
606
|
+
JOIN content c ON c.node_id = n.id
|
|
607
|
+
JOIN content_type ct ON ct.node_id = c.content_type_id
|
|
608
|
+
JOIN content_version head ON head.node_id = n.id AND head.current = ?
|
|
609
|
+
JOIN document_version hv ON hv.id = head.id
|
|
610
|
+
LEFT JOIN template tpl ON tpl.node_id = hv.template_id
|
|
611
|
+
WHERE n.node_object_type = ? AND n.trashed = ?
|
|
612
|
+
ORDER BY n.level, n.sort_order, n.id`,
|
|
613
|
+
[t, this.objectType, this.#db.dialect.boolValue(false)],
|
|
614
|
+
)
|
|
615
|
+
const ids = rows.map((row) => Number(row.id))
|
|
616
|
+
const languages = await this.#languages()
|
|
617
|
+
const valuesById = await this.#currentValueRowsFor(ids)
|
|
618
|
+
const culturesById = new Map<number, Array<{ isoCode: string; name: string }>>()
|
|
619
|
+
for (const slice of slices(ids)) {
|
|
620
|
+
const cultureRows = await this.#db.query(
|
|
621
|
+
`SELECT dcv.node_id, dcv.name, l.iso_code
|
|
622
|
+
FROM document_culture_variation dcv JOIN language l ON l.id = dcv.language_id
|
|
623
|
+
WHERE dcv.node_id IN (${slice.map(() => '?').join(', ')}) AND dcv.available = ?`,
|
|
624
|
+
[...slice, t],
|
|
625
|
+
)
|
|
626
|
+
for (const row of cultureRows) {
|
|
627
|
+
const id = Number(row.node_id)
|
|
628
|
+
culturesById.set(id, [
|
|
629
|
+
...(culturesById.get(id) ?? []),
|
|
630
|
+
{ isoCode: String(row.iso_code), name: String(row.name ?? '') },
|
|
631
|
+
])
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
const typesById = new Map<number, PropertyTypeRow[]>()
|
|
635
|
+
const drafts: PublishedNodeRow[] = []
|
|
561
636
|
for (const row of rows) {
|
|
562
637
|
const typeId = Number(row.content_type_id)
|
|
563
|
-
if (!typesById.has(typeId))
|
|
564
|
-
|
|
565
|
-
|
|
638
|
+
if (!typesById.has(typeId))
|
|
639
|
+
// A pending property is never rendered, in a preview no more than on the site.
|
|
640
|
+
typesById.set(
|
|
641
|
+
typeId,
|
|
642
|
+
(await this.#propertyTypes(typeId)).filter((p) => !p.pending),
|
|
643
|
+
)
|
|
644
|
+
const cultures = culturesById.get(Number(row.id)) ?? []
|
|
645
|
+
drafts.push({
|
|
566
646
|
id: Number(row.id),
|
|
567
647
|
key: normaliseUuid(String(row.unique_id)),
|
|
568
|
-
name: String(row.draft_name ?? row.text ?? ''),
|
|
569
|
-
contentTypeAlias: String(row.content_type_alias),
|
|
570
648
|
parentId: Number(row.parent_id),
|
|
649
|
+
level: Number(row.level),
|
|
650
|
+
path: String(row.path),
|
|
571
651
|
sortOrder: Number(row.sort_order),
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
652
|
+
name: String(row.draft_name ?? row.text ?? ''),
|
|
653
|
+
contentTypeAlias: String(row.content_type_alias),
|
|
654
|
+
componentAlias: (row.template_alias as string | null) ?? null,
|
|
655
|
+
createDate: DbDate.fromDb(row.create_date) ?? new Date(),
|
|
656
|
+
updateDate: DbDate.fromDb(row.version_date) ?? DbDate.fromDb(row.create_date) ?? new Date(),
|
|
657
|
+
cultures: cultures.map((c) => c.isoCode),
|
|
658
|
+
names: Object.fromEntries(cultures.map((c) => [c.isoCode, c.name])),
|
|
659
|
+
values: this.#valuesFromRows(
|
|
660
|
+
valuesById.get(Number(row.id)) ?? [],
|
|
661
|
+
typesById.get(typeId) as PropertyTypeRow[],
|
|
662
|
+
languages,
|
|
663
|
+
),
|
|
579
664
|
})
|
|
580
665
|
}
|
|
581
|
-
return
|
|
666
|
+
return drafts
|
|
582
667
|
}
|
|
583
668
|
|
|
584
669
|
// --------------------------------------------------------------- writes
|
|
@@ -1328,6 +1413,8 @@ export class DocumentRepository {
|
|
|
1328
1413
|
'UPDATE document SET original_parent_id = NULL, trashed_date = NULL WHERE node_id = ?',
|
|
1329
1414
|
[node.id],
|
|
1330
1415
|
)
|
|
1416
|
+
// Nothing published comes back, but a preview's drafts do.
|
|
1417
|
+
await repo.#instructContent(node.key)
|
|
1331
1418
|
return 'restored' as const
|
|
1332
1419
|
}),
|
|
1333
1420
|
)
|
|
@@ -2808,3 +2895,12 @@ function parseConfig(raw: unknown): Record<string, unknown> {
|
|
|
2808
2895
|
return {}
|
|
2809
2896
|
}
|
|
2810
2897
|
}
|
|
2898
|
+
|
|
2899
|
+
/**
|
|
2900
|
+
* The newest version id of anything, which moves on every save: how a node's
|
|
2901
|
+
* draft cache knows it is stale when the save happened on another node.
|
|
2902
|
+
*/
|
|
2903
|
+
export async function latestContentVersionId(db: Db): Promise<number> {
|
|
2904
|
+
const rows = await db.query<{ n: number | null }>('SELECT MAX(id) AS n FROM content_version')
|
|
2905
|
+
return Number(rows[0]?.n ?? 0)
|
|
2906
|
+
}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Content types this CMS ships
|
|
3
|
-
*
|
|
4
|
-
* the head helper, the sitemap and the editor's preview read
|
|
2
|
+
* Content types this CMS ships, each a composition a site opts into, such as
|
|
3
|
+
* `compositions = ["seoFields"]`. "Search & sharing" (`seoFields`) holds the
|
|
4
|
+
* fields the head helper, the sitemap and the editor's preview read; "Caching"
|
|
5
|
+
* (`cacheFields`, story 057) how long copies of a page may be kept.
|
|
5
6
|
*
|
|
6
7
|
* A **system** type, like the Folder, Image and File media types: ensured at
|
|
7
8
|
* every boot, exempt from schema retirement, not deletable, alias fixed. A site
|
|
8
9
|
* may extend it with a file of the same alias and key; the shipped fields stay.
|
|
9
10
|
*/
|
|
10
11
|
import {
|
|
12
|
+
CACHE_FIELDS_PROPERTIES,
|
|
11
13
|
type ContentTypeAggregate,
|
|
14
|
+
MENU_ITEM_PROPERTIES,
|
|
15
|
+
MENU_PROPERTIES,
|
|
12
16
|
SEO_FIELDS_PROPERTIES,
|
|
13
17
|
SYSTEM_CONTENT_TYPE_KEYS,
|
|
14
18
|
type SystemPropertyModel,
|
|
@@ -22,6 +26,10 @@ export interface BuiltInContentType {
|
|
|
22
26
|
name: string
|
|
23
27
|
description: string
|
|
24
28
|
icon: string
|
|
29
|
+
/** An element type: the menu types (story 141). */
|
|
30
|
+
isElement?: boolean
|
|
31
|
+
/** Offered for creating in the Library section. */
|
|
32
|
+
allowedInLibrary?: boolean
|
|
25
33
|
tab: { key: string; name: string; alias: string }
|
|
26
34
|
properties: readonly SystemPropertyModel[]
|
|
27
35
|
}
|
|
@@ -36,7 +44,48 @@ export const SEO_FIELDS_TYPE: BuiltInContentType = {
|
|
|
36
44
|
properties: SEO_FIELDS_PROPERTIES,
|
|
37
45
|
}
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
/** "Caching" (story 057): how long copies of a page may be kept, for the types that want it. */
|
|
48
|
+
export const CACHE_FIELDS_TYPE: BuiltInContentType = {
|
|
49
|
+
key: SYSTEM_CONTENT_TYPE_KEYS.CacheFields,
|
|
50
|
+
alias: 'cacheFields',
|
|
51
|
+
name: 'Caching',
|
|
52
|
+
description: 'How long copies of a page may be kept before they are asked for again.',
|
|
53
|
+
icon: 'icon-timer',
|
|
54
|
+
tab: { key: '0d6e2a49-7c1f-4b85-93a2-6f8e1b4c7d39', name: 'Caching', alias: 'caching' },
|
|
55
|
+
properties: CACHE_FIELDS_PROPERTIES,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** A menu (story 141): made in the Library, named by its alias in templates. */
|
|
59
|
+
export const MENU_TYPE: BuiltInContentType = {
|
|
60
|
+
key: SYSTEM_CONTENT_TYPE_KEYS.Menu,
|
|
61
|
+
alias: 'menu',
|
|
62
|
+
name: 'Menu',
|
|
63
|
+
description: 'Pages and links in the order a navigation shows them.',
|
|
64
|
+
icon: 'icon-navigation',
|
|
65
|
+
isElement: true,
|
|
66
|
+
allowedInLibrary: true,
|
|
67
|
+
tab: { key: '7d1c5a93-0e4b-4f26-8b37-2a9e6c1d5f84', name: 'Menu', alias: 'menu' },
|
|
68
|
+
properties: MENU_PROPERTIES,
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** One entry in a menu: a page, media or an address, a label, and items below it. */
|
|
72
|
+
export const MENU_ITEM_TYPE: BuiltInContentType = {
|
|
73
|
+
key: SYSTEM_CONTENT_TYPE_KEYS.MenuItem,
|
|
74
|
+
alias: 'menuItem',
|
|
75
|
+
name: 'Menu item',
|
|
76
|
+
description: 'A page, media item or address in a menu, with any items below it.',
|
|
77
|
+
icon: 'icon-link',
|
|
78
|
+
isElement: true,
|
|
79
|
+
tab: { key: '3a8e2d61-9f5c-4b07-a1d4-6c2b8e0f7a35', name: 'Item', alias: 'item' },
|
|
80
|
+
properties: MENU_ITEM_PROPERTIES,
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const SYSTEM_CONTENT_TYPES: readonly BuiltInContentType[] = [
|
|
84
|
+
SEO_FIELDS_TYPE,
|
|
85
|
+
CACHE_FIELDS_TYPE,
|
|
86
|
+
MENU_TYPE,
|
|
87
|
+
MENU_ITEM_TYPE,
|
|
88
|
+
]
|
|
40
89
|
|
|
41
90
|
export function systemContentTypeAggregate(def: BuiltInContentType): ContentTypeAggregate {
|
|
42
91
|
return {
|
|
@@ -48,8 +97,8 @@ export function systemContentTypeAggregate(def: BuiltInContentType): ContentType
|
|
|
48
97
|
allowedAsRoot: false,
|
|
49
98
|
variesByCulture: false,
|
|
50
99
|
variesBySegment: false,
|
|
51
|
-
isElement:
|
|
52
|
-
allowedInLibrary:
|
|
100
|
+
isElement: def.isElement === true,
|
|
101
|
+
allowedInLibrary: def.allowedInLibrary === true,
|
|
53
102
|
collectionKey: null,
|
|
54
103
|
cleanup: {
|
|
55
104
|
preventCleanup: false,
|
|
@@ -8,11 +8,21 @@
|
|
|
8
8
|
* deletable, alias fixed. Video, Audio, Article and Vector Graphics are
|
|
9
9
|
* ordinary types a site owns as files in `schema/media-types/`; `crombolo
|
|
10
10
|
* init` scaffolds them and deleting one deletes its file.
|
|
11
|
+
*
|
|
12
|
+
* `mediaCacheFields` ("Caching", story 057) is ours: a system type only ever
|
|
13
|
+
* composed into others, so it is never offered as something to make.
|
|
11
14
|
*/
|
|
12
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
CACHE_FIELDS_PROPERTIES,
|
|
17
|
+
type ContentTypeAggregate,
|
|
18
|
+
MEDIA_CACHE_FIELDS_TYPE_KEY,
|
|
19
|
+
MEDIA_CACHE_KEEP_FOR_PROPERTY_KEY,
|
|
20
|
+
normaliseUuid,
|
|
21
|
+
SYSTEM_MEDIA_TYPE_KEYS,
|
|
22
|
+
} from '@crombolo/core'
|
|
13
23
|
import type { Db } from '../database.ts'
|
|
14
24
|
import { ContentTypeRepository } from '../repositories/content-types.ts'
|
|
15
|
-
import {
|
|
25
|
+
import { ALL_SEEDED_DATA_TYPES } from './content-seed.ts'
|
|
16
26
|
|
|
17
27
|
export interface BuiltInMediaProperty {
|
|
18
28
|
key: string
|
|
@@ -30,6 +40,8 @@ export interface BuiltInMediaType {
|
|
|
30
40
|
icon: string
|
|
31
41
|
/** Folder, Image and File: undeletable, alias fixed. */
|
|
32
42
|
system: boolean
|
|
43
|
+
/** Only ever composed into other media types, never made as an item: "Caching" (story 057). */
|
|
44
|
+
composition?: boolean
|
|
33
45
|
/** A built-in data type alias for the collection view. */
|
|
34
46
|
collection?: string
|
|
35
47
|
/** Aliases; Folder allows every built-in, the ones a site has. */
|
|
@@ -207,12 +219,30 @@ export const BUILT_IN_MEDIA_TYPES: readonly BuiltInMediaType[] = [
|
|
|
207
219
|
pixels('9e4c2b59-6bc6-4648-bb71-b0f45ddbc274', 'umbracoHeight'),
|
|
208
220
|
],
|
|
209
221
|
},
|
|
222
|
+
{
|
|
223
|
+
key: MEDIA_CACHE_FIELDS_TYPE_KEY,
|
|
224
|
+
alias: 'mediaCacheFields',
|
|
225
|
+
name: 'Caching',
|
|
226
|
+
icon: 'icon-timer',
|
|
227
|
+
system: true,
|
|
228
|
+
composition: true,
|
|
229
|
+
allowChildren: [],
|
|
230
|
+
group: { key: '5c8f1a36-0e7b-4d29-9a54-3b6d2e8f1c70', name: 'Caching', alias: 'caching' },
|
|
231
|
+
// Its own key: a property key is unique across every type, document or media.
|
|
232
|
+
properties: CACHE_FIELDS_PROPERTIES.map((p) => ({
|
|
233
|
+
key: MEDIA_CACHE_KEEP_FOR_PROPERTY_KEY,
|
|
234
|
+
alias: p.alias,
|
|
235
|
+
name: p.name,
|
|
236
|
+
dataType: 'keepCopiesFor',
|
|
237
|
+
mandatory: false,
|
|
238
|
+
})),
|
|
239
|
+
},
|
|
210
240
|
]
|
|
211
241
|
|
|
212
242
|
export const SYSTEM_MEDIA_TYPES = BUILT_IN_MEDIA_TYPES.filter((t) => t.system)
|
|
213
243
|
|
|
214
244
|
const dataTypeKey = (alias: string): string => {
|
|
215
|
-
const found =
|
|
245
|
+
const found = ALL_SEEDED_DATA_TYPES.find((d) => d.alias === alias)
|
|
216
246
|
if (!found) throw new Error(`built-in media types reference unknown data type "${alias}"`)
|
|
217
247
|
return found.key
|
|
218
248
|
}
|
|
@@ -228,7 +258,7 @@ export function builtInMediaTypeAggregate(
|
|
|
228
258
|
name: def.name,
|
|
229
259
|
description: null,
|
|
230
260
|
icon: def.icon,
|
|
231
|
-
allowedAsRoot:
|
|
261
|
+
allowedAsRoot: !def.composition,
|
|
232
262
|
variesByCulture: false,
|
|
233
263
|
variesBySegment: false,
|
|
234
264
|
isElement: false,
|
|
@@ -5,7 +5,16 @@
|
|
|
5
5
|
* Data type keys are Umbraco's own, so any documentation or example that
|
|
6
6
|
* references a well-known data type still applies.
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
KEEP_COPIES_FOR,
|
|
10
|
+
KEEP_COPIES_FOR_DATA_TYPE_KEY,
|
|
11
|
+
MENU_ITEMS_DATA_TYPE_KEY,
|
|
12
|
+
MENU_LINK_DATA_TYPE_KEY,
|
|
13
|
+
ObjectTypes,
|
|
14
|
+
SYSTEM_CONTENT_TYPE_KEYS,
|
|
15
|
+
SystemNodes,
|
|
16
|
+
ValueStorageType,
|
|
17
|
+
} from '@crombolo/core'
|
|
9
18
|
import type { Db } from '../database.ts'
|
|
10
19
|
import { DbDate } from '../dialect.ts'
|
|
11
20
|
|
|
@@ -507,6 +516,34 @@ export async function seedContent(db: Db): Promise<boolean> {
|
|
|
507
516
|
* than from the vendored client. Seeded and ensured exactly as Umbraco's are.
|
|
508
517
|
*/
|
|
509
518
|
export const CROMBOLO_DATA_TYPES: readonly SeedDataType[] = [
|
|
519
|
+
// A menu's items and each item's own (story 141): blocks of the Menu item type.
|
|
520
|
+
{
|
|
521
|
+
key: MENU_ITEMS_DATA_TYPE_KEY,
|
|
522
|
+
alias: 'menuItems',
|
|
523
|
+
name: 'Menu items',
|
|
524
|
+
editorAlias: 'Umbraco.BlockList',
|
|
525
|
+
editorUiAlias: 'Umb.PropertyEditorUi.BlockList',
|
|
526
|
+
dbType: ValueStorageType.Ntext,
|
|
527
|
+
config: { blocks: [{ contentElementTypeKey: SYSTEM_CONTENT_TYPE_KEYS.MenuItem }] },
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
key: MENU_LINK_DATA_TYPE_KEY,
|
|
531
|
+
alias: 'menuLink',
|
|
532
|
+
name: 'Menu link',
|
|
533
|
+
editorAlias: 'Umbraco.MultiUrlPicker',
|
|
534
|
+
editorUiAlias: 'Umb.PropertyEditorUi.MultiUrlPicker',
|
|
535
|
+
dbType: ValueStorageType.Ntext,
|
|
536
|
+
config: { minNumber: 0, maxNumber: 1 },
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
key: KEEP_COPIES_FOR_DATA_TYPE_KEY,
|
|
540
|
+
alias: 'keepCopiesFor',
|
|
541
|
+
name: 'Keep copies for',
|
|
542
|
+
editorAlias: 'Umbraco.DropDown.Flexible',
|
|
543
|
+
editorUiAlias: 'Umb.PropertyEditorUi.Dropdown',
|
|
544
|
+
dbType: ValueStorageType.Nvarchar,
|
|
545
|
+
config: { multiple: false, items: KEEP_COPIES_FOR.map((choice) => choice.label) },
|
|
546
|
+
},
|
|
510
547
|
{
|
|
511
548
|
key: '9c4a7d1e-0100-4b2a-9f31-6d8e2c5a7b40',
|
|
512
549
|
alias: 'formPicker',
|