v0.1
This commit is contained in:
33
nodes/GwezzChangdunovel/resources/distribution/index.ts
Normal file
33
nodes/GwezzChangdunovel/resources/distribution/index.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
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,
|
||||
];
|
||||
Reference in New Issue
Block a user