-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
65 lines (58 loc) · 1.48 KB
/
index.d.ts
File metadata and controls
65 lines (58 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
declare module "react-native-data-cortex" {
namespace DataCortexApi {
export interface LogProps {
log_line: string,
hostname?: string,
filename?: string,
log_level?: string,
device_tag?: string,
user_tag?: string,
device_type?: string,
os?: string,
os_ver?: string,
browser?: string,
browser_ver?: string,
country?: string,
language?: string,
response_ms?: number,
response_bytes?: number,
}
export interface EventProps {
kingdom?: string,
phylum?: string,
class?: string,
order?: string,
family?: string,
genus?: string,
species?: string,
float1?: number,
float2?: number,
float3?: number,
float4?: number,
}
export interface EconomyProps {
spendCurrency: string,
spendAmount: number,
spendType?: string,
spend_type?: string,
kingdom?: string,
phylum?: string,
class?: string,
order?: string,
family?: string,
genus?: string,
species?: string,
float1?: number,
float2?: number,
float3?: number,
float4?: number,
}
function init(api_key: string,org_name: string): void
function addUserTag(user_tag: string): void
function event(props: EventProps): void
function economyEvent(props: EconomyProps): void
function log(...args: any[]): void
function logEvent(props: LogProps): void
}
export default DataCortexApi
}