mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Integrate consistent-type-imports in nodes-base (no-changelog) (#5267)
* 👕 Enable `consistent-type-imports` for nodes-base * 👕 Apply to nodes-base * ⏪ Undo unrelated changes * 🚚 Move to `.eslintrc.js` in nodes-base * ⏪ Revert "Enable `consistent-type-imports` for nodes-base" This reverts commit 529ad72b051478fa1633aaf84b2864f2fdc7613c. * 👕 Fix severity
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const clientOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
@@ -11,11 +11,11 @@ import {
|
||||
|
||||
import { clockifyApiRequest, clockifyApiRequestAllItems } from './GenericFunctions';
|
||||
|
||||
import { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
|
||||
import type { IClientDto, IWorkspaceDto } from './WorkpaceInterfaces';
|
||||
|
||||
import { IUserDto } from './UserDtos';
|
||||
import type { IUserDto } from './UserDtos';
|
||||
|
||||
import { IProjectDto } from './ProjectInterfaces';
|
||||
import type { IProjectDto } from './ProjectInterfaces';
|
||||
|
||||
import { clientFields, clientOperations } from './ClientDescription';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import moment from 'moment-timezone';
|
||||
|
||||
import { IPollFunctions } from 'n8n-core';
|
||||
import {
|
||||
import type { IPollFunctions } from 'n8n-core';
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
@@ -13,8 +13,8 @@ import {
|
||||
import { clockifyApiRequest } from './GenericFunctions';
|
||||
|
||||
import { EntryTypeEnum } from './EntryTypeEnum';
|
||||
import { IUserDto } from './UserDtos';
|
||||
import { IWorkspaceDto } from './WorkpaceInterfaces';
|
||||
import type { IUserDto } from './UserDtos';
|
||||
import type { IWorkspaceDto } from './WorkpaceInterfaces';
|
||||
|
||||
export class ClockifyTrigger implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { OptionsWithUri } from 'request';
|
||||
import type { OptionsWithUri } from 'request';
|
||||
|
||||
import { IExecuteFunctions, ILoadOptionsFunctions, IPollFunctions } from 'n8n-core';
|
||||
import type { IExecuteFunctions, ILoadOptionsFunctions, IPollFunctions } from 'n8n-core';
|
||||
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
|
||||
export async function clockifyApiRequest(
|
||||
this: ILoadOptionsFunctions | IPollFunctions | IExecuteFunctions,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const projectOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IHourlyRateDto, IMembershipDto } from './CommonDtos';
|
||||
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
|
||||
|
||||
enum EstimateEnum {
|
||||
AUTO = 'AUTO',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const tagOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const taskOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const timeEntryOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ITimeIntervalDto } from './CommonDtos';
|
||||
import type { ITimeIntervalDto } from './CommonDtos';
|
||||
|
||||
interface ITimeEntriesDurationRequest {
|
||||
start: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const userOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import { IMembershipDto } from './CommonDtos';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import type { IMembershipDto } from './CommonDtos';
|
||||
|
||||
enum UserStatusEnum {
|
||||
ACTIVE,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IHourlyRateDto, IMembershipDto } from './CommonDtos';
|
||||
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
|
||||
|
||||
enum AdminOnlyPagesEnum {
|
||||
PROJECT = 'PROJECT',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const workspaceOperations: INodeProperties[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user