2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class NextCloudApi implements ICredentialType {
|
|
|
|
name = 'nextCloudApi';
|
|
|
|
displayName = 'NextCloud API';
|
|
|
|
properties = [
|
|
|
|
{
|
|
|
|
displayName: 'Web DAV URL',
|
|
|
|
name: 'webDavUrl',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
2019-11-20 05:53:30 -08:00
|
|
|
placeholder: 'https://nextcloud.exampl.com/remote.php/webdav/',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|