mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Capitalize display title
This commit is contained in:
parent
5d36ce0a1e
commit
d06b38c5ff
|
@ -1,6 +1,6 @@
|
||||||
import { INodeProperties } from "n8n-workflow";
|
import { INodeProperties } from "n8n-workflow";
|
||||||
|
|
||||||
const resource = [ 'clients' ];
|
const resource = ['clients'];
|
||||||
|
|
||||||
export const clientOperations = [
|
export const clientOperations = [
|
||||||
{
|
{
|
||||||
|
@ -47,11 +47,11 @@ export const clientOperations = [
|
||||||
|
|
||||||
export const clientFields = [
|
export const clientFields = [
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* client:getAll */
|
/* client:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
name: 'returnAll',
|
name: 'returnAll',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
@ -65,8 +65,8 @@ export const clientFields = [
|
||||||
},
|
},
|
||||||
default: false,
|
default: false,
|
||||||
description: 'Returns a list of your clients.',
|
description: 'Returns a list of your clients.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Limit',
|
displayName: 'Limit',
|
||||||
name: 'limit',
|
name: 'limit',
|
||||||
type: 'number',
|
type: 'number',
|
||||||
|
@ -87,8 +87,8 @@ export const clientFields = [
|
||||||
},
|
},
|
||||||
default: 100,
|
default: 100,
|
||||||
description: 'How many results to return.',
|
description: 'How many results to return.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Filters',
|
displayName: 'Filters',
|
||||||
name: 'filters',
|
name: 'filters',
|
||||||
type: 'collection',
|
type: 'collection',
|
||||||
|
@ -118,12 +118,12 @@ export const clientFields = [
|
||||||
description: 'Only return clients that have been updated since the given date and time.',
|
description: 'Only return clients that have been updated since the given date and time.',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* client:get */
|
/* client:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Client Id',
|
displayName: 'Client Id',
|
||||||
name: 'id',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -138,12 +138,12 @@ export const clientFields = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'The ID of the client you are retrieving.',
|
description: 'The ID of the client you are retrieving.',
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* client:delete */
|
/* client:delete */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Client Id',
|
displayName: 'Client Id',
|
||||||
name: 'id',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
@ -158,13 +158,13 @@ export const clientFields = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'The ID of the client you want to delete.',
|
description: 'The ID of the client you want to delete.',
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* client:create */
|
/* client:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'name',
|
displayName: 'Name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -195,14 +195,14 @@ export const clientFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'is_active',
|
displayName: 'Is Active',
|
||||||
name: 'is_active',
|
name: 'is_active',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Whether the client is active, or archived. Defaults to true.'
|
description: 'Whether the client is active, or archived. Defaults to true.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'address',
|
displayName: 'Address',
|
||||||
name: 'address',
|
name: 'address',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -222,7 +222,7 @@ export const clientFields = [
|
||||||
/* client:update */
|
/* client:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'client Id',
|
displayName: 'Client Id',
|
||||||
name: 'id',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -253,21 +253,21 @@ export const clientFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'name',
|
displayName: 'Name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Whether the client is active, or archived. Defaults to true.'
|
description: 'Whether the client is active, or archived. Defaults to true.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'is_active',
|
displayName: 'Is Active',
|
||||||
name: 'is_active',
|
name: 'is_active',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Whether the client is active, or archived. Defaults to true.'
|
description: 'Whether the client is active, or archived. Defaults to true.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'address',
|
displayName: 'Address',
|
||||||
name: 'address',
|
name: 'address',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -180,7 +180,7 @@ export const contactFields = [
|
||||||
description: 'The first name of the contact.',
|
description: 'The first name of the contact.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -211,42 +211,42 @@ export const contactFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'last_name',
|
displayName: 'Last Name',
|
||||||
name: 'last_name',
|
name: 'last_name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The last name of the contact.'
|
description: 'The last name of the contact.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'title',
|
displayName: 'Title',
|
||||||
name: 'title',
|
name: 'title',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The title of the contact.'
|
description: 'The title of the contact.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'email',
|
displayName: 'Email',
|
||||||
name: 'email',
|
name: 'email',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s email address.'
|
description: 'The contact’s email address.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'phone_office',
|
displayName: 'Phone Office',
|
||||||
name: 'phone_office',
|
name: 'phone_office',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s office phone number.'
|
description: 'The contact’s office phone number.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'phone_mobile',
|
displayName: 'Phone Mobile',
|
||||||
name: 'phone_mobile',
|
name: 'phone_mobile',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s mobile phone number.'
|
description: 'The contact’s mobile phone number.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'fax',
|
displayName: 'Fax',
|
||||||
name: 'fax',
|
name: 'fax',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -259,7 +259,7 @@ export const contactFields = [
|
||||||
/* contact:update */
|
/* contact:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'contact Id',
|
displayName: 'Contact Id',
|
||||||
name: 'id',
|
name: 'id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -290,7 +290,7 @@ export const contactFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
@ -304,42 +304,42 @@ export const contactFields = [
|
||||||
description: 'The first name of the contact.',
|
description: 'The first name of the contact.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'last_name',
|
displayName: 'Last Name',
|
||||||
name: 'last_name',
|
name: 'last_name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The last name of the contact.'
|
description: 'The last name of the contact.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'title',
|
displayName: 'Title',
|
||||||
name: 'title',
|
name: 'title',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The title of the contact.'
|
description: 'The title of the contact.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'email',
|
displayName: 'Email',
|
||||||
name: 'email',
|
name: 'email',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s email address.'
|
description: 'The contact’s email address.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'phone_office',
|
displayName: 'Phone Office',
|
||||||
name: 'phone_office',
|
name: 'phone_office',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s office phone number.'
|
description: 'The contact’s office phone number.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'phone_mobile',
|
displayName: 'Phone Mobile',
|
||||||
name: 'phone_mobile',
|
name: 'phone_mobile',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The contact’s mobile phone number.'
|
description: 'The contact’s mobile phone number.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'fax',
|
displayName: 'Fax',
|
||||||
name: 'fax',
|
name: 'fax',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -192,10 +192,10 @@ export const estimateFields = [
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* invoice:create */
|
/* estimate:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -293,7 +293,7 @@ export const estimateFields = [
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* invoice:update */
|
/* estimate:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'Invoice Id',
|
displayName: 'Invoice Id',
|
||||||
|
@ -327,7 +327,7 @@ export const estimateFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -50,7 +50,7 @@ export async function harvestApiRequest(
|
||||||
if (Object.keys(options.body).length === 0) {
|
if (Object.keys(options.body).length === 0) {
|
||||||
delete options.body;
|
delete options.body;
|
||||||
}
|
}
|
||||||
console.log(options)
|
|
||||||
try {
|
try {
|
||||||
const result = await this.helpers.request!(options);
|
const result = await this.helpers.request!(options);
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,7 @@ export const invoiceFields = [
|
||||||
/* invoice:create */
|
/* invoice:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
|
@ -380,7 +380,7 @@ export const invoiceFields = [
|
||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'client_id',
|
displayName: 'Client Id',
|
||||||
name: 'client_id',
|
name: 'client_id',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
|
|
Loading…
Reference in a new issue