@tivio/sdk-js 2.3.1 → 2.3.3-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +17 -1
- package/dist/index.d.ts +2359 -7
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1457 -6
- package/dist/sdk-js.d.ts +2367 -0
- package/package.json +18 -22
- package/scripts/typesRollup.ts +28 -0
- package/dist/api.types.d.ts +0 -303
- package/dist/conf.d.ts +0 -59
- package/dist/conf.test.d.ts +0 -1
- package/dist/customPlayer.types.d.ts +0 -36
- package/dist/services/bundleLoader.d.ts +0 -29
- package/dist/services/bundleLoader.test.d.ts +0 -1
- package/dist/services/dependencyResolver.d.ts +0 -12
- package/dist/services/dependencyResolver.test.d.ts +0 -1
- package/dist/services/getProgramTimestamps.d.ts +0 -6
- package/dist/services/logger.d.ts +0 -28
- package/dist/services/logger.test.d.ts +0 -1
- package/dist/services/packageLoader.d.ts +0 -6
- package/dist/services/packageLoader.test.d.ts +0 -1
- package/dist/services/playerWrapper.d.ts +0 -28
- package/dist/services/playerWrapperInternal.d.ts +0 -28
- package/dist/services/settings.d.ts +0 -17
- package/dist/services/settings.test.d.ts +0 -1
- package/dist/setupTests.d.ts +0 -20
- package/dist/types.d.ts +0 -12
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
3
|
-
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* The settings can be called before Tivio is loaded.
|
7
|
-
* So this package is responsible for settings from the beginning of the life cycle.
|
8
|
-
*/
|
9
|
-
import { InternalConf } from '../conf';
|
10
|
-
export declare type Settings = {
|
11
|
-
onSetUser: (handler: (userId: string, userPayload: unknown) => void) => void;
|
12
|
-
setUser: (userId: string, userPayload: unknown) => void;
|
13
|
-
};
|
14
|
-
export declare const createSettings: (conf: InternalConf) => {
|
15
|
-
onSetUser: (handler: (userId: string, userPayload: unknown) => void) => void;
|
16
|
-
setUser: (userId: string, userPayload: unknown) => void;
|
17
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/dist/setupTests.d.ts
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
export declare const fetch: import("jest-fetch-mock").FetchMock;
|
2
|
-
export declare const loggerMock: {
|
3
|
-
error: {
|
4
|
-
(...data: any[]): void;
|
5
|
-
(message?: any, ...optionalParams: any[]): void;
|
6
|
-
};
|
7
|
-
info: {
|
8
|
-
(...data: any[]): void;
|
9
|
-
(message?: any, ...optionalParams: any[]): void;
|
10
|
-
};
|
11
|
-
warn: {
|
12
|
-
(...data: any[]): void;
|
13
|
-
(message?: any, ...optionalParams: any[]): void;
|
14
|
-
};
|
15
|
-
debug: {
|
16
|
-
(...data: any[]): void;
|
17
|
-
(message?: any, ...optionalParams: any[]): void;
|
18
|
-
};
|
19
|
-
exception: (error: any) => never;
|
20
|
-
};
|
package/dist/types.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
3
|
-
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
4
|
-
*/
|
5
|
-
/**
|
6
|
-
* Export public client side API
|
7
|
-
*/
|
8
|
-
import { InternalConf } from './conf';
|
9
|
-
export { PlayerCapability } from './conf';
|
10
|
-
export declare type Conf = Pick<InternalConf, 'bundleUrlOverride' | 'capabilitiesOptions' | 'deviceCapabilities' | 'enableSentry' | 'forceCloudFnResolver' | 'language' | 'logger' | 'secret' | 'verbose'>;
|
11
|
-
export declare type Empty = Promise<void> | void;
|
12
|
-
export declare type Disposer = () => void;
|