@enonic-types/lib-schema 8.0.4 → 8.1.0-B2
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 +2 -2
- package/schema.d.ts +30 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enonic-types/lib-schema",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0-B2",
|
|
4
4
|
"description": "Type definitions for lib-schema.",
|
|
5
5
|
"types": "schema.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/enonic/xp/tree/master#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@enonic-types/core": "8.0
|
|
30
|
+
"@enonic-types/core": "8.1.0-B2"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
package/schema.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export type { ByteSource, FormItem, FormItemFormFragment, FormItemInput, FormIte
|
|
|
16
16
|
export interface Icon {
|
|
17
17
|
data: ByteSource;
|
|
18
18
|
mimeType: string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Not a dependable measure of when the icon last changed, and unsuitable for cache
|
|
21
|
+
* invalidation. Icons are loaded from application resources, so this derives from a jar entry timestamp
|
|
22
|
+
* that build tools normalize to a constant for reproducibility, from the install time of the bundle
|
|
23
|
+
* providing the icon, or from the time the icon happened to be read.
|
|
24
|
+
*/
|
|
19
25
|
modifiedTime: string;
|
|
20
26
|
}
|
|
21
27
|
export type ContentSchemaType = 'CONTENT_TYPE' | 'FORM_FRAGMENT' | 'MIXIN';
|
|
@@ -32,6 +38,12 @@ export interface Schema {
|
|
|
32
38
|
descriptionI18nKey: string;
|
|
33
39
|
createdTime: string;
|
|
34
40
|
creator: UserKey;
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated Not a dependable measure of when this last changed. Read from an application resource,
|
|
43
|
+
* this derives from a jar entry timestamp that build tools normalize to a constant for reproducibility;
|
|
44
|
+
* only a dynamic schema stored in a repository node carries a genuine time, and the two cannot be told
|
|
45
|
+
* apart here.
|
|
46
|
+
*/
|
|
35
47
|
modifiedTime: string;
|
|
36
48
|
modifier: UserKey;
|
|
37
49
|
resource: string;
|
|
@@ -83,6 +95,12 @@ export interface ComponentDescriptor {
|
|
|
83
95
|
description: string;
|
|
84
96
|
descriptionI18nKey: string;
|
|
85
97
|
componentPath: string;
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Not a dependable measure of when this last changed. Read from an application resource,
|
|
100
|
+
* this derives from a jar entry timestamp that build tools normalize to a constant for reproducibility;
|
|
101
|
+
* only a dynamic schema stored in a repository node carries a genuine time, and the two cannot be told
|
|
102
|
+
* apart here.
|
|
103
|
+
*/
|
|
86
104
|
modifiedTime: string;
|
|
87
105
|
resource: string;
|
|
88
106
|
type: ComponentDescriptorType;
|
|
@@ -118,6 +136,12 @@ export type EditorConfig = ConfigObject & {
|
|
|
118
136
|
};
|
|
119
137
|
export interface StyleDescriptor {
|
|
120
138
|
application: string;
|
|
139
|
+
/**
|
|
140
|
+
* @deprecated Not a dependable measure of when this last changed. Read from an application resource,
|
|
141
|
+
* this derives from a jar entry timestamp that build tools normalize to a constant for reproducibility;
|
|
142
|
+
* only a dynamic schema stored in a repository node carries a genuine time, and the two cannot be told
|
|
143
|
+
* apart here.
|
|
144
|
+
*/
|
|
121
145
|
modifiedTime: string;
|
|
122
146
|
resource: string;
|
|
123
147
|
elements: {
|
|
@@ -170,6 +194,12 @@ export declare function getComponent(params: GetDynamicComponentParams): LayoutD
|
|
|
170
194
|
export interface SiteDescriptor {
|
|
171
195
|
application: string;
|
|
172
196
|
resource: string;
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated Not a dependable measure of when this last changed. Read from an application resource,
|
|
199
|
+
* this derives from a jar entry timestamp that build tools normalize to a constant for reproducibility;
|
|
200
|
+
* only a dynamic schema stored in a repository node carries a genuine time, and the two cannot be told
|
|
201
|
+
* apart here.
|
|
202
|
+
*/
|
|
173
203
|
modifiedTime: string;
|
|
174
204
|
form: FormItem[];
|
|
175
205
|
mixinMappings?: {
|