UNPKG

n8n

Version:

n8n Workflow Automation Tool

41 lines (40 loc) 1.42 kB
import { Logger } from '../Logger'; import { License } from '../License'; import { EventService } from '../events/event.service'; import type { User } from '../databases/entities/User'; import { WorkflowRepository } from '../databases/repositories/workflow.repository'; import { UrlService } from '../services/url.service'; export declare const LicenseErrors: { SCHEMA_VALIDATION: string; RESERVATION_EXHAUSTED: string; RESERVATION_EXPIRED: string; NOT_FOUND: string; RESERVATION_CONFLICT: string; RESERVATION_DUPLICATE: string; }; export declare class LicenseService { private readonly logger; private readonly license; private readonly workflowRepository; private readonly urlService; private readonly eventService; constructor(logger: Logger, license: License, workflowRepository: WorkflowRepository, urlService: UrlService, eventService: EventService); getLicenseData(): Promise<{ usage: { executions: { value: number; limit: number; warningThreshold: number; }; }; license: { planId: string; planName: string; }; }>; requestEnterpriseTrial(user: User): Promise<void>; getManagementJwt(): string; activateLicense(activationKey: string): Promise<void>; renewLicense(): Promise<void>; private mapErrorMessage; }