n8n-nodes-multiple-upload-request 0.1.1

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 (77) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +276 -0
  3. package/dist/credentials/BearerTokenAuthApi.credentials.d.ts +10 -0
  4. package/dist/credentials/BearerTokenAuthApi.credentials.js +38 -0
  5. package/dist/credentials/BearerTokenAuthApi.credentials.js.map +1 -0
  6. package/dist/credentials/CustomHeaderAuthApi.credentials.d.ts +9 -0
  7. package/dist/credentials/CustomHeaderAuthApi.credentials.js +38 -0
  8. package/dist/credentials/CustomHeaderAuthApi.credentials.js.map +1 -0
  9. package/dist/credentials/GithubIssuesApi.credentials.d.ts +10 -0
  10. package/dist/credentials/GithubIssuesApi.credentials.js +37 -0
  11. package/dist/credentials/GithubIssuesApi.credentials.js.map +1 -0
  12. package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +9 -0
  13. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +54 -0
  14. package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +1 -0
  15. package/dist/icons/github.dark.svg +3 -0
  16. package/dist/icons/github.svg +3 -0
  17. package/dist/nodes/Example/Example.node.d.ts +5 -0
  18. package/dist/nodes/Example/Example.node.js +61 -0
  19. package/dist/nodes/Example/Example.node.js.map +1 -0
  20. package/dist/nodes/Example/Example.node.json +18 -0
  21. package/dist/nodes/Example/example.dark.svg +13 -0
  22. package/dist/nodes/Example/example.svg +13 -0
  23. package/dist/nodes/GithubIssues/GithubIssues.node.d.ts +14 -0
  24. package/dist/nodes/GithubIssues/GithubIssues.node.js +101 -0
  25. package/dist/nodes/GithubIssues/GithubIssues.node.js.map +1 -0
  26. package/dist/nodes/GithubIssues/GithubIssues.node.json +18 -0
  27. package/dist/nodes/GithubIssues/listSearch/getIssues.d.ts +2 -0
  28. package/dist/nodes/GithubIssues/listSearch/getIssues.js +28 -0
  29. package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +1 -0
  30. package/dist/nodes/GithubIssues/listSearch/getRepositories.d.ts +2 -0
  31. package/dist/nodes/GithubIssues/listSearch/getRepositories.js +31 -0
  32. package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +1 -0
  33. package/dist/nodes/GithubIssues/listSearch/getUsers.d.ts +2 -0
  34. package/dist/nodes/GithubIssues/listSearch/getUsers.js +29 -0
  35. package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +1 -0
  36. package/dist/nodes/GithubIssues/resources/issue/create.d.ts +2 -0
  37. package/dist/nodes/GithubIssues/resources/issue/create.js +75 -0
  38. package/dist/nodes/GithubIssues/resources/issue/create.js.map +1 -0
  39. package/dist/nodes/GithubIssues/resources/issue/get.d.ts +2 -0
  40. package/dist/nodes/GithubIssues/resources/issue/get.js +15 -0
  41. package/dist/nodes/GithubIssues/resources/issue/get.js.map +1 -0
  42. package/dist/nodes/GithubIssues/resources/issue/getAll.d.ts +2 -0
  43. package/dist/nodes/GithubIssues/resources/issue/getAll.js +125 -0
  44. package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +1 -0
  45. package/dist/nodes/GithubIssues/resources/issue/index.d.ts +2 -0
  46. package/dist/nodes/GithubIssues/resources/issue/index.js +76 -0
  47. package/dist/nodes/GithubIssues/resources/issue/index.js.map +1 -0
  48. package/dist/nodes/GithubIssues/resources/issueComment/getAll.d.ts +2 -0
  49. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +66 -0
  50. package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +1 -0
  51. package/dist/nodes/GithubIssues/resources/issueComment/index.d.ts +2 -0
  52. package/dist/nodes/GithubIssues/resources/issueComment/index.js +48 -0
  53. package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +1 -0
  54. package/dist/nodes/GithubIssues/shared/descriptions.d.ts +4 -0
  55. package/dist/nodes/GithubIssues/shared/descriptions.js +151 -0
  56. package/dist/nodes/GithubIssues/shared/descriptions.js.map +1 -0
  57. package/dist/nodes/GithubIssues/shared/transport.d.ts +2 -0
  58. package/dist/nodes/GithubIssues/shared/transport.js +16 -0
  59. package/dist/nodes/GithubIssues/shared/transport.js.map +1 -0
  60. package/dist/nodes/GithubIssues/shared/utils.d.ts +3 -0
  61. package/dist/nodes/GithubIssues/shared/utils.js +17 -0
  62. package/dist/nodes/GithubIssues/shared/utils.js.map +1 -0
  63. package/dist/nodes/MultipleUploadRequest/MultipleUploadRequest.node.d.ts +5 -0
  64. package/dist/nodes/MultipleUploadRequest/MultipleUploadRequest.node.js +177 -0
  65. package/dist/nodes/MultipleUploadRequest/MultipleUploadRequest.node.js.map +1 -0
  66. package/dist/nodes/MultipleUploadRequest/MultipleUploadRequest.node.json +6 -0
  67. package/dist/nodes/MultipleUploadRequest/description.d.ts +2 -0
  68. package/dist/nodes/MultipleUploadRequest/description.js +191 -0
  69. package/dist/nodes/MultipleUploadRequest/description.js.map +1 -0
  70. package/dist/nodes/MultipleUploadRequest/upload.dark.svg +7 -0
  71. package/dist/nodes/MultipleUploadRequest/upload.svg +7 -0
  72. package/dist/nodes/MultipleUploadRequest/utils.d.ts +3 -0
  73. package/dist/nodes/MultipleUploadRequest/utils.js +25 -0
  74. package/dist/nodes/MultipleUploadRequest/utils.js.map +1 -0
  75. package/dist/package.json +55 -0
  76. package/dist/tsconfig.tsbuildinfo +1 -0
  77. package/package.json +54 -0
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const issueCommentDescription: INodeProperties[];
@@ -0,0 +1,48 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const repoOwnerSelect: INodeProperties;
3
+ export declare const repoNameSelect: INodeProperties;
4
+ export declare const issueSelect: INodeProperties;
@@ -0,0 +1,151 @@
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
@@ -0,0 +1 @@
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,UAAU,EAAE;gBACX;oBACC,IAAI,EAAE,OAAO;oBACb,UAAU,EAAE;wBACX,KAAK,EAAE,iDAAiD;wBACxD,YAAY,EAAE,wBAAwB;qBACtC;iBACD;aACD;SACD;QACD;YACC,WAAW,EAAE,SAAS;YACt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AE,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"}
@@ -0,0 +1,2 @@
1
+ import type { IHookFunctions, IExecuteFunctions, IExecuteSingleFunctions, ILoadOptionsFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
2
+ export declare function githubApiRequest(this: IHookFunctions | IExecuteFunctions | IExecuteSingleFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, resource: string, qs?: IDataObject, body?: IDataObject | undefined): Promise<any>;
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export declare function parseLinkHeader(header?: string): {
2
+ [rel: string]: string;
3
+ };
@@ -0,0 +1,17 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class MultipleUploadRequest implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MultipleUploadRequest = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const description_1 = require("./description");
6
+ const utils_1 = require("./utils");
7
+ class MultipleUploadRequest {
8
+ constructor() {
9
+ this.description = {
10
+ displayName: 'Multiple Upload Request',
11
+ name: 'multipleUploadRequest',
12
+ icon: 'file:upload.svg',
13
+ group: ['transform'],
14
+ version: 1,
15
+ description: 'Upload multiple binary files with pattern filtering',
16
+ defaults: {
17
+ name: 'Multiple Upload Request',
18
+ },
19
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
20
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
+ credentials: [
22
+ {
23
+ name: 'bearerTokenAuthApi',
24
+ required: true,
25
+ displayOptions: {
26
+ show: {
27
+ authentication: ['bearer'],
28
+ },
29
+ },
30
+ },
31
+ {
32
+ name: 'customHeaderAuthApi',
33
+ required: true,
34
+ displayOptions: {
35
+ show: {
36
+ authentication: ['customHeader'],
37
+ },
38
+ },
39
+ },
40
+ ],
41
+ properties: description_1.multipleUploadRequestDescription,
42
+ usableAsTool: true,
43
+ };
44
+ }
45
+ async execute() {
46
+ const items = this.getInputData();
47
+ const returnData = [];
48
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
49
+ try {
50
+ const requestMethod = this.getNodeParameter('requestMethod', itemIndex);
51
+ const url = this.getNodeParameter('url', itemIndex);
52
+ const filePattern = this.getNodeParameter('filePattern', itemIndex, '*');
53
+ const binaryPropertyName = this.getNodeParameter('binaryPropertyName', itemIndex, 'data');
54
+ const options = this.getNodeParameter('options', itemIndex, {});
55
+ if (!url) {
56
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'URL is required', { itemIndex });
57
+ }
58
+ const item = items[itemIndex];
59
+ if (!item.binary) {
60
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No binary data found in input. Please connect a node that provides binary data.', { itemIndex });
61
+ }
62
+ const propertyNames = binaryPropertyName.split(',').map((name) => name.trim());
63
+ let allBinaryFiles = {};
64
+ for (const propName of propertyNames) {
65
+ if (item.binary[propName]) {
66
+ allBinaryFiles[propName] = item.binary[propName];
67
+ }
68
+ }
69
+ if (Object.keys(allBinaryFiles).length === 0) {
70
+ allBinaryFiles = item.binary;
71
+ }
72
+ const filteredFiles = (0, utils_1.filterBinaryFiles)(allBinaryFiles, filePattern);
73
+ if (Object.keys(filteredFiles).length === 0) {
74
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `No binary files match the pattern: ${filePattern}`, { itemIndex });
75
+ }
76
+ const formData = {};
77
+ for (const [key, binaryData] of Object.entries(filteredFiles)) {
78
+ const buffer = await this.helpers.getBinaryDataBuffer(itemIndex, key);
79
+ formData[key] = {
80
+ value: buffer,
81
+ options: {
82
+ filename: binaryData.fileName || key,
83
+ contentType: binaryData.mimeType || 'application/octet-stream',
84
+ },
85
+ };
86
+ }
87
+ if (options.formFields) {
88
+ const formFields = options.formFields.field;
89
+ if (formFields && Array.isArray(formFields)) {
90
+ for (const field of formFields) {
91
+ if (field.name) {
92
+ formData[field.name] = field.value;
93
+ }
94
+ }
95
+ }
96
+ }
97
+ const requestOptions = {
98
+ method: requestMethod,
99
+ url,
100
+ body: formData,
101
+ headers: {},
102
+ };
103
+ if (options.queryParameters) {
104
+ const queryParams = options.queryParameters.parameter;
105
+ if (queryParams && Array.isArray(queryParams)) {
106
+ const qs = {};
107
+ for (const param of queryParams) {
108
+ if (param.name) {
109
+ qs[param.name] = param.value;
110
+ }
111
+ }
112
+ requestOptions.qs = qs;
113
+ }
114
+ }
115
+ if (options.headers) {
116
+ const headers = options.headers.header;
117
+ if (headers && Array.isArray(headers)) {
118
+ for (const header of headers) {
119
+ if (header.name) {
120
+ requestOptions.headers[header.name] = header.value;
121
+ }
122
+ }
123
+ }
124
+ }
125
+ if (options.timeout) {
126
+ requestOptions.timeout = options.timeout;
127
+ }
128
+ if (options.ignoreSSL) {
129
+ requestOptions.skipSslCertificateValidation = options.ignoreSSL;
130
+ }
131
+ const authentication = this.getNodeParameter('authentication', itemIndex);
132
+ let response;
133
+ if (authentication === 'none') {
134
+ response = await this.helpers.httpRequest(requestOptions);
135
+ }
136
+ else if (authentication === 'customHeader') {
137
+ const credentials = await this.getCredentials('customHeaderAuthApi');
138
+ const headerName = credentials.headerName;
139
+ const headerValue = credentials.headerValue;
140
+ if (!requestOptions.headers) {
141
+ requestOptions.headers = {};
142
+ }
143
+ requestOptions.headers[headerName] = headerValue;
144
+ response = await this.helpers.httpRequest(requestOptions);
145
+ }
146
+ else {
147
+ response = await this.helpers.httpRequestWithAuthentication.call(this, authentication, requestOptions);
148
+ }
149
+ returnData.push({
150
+ json: response,
151
+ pairedItem: { item: itemIndex },
152
+ });
153
+ }
154
+ catch (error) {
155
+ if (this.continueOnFail()) {
156
+ returnData.push({
157
+ json: {
158
+ error: error.message,
159
+ },
160
+ pairedItem: { item: itemIndex },
161
+ });
162
+ continue;
163
+ }
164
+ if (error.context) {
165
+ error.context.itemIndex = itemIndex;
166
+ throw error;
167
+ }
168
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
169
+ itemIndex,
170
+ });
171
+ }
172
+ }
173
+ return [returnData];
174
+ }
175
+ }
176
+ exports.MultipleUploadRequest = MultipleUploadRequest;
177
+ //# sourceMappingURL=MultipleUploadRequest.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultipleUploadRequest.node.js","sourceRoot":"","sources":["../../../nodes/MultipleUploadRequest/MultipleUploadRequest.node.ts"],"names":[],"mappings":";;;AAUA,+CAAuE;AACvE,+CAAiE;AACjE,mCAA4C;AAE5C,MAAa,qBAAqB;IAAlC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,yBAAyB;YACtC,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE;gBACT,IAAI,EAAE,yBAAyB;aAC/B;YACD,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,oBAAoB;oBAC1B,QAAQ,EAAE,IAAI;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,cAAc,EAAE,CAAC,QAAQ,CAAC;yBAC1B;qBACD;iBACD;gBACD;oBACC,IAAI,EAAE,qBAAqB;o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WAAW,CAAC,cAAc,CAAC,CAAC;gBAC3D,CAAC;qBAAM,CAAC;oBACP,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAC/D,IAAI,EACJ,cAAc,EACd,cAAc,CACd,CAAC;gBACH,CAAC;gBAGD,UAAU,CAAC,IAAI,CAAC;oBACf,IAAI,EAAE,QAAuB;oBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iBAC/B,CAAC,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO;yBACpB;wBACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;qBAC/B,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBAED,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;oBACnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;oBACpC,MAAM,KAAK,CAAC;gBACb,CAAC;gBAED,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;oBACnD,SAAS;iBACT,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AA5ND,sDA4NC"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "multipleUploadRequest",
3
+ "displayName": "Multiple Upload Request",
4
+ "icon": "file:upload.svg",
5
+ "description": "Upload multiple binary files with pattern filtering and authentication support"
6
+ }
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const multipleUploadRequestDescription: INodeProperties[];