mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
0ecbb4a19d
* 🔨 prettier formated nodes - A * 🔨 prettier formated nodes - B * ⚡ prettier formated nodes - C * ⚡ prettier formated nodes - D * ⚡ prettier formated nodes - E-F * 🎨 Adjust nodes-base formatting command (#3805) * Format additional files in nodes A-F (#3811) * ⚡ fixes * 🎨 Add Mindee to ignored dirs Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
111 lines
2.3 KiB
TypeScript
111 lines
2.3 KiB
TypeScript
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const reportOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['report'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Get',
|
|
value: 'get',
|
|
description: 'Get an event report',
|
|
action: 'Get a report',
|
|
},
|
|
],
|
|
default: 'get',
|
|
},
|
|
];
|
|
|
|
export const reportFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* report:get */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Event Name or ID',
|
|
name: 'eventId',
|
|
type: 'options',
|
|
description:
|
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getEvents',
|
|
},
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['report'],
|
|
operation: ['get'],
|
|
},
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Session Name or ID',
|
|
name: 'dateId',
|
|
type: 'options',
|
|
typeOptions: {
|
|
loadOptionsMethod: 'getEventSessions',
|
|
loadOptionsDependsOn: ['eventId'],
|
|
},
|
|
default: '',
|
|
required: true,
|
|
description:
|
|
'ID of the session. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
];
|