This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import { N8NPropertiesBuilder } from '@devlikeapro/n8n-openapi-node';
|
||||
import * as openApiSpec from './jellyfin-openapi-stable.json'; // Downloaded by Gitea Actions
|
||||
|
||||
const parser = new N8NPropertiesBuilder(openApiSpec, {});
|
||||
const properties = parser.build();
|
||||
|
||||
export class Jellyfin implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Jellyfin',
|
||||
name: 'jellyfin',
|
||||
icon: 'file:jellyfin.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Auto-generated Jellyfin API Node',
|
||||
defaults: { name: 'Jellyfin' },
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
credentials: [
|
||||
{
|
||||
name: 'jellyfinApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
properties: properties,
|
||||
requestDefaults: {
|
||||
baseURL: '={{$credentials.url}}',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user