Options
All
  • Public
  • Public/Protected
  • All
Menu

dc-delivery-sdk-js

Index

Type aliases

ContentClientConfig

ContentClientConfig: ContentClientConfigV1
deprecated

use ContentClientConfigV1

FetchRequest

FetchRequest: { parameters?: RequestOptions; requests: Array<FetchRequestWithId | FetchRequestWithKey> }

Type declaration

FetchRequestWithId

FetchRequestWithId: { id: string }

Type declaration

  • id: string

FetchRequestWithKey

FetchRequestWithKey: { key: string }

Type declaration

  • key: string

FetchResponse

FetchResponse<Body>: { responses: Array<ContentItemResponse<Body> | { error: ContentNotFoundError }> }

Type parameters

  • Body

Type declaration

IOrder

IOrder: "DESC" | "ASC"

RequiredContentReference

RequiredContentReference<T>: T & { _meta?: { schema: string }; contentType?: string; id: string }

Required params for creating an content reference

Type parameters

  • T: Record<string, unknown>

Functions

dataToMessage

  • dataToMessage(data: any): string

Const isThrottled

  • isThrottled(error: any): boolean

Object literals

Const DEFAULT_RETRY_CONFIG

DEFAULT_RETRY_CONFIG: object

retries

retries: number = 3

retryCondition

retryCondition: isThrottled = isThrottled

retryDelay

retryDelay: exponentialDelay = axiosRetry.exponentialDelay

Const DefaultStagingEnvironmentFactoryConfig

DefaultStagingEnvironmentFactoryConfig: object

Default StagingEnvironmentFactoryConfig values

baseUrl

baseUrl: string = "https://virtual-staging.amplience.net"

Generated using TypeDoc