Skip to content

FetchFactsOptions

Defined in: facts.ts:112

apiBase: string

Defined in: facts.ts:113


optional apiBaseProvenance?: "explicit" | "key"

Defined in: facts.ts:122

Where apiBase came from; see FetchFragmentsOptions.apiBaseProvenance. Defaults to “explicit”.


optional campaignId?: string

Defined in: facts.ts:117


optional fetchImpl?: (input, init?) => Promise<Response>

Defined in: facts.ts:132

Test seam; defaults to the platform fetch.

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>


organizationId: string

Defined in: facts.ts:114


optional products?: readonly string[]

Defined in: facts.ts:120

Product ids or handles, at most 20. Without them, a campaign’s or surface’s own products.


optional publishableKey?: string

Defined in: facts.ts:116

st_pk_…. Sent as Authorization: Bearer <key>.


optional signal?: AbortSignal

Defined in: facts.ts:123


optional surfaceId?: string

Defined in: facts.ts:118


optional timeoutMs?: number

Defined in: facts.ts:130

How long the call waits for the whole answer, in milliseconds. Default 10000. Past it the request is stopped and the call resolves with reason: "timeout". 0 or Infinity waits for as long as the connection stays open.