-
Notifications
You must be signed in to change notification settings - Fork 11
/
AutoEnv.ts
53 lines (49 loc) · 1.38 KB
/
AutoEnv.ts
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
/* eslint-disable import/prefer-default-export */
/**
* Enable / disable Auto environment attributes. When enabled, the SDK will automatically
* provide data about the mobile environment where the application is running. This data makes it simpler to target
* your mobile customers based on application name or version, or on device characteristics including manufacturer,
* model, operating system, locale, and so on. We recommend enabling this when you configure the SDK. To learn more,
* read [Automatic environment attributes](https://docs.launchdarkly.com/sdk/features/environment-attributes).
* for more documentation.
*
* The default is disabled.
*/
export enum AutoEnvAttributes {
Disabled,
Enabled,
}
interface AutoEnvCommon {
/**
* Unique key for the context kind.
*/
key: string;
/**
* Version of the environment attributes schema being used.
*/
envAttributesVersion: string;
}
export interface LDApplication extends AutoEnvCommon {
/**
* Unique identifier of the application.
*/
id?: string;
name?: string;
version?: string;
versionName?: string;
locale?: string;
}
export interface LDDevice extends AutoEnvCommon {
manufacturer?: string;
model?: string;
storageBytes?: string;
memoryBytes?: string;
os?: {
/**
* The family of operating system.
*/
family?: string;
name?: string;
version?: string;
};
}