@wscsports/blaze-web-sdk 0.13.0 → 0.13.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.
- package/package.json +1 -1
- package/publish/index.d.ts +39 -5
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -305,6 +305,7 @@ export declare class AdEvent {
|
|
|
305
305
|
'session_id': string;
|
|
306
306
|
'gesture_type': MomentGestureType | StoryGestureType;
|
|
307
307
|
'content_extra_info': string;
|
|
308
|
+
'backoffice_campaign_data': string;
|
|
308
309
|
}
|
|
309
310
|
export declare class ImaAdEvent {
|
|
310
311
|
'story_id': string;
|
|
@@ -326,6 +327,7 @@ export declare class ImaAdEvent {
|
|
|
326
327
|
'ad_index': string;
|
|
327
328
|
'audio_state': string;
|
|
328
329
|
'content_type': string;
|
|
330
|
+
'backoffice_campaign_data': string;
|
|
329
331
|
}
|
|
330
332
|
export declare class InteractionEvent {
|
|
331
333
|
'interaction_id': string;
|
|
@@ -1025,6 +1027,7 @@ export type IAdContext = Record<string, string>;
|
|
|
1025
1027
|
interface IBaseAdInfo {
|
|
1026
1028
|
configuration?: IAdInfoConfiguration;
|
|
1027
1029
|
context?: IAdContext;
|
|
1030
|
+
externalAdServerId?: string;
|
|
1028
1031
|
}
|
|
1029
1032
|
export interface IImaAdInfo extends IBaseAdInfo {
|
|
1030
1033
|
type: 'IMA';
|
|
@@ -1036,9 +1039,9 @@ export interface IWebAdInfo extends IBaseAdInfo {
|
|
|
1036
1039
|
path: string;
|
|
1037
1040
|
}
|
|
1038
1041
|
export interface IBannerAdInfo {
|
|
1042
|
+
type: 'Banner';
|
|
1039
1043
|
adUnitId: string;
|
|
1040
1044
|
size: 'Banner';
|
|
1041
|
-
type: 'Banner';
|
|
1042
1045
|
}
|
|
1043
1046
|
export type IAdInfo = IWebAdInfo | IImaAdInfo;
|
|
1044
1047
|
|
|
@@ -1248,7 +1251,7 @@ export interface IContentPage extends IBasePage {
|
|
|
1248
1251
|
}
|
|
1249
1252
|
export interface IAdPage extends IBasePage {
|
|
1250
1253
|
type: 'Ad';
|
|
1251
|
-
|
|
1254
|
+
adInfo?: IWebAdInfo;
|
|
1252
1255
|
}
|
|
1253
1256
|
export type IPage = IAdPage | IContentPage;
|
|
1254
1257
|
|
|
@@ -1912,7 +1915,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1912
1915
|
private _apiKey;
|
|
1913
1916
|
private _previewUrl;
|
|
1914
1917
|
private _previewMomentUrl;
|
|
1915
|
-
private
|
|
1918
|
+
private _sendAnalytics;
|
|
1916
1919
|
private _doNotTrack;
|
|
1917
1920
|
private _geoLocation;
|
|
1918
1921
|
private _staticContent;
|
|
@@ -1937,14 +1940,18 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1937
1940
|
private _disableAutoLoadingContent;
|
|
1938
1941
|
protected constructor();
|
|
1939
1942
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1943
|
+
private readonly _russiaRegionCDN;
|
|
1940
1944
|
private _urls;
|
|
1941
1945
|
private _apiPath;
|
|
1942
1946
|
private _analyticsUrls;
|
|
1947
|
+
private getEnvUrl;
|
|
1948
|
+
private getServiceUrl;
|
|
1949
|
+
private getAnalyticsUrl;
|
|
1943
1950
|
get environment(): EnvironmentType;
|
|
1944
1951
|
private set environment(value);
|
|
1945
1952
|
get sendAnalytics(): boolean;
|
|
1946
1953
|
get shouldCreateUser(): boolean;
|
|
1947
|
-
get analyticsApiUrl(): string;
|
|
1954
|
+
get analyticsApiUrl(): string | undefined;
|
|
1948
1955
|
get externalUserId(): string | null;
|
|
1949
1956
|
set externalUserId(value: string | null);
|
|
1950
1957
|
get doNotTrack(): boolean;
|
|
@@ -2098,6 +2105,7 @@ export * from './video.service';
|
|
|
2098
2105
|
export * from './widgets.service';
|
|
2099
2106
|
export * from './moment.service';
|
|
2100
2107
|
export * from './story.service';
|
|
2108
|
+
export * from './user-country.service';
|
|
2101
2109
|
|
|
2102
2110
|
declare const InteractionServiceClass_base: {
|
|
2103
2111
|
new (): {};
|
|
@@ -2192,6 +2200,31 @@ declare abstract class StoryServiceClass extends StoryServiceClass_base implemen
|
|
|
2192
2200
|
}
|
|
2193
2201
|
export declare const StoryService: StoryServiceClass;
|
|
2194
2202
|
|
|
2203
|
+
declare const UserCountryServiceClass_base: {
|
|
2204
|
+
new (): {};
|
|
2205
|
+
_instance: UserCountryServiceClass;
|
|
2206
|
+
getInstance(): UserCountryServiceClass;
|
|
2207
|
+
};
|
|
2208
|
+
declare abstract class UserCountryServiceClass extends UserCountryServiceClass_base implements IService {
|
|
2209
|
+
private _userCountry;
|
|
2210
|
+
private static readonly USER_CACHE_KEY;
|
|
2211
|
+
private static readonly USER_CACHE_LAST_UPDATE_KEY;
|
|
2212
|
+
private static readonly USER_CACHE_UPDATE_INTERVAL_MS;
|
|
2213
|
+
private static readonly API_TIMEOUT_MS;
|
|
2214
|
+
private static readonly timezoneCountryMap;
|
|
2215
|
+
init(): Promise<void>;
|
|
2216
|
+
get userCountry(): string;
|
|
2217
|
+
updateCountry(): Promise<void>;
|
|
2218
|
+
private getCachedCountry;
|
|
2219
|
+
private cacheCountry;
|
|
2220
|
+
private getLastUpdate;
|
|
2221
|
+
detectCountry(): Promise<string>;
|
|
2222
|
+
private fetchAndUpdateCountry;
|
|
2223
|
+
private fetchCountryFromApi;
|
|
2224
|
+
getCountryFromTimezone(): string;
|
|
2225
|
+
}
|
|
2226
|
+
export declare const UserCountryService: UserCountryServiceClass;
|
|
2227
|
+
|
|
2195
2228
|
export type BlazeAbTestType = {
|
|
2196
2229
|
id: string;
|
|
2197
2230
|
variant: string;
|
|
@@ -4899,6 +4932,7 @@ export declare class BlazeWidgetVastAd extends HTMLElement {
|
|
|
4899
4932
|
private adLoaderContainer;
|
|
4900
4933
|
private videoElement?;
|
|
4901
4934
|
private currentAdTag;
|
|
4935
|
+
private currentAdInfo?;
|
|
4902
4936
|
private boundedOnBlur;
|
|
4903
4937
|
private boundedOnFocus;
|
|
4904
4938
|
private boundedOnVisibilityChange;
|
|
@@ -4908,7 +4942,7 @@ export declare class BlazeWidgetVastAd extends HTMLElement {
|
|
|
4908
4942
|
constructor(contentType: ContentType, getReferringObject?: (() => ReferringEventInfo) | undefined);
|
|
4909
4943
|
private initializeGoogleIma;
|
|
4910
4944
|
private buildImaUrl;
|
|
4911
|
-
startAd(videoElement: HTMLVideoElement,
|
|
4945
|
+
startAd(videoElement: HTMLVideoElement, adInfo: IImaAdInfo, contentExtraInfo: ContentExtraInfo): Boolean;
|
|
4912
4946
|
private onAdsManagerLoaded;
|
|
4913
4947
|
private loadAds;
|
|
4914
4948
|
private onAdEvent;
|