n8n-nodes-userapi 0.1.0 → 0.1.2
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.
|
@@ -6,19 +6,16 @@ export declare class UserApi implements ICredentialType {
|
|
|
6
6
|
authenticate: {
|
|
7
7
|
type: "generic";
|
|
8
8
|
properties: {
|
|
9
|
-
baseURL: string;
|
|
10
9
|
headers: {
|
|
11
10
|
'api-key': string;
|
|
12
|
-
'Content-Type': string;
|
|
13
11
|
};
|
|
14
12
|
};
|
|
15
13
|
};
|
|
16
14
|
properties: INodeProperties[];
|
|
17
15
|
test: {
|
|
18
16
|
request: {
|
|
19
|
-
baseURL: string;
|
|
20
|
-
url: string;
|
|
21
17
|
method: "GET";
|
|
18
|
+
url: string;
|
|
22
19
|
};
|
|
23
20
|
};
|
|
24
21
|
}
|
|
@@ -5,14 +5,12 @@ class UserApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'userApi';
|
|
7
7
|
this.displayName = 'UserAPI';
|
|
8
|
-
this.documentationUrl = 'https://
|
|
8
|
+
this.documentationUrl = 'https://userapi.ai/first-steps';
|
|
9
9
|
this.authenticate = {
|
|
10
10
|
type: 'generic',
|
|
11
11
|
properties: {
|
|
12
|
-
baseURL: 'https://api.userapi.ai',
|
|
13
12
|
headers: {
|
|
14
13
|
'api-key': '={{$credentials.apiKey}}',
|
|
15
|
-
'Content-Type': 'application/json',
|
|
16
14
|
},
|
|
17
15
|
},
|
|
18
16
|
};
|
|
@@ -26,14 +24,12 @@ class UserApi {
|
|
|
26
24
|
},
|
|
27
25
|
default: '',
|
|
28
26
|
required: true,
|
|
29
|
-
description: 'Get API key at https://userapi.ai. Sent in header: api-key',
|
|
30
27
|
},
|
|
31
28
|
];
|
|
32
29
|
this.test = {
|
|
33
30
|
request: {
|
|
34
|
-
baseURL: 'https://api.userapi.ai',
|
|
35
|
-
url: '/user/check-connection',
|
|
36
31
|
method: 'GET',
|
|
32
|
+
url: 'https://api.userapi.ai/user/whoami',
|
|
37
33
|
},
|
|
38
34
|
};
|
|
39
35
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg version="1.0" width="248.000000pt" height="248.000000pt" viewBox="0 0 248.000000 248.000000" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<g transform="translate(0.000000,248.000000) scale(0.100000,-0.100000)" fill="#000000" stroke="none">
|
|
4
|
+
<path d="M1967 1973 c-15 -2 -43 -20 -62 -39 -91 -90 -30 -236 99 -236 90 0 141 49 141 137 0 97 -74 155 -178 138z" style="paint-order: fill; fill: rgb(236, 72, 153);"/>
|
|
5
|
+
<path d="M 1065 1585 C 989 1568 946 1550 893 1511 C 848 1478 785 1393 775 1350 C 769 1326 773 1323 857 1296 C 905 1280 950 1265 956 1263 C 962 1261 970 1272 973 1289 C 982 1334 1047 1396 1100 1410 C 1193 1435 1308 1404 1342 1345 C 1352 1327 1361 1288 1362 1255 L 1365 1195 L 1180 1189 C 986 1184 920 1172 859 1134 C 771 1079 731 1006 731 895 C 730 714 865 600 1081 600 C 1210 600 1293 638 1345 721 C 1374 767 1388 764 1415 707 C 1446 643 1482 627 1603 626 L 1705 625 L 1708 713 L 1711 800 L 1661 800 C 1580 800 1580 800 1580 1038 C 1580 1152 1575 1274 1569 1310 C 1558 1380 1522 1454 1481 1494 C 1436 1537 1341.502 1588.421 1258.502 1599.421 C 1162.502 1612.421 1141 1602 1065 1585 Z M 1363 990 C 1357 914 1349 893 1304 848 C 1200 742 1008 748 954 858 C 922 925 964 1000 1045 1019 C 1067 1024 1148 1028 1225 1027 L 1365 1025 L 1363 990 Z" style="paint-order: fill; fill: rgb(236, 72, 153);"/>
|
|
6
|
+
<path d="M1902 1098 l3 -473 105 0 105 0 0 470 0 470 -108 3 -107 3 2 -473z" style="paint-order: fill; fill: rgb(236, 72, 153);"/>
|
|
7
|
+
<path d="M 292 913 C 241 888 205.626 845 201.626 773 C 197.626 719 211 704 231 674 C 276 607 381 579 450 615 C 549 666 568 816 484 889 C 465 906 445 918 440 915 C 435 912 429 914 425 920 C 415 936 329 931 292 913 Z" style="paint-order: fill; fill: rgb(236, 72, 153);"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-userapi",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "n8n community nodes for
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "n8n community nodes for UserApi.Ai endpoints",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://api.userapi.ai",
|
|
7
7
|
"author": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"main": "dist/nodes/UserApi/UserApi.node.js",
|
|
24
24
|
"types": "dist/nodes/UserApi/UserApi.node.d.ts",
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "tsc -p tsconfig.json",
|
|
26
|
+
"build": "tsc -p tsconfig.json && node scripts/copy-assets.js",
|
|
27
27
|
"dev": "tsc -w -p tsconfig.json",
|
|
28
28
|
"lint": "echo \"Add ESLint config if needed\""
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"n8n-workflow": "
|
|
31
|
+
"n8n-workflow": "^1.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^22.13.4",
|