UNPKG

ltijs

Version:

Easily turn your web application into a LTI 1.3 Learning Tool.

28 lines (27 loc) • 1.35 kB
import type { LaunchContext } from '#services/launch/launch-context.service'; import type { Logger } from '#services/logger/logger.types'; import type { ContentItem, DeepLinkingOptions } from '#services/deep-linking/deep-linking.types'; export declare class DeepLinking { private readonly LOG_COMPONENT; private readonly RESPONSE_TTL_SECONDS; private readonly RESPONSE_MESSAGE_TYPE; private readonly DEEP_LINKING_SUBMISSION_FORM_TEMPLATE; private readonly CONTENT_ITEMS_CLAIM; private readonly MSG_CLAIM; private readonly ERROR_MSG_CLAIM; private readonly LOG_CLAIM; private readonly ERROR_LOG_CLAIM; private readonly DATA_CLAIM; private readonly launchContext; private readonly logger; constructor(launchContext: LaunchContext, logger: Logger); /** Whether this launch is a deep-linking launch. Check before calling any other method on this service. */ isAvailable(): boolean; createDeepLinkingMessage(contentItems: ContentItem | ContentItem[], options?: DeepLinkingOptions): Promise<string>; createDeepLinkingForm(contentItems: ContentItem | ContentItem[], options?: DeepLinkingOptions): Promise<string>; private signDeepLinkingMessage; private ensureServiceAvailability; private resolveDeepLinkingSettings; private filterContentItems; } export default DeepLinking;