@xpaysh/n8n-nodes-xpay 0.1.4 → 0.2.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/dist/credentials/XPayApi.credentials.d.ts.map +1 -1
- package/dist/credentials/XPayApi.credentials.js +25 -4
- package/dist/credentials/XPayApi.credentials.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/nodes/XPayDiscover/XPayDiscover.node.d.ts +11 -0
- package/dist/nodes/XPayDiscover/XPayDiscover.node.d.ts.map +1 -0
- package/dist/nodes/XPayDiscover/XPayDiscover.node.js +595 -0
- package/dist/nodes/XPayDiscover/XPayDiscover.node.js.map +1 -0
- package/dist/nodes/XPayDiscover/xpay-discover.svg +1 -0
- package/dist/nodes/XPayPolicy/XPayPolicy.node.d.ts +6 -0
- package/dist/nodes/XPayPolicy/XPayPolicy.node.d.ts.map +1 -0
- package/dist/nodes/XPayPolicy/XPayPolicy.node.js +480 -0
- package/dist/nodes/XPayPolicy/XPayPolicy.node.js.map +1 -0
- package/dist/nodes/XPayPolicy/xpay-policy.svg +1 -0
- package/dist/nodes/XPayRun/XPayRun.node.d.ts +11 -0
- package/dist/nodes/XPayRun/XPayRun.node.d.ts.map +1 -0
- package/dist/nodes/XPayRun/XPayRun.node.js +411 -0
- package/dist/nodes/XPayRun/XPayRun.node.js.map +1 -0
- package/dist/nodes/XPayRun/xpay-run.svg +1 -0
- package/dist/nodes/XPayTrigger/XPayTrigger.node.d.ts.map +1 -1
- package/dist/nodes/XPayTrigger/XPayTrigger.node.js +17 -10
- package/dist/nodes/XPayTrigger/XPayTrigger.node.js.map +1 -1
- package/dist/shared/api.d.ts +62 -0
- package/dist/shared/api.d.ts.map +1 -0
- package/dist/shared/api.js +172 -0
- package/dist/shared/api.js.map +1 -0
- package/dist/shared/constants.d.ts +44 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js +102 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/types.d.ts +221 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +7 -0
- package/dist/shared/types.js.map +1 -0
- package/package.json +14 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XPayApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/XPayApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,OAAQ,YAAW,eAAe;IAC9C,IAAI,SAAa;IACjB,WAAW,SAAe;IAC1B,gBAAgB,SAA2C;IAE3D,UAAU,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"XPayApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/XPayApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,MAAM,cAAc,CAAC;AAEtB,qBAAa,OAAQ,YAAW,eAAe;IAC9C,IAAI,SAAa;IACjB,WAAW,SAAe;IAC1B,gBAAgB,SAA2C;IAE3D,UAAU,EAAE,eAAe,EAAE,CAqD3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAO1B;CACF"}
|
|
@@ -16,7 +16,8 @@ class XPayApi {
|
|
|
16
16
|
},
|
|
17
17
|
default: '',
|
|
18
18
|
required: true,
|
|
19
|
-
|
|
19
|
+
placeholder: 'xpay_sk_...',
|
|
20
|
+
description: 'Your xpay✦ API secret key (format: xpay_sk_xxx for sandbox, xpay_pk_xxx for production)',
|
|
20
21
|
hint: 'Get your keys at app.xpay.sh/settings/api-keys',
|
|
21
22
|
},
|
|
22
23
|
{
|
|
@@ -38,6 +39,26 @@ class XPayApi {
|
|
|
38
39
|
default: 'sandbox',
|
|
39
40
|
description: 'Choose Sandbox for testing, Production for live payments',
|
|
40
41
|
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Enable Smart Proxy Features',
|
|
44
|
+
name: 'smartProxyEnabled',
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
default: false,
|
|
47
|
+
description: 'Whether to enable Smart Proxy policy features (agent management, spending limits)',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Customer ID',
|
|
51
|
+
name: 'customerId',
|
|
52
|
+
type: 'string',
|
|
53
|
+
default: '',
|
|
54
|
+
description: 'Your Smart Proxy Customer ID (required for policy operations)',
|
|
55
|
+
hint: 'Find this at app.xpay.sh/smart-proxy/settings',
|
|
56
|
+
displayOptions: {
|
|
57
|
+
show: {
|
|
58
|
+
smartProxyEnabled: [true],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
41
62
|
];
|
|
42
63
|
this.authenticate = {
|
|
43
64
|
type: 'generic',
|
|
@@ -49,9 +70,9 @@ class XPayApi {
|
|
|
49
70
|
};
|
|
50
71
|
this.test = {
|
|
51
72
|
request: {
|
|
52
|
-
//
|
|
53
|
-
baseURL: '={{$credentials.environment === "production" ? "https://
|
|
54
|
-
url: '/
|
|
73
|
+
// Use Glyphrun Core health endpoint for credential validation
|
|
74
|
+
baseURL: '={{$credentials.environment === "production" ? "https://7qzahhyw77.execute-api.us-east-1.amazonaws.com/dev" : "https://7qzahhyw77.execute-api.us-east-1.amazonaws.com/dev"}}',
|
|
75
|
+
url: '/health',
|
|
55
76
|
method: 'GET',
|
|
56
77
|
},
|
|
57
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XPayApi.credentials.js","sourceRoot":"","sources":["../../credentials/XPayApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QACjB,gBAAW,GAAG,WAAW,CAAC;QAC1B,qBAAgB,GAAG,uCAAuC,CAAC;QAE3D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"XPayApi.credentials.js","sourceRoot":"","sources":["../../credentials/XPayApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,OAAO;IAApB;QACC,SAAI,GAAG,SAAS,CAAC;QACjB,gBAAW,GAAG,WAAW,CAAC;QAC1B,qBAAgB,GAAG,uCAAuC,CAAC;QAE3D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,aAAa;gBAC1B,WAAW,EAAE,yFAAyF;gBACtG,IAAI,EAAE,gDAAgD;aACtD;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,8BAA8B;qBAC3C;oBACD;wBACC,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,YAAY;wBACnB,WAAW,EAAE,2BAA2B;qBACxC;iBACD;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,0DAA0D;aACvE;YACD;gBACC,WAAW,EAAE,6BAA6B;gBAC1C,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,mFAAmF;aAChG;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+DAA+D;gBAC5E,IAAI,EAAE,+CAA+C;gBACrD,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,iBAAiB,EAAE,CAAC,IAAI,CAAC;qBACzB;iBACD;aACD;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,8DAA8D;gBAC9D,OAAO,EAAE,8KAA8K;gBACvL,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA7ED,0BA6EC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './nodes/XPayTrigger/XPayTrigger.node';
|
|
2
|
+
export * from './nodes/XPayDiscover/XPayDiscover.node';
|
|
3
|
+
export * from './nodes/XPayRun/XPayRun.node';
|
|
4
|
+
export * from './nodes/XPayPolicy/XPayPolicy.node';
|
|
2
5
|
export * from './credentials/XPayApi.credentials';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AAGnD,cAAc,mCAAmC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Nodes
|
|
17
18
|
__exportStar(require("./nodes/XPayTrigger/XPayTrigger.node"), exports);
|
|
19
|
+
__exportStar(require("./nodes/XPayDiscover/XPayDiscover.node"), exports);
|
|
20
|
+
__exportStar(require("./nodes/XPayRun/XPayRun.node"), exports);
|
|
21
|
+
__exportStar(require("./nodes/XPayPolicy/XPayPolicy.node"), exports);
|
|
22
|
+
// Credentials
|
|
18
23
|
__exportStar(require("./credentials/XPayApi.credentials"), exports);
|
|
19
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,uEAAqD;AACrD,yEAAuD;AACvD,+DAA6C;AAC7C,qEAAmD;AAEnD,cAAc;AACd,oEAAkD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare class XPayDiscover implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
loadOptions: {
|
|
6
|
+
getModels(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=XPayDiscover.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XPayDiscover.node.d.ts","sourceRoot":"","sources":["../../../nodes/XPayDiscover/XPayDiscover.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EAEpB,MAAM,cAAc,CAAC;AAMtB,qBAAa,YAAa,YAAW,SAAS;IAC7C,WAAW,EAAE,oBAAoB,CAqZ/B;IAEF,OAAO;;4BAEiB,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;;MAqB7E;IAEI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CA2LvE"}
|