2022-08-17 08:50:24 -07:00
|
|
|
import { INodeProperties } from 'n8n-workflow';
|
2020-06-24 16:28:08 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const meetingRegistrantOperations: INodeProperties[] = [
|
2020-06-22 11:51:15 -07:00
|
|
|
{
|
|
|
|
displayName: 'Operation',
|
|
|
|
name: 'operation',
|
|
|
|
type: 'options',
|
2022-05-20 14:47:24 -07:00
|
|
|
noDataExpression: true,
|
2020-06-22 11:51:15 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Create',
|
|
|
|
value: 'create',
|
|
|
|
description: 'Create Meeting Registrants',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Create a meeting registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Update',
|
|
|
|
value: 'update',
|
2020-06-24 10:47:35 -07:00
|
|
|
description: 'Update Meeting Registrant Status',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Update a meeting registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2022-09-07 07:51:14 -07:00
|
|
|
name: 'Get Many',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: 'getAll',
|
2022-09-13 03:36:36 -07:00
|
|
|
description: 'Retrieve many Meeting Registrants',
|
2022-09-08 08:10:13 -07:00
|
|
|
action: 'Get many meeting registrants',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'create',
|
2020-10-22 06:46:03 -07:00
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|
2020-06-22 11:51:15 -07:00
|
|
|
|
2021-12-03 00:44:16 -08:00
|
|
|
export const meetingRegistrantFields: INodeProperties[] = [
|
2020-06-22 11:51:15 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-06-24 16:28:08 -07:00
|
|
|
/* meetingRegistrant:create */
|
2020-06-22 11:51:15 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2022-05-20 14:47:24 -07:00
|
|
|
displayName: 'Meeting ID',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'meetingId',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['create'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-06-22 18:39:21 -07:00
|
|
|
displayName: 'Email',
|
|
|
|
name: 'email',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
2022-06-20 07:54:01 -07:00
|
|
|
placeholder: 'name@email.com',
|
2020-06-22 11:51:15 -07:00
|
|
|
required: true,
|
2020-06-22 18:39:21 -07:00
|
|
|
default: '',
|
2020-06-22 11:51:15 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['create'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid Email-ID',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'First Name',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'firstName',
|
|
|
|
required: true,
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2020-06-22 18:39:21 -07:00
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['create'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 18:39:21 -07:00
|
|
|
},
|
|
|
|
},
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Additional Fields',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'additionalFields',
|
|
|
|
type: 'collection',
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
default: {},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['create'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-23 20:29:47 -07:00
|
|
|
},
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
displayName: 'Address',
|
|
|
|
name: 'address',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid address of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'City',
|
|
|
|
name: 'city',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid city of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-23 12:14:04 -07:00
|
|
|
displayName: 'Comments',
|
|
|
|
name: 'comments',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Allows registrants to provide any questions they have',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Country',
|
|
|
|
name: 'country',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid country of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Job Title',
|
2020-06-24 11:09:11 -07:00
|
|
|
name: 'jobTitle',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Job title of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-23 12:14:04 -07:00
|
|
|
displayName: 'Last Name',
|
|
|
|
name: 'lastName',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
2020-06-23 14:26:00 -07:00
|
|
|
displayName: 'Occurrence IDs',
|
2020-06-23 13:40:43 -07:00
|
|
|
name: 'occurrenceId',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Occurrence IDs separated by comma',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Organization',
|
|
|
|
name: 'org',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Organization of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-23 12:14:04 -07:00
|
|
|
displayName: 'Phone Number',
|
|
|
|
name: 'phone',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid phone number of registrant',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Purchasing Time Frame',
|
2020-06-24 11:09:11 -07:00
|
|
|
name: 'purchasingTimeFrame',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'options',
|
2022-06-03 10:23:49 -07:00
|
|
|
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
|
2020-06-22 11:51:15 -07:00
|
|
|
options: [
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
name: 'Within a Month',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: 'Within a month',
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
name: '1-3 Months',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: '1-3 months',
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
name: '4-6 Months',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: '4-6 months',
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
name: 'More than 6 Months',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: 'More than 6 months',
|
|
|
|
},
|
|
|
|
{
|
2022-06-03 10:23:49 -07:00
|
|
|
name: 'No Timeframe',
|
2020-06-22 11:51:15 -07:00
|
|
|
value: 'No timeframe',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Meeting type',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Role in Purchase Process',
|
2020-06-24 11:09:11 -07:00
|
|
|
name: 'roleInPurchaseProcess',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'options',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Decision Maker',
|
|
|
|
value: 'Decision Maker',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Evaluator/Recommender',
|
|
|
|
value: 'Evaluator/Recommender',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Influener',
|
|
|
|
value: 'Influener',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Not Involved',
|
|
|
|
value: 'Not Involved',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: '',
|
|
|
|
},
|
2020-06-23 12:14:04 -07:00
|
|
|
{
|
|
|
|
displayName: 'State',
|
|
|
|
name: 'state',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid state of registrant',
|
2020-06-23 12:14:04 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Zip Code',
|
2020-06-23 12:14:04 -07:00
|
|
|
name: 'zip',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Valid zip-code of registrant',
|
2020-06-23 12:14:04 -07:00
|
|
|
},
|
2020-06-22 11:51:15 -07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-06-24 16:28:08 -07:00
|
|
|
/* meetingRegistrant:getAll */
|
2020-06-22 11:51:15 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2020-06-23 14:26:00 -07:00
|
|
|
displayName: 'Meeting ID',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'meetingId',
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['getAll'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Return All',
|
|
|
|
name: 'returnAll',
|
|
|
|
type: 'boolean',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['getAll'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
default: false,
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Whether to return all results or only up to a given limit',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Limit',
|
|
|
|
name: 'limit',
|
|
|
|
type: 'number',
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['getAll'],
|
|
|
|
resource: ['meetingRegistrant'],
|
|
|
|
returnAll: [false],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
typeOptions: {
|
|
|
|
minValue: 1,
|
2020-06-23 20:29:47 -07:00
|
|
|
maxValue: 300,
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
default: 30,
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Max number of results to return',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Additional Fields',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'additionalFields',
|
|
|
|
type: 'collection',
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
default: {},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['getAll'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-23 20:29:47 -07:00
|
|
|
},
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
2020-06-23 14:26:00 -07:00
|
|
|
displayName: 'Occurrence ID',
|
2020-06-24 11:09:11 -07:00
|
|
|
name: 'occurrenceId',
|
2020-06-22 11:51:15 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Status',
|
|
|
|
name: 'status',
|
|
|
|
type: 'options',
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Pending',
|
|
|
|
value: 'pending',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Approved',
|
|
|
|
value: 'approved',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Denied',
|
|
|
|
value: 'denied',
|
|
|
|
},
|
|
|
|
],
|
2020-06-22 18:39:21 -07:00
|
|
|
default: 'approved',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Registrant Status',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
2020-10-22 06:46:03 -07:00
|
|
|
],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
/* -------------------------------------------------------------------------- */
|
2020-06-24 16:28:08 -07:00
|
|
|
/* meetingRegistrant:update */
|
2020-06-22 11:51:15 -07:00
|
|
|
/* -------------------------------------------------------------------------- */
|
|
|
|
{
|
2020-06-23 14:26:00 -07:00
|
|
|
displayName: 'Meeting ID',
|
2020-06-22 11:51:15 -07:00
|
|
|
name: 'meetingId',
|
2020-06-22 18:39:21 -07:00
|
|
|
type: 'string',
|
2020-06-22 11:51:15 -07:00
|
|
|
default: '',
|
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['update'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2020-06-22 18:39:21 -07:00
|
|
|
displayName: 'Action',
|
|
|
|
name: 'action',
|
|
|
|
type: 'options',
|
2020-06-22 11:51:15 -07:00
|
|
|
required: true,
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['update'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
|
|
|
},
|
2020-06-22 18:39:21 -07:00
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'Cancel',
|
|
|
|
value: 'cancel',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Cancel a meeting registrant',
|
2020-06-22 18:39:21 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Approved',
|
|
|
|
value: 'approve',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Approved a meeting registrant',
|
2020-06-22 18:39:21 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Deny',
|
|
|
|
value: 'deny',
|
2022-07-10 13:50:51 -07:00
|
|
|
action: 'Deny a meeting registrant',
|
2020-06-22 18:39:21 -07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
default: '',
|
2022-05-06 14:01:25 -07:00
|
|
|
description: 'Registrant Status',
|
2020-06-22 11:51:15 -07:00
|
|
|
},
|
2020-06-22 18:39:21 -07:00
|
|
|
{
|
2020-06-24 10:47:35 -07:00
|
|
|
displayName: 'Additional Fields',
|
2020-06-22 18:39:21 -07:00
|
|
|
name: 'additionalFields',
|
|
|
|
type: 'collection',
|
|
|
|
placeholder: 'Add Field',
|
|
|
|
default: {},
|
|
|
|
displayOptions: {
|
|
|
|
show: {
|
2022-08-17 08:50:24 -07:00
|
|
|
operation: ['update'],
|
|
|
|
resource: ['meetingRegistrant'],
|
2020-06-22 18:39:21 -07:00
|
|
|
},
|
|
|
|
},
|
|
|
|
options: [
|
|
|
|
{
|
2020-06-23 14:26:00 -07:00
|
|
|
displayName: 'Occurrence ID',
|
2020-06-23 13:40:43 -07:00
|
|
|
name: 'occurrenceId',
|
2020-06-22 18:39:21 -07:00
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
],
|
2020-10-22 06:46:03 -07:00
|
|
|
},
|
2021-12-03 00:44:16 -08:00
|
|
|
];
|