feat: modules and resources domains, drop removed domains, regenerated models

This commit is contained in:
edmand46
2026-09-17 12:08:03 +03:00
parent f45261439f
commit 6f37b00fb4
71 changed files with 516 additions and 4184 deletions
+9 -2
View File
@@ -7,7 +7,6 @@
*/
import type { RudderContext } from '../core/context.js';
import type { RemoteConfigShape } from '../state/RemoteConfigState.js';
import { getOrCreateDeviceId } from '../device/DeviceId.js';
import { api } from '../generated/api.js';
import type {
@@ -72,7 +71,7 @@ export interface LinkWithCustomOptions {
provider?: string;
}
export class AuthService<TConfig extends RemoteConfigShape = RemoteConfigShape> {
export class AuthService {
private readonly listeners = new Set<AuthStateListener>();
private state: AuthState;
@@ -118,6 +117,8 @@ export class AuthService<TConfig extends RemoteConfigShape = RemoteConfigShape>
region,
language,
nickname,
platform: 'web',
appVersion: this.ctx.options.appVersion,
});
this.ctx.options.tokenStore.saveTokens(
@@ -145,6 +146,8 @@ export class AuthService<TConfig extends RemoteConfigShape = RemoteConfigShape>
region,
language,
nickname,
platform: 'web',
appVersion: this.ctx.options.appVersion,
});
this.ctx.options.tokenStore.saveTokens(
@@ -169,6 +172,8 @@ export class AuthService<TConfig extends RemoteConfigShape = RemoteConfigShape>
region,
language,
nickname,
platform: 'web',
appVersion: this.ctx.options.appVersion,
});
this.ctx.options.tokenStore.saveTokens(
@@ -193,6 +198,8 @@ export class AuthService<TConfig extends RemoteConfigShape = RemoteConfigShape>
region,
language,
nickname,
platform: 'web',
appVersion: this.ctx.options.appVersion,
});
this.ctx.options.tokenStore.saveTokens(