n8n-nodes-pinch 0.1.2
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 +19 -0
- package/README.md +53 -0
- package/dist/credentials/PinchApi.credentials.d.ts +16 -0
- package/dist/credentials/PinchApi.credentials.js +92 -0
- package/dist/credentials/PinchApi.credentials.js.map +1 -0
- package/dist/nodes/Pinch/Pinch.node.d.ts +5 -0
- package/dist/nodes/Pinch/Pinch.node.js +112 -0
- package/dist/nodes/Pinch/Pinch.node.js.map +1 -0
- package/dist/nodes/Pinch/PinchTrigger.node.d.ts +12 -0
- package/dist/nodes/Pinch/PinchTrigger.node.js +217 -0
- package/dist/nodes/Pinch/PinchTrigger.node.js.map +1 -0
- package/dist/nodes/Pinch/descriptions/PayerDescription.d.ts +3 -0
- package/dist/nodes/Pinch/descriptions/PayerDescription.js +42 -0
- package/dist/nodes/Pinch/descriptions/PayerDescription.js.map +1 -0
- package/dist/nodes/Pinch/descriptions/PaymentDescription.d.ts +3 -0
- package/dist/nodes/Pinch/descriptions/PaymentDescription.js +62 -0
- package/dist/nodes/Pinch/descriptions/PaymentDescription.js.map +1 -0
- package/dist/nodes/Pinch/descriptions/TokenDescription.d.ts +3 -0
- package/dist/nodes/Pinch/descriptions/TokenDescription.js +171 -0
- package/dist/nodes/Pinch/descriptions/TokenDescription.js.map +1 -0
- package/dist/nodes/Pinch/descriptions/index.d.ts +3 -0
- package/dist/nodes/Pinch/descriptions/index.js +20 -0
- package/dist/nodes/Pinch/descriptions/index.js.map +1 -0
- package/dist/nodes/Pinch/helpers.d.ts +2 -0
- package/dist/nodes/Pinch/helpers.js +26 -0
- package/dist/nodes/Pinch/helpers.js.map +1 -0
- package/dist/nodes/Pinch/pinchNode.svg +30 -0
- package/dist/package.json +53 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.js +0 -0
- package/package.json +53 -0
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,53 @@
|
|
|
1
|
+
# n8n-nodes-pinch
|
|
2
|
+
|
|
3
|
+
This is an n8n community node. It lets you use Pinch Payments in your n8n workflows.
|
|
4
|
+
|
|
5
|
+
Pinch Payments is a PCI Compliant, Australian payments platform offering automated bank account, direct debit, and credit card payments for standard and repeating payments through a REST API Gateway.
|
|
6
|
+
|
|
7
|
+
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
|
|
8
|
+
|
|
9
|
+
[Installation](#installation)
|
|
10
|
+
[Operations](#operations)
|
|
11
|
+
[Credentials](#credentials) <!-- delete if no auth needed -->
|
|
12
|
+
[Compatibility](#compatibility)
|
|
13
|
+
[Usage](#usage) <!-- delete if not using this section -->
|
|
14
|
+
[Resources](#resources)
|
|
15
|
+
[Version history](#version-history) <!-- delete if not using this section -->
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
|
|
20
|
+
|
|
21
|
+
Use the package at `n8n-nodes-pinch`.
|
|
22
|
+
|
|
23
|
+
## Operations
|
|
24
|
+
|
|
25
|
+
_None yet but the credentials can be used to make Rest API calls_
|
|
26
|
+
|
|
27
|
+
## Credentials
|
|
28
|
+
|
|
29
|
+
* Add credential in your n8n instance and select **Pinch API**
|
|
30
|
+
* Register for a [Pinch Developer Account](https://auth.getpinch.com.au/Register)
|
|
31
|
+
* Navigate to the API Keys page
|
|
32
|
+
* Create an Application
|
|
33
|
+
* Copy Application Id and Secret Key then paste them into n8n credential
|
|
34
|
+
* Click Save (this will test the credentials)
|
|
35
|
+
* Account connected
|
|
36
|
+
|
|
37
|
+
## Compatibility
|
|
38
|
+
|
|
39
|
+
Tested with v1.57.0 and up but may work in previous versions.
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
|
|
43
|
+
Add the Pinch Trigger node to set up webhook events with the Pinch API.
|
|
44
|
+
|
|
45
|
+
## Resources
|
|
46
|
+
|
|
47
|
+
* [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
|
|
48
|
+
* [Pinch API Docs](https://docs.getpinch.com.au)
|
|
49
|
+
* [Pinch Developer Pricing](https://getpinch.com.au/features/payments-api-for-developers#pricing)
|
|
50
|
+
|
|
51
|
+
## Version history
|
|
52
|
+
|
|
53
|
+
First release of the Pinch node with the webhook trigger node and the credentials.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialDataDecryptedObject, ICredentialTestRequest, ICredentialType, IHttpRequestHelper, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class PinchApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
httpRequestNode: {
|
|
6
|
+
name: string;
|
|
7
|
+
docsUrl: string;
|
|
8
|
+
apiBaseUrlPlaceholder: string;
|
|
9
|
+
};
|
|
10
|
+
properties: INodeProperties[];
|
|
11
|
+
preAuthentication(this: IHttpRequestHelper, credentials: ICredentialDataDecryptedObject): Promise<{
|
|
12
|
+
sessionToken: string;
|
|
13
|
+
}>;
|
|
14
|
+
authenticate: IAuthenticateGeneric;
|
|
15
|
+
test: ICredentialTestRequest;
|
|
16
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PinchApi = void 0;
|
|
4
|
+
class PinchApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'pinchApi';
|
|
7
|
+
this.displayName = 'Pinch API';
|
|
8
|
+
this.httpRequestNode = {
|
|
9
|
+
name: 'Pinch',
|
|
10
|
+
docsUrl: 'https://docs.getpinch.com.au/',
|
|
11
|
+
apiBaseUrlPlaceholder: 'https://api.getpinch.com.au/',
|
|
12
|
+
};
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Session Token',
|
|
16
|
+
name: 'sessionToken',
|
|
17
|
+
type: 'hidden',
|
|
18
|
+
typeOptions: {
|
|
19
|
+
expirable: true,
|
|
20
|
+
password: true,
|
|
21
|
+
},
|
|
22
|
+
default: '',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Application Id',
|
|
26
|
+
name: 'applicationId',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Secret',
|
|
32
|
+
name: 'secret',
|
|
33
|
+
type: 'string',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
password: true,
|
|
36
|
+
},
|
|
37
|
+
default: '',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Environment',
|
|
41
|
+
name: 'environment',
|
|
42
|
+
type: 'options',
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
name: 'Live',
|
|
46
|
+
value: 'live',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Test',
|
|
50
|
+
value: 'test',
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
default: 'live',
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
this.authenticate = {
|
|
57
|
+
type: 'generic',
|
|
58
|
+
properties: {
|
|
59
|
+
headers: {
|
|
60
|
+
Authorization: '=Bearer {{$credentials.sessionToken}}',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
this.test = {
|
|
65
|
+
request: {
|
|
66
|
+
baseURL: '=https://api.getpinch.com.au/{{$credentials.environment}}/health/auth',
|
|
67
|
+
url: '',
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
async preAuthentication(credentials) {
|
|
72
|
+
const authHeader = 'Basic ' + Buffer.from(credentials.applicationId + ':' + credentials.secret).toString('base64');
|
|
73
|
+
const body = {
|
|
74
|
+
grant_type: 'client_credentials',
|
|
75
|
+
scope: 'api1'
|
|
76
|
+
};
|
|
77
|
+
const { access_token } = (await this.helpers.httpRequest({
|
|
78
|
+
method: 'POST',
|
|
79
|
+
url: 'https://auth.getpinch.com.au/connect/token',
|
|
80
|
+
body: body,
|
|
81
|
+
json: false,
|
|
82
|
+
headers: {
|
|
83
|
+
'Authorization': authHeader,
|
|
84
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
|
85
|
+
},
|
|
86
|
+
}));
|
|
87
|
+
return { sessionToken: access_token };
|
|
88
|
+
}
|
|
89
|
+
;
|
|
90
|
+
}
|
|
91
|
+
exports.PinchApi = PinchApi;
|
|
92
|
+
//# sourceMappingURL=PinchApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinchApi.credentials.js","sourceRoot":"","sources":["../../credentials/PinchApi.credentials.ts"],"names":[],"mappings":";;;AASA,MAAa,QAAQ;IAArB;QACI,SAAI,GAAG,UAAU,CAAC;QAClB,gBAAW,GAAG,WAAW,CAAC;QAE1B,oBAAe,GAAG;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EAAE,+BAA+B;YACxC,qBAAqB,EAAE,8BAA8B;SACxD,CAAC;QAEF,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,SAAS,EAAE,IAAI;oBACf,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;aACd;YACD;gBACI,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACd;YACD;gBACI,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACT,QAAQ,EAAE,IAAI;iBACjB;gBACD,OAAO,EAAE,EAAE;aACd;YACD;gBACI,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBAChB;oBACD;wBACI,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;qBAChB;iBACJ;gBACD,OAAO,EAAE,MAAM;aAClB;SACJ,CAAC;QAqBF,iBAAY,GAAyB;YACjC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,aAAa,EAAE,uCAAuC;iBACzD;aACJ;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EAAE,uEAAuE;gBAChF,GAAG,EAAE,EAAE;aACV;SACJ,CAAC;IACN,CAAC;IAlCG,KAAK,CAAC,iBAAiB,CAA2B,WAA2C;QACzF,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnH,MAAM,IAAI,GAA2B;YACjC,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAE,MAAM;SAChB,CAAC;QACF,MAAM,EAAE,YAAY,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;YACrD,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,4CAA4C;YACjD,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,KAAK;YACX,OAAO,EAAE;gBACL,eAAe,EAAE,UAAU;gBAC3B,cAAc,EAAC,mCAAmC;aACrD;SACJ,CAAC,CAA6B,CAAC;QAChC,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;IAC1C,CAAC;IAAA,CAAC;CAiBL;AAxFD,4BAwFC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Pinch = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const descriptions_1 = require("./descriptions");
|
|
6
|
+
const helpers_1 = require("./helpers");
|
|
7
|
+
class Pinch {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.description = {
|
|
10
|
+
displayName: 'Pinch',
|
|
11
|
+
name: 'pinch',
|
|
12
|
+
icon: 'file:pinchNode.svg',
|
|
13
|
+
group: [],
|
|
14
|
+
version: 1,
|
|
15
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
16
|
+
description: 'Node for interacting with the Pinch Payments API',
|
|
17
|
+
documentationUrl: 'https://docs.getpinch.com.au/',
|
|
18
|
+
defaults: {
|
|
19
|
+
name: 'Pinch',
|
|
20
|
+
},
|
|
21
|
+
inputs: ['main'],
|
|
22
|
+
outputs: ['main'],
|
|
23
|
+
credentials: [
|
|
24
|
+
{
|
|
25
|
+
name: 'pinchApi',
|
|
26
|
+
required: true,
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Resource',
|
|
32
|
+
name: 'resource',
|
|
33
|
+
type: 'options',
|
|
34
|
+
noDataExpression: true,
|
|
35
|
+
options: [
|
|
36
|
+
{
|
|
37
|
+
name: 'Payer',
|
|
38
|
+
value: 'payer',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'Payment',
|
|
42
|
+
value: 'payment',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
default: 'payer',
|
|
46
|
+
},
|
|
47
|
+
...descriptions_1.payerOperations,
|
|
48
|
+
...descriptions_1.payerFields,
|
|
49
|
+
...descriptions_1.paymentOperations,
|
|
50
|
+
...descriptions_1.paymentFields
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
async execute() {
|
|
55
|
+
const items = this.getInputData();
|
|
56
|
+
const resource = this.getNodeParameter('resource', 0);
|
|
57
|
+
const operation = this.getNodeParameter('operation', 0);
|
|
58
|
+
let responseData;
|
|
59
|
+
const returnData = [];
|
|
60
|
+
for (let i = 0; i < items.length; i++) {
|
|
61
|
+
try {
|
|
62
|
+
if (resource === 'payer') {
|
|
63
|
+
if (operation === 'get') {
|
|
64
|
+
const payerId = this.getNodeParameter('payerId', i);
|
|
65
|
+
responseData = await helpers_1.pinchApiRequest.call(this, 'GET', `/payers/${payerId}`, {}, {});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else if (resource === 'payment') {
|
|
69
|
+
if (operation === 'get') {
|
|
70
|
+
const paymentId = this.getNodeParameter('paymentId', i);
|
|
71
|
+
responseData = await helpers_1.pinchApiRequest.call(this, 'GET', `/payments/${paymentId}`, {}, {});
|
|
72
|
+
}
|
|
73
|
+
else if (operation === 'for-payer') {
|
|
74
|
+
const payerId = this.getNodeParameter('payerId', i);
|
|
75
|
+
responseData = await helpers_1.pinchApiRequest.call(this, 'GET', `/payments/payer/${payerId}`, {}, {});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
else if (resource === 'source') {
|
|
79
|
+
}
|
|
80
|
+
else if (resource === 'token') {
|
|
81
|
+
if (operation === 'create') {
|
|
82
|
+
const type = this.getNodeParameter('type', i);
|
|
83
|
+
const body = {};
|
|
84
|
+
if (type !== 'cardToken') {
|
|
85
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Only card token creation implemented.', { itemIndex: i });
|
|
86
|
+
}
|
|
87
|
+
body.card = {
|
|
88
|
+
number: this.getNodeParameter('number', i),
|
|
89
|
+
exp_month: this.getNodeParameter('expirationMonth', i),
|
|
90
|
+
exp_year: this.getNodeParameter('expirationYear', i),
|
|
91
|
+
cvc: this.getNodeParameter('cvc', i),
|
|
92
|
+
};
|
|
93
|
+
responseData = await helpers_1.pinchApiRequest.call(this, 'POST', '/tokens', body, {});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch (error) {
|
|
98
|
+
if (this.continueOnFail(error)) {
|
|
99
|
+
const executionErrorData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray({ error: error.message }), { itemData: { item: i } });
|
|
100
|
+
returnData.push(...executionErrorData);
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
throw error;
|
|
104
|
+
}
|
|
105
|
+
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData: { item: i } });
|
|
106
|
+
returnData.push(...executionData);
|
|
107
|
+
}
|
|
108
|
+
return [returnData];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.Pinch = Pinch;
|
|
112
|
+
//# sourceMappingURL=Pinch.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pinch.node.js","sourceRoot":"","sources":["../../../nodes/Pinch/Pinch.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAEtB,iDAOwB;AAExB,uCAA4C;AAE5C,MAAa,KAAK;IAAlB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,kDAAkD;YAC/D,gBAAgB,EAAE,+BAA+B;YACjD,QAAQ,EAAE;gBACT,IAAI,EAAE,OAAO;aACb;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAC;gBACX;oBACC,IAAI,EAAE,UAAU;oBAChB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBAKR;4BACC,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;yBACd;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;qBAiBD;oBACD,OAAO,EAAE,OAAO;iBAChB;gBAGD,GAAG,8BAAe;gBAClB,GAAG,0BAAW;gBACd,GAAG,gCAAiB;gBACpB,GAAG,4BAAa;aAChB;SACD,CAAC;IAgLH,CAAC;IA1KA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAElC,MAAM,QAAQ,GAAG,IA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E,CACzB,CAAC;oBACF,UAAU,CAAC,IAAI,CAAC,GAAG,kBAAkB,CAAC,CAAC;oBACvC,SAAS;gBACV,CAAC;gBAED,MAAM,KAAK,CAAC;YACb,CAAC;YAED,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC5D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAA6B,CAAC,EAC3D,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CACzB,CAAC;YAEF,UAAU,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC;QACnC,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAlPD,sBAkPC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IHookFunctions, IWebhookFunctions, INodeType, INodeTypeDescription, IWebhookResponseData } from 'n8n-workflow';
|
|
2
|
+
export declare class PinchTrigger implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
webhookMethods: {
|
|
5
|
+
default: {
|
|
6
|
+
checkExists(this: IHookFunctions): Promise<boolean>;
|
|
7
|
+
create(this: IHookFunctions): Promise<boolean>;
|
|
8
|
+
delete(this: IHookFunctions): Promise<boolean>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
webhook(this: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PinchTrigger = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const helpers_1 = require("./helpers");
|
|
6
|
+
class PinchTrigger {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: 'Pinch Trigger',
|
|
10
|
+
name: 'pinchTrigger',
|
|
11
|
+
icon: 'file:pinchNode.svg',
|
|
12
|
+
group: ['trigger'],
|
|
13
|
+
version: 1,
|
|
14
|
+
description: 'Handle Pinch events via webhooks',
|
|
15
|
+
documentationUrl: 'https://docs.getpinch.com.au/docs/events',
|
|
16
|
+
defaults: {
|
|
17
|
+
name: 'Pinch Trigger',
|
|
18
|
+
},
|
|
19
|
+
inputs: [],
|
|
20
|
+
outputs: ['main'],
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'pinchApi',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
webhooks: [
|
|
28
|
+
{
|
|
29
|
+
name: 'default',
|
|
30
|
+
httpMethod: 'POST',
|
|
31
|
+
responseMode: 'onReceived',
|
|
32
|
+
path: 'webhook',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
properties: [
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Events',
|
|
38
|
+
name: 'events',
|
|
39
|
+
type: 'multiOptions',
|
|
40
|
+
required: true,
|
|
41
|
+
default: [],
|
|
42
|
+
description: 'The event(s) to listen to',
|
|
43
|
+
options: [
|
|
44
|
+
{
|
|
45
|
+
name: 'All',
|
|
46
|
+
value: 'all',
|
|
47
|
+
description: 'Any time any type of event is triggered',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'Payer Created',
|
|
51
|
+
value: 'payer-created',
|
|
52
|
+
description: 'Occurs whenever a new Payer record is created',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Payer Updated',
|
|
56
|
+
value: 'payer-updated',
|
|
57
|
+
description: 'Occurs whenever a Payer record is updated',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Subscription Cancelled',
|
|
61
|
+
value: 'subscription-cancelled',
|
|
62
|
+
description: 'Occurs whenever a Subscription is cancelled',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Subscription Created',
|
|
66
|
+
value: 'subscription-created',
|
|
67
|
+
description: 'Occurs whenever a Subscription is created for a Payer',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Subscription Complete',
|
|
71
|
+
value: 'subscription-complete',
|
|
72
|
+
description: 'Occurs whenever a Subscription is run to completion',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'Bank Results',
|
|
76
|
+
value: 'bank-results',
|
|
77
|
+
description: 'Occurs whenever a bank account transaction return (as these take time to process) and could result in a dishonour status',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Scheduled Process',
|
|
81
|
+
value: 'scheduled-process',
|
|
82
|
+
description: 'Occurs whenever scheduled Payments are processed (daily on business days)',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'Transfer',
|
|
86
|
+
value: 'transfer',
|
|
87
|
+
description: 'Occurs whenever a transfer is created to settle funds to a Merchant',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Realtime Payment',
|
|
91
|
+
value: 'realtime-payment',
|
|
92
|
+
description: 'Occurs whenever a realtime payment is executed',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'Payment Created',
|
|
96
|
+
value: 'payment-created',
|
|
97
|
+
description: 'Occurs whenever a Payment is created in Pinch. This could be done through the Save Payment endpoint or when a Subscription creates its payments.',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Refund Created',
|
|
101
|
+
value: 'refund-created',
|
|
102
|
+
description: 'Occurs whenever a Refund is created',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'Refund Updated',
|
|
106
|
+
value: 'refund-updated',
|
|
107
|
+
description: 'Occurs whenever a Refund is updated (such as when the refund status gets updated through its processing)',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Compliance Updated',
|
|
111
|
+
value: 'compliance-updated',
|
|
112
|
+
description: 'Occurs whenever a Merchant record is updated that will result in a compliance check (such as updating a Merchants bank account or when a Merchant uploads a document for verification)',
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: 'Dispute Created',
|
|
116
|
+
value: 'dispute-created',
|
|
117
|
+
description: 'Occurs whenever a Dispute is created',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'Dispute Updated',
|
|
121
|
+
value: 'dispute-updated',
|
|
122
|
+
description: 'Occurs whenever a Dispute is updated',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'Merchant Compliance Updated',
|
|
126
|
+
value: 'merchant-compliance-updated',
|
|
127
|
+
description: 'Occurs whenever a Merchants compliance information is updated by a compliance officer, typically this happens when a Merchants verification status changes',
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
this.webhookMethods = {
|
|
134
|
+
default: {
|
|
135
|
+
async checkExists() {
|
|
136
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
137
|
+
if (webhookData.webhookId === undefined) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
const endpoint = `/webhooks/${webhookData.webhookId}`;
|
|
141
|
+
try {
|
|
142
|
+
await helpers_1.pinchApiRequest.call(this, 'GET', endpoint, {});
|
|
143
|
+
}
|
|
144
|
+
catch (error) {
|
|
145
|
+
if (error.httpCode === '404' || error.message.includes('resource_missing')) {
|
|
146
|
+
delete webhookData.webhookId;
|
|
147
|
+
delete webhookData.webhookEvents;
|
|
148
|
+
delete webhookData.webhookSecret;
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
throw error;
|
|
152
|
+
}
|
|
153
|
+
return true;
|
|
154
|
+
},
|
|
155
|
+
async create() {
|
|
156
|
+
const webhookUrl = this.getNodeWebhookUrl('default');
|
|
157
|
+
const events = this.getNodeParameter('events', []);
|
|
158
|
+
const endpoint = '/webhooks';
|
|
159
|
+
const body = {
|
|
160
|
+
uri: webhookUrl,
|
|
161
|
+
webhookFormat: 'camel-case'
|
|
162
|
+
};
|
|
163
|
+
let responseData;
|
|
164
|
+
try {
|
|
165
|
+
responseData = await helpers_1.pinchApiRequest.call(this, 'POST', endpoint, body);
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
if (responseData.id === undefined ||
|
|
171
|
+
responseData.secret === undefined ||
|
|
172
|
+
responseData.uri === undefined) {
|
|
173
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), responseData, {
|
|
174
|
+
message: 'Pinch webhook creation response did not contain the expected data.',
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
178
|
+
webhookData.webhookId = responseData.id;
|
|
179
|
+
webhookData.webhookEvents = events;
|
|
180
|
+
webhookData.webhookSecret = responseData.secret;
|
|
181
|
+
return true;
|
|
182
|
+
},
|
|
183
|
+
async delete() {
|
|
184
|
+
const webhookData = this.getWorkflowStaticData('node');
|
|
185
|
+
if (webhookData.webhookId !== undefined) {
|
|
186
|
+
const endpoint = `/webhooks/${webhookData.webhookId}`;
|
|
187
|
+
const body = {};
|
|
188
|
+
try {
|
|
189
|
+
await helpers_1.pinchApiRequest.call(this, 'DELETE', endpoint, body);
|
|
190
|
+
}
|
|
191
|
+
catch (error) {
|
|
192
|
+
return false;
|
|
193
|
+
}
|
|
194
|
+
delete webhookData.webhookId;
|
|
195
|
+
delete webhookData.webhookEvents;
|
|
196
|
+
delete webhookData.webhookSecret;
|
|
197
|
+
}
|
|
198
|
+
return true;
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
async webhook() {
|
|
204
|
+
const bodyData = this.getBodyData();
|
|
205
|
+
const req = this.getRequestObject();
|
|
206
|
+
const events = this.getNodeParameter('events', []);
|
|
207
|
+
const eventType = bodyData.type;
|
|
208
|
+
if (eventType === undefined || (!events.includes('all') && !events.includes(eventType))) {
|
|
209
|
+
return {};
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
workflowData: [this.helpers.returnJsonArray(req.body)],
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
exports.PinchTrigger = PinchTrigger;
|
|
217
|
+
//# sourceMappingURL=PinchTrigger.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PinchTrigger.node.js","sourceRoot":"","sources":["../../../nodes/Pinch/PinchTrigger.node.ts"],"names":[],"mappings":";;;AASA,+CAA4C;AAE5C,uCAA4C;AAE5C,MAAa,YAAY;IAAzB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,oBAAoB;YAC1B,KAAK,EAAE,CAAC,SAAS,CAAC;YAClB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,kCAAkC;YAC/C,gBAAgB,EAAE,0CAA0C;YAC5D,QAAQ,EAAE;gBACT,IAAI,EAAE,eAAe;aACrB;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,UAAU;oBAChB,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,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,2BAA2B;oBAExC,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,KAAK;4BACX,KAAK,EAAE,KAAK;4BACZ,WAAW,EAAE,yCAAyC;yBACtD;wBACD;4BACC,IAAI,EAAE,eAAe;4BACrB,KAAK,EAAE,eAAe;4BACtB,WAAW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AAC;wBAC5D,CAAC;wBAAC,OAAO,KAAK,EAAE,CAAC;4BAChB,OAAO,KAAK,CAAC;wBACd,CAAC;wBAID,OAAO,WAAW,CAAC,SAAS,CAAC;wBAC7B,OAAO,WAAW,CAAC,aAAa,CAAC;wBACjC,OAAO,WAAW,CAAC,aAAa,CAAC;oBAClC,CAAC;oBAED,OAAO,IAAI,CAAC;gBACb,CAAC;aACD;SACD,CAAC;IAoBH,CAAC;IAlBA,KAAK,CAAC,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QACpC,MAAM,GAAG,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAEpC,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,EAAE,CAAa,CAAC;QAE/D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAA0B,CAAC;QAEtD,IAAI,SAAS,KAAK,SAAS,IAAI,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;YAGzF,OAAO,EAAE,CAAC;QACX,CAAC;QAED,OAAO;YACN,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,IAAmB,CAAC,CAAC;SACrE,CAAC;IACH,CAAC;CACD;AApPD,oCAoPC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.payerFields = exports.payerOperations = void 0;
|
|
4
|
+
exports.payerOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
default: 'get',
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Get',
|
|
14
|
+
value: 'get',
|
|
15
|
+
description: 'Get a payer',
|
|
16
|
+
action: 'Get a payer',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
displayOptions: {
|
|
20
|
+
show: {
|
|
21
|
+
resource: ['payer'],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.payerFields = [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Payer ID',
|
|
29
|
+
name: 'payerId',
|
|
30
|
+
type: 'string',
|
|
31
|
+
required: true,
|
|
32
|
+
default: '',
|
|
33
|
+
description: 'ID of the payer to retrieve (string identifier starting with pyr_)',
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
resource: ['payer'],
|
|
37
|
+
operation: ['get'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
];
|
|
42
|
+
//# sourceMappingURL=PayerDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PayerDescription.js","sourceRoot":"","sources":["../../../../nodes/Pinch/descriptions/PayerDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YAOR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,aAAa;gBAC1B,MAAM,EAAE,aAAa;aACrB;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;KACD;CACD,CAAC;AAEW,QAAA,WAAW,GAAsB;IAI7C;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oEAAoE;QACjF,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paymentFields = exports.paymentOperations = void 0;
|
|
4
|
+
exports.paymentOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
default: 'get',
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Get',
|
|
14
|
+
value: 'get',
|
|
15
|
+
description: 'Get a payment',
|
|
16
|
+
action: 'Get a payment',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'For Payer',
|
|
20
|
+
value: 'for-payer',
|
|
21
|
+
description: 'Get Payments for Payer',
|
|
22
|
+
action: 'Get payments for payer',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['payment'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
exports.paymentFields = [
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Payment ID',
|
|
35
|
+
name: 'paymentId',
|
|
36
|
+
type: 'string',
|
|
37
|
+
required: true,
|
|
38
|
+
default: '',
|
|
39
|
+
description: 'ID of the payment to retrieve (string identifier starting with pmt_)',
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['payment'],
|
|
43
|
+
operation: ['get'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'Payer ID',
|
|
49
|
+
name: 'payerId',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: '',
|
|
53
|
+
description: 'ID of the payer to retrieve payment for (string identifier starting with pyr_)',
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
resource: ['payment'],
|
|
57
|
+
operation: ['for-payer'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
//# sourceMappingURL=PaymentDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentDescription.js","sourceRoot":"","sources":["../../../../nodes/Pinch/descriptions/PaymentDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,eAAe;gBAC5B,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,wBAAwB;gBACrC,MAAM,EAAE,wBAAwB;aAChC;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;KACD;CACD,CAAC;AAEW,QAAA,aAAa,GAAsB;IAI/C;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,sEAAsE;QACnF,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;KACD;IAID;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gFAAgF;QAC7F,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,WAAW,CAAC;aACxB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tokenFields = exports.tokenOperations = void 0;
|
|
4
|
+
exports.tokenOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
default: 'create',
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Create',
|
|
14
|
+
value: 'create',
|
|
15
|
+
description: 'Create a token',
|
|
16
|
+
action: 'Create a token',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
displayOptions: {
|
|
20
|
+
show: {
|
|
21
|
+
resource: ['token'],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.tokenFields = [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Type',
|
|
29
|
+
name: 'sourceType',
|
|
30
|
+
type: 'options',
|
|
31
|
+
required: true,
|
|
32
|
+
default: 'credit-card',
|
|
33
|
+
description: 'Type of token to create',
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Credit Card',
|
|
37
|
+
value: 'credit-card',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'Bank Account',
|
|
41
|
+
value: 'bank-account',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
resource: ['token'],
|
|
47
|
+
operation: ['create'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Card Number',
|
|
53
|
+
name: 'cardNumber',
|
|
54
|
+
type: 'string',
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['token'],
|
|
58
|
+
operation: ['create'],
|
|
59
|
+
sourceType: ['credit-card'],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
placeholder: '4242424242424242',
|
|
63
|
+
default: '',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'CVC',
|
|
67
|
+
name: 'cvc',
|
|
68
|
+
type: 'string',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
resource: ['token'],
|
|
72
|
+
operation: ['create'],
|
|
73
|
+
sourceType: ['credit-card'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
default: '',
|
|
77
|
+
placeholder: '123',
|
|
78
|
+
description: 'Security code printed on the back of the card',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Expiration Month',
|
|
82
|
+
description: 'Number of the month when the card will expire',
|
|
83
|
+
name: 'expiryMonth',
|
|
84
|
+
type: 'string',
|
|
85
|
+
displayOptions: {
|
|
86
|
+
show: {
|
|
87
|
+
resource: ['token'],
|
|
88
|
+
operation: ['create'],
|
|
89
|
+
sourceType: ['credit-card'],
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
default: '',
|
|
93
|
+
placeholder: '01',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
displayName: 'Expiration Year',
|
|
97
|
+
description: 'Year when the card will expire',
|
|
98
|
+
name: 'expiryYear',
|
|
99
|
+
type: 'string',
|
|
100
|
+
displayOptions: {
|
|
101
|
+
show: {
|
|
102
|
+
resource: ['token'],
|
|
103
|
+
operation: ['create'],
|
|
104
|
+
sourceType: ['credit-card'],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
default: '',
|
|
108
|
+
placeholder: '2024',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Expiration Month',
|
|
112
|
+
description: 'Number of the month when the card will expire',
|
|
113
|
+
name: 'expirationMonth',
|
|
114
|
+
type: 'string',
|
|
115
|
+
displayOptions: {
|
|
116
|
+
show: {
|
|
117
|
+
resource: ['token'],
|
|
118
|
+
operation: ['create'],
|
|
119
|
+
sourceType: ['credit-card'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
default: '',
|
|
123
|
+
placeholder: '01',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Account Name',
|
|
127
|
+
description: 'The name of the bank account',
|
|
128
|
+
name: 'bankAccountName',
|
|
129
|
+
type: 'string',
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: ['token'],
|
|
133
|
+
operation: ['create'],
|
|
134
|
+
sourceType: ['bank-account'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
default: '',
|
|
138
|
+
placeholder: '123123',
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Routing Number',
|
|
142
|
+
description: 'The routing number of the bank account (BSB)',
|
|
143
|
+
name: 'bankAccountRouting',
|
|
144
|
+
type: 'string',
|
|
145
|
+
displayOptions: {
|
|
146
|
+
show: {
|
|
147
|
+
resource: ['token'],
|
|
148
|
+
operation: ['create'],
|
|
149
|
+
sourceType: ['bank-account'],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
default: '',
|
|
153
|
+
placeholder: '123123',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Account Number',
|
|
157
|
+
description: 'The account number of the bank account',
|
|
158
|
+
name: 'bankAccountNumber',
|
|
159
|
+
type: 'string',
|
|
160
|
+
displayOptions: {
|
|
161
|
+
show: {
|
|
162
|
+
resource: ['token'],
|
|
163
|
+
operation: ['create'],
|
|
164
|
+
sourceType: ['bank-account'],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
default: '',
|
|
168
|
+
placeholder: '123456789',
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
//# sourceMappingURL=TokenDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenDescription.js","sourceRoot":"","sources":["../../../../nodes/Pinch/descriptions/TokenDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,QAAQ;QACjB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACxB;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;aACnB;SACD;KACD;CACD,CAAC;AAEW,QAAA,WAAW,GAAsB;IAI7C;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;aACpB;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,cAAc;aACrB;SACD;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;KACD;IAED;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IA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xB;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PayerDescription"), exports);
|
|
18
|
+
__exportStar(require("./PaymentDescription"), exports);
|
|
19
|
+
__exportStar(require("./TokenDescription"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Pinch/descriptions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { IExecuteFunctions, IHookFunctions, IDataObject, ILoadOptionsFunctions, IHttpRequestMethods } from 'n8n-workflow';
|
|
2
|
+
export declare function pinchApiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, body: IDataObject, query?: IDataObject, headers?: IDataObject): Promise<any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pinchApiRequest = pinchApiRequest;
|
|
4
|
+
async function pinchApiRequest(method, endpoint, body, query, headers) {
|
|
5
|
+
const credentials = await this.getCredentials('pinchApi');
|
|
6
|
+
const options = {
|
|
7
|
+
method,
|
|
8
|
+
body: body,
|
|
9
|
+
qs: query,
|
|
10
|
+
uri: `https://api.getpinch.com.au/${credentials.environment}/${endpoint}`,
|
|
11
|
+
json: true,
|
|
12
|
+
headers: headers,
|
|
13
|
+
};
|
|
14
|
+
if (options.qs && Object.keys(options.qs).length === 0) {
|
|
15
|
+
delete options.qs;
|
|
16
|
+
}
|
|
17
|
+
if (!options.headers) {
|
|
18
|
+
options.headers = {};
|
|
19
|
+
}
|
|
20
|
+
options.headers['pinch-version'] = "2020.1";
|
|
21
|
+
if (!options.headers['Content-Type']) {
|
|
22
|
+
options.headers['Content-Type'] = 'application/json';
|
|
23
|
+
}
|
|
24
|
+
return await this.helpers.requestWithAuthentication.call(this, 'pinchApi', options);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../nodes/Pinch/helpers.ts"],"names":[],"mappings":";;AAaA,0CAoCC;AApCM,KAAK,UAAU,eAAe,CAEpC,MAA2B,EAC3B,QAAgB,EAChB,IAAiB,EACjB,KAAmB,EACnB,OAAqB;IAErB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IAE1D,MAAM,OAAO,GAAG;QACf,MAAM;QACN,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,KAAK;QAET,GAAG,EAAE,+BAA+B,WAAW,CAAC,WAAW,IAAI,QAAQ,EAAE;QACzE,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,OAAO;KACU,CAAC;IAE5B,IAAI,OAAO,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxD,OAAO,OAAO,CAAC,EAAE,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;IACtB,CAAC;IAGD,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;IAE5C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;QACtC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;IACtD,CAAC;IAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 27.8.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 392 392" style="enable-background:new 0 0 392 392;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{clip-path:url(#SVGID_00000096749877073896017540000015702826083530382228_);fill:#311B92;}
|
|
7
|
+
|
|
8
|
+
.st1{clip-path:url(#SVGID_00000096749877073896017540000015702826083530382228_);fill-rule:evenodd;clip-rule:evenodd;fill:#FF5263;}
|
|
9
|
+
|
|
10
|
+
.st2{clip-path:url(#SVGID_00000096749877073896017540000015702826083530382228_);fill-rule:evenodd;clip-rule:evenodd;fill:#FF8790;}
|
|
11
|
+
</style>
|
|
12
|
+
<g>
|
|
13
|
+
<defs>
|
|
14
|
+
<circle id="SVGID_1_" cx="196" cy="196" r="196"/>
|
|
15
|
+
</defs>
|
|
16
|
+
<clipPath id="SVGID_00000140693842276589504730000000870118430367067532_">
|
|
17
|
+
<use xlink:href="#SVGID_1_" style="overflow:visible;"/>
|
|
18
|
+
</clipPath>
|
|
19
|
+
|
|
20
|
+
<rect x="-54" y="-54" style="clip-path:url(#SVGID_00000140693842276589504730000000870118430367067532_);fill:#311B92;" width="500" height="500"/>
|
|
21
|
+
|
|
22
|
+
<path style="clip-path:url(#SVGID_00000140693842276589504730000000870118430367067532_);fill-rule:evenodd;clip-rule:evenodd;fill:#FF5263;" d="
|
|
23
|
+
M196,321c69,0,125-56,125-125c0-22.8-6.1-44.1-16.7-62.5c-21.6,37.3-62,62.5-108.2,62.5c1.8-45.9,28.4-85.5,66.7-105.7
|
|
24
|
+
C243.5,78.1,220.6,71,196,71c-69,0-125,56-125,125S127,321,196,321z"/>
|
|
25
|
+
|
|
26
|
+
<path style="clip-path:url(#SVGID_00000140693842276589504730000000870118430367067532_);fill-rule:evenodd;clip-rule:evenodd;fill:#FF8790;" d="
|
|
27
|
+
M87.7,133.5C109.3,96.1,149.7,71,196,71c24.6,0,47.5,7.1,66.8,19.3c-38.3,20.2-64.9,59.8-66.7,105.7c46.2,0,86.6-25.2,108.2-62.5
|
|
28
|
+
l0,0c-21.6,37.4-62,62.5-108.3,62.5S109.3,170.9,87.7,133.5z"/>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-pinch",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "n8n nodes for interacting with the Pinch Payments API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://docs.getpinch.com.au",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Damian Karzon",
|
|
12
|
+
"email": "damian@getpinch.com.au"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/PinchPayments/n8n-nodes-pinch.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "index.js",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc && gulp build:icons",
|
|
21
|
+
"dev": "tsc --watch",
|
|
22
|
+
"format": "prettier nodes credentials --write",
|
|
23
|
+
"lint": "eslint nodes credentials package.json",
|
|
24
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
25
|
+
"prepublishOnly": "npm run build && eslint -c .eslintrc.prepublish.js nodes credentials package.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"n8n": {
|
|
31
|
+
"n8nNodesApiVersion": 1,
|
|
32
|
+
"credentials": [
|
|
33
|
+
"dist/credentials/PinchApi.credentials.js"
|
|
34
|
+
],
|
|
35
|
+
"nodes": [
|
|
36
|
+
"dist/nodes/Pinch/Pinch.node.js",
|
|
37
|
+
"dist/nodes/Pinch/PinchTrigger.node.js"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^22.5.2",
|
|
42
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
43
|
+
"eslint": "^8.56.0",
|
|
44
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
45
|
+
"gulp": "^4.0.2",
|
|
46
|
+
"n8n-workflow": "*",
|
|
47
|
+
"prettier": "^3.3.2",
|
|
48
|
+
"typescript": "^5.5.3"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"n8n-workflow": "*"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/file.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/filereader.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/form-data/index.d.ts","../node_modules/n8n-workflow/dist/Authentication.d.ts","../node_modules/n8n-workflow/dist/Constants.d.ts","../node_modules/n8n-workflow/dist/DeferredPromise.d.ts","../node_modules/n8n-workflow/dist/ExecutionStatus.d.ts","../node_modules/n8n-workflow/dist/errors/application.error.d.ts","../node_modules/n8n-workflow/dist/errors/abstract/execution-base.error.d.ts","../node_modules/n8n-workflow/dist/errors/expression.error.d.ts","../node_modules/n8n-workflow/dist/Expression.d.ts","../node_modules/n8n-workflow/dist/Workflow.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-activation.error.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/WorkflowHooks.d.ts","../node_modules/n8n-workflow/dist/errors/abstract/node.error.d.ts","../node_modules/n8n-workflow/dist/errors/node-api.error.d.ts","../node_modules/n8n-workflow/dist/errors/node-operation.error.d.ts","../node_modules/axios/index.d.ts","../node_modules/n8n-workflow/dist/Interfaces.d.ts","../node_modules/n8n-workflow/dist/LoggerProxy.d.ts","../node_modules/n8n-workflow/dist/ErrorReporterProxy.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/types.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/namedTypes.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/kinds.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/builders.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/types.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/path.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/scope.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/node-path.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/gen/visitor.d.ts","../node_modules/@n8n/tournament/node_modules/recast/node_modules/ast-types/main.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/options.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/parser.d.ts","../node_modules/@n8n/tournament/node_modules/recast/lib/printer.d.ts","../node_modules/@n8n/tournament/node_modules/recast/main.d.ts","../node_modules/@n8n/tournament/dist/ExpressionSplitter.d.ts","../node_modules/@n8n/tournament/dist/ExpressionBuilder.d.ts","../node_modules/@n8n/tournament/dist/Analysis.d.ts","../node_modules/@n8n/tournament/dist/index.d.ts","../node_modules/n8n-workflow/dist/ExpressionEvaluatorProxy.d.ts","../node_modules/n8n-workflow/dist/NodeHelpers.d.ts","../node_modules/n8n-workflow/dist/ObservableObject.d.ts","../node_modules/n8n-workflow/dist/TelemetryHelpers.d.ts","../node_modules/n8n-workflow/dist/errors/credential-access-error.d.ts","../node_modules/n8n-workflow/dist/errors/node-ssl.error.d.ts","../node_modules/n8n-workflow/dist/errors/webhook-taken.error.d.ts","../node_modules/n8n-workflow/dist/errors/workflow-deactivation.error.d.ts","../node_modules/n8n-workflow/dist/errors/subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/cli-subworkflow-operation.error.d.ts","../node_modules/n8n-workflow/dist/errors/trigger-close.error.d.ts","../node_modules/n8n-workflow/dist/errors/expression-extension.error.d.ts","../node_modules/n8n-workflow/dist/errors/index.d.ts","../node_modules/n8n-workflow/dist/Cron.d.ts","../node_modules/n8n-workflow/dist/GlobalState.d.ts","../node_modules/n8n-workflow/dist/MessageEventBus.d.ts","../node_modules/n8n-workflow/dist/RoutingNode.d.ts","../node_modules/n8n-workflow/dist/WorkflowDataProxy.d.ts","../node_modules/n8n-workflow/dist/VersionedNodeType.d.ts","../node_modules/n8n-workflow/dist/TypeValidation.d.ts","../node_modules/n8n-workflow/dist/utils.d.ts","../node_modules/n8n-workflow/dist/type-guards.d.ts","../node_modules/n8n-workflow/dist/Extensions/Extensions.d.ts","../node_modules/n8n-workflow/dist/Extensions/ExpressionExtension.d.ts","../node_modules/n8n-workflow/dist/Extensions/index.d.ts","../node_modules/n8n-workflow/dist/Extensions/ExpressionParser.d.ts","../node_modules/n8n-workflow/dist/NativeMethods/index.d.ts","../node_modules/n8n-workflow/dist/NodeParameters/FilterParameter.d.ts","../node_modules/n8n-workflow/dist/index.d.ts","../credentials/PinchApi.credentials.ts","../nodes/Pinch/descriptions/PayerDescription.ts","../nodes/Pinch/descriptions/PaymentDescription.ts","../nodes/Pinch/descriptions/TokenDescription.ts","../nodes/Pinch/descriptions/index.ts","../nodes/Pinch/helpers.ts","../nodes/Pinch/Pinch.node.ts","../nodes/Pinch/PinchTrigger.node.ts","../package.json","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/semver/classes/semver.d.ts","../node_modules/@types/semver/functions/parse.d.ts","../node_modules/@types/semver/functions/valid.d.ts","../node_modules/@types/semver/functions/clean.d.ts","../node_modules/@types/semver/functions/inc.d.ts","../node_modules/@types/semver/functions/diff.d.ts","../node_modules/@types/semver/functions/major.d.ts","../node_modules/@types/semver/functions/minor.d.ts","../node_modules/@types/semver/functions/patch.d.ts","../node_modules/@types/semver/functions/prerelease.d.ts","../node_modules/@types/semver/functions/compare.d.ts","../node_modules/@types/semver/functions/rcompare.d.ts","../node_modules/@types/semver/functions/compare-loose.d.ts","../node_modules/@types/semver/functions/compare-build.d.ts","../node_modules/@types/semver/functions/sort.d.ts","../node_modules/@types/semver/functions/rsort.d.ts","../node_modules/@types/semver/functions/gt.d.ts","../node_modules/@types/semver/functions/lt.d.ts","../node_modules/@types/semver/functions/eq.d.ts","../node_modules/@types/semver/functions/neq.d.ts","../node_modules/@types/semver/functions/gte.d.ts","../node_modules/@types/semver/functions/lte.d.ts","../node_modules/@types/semver/functions/cmp.d.ts","../node_modules/@types/semver/functions/coerce.d.ts","../node_modules/@types/semver/classes/comparator.d.ts","../node_modules/@types/semver/classes/range.d.ts","../node_modules/@types/semver/functions/satisfies.d.ts","../node_modules/@types/semver/ranges/max-satisfying.d.ts","../node_modules/@types/semver/ranges/min-satisfying.d.ts","../node_modules/@types/semver/ranges/to-comparators.d.ts","../node_modules/@types/semver/ranges/min-version.d.ts","../node_modules/@types/semver/ranges/valid.d.ts","../node_modules/@types/semver/ranges/outside.d.ts","../node_modules/@types/semver/ranges/gtr.d.ts","../node_modules/@types/semver/ranges/ltr.d.ts","../node_modules/@types/semver/ranges/intersects.d.ts","../node_modules/@types/semver/ranges/simplify.d.ts","../node_modules/@types/semver/ranges/subset.d.ts","../node_modules/@types/semver/internals/identifiers.d.ts","../node_modules/@types/semver/index.d.ts"],"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":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"e142fda89ed689ea53d6f2c93693898464c7d29a0ae71c6dc8cdfe5a1d76c775","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","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","4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"964f307d249df0d7e8eb16d594536c0ac6cc63c8d467edf635d05542821dec8e","affectsGlobalScope":true},"db3ec8993b7596a4ef47f309c7b25ee2505b519c13050424d9c34701e5973315",{"version":"6a1ebd564896d530364f67b3257c62555b61d60494a73dfe8893274878c6589d","affectsGlobalScope":true},"af49b066a76ce26673fe49d1885cc6b44153f1071ed2d952f2a90fccba1095c9","f22fd1dc2df53eaf5ce0ff9e0a3326fc66f880d6a652210d50563ae72625455f",{"version":"3ddbdb519e87a7827c4f0c4007013f3628ca0ebb9e2b018cf31e5b2f61c593f1","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"6d498d4fd8036ea02a4edcae10375854a0eb1df0496cf0b9d692577d3c0fd603","affectsGlobalScope":true},"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","fd09b892597ab93e7f79745ce725a3aaf6dd005e8db20f0c63a5d10984cba328","a3be878ff1e1964ab2dc8e0a3b67087cf838731c7f3d8f603337e7b712fdd558","5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","9be74296ee565af0c12d7071541fdd23260f53c3da7731fb6361f61150a791f6",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"f501a53b94ba382d9ba396a5c486969a3abc68309828fa67f916035f5d37fe2b","affectsGlobalScope":true},"aa658b5d765f630c312ac9202d110bbaf2b82d180376457f0a9d57b42629714a","312ac7cbd070107766a9886fd27f9faad997ef57d93fdfb4095df2c618ac8162","2e9b4e7f9942af902eb85bae6066d04ef1afee51d61554a62d144df3da7dec94","672ad3045f329e94002256f8ed460cfd06173a50c92cde41edaadfacffd16808","64da4965d1e0559e134d9c1621ae400279a216f87ed00c4cce4f2c7c78021712","2205527b976f4f1844adc46a3f0528729fb68cac70027a5fb13c49ca23593797",{"version":"0166fce1204d520fdfd6b5febb3cda3deee438bcbf8ce9ffeb2b1bcde7155346","affectsGlobalScope":true},"d8b13eab85b532285031b06a971fa051bf0175d8fff68065a24a6da9c1c986cf","50c382ba1827988c59aa9cc9d046e386d55d70f762e9e352e95ee8cb7337cdb8","bb9627ab9d078c79bb5623de4ac8e5d08f806ec9b970962dfc83b3211373690d",{"version":"21d7e87f271e72d02f8d167edc902f90b04525edc7918f00f01dd0bd00599f7e","affectsGlobalScope":true},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true},"a215554477f7629e3dcbc8cde104bec036b78673650272f5ffdc5a2cee399a0a","c3497fc242aabfedcd430b5932412f94f157b5906568e737f6a18cc77b36a954","cdc1de3b672f9ef03ff15c443aa1b631edca35b6ae6970a7da6400647ff74d95","139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","bf01fdd3b93cf633b3f7420718457af19c57ab8cbfea49268df60bae2e84d627","15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","5f461d6f5d9ff474f1121cc3fd86aa3cd67476c701f55c306d323c5112201207","65b39cc6b610a4a4aecc321f6efb436f10c0509d686124795b4c36a5e915b89e","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633",{"version":"83fe38aa2243059ea859325c006da3964ead69b773429fe049ebb0426e75424d","affectsGlobalScope":true},"d3edb86744e2c19f2c1503849ac7594a5e06024f2451bacae032390f2e20314a",{"version":"e501cbca25bd54f0bcb89c00f092d3cae227e970b93fd76207287fd8110b123d","affectsGlobalScope":true},{"version":"8a3e61347b8f80aa5af532094498bceb0c0b257b25a6aa8ab4880fd6ed57c95a","affectsGlobalScope":true},"98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","950f6810f7c80e0cffefcf1bcc6ade3485c94394720e334c3c2be3c16b6922fb","5475df7cfc493a08483c9d7aa61cc04791aecba9d0a2efc213f23c4006d4d3cd","000720870b275764c65e9f28ac97cc9e4d9e4a36942d4750ca8603e416e9c57c",{"version":"54412c70bacb9ed547ed6caae8836f712a83ccf58d94466f3387447ec4e82dc3","affectsGlobalScope":true},{"version":"e74e7b0baa7a24f073080091427d36a75836d584b9393e6ac2b1daf1647fe65a","affectsGlobalScope":true},"4c48e931a72f6971b5add7fdb1136be1d617f124594e94595f7114af749395e0","478eb5c32250678a906d91e0529c70243fc4d75477a08f3da408e2615396f558","e686a88c9ee004c8ba12ffc9d674ca3192a4c50ed0ca6bd5b2825c289e2b2bfe",{"version":"0d27932df2fbc3728e78b98892540e24084424ce12d3bd32f62a23cf307f411f","affectsGlobalScope":true},"4423fb3d6abe6eefb8d7f79eb2df9510824a216ec1c6feee46718c9b18e6d89f",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"01c47d1c006b3a15b51d89d7764fff7e4fabc4e412b3a61ee5357bd74b822879","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":"a63ea4fe138a373a27ea6b80b2859074aeaa6d1c5f07b0409b26d647643369da","signature":"ed68d9cb036427530de5fed43a1ce8a4b643f734ed1f6333cfaf9571b2e0b24d"},{"version":"9989c59bd042f7d129f28ca3f304ce0328e87745af678c2a7cba863a1892f6e2","signature":"ff82b1dc19e4802e297ba2f9061c156f1881e84ba8b28f5b060e7457eea6be8e"},{"version":"f6581051247fa3518c6524487ef26fab3afed772a7d99eee9b3d6cd0393ca10f","signature":"2eb2dc4a3e37f2cb7c2dfea26ddf8ffc546f2543879955df95c5d88df3266f69"},{"version":"daa52bdf85977c947b20ba17a88cecd72ffb235b8aed655eb9222a999646cb02","signature":"ff5aec118e5092891f066860a40d7f81a67b8c9a53a0036f6661d08c8325e178"},{"version":"71519fc73e3bcc560da1e24a8dd0a9e710c51180115bed2290817bbb916d99d7","signature":"b4df424b10d25a416cc9f4f3182d63df067edb35f53209e5f0977f740df6906b"},{"version":"c755d246c8577d83470b399e4601ab2a4448bef153ada0d981befa452fcbcada","signature":"827c4209ed87b741d630da5796a1e68ca08c414c031212c3f6dc4f4a0b0b80dd"},{"version":"96246f8bea07ff9d36a7d79c540eeaf56dbed8dada150e9167b41329e3d82b77","signature":"9247a32fcf0874c63f3ae968c291030aeb7fb040f7e99fc5a5d757132140dd65"},{"version":"abee3c29eb1d01c2a314550d79ca60d33580671b1062c6cb19d2e3c36fc0bd79","signature":"26ea9fe5148e16b3447a55bbae4c0a9ba66e4f624cbb08e002f0acde8f624afe"},"031adbf422111c349d7750dca3a5207af5a79fd841014cdaf8d43ea441c6c98d","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","7d8ddf0f021c53099e34ee831a06c394d50371816caa98684812f089b4c6b3d4"],"root":[[208,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":[[207],[176],[174,175],[176,177],[160],[171],[170,171,172,173],[161,162],[161],[160,162,164],[161,167,168],[160,164,165,166],[160,164,167,169],[160,164],[160,167],[160,161,163],[160,161,163,164,165,167,168,169],[47],[87],[88,93,123],[89,94,100,101,108,120,131],[89,90,100,108],[91,132],[92,93,101,109],[93,120,128],[94,96,100,108],[87,95],[96,97],[100],[98,100],[87,100],[100,101,102,120,131],[100,101,102,115,120,123],[85,136],[85,96,100,103,108,120,131,207],[100,101,103,104,108,120,128,131],[103,105,120,128,131],[47,48,86,87,88,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],[100,106],[107,131,136],[96,100,108,120],[109],[110],[87,111],[47,48,87,88,89,90,91,92,93,94,95,96,97,98,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,207],[113],[114],[100,115,116],[115,117,132,134],[88,100,120,121,122,123],[88,120,122],[120,121],[123],[124],[47,120],[100,126,127],[126,127],[93,108,120,128],[129],[108,130],[88,103,114,131],[93,132],[120,133],[107,134],[135],[88,93,100,102,111,120,131,134,136],[120,137],[218,257],[218,242,257],[257],[218],[218,243,257],[218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256],[243,257],[103,120,139,207],[157],[145],[149,157],[157,178],[201],[201,202],[101,103,120,128,131,140,141,142,143,144,147,149,150,151,152,154,155,156,207],[148,157],[145,157],[146],[187],[146,157],[147],[145,146,147,150,151,153,154,155,183,184,185,186,187,188,189,190],[145,153,157],[153,154],[151],[150],[145,146,157],[103,141,142,143,144,148,149,152,157,158,159,179,180,181,182,191,192,193,194,195,196,197,198,199,200,203,204,205,206],[57,61,131],[57,120,131],[52],[54,57,128,131],[108,128],[139],[52,139],[54,57,108,131],[49,50,53,56,88,100,120,131],[57,64],[49,55],[57,78,79],[53,57,88,123,131,139],[88,139],[78,88,139],[51,52,139],[57],[51,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83,84],[57,72],[57,64,65],[55,57,65,66],[56],[49,52,57],[57,61,65,66],[61],[55,57,60,131],[49,54,57,64],[88,120],[52,57,78,88,136,139],[207,212,213],[207,213],[209,210,211]],"referencedMap":[[208,1],[177,2],[176,3],[178,4],[171,5],[172,6],[174,7],[163,8],[162,9],[161,10],[169,11],[167,12],[168,13],[165,14],[166,15],[164,16],[170,17],[47,18],[48,18],[87,19],[88,20],[89,21],[90,22],[91,23],[92,24],[93,25],[94,26],[95,27],[96,28],[97,28],[99,29],[98,30],[100,31],[101,32],[102,33],[86,34],[103,35],[104,36],[105,37],[139,38],[106,39],[107,40],[108,41],[109,42],[110,43],[111,44],[112,45],[113,46],[114,47],[115,48],[116,48],[117,49],[120,50],[122,51],[121,52],[123,53],[124,54],[125,55],[126,56],[127,57],[128,58],[129,59],[130,60],[131,61],[132,62],[133,63],[134,64],[135,65],[136,66],[137,67],[242,68],[243,69],[218,70],[221,70],[240,68],[241,68],[231,68],[230,71],[228,68],[223,68],[236,68],[234,68],[238,68],[222,68],[235,68],[239,68],[224,68],[225,68],[237,68],[219,68],[226,68],[227,68],[229,68],[233,68],[244,72],[232,68],[220,68],[257,73],[251,72],[253,74],[252,72],[245,72],[246,72],[248,72],[250,72],[254,74],[255,74],[247,74],[249,74],[140,75],[142,76],[159,77],[148,78],[179,79],[202,80],[203,81],[157,82],[158,76],[194,76],[205,80],[180,78],[206,76],[181,76],[195,78],[182,76],[198,76],[197,76],[149,83],[196,78],[152,76],[146,84],[153,85],[188,86],[183,87],[190,88],[147,85],[191,89],[154,90],[155,91],[184,85],[187,92],[189,84],[185,93],[150,94],[186,93],[151,85],[207,95],[200,76],[199,76],[64,96],[74,97],[63,96],[84,98],[55,99],[54,100],[83,101],[77,102],[82,103],[57,104],[71,105],[56,106],[80,107],[52,108],[51,109],[81,110],[53,111],[58,112],[62,112],[85,113],[75,114],[66,115],[67,116],[69,117],[65,118],[68,119],[78,101],[60,120],[61,121],[70,122],[50,123],[73,114],[72,112],[79,124],[214,125],[215,126],[209,1],[210,1],[211,1],[212,127],[213,1]]},"version":"5.5.4"}
|
package/index.js
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-pinch",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "n8n nodes for interacting with the Pinch Payments API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://docs.getpinch.com.au",
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Damian Karzon",
|
|
12
|
+
"email": "damian@getpinch.com.au"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/PinchPayments/n8n-nodes-pinch.git"
|
|
17
|
+
},
|
|
18
|
+
"main": "index.js",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsc && gulp build:icons",
|
|
21
|
+
"dev": "tsc --watch",
|
|
22
|
+
"format": "prettier nodes credentials --write",
|
|
23
|
+
"lint": "eslint nodes credentials package.json",
|
|
24
|
+
"lintfix": "eslint nodes credentials package.json --fix",
|
|
25
|
+
"prepublishOnly": "npm run build && eslint -c .eslintrc.prepublish.js nodes credentials package.json"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"n8n": {
|
|
31
|
+
"n8nNodesApiVersion": 1,
|
|
32
|
+
"credentials": [
|
|
33
|
+
"dist/credentials/PinchApi.credentials.js"
|
|
34
|
+
],
|
|
35
|
+
"nodes": [
|
|
36
|
+
"dist/nodes/Pinch/Pinch.node.js",
|
|
37
|
+
"dist/nodes/Pinch/PinchTrigger.node.js"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/node": "^22.5.2",
|
|
42
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
43
|
+
"eslint": "^8.56.0",
|
|
44
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
45
|
+
"gulp": "^4.0.2",
|
|
46
|
+
"n8n-workflow": "*",
|
|
47
|
+
"prettier": "^3.3.2",
|
|
48
|
+
"typescript": "^5.5.3"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"n8n-workflow": "*"
|
|
52
|
+
}
|
|
53
|
+
}
|