@platecms/delta-types 1.2.0 → 1.4.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": "@platecms/delta-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "This package contains various utility types.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"src/**/*"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@platecms/delta-cast": "1.
|
|
21
|
-
"@platecms/delta-plate-resource-notation": "1.
|
|
20
|
+
"@platecms/delta-cast": "1.4.0",
|
|
21
|
+
"@platecms/delta-plate-resource-notation": "1.4.0",
|
|
22
22
|
"class-transformer": "0.5.1",
|
|
23
23
|
"reflect-metadata": "0.2.2",
|
|
24
24
|
"tslib": "2.8.1"
|
|
@@ -14,12 +14,22 @@ export enum ContentValueTypeNames {
|
|
|
14
14
|
SMART_TEXT = "SMART_TEXT",
|
|
15
15
|
CONTENT_TYPE = "CONTENT_TYPE",
|
|
16
16
|
TAG = "TAG",
|
|
17
|
+
/**
|
|
18
|
+
* Used when the stored value cannot be determined (e.g. referenced Tag/Asset/ContentType was deleted
|
|
19
|
+
* but the ContentValue was not cleaned up). Enables CX and global components to keep loading.
|
|
20
|
+
*/
|
|
21
|
+
UNKNOWN = "UNKNOWN",
|
|
17
22
|
}
|
|
18
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Content value type names for PRN-backed values (subset of ContentValueTypeNames, excludes UNKNOWN).
|
|
26
|
+
*/
|
|
27
|
+
export type ContentValueTypeNameForPrn = ContentValueTypeName<PRN>;
|
|
28
|
+
|
|
19
29
|
/**
|
|
20
30
|
* Maps PRN resource types to ContentValueTypeNames for relation values.
|
|
21
31
|
*/
|
|
22
|
-
export const PRN_RESOURCE_TYPE_TO_CONTENT_VALUE_TYPE_NAME_MAP: Record<string,
|
|
32
|
+
export const PRN_RESOURCE_TYPE_TO_CONTENT_VALUE_TYPE_NAME_MAP: Record<string, ContentValueTypeNameForPrn> = {
|
|
23
33
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
24
34
|
"content-item": ContentValueTypeNames.CONTENT_ITEM,
|
|
25
35
|
"content-type": ContentValueTypeNames.CONTENT_TYPE,
|