@wscsports/blaze-web-sdk 0.7.0 → 0.7.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -1702,6 +1702,17 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
1702
1702
  }
1703
1703
  export declare const AnalyticsService: AnalyticsServiceClass;
1704
1704
 
1705
+ type GetOptions = {
1706
+ orderType?: OrderType;
1707
+ };
1708
+ type GetByLabelsOptions = GetOptions & {
1709
+ labels: string;
1710
+ maxItems?: number;
1711
+ labelsPriority?: string;
1712
+ };
1713
+ type GetByIdsOptions = GetOptions & {
1714
+ ids: string[];
1715
+ };
1705
1716
  export interface ApiResponse<T> {
1706
1717
  assetsExpiryTime: string;
1707
1718
  totalItems: number;
@@ -1720,9 +1731,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1720
1731
  api: API;
1721
1732
  init(): Promise<void>;
1722
1733
  private setAdsOnStories;
1723
- getStoriesByIds(options: {
1724
- storyIds: string[];
1725
- orderType?: OrderType;
1734
+ getStoriesByIds(options: GetByIdsOptions & {
1726
1735
  showLiveFirst?: boolean;
1727
1736
  personalized?: BlazePersonalized;
1728
1737
  }): Promise<{
@@ -1731,11 +1740,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1731
1740
  data?: StoriesResponse | undefined;
1732
1741
  error?: Error | undefined;
1733
1742
  }>;
1734
- getStoriesByLabels(options: {
1735
- labels: string;
1736
- orderType?: OrderType;
1737
- maxItems?: number;
1738
- labelsPriority?: string;
1743
+ getStoriesByLabels(options: GetByLabelsOptions & {
1739
1744
  showLiveFirst?: boolean;
1740
1745
  personalized?: BlazePersonalized;
1741
1746
  }): Promise<{
@@ -1744,23 +1749,23 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1744
1749
  data?: StoriesResponse | undefined;
1745
1750
  error?: Error | undefined;
1746
1751
  }>;
1747
- getMomentByIds(ids: string[], orderType?: OrderType): Promise<{
1752
+ getMomentByIds(options: GetByIdsOptions): Promise<{
1748
1753
  httpStatus?: number | undefined;
1749
1754
  data?: MomentsResponse | undefined;
1750
1755
  error?: Error | undefined;
1751
1756
  }>;
1752
- getMomentsByLabels(labels: string, orderType?: OrderType, maxItems?: number): Promise<import("../interfaces").IHttpResponse<MomentsResponse>>;
1757
+ getMomentsByLabels(options: GetByLabelsOptions): Promise<import("../interfaces").IHttpResponse<MomentsResponse>>;
1753
1758
  updateMomentLikeStatus(options: {
1754
1759
  momentId: string;
1755
1760
  setLiked: boolean;
1756
1761
  }): Promise<void>;
1757
1762
  getStaticStories(): Promise<IStory | null>;
1758
- getVideosByIds(ids: string[], orderType?: OrderType): Promise<{
1763
+ getVideosByIds(options: GetByIdsOptions): Promise<{
1759
1764
  httpStatus?: number | undefined;
1760
1765
  data?: VideosResponse | undefined;
1761
1766
  error?: Error | undefined;
1762
1767
  }>;
1763
- getVideosByLabels(labels: string, orderType?: OrderType, maxItems?: number, labelsPriority?: string): Promise<{
1768
+ getVideosByLabels(options: GetByLabelsOptions): Promise<{
1764
1769
  httpStatus?: number | undefined;
1765
1770
  data?: VideosResponse | undefined;
1766
1771
  error?: Error | undefined;
@@ -1769,10 +1774,6 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1769
1774
  videoId: string;
1770
1775
  setLiked: boolean;
1771
1776
  }): Promise<void>;
1772
- preview(storyId: string, publishedOnly?: boolean): Promise<import("../interfaces").IHttpResponse<IStory & {
1773
- status: number;
1774
- }>>;
1775
- preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
1776
1777
  sendAnaltyicsEvents(body: Partial<AnalyticsEvent>[]): Promise<import("../interfaces").IHttpResponse<unknown>>;
1777
1778
  sendInteractionResponse(options: {
1778
1779
  interactionId: Interaction['id'];
@@ -1782,6 +1783,9 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1782
1783
  getUserToken(body: GetUserTokenRequest): Promise<import("../interfaces").IHttpResponse<TokenData>>;
1783
1784
  refreshUserToken(body: RefreshUserTokenRequest): Promise<import("../interfaces").IHttpResponse<TokenData>>;
1784
1785
  getAppConfigurations(): Promise<import("../interfaces").IHttpResponse<AppConfiguration>>;
1786
+ private getContentDefaultParams;
1787
+ private getContentParamsByLabels;
1788
+ private getContentParamsByIds;
1785
1789
  }
1786
1790
  export declare const ApiService: ApiServiceClass;
1787
1791
 
@@ -3663,7 +3667,7 @@ export declare class BlazeVideoNavigationOverlay extends HTMLElement {
3663
3667
  loader: BlazeLoader;
3664
3668
  private _platform;
3665
3669
  constructor();
3666
- static get observedAttributes(): ("layout" | "hidden" | "has-next" | "has-prev")[];
3670
+ static get observedAttributes(): ("hidden" | "layout" | "has-next" | "has-prev")[];
3667
3671
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
3668
3672
  private applyAttribute;
3669
3673
  connectedCallback(): void;