mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Demio node (#1434)
* ✨ Add Demio node * ⚡ Improvements * ⚡ Minor improvement on Demio-Node Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
124
packages/nodes-base/nodes/Demio/ReportDescription.ts
Normal file
124
packages/nodes-base/nodes/Demio/ReportDescription.ts
Normal file
@@ -0,0 +1,124 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const reportOperations = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'report',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get',
|
||||
value: 'get',
|
||||
description: 'Get an event report',
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
export const reportFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* report:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Event ID',
|
||||
name: 'eventId',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getEvents',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'report',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Event ID',
|
||||
},
|
||||
{
|
||||
displayName: 'Session ID',
|
||||
name: 'dateId',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getEventSessions',
|
||||
loadOptionsDependsOn: [
|
||||
'eventId',
|
||||
],
|
||||
},
|
||||
default: '',
|
||||
required: true,
|
||||
description: 'ID of the session',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'report',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Filters',
|
||||
name: 'filters',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'report',
|
||||
],
|
||||
operation: [
|
||||
'get',
|
||||
],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Status',
|
||||
name: 'status',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Attended',
|
||||
value: 'attended',
|
||||
},
|
||||
{
|
||||
name: 'Banned',
|
||||
value: 'banned',
|
||||
},
|
||||
{
|
||||
name: 'Completed',
|
||||
value: 'completed',
|
||||
},
|
||||
{
|
||||
name: 'Did Not Attend',
|
||||
value: 'did-not-attend',
|
||||
},
|
||||
{
|
||||
name: 'Left Early',
|
||||
value: 'left-early',
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
description: 'Filter results by participation status',
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
Reference in New Issue
Block a user