UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

34 lines (33 loc) 980 B
export interface CurrentUserJourney { contentId: string; contentType: string; language?: string; timestamp: string; } export interface RequestParams { sections: string[]; query?: string; siteId?: string; language?: string; pageId?: string; isUserQuery?: boolean; variationId?: string; userJourneyData?: { currentUserJourney: CurrentUserJourney[]; subjectKey: string; source: string; }; } export interface SectionPayload { sectionData: any; sectionName: string; sectionType: string; } export type ErrorType = 'ServiceError' | 'QuotaExceeded' | 'NoContent'; export interface ErrorPayload { errorMessage?: string; errorType: ErrorType; } export declare class DGEServiceConnector { static fetchDataStream(params: RequestParams, onData?: (data: SectionPayload) => void, onError?: (error: ErrorPayload) => void, onComplete?: (collectedData: SectionPayload[]) => void): Promise<void>; }