mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
⚡ Basic code cleanup on Intercom Node
This commit is contained in:
parent
223f0130f0
commit
3904f7d568
|
@ -141,7 +141,6 @@ export const companyFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* company:getAll */
|
/* company:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
name: 'returnAll',
|
name: 'returnAll',
|
||||||
|
@ -220,7 +219,6 @@ export const companyFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* company:get */
|
/* company:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Select By',
|
displayName: 'Select By',
|
||||||
name: 'selectBy',
|
name: 'selectBy',
|
||||||
|
@ -277,7 +275,6 @@ export const companyFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* company:create/update */
|
/* company:create/update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Company Id',
|
displayName: 'Company Id',
|
||||||
name: 'companyId',
|
name: 'companyId',
|
||||||
|
|
|
@ -18,6 +18,11 @@ export const leadOpeations = [
|
||||||
value: 'create',
|
value: 'create',
|
||||||
description: 'Create a new lead',
|
description: 'Create a new lead',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Delete',
|
||||||
|
value: 'delete',
|
||||||
|
description: 'Delete a lead',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Get',
|
name: 'Get',
|
||||||
value: 'get',
|
value: 'get',
|
||||||
|
@ -33,11 +38,6 @@ export const leadOpeations = [
|
||||||
value: 'update',
|
value: 'update',
|
||||||
description: 'Update new lead',
|
description: 'Update new lead',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Delete',
|
|
||||||
value: 'delete',
|
|
||||||
description: 'Delete a lead',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
default: 'create',
|
default: 'create',
|
||||||
description: 'The operation to perform.',
|
description: 'The operation to perform.',
|
||||||
|
@ -49,7 +49,6 @@ export const leadFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* lead:delete */
|
/* lead:delete */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Delete By',
|
displayName: 'Delete By',
|
||||||
name: 'deleteBy',
|
name: 'deleteBy',
|
||||||
|
@ -100,7 +99,6 @@ export const leadFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* lead:get */
|
/* lead:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Select By',
|
displayName: 'Select By',
|
||||||
name: 'selectBy',
|
name: 'selectBy',
|
||||||
|
@ -162,7 +160,6 @@ export const leadFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* lead:getAll */
|
/* lead:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
name: 'returnAll',
|
name: 'returnAll',
|
||||||
|
@ -241,7 +238,6 @@ export const leadFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* lead:update */
|
/* lead:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Update By',
|
displayName: 'Update By',
|
||||||
name: 'updateBy',
|
name: 'updateBy',
|
||||||
|
@ -293,7 +289,6 @@ export const leadFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* lead:create */
|
/* lead:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Email',
|
displayName: 'Email',
|
||||||
name: 'email',
|
name: 'email',
|
||||||
|
@ -355,6 +350,33 @@ export const leadFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'An avatar image URL. note: the image url needs to be https.',
|
description: 'An avatar image URL. note: the image url needs to be https.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Companies',
|
||||||
|
name: 'companies',
|
||||||
|
type: 'multiOptions',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getCompanies',
|
||||||
|
},
|
||||||
|
default: [],
|
||||||
|
description: 'Identifies the companies this user belongs to.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Email',
|
||||||
|
name: 'email',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
'/resource': [
|
||||||
|
'lead',
|
||||||
|
],
|
||||||
|
'/operation': [
|
||||||
|
'update',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
description: 'The email of the user.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Name',
|
displayName: 'Name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
|
@ -384,38 +406,18 @@ export const leadFields = [
|
||||||
description: 'A boolean value, which if true, instructs Intercom to update the<br />users last_request_at value to the current API service time in<br />UTC. default value if not sent is false.',
|
description: 'A boolean value, which if true, instructs Intercom to update the<br />users last_request_at value to the current API service time in<br />UTC. default value if not sent is false.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Companies',
|
displayName: 'UTM Campaign',
|
||||||
name: 'companies',
|
name: 'utmCampaign',
|
||||||
type: 'multiOptions',
|
|
||||||
typeOptions: {
|
|
||||||
loadOptionsMethod: 'getCompanies',
|
|
||||||
},
|
|
||||||
default: [],
|
|
||||||
description: 'Identifies the companies this user belongs to.',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
displayName: 'Email',
|
|
||||||
name: 'email',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
displayOptions: {
|
description: 'Identifies a specific product promotion or strategic campaign',
|
||||||
show: {
|
|
||||||
'/resource': [
|
|
||||||
'lead',
|
|
||||||
],
|
|
||||||
'/operation': [
|
|
||||||
'update',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
description: 'The email of the user.',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Source',
|
displayName: 'UTM Content',
|
||||||
name: 'utmSource',
|
name: 'utmContent',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'An avatar image URL. note: the image url needs to be https.',
|
description: 'Identifies what specifically was clicked to bring the user to the site',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Medium',
|
displayName: 'UTM Medium',
|
||||||
|
@ -425,11 +427,11 @@ export const leadFields = [
|
||||||
description: 'Identifies what type of link was used',
|
description: 'Identifies what type of link was used',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Campaign',
|
displayName: 'UTM Source',
|
||||||
name: 'utmCampaign',
|
name: 'utmSource',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Identifies a specific product promotion or strategic campaign',
|
description: 'An avatar image URL. note: the image url needs to be https.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Term',
|
displayName: 'UTM Term',
|
||||||
|
@ -438,13 +440,6 @@ export const leadFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Identifies search terms',
|
description: 'Identifies search terms',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'UTM Content',
|
|
||||||
name: 'utmContent',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
description: 'Identifies what specifically was clicked to bring the user to the site',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,6 +18,11 @@ export const userOpeations = [
|
||||||
value: 'create',
|
value: 'create',
|
||||||
description: 'Create a new user',
|
description: 'Create a new user',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Delete',
|
||||||
|
value: 'delete',
|
||||||
|
description: 'Delete a user',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Get',
|
name: 'Get',
|
||||||
value: 'get',
|
value: 'get',
|
||||||
|
@ -33,11 +38,6 @@ export const userOpeations = [
|
||||||
value: 'update',
|
value: 'update',
|
||||||
description: 'Update a user',
|
description: 'Update a user',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Delete',
|
|
||||||
value: 'delete',
|
|
||||||
description: 'Delete a user',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
default: 'create',
|
default: 'create',
|
||||||
description: 'The operation to perform.',
|
description: 'The operation to perform.',
|
||||||
|
@ -49,7 +49,6 @@ export const userFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* user:delete */
|
/* user:delete */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'ID',
|
displayName: 'ID',
|
||||||
name: 'id',
|
name: 'id',
|
||||||
|
@ -72,7 +71,6 @@ export const userFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* user:getAll */
|
/* user:getAll */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Return All',
|
displayName: 'Return All',
|
||||||
name: 'returnAll',
|
name: 'returnAll',
|
||||||
|
@ -145,13 +143,6 @@ export const userFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'The email address of the user',
|
description: 'The email address of the user',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'Tag ID',
|
|
||||||
name: 'tag_id',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
description: 'Tag representing the user',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
displayName: 'Segment ID',
|
displayName: 'Segment ID',
|
||||||
name: 'segment_id',
|
name: 'segment_id',
|
||||||
|
@ -159,6 +150,13 @@ export const userFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Segment representing the user',
|
description: 'Segment representing the user',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Tag ID',
|
||||||
|
name: 'tag_id',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'Tag representing the user',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -166,7 +164,6 @@ export const userFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* user:get */
|
/* user:get */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Select By',
|
displayName: 'Select By',
|
||||||
name: 'selectBy',
|
name: 'selectBy',
|
||||||
|
@ -220,7 +217,6 @@ export const userFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* user:update */
|
/* user:update */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Update By',
|
displayName: 'Update By',
|
||||||
name: 'updateBy',
|
name: 'updateBy',
|
||||||
|
@ -278,7 +274,6 @@ export const userFields = [
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
/* user:create */
|
/* user:create */
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
{
|
{
|
||||||
displayName: 'Identifier Type',
|
displayName: 'Identifier Type',
|
||||||
name: 'identifierType',
|
name: 'identifierType',
|
||||||
|
@ -362,6 +357,23 @@ export const userFields = [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options: [
|
options: [
|
||||||
|
{
|
||||||
|
displayName: 'Avatar',
|
||||||
|
name: 'avatar',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'An avatar image URL. note: the image url needs to be https.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Companies',
|
||||||
|
name: 'companies',
|
||||||
|
type: 'multiOptions',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getCompanies',
|
||||||
|
},
|
||||||
|
default: [],
|
||||||
|
description: 'Identifies the companies this user belongs to.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Email',
|
displayName: 'Email',
|
||||||
name: 'email',
|
name: 'email',
|
||||||
|
@ -384,6 +396,29 @@ export const userFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Email of the user',
|
description: 'Email of the user',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Name',
|
||||||
|
name: 'name',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
placeholder: '',
|
||||||
|
description: 'Name of the user',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Phone',
|
||||||
|
name: 'phone',
|
||||||
|
type: 'string',
|
||||||
|
default: '',
|
||||||
|
description: 'The phone number of the user',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Session Count',
|
||||||
|
name: 'sessionCount',
|
||||||
|
type: 'number',
|
||||||
|
default: false,
|
||||||
|
options: [],
|
||||||
|
description: `How many sessions the user has recorded`,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'User ID',
|
displayName: 'User ID',
|
||||||
name: 'userId',
|
name: 'userId',
|
||||||
|
@ -407,21 +442,6 @@ export const userFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Email of the user',
|
description: 'Email of the user',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'Phone',
|
|
||||||
name: 'phone',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
description: 'The phone number of the user',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
displayName: 'Name',
|
|
||||||
name: 'name',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
placeholder: '',
|
|
||||||
description: 'Name of the user',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
displayName: 'Unsubscribed From Emails',
|
displayName: 'Unsubscribed From Emails',
|
||||||
name: 'unsubscribedFromEmails',
|
name: 'unsubscribedFromEmails',
|
||||||
|
@ -439,36 +459,18 @@ export const userFields = [
|
||||||
description: 'A boolean value, which if true, instructs Intercom to update the users<br />last_request_at value to the current API service time in UTC.',
|
description: 'A boolean value, which if true, instructs Intercom to update the users<br />last_request_at value to the current API service time in UTC.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Session Count',
|
displayName: 'UTM Campaign',
|
||||||
name: 'sessionCount',
|
name: 'utmCampaign',
|
||||||
type: 'number',
|
|
||||||
default: false,
|
|
||||||
options: [],
|
|
||||||
description: `How many sessions the user has recorded`,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
displayName: 'Companies',
|
|
||||||
name: 'companies',
|
|
||||||
type: 'multiOptions',
|
|
||||||
typeOptions: {
|
|
||||||
loadOptionsMethod: 'getCompanies',
|
|
||||||
},
|
|
||||||
default: [],
|
|
||||||
description: 'Identifies the companies this user belongs to.',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
displayName: 'Avatar',
|
|
||||||
name: 'avatar',
|
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'An avatar image URL. note: the image url needs to be https.',
|
description: 'Identifies a specific product promotion or strategic campaign',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Source',
|
displayName: 'UTM Content',
|
||||||
name: 'utmSource',
|
name: 'utmContent',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'An avatar image URL. note: the image url needs to be https.',
|
description: 'Identifies what specifically was clicked to bring the user to the site',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Medium',
|
displayName: 'UTM Medium',
|
||||||
|
@ -478,11 +480,11 @@ export const userFields = [
|
||||||
description: 'Identifies what type of link was used',
|
description: 'Identifies what type of link was used',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Campaign',
|
displayName: 'UTM Source',
|
||||||
name: 'utmCampaign',
|
name: 'utmSource',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Identifies a specific product promotion or strategic campaign',
|
description: 'An avatar image URL. note: the image url needs to be https.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'UTM Term',
|
displayName: 'UTM Term',
|
||||||
|
@ -491,13 +493,6 @@ export const userFields = [
|
||||||
default: '',
|
default: '',
|
||||||
description: 'Identifies search terms',
|
description: 'Identifies search terms',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
displayName: 'UTM Content',
|
|
||||||
name: 'utmContent',
|
|
||||||
type: 'string',
|
|
||||||
default: '',
|
|
||||||
description: 'Identifies what specifically was clicked to bring the user to the site',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue