Capitalize display title

This commit is contained in:
trojanh 2020-02-03 18:25:21 +05:30
parent 5d36ce0a1e
commit d06b38c5ff
5 changed files with 130 additions and 130 deletions

View file

@ -164,7 +164,7 @@ export const clientFields = [
/* client:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'name',
displayName: 'Name',
name: 'name',
type: 'string',
displayOptions: {
@ -195,14 +195,14 @@ export const clientFields = [
default: {},
options: [
{
displayName: 'is_active',
displayName: 'Is Active',
name: 'is_active',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'address',
displayName: 'Address',
name: 'address',
type: 'string',
default: '',
@ -222,7 +222,7 @@ export const clientFields = [
/* client:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'client Id',
displayName: 'Client Id',
name: 'id',
type: 'string',
default: '',
@ -253,21 +253,21 @@ export const clientFields = [
default: {},
options: [
{
displayName: 'name',
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'is_active',
displayName: 'Is Active',
name: 'is_active',
type: 'string',
default: '',
description: 'Whether the client is active, or archived. Defaults to true.'
},
{
displayName: 'address',
displayName: 'Address',
name: 'address',
type: 'string',
default: '',

View file

@ -180,7 +180,7 @@ export const contactFields = [
description: 'The first name of the contact.',
},
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
displayOptions: {
@ -211,42 +211,42 @@ export const contactFields = [
default: {},
options: [
{
displayName: 'last_name',
displayName: 'Last Name',
name: 'last_name',
type: 'string',
default: '',
description: 'The last name of the contact.'
},
{
displayName: 'title',
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'The title of the contact.'
},
{
displayName: 'email',
displayName: 'Email',
name: 'email',
type: 'string',
default: '',
description: 'The contacts email address.'
},
{
displayName: 'phone_office',
displayName: 'Phone Office',
name: 'phone_office',
type: 'string',
default: '',
description: 'The contacts office phone number.'
},
{
displayName: 'phone_mobile',
displayName: 'Phone Mobile',
name: 'phone_mobile',
type: 'string',
default: '',
description: 'The contacts mobile phone number.'
},
{
displayName: 'fax',
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',
@ -259,7 +259,7 @@ export const contactFields = [
/* contact:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'contact Id',
displayName: 'Contact Id',
name: 'id',
type: 'string',
default: '',
@ -290,7 +290,7 @@ export const contactFields = [
default: {},
options: [
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
default: '',
@ -304,42 +304,42 @@ export const contactFields = [
description: 'The first name of the contact.',
},
{
displayName: 'last_name',
displayName: 'Last Name',
name: 'last_name',
type: 'string',
default: '',
description: 'The last name of the contact.'
},
{
displayName: 'title',
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'The title of the contact.'
},
{
displayName: 'email',
displayName: 'Email',
name: 'email',
type: 'string',
default: '',
description: 'The contacts email address.'
},
{
displayName: 'phone_office',
displayName: 'Phone Office',
name: 'phone_office',
type: 'string',
default: '',
description: 'The contacts office phone number.'
},
{
displayName: 'phone_mobile',
displayName: 'Phone Mobile',
name: 'phone_mobile',
type: 'string',
default: '',
description: 'The contacts mobile phone number.'
},
{
displayName: 'fax',
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',

View file

@ -192,10 +192,10 @@ export const estimateFields = [
},
/* -------------------------------------------------------------------------- */
/* invoice:create */
/* estimate:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
displayOptions: {
@ -293,7 +293,7 @@ export const estimateFields = [
},
/* -------------------------------------------------------------------------- */
/* invoice:update */
/* estimate:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Invoice Id',
@ -327,7 +327,7 @@ export const estimateFields = [
default: {},
options: [
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
default: '',

View file

@ -50,7 +50,7 @@ export async function harvestApiRequest(
if (Object.keys(options.body).length === 0) {
delete options.body;
}
console.log(options)
try {
const result = await this.helpers.request!(options);

View file

@ -220,7 +220,7 @@ export const invoiceFields = [
/* invoice:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
displayOptions: {
@ -380,7 +380,7 @@ export const invoiceFields = [
default: {},
options: [
{
displayName: 'client_id',
displayName: 'Client Id',
name: 'client_id',
type: 'string',
default: '',