@tivio/sdk-react 9.0.0-alpha.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.
@@ -0,0 +1,40 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation.
3
+
4
+ Permission to use, copy, modify, and/or distribute this software for any
5
+ purpose with or without fee is hereby granted.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
+ PERFORMANCE OF THIS SOFTWARE.
14
+ ***************************************************************************** */
15
+
16
+ /**
17
+ * A better abstraction over CSS.
18
+ *
19
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
20
+ * @website https://github.com/cssinjs/jss
21
+ * @license MIT
22
+ */
23
+
24
+ /** @license React v16.13.1
25
+ * react-is.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */
32
+
33
+ /** @license React v17.0.2
34
+ * react-is.production.min.js
35
+ *
36
+ * Copyright (c) Facebook, Inc. and its affiliates.
37
+ *
38
+ * This source code is licensed under the MIT license found in the
39
+ * LICENSE file in the root directory of this source tree.
40
+ */
@@ -743,6 +743,16 @@ export declare const createRemotePackageLoader: () => (secret: string, conf: Int
743
743
  */
744
744
  export declare const createUseRemoteBundle: () => (conf: InternalConfig) => RemoteBundleState;
745
745
 
746
+ export declare interface CreateUserPayload {
747
+ displayName?: string;
748
+ email?: string;
749
+ emailVerified?: boolean;
750
+ password?: string;
751
+ referralToken?: string;
752
+ username?: string;
753
+ phoneNumber?: string;
754
+ }
755
+
746
756
  /**
747
757
  * @public
748
758
  */
@@ -839,6 +849,9 @@ export declare type Customizations = {
839
849
  borderBottom: string;
840
850
  color?: string;
841
851
  };
852
+ Footer: {
853
+ backgroundColor: string;
854
+ };
842
855
  VideoDetail: {
843
856
  Banner: {
844
857
  title: {
@@ -1444,6 +1457,10 @@ export declare interface IndexedTag extends IndexedObject {
1444
1457
  created: Date;
1445
1458
  name: Translation;
1446
1459
  description?: string;
1460
+ /**
1461
+ * True if the tag is available in Tivio Pro (StarMe)
1462
+ */
1463
+ isTivioPro: boolean;
1447
1464
  }
1448
1465
 
1449
1466
  /**
@@ -1485,6 +1502,14 @@ export declare interface IndexedVideo extends IndexedObject {
1485
1502
  hide: boolean;
1486
1503
  isDuplicate: boolean;
1487
1504
  externals?: VideoExternals;
1505
+ /**
1506
+ * Duration of the video in ms
1507
+ */
1508
+ duration?: number;
1509
+ /**
1510
+ * True if the video is available in Tivio Pro (StarMe)
1511
+ */
1512
+ isTivioPro: boolean;
1488
1513
  }
1489
1514
 
1490
1515
  /**
@@ -2685,6 +2710,10 @@ export declare type PurchaseEndpointPayload = {
2685
2710
  * Purchase status after change.
2686
2711
  */
2687
2712
  newStatus: PurchaseStatus;
2713
+ /**
2714
+ * Id of the original (first) purchase of reoccurring payments.
2715
+ */
2716
+ originalPurchaseId?: string;
2688
2717
  /**
2689
2718
  * Purchase status before change.
2690
2719
  */
@@ -2933,6 +2962,9 @@ declare type Relationship = {
2933
2962
  memberships: {
2934
2963
  data: Membership[];
2935
2964
  };
2965
+ currently_entitled_tiers: {
2966
+ data?: Membership[];
2967
+ };
2936
2968
  };
2937
2969
 
2938
2970
  /**
@@ -3448,6 +3480,8 @@ export declare interface SuccessConfirmationOverlayPayload extends ConfirmationO
3448
3480
  confirmButtonText?: string;
3449
3481
  }
3450
3482
 
3483
+ export declare type SynchronizeUserTypeFunction = (payload: CreateUserPayload, tenantId: string, tenantUserId: string) => Promise<string>;
3484
+
3451
3485
  /**
3452
3486
  * @public
3453
3487
  */
@@ -3484,6 +3518,16 @@ export declare type Tier = {
3484
3518
  type: 'tier';
3485
3519
  };
3486
3520
 
3521
+ export declare interface TileApplicationData {
3522
+ id: string;
3523
+ name: Translation;
3524
+ description?: string;
3525
+ logo: string;
3526
+ urlHandle: string;
3527
+ organizationId: string;
3528
+ type: ApplicationType;
3529
+ }
3530
+
3487
3531
  /**
3488
3532
  * @internal
3489
3533
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "9.0.0-alpha.0",
3
+ "version": "9.0.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "source": "src/index.ts",
@@ -34,7 +34,7 @@
34
34
  "@material-ui/core": "^4.11.2",
35
35
  "@material-ui/icons": "^4.11.2",
36
36
  "@sentry/browser": "^6.1.0",
37
- "@tivio/common": "1.1.117",
37
+ "@tivio/common": "1.1.118",
38
38
  "dayjs": "^1.11.0",
39
39
  "es7-object-polyfill": "^1.0.1",
40
40
  "firebase": "8.10.1",
@@ -42,7 +42,6 @@
42
42
  "mobx": "^6.0.4",
43
43
  "mobx-react": "^7.1.0",
44
44
  "react-router-dom": "^5.3.4",
45
- "react-spring": "^9.2.4",
46
45
  "react-virtualized": "^9.22.3",
47
46
  "styled-components": "^5.2.1",
48
47
  "whatwg-fetch": "^3.6.2",