@adobe/spacecat-shared-data-access 4.17.0 → 4.19.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.19.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.18.0...@adobe/spacecat-shared-data-access-v4.19.0) (2026-08-11)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* add support for searching trial users by external user id ([#1869](https://github.com/adobe/spacecat-shared/issues/1869)) ([ec48340](https://github.com/adobe/spacecat-shared/commit/ec483403ac2b118abea814309079716fc516042a))
|
|
6
|
+
|
|
7
|
+
## [@adobe/spacecat-shared-data-access-v4.18.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.17.0...@adobe/spacecat-shared-data-access-v4.18.0) (2026-08-11)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **data-access:** add prerender validation fields to Suggestion/GeoExperiment ([#1863](https://github.com/adobe/spacecat-shared/issues/1863)) ([88b3baa](https://github.com/adobe/spacecat-shared/commit/88b3baaaedc2a9a12a48a88abb184baf85796426))
|
|
12
|
+
|
|
1
13
|
## [@adobe/spacecat-shared-data-access-v4.17.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v4.16.1...@adobe/spacecat-shared-data-access-v4.17.0) (2026-08-07)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/package.json
CHANGED
|
@@ -519,6 +519,13 @@ export const DATA_SCHEMAS = {
|
|
|
519
519
|
},
|
|
520
520
|
},
|
|
521
521
|
},
|
|
522
|
+
// Field ownership:
|
|
523
|
+
// - validation — written by import-worker's validate-site.js after running the S3-vs-live
|
|
524
|
+
// content comparison for this suggestion's URL, only for suggestions reached via a
|
|
525
|
+
// geoExperimentId-triggered validation call (the bulk/automatic hourly job does not write
|
|
526
|
+
// per-suggestion status). status is a plain boolean; reason is only present when status is
|
|
527
|
+
// false. reason is a free-form string (not a fixed enum here) so import-worker can evolve
|
|
528
|
+
// its reason vocabulary without a schema change in this package.
|
|
522
529
|
[OPPORTUNITY_TYPES.PRERENDER]: {
|
|
523
530
|
schema: Joi.object({
|
|
524
531
|
url: Joi.string().uri().required(),
|
|
@@ -529,6 +536,11 @@ export const DATA_SCHEMAS = {
|
|
|
529
536
|
prerenderedHtmlKey: Joi.string().optional(),
|
|
530
537
|
organicTraffic: Joi.number().optional(),
|
|
531
538
|
aggregationKey: Joi.string().allow(null).optional(),
|
|
539
|
+
validation: Joi.object({
|
|
540
|
+
status: Joi.boolean().optional(),
|
|
541
|
+
reason: Joi.string().optional(),
|
|
542
|
+
validatedAt: Joi.string().isoDate().optional(),
|
|
543
|
+
}).optional(),
|
|
532
544
|
}).unknown(true),
|
|
533
545
|
projections: {
|
|
534
546
|
minimal: {
|
|
@@ -52,6 +52,10 @@ const schema = new SchemaBuilder(TrialUser, TrialUserCollection)
|
|
|
52
52
|
.addIndex(
|
|
53
53
|
{ composite: ['organizationId'] },
|
|
54
54
|
{ composite: ['updatedAt'] },
|
|
55
|
+
)
|
|
56
|
+
.addIndex(
|
|
57
|
+
{ composite: ['externalUserId'] },
|
|
58
|
+
{ composite: ['updatedAt'] },
|
|
55
59
|
);
|
|
56
60
|
|
|
57
61
|
export default schema.build();
|