@sberdevices/ad-sdk-types
Advanced tools
Comparing version 1.0.3-canary.19790.0694a7def59dabed4f3a4cf80bc85b49834da83f.0 to 1.0.3-canary.19790.0df5a9461bd5266f0653b44a590199027749943e.0
@@ -1,21 +0,4 @@ | ||
export declare enum DeviceType { | ||
mobile = "2", | ||
sberPortal = "3", | ||
smartTv = "5", | ||
wearable = "6", | ||
embedded = "7" | ||
} | ||
export interface SSPParams { | ||
device_type: DeviceType; | ||
secure: '1'; | ||
winh: number; | ||
winw: number; | ||
url: string; | ||
pad_id: number; | ||
block_id: number; | ||
jparams: string; | ||
external_ids: string; | ||
} | ||
export interface SimpleInitParams { | ||
test?: boolean; | ||
cooldownTime?: number; | ||
onSuccess?(): void; | ||
@@ -49,5 +32,11 @@ onError?(err: Error): void; | ||
onAdReady?(): void; | ||
onEvent?(eventName: InlineVideoEventName): void; | ||
} | ||
export declare function runVideoAdInline(params: RunVideoAdInlineParams): void; | ||
export declare function runVideoAd(params: RunVideoAdInlineParams): void; | ||
export interface RunBannerEvents { | ||
onSuccess?(): void; | ||
onError?(err: Error): void; | ||
onEmptyResponse?(): void; | ||
onAdReady?(): void; | ||
} | ||
export declare function runBanner(events: RunBannerEvents): void; | ||
export interface CreateInlineBannerParams { | ||
@@ -59,5 +48,4 @@ container: HTMLElement; | ||
onEmptyResponse?(): void; | ||
onClick?(): void; | ||
} | ||
export declare function createInlineBanner(params: CreateInlineBannerParams): void; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DeviceType = void 0; | ||
var DeviceType; | ||
(function (DeviceType) { | ||
DeviceType["mobile"] = "2"; | ||
DeviceType["sberPortal"] = "3"; | ||
DeviceType["smartTv"] = "5"; | ||
DeviceType["wearable"] = "6"; | ||
DeviceType["embedded"] = "7"; | ||
})(DeviceType = exports.DeviceType || (exports.DeviceType = {})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sberdevices/ad-sdk-types", | ||
"version": "1.0.3-canary.19790.0694a7def59dabed4f3a4cf80bc85b49834da83f.0", | ||
"version": "1.0.3-canary.19790.0df5a9461bd5266f0653b44a590199027749943e.0", | ||
"description": "SberDevices Ad SDK types", | ||
"main": "src/index.ts", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"scripts": { | ||
"build": "tsc", | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
"test:watch": "jest --watch", | ||
"build:storybook": "tsc" | ||
}, | ||
@@ -24,3 +26,6 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>", | ||
"typescript": "4.7.3" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5180
9
54