⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const attendeeOperations = [
|
||||
export const attendeeOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -31,9 +31,9 @@ export const attendeeOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const attendeeFields = [
|
||||
export const attendeeFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// attendee: shared fields
|
||||
// ----------------------------------
|
||||
@@ -200,4 +200,4 @@ export const attendeeFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const coorganizerOperations = [
|
||||
export const coorganizerOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -35,9 +35,9 @@ export const coorganizerOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const coorganizerFields = [
|
||||
export const coorganizerFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// coorganizer: create
|
||||
// ----------------------------------
|
||||
@@ -84,6 +84,7 @@ export const coorganizerFields = [
|
||||
displayName: 'Organizer Key',
|
||||
name: 'organizerKey',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The co-organizer\'s organizer key for the webinar.',
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -322,4 +323,4 @@ export const coorganizerFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const panelistOperations = [
|
||||
export const panelistOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -35,9 +35,9 @@ export const panelistOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const panelistFields = [
|
||||
export const panelistFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// panelist: create
|
||||
// ----------------------------------
|
||||
@@ -250,4 +250,4 @@ export const panelistFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const registrantOperations = [
|
||||
export const registrantOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -35,9 +35,9 @@ export const registrantOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const registrantFields = [
|
||||
export const registrantFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// registrant: create
|
||||
// ----------------------------------
|
||||
@@ -472,4 +472,4 @@ export const registrantFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const sessionOperations = [
|
||||
export const sessionOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -31,9 +31,9 @@ export const sessionOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const sessionFields = [
|
||||
export const sessionFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// session: getAll
|
||||
// ----------------------------------
|
||||
@@ -223,4 +223,4 @@ export const sessionFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const webinarOperations = [
|
||||
export const webinarOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -39,9 +39,9 @@ export const webinarOperations = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const webinarFields = [
|
||||
export const webinarFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// webinar: create
|
||||
// ----------------------------------
|
||||
@@ -466,6 +466,7 @@ export const webinarFields = [
|
||||
displayName: 'Times',
|
||||
name: 'times',
|
||||
type: 'fixedCollection',
|
||||
default: {},
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
@@ -540,4 +541,4 @@ export const webinarFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user