@wscsports/blaze-web-sdk 0.24.0 → 0.25.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.24.0",
3
+ "version": "0.25.0",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -555,13 +555,15 @@ export type EventHandler<E extends Event> = (event: E) => void;
555
555
  export declare function throttle<F extends (...args: any[]) => void>(func: F, _delay: number): (...args: Parameters<F>) => Promise<void>;
556
556
 
557
557
  export declare class UrlRotator {
558
- private endpoints;
558
+ private baseUrls;
559
559
  private currentIndex;
560
560
  private fallbackUrl;
561
- constructor(fallbackUrl?: string);
562
- initialize(endpointUrls?: string): void;
561
+ private apiVersion;
562
+ private protocol;
563
+ constructor(options: IUrlRotatorOptions);
564
+ initialize(urlRotationConfig?: IUrlRotationConfiguration): void;
563
565
  getNext(): string;
564
- private parseEndpoints;
566
+ private parseBaseUrls;
565
567
  }
566
568
 
567
569
  interface UpdateLocationContentHashParams {
@@ -1409,10 +1411,10 @@ export interface AppConfiguration {
1409
1411
  analyticsAddEntitiesInfo?: string;
1410
1412
  configRefetchIntervalInMinutes?: number;
1411
1413
  enableClientPlaybackModification?: 'true' | 'false' | string;
1412
- analyticsEndpointUrls?: string;
1413
1414
  };
1414
1415
  recommendationsConfigurations?: IRecommendationsConfigurations;
1415
1416
  sdkLoggerConfigurations?: ILoggerConfiguration;
1417
+ analyticsLoadBalancerConfiguration?: IUrlRotationConfiguration;
1416
1418
  }
1417
1419
 
1418
1420
  export type ContentExtraInfo = {
@@ -2223,6 +2225,8 @@ export * from './widget-options.interface';
2223
2225
  export * from './widget-view.interface';
2224
2226
  export * from './item-click-callback.interface';
2225
2227
  export * from './recommendations.interface';
2228
+ export * from './url-rotation-configuration.interface';
2229
+ export * from './url-rotator-options.interface';
2226
2230
  export { default as Observable } from './observable';
2227
2231
 
2228
2232
  export interface ItemClickContext {
@@ -2339,6 +2343,11 @@ export interface IService {
2339
2343
  init: (...args: any[]) => void;
2340
2344
  }
2341
2345
 
2346
+ export interface IUrlRotationConfiguration {
2347
+ export interface IUrlRotatorOptions {
2348
+ apiVersion?: string;
2349
+ }
2350
+
2342
2351
  export interface IWidgetLabelBuilder {
2343
2352
  singleLabel(label: string): BlazeWidgetLabel;
2344
2353
  mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
@@ -2555,7 +2564,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
2555
2564
  private getContentParamsByLabels;
2556
2565
  private getContentParamsByIds;
2557
2566
  private getContentParamsByRecommendations;
2558
- initializeAnalyticsEndpoints(endpointUrls?: string): void;
2567
+ initializeAnalyticsUrlRotator(analyticsUrlRotationConfig?: IUrlRotationConfiguration): void;
2559
2568
  private getAnalyticsEndpoint;
2560
2569
  }
2561
2570
  export declare const ApiService: ApiServiceClass;