@tivio/sdk-react 4.0.1 → 4.1.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.
@@ -393,7 +393,8 @@ export declare enum CUSTOMER_BUILD {
393
393
  MALL = "MALL",
394
394
  GARAZ = "GARAZ",
395
395
  U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
396
- INVESTOREES = "INVESTOREES"
396
+ INVESTOREES = "INVESTOREES",
397
+ DVTV = "DVTV"
397
398
  }
398
399
 
399
400
  /**
@@ -616,8 +617,8 @@ export declare interface IndexedVideo extends IndexedObject {
616
617
  isDraft: boolean;
617
618
  type: VideoType;
618
619
  contentType?: VideoContentType;
619
- name: string;
620
- description: string;
620
+ name: string | Translation;
621
+ description: string | Translation;
621
622
  hide: boolean;
622
623
  isDuplicate: boolean;
623
624
  externals?: VideoExternals;
@@ -706,9 +707,10 @@ export declare enum LangCode {
706
707
  DE = "de",
707
708
  EN = "en",
708
709
  FR = "fr",
710
+ IT = "it",
709
711
  PL = "pl",
710
712
  SK = "sk",
711
- SP = "sp"
713
+ ES = "es"
712
714
  }
713
715
 
714
716
  /**
@@ -800,6 +802,15 @@ export declare interface Marker {
800
802
  type: 'AD' | 'AD_SEGMENT' | 'START' | 'END' | 'INTRO';
801
803
  }
802
804
 
805
+ /**
806
+ * External information of video migrated via our Public API.
807
+ * @public
808
+ */
809
+ export declare interface MigratedVideoExternals {
810
+ externalVideoId: string;
811
+ additionalData: any;
812
+ }
813
+
803
814
  /**
804
815
  * @public
805
816
  */
@@ -864,6 +875,16 @@ export declare interface OktagonExternals {
864
875
  keyId?: string;
865
876
  }
866
877
 
878
+ /**
879
+ * Returns string union of optional keys for given type
880
+ * @internal
881
+ */
882
+ export declare type OptionalKeys<T> = {
883
+ [K in keyof T]-?: {} extends {
884
+ [P in K]: T[K];
885
+ } ? K : never;
886
+ }[keyof T];
887
+
867
888
  /**
868
889
  * @public
869
890
  */
@@ -1339,6 +1360,15 @@ export declare type RemoteProviderProps = {
1339
1360
  children: any;
1340
1361
  };
1341
1362
 
1363
+ /**
1364
+ * Makes optional attributes in given type to be required and nullable.
1365
+ * e.g. will make `attribute?: string` to be `attribute: string | null`
1366
+ * @internal
1367
+ */
1368
+ export declare type RequiredNullable<T> = {
1369
+ [P in keyof T]-?: P extends OptionalKeys<T> ? T[P] | null : T[P];
1370
+ };
1371
+
1342
1372
  /**
1343
1373
  * @public
1344
1374
  */
@@ -1350,6 +1380,7 @@ export declare interface RouterOverrides {
1350
1380
  goBack: () => void;
1351
1381
  goLivePlayer: (videoId: string) => void;
1352
1382
  goVodPlayer: (tvChannelId: string) => void;
1383
+ goToHome: () => void;
1353
1384
  }
1354
1385
 
1355
1386
  /**
@@ -2251,7 +2282,7 @@ declare type TransactionInfo = {
2251
2282
  * @public
2252
2283
  */
2253
2284
  export declare type Translation = {
2254
- [key in LangCode]: string;
2285
+ [key in LangCode]?: string;
2255
2286
  };
2256
2287
 
2257
2288
  /**
@@ -2657,6 +2688,9 @@ export declare enum VastProvider {
2657
2688
  GARAZ_TV_DEV = "garaz.tv.dev",
2658
2689
  IMPRESSION_MEDIA_PREBID = "impressionMedia-prebid",
2659
2690
  JOJ = "joj",
2691
+ JOJ_AD_MANAGER_VOD_PREROLL = "joj-ad-manager-vod-preroll",
2692
+ JOJ_AD_MANAGER_VOD_MIDROLL = "joj-ad-manager-vod-midroll",
2693
+ JOJ_AD_MANAGER_LIVE_PREROLL = "joj-ad-manager-live-preroll",
2660
2694
  MALL_TV = "malltv",
2661
2695
  MALL_TV_PREBID = "malltv-prebid",
2662
2696
  PRIMA = "prima",
@@ -2743,7 +2777,7 @@ export declare enum VideoContentType {
2743
2777
  /**
2744
2778
  * @public
2745
2779
  */
2746
- export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals;
2780
+ export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals;
2747
2781
 
2748
2782
  declare type VideoPath = string;
2749
2783
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "4.0.1",
3
+ "version": "4.1.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.96",
33
+ "@tivio/common": "1.1.97",
34
34
  "dayjs": "^1.11.0",
35
35
  "es7-object-polyfill": "^1.0.1",
36
36
  "firebase": "8.10.1",