@kontent-ai/core-sdk
Version:
Core package with shared / common functionality for Kontent.ai SDKs
36 lines (34 loc) • 1.12 kB
text/typescript
// biome-ignore lint/performance/noBarrelFile: One barrel for the public API is fine
export { getDefaultHttpAdapter } from "./http/http.adapter.js";
export { getDefaultHttpService } from "./http/http.service.js";
export { getSdkIdHeader } from "./utils/header.utils.js";
export { toRequiredRetryStrategyOptions } from "./utils/retry.utils.js";
export { tryCatch, tryCatchAsync } from "./utils/try.utils.js";
export { isKontent404Error } from "./utils/error.utils.js";
// Types
export type {
AdapterRequestOptions,
AdapterResponse,
DefaultHttpServiceConfig,
DownloadFileRequestOptions,
ExecuteRequestOptions,
HttpAdapter,
HttpResponse,
HttpService,
HttpServiceStatus,
UploadFileRequestOptions,
} from "./http/http.models.js";
export type {
Header,
HttpMethod,
RetryStrategyOptions,
SDKInfo,
CommonHeaderNames,
} from "./models/core.models.js";
export type {
CoreSdkError,
ErrorReason,
CoreSdkErrorDetails,
} from "./models/error.models.js";
export type { JsonArray, JsonObject, JsonValue } from "./models/json.models.js";
export type { EmptyObject, Override, Prettify } from "./models/utility.models.js";