@justbrunasso/n8n-nodes-glpi 1.0.28 → 1.0.29

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 (72) hide show
  1. package/dist/credentials/GithubIssuesApi.credentials.d.ts +10 -0
  2. package/dist/credentials/GithubIssuesApi.credentials.js +37 -0
  3. package/dist/credentials/GithubIssuesApi.credentials.js.map +1 -0
  4. package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +9 -0
  5. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +54 -0
  6. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +1 -0
  7. package/dist/credentials/GlpiApi.credentials.d.ts +3 -4
  8. package/dist/credentials/GlpiApi.credentials.js +27 -27
  9. package/dist/credentials/GlpiApi.credentials.js.map +1 -1
  10. package/dist/icons/glpi.dark.svg +0 -0
  11. package/dist/icons/glpi.svg +0 -0
  12. package/dist/nodes/Example/Example.node.d.ts +5 -0
  13. package/dist/nodes/Example/Example.node.js +61 -0
  14. package/dist/nodes/Example/Example.node.js.map +1 -0
  15. package/dist/nodes/Example/Example.node.json +18 -0
  16. package/dist/nodes/Example/example.dark.svg +13 -0
  17. package/dist/nodes/Example/example.svg +13 -0
  18. package/dist/nodes/GithubIssues/GithubIssues.node.d.ts +14 -0
  19. package/dist/nodes/GithubIssues/GithubIssues.node.js +101 -0
  20. package/dist/nodes/GithubIssues/GithubIssues.node.js.map +1 -0
  21. package/dist/nodes/GithubIssues/GithubIssues.node.json +18 -0
  22. package/dist/nodes/GithubIssues/listSearch/getIssues.d.ts +2 -0
  23. package/dist/nodes/GithubIssues/listSearch/getIssues.js +28 -0
  24. package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +1 -0
  25. package/dist/nodes/GithubIssues/listSearch/getRepositories.d.ts +2 -0
  26. package/dist/nodes/GithubIssues/listSearch/getRepositories.js +31 -0
  27. package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +1 -0
  28. package/dist/nodes/GithubIssues/listSearch/getUsers.d.ts +2 -0
  29. package/dist/nodes/GithubIssues/listSearch/getUsers.js +29 -0
  30. package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +1 -0
  31. package/dist/nodes/GithubIssues/resources/issue/create.d.ts +2 -0
  32. package/dist/nodes/GithubIssues/resources/issue/create.js +75 -0
  33. package/dist/nodes/GithubIssues/resources/issue/create.js.map +1 -0
  34. package/dist/nodes/GithubIssues/resources/issue/get.d.ts +2 -0
  35. package/dist/nodes/GithubIssues/resources/issue/get.js +15 -0
  36. package/dist/nodes/GithubIssues/resources/issue/get.js.map +1 -0
  37. package/dist/nodes/GithubIssues/resources/issue/getAll.d.ts +2 -0
  38. package/dist/nodes/GithubIssues/resources/issue/getAll.js +125 -0
  39. package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +1 -0
  40. package/dist/nodes/GithubIssues/resources/issue/index.d.ts +2 -0
  41. package/dist/nodes/GithubIssues/resources/issue/index.js +76 -0
  42. package/dist/nodes/GithubIssues/resources/issue/index.js.map +1 -0
  43. package/dist/nodes/GithubIssues/resources/issueComment/getAll.d.ts +2 -0
  44. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +66 -0
  45. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +1 -0
  46. package/dist/nodes/GithubIssues/resources/issueComment/index.d.ts +2 -0
  47. package/dist/nodes/GithubIssues/resources/issueComment/index.js +48 -0
  48. package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +1 -0
  49. package/dist/nodes/GithubIssues/shared/descriptions.d.ts +4 -0
  50. package/dist/nodes/GithubIssues/shared/descriptions.js +151 -0
  51. package/dist/nodes/GithubIssues/shared/descriptions.js.map +1 -0
  52. package/dist/nodes/GithubIssues/shared/transport.d.ts +2 -0
  53. package/dist/nodes/GithubIssues/shared/transport.js +16 -0
  54. package/dist/nodes/GithubIssues/shared/transport.js.map +1 -0
  55. package/dist/nodes/GithubIssues/shared/utils.d.ts +3 -0
  56. package/dist/nodes/GithubIssues/shared/utils.js +17 -0
  57. package/dist/nodes/GithubIssues/shared/utils.js.map +1 -0
  58. package/dist/nodes/GlpiApi/GlpiApi.node.d.ts +5 -0
  59. package/dist/nodes/GlpiApi/GlpiApi.node.js +214 -0
  60. package/dist/nodes/GlpiApi/GlpiApi.node.js.map +1 -0
  61. package/dist/nodes/GlpiApi/GlpiApi.node.json +18 -0
  62. package/dist/nodes/GlpiApi/glpi.dark.svg +7 -0
  63. package/dist/nodes/GlpiApi/glpi.svg +7 -0
  64. package/dist/package.json +9 -8
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +9 -8
  67. package/dist/nodes/Glpi/Glpi.node.d.ts +0 -5
  68. package/dist/nodes/Glpi/Glpi.node.dark.svg +0 -0
  69. package/dist/nodes/Glpi/Glpi.node.js +0 -321
  70. package/dist/nodes/Glpi/Glpi.node.js.map +0 -1
  71. package/dist/nodes/Glpi/Glpi.node.json +0 -13
  72. package/dist/nodes/Glpi/Glpi.node.svg +0 -0
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class GithubIssuesApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GithubIssuesApi = void 0;
4
+ class GithubIssuesApi {
5
+ constructor() {
6
+ this.name = 'githubIssuesApi';
7
+ this.displayName = 'GitHub Issues API';
8
+ this.icon = { light: 'file:../icons/github.svg', dark: 'file:../icons/github.dark.svg' };
9
+ this.documentationUrl = 'https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#deleting-a-personal-access-token';
10
+ this.properties = [
11
+ {
12
+ displayName: 'Access Token',
13
+ name: 'accessToken',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ },
18
+ ];
19
+ this.authenticate = {
20
+ type: 'generic',
21
+ properties: {
22
+ headers: {
23
+ Authorization: '=token {{$credentials?.accessToken}}',
24
+ },
25
+ },
26
+ };
27
+ this.test = {
28
+ request: {
29
+ baseURL: 'https://api.github.com',
30
+ url: '/user',
31
+ method: 'GET',
32
+ },
33
+ };
34
+ }
35
+ }
36
+ exports.GithubIssuesApi = GithubIssuesApi;
37
+ //# sourceMappingURL=GithubIssuesApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubIssuesApi.credentials.js","sourceRoot":"","sources":["../../credentials/GithubIssuesApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,eAAe;IAA5B;QACC,SAAI,GAAG,iBAAiB,CAAC;QAEzB,gBAAW,GAAG,mBAAmB,CAAC;QAElC,SAAI,GAAS,EAAE,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC;QAE1F,qBAAgB,GACf,sJAAsJ,CAAC;QAExJ,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,sCAAsC;iBACrD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,OAAO;gBACZ,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AApCD,0CAoCC"}
@@ -0,0 +1,9 @@
1
+ import type { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class GithubIssuesOAuth2Api implements ICredentialType {
3
+ name: string;
4
+ extends: string[];
5
+ displayName: string;
6
+ icon: Icon;
7
+ documentationUrl: string;
8
+ properties: INodeProperties[];
9
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GithubIssuesOAuth2Api = void 0;
4
+ class GithubIssuesOAuth2Api {
5
+ constructor() {
6
+ this.name = 'githubIssuesOAuth2Api';
7
+ this.extends = ['oAuth2Api'];
8
+ this.displayName = 'GitHub Issues OAuth2 API';
9
+ this.icon = { light: 'file:../icons/github.svg', dark: 'file:../icons/github.dark.svg' };
10
+ this.documentationUrl = 'https://docs.github.com/en/apps/oauth-apps';
11
+ this.properties = [
12
+ {
13
+ displayName: 'Grant Type',
14
+ name: 'grantType',
15
+ type: 'hidden',
16
+ default: 'authorizationCode',
17
+ },
18
+ {
19
+ displayName: 'Authorization URL',
20
+ name: 'authUrl',
21
+ type: 'hidden',
22
+ default: 'https://github.com/login/oauth/authorize',
23
+ required: true,
24
+ },
25
+ {
26
+ displayName: 'Access Token URL',
27
+ name: 'accessTokenUrl',
28
+ type: 'hidden',
29
+ default: 'https://github.com/login/oauth/access_token',
30
+ required: true,
31
+ },
32
+ {
33
+ displayName: 'Scope',
34
+ name: 'scope',
35
+ type: 'hidden',
36
+ default: 'repo',
37
+ },
38
+ {
39
+ displayName: 'Auth URI Query Parameters',
40
+ name: 'authQueryParameters',
41
+ type: 'hidden',
42
+ default: '',
43
+ },
44
+ {
45
+ displayName: 'Authentication',
46
+ name: 'authentication',
47
+ type: 'hidden',
48
+ default: 'header',
49
+ },
50
+ ];
51
+ }
52
+ }
53
+ exports.GithubIssuesOAuth2Api = GithubIssuesOAuth2Api;
54
+ //# sourceMappingURL=GithubIssuesOAuth2Api.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubIssuesOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/GithubIssuesOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAAlC;QACC,SAAI,GAAG,uBAAuB,CAAC;QAE/B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,0BAA0B,CAAC;QAEzC,SAAI,GAAS,EAAE,KAAK,EAAE,0BAA0B,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC;QAE1F,qBAAgB,GAAG,4CAA4C,CAAC;QAEhE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,6CAA6C;gBACtD,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AAnDD,sDAmDC"}
@@ -1,10 +1,9 @@
1
- import type { IAuthenticateGeneric, Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
1
+ import type { ICredentialType, ICredentialTestRequest, INodeProperties, Icon } from 'n8n-workflow';
2
2
  export declare class GlpiApi implements ICredentialType {
3
- documentationUrl: string;
4
3
  name: string;
5
4
  displayName: string;
6
5
  icon: Icon;
6
+ documentationUrl: string;
7
+ test: ICredentialTestRequest;
7
8
  properties: INodeProperties[];
8
- authenticate: IAuthenticateGeneric;
9
- testedBy: string;
10
9
  }
@@ -3,60 +3,60 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GlpiApi = void 0;
4
4
  class GlpiApi {
5
5
  constructor() {
6
- this.documentationUrl = 'https://github.com/PhyBruno/n8n-nodes-glpi#credentials';
7
6
  this.name = 'glpiApi';
8
7
  this.displayName = 'GLPI API';
9
8
  this.icon = { light: 'file:../icons/glpi.svg', dark: 'file:../icons/glpi.dark.svg' };
9
+ this.documentationUrl = 'https://atendimento.centrium.com.br/apirest.php';
10
+ this.test = {
11
+ request: {
12
+ url: '={{$credentials.host}}/initSession',
13
+ method: 'GET',
14
+ headers: {
15
+ 'App-Token': '={{$credentials.appToken}}',
16
+ },
17
+ auth: {
18
+ username: '={{$credentials.username}}',
19
+ password: '={{$credentials.password}}',
20
+ },
21
+ },
22
+ };
10
23
  this.properties = [
11
24
  {
12
- displayName: 'GLPI Base URL',
13
- name: 'baseUrl',
25
+ displayName: 'GLPI URL',
26
+ name: 'host',
14
27
  type: 'string',
15
28
  default: '',
29
+ placeholder: 'https://glpi.exemplo.com/apirest.php',
16
30
  required: true,
17
- placeholder: 'https://atendimento.centrium.com.br',
18
- description: 'Base URL of your GLPI installation (without /apirest.php/ or trailing slash)',
31
+ description: 'URL base da API do GLPI (deve terminar com /apirest.php)',
19
32
  },
20
33
  {
21
- displayName: 'Application Token',
34
+ displayName: 'App Token',
22
35
  name: 'appToken',
23
36
  type: 'string',
24
- typeOptions: {
25
- password: true,
26
- },
27
- default: '',
37
+ typeOptions: { password: true },
28
38
  required: true,
29
- description: 'Application token for API access',
39
+ default: '',
40
+ description: 'App-Token gerado no GLPI',
30
41
  },
31
42
  {
32
43
  displayName: 'Username',
33
44
  name: 'username',
34
45
  type: 'string',
35
- default: '',
36
46
  required: true,
37
- description: 'GLPI username for Basic Auth authentication',
47
+ default: '',
48
+ description: 'Nome de usuário do GLPI',
38
49
  },
39
50
  {
40
51
  displayName: 'Password',
41
52
  name: 'password',
42
53
  type: 'string',
43
- typeOptions: {
44
- password: true,
45
- },
46
- default: '',
54
+ typeOptions: { password: true },
47
55
  required: true,
48
- description: 'GLPI password for Basic Auth authentication',
56
+ default: '',
57
+ description: 'Senha do usuário do GLPI',
49
58
  },
50
59
  ];
51
- this.authenticate = {
52
- type: 'generic',
53
- properties: {
54
- headers: {
55
- 'app-token': '={{$credentials.appToken}}',
56
- },
57
- },
58
- };
59
- this.testedBy = 'glpi';
60
60
  }
61
61
  }
62
62
  exports.GlpiApi = GlpiApi;
@@ -1 +1 @@
1
- {"version":3,"file":"GlpiApi.credentials.js","sourceRoot":"","sources":["../../credentials/GlpiApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,OAAO;IAApB;QACC,qBAAgB,GAAG,wDAAwD,CAAC;QAC5E,SAAI,GAAG,SAAS,CAAC;QAEjB,gBAAW,GAAG,UAAU,CAAC;QAEzB,SAAI,GAAS,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;QAEtF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qCAAqC;gBAClD,WAAW,EAAE,8EAA8E;aAC3F;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kCAAkC;aAC/C;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6CAA6C;aAC1D;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,6CAA6C;aAC1D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;iBACzC;aACD;SACD,CAAC;QAEF,aAAQ,GAAG,MAAM,CAAC;IACnB,CAAC;CAAA;AA5DD,0BA4DC"}
1
+ {"version":3,"file":"GlpiApi.credentials.js","sourceRoot":"","sources":["../../credentials/GlpiApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QAEjB,gBAAW,GAAG,UAAU,CAAC;QAEzB,SAAI,GAAS,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC;QAEtF,qBAAgB,GAAG,iDAAiD,CAAC;QAErE,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,GAAG,EAAE,oCAAoC;gBACzC,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,WAAW,EAAE,4BAA4B;iBACzC;gBACD,IAAI,EAAE;oBACL,QAAQ,EAAE,4BAA4B;oBACtC,QAAQ,EAAE,4BAA4B;iBACtC;aACD;SACD,CAAC;QAEF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,0DAA0D;aACvE;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACtC;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;aACvC;SACD,CAAC;IACH,CAAC;CAAA;AA5DD,0BA4DC"}
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Example implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,61 @@
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
@@ -0,0 +1 @@
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,kCA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T,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AArED,0BAqEC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-example",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/org/repo?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
2
+ stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
+ <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
+ <rect x="9" y="9" width="6" height="6"></rect>
5
+ <line x1="9" y1="1" x2="9" y2="4"></line>
6
+ <line x1="15" y1="1" x2="15" y2="4"></line>
7
+ <line x1="9" y1="20" x2="9" y2="23"></line>
8
+ <line x1="15" y1="20" x2="15" y2="23"></line>
9
+ <line x1="20" y1="9" x2="23" y2="9"></line>
10
+ <line x1="20" y1="14" x2="23" y2="14"></line>
11
+ <line x1="1" y1="9" x2="4" y2="9"></line>
12
+ <line x1="1" y1="14" x2="4" y2="14"></line>
13
+ </svg>
@@ -0,0 +1,14 @@
1
+ import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ import { getRepositories } from './listSearch/getRepositories';
3
+ import { getUsers } from './listSearch/getUsers';
4
+ import { getIssues } from './listSearch/getIssues';
5
+ export declare class GithubIssues implements INodeType {
6
+ description: INodeTypeDescription;
7
+ methods: {
8
+ listSearch: {
9
+ getRepositories: typeof getRepositories;
10
+ getUsers: typeof getUsers;
11
+ getIssues: typeof getIssues;
12
+ };
13
+ };
14
+ }
@@ -0,0 +1,101 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GithubIssues.node.js","sourceRoot":"","sources":["../../../nodes/GithubIssues/GithubIssues.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,6CAAqD;AACrD,2DAAmE;AACnE,kEAA+D;AAC/D,oDAAiD;AACjD,sDAAmD;AAEnD,MAAa,YAAY;IAAzB;QACC,gBAAW,GAAyB;YACnC,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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"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-github-issues",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Development", "Developer Tools"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://github.com/org/repo?tab=readme-ov-file#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://github.com/org/repo?tab=readme-ov-file"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getIssues(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,28 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIssues.js","sourceRoot":"","sources":["../../../../nodes/GithubIssues/listSearch/getIssues.ts"],"names":[],"mappings":";;AAkBA,8BA8BC;AA3CD,mDAAuD;AAahD,KAAK,UAAU,SAAS,CAE9B,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,GAAwB;QACvC,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC;KACd,CAAC;IACF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACzE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,YAAY,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACnF,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,QAAQ,KAAK,IAAI,UAAU,EAAE,CAAC,CAAC;IAExD,YAAY,GAAG,MAAM,4BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE;QACzE,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QACpC,IAAI;QACJ,QAAQ;KACR,CAAC,CAAC;IAEH,MAAM,OAAO,GAA2B,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAqB,EAAE,EAAE,CAAC,CAAC;QAC1F,IAAI,EAAE,IAAI,CAAC,KAAK;QAChB,KAAK,EAAE,IAAI,CAAC,MAAM;QAClB,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"}
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getRepositories(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
1
+ {"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@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
2
+ export declare function getUsers(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
@@ -0,0 +1,29 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueCreateDescription: INodeProperties[];