@justbrunasso/n8n-nodes-glpi-v2 1.0.4 → 1.0.6

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 (33) hide show
  1. package/dist/icons/github.dark.svg +3 -0
  2. package/dist/icons/github.svg +3 -0
  3. package/dist/nodes/GlpiV2/GlpiV2.svg +5 -0
  4. package/package.json +2 -3
  5. package/dist/nodes/Example/Example.node.js +0 -61
  6. package/dist/nodes/Example/Example.node.js.map +0 -1
  7. package/dist/nodes/GithubIssues/GithubIssues.node.js +0 -101
  8. package/dist/nodes/GithubIssues/GithubIssues.node.js.map +0 -1
  9. package/dist/nodes/GithubIssues/listSearch/getIssues.js +0 -28
  10. package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +0 -1
  11. package/dist/nodes/GithubIssues/listSearch/getRepositories.js +0 -31
  12. package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +0 -1
  13. package/dist/nodes/GithubIssues/listSearch/getUsers.js +0 -29
  14. package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +0 -1
  15. package/dist/nodes/GithubIssues/resources/issue/create.js +0 -75
  16. package/dist/nodes/GithubIssues/resources/issue/create.js.map +0 -1
  17. package/dist/nodes/GithubIssues/resources/issue/get.js +0 -15
  18. package/dist/nodes/GithubIssues/resources/issue/get.js.map +0 -1
  19. package/dist/nodes/GithubIssues/resources/issue/getAll.js +0 -125
  20. package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +0 -1
  21. package/dist/nodes/GithubIssues/resources/issue/index.js +0 -76
  22. package/dist/nodes/GithubIssues/resources/issue/index.js.map +0 -1
  23. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +0 -66
  24. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +0 -1
  25. package/dist/nodes/GithubIssues/resources/issueComment/index.js +0 -48
  26. package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +0 -1
  27. package/dist/nodes/GithubIssues/shared/descriptions.js +0 -151
  28. package/dist/nodes/GithubIssues/shared/descriptions.js.map +0 -1
  29. package/dist/nodes/GithubIssues/shared/transport.js +0 -16
  30. package/dist/nodes/GithubIssues/shared/transport.js.map +0 -1
  31. package/dist/nodes/GithubIssues/shared/utils.js +0 -17
  32. package/dist/nodes/GithubIssues/shared/utils.js.map +0 -1
  33. package/index.js +0 -5
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="white"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.0165 0C8.94791 0 0 9.01388 0 20.1653C0 29.0792 5.73324 36.6246 13.6868 39.2952C14.6812 39.496 15.0454 38.8613 15.0454 38.3274C15.0454 37.8599 15.0126 36.2575 15.0126 34.5879C9.4445 35.79 8.28498 32.1841 8.28498 32.1841C7.39015 29.847 6.06429 29.2463 6.06429 29.2463C4.24185 28.011 6.19704 28.011 6.19704 28.011C8.21861 28.1446 9.27938 30.081 9.27938 30.081C11.0686 33.1522 13.9518 32.2844 15.1118 31.7502C15.2773 30.4481 15.8079 29.5467 16.3713 29.046C11.9303 28.5785 7.25781 26.8425 7.25781 19.0967C7.25781 16.8932 8.05267 15.0905 9.31216 13.6884C9.11344 13.1877 8.41732 11.1174 9.51128 8.34644C9.51128 8.34644 11.2014 7.81217 15.0122 10.4164C16.6438 9.97495 18.3263 9.7504 20.0165 9.74851C21.7067 9.74851 23.4295 9.98246 25.0205 10.4164C28.8317 7.81217 30.5218 8.34644 30.5218 8.34644C31.6158 11.1174 30.9192 13.1877 30.7205 13.6884C32.0132 15.0905 32.7753 16.8932 32.7753 19.0967C32.7753 26.8425 28.1028 28.5449 23.6287 29.046C24.358 29.6802 24.9873 30.882 24.9873 32.7851C24.9873 35.4893 24.9545 37.6596 24.9545 38.327C24.9545 38.8613 25.3192 39.496 26.3132 39.2956C34.2667 36.6242 39.9999 29.0792 39.9999 20.1653C40.0327 9.01388 31.052 0 20.0165 0Z" fill="#24292F"/>
3
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect width="60" height="60" rx="4" fill="#005C84"/>
3
+ <path d="M15 20 H45 V25 H20 V35 H40 V40 H20 V50 H15 Z" fill="white"/>
4
+ <path d="M30 10 L35 15 L30 20 Z" fill="#FFD700"/>
5
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justbrunasso/n8n-nodes-glpi-v2",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "n8n node for GLPI v2 API",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
@@ -19,9 +19,8 @@
19
19
  "dist/nodes/GlpiV2/GlpiV2.credentials.js"
20
20
  ]
21
21
  },
22
- "main": "index.js",
23
22
  "scripts": {
24
- "build": "tsc",
23
+ "build": "n8n-node build",
25
24
  "dev": "tsc --watch",
26
25
  "lint": "eslint nodes credentials",
27
26
  "prepublishOnly": "npm run build && npm run lint"
@@ -1,61 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Example = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- class Example {
6
- constructor() {
7
- this.description = {
8
- displayName: 'Example',
9
- name: 'example',
10
- icon: { light: 'file:example.svg', dark: 'file:example.dark.svg' },
11
- group: ['input'],
12
- version: 1,
13
- description: 'Basic Example Node',
14
- defaults: {
15
- name: 'Example',
16
- },
17
- inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
18
- outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
19
- usableAsTool: true,
20
- properties: [
21
- {
22
- displayName: 'My String',
23
- name: 'myString',
24
- type: 'string',
25
- default: '',
26
- placeholder: 'Placeholder value',
27
- description: 'The description text',
28
- },
29
- ],
30
- };
31
- }
32
- async execute() {
33
- const items = this.getInputData();
34
- let item;
35
- let myString;
36
- for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
37
- try {
38
- myString = this.getNodeParameter('myString', itemIndex, '');
39
- item = items[itemIndex];
40
- item.json.myString = myString;
41
- }
42
- catch (error) {
43
- if (this.continueOnFail()) {
44
- items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
45
- }
46
- else {
47
- if (error.context) {
48
- error.context.itemIndex = itemIndex;
49
- throw error;
50
- }
51
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
52
- itemIndex,
53
- });
54
- }
55
- }
56
- }
57
- return [items];
58
- }
59
- }
60
- exports.Example = Example;
61
- //# sourceMappingURL=Example.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Example.node.js","sourceRoot":"","sources":["../../../nodes/Example/Example.node.ts"],"names":[],"mappings":";;;AAMA,+CAAuE;AAEvE,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,uBAAuB,EAAE;YAClE,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE;gBAGX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,mBAAmB;oBAChC,WAAW,EAAE,sBAAsB;iBACnC;aACD;SACD,CAAC;IA2CH,CAAC;IArCA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAElC,IAAI,IAAwB,CAAC;QAC7B,IAAI,QAAgB,CAAC;QAKrB,KAAK,IAAI,SAAS,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;YAC/D,IAAI,CAAC;gBACJ,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,EAAE,CAAW,CAAC;gBACtE,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;gBAExB,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YAC/B,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAGhB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1F,CAAC;qBAAM,CAAC;oBAEP,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;wBAGnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;wBACpC,MAAM,KAAK,CAAC;oBACb,CAAC;oBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;wBACnD,SAAS;qBACT,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AArED,0BAqEC"}
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GithubIssues = void 0;
4
- const n8n_workflow_1 = require("n8n-workflow");
5
- const issue_1 = require("./resources/issue");
6
- const issueComment_1 = require("./resources/issueComment");
7
- const getRepositories_1 = require("./listSearch/getRepositories");
8
- const getUsers_1 = require("./listSearch/getUsers");
9
- const getIssues_1 = require("./listSearch/getIssues");
10
- class GithubIssues {
11
- constructor() {
12
- this.description = {
13
- displayName: 'GitHub Issues',
14
- name: 'githubIssues',
15
- icon: { light: 'file:../../icons/github.svg', dark: 'file:../../icons/github.dark.svg' },
16
- group: ['input'],
17
- version: 1,
18
- subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
19
- description: 'Consume issues from the GitHub API',
20
- defaults: {
21
- name: 'GitHub Issues',
22
- },
23
- usableAsTool: true,
24
- inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
25
- outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
26
- credentials: [
27
- {
28
- name: 'githubIssuesApi',
29
- required: true,
30
- displayOptions: {
31
- show: {
32
- authentication: ['accessToken'],
33
- },
34
- },
35
- },
36
- {
37
- name: 'githubIssuesOAuth2Api',
38
- required: true,
39
- displayOptions: {
40
- show: {
41
- authentication: ['oAuth2'],
42
- },
43
- },
44
- },
45
- ],
46
- requestDefaults: {
47
- baseURL: 'https://api.github.com',
48
- headers: {
49
- Accept: 'application/json',
50
- 'Content-Type': 'application/json',
51
- },
52
- },
53
- properties: [
54
- {
55
- displayName: 'Authentication',
56
- name: 'authentication',
57
- type: 'options',
58
- options: [
59
- {
60
- name: 'Access Token',
61
- value: 'accessToken',
62
- },
63
- {
64
- name: 'OAuth2',
65
- value: 'oAuth2',
66
- },
67
- ],
68
- default: 'accessToken',
69
- },
70
- {
71
- displayName: 'Resource',
72
- name: 'resource',
73
- type: 'options',
74
- noDataExpression: true,
75
- options: [
76
- {
77
- name: 'Issue',
78
- value: 'issue',
79
- },
80
- {
81
- name: 'Issue Comment',
82
- value: 'issueComment',
83
- },
84
- ],
85
- default: 'issue',
86
- },
87
- ...issue_1.issueDescription,
88
- ...issueComment_1.issueCommentDescription,
89
- ],
90
- };
91
- this.methods = {
92
- listSearch: {
93
- getRepositories: getRepositories_1.getRepositories,
94
- getUsers: getUsers_1.getUsers,
95
- getIssues: getIssues_1.getIssues,
96
- },
97
- };
98
- }
99
- }
100
- exports.GithubIssues = GithubIssues;
101
- //# sourceMappingURL=GithubIssues.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GithubIssues.node.js","sourceRoot":"","sources":["../../../nodes/GithubIssues/GithubIssues.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,6CAA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D;oBACD,OAAO,EAAE,aAAa;iBACtB;gBACD;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;yBACd;wBACD;4BACC,IAAI,EAAE,eAAe;4BACrB,KAAK,EAAE,cAAc;yBACrB;qBACD;oBACD,OAAO,EAAE,OAAO;iBAChB;gBACD,GAAG,wBAAgB;gBACnB,GAAG,sCAAuB;aAC1B;SACD,CAAC;QAEF,YAAO,GAAG;YACT,UAAU,EAAE;gBACX,eAAe,EAAf,iCAAe;gBACf,QAAQ,EAAR,mBAAQ;gBACR,SAAS,EAAT,qBAAS;aACT;SACD,CAAC;IACH,CAAC;CAAA;AAxFD,oCAwFC"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIssues = getIssues;
4
- const transport_1 = require("../shared/transport");
5
- async function getIssues(filter, paginationToken) {
6
- const page = paginationToken ? +paginationToken : 1;
7
- const per_page = 100;
8
- let responseData = {
9
- items: [],
10
- total_count: 0,
11
- };
12
- const owner = this.getNodeParameter('owner', '', { extractValue: true });
13
- const repository = this.getNodeParameter('repository', '', { extractValue: true });
14
- const filters = [filter, `repo:${owner}/${repository}`];
15
- responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/issues', {
16
- q: filters.filter(Boolean).join(' '),
17
- page,
18
- per_page,
19
- });
20
- const results = responseData.items.map((item) => ({
21
- name: item.title,
22
- value: item.number,
23
- url: item.html_url,
24
- }));
25
- const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
26
- return { results, paginationToken: nextPaginationToken };
27
- }
28
- //# sourceMappingURL=getIssues.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getIssues.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getIssues.ts"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AO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRepositories = getRepositories;
4
- const transport_1 = require("../shared/transport");
5
- async function getRepositories(filter, paginationToken) {
6
- const owner = this.getCurrentNodeParameter('owner', { extractValue: true });
7
- const page = paginationToken ? +paginationToken : 1;
8
- const per_page = 100;
9
- const q = `${filter !== null && filter !== void 0 ? filter : ''} user:${owner} fork:true`;
10
- let responseData = {
11
- items: [],
12
- total_count: 0,
13
- };
14
- try {
15
- responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/repositories', {
16
- q,
17
- page,
18
- per_page,
19
- });
20
- }
21
- catch {
22
- }
23
- const results = responseData.items.map((item) => ({
24
- name: item.name,
25
- value: item.name,
26
- url: item.html_url,
27
- }));
28
- const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
29
- return { results, paginationToken: nextPaginationToken };
30
- }
31
- //# sourceMappingURL=getRepositories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRepositories.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getRepositories.ts"],"names":[],"mappings":";;AAiBA,0CAgCC;AA5CD,mDAAuD;AAYhD,KAAK,UAAU,eAAe,CAEpC,MAAe,EACf,eAAwB;IAExB,MAAM,KAAK,GAAG,IAAI,CAAC,uBAAuB,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IACrB,MAAM,CAAC,GAAG,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,SAAS,KAAK,YAAY,CAAC;IACpD,IAAI,YAAY,GAA6B;QAC5C,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,sBAAsB,EAAE;YAC/E,CAAC;YACD,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAA0B,EAAE,EAAE,CAAC,CAAC;QAC/F,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,IAAI;QAChB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUsers = getUsers;
4
- const transport_1 = require("../shared/transport");
5
- async function getUsers(filter, paginationToken) {
6
- const page = paginationToken ? +paginationToken : 1;
7
- const per_page = 100;
8
- let responseData = {
9
- items: [],
10
- total_count: 0,
11
- };
12
- try {
13
- responseData = await transport_1.githubApiRequest.call(this, 'GET', '/search/users', {
14
- q: filter,
15
- page,
16
- per_page,
17
- });
18
- }
19
- catch {
20
- }
21
- const results = responseData.items.map((item) => ({
22
- name: item.login,
23
- value: item.login,
24
- url: item.html_url,
25
- }));
26
- const nextPaginationToken = page * per_page < responseData.total_count ? page + 1 : undefined;
27
- return { results, paginationToken: nextPaginationToken };
28
- }
29
- //# sourceMappingURL=getUsers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getUsers.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getUsers.ts"],"names":[],"mappings":";;AAiBA,4BA+BC;AA3CD,mDAAuD;AAYhD,KAAK,UAAU,QAAQ,CAE7B,MAAe,EACf,eAAwB;IAExB,MAAM,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,GAAG,CAAC;IAErB,IAAI,YAAY,GAAuB;QACtC,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IAEF,IAAI,CAAC;QACJ,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,EAAE;YACxE,CAAC,EAAE,MAAM;YACT,IAAI;YACJ,QAAQ;SACR,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;IAET,CAAC;IAED,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAoB,EAAE,EAAE,CAAC,CAAC;QACzF,IAAI,EAAE,IAAI,CAAC,KAAK;QAChB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,GAAG,EAAE,IAAI,CAAC,QAAQ;KAClB,CAAC,CAAC,CAAC;IAEJ,MAAM,mBAAmB,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9F,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,CAAC;AAC1D,CAAC"}
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueCreateDescription = void 0;
4
- const showOnlyForIssueCreate = {
5
- operation: ['create'],
6
- resource: ['issue'],
7
- };
8
- exports.issueCreateDescription = [
9
- {
10
- displayName: 'Title',
11
- name: 'title',
12
- type: 'string',
13
- default: '',
14
- required: true,
15
- displayOptions: {
16
- show: showOnlyForIssueCreate,
17
- },
18
- description: 'The title of the issue',
19
- routing: {
20
- send: {
21
- type: 'body',
22
- property: 'title',
23
- },
24
- },
25
- },
26
- {
27
- displayName: 'Body',
28
- name: 'body',
29
- type: 'string',
30
- typeOptions: {
31
- rows: 5,
32
- },
33
- default: '',
34
- displayOptions: {
35
- show: showOnlyForIssueCreate,
36
- },
37
- description: 'The body of the issue',
38
- routing: {
39
- send: {
40
- type: 'body',
41
- property: 'body',
42
- },
43
- },
44
- },
45
- {
46
- displayName: 'Labels',
47
- name: 'labels',
48
- type: 'collection',
49
- typeOptions: {
50
- multipleValues: true,
51
- multipleValueButtonText: 'Add Label',
52
- },
53
- displayOptions: {
54
- show: showOnlyForIssueCreate,
55
- },
56
- default: { label: '' },
57
- options: [
58
- {
59
- displayName: 'Label',
60
- name: 'label',
61
- type: 'string',
62
- default: '',
63
- description: 'Label to add to issue',
64
- },
65
- ],
66
- routing: {
67
- send: {
68
- type: 'body',
69
- property: 'labels',
70
- value: '={{$value.map((data) => data.label)}}',
71
- },
72
- },
73
- },
74
- ];
75
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/create.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;aACjB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;YACpB,uBAAuB,EAAE,WAAW;SACpC;QACD,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;QACtB,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uBAAuB;aACpC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,uCAAuC;aAC9C;SACD;KACD;CACD,CAAC"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueGetDescription = void 0;
4
- const descriptions_1 = require("../../shared/descriptions");
5
- const showOnlyForIssueGet = {
6
- operation: ['get'],
7
- resource: ['issue'],
8
- };
9
- exports.issueGetDescription = [
10
- {
11
- ...descriptions_1.issueSelect,
12
- displayOptions: { show: showOnlyForIssueGet },
13
- },
14
- ];
15
- //# sourceMappingURL=get.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/get.ts"],"names":[],"mappings":";;;AACA,4DAAwD;AAExD,MAAM,mBAAmB,GAAG;IAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,GAAG,0BAAW;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;KAC7C;CACD,CAAC"}
@@ -1,125 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueGetManyDescription = void 0;
4
- const utils_1 = require("../../shared/utils");
5
- const showOnlyForIssueGetMany = {
6
- operation: ['getAll'],
7
- resource: ['issue'],
8
- };
9
- exports.issueGetManyDescription = [
10
- {
11
- displayName: 'Limit',
12
- name: 'limit',
13
- type: 'number',
14
- displayOptions: {
15
- show: {
16
- ...showOnlyForIssueGetMany,
17
- returnAll: [false],
18
- },
19
- },
20
- typeOptions: {
21
- minValue: 1,
22
- maxValue: 100,
23
- },
24
- default: 50,
25
- routing: {
26
- send: {
27
- type: 'query',
28
- property: 'per_page',
29
- },
30
- output: {
31
- maxResults: '={{$value}}',
32
- },
33
- },
34
- description: 'Max number of results to return',
35
- },
36
- {
37
- displayName: 'Return All',
38
- name: 'returnAll',
39
- type: 'boolean',
40
- displayOptions: {
41
- show: showOnlyForIssueGetMany,
42
- },
43
- default: false,
44
- description: 'Whether to return all results or only up to a given limit',
45
- routing: {
46
- send: {
47
- paginate: '={{ $value }}',
48
- type: 'query',
49
- property: 'per_page',
50
- value: '100',
51
- },
52
- operations: {
53
- pagination: {
54
- type: 'generic',
55
- properties: {
56
- continue: `={{ !!(${utils_1.parseLinkHeader.toString()})($response.headers?.link).next }}`,
57
- request: {
58
- url: `={{ (${utils_1.parseLinkHeader.toString()})($response.headers?.link)?.next ?? $request.url }}`,
59
- },
60
- },
61
- },
62
- },
63
- },
64
- },
65
- {
66
- displayName: 'Filters',
67
- name: 'filters',
68
- type: 'collection',
69
- typeOptions: {
70
- multipleValueButtonText: 'Add Filter',
71
- },
72
- displayOptions: {
73
- show: showOnlyForIssueGetMany,
74
- },
75
- default: {},
76
- options: [
77
- {
78
- displayName: 'Updated Since',
79
- name: 'since',
80
- type: 'dateTime',
81
- default: '',
82
- description: 'Return only issues updated at or after this time',
83
- routing: {
84
- request: {
85
- qs: {
86
- since: '={{$value}}',
87
- },
88
- },
89
- },
90
- },
91
- {
92
- displayName: 'State',
93
- name: 'state',
94
- type: 'options',
95
- options: [
96
- {
97
- name: 'All',
98
- value: 'all',
99
- description: 'Returns issues with any state',
100
- },
101
- {
102
- name: 'Closed',
103
- value: 'closed',
104
- description: 'Return issues with "closed" state',
105
- },
106
- {
107
- name: 'Open',
108
- value: 'open',
109
- description: 'Return issues with "open" state',
110
- },
111
- ],
112
- default: 'open',
113
- description: 'The issue state to filter on',
114
- routing: {
115
- request: {
116
- qs: {
117
- state: '={{$value}}',
118
- },
119
- },
120
- },
121
- },
122
- ],
123
- },
124
- ];
125
- //# sourceMappingURL=getAll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/getAll.ts"],"names":[],"mappings":";;;AACA,8CAAqD;AAErD,MAAM,uBAAuB,GAAG;IAC/B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,uBAAuB;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO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O;gBACb,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,KAAK;wBACX,KAAK,EAAE,KAAK;wBACZ,WAAW,EAAE,+BAA+B;qBAC5C;oBACD;wBACC,IAAI,EAAE,QAAQ;wBACd,KAAK,EAAE,QAAQ;wBACf,WAAW,EAAE,mCAAmC;qBAChD;oBACD;wBACC,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,iCAAiC;qBAC9C;iBACD;gBACD,OAAO,EAAE,MAAM;gBACf,WAAW,EAAE,8BAA8B;gBAC3C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,EAAE,EAAE;4BACH,KAAK,EAAE,aAAa;yBACpB;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueDescription = void 0;
4
- const descriptions_1 = require("../../shared/descriptions");
5
- const getAll_1 = require("./getAll");
6
- const get_1 = require("./get");
7
- const create_1 = require("./create");
8
- const showOnlyForIssues = {
9
- resource: ['issue'],
10
- };
11
- exports.issueDescription = [
12
- {
13
- displayName: 'Operation',
14
- name: 'operation',
15
- type: 'options',
16
- noDataExpression: true,
17
- displayOptions: {
18
- show: showOnlyForIssues,
19
- },
20
- options: [
21
- {
22
- name: 'Get Many',
23
- value: 'getAll',
24
- action: 'Get issues in a repository',
25
- description: 'Get many issues in a repository',
26
- routing: {
27
- request: {
28
- method: 'GET',
29
- url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
30
- },
31
- },
32
- },
33
- {
34
- name: 'Get',
35
- value: 'get',
36
- action: 'Get an issue',
37
- description: 'Get the data of a single issue',
38
- routing: {
39
- request: {
40
- method: 'GET',
41
- url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$parameter.issue}}',
42
- },
43
- },
44
- },
45
- {
46
- name: 'Create',
47
- value: 'create',
48
- action: 'Create a new issue',
49
- description: 'Create a new issue',
50
- routing: {
51
- request: {
52
- method: 'POST',
53
- url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues',
54
- },
55
- },
56
- },
57
- ],
58
- default: 'getAll',
59
- },
60
- {
61
- ...descriptions_1.repoOwnerSelect,
62
- displayOptions: {
63
- show: showOnlyForIssues,
64
- },
65
- },
66
- {
67
- ...descriptions_1.repoNameSelect,
68
- displayOptions: {
69
- show: showOnlyForIssues,
70
- },
71
- },
72
- ...getAll_1.issueGetManyDescription,
73
- ...get_1.issueGetDescription,
74
- ...create_1.issueCreateDescription,
75
- ];
76
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issue/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAAmD;AACnD,+BAA4C;AAC5C,qCAAkD;AAElD,MAAM,iBAAiB,GAAG;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,iCAAiC;gBAC9C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,cAAc;gBACtB,WAAW,EAAE,gCAAgC;gBAC7C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,oFAAoF;qBACzF;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,+DAA+D;qBACpE;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,iBAAiB;SACvB;KACD;IACD,GAAG,gCAAuB;IAC1B,GAAG,yBAAmB;IACtB,GAAG,+BAAsB;CACzB,CAAC"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueCommentGetManyDescription = void 0;
4
- const utils_1 = require("../../shared/utils");
5
- const showOnlyForIssueCommentGetMany = {
6
- operation: ['getAll'],
7
- resource: ['issueComment'],
8
- };
9
- exports.issueCommentGetManyDescription = [
10
- {
11
- displayName: 'Limit',
12
- name: 'limit',
13
- type: 'number',
14
- displayOptions: {
15
- show: {
16
- ...showOnlyForIssueCommentGetMany,
17
- returnAll: [false],
18
- },
19
- },
20
- typeOptions: {
21
- minValue: 1,
22
- maxValue: 100,
23
- },
24
- default: 50,
25
- routing: {
26
- send: {
27
- type: 'query',
28
- property: 'per_page',
29
- },
30
- output: {
31
- maxResults: '={{$value}}',
32
- },
33
- },
34
- description: 'Max number of results to return',
35
- },
36
- {
37
- displayName: 'Return All',
38
- name: 'returnAll',
39
- type: 'boolean',
40
- displayOptions: {
41
- show: showOnlyForIssueCommentGetMany,
42
- },
43
- default: false,
44
- description: 'Whether to return all results or only up to a given limit',
45
- routing: {
46
- send: {
47
- paginate: '={{ $value }}',
48
- type: 'query',
49
- property: 'per_page',
50
- value: '100',
51
- },
52
- operations: {
53
- pagination: {
54
- type: 'generic',
55
- properties: {
56
- continue: `={{ !!(${utils_1.parseLinkHeader.toString()})($response.headers?.link).next }}`,
57
- request: {
58
- url: `={{ (${utils_1.parseLinkHeader.toString()})($response.headers?.link)?.next ?? $request.url }}`,
59
- },
60
- },
61
- },
62
- },
63
- },
64
- },
65
- ];
66
- //# sourceMappingURL=getAll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/getAll.ts"],"names":[],"mappings":";;;AACA,8CAAqD;AAErD,MAAM,8BAA8B,GAAG;IACtC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,8BAA8B;gBACjC,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;aACpB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,8BAA8B;SACpC;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;gBACzB,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,KAAK;aACZ;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE;wBACX,QAAQ,EAAE,UAAU,uBAAe,CAAC,QAAQ,EAAE,oCAAoC;wBAClF,OAAO,EAAE;4BACR,GAAG,EAAE,QAAQ,uBAAe,CAAC,QAAQ,EAAE,qDAAqD;yBAC5F;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueCommentDescription = void 0;
4
- const descriptions_1 = require("../../shared/descriptions");
5
- const getAll_1 = require("./getAll");
6
- const showOnlyForIssueComments = {
7
- resource: ['issueComment'],
8
- };
9
- exports.issueCommentDescription = [
10
- {
11
- displayName: 'Operation',
12
- name: 'operation',
13
- type: 'options',
14
- noDataExpression: true,
15
- displayOptions: {
16
- show: showOnlyForIssueComments,
17
- },
18
- options: [
19
- {
20
- name: 'Get Many',
21
- value: 'getAll',
22
- action: 'Get issue comments',
23
- description: 'Get issue comments',
24
- routing: {
25
- request: {
26
- method: 'GET',
27
- url: '=/repos/{{$parameter.owner}}/{{$parameter.repository}}/issues/comments',
28
- },
29
- },
30
- },
31
- ],
32
- default: 'getAll',
33
- },
34
- {
35
- ...descriptions_1.repoOwnerSelect,
36
- displayOptions: {
37
- show: showOnlyForIssueComments,
38
- },
39
- },
40
- {
41
- ...descriptions_1.repoNameSelect,
42
- displayOptions: {
43
- show: showOnlyForIssueComments,
44
- },
45
- },
46
- ...getAll_1.issueCommentGetManyDescription,
47
- ];
48
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/GithubIssues/resources/issueComment/index.ts"],"names":[],"mappings":";;;AACA,4DAA4E;AAC5E,qCAA0D;AAE1D,MAAM,wBAAwB,GAAG;IAChC,QAAQ,EAAE,CAAC,cAAc,CAAC;CAC1B,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,wEAAwE;qBAC7E;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD;QACC,GAAG,8BAAe;QAClB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD;QACC,GAAG,6BAAc;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;IACD,GAAG,uCAA8B;CACjC,CAAC"}
@@ -1,151 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.issueSelect = exports.repoNameSelect = exports.repoOwnerSelect = void 0;
4
- exports.repoOwnerSelect = {
5
- displayName: 'Repository Owner',
6
- name: 'owner',
7
- type: 'resourceLocator',
8
- default: { mode: 'list', value: '' },
9
- required: true,
10
- modes: [
11
- {
12
- displayName: 'Repository Owner',
13
- name: 'list',
14
- type: 'list',
15
- placeholder: 'Select an owner...',
16
- typeOptions: {
17
- searchListMethod: 'getUsers',
18
- searchable: true,
19
- searchFilterRequired: false,
20
- },
21
- },
22
- {
23
- displayName: 'Link',
24
- name: 'url',
25
- type: 'string',
26
- placeholder: 'e.g. https://github.com/n8n-io',
27
- extractValue: {
28
- type: 'regex',
29
- regex: 'https:\\/\\/github.com\\/([-_0-9a-zA-Z]+)',
30
- },
31
- validation: [
32
- {
33
- type: 'regex',
34
- properties: {
35
- regex: 'https:\\/\\/github.com\\/([-_0-9a-zA-Z]+)(?:.*)',
36
- errorMessage: 'Not a valid GitHub URL',
37
- },
38
- },
39
- ],
40
- },
41
- {
42
- displayName: 'By Name',
43
- name: 'name',
44
- type: 'string',
45
- placeholder: 'e.g. n8n-io',
46
- validation: [
47
- {
48
- type: 'regex',
49
- properties: {
50
- regex: '[-_a-zA-Z0-9]+',
51
- errorMessage: 'Not a valid GitHub Owner Name',
52
- },
53
- },
54
- ],
55
- url: '=https://github.com/{{$value}}',
56
- },
57
- ],
58
- };
59
- exports.repoNameSelect = {
60
- displayName: 'Repository Name',
61
- name: 'repository',
62
- type: 'resourceLocator',
63
- default: {
64
- mode: 'list',
65
- value: '',
66
- },
67
- required: true,
68
- modes: [
69
- {
70
- displayName: 'Repository Name',
71
- name: 'list',
72
- type: 'list',
73
- placeholder: 'Select an Repository...',
74
- typeOptions: {
75
- searchListMethod: 'getRepositories',
76
- searchable: true,
77
- },
78
- },
79
- {
80
- displayName: 'Link',
81
- name: 'url',
82
- type: 'string',
83
- placeholder: 'e.g. https://github.com/n8n-io/n8n',
84
- extractValue: {
85
- type: 'regex',
86
- regex: 'https:\\/\\/github.com\\/(?:[-_0-9a-zA-Z]+)\\/([-_.0-9a-zA-Z]+)',
87
- },
88
- validation: [
89
- {
90
- type: 'regex',
91
- properties: {
92
- regex: 'https:\\/\\/github.com\\/(?:[-_0-9a-zA-Z]+)\\/([-_.0-9a-zA-Z]+)(?:.*)',
93
- errorMessage: 'Not a valid GitHub Repository URL',
94
- },
95
- },
96
- ],
97
- },
98
- {
99
- displayName: 'By Name',
100
- name: 'name',
101
- type: 'string',
102
- placeholder: 'e.g. n8n',
103
- validation: [
104
- {
105
- type: 'regex',
106
- properties: {
107
- regex: '[-_.0-9a-zA-Z]+',
108
- errorMessage: 'Not a valid GitHub Repository Name',
109
- },
110
- },
111
- ],
112
- url: '=https://github.com/{{$parameter["owner"]}}/{{$value}}',
113
- },
114
- ],
115
- displayOptions: {
116
- hide: {
117
- resource: ['user', 'organization'],
118
- operation: ['getRepositories'],
119
- },
120
- },
121
- };
122
- exports.issueSelect = {
123
- displayName: 'Issue',
124
- name: 'issue',
125
- type: 'resourceLocator',
126
- default: {
127
- mode: 'list',
128
- value: '',
129
- },
130
- required: true,
131
- modes: [
132
- {
133
- displayName: 'Issue',
134
- name: 'list',
135
- type: 'list',
136
- placeholder: 'Select an Issue...',
137
- typeOptions: {
138
- searchListMethod: 'getIssues',
139
- searchable: true,
140
- },
141
- },
142
- {
143
- displayName: 'By ID',
144
- name: 'name',
145
- type: 'string',
146
- placeholder: 'e.g. 123',
147
- url: '=https://github.com/{{$parameter.owner}}/{{$parameter.repository}}/issues/{{$value}}',
148
- },
149
- ],
150
- };
151
- //# sourceMappingURL=descriptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"descriptions.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/descriptions.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC/C,WAAW,EAAE,kBAAkB;IAC/B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE;IACpC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE;gBACZ,gBAAgB,EAAE,UAAU;gBAC5B,UAAU,EAAE,IAAI;gBAChB,oBAAoB,EAAE,KAAK;aAC3B;SACD;QACD;YACC,WAAW,EAAE,MAAM;YACnB,IAAI,EAAE,KAAK;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gCAAgC;YAC7C,YAAY,EAAE;gBACb,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,2CAA2C;aAClD;YACD,U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AW,EAAE,UAAU;YACvB,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,iBAAiB;wBACxB,YAAY,EAAE,oCAAoC;qBAClD;iBACD;aACD;YACD,GAAG,EAAE,wDAAwD;SAC7D;KACD;IACD,cAAc,EAAE;QACf,IAAI,EAAE;YACL,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;YAClC,SAAS,EAAE,CAAC,iBAAiB,CAAC;SAC9B;KACD;CACD,CAAC;AAEW,QAAA,WAAW,GAAoB;IAC3C,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACT;IACD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE;gBACZ,gBAAgB,EAAE,WAAW;gBAC7B,UAAU,EAAE,IAAI;aAChB;SACD;QACD;YACC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAU;YACvB,GAAG,EAAE,sFAAsF;SAC3F;KACD;CACD,CAAC"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.githubApiRequest = githubApiRequest;
4
- async function githubApiRequest(method, resource, qs = {}, body = undefined) {
5
- const authenticationMethod = this.getNodeParameter('authentication', 0);
6
- const options = {
7
- method: method,
8
- qs,
9
- body,
10
- url: `https://api.github.com${resource}`,
11
- json: true,
12
- };
13
- const credentialType = authenticationMethod === 'accessToken' ? 'githubIssuesApi' : 'githubIssuesOAuth2Api';
14
- return this.helpers.httpRequestWithAuthentication.call(this, credentialType, options);
15
- }
16
- //# sourceMappingURL=transport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/transport.ts"],"names":[],"mappings":";;AAUA,4CAqBC;AArBM,KAAK,UAAU,gBAAgB,CAErC,MAA2B,EAC3B,QAAgB,EAChB,KAAkB,EAAE,EACpB,OAAgC,SAAS;IAEzC,MAAM,oBAAoB,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;IAExE,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,MAAM;QACd,EAAE;QACF,IAAI;QACJ,GAAG,EAAE,yBAAyB,QAAQ,EAAE;QACxC,IAAI,EAAE,IAAI;KACV,CAAC;IAEF,MAAM,cAAc,GACnB,oBAAoB,KAAK,aAAa,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,uBAAuB,CAAC;IAEtF,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;AACvF,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseLinkHeader = parseLinkHeader;
4
- function parseLinkHeader(header) {
5
- var _a;
6
- const links = {};
7
- for (const part of (_a = header === null || header === void 0 ? void 0 : header.split(',')) !== null && _a !== void 0 ? _a : []) {
8
- const section = part.trim();
9
- const match = section.match(/^<([^>]+)>\s*;\s*rel="?([^"]+)"?/);
10
- if (match) {
11
- const [, url, rel] = match;
12
- links[rel] = url;
13
- }
14
- }
15
- return links;
16
- }
17
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/shared/utils.ts"],"names":[],"mappings":";;AAAA,0CAaC;AAbD,SAAgB,eAAe,CAAC,MAAe;;IAC9C,MAAM,KAAK,GAA8B,EAAE,CAAC;IAE5C,KAAK,MAAM,IAAI,IAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,EAAE,CAAC;QAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAChE,IAAI,KAAK,EAAE,CAAC;YACX,MAAM,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC;YAC3B,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAClB,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC;AACd,CAAC"}
package/index.js DELETED
@@ -1,5 +0,0 @@
1
- // Main entry point for the package
2
- // This file is required for some n8n loaders even if n8n metadata is present.
3
- module.exports = {
4
- // Exports will be handled by n8n loader via package.json config
5
- };