FetchFactsOptions
Defined in: facts.ts:112
Properties
Section titled “Properties”apiBase
Section titled “apiBase”apiBase:
string
Defined in: facts.ts:113
apiBaseProvenance?
Section titled “apiBaseProvenance?”
optionalapiBaseProvenance?:"explicit"|"key"
Defined in: facts.ts:122
Where apiBase came from; see FetchFragmentsOptions.apiBaseProvenance. Defaults to “explicit”.
campaignId?
Section titled “campaignId?”
optionalcampaignId?:string
Defined in: facts.ts:117
fetchImpl?
Section titled “fetchImpl?”
optionalfetchImpl?: (input,init?) =>Promise<Response>
Defined in: facts.ts:132
Test seam; defaults to the platform fetch.
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
organizationId
Section titled “organizationId”organizationId:
string
Defined in: facts.ts:114
products?
Section titled “products?”
optionalproducts?: readonlystring[]
Defined in: facts.ts:120
Product ids or handles, at most 20. Without them, a campaign’s or surface’s own products.
publishableKey?
Section titled “publishableKey?”
optionalpublishableKey?:string
Defined in: facts.ts:116
st_pk_…. Sent as Authorization: Bearer <key>.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: facts.ts:123
surfaceId?
Section titled “surfaceId?”
optionalsurfaceId?:string
Defined in: facts.ts:118
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?: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.