|
| 1 | +## API Report File for "@datadog/js-core" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +// @public |
| 8 | +export function buildEndpointUrl(input: BuildEndpointUrlOptions): string; |
| 9 | + |
| 10 | +// @public |
| 11 | +export interface BuildEndpointUrlOptions { |
| 12 | + parameters?: string; |
| 13 | + path: string; |
| 14 | + proxy?: string | ProxyFn; |
| 15 | + site: Site | undefined; |
| 16 | + subdomain?: string; |
| 17 | +} |
| 18 | + |
| 19 | +// @public |
| 20 | +export function createEndpointBuilder(configuration: EndpointBuilderConfiguration, trackType: TrackType, extraParameters?: string[]): EndpointBuilder; |
| 21 | + |
| 22 | +// @public |
| 23 | +export function createReplicaEndpointBuilder(input: ConfigurationWithReplica, trackType: TrackType): EndpointBuilder | undefined; |
| 24 | + |
| 25 | +// @public |
| 26 | +export interface EndpointBuilder { |
| 27 | + build(api: TransportApiType, payload: EndpointPayload): string; |
| 28 | + trackType: TrackType; |
| 29 | +} |
| 30 | + |
| 31 | +// @public |
| 32 | +export interface EndpointPayload { |
| 33 | + encoding?: 'deflate'; |
| 34 | + retry?: TransportRetryInfo; |
| 35 | +} |
| 36 | + |
| 37 | +// @public |
| 38 | +export const INTAKE_SITE_EU1: Site; |
| 39 | + |
| 40 | +// @public |
| 41 | +export const INTAKE_SITE_STAGING: Site; |
| 42 | + |
| 43 | +// @public |
| 44 | +export const INTAKE_SITE_US1: Site; |
| 45 | + |
| 46 | +// @public |
| 47 | +export const INTAKE_SITE_US1_FED: Site; |
| 48 | + |
| 49 | +// @public |
| 50 | +export const INTAKE_SITE_US2_FED: Site; |
| 51 | + |
| 52 | +// @public |
| 53 | +export const INTAKE_URL_PARAMETERS: string[]; |
| 54 | + |
| 55 | +// @public |
| 56 | +export function isIntakeUrl(url: string): boolean; |
| 57 | + |
| 58 | +// @public |
| 59 | +export type ProxyFn = (options: { |
| 60 | + path: string; |
| 61 | + parameters: string; |
| 62 | + subdomain?: string; |
| 63 | +}) => string; |
| 64 | + |
| 65 | +// @public |
| 66 | +export type Site = 'datadoghq.com' | 'us3.datadoghq.com' | 'us5.datadoghq.com' | 'datadoghq.eu' | 'ddog-gov.com' | 'us2.ddog-gov.com' | 'ap1.datadoghq.com' | 'ap2.datadoghq.com' | (string & {}); |
| 67 | + |
| 68 | +// @public |
| 69 | +export type TrackType = 'logs' | 'rum' | 'replay' | 'profile' | 'exposures' | 'flagevaluation' | 'debugger'; |
| 70 | + |
| 71 | +// @public |
| 72 | +export type TransportApiType = 'fetch' | 'beacon' | 'manual'; |
| 73 | + |
| 74 | +// @public |
| 75 | +export interface TransportRetryInfo { |
| 76 | + count: number; |
| 77 | + lastFailureStatus: number; |
| 78 | +} |
| 79 | + |
| 80 | +// @public |
| 81 | +export type TransportSource = 'browser' | 'flutter' | 'unity' | 'dd_debugger'; |
| 82 | + |
| 83 | +// (No @packageDocumentation comment for this package) |
| 84 | + |
| 85 | +``` |
0 commit comments