mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
* store n8n version string in a const and use that everywhere * reduce code duplication between Server and WebhookServer * unify redis checks * fix linting
34 lines
767 B
TypeScript
34 lines
767 B
TypeScript
import { Application } from 'express';
|
|
import type { ActiveWorkflowRunner } from '@/ActiveWorkflowRunner';
|
|
import type { IExternalHooksClass, IPersonalizationSurveyAnswers } from '@/Interfaces';
|
|
|
|
export interface JwtToken {
|
|
token: string;
|
|
expiresIn: number;
|
|
}
|
|
|
|
export interface JwtPayload {
|
|
id: string;
|
|
email: string | null;
|
|
password: string | null;
|
|
}
|
|
|
|
export interface PublicUser {
|
|
id: string;
|
|
email?: string;
|
|
firstName?: string;
|
|
lastName?: string;
|
|
personalizationAnswers?: IPersonalizationSurveyAnswers | null;
|
|
password?: string;
|
|
passwordResetToken?: string;
|
|
createdAt: Date;
|
|
isPending: boolean;
|
|
}
|
|
|
|
export interface N8nApp {
|
|
app: Application;
|
|
restEndpoint: string;
|
|
externalHooks: IExternalHooksClass;
|
|
activeWorkflowRunner: ActiveWorkflowRunner;
|
|
}
|