n8n-nodes-base
Version:
Base nodes of n8n
60 lines (55 loc) • 1.24 kB
text/typescript
/**
* Wordpress Node - Version 1
* Discriminator: resource=user, operation=get
*/
interface Credentials {
wordpressApi: CredentialReference;
wordpressOAuth2Api: CredentialReference;
}
/** Get a post */
export type WordpressV1UserGetParams = {
resource: 'user';
operation: 'get';
/**
* The authentication method to use
* @default basicAuth
*/
authType?: 'basicAuth' | 'oAuth2' | Expression<string>;
/**
* Unique identifier for the user
*/
userId?: string | Expression<string> | PlaceholderValue;
/**
* Options
* @default {}
*/
options?: {
/** Scope under which the request is made; determines fields present in response
* @default view
*/
context?: 'view' | 'embed' | 'edit' | Expression<string>;
};
};
export type WordpressV1UserGetOutput = {
_links?: {
collection?: Array<{
href?: string;
}>;
self?: Array<{
href?: string;
}>;
};
description?: string;
id?: number;
link?: string;
name?: string;
slug?: string;
url?: string;
};
export type WordpressV1UserGetNode = {
type: 'n8n-nodes-base.wordpress';
version: 1;
credentials?: Credentials;
config: NodeConfig<WordpressV1UserGetParams>;
output?: Items<WordpressV1UserGetOutput>;
};