n8n/packages/nodes-base/nodes/Okta/Okta.node.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
TypeScript
Raw Normal View History

import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
import { userFields, userOperations } from './UserDescription';
import { getUsers } from './UserFunctions';
export class Okta implements INodeType {
description: INodeTypeDescription = {
displayName: 'Okta',
name: 'okta',
icon: { light: 'file:Okta.svg', dark: 'file:Okta.dark.svg' },
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Use the Okta API',
defaults: {
name: 'Okta',
},
inputs: ['main'],
outputs: ['main'],
credentials: [
{
name: 'oktaApi',
required: true,
},
],
requestDefaults: {
returnFullResponse: true,
baseURL: '={{$credentials.url.replace(new RegExp("/$"), "")}}',
headers: {},
},
properties: [
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'User',
value: 'user',
},
],
default: 'user',
},
// USER
...userOperations,
...userFields,
],
};
methods = {
listSearch: {
getUsers,
},
};
}