2020-10-16 01:27:09 -07:00
|
|
|
|
import {
|
|
|
|
|
INodeProperties,
|
|
|
|
|
} from 'n8n-workflow';
|
2020-02-10 12:55:28 -08:00
|
|
|
|
|
|
|
|
|
export const contactOperations = [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Operation',
|
|
|
|
|
name: 'operation',
|
|
|
|
|
type: 'options',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
2020-02-12 22:35:56 -08:00
|
|
|
|
{
|
|
|
|
|
name: 'Add Lead To Campaign',
|
|
|
|
|
value: 'addToCampaign',
|
|
|
|
|
description: 'Add lead to a campaign',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Add Note',
|
|
|
|
|
value: 'addNote',
|
|
|
|
|
description: 'Add note to a contact',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
name: 'Create',
|
|
|
|
|
value: 'create',
|
|
|
|
|
description: 'Create a contact',
|
|
|
|
|
},
|
2021-06-09 20:25:20 -07:00
|
|
|
|
{
|
|
|
|
|
name: 'Create or Update',
|
|
|
|
|
value: 'upsert',
|
|
|
|
|
description: 'Create a new contact, or update the current one if it already exists (upsert)',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
name: 'Delete',
|
|
|
|
|
value: 'delete',
|
|
|
|
|
description: 'Delete a contact',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Get',
|
|
|
|
|
value: 'get',
|
|
|
|
|
description: 'Get a contact',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Get Summary',
|
|
|
|
|
value: 'getSummary',
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: `Returns an overview of contact's metadata`,
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Get All',
|
|
|
|
|
value: 'getAll',
|
|
|
|
|
description: 'Get all contacts',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
name: 'Update',
|
|
|
|
|
value: 'update',
|
|
|
|
|
description: 'Update a contact',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
default: 'create',
|
|
|
|
|
description: 'The operation to perform.',
|
|
|
|
|
},
|
|
|
|
|
] as INodeProperties[];
|
|
|
|
|
|
|
|
|
|
export const contactFields = [
|
|
|
|
|
|
2021-01-13 01:45:41 -08:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:create */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2021-06-09 20:25:20 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Match Against',
|
|
|
|
|
name: 'externalId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getExternalIdFields',
|
|
|
|
|
loadOptionsDependsOn: [
|
|
|
|
|
'resource',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'upsert',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
description: `The field to check to see if the contact already exists`,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Value to Match',
|
|
|
|
|
name: 'externalIdValue',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'upsert',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
description: `If this value exists in the 'match against' field, update the contact. Otherwise create a new one`,
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Last Name',
|
|
|
|
|
name: 'lastname',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'create',
|
2021-06-09 20:25:20 -07:00
|
|
|
|
'upsert',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
description: 'Required. Last name of the contact. Limited to 80 characters.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Additional Fields',
|
|
|
|
|
name: 'additionalFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'create',
|
2021-06-09 20:25:20 -07:00
|
|
|
|
'upsert',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Account',
|
|
|
|
|
name: 'acconuntId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getAccounts',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'ID of the account that is the parent of this contact.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Assistant Name',
|
|
|
|
|
name: 'assistantName',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The name of the assistant.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Assistant Phone',
|
|
|
|
|
name: 'Assistant Phone',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The telephone number of the assistant.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Birth Date',
|
|
|
|
|
name: 'birthdate',
|
|
|
|
|
type: 'dateTime',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The birth date of the contact.',
|
|
|
|
|
},
|
2020-10-16 01:27:09 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Custom Fields',
|
|
|
|
|
name: 'customFieldsUi',
|
|
|
|
|
placeholder: 'Add Custom Field',
|
|
|
|
|
type: 'fixedCollection',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
multipleValues: true,
|
|
|
|
|
},
|
|
|
|
|
description: 'Filter by custom fields ',
|
|
|
|
|
default: {},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'customFieldsValues',
|
|
|
|
|
displayName: 'Custom Field',
|
|
|
|
|
values: [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Field ID',
|
|
|
|
|
name: 'fieldId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
2021-04-17 01:11:18 -07:00
|
|
|
|
loadOptionsMethod: 'getCustomFields',
|
2020-10-16 01:27:09 -07:00
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The ID of the field to add custom field to.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Value',
|
|
|
|
|
name: 'value',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The value to set on custom field.',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-02-12 22:35:56 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Department',
|
|
|
|
|
name: 'department',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The department of the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Description',
|
|
|
|
|
name: 'description',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'A description of the contact. Label is Contact Description. Limit: 32 KB.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'email',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Email address for the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email Bounced Date',
|
|
|
|
|
name: 'otherPostalCode',
|
|
|
|
|
type: 'dateTime',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email Bounced Reason',
|
|
|
|
|
name: 'emailBouncedReason',
|
|
|
|
|
type: 'string',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Fax',
|
|
|
|
|
name: 'fax',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Fax number for the contact. Label is Business Fax.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'First Name',
|
|
|
|
|
name: 'firstName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'First name of the contact. Maximum size is 40 characters.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Home Phone',
|
|
|
|
|
name: 'homePhone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Home telephone number for the contact',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Jigsaw',
|
|
|
|
|
name: 'jigsaw',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: `references the ID of a contact in Data.com.
|
|
|
|
|
If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.`,
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Source',
|
|
|
|
|
name: 'leadSource',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getLeadSources',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Source from which the lead was obtained.',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing City',
|
|
|
|
|
name: 'mailingCity',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Country',
|
|
|
|
|
name: 'mailingCountry',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mobile Phone',
|
|
|
|
|
name: 'mobilePhone',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: `Contact’s mobile phone number.`,
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Postal Code',
|
|
|
|
|
name: 'mailingPostalCode',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing State',
|
|
|
|
|
name: 'mailingState',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Street',
|
|
|
|
|
name: 'mailingStreet',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Street address for mailing address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other City',
|
|
|
|
|
name: 'otherCity',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Other Country',
|
|
|
|
|
name: 'otherCountry',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Phone',
|
|
|
|
|
name: 'otherPhone',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Telephone for alternate address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Postal Code',
|
|
|
|
|
name: 'otherPostalCode',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other State',
|
|
|
|
|
name: 'otherState',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Street',
|
|
|
|
|
name: 'otherStreet',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Street for alternate address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Owner',
|
|
|
|
|
name: 'owner',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getUsers',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The owner of the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Phone',
|
|
|
|
|
name: 'phone',
|
|
|
|
|
type: 'string',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Phone number for the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-08-07 00:41:00 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Record Type ID',
|
|
|
|
|
name: 'recordTypeId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getRecordTypes',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
2021-01-13 01:45:41 -08:00
|
|
|
|
displayName: 'Salutation',
|
|
|
|
|
name: 'salutation',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2021-01-13 01:45:41 -08:00
|
|
|
|
displayName: 'Title',
|
|
|
|
|
name: 'title',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'Title of the contact such as CEO or Vice President.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:update */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Contact ID',
|
|
|
|
|
name: 'contactId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'update',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of contact that needs to be fetched.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Update Fields',
|
|
|
|
|
name: 'updateFields',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'update',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Account',
|
|
|
|
|
name: 'acconuntId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getAccounts',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'ID of the account that is the parent of this contact.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Assistant Name',
|
|
|
|
|
name: 'assistantName',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The name of the assistant.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Assistant Phone',
|
|
|
|
|
name: 'Assistant Phone',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The telephone number of the assistant.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Birth Date',
|
|
|
|
|
name: 'birthdate',
|
|
|
|
|
type: 'dateTime',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The birth date of the contact.',
|
|
|
|
|
},
|
2020-10-16 01:27:09 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Custom Fields',
|
|
|
|
|
name: 'customFieldsUi',
|
|
|
|
|
placeholder: 'Add Custom Field',
|
|
|
|
|
type: 'fixedCollection',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
multipleValues: true,
|
|
|
|
|
},
|
|
|
|
|
description: 'Filter by custom fields ',
|
|
|
|
|
default: {},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'customFieldsValues',
|
|
|
|
|
displayName: 'Custom Field',
|
|
|
|
|
values: [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Field ID',
|
|
|
|
|
name: 'fieldId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
2021-04-17 01:11:18 -07:00
|
|
|
|
loadOptionsMethod: 'getCustomFields',
|
2020-10-16 01:27:09 -07:00
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The ID of the field to add custom field to.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Value',
|
|
|
|
|
name: 'value',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'The value to set on custom field.',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-02-12 22:35:56 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Department',
|
|
|
|
|
name: 'department',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The department of the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Description',
|
|
|
|
|
name: 'description',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'A description of the contact. Label is Contact Description. Limit: 32 KB.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email',
|
|
|
|
|
name: 'email',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Email address for the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email Bounced Date',
|
|
|
|
|
name: 'emailBouncedDate',
|
|
|
|
|
type: 'dateTime',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Email Bounced Reason',
|
|
|
|
|
name: 'emailBouncedReason',
|
|
|
|
|
type: 'string',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Fax',
|
|
|
|
|
name: 'fax',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Fax number for the contact. Label is Business Fax.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'First Name',
|
|
|
|
|
name: 'firstName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'First name of the contact. Maximum size is 40 characters.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Home Phone',
|
|
|
|
|
name: 'homePhone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Home telephone number for the contact.',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Jigsaw',
|
|
|
|
|
name: 'jigsaw',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: `references the ID of a contact in Data.com.
|
|
|
|
|
If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.`,
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-07-02 14:41:40 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Last Name',
|
|
|
|
|
name: 'lastName',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Last name of the contact. Limited to 80 characters.',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Lead Source',
|
|
|
|
|
name: 'leadSource',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getLeadSources',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Source from which the lead was obtained.',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing City',
|
|
|
|
|
name: 'mailingCity',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Country',
|
|
|
|
|
name: 'mailingCountry',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing State',
|
|
|
|
|
name: 'mailingState',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Street',
|
|
|
|
|
name: 'mailingStreet',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Street address for mailing address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Mailing Postal Code',
|
|
|
|
|
name: 'mailingPostalCode',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Mobile Phone',
|
|
|
|
|
name: 'mobilePhone',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: `Contact’s mobile phone number.`,
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other City',
|
|
|
|
|
name: 'otherCity',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Other Country',
|
|
|
|
|
name: 'otherCountry',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Phone',
|
|
|
|
|
name: 'otherPhone',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Telephone for alternate address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Postal Code',
|
|
|
|
|
name: 'otherPostalCode',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other State',
|
|
|
|
|
name: 'otherState',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Other Street',
|
|
|
|
|
name: 'otherStreet',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Street for alternate address.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Owner',
|
|
|
|
|
name: 'owner',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getUsers',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'The owner of the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Phone',
|
|
|
|
|
name: 'phone',
|
|
|
|
|
type: 'string',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Phone number for the contact.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-08-07 00:41:00 -07:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Record Type ID',
|
|
|
|
|
name: 'recordTypeId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getRecordTypes',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Salutation',
|
|
|
|
|
name: 'salutation',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
2020-02-12 22:35:56 -08:00
|
|
|
|
displayName: 'Title',
|
|
|
|
|
name: 'title',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2020-02-12 22:35:56 -08:00
|
|
|
|
description: 'Title of the contact such as CEO or Vice President.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2021-01-13 01:45:41 -08:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2021-06-09 20:25:20 -07:00
|
|
|
|
/* contact:get */
|
2021-01-13 01:45:41 -08:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Contact ID',
|
|
|
|
|
name: 'contactId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'get',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of contact that needs to be fetched.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:delete */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Contact ID',
|
|
|
|
|
name: 'contactId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'delete',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of contact that needs to be fetched',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:getAll */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Return All',
|
|
|
|
|
name: 'returnAll',
|
|
|
|
|
type: 'boolean',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'getAll',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
default: false,
|
|
|
|
|
description: 'If all results should be returned or only up to a given limit.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Limit',
|
|
|
|
|
name: 'limit',
|
|
|
|
|
type: 'number',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'getAll',
|
|
|
|
|
],
|
|
|
|
|
returnAll: [
|
|
|
|
|
false,
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
typeOptions: {
|
|
|
|
|
minValue: 1,
|
|
|
|
|
maxValue: 100,
|
|
|
|
|
},
|
|
|
|
|
default: 50,
|
|
|
|
|
description: 'How many results to return.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Options',
|
|
|
|
|
name: 'options',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'getAll',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
2021-01-13 01:45:41 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Conditions',
|
|
|
|
|
name: 'conditionsUi',
|
|
|
|
|
placeholder: 'Add Condition',
|
|
|
|
|
type: 'fixedCollection',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
multipleValues: true,
|
|
|
|
|
},
|
|
|
|
|
description: 'The condition to set.',
|
|
|
|
|
default: {},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: 'conditionValues',
|
|
|
|
|
displayName: 'Condition',
|
|
|
|
|
values: [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Field',
|
|
|
|
|
name: 'field',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getContactFields',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'For date, number, or boolean, please use expressions.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Operation',
|
|
|
|
|
name: 'operation',
|
|
|
|
|
type: 'options',
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
name: '=',
|
|
|
|
|
value: 'equal',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '>',
|
|
|
|
|
value: '>',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '<',
|
|
|
|
|
value: '<',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '>=',
|
|
|
|
|
value: '>=',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '<=',
|
|
|
|
|
value: '<=',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
default: 'equal',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Value',
|
|
|
|
|
name: 'value',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Fields',
|
|
|
|
|
name: 'fields',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'Fields to include separated by ,',
|
|
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
|
2021-01-13 01:45:41 -08:00
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:addToCampaign */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Contact ID',
|
|
|
|
|
name: 'contactId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addToCampaign',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of contact that needs to be fetched.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Campaign',
|
|
|
|
|
name: 'campaignId',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getCampaigns',
|
|
|
|
|
},
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addToCampaign',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of the campaign that needs to be fetched.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Options',
|
|
|
|
|
name: 'options',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addToCampaign',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Status',
|
|
|
|
|
name: 'status',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'Controls the HasResponded flag on this object.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
|
/* contact:addNote */
|
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Contact ID',
|
|
|
|
|
name: 'contactId',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addNote',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
2021-01-13 01:45:41 -08:00
|
|
|
|
description: 'ID of contact that needs to be fetched.',
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Title',
|
|
|
|
|
name: 'title',
|
|
|
|
|
type: 'string',
|
|
|
|
|
required: true,
|
|
|
|
|
default: '',
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addNote',
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
description: 'Title of the note.',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Options',
|
|
|
|
|
name: 'options',
|
|
|
|
|
type: 'collection',
|
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
|
default: {},
|
|
|
|
|
displayOptions: {
|
|
|
|
|
show: {
|
|
|
|
|
resource: [
|
|
|
|
|
'contact',
|
|
|
|
|
],
|
|
|
|
|
operation: [
|
|
|
|
|
'addNote',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
displayName: 'Body',
|
|
|
|
|
name: 'body',
|
|
|
|
|
type: 'string',
|
|
|
|
|
default: '',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
alwaysOpenEditWindow: true,
|
|
|
|
|
},
|
|
|
|
|
description: 'Body of the note. Limited to 32 KB.',
|
|
|
|
|
},
|
2020-02-12 22:35:56 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Is Private',
|
|
|
|
|
name: 'isPrivate',
|
|
|
|
|
type: 'boolean',
|
|
|
|
|
default: false,
|
|
|
|
|
description: 'If true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
|
|
|
|
|
},
|
2020-02-10 12:55:28 -08:00
|
|
|
|
{
|
|
|
|
|
displayName: 'Owner',
|
|
|
|
|
name: 'owner',
|
|
|
|
|
type: 'options',
|
|
|
|
|
typeOptions: {
|
|
|
|
|
loadOptionsMethod: 'getUsers',
|
|
|
|
|
},
|
|
|
|
|
default: '',
|
|
|
|
|
description: 'ID of the user who owns the note.',
|
|
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
|
],
|
2020-02-10 12:55:28 -08:00
|
|
|
|
},
|
|
|
|
|
] as INodeProperties[];
|