@arkadiuminc/sdk 2.52.1 → 2.53.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.
|
@@ -4,6 +4,7 @@ import { IHost } from '../features/host';
|
|
|
4
4
|
export { defaultConfig };
|
|
5
5
|
export declare type AdsConfig = {
|
|
6
6
|
isEnabled: boolean;
|
|
7
|
+
gameIdChanged: boolean;
|
|
7
8
|
adTypes?: string[];
|
|
8
9
|
cooldown?: number;
|
|
9
10
|
};
|
|
@@ -25,6 +26,11 @@ interface ConfigSchema {
|
|
|
25
26
|
conditions: string;
|
|
26
27
|
config: {
|
|
27
28
|
adTypes: string[];
|
|
29
|
+
isEnabled: boolean;
|
|
30
|
+
cooldown?: never;
|
|
31
|
+
} | {
|
|
32
|
+
adTypes: string[];
|
|
33
|
+
isEnabled?: never;
|
|
28
34
|
cooldown: number;
|
|
29
35
|
};
|
|
30
36
|
}>;
|
|
@@ -91,19 +97,37 @@ export declare const schema: {
|
|
|
91
97
|
};
|
|
92
98
|
config: {
|
|
93
99
|
type: string;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
oneOf: ({
|
|
101
|
+
required: string[];
|
|
102
|
+
properties: {
|
|
103
|
+
adTypes: {
|
|
104
|
+
type: string;
|
|
105
|
+
items: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
isEnabled: {
|
|
98
110
|
type: string;
|
|
99
111
|
};
|
|
112
|
+
cooldown: boolean;
|
|
100
113
|
};
|
|
101
|
-
|
|
102
|
-
|
|
114
|
+
additionalProperties: boolean;
|
|
115
|
+
} | {
|
|
116
|
+
required: string[];
|
|
117
|
+
properties: {
|
|
118
|
+
adTypes: {
|
|
119
|
+
type: string;
|
|
120
|
+
items: {
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
isEnabled: boolean;
|
|
125
|
+
cooldown: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
103
128
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
additionalProperties: boolean;
|
|
129
|
+
additionalProperties: boolean;
|
|
130
|
+
})[];
|
|
107
131
|
};
|
|
108
132
|
};
|
|
109
133
|
required: string[];
|
|
@@ -129,6 +153,7 @@ export declare class ConfigService {
|
|
|
129
153
|
private _gameId;
|
|
130
154
|
private _platformId;
|
|
131
155
|
private _platformType;
|
|
156
|
+
private _host;
|
|
132
157
|
private constructor();
|
|
133
158
|
static get Instance(): ConfigService;
|
|
134
159
|
subscribe(callback: ConfigChangeCallback): () => void;
|
|
@@ -9,6 +9,7 @@ export declare enum ArenaType {
|
|
|
9
9
|
export interface IHost {
|
|
10
10
|
getQueryParameter(key: string): Promise<string | null>;
|
|
11
11
|
getGameId(): Promise<string>;
|
|
12
|
+
getGameIdSync?(): string;
|
|
12
13
|
setGameId(id: string): void;
|
|
13
14
|
getDetails(): Promise<WebEnvironmentDetails>;
|
|
14
15
|
setDetails?(p: Partial<WebEnvironmentDetails>): Promise<void>;
|
|
@@ -46,6 +47,7 @@ export declare class HostArena implements IHost {
|
|
|
46
47
|
noOp(): Promise<void>;
|
|
47
48
|
getQueryParameter(key: string): Promise<string | null>;
|
|
48
49
|
getGameId(): Promise<string>;
|
|
50
|
+
getGameIdSync(): string;
|
|
49
51
|
setGameId(id: string): Promise<void>;
|
|
50
52
|
getDetails(): Promise<WebEnvironmentDetails>;
|
|
51
53
|
setDetails(p: Partial<WebEnvironmentDetails>): Promise<void>;
|