removed useless keys

This commit is contained in:
Rupenieks 2020-05-06 11:58:46 +02:00
parent 7c4a588b70
commit 0f86c59bf2
3 changed files with 64 additions and 90 deletions

View file

@ -181,7 +181,7 @@ export const companyFields = [
name: 'starValue', name: 'starValue',
type: 'options', type: 'options',
default: '', default: '',
required: false,
description: 'Rating of company (Max value 5). This is not applicable for companies.', description: 'Rating of company (Max value 5). This is not applicable for companies.',
options: [ options: [
{ {
@ -216,7 +216,7 @@ export const companyFields = [
type: 'number', type: 'number',
default: '', default: '',
description: 'Score of company. This is not applicable for companies.', description: 'Score of company. This is not applicable for companies.',
required: false,
typeOptions: { typeOptions: {
minValue: 0 minValue: 0
} }
@ -237,7 +237,7 @@ export const companyFields = [
displayName: 'Name', displayName: 'Name',
name: 'name', name: 'name',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company name', placeholder: 'Company name',
description: 'Company name.', description: 'Company name.',
@ -246,7 +246,7 @@ export const companyFields = [
displayName: 'Email', displayName: 'Email',
name: 'email', name: 'email',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company email', placeholder: 'Company email',
description: 'Company email.', description: 'Company email.',
@ -255,7 +255,7 @@ export const companyFields = [
displayName: 'Address', displayName: 'Address',
name: 'email', name: 'email',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company address', placeholder: 'Company address',
description: 'Company address.', description: 'Company address.',
@ -264,7 +264,7 @@ export const companyFields = [
displayName: 'Website', displayName: 'Website',
name: 'websiteOptions', name: 'websiteOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'companys websites.', description: 'companys websites.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -280,7 +280,7 @@ export const companyFields = [
type: 'options', type: 'options',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Type of website.', description: 'Type of website.',
options: [ options: [
{ {
@ -335,7 +335,7 @@ export const companyFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Website URL', description: 'Website URL',
} }
] ]
@ -347,7 +347,7 @@ export const companyFields = [
displayName: 'Phone', displayName: 'Phone',
name: 'phone', name: 'phone',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company phone', placeholder: 'Company phone',
description: 'Company phone.', description: 'Company phone.',
@ -356,7 +356,7 @@ export const companyFields = [
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customProperties', name: 'customProperties',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Properties', description: 'Custom Properties',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -372,25 +372,25 @@ export const companyFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Sub Type', displayName: 'Sub Type',
name: 'subtype', name: 'subtype',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: '',
description: 'Property sub type.', description: 'Property sub type.',
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]
@ -509,7 +509,7 @@ export const companyFields = [
name: 'starValue', name: 'starValue',
type: 'options', type: 'options',
default: '', default: '',
required: false,
description: 'Rating of company (Max value 5). This is not applicable for companies.', description: 'Rating of company (Max value 5). This is not applicable for companies.',
options: [ options: [
{ {
@ -544,7 +544,7 @@ export const companyFields = [
type: 'number', type: 'number',
default: '', default: '',
description: 'Score of company. This is not applicable for companies.', description: 'Score of company. This is not applicable for companies.',
required: false,
typeOptions: { typeOptions: {
minValue: 0 minValue: 0
} }
@ -565,7 +565,7 @@ export const companyFields = [
displayName: 'Name', displayName: 'Name',
name: 'name', name: 'name',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company name', placeholder: 'Company name',
description: 'Company name.', description: 'Company name.',
@ -574,7 +574,7 @@ export const companyFields = [
displayName: 'Email', displayName: 'Email',
name: 'email', name: 'email',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company email', placeholder: 'Company email',
description: 'Company email.', description: 'Company email.',
@ -583,7 +583,7 @@ export const companyFields = [
displayName: 'Address', displayName: 'Address',
name: 'email', name: 'email',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company address', placeholder: 'Company address',
description: 'Company address.', description: 'Company address.',
@ -592,7 +592,7 @@ export const companyFields = [
displayName: 'Website', displayName: 'Website',
name: 'websiteOptions', name: 'websiteOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'companys websites.', description: 'companys websites.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -608,7 +608,7 @@ export const companyFields = [
type: 'options', type: 'options',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Type of website.', description: 'Type of website.',
options: [ options: [
{ {
@ -663,7 +663,7 @@ export const companyFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Website URL', description: 'Website URL',
} }
] ]
@ -675,7 +675,7 @@ export const companyFields = [
displayName: 'Phone', displayName: 'Phone',
name: 'phone', name: 'phone',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: 'Company phone', placeholder: 'Company phone',
description: 'Company phone.', description: 'Company phone.',
@ -684,7 +684,7 @@ export const companyFields = [
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customProperties', name: 'customProperties',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Properties', description: 'Custom Properties',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -700,25 +700,25 @@ export const companyFields = [
type: 'string', type: 'string',
required: true, required: true,
default: '', default: '',
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Sub Type', displayName: 'Sub Type',
name: 'subtype', name: 'subtype',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: '',
description: 'Property sub type.', description: 'Property sub type.',
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: '', default: '',
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]

View file

@ -181,7 +181,6 @@ export const contactFields = [
name: 'starValue', name: 'starValue',
type: 'options', type: 'options',
default: '', default: '',
required: false,
description: 'Rating of contact (Max value 5). This is not applicable for companies.', description: 'Rating of contact (Max value 5). This is not applicable for companies.',
options: [ options: [
{ {
@ -216,7 +215,6 @@ export const contactFields = [
type: 'number', type: 'number',
default: '', default: '',
description: 'Score of contact. This is not applicable for companies.', description: 'Score of contact. This is not applicable for companies.',
required: false,
typeOptions: { typeOptions: {
minValue: 0 minValue: 0
} }
@ -237,7 +235,6 @@ export const contactFields = [
displayName: 'First Name', displayName: 'First Name',
name: 'firstName', name: 'firstName',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'First Name', placeholder: 'First Name',
description: 'Contact first name.', description: 'Contact first name.',
@ -246,7 +243,6 @@ export const contactFields = [
displayName: 'Last Name', displayName: 'Last Name',
name: 'lastName', name: 'lastName',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Last Name', placeholder: 'Last Name',
description: 'Contact last name.', description: 'Contact last name.',
@ -255,7 +251,6 @@ export const contactFields = [
displayName: 'Company', displayName: 'Company',
name: 'company', name: 'company',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Company', placeholder: 'Company',
description: 'Company Name.', description: 'Company Name.',
@ -264,7 +259,6 @@ export const contactFields = [
displayName: 'Title', displayName: 'Title',
name: 'title', name: 'title',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Title', placeholder: 'Title',
description: 'Professional title.', description: 'Professional title.',
@ -273,7 +267,6 @@ export const contactFields = [
displayName: 'Email', displayName: 'Email',
name: 'emailOptions', name: 'emailOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contact email.', description: 'Contact email.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -289,7 +282,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of Email', description: 'Type of Email',
options: [ options: [
{ {
@ -308,7 +301,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Email', description: 'Email',
} }
] ]
@ -320,7 +313,6 @@ export const contactFields = [
displayName: 'Address', displayName: 'Address',
name: 'addressOptions', name: 'addressOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts address.', description: 'Contacts address.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -336,7 +328,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of address.', description: 'Type of address.',
options: [ options: [
{ {
@ -360,7 +352,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Full address.', description: 'Full address.',
} }
] ]
@ -372,7 +364,6 @@ export const contactFields = [
displayName: 'Website', displayName: 'Website',
name: 'websiteOptions', name: 'websiteOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts websites.', description: 'Contacts websites.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -388,7 +379,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of website.', description: 'Type of website.',
options: [ options: [
{ {
@ -443,7 +434,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Website URL', description: 'Website URL',
} }
] ]
@ -455,7 +446,6 @@ export const contactFields = [
displayName: 'Phone', displayName: 'Phone',
name: 'phoneOptions', name: 'phoneOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts phone.', description: 'Contacts phone.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -471,7 +461,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of phone number.', description: 'Type of phone number.',
options: [ options: [
{ {
@ -511,7 +501,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Phone number.', description: 'Phone number.',
} }
] ]
@ -523,7 +513,6 @@ export const contactFields = [
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customProperties', name: 'customProperties',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Properties', description: 'Custom Properties',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -539,25 +528,23 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Sub Type', displayName: 'Sub Type',
name: 'subtype', name: 'subtype',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property sub type.', description: 'Property sub type.',
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]
@ -586,7 +573,7 @@ export const contactFields = [
}, },
}, },
default: '', default: '',
description: 'Unique identifier for a particular contact', description: 'Id of contact to delete.',
}, },
/* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */
/* contact:update */ /* contact:update */
@ -675,7 +662,6 @@ export const contactFields = [
name: 'starValue', name: 'starValue',
type: 'options', type: 'options',
default: '', default: '',
required: false,
description: 'Rating of contact (Max value 5). This is not applicable for companies.', description: 'Rating of contact (Max value 5). This is not applicable for companies.',
options: [ options: [
{ {
@ -710,7 +696,6 @@ export const contactFields = [
type: 'number', type: 'number',
default: '', default: '',
description: 'Score of contact. This is not applicable for companies.', description: 'Score of contact. This is not applicable for companies.',
required: false,
typeOptions: { typeOptions: {
minValue: 0 minValue: 0
} }
@ -731,7 +716,6 @@ export const contactFields = [
displayName: 'First Name', displayName: 'First Name',
name: 'firstName', name: 'firstName',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'First Name', placeholder: 'First Name',
description: 'Contact first name.', description: 'Contact first name.',
@ -740,7 +724,6 @@ export const contactFields = [
displayName: 'Last Name', displayName: 'Last Name',
name: 'lastName', name: 'lastName',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Last Name', placeholder: 'Last Name',
description: 'Contact last name.', description: 'Contact last name.',
@ -749,7 +732,6 @@ export const contactFields = [
displayName: 'Company', displayName: 'Company',
name: 'company', name: 'company',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Company', placeholder: 'Company',
description: 'Company Name.', description: 'Company Name.',
@ -758,7 +740,6 @@ export const contactFields = [
displayName: 'Title', displayName: 'Title',
name: 'title', name: 'title',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: 'Title', placeholder: 'Title',
description: 'Professional title.', description: 'Professional title.',
@ -767,7 +748,6 @@ export const contactFields = [
displayName: 'Email', displayName: 'Email',
name: 'emailOptions', name: 'emailOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contact email.', description: 'Contact email.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -783,7 +763,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of Email', description: 'Type of Email',
options: [ options: [
{ {
@ -802,7 +782,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Email', description: 'Email',
} }
] ]
@ -814,7 +794,6 @@ export const contactFields = [
displayName: 'Address', displayName: 'Address',
name: 'addressOptions', name: 'addressOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts address.', description: 'Contacts address.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -830,7 +809,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of address.', description: 'Type of address.',
options: [ options: [
{ {
@ -854,7 +833,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Full address.', description: 'Full address.',
} }
] ]
@ -866,7 +845,6 @@ export const contactFields = [
displayName: 'Website', displayName: 'Website',
name: 'websiteOptions', name: 'websiteOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts websites.', description: 'Contacts websites.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -882,7 +860,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of website.', description: 'Type of website.',
options: [ options: [
{ {
@ -937,7 +915,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Website URL', description: 'Website URL',
} }
] ]
@ -949,7 +927,6 @@ export const contactFields = [
displayName: 'Phone', displayName: 'Phone',
name: 'phoneOptions', name: 'phoneOptions',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Contacts phone.', description: 'Contacts phone.',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -965,7 +942,7 @@ export const contactFields = [
type: 'options', type: 'options',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Type of phone number.', description: 'Type of phone number.',
options: [ options: [
{ {
@ -1005,7 +982,7 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Phone number.', description: 'Phone number.',
} }
] ]
@ -1017,7 +994,6 @@ export const contactFields = [
displayName: 'Custom Properties', displayName: 'Custom Properties',
name: 'customProperties', name: 'customProperties',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Properties', description: 'Custom Properties',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -1033,25 +1009,23 @@ export const contactFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Sub Type', displayName: 'Sub Type',
name: 'subtype', name: 'subtype',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property sub type.', description: 'Property sub type.',
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]

View file

@ -303,7 +303,7 @@ export const dealFields = [
displayName: 'Custom Data', displayName: 'Custom Data',
name: 'customData', name: 'customData',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Data', description: 'Custom Data',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -319,16 +319,16 @@ export const dealFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]
@ -448,7 +448,7 @@ export const dealFields = [
displayName: 'Expected Value', displayName: 'Expected Value',
name: 'expectedValue', name: 'expectedValue',
type: 'number', type: 'number',
required: false,
typeOptions: { typeOptions: {
minValue: 0, minValue: 0,
maxValue: 10000 maxValue: 10000
@ -460,7 +460,7 @@ export const dealFields = [
displayName: 'Probability', displayName: 'Probability',
name: 'probability', name: 'probability',
type: 'number', type: 'number',
required: false,
typeOptions: { typeOptions: {
minValue: 0, minValue: 0,
maxValue: 100 maxValue: 100
@ -472,7 +472,7 @@ export const dealFields = [
displayName: 'Name', displayName: 'Name',
name: 'name', name: 'name',
type: 'string', type: 'string',
required: false,
default: '', default: '',
description: 'Name of deal.', description: 'Name of deal.',
}, },
@ -492,7 +492,7 @@ export const dealFields = [
displayName: 'Custom Data', displayName: 'Custom Data',
name: 'customData', name: 'customData',
type: 'fixedCollection', type: 'fixedCollection',
required: false,
description: 'Custom Data', description: 'Custom Data',
typeOptions: { typeOptions: {
multipleValues: true, multipleValues: true,
@ -508,16 +508,16 @@ export const dealFields = [
type: 'string', type: 'string',
required: true, required: true,
default: "", default: "",
placeholder: '',
description: 'Property name.' description: 'Property name.'
}, },
{ {
displayName: 'Value', displayName: 'Value',
name: 'value', name: 'value',
type: 'string', type: 'string',
required: false,
default: "", default: "",
placeholder: '',
description: 'Property value.', description: 'Property value.',
} }
] ]