mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
4d4db7f805
* Wordpress: Add status to getAll: post * Fix status name used in query string * Alphabetically order options for getAll: post * 🐛 Fixed pagination issue when there is no posts for the status * ✨ Updated password field to use a password type Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
35 lines
616 B
TypeScript
35 lines
616 B
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
export class WordpressApi implements ICredentialType {
|
|
name = 'wordpressApi';
|
|
displayName = 'Wordpress API';
|
|
documentationUrl = 'wordpress';
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Username',
|
|
name: 'username',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Password',
|
|
name: 'password',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Wordpress URL',
|
|
name: 'url',
|
|
type: 'string',
|
|
default: '',
|
|
placeholder: 'https://example.com',
|
|
},
|
|
];
|
|
}
|