2023-01-27 03:22:44 -08:00
|
|
|
import type { INodeProperties } from 'n8n-workflow';
|
2021-12-03 00:44:16 -08:00
|
|
|
|
2021-04-02 10:12:19 -07:00
|
|
|
// for companies, leads, persons
|
2021-12-03 00:44:16 -08:00
|
|
|
export const addressFixedCollection: INodeProperties = {
|
2021-04-02 10:12:19 -07:00
|
|
|
displayName: 'Address',
|
|
|
|
name: 'address',
|
|
|
|
placeholder: 'Add Address Fields',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Address Fields',
|
|
|
|
name: 'addressFields',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Street',
|
|
|
|
name: 'street',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'City',
|
|
|
|
name: 'city',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'State',
|
|
|
|
name: 'state',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Postal Code',
|
|
|
|
name: 'postal_code',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Country',
|
|
|
|
name: 'country',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'ISO 3166 alpha-2 country code',
|
2021-04-02 10:12:19 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
// for companies, leads, persons
|
2021-12-03 00:44:16 -08:00
|
|
|
export const phoneNumbersFixedCollection: INodeProperties = {
|
2021-04-02 10:12:19 -07:00
|
|
|
displayName: 'Phone Numbers',
|
|
|
|
name: 'phone_numbers',
|
|
|
|
placeholder: 'Add Phone Number',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
typeOptions: {
|
|
|
|
multipleValues: true,
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Phone Fields',
|
|
|
|
name: 'phoneFields',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Number',
|
|
|
|
name: 'number',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Category',
|
|
|
|
name: 'category',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
// for persons, multiple emails
|
2021-12-03 00:44:16 -08:00
|
|
|
export const emailsFixedCollection: INodeProperties = {
|
2021-04-02 10:12:19 -07:00
|
|
|
displayName: 'Emails',
|
|
|
|
name: 'emails',
|
|
|
|
placeholder: 'Add Email',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
typeOptions: {
|
|
|
|
multipleValues: true,
|
|
|
|
},
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Email Fields',
|
|
|
|
name: 'emailFields',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
|
|
|
type: 'string',
|
2022-06-20 07:54:01 -07:00
|
|
|
placeholder: 'name@email.com',
|
2021-04-02 10:12:19 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Category',
|
|
|
|
name: 'category',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
// for leads, single email
|
2021-12-03 00:44:16 -08:00
|
|
|
export const emailFixedCollection: INodeProperties = {
|
2021-04-02 10:12:19 -07:00
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
|
|
|
placeholder: 'Add Email',
|
|
|
|
type: 'fixedCollection',
|
|
|
|
default: {},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Email Fields',
|
|
|
|
name: 'emailFields',
|
|
|
|
values: [
|
|
|
|
{
|
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
|
|
|
type: 'string',
|
2022-06-20 07:54:01 -07:00
|
|
|
placeholder: 'name@email.com',
|
2021-04-02 10:12:19 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Category',
|
|
|
|
name: 'category',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|