@adobe/spacecat-shared-data-access 2.8.1 → 2.8.3

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,17 @@
1
+ # [@adobe/spacecat-shared-data-access-v2.8.3](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.8.2...@adobe/spacecat-shared-data-access-v2.8.3) (2025-02-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#622](https://github.com/adobe/spacecat-shared/issues/622)) ([6552a61](https://github.com/adobe/spacecat-shared/commit/6552a61ebd8b83c0a1dec51d50d44cf3b97819c1))
7
+
8
+ # [@adobe/spacecat-shared-data-access-v2.8.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.8.1...@adobe/spacecat-shared-data-access-v2.8.2) (2025-02-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * validate IMS Org ID ([#618](https://github.com/adobe/spacecat-shared/issues/618)) ([aa79853](https://github.com/adobe/spacecat-shared/commit/aa79853bddea717281f38984ec0cc88c10d12128))
14
+
1
15
  # [@adobe/spacecat-shared-data-access-v2.8.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.8.0...@adobe/spacecat-shared-data-access-v2.8.1) (2025-02-20)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-data-access",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
4
4
  "description": "Shared modules of the Spacecat Services - Data Access",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@adobe/spacecat-shared-utils": "1.26.4",
38
- "@aws-sdk/client-dynamodb": "3.749.0",
39
- "@aws-sdk/lib-dynamodb": "3.749.0",
38
+ "@aws-sdk/client-dynamodb": "3.751.0",
39
+ "@aws-sdk/lib-dynamodb": "3.751.0",
40
40
  "@types/joi": "17.2.3",
41
41
  "aws-xray-sdk": "3.10.3",
42
- "electrodb": "3.4.0",
42
+ "electrodb": "3.4.1",
43
43
  "joi": "17.13.3",
44
44
  "pluralize": "8.0.0",
45
- "uuid": "11.0.5"
45
+ "uuid": "11.1.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "chai": "5.2.0",
@@ -20,8 +20,9 @@ import BaseModel from '../base/base.model.js';
20
20
  * @extends BaseModel
21
21
  */
22
22
  class Organization extends BaseModel {
23
- // add your custom methods or overrides here
23
+ static IMS_ORG_ID_REGEX = /[a-z0-9]{24}@AdobeOrg/i;
24
24
 
25
+ // add your custom methods or overrides here
25
26
  }
26
27
 
27
28
  export default Organization;
@@ -41,7 +41,7 @@ const schema = new SchemaBuilder(Organization, OrganizationCollection)
41
41
  })
42
42
  .addAttribute('imsOrgId', {
43
43
  type: 'string',
44
- default: 'default',
44
+ validate: (value) => !value || Organization.IMS_ORG_ID_REGEX.test(value),
45
45
  })
46
46
  .addAttribute('fulfillableItems', {
47
47
  type: 'any',