@tivio/sdk-react 5.0.3-alpha-4 → 6.0.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/README.md +10 -0
- package/README.md.bak +10 -0
- package/dist/index.d.ts +353 -74
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +353 -74
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -90,13 +90,13 @@ declare type AdSegment = {
|
|
90
90
|
* @public
|
91
91
|
*/
|
92
92
|
export declare type AdSource = {
|
93
|
-
new (
|
93
|
+
new (url: string, name: string, description: string, skipDelayMs: number | null, adDurationMs: number, trackingContext?: any, // internal Tivio types
|
94
94
|
adMarker?: any, // internal Tivio types
|
95
95
|
packInfo?: any, // internal Tivio types
|
96
96
|
provider?: any): AdSource;
|
97
97
|
description: string;
|
98
98
|
name: string;
|
99
|
-
|
99
|
+
url: string;
|
100
100
|
durationMs: number;
|
101
101
|
skipDelayMs: number | null;
|
102
102
|
type: 'ad';
|
@@ -316,6 +316,22 @@ export declare type BetOffer = {
|
|
316
316
|
time: Date;
|
317
317
|
};
|
318
318
|
|
319
|
+
/**
|
320
|
+
* @public
|
321
|
+
*/
|
322
|
+
export declare interface BufferChunk {
|
323
|
+
startMs: number;
|
324
|
+
endMs: number;
|
325
|
+
}
|
326
|
+
|
327
|
+
/**
|
328
|
+
* @public
|
329
|
+
*/
|
330
|
+
export declare interface BufferPercentChunk extends BufferChunk {
|
331
|
+
startPercent: number;
|
332
|
+
endPercent: number;
|
333
|
+
}
|
334
|
+
|
319
335
|
/**
|
320
336
|
* rejects when bundle is not available
|
321
337
|
* @public
|
@@ -338,11 +354,14 @@ export declare interface Channel {
|
|
338
354
|
recentVideos: Video[];
|
339
355
|
}
|
340
356
|
|
357
|
+
/**
|
358
|
+
* @public
|
359
|
+
*/
|
341
360
|
export declare type ChannelSource = {
|
342
|
-
new (
|
361
|
+
new (url: string, originalOptions: Record<string, any>, channelName: string, programName: string, programDescription: string, from: Date, to: Date): ChannelSource;
|
343
362
|
description: string;
|
344
363
|
name: string;
|
345
|
-
|
364
|
+
url: string;
|
346
365
|
from: Date;
|
347
366
|
channelName: string;
|
348
367
|
to: Date;
|
@@ -357,7 +376,7 @@ export declare type ChannelSource = {
|
|
357
376
|
*/
|
358
377
|
export declare interface ChannelSourcePojo {
|
359
378
|
type: 'ChannelSource';
|
360
|
-
|
379
|
+
url: string;
|
361
380
|
originalOptions: any;
|
362
381
|
channelName: string;
|
363
382
|
programName: string;
|
@@ -606,11 +625,38 @@ export declare type DocumentOptions = Partial<{
|
|
606
625
|
}>;
|
607
626
|
|
608
627
|
export declare interface Drm {
|
609
|
-
|
628
|
+
encryption: VideoSourceEncryption;
|
629
|
+
/**
|
630
|
+
* Url to retrieve fairplay from.
|
631
|
+
*/
|
632
|
+
certificateUrl?: string;
|
610
633
|
/**
|
611
|
-
*
|
634
|
+
* Url to send license to.
|
635
|
+
*/
|
636
|
+
licenseUrl: string;
|
637
|
+
/**
|
638
|
+
* Headers with corresponding values to send to license server.
|
612
639
|
*/
|
613
|
-
|
640
|
+
licenseRequestHeaders: {
|
641
|
+
[key: string]: string;
|
642
|
+
};
|
643
|
+
}
|
644
|
+
|
645
|
+
export declare enum DrmProvider {
|
646
|
+
/**
|
647
|
+
* Original oktagon stream provider.
|
648
|
+
*
|
649
|
+
* https://streamonline.pl
|
650
|
+
*/
|
651
|
+
STREAMONLINE = "streamonline",
|
652
|
+
/**
|
653
|
+
* New stream provider for tivio. Also known as insys video technologies.
|
654
|
+
*
|
655
|
+
* https://insysvideotechnologies.com
|
656
|
+
* https://www.drm.cloud
|
657
|
+
* https://videokit.cloud
|
658
|
+
*/
|
659
|
+
INSYS = "insys"
|
614
660
|
}
|
615
661
|
|
616
662
|
/**
|
@@ -629,6 +675,76 @@ export declare enum DurationUnits {
|
|
629
675
|
MONTH = "month"
|
630
676
|
}
|
631
677
|
|
678
|
+
/**
|
679
|
+
* Represents a SendGrid transactional template.
|
680
|
+
*/
|
681
|
+
export declare interface EmailTemplate {
|
682
|
+
/**
|
683
|
+
* The ID of the transactional template.
|
684
|
+
*/
|
685
|
+
id: string;
|
686
|
+
/**
|
687
|
+
* The name of the transactional template.
|
688
|
+
* @maxLength 100
|
689
|
+
*/
|
690
|
+
name: string;
|
691
|
+
/**
|
692
|
+
* Defines the generation of the template.
|
693
|
+
* @format 'dynamic' | 'legacy'
|
694
|
+
*/
|
695
|
+
generation: 'dynamic' | 'legacy';
|
696
|
+
/**
|
697
|
+
* The date and time the template was last updated.
|
698
|
+
*/
|
699
|
+
updated_at: string;
|
700
|
+
/**
|
701
|
+
* An array of versions associated with the template.
|
702
|
+
*/
|
703
|
+
versions: EmailTemplateVersion[];
|
704
|
+
}
|
705
|
+
|
706
|
+
export declare interface EmailTemplateVersion {
|
707
|
+
/**
|
708
|
+
* ID of the transactional template version.
|
709
|
+
*/
|
710
|
+
id: string;
|
711
|
+
/**
|
712
|
+
* ID of the transactional template.
|
713
|
+
*/
|
714
|
+
template_id: string;
|
715
|
+
/**
|
716
|
+
* Set the version as the active version associated with the template.
|
717
|
+
* Only one version of a template can be active.
|
718
|
+
* The first version created for a template will automatically be set to Active.
|
719
|
+
*/
|
720
|
+
active: boolean;
|
721
|
+
/**
|
722
|
+
* Name of the transactional template version.
|
723
|
+
*/
|
724
|
+
name: string;
|
725
|
+
/**
|
726
|
+
* Subject of the new transactional template version.
|
727
|
+
* @maxLength 255
|
728
|
+
*/
|
729
|
+
subject: string;
|
730
|
+
/**
|
731
|
+
* The date and time that this transactional template version was updated.
|
732
|
+
*/
|
733
|
+
updated_at: string;
|
734
|
+
/**
|
735
|
+
* If true, plain_content is always generated from html_content. If false, plain_content is not altered.
|
736
|
+
*/
|
737
|
+
generate_plain_content: boolean;
|
738
|
+
/**
|
739
|
+
* The editor used in the UI.
|
740
|
+
*/
|
741
|
+
editor: string;
|
742
|
+
/**
|
743
|
+
* A Thumbnail preview of the template's html content.
|
744
|
+
*/
|
745
|
+
thumbnail_url: string;
|
746
|
+
}
|
747
|
+
|
632
748
|
/**
|
633
749
|
* @public
|
634
750
|
*/
|
@@ -655,17 +771,6 @@ export declare type ExternalTvConfig = {
|
|
655
771
|
splashScreenBackgroundColor?: string;
|
656
772
|
};
|
657
773
|
|
658
|
-
export declare interface FairplayDrmConfiguration {
|
659
|
-
/**
|
660
|
-
* Url to retrieve fairplay certificate from.
|
661
|
-
*/
|
662
|
-
fairplayCertificateUrl: string;
|
663
|
-
/**
|
664
|
-
* Url to send license to.
|
665
|
-
*/
|
666
|
-
fairplayLicenseUrl: string;
|
667
|
-
}
|
668
|
-
|
669
774
|
/**
|
670
775
|
* @throws if fetch fails
|
671
776
|
* @public
|
@@ -1250,6 +1355,22 @@ export declare type NewVoucher = {
|
|
1250
1355
|
expirationDate: Date | number;
|
1251
1356
|
};
|
1252
1357
|
|
1358
|
+
declare interface Notification_2 {
|
1359
|
+
id: string;
|
1360
|
+
name: string;
|
1361
|
+
targeting: UserGroup;
|
1362
|
+
templateId: string;
|
1363
|
+
thumbnailUrl?: string;
|
1364
|
+
triggerType: TriggerType;
|
1365
|
+
status?: NotificationStatus;
|
1366
|
+
}
|
1367
|
+
export { Notification_2 as Notification }
|
1368
|
+
|
1369
|
+
export declare enum NotificationStatus {
|
1370
|
+
PLANNED = "planned",
|
1371
|
+
SENT = "sent"
|
1372
|
+
}
|
1373
|
+
|
1253
1374
|
/**
|
1254
1375
|
* @public
|
1255
1376
|
*/
|
@@ -1369,9 +1490,9 @@ export declare type Player = {
|
|
1369
1490
|
* @public
|
1370
1491
|
*/
|
1371
1492
|
export declare interface PlayerCapability {
|
1372
|
-
codec:
|
1373
|
-
encryption:
|
1374
|
-
protocol:
|
1493
|
+
codec: VideoSourceCodec;
|
1494
|
+
encryption: VideoSourceEncryption;
|
1495
|
+
protocol: VideoSourceProtocol;
|
1375
1496
|
}
|
1376
1497
|
|
1377
1498
|
/**
|
@@ -1433,6 +1554,135 @@ export declare type PlayerConfig = {
|
|
1433
1554
|
};
|
1434
1555
|
};
|
1435
1556
|
|
1557
|
+
/**
|
1558
|
+
* @public
|
1559
|
+
*/
|
1560
|
+
export declare interface PlayerEngineConfig {
|
1561
|
+
getDrmConfiguration?: () => Promise<Drm | undefined>;
|
1562
|
+
encryption?: string;
|
1563
|
+
isAd?: boolean;
|
1564
|
+
positionMs?: number;
|
1565
|
+
url: string;
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
/**
|
1569
|
+
* @public
|
1570
|
+
*/
|
1571
|
+
export declare type PlayerEngineEvent = 'bufferingchange' | 'bufferedinfochange' | 'statechange' | 'loaded' | 'loadfailed' | 'togglefullscreen' | 'durationchange' | 'busychange' | 'trackschanged' | 'abort' | 'canplay' | 'canplaythrough' | 'emptied' | 'ended' | 'error' | 'loadeddata' | 'loadedmetadata' | 'loadstart' | 'pause' | 'play' | 'playing' | 'progress' | 'ratechange' | 'seeked' | 'seeking' | 'stalled' | 'suspend' | 'timeupdate' | 'volumechange' | 'waiting' | 'click' | 'fullscreenchange';
|
1572
|
+
|
1573
|
+
/**
|
1574
|
+
* @public
|
1575
|
+
*/
|
1576
|
+
export declare type PlayerEngineFactory = (videoElement: HTMLVideoElement) => PlayerEngineInterface;
|
1577
|
+
|
1578
|
+
/**
|
1579
|
+
* @public
|
1580
|
+
*/
|
1581
|
+
export declare interface PlayerEngineInterface {
|
1582
|
+
/**
|
1583
|
+
* Loads video but keeps it paused
|
1584
|
+
*/
|
1585
|
+
load(config: PlayerEngineConfig): Promise<void>;
|
1586
|
+
/**
|
1587
|
+
* Loads and starts playing video
|
1588
|
+
* @throws
|
1589
|
+
*/
|
1590
|
+
play(config: PlayerEngineConfig): Promise<void>;
|
1591
|
+
pause(): Promise<void>;
|
1592
|
+
unpause(): Promise<void>;
|
1593
|
+
isPaused(): boolean;
|
1594
|
+
stop(): Promise<void>;
|
1595
|
+
addEventListener<T>(event: PlayerEngineEvent, callback: PlayerEngineListener<T>): void;
|
1596
|
+
addEventListener(event: 'statechange', callback: PlayerEngineListener<PlayerState>): void;
|
1597
|
+
addEventListener(event: 'bufferingchange', callback: PlayerEngineListener<boolean>): void;
|
1598
|
+
addEventListener(event: 'bufferedinfochange', callback: PlayerEngineListener<BufferPercentChunk[]>): void;
|
1599
|
+
addEventListener(event: 'togglefullscreen', callback: PlayerEngineListener<boolean>): void;
|
1600
|
+
removeEventListener<T>(event: PlayerEngineEvent, listener: PlayerEngineListener<T>): void;
|
1601
|
+
/**
|
1602
|
+
* @returns currently playing audio track in ISO 639-1 format ('cs', 'en' etc.) or null if not available
|
1603
|
+
*/
|
1604
|
+
getActiveAudioTrack?: () => LangCode | null;
|
1605
|
+
/**
|
1606
|
+
* @returns currently selected subtitles in ISO 639-1 format ('cs', 'en' etc.)
|
1607
|
+
*/
|
1608
|
+
getActiveSubtitles?: () => LangCode | null;
|
1609
|
+
/**
|
1610
|
+
* Returns currently available audio tracks of currently playing video.
|
1611
|
+
*
|
1612
|
+
* @returns array of available audio tracks in ISO 639-1 format ('cs', 'en' etc.)
|
1613
|
+
*/
|
1614
|
+
getAudioTracks?: () => LangCode[];
|
1615
|
+
/**
|
1616
|
+
* @returns array of available subtitles in ISO 639-1 format ('cs', 'en' etc.)
|
1617
|
+
*/
|
1618
|
+
getSubtitles?: () => LangCode[];
|
1619
|
+
getCurrentQuality?: (lang?: LangCode) => Track | null;
|
1620
|
+
getQualities?: () => Track[];
|
1621
|
+
/**
|
1622
|
+
* options.force to change quality immediately, otherwise it takes some time
|
1623
|
+
* (because previously loaded higher or lower quality chunks are not discarded)
|
1624
|
+
*/
|
1625
|
+
selectQuality?: (track: Track, options?: {
|
1626
|
+
force: boolean;
|
1627
|
+
}) => void;
|
1628
|
+
/**
|
1629
|
+
* Is automatic selection of video quality based on network bandwidth (aka ABR) enabled?
|
1630
|
+
*/
|
1631
|
+
isAdaptationEnabled?: () => boolean;
|
1632
|
+
/**
|
1633
|
+
* Turn on automatic selection of video quality based on network bandwidth (aka ABR).
|
1634
|
+
* It is enabled by default.
|
1635
|
+
* It automatically becomes disabled when selectQuality() is called.
|
1636
|
+
*/
|
1637
|
+
enableAdaptation?: (enable: boolean) => void;
|
1638
|
+
goFullScreen(): Promise<void>;
|
1639
|
+
/**
|
1640
|
+
* @param {number} value 0-1
|
1641
|
+
*/
|
1642
|
+
changeVolume(value: number): void;
|
1643
|
+
getState(): PlayerState;
|
1644
|
+
isIdle(): boolean;
|
1645
|
+
mute(): void;
|
1646
|
+
unmute(): void;
|
1647
|
+
/**
|
1648
|
+
* @returns {number} duration in seconds
|
1649
|
+
*/
|
1650
|
+
getDuration(): number;
|
1651
|
+
seekTo(ms: number): void;
|
1652
|
+
/**
|
1653
|
+
* Changes audio track of currently playing video.
|
1654
|
+
*
|
1655
|
+
* @param {LangCode} audioTrack - audio track to select in ISO 639-1 format ('cs', 'en' etc.)
|
1656
|
+
*/
|
1657
|
+
selectAudioTrack?: (audioTrack: LangCode) => void;
|
1658
|
+
/**
|
1659
|
+
* Changes audio track of currently playing video.
|
1660
|
+
* @param {LangCode} langCode - subtitles to select in ISO 639-1 format ('cs', 'en' etc.) or null to disable subtitles
|
1661
|
+
*/
|
1662
|
+
selectSubtitles?: (langCode: LangCode | null) => void;
|
1663
|
+
/**
|
1664
|
+
* Changes audio track of currently playing video.
|
1665
|
+
*
|
1666
|
+
* @param {number} playbackSpeed - playback speed to select (1 = normal speed, 2 = twice as fast, etc.)
|
1667
|
+
*/
|
1668
|
+
selectPlaybackSpeed?: (playbackSpeed: number) => void;
|
1669
|
+
destroy(): Promise<void>;
|
1670
|
+
getBufferedInfo?(): BufferChunk[];
|
1671
|
+
lastQuality: number | null;
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
/**
|
1675
|
+
* @public
|
1676
|
+
*/
|
1677
|
+
export declare type PlayerEngineListener<T> = (value: T) => any;
|
1678
|
+
|
1679
|
+
/**
|
1680
|
+
* @public
|
1681
|
+
*/
|
1682
|
+
export declare interface PlayerEngineOptions {
|
1683
|
+
seekDebounceMs?: number;
|
1684
|
+
}
|
1685
|
+
|
1436
1686
|
/**
|
1437
1687
|
* @public
|
1438
1688
|
*/
|
@@ -1490,7 +1740,10 @@ export declare type PlayerProviderProps = {
|
|
1490
1740
|
playerWrapperId?: string;
|
1491
1741
|
};
|
1492
1742
|
|
1493
|
-
|
1743
|
+
/**
|
1744
|
+
* @public
|
1745
|
+
*/
|
1746
|
+
export declare type PlayerState = 'idle' | 'playing' | 'paused';
|
1494
1747
|
|
1495
1748
|
/**
|
1496
1749
|
* @public
|
@@ -1586,13 +1839,6 @@ export declare enum PlayerWrapperEventType {
|
|
1586
1839
|
*/
|
1587
1840
|
export declare type PlayerWrapperEventTypeType = `${PlayerWrapperEventType}`;
|
1588
1841
|
|
1589
|
-
export declare interface PlayreadyDrmConfiguration {
|
1590
|
-
/**
|
1591
|
-
* Url to send license to.
|
1592
|
-
*/
|
1593
|
-
playreadyLicenseUrl: string;
|
1594
|
-
}
|
1595
|
-
|
1596
1842
|
/**
|
1597
1843
|
* @public
|
1598
1844
|
*/
|
@@ -1644,6 +1890,10 @@ export declare interface PurchasableMonetization extends Monetization {
|
|
1644
1890
|
* If not set or set to false, users cannot buy it as a voucher.
|
1645
1891
|
*/
|
1646
1892
|
isPurchasableAsVoucher?: boolean;
|
1893
|
+
/**
|
1894
|
+
* Returns array of tag ids of monetization placements
|
1895
|
+
*/
|
1896
|
+
tagIds: string[];
|
1647
1897
|
}
|
1648
1898
|
|
1649
1899
|
/**
|
@@ -1706,6 +1956,11 @@ export declare type PurchaseEndpointPayload = {
|
|
1706
1956
|
* Two-letter upper-case country code according to ISO-3166 format (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
|
1707
1957
|
*/
|
1708
1958
|
countryIsoCode?: LocationField['countryIsoCode'];
|
1959
|
+
/**
|
1960
|
+
* Purchase expiration timestamp. Only present for "subscription" monetization type. This timestamp does not mean it will
|
1961
|
+
* really expire at this timestamp - additional payment of this subscription can occur so expiration timestamp may be increased.
|
1962
|
+
*/
|
1963
|
+
expiration?: number;
|
1709
1964
|
/**
|
1710
1965
|
* Gateway name or "voucher".
|
1711
1966
|
*/
|
@@ -1714,22 +1969,22 @@ export declare type PurchaseEndpointPayload = {
|
|
1714
1969
|
* Tivio ID of the purchase.
|
1715
1970
|
*/
|
1716
1971
|
id: string;
|
1717
|
-
/**
|
1718
|
-
* Timestamp of the last change of the purchase - in this case it is timestamp when it was paid.
|
1719
|
-
*/
|
1720
|
-
updated: number;
|
1721
1972
|
/**
|
1722
1973
|
* True if delayed payment is confirmed but not charged yet, undefined in all other cases.
|
1723
1974
|
*/
|
1724
1975
|
isDelayedPayment?: boolean;
|
1976
|
+
/**
|
1977
|
+
* Purchase status after change.
|
1978
|
+
*/
|
1979
|
+
newStatus: PurchaseStatus;
|
1725
1980
|
/**
|
1726
1981
|
* Purchase status before change.
|
1727
1982
|
*/
|
1728
1983
|
previousStatus: PurchaseStatus;
|
1729
1984
|
/**
|
1730
|
-
*
|
1985
|
+
* Timestamp of the last change of the purchase - in this case it is timestamp when it was paid.
|
1731
1986
|
*/
|
1732
|
-
|
1987
|
+
updated: number;
|
1733
1988
|
};
|
1734
1989
|
/**
|
1735
1990
|
* Information about the monetization which has been bought by this purchase. Monetization definition may change in time so information provided here
|
@@ -2463,7 +2718,7 @@ export declare type TivioComponents = {
|
|
2463
2718
|
onEnded?: () => any;
|
2464
2719
|
}>;
|
2465
2720
|
TvApp: React_2.ComponentType<TvAppProps>;
|
2466
|
-
FeatureSupportCheck: React_2.ComponentType
|
2721
|
+
FeatureSupportCheck: React_2.ComponentType<{}>;
|
2467
2722
|
CustomerScreen: React_2.ComponentType<{
|
2468
2723
|
screenId: string;
|
2469
2724
|
}>;
|
@@ -2645,7 +2900,7 @@ export declare type TivioInternalHooks = {
|
|
2645
2900
|
usePurchasesWithVideos: () => {
|
2646
2901
|
purchases: Purchase[];
|
2647
2902
|
};
|
2648
|
-
useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean) => {
|
2903
|
+
useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean, videoId?: string) => {
|
2649
2904
|
subscriptions: PurchasableMonetization[];
|
2650
2905
|
};
|
2651
2906
|
useIsMonetizationPurchased: () => {
|
@@ -2713,7 +2968,7 @@ export declare type TivioJsBundleExposedApi = {
|
|
2713
2968
|
* @param id - player wrapper id
|
2714
2969
|
* @returns {Player} player wrapper instance
|
2715
2970
|
*/
|
2716
|
-
|
2971
|
+
getPlayerWrapper: (id: string) => Player;
|
2717
2972
|
/**
|
2718
2973
|
* Get tv channel by its id.
|
2719
2974
|
* @param tvChannelId - tv channel id
|
@@ -2851,11 +3106,6 @@ export declare type TivioVodSource = SourceBase & StartAndContinuePosition & {
|
|
2851
3106
|
*/
|
2852
3107
|
export declare const TivioWidget: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<TivioWidgetRef>>;
|
2853
3108
|
|
2854
|
-
/**
|
2855
|
-
* @public
|
2856
|
-
*/
|
2857
|
-
export declare const TivioWidgetApp: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<unknown>>;
|
2858
|
-
|
2859
3109
|
/**
|
2860
3110
|
* @public
|
2861
3111
|
*/
|
@@ -2882,8 +3132,6 @@ export declare interface TivioWidgetProps {
|
|
2882
3132
|
width: number;
|
2883
3133
|
x: number;
|
2884
3134
|
}) => any;
|
2885
|
-
navigateFunction?: any;
|
2886
|
-
isFocused?: boolean;
|
2887
3135
|
}
|
2888
3136
|
|
2889
3137
|
/**
|
@@ -2922,6 +3170,20 @@ export declare interface TopWatchItem {
|
|
2922
3170
|
viewCount: number;
|
2923
3171
|
}
|
2924
3172
|
|
3173
|
+
/**
|
3174
|
+
* @public
|
3175
|
+
* Video track
|
3176
|
+
*/
|
3177
|
+
declare interface Track {
|
3178
|
+
id: number;
|
3179
|
+
/**
|
3180
|
+
* e.g. 480, 720, 1080
|
3181
|
+
*/
|
3182
|
+
height: number;
|
3183
|
+
active: boolean;
|
3184
|
+
language: LangCode;
|
3185
|
+
}
|
3186
|
+
|
2925
3187
|
declare type TransactionInfo = {
|
2926
3188
|
type: 'transaction';
|
2927
3189
|
name: string;
|
@@ -2938,12 +3200,13 @@ export declare type Translation = {
|
|
2938
3200
|
[key in LangCode]?: string;
|
2939
3201
|
};
|
2940
3202
|
|
3203
|
+
export declare type TriggerType = 'scheduled' | 'manual';
|
3204
|
+
|
2941
3205
|
/**
|
2942
3206
|
* @public
|
2943
3207
|
*/
|
2944
3208
|
export declare type TvAppProps = {
|
2945
3209
|
customer: CustomerId;
|
2946
|
-
navigateFunction: (url: string) => void;
|
2947
3210
|
};
|
2948
3211
|
|
2949
3212
|
/**
|
@@ -2973,7 +3236,7 @@ export declare interface TvChannel extends RowItem {
|
|
2973
3236
|
price: number;
|
2974
3237
|
cover: string;
|
2975
3238
|
isPlayable: boolean;
|
2976
|
-
|
3239
|
+
url: string;
|
2977
3240
|
}
|
2978
3241
|
|
2979
3242
|
export declare interface TvProgram {
|
@@ -2981,7 +3244,7 @@ export declare interface TvProgram {
|
|
2981
3244
|
to: Date | null;
|
2982
3245
|
name: string;
|
2983
3246
|
description: string;
|
2984
|
-
|
3247
|
+
url: string;
|
2985
3248
|
image: string;
|
2986
3249
|
video: Video | null;
|
2987
3250
|
}
|
@@ -3146,21 +3409,16 @@ export declare const useMarkers: () => Marker[] | null;
|
|
3146
3409
|
|
3147
3410
|
/**
|
3148
3411
|
* @public
|
3412
|
+
*
|
3413
|
+
* @param onlyPurchasableSubscriptions When it is true, it returns only enabled subscriptions.
|
3414
|
+
* @param videoId If it is not defined returns all subscriptions except one time payment.
|
3415
|
+
* When it is set, returns only subscriptions which is described in tagIds for video.
|
3416
|
+
* @returns Array of subscriptions according to set parameters
|
3149
3417
|
*/
|
3150
|
-
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean) => {
|
3418
|
+
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean, videoId?: string) => {
|
3151
3419
|
subscriptions: PurchasableMonetization[];
|
3152
3420
|
};
|
3153
3421
|
|
3154
|
-
/**
|
3155
|
-
* @public
|
3156
|
-
*/
|
3157
|
-
export declare type UsePlayerEvent = <T = any>(eventName: string) => T | null;
|
3158
|
-
|
3159
|
-
/**
|
3160
|
-
* @public
|
3161
|
-
*/
|
3162
|
-
export declare const usePlayerEvent: UsePlayerEvent;
|
3163
|
-
|
3164
3422
|
/**
|
3165
3423
|
* Is used to mark purchase in recovery state as PAID.
|
3166
3424
|
*
|
@@ -3233,6 +3491,12 @@ export declare type User = {
|
|
3233
3491
|
setActiveUserProfileId: (id: string) => void;
|
3234
3492
|
};
|
3235
3493
|
|
3494
|
+
export declare enum UserGroup {
|
3495
|
+
ALL = "all",
|
3496
|
+
FREE = "free",
|
3497
|
+
PREMIUM = "premium"
|
3498
|
+
}
|
3499
|
+
|
3236
3500
|
/**
|
3237
3501
|
* @public
|
3238
3502
|
*/
|
@@ -3459,7 +3723,6 @@ export declare interface Video extends RowItem {
|
|
3459
3723
|
urlName?: string;
|
3460
3724
|
price: number | null;
|
3461
3725
|
detailedPrice: DetailedPrice | null;
|
3462
|
-
uri: string;
|
3463
3726
|
url: string;
|
3464
3727
|
adMonetizationId?: string;
|
3465
3728
|
from?: Date;
|
@@ -3481,7 +3744,7 @@ export declare interface Video extends RowItem {
|
|
3481
3744
|
removeFromFavorites: () => void;
|
3482
3745
|
availability: VideoAvailability | null;
|
3483
3746
|
sourceLanguages: LangCode[];
|
3484
|
-
|
3747
|
+
urlByLanguage: (lang: LangCode) => string | undefined;
|
3485
3748
|
}
|
3486
3749
|
|
3487
3750
|
/**
|
@@ -3512,6 +3775,29 @@ export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExt
|
|
3512
3775
|
|
3513
3776
|
declare type VideoPath = string;
|
3514
3777
|
|
3778
|
+
export declare enum VideoSourceCodec {
|
3779
|
+
H264 = "h264",
|
3780
|
+
H265 = "h265"
|
3781
|
+
}
|
3782
|
+
|
3783
|
+
export declare enum VideoSourceEncryption {
|
3784
|
+
NONE = "none",
|
3785
|
+
WIDEVINE = "widevine",
|
3786
|
+
FAIRPLAY = "fairplay",
|
3787
|
+
PLAYREADY = "playready"
|
3788
|
+
}
|
3789
|
+
|
3790
|
+
/**
|
3791
|
+
* Lower number = higher priority.
|
3792
|
+
*/
|
3793
|
+
export declare type VideoSourcePriority = 1 | 2 | 3 | 4 | 5;
|
3794
|
+
|
3795
|
+
export declare enum VideoSourceProtocol {
|
3796
|
+
HLS = "hls",
|
3797
|
+
DASH = "dash",
|
3798
|
+
MP4 = "mp4"
|
3799
|
+
}
|
3800
|
+
|
3515
3801
|
/**
|
3516
3802
|
* Video type.
|
3517
3803
|
* @public
|
@@ -3578,22 +3864,22 @@ export declare interface VirtualChannelSourcePojo extends Omit<ChannelSourcePojo
|
|
3578
3864
|
* @public
|
3579
3865
|
*/
|
3580
3866
|
export declare type VodExternalSource = {
|
3581
|
-
new (
|
3867
|
+
new (url: string, monetizationId: string, name: string, description: string, originalOptions: Record<string, any>): VodTivioSource;
|
3582
3868
|
type: 'vod_external';
|
3583
3869
|
description: string;
|
3584
3870
|
name: string;
|
3585
|
-
|
3871
|
+
url: string;
|
3586
3872
|
};
|
3587
3873
|
|
3588
3874
|
/**
|
3589
3875
|
* @public
|
3590
3876
|
*/
|
3591
3877
|
export declare type VodTivioSource = {
|
3592
|
-
new (
|
3878
|
+
new (url: string, videoId: string, name: string, description: string, adMonetizationId?: string): VodTivioSource;
|
3593
3879
|
type: 'vod_tivio';
|
3594
3880
|
description: string;
|
3595
3881
|
name: string;
|
3596
|
-
|
3882
|
+
url: string;
|
3597
3883
|
};
|
3598
3884
|
|
3599
3885
|
declare interface VodTivioSourcePojo {
|
@@ -3601,7 +3887,7 @@ declare interface VodTivioSourcePojo {
|
|
3601
3887
|
description: string;
|
3602
3888
|
path: string;
|
3603
3889
|
name: string;
|
3604
|
-
|
3890
|
+
url: string;
|
3605
3891
|
poster?: string;
|
3606
3892
|
adMonetizationId?: string;
|
3607
3893
|
availability: VideoAvailability | null;
|
@@ -3717,13 +4003,6 @@ export declare type WhereFilterArray = [string, WhereFilterOp, any];
|
|
3717
4003
|
|
3718
4004
|
declare type WhereFilterOp = '<' | '<=' | '==' | '!=' | '>=' | '>' | 'array-contains' | 'in' | 'array-contains-any' | 'not-in';
|
3719
4005
|
|
3720
|
-
export declare interface WidevineDrmConfiguration {
|
3721
|
-
/**
|
3722
|
-
* Url to send license to.
|
3723
|
-
*/
|
3724
|
-
widevineLicenseUrl: string;
|
3725
|
-
}
|
3726
|
-
|
3727
4006
|
/**
|
3728
4007
|
* @public
|
3729
4008
|
*/
|