@adobe/spacecat-shared-data-access 2.37.0 → 2.38.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/models/site/site.schema.js +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.38.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.37.0...@adobe/spacecat-shared-data-access-v2.38.0) (2025-07-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add pageTypes to store pattern matching for pageTypes ([#857](https://github.com/adobe/spacecat-shared/issues/857)) ([4081e8c](https://github.com/adobe/spacecat-shared/commit/4081e8cfd8571d43b9720c07caeb22ced77281d0))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-data-access-v2.37.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.36.1...@adobe/spacecat-shared-data-access-v2.37.0) (2025-07-21)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -117,6 +117,21 @@ const schema = new SchemaBuilder(Site, SiteCollection)
|
|
|
117
117
|
watch: ['authoringType', 'hlxConfig', 'deliveryConfig'],
|
|
118
118
|
set: (_, attrs) => computeExternalIds(attrs, Site.AUTHORING_TYPES).externalSiteId,
|
|
119
119
|
})
|
|
120
|
+
.addAttribute('pageTypes', {
|
|
121
|
+
type: 'list',
|
|
122
|
+
required: false,
|
|
123
|
+
items: {
|
|
124
|
+
type: 'map',
|
|
125
|
+
required: true,
|
|
126
|
+
properties: {
|
|
127
|
+
name: { type: 'string', required: true },
|
|
128
|
+
pattern: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
required: true,
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
})
|
|
120
135
|
.addAllIndex(['baseURL'])
|
|
121
136
|
.addIndex(
|
|
122
137
|
{ composite: ['deliveryType'] },
|