@arkadiuminc/sdk
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -11,5 +11,2 @@ import { ApiGateway as UserApiGateway } from '@arkadium/eagle-user-client'; | ||
private virtualItemApiGateway; | ||
events: { | ||
onAuthStateChanged: number; | ||
}; | ||
private userGateway; | ||
@@ -23,2 +20,8 @@ userGameData: UserGameDataApi | null; | ||
}; | ||
authStatus: { | ||
observers: import("../../utils/observable").ObserverFn<boolean>[]; | ||
value: boolean; | ||
subscribe: (observer: import("../../utils/observable").ObserverFn<boolean>) => void; | ||
update(newValue: boolean): void; | ||
}; | ||
addEventListener(event: number, cb: () => void): void; | ||
@@ -25,0 +28,0 @@ init(e: ApiEnv, isGameSide: boolean): Promise<void>; |
@@ -15,2 +15,3 @@ import { BackendApi } from '../backend/backend.api'; | ||
interface UserProfileReaderContract { | ||
authStatus: ReturnType<typeof createStore<boolean>>; | ||
isUserAuthorized(): Promise<boolean>; | ||
@@ -17,0 +18,0 @@ getUserProfile(): Promise<UserProfile | null>; |
@@ -7,2 +7,3 @@ import { ApiEnv, BackendApi } from './api/features/backend/backend.api'; | ||
import { UserStateApi } from './api/features/user-state/user-state.api'; | ||
import { AnalyticsApiContract } from './api/features/analytics/analytics.api'; | ||
export declare class ArkadiumGameSdk { | ||
@@ -15,3 +16,4 @@ backendApi: BackendApi; | ||
userStateApi: UserStateApi; | ||
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi); | ||
analytics: AnalyticsApiContract; | ||
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract); | ||
initialize(env: ApiEnv, isGameSide: boolean): Promise<void>; | ||
@@ -18,0 +20,0 @@ updateWinReference(target: any): void; |
@@ -7,2 +7,3 @@ import { ApiEnv, BackendApi } from './api/features/backend/backend.api'; | ||
import { UserStateApi } from './api/features/user-state/user-state.api'; | ||
import { AnalyticsApiContract } from './api/features/analytics/analytics.api'; | ||
export declare class ArkadiumGameSdk { | ||
@@ -15,3 +16,4 @@ backendApi: BackendApi; | ||
userStateApi: UserStateApi; | ||
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi); | ||
analytics: AnalyticsApiContract; | ||
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract); | ||
initialize(env: ApiEnv, isGameSide: boolean): Promise<void>; | ||
@@ -18,0 +20,0 @@ updateWinReference(target: any): void; |
{ | ||
"name": "@arkadiuminc/sdk", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19358
23
375