n8n-nodes-multi-profile 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/credentials/MultiProfileApi.credentials.d.ts +9 -0
- package/credentials/MultiProfileApi.credentials.js +31 -0
- package/index.js +6 -0
- package/nodes/MultiProfile/MultiProfile.node.d.ts +5 -0
- package/nodes/MultiProfile/MultiProfile.node.js +1 -0
- package/nodes/MultiProfile/MultiProfile.node.json +13 -0
- package/nodes/MultiProfile/panda.svg +291 -0
- package/package.json +47 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class MultiProfileApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
properties: INodeProperties[];
|
|
7
|
+
authenticate: IAuthenticateGeneric;
|
|
8
|
+
test: ICredentialTestRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultiProfileApi = void 0;
|
|
4
|
+
class MultiProfileApi {
|
|
5
|
+
name = 'multiProfileApi';
|
|
6
|
+
displayName = 'MultiProfile API';
|
|
7
|
+
documentationUrl = 'https://files.multiprofile.info/api';
|
|
8
|
+
properties = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'API Base URL',
|
|
11
|
+
name: 'baseUrl',
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: 'http://127.0.0.1:3000',
|
|
14
|
+
placeholder: 'http://127.0.0.1:3000',
|
|
15
|
+
description: 'URL cơ sở của MultiProfile API (ví dụ: http://127.0.0.1:3000)',
|
|
16
|
+
required: true,
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
authenticate = {
|
|
20
|
+
type: 'generic',
|
|
21
|
+
properties: {},
|
|
22
|
+
};
|
|
23
|
+
test = {
|
|
24
|
+
request: {
|
|
25
|
+
baseURL: '={{$credentials.baseUrl}}',
|
|
26
|
+
url: '/rest/profiles',
|
|
27
|
+
method: 'GET',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.MultiProfileApi = MultiProfileApi;
|
package/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class MultiProfile implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
|
+
}
|