@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.
@@ -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 {};
@@ -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;