n8n-nodes-dominusnode 1.1.0 → 1.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.
Files changed (36) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/dist/index.js +9 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/nodes/DominusNodeAccount/DominusNodeAccount.node.d.ts +23 -0
  5. package/dist/nodes/DominusNodeAccount/DominusNodeAccount.node.js +223 -0
  6. package/dist/nodes/DominusNodeAccount/DominusNodeAccount.node.js.map +1 -0
  7. package/dist/nodes/DominusNodeKeys/DominusNodeKeys.node.d.ts +20 -0
  8. package/dist/nodes/DominusNodeKeys/DominusNodeKeys.node.js +145 -0
  9. package/dist/nodes/DominusNodeKeys/DominusNodeKeys.node.js.map +1 -0
  10. package/dist/nodes/DominusNodePlans/DominusNodePlans.node.d.ts +19 -0
  11. package/dist/nodes/DominusNodePlans/DominusNodePlans.node.js +123 -0
  12. package/dist/nodes/DominusNodePlans/DominusNodePlans.node.js.map +1 -0
  13. package/dist/nodes/DominusNodeProxy/DominusNodeProxy.node.d.ts +2 -1
  14. package/dist/nodes/DominusNodeProxy/DominusNodeProxy.node.js +12 -1
  15. package/dist/nodes/DominusNodeProxy/DominusNodeProxy.node.js.map +1 -1
  16. package/dist/nodes/DominusNodeTeams/DominusNodeTeams.node.d.ts +27 -0
  17. package/dist/nodes/DominusNodeTeams/DominusNodeTeams.node.js +258 -0
  18. package/dist/nodes/DominusNodeTeams/DominusNodeTeams.node.js.map +1 -0
  19. package/dist/nodes/DominusNodeUsage/DominusNodeUsage.node.d.ts +3 -1
  20. package/dist/nodes/DominusNodeUsage/DominusNodeUsage.node.js +47 -1
  21. package/dist/nodes/DominusNodeUsage/DominusNodeUsage.node.js.map +1 -1
  22. package/dist/nodes/DominusNodeWallet/DominusNodeWallet.node.d.ts +5 -1
  23. package/dist/nodes/DominusNodeWallet/DominusNodeWallet.node.js +44 -1
  24. package/dist/nodes/DominusNodeWallet/DominusNodeWallet.node.js.map +1 -1
  25. package/package.json +7 -3
  26. package/src/index.ts +4 -0
  27. package/src/nodes/DominusNodeAccount/DominusNodeAccount.node.ts +283 -0
  28. package/src/nodes/DominusNodeKeys/DominusNodeKeys.node.ts +192 -0
  29. package/src/nodes/DominusNodePlans/DominusNodePlans.node.ts +154 -0
  30. package/src/nodes/DominusNodeProxy/DominusNodeProxy.node.ts +11 -1
  31. package/src/nodes/DominusNodeTeams/DominusNodeTeams.node.ts +351 -0
  32. package/src/nodes/DominusNodeUsage/DominusNodeUsage.node.ts +53 -1
  33. package/src/nodes/DominusNodeWallet/DominusNodeWallet.node.ts +52 -1
  34. package/tests/DominusNodeProxy.test.ts +2 -2
  35. package/tests/DominusNodeUsage.test.ts +2 -2
  36. package/tests/DominusNodeWallet.test.ts +2 -2
@@ -1,11 +1,14 @@
1
1
  /**
2
2
  * Dominus Node Wallet n8n community node.
3
3
  *
4
- * Operations:
4
+ * Operations (25 tools):
5
5
  * - Check Balance: Get current wallet balance
6
6
  * - Top Up (Stripe): Create a Stripe checkout session
7
7
  * - Top Up (Crypto): Create a crypto payment invoice
8
8
  * - Top Up (PayPal): Create a PayPal checkout session via Stripe
9
+ * - Get Transactions: Get wallet transaction history
10
+ * - Get Forecast: Get wallet spend forecast
11
+ * - Check Payment: Check crypto payment invoice status
9
12
  * - Create Agentic Wallet: Create a sub-wallet with spending limits
10
13
  * - Fund Agentic Wallet: Transfer funds to an agentic wallet
11
14
  * - Get Agentic Wallet Balance: Check an agentic wallet's balance
@@ -23,6 +26,7 @@
23
26
  * - Team Usage: Get team wallet transaction history
24
27
  * - Update Team: Update team name/max members
25
28
  * - Update Team Member Role: Update a team member's role
29
+ * - x402 Info: Get x402 micropayment protocol information
26
30
  *
27
31
  * @module
28
32
  */
@@ -70,6 +74,9 @@ export class DominusNodeWallet implements INodeType {
70
74
  { name: "Top Up (Stripe)", value: "topUpStripe", description: "Create a Stripe checkout session", action: "Top up stripe" },
71
75
  { name: "Top Up (Crypto)", value: "topUpCrypto", description: "Create a crypto payment invoice", action: "Top up crypto" },
72
76
  { name: "Top Up (PayPal)", value: "topUpPaypal", description: "Create a PayPal checkout session", action: "Top up paypal" },
77
+ { name: "Get Transactions", value: "getTransactions", description: "Get wallet transaction history", action: "Get transactions" },
78
+ { name: "Get Forecast", value: "getForecast", description: "Get wallet spend forecast", action: "Get forecast" },
79
+ { name: "Check Payment", value: "checkPayment", description: "Check crypto payment invoice status", action: "Check payment" },
73
80
  // Agentic Wallets
74
81
  { name: "Create Agentic Wallet", value: "createAgenticWallet", description: "Create a sub-wallet with spending limits", action: "Create agentic wallet" },
75
82
  { name: "Fund Agentic Wallet", value: "fundAgenticWallet", description: "Transfer funds to an agentic wallet", action: "Fund agentic wallet" },
@@ -137,6 +144,25 @@ export class DominusNodeWallet implements INodeType {
137
144
  displayOptions: { show: { operation: ["topUpCrypto"] } },
138
145
  },
139
146
 
147
+ // --- Transaction / payment params ---
148
+ {
149
+ displayName: "Limit",
150
+ name: "walletTransactionLimit",
151
+ type: "number",
152
+ default: 20,
153
+ description: "Number of transactions to return (1-100)",
154
+ displayOptions: { show: { operation: ["getTransactions"] } },
155
+ },
156
+ {
157
+ displayName: "Invoice ID",
158
+ name: "invoiceId",
159
+ type: "string",
160
+ default: "",
161
+ required: true,
162
+ description: "Crypto payment invoice UUID to check status",
163
+ displayOptions: { show: { operation: ["checkPayment"] } },
164
+ },
165
+
140
166
  // --- Agentic wallet params ---
141
167
  {
142
168
  displayName: "Label",
@@ -411,6 +437,31 @@ export class DominusNodeWallet implements INodeType {
411
437
  break;
412
438
  }
413
439
 
440
+ case "getTransactions": {
441
+ const limit = this.getNodeParameter("walletTransactionLimit", i, 20) as number;
442
+ validateLimit(this, limit, i);
443
+
444
+ const params = new URLSearchParams();
445
+ params.set("limit", String(limit));
446
+ result = await auth.apiRequest("GET", `/api/wallet/transactions?${params.toString()}`);
447
+ break;
448
+ }
449
+
450
+ case "getForecast": {
451
+ result = await auth.apiRequest("GET", "/api/wallet/forecast");
452
+ break;
453
+ }
454
+
455
+ case "checkPayment": {
456
+ const invoiceId = this.getNodeParameter("invoiceId", i) as string;
457
+ validateUuid(this, invoiceId, "invoiceId", i);
458
+ result = await auth.apiRequest(
459
+ "GET",
460
+ `/api/wallet/topup/crypto/${encodeURIComponent(invoiceId)}/status`,
461
+ );
462
+ break;
463
+ }
464
+
414
465
  // ----- Agentic Wallets -----
415
466
  case "createAgenticWallet": {
416
467
  const label = this.getNodeParameter("agenticLabel", i) as string;
@@ -76,10 +76,10 @@ describe("DominusNodeProxy", () => {
76
76
  ]);
77
77
  });
78
78
 
79
- it("has three operations", () => {
79
+ it("has four operations", () => {
80
80
  const opProp = node.description.properties.find((p) => p.name === "operation");
81
81
  expect(opProp).toBeDefined();
82
- expect((opProp as any).options).toHaveLength(3);
82
+ expect((opProp as any).options).toHaveLength(4);
83
83
  });
84
84
  });
85
85
 
@@ -95,11 +95,11 @@ describe("DominusNodeUsage - metadata", () => {
95
95
  ]);
96
96
  });
97
97
 
98
- it("has one operation", () => {
98
+ it("has three operations", () => {
99
99
  const node = new DominusNodeUsage();
100
100
  const opProp = node.description.properties.find((p) => p.name === "operation");
101
101
  expect(opProp).toBeDefined();
102
- expect((opProp as any).options).toHaveLength(1);
102
+ expect((opProp as any).options).toHaveLength(3);
103
103
  });
104
104
 
105
105
  it("has period options: day, week, month", () => {
@@ -93,11 +93,11 @@ describe("DominusNodeWallet - metadata", () => {
93
93
  ]);
94
94
  });
95
95
 
96
- it("has 22 operations", () => {
96
+ it("has 25 operations", () => {
97
97
  const node = new DominusNodeWallet();
98
98
  const opProp = node.description.properties.find((p) => p.name === "operation");
99
99
  expect(opProp).toBeDefined();
100
- expect((opProp as any).options).toHaveLength(22);
100
+ expect((opProp as any).options).toHaveLength(25);
101
101
  });
102
102
  });
103
103