@custom-js/n8n-nodes-pdf-toolkit 1.42.0 → 1.44.0
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.
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IAuthenticateGeneric,
|
|
3
|
+
ICredentialTestRequest,
|
|
4
|
+
ICredentialType,
|
|
5
|
+
INodeProperties,
|
|
6
|
+
} from "n8n-workflow";
|
|
7
|
+
|
|
8
|
+
export class CustomJsApi implements ICredentialType {
|
|
9
|
+
name = "customJsApi";
|
|
10
|
+
displayName = "CustomJS API";
|
|
11
|
+
documentationUrl = "https://www.customjs.space/";
|
|
12
|
+
properties: INodeProperties[] = [
|
|
13
|
+
{
|
|
14
|
+
displayName: "API Key",
|
|
15
|
+
name: "apiKey",
|
|
16
|
+
type: "string",
|
|
17
|
+
typeOptions: { password: true },
|
|
18
|
+
default: "",
|
|
19
|
+
description: "You can get API Key for CustomJS from https://www.customjs.space/",
|
|
20
|
+
required: true,
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
authenticate: IAuthenticateGeneric = {
|
|
25
|
+
type: "generic",
|
|
26
|
+
properties: {
|
|
27
|
+
headers: {
|
|
28
|
+
"x-api-key": "={{$credentials.apiKey}}",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
test: ICredentialTestRequest = {
|
|
34
|
+
request: {
|
|
35
|
+
baseURL: "https://e.customjs.io",
|
|
36
|
+
url: "=/__js1-{{$credentials.apiKey}}",
|
|
37
|
+
method: "POST",
|
|
38
|
+
headers: {
|
|
39
|
+
"customjs-origin": "n8n/credential-test",
|
|
40
|
+
},
|
|
41
|
+
body: {
|
|
42
|
+
input: "test",
|
|
43
|
+
code: "return 'ok'",
|
|
44
|
+
returnBinary: "false",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -5,15 +5,41 @@ class CustomJsApi {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = "customJsApi";
|
|
7
7
|
this.displayName = "CustomJS API";
|
|
8
|
+
this.documentationUrl = "https://www.customjs.space/";
|
|
8
9
|
this.properties = [
|
|
9
10
|
{
|
|
10
11
|
displayName: "API Key",
|
|
11
12
|
name: "apiKey",
|
|
12
13
|
type: "string",
|
|
14
|
+
typeOptions: { password: true },
|
|
13
15
|
default: "",
|
|
14
|
-
description: "You can get API Key for CustomJS from https://www.customjs.space/"
|
|
16
|
+
description: "You can get API Key for CustomJS from https://www.customjs.space/",
|
|
17
|
+
required: true,
|
|
15
18
|
},
|
|
16
19
|
];
|
|
20
|
+
this.authenticate = {
|
|
21
|
+
type: "generic",
|
|
22
|
+
properties: {
|
|
23
|
+
headers: {
|
|
24
|
+
"x-api-key": "={{$credentials.apiKey}}",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
this.test = {
|
|
29
|
+
request: {
|
|
30
|
+
baseURL: "https://e.customjs.io",
|
|
31
|
+
url: "=/__js1-{{$credentials.apiKey}}",
|
|
32
|
+
method: "POST",
|
|
33
|
+
headers: {
|
|
34
|
+
"customjs-origin": "n8n/credential-test",
|
|
35
|
+
},
|
|
36
|
+
body: {
|
|
37
|
+
input: "test",
|
|
38
|
+
code: "return 'ok'",
|
|
39
|
+
returnBinary: "false",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
17
43
|
}
|
|
18
44
|
}
|
|
19
45
|
exports.CustomJsApi = CustomJsApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@custom-js/n8n-nodes-pdf-toolkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "This is official node for interacting with APIs from customjs.space",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"customjs",
|
|
@@ -9,16 +9,18 @@
|
|
|
9
9
|
"pdf-toolkit"
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://www.customjs.space/",
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/customjs/n8n-nodes-pdf-toolkit.git"
|
|
14
15
|
},
|
|
15
|
-
"license": "
|
|
16
|
+
"license": "MIT",
|
|
16
17
|
"author": {
|
|
17
18
|
"name": "Henrik Lippke",
|
|
18
19
|
"email": "h@customjs.io"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
|
-
"dist"
|
|
22
|
+
"dist",
|
|
23
|
+
"credentials"
|
|
22
24
|
],
|
|
23
25
|
"n8n": {
|
|
24
26
|
"n8nNodesApiVersion": 1,
|