@smartsoft001-mobilems/models 2.99.0 → 2.100.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/README.md
CHANGED
|
@@ -54,8 +54,8 @@ arrays without `null`s, everything sorted by `position`, `position` always a num
|
|
|
54
54
|
| `PageSectionTarget` | Union of the targets below, discriminated by `targetType`; every target has `targetLabel?` |
|
|
55
55
|
| `PageSectionLinkTarget` | `targetType: 'link'`, `url` (`http(s)://`, `mailto:`, `tel:`, `#anchor` or internal path) |
|
|
56
56
|
| `PageSectionPageTarget` | `targetType: 'page'`, `page` (CMS page id) |
|
|
57
|
-
| `PageSectionDictionaryTarget` | `targetType: 'dictionary'`, `dictionaryType: PageSectionDictionaryType`, `dictionary` (
|
|
58
|
-
| `PageSectionDictionaryType` | `'creator' \| 'department' \| 'tag' \| string`
|
|
57
|
+
| `PageSectionDictionaryTarget` | `targetType: 'dictionary'`, `dictionaryType: PageSectionDictionaryType`, `dictionary: number \| null` — an entry id (selected record) or `null`/missing = the whole dictionary (expanded by the angular `smart-mobilems-page-sections`) |
|
|
58
|
+
| `PageSectionDictionaryType` | `'creator' \| 'department' \| 'tag' \| 'cycle' \| string` |
|
|
59
59
|
| `PageSectionMuseumObjectTarget` | `targetType: 'museum_object'`, `object` (id) |
|
|
60
60
|
| `PageSectionCardTypeCodeTarget` | `targetType: 'card_type_code'`, `cardTypeCodes: number[]` (any matches) |
|
|
61
61
|
| `PageSectionModuleTarget` | `targetType: 'module'` — exists in the CMS, fields not sent by the API yet (never clickable) |
|
package/package.json
CHANGED
|
@@ -33,15 +33,22 @@ export interface PageSectionPageTarget {
|
|
|
33
33
|
/** CMS page id. */
|
|
34
34
|
page: number;
|
|
35
35
|
}
|
|
36
|
-
/**
|
|
37
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Dictionary kinds the CMS offers (`cycle` announced, not in the CMS yet);
|
|
38
|
+
* others may come later.
|
|
39
|
+
*/
|
|
40
|
+
export type PageSectionDictionaryType = 'creator' | 'department' | 'tag' | 'cycle' | (string & {});
|
|
38
41
|
export interface PageSectionDictionaryTarget {
|
|
39
42
|
targetType: 'dictionary';
|
|
40
43
|
targetLabel?: string | null;
|
|
41
44
|
/** Dictionary kind, e.g. `creator`. */
|
|
42
45
|
dictionaryType: PageSectionDictionaryType;
|
|
43
|
-
/**
|
|
44
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Dictionary entry id (a selected record). `null` — or a missing field —
|
|
48
|
+
* means the whole dictionary: `smart-mobilems-page-sections` expands such a
|
|
49
|
+
* block into one block per entry (`expandDictionaryBlocks`).
|
|
50
|
+
*/
|
|
51
|
+
dictionary: number | null;
|
|
45
52
|
}
|
|
46
53
|
export interface PageSectionMuseumObjectTarget {
|
|
47
54
|
targetType: 'museum_object';
|