chore: Remove types folder of the backend package
This commit is contained in:
@@ -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;
|
|
@@ -1,10 +0,0 @@
|
|||||||
type AuthenticationStepField = {
|
|
||||||
name: string;
|
|
||||||
value: string | null;
|
|
||||||
fields?: {
|
|
||||||
name: string;
|
|
||||||
value: string | null;
|
|
||||||
}[];
|
|
||||||
};
|
|
||||||
|
|
||||||
export default AuthenticationStepField;
|
|
@@ -1,10 +0,0 @@
|
|||||||
import type { IAuthenticationStepField } from '@automatisch/types';
|
|
||||||
|
|
||||||
type AuthenticationStep = {
|
|
||||||
step: number;
|
|
||||||
type: string;
|
|
||||||
name: string;
|
|
||||||
fields: IAuthenticationStepField[];
|
|
||||||
};
|
|
||||||
|
|
||||||
export default AuthenticationStep;
|
|
@@ -1,8 +0,0 @@
|
|||||||
import { Request } from 'express';
|
|
||||||
import User from '../../models/user';
|
|
||||||
|
|
||||||
interface Context extends Request {
|
|
||||||
currentUser: User;
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Context;
|
|
14
packages/backend/src/types/field.d.ts
vendored
14
packages/backend/src/types/field.d.ts
vendored
@@ -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;
|
|
10
packages/backend/src/types/global.d.ts
vendored
10
packages/backend/src/types/global.d.ts
vendored
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@@ -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>;
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
declare module 'interfaces';
|
|
@@ -1,9 +0,0 @@
|
|||||||
type JSONValue = string | number | boolean | JSONObject | JSONArray;
|
|
||||||
|
|
||||||
interface JSONObject {
|
|
||||||
[x: string]: JSONValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
type JSONArray = Array<JSONValue>;
|
|
||||||
|
|
||||||
export default JSONObject;
|
|
@@ -1,4 +0,0 @@
|
|||||||
export enum StepType {
|
|
||||||
Trigger = 'trigger',
|
|
||||||
Action = 'action',
|
|
||||||
}
|
|
@@ -10,16 +10,12 @@
|
|||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"paths": {
|
"paths": {
|
||||||
"*": ["../../node_modules/*", "node_modules/*", "src/types/*"]
|
"*": ["../../node_modules/*", "node_modules/*"]
|
||||||
},
|
},
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"target": "es2021",
|
"target": "es2021",
|
||||||
"typeRoots": [
|
"typeRoots": ["node_modules/@types", "node_modules/@automatisch/types"]
|
||||||
"node_modules/@types",
|
|
||||||
"node_modules/@automatisch/types",
|
|
||||||
"./src/types"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"include": ["src/**/*", "bin/**/*"]
|
"include": ["src/**/*", "bin/**/*"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user