@usecapsule/user-management-client
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -386,2 +386,10 @@ import axios, { AxiosInstance } from 'axios'; | ||
// POST '/users/:userId/resend-verification-code | ||
async resendVerificationCode(userId: string) { | ||
const res = await this.baseRequest.post<any>( | ||
`/users/${userId}/resend-verification-code` | ||
); | ||
return res; | ||
} | ||
async tempTrasmissionInit(message: string, userId?: string) { | ||
@@ -388,0 +396,0 @@ const body = { message, userId } |
@@ -140,2 +140,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
getCapsuleShare(userId: string, walletId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
resendVerificationCode(userId: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
tempTrasmissionInit(message: string, userId?: string): Promise<import("axios").AxiosResponse<any, any>>; | ||
@@ -142,0 +143,0 @@ tempTrasmission(id: string): Promise<import("axios").AxiosResponse<any, any>>; |
@@ -527,2 +527,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// POST '/users/:userId/resend-verification-code | ||
Client.prototype.resendVerificationCode = function (userId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var res; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.baseRequest.post("/users/".concat(userId, "/resend-verification-code"))]; | ||
case 1: | ||
res = _a.sent(); | ||
return [2 /*return*/, res]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Client.prototype.tempTrasmissionInit = function (message, userId) { | ||
@@ -529,0 +543,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"main": "dist/client.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/client.d.ts", |
Sorry, the diff of this file is not supported yet
62606
1217