@tivio/sdk-react 9.0.0-alpha.0 → 9.0.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,13 @@ 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.0.0
10
10
  * patch: remove i18next and react-i18next from externals and dependencies
11
- * major: purchase refactor
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
12
16
 
13
17
  * 8.0.0
14
18
  * major: deprecated usePurchasesWithVideos hook removed
package/README.md.bak CHANGED
@@ -6,9 +6,13 @@ 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.0.0
10
10
  * patch: remove i18next and react-i18next from externals and dependencies
11
- * major: purchase refactor
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
12
16
 
13
17
  * 8.0.0
14
18
  * 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
  */
@@ -1280,6 +1290,10 @@ export declare interface IndexedTag extends IndexedObject {
1280
1290
  created: Date;
1281
1291
  name: Translation;
1282
1292
  description?: string;
1293
+ /**
1294
+ * True if the tag is available in Tivio Pro (StarMe)
1295
+ */
1296
+ isTivioPro: boolean;
1283
1297
  }
1284
1298
 
1285
1299
  /**
@@ -1321,6 +1335,14 @@ export declare interface IndexedVideo extends IndexedObject {
1321
1335
  hide: boolean;
1322
1336
  isDuplicate: boolean;
1323
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;
1324
1346
  }
1325
1347
 
1326
1348
  /**
@@ -2504,6 +2526,10 @@ export declare type PurchaseEndpointPayload = {
2504
2526
  * Purchase status after change.
2505
2527
  */
2506
2528
  newStatus: PurchaseStatus;
2529
+ /**
2530
+ * Id of the original (first) purchase of reoccurring payments.
2531
+ */
2532
+ originalPurchaseId?: string;
2507
2533
  /**
2508
2534
  * Purchase status before change.
2509
2535
  */
@@ -2752,6 +2778,9 @@ declare type Relationship = {
2752
2778
  memberships: {
2753
2779
  data: Membership[];
2754
2780
  };
2781
+ currently_entitled_tiers: {
2782
+ data?: Membership[];
2783
+ };
2755
2784
  };
2756
2785
 
2757
2786
  /**
@@ -3258,6 +3287,8 @@ export declare interface SuccessConfirmationOverlayPayload extends ConfirmationO
3258
3287
  confirmButtonText?: string;
3259
3288
  }
3260
3289
 
3290
+ export declare type SynchronizeUserTypeFunction = (payload: CreateUserPayload, tenantId: string, tenantUserId: string) => Promise<string>;
3291
+
3261
3292
  /**
3262
3293
  * @public
3263
3294
  */
@@ -3294,6 +3325,16 @@ export declare type Tier = {
3294
3325
  type: 'tier';
3295
3326
  };
3296
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
+
3297
3338
  /**
3298
3339
  * @public
3299
3340
  */