Improvements

This commit is contained in:
ricardo 2021-04-01 22:02:44 -04:00
parent 8db3734794
commit b8d15942d5
4 changed files with 10 additions and 10 deletions

View file

@ -3,12 +3,12 @@ import {
} from 'n8n-core';
import {
INodeTypeDescription,
INodeExecutionData,
INodeType,
INodePropertyOptions,
ILoadOptionsFunctions,
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
INodePropertyOptions,
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import {
@ -25,13 +25,12 @@ import {
listenerCertificateFields,
listenerCertificateOperations,
} from './ListenerCertificateDescription';
import { response } from 'express';
export class AwsElb implements INodeType {
description: INodeTypeDescription = {
displayName: 'AWS ELB',
name: 'awsElb',
icon: 'file:elb.png',
icon: 'file:elb.svg',
group: ['output'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',

View file

@ -23,7 +23,7 @@ import {
import {
IDataObject,
} from 'n8n-workflow';
} from 'n8n-workflow';
export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, service: string, method: string, path: string, body?: string | Buffer, query: IDataObject = {}, headers?: object, option: IDataObject = {}, region?: string): Promise<any> { // tslint:disable-line:no-any
@ -42,7 +42,7 @@ export async function awsApiRequest(this: IHookFunctions | IExecuteFunctions | I
signOpts.path = `${signOpts.path}&${queryToString(query)}`;
}
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`, secretAccessKey: `${credentials.secretAccessKey}`});
sign(signOpts, { accessKeyId: `${credentials.accessKeyId}`, secretAccessKey: `${credentials.secretAccessKey}` });
const options: OptionsWithUri = {
headers: signOpts.headers,
@ -97,7 +97,7 @@ export async function awsApiRequestSOAP(this: IHookFunctions | IExecuteFunctions
}
}
export async function awsApiRequestSOAPAllItems(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, propertyName: string, service: string, method: string, path: string, body?: string, query: IDataObject = {}, headers: IDataObject = {}, option: IDataObject = {}, region?: string): Promise<any> { // tslint:disable-line:no-any
export async function awsApiRequestSOAPAllItems(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions | IWebhookFunctions, propertyName: string, service: string, method: string, path: string, body?: string, query: IDataObject = {}, headers: IDataObject = {}, option: IDataObject = {}, region?: string): Promise<any> { // tslint:disable-line:no-any
const returnData: IDataObject[] = [];

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 74.375 85" fill="#fff" fill-rule="evenodd" stroke="#000" stroke-linecap="round" stroke-linejoin="round"><style><![CDATA[.B{fill:#f58536}.C{fill:#9d5025}]]></style><use xlink:href="#A" x="2.188" y="2.5"/><symbol id="A" overflow="visible"><g stroke="none"><path d="M3.511 14.898L0 16.56v46.88l3.511 1.662L17.423 40 3.511 14.898z" class="C"/><path d="M11.694 63.285l-8.183 1.817V14.898l8.183 1.769v46.618z" class="B"/><path d="M7.382 13.061l4.312-2.031L21.899 40 11.694 68.97l-4.312-2.031V13.061z" class="C"/><path d="M21.899 66.239L11.694 68.97V11.03l10.205 2.741v52.468z" class="B"/><path d="M16.499 8.747l5.4-2.556L55.616 40 21.899 73.8l-5.4-2.546V8.747z" class="C"/><path d="M58.357 61.031L21.899 73.8V6.191l36.458 12.614v42.225z" class="B"/><path d="M53.634 33.693l-6.807.418-18.819-1.506L34.99 0l18.645 33.693z" fill="#6b3a19"/><path d="M34.99 31.934V0l-6.982 3.304v29.3l6.982-.67z" class="C"/><path d="M53.635 33.693V8.824L34.99 0v31.934l18.645 1.759z" class="B"/><path d="M53.634 46.094l-6.448-.389-19.179 1.536L34.99 80l18.645-33.907z" fill="#fbbf93"/><path d="M28.008 47.24v29.465L34.99 80V47.842l-6.982-.602z" class="C"/><path d="M34.99 47.842V80l18.645-8.824V46.093L34.99 47.842z" class="B"/><path d="M70 44.558l-4.004-.156-10.38.865 4.394 22.896L70 44.558z" fill="#fbbf93"/><path d="M60.01 45.491v22.672L70 63.431V44.558l-9.99.933z" class="B"/><path d="M70 35.248l-4.004.155-10.38-.875 4.394-22.692L70 35.248z" fill="#6b3a19"/><path d="M70 35.248V16.57l-9.99-4.733v22.459l9.99.952z" class="B"/><path d="M55.616 67.065l4.394 1.098V45.491l-4.394-.224v21.798zm0-54.13l4.394-1.098v22.459l-4.394.233V12.935z" class="C"/></g></symbol></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB