@satoshiengineering/n8n-nodes-btcpay 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022 n8n
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ ![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)
2
+
3
+ # n8n-nodes-starter
4
+
5
+ This repo contains example nodes to help you get started building your own custom integrations for [n8n](n8n.io). It includes the node linter and other dependencies.
6
+
7
+ To make your custom node available to the community, you must create it as an npm package, and [submit it to the npm registry](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry).
8
+
9
+ ## Prerequisites
10
+
11
+ You need the following installed on your development machine:
12
+
13
+ * [git](https://git-scm.com/downloads)
14
+ * Node.js and pnpm. Minimum version Node 18. You can find instructions on how to install both using nvm (Node Version Manager) for Linux, Mac, and WSL [here](https://github.com/nvm-sh/nvm). For Windows users, refer to Microsoft's guide to [Install NodeJS on Windows](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows).
15
+ * Install n8n with:
16
+ ```
17
+ pnpm install n8n -g
18
+ ```
19
+ * Recommended: follow n8n's guide to [set up your development environment](https://docs.n8n.io/integrations/creating-nodes/build/node-development-environment/).
20
+
21
+ ## Using this starter
22
+
23
+ These are the basic steps for working with the starter. For detailed guidance on creating and publishing nodes, refer to the [documentation](https://docs.n8n.io/integrations/creating-nodes/).
24
+
25
+ 1. [Generate a new repository](https://github.com/n8n-io/n8n-nodes-starter/generate) from this template repository.
26
+ 2. Clone your new repo:
27
+ ```
28
+ git clone https://github.com/<your organization>/<your-repo-name>.git
29
+ ```
30
+ 3. Run `pnpm i` to install dependencies.
31
+ 4. Open the project in your editor.
32
+ 5. Browse the examples in `/nodes` and `/credentials`. Modify the examples, or replace them with your own nodes.
33
+ 6. Update the `package.json` to match your details.
34
+ 7. Run `pnpm lint` to check for errors or `pnpm lintfix` to automatically fix errors when possible.
35
+ 8. Test your node locally. Refer to [Run your node locally](https://docs.n8n.io/integrations/creating-nodes/test/run-node-locally/) for guidance.
36
+ 9. Replace this README with documentation for your node. Use the [README_TEMPLATE](README_TEMPLATE.md) to get started.
37
+ 10. Update the LICENSE file to use your details.
38
+ 11. [Publish](https://docs.npmjs.com/packages-and-modules/contributing-packages-to-the-registry) your package to npm.
39
+
40
+ ## More information
41
+
42
+ Refer to our [documentation on creating nodes](https://docs.n8n.io/integrations/creating-nodes/) for detailed information on building your own nodes.
43
+
44
+ ## License
45
+
46
+ [MIT](https://github.com/n8n-io/n8n-nodes-starter/blob/master/LICENSE.md)
@@ -0,0 +1,9 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class BtcPayApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BtcPayApi = void 0;
4
+ class BtcPayApi {
5
+ constructor() {
6
+ this.name = 'btcPayApi';
7
+ this.displayName = 'BTCPay API';
8
+ this.documentationUrl = 'https://docs.btcpayserver.org/API/Greenfield/v1/';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Token',
12
+ name: 'apiToken',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ description: 'The API token created by the BTCPay server instance. It can be found in the BTCPay server under /account/apikeys.',
17
+ },
18
+ {
19
+ displayName: 'Host',
20
+ name: 'host',
21
+ type: 'string',
22
+ default: '',
23
+ placeholder: 'http(s)://localhost:8080',
24
+ description: 'The origin of you BTCPay server instance. Should include the protocol and port, but no route information and no trailing slash.',
25
+ },
26
+ ];
27
+ this.authenticate = {
28
+ type: 'generic',
29
+ properties: {
30
+ headers: {
31
+ Authorization: '=token {{ $credentials.apiToken }}',
32
+ },
33
+ },
34
+ };
35
+ this.test = {
36
+ request: {
37
+ baseURL: '={{ $credentials.host }}',
38
+ url: '/api/v1/stores',
39
+ },
40
+ };
41
+ }
42
+ }
43
+ exports.BtcPayApi = BtcPayApi;
44
+ //# sourceMappingURL=BtcPayApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BtcPayApi.credentials.js","sourceRoot":"","sources":["../../credentials/BtcPayApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,SAAS;IAAtB;QACC,SAAI,GAAG,WAAW,CAAC;QAEnB,gBAAW,GAAG,YAAY,CAAC;QAE3B,qBAAgB,GAAG,kDAAkD,CAAC;QAEtE,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,mHAAmH;aAChI;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,0BAA0B;gBACvC,WAAW,EAAE,iIAAiI;aAC9I;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,oCAAoC;iBACnD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,0BAA0B;gBACnC,GAAG,EAAE,gBAAgB;aACrB;SACD,CAAC;IACH,CAAC;CAAA;AAzCD,8BAyCC"}
@@ -0,0 +1,11 @@
1
+ import { type IExecuteFunctions, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ import { getStores } from './GenericFunctions';
3
+ export declare class BtcPay implements INodeType {
4
+ description: INodeTypeDescription;
5
+ methods: {
6
+ loadOptions: {
7
+ getStores: typeof getStores;
8
+ };
9
+ };
10
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
11
+ }
@@ -0,0 +1,234 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BtcPay = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const GenericFunctions_1 = require("./GenericFunctions");
6
+ class BtcPay {
7
+ constructor() {
8
+ this.description = {
9
+ displayName: 'BTCPay',
10
+ name: 'btcPay',
11
+ icon: 'file:btcPay.svg',
12
+ group: [],
13
+ version: 1,
14
+ description: 'BtcPay node with some basic functionality. Will get extended in the future.',
15
+ defaults: {
16
+ name: 'BTCPay',
17
+ },
18
+ inputs: ['main'],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'btcPayApi',
23
+ required: true,
24
+ },
25
+ ],
26
+ properties: [
27
+ {
28
+ displayName: 'Store Name or ID',
29
+ name: 'storeId',
30
+ type: 'options',
31
+ default: '',
32
+ required: true,
33
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
34
+ typeOptions: {
35
+ loadOptionsDependsOn: ['authentication'],
36
+ loadOptionsMethod: 'getStores',
37
+ },
38
+ },
39
+ {
40
+ displayName: 'Resource',
41
+ name: 'resource',
42
+ type: 'options',
43
+ noDataExpression: true,
44
+ options: [
45
+ {
46
+ name: 'PaymentRequest',
47
+ value: 'paymentRequest',
48
+ },
49
+ ],
50
+ default: 'paymentRequest',
51
+ },
52
+ {
53
+ displayName: 'Operation',
54
+ name: 'operation',
55
+ type: 'options',
56
+ noDataExpression: true,
57
+ displayOptions: {
58
+ show: {
59
+ resource: ['paymentRequest'],
60
+ },
61
+ },
62
+ options: [
63
+ {
64
+ name: 'Create',
65
+ value: 'create',
66
+ description: 'Create a new payment request',
67
+ action: 'Create a new payment request',
68
+ },
69
+ {
70
+ name: 'Get',
71
+ value: 'get',
72
+ description: 'Get an existing payment request',
73
+ action: 'Get an existing payment request',
74
+ },
75
+ ],
76
+ default: 'create',
77
+ },
78
+ {
79
+ displayName: 'Amount',
80
+ name: 'amount',
81
+ type: 'number',
82
+ required: true,
83
+ default: 10.00,
84
+ typeOptions: {
85
+ minValue: 0,
86
+ numberPrecision: 2,
87
+ },
88
+ placeholder: 'Payment amount',
89
+ description: 'The amount of the payment request. Has to be greater than 0. Will use the default currency of the store, unless you change it with a custom field "currency".',
90
+ displayOptions: {
91
+ show: {
92
+ resource: ['paymentRequest'],
93
+ operation: ['create']
94
+ }
95
+ },
96
+ },
97
+ {
98
+ displayName: 'Title',
99
+ name: 'title',
100
+ type: 'string',
101
+ required: true,
102
+ default: '',
103
+ placeholder: 'Payment title',
104
+ description: 'The title in BTCPay. E.g. use the order number.',
105
+ displayOptions: {
106
+ show: {
107
+ resource: ['paymentRequest'],
108
+ operation: ['create']
109
+ }
110
+ },
111
+ },
112
+ {
113
+ displayName: 'Additional Fields',
114
+ name: 'additionalFields',
115
+ type: 'fixedCollection',
116
+ default: {},
117
+ typeOptions: {
118
+ multipleValueButtonText: 'Add Field to Send',
119
+ multipleValues: true,
120
+ },
121
+ placeholder: 'Add Field',
122
+ description: 'Add additional fields, e.g. currency. Refer to https://docs.btcpayserver.org/API/Greenfield/v1/#operation/PaymentRequests_CreatePaymentRequest for more information.',
123
+ options: [
124
+ {
125
+ displayName: 'Field',
126
+ name: 'fieldValues',
127
+ values: [
128
+ {
129
+ displayName: 'Field Name',
130
+ name: 'fieldName',
131
+ type: 'string',
132
+ required: true,
133
+ default: '',
134
+ },
135
+ {
136
+ displayName: 'Field Value',
137
+ name: 'fieldValue',
138
+ type: 'string',
139
+ required: true,
140
+ default: '',
141
+ },
142
+ ],
143
+ },
144
+ ],
145
+ displayOptions: {
146
+ show: {
147
+ resource: ['paymentRequest'],
148
+ operation: ['create']
149
+ }
150
+ },
151
+ },
152
+ {
153
+ displayName: 'Payment ID',
154
+ name: 'paymentRequestId',
155
+ type: 'string',
156
+ required: true,
157
+ default: '',
158
+ placeholder: 'Payment request ID',
159
+ description: 'The ID of the payment request to fetch',
160
+ displayOptions: {
161
+ show: {
162
+ resource: ['paymentRequest'],
163
+ operation: ['get']
164
+ }
165
+ },
166
+ }
167
+ ],
168
+ };
169
+ this.methods = {
170
+ loadOptions: {
171
+ getStores: GenericFunctions_1.getStores,
172
+ },
173
+ };
174
+ }
175
+ async execute() {
176
+ var _a;
177
+ const items = this.getInputData();
178
+ const returnData = [];
179
+ const storeId = this.getNodeParameter('storeId', 0);
180
+ const resource = this.getNodeParameter('resource', 0);
181
+ const operation = this.getNodeParameter('operation', 0);
182
+ if (resource === 'paymentRequest') {
183
+ if (operation === 'create') {
184
+ for (let i = 0; i < items.length; i++) {
185
+ const amount = this.getNodeParameter('amount', i);
186
+ const title = this.getNodeParameter('title', i);
187
+ const additionalFields = this.getNodeParameter('additionalFields', i);
188
+ const body = {
189
+ amount,
190
+ title,
191
+ };
192
+ ((_a = additionalFields.fieldValues) !== null && _a !== void 0 ? _a : []).forEach(({ fieldName, fieldValue }) => {
193
+ body[fieldName] = fieldValue;
194
+ });
195
+ try {
196
+ const responseData = await GenericFunctions_1.apiRequest.call(this, {
197
+ url: `/api/v1/stores/${storeId}/payment-requests`,
198
+ method: 'POST',
199
+ body,
200
+ });
201
+ returnData.push(responseData);
202
+ }
203
+ catch (error) {
204
+ if (this.continueOnFail()) {
205
+ returnData.push({ error: error.toString() });
206
+ }
207
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
208
+ }
209
+ }
210
+ }
211
+ if (operation === 'get') {
212
+ for (let i = 0; i < items.length; i++) {
213
+ const paymentRequestId = this.getNodeParameter('paymentRequestId', i);
214
+ try {
215
+ const responseData = await GenericFunctions_1.apiRequest.call(this, {
216
+ url: `/api/v1/stores/${storeId}/payment-requests/${paymentRequestId}`,
217
+ method: 'GET',
218
+ });
219
+ returnData.push(responseData);
220
+ }
221
+ catch (error) {
222
+ if (this.continueOnFail()) {
223
+ returnData.push({ error: error.toString() });
224
+ }
225
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
226
+ }
227
+ }
228
+ }
229
+ }
230
+ return [this.helpers.returnJsonArray(returnData)];
231
+ }
232
+ }
233
+ exports.BtcPay = BtcPay;
234
+ //# sourceMappingURL=BtcPay.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BtcPay.node.js","sourceRoot":"","sources":["../../../nodes/BtcPay/BtcPay.node.ts"],"names":[],"mappings":";;;AAAA,+CAQsB;AAEtB,yDAA2D;AAE3D,MAAa,MAAM;IAAnB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,QAAQ;YACrB,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,EAAE;YACT,OA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EAAE,EAAE,CAAC;oBACvC,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAW,CAAC;oBAEhF,IAAI,CAAC;wBACJ,MAAM,YAAY,GAAG,MAAM,6BAAU,CAAC,IAAI,CAAC,IAAI,EAAE;4BAChD,GAAG,EAAE,kBAAkB,OAAO,qBAAqB,gBAAgB,EAAE;4BACrE,MAAM,EAAE,KAAK;yBACb,CAAC,CAAC;wBACH,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;oBAC/B,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;4BAC3B,UAAU,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;wBAC9C,CAAC;wBACD,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,CAAC,CAAC;oBAC7D,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;IACnD,CAAC;CACD;AAzOD,wBAyOC"}
@@ -0,0 +1,18 @@
1
+ import { type IHookFunctions, type IWebhookFunctions, type INodeType, type INodeTypeDescription, type IWebhookResponseData } from 'n8n-workflow';
2
+ import { getStores } from './GenericFunctions';
3
+ export declare class BtcPayTrigger implements INodeType {
4
+ description: INodeTypeDescription;
5
+ methods: {
6
+ loadOptions: {
7
+ getStores: typeof getStores;
8
+ };
9
+ };
10
+ webhookMethods: {
11
+ default: {
12
+ checkExists(this: IHookFunctions): Promise<boolean>;
13
+ create(this: IHookFunctions): Promise<boolean>;
14
+ delete(this: IHookFunctions): Promise<boolean>;
15
+ };
16
+ };
17
+ webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
18
+ }
@@ -0,0 +1,210 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.BtcPayTrigger = void 0;
7
+ const crypto_1 = __importDefault(require("crypto"));
8
+ const n8n_workflow_1 = require("n8n-workflow");
9
+ const GenericFunctions_1 = require("./GenericFunctions");
10
+ class BtcPayTrigger {
11
+ constructor() {
12
+ this.description = {
13
+ displayName: 'BTCPay Trigger',
14
+ name: 'btcPayTrigger',
15
+ icon: 'file:btcPay.svg',
16
+ group: ['trigger'],
17
+ version: 1,
18
+ description: 'Starts the workflow on a BTCPay event',
19
+ defaults: {
20
+ name: 'BTCPay Trigger',
21
+ },
22
+ inputs: [],
23
+ outputs: ['main'],
24
+ credentials: [
25
+ {
26
+ name: 'btcPayApi',
27
+ required: true,
28
+ },
29
+ ],
30
+ webhooks: [
31
+ {
32
+ name: 'default',
33
+ httpMethod: 'POST',
34
+ responseMode: 'onReceived',
35
+ path: 'webhook',
36
+ },
37
+ ],
38
+ properties: [
39
+ {
40
+ displayName: 'Store Name or ID',
41
+ name: 'storeId',
42
+ type: 'options',
43
+ default: '',
44
+ required: true,
45
+ description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
46
+ typeOptions: {
47
+ loadOptionsDependsOn: ['authentication'],
48
+ loadOptionsMethod: 'getStores',
49
+ },
50
+ },
51
+ {
52
+ displayName: 'Event',
53
+ name: 'authorizedEvent',
54
+ type: 'options',
55
+ default: 'paymentRequestCompleted',
56
+ required: true,
57
+ description: 'What type of event should trigger the workflow?',
58
+ options: [{
59
+ name: 'Payment Request Fulfilled',
60
+ value: 'paymentRequestCompleted',
61
+ }]
62
+ },
63
+ ],
64
+ };
65
+ this.methods = {
66
+ loadOptions: {
67
+ getStores: GenericFunctions_1.getStores,
68
+ },
69
+ };
70
+ this.webhookMethods = {
71
+ default: {
72
+ async checkExists() {
73
+ const webhookData = this.getWorkflowStaticData('node');
74
+ if (webhookData.webhookId == null
75
+ || webhookData.webhookSecret == null) {
76
+ return false;
77
+ }
78
+ const webhookUrl = this.getNodeWebhookUrl('default');
79
+ const storeId = this.getNodeParameter('storeId', 0);
80
+ try {
81
+ const responseData = await GenericFunctions_1.apiRequest.call(this, {
82
+ url: `/api/v1/stores/${storeId}/webhooks`,
83
+ method: 'GET',
84
+ });
85
+ for (const webhook of responseData) {
86
+ if (webhook.url === webhookUrl) {
87
+ return true;
88
+ }
89
+ }
90
+ }
91
+ catch (error) {
92
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
93
+ }
94
+ return false;
95
+ },
96
+ async create() {
97
+ const webhookUrl = this.getNodeWebhookUrl('default');
98
+ const storeId = this.getNodeParameter('storeId', 0);
99
+ const authorizedEvent = this.getNodeParameter('authorizedEvent', 0);
100
+ const authorizedEvents = {
101
+ everything: false,
102
+ specificEvents: [],
103
+ };
104
+ if (authorizedEvent === 'paymentRequestCompleted') {
105
+ authorizedEvents.specificEvents.push('PaymentRequestStatusChanged');
106
+ }
107
+ try {
108
+ const responseData = await GenericFunctions_1.apiRequest.call(this, {
109
+ url: `/api/v1/stores/${storeId}/webhooks`,
110
+ method: 'POST',
111
+ body: {
112
+ enabled: true,
113
+ automaticRedelivery: true,
114
+ url: webhookUrl,
115
+ authorizedEvents,
116
+ }
117
+ });
118
+ const webhookData = this.getWorkflowStaticData('node');
119
+ webhookData.webhookId = responseData.id;
120
+ webhookData.webhookSecret = responseData.secret;
121
+ }
122
+ catch (error) {
123
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
124
+ }
125
+ return true;
126
+ },
127
+ async delete() {
128
+ const storeId = this.getNodeParameter('storeId', 0);
129
+ try {
130
+ const webhookData = this.getWorkflowStaticData('node');
131
+ if (webhookData.webhookId == null) {
132
+ return true;
133
+ }
134
+ await GenericFunctions_1.apiRequest.call(this, {
135
+ url: `/api/v1/stores/${storeId}/webhooks/${webhookData.webhookId}`,
136
+ method: 'DELETE',
137
+ });
138
+ delete webhookData.webhookId;
139
+ delete webhookData.webhookSecret;
140
+ }
141
+ catch (error) {
142
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
143
+ }
144
+ return true;
145
+ },
146
+ },
147
+ };
148
+ }
149
+ async webhook() {
150
+ var _a;
151
+ const bodyData = this.getBodyData();
152
+ const authorizedEvent = this.getNodeParameter('authorizedEvent', 0);
153
+ if (authorizedEvent === 'paymentRequestCompleted') {
154
+ if (bodyData.status !== 'Completed') {
155
+ return {
156
+ webhookResponse: {
157
+ status: 200,
158
+ message: 'Event discarded, only completed payment requests are accepted',
159
+ },
160
+ workflowData: undefined,
161
+ };
162
+ }
163
+ const request = this.getRequestObject();
164
+ const webhookData = this.getWorkflowStaticData('node');
165
+ const headerData = this.getHeaderData();
166
+ const btcPaySig = headerData['btcpay-sig'];
167
+ const signature = btcPaySig.split('=')[1];
168
+ if (!request.rawBody) {
169
+ await request.readRawBody();
170
+ }
171
+ const data = ((_a = request.rawBody) !== null && _a !== void 0 ? _a : '').toString(n8n_workflow_1.BINARY_ENCODING);
172
+ const bodyInUtf8 = Buffer.from(data, 'base64').toString('utf8');
173
+ if (typeof webhookData.webhookSecret !== 'string') {
174
+ return {
175
+ webhookResponse: {
176
+ status: 500,
177
+ message: 'Webhook secret not found',
178
+ },
179
+ workflowData: undefined,
180
+ };
181
+ }
182
+ const expectedSignature = crypto_1.default.createHmac('sha256', webhookData.webhookSecret).update(bodyInUtf8).digest('hex');
183
+ if (signature != expectedSignature) {
184
+ return {
185
+ webhookResponse: {
186
+ status: 403,
187
+ message: 'Invalid signature',
188
+ },
189
+ workflowData: undefined,
190
+ };
191
+ }
192
+ return {
193
+ webhookResponse: {
194
+ status: 200,
195
+ message: 'The selected event is not implemented yet',
196
+ },
197
+ workflowData: [this.helpers.returnJsonArray([bodyData])],
198
+ };
199
+ }
200
+ return {
201
+ webhookResponse: {
202
+ status: 404,
203
+ message: 'The selected event is not implemented yet',
204
+ },
205
+ workflowData: undefined,
206
+ };
207
+ }
208
+ }
209
+ exports.BtcPayTrigger = BtcPayTrigger;
210
+ //# sourceMappingURL=BtcPayTrigger.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BtcPayTrigger.node.js","sourceRoot":"","sources":["../../../nodes/BtcPay/BtcPayTrigger.node.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,+CASsB;AAEtB,yDAA2D;AAE3D,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE;gBACT,IAAI,EAAE,gBAAgB;aACtB;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,QAAQ,EAAE;gBACT;oBACC,IAAI,EAAE,SAAS;oBACf,UAAU,EAAE,MAAM;oBAClB,YAAY,EAAE,YAAY;oBAC1B,IAAI,EAAE,SAAS;iBACf;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,kBAAkB;oBAC/B,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,yHAAyH;oBACtI,WAAW,EAAE;wBACZ,oBAAoB,EAAE,CAAC,gBAAgB,CAAC;wBACxC,iBAAiB,EAAE,WAAW;qBAC9B;iBACD;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,iBAAiB;oBACvB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,yBAAyB;oBAClC,QAAQ,EAAE,IAAI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}
@@ -0,0 +1,3 @@
1
+ import { IAllExecuteFunctions, IHttpRequestOptions } from 'n8n-workflow';
2
+ export declare function apiRequest(this: IAllExecuteFunctions, options: IHttpRequestOptions): Promise<any>;
3
+ export declare function getStores(this: IAllExecuteFunctions): Promise<any>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apiRequest = apiRequest;
4
+ exports.getStores = getStores;
5
+ async function apiRequest(options) {
6
+ const credentials = await this.getCredentials('btcPayApi');
7
+ const responseData = await this.helpers.httpRequestWithAuthentication.call(this, 'btcPayApi', {
8
+ ...options,
9
+ url: `${credentials.host}${options.url}`,
10
+ });
11
+ return responseData;
12
+ }
13
+ async function getStores() {
14
+ try {
15
+ const responseData = await apiRequest.call(this, {
16
+ url: `/api/v1/stores`,
17
+ method: 'GET',
18
+ });
19
+ return responseData.map((store) => ({ name: store.name, value: store.id }));
20
+ }
21
+ catch {
22
+ return [{ name: 'No Store', value: 'none' }];
23
+ }
24
+ }
25
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/BtcPay/GenericFunctions.ts"],"names":[],"mappings":";;AAMA,gCAUC;AAED,8BAUC;AAtBM,KAAK,UAAU,UAAU,CAE9B,OAA4B;IAE5B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC3D,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE;QAC5F,GAAG,OAAO;QACV,GAAG,EAAE,GAAG,WAAW,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE;KACzC,CAAC,CAAC;IACH,OAAO,YAAY,CAAC;AACtB,CAAC;AAEM,KAAK,UAAU,SAAS;IAC7B,IAAI,CAAC;QACH,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE;YAC/C,GAAG,EAAE,gBAAgB;YACrB,MAAM,EAAE,KAAK;SACd,CAAC,CAAC;QACH,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,KAAkB,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAC3F,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC"}
@@ -0,0 +1,41 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 60 100"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ width="60px" height="100px"
6
+ >
7
+ <g>
8
+ <path
9
+ fill="#CEDC21"
10
+ d="M9.206,91.433c-2.684,0-4.859-2.177-4.859-4.861V13.431c0-2.685,2.176-4.861,4.859-4.861
11
+ s4.86,2.177,4.86,4.861v73.141C14.066,89.256,11.89,91.433,9.206,91.433"
12
+ />
13
+ <path
14
+ fill="#51B13E"
15
+ d="M9.209,91.433c-1.818,0-3.561-1.025-4.394-2.777c-1.151-2.424-0.118-5.322,2.308-6.476L36.43,68.274
16
+ L6.323,46.093c-2.16-1.593-2.621-4.635-1.029-6.796s4.636-2.622,6.795-1.03l36.647,26.999c1.377,1.016,2.12,2.678,1.956,4.381
17
+ c-0.164,1.7-1.209,3.19-2.755,3.925L11.289,90.964C10.618,91.281,9.907,91.433,9.209,91.433"
18
+ />
19
+ <path
20
+ fill="#CEDC21"
21
+ d="M9.211,62.684c-1.493,0-2.965-0.685-3.917-1.979c-1.592-2.159-1.131-5.204,1.03-6.795L36.43,31.73
22
+ L7.123,17.821c-2.426-1.151-3.459-4.05-2.309-6.475c1.152-2.426,4.051-3.459,6.475-2.309l36.648,17.394
23
+ c1.546,0.733,2.591,2.225,2.755,3.926c0.164,1.702-0.579,3.364-1.956,4.379l-36.647,27C11.22,62.375,10.211,62.684,9.211,62.684"
24
+ />
25
+ <polygon
26
+ fill="#1E7A44"
27
+ points="14.066,39.725 14.066,60.278 28.01,50.006"
28
+ />
29
+ <rect
30
+ x="4.347"
31
+ y="31.106"
32
+ fill="#FFFFFF"
33
+ width="9.72"
34
+ height="23.692"
35
+ />
36
+ <path
37
+ fill="#CEDC21"
38
+ d="M14.066,13.431c0-2.685-2.177-4.861-4.86-4.861s-4.859,2.177-4.859,4.861v61.165h9.72V13.431z"
39
+ />
40
+ </g>
41
+ </svg>
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@satoshiengineering/n8n-nodes-btcpay",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "BtcPay integration for n8n",
6
+ "keywords": [
7
+ "n8n-community-node-package"
8
+ ],
9
+ "license": "MIT",
10
+ "homepage": "",
11
+ "author": {
12
+ "name": "Satoshi Engineering",
13
+ "email": "hello@satoshiengineering.com"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/Satoshi-Engineering/n8n-nodes-btcpay.git"
18
+ },
19
+ "engines": {
20
+ "node": ">=18.10",
21
+ "pnpm": ">=9.1"
22
+ },
23
+ "packageManager": "pnpm@9.1.4",
24
+ "main": "index.js",
25
+ "scripts": {
26
+ "preinstall": "npx only-allow pnpm",
27
+ "build": "tsc && gulp build:icons",
28
+ "dev": "tsc --watch",
29
+ "format": "prettier nodes credentials --write",
30
+ "lint": "eslint nodes credentials package.json",
31
+ "lintfix": "eslint nodes credentials package.json --fix",
32
+ "prepublishOnly": "pnpm build && pnpm lint -c .eslintrc.prepublish.js nodes credentials package.json",
33
+ "publish": "pnpm publish --access public"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "n8n": {
39
+ "n8nNodesApiVersion": 1,
40
+ "credentials": [
41
+ "dist/credentials/BtcPayApi.credentials.js"
42
+ ],
43
+ "nodes": [
44
+ "dist/nodes/BtcPay/BtcPay.node.js",
45
+ "dist/nodes/BtcPay/BtcPayTrigger.node.js"
46
+ ]
47
+ },
48
+ "devDependencies": {
49
+ "@typescript-eslint/parser": "^7.15.0",
50
+ "eslint": "^8.56.0",
51
+ "eslint-plugin-n8n-nodes-base": "^1.16.1",
52
+ "gulp": "^4.0.2",
53
+ "n8n-workflow": "*",
54
+ "prettier": "^3.3.2",
55
+ "typescript": "^5.5.3"
56
+ },
57
+ "peerDependencies": {
58
+ "n8n-workflow": "*"
59
+ },
60
+ "dependencies": {
61
+ "@octokit/webhooks": "^13.4.3",
62
+ "@types/node": "^22.13.0"
63
+ }
64
+ }
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/compatibility/index.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/header.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/readable.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/file.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/fetch.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/formdata.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/connector.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/client.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/errors.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/global-origin.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool-stats.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/pool.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/handlers.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/balanced-pool.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/agent.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-interceptor.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-agent.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-client.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-pool.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/mock-errors.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-handler.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/retry-agent.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/api.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/interceptors.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/util.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cookies.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/patch.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/websocket.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/eventsource.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/filereader.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/content-type.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/cache.d.ts","../node_modules/.pnpm/undici-types@6.20.0/node_modules/undici-types/index.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/globals.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/assert.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/assert/strict.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/async_hooks.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/buffer.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/child_process.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/cluster.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/console.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/constants.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/crypto.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/dgram.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/dns.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/dns/promises.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/domain.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/dom-events.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/events.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/fs.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/fs/promises.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/http.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/http2.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/https.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/inspector.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/module.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/net.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/os.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/path.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/perf_hooks.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/process.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/punycode.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/querystring.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/readline.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/readline/promises.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/repl.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/sea.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/sqlite.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/stream.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/stream/promises.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/stream/consumers.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/stream/web.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/string_decoder.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/test.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/timers.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/timers/promises.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/tls.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/trace_events.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/tty.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/url.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/util.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/v8.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/vm.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/wasi.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/worker_threads.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/zlib.d.ts","../node_modules/.pnpm/@types+node@22.13.0/node_modules/@types/node/ts5.6/index.d.ts","../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/authentication.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/constants.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/deferredpromise.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/executionstatus.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/application.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/abstract/execution-base.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/expression.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/expression.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/workflow.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/workflow-activation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/workflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/workflowhooks.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/abstract/node.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/node-api.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/node-operation.error.d.ts","../node_modules/.pnpm/axios@1.6.7/node_modules/axios/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/interfaces.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/loggerproxy.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errorreporterproxy.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/types.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/namedtypes.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/kinds.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/builders.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/types.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/path.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/scope.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/node-path.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/visitor.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/main.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/options.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/parser.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/printer.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/main.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.2/node_modules/@n8n/tournament/dist/expressionsplitter.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.2/node_modules/@n8n/tournament/dist/expressionbuilder.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.2/node_modules/@n8n/tournament/dist/analysis.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.2/node_modules/@n8n/tournament/dist/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/expressionevaluatorproxy.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/nodehelpers.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/observableobject.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/telemetryhelpers.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/credential-access-error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/node-ssl.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/webhook-taken.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/workflow-deactivation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/subworkflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/cli-subworkflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/trigger-close.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/expression-extension.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/errors/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/cron.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/globalstate.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/messageeventbus.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/routingnode.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/workflowdataproxy.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/versionednodetype.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/typevalidation.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/utils.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/type-guards.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/extensions/extensions.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/extensions/expressionextension.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/extensions/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/extensions/expressionparser.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/nativemethods/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/nodeparameters/filterparameter.d.ts","../node_modules/.pnpm/n8n-workflow@1.48.0/node_modules/n8n-workflow/dist/index.d.ts","../credentials/btcpayapi.credentials.ts","../nodes/btcpay/genericfunctions.ts","../nodes/btcpay/btcpay.node.ts","../nodes/btcpay/btcpaytrigger.node.ts","../package.json"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true},{"version":"2d1319e6b5d0efd8c5eae07eb864a00102151e8b9afddd2d45db52e9aae002c4","affectsGlobalScope":true},"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true},"f550093acc8ad4f64ad1c7e96153615f3351b81919dae5473375b81e1e8f272c","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0",{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true},"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7",{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true},"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true},"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","eaf9ee1d90a35d56264f0bf39842282c58b9219e112ac7d0c1bce98c6c5da672","2ea254f944dfe131df1264d1fb96e4b1f7d110195b21f1f5dbb68fdd394e5518","5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6",{"version":"fcc4b974b1cf7eca347490f11143ab2f5bc3c449b2073eb4d9494f6a16651e75","affectsGlobalScope":true},"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0",{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true},{"version":"5f6f1d54779d0b9ed152b0516b0958cd34889764c1190434bbf18e7a8bb884cd","affectsGlobalScope":true},"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","1cbae62b67f180291d211f0e1045fb923a8ec800cfbf9caa13223d769013dae2","553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633",{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true},"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada",{"version":"92949391eab12082218333a61b9070996f404ad662ff488d48ebb09564963d2b","affectsGlobalScope":true},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true},"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4",{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true},{"version":"cb094bb347d7df3380299eb69836c2c8758626ecf45917577707c03cf816b6f4","affectsGlobalScope":true},"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a",{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true},"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","171fd8807643c46a9d17e843959abdf10480d57d60d38d061fb44a4c8d4a8cc4","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","d00d9369b2ee770658530f04dc09cd14deebdc6456816c5ecd5495911b1cae84","a69fe04ffcfb78fc4f9761397b97419f09629e3e7dc76f2980f85d03aeac39eb","8b9e20585ff8d1664c6cd14d4b02ccc46300a7cf30871fae19436a5babedd86d","3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","7e17bc482ade0e34ec7d328767bfd36b38acd50437af0da5b8fb0d2fbd2afb50","038a6396d4f8c66d6bacd7ab14f4b084c3ef1ea7fab5b7528d9832f9717fbcb1","054eafa956d5592e6a91c2553e5657ee3032ed50121a65da1079c96d82631459","14f2edd0618d9adaf83d22b55155ec41faddac678b4d158c8380e4325c8b36b6","d8a779627816583ed4fb309c04ae5559cf5c3929d9f4378085e1fe5de66f5b4a","aca223e907b2e6a5c7f94b506b260da1ac1aebd5b02bb52c1ad7867e04c7e8b1","c32c8968ae44372c2975dfb3f51876ba635a3598673118565f661a9efb8874e3","14e9055fab9d7252730a60f301fd64c0429ae6ac273df2e3424474836b44dbfc","4f39bb23970b0a1d9dcc0b6db6382c06cfd653c2e33fd5a1b83afb650912434f","d88eff4699ac491c3b470fe4ef7bd8eadefedb23d1ae7109da33e34f0538e321","64f353c0c41fd90d2ad429631442fcfbb51d97b77e3e3f3855f9ca6f0f04c2d7","f64487e06875cfbe0cc854328920403df337dc6c1925070995653ac71c266c0e","f682d02a03249dfe41da5857a371c99269a2649b7540bb43426b357b35a2f8e7","6ed8cd0313f2a4c0d3080c0d324b31be20766f53639161bef0405e1c8a888152","84e41060dd913fc5466aa6a04c5ebec55e9d76ab1f5e3917c8492797d8679701","e78705f977ecfcc36de9ab57841ad7a617ef649b07a995577fd857f1d175f730","5083850590c7890ffb680f0c9838f48b07eb8b2f7dbe02874858fcac0691705d","02a4a2284d423d8ccc3a77aa9257c34fdac28cddfb46f73178e60f6a1b1b31e9","3ee8e014aab37dbd755401967fbb9602221550038f6b8da6cedd5291a918ae0a","826f3c6a6d737e0d330522094a21cde94a202c5373448240ba483709cb829aec","7e4a23f6f3763da4a06900935d22acfd463c375cada5ab325e3980bd6c95d5b3","f3e045e81b47113fa02aaf9637b9ef84347610aaceda60a0d8316aabc3f03638","1bfe6db4f3dffacd1da82748cb8f0acec04e8a4d7bd36c09573d5d80a7dec28b","6a8d6deca8ec4250630fea4e5f23bd9bf0face98739ccd22e08a17173117155b","226dbfe4506447111bd898161d47850f8c57f04cbb6a3a6d487b7939dbf89b1b","13f846a45f738733c8a63a06eaa9f580e9c07eb7aed5d8a2c674114846a42175","9d14fcf0b69094271127c7b6acb36987be5d1bffa4eb948359549f040fb50349","e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","1b5d04b01ffda14ab49924c1c5601c1d29df55ea9bfd281d38082730bebf0295","d6220bee7bd245bc2a377f1a8ef31c496132cc9c7e7e3937e7dd4cbbcec0b38d","da4868424f5ea67d59e98705dab39055000d839a1250ac0cc80bda366c89fddc","420f415e6e5f2550395698e535147339d66fcc5848699e5308d35d90927f72d1","d0a633354f887cc3190bddeba688c8d24706052351151ac199d9c58038faaec4","edd5e20e9eb8cb2eaf941d431af3ab69a9b94e7f5d8699b4c938fee1be8d53c4","315438c7c6fb8645f6862af11b4dcfb7784ebff919056da1dfc3007ac8d5468d","5830ba1f5c81d641b214365ef519d2856f92a584f6cd90cb688edf63c2b84d25","37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","6a5a7df74a63e3c3e34c8d4eab2bc8bdc78e242331105e77a428daabcc8ee80a","0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","8131b8cb20786d5493b9d48f391c7579b9230ae1ce37a24482b50a753b1da428","0234584eaf3c5c21e7d3b79e1a9d71551e2a6fa5ca25bdc39c544f00e6e52b1e","304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","a42e1c2eec0e747163afa705044664a39065215a8d66c930f8d43f118a9bc044","b30813c7fd97c6a52dc0acfd2444cc06f5fb84fbcc7c19f102bc4443d5199372","8dc10d735f5eecccbfe84231f0ed47c6059593629311210f0d3c94a4f08dd23e","951baa882e6e3e5026cb8a16f80a8bebec1caa35c3fa016c9a3ce6a338bd3123","310ae04779dbcfebfac4872bf27cf636b24324d20dd28132d4d5757bbc8abb2b","0a3f7038afb4012783d87c03e9d53a27ce9bdb6487e70bde9a024a04430c672a","3f6f70c077ed8d600aa24d8c0e83ba0dd5d2c5300d524cd2181efd30c0a62c72","b773bcdaeda86c0f58910cecd6c77a0bd60be763127c42cad5a64fe66799b1f6","0ca63470234437191f454f7f66b5815d79b59ebc636faa1de1194d282563e431","6d3b514475ee51ab5e99e4fc82ffcd6191d40c19dd197a1743111e0757c6f9c6","0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","716c6fce977a188f23ee5165e4179944a63e8620784a7054fc0dd81f6c348bb4","b79ef2d2e4d26abd3c9bc4e72d4daa09feb0e6044c7872b587bf6b43d8a8838d","44474654278b37f50e1ff14dc992ffaa6b2530989d7a9853bdb66203a36e080c",{"version":"0fb56f39ae0340ef68d1f0b9bf8df5c9b0f2751c243a06a5ad2754cc14759e14","signature":"f868e28ac86c55dd1b3acd78f52f1e203764e128dc7381488b391c7ecf220e1a"},{"version":"411a7f93edf496fcec39af0e4b48e4ae46932081b4dd449f6f6c5cd176440f20","signature":"a0661f7fee5c074dbfe1251d9a6498a6e7646dd1e9c3a17b0e6c4a7429f07787"},{"version":"5c120cebc32cd570f4266c9dbf8c0aa51dab794f131941acf628b7755144ae3d","signature":"66ab74d68f487931cac8a9246a0393b90e4794c930521c39c773f88cfde814b8"},{"version":"0f53d673c07bdfed7bec929d957ff8291384f868511a574aafaff31d6f129641","signature":"90311963468f62b22e909fa124b67a7dcd37b4d076b74933feeeece3385fa193"},{"version":"1d8f33b75f3e4885d53e60c480caff92098692d0086ed014688f4ecb844f72db","signature":"6246ae80e4f1cf20fae540dfa4fe4b3fda6ea16812d872372a8f4a15d738fefc"}],"root":[[212,216]],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":6,"useUnknownInCatchVariables":false},"fileIdsList":[[51,93,211],[51,93,180],[51,93,178,179],[51,93],[51,93,180,181],[51,90,93],[51,92,93],[51,93,98,128],[51,93,94,99,105,106,113,125,136],[51,93,94,95,105,113],[46,47,48,51,93],[51,93,96,137],[51,93,97,98,106,114],[51,93,98,125,133],[51,93,99,101,105,113],[51,92,93,100],[51,93,101,102],[51,93,105],[51,93,103,105],[51,92,93,105],[51,93,105,106,107,125,136],[51,93,105,106,107,120,125,128],[51,88,93,141],[51,88,93,101,105,108,113,125,136,211],[51,93,105,106,108,109,113,125,133,136],[51,93,108,110,125,133,136],[51,93,105,111],[51,93,112,136],[51,93,101,105,113,125],[51,93,114],[51,93,115],[51,92,93,116],[51,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,211],[51,93,118],[51,93,119],[51,93,105,120,121],[51,93,120,122,137,139],[51,93,105,125,126,127,128],[51,93,125,127],[51,93,125,126],[51,93,128],[51,93,129],[51,90,93,125],[51,93,105,131,132],[51,93,131,132],[51,93,98,113,125,133],[51,93,134],[93],[49,50,51,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142],[51,93,113,135],[51,93,108,119,136],[51,93,98,137],[51,93,125,138],[51,93,112,139],[51,93,140],[51,93,98,105,107,116,125,136,139,141],[51,93,125,142],[51,93,165,166],[51,93,165],[51,93,164,166,168],[51,93,165,171,172],[51,93,164,168,169,170],[51,93,164,168,171,173],[51,93,164,168],[51,93,164,171],[51,93,164,165,167],[51,93,164,165,167,168,169,171,172,173],[51,93,108,125,143,211],[51,93,161],[51,93,149],[51,93,149,161],[51,93,150],[51,93,191],[51,93,150,161],[51,93,151],[51,93,149,150,151,154,155,157,158,159,187,188,189,190,191,192,193,194],[51,93,149,157,161],[51,93,157,158],[51,93,155],[51,93,154],[51,93,149,150,161],[51,93,153,161],[51,93,161,182],[51,93,205],[51,93,205,206],[51,93,108,145,146,147,148,152,153,156,161,162,163,183,184,185,186,195,196,197,198,199,200,201,202,203,204,207,208,209,210],[51,93,106,108,125,133,136,144,145,146,147,148,151,153,154,155,156,158,159,160,211],[51,93,152,161],[51,93,164],[51,93,175],[51,93,174,175,176,177],[51,60,64,93,136],[51,60,93,125,136],[51,55,93],[51,57,60,93,133,136],[51,93,113,133],[51,93,143],[51,55,93,143],[51,57,60,93,113,136],[51,52,53,56,59,93,105,125,136],[51,60,67,93],[51,52,58,93],[51,60,81,82,93],[51,56,60,93,128,136,143],[51,81,93,143],[51,54,55,93,143],[51,60,93],[51,54,55,56,57,58,59,60,61,62,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,82,83,84,85,86,87,93],[51,60,75,93],[51,60,67,68,93],[51,58,60,68,69,93],[51,59,93],[51,52,55,60,93],[51,60,64,68,69,93],[51,64,93],[51,58,60,63,93,136],[51,52,57,60,67,93],[51,93,125],[51,55,60,81,93,141,143],[51,93,211,213],[51,93,98,211,213]],"referencedMap":[[212,1],[181,2],[180,3],[179,4],[182,5],[90,6],[91,6],[92,7],[93,8],[94,9],[95,10],[46,4],[49,11],[47,4],[48,4],[96,12],[97,13],[98,14],[99,15],[100,16],[101,17],[102,17],[104,18],[103,19],[105,20],[106,21],[107,22],[89,23],[108,24],[109,25],[110,26],[111,27],[112,28],[113,29],[114,30],[115,31],[116,32],[117,33],[118,34],[119,35],[120,36],[121,36],[122,37],[123,4],[124,4],[125,38],[127,39],[126,40],[128,41],[129,42],[130,43],[131,44],[132,45],[133,46],[134,47],[51,48],[50,4],[143,49],[135,50],[136,51],[137,52],[138,53],[139,54],[140,55],[141,56],[142,57],[167,58],[166,59],[165,60],[173,61],[171,62],[172,63],[169,64],[170,65],[168,66],[174,67],[164,4],[160,4],[144,68],[145,4],[146,69],[196,4],[147,4],[163,70],[150,71],[157,72],[149,4],[192,73],[187,74],[194,75],[151,72],[195,76],[158,77],[159,78],[188,72],[191,79],[193,71],[189,80],[154,81],[190,80],[155,72],[148,4],[152,82],[183,83],[206,84],[208,4],[205,4],[207,85],[197,4],[211,86],[161,87],[162,69],[198,69],[209,84],[184,82],[210,69],[185,69],[199,82],[186,69],[204,69],[202,69],[203,69],[201,69],[153,88],[200,82],[156,69],[175,89],[176,90],[177,4],[178,91],[44,4],[45,4],[9,4],[8,4],[2,4],[10,4],[11,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[3,4],[18,4],[4,4],[19,4],[23,4],[20,4],[21,4],[22,4],[24,4],[25,4],[26,4],[5,4],[27,4],[28,4],[29,4],[30,4],[6,4],[34,4],[31,4],[32,4],[33,4],[35,4],[7,4],[36,4],[41,4],[42,4],[37,4],[38,4],[39,4],[40,4],[43,4],[1,4],[67,92],[77,93],[66,92],[87,94],[58,95],[57,96],[86,97],[80,98],[85,99],[60,100],[74,101],[59,102],[83,103],[55,104],[54,97],[84,105],[56,106],[61,107],[62,4],[65,107],[52,4],[88,108],[78,109],[69,110],[70,111],[72,112],[68,113],[71,114],[81,97],[63,115],[64,116],[73,117],[53,118],[76,109],[75,107],[79,4],[82,119],[214,120],[215,121],[213,1],[216,4]]},"version":"5.5.3"}
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@satoshiengineering/n8n-nodes-btcpay",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "description": "BtcPay integration for n8n",
6
+ "keywords": [
7
+ "n8n-community-node-package"
8
+ ],
9
+ "license": "MIT",
10
+ "homepage": "",
11
+ "author": {
12
+ "name": "Satoshi Engineering",
13
+ "email": "hello@satoshiengineering.com"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/Satoshi-Engineering/n8n-nodes-btcpay.git"
18
+ },
19
+ "engines": {
20
+ "node": ">=18.10",
21
+ "pnpm": ">=9.1"
22
+ },
23
+ "main": "index.js",
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "n8n": {
28
+ "n8nNodesApiVersion": 1,
29
+ "credentials": [
30
+ "dist/credentials/BtcPayApi.credentials.js"
31
+ ],
32
+ "nodes": [
33
+ "dist/nodes/BtcPay/BtcPay.node.js",
34
+ "dist/nodes/BtcPay/BtcPayTrigger.node.js"
35
+ ]
36
+ },
37
+ "devDependencies": {
38
+ "@typescript-eslint/parser": "^7.15.0",
39
+ "eslint": "^8.56.0",
40
+ "eslint-plugin-n8n-nodes-base": "^1.16.1",
41
+ "gulp": "^4.0.2",
42
+ "n8n-workflow": "*",
43
+ "prettier": "^3.3.2",
44
+ "typescript": "^5.5.3"
45
+ },
46
+ "peerDependencies": {
47
+ "n8n-workflow": "*"
48
+ },
49
+ "dependencies": {
50
+ "@octokit/webhooks": "^13.4.3",
51
+ "@types/node": "^22.13.0"
52
+ },
53
+ "scripts": {
54
+ "preinstall": "npx only-allow pnpm",
55
+ "build": "tsc && gulp build:icons",
56
+ "dev": "tsc --watch",
57
+ "format": "prettier nodes credentials --write",
58
+ "lint": "eslint nodes credentials package.json",
59
+ "lintfix": "eslint nodes credentials package.json --fix"
60
+ }
61
+ }