n8n-nodes-cativa
Version:
This is an n8n community node to communicate with Cativa.
118 lines • 3.44 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.groupDescription = void 0;
exports.groupDescription = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
noDataExpression: true,
displayOptions: {
show: {
resource: ['group'],
},
},
options: [
{
name: 'Invite to Group',
value: 'inviteToGroup',
action: 'Invite to group',
},
{
name: 'Invite to Course',
value: 'inviteToCourse',
action: 'Invite to course',
},
{
name: 'Remove from Group',
value: 'removeFromGroup',
action: 'Remove from group',
},
{
name: 'Remove from Course',
value: 'removeFromCourse',
action: 'Remove from course',
},
],
default: 'inviteToGroup',
},
{
displayName: 'Email',
name: 'email',
type: 'string',
displayOptions: {
show: {
resource: ['group'],
operation: ['inviteToGroup', 'inviteToCourse', 'removeFromGroup', 'removeFromCourse'],
},
},
placeholder: 'user@mail.com',
required: true,
default: '',
},
{
displayName: 'Group ID',
name: 'groupId',
type: 'string',
displayOptions: {
show: {
resource: ['group'],
operation: ['inviteToGroup', 'removeFromGroup'],
},
},
required: true,
default: '',
},
{
displayName: 'Course ID',
name: 'courseId',
type: 'string',
displayOptions: {
show: {
resource: ['group'],
operation: ['inviteToCourse', 'removeFromCourse'],
},
},
required: true,
default: '',
},
{
displayName: 'Custom Attributes',
name: 'customAttributes',
placeholder: 'Add Attributes',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
displayOptions: {
show: {
resource: ['contact', 'public'],
operation: ['contactUpdate', 'contactCreate', 'publicContactCreate'],
},
},
default: {},
options: [
{
name: 'attribute',
displayName: 'Attributes',
values: [
{
displayName: 'Key',
name: 'key',
type: 'string',
default: '',
description: 'Key of the attribute',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value to set for the attribute',
},
],
},
],
},
];
//# sourceMappingURL=GroupDescription.js.map