@tivio/sdk-react 8.0.0 → 9.0.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/README.md CHANGED
@@ -6,6 +6,14 @@ settings in the administration of Tivio Studio while having the freedom to build
6
6
 
7
7
  ## Changelog
8
8
 
9
+ * 9.0.0
10
+ * patch: remove i18next and react-i18next from externals and dependencies
11
+ * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
12
+ * patch: clean-up externals in webpack config
13
+ * patch: send only required dependencies to the bundle
14
+ * major: change purchase statuses lifecycle
15
+ * minor: add originalPurchaseId to PurchaseEndpointPayload
16
+
9
17
  * 8.0.0
10
18
  * major: deprecated usePurchasesWithVideos hook removed
11
19
  * patch: add id to user type
package/README.md.bak CHANGED
@@ -6,6 +6,14 @@ settings in the administration of Tivio Studio while having the freedom to build
6
6
 
7
7
  ## Changelog
8
8
 
9
+ * 9.0.0
10
+ * patch: remove i18next and react-i18next from externals and dependencies
11
+ * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
12
+ * patch: clean-up externals in webpack config
13
+ * patch: send only required dependencies to the bundle
14
+ * major: change purchase statuses lifecycle
15
+ * minor: add originalPurchaseId to PurchaseEndpointPayload
16
+
9
17
  * 8.0.0
10
18
  * major: deprecated usePurchasesWithVideos hook removed
11
19
  * patch: add id to user type
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;
@@ -712,6 +717,16 @@ export declare const createRemotePackageLoader: () => (secret: string, conf: Int
712
717
  */
713
718
  export declare const createUseRemoteBundle: () => (conf: InternalConfig) => RemoteBundleState;
714
719
 
720
+ export declare interface CreateUserPayload {
721
+ displayName?: string;
722
+ email?: string;
723
+ emailVerified?: boolean;
724
+ password?: string;
725
+ referralToken?: string;
726
+ username?: string;
727
+ phoneNumber?: string;
728
+ }
729
+
715
730
  /**
716
731
  * @public
717
732
  */
@@ -750,7 +765,8 @@ export declare enum CustomerId {
750
765
  STARMAX = "STARMAX",
751
766
  STORYBOOK = "STORYBOOK",
752
767
  TIVIO = "TIVIO",
753
- U_KULATEHO_STOLU = "U_KULATEHO_STOLU"
768
+ U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
769
+ STARME = "STARME"
754
770
  }
755
771
 
756
772
  /**
@@ -1141,6 +1157,10 @@ export declare interface GetSourceUrlRequest {
1141
1157
  * See {@link SourcePlayMode} type. If not given, getSourceUrl will pick default based on requested document.
1142
1158
  */
1143
1159
  sourcePlayMode?: SourcePlayMode;
1160
+ /**
1161
+ * Returns url to manifest with audio only chunks.
1162
+ */
1163
+ audioOnly?: boolean;
1144
1164
  }
1145
1165
 
1146
1166
  export declare interface GetSourceUrlResponse {
@@ -1160,6 +1180,10 @@ export declare interface GetSourceUrlResponse {
1160
1180
  * See {@link SourcePlayMode} type.
1161
1181
  */
1162
1182
  sourcePlayMode: SourcePlayMode;
1183
+ /**
1184
+ * Returns url to manifest with audio only chunks.
1185
+ */
1186
+ audioOnly?: boolean;
1163
1187
  }
1164
1188
 
1165
1189
  export declare interface GetVideoAnalyticsErrorItem {
@@ -1266,6 +1290,10 @@ export declare interface IndexedTag extends IndexedObject {
1266
1290
  created: Date;
1267
1291
  name: Translation;
1268
1292
  description?: string;
1293
+ /**
1294
+ * True if the tag is available in Tivio Pro (StarMe)
1295
+ */
1296
+ isTivioPro: boolean;
1269
1297
  }
1270
1298
 
1271
1299
  /**
@@ -1307,6 +1335,14 @@ export declare interface IndexedVideo extends IndexedObject {
1307
1335
  hide: boolean;
1308
1336
  isDuplicate: boolean;
1309
1337
  externals?: VideoExternals;
1338
+ /**
1339
+ * Duration of the video in ms
1340
+ */
1341
+ duration?: number;
1342
+ /**
1343
+ * True if the video is available in Tivio Pro (StarMe)
1344
+ */
1345
+ isTivioPro: boolean;
1310
1346
  }
1311
1347
 
1312
1348
  /**
@@ -2350,6 +2386,11 @@ export declare interface Promotion {
2350
2386
  price?: number;
2351
2387
  }
2352
2388
 
2389
+ /**
2390
+ * @public
2391
+ */
2392
+ export declare type PromotionType = 'CLASSIC' | 'PATREON';
2393
+
2353
2394
  /**
2354
2395
  * @public
2355
2396
  */
@@ -2485,6 +2526,10 @@ export declare type PurchaseEndpointPayload = {
2485
2526
  * Purchase status after change.
2486
2527
  */
2487
2528
  newStatus: PurchaseStatus;
2529
+ /**
2530
+ * Id of the original (first) purchase of reoccurring payments.
2531
+ */
2532
+ originalPurchaseId?: string;
2488
2533
  /**
2489
2534
  * Purchase status before change.
2490
2535
  */
@@ -2608,7 +2653,23 @@ export declare enum PurchaseStatus {
2608
2653
  /**
2609
2654
  * Used when purchase is terminated due to terms and conditions violation (e.g. restreaming).
2610
2655
  */
2611
- BLOCKED = "BLOCKED"
2656
+ BLOCKED = "BLOCKED",
2657
+ /**
2658
+ * Used in subscription purchases when subscription is renewed.
2659
+ */
2660
+ RENEWED = "RENEWED",
2661
+ /**
2662
+ * From NEW to ABORTED when user cancels purchase before payment or when payment fails.
2663
+ */
2664
+ ABORTED = "ABORTED",
2665
+ /**
2666
+ * When user manually cancels purchase but still has access to content until expiration date.
2667
+ */
2668
+ CANCELLING = "CANCELLING",
2669
+ /**
2670
+ * From PAID to EXPIRED when payment fails to renew subscription.
2671
+ */
2672
+ EXPIRED = "EXPIRED"
2612
2673
  }
2613
2674
 
2614
2675
  /**
@@ -2637,7 +2698,7 @@ export declare interface QerkoData {
2637
2698
  * Otherwise, user is making a purchase for himself.
2638
2699
  */
2639
2700
  voucherPurchase?: boolean;
2640
- onPurchase?: () => void;
2701
+ onPurchase?: (paymentInfo: QerkoPaymentInfo | null) => void;
2641
2702
  onClose?: () => void;
2642
2703
  }
2643
2704
 
@@ -2717,6 +2778,9 @@ declare type Relationship = {
2717
2778
  memberships: {
2718
2779
  data: Membership[];
2719
2780
  };
2781
+ currently_entitled_tiers: {
2782
+ data?: Membership[];
2783
+ };
2720
2784
  };
2721
2785
 
2722
2786
  /**
@@ -3223,6 +3287,8 @@ export declare interface SuccessConfirmationOverlayPayload extends ConfirmationO
3223
3287
  confirmButtonText?: string;
3224
3288
  }
3225
3289
 
3290
+ export declare type SynchronizeUserTypeFunction = (payload: CreateUserPayload, tenantId: string, tenantUserId: string) => Promise<string>;
3291
+
3226
3292
  /**
3227
3293
  * @public
3228
3294
  */
@@ -3259,6 +3325,16 @@ export declare type Tier = {
3259
3325
  type: 'tier';
3260
3326
  };
3261
3327
 
3328
+ export declare interface TileApplicationData {
3329
+ id: string;
3330
+ name: Translation;
3331
+ description?: string;
3332
+ logo: string;
3333
+ urlHandle: string;
3334
+ organizationId: string;
3335
+ type: ApplicationType;
3336
+ }
3337
+
3262
3338
  /**
3263
3339
  * @public
3264
3340
  */
@@ -4425,6 +4501,12 @@ declare type VastProvidersItem = {
4425
4501
  development?: boolean;
4426
4502
  };
4427
4503
 
4504
+ export declare interface verifyCustomTokenProps {
4505
+ token: string;
4506
+ uid: string;
4507
+ organizationPath: string;
4508
+ }
4509
+
4428
4510
  /**
4429
4511
  * @public
4430
4512
  */
@@ -4520,7 +4602,9 @@ export declare enum VideoContentType {
4520
4602
  /**
4521
4603
  * @public
4522
4604
  */
4523
- export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals;
4605
+ export declare type VideoExternals = (JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals) & {
4606
+ channelKey?: string;
4607
+ };
4524
4608
 
4525
4609
  declare type VideoPath = string;
4526
4610