chore: Remove types folder of the backend package

This commit is contained in:
Faruk AYDIN
2024-01-08 15:53:41 +01:00
parent 9cddef9108
commit 8983a3c581
11 changed files with 2 additions and 95 deletions

View File

@@ -1,14 +0,0 @@
import FieldType from './field';
import AuthenticationStepType from './authentication-step';
type AppInfo = {
name: string;
key: string;
iconUrl: string;
docUrl: string;
primaryColor: string;
fields: FieldType[];
authenticationSteps?: AuthenticationStepType[];
};
export default AppInfo;

View File

@@ -1,10 +0,0 @@
type AuthenticationStepField = {
name: string;
value: string | null;
fields?: {
name: string;
value: string | null;
}[];
};
export default AuthenticationStepField;

View File

@@ -1,10 +0,0 @@
import type { IAuthenticationStepField } from '@automatisch/types';
type AuthenticationStep = {
step: number;
type: string;
name: string;
fields: IAuthenticationStepField[];
};
export default AuthenticationStep;

View File

@@ -1,8 +0,0 @@
import { Request } from 'express';
import User from '../../models/user';
interface Context extends Request {
currentUser: User;
}
export default Context;

View File

@@ -1,14 +0,0 @@
type Field = {
key: string;
label: string;
type: string;
required: boolean;
readOnly: boolean;
value: string;
placeholder: string | null;
description: string;
docUrl: string;
clickToCopy: boolean;
};
export default Field;

View File

@@ -1,10 +0,0 @@
import { Knex } from 'knex';
declare global {
declare namespace globalThis {
// eslint-disable-next-line no-var
var knexInstance: Knex;
// eslint-disable-next-line no-var
var knex: Knex.Transaction;
}
}

View File

@@ -1,9 +0,0 @@
import type { IApp, IJSONObject } from '@automatisch/types';
export default interface AuthenticationInterface {
appData: IApp;
connectionData: IJSONObject;
client: unknown;
verifyCredentials(): Promise<IJSONObject>;
isStillVerified(): Promise<boolean>;
}

View File

@@ -1 +0,0 @@
declare module 'interfaces';

View File

@@ -1,9 +0,0 @@
type JSONValue = string | number | boolean | JSONObject | JSONArray;
interface JSONObject {
[x: string]: JSONValue;
}
type JSONArray = Array<JSONValue>;
export default JSONObject;

View File

@@ -1,4 +0,0 @@
export enum StepType {
Trigger = 'trigger',
Action = 'action',
}

View File

@@ -10,16 +10,12 @@
"noImplicitAny": false,
"outDir": "dist",
"paths": {
"*": ["../../node_modules/*", "node_modules/*", "src/types/*"]
"*": ["../../node_modules/*", "node_modules/*"]
},
"skipLibCheck": true,
"sourceMap": true,
"target": "es2021",
"typeRoots": [
"node_modules/@types",
"node_modules/@automatisch/types",
"./src/types"
]
"typeRoots": ["node_modules/@types", "node_modules/@automatisch/types"]
},
"include": ["src/**/*", "bin/**/*"]
}