@tivio/sdk-react 10.2.0 → 10.2.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 +3 -1
- package/README.md.bak +3 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -564,7 +564,7 @@ useVoucher: (voucherId: string) => {
|
|
|
564
564
|
isInitialized: boolean
|
|
565
565
|
/** Public, server-safe metadata about the activated voucher. */
|
|
566
566
|
voucherInfo: VoucherInfoPublic | null
|
|
567
|
-
/**
|
|
567
|
+
/** Video the voucher relates to, when its document references one (`voucherInfo.videoId`). */
|
|
568
568
|
videoId?: string
|
|
569
569
|
/** Monetizations to offer when the voucher does not fully cover the content. */
|
|
570
570
|
subscriptionsToShow: PurchasableMonetization[]
|
|
@@ -585,6 +585,8 @@ interface VoucherInfoBasePublic {
|
|
|
585
585
|
status: 'NEW' | 'USED' | 'FULFILLED'
|
|
586
586
|
/** True when the voucher fully covers the content (no further payment needed). */
|
|
587
587
|
fullDiscount?: boolean
|
|
588
|
+
/** Video the voucher relates to, when its document references one. Present for both types. */
|
|
589
|
+
videoId?: string
|
|
588
590
|
}
|
|
589
591
|
|
|
590
592
|
interface VoucherInfoSubscriptionPublic extends VoucherInfoBasePublic {
|
package/README.md.bak
CHANGED
|
@@ -564,7 +564,7 @@ useVoucher: (voucherId: string) => {
|
|
|
564
564
|
isInitialized: boolean
|
|
565
565
|
/** Public, server-safe metadata about the activated voucher. */
|
|
566
566
|
voucherInfo: VoucherInfoPublic | null
|
|
567
|
-
/**
|
|
567
|
+
/** Video the voucher relates to, when its document references one (`voucherInfo.videoId`). */
|
|
568
568
|
videoId?: string
|
|
569
569
|
/** Monetizations to offer when the voucher does not fully cover the content. */
|
|
570
570
|
subscriptionsToShow: PurchasableMonetization[]
|
|
@@ -585,6 +585,8 @@ interface VoucherInfoBasePublic {
|
|
|
585
585
|
status: 'NEW' | 'USED' | 'FULFILLED'
|
|
586
586
|
/** True when the voucher fully covers the content (no further payment needed). */
|
|
587
587
|
fullDiscount?: boolean
|
|
588
|
+
/** Video the voucher relates to, when its document references one. Present for both types. */
|
|
589
|
+
videoId?: string
|
|
588
590
|
}
|
|
589
591
|
|
|
590
592
|
interface VoucherInfoSubscriptionPublic extends VoucherInfoBasePublic {
|
package/dist/index.d.ts
CHANGED
|
@@ -1472,7 +1472,8 @@ export declare enum CustomerId {
|
|
|
1472
1472
|
JANA_HANZ = "JANA_HANZ",
|
|
1473
1473
|
MYSTICO = "MYSTICO",
|
|
1474
1474
|
MORAVEC = "MORAVEC",
|
|
1475
|
-
JAN_TUNA = "JAN_TUNA"
|
|
1475
|
+
JAN_TUNA = "JAN_TUNA",
|
|
1476
|
+
PODNIKATELSKY_MINDSET = "PODNIKATELSKY_MINDSET"
|
|
1476
1477
|
}
|
|
1477
1478
|
|
|
1478
1479
|
export declare interface CustomScript {
|
|
@@ -8996,6 +8997,11 @@ export declare interface VoucherInfoBasePublic {
|
|
|
8996
8997
|
isExpired: boolean;
|
|
8997
8998
|
status: VoucherInfoPublicStatus;
|
|
8998
8999
|
fullDiscount?: boolean;
|
|
9000
|
+
/**
|
|
9001
|
+
* Video the voucher relates to, when the voucher document references one
|
|
9002
|
+
* (`videoRef`). Present for both subscription and transaction vouchers.
|
|
9003
|
+
*/
|
|
9004
|
+
videoId?: string;
|
|
8999
9005
|
}
|
|
9000
9006
|
|
|
9001
9007
|
export declare type VoucherInfoPublic = VoucherInfoSubscriptionPublic | VoucherInfoTransactionPublic;
|