n8n-nodes-base
Version:
Base nodes of n8n
125 lines (120 loc) • 2.52 kB
text/typescript
/**
* Wordpress Node - Version 1
* Discriminator: resource=post, operation=get
*/
interface Credentials {
wordpressApi: CredentialReference;
}
/** Get a post */
export type WordpressV1PostGetParams = {
resource: 'post';
operation: 'get';
/**
* Unique identifier for the object
*/
postId?: string | Expression<string> | PlaceholderValue;
/**
* Options
* @default {}
*/
options?: {
/** The password for the post if it is password protected
*/
password?: string | Expression<string> | PlaceholderValue;
/** Scope under which the request is made; determines fields present in response
* @default view
*/
context?: 'view' | 'embed' | 'edit' | Expression<string>;
};
};
export type WordpressV1PostGetOutput = {
_links?: {
about?: Array<{
href?: string;
}>;
author?: Array<{
embeddable?: boolean;
href?: string;
}>;
collection?: Array<{
href?: string;
}>;
curies?: Array<{
href?: string;
name?: string;
templated?: boolean;
}>;
'predecessor-version'?: Array<{
href?: string;
id?: number;
}>;
replies?: Array<{
embeddable?: boolean;
href?: string;
}>;
self?: Array<{
href?: string;
targetHints?: {
allow?: Array<string>;
};
}>;
'version-history'?: Array<{
count?: number;
href?: string;
}>;
'wp:attachment'?: Array<{
href?: string;
}>;
'wp:featuredmedia'?: Array<{
embeddable?: boolean;
href?: string;
}>;
'wp:term'?: Array<{
embeddable?: boolean;
href?: string;
taxonomy?: string;
}>;
};
author?: number;
categories?: Array<number>;
comment_status?: string;
content?: {
protected?: boolean;
rendered?: string;
};
date?: string;
date_gmt?: string;
excerpt?: {
protected?: boolean;
rendered?: string;
};
featured_media?: number;
format?: string;
guid?: {
rendered?: string;
};
id?: number;
link?: string;
meta?: {
footnotes?: string;
};
modified?: string;
modified_gmt?: string;
ping_status?: string;
slug?: string;
status?: string;
sticky?: boolean;
tags?: Array<number>;
template?: string;
title?: {
rendered?: string;
};
type?: string;
};
export type WordpressV1PostGetNode = {
type: 'n8n-nodes-base.wordpress';
version: 1;
credentials?: Credentials;
config: NodeConfig<WordpressV1PostGetParams>;
output?: Items<WordpressV1PostGetOutput>;
};