2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2019-06-23 03:35:23 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class NextCloudApi implements ICredentialType {
|
|
|
|
name = 'nextCloudApi';
|
|
|
|
displayName = 'NextCloud API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'nextCloud';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'Web DAV URL',
|
|
|
|
name: 'webDavUrl',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2020-07-22 14:52:40 -07:00
|
|
|
placeholder: 'https://nextcloud.example.com/remote.php/webdav',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'user',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|