Files
n8n/packages/nodes-base/nodes/Orbit/Orbit.node.ts
alighasami 3d5eaf9445
Some checks failed
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

103 lines
2.5 KiB
TypeScript

import type {
IExecuteFunctions,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { NodeApiError, NodeConnectionTypes } from 'n8n-workflow';
import { activityFields, activityOperations } from './ActivityDescription';
import { memberFields, memberOperations } from './MemberDescription';
import { noteFields, noteOperations } from './NoteDescription';
import { postFields, postOperations } from './PostDescription';
export class Orbit implements INodeType {
description: INodeTypeDescription = {
displayName: 'Orbit',
name: 'orbit',
icon: { light: 'file:orbit.svg', dark: 'file:orbit.dark.svg' },
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Orbit API',
hidden: true,
defaults: {
name: 'Orbit',
},
inputs: [NodeConnectionTypes.Main],
outputs: [NodeConnectionTypes.Main],
credentials: [
{
name: 'orbitApi',
required: true,
},
],
properties: [
{
displayName:
'Orbit has been shutdown and will no longer function from July 11th, You can read more <a target="_blank" href="https://orbit.love/blog/orbit-is-joining-postman">here</a>.',
name: 'deprecated',
type: 'notice',
default: '',
},
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Activity',
value: 'activity',
},
{
name: 'Member',
value: 'member',
},
{
name: 'Note',
value: 'note',
},
{
name: 'Post',
value: 'post',
},
],
default: 'member',
},
// ACTIVITY
...activityOperations,
...activityFields,
// MEMBER
...memberOperations,
...memberFields,
// NOTE
...noteOperations,
...noteFields,
// POST
...postOperations,
...postFields,
],
};
methods = {
loadOptions: {
async getWorkspaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return [{ name: 'Deprecated', value: 'Deprecated' }];
},
async getActivityTypes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
return [{ name: 'Deprecated', value: 'Deprecated' }];
},
},
};
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
throw new NodeApiError(this.getNode(), {
message: 'Service is deprecated, From July 11th Orbit will no longer function.',
level: 'warning',
});
}
}