@usecapsule/user-management-client
Advanced tools
Comparing version 1.14.0 to 1.15.0-dev.0
@@ -220,2 +220,7 @@ "use strict"; | ||
}); | ||
// POST /users/:userId/wallets/:walletId/set | ||
this.setCurrentWalletId = (userId, walletId, sessionLookupId) => __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/set`, { sessionLookupId }); | ||
return res; | ||
}); | ||
// POST /login | ||
@@ -377,4 +382,4 @@ this.login = (props) => __awaiter(this, void 0, void 0, function* () { | ||
resendVerificationCode(_a) { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
const res = yield this.baseRequest.post(`/users/${userId}/resend-verification-code`, rest); | ||
@@ -386,4 +391,4 @@ return res; | ||
resendVerificationCodeByPhone(_a) { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
const res = yield this.baseRequest.post(`/users/${userId}/resend-verification-code-by-phone`, rest); | ||
@@ -514,5 +519,5 @@ return res; | ||
} | ||
acceptScopes(userId, body) { | ||
acceptScopes(userId, walletId, body) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/scopes/accept`, body); | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/scopes/accept`, body); | ||
return res; | ||
@@ -533,10 +538,10 @@ }); | ||
} | ||
getPolicyPermissions(userId, policyId) { | ||
getPolicyPermissions(userId, policyId, walletId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions`); | ||
const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions${walletId ? `?walletId=${walletId}` : ''}`); | ||
return res; | ||
}); | ||
} | ||
createOnRampPurchase(userId, walletId, provider, asset, testMode = false) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
createOnRampPurchase(userId_1, walletId_1, provider_1, asset_1) { | ||
return __awaiter(this, arguments, void 0, function* (userId, walletId, provider, asset, testMode = false) { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/purchases`, { | ||
@@ -563,4 +568,4 @@ provider, | ||
distributeCapsuleShare(_a) { | ||
var { userId, walletId } = _a, rest = __rest(_a, ["userId", "walletId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId, walletId } = _a, rest = __rest(_a, ["userId", "walletId"]); | ||
const body = rest; | ||
@@ -567,0 +572,0 @@ const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/capsule-share/distribute`, body); |
@@ -214,2 +214,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); | ||
// POST /users/:userId/wallets/:walletId/set | ||
this.setCurrentWalletId = (userId, walletId, sessionLookupId) => __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/set`, { sessionLookupId }); | ||
return res; | ||
}); | ||
// POST /login | ||
@@ -371,4 +376,4 @@ this.login = (props) => __awaiter(this, void 0, void 0, function* () { | ||
resendVerificationCode(_a) { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
const res = yield this.baseRequest.post(`/users/${userId}/resend-verification-code`, rest); | ||
@@ -380,4 +385,4 @@ return res; | ||
resendVerificationCodeByPhone(_a) { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId } = _a, rest = __rest(_a, ["userId"]); | ||
const res = yield this.baseRequest.post(`/users/${userId}/resend-verification-code-by-phone`, rest); | ||
@@ -508,5 +513,5 @@ return res; | ||
} | ||
acceptScopes(userId, body) { | ||
acceptScopes(userId, walletId, body) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.post(`/users/${userId}/scopes/accept`, body); | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/scopes/accept`, body); | ||
return res; | ||
@@ -527,10 +532,10 @@ }); | ||
} | ||
getPolicyPermissions(userId, policyId) { | ||
getPolicyPermissions(userId, policyId, walletId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions`); | ||
const res = yield this.baseRequest.get(`/users/${userId}/policies/${policyId}/permissions${walletId ? `?walletId=${walletId}` : ''}`); | ||
return res; | ||
}); | ||
} | ||
createOnRampPurchase(userId, walletId, provider, asset, testMode = false) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
createOnRampPurchase(userId_1, walletId_1, provider_1, asset_1) { | ||
return __awaiter(this, arguments, void 0, function* (userId, walletId, provider, asset, testMode = false) { | ||
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/purchases`, { | ||
@@ -557,4 +562,4 @@ provider, | ||
distributeCapsuleShare(_a) { | ||
var { userId, walletId } = _a, rest = __rest(_a, ["userId", "walletId"]); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
var { userId, walletId } = _a, rest = __rest(_a, ["userId", "walletId"]); | ||
const body = rest; | ||
@@ -561,0 +566,0 @@ const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/capsule-share/distribute`, body); |
@@ -226,2 +226,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
getWallets: (userId: string) => Promise<any>; | ||
setCurrentWalletId: (userId: string, walletId: string, sessionLookupId?: string) => Promise<any>; | ||
login: (props: { | ||
@@ -274,6 +275,6 @@ email: string; | ||
getPartner(partnerId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
acceptScopes(userId: string, body: AcceptScopesBody): Promise<import("axios").AxiosResponse<any, any>>; | ||
acceptScopes(userId: string, walletId: string, body: AcceptScopesBody): Promise<import("axios").AxiosResponse<any, any>>; | ||
getPendingTransaction(userId: string, pendingTransactionid: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
acceptPendingTransaction(userId: string, pendingTransactionId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
getPolicyPermissions(userId: string, policyId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
getPolicyPermissions(userId: string, policyId: string, walletId?: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
createOnRampPurchase(userId: string, walletId: string, provider: OnRampProvider, asset: OnRampAsset, testMode?: boolean): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>; | ||
@@ -280,0 +281,0 @@ updateOnRampPurchase(userId: string, walletId: string, purchaseId: string, updates: Partial<Pick<OnRampPurchase, 'status' | 'fiatCurrency' | 'fiatQuantity' | 'providerKey'>>): Promise<import("axios").AxiosResponse<OnRampPurchase, any>>; |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "1.14.0", | ||
"version": "1.15.0-dev.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -33,3 +33,3 @@ "module": "dist/esm/index.js", | ||
}, | ||
"gitHead": "071c8e1bd6fc302036aff71199380089752214ba" | ||
"gitHead": "ddeeeb106fde95fb0ba122e6fd01c15d5f3b4aad" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
71837
1551
2