🚧 remove mongoDB leftovers, adjust editorconfig

This commit is contained in:
Ben Hesseldieck 2021-03-09 12:45:17 +01:00
parent 80dfa75eb5
commit e043e89f7f
3 changed files with 19 additions and 14 deletions

View file

@ -3,6 +3,7 @@ root = true
[*] [*]
charset = utf-8 charset = utf-8
indent_style = tab indent_style = tab
indent_size = 2
end_of_line = lf end_of_line = lf
insert_final_newline = true insert_final_newline = true
trim_trailing_whitespace = true trim_trailing_whitespace = true

View file

@ -19,7 +19,6 @@ import {
import { ChildProcess } from 'child_process'; import { ChildProcess } from 'child_process';
import * as PCancelable from 'p-cancelable'; import * as PCancelable from 'p-cancelable';
import { ObjectID } from 'typeorm';
export class ActiveExecutions { export class ActiveExecutions {

View file

@ -20,7 +20,7 @@ import {
import * as PCancelable from 'p-cancelable'; import * as PCancelable from 'p-cancelable';
import { ObjectID, Repository } from 'typeorm'; import { Repository } from 'typeorm';
import { ChildProcess } from 'child_process'; import { ChildProcess } from 'child_process';
import { Url } from 'url'; import { Url } from 'url';
@ -62,7 +62,7 @@ export interface IDatabaseCollections {
} }
export interface IWebhookDb { export interface IWebhookDb {
workflowId: number | string | ObjectID; workflowId: number | string;
webhookPath: string; webhookPath: string;
method: string; method: string;
node: string; node: string;
@ -71,14 +71,19 @@ export interface IWebhookDb {
} }
export interface IWorkflowBase extends IWorkflowBaseWorkflow { export interface IWorkflowBase extends IWorkflowBaseWorkflow {
id?: number | string | ObjectID; id?: number | string;
}
export interface ITagDb {
id: number | string;
} }
// Almost identical to editor-ui.Interfaces.ts // Almost identical to editor-ui.Interfaces.ts
export interface IWorkflowDb extends IWorkflowBase { export interface IWorkflowDb extends IWorkflowBase {
id: number | string | ObjectID; id: number | string;
} }
export interface IWorkflowResponse extends IWorkflowBase { export interface IWorkflowResponse extends IWorkflowBase {
@ -99,7 +104,7 @@ export interface ICredentialsBase {
} }
export interface ICredentialsDb extends ICredentialsBase, ICredentialsEncrypted { export interface ICredentialsDb extends ICredentialsBase, ICredentialsEncrypted {
id: number | string | ObjectID; id: number | string;
} }
export interface ICredentialsResponse extends ICredentialsDb { export interface ICredentialsResponse extends ICredentialsDb {
@ -107,7 +112,7 @@ export interface ICredentialsResponse extends ICredentialsDb {
} }
export interface ICredentialsDecryptedDb extends ICredentialsBase, ICredentialsDecrypted { export interface ICredentialsDecryptedDb extends ICredentialsBase, ICredentialsDecrypted {
id: number | string | ObjectID; id: number | string;
} }
export interface ICredentialsDecryptedResponse extends ICredentialsDecryptedDb { export interface ICredentialsDecryptedResponse extends ICredentialsDecryptedDb {
@ -118,14 +123,14 @@ export type DatabaseType = 'mariadb' | 'postgresdb' | 'mysqldb' | 'sqlite';
export type SaveExecutionDataType = 'all' | 'none'; export type SaveExecutionDataType = 'all' | 'none';
export interface IExecutionBase { export interface IExecutionBase {
id?: number | string | ObjectID; id?: number | string;
mode: WorkflowExecuteMode; mode: WorkflowExecuteMode;
startedAt: Date; startedAt: Date;
stoppedAt?: Date; // empty value means execution is still running stoppedAt?: Date; // empty value means execution is still running
workflowId?: string; // To be able to filter executions easily // workflowId?: string; // To be able to filter executions easily //
finished: boolean; finished: boolean;
retryOf?: number | string | ObjectID; // If it is a retry, the id of the execution it is a retry of. retryOf?: number | string; // If it is a retry, the id of the execution it is a retry of.
retrySuccessId?: number | string | ObjectID; // If it failed and a retry did succeed. The id of the successful retry. retrySuccessId?: number | string; // If it failed and a retry did succeed. The id of the successful retry.
} }
// Data in regular format with references // Data in regular format with references
@ -155,7 +160,7 @@ export interface IExecutionFlatted extends IExecutionBase {
} }
export interface IExecutionFlattedDb extends IExecutionBase { export interface IExecutionFlattedDb extends IExecutionBase {
id: number | string | ObjectID; id: number | string;
data: string; data: string;
workflowData: IWorkflowBase; workflowData: IWorkflowBase;
} }
@ -398,7 +403,7 @@ export interface IWorkflowExecutionDataProcess {
executionMode: WorkflowExecuteMode; executionMode: WorkflowExecuteMode;
executionData?: IRunExecutionData; executionData?: IRunExecutionData;
runData?: IRunData; runData?: IRunData;
retryOf?: number | string | ObjectID; retryOf?: number | string;
sessionId?: string; sessionId?: string;
startNodes?: string[]; startNodes?: string[];
workflowData: IWorkflowBase; workflowData: IWorkflowBase;