@flashbacktech/flashbackclient 0.2.31 → 0.2.32

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.
@@ -91,7 +91,7 @@ export declare class ApiClient implements IApiClient {
91
91
  deleteRepoKey: (repoId: string, keyId: string) => Promise<ActionResponse>;
92
92
  userRegister: (data: RegisterBody) => Promise<RegisterResponse>;
93
93
  preVerifyEmail: (token: string) => Promise<PreVerifyEmailResponse>;
94
- validateRegistration: (token: string) => Promise<RegisterResponse>;
94
+ validateRegistration: (token: string, password?: string) => Promise<RegisterResponse>;
95
95
  resendVerificationEmail: (verificationTokenId: string) => Promise<ResendVerificationEmailResponse>;
96
96
  userLogin: (data: LoginBody) => Promise<LoginResponse>;
97
97
  userRefresh: (refreshToken: string) => Promise<RefreshTokenResponse | RefreshTokenErrorResponse>;
@@ -213,8 +213,8 @@ class ApiClient {
213
213
  this.preVerifyEmail = async (token) => {
214
214
  return this.makeRequest('user/pre-verify-email', 'POST', { token });
215
215
  };
216
- this.validateRegistration = async (token) => {
217
- return this.makeRequest('/user/verify-email', 'POST', { token });
216
+ this.validateRegistration = async (token, password) => {
217
+ return this.makeRequest('/user/verify-email', 'POST', { token, password });
218
218
  };
219
219
  this.resendVerificationEmail = async (verificationTokenId) => {
220
220
  return this.makeRequest(`user/resend-verification/${verificationTokenId}`, 'POST', null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"