@adobe/spacecat-shared-data-access 1.55.0 → 1.56.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,10 @@
1
+ # [@adobe/spacecat-shared-data-access-v1.56.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.55.0...@adobe/spacecat-shared-data-access-v1.56.0) (2024-11-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * introduce missing audit id property ([#452](https://github.com/adobe/spacecat-shared/issues/452)) ([c17e447](https://github.com/adobe/spacecat-shared/commit/c17e447b275d9788d587dc44f3043fb60e83c51b))
7
+
1
8
  # [@adobe/spacecat-shared-data-access-v1.55.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.54.0...@adobe/spacecat-shared-data-access-v1.55.0) (2024-11-20)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
package/src/dto/audit.js CHANGED
@@ -43,6 +43,7 @@ export const AuditDto = {
43
43
  } : {};
44
44
 
45
45
  return {
46
+ id: audit.getId(),
46
47
  siteId: audit.getSiteId(),
47
48
  auditedAt: audit.getAuditedAt(),
48
49
  auditResult: audit.getAuditResult(),
@@ -62,6 +63,7 @@ export const AuditDto = {
62
63
  */
63
64
  fromDynamoItem: (dynamoItem) => {
64
65
  const auditData = {
66
+ id: dynamoItem.id,
65
67
  siteId: dynamoItem.siteId,
66
68
  auditedAt: dynamoItem.auditedAt,
67
69
  auditResult: dynamoItem.auditResult,
package/src/index.d.ts CHANGED
@@ -33,6 +33,12 @@ export declare const ImportUrlStatus: {
33
33
  * Represents an individual audit of a site.
34
34
  */
35
35
  export interface Audit {
36
+
37
+ /**
38
+ * Retrieves the ID of the audit.
39
+ * @returns {string} The audit ID.
40
+ */
41
+ getId: () => string;
36
42
  /**
37
43
  * Retrieves the site ID associated with this audit.
38
44
  * @returns {string} The site ID.