n8n/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts

443 lines
8 KiB
TypeScript
Raw Normal View History

2020-06-22 11:51:15 -07:00
import {
INodeProperties,
} from 'n8n-workflow';
export const meetingRegistrantOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'meetingRegistrants',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create Meeting Registrants',
},
{
name: 'Update',
value: 'update',
description: 'Update Meeting Registrant status',
},
{
name: 'Get All',
value: 'getAll',
description: 'Retrieve all meeting registrants',
},
],
default: 'create',
description: 'The operation to perform.',
}
] as INodeProperties[];
export const meetingRegistrantFields = [
/* -------------------------------------------------------------------------- */
/* meetingRegistrants:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Meeting Id',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'meetingRegistrants',
],
},
},
description: 'Meeting ID.',
},
{
2020-06-22 18:39:21 -07:00
displayName: 'Email',
name: 'email',
2020-06-22 11:51:15 -07:00
type: 'string',
required: true,
2020-06-22 18:39:21 -07:00
default: '',
2020-06-22 11:51:15 -07:00
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'meetingRegistrants',
],
},
},
description: 'Valid email-id of registrant.',
},
{
displayName: 'First name',
name: 'firstName',
required: true,
type: 'string',
default: '',
2020-06-22 18:39:21 -07:00
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'meetingRegistrants',
],
},
},
2020-06-22 11:51:15 -07:00
description: 'First Name.',
},
{
2020-06-23 20:29:47 -07:00
displayName: 'Additional fields',
2020-06-22 11:51:15 -07:00
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: [
2020-06-22 18:39:21 -07:00
'create',
2020-06-22 11:51:15 -07:00
],
resource: [
'meetingRegistrants',
],
2020-06-23 20:29:47 -07:00
},
2020-06-22 11:51:15 -07:00
},
options: [
{
displayName: 'Address',
name: 'address',
type: 'string',
default: '',
description: 'Valid address of registrant.',
},
{
displayName: 'City',
name: 'city',
type: 'string',
default: '',
description: 'Valid city of registrant.',
},
{
2020-06-23 12:14:04 -07:00
displayName: 'Comments',
name: 'comments',
2020-06-22 11:51:15 -07:00
type: 'string',
default: '',
2020-06-23 12:14:04 -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: '',
description: 'Valid country of registrant.',
},
{
2020-06-23 12:14:04 -07:00
displayName: 'Job title',
name: 'job_title',
2020-06-22 11:51:15 -07:00
type: 'string',
default: '',
2020-06-23 12:14:04 -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 12:14:04 -07:00
description: 'Last Name.',
2020-06-22 11:51:15 -07:00
},
{
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: '',
2020-06-23 13:40:43 -07:00
description: 'Occurrence IDs separated by comma.',
2020-06-22 11:51:15 -07:00
},
{
displayName: 'Organization',
name: 'org',
type: 'string',
default: '',
description: 'Organization of registrant.',
},
{
2020-06-23 12:14:04 -07:00
displayName: 'Phone Number',
name: 'phone',
2020-06-22 11:51:15 -07:00
type: 'string',
default: '',
2020-06-23 12:14:04 -07:00
description: 'Valid phone number of registrant.',
2020-06-22 11:51:15 -07:00
},
{
displayName: 'Purchasing time frame',
name: 'purchasing_time_frame',
type: 'options',
options: [
{
name: 'Within a month',
value: 'Within a month',
},
{
name: '1-3 months',
value: '1-3 months',
},
{
name: '4-6 months',
value: '4-6 months',
},
{
name: 'More than 6 months',
value: 'More than 6 months',
},
{
name: 'No timeframe',
value: 'No timeframe',
},
],
default: '',
2020-06-23 20:29:47 -07:00
description: 'Meeting type.',
2020-06-22 11:51:15 -07:00
},
{
displayName: 'Role in purchase process',
name: 'role_in_purchase_process',
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 20:29:47 -07:00
description: 'Role in purchase process.',
2020-06-22 11:51:15 -07:00
},
2020-06-23 12:14:04 -07:00
{
displayName: 'State',
name: 'state',
type: 'string',
default: '',
description: 'Valid state of registrant.',
},
{
displayName: 'Zip code',
name: 'zip',
type: 'string',
default: '',
description: 'Valid zip-code of registrant.',
},
2020-06-22 11:51:15 -07:00
],
},
/* -------------------------------------------------------------------------- */
/* meetingRegistrants:getAll */
/* -------------------------------------------------------------------------- */
{
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: {
operation: [
'getAll',
],
resource: [
'meetingRegistrants',
],
},
},
description: 'Meeting ID.',
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'meetingRegistrants',
],
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'meetingRegistrants',
],
returnAll: [
false,
],
},
},
typeOptions: {
minValue: 1,
2020-06-23 20:29:47 -07:00
maxValue: 300,
2020-06-22 11:51:15 -07:00
},
default: 30,
description: 'How many results to return.',
},
{
2020-06-23 20:29:47 -07:00
displayName: 'Additional fields',
2020-06-22 11:51:15 -07:00
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: [
2020-06-22 18:39:21 -07:00
'getAll',
2020-06-22 11:51:15 -07:00
],
resource: [
'meetingRegistrants',
],
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-23 13:40:43 -07:00
name: 'occurrence_id',
2020-06-22 11:51:15 -07:00
type: 'string',
default: '',
2020-06-23 14:26:00 -07:00
description: `Occurrence ID.`,
2020-06-22 11:51:15 -07:00
},
{
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',
2020-06-22 11:51:15 -07:00
description: `Registrant Status.`,
},
]
},
/* -------------------------------------------------------------------------- */
/* meetingRegistrants:update */
/* -------------------------------------------------------------------------- */
{
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: {
operation: [
'update',
],
resource: [
'meetingRegistrants',
],
},
},
description: 'Meeting ID.',
},
{
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: {
operation: [
'update',
],
resource: [
'meetingRegistrants',
],
},
},
2020-06-22 18:39:21 -07:00
options: [
{
name: 'Cancel',
value: 'cancel',
},
{
name: 'Approved',
value: 'approve',
},
{
name: 'Deny',
value: 'deny',
},
],
default: '',
description: `Registrant Status.`,
2020-06-22 11:51:15 -07:00
},
2020-06-22 18:39:21 -07:00
{
2020-06-23 20:29:47 -07:00
displayName: 'Additional fields',
2020-06-22 18:39:21 -07:00
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'meetingRegistrants',
],
},
},
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-06-23 13:40:43 -07:00
description: 'Occurrence ID.',
2020-06-22 18:39:21 -07:00
},
],
}
2020-06-22 11:51:15 -07:00
] as INodeProperties[];