@adobe/spacecat-shared-data-access 3.59.0 → 3.60.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,9 @@
|
|
|
1
|
+
## [@adobe/spacecat-shared-data-access-v3.60.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.59.0...@adobe/spacecat-shared-data-access-v3.60.0) (2026-05-11)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **data-access:** add llmBackend field to Organization entity ([#1588](https://github.com/adobe/spacecat-shared/issues/1588)) ([ebccbe5](https://github.com/adobe/spacecat-shared/commit/ebccbe55688fb4b8fb3ffd76cc29650c2cc2fc65)), closes [mysticat-data-service#534](https://github.com/adobe/mysticat-data-service/issues/534)
|
|
6
|
+
|
|
1
7
|
## [@adobe/spacecat-shared-data-access-v3.59.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.58.0...@adobe/spacecat-shared-data-access-v3.59.0) (2026-05-07)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/package.json
CHANGED
|
@@ -24,7 +24,15 @@ class Organization extends BaseModel {
|
|
|
24
24
|
|
|
25
25
|
static IMS_ORG_ID_REGEX = /[a-z0-9]{24}@AdobeOrg/i;
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
static LLM_BACKEND_AZURE = 'azure';
|
|
28
|
+
|
|
29
|
+
static LLM_BACKEND_BEDROCK = 'bedrock';
|
|
30
|
+
|
|
31
|
+
static LLM_BACKENDS = ['azure', 'bedrock'];
|
|
32
|
+
|
|
33
|
+
getLlmBackend() {
|
|
34
|
+
return this.record.llmBackend ?? Organization.LLM_BACKEND_AZURE;
|
|
35
|
+
}
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
export default Organization;
|
|
@@ -40,6 +40,10 @@ const schema = new SchemaBuilder(Organization, OrganizationCollection)
|
|
|
40
40
|
type: 'string',
|
|
41
41
|
validate: (value) => !value || Organization.IMS_ORG_ID_REGEX.test(value),
|
|
42
42
|
})
|
|
43
|
+
.addAttribute('llmBackend', {
|
|
44
|
+
type: Organization.LLM_BACKENDS,
|
|
45
|
+
validate: (value) => !value || Organization.LLM_BACKENDS.includes(value),
|
|
46
|
+
})
|
|
43
47
|
.addAttribute('fulfillableItems', {
|
|
44
48
|
type: 'any',
|
|
45
49
|
validate: (value) => !value || isNonEmptyObject(value),
|