first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
import type {
|
||||
IDataObject,
|
||||
IExecuteFunctions,
|
||||
IHookFunctions,
|
||||
IHttpRequestMethods,
|
||||
ILoadOptionsFunctions,
|
||||
IRequestOptions,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export async function ghostApiRequest(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,
|
||||
method: IHttpRequestMethods,
|
||||
endpoint: string,
|
||||
|
||||
body: any = {},
|
||||
query: IDataObject = {},
|
||||
uri?: string,
|
||||
): Promise<any> {
|
||||
const source = this.getNodeParameter('source', 0) as string;
|
||||
|
||||
let version;
|
||||
let credentialType;
|
||||
|
||||
if (source === 'contentApi') {
|
||||
//https://ghost.org/faq/api-versioning/
|
||||
version = 'v3';
|
||||
credentialType = 'ghostContentApi';
|
||||
} else {
|
||||
version = 'v2';
|
||||
credentialType = 'ghostAdminApi';
|
||||
}
|
||||
|
||||
const credentials = await this.getCredentials(credentialType);
|
||||
|
||||
const options: IRequestOptions = {
|
||||
method,
|
||||
qs: query,
|
||||
uri: uri || `${credentials.url}/ghost/api/${version}${endpoint}`,
|
||||
body,
|
||||
json: true,
|
||||
};
|
||||
|
||||
return await this.helpers.requestWithAuthentication.call(this, credentialType, options);
|
||||
}
|
||||
|
||||
export async function ghostApiRequestAllItems(
|
||||
this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions,
|
||||
propertyName: string,
|
||||
method: IHttpRequestMethods,
|
||||
endpoint: string,
|
||||
|
||||
body: any = {},
|
||||
query: IDataObject = {},
|
||||
): Promise<any> {
|
||||
const returnData: IDataObject[] = [];
|
||||
|
||||
let responseData;
|
||||
|
||||
query.limit = 50;
|
||||
query.page = 1;
|
||||
|
||||
do {
|
||||
responseData = await ghostApiRequest.call(this, method, endpoint, body, query);
|
||||
query.page = responseData.meta.pagination.next;
|
||||
returnData.push.apply(returnData, responseData[propertyName] as IDataObject[]);
|
||||
} while (query.page !== null);
|
||||
return returnData;
|
||||
}
|
||||
|
||||
export function validateJSON(json: string | undefined): any {
|
||||
let result;
|
||||
try {
|
||||
result = JSON.parse(json!);
|
||||
} catch (exception) {
|
||||
result = undefined;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"node": "n8n-nodes-base.ghost",
|
||||
"nodeVersion": "1.0",
|
||||
"codexVersion": "1.0",
|
||||
"categories": ["Marketing"],
|
||||
"resources": {
|
||||
"credentialDocumentation": [
|
||||
{
|
||||
"url": "https://docs.n8n.io/integrations/builtin/credentials/ghost/"
|
||||
}
|
||||
],
|
||||
"primaryDocumentation": [
|
||||
{
|
||||
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.ghost/"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,380 @@
|
||||
import moment from 'moment-timezone';
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodeExecutionData,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeConnectionTypes, NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { ghostApiRequest, ghostApiRequestAllItems, validateJSON } from './GenericFunctions';
|
||||
import { postFields, postOperations } from './PostDescription';
|
||||
|
||||
export class Ghost implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Ghost',
|
||||
name: 'ghost',
|
||||
icon: 'file:ghost.svg',
|
||||
group: ['input'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Consume Ghost API',
|
||||
defaults: {
|
||||
name: 'Ghost',
|
||||
},
|
||||
usableAsTool: true,
|
||||
inputs: [NodeConnectionTypes.Main],
|
||||
outputs: [NodeConnectionTypes.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'ghostAdminApi',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'ghostContentApi',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi'],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Source',
|
||||
name: 'source',
|
||||
type: 'options',
|
||||
description: 'Pick where your data comes from, Content or Admin API',
|
||||
options: [
|
||||
{
|
||||
name: 'Admin API',
|
||||
value: 'adminApi',
|
||||
},
|
||||
{
|
||||
name: 'Content API',
|
||||
value: 'contentApi',
|
||||
},
|
||||
],
|
||||
default: 'contentApi',
|
||||
},
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Post',
|
||||
value: 'post',
|
||||
},
|
||||
],
|
||||
noDataExpression: true,
|
||||
default: 'post',
|
||||
},
|
||||
...postOperations,
|
||||
...postFields,
|
||||
],
|
||||
};
|
||||
|
||||
methods = {
|
||||
loadOptions: {
|
||||
// Get all the authors to display them to user so that they can
|
||||
// select them easily
|
||||
async getAuthors(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const users = await ghostApiRequestAllItems.call(this, 'users', 'GET', '/admin/users');
|
||||
for (const user of users) {
|
||||
returnData.push({
|
||||
name: user.name,
|
||||
value: user.id,
|
||||
});
|
||||
}
|
||||
return returnData;
|
||||
},
|
||||
// Get all the tags to display them to user so that they can
|
||||
// select them easily
|
||||
async getTags(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const tags = await ghostApiRequestAllItems.call(this, 'tags', 'GET', '/admin/tags');
|
||||
for (const tag of tags) {
|
||||
returnData.push({
|
||||
name: tag.name,
|
||||
value: tag.name,
|
||||
});
|
||||
}
|
||||
return returnData;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||
const items = this.getInputData();
|
||||
const returnData: INodeExecutionData[] = [];
|
||||
const length = items.length;
|
||||
const timezone = this.getTimezone();
|
||||
const qs: IDataObject = {};
|
||||
let responseData;
|
||||
const resource = this.getNodeParameter('resource', 0);
|
||||
const operation = this.getNodeParameter('operation', 0);
|
||||
const source = this.getNodeParameter('source', 0) as string;
|
||||
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
if (source === 'contentApi') {
|
||||
if (resource === 'post') {
|
||||
if (operation === 'get') {
|
||||
const by = this.getNodeParameter('by', i) as string;
|
||||
|
||||
const identifier = this.getNodeParameter('identifier', i) as string;
|
||||
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
Object.assign(qs, options);
|
||||
|
||||
let endpoint;
|
||||
|
||||
if (by === 'slug') {
|
||||
endpoint = `/content/posts/slug/${identifier}`;
|
||||
} else {
|
||||
endpoint = `/content/posts/${identifier}`;
|
||||
}
|
||||
|
||||
responseData = await ghostApiRequest.call(this, 'GET', endpoint, {}, qs);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
Object.assign(qs, options);
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await ghostApiRequestAllItems.call(
|
||||
this,
|
||||
'posts',
|
||||
'GET',
|
||||
'/content/posts',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
qs.limit = this.getNodeParameter('limit', 0);
|
||||
responseData = await ghostApiRequest.call(this, 'GET', '/content/posts', {}, qs);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (source === 'adminApi') {
|
||||
if (resource === 'post') {
|
||||
if (operation === 'create') {
|
||||
const title = this.getNodeParameter('title', i) as string;
|
||||
|
||||
const contentFormat = this.getNodeParameter('contentFormat', i) as string;
|
||||
|
||||
const content = this.getNodeParameter('content', i) as string;
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
const post: IDataObject = {
|
||||
title,
|
||||
};
|
||||
|
||||
if (contentFormat === 'html') {
|
||||
post.html = content;
|
||||
qs.source = 'html';
|
||||
} else if (contentFormat === 'lexical') {
|
||||
const lexical = validateJSON(content);
|
||||
if (lexical === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'Content must be a valid JSON', {
|
||||
itemIndex: i,
|
||||
});
|
||||
}
|
||||
post.lexical = content;
|
||||
} else {
|
||||
const mobileDoc = validateJSON(content);
|
||||
if (mobileDoc === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'Content must be a valid JSON', {
|
||||
itemIndex: i,
|
||||
});
|
||||
}
|
||||
post.mobiledoc = content;
|
||||
}
|
||||
|
||||
delete post.content;
|
||||
|
||||
Object.assign(post, additionalFields);
|
||||
|
||||
if (post.published_at) {
|
||||
post.published_at = moment.tz(post.published_at, timezone).utc().format();
|
||||
}
|
||||
|
||||
if (post.status === 'scheduled' && post.published_at === undefined) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'Published at must be define when status is scheduled',
|
||||
{ itemIndex: i },
|
||||
);
|
||||
}
|
||||
|
||||
responseData = await ghostApiRequest.call(
|
||||
this,
|
||||
'POST',
|
||||
'/admin/posts',
|
||||
{ posts: [post] },
|
||||
qs,
|
||||
);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
|
||||
if (operation === 'delete') {
|
||||
const postId = this.getNodeParameter('postId', i) as string;
|
||||
|
||||
responseData = await ghostApiRequest.call(this, 'DELETE', `/admin/posts/${postId}`);
|
||||
}
|
||||
|
||||
if (operation === 'get') {
|
||||
const by = this.getNodeParameter('by', i) as string;
|
||||
|
||||
const identifier = this.getNodeParameter('identifier', i) as string;
|
||||
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
Object.assign(qs, options);
|
||||
|
||||
let endpoint;
|
||||
|
||||
if (by === 'slug') {
|
||||
endpoint = `/admin/posts/slug/${identifier}`;
|
||||
} else {
|
||||
endpoint = `/admin/posts/${identifier}`;
|
||||
}
|
||||
responseData = await ghostApiRequest.call(this, 'GET', endpoint, {}, qs);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
Object.assign(qs, options);
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await ghostApiRequestAllItems.call(
|
||||
this,
|
||||
'posts',
|
||||
'GET',
|
||||
'/admin/posts',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
qs.limit = this.getNodeParameter('limit', 0);
|
||||
responseData = await ghostApiRequest.call(this, 'GET', '/admin/posts', {}, qs);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
}
|
||||
|
||||
if (operation === 'update') {
|
||||
const postId = this.getNodeParameter('postId', i) as string;
|
||||
|
||||
const contentFormat = this.getNodeParameter('contentFormat', i) as string;
|
||||
|
||||
const updateFields = this.getNodeParameter('updateFields', i);
|
||||
|
||||
const post: IDataObject = {};
|
||||
|
||||
if (contentFormat === 'html') {
|
||||
post.html = updateFields.content || '';
|
||||
qs.source = 'html';
|
||||
delete updateFields.content;
|
||||
} else if (contentFormat === 'lexical') {
|
||||
const lexical = validateJSON((updateFields.contentJson as string) || undefined);
|
||||
if (lexical === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'Content must be a valid JSON', {
|
||||
itemIndex: i,
|
||||
});
|
||||
}
|
||||
post.lexical = updateFields.contentJson;
|
||||
delete updateFields.contentJson;
|
||||
} else {
|
||||
const mobileDoc = validateJSON((updateFields.contentJson as string) || undefined);
|
||||
if (mobileDoc === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'Content must be a valid JSON', {
|
||||
itemIndex: i,
|
||||
});
|
||||
}
|
||||
post.mobiledoc = updateFields.contentJson;
|
||||
delete updateFields.contentJson;
|
||||
}
|
||||
|
||||
Object.assign(post, updateFields);
|
||||
|
||||
const { posts } = await ghostApiRequest.call(
|
||||
this,
|
||||
'GET',
|
||||
`/admin/posts/${postId}`,
|
||||
{},
|
||||
{ fields: 'id, updated_at' },
|
||||
);
|
||||
|
||||
if (post.published_at) {
|
||||
post.published_at = moment.tz(post.published_at, timezone).utc().format();
|
||||
}
|
||||
|
||||
if (post.status === 'scheduled' && post.published_at === undefined) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'Published at must be define when status is scheduled',
|
||||
{ itemIndex: i },
|
||||
);
|
||||
}
|
||||
|
||||
post.updated_at = posts[0].updated_at;
|
||||
|
||||
responseData = await ghostApiRequest.call(
|
||||
this,
|
||||
'PUT',
|
||||
`/admin/posts/${postId}`,
|
||||
{ posts: [post] },
|
||||
qs,
|
||||
);
|
||||
responseData = responseData.posts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
responseData = this.helpers.returnJsonArray(responseData as IDataObject[]);
|
||||
const executionData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray(responseData),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionData);
|
||||
} catch (error) {
|
||||
if (this.continueOnFail()) {
|
||||
const executionErrorData = this.helpers.constructExecutionMetaData(
|
||||
this.helpers.returnJsonArray({ error: error.message }),
|
||||
{ itemData: { item: i } },
|
||||
);
|
||||
returnData.push(...executionErrorData);
|
||||
continue;
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
return [returnData];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,866 @@
|
||||
import type { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const postOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
noDataExpression: true,
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi'],
|
||||
resource: ['post'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Get',
|
||||
value: 'get',
|
||||
description: 'Get a post',
|
||||
action: 'Get a post',
|
||||
},
|
||||
{
|
||||
name: 'Get Many',
|
||||
value: 'getAll',
|
||||
description: 'Get many posts',
|
||||
action: 'Get many posts',
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
},
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
noDataExpression: true,
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'Create',
|
||||
value: 'create',
|
||||
description: 'Create a post',
|
||||
action: 'Create a post',
|
||||
},
|
||||
{
|
||||
name: 'Delete',
|
||||
value: 'delete',
|
||||
description: 'Delete a post',
|
||||
action: 'Delete a post',
|
||||
},
|
||||
{
|
||||
name: 'Get',
|
||||
value: 'get',
|
||||
description: 'Get a post',
|
||||
action: 'Get a post',
|
||||
},
|
||||
{
|
||||
name: 'Get Many',
|
||||
value: 'getAll',
|
||||
description: 'Get many posts',
|
||||
action: 'Get many posts',
|
||||
},
|
||||
{
|
||||
name: 'Update',
|
||||
value: 'update',
|
||||
description: 'Update a post',
|
||||
action: 'Update a post',
|
||||
},
|
||||
],
|
||||
default: 'get',
|
||||
},
|
||||
];
|
||||
|
||||
export const postFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* post:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Title',
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
description: "Post's title",
|
||||
},
|
||||
{
|
||||
displayName: 'Content Format',
|
||||
name: 'contentFormat',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobileDoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: 'html',
|
||||
description: 'The format of the post',
|
||||
},
|
||||
{
|
||||
displayName: 'Content',
|
||||
name: 'content',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
contentFormat: ['html'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The content of the post to create',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'content',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
contentFormat: ['mobileDoc'],
|
||||
},
|
||||
},
|
||||
|
||||
default: '',
|
||||
description:
|
||||
'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'content',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
contentFormat: ['lexical'],
|
||||
},
|
||||
},
|
||||
|
||||
default: '',
|
||||
description: 'Lexical is the JSON format returned by the Ghost Default editor',
|
||||
},
|
||||
{
|
||||
displayName: 'Additional Fields',
|
||||
name: 'additionalFields',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Author Names or IDs',
|
||||
name: 'authors',
|
||||
type: 'multiOptions',
|
||||
description:
|
||||
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getAuthors',
|
||||
},
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Cannonical URL',
|
||||
name: 'canonical_url',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Code Injection Foot',
|
||||
name: 'codeinjection_foot',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The Code Injection allows you inject a small snippet into your Ghost site',
|
||||
},
|
||||
{
|
||||
displayName: 'Code Injection Head',
|
||||
name: 'codeinjection_head',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The Code Injection allows you inject a small snippet into your Ghost site',
|
||||
},
|
||||
{
|
||||
displayName: 'Featured',
|
||||
name: 'featured',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
displayName: 'Meta Description',
|
||||
name: 'meta_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Meta Title',
|
||||
name: 'meta_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Description',
|
||||
name: 'og_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Image',
|
||||
name: 'og_image',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'URL of the image',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Title',
|
||||
name: 'og_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Published At',
|
||||
name: 'published_at',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Slug',
|
||||
name: 'slug',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Status',
|
||||
name: 'status',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Draft',
|
||||
value: 'draft',
|
||||
},
|
||||
{
|
||||
name: 'Published',
|
||||
value: 'published',
|
||||
},
|
||||
{
|
||||
name: 'Scheduled',
|
||||
value: 'scheduled',
|
||||
},
|
||||
],
|
||||
default: 'draft',
|
||||
},
|
||||
{
|
||||
displayName: 'Tag Names or IDs',
|
||||
name: 'tags',
|
||||
type: 'multiOptions',
|
||||
description:
|
||||
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Description',
|
||||
name: 'twitter_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Image',
|
||||
name: 'twitter_image',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'URL of the image',
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Title',
|
||||
name: 'twitter_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* post:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Post ID',
|
||||
name: 'postId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['delete'],
|
||||
},
|
||||
},
|
||||
description: 'The ID of the post to delete',
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* post:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'By',
|
||||
name: 'by',
|
||||
type: 'options',
|
||||
default: 'id',
|
||||
required: true,
|
||||
options: [
|
||||
{
|
||||
name: 'ID',
|
||||
value: 'id',
|
||||
},
|
||||
{
|
||||
name: 'Slug',
|
||||
value: 'slug',
|
||||
},
|
||||
],
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi', 'adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
description: 'Get the post either by slug or ID',
|
||||
},
|
||||
{
|
||||
displayName: 'Identifier',
|
||||
name: 'identifier',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi', 'adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
description: 'The ID or slug of the post to get',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
placeholder: 'Add option',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-url
|
||||
description:
|
||||
'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
||||
},
|
||||
{
|
||||
displayName: 'Formats',
|
||||
name: 'formats',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobiledoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['mobiledoc'],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
placeholder: 'Add option',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi'],
|
||||
resource: ['post'],
|
||||
operation: ['get'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-url
|
||||
description:
|
||||
'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
||||
},
|
||||
{
|
||||
displayName: 'Formats',
|
||||
name: 'formats',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Plaintext',
|
||||
value: 'plaintext',
|
||||
},
|
||||
],
|
||||
default: ['html'],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* post:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi', 'adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
description: 'Whether to return all results or only up to a given limit',
|
||||
},
|
||||
{
|
||||
displayName: 'Limit',
|
||||
name: 'limit',
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi', 'contentApi'],
|
||||
resource: ['post'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
minValue: 1,
|
||||
maxValue: 100,
|
||||
},
|
||||
default: 50,
|
||||
description: 'Max number of results to return',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
placeholder: 'Add option',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['contentApi'],
|
||||
resource: ['post'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Include',
|
||||
name: 'include',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'Authors',
|
||||
value: 'authors',
|
||||
},
|
||||
{
|
||||
name: 'Tags',
|
||||
value: 'tags',
|
||||
},
|
||||
],
|
||||
default: [],
|
||||
description:
|
||||
'Tells the API to return additional data related to the resource you have requested',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-url
|
||||
description:
|
||||
'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
||||
},
|
||||
{
|
||||
displayName: 'Formats',
|
||||
name: 'formats',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Plaintext',
|
||||
value: 'plaintext',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['html'],
|
||||
description:
|
||||
'By default, only html is returned, however each post and page in Ghost has 2 available formats: html and plaintext',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
name: 'options',
|
||||
type: 'collection',
|
||||
placeholder: 'Add option',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Include',
|
||||
name: 'include',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'Authors',
|
||||
value: 'authors',
|
||||
},
|
||||
{
|
||||
name: 'Tags',
|
||||
value: 'tags',
|
||||
},
|
||||
],
|
||||
default: [],
|
||||
description:
|
||||
'Tells the API to return additional data related to the resource you have requested',
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
type: 'string',
|
||||
default: '',
|
||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-url
|
||||
description:
|
||||
'Limit the fields returned in the response object. E.g. for posts fields=title,url.',
|
||||
},
|
||||
{
|
||||
displayName: 'Formats',
|
||||
name: 'formats',
|
||||
type: 'multiOptions',
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobiledoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: ['mobiledoc'],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* post:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Post ID',
|
||||
name: 'postId',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'The ID of the post to update',
|
||||
},
|
||||
{
|
||||
displayName: 'Content Format',
|
||||
name: 'contentFormat',
|
||||
type: 'options',
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
name: 'HTML',
|
||||
value: 'html',
|
||||
},
|
||||
{
|
||||
name: 'Mobile Doc',
|
||||
value: 'mobileDoc',
|
||||
},
|
||||
{
|
||||
name: 'Lexical',
|
||||
value: 'lexical',
|
||||
},
|
||||
],
|
||||
default: 'html',
|
||||
description: 'The format of the post',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
name: 'updateFields',
|
||||
type: 'collection',
|
||||
placeholder: 'Add Field',
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
source: ['adminApi'],
|
||||
resource: ['post'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Author Names or IDs',
|
||||
name: 'authors',
|
||||
type: 'multiOptions',
|
||||
description:
|
||||
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getAuthors',
|
||||
},
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Cannonical URL',
|
||||
name: 'canonical_url',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Code Injection Foot',
|
||||
name: 'codeinjection_foot',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Code Injection Head',
|
||||
name: 'codeinjection_head',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Content',
|
||||
name: 'content',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/contentFormat': ['html'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'contentJson',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/contentFormat': ['mobileDoc'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description:
|
||||
'Mobiledoc is the raw JSON format that Ghost uses to store post contents. <a href="https://ghost.org/docs/concepts/posts/#document-storage">Info.</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Content (JSON)',
|
||||
name: 'contentJson',
|
||||
type: 'json',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/contentFormat': ['lexical'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
description: 'Lexical is the JSON format returned by the Ghost Default editor',
|
||||
},
|
||||
{
|
||||
displayName: 'Featured',
|
||||
name: 'featured',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
displayName: 'Meta Description',
|
||||
name: 'meta_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Meta Title',
|
||||
name: 'meta_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Description',
|
||||
name: 'og_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Image',
|
||||
name: 'og_image',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'URL of the image',
|
||||
},
|
||||
{
|
||||
displayName: 'Open Graph Title',
|
||||
name: 'og_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Published At',
|
||||
name: 'published_at',
|
||||
type: 'dateTime',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Slug',
|
||||
name: 'slug',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Status',
|
||||
name: 'status',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Draft',
|
||||
value: 'draft',
|
||||
},
|
||||
{
|
||||
name: 'Published',
|
||||
value: 'published',
|
||||
},
|
||||
{
|
||||
name: 'Scheduled',
|
||||
value: 'scheduled',
|
||||
},
|
||||
],
|
||||
default: 'draft',
|
||||
},
|
||||
{
|
||||
displayName: 'Tag Names or IDs',
|
||||
name: 'tags',
|
||||
type: 'multiOptions',
|
||||
description:
|
||||
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTags',
|
||||
},
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: "Post's title",
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Description',
|
||||
name: 'twitter_description',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Image',
|
||||
name: 'twitter_image',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'URL of the image',
|
||||
},
|
||||
{
|
||||
displayName: 'Twitter Title',
|
||||
name: 'twitter_title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,413 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"authors": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessibility": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"donation_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"facebook": {
|
||||
"type": "null"
|
||||
},
|
||||
"free_member_signup_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"last_seen": {
|
||||
"type": "string"
|
||||
},
|
||||
"mention_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"meta_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"meta_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"milestone_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"paid_subscription_canceled_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"paid_subscription_started_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"recommendation_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"tour": {
|
||||
"type": "null"
|
||||
},
|
||||
"twitter": {
|
||||
"type": "null"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"canonical_url": {
|
||||
"type": "null"
|
||||
},
|
||||
"codeinjection_foot": {
|
||||
"type": "null"
|
||||
},
|
||||
"codeinjection_head": {
|
||||
"type": "null"
|
||||
},
|
||||
"comment_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"count": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"clicks": {
|
||||
"type": "integer"
|
||||
},
|
||||
"negative_feedback": {
|
||||
"type": "integer"
|
||||
},
|
||||
"positive_feedback": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"custom_excerpt": {
|
||||
"type": "null"
|
||||
},
|
||||
"custom_template": {
|
||||
"type": "null"
|
||||
},
|
||||
"email": {
|
||||
"type": "null"
|
||||
},
|
||||
"email_only": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"email_segment": {
|
||||
"type": "string"
|
||||
},
|
||||
"email_subject": {
|
||||
"type": "null"
|
||||
},
|
||||
"feature_image": {
|
||||
"type": "null"
|
||||
},
|
||||
"feature_image_alt": {
|
||||
"type": "null"
|
||||
},
|
||||
"feature_image_caption": {
|
||||
"type": "null"
|
||||
},
|
||||
"featured": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"frontmatter": {
|
||||
"type": "null"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"lexical": {
|
||||
"type": "string"
|
||||
},
|
||||
"newsletter": {
|
||||
"type": "null"
|
||||
},
|
||||
"og_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"og_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"primary_author": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessibility": {
|
||||
"type": "string"
|
||||
},
|
||||
"comment_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"donation_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"facebook": {
|
||||
"type": "null"
|
||||
},
|
||||
"free_member_signup_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"last_seen": {
|
||||
"type": "string"
|
||||
},
|
||||
"mention_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"meta_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"meta_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"milestone_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"paid_subscription_canceled_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"paid_subscription_started_notification": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"recommendation_notifications": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"roles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"tour": {
|
||||
"type": "null"
|
||||
},
|
||||
"twitter": {
|
||||
"type": "null"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"reading_time": {
|
||||
"type": "integer"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"canonical_url": {
|
||||
"type": "null"
|
||||
},
|
||||
"codeinjection_foot": {
|
||||
"type": "null"
|
||||
},
|
||||
"codeinjection_head": {
|
||||
"type": "null"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"meta_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"meta_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"og_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"og_image": {
|
||||
"type": "null"
|
||||
},
|
||||
"og_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"twitter_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"twitter_image": {
|
||||
"type": "null"
|
||||
},
|
||||
"twitter_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"visibility": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tiers": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"active": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"monthly_price_id": {
|
||||
"type": "null"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"slug": {
|
||||
"type": "string"
|
||||
},
|
||||
"trial_days": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"visibility": {
|
||||
"type": "string"
|
||||
},
|
||||
"yearly_price_id": {
|
||||
"type": "null"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"twitter_description": {
|
||||
"type": "null"
|
||||
},
|
||||
"twitter_title": {
|
||||
"type": "null"
|
||||
},
|
||||
"updated_at": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
},
|
||||
"uuid": {
|
||||
"type": "string"
|
||||
},
|
||||
"visibility": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"version": 1
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 151 151"><use xlink:href="#a" x=".5" y=".5"/><symbol id="a" overflow="visible"><g fill-rule="nonzero"><path fill="#e8e9eb" stroke="none" d="M0 22.5A22.45 22.45 0 0 1 22.5 0h105A22.45 22.45 0 0 1 150 22.5v105a22.45 22.45 0 0 1-22.5 22.5h-105A22.45 22.45 0 0 1 0 127.5z"/><path fill="#000" stroke="#3d515b" stroke-linejoin="miter" stroke-width="17.871" d="M29.59 39.258h54.785zm72.07 0h17.871zM29.59 75.293h90.82zm0 35.449h36.035zm54.785 0h36.035z"/></g></symbol></svg>
|
||||
|
After Width: | Height: | Size: 656 B |
Reference in New Issue
Block a user