@adobe/spacecat-shared-data-access 2.60.0 → 2.61.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/models/entitlement/index.d.ts +2 -2
- package/src/models/organization-identity-provider/index.d.ts +2 -2
- package/src/models/site/config.js +11 -0
- package/src/models/site-enrollment/index.d.ts +2 -2
- package/src/models/trial-user/index.d.ts +4 -4
- package/src/models/trial-user-activity/index.d.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-data-access-v2.61.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.60.1...@adobe/spacecat-shared-data-access-v2.61.0) (2025-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add bucket config inside llmo ([#944](https://github.com/adobe/spacecat-shared/issues/944)) ([0153f33](https://github.com/adobe/spacecat-shared/commit/0153f33615b3ccc51f6adee0475027ad93a41480))
|
|
7
|
+
|
|
8
|
+
# [@adobe/spacecat-shared-data-access-v2.60.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.60.0...@adobe/spacecat-shared-data-access-v2.60.1) (2025-08-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Fix findBy typescript definitions for LLMO tier types ([#942](https://github.com/adobe/spacecat-shared/issues/942)) ([396ca6f](https://github.com/adobe/spacecat-shared/commit/396ca6f1c4a251652c63449f9d67b89472f0065c))
|
|
14
|
+
|
|
1
15
|
# [@adobe/spacecat-shared-data-access-v2.60.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.59.0...@adobe/spacecat-shared-data-access-v2.60.0) (2025-08-29)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -39,9 +39,9 @@ export interface EntitlementCollection extends
|
|
|
39
39
|
productCode: EntitlementProductCode,
|
|
40
40
|
): Promise<Entitlement[]>;
|
|
41
41
|
|
|
42
|
-
findByOrganizationId(organizationId: string): Promise<Entitlement
|
|
42
|
+
findByOrganizationId(organizationId: string): Promise<Entitlement | null>;
|
|
43
43
|
findByOrganizationIdAndProductCode(
|
|
44
44
|
organizationId: string,
|
|
45
45
|
productCode: EntitlementProductCode,
|
|
46
|
-
): Promise<Entitlement
|
|
46
|
+
): Promise<Entitlement | null>;
|
|
47
47
|
}
|
|
@@ -33,8 +33,8 @@ export interface OrganizationIdentityProviderCollection extends
|
|
|
33
33
|
allByProviderAndExternalId(provider: ProviderType, externalId: string):
|
|
34
34
|
Promise<OrganizationIdentityProvider[]>;
|
|
35
35
|
allByOrganizationId(organizationId: string): Promise<OrganizationIdentityProvider[]>;
|
|
36
|
-
findByProvider(provider: ProviderType): Promise<OrganizationIdentityProvider
|
|
36
|
+
findByProvider(provider: ProviderType): Promise<OrganizationIdentityProvider | null>;
|
|
37
37
|
findByProviderAndExternalId(provider: ProviderType, externalId: string):
|
|
38
38
|
Promise<OrganizationIdentityProvider | null>;
|
|
39
|
-
findByOrganizationId(organizationId: string): Promise<OrganizationIdentityProvider
|
|
39
|
+
findByOrganizationId(organizationId: string): Promise<OrganizationIdentityProvider | null>;
|
|
40
40
|
}
|
|
@@ -276,6 +276,11 @@ export const configSchema = Joi.object({
|
|
|
276
276
|
type: Joi.string().valid('include', 'exclude').optional(),
|
|
277
277
|
}),
|
|
278
278
|
).optional(),
|
|
279
|
+
cdnBucketConfig: Joi.object({
|
|
280
|
+
bucketName: Joi.string().optional(),
|
|
281
|
+
orgId: Joi.string().optional(),
|
|
282
|
+
cdnProvider: Joi.string().optional(),
|
|
283
|
+
}).optional(),
|
|
279
284
|
}).optional(),
|
|
280
285
|
cdnLogsConfig: Joi.object({
|
|
281
286
|
bucketName: Joi.string().required(),
|
|
@@ -392,6 +397,7 @@ export const Config = (data = {}) => {
|
|
|
392
397
|
return llmoConfig?.customerIntent || [];
|
|
393
398
|
};
|
|
394
399
|
self.getLlmoCdnlogsFilter = () => state?.llmo?.cdnlogsFilter;
|
|
400
|
+
self.getLlmoCdnBucketConfig = () => state?.llmo?.cdnBucketConfig;
|
|
395
401
|
|
|
396
402
|
self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
|
|
397
403
|
state.slack = {
|
|
@@ -538,6 +544,11 @@ export const Config = (data = {}) => {
|
|
|
538
544
|
state.llmo.cdnlogsFilter = cdnlogsFilter;
|
|
539
545
|
};
|
|
540
546
|
|
|
547
|
+
self.updateLlmoCdnBucketConfig = (cdnBucketConfig) => {
|
|
548
|
+
state.llmo = state.llmo || {};
|
|
549
|
+
state.llmo.cdnBucketConfig = cdnBucketConfig;
|
|
550
|
+
};
|
|
551
|
+
|
|
541
552
|
self.updateImports = (imports) => {
|
|
542
553
|
state.imports = imports;
|
|
543
554
|
};
|
|
@@ -28,6 +28,6 @@ export interface SiteEnrollmentCollection extends
|
|
|
28
28
|
allBySiteId(siteId: string): Promise<SiteEnrollment[]>;
|
|
29
29
|
allByEntitlementId(entitlementId: string): Promise<SiteEnrollment[]>;
|
|
30
30
|
|
|
31
|
-
findBySiteId(siteId: string): Promise<SiteEnrollment
|
|
32
|
-
findByEntitlementId(entitlementId: string): Promise<SiteEnrollment
|
|
31
|
+
findBySiteId(siteId: string): Promise<SiteEnrollment | null>;
|
|
32
|
+
findByEntitlementId(entitlementId: string): Promise<SiteEnrollment | null>;
|
|
33
33
|
}
|
|
@@ -43,9 +43,9 @@ export interface TrialUserCollection extends BaseCollection<TrialUser> {
|
|
|
43
43
|
allByProviderAndExternalUserId(provider: ProviderType, externalId: string): Promise<TrialUser[]>;
|
|
44
44
|
allByOrganizationId(organizationId: string): Promise<TrialUser[]>;
|
|
45
45
|
allByEmailId(emailId: string): Promise<TrialUser[]>;
|
|
46
|
-
findByProvider(provider: ProviderType): Promise<TrialUser
|
|
46
|
+
findByProvider(provider: ProviderType): Promise<TrialUser | null>;
|
|
47
47
|
findByProviderAndExternalUserId(provider: ProviderType, externalId: string):
|
|
48
|
-
Promise<TrialUser
|
|
49
|
-
findByOrganizationId(organizationId: string): Promise<TrialUser
|
|
50
|
-
findByEmailId(emailId: string): Promise<TrialUser
|
|
48
|
+
Promise<TrialUser | null>;
|
|
49
|
+
findByOrganizationId(organizationId: string): Promise<TrialUser | null>;
|
|
50
|
+
findByEmailId(emailId: string): Promise<TrialUser | null>;
|
|
51
51
|
}
|
|
@@ -36,9 +36,9 @@ export interface TrialUserActivityCollection extends BaseCollection<TrialUserAct
|
|
|
36
36
|
Promise<TrialUserActivity[]>;
|
|
37
37
|
allBySiteId(siteId: string): Promise<TrialUserActivity[]>;
|
|
38
38
|
|
|
39
|
-
findByEntitlementId(entitlementId: string): Promise<TrialUserActivity
|
|
40
|
-
findByProductCode(productCode: EntitlementProductCode): Promise<TrialUserActivity
|
|
39
|
+
findByEntitlementId(entitlementId: string): Promise<TrialUserActivity | null>;
|
|
40
|
+
findByProductCode(productCode: EntitlementProductCode): Promise<TrialUserActivity | null>;
|
|
41
41
|
findByProductCodeAndCreatedAt(productCode: EntitlementProductCode, createdAt: string):
|
|
42
|
-
Promise<TrialUserActivity
|
|
43
|
-
findBySiteId(siteId: string): Promise<TrialUserActivity
|
|
42
|
+
Promise<TrialUserActivity | null>;
|
|
43
|
+
findBySiteId(siteId: string): Promise<TrialUserActivity | null>;
|
|
44
44
|
}
|