@arkadiuminc/sdk 2.66.4 → 2.67.1
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.
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ArenaType } from '../features/host/arena-type';
|
|
2
2
|
import { IHost } from '../features/host';
|
|
3
3
|
|
|
4
|
-
export { defaultConfig };
|
|
5
4
|
export declare type AdsConfig = {
|
|
6
5
|
isEnabled: boolean;
|
|
7
6
|
gameIdChanged: boolean;
|
|
8
7
|
adTypes?: string[];
|
|
9
8
|
cooldown?: number;
|
|
10
9
|
};
|
|
10
|
+
export declare enum GameConfigProperty {
|
|
11
|
+
hasGems = "hasGems",
|
|
12
|
+
hasEagle = "hasEagle",
|
|
13
|
+
slug = "slug"
|
|
14
|
+
}
|
|
15
|
+
declare type LifecycleBlacklistEntry = {
|
|
16
|
+
games?: string[];
|
|
17
|
+
platformTypes?: ArenaType[];
|
|
18
|
+
};
|
|
11
19
|
declare type LifecycleEventConfig = {
|
|
12
|
-
|
|
20
|
+
blacklists: LifecycleBlacklistEntry[];
|
|
13
21
|
};
|
|
14
|
-
interface ConfigSchema {
|
|
22
|
+
export interface ConfigSchema {
|
|
15
23
|
host: {
|
|
16
24
|
supportsSubscriptions: string[];
|
|
17
25
|
};
|
|
@@ -40,6 +48,7 @@ interface ConfigSchema {
|
|
|
40
48
|
}>;
|
|
41
49
|
};
|
|
42
50
|
}
|
|
51
|
+
export declare const defaultConfig: ConfigSchema;
|
|
43
52
|
export declare const schema: {
|
|
44
53
|
type: string;
|
|
45
54
|
properties: {
|
|
@@ -91,10 +100,29 @@ export declare const schema: {
|
|
|
91
100
|
".*": {
|
|
92
101
|
type: string;
|
|
93
102
|
properties: {
|
|
94
|
-
|
|
103
|
+
blacklists: {
|
|
95
104
|
type: string;
|
|
96
105
|
items: {
|
|
97
106
|
type: string;
|
|
107
|
+
properties: {
|
|
108
|
+
games: {
|
|
109
|
+
type: string;
|
|
110
|
+
items: {
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
platformTypes: {
|
|
115
|
+
type: string;
|
|
116
|
+
items: {
|
|
117
|
+
type: string;
|
|
118
|
+
enum: ArenaType[];
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
anyOf: {
|
|
123
|
+
required: string[];
|
|
124
|
+
}[];
|
|
125
|
+
additionalProperties: boolean;
|
|
98
126
|
};
|
|
99
127
|
};
|
|
100
128
|
};
|
|
@@ -195,6 +223,8 @@ export declare class ConfigService {
|
|
|
195
223
|
private isPlatform;
|
|
196
224
|
private isPlatformType;
|
|
197
225
|
private isGame;
|
|
226
|
+
resetGameConfig(): void;
|
|
198
227
|
setGameConfig(gameConfig: any): void;
|
|
199
|
-
getGameConfigProperty(property:
|
|
228
|
+
getGameConfigProperty(property: GameConfigProperty, defaultValue?: any): any;
|
|
200
229
|
}
|
|
230
|
+
export {};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { DebugProvider } from '../../core/debug-provider';
|
|
2
2
|
import { RpcProvider } from '../../core/rpc';
|
|
3
3
|
import { ObserverFn } from '../../utils/observable';
|
|
4
|
+
import { ArenaType } from './arena-type';
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
-
ARKCOM = "ARKCOM",
|
|
7
|
-
ARENA51 = "ARENA51",
|
|
8
|
-
AARP = "AARP"
|
|
9
|
-
}
|
|
6
|
+
export { ArenaType } from './arena-type';
|
|
10
7
|
export interface IHost {
|
|
11
8
|
getQueryParameter(key: string): Promise<string | null>;
|
|
12
9
|
getGameId(): Promise<string>;
|
|
@@ -21,6 +18,7 @@ export interface IHost {
|
|
|
21
18
|
getArenaNameSync?(): string;
|
|
22
19
|
getGameSDKUrl(): Promise<string>;
|
|
23
20
|
getArenaType(): Promise<ArenaType>;
|
|
21
|
+
getArenaTypeSync?(): ArenaType;
|
|
24
22
|
isSubscriptionsSupported(): Promise<boolean>;
|
|
25
23
|
isEagleSupported(): Promise<boolean>;
|
|
26
24
|
isAuthSupported(): Promise<boolean>;
|
|
@@ -81,6 +79,7 @@ export declare class HostArena implements IHost {
|
|
|
81
79
|
private updateUrlState;
|
|
82
80
|
subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
|
|
83
81
|
isSubscriptionsSupported(): Promise<boolean>;
|
|
82
|
+
private isSubscriptionsSupportedSync;
|
|
84
83
|
isEagleSupported(): Promise<boolean>;
|
|
85
84
|
isAuthSupported(): Promise<boolean>;
|
|
86
85
|
}
|
|
@@ -118,4 +117,3 @@ export declare class HostGame implements IHost {
|
|
|
118
117
|
isEagleSupported(): Promise<boolean>;
|
|
119
118
|
isAuthSupported(): Promise<boolean>;
|
|
120
119
|
}
|
|
121
|
-
export {};
|