-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathunleash-config.ts
38 lines (35 loc) · 1.22 KB
/
unleash-config.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
import { CustomHeaders, CustomHeadersFunction } from './headers';
import { Strategy } from './strategy';
import { ClientFeaturesResponse } from './feature';
import { HttpOptions } from './http-options';
import { TagFilter } from './tags';
import { BootstrapOptions } from './repository/bootstrap-provider';
import { StorageProvider } from './repository/storage-provider';
import { RepositoryInterface } from './repository';
export type Mode = { type: 'polling'; format: 'delta' | 'full' } | { type: 'streaming' };
export interface UnleashConfig {
appName: string;
environment?: string;
instanceId?: string;
url: string;
refreshInterval?: number;
projectName?: string;
metricsInterval?: number;
metricsJitter?: number;
namePrefix?: string;
disableMetrics?: boolean;
backupPath?: string;
strategies?: Strategy[];
customHeaders?: CustomHeaders;
customHeadersFunction?: CustomHeadersFunction;
timeout?: number;
repository?: RepositoryInterface;
httpOptions?: HttpOptions;
tags?: Array<TagFilter>;
bootstrap?: BootstrapOptions;
bootstrapOverride?: boolean;
storageProvider?: StorageProvider<ClientFeaturesResponse>;
disableAutoStart?: boolean;
skipInstanceCountWarning?: boolean;
experimentalMode?: Mode;
}