@tivio/sdk-react 9.0.0-alpha.0 → 9.1.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -6,9 +6,16 @@ settings in the administration of Tivio Studio while having the freedom to build
6
6
 
7
7
  ## Changelog
8
8
 
9
- * 9.0.0-alpha.0
9
+ * 9.1.0-alpha.0
10
+ * minor: add downloadRemoteBundle function to be able to init Tivio without React
11
+
12
+ * 9.0.0
10
13
  * patch: remove i18next and react-i18next from externals and dependencies
11
- * major: purchase refactor
14
+ * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
15
+ * patch: clean-up externals in webpack config
16
+ * patch: send only required dependencies to the bundle
17
+ * major: change purchase statuses lifecycle
18
+ * minor: add originalPurchaseId to PurchaseEndpointPayload
12
19
 
13
20
  * 8.0.0
14
21
  * major: deprecated usePurchasesWithVideos hook removed
package/README.md.bak CHANGED
@@ -6,9 +6,16 @@ settings in the administration of Tivio Studio while having the freedom to build
6
6
 
7
7
  ## Changelog
8
8
 
9
- * 9.0.0-alpha.0
9
+ * 9.1.0-alpha.0
10
+ * minor: add downloadRemoteBundle function to be able to init Tivio without React
11
+
12
+ * 9.0.0
10
13
  * patch: remove i18next and react-i18next from externals and dependencies
11
- * major: purchase refactor
14
+ * patch: do not send react-spring to core-react-dom bundle, remove react-spring from dependencies
15
+ * patch: clean-up externals in webpack config
16
+ * patch: send only required dependencies to the bundle
17
+ * major: change purchase statuses lifecycle
18
+ * minor: add originalPurchaseId to PurchaseEndpointPayload
12
19
 
13
20
  * 8.0.0
14
21
  * major: deprecated usePurchasesWithVideos hook removed
package/dist/index.d.ts CHANGED
@@ -717,6 +717,16 @@ export declare const createRemotePackageLoader: () => (secret: string, conf: Int
717
717
  */
718
718
  export declare const createUseRemoteBundle: () => (conf: InternalConfig) => RemoteBundleState;
719
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
+
720
730
  /**
721
731
  * @public
722
732
  */
@@ -837,6 +847,14 @@ export declare type DocumentOptions = Partial<{
837
847
  subscribeOnChanges: boolean;
838
848
  }>;
839
849
 
850
+ /**
851
+ * Does the same as TivioProvider in useRemoteBundle - so it downloads bundle,
852
+ * calls init on it and returns bundle state.
853
+ *
854
+ * @public
855
+ */
856
+ export declare const downloadRemoteBundle: (conf: SdkReactConfig) => Promise<RemoteBundleState>;
857
+
840
858
  export declare interface Drm {
841
859
  encryption: VideoSourceEncryption;
842
860
  /**
@@ -1280,6 +1298,10 @@ export declare interface IndexedTag extends IndexedObject {
1280
1298
  created: Date;
1281
1299
  name: Translation;
1282
1300
  description?: string;
1301
+ /**
1302
+ * True if the tag is available in Tivio Pro (StarMe)
1303
+ */
1304
+ isTivioPro: boolean;
1283
1305
  }
1284
1306
 
1285
1307
  /**
@@ -1321,6 +1343,14 @@ export declare interface IndexedVideo extends IndexedObject {
1321
1343
  hide: boolean;
1322
1344
  isDuplicate: boolean;
1323
1345
  externals?: VideoExternals;
1346
+ /**
1347
+ * Duration of the video in ms
1348
+ */
1349
+ duration?: number;
1350
+ /**
1351
+ * True if the video is available in Tivio Pro (StarMe)
1352
+ */
1353
+ isTivioPro: boolean;
1324
1354
  }
1325
1355
 
1326
1356
  /**
@@ -2504,6 +2534,10 @@ export declare type PurchaseEndpointPayload = {
2504
2534
  * Purchase status after change.
2505
2535
  */
2506
2536
  newStatus: PurchaseStatus;
2537
+ /**
2538
+ * Id of the original (first) purchase of reoccurring payments.
2539
+ */
2540
+ originalPurchaseId?: string;
2507
2541
  /**
2508
2542
  * Purchase status before change.
2509
2543
  */
@@ -2752,6 +2786,9 @@ declare type Relationship = {
2752
2786
  memberships: {
2753
2787
  data: Membership[];
2754
2788
  };
2789
+ currently_entitled_tiers: {
2790
+ data?: Membership[];
2791
+ };
2755
2792
  };
2756
2793
 
2757
2794
  /**
@@ -3258,6 +3295,8 @@ export declare interface SuccessConfirmationOverlayPayload extends ConfirmationO
3258
3295
  confirmButtonText?: string;
3259
3296
  }
3260
3297
 
3298
+ export declare type SynchronizeUserTypeFunction = (payload: CreateUserPayload, tenantId: string, tenantUserId: string) => Promise<string>;
3299
+
3261
3300
  /**
3262
3301
  * @public
3263
3302
  */
@@ -3294,6 +3333,16 @@ export declare type Tier = {
3294
3333
  type: 'tier';
3295
3334
  };
3296
3335
 
3336
+ export declare interface TileApplicationData {
3337
+ id: string;
3338
+ name: Translation;
3339
+ description?: string;
3340
+ logo: string;
3341
+ urlHandle: string;
3342
+ organizationId: string;
3343
+ type: ApplicationType;
3344
+ }
3345
+
3297
3346
  /**
3298
3347
  * @public
3299
3348
  */