@adobe/spacecat-shared-utils 1.98.0 → 1.99.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-utils-v1.99.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.98.1...@adobe/spacecat-shared-utils-v1.99.0) (2026-03-02)
2
+
3
+ ### Features
4
+
5
+ * extend strategy schema to store prompts under strategy ([#1386](https://github.com/adobe/spacecat-shared/issues/1386)) ([4e29cc5](https://github.com/adobe/spacecat-shared/commit/4e29cc5a24141e224b366c50948b8dce00d49afd))
6
+
7
+ ## [@adobe/spacecat-shared-utils-v1.98.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.98.0...@adobe/spacecat-shared-utils-v1.98.1) (2026-03-02)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **deps:** update external fixes ([#1223](https://github.com/adobe/spacecat-shared/issues/1223)) ([7ee8461](https://github.com/adobe/spacecat-shared/commit/7ee8461c99223d07a2f47bd6838b6942fcb30f28))
12
+
1
13
  ## [@adobe/spacecat-shared-utils-v1.98.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.97.0...@adobe/spacecat-shared-utils-v1.98.0) (2026-02-27)
2
14
 
3
15
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.98.0",
3
+ "version": "1.99.0",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -43,21 +43,21 @@
43
43
  "devDependencies": {
44
44
  "@adobe/helix-shared-wrap": "2.0.2",
45
45
  "@types/validator": "^13.15.2",
46
- "chai": "6.2.1",
46
+ "chai": "6.2.2",
47
47
  "chai-as-promised": "8.0.2",
48
48
  "esmock": "2.7.3",
49
49
  "husky": "9.1.7",
50
- "nock": "14.0.10",
51
- "sinon": "21.0.0",
50
+ "nock": "14.0.11",
51
+ "sinon": "21.0.1",
52
52
  "sinon-chai": "4.0.1"
53
53
  },
54
54
  "dependencies": {
55
55
  "@adobe/fetch": "4.2.3",
56
- "@aws-sdk/client-s3": "3.940.0",
57
- "@aws-sdk/client-sqs": "3.940.0",
56
+ "@aws-sdk/client-s3": "3.1000.0",
57
+ "@aws-sdk/client-sqs": "3.1000.0",
58
58
  "@json2csv/plainjs": "7.0.6",
59
59
  "aws-xray-sdk": "3.12.0",
60
- "cheerio": "1.1.2",
60
+ "cheerio": "1.2.0",
61
61
  "date-fns": "4.1.0",
62
62
  "franc-min": "6.2.0",
63
63
  "iso-639-3": "3.0.1",
@@ -63,6 +63,12 @@ const strategyOpportunity = z.object({
63
63
  completedAt: z.string().optional(), // ISO 8601 date string
64
64
  });
65
65
 
66
+ const strategyPromptSelection = z.object({
67
+ id: z.uuid().optional(),
68
+ prompt: nonEmptyString,
69
+ regions: z.array(z.string()),
70
+ });
71
+
66
72
  /**
67
73
  * Strategy containing references to opportunities
68
74
  */
@@ -73,7 +79,9 @@ const strategy = z.object({
73
79
  url: z.string(),
74
80
  description: z.string(),
75
81
  topic: z.string(),
76
- platform: nonEmptyString,
82
+ topicId: z.uuid().optional(),
83
+ selectedPrompts: z.array(strategyPromptSelection).optional(),
84
+ platform: nonEmptyString.optional(),
77
85
  opportunities: z.array(strategyOpportunity),
78
86
  createdAt: z.string(), // ISO 8601 date string
79
87
  createdBy: z.string().optional(), // Email of strategy creator/owner