@adobe/spacecat-shared-data-access 4.1.0 → 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,15 @@
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
+
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)
8
+
9
+ ### Bug Fixes
10
+
11
+ * add new phases to IVE states ([#1768](https://github.com/adobe/spacecat-shared/issues/1768)) ([91c5182](https://github.com/adobe/spacecat-shared/commit/91c5182cfbba5d9d9fcb7a53e45598bbccf93e19))
12
+
1
13
  ## [@adobe/spacecat-shared-data-access-v4.1.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.0.0...@adobe/spacecat-shared-data-access-v4.1.0) (2026-07-06)
2
14
 
3
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -29,12 +29,17 @@ class GeoExperiment extends BaseModel {
29
29
  };
30
30
 
31
31
  static PHASES = {
32
+ INITIATED: 'initiated',
33
+ PROMPT_GENERATION_STARTED: 'prompt_generation_started',
34
+ PROMPT_GENERATION_COMPLETED: 'prompt_generation_completed',
32
35
  PRE_ANALYSIS_STARTED: 'pre_analysis_started',
33
36
  PRE_ANALYSIS_DONE: 'pre_analysis_done',
34
37
  DEPLOYMENT_STARTED: 'deployment_started',
35
38
  DEPLOYMENT_DONE: 'deployment_done',
36
39
  POST_ANALYSIS_STARTED: 'post_analysis_started',
37
40
  POST_ANALYSIS_DONE: 'post_analysis_done',
41
+ IMPACT_MEASUREMENT_STARTED: 'impact_measurement_started',
42
+ IMPACT_MEASUREMENT_DONE: 'impact_measurement_done',
38
43
  };
39
44
 
40
45
  /**
@@ -51,10 +56,11 @@ class GeoExperiment extends BaseModel {
51
56
  * Well-known keys used within a GeoExperiment's metadata object.
52
57
  * Centralised here so all consumers reference the same key names.
53
58
  *
54
- * @type {{ SCHEDULE_CONFIG: string }}
59
+ * @type {{ SCHEDULE_CONFIG: string, IMPACT_MEASUREMENT_TASK_ID: string }}
55
60
  */
56
61
  static METADATA_KEYS = {
57
62
  SCHEDULE_CONFIG: 'scheduleConfig',
63
+ IMPACT_MEASUREMENT_TASK_ID: 'impactMeasurementTaskId',
58
64
  };
59
65
 
60
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
  }