Fix and revert changes on Harvest-Node to not break for existing

users
This commit is contained in:
Jan Oberhauser
2020-02-07 20:38:13 -08:00
parent 19301d8004
commit 101df5882d
11 changed files with 879 additions and 837 deletions

View File

@@ -1,6 +1,6 @@
import { INodeProperties } from "n8n-workflow";
import { INodeProperties } from 'n8n-workflow';
const resource = ['clients'];
const resource = ['client'];
export const clientOperations = [
{
@@ -13,6 +13,16 @@ export const clientOperations = [
},
},
options: [
{
name: 'Create',
value: 'create',
description: `Create a client`,
},
{
name: 'Delete',
value: 'delete',
description: `Delete a client`,
},
{
name: 'Get',
value: 'get',
@@ -23,21 +33,12 @@ export const clientOperations = [
value: 'getAll',
description: 'Get data of all clients',
},
{
name: 'Create',
value: 'create',
description: `Create a client`,
},
{
name: 'Update',
value: 'update',
description: `Update a client`,
},
{
name: 'Delete',
value: 'delete',
description: `Delete a client`,
},
],
default: 'getAll',
description: 'The operation to perform.',
@@ -252,20 +253,6 @@ export const clientFields = [
},
default: {},
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'Is Active',
name: 'is_active',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'Address',
name: 'address',
@@ -280,6 +267,20 @@ export const clientFields = [
default: '',
description: 'The currency used by the estimate. If not provided, the clients currency will be used. See a list of supported currencies'
},
{
displayName: 'Is Active',
name: 'is_active',
type: 'boolean',
default: true,
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
],
},