2020-01-26 20:27:14 -08:00
|
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const personOperations: INodeProperties[] = [
|
2020-01-26 20:27:14 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Operation',
|
|
|
|
|
name: 'operation',
|
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
|
noDataExpression: true,
|
2020-01-26 20:27:14 -08:00
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
|
resource: ['person'],
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'Enrich',
|
|
|
|
|
value: 'enrich',
|
2020-07-24 03:56:41 -07:00
|
|
|
|
description: 'Look up a person and company data based on an email or domain',
|
2022-07-10 13:50:51 -07:00
|
|
|
|
action: 'Enrich a person',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
default: 'enrich',
|
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|
2020-01-26 20:27:14 -08:00
|
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
|
export const personFields: INodeProperties[] = [
|
2021-03-23 16:20:48 -07:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* person:enrich */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-01-26 20:27:14 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'email',
|
|
|
|
|
type: 'string',
|
2022-06-20 07:54:01 -07:00
|
|
|
|
placeholder: 'name@email.com',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
default: '',
|
|
|
|
|
required: true,
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
|
resource: ['person'],
|
|
|
|
|
operation: ['enrich'],
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The email address to look up',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Additional Fields',
|
|
|
|
|
name: 'additionalFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
2022-08-01 13:47:55 -07:00
|
|
|
|
resource: ['person'],
|
|
|
|
|
operation: ['enrich'],
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-01-29 21:49:04 -08:00
|
|
|
|
displayName: 'Company',
|
|
|
|
|
name: 'company',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The name of the person’s employer',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-01-29 21:49:04 -08:00
|
|
|
|
displayName: 'Company Domain',
|
|
|
|
|
name: 'companyDomain',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The domain for the person’s employer',
|
2020-01-29 21:49:04 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Facebook',
|
|
|
|
|
name: 'facebook',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The Facebook URL for the person',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Family Name',
|
|
|
|
|
name: 'familyName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-08-01 13:47:55 -07:00
|
|
|
|
description:
|
|
|
|
|
'Last name of person. If you have this, passing this is strongly recommended to improve match rates.',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
2020-01-29 21:49:04 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Given Name',
|
|
|
|
|
name: 'givenName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'First name of person',
|
2020-01-29 21:49:04 -08:00
|
|
|
|
},
|
2020-01-26 20:27:14 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'IP Address',
|
|
|
|
|
name: 'ipAddress',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-08-01 13:47:55 -07:00
|
|
|
|
description:
|
|
|
|
|
'IP address of the person. If you have this, passing this is strongly recommended to improve match rates.',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Location',
|
|
|
|
|
name: 'location',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The city or country where the person resides',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-01-29 21:49:04 -08:00
|
|
|
|
displayName: 'LinkedIn',
|
|
|
|
|
name: 'linkedIn',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The LinkedIn URL for the person',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Twitter',
|
|
|
|
|
name: 'twitter',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
|
description: 'The Twitter handle for the person',
|
2020-01-26 20:27:14 -08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
|
];
|