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

436 lines
7.6 KiB
TypeScript
Raw Normal View History

2020-06-22 11:51:15 -07:00
import {
INodeProperties,
} from 'n8n-workflow';
2020-06-24 16:28:08 -07:00
export const meetingRegistrantOperations: INodeProperties[] = [
2020-06-22 11:51:15 -07:00
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create Meeting Registrants',
},
{
name: 'Update',
value: 'update',
2020-06-24 10:47:35 -07:00
description: 'Update Meeting Registrant Status',
2020-06-22 11:51:15 -07:00
},
{
name: 'Get All',
value: 'getAll',
2020-06-24 10:47:35 -07:00
description: 'Retrieve all Meeting Registrants',
2020-06-22 11:51:15 -07:00
},
],
default: 'create',
description: 'The operation to perform.',
2020-10-22 06:46:03 -07:00
},
];
2020-06-22 11:51:15 -07: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
/* -------------------------------------------------------------------------- */
{
displayName: 'Meeting Id',
name: 'meetingId',
type: 'string',
default: '',
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
2020-06-24 16:28:08 -07:00
'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',
required: true,
2020-06-22 18:39:21 -07:00
default: '',
2020-06-22 11:51:15 -07:00
displayOptions: {
show: {
operation: [
'create',
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
},
},
2020-06-24 11:09:11 -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: {
operation: [
'create',
],
resource: [
2020-06-24 16:28:08 -07:00
'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: {
operation: [
2020-06-22 18:39:21 -07:00
'create',
2020-06-22 11:51:15 -07:00
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
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-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: '',
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 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
},
{
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',
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
},
{
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: '',
description: 'Valid state of registrant.',
},
{
2020-06-24 10:47:35 -07:00
displayName: 'Zip Code',
2020-06-23 12:14:04 -07:00
name: 'zip',
type: 'string',
default: '',
description: 'Valid zip-code of registrant.',
},
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: {
operation: [
'getAll',
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
},
},
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
},
},
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: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
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-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: {
operation: [
2020-06-22 18:39:21 -07:00
'getAll',
2020-06-22 11:51:15 -07:00
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
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',
2020-06-22 11:51:15 -07:00
description: `Registrant Status.`,
},
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: {
operation: [
'update',
],
resource: [
2020-06-24 16:28:08 -07:00
'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: {
operation: [
'update',
],
resource: [
2020-06-24 16:28:08 -07:00
'meetingRegistrant',
2020-06-22 11:51:15 -07:00
],
},
},
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-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: {
operation: [
'update',
],
resource: [
2020-06-24 16:28:08 -07:00
'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
},
2020-06-22 11:51:15 -07:00
];