mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
12417ea323
* Initial commit n8n smartsheet and formio nodes 1. created smarsheet node that can add new rew to a particular smarsheet. 2. created formio trigger node which will listen to form.io form submit event and process data. * Added coloum mapping logic form.io field label to smarsheet column title. API and smartsheet sheetId configuration added to smartsheet node. * Added smartsheet api credentials and used it in smartsheet node. * Added logos to the form.io and smartsheet nodes. Removed smartsheet and form.io npm dependencies from the nodes. Added type check for the variables used. fixed tslint errors in the created nodes. * ⚡ Improvements to #1943 * ⚡ Improvements * ⚡ Improvements * ⚡ Some fixes and improvements Co-authored-by: Parthiban Chandrasekar <pbr.reddys@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
58 lines
1,001 B
TypeScript
58 lines
1,001 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
NodePropertyTypes,
|
|
} from 'n8n-workflow';
|
|
|
|
export class FormIoApi implements ICredentialType {
|
|
name = 'formIoApi';
|
|
displayName = 'Form.io API';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Environment',
|
|
name: 'environment',
|
|
type: 'options',
|
|
default: 'cloudHosted',
|
|
options: [
|
|
{
|
|
name: 'Cloud-hosted',
|
|
value: 'cloudHosted',
|
|
},
|
|
{
|
|
name: 'Self-hosted',
|
|
value: 'selfHosted',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
displayName: 'Self-hosted domain',
|
|
name: 'domain',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: 'https://www.mydomain.com',
|
|
displayOptions: {
|
|
show: {
|
|
environment: [
|
|
'selfHosted',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Email',
|
|
name: 'email',
|
|
type: 'string' as NodePropertyTypes,
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Password',
|
|
name: 'password',
|
|
type: 'string' as NodePropertyTypes,
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
];
|
|
}
|