29 lines
664 B
TypeScript
29 lines
664 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: '获取书籍信息',
|
|
description: '通过书籍 ID 获取书籍的元信息',
|
|
},
|
|
],
|
|
default: 'contentBookMetaV1',
|
|
},
|
|
...contentBookMetaV1Description,
|
|
];
|