n8n
Version:
n8n Workflow Automation Tool
37 lines (36 loc) • 1.19 kB
TypeScript
import { Logger } from '../Logger';
import { License } from '../License';
import { InternalHooks } from '../InternalHooks';
import { WorkflowRepository } from '../databases/repositories/workflow.repository';
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 internalHooks;
private readonly workflowRepository;
constructor(logger: Logger, license: License, internalHooks: InternalHooks, workflowRepository: WorkflowRepository);
getLicenseData(): Promise<{
usage: {
executions: {
value: number;
limit: number;
warningThreshold: number;
};
};
license: {
planId: string;
planName: string;
};
}>;
getManagementJwt(): string;
activateLicense(activationKey: string): Promise<void>;
renewLicense(): Promise<void>;
private mapErrorMessage;
}