27 lines
546 B
TypeScript
27 lines
546 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
const showOnlyForDistributionContentBookMetaV1 = {
|
|
operation: ['contentBookMetaV1'],
|
|
resource: ['distribution'],
|
|
};
|
|
|
|
export const contentBookMetaV1Description: INodeProperties[] = [
|
|
{
|
|
displayName: '书籍 ID',
|
|
name: 'bookId',
|
|
type: 'string',
|
|
required: true,
|
|
default: '',
|
|
displayOptions: {
|
|
show: showOnlyForDistributionContentBookMetaV1,
|
|
},
|
|
routing: {
|
|
send: {
|
|
type: 'query',
|
|
property: 'book_id',
|
|
},
|
|
},
|
|
description: '要查询信息的书籍 ID',
|
|
},
|
|
];
|