@wscsports/blaze-web-sdk 0.22.0 → 0.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -485,6 +485,7 @@ export * from './device-detector.class';
485
485
  export * from './events-listener';
486
486
  export * from './fullscreen-manager.class';
487
487
  export * from './label-builder.class';
488
+ export * from './url-rotator.class';
488
489
  export * from './logger/logger-manager.class';
489
490
  export * from './logger/logger-storage.class';
490
491
  export * from './logger/logger-transport.class';
@@ -543,6 +544,16 @@ export declare function Singleton<T>(): {
543
544
  export type EventHandler<E extends Event> = (event: E) => void;
544
545
  export declare function throttle<F extends (...args: any[]) => void>(func: F, _delay: number): (...args: Parameters<F>) => Promise<void>;
545
546
 
547
+ export declare class UrlRotator {
548
+ private endpoints;
549
+ private currentIndex;
550
+ private fallbackUrl;
551
+ constructor(fallbackUrl?: string);
552
+ initialize(endpointUrls?: string): void;
553
+ getNext(): string;
554
+ private parseEndpoints;
555
+ }
556
+
546
557
  interface UpdateLocationContentHashParams {
547
558
  contentType?: ContentType;
548
559
  contentId?: string;
@@ -1341,6 +1352,7 @@ export interface AppConfiguration {
1341
1352
  analyticsAddEntitiesInfo?: string;
1342
1353
  configRefetchIntervalInMinutes?: number;
1343
1354
  enableClientPlaybackModification?: 'true' | 'false' | string;
1355
+ analyticsEndpointUrls?: string;
1344
1356
  };
1345
1357
  recommendationsConfigurations?: IRecommendationsConfigurations;
1346
1358
  sdkLoggerConfigurations?: ILoggerConfiguration;
@@ -2404,6 +2416,7 @@ declare const ApiServiceClass_base: {
2404
2416
  };
2405
2417
  declare abstract class ApiServiceClass extends ApiServiceClass_base implements IService {
2406
2418
  api: API;
2419
+ private analyticsUrlRotator?;
2407
2420
  init(): Promise<void>;
2408
2421
  private setAdsOnStories;
2409
2422
  getStoriesByIds(options: GetByIdsOptions & {
@@ -2464,6 +2477,8 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
2464
2477
  private getContentParamsByLabels;
2465
2478
  private getContentParamsByIds;
2466
2479
  private getContentParamsByRecommendations;
2480
+ initializeAnalyticsEndpoints(endpointUrls?: string): void;
2481
+ private getAnalyticsEndpoint;
2467
2482
  }
2468
2483
  export declare const ApiService: ApiServiceClass;
2469
2484