mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: Impose import/order linting rule across nodes packages (no-changelog) (#12314)
This commit is contained in:
committed by
GitHub
parent
8c635993bd
commit
bafac73eb5
@@ -1,3 +1,4 @@
|
||||
import get from 'lodash/get';
|
||||
import {
|
||||
type IWebhookFunctions,
|
||||
type IDataObject,
|
||||
@@ -8,8 +9,6 @@ import {
|
||||
NodeConnectionType,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
|
||||
export class TheHiveProjectTrigger implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'TheHive 5 Trigger',
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import FormData from 'form-data';
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,14 +7,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import set from 'lodash/set';
|
||||
|
||||
import FormData from 'form-data';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { fixFieldType, prepareInputItem, splitAndTrim } from '../../helpers/utils';
|
||||
import { observableTypeOptions } from '../../descriptions';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { observableTypeOptions } from '../../descriptions';
|
||||
import { fixFieldType, prepareInputItem, splitAndTrim } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [alertRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC, responderOptions } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [{ ...alertRLC, name: 'id' }, responderOptions];
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
alertRLC,
|
||||
{
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import * as create from './create.operation';
|
||||
import * as executeResponder from './executeResponder.operation';
|
||||
import * as deleteAlert from './deleteAlert.operation';
|
||||
import * as executeResponder from './executeResponder.operation';
|
||||
import * as get from './get.operation';
|
||||
import * as search from './search.operation';
|
||||
import * as status from './status.operation';
|
||||
import * as merge from './merge.operation';
|
||||
import * as promote from './promote.operation';
|
||||
import * as search from './search.operation';
|
||||
import * as status from './status.operation';
|
||||
import * as update from './update.operation';
|
||||
|
||||
export { create, executeResponder, deleteAlert, get, search, status, merge, promote, update };
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC, caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC, caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [alertRLC, caseRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
alertRLC,
|
||||
{
|
||||
|
||||
@@ -4,6 +4,9 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
genericFiltersCollection,
|
||||
returnAllAndLimit,
|
||||
@@ -11,7 +14,6 @@ import {
|
||||
sortCollection,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
...returnAllAndLimit,
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { INodeExecutionData, IExecuteFunctions, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
alertRLC,
|
||||
{
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,11 +6,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { attachmentsUi, caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { attachmentsUi, caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
caseRLC,
|
||||
attachmentsUi,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,11 +6,10 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import set from 'lodash/set';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
caseRLC,
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [caseRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC, responderOptions } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [{ ...caseRLC, name: 'id' }, responderOptions];
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [caseRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
caseRLC,
|
||||
{
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [caseRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import * as addAttachment from './addAttachment.operation';
|
||||
|
||||
import * as create from './create.operation';
|
||||
import * as deleteAttachment from './deleteAttachment.operation';
|
||||
import * as deleteCase from './deleteCase.operation';
|
||||
import * as executeResponder from './executeResponder.operation';
|
||||
import * as get from './get.operation';
|
||||
import * as getAttachment from './getAttachment.operation';
|
||||
import * as search from './search.operation';
|
||||
import * as getTimeline from './getTimeline.operation';
|
||||
import * as search from './search.operation';
|
||||
import * as update from './update.operation';
|
||||
|
||||
export {
|
||||
|
||||
@@ -4,6 +4,9 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
genericFiltersCollection,
|
||||
returnAllAndLimit,
|
||||
@@ -11,7 +14,6 @@ import {
|
||||
sortCollection,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
...returnAllAndLimit,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,11 +6,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { alertRLC, caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC, caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { commentRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { commentRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [commentRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -5,6 +5,9 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
alertRLC,
|
||||
caseRLC,
|
||||
@@ -13,9 +16,8 @@ import {
|
||||
searchOptions,
|
||||
sortCollection,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import type { QueryScope } from '../../helpers/interfaces';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { commentRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { commentRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
commentRLC,
|
||||
{
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { attachmentsUi, logRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { attachmentsUi, logRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [logRLC, attachmentsUi];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -5,12 +5,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { attachmentsUi, taskRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { attachmentsUi, taskRLC } from '../../descriptions';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
taskRLC,
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { logRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { logRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
logRLC,
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { logRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { logRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [logRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { logRLC, responderOptions } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [{ ...logRLC, name: 'id' }, responderOptions];
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { logRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { logRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [logRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,6 +4,9 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
taskRLC,
|
||||
genericFiltersCollection,
|
||||
@@ -11,9 +14,8 @@ import {
|
||||
sortCollection,
|
||||
searchOptions,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import type { QueryScope } from '../../helpers/interfaces';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -6,9 +6,9 @@ import * as case_ from './case';
|
||||
import * as comment from './comment';
|
||||
import * as log from './log';
|
||||
import * as observable from './observable';
|
||||
import * as page from './page';
|
||||
import * as query from './query';
|
||||
import * as task from './task';
|
||||
import * as page from './page';
|
||||
|
||||
export const description: INodeTypeDescription = {
|
||||
displayName: 'TheHive 5',
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import FormData from 'form-data';
|
||||
import {
|
||||
NodeOperationError,
|
||||
type IDataObject,
|
||||
@@ -5,13 +6,13 @@ import {
|
||||
type INodeExecutionData,
|
||||
type INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import FormData from 'form-data';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { alertRLC, attachmentsUi, caseRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { alertRLC, attachmentsUi, caseRLC } from '../../descriptions';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { observableRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { observableRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [observableRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { observableRLC, observableTypeOptions } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
observableRLC,
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { observableRLC, responderOptions } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [{ ...observableRLC, name: 'id' }, responderOptions];
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { observableRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { observableRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [observableRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -5,6 +5,9 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
alertRLC,
|
||||
caseRLC,
|
||||
@@ -13,9 +16,8 @@ import {
|
||||
searchOptions,
|
||||
sortCollection,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import type { QueryScope } from '../../helpers/interfaces';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,11 +6,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC, pageRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC, pageRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Delete From ...',
|
||||
|
||||
@@ -4,6 +4,9 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
caseRLC,
|
||||
genericFiltersCollection,
|
||||
@@ -11,9 +14,8 @@ import {
|
||||
sortCollection,
|
||||
searchOptions,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import type { QueryScope } from '../../helpers/interfaces';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { caseRLC, pageRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC, pageRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-miscased
|
||||
|
||||
@@ -6,9 +6,10 @@ import type {
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError, jsonParse } from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Query',
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import type { TheHiveType } from './node.type';
|
||||
|
||||
import * as alert from './alert';
|
||||
import * as case_ from './case';
|
||||
import * as comment from './comment';
|
||||
import * as log from './log';
|
||||
import type { TheHiveType } from './node.type';
|
||||
import * as observable from './observable';
|
||||
import * as page from './page';
|
||||
import * as query from './query';
|
||||
|
||||
@@ -5,12 +5,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { caseRLC } from '../../descriptions';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
caseRLC,
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { taskRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { taskRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [taskRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { responderOptions, taskRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
const properties: INodeProperties[] = [{ ...taskRLC, name: 'id' }, responderOptions];
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { taskRLC } from '../../descriptions';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { taskRLC } from '../../descriptions';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [taskRLC];
|
||||
|
||||
const displayOptions = {
|
||||
|
||||
@@ -4,6 +4,9 @@ import type {
|
||||
INodeExecutionData,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import {
|
||||
caseRLC,
|
||||
genericFiltersCollection,
|
||||
@@ -11,9 +14,8 @@ import {
|
||||
searchOptions,
|
||||
sortCollection,
|
||||
} from '../../descriptions';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
import type { QueryScope } from '../../helpers/interfaces';
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
import { theHiveApiQuery } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import set from 'lodash/set';
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
@@ -5,11 +6,12 @@ import type {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import set from 'lodash/set';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
|
||||
import { updateDisplayOptions, wrapData } from '@utils/utilities';
|
||||
|
||||
import { fixFieldType, prepareInputItem } from '../../helpers/utils';
|
||||
import { theHiveApiRequest } from '../../transport';
|
||||
|
||||
const properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
import { TLP } from '../helpers/interfaces';
|
||||
|
||||
export const returnAllAndLimit: INodeProperties[] = [
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { ApplicationError, type IDataObject } from 'n8n-workflow';
|
||||
|
||||
import get from 'lodash/get';
|
||||
import set from 'lodash/set';
|
||||
import { ApplicationError, type IDataObject } from 'n8n-workflow';
|
||||
|
||||
export function splitAndTrim(str: string | string[]) {
|
||||
if (typeof str === 'string') {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import type { IDataObject, ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from '../transport';
|
||||
|
||||
async function listResource(
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import type { IDataObject, ILoadOptionsFunctions, INodePropertyOptions } from 'n8n-workflow';
|
||||
import { theHiveApiRequest } from '../transport';
|
||||
|
||||
import {
|
||||
alertCommonFields,
|
||||
caseCommonFields,
|
||||
observableCommonFields,
|
||||
taskCommonFields,
|
||||
} from '../helpers/constants';
|
||||
import { theHiveApiRequest } from '../transport';
|
||||
|
||||
export async function loadResponders(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
let resource = this.getNodeParameter('resource') as string;
|
||||
|
||||
@@ -6,14 +6,6 @@ import type {
|
||||
ResourceMapperFields,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from '../transport';
|
||||
|
||||
import {
|
||||
alertCommonFields,
|
||||
caseCommonFields,
|
||||
observableCommonFields,
|
||||
taskCommonFields,
|
||||
} from '../helpers/constants';
|
||||
import {
|
||||
loadAlertStatus,
|
||||
loadCaseStatus,
|
||||
@@ -21,6 +13,13 @@ import {
|
||||
loadObservableTypes,
|
||||
loadUsers,
|
||||
} from './loadOptions';
|
||||
import {
|
||||
alertCommonFields,
|
||||
caseCommonFields,
|
||||
observableCommonFields,
|
||||
taskCommonFields,
|
||||
} from '../helpers/constants';
|
||||
import { theHiveApiRequest } from '../transport';
|
||||
|
||||
async function getCustomFields(this: ILoadOptionsFunctions) {
|
||||
const customFields = (await theHiveApiRequest.call(this, 'POST', '/v1/query', {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { IExecuteFunctions } from 'n8n-workflow';
|
||||
import nock from 'nock';
|
||||
import * as transport from '../transport/requestApi';
|
||||
|
||||
import { theHiveApiQuery } from '../transport/queryHelper';
|
||||
import * as transport from '../transport/requestApi';
|
||||
|
||||
jest.mock('../transport/requestApi', () => {
|
||||
const originalModule = jest.requireActual('../transport/requestApi');
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { IExecuteFunctions, IDataObject } from 'n8n-workflow';
|
||||
|
||||
import { theHiveApiRequest } from './requestApi';
|
||||
import type { QueryScope } from '../helpers/interfaces';
|
||||
import { constructFilter } from '../helpers/utils';
|
||||
import { theHiveApiRequest } from './requestApi';
|
||||
|
||||
export async function theHiveApiQuery(
|
||||
this: IExecuteFunctions,
|
||||
|
||||
Reference in New Issue
Block a user