UNPKG

scrivito-pisasales-questionnaire-builder

Version:
29 lines 1.14 kB
export type BackendConnectionData = { apiUrl: string | null; token: string | null; }; export type BackendConnection = BackendConnectionData | Promise<BackendConnectionData>; export type Options = { connection: BackendConnection; }; /** * Initialize Questionnaire Widgets * @param options Configuration options. * @param options.connection Connection data (or a promise resolving to it). * Use an `async` function on the consumer side and pass `connection: yourFn()`. * - `apiUrl`: The PisaSales backend URL, or `null` if unavailable. * - `token`: Optional JWT token for public/token access, or `null`. * * Notes: * - If a `token` is provided but the user is logged in, the token is ignored. * - `apiUrl` is normalized to include `/salesportal`. */ export declare const initPisaSalesQuestionnaireWidgets: (options: Options) => Promise<void>; /** * Get the configured Pisa URL * @returns Pisa URL string */ export declare const getPisaUrl: () => string; export declare const getJwtToken: () => string | null; export declare const getPisaInitDispatched: () => boolean; //# sourceMappingURL=scrivitoConfig.d.ts.map