@n8n-dev/n8n-nodes-lgtm 1.0.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.
Files changed (46) hide show
  1. package/README.md +169 -0
  2. package/dist/banner.svg +144 -0
  3. package/dist/credentials/LgtmApi.credentials.d.ts +9 -0
  4. package/dist/credentials/LgtmApi.credentials.js +40 -0
  5. package/dist/credentials/LgtmApi.credentials.js.map +1 -0
  6. package/dist/icons/lgtm.dark.svg +18 -0
  7. package/dist/icons/lgtm.svg +18 -0
  8. package/dist/nodes/Lgtm/Lgtm.node.d.ts +4 -0
  9. package/dist/nodes/Lgtm/Lgtm.node.js +110 -0
  10. package/dist/nodes/Lgtm/Lgtm.node.js.map +1 -0
  11. package/dist/nodes/Lgtm/Lgtm.node.json +20 -0
  12. package/dist/nodes/Lgtm/lgtm.dark.svg +18 -0
  13. package/dist/nodes/Lgtm/lgtm.svg +18 -0
  14. package/dist/nodes/Lgtm/resources/analyses/index.d.ts +2 -0
  15. package/dist/nodes/Lgtm/resources/analyses/index.js +437 -0
  16. package/dist/nodes/Lgtm/resources/analyses/index.js.map +1 -0
  17. package/dist/nodes/Lgtm/resources/api-root/index.d.ts +2 -0
  18. package/dist/nodes/Lgtm/resources/api-root/index.js +109 -0
  19. package/dist/nodes/Lgtm/resources/api-root/index.js.map +1 -0
  20. package/dist/nodes/Lgtm/resources/code-reviews/index.d.ts +2 -0
  21. package/dist/nodes/Lgtm/resources/code-reviews/index.js +313 -0
  22. package/dist/nodes/Lgtm/resources/code-reviews/index.js.map +1 -0
  23. package/dist/nodes/Lgtm/resources/index.d.ts +9 -0
  24. package/dist/nodes/Lgtm/resources/index.js +22 -0
  25. package/dist/nodes/Lgtm/resources/index.js.map +1 -0
  26. package/dist/nodes/Lgtm/resources/issues/index.d.ts +2 -0
  27. package/dist/nodes/Lgtm/resources/issues/index.js +114 -0
  28. package/dist/nodes/Lgtm/resources/issues/index.js.map +1 -0
  29. package/dist/nodes/Lgtm/resources/operations/index.d.ts +2 -0
  30. package/dist/nodes/Lgtm/resources/operations/index.js +96 -0
  31. package/dist/nodes/Lgtm/resources/operations/index.js.map +1 -0
  32. package/dist/nodes/Lgtm/resources/projects/index.d.ts +2 -0
  33. package/dist/nodes/Lgtm/resources/projects/index.js +822 -0
  34. package/dist/nodes/Lgtm/resources/projects/index.js.map +1 -0
  35. package/dist/nodes/Lgtm/resources/query-jobs/index.d.ts +2 -0
  36. package/dist/nodes/Lgtm/resources/query-jobs/index.js +560 -0
  37. package/dist/nodes/Lgtm/resources/query-jobs/index.js.map +1 -0
  38. package/dist/nodes/Lgtm/resources/snapshots/index.d.ts +2 -0
  39. package/dist/nodes/Lgtm/resources/snapshots/index.js +495 -0
  40. package/dist/nodes/Lgtm/resources/snapshots/index.js.map +1 -0
  41. package/dist/nodes/Lgtm/resources/system/index.d.ts +2 -0
  42. package/dist/nodes/Lgtm/resources/system/index.js +208 -0
  43. package/dist/nodes/Lgtm/resources/system/index.js.map +1 -0
  44. package/dist/package.json +62 -0
  45. package/dist/tsconfig.tsbuildinfo +1 -0
  46. package/package.json +62 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "node": "N8nDevLgtm",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Development"
7
+ ],
8
+ "resources": {
9
+ "primaryDocumentation": [
10
+ {
11
+ "url": "https://github.com/n8n-code/n8n-nodes-lgtm"
12
+ }
13
+ ],
14
+ "credentialDocumentation": [
15
+ {
16
+ "url": "https://github.com/n8n-code/n8n-nodes-lgtm?tab=readme-ov-file#credentials"
17
+ }
18
+ ]
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ <svg width="250" height="150" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
2
+ <g fill="#666666">
3
+ <path d="m88.05,27.65c-3.15,4 -3.2,51.2 -0.05,54.35c2.75,2.75 71.7,3.15 74.45,0.45c2.85,-2.9 2.3,-53.85 -0.65,-55.9c-1.95,-1.35 -7.15,-1.55 -36.95,-1.55l-34.7,0l-2.1,2.65zm69.45,3.35c0.65,0 1,8.6 1,23.75l0,23.75l-33,0l-33,0l-0.25,-23c-0.15,-12.6 -0.1,-23.45 0.15,-24.1c0.35,-0.85 8.9,-1.05 32.25,-0.75c17.55,0.2 32.3,0.35 32.85,0.35z"/>
4
+ <path d="m99.15,37.3c-6.85,7.35 4.25,17.35 11.4,10.25c1.35,-1.35 2.45,-3.65 2.45,-5.05c0,-6.45 -9.35,-9.95 -13.85,-5.2z"/>
5
+ <path d="m135,42.5c-0.7,0.85 -5.25,5.15 -10.1,9.6l-8.85,8.1l-3.2,-3.2l-3.15,-3.15l-6.35,6.3c-5.55,5.5 -6.35,6.75 -6.35,10.05l0,3.8l28.5,0l28.5,0l0,-8.6l0,-8.55l-8.15,-7.7c-9.35,-8.85 -9.15,-8.7 -10.85,-6.65zm7.25,15.2c0.95,0.9 1.75,2.9 1.75,4.45c6.35,-5.05 4.75,-7.15 4.9,-11.55c0.95,0 0,0 0,0l-6.65,7.1z"/>
6
+ <path d="m53.65,110.75c0.1,4.8 0.45,8.65 0.75,8.5c0.35,-0.15 1.3,-0.25 2.1,-0.25c1.1,0 1.5,-1.2 1.5,-4.75l0,-4.75l3.25,5c4.9,7.5 6.2,6.75 6.55,-3.75c0.25,-8.15 0.15,-8.75 -1.7,-8.75c-1.65,0 -2.05,0.8 -2.3,4.75l-0.3,4.75l-2.8,-4.75c-4.85,-8.25 -7.25,-6.9 -7.05,4z"/>
7
+ <path d="m91,108.9c0,9.65 0.3,10.1 6.1,10.1c5.8,0 7.15,-2.65 1.65,-3.2l-3.25,-0.3l-0.3,-6.75c-0.25,-5.95 -0.55,-6.75 -2.25,-6.75c-1.75,0 -1.95,0.7 -1.95,6.9z"/>
8
+ <path d="m151,102.45c0,0.25 1,2.15 2.25,4.2c1.2,2.1 2.45,5.8 2.75,8.25c0.65,5.9 4,6.95 4,1.25c0.05,-2.1 1.25,-5.85 2.95,-8.9l2.9,-5.25l-2.5,0c-1.8,0 -2.8,0.85 -3.75,3.1l-1.3,3.05l-1.25,-3.05c-1.1,-2.6 -6.05,-4.8 -6.05,-2.65z"/>
9
+ <path d="m191,107.45c0,9.05 3.4,8.85 4.25,-0.2c0.45,-5 0.35,-5.25 -1.9,-5.25c-2.2,0 -2.35,0.4 -2.35,5.45z"/>
10
+ <path d="m180.8,104.75c-1.3,5.35 0.65,13.6 3.45,14.35c2.3,0.6 2.75,0.4 2.75,-1.2c0,-1.05 -0.45,-1.9 -1,-1.9c-0.55,0 -1,-1.6 -1,-3.5c0,-1.95 0.45,-3.5 1,-3.5c0.55,0 1,-0.7 1,-1.5c0,-0.85 -0.45,-1.5 -1,-1.5c-0.55,0 -1,-0.7 -1,-1.5c0,-2.1 -3.65,-1.9 -4.2,0.25z"/>
11
+ <path d="m71.55,106.55c-2.2,2.25 -2.05,9.7 0.3,11.8c4.5,4.1 10.15,0.75 10.15,-6.1c0,-4.85 -2,-7.25 -6,-7.25c-1.55,0 -3.55,0.7 -4.45,1.55zm6.25,5.8c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
12
+ <path d="m105.75,106.1c-2.5,1.45 -2.45,9.95 0.1,12.25c4.3,3.9 10.15,0.35 10.15,-6.2c0,-6 -5.15,-9.05 -10.25,-6.05zm6.05,6.25c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
13
+ <path d="m119.2,106.2c-3.8,3.8 -0.4,12.55 4.4,11.35c1.9,-0.45 2.45,-0.3 2.15,0.65c-0.25,0.7 -1.55,1.2 -2.85,1.1c-4.05,-0.3 -5.35,0.45 -3.85,2.25c0.85,1.05 2.6,1.45 5.35,1.25l4.1,-0.3l0.3,-8.75l0.3,-8.75l-4.35,0c-2.4,0 -4.9,0.55 -5.55,1.2zm6.6,4.45c0.4,2.85 -2.15,4.85 -3.75,2.95c-0.9,-1.1 -0.9,-2 -0.05,-3.6c1.35,-2.5 3.4,-2.15 3.8,0.65z"/>
14
+ <path d="m133.55,106.55c-2.2,2.25 -2.05,9.7 0.3,11.8c4.5,4.1 10.15,0.75 10.15,-6.1c0,-4.85 -2,-7.25 -6,-7.25c-1.55,0 -3.55,0.7 -4.45,1.55zm6.25,5.8c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
15
+ <path d="m167.65,106.85c-3.9,4.3 -0.75,13.15 4.7,13.15c2.4,0 5.65,-2.75 5.65,-4.85c0,-1.4 -2.65,-1.55 -3.5,-0.15c-0.95,1.55 -4.5,1.15 -4.5,-0.5c0,-1.1 1.1,-1.5 4,-1.5c3.15,0 4,-0.35 4,-1.8c0,-5.3 -6.85,-8.25 -10.35,-4.35z"/>
16
+ <path d="m191,117.5c0,2.15 0.4,2.6 2.25,2.3c1.5,-0.2 2.25,-1 2.25,-2.3c0,-1.3 -0.75,-2.1 -2.25,-2.3c-1.85,-0.3 -2.25,0.15 -2.25,2.3z"/>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,18 @@
1
+ <svg width="250" height="150" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
2
+ <g fill="#666666">
3
+ <path d="m88.05,27.65c-3.15,4 -3.2,51.2 -0.05,54.35c2.75,2.75 71.7,3.15 74.45,0.45c2.85,-2.9 2.3,-53.85 -0.65,-55.9c-1.95,-1.35 -7.15,-1.55 -36.95,-1.55l-34.7,0l-2.1,2.65zm69.45,3.35c0.65,0 1,8.6 1,23.75l0,23.75l-33,0l-33,0l-0.25,-23c-0.15,-12.6 -0.1,-23.45 0.15,-24.1c0.35,-0.85 8.9,-1.05 32.25,-0.75c17.55,0.2 32.3,0.35 32.85,0.35z"/>
4
+ <path d="m99.15,37.3c-6.85,7.35 4.25,17.35 11.4,10.25c1.35,-1.35 2.45,-3.65 2.45,-5.05c0,-6.45 -9.35,-9.95 -13.85,-5.2z"/>
5
+ <path d="m135,42.5c-0.7,0.85 -5.25,5.15 -10.1,9.6l-8.85,8.1l-3.2,-3.2l-3.15,-3.15l-6.35,6.3c-5.55,5.5 -6.35,6.75 -6.35,10.05l0,3.8l28.5,0l28.5,0l0,-8.6l0,-8.55l-8.15,-7.7c-9.35,-8.85 -9.15,-8.7 -10.85,-6.65zm7.25,15.2c0.95,0.9 1.75,2.9 1.75,4.45c6.35,-5.05 4.75,-7.15 4.9,-11.55c0.95,0 0,0 0,0l-6.65,7.1z"/>
6
+ <path d="m53.65,110.75c0.1,4.8 0.45,8.65 0.75,8.5c0.35,-0.15 1.3,-0.25 2.1,-0.25c1.1,0 1.5,-1.2 1.5,-4.75l0,-4.75l3.25,5c4.9,7.5 6.2,6.75 6.55,-3.75c0.25,-8.15 0.15,-8.75 -1.7,-8.75c-1.65,0 -2.05,0.8 -2.3,4.75l-0.3,4.75l-2.8,-4.75c-4.85,-8.25 -7.25,-6.9 -7.05,4z"/>
7
+ <path d="m91,108.9c0,9.65 0.3,10.1 6.1,10.1c5.8,0 7.15,-2.65 1.65,-3.2l-3.25,-0.3l-0.3,-6.75c-0.25,-5.95 -0.55,-6.75 -2.25,-6.75c-1.75,0 -1.95,0.7 -1.95,6.9z"/>
8
+ <path d="m151,102.45c0,0.25 1,2.15 2.25,4.2c1.2,2.1 2.45,5.8 2.75,8.25c0.65,5.9 4,6.95 4,1.25c0.05,-2.1 1.25,-5.85 2.95,-8.9l2.9,-5.25l-2.5,0c-1.8,0 -2.8,0.85 -3.75,3.1l-1.3,3.05l-1.25,-3.05c-1.1,-2.6 -6.05,-4.8 -6.05,-2.65z"/>
9
+ <path d="m191,107.45c0,9.05 3.4,8.85 4.25,-0.2c0.45,-5 0.35,-5.25 -1.9,-5.25c-2.2,0 -2.35,0.4 -2.35,5.45z"/>
10
+ <path d="m180.8,104.75c-1.3,5.35 0.65,13.6 3.45,14.35c2.3,0.6 2.75,0.4 2.75,-1.2c0,-1.05 -0.45,-1.9 -1,-1.9c-0.55,0 -1,-1.6 -1,-3.5c0,-1.95 0.45,-3.5 1,-3.5c0.55,0 1,-0.7 1,-1.5c0,-0.85 -0.45,-1.5 -1,-1.5c-0.55,0 -1,-0.7 -1,-1.5c0,-2.1 -3.65,-1.9 -4.2,0.25z"/>
11
+ <path d="m71.55,106.55c-2.2,2.25 -2.05,9.7 0.3,11.8c4.5,4.1 10.15,0.75 10.15,-6.1c0,-4.85 -2,-7.25 -6,-7.25c-1.55,0 -3.55,0.7 -4.45,1.55zm6.25,5.8c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
12
+ <path d="m105.75,106.1c-2.5,1.45 -2.45,9.95 0.1,12.25c4.3,3.9 10.15,0.35 10.15,-6.2c0,-6 -5.15,-9.05 -10.25,-6.05zm6.05,6.25c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
13
+ <path d="m119.2,106.2c-3.8,3.8 -0.4,12.55 4.4,11.35c1.9,-0.45 2.45,-0.3 2.15,0.65c-0.25,0.7 -1.55,1.2 -2.85,1.1c-4.05,-0.3 -5.35,0.45 -3.85,2.25c0.85,1.05 2.6,1.45 5.35,1.25l4.1,-0.3l0.3,-8.75l0.3,-8.75l-4.35,0c-2.4,0 -4.9,0.55 -5.55,1.2zm6.6,4.45c0.4,2.85 -2.15,4.85 -3.75,2.95c-0.9,-1.1 -0.9,-2 -0.05,-3.6c1.35,-2.5 3.4,-2.15 3.8,0.65z"/>
14
+ <path d="m133.55,106.55c-2.2,2.25 -2.05,9.7 0.3,11.8c4.5,4.1 10.15,0.75 10.15,-6.1c0,-4.85 -2,-7.25 -6,-7.25c-1.55,0 -3.55,0.7 -4.45,1.55zm6.25,5.8c0.25,3.05 0,3.65 -1.6,3.65c-2.3,0 -3.25,-2.65 -2.05,-5.85c1.25,-3.35 3.3,-2.1 3.65,2.2z"/>
15
+ <path d="m167.65,106.85c-3.9,4.3 -0.75,13.15 4.7,13.15c2.4,0 5.65,-2.75 5.65,-4.85c0,-1.4 -2.65,-1.55 -3.5,-0.15c-0.95,1.55 -4.5,1.15 -4.5,-0.5c0,-1.1 1.1,-1.5 4,-1.5c3.15,0 4,-0.35 4,-1.8c0,-5.3 -6.85,-8.25 -10.35,-4.35z"/>
16
+ <path d="m191,117.5c0,2.15 0.4,2.6 2.25,2.3c1.5,-0.2 2.25,-1 2.25,-2.3c0,-1.3 -0.75,-2.1 -2.25,-2.3c-1.85,-0.3 -2.25,0.15 -2.25,2.3z"/>
17
+ </g>
18
+ </svg>
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const analysesDescription: INodeProperties[];
@@ -0,0 +1,437 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.analysesDescription = void 0;
4
+ exports.analysesDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Analyses"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Analysis",
20
+ "value": "Get Analysis",
21
+ "action": "Get analysis summary",
22
+ "description": "Get a summary of the analysis results for a specific analysis identifier.\n\nTo find the analysis identifier for a commit, use the `/analyses/{project-id}/commits/{commit-id}` endpoint. For more information, see [Get analysis summary for a specific commit](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAnalysisForCommit).\n\nThis endpoint reports the commit analyzed and a summary of the results for each language. Alternatively, you can use this identifier to download full details of all the alerts found by the analysis. For more information, see [Get detailed alert information](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAlerts).\n",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/analyses/{{$parameter[\"analysis-id\"]}}"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Get Alerts",
32
+ "value": "Get Alerts",
33
+ "action": "Get detailed alert information",
34
+ "description": "Download all the alerts found by an analysis.\nUse the `Accept:` request header to specify the output media type as either CSV or [SARIF](https://lgtm.com/help/lgtm/sarif-results-file): \n\n- `application/sarif+json`: Alerts in SARIF format. If no version is specified the latest supported SARIF version is used.\n- `application/json`: Alerts in SARIF format (*deprecated*). \n If no version is specified, [SARIF 2.0.0](http://docs.oasis-open.org/sarif/sarif/v2.0/sarif-v2.0.html) \n is used for backwards compatibility.\n\n- `text/csv`: Alerts in CSV format. The `text/csv` media type has two optional parameters:\n - `charset`: determines the character encoding of the text, by default UTF-8.\n - `header`: determines whether a header row with column names is `present` or `absent`.\n The default value for this parameter is `present`.\n For example, an Accept header with value `text/csv; header=absent` \n would result in CSV output without a header row.\n \n\n\n\nTo find the analysis identifier for a commit, use the `/analyses/{project-id}/commits/{commit-id}` endpoint. For more information, see [Get analysis summary for a specific commit](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAnalysisForCommit). \n",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/analyses/{{$parameter[\"analysis-id\"]}}/alerts"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Request Analysis",
44
+ "value": "Request Analysis",
45
+ "action": "Run analysis of a specific commit",
46
+ "description": "Trigger the analysis of a specific commit to a project. If a previous attempt to analyze that commit failed, this triggers a fresh analysis. This is supported for all LGTM projects, regardless of repository type or host. The commit must be available in the main repository, but can be on a branch that isn't tracked by LGTM. For both LGTM.com and LGTM Enterprise, you must include an access token with the `analyses:write` scope.\n\nWhen you request the analysis of a commit, the API returns:\n- `operation-id`: used to track the status of the task using the `/operations` endpoint. For more information, see [Get operation status](https://lgtm.com/help/lgtm/api/api-v1#opIdgetOperation).\n- `status`: initially pending.\n- `task-result`: containing information about the progress and results of the analysis.\n",
47
+ "routing": {
48
+ "request": {
49
+ "method": "POST",
50
+ "url": "=/analyses/{{$parameter[\"project-id\"]}}"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Get Analysis For Commit",
56
+ "value": "Get Analysis For Commit",
57
+ "action": "Get analysis summary for a specific commit",
58
+ "description": "Get a summary of the analysis results for a specific commit, or the latest commit, to a project. (For projects configured for sparse or upload analysis, only `latest` is supported.) \n\nThis endpoint reports a summary of results for each language, and also the analysis identifier. You can use the analysis identifier to download full details of all the alerts found by the analysis. For more information, see [Get detailed alert information](https://lgtm.com/help/lgtm/api/api-v1#opIdgetAlerts).\n",
59
+ "routing": {
60
+ "request": {
61
+ "method": "GET",
62
+ "url": "=/analyses/{{$parameter[\"project-id\"]}}/commits/{{$parameter[\"commit-id\"]}}"
63
+ }
64
+ }
65
+ }
66
+ ],
67
+ "default": ""
68
+ },
69
+ {
70
+ "displayName": "GET /analyses/{analysis-id}",
71
+ "name": "operation",
72
+ "type": "notice",
73
+ "typeOptions": {
74
+ "theme": "info"
75
+ },
76
+ "default": "",
77
+ "displayOptions": {
78
+ "show": {
79
+ "resource": [
80
+ "Analyses"
81
+ ],
82
+ "operation": [
83
+ "Get Analysis"
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "displayName": "Analysis ID",
90
+ "name": "analysis-id",
91
+ "required": true,
92
+ "description": "The analysis identifier.",
93
+ "default": "",
94
+ "type": "string",
95
+ "displayOptions": {
96
+ "show": {
97
+ "resource": [
98
+ "Analyses"
99
+ ],
100
+ "operation": [
101
+ "Get Analysis"
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "displayName": "Bearer Token",
108
+ "name": "security_access_token",
109
+ "type": "string",
110
+ "default": "",
111
+ "description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
112
+ "required": false,
113
+ "routing": {
114
+ "request": {
115
+ "headers": {
116
+ "Authorization": "={{ 'Bearer ' + $value }}"
117
+ }
118
+ }
119
+ },
120
+ "displayOptions": {
121
+ "show": {
122
+ "resource": [
123
+ "Analyses"
124
+ ],
125
+ "operation": [
126
+ "Get Analysis"
127
+ ]
128
+ }
129
+ }
130
+ },
131
+ {
132
+ "displayName": "GET /analyses/{analysis-id}/alerts",
133
+ "name": "operation",
134
+ "type": "notice",
135
+ "typeOptions": {
136
+ "theme": "info"
137
+ },
138
+ "default": "",
139
+ "displayOptions": {
140
+ "show": {
141
+ "resource": [
142
+ "Analyses"
143
+ ],
144
+ "operation": [
145
+ "Get Alerts"
146
+ ]
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "displayName": "Analysis ID",
152
+ "name": "analysis-id",
153
+ "required": true,
154
+ "description": "The analysis identifier.",
155
+ "default": "",
156
+ "type": "string",
157
+ "displayOptions": {
158
+ "show": {
159
+ "resource": [
160
+ "Analyses"
161
+ ],
162
+ "operation": [
163
+ "Get Alerts"
164
+ ]
165
+ }
166
+ }
167
+ },
168
+ {
169
+ "displayName": "Sarif Version",
170
+ "name": "sarif-version",
171
+ "description": "The desired version of the SARIF format. Currently supported versions are `1.0.0`, `2.0.0`, and `2.1.0`.",
172
+ "default": "",
173
+ "type": "string",
174
+ "routing": {
175
+ "send": {
176
+ "type": "query",
177
+ "property": "sarif-version",
178
+ "value": "={{ $value }}",
179
+ "propertyInDotNotation": false
180
+ }
181
+ },
182
+ "displayOptions": {
183
+ "show": {
184
+ "resource": [
185
+ "Analyses"
186
+ ],
187
+ "operation": [
188
+ "Get Alerts"
189
+ ]
190
+ }
191
+ }
192
+ },
193
+ {
194
+ "displayName": "Excluded Files",
195
+ "name": "excluded-files",
196
+ "description": "Set `true` to include results in files that are excluded from the output by default. This includes results in test code and generated files. For more information, see [File classification](https://lgtm.com/help/lgtm/file-classification).",
197
+ "default": false,
198
+ "type": "boolean",
199
+ "routing": {
200
+ "send": {
201
+ "type": "query",
202
+ "property": "excluded-files",
203
+ "value": "={{ $value }}",
204
+ "propertyInDotNotation": false
205
+ }
206
+ },
207
+ "displayOptions": {
208
+ "show": {
209
+ "resource": [
210
+ "Analyses"
211
+ ],
212
+ "operation": [
213
+ "Get Alerts"
214
+ ]
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "displayName": "Bearer Token",
220
+ "name": "security_access_token",
221
+ "type": "string",
222
+ "default": "",
223
+ "description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
224
+ "required": false,
225
+ "routing": {
226
+ "request": {
227
+ "headers": {
228
+ "Authorization": "={{ 'Bearer ' + $value }}"
229
+ }
230
+ }
231
+ },
232
+ "displayOptions": {
233
+ "show": {
234
+ "resource": [
235
+ "Analyses"
236
+ ],
237
+ "operation": [
238
+ "Get Alerts"
239
+ ]
240
+ }
241
+ }
242
+ },
243
+ {
244
+ "displayName": "POST /analyses/{project-id}",
245
+ "name": "operation",
246
+ "type": "notice",
247
+ "typeOptions": {
248
+ "theme": "info"
249
+ },
250
+ "default": "",
251
+ "displayOptions": {
252
+ "show": {
253
+ "resource": [
254
+ "Analyses"
255
+ ],
256
+ "operation": [
257
+ "Request Analysis"
258
+ ]
259
+ }
260
+ }
261
+ },
262
+ {
263
+ "displayName": "Project ID",
264
+ "name": "project-id",
265
+ "required": true,
266
+ "description": "The numeric project identifier.",
267
+ "default": 0,
268
+ "type": "number",
269
+ "displayOptions": {
270
+ "show": {
271
+ "resource": [
272
+ "Analyses"
273
+ ],
274
+ "operation": [
275
+ "Request Analysis"
276
+ ]
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "displayName": "Commit",
282
+ "name": "commit",
283
+ "required": true,
284
+ "description": "The identifier of the commit to analyze.",
285
+ "default": "",
286
+ "type": "string",
287
+ "routing": {
288
+ "send": {
289
+ "type": "query",
290
+ "property": "commit",
291
+ "value": "={{ $value }}",
292
+ "propertyInDotNotation": false
293
+ }
294
+ },
295
+ "displayOptions": {
296
+ "show": {
297
+ "resource": [
298
+ "Analyses"
299
+ ],
300
+ "operation": [
301
+ "Request Analysis"
302
+ ]
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "displayName": "Language",
308
+ "name": "language",
309
+ "description": "The language codes of the languages to analyze.\nFor a list of available languages, see [Supported languages](https://lgtm.com/help/lgtm/analysis-faqs#which-languages-are-supported). To specify more than one language, this parameter can be repeated. If no language is specified, all the project's languages will be analyzed.\n",
310
+ "default": "[\n null\n]",
311
+ "type": "json",
312
+ "routing": {
313
+ "send": {
314
+ "type": "query",
315
+ "property": "language",
316
+ "value": "={{ $value }}",
317
+ "propertyInDotNotation": false
318
+ }
319
+ },
320
+ "displayOptions": {
321
+ "show": {
322
+ "resource": [
323
+ "Analyses"
324
+ ],
325
+ "operation": [
326
+ "Request Analysis"
327
+ ]
328
+ }
329
+ }
330
+ },
331
+ {
332
+ "displayName": "Bearer Token",
333
+ "name": "security_access_token",
334
+ "type": "string",
335
+ "default": "",
336
+ "description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
337
+ "required": false,
338
+ "routing": {
339
+ "request": {
340
+ "headers": {
341
+ "Authorization": "={{ 'Bearer ' + $value }}"
342
+ }
343
+ }
344
+ },
345
+ "displayOptions": {
346
+ "show": {
347
+ "resource": [
348
+ "Analyses"
349
+ ],
350
+ "operation": [
351
+ "Request Analysis"
352
+ ]
353
+ }
354
+ }
355
+ },
356
+ {
357
+ "displayName": "GET /analyses/{project-id}/commits/{commit-id}",
358
+ "name": "operation",
359
+ "type": "notice",
360
+ "typeOptions": {
361
+ "theme": "info"
362
+ },
363
+ "default": "",
364
+ "displayOptions": {
365
+ "show": {
366
+ "resource": [
367
+ "Analyses"
368
+ ],
369
+ "operation": [
370
+ "Get Analysis For Commit"
371
+ ]
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "displayName": "Project ID",
377
+ "name": "project-id",
378
+ "required": true,
379
+ "description": "The numeric project identifier.",
380
+ "default": 0,
381
+ "type": "number",
382
+ "displayOptions": {
383
+ "show": {
384
+ "resource": [
385
+ "Analyses"
386
+ ],
387
+ "operation": [
388
+ "Get Analysis For Commit"
389
+ ]
390
+ }
391
+ }
392
+ },
393
+ {
394
+ "displayName": "Commit ID",
395
+ "name": "commit-id",
396
+ "required": true,
397
+ "description": "The identifier of a specific commit. Alternatively, use `latest` for the most recent analyzed commit.",
398
+ "default": "",
399
+ "type": "string",
400
+ "displayOptions": {
401
+ "show": {
402
+ "resource": [
403
+ "Analyses"
404
+ ],
405
+ "operation": [
406
+ "Get Analysis For Commit"
407
+ ]
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "displayName": "Bearer Token",
413
+ "name": "security_access_token",
414
+ "type": "string",
415
+ "default": "",
416
+ "description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
417
+ "required": false,
418
+ "routing": {
419
+ "request": {
420
+ "headers": {
421
+ "Authorization": "={{ 'Bearer ' + $value }}"
422
+ }
423
+ }
424
+ },
425
+ "displayOptions": {
426
+ "show": {
427
+ "resource": [
428
+ "Analyses"
429
+ ],
430
+ "operation": [
431
+ "Get Analysis For Commit"
432
+ ]
433
+ }
434
+ }
435
+ },
436
+ ];
437
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Lgtm/resources/analyses/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACtC;QACb,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,UAAU;iBACV;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,cAAc;gBACtB,OAAO,EAAE,cAAc;gBACvB,QAAQ,EAAE,sBAAsB;gBAChC,aAAa,EAAE,ioBAAioB;gBAChpB,SAAS,EAAE;oBACV,SAAS,E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,EAAE,QAAQ;QAChB,SAAS,EAAE,EAAE;QACb,aAAa,EAAE,s3BAAs3B;QACr4B,UAAU,EAAE,KAAK;QACjB,SAAS,EAAE;YACV,SAAS,EAAE;gBACV,SAAS,EAAE;oBACV,eAAe,EAAE,2BAA2B;iBAC5C;aACD;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,UAAU;iBACV;gBACD,WAAW,EAAE;oBACZ,yBAAyB;iBACzB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const apiRootDescription: INodeProperties[];
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apiRootDescription = void 0;
4
+ exports.apiRootDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "API Root"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Version",
20
+ "value": "Get Version",
21
+ "action": "Version information",
22
+ "description": "Get the version information of this API.",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Get Spec",
32
+ "value": "Get Spec",
33
+ "action": "API specification",
34
+ "description": "Get the specification of this API in [OpenAPI](https://github.com/OAI/OpenAPI-Specification) format. This endpoint does not require an access token. This makes it easier for you to use the specification with third-party tools.",
35
+ "routing": {
36
+ "request": {
37
+ "method": "GET",
38
+ "url": "=/openapi"
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "default": ""
44
+ },
45
+ {
46
+ "displayName": "GET /",
47
+ "name": "operation",
48
+ "type": "notice",
49
+ "typeOptions": {
50
+ "theme": "info"
51
+ },
52
+ "default": "",
53
+ "displayOptions": {
54
+ "show": {
55
+ "resource": [
56
+ "API Root"
57
+ ],
58
+ "operation": [
59
+ "Get Version"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "displayName": "Bearer Token",
66
+ "name": "security_access_token",
67
+ "type": "string",
68
+ "default": "",
69
+ "description": "\n\nLGTM Enterprise users need to create and use an access token to authenticate with this API. This is optional for LGTM.com users unless they want to submit a CodeQL query for analysis of one or more projects, or to request the analysis of a patch or commit. LGTM.com users also need an access token to check on the progress of long running tasks using the `/operations` endpoint.\nLog in to LGTM and use the **Create token** option in your Account settings page. For more detailed information, see [Authentication with the API](https://lgtm.com/help/lgtm/api/authentication-api) and [Managing access tokens](https://lgtm.com/help/lgtm/api/managing-access-tokens).\nIf you include an access token in the header of a request to the API for data, it must have the scopes required by that endpoint. Access tokens are shown in the examples as: `Authorization: Bearer {access-token}`\n",
70
+ "required": false,
71
+ "routing": {
72
+ "request": {
73
+ "headers": {
74
+ "Authorization": "={{ 'Bearer ' + $value }}"
75
+ }
76
+ }
77
+ },
78
+ "displayOptions": {
79
+ "show": {
80
+ "resource": [
81
+ "API Root"
82
+ ],
83
+ "operation": [
84
+ "Get Version"
85
+ ]
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "displayName": "GET /openapi",
91
+ "name": "operation",
92
+ "type": "notice",
93
+ "typeOptions": {
94
+ "theme": "info"
95
+ },
96
+ "default": "",
97
+ "displayOptions": {
98
+ "show": {
99
+ "resource": [
100
+ "API Root"
101
+ ],
102
+ "operation": [
103
+ "Get Spec"
104
+ ]
105
+ }
106
+ }
107
+ },
108
+ ];
109
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Lgtm/resources/api-root/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACrC;QACb,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBA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Ac;QAC7B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,UAAU;iBACV;gBACD,WAAW,EAAE;oBACZ,UAAU;iBACV;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const codeReviewsDescription: INodeProperties[];