@cloudhal/core-contracts 0.3.13 → 0.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/dist/src/generated/index.d.ts +1 -1
- package/dist/src/generated/index.js +1 -1
- package/dist/src/generated/schemas.d.ts +106 -2
- package/dist/src/generated/schemas.js +60 -1
- package/dist/src/generated/site.d.ts +32 -1
- package/dist/src/generated/site.js +32 -1
- package/dist/src/generated/validators.js +1615 -1299
- package/package.json +1 -1
- package/schemas/site.schema.json +38 -1
package/package.json
CHANGED
package/schemas/site.schema.json
CHANGED
|
@@ -47,8 +47,9 @@
|
|
|
47
47
|
"localization": { "$ref": "#/$defs/Localization" },
|
|
48
48
|
"collections": {
|
|
49
49
|
"type": "object",
|
|
50
|
-
"description": "RFC-0038
|
|
50
|
+
"description": "RFC-0038, RFC-0040: the site's declared collections and their settings, keyed by collection (ContentEntry.collection). A key here declares the collection, even with no settings ({}). A collection with entries but no key is inferred and uses the defaults.",
|
|
51
51
|
"propertyNames": { "$ref": "common.schema.json#/$defs/Slug" },
|
|
52
|
+
"maxProperties": 50,
|
|
52
53
|
"additionalProperties": { "$ref": "#/$defs/CollectionSettings" }
|
|
53
54
|
},
|
|
54
55
|
"theme": { "$ref": "#/$defs/ThemeRef" },
|
|
@@ -77,9 +78,45 @@
|
|
|
77
78
|
"type": "string",
|
|
78
79
|
"description": "RFC-0038: where the collection's entries live, as a template with a closed token set. Version 1: one or more fixed lower-case path segments followed by /{slug}, e.g. /blog/{slug}. Absent means /<collection>/{slug}.",
|
|
79
80
|
"pattern": "^(/[a-z0-9]+(-[a-z0-9]+)*)+/\\{slug\\}$"
|
|
81
|
+
},
|
|
82
|
+
"labels": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"description": "RFC-0040: display names per locale (Studio, agents, themes). Absent or missing a locale: the default locale's, then the key.",
|
|
85
|
+
"propertyNames": { "$ref": "common.schema.json#/$defs/Locale" },
|
|
86
|
+
"minProperties": 1,
|
|
87
|
+
"additionalProperties": { "$ref": "#/$defs/CollectionLabel" }
|
|
88
|
+
},
|
|
89
|
+
"icon": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "RFC-0040: a name from Studio's closed icon set (e.g. calendar, briefcase, users). Unknown names show the default icon. Never a URL or markup.",
|
|
92
|
+
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
|
|
93
|
+
"maxLength": 40
|
|
94
|
+
},
|
|
95
|
+
"feed": {
|
|
96
|
+
"type": "boolean",
|
|
97
|
+
"description": "RFC-0040: entries appear in the site's RSS feeds. Absent: true."
|
|
98
|
+
},
|
|
99
|
+
"sitemap": {
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"description": "RFC-0040: published entries appear in sitemap.xml. Absent: true."
|
|
102
|
+
},
|
|
103
|
+
"sort": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "RFC-0040: default order where none is given (Studio's list, entry queries without sort, MCP list_entries). Absent: newest.",
|
|
106
|
+
"enum": ["newest", "oldest", "title"]
|
|
80
107
|
}
|
|
81
108
|
}
|
|
82
109
|
},
|
|
110
|
+
"CollectionLabel": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": ["singular", "plural"],
|
|
114
|
+
"properties": {
|
|
115
|
+
"singular": { "type": "string", "minLength": 1, "maxLength": 100 },
|
|
116
|
+
"plural": { "type": "string", "minLength": 1, "maxLength": 100 },
|
|
117
|
+
"description": { "type": "string", "maxLength": 1000 }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
83
120
|
"Brand": {
|
|
84
121
|
"type": "object",
|
|
85
122
|
"description": "The site's logo and social links (RFC-0025 \u00a71), shared by the header, the footer and SEO.",
|