Fields ordered alphabetically

This commit is contained in:
ricardo 2020-11-08 11:14:43 -05:00
parent b1ba991367
commit 83ce722dcf

View file

@ -100,39 +100,12 @@ export const dealFields = [
}, },
}, },
options: [ options: [
{
displayName: 'Deal Name',
name: 'dealName',
type: 'string',
default: '',
},
{
displayName: 'Pipeline',
name: 'pipeline',
type: 'string',
default: '',
},
{
displayName: 'Close Date',
name: 'closeDate',
type: 'dateTime',
default: '',
},
{ {
displayName: 'Amount', displayName: 'Amount',
name: 'amount', name: 'amount',
type: 'string', type: 'string',
default: '', default: '',
}, },
{
displayName: 'Deal Type',
name: 'dealType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
default: '',
},
{ {
displayName: 'Associated Company', displayName: 'Associated Company',
name: 'associatedCompany', name: 'associatedCompany',
@ -151,6 +124,12 @@ export const dealFields = [
}, },
default: [], default: [],
}, },
{
displayName: 'Close Date',
name: 'closeDate',
type: 'dateTime',
default: '',
},
{ {
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customPropertiesUi', name: 'customPropertiesUi',
@ -185,7 +164,28 @@ export const dealFields = [
], ],
}, },
], ],
} },
{
displayName: 'Deal Name',
name: 'dealName',
type: 'string',
default: '',
},
{
displayName: 'Deal Type',
name: 'dealType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
default: '',
},
{
displayName: 'Pipeline',
name: 'pipeline',
type: 'string',
default: '',
},
], ],
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
@ -227,25 +227,8 @@ export const dealFields = [
}, },
options: [ options: [
{ {
displayName: 'Deal Name', displayName: 'Amount',
name: 'dealName', name: 'amount',
type: 'string',
default: '',
},
{
displayName: 'Deal Stage',
name: 'stage',
type: 'options',
required: true,
typeOptions: {
loadOptionsMethod: 'getDealStages',
},
default: '',
description: 'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages.',
},
{
displayName: 'Pipeline',
name: 'pipeline',
type: 'string', type: 'string',
default: '', default: '',
}, },
@ -255,21 +238,6 @@ export const dealFields = [
type: 'dateTime', type: 'dateTime',
default: '', default: '',
}, },
{
displayName: 'Amount',
name: 'amount',
type: 'string',
default: '',
},
{
displayName: 'Deal Type',
name: 'dealType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
default: '',
},
{ {
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customPropertiesUi', name: 'customPropertiesUi',
@ -304,7 +272,39 @@ export const dealFields = [
], ],
}, },
], ],
} },
{
displayName: 'Deal Name',
name: 'dealName',
type: 'string',
default: '',
},
{
displayName: 'Deal Stage',
name: 'stage',
type: 'options',
required: true,
typeOptions: {
loadOptionsMethod: 'getDealStages',
},
default: '',
description: 'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages.',
},
{
displayName: 'Deal Type',
name: 'dealType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDealTypes',
},
default: '',
},
{
displayName: 'Pipeline',
name: 'pipeline',
type: 'string',
default: '',
},
], ],
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */