@arkadiuminc/sdk 2.66.3 → 2.67.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.
package/README.md
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
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
|
+
declare type LifecycleBlacklistEntry = {
|
|
11
|
+
games?: string[];
|
|
12
|
+
platformTypes?: ArenaType[];
|
|
13
|
+
};
|
|
11
14
|
declare type LifecycleEventConfig = {
|
|
12
|
-
|
|
15
|
+
blacklists: LifecycleBlacklistEntry[];
|
|
13
16
|
};
|
|
14
|
-
interface ConfigSchema {
|
|
17
|
+
export interface ConfigSchema {
|
|
15
18
|
host: {
|
|
16
19
|
supportsSubscriptions: string[];
|
|
17
20
|
};
|
|
@@ -40,6 +43,7 @@ interface ConfigSchema {
|
|
|
40
43
|
}>;
|
|
41
44
|
};
|
|
42
45
|
}
|
|
46
|
+
export declare const defaultConfig: ConfigSchema;
|
|
43
47
|
export declare const schema: {
|
|
44
48
|
type: string;
|
|
45
49
|
properties: {
|
|
@@ -91,10 +95,29 @@ export declare const schema: {
|
|
|
91
95
|
".*": {
|
|
92
96
|
type: string;
|
|
93
97
|
properties: {
|
|
94
|
-
|
|
98
|
+
blacklists: {
|
|
95
99
|
type: string;
|
|
96
100
|
items: {
|
|
97
101
|
type: string;
|
|
102
|
+
properties: {
|
|
103
|
+
games: {
|
|
104
|
+
type: string;
|
|
105
|
+
items: {
|
|
106
|
+
type: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
platformTypes: {
|
|
110
|
+
type: string;
|
|
111
|
+
items: {
|
|
112
|
+
type: string;
|
|
113
|
+
enum: ArenaType[];
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
anyOf: {
|
|
118
|
+
required: string[];
|
|
119
|
+
}[];
|
|
120
|
+
additionalProperties: boolean;
|
|
98
121
|
};
|
|
99
122
|
};
|
|
100
123
|
};
|
|
@@ -198,3 +221,4 @@ export declare class ConfigService {
|
|
|
198
221
|
setGameConfig(gameConfig: any): void;
|
|
199
222
|
getGameConfigProperty(property: string, defaultValue?: any): any;
|
|
200
223
|
}
|
|
224
|
+
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 {};
|