From 443cef4de3de29957bf42793f1c91d4ab5a63ce1 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Tue, 13 Oct 2020 23:07:45 +0200 Subject: [PATCH] :zap: Small improvements to Pipedrive-Node --- .../nodes/Pipedrive/Pipedrive.node.ts | 86 ++++++++++--------- 1 file changed, 45 insertions(+), 41 deletions(-) diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index c1236c46a7..45233cb1fd 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -1411,47 +1411,6 @@ export class Pipedrive implements INodeType { }, description: 'The content of the note to create', }, - { - displayName: 'Additional Fields', - name: 'additionalFields', - type: 'collection', - placeholder: 'Add Field', - displayOptions: { - show: { - operation: [ - 'create', - 'getAll' - ], - resource: [ - 'note', - ], - }, - }, - default: {}, - options: [ - { - displayName: 'Deal ID', - name: 'deal_id', - type: 'number', - default: 0, - description: 'ID of the deal this note will be associated with', - }, - { - displayName: 'Organization ID', - name: 'org_id', - type: 'number', - default: 0, - description: 'ID of the organization this note will be associated with.', - }, - { - displayName: 'Person ID', - name: 'person_id', - type: 'number', - default: 0, - description: 'ID of the person this note will be associated with.', - }, - ], - }, // ---------------------------------- // note:delete @@ -2206,6 +2165,51 @@ export class Pipedrive implements INodeType { }, ], }, + + // ---------------------------------- + // note:create/getAll + // ---------------------------------- + { + displayName: 'Additional Fields', + name: 'additionalFields', + type: 'collection', + placeholder: 'Add Field', + displayOptions: { + show: { + operation: [ + 'create', + 'getAll' + ], + resource: [ + 'note', + ], + }, + }, + default: {}, + options: [ + { + displayName: 'Deal ID', + name: 'deal_id', + type: 'number', + default: 0, + description: 'ID of the deal this note will be associated with', + }, + { + displayName: 'Organization ID', + name: 'org_id', + type: 'number', + default: 0, + description: 'ID of the organization this note will be associated with.', + }, + { + displayName: 'Person ID', + name: 'person_id', + type: 'number', + default: 0, + description: 'ID of the person this note will be associated with.', + }, + ], + }, ], };