34 lines
714 B
TypeScript
34 lines
714 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
import { contentBookMetaV1Description } from './contentBooMetaV1';
|
|
|
|
const showOnlyForDistributions = {
|
|
resource: ['distribution'],
|
|
};
|
|
|
|
export const distributionDescription: INodeProperties[] = [
|
|
{
|
|
displayName: '操作',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: showOnlyForDistributions,
|
|
},
|
|
options: [
|
|
{
|
|
name: '获取书籍信息',
|
|
value: 'contentBookMetaV1',
|
|
action: 'Get content book metadata',
|
|
routing: {
|
|
request: {
|
|
method: 'GET',
|
|
url: '/content/book_meta/v1/',
|
|
},
|
|
},
|
|
},
|
|
],
|
|
default: 'contentBookMetaV1',
|
|
},
|
|
...contentBookMetaV1Description,
|
|
];
|