@adobe/spacecat-shared-utils 1.78.1 → 1.80.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 +14 -0
- package/package.json +1 -1
- package/src/schemas.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.80.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.79.0...@adobe/spacecat-shared-utils-v1.80.0) (2025-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update schema to store user id and timestamp ([#1170](https://github.com/adobe/spacecat-shared/issues/1170)) ([ad64b9c](https://github.com/adobe/spacecat-shared/commit/ad64b9cbbc581883c16099529e0cd73ca9bfb088))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-utils-v1.79.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.78.1...@adobe/spacecat-shared-utils-v1.79.0) (2025-11-25)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* add globalRegion in the llmo customer configuration ([#1168](https://github.com/adobe/spacecat-shared/issues/1168)) ([88dbf51](https://github.com/adobe/spacecat-shared/commit/88dbf514af54de20cf6b5fa2a2ec0f5e46e045af))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-utils-v1.78.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.78.0...@adobe/spacecat-shared-utils-v1.78.1) (2025-11-22)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
package/src/schemas.js
CHANGED
|
@@ -44,6 +44,8 @@ const prompt = z.object({
|
|
|
44
44
|
origin: z.union([z.literal('human'), z.literal('ai'), z.string()]),
|
|
45
45
|
source: z.union([z.literal('config'), z.literal('api'), z.string()]),
|
|
46
46
|
status: z.union([z.literal('completed'), z.literal('processing'), z.string()]).optional(),
|
|
47
|
+
updatedBy: z.string().optional(),
|
|
48
|
+
updatedAt: z.string().optional(),
|
|
47
49
|
});
|
|
48
50
|
|
|
49
51
|
const entity = z.object({
|
|
@@ -72,6 +74,8 @@ const category = z.object({
|
|
|
72
74
|
region: z.union([region, z.array(region)]),
|
|
73
75
|
origin: z.union([z.literal('human'), z.literal('ai'), z.string()]).optional(),
|
|
74
76
|
urls: z.array(categoryUrl).optional(),
|
|
77
|
+
updatedBy: z.string().optional(),
|
|
78
|
+
updatedAt: z.string().optional(),
|
|
75
79
|
});
|
|
76
80
|
|
|
77
81
|
const topic = z.object({
|
|
@@ -97,6 +101,8 @@ export const llmoConfig = z.object({
|
|
|
97
101
|
category: z.uuid().optional(),
|
|
98
102
|
region: z.union([region, z.array(region)]).optional(),
|
|
99
103
|
aliasMode: z.union([z.literal('extend'), z.literal('replace')]).optional(),
|
|
104
|
+
updatedBy: z.string().optional(),
|
|
105
|
+
updatedAt: z.string().optional(),
|
|
100
106
|
}),
|
|
101
107
|
),
|
|
102
108
|
}),
|
|
@@ -108,6 +114,8 @@ export const llmoConfig = z.object({
|
|
|
108
114
|
name: nonEmptyString,
|
|
109
115
|
aliases: z.array(nonEmptyString),
|
|
110
116
|
urls: z.array(z.url().optional()),
|
|
117
|
+
updatedBy: z.string().optional(),
|
|
118
|
+
updatedAt: z.string().optional(),
|
|
111
119
|
}),
|
|
112
120
|
),
|
|
113
121
|
}),
|
|
@@ -189,7 +197,7 @@ function validateTopicPromptRegions(categories, ctx, topics, topicsKey) {
|
|
|
189
197
|
* @param {z.RefinementCtx} ctx
|
|
190
198
|
* @param {string} id
|
|
191
199
|
* @param {Array<number | string>} path
|
|
192
|
-
|
|
200
|
+
*/
|
|
193
201
|
function ensureCategoryExists(categories, ctx, id, path) {
|
|
194
202
|
if (!categories[id]) {
|
|
195
203
|
ctx.addIssue({
|