@splitbee/core
Advanced tools
Comparing version 0.2.6 to 0.2.7
export declare type Device = { | ||
os: { | ||
name: 'ios' | 'android'; | ||
name: string; | ||
version: string; | ||
@@ -22,3 +22,3 @@ }; | ||
userAgent?: string; | ||
device?: {}; | ||
device?: Device; | ||
} | ||
@@ -25,0 +25,0 @@ interface GenericRequest { |
@@ -1,2 +0,2 @@ | ||
import { RequestContext, JSONType, EventOptions, setEndpoint } from './api'; | ||
import { RequestContext, JSONType, EventOptions, setEndpoint, Response } from './api'; | ||
export declare const analytics: { | ||
@@ -8,3 +8,3 @@ track: ({ event, data, context, options, }: { | ||
options?: EventOptions | undefined; | ||
}) => Promise<import("./api").Response | undefined>; | ||
}) => Promise<Response | undefined>; | ||
page: ({ page, data, context, options, }: { | ||
@@ -18,7 +18,7 @@ page: string; | ||
options?: EventOptions | undefined; | ||
}) => Promise<import("./api").Response | undefined>; | ||
}) => Promise<Response | undefined>; | ||
identify: ({ userData, context, }: { | ||
userData: JSONType; | ||
context: RequestContext; | ||
}) => Promise<import("./api").Response | undefined>; | ||
}) => Promise<Response | undefined>; | ||
end: ({ requestId, data, context, }: { | ||
@@ -31,4 +31,4 @@ requestId: string; | ||
context: RequestContext; | ||
}) => Promise<import("./api").Response | undefined>; | ||
}) => Promise<Response | undefined>; | ||
}; | ||
export { RequestContext, JSONType, setEndpoint }; | ||
export { RequestContext, JSONType, Response, setEndpoint }; |
{ | ||
"name": "@splitbee/core", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
export type Device = { | ||
os: { name: 'ios' | 'android'; version: string }; | ||
os: { name: string; version: string }; | ||
client: { | ||
@@ -17,19 +17,2 @@ name: string; //'Opera'; | ||
// const test : Device = { | ||
// os: { | ||
// name:"ios", | ||
// version: "14.1.0" | ||
// }, | ||
// client: { | ||
// name:'Api', | ||
// type:"app", | ||
// version: "12.12.12" | ||
// }, | ||
// device: { | ||
// type:"phone", | ||
// brand:"apple", | ||
// model:"" | ||
// } | ||
// } | ||
export interface RequestContext { | ||
@@ -40,3 +23,3 @@ projectId?: string; | ||
userAgent?: string; | ||
device?: {}; | ||
device?: Device; | ||
} | ||
@@ -43,0 +26,0 @@ interface GenericRequest { |
@@ -7,2 +7,3 @@ import { | ||
setEndpoint, | ||
Response, | ||
} from './api'; | ||
@@ -89,2 +90,2 @@ | ||
export { RequestContext, JSONType, setEndpoint }; | ||
export { RequestContext, JSONType, Response, setEndpoint }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
111640
596