UNPKG

ngx-segment-analytics

Version:
31 lines (30 loc) 887 B
import { InjectionToken } from '@angular/core'; import type { Plugin } from '@segment/analytics-next'; /** * Segment Configuration Interface */ export interface SegmentConfig { /** API Key for Segment.io */ apiKey?: string; /** Debug mode status */ debug?: boolean; /** Load Segment configuration on initialization */ loadOnInitialization?: boolean; /** * Segment Host if requests are proxied * @deprecated Use cdnURL instead. **/ segmentHost?: string; /** * Segment Custom URI * @deprecated Use cdnURL instead. **/ segmentUri?: string; /** CDN host if requests are proxied */ cdnURL?: string; /** Plugins **/ plugins?: Plugin[]; } /** Segment Configuration Injection Token */ export declare const SEGMENT_CONFIG: InjectionToken<SegmentConfig>; export declare const DEFAULT_CONFIG: SegmentConfig;