@adobe/spacecat-shared-data-access 4.1.1 → 4.2.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,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v4.2.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.1.1...@adobe/spacecat-shared-data-access-v4.2.0) (2026-07-07)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **data-access:** GeoExperiment impact-measurement phases + insights/impactTaskId fields ([#1779](https://github.com/adobe/spacecat-shared/issues/1779)) ([f56ae3d](https://github.com/adobe/spacecat-shared/commit/f56ae3dafe8c14fca29ae3c126bd044390f4a399))
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v4.1.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.1.0...@adobe/spacecat-shared-data-access-v4.1.1) (2026-07-06)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -38,6 +38,8 @@ class GeoExperiment extends BaseModel {
|
|
|
38
38
|
DEPLOYMENT_DONE: 'deployment_done',
|
|
39
39
|
POST_ANALYSIS_STARTED: 'post_analysis_started',
|
|
40
40
|
POST_ANALYSIS_DONE: 'post_analysis_done',
|
|
41
|
+
IMPACT_MEASUREMENT_STARTED: 'impact_measurement_started',
|
|
42
|
+
IMPACT_MEASUREMENT_DONE: 'impact_measurement_done',
|
|
41
43
|
};
|
|
42
44
|
|
|
43
45
|
/**
|
|
@@ -54,10 +56,11 @@ class GeoExperiment extends BaseModel {
|
|
|
54
56
|
* Well-known keys used within a GeoExperiment's metadata object.
|
|
55
57
|
* Centralised here so all consumers reference the same key names.
|
|
56
58
|
*
|
|
57
|
-
* @type {{ SCHEDULE_CONFIG: string }}
|
|
59
|
+
* @type {{ SCHEDULE_CONFIG: string, IMPACT_MEASUREMENT_TASK_ID: string }}
|
|
58
60
|
*/
|
|
59
61
|
static METADATA_KEYS = {
|
|
60
62
|
SCHEDULE_CONFIG: 'scheduleConfig',
|
|
63
|
+
IMPACT_MEASUREMENT_TASK_ID: 'impactMeasurementTaskId',
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
/**
|
|
@@ -81,6 +81,10 @@ const schema = new SchemaBuilder(GeoExperiment, GeoExperimentCollection)
|
|
|
81
81
|
type: 'any',
|
|
82
82
|
validate: (value) => !value || isObject(value),
|
|
83
83
|
})
|
|
84
|
+
.addAttribute('insightsLocation', {
|
|
85
|
+
type: 'string',
|
|
86
|
+
validate: (value) => !value || hasText(value),
|
|
87
|
+
})
|
|
84
88
|
.addAttribute('error', {
|
|
85
89
|
type: 'any',
|
|
86
90
|
validate: (value) => !value || isObject(value),
|
|
@@ -36,6 +36,7 @@ export interface GeoExperiment extends BaseModel {
|
|
|
36
36
|
getStartTime(): string | undefined;
|
|
37
37
|
getEndTime(): string | undefined;
|
|
38
38
|
getMetadata(): object | undefined;
|
|
39
|
+
getInsightsLocation(): string | undefined;
|
|
39
40
|
getError(): object | undefined;
|
|
40
41
|
getUpdatedBy(): string;
|
|
41
42
|
|
|
@@ -53,6 +54,7 @@ export interface GeoExperiment extends BaseModel {
|
|
|
53
54
|
setStartTime(startTime?: string): GeoExperiment;
|
|
54
55
|
setEndTime(endTime?: string): GeoExperiment;
|
|
55
56
|
setMetadata(metadata?: object): GeoExperiment;
|
|
57
|
+
setInsightsLocation(insightsLocation?: string): GeoExperiment;
|
|
56
58
|
setError(error?: object): GeoExperiment;
|
|
57
59
|
setUpdatedBy(updatedBy: string): GeoExperiment;
|
|
58
60
|
}
|