@tivio/sdk-react 7.2.0-alpha.1 → 9.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -1
- package/README.md.bak +6 -1
- package/dist/index.d.ts +47 -4
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +47 -4
- package/package.json +2 -4
package/README.md
CHANGED
@@ -6,9 +6,14 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
6
6
|
|
7
7
|
## Changelog
|
8
8
|
|
9
|
-
*
|
9
|
+
* 9.0.0-alpha.0
|
10
|
+
* patch: remove i18next and react-i18next from externals and dependencies
|
11
|
+
* major: purchase refactor
|
12
|
+
|
13
|
+
* 8.0.0
|
10
14
|
* major: deprecated usePurchasesWithVideos hook removed
|
11
15
|
* patch: add id to user type
|
16
|
+
* patch: add @types/react to peerDependencies
|
12
17
|
|
13
18
|
* 7.1.0
|
14
19
|
* minor: export useTvChannelHook
|
package/README.md.bak
CHANGED
@@ -6,9 +6,14 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
6
6
|
|
7
7
|
## Changelog
|
8
8
|
|
9
|
-
*
|
9
|
+
* 9.0.0-alpha.0
|
10
|
+
* patch: remove i18next and react-i18next from externals and dependencies
|
11
|
+
* major: purchase refactor
|
12
|
+
|
13
|
+
* 8.0.0
|
10
14
|
* major: deprecated usePurchasesWithVideos hook removed
|
11
15
|
* patch: add id to user type
|
16
|
+
* patch: add @types/react to peerDependencies
|
12
17
|
|
13
18
|
* 7.1.0
|
14
19
|
* minor: export useTvChannelHook
|
package/dist/index.d.ts
CHANGED
@@ -336,6 +336,11 @@ export declare type Assets = {
|
|
336
336
|
[assetName: string]: ScalableAsset;
|
337
337
|
};
|
338
338
|
|
339
|
+
/**
|
340
|
+
* @public
|
341
|
+
*/
|
342
|
+
export declare type AssetType = 'circled' | 'landscape' | 'portrait';
|
343
|
+
|
339
344
|
declare type Attributes = {
|
340
345
|
created: string;
|
341
346
|
email: string;
|
@@ -750,7 +755,8 @@ export declare enum CustomerId {
|
|
750
755
|
STARMAX = "STARMAX",
|
751
756
|
STORYBOOK = "STORYBOOK",
|
752
757
|
TIVIO = "TIVIO",
|
753
|
-
U_KULATEHO_STOLU = "U_KULATEHO_STOLU"
|
758
|
+
U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
|
759
|
+
STARME = "STARME"
|
754
760
|
}
|
755
761
|
|
756
762
|
/**
|
@@ -1141,6 +1147,10 @@ export declare interface GetSourceUrlRequest {
|
|
1141
1147
|
* See {@link SourcePlayMode} type. If not given, getSourceUrl will pick default based on requested document.
|
1142
1148
|
*/
|
1143
1149
|
sourcePlayMode?: SourcePlayMode;
|
1150
|
+
/**
|
1151
|
+
* Returns url to manifest with audio only chunks.
|
1152
|
+
*/
|
1153
|
+
audioOnly?: boolean;
|
1144
1154
|
}
|
1145
1155
|
|
1146
1156
|
export declare interface GetSourceUrlResponse {
|
@@ -1160,6 +1170,10 @@ export declare interface GetSourceUrlResponse {
|
|
1160
1170
|
* See {@link SourcePlayMode} type.
|
1161
1171
|
*/
|
1162
1172
|
sourcePlayMode: SourcePlayMode;
|
1173
|
+
/**
|
1174
|
+
* Returns url to manifest with audio only chunks.
|
1175
|
+
*/
|
1176
|
+
audioOnly?: boolean;
|
1163
1177
|
}
|
1164
1178
|
|
1165
1179
|
export declare interface GetVideoAnalyticsErrorItem {
|
@@ -2350,6 +2364,11 @@ export declare interface Promotion {
|
|
2350
2364
|
price?: number;
|
2351
2365
|
}
|
2352
2366
|
|
2367
|
+
/**
|
2368
|
+
* @public
|
2369
|
+
*/
|
2370
|
+
export declare type PromotionType = 'CLASSIC' | 'PATREON';
|
2371
|
+
|
2353
2372
|
/**
|
2354
2373
|
* @public
|
2355
2374
|
*/
|
@@ -2608,7 +2627,23 @@ export declare enum PurchaseStatus {
|
|
2608
2627
|
/**
|
2609
2628
|
* Used when purchase is terminated due to terms and conditions violation (e.g. restreaming).
|
2610
2629
|
*/
|
2611
|
-
BLOCKED = "BLOCKED"
|
2630
|
+
BLOCKED = "BLOCKED",
|
2631
|
+
/**
|
2632
|
+
* Used in subscription purchases when subscription is renewed.
|
2633
|
+
*/
|
2634
|
+
RENEWED = "RENEWED",
|
2635
|
+
/**
|
2636
|
+
* From NEW to ABORTED when user cancels purchase before payment or when payment fails.
|
2637
|
+
*/
|
2638
|
+
ABORTED = "ABORTED",
|
2639
|
+
/**
|
2640
|
+
* When user manually cancels purchase but still has access to content until expiration date.
|
2641
|
+
*/
|
2642
|
+
CANCELLING = "CANCELLING",
|
2643
|
+
/**
|
2644
|
+
* From PAID to EXPIRED when payment fails to renew subscription.
|
2645
|
+
*/
|
2646
|
+
EXPIRED = "EXPIRED"
|
2612
2647
|
}
|
2613
2648
|
|
2614
2649
|
/**
|
@@ -2637,7 +2672,7 @@ export declare interface QerkoData {
|
|
2637
2672
|
* Otherwise, user is making a purchase for himself.
|
2638
2673
|
*/
|
2639
2674
|
voucherPurchase?: boolean;
|
2640
|
-
onPurchase?: () => void;
|
2675
|
+
onPurchase?: (paymentInfo: QerkoPaymentInfo | null) => void;
|
2641
2676
|
onClose?: () => void;
|
2642
2677
|
}
|
2643
2678
|
|
@@ -4425,6 +4460,12 @@ declare type VastProvidersItem = {
|
|
4425
4460
|
development?: boolean;
|
4426
4461
|
};
|
4427
4462
|
|
4463
|
+
export declare interface verifyCustomTokenProps {
|
4464
|
+
token: string;
|
4465
|
+
uid: string;
|
4466
|
+
organizationPath: string;
|
4467
|
+
}
|
4468
|
+
|
4428
4469
|
/**
|
4429
4470
|
* @public
|
4430
4471
|
*/
|
@@ -4520,7 +4561,9 @@ export declare enum VideoContentType {
|
|
4520
4561
|
/**
|
4521
4562
|
* @public
|
4522
4563
|
*/
|
4523
|
-
export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals
|
4564
|
+
export declare type VideoExternals = (JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals) & {
|
4565
|
+
channelKey?: string;
|
4566
|
+
};
|
4524
4567
|
|
4525
4568
|
declare type VideoPath = string;
|
4526
4569
|
|