@adobe/spacecat-shared-data-access 3.45.2 → 3.46.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 +6 -0
- package/README.md +15 -0
- package/package.json +1 -1
- package/src/models/site/index.d.ts +11 -0
- package/src/models/site/site.schema.js +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.46.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.45.2...@adobe/spacecat-shared-data-access-v3.46.0) (2026-04-07)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **data-access:** add tenantId, ipAllowlistExists, imsOrgId to deliveryConfig schema ([#1515](https://github.com/adobe/spacecat-shared/issues/1515)) ([ff9629e](https://github.com/adobe/spacecat-shared/commit/ff9629e28bff7d0ee0d1d26f1f13df5eaa2ef4f8))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v3.45.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.45.1...@adobe/spacecat-shared-data-access-v3.45.2) (2026-04-06)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -158,6 +158,21 @@ Current exported entities include:
|
|
|
158
158
|
- `TrialUser`
|
|
159
159
|
- `TrialUserActivity`
|
|
160
160
|
|
|
161
|
+
## Site deliveryConfig
|
|
162
|
+
|
|
163
|
+
The `deliveryConfig` object on a Site stores delivery infrastructure details. It is a flexible JSON object (`type: 'any'`) — unknown properties are preserved (not stripped).
|
|
164
|
+
|
|
165
|
+
| Property | Type | Description |
|
|
166
|
+
|----------|------|-------------|
|
|
167
|
+
| `programId` | string | Cloud Manager program ID |
|
|
168
|
+
| `environmentId` | string | Cloud Manager environment ID (AEM CS only) |
|
|
169
|
+
| `authorURL` | string | AEM author instance URL (e.g., `https://author-p12345-e67890.adobeaemcloud.com`) |
|
|
170
|
+
| `siteId` | string | Spacecat site ID |
|
|
171
|
+
| `imsOrgId` | string | Adobe IMS Organization ID of the customer |
|
|
172
|
+
| `tenantId` | string | Cloud Manager tenant identifier (from `/program/{programId}` response) |
|
|
173
|
+
| `ipAllowlistExists` | boolean | Whether the CM program has real IP allowlists configured (excludes default `0.0.0.0/32` entries) |
|
|
174
|
+
| `preferContentApi` | boolean | Whether to prefer the Content API for content retrieval |
|
|
175
|
+
|
|
161
176
|
## Architecture
|
|
162
177
|
|
|
163
178
|
```
|
package/package.json
CHANGED
|
@@ -44,6 +44,17 @@ export interface CodeConfig {
|
|
|
44
44
|
s3StoragePath?: string;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export interface DeliveryConfig {
|
|
48
|
+
programId?: string;
|
|
49
|
+
environmentId?: string;
|
|
50
|
+
authorURL?: string;
|
|
51
|
+
siteId?: string;
|
|
52
|
+
tenantId?: string;
|
|
53
|
+
ipAllowlistExists?: boolean;
|
|
54
|
+
imsOrgId?: string;
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
|
|
47
58
|
export type IMPORT_TYPES = {
|
|
48
59
|
readonly ORGANIC_KEYWORDS: 'organic-keywords';
|
|
49
60
|
readonly ORGANIC_TRAFFIC: 'organic-traffic';
|
|
@@ -120,6 +120,9 @@ const schema = new SchemaBuilder(Site, SiteCollection)
|
|
|
120
120
|
environmentId: { type: 'string' },
|
|
121
121
|
authorURL: { type: 'string', validate: (value) => isValidUrl(value) },
|
|
122
122
|
siteId: { type: 'string' },
|
|
123
|
+
tenantId: { type: 'string' },
|
|
124
|
+
ipAllowlistExists: { type: 'boolean' },
|
|
125
|
+
imsOrgId: { type: 'string' },
|
|
123
126
|
},
|
|
124
127
|
})
|
|
125
128
|
.addAttribute('hlxConfig', {
|