@tivio/sdk-react 3.6.3 → 3.7.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.
@@ -1033,18 +1033,26 @@ export declare interface PubSub {
1033
1033
  * @public
1034
1034
  */
1035
1035
  export declare type Purchase = {
1036
+ /**
1037
+ * Timestamp of the purchase creation in milliseconds.
1038
+ */
1039
+ created: number | null;
1040
+ expirationDate: Date | null;
1036
1041
  id: string;
1042
+ isExpired: boolean;
1037
1043
  isPurchased: boolean;
1038
- monetizationRef: any | null;
1039
1044
  monetization: PurchaseMonetization | null;
1040
1045
  monetizationId: string | null;
1041
- type: MonetizationType | null;
1042
- videoId: string | null;
1046
+ monetizationRef: any | null;
1043
1047
  status: PurchaseStatus | null;
1048
+ type: MonetizationType | null;
1049
+ /**
1050
+ * Timestamp of the last purchase status update in milliseconds.
1051
+ */
1052
+ updated: number | null;
1044
1053
  video: Video | null;
1054
+ videoId: string | null;
1045
1055
  videoRef: any | null;
1046
- expirationDate: Date | null;
1047
- isExpired: boolean;
1048
1056
  voucherId?: string;
1049
1057
  };
1050
1058
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "3.6.3",
3
+ "version": "3.7.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "source": "src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "@material-ui/core": "^4.11.2",
31
31
  "@material-ui/icons": "^4.11.2",
32
32
  "@sentry/browser": "^6.1.0",
33
- "@tivio/common": "1.1.93",
33
+ "@tivio/common": "1.1.94",
34
34
  "dayjs": "^1.11.0",
35
35
  "es7-object-polyfill": "^1.0.1",
36
36
  "firebase": "8.10.1",