@adobe/spacecat-shared-athena-client 1.9.2 → 1.9.4

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-athena-client-v1.9.4](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.9.3...@adobe/spacecat-shared-athena-client-v1.9.4) (2026-02-25)
2
+
3
+ ### Bug Fixes
4
+
5
+ * bump athena-client utils dep to 1.96.3 ([#1379](https://github.com/adobe/spacecat-shared/issues/1379)) ([03fe3e9](https://github.com/adobe/spacecat-shared/commit/03fe3e97df64dbb49dd31d0169742567ab45d5a8)), closes [#1376](https://github.com/adobe/spacecat-shared/issues/1376) [#1378](https://github.com/adobe/spacecat-shared/issues/1378)
6
+
7
+ ## [@adobe/spacecat-shared-athena-client-v1.9.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.9.2...@adobe/spacecat-shared-athena-client-v1.9.3) (2026-02-25)
8
+
9
+ ### Bug Fixes
10
+
11
+ * temporal series month/week wrap-around and add year to query pipeline ([#1376](https://github.com/adobe/spacecat-shared/issues/1376)) ([b15cfd7](https://github.com/adobe/spacecat-shared/commit/b15cfd705809612c4ad69bbdc09d87c06687dcb6))
12
+
1
13
  # [@adobe/spacecat-shared-athena-client-v1.9.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-athena-client-v1.9.1...@adobe/spacecat-shared-athena-client-v1.9.2) (2026-01-19)
2
14
 
3
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-athena-client",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Shared modules of the Spacecat Services - AWS Athena Client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@adobe/spacecat-shared-utils": "1.82.1",
38
+ "@adobe/spacecat-shared-utils": "1.96.3",
39
39
  "@aws-sdk/client-athena": "3.940.0"
40
40
  },
41
41
  "devDependencies": {
@@ -102,9 +102,9 @@ export function getTrafficAnalysisQueryPlaceholdersFilled({
102
102
  }
103
103
 
104
104
  if (numTemporalSeries > 1 && week && week > 0) {
105
- dimensions.push('week');
105
+ dimensions.push('year', 'week');
106
106
  } else if (numTemporalSeries > 1 && month && month > 0) {
107
- dimensions.push('month');
107
+ dimensions.push('year', 'month');
108
108
  }
109
109
  const dimensionColumns = dimensions.join(', ');
110
110
  const dimensionColumnsPrefixed = dimensions.map((col) => `a.${col}`).join(', ');
@@ -179,6 +179,7 @@ WITH min_totals AS (
179
179
  ),
180
180
  raw AS (
181
181
  SELECT
182
+ year,
182
183
  week,
183
184
  month,
184
185
  path,
@@ -279,6 +280,7 @@ WITH min_totals AS (
279
280
  ),
280
281
  raw AS (
281
282
  SELECT
283
+ year,
282
284
  week,
283
285
  month,
284
286
  path,
@@ -48,6 +48,7 @@ WITH min_totals AS (
48
48
  ),
49
49
  raw AS (
50
50
  SELECT
51
+ year,
51
52
  week,
52
53
  month,
53
54
  path,
@@ -18,6 +18,7 @@ export const TrafficDataResponseDto = {
18
18
  * Converts a traffic data object into a JSON object.
19
19
  * @param {object} data - traffic data object.
20
20
  * @returns {{
21
+ * year: number,
21
22
  * type: string,
22
23
  * channel: string,
23
24
  * platform: string,
@@ -33,6 +34,7 @@ export const TrafficDataResponseDto = {
33
34
  * }} JSON object.
34
35
  */
35
36
  toJSON: (data) => ({
37
+ year: data.year,
36
38
  week: data.week,
37
39
  month: data.month,
38
40
  type: data.trf_type,