n8n-nodes-alterlab 0.7.0 → 0.8.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.
- package/dist/credentials/AlterLabApi.credentials.d.ts +1 -1
- package/dist/credentials/AlterLabApi.credentials.d.ts.map +1 -1
- package/dist/credentials/AlterLabApi.credentials.js +17 -17
- package/dist/credentials/AlterLabApi.credentials.js.map +1 -1
- package/dist/credentials/AlterLabOAuth2Api.credentials.d.ts +1 -1
- package/dist/credentials/AlterLabOAuth2Api.credentials.d.ts.map +1 -1
- package/dist/credentials/AlterLabOAuth2Api.credentials.js +39 -39
- package/dist/credentials/AlterLabOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/AlterLab/AlterLab.node.d.ts.map +1 -1
- package/dist/nodes/AlterLab/AlterLab.node.js +1264 -109
- package/dist/nodes/AlterLab/AlterLab.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from "n8n-workflow";
|
|
2
2
|
export declare class AlterLabApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterLabApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/AlterLabApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AlterLabApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/AlterLabApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,qBAAa,WAAY,YAAW,eAAe;IACjD,IAAI,SAAiB;IACrB,WAAW,SAAkB;IAC7B,gBAAgB,SACmF;IAEnG,UAAU,EAAE,eAAe,EAAE,CAmB3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACH"}
|
|
@@ -3,40 +3,40 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AlterLabApi = void 0;
|
|
4
4
|
class AlterLabApi {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.name =
|
|
7
|
-
this.displayName =
|
|
8
|
-
this.documentationUrl =
|
|
6
|
+
this.name = "alterLabApi";
|
|
7
|
+
this.displayName = "AlterLab API";
|
|
8
|
+
this.documentationUrl = "https://docs.alterlab.io/api?utm_source=n8n&utm_medium=integration&utm_campaign=community_node";
|
|
9
9
|
this.properties = [
|
|
10
10
|
{
|
|
11
|
-
displayName:
|
|
12
|
-
name:
|
|
13
|
-
type:
|
|
11
|
+
displayName: "API Key",
|
|
12
|
+
name: "apiKey",
|
|
13
|
+
type: "string",
|
|
14
14
|
typeOptions: { password: true },
|
|
15
|
-
default:
|
|
15
|
+
default: "",
|
|
16
16
|
required: true,
|
|
17
17
|
description: 'Your AlterLab API key. <a href="https://app.alterlab.io/dashboard/keys?utm_source=n8n&utm_medium=integration&utm_campaign=community_node" target="_blank">Find your API key</a> or <a href="https://app.alterlab.io/signin?redirect=/dashboard/keys&source=n8n&utm_source=n8n&utm_medium=integration&utm_campaign=community_node" target="_blank">sign up free — $1 balance, up to 5,000 scrapes</a>.',
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
displayName:
|
|
21
|
-
name:
|
|
22
|
-
type:
|
|
23
|
-
default:
|
|
24
|
-
description:
|
|
20
|
+
displayName: "Base URL",
|
|
21
|
+
name: "baseUrl",
|
|
22
|
+
type: "string",
|
|
23
|
+
default: "https://api.alterlab.io",
|
|
24
|
+
description: "AlterLab API base URL. Only change for self-hosted instances.",
|
|
25
25
|
},
|
|
26
26
|
];
|
|
27
27
|
this.authenticate = {
|
|
28
|
-
type:
|
|
28
|
+
type: "generic",
|
|
29
29
|
properties: {
|
|
30
30
|
headers: {
|
|
31
|
-
|
|
31
|
+
"X-API-Key": "={{$credentials.apiKey}}",
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
this.test = {
|
|
36
36
|
request: {
|
|
37
|
-
baseURL:
|
|
38
|
-
url:
|
|
39
|
-
method:
|
|
37
|
+
baseURL: "={{$credentials.baseUrl}}",
|
|
38
|
+
url: "/api/v1/usage",
|
|
39
|
+
method: "GET",
|
|
40
40
|
},
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterLabApi.credentials.js","sourceRoot":"","sources":["../../credentials/AlterLabApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;
|
|
1
|
+
{"version":3,"file":"AlterLabApi.credentials.js","sourceRoot":"","sources":["../../credentials/AlterLabApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GACd,gGAAgG,CAAC;QAEnG,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EACT,uYAAuY;aAC1Y;YACD;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,yBAAyB;gBAClC,WAAW,EACT,+DAA+D;aAClE;SACF,CAAC;QAEF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,WAAW,EAAE,0BAA0B;iBACxC;aACF;SACF,CAAC;QAEF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,eAAe;gBACpB,MAAM,EAAE,KAAK;aACd;SACF,CAAC;IACJ,CAAC;CAAA;AA3CD,kCA2CC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ICredentialTestRequest, ICredentialType, INodeProperties } from
|
|
1
|
+
import type { ICredentialTestRequest, ICredentialType, INodeProperties } from "n8n-workflow";
|
|
2
2
|
export declare class AlterLabOAuth2Api implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterLabOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/AlterLabOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"AlterLabOAuth2Api.credentials.d.ts","sourceRoot":"","sources":["../../credentials/AlterLabOAuth2Api.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,eAAe,EACf,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,qBAAa,iBAAkB,YAAW,eAAe;IACvD,IAAI,SAAuB;IAC3B,WAAW,SAAyB;IACpC,gBAAgB,SACmF;IAEnG,OAAO,WAAiB;IAExB,UAAU,EAAE,eAAe,EAAE,CAiD3B;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACH"}
|
|
@@ -3,65 +3,65 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AlterLabOAuth2Api = void 0;
|
|
4
4
|
class AlterLabOAuth2Api {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.name =
|
|
7
|
-
this.displayName =
|
|
8
|
-
this.documentationUrl =
|
|
9
|
-
this.extends = [
|
|
6
|
+
this.name = "alterLabOAuth2Api";
|
|
7
|
+
this.displayName = "AlterLab OAuth2 API";
|
|
8
|
+
this.documentationUrl = "https://docs.alterlab.io/api?utm_source=n8n&utm_medium=integration&utm_campaign=community_node";
|
|
9
|
+
this.extends = ["oAuth2Api"];
|
|
10
10
|
this.properties = [
|
|
11
11
|
{
|
|
12
|
-
displayName:
|
|
13
|
-
name:
|
|
14
|
-
type:
|
|
15
|
-
default:
|
|
12
|
+
displayName: "Grant Type",
|
|
13
|
+
name: "grantType",
|
|
14
|
+
type: "hidden",
|
|
15
|
+
default: "authorizationCode",
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
displayName:
|
|
19
|
-
name:
|
|
20
|
-
type:
|
|
21
|
-
default:
|
|
18
|
+
displayName: "Authorization URL",
|
|
19
|
+
name: "authorizationUrl",
|
|
20
|
+
type: "hidden",
|
|
21
|
+
default: "https://app.alterlab.io/oauth/authorize",
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
displayName:
|
|
25
|
-
name:
|
|
26
|
-
type:
|
|
27
|
-
default:
|
|
24
|
+
displayName: "Access Token URL",
|
|
25
|
+
name: "accessTokenUrl",
|
|
26
|
+
type: "hidden",
|
|
27
|
+
default: "https://api.alterlab.io/api/v1/oauth/token",
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
displayName:
|
|
31
|
-
name:
|
|
32
|
-
type:
|
|
33
|
-
default:
|
|
30
|
+
displayName: "Client ID",
|
|
31
|
+
name: "clientId",
|
|
32
|
+
type: "hidden",
|
|
33
|
+
default: "n8n-community-node",
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
displayName:
|
|
37
|
-
name:
|
|
38
|
-
type:
|
|
39
|
-
default:
|
|
36
|
+
displayName: "Client Secret",
|
|
37
|
+
name: "clientSecret",
|
|
38
|
+
type: "hidden",
|
|
39
|
+
default: "altrlab_n8n_Kx7mP2vQ9wR4jH6nB3cT5zY8",
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
displayName:
|
|
43
|
-
name:
|
|
44
|
-
type:
|
|
45
|
-
default:
|
|
42
|
+
displayName: "Scope",
|
|
43
|
+
name: "scope",
|
|
44
|
+
type: "hidden",
|
|
45
|
+
default: "scrape",
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
displayName:
|
|
49
|
-
name:
|
|
50
|
-
type:
|
|
51
|
-
default:
|
|
48
|
+
displayName: "Auth URI Query Parameters",
|
|
49
|
+
name: "authQueryParameters",
|
|
50
|
+
type: "hidden",
|
|
51
|
+
default: "",
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
displayName:
|
|
55
|
-
name:
|
|
56
|
-
type:
|
|
57
|
-
default:
|
|
54
|
+
displayName: "Authentication",
|
|
55
|
+
name: "authentication",
|
|
56
|
+
type: "hidden",
|
|
57
|
+
default: "body",
|
|
58
58
|
},
|
|
59
59
|
];
|
|
60
60
|
this.test = {
|
|
61
61
|
request: {
|
|
62
|
-
baseURL:
|
|
63
|
-
url:
|
|
64
|
-
method:
|
|
62
|
+
baseURL: "https://api.alterlab.io",
|
|
63
|
+
url: "/api/v1/usage",
|
|
64
|
+
method: "GET",
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlterLabOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/AlterLabOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;IAA9B;
|
|
1
|
+
{"version":3,"file":"AlterLabOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/AlterLabOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAMA,MAAa,iBAAiB;IAA9B;QACE,SAAI,GAAG,mBAAmB,CAAC;QAC3B,gBAAW,GAAG,qBAAqB,CAAC;QACpC,qBAAgB,GACd,gGAAgG,CAAC;QAEnG,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACj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B,EAErB,MAAM,cAAc,CAAC;AAKtB,qBAAa,QAAS,YAAW,SAAS;IACxC,WAAW,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"AlterLab.node.d.ts","sourceRoot":"","sources":["../../../nodes/AlterLab/AlterLab.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAKtB,qBAAa,QAAS,YAAW,SAAS;IACxC,WAAW,EAAE,oBAAoB,CA4/C/B;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAg5CxE"}
|