init & fix notice

This commit is contained in:
2025-10-30 16:29:55 +08:00
parent 8139ca031c
commit a2aa889e19
8 changed files with 36 additions and 52 deletions

View File

@@ -1,33 +1,26 @@
import { NodeConnectionType, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
import { userDescription } from './resources/user';
import { companyDescription } from './resources/company';
export class GwezzOceanengine implements INodeType {
description: INodeTypeDescription = {
displayName: 'Gwezz Oceanengine',
displayName: 'Gwezz Ocean Engine',
name: 'gwezzOceanengine',
icon: { light: 'file:gwezzOceanengine.svg', dark: 'file:gwezzOceanengine.dark.svg' },
icon: { light: 'file:../../icons/gwezz.svg', dark: 'file:../../icons/gwezz.dark.svg' },
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Interact with the Gwezz Oceanengine API',
description: 'Interact with the Gwezz Ocean Engine API',
defaults: {
name: 'Gwezz Oceanengine',
name: 'Gwezz Ocean Engine',
},
usableAsTool: true,
inputs: [NodeConnectionType.Main],
outputs: [NodeConnectionType.Main],
inputs: ['main'],
outputs: ['main'],
credentials: [{ name: 'gwezzOceanengineOAuth2Api', required: true }],
requestDefaults: {
baseURL: 'https://api.oceanengine.com/open_api/v3.0',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
},
properties: [
{
displayName: 'Resource',
displayName: '资源',
name: 'resource',
type: 'options',
noDataExpression: true,