@usecapsule/user-management-client
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -243,4 +243,8 @@ "use strict"; | ||
// POST /users/:userId/wallets/set | ||
this.setCurrentWalletIds = (userId, walletIds, sessionLookupId) => __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/set`, { walletIds, sessionLookupId }); | ||
this.setCurrentWalletIds = (userId_1, walletIds_1, ...args_1) => __awaiter(this, [userId_1, walletIds_1, ...args_1], void 0, function* (userId, walletIds, needsWallet = false, sessionLookupId) { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/set`, { | ||
walletIds, | ||
needsWallet, | ||
sessionLookupId, | ||
}); | ||
return res; | ||
@@ -247,0 +251,0 @@ }); |
@@ -237,4 +237,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
// POST /users/:userId/wallets/set | ||
this.setCurrentWalletIds = (userId, walletIds, sessionLookupId) => __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/set`, { walletIds, sessionLookupId }); | ||
this.setCurrentWalletIds = (userId_1, walletIds_1, ...args_1) => __awaiter(this, [userId_1, walletIds_1, ...args_1], void 0, function* (userId, walletIds, needsWallet = false, sessionLookupId) { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/set`, { | ||
walletIds, | ||
needsWallet, | ||
sessionLookupId, | ||
}); | ||
return res; | ||
@@ -241,0 +245,0 @@ }); |
@@ -114,2 +114,3 @@ import { AxiosResponse } from 'axios'; | ||
logoUrl?: string; | ||
iconUrl?: string; | ||
portalHeaderLogoUrl?: string; | ||
@@ -131,3 +132,3 @@ policiesEnabled: boolean; | ||
scheme: string; | ||
type: string; | ||
type: WalletType; | ||
updatedAt: string; | ||
@@ -146,2 +147,3 @@ userId: string | null; | ||
type: WalletType; | ||
cosmosPrefix?: string; | ||
} | ||
@@ -161,2 +163,3 @@ interface updatePregenWalletBody { | ||
type: WalletType; | ||
cosmosPrefix?: string; | ||
} | ||
@@ -261,3 +264,3 @@ interface claimPreGenWalletBody { | ||
getAllWallets: (userId: string) => Promise<AxiosResponse<getWalletsRes, any>>; | ||
setCurrentWalletIds: (userId: string, walletIds: string[], sessionLookupId?: string) => Promise<any>; | ||
setCurrentWalletIds: (userId: string, walletIds: string[], needsWallet?: boolean, sessionLookupId?: string) => Promise<any>; | ||
login: (props: { | ||
@@ -264,0 +267,0 @@ email: string; |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -33,3 +33,3 @@ "module": "dist/esm/index.js", | ||
}, | ||
"gitHead": "2f9f59b43c147849f37d50a136970f56dce05be9" | ||
"gitHead": "530e3c81e17c2027ff82abe9b77abb8d6bf0fd7a" | ||
} |
74761
1643