@usecapsule/user-management-client
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -152,2 +152,6 @@ "use strict"; | ||
}); | ||
// POST /wallets/pregen/claim | ||
this.claimPregenWallet = (body) => __awaiter(this, void 0, void 0, function* () { | ||
yield this.baseRequest.post(`/wallets/pregen/claim`, body); | ||
}); | ||
// POST /users/:userId/wallets/:walletId/transactions/send | ||
@@ -154,0 +158,0 @@ this.sendTransaction = (userId, walletId, body) => __awaiter(this, void 0, void 0, function* () { |
@@ -146,2 +146,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); | ||
// POST /wallets/pregen/claim | ||
this.claimPregenWallet = (body) => __awaiter(this, void 0, void 0, function* () { | ||
yield this.baseRequest.post(`/wallets/pregen/claim`, body); | ||
}); | ||
// POST /users/:userId/wallets/:walletId/transactions/send | ||
@@ -148,0 +152,0 @@ this.sendTransaction = (userId, walletId, body) => __awaiter(this, void 0, void 0, function* () { |
@@ -119,2 +119,6 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
} | ||
interface claimPreGenWalletBody { | ||
userId: string; | ||
walletId: string; | ||
} | ||
interface signTransactionBody { | ||
@@ -172,2 +176,3 @@ transaction: string; | ||
getPregenWallets: (email: string) => Promise<getWalletsRes>; | ||
claimPregenWallet: (body?: claimPreGenWalletBody) => Promise<void>; | ||
sendTransaction: (userId: string, walletId: string, body: sendTransactionBody) => Promise<any>; | ||
@@ -174,0 +179,0 @@ signTransaction: (userId: string, walletId: string, body: signTransactionBody) => Promise<any>; |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -33,3 +33,3 @@ "module": "dist/esm/index.js", | ||
}, | ||
"gitHead": "9bea780673093cac8a9ba5b40cf9ca4165f06611" | ||
"gitHead": "b5bd244b11cc1ff1a21b87639ad0cf36893509e7" | ||
} |
54888
1198