Add ProjectStorageDomain with projectStorage sync
CI / check (push) Successful in 48s

This commit is contained in:
edmand46
2026-08-12 23:58:30 +03:00
parent 3ab2d4a6cf
commit fd364fd156
6 changed files with 80 additions and 0 deletions
+5
View File
@@ -35,6 +35,7 @@ import { CatalogDomain } from '../domains/CatalogDomain.js';
import { InventoryDomain } from '../domains/InventoryDomain.js';
import { ConfigDomain } from '../domains/ConfigDomain.js';
import { StorageDomain } from '../domains/StorageDomain.js';
import { ProjectStorageDomain } from '../domains/ProjectStorageDomain.js';
import { StoresDomain } from '../domains/StoresDomain.js';
/** A domain the client can bulk-invalidate (re-login) or reset (logout). */
@@ -55,6 +56,7 @@ export class RudderClient<TConfig extends RemoteConfigShape = RemoteConfigShape>
public readonly inventory: InventoryDomain;
public readonly remoteConfig: ConfigDomain<TConfig>;
public readonly storage: StorageDomain;
public readonly projectStorage: ProjectStorageDomain;
public readonly stores: StoresDomain;
private readonly effectsCenter: EffectsCenter;
@@ -109,6 +111,7 @@ export class RudderClient<TConfig extends RemoteConfigShape = RemoteConfigShape>
this.inventory = new InventoryDomain(ctx, this.catalog);
this.remoteConfig = new ConfigDomain<TConfig>(ctx);
this.storage = new StorageDomain(ctx);
this.projectStorage = new ProjectStorageDomain(ctx);
this.stores = new StoresDomain(ctx, () => {
this.player.invalidate();
this.inventory.invalidate();
@@ -124,6 +127,7 @@ export class RudderClient<TConfig extends RemoteConfigShape = RemoteConfigShape>
this.inventory,
this.remoteConfig,
this.storage,
this.projectStorage,
this.stores,
]);
this.auth = new AuthService<TConfig>(
@@ -231,6 +235,7 @@ export class RudderClient<TConfig extends RemoteConfigShape = RemoteConfigShape>
this.inventory,
this.remoteConfig,
this.storage,
this.projectStorage,
this.stores,
];
}