@adobe/spacecat-shared-data-access 2.34.1 → 2.35.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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.35.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.34.1...@adobe/spacecat-shared-data-access-v2.35.0) (2025-07-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * introduce isSandbox flag for sandbox sites ([#842](https://github.com/adobe/spacecat-shared/issues/842)) ([066adb4](https://github.com/adobe/spacecat-shared/commit/066adb4629901a82b7c5c21297795d82eb771d29))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v2.34.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.34.0...@adobe/spacecat-shared-data-access-v2.34.1) (2025-07-16)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.34.1",
3
+ "version": "2.35.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -137,6 +137,7 @@ export interface Site extends BaseModel {
137
137
  getHlxConfig(): HlxConfig;
138
138
  getDeliveryConfig(): object;
139
139
  getIsLive(): boolean;
140
+ getIsSandbox(): boolean;
140
141
  getIsLiveToggledAt(): string;
141
142
  getKeyEvents(): Promise<KeyEvent[]>
142
143
  getKeyEventsByTimestamp(timestamp: string): Promise<KeyEvent[]>
@@ -164,6 +165,7 @@ export interface Site extends BaseModel {
164
165
  setHlxConfig(hlxConfig: HlxConfig): Site;
165
166
  setDeliveryConfig(deliveryConfig: object): Site;
166
167
  setIsLive(isLive: boolean): Site;
168
+ setIsSandbox(isSandbox: boolean): Site;
167
169
  setIsLiveToggledAt(isLiveToggledAt: string): Site;
168
170
  setOrganizationId(organizationId: string): Site;
169
171
  toggleLive(): Site;
@@ -87,6 +87,10 @@ const schema = new SchemaBuilder(Site, SiteCollection)
87
87
  default: {},
88
88
  validate: (value) => isObject(value),
89
89
  })
90
+ .addAttribute('isSandbox', {
91
+ type: 'boolean',
92
+ default: false,
93
+ })
90
94
  .addAttribute('isLive', {
91
95
  type: 'boolean',
92
96
  required: true,