@flashbacktech/flashbackclient 0.1.16 → 0.1.18

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.
@@ -58,6 +58,7 @@ export declare class ApiClient implements IApiClient {
58
58
  updateRepoKey: (repoId: string, keyId: string, data: UpdateRepoKeyRequest) => Promise<UpdateRepoKeyResponse>;
59
59
  deleteRepoKey: (repoId: string, keyId: string) => Promise<ActionResponse>;
60
60
  userRegister: (data: RegisterBody) => Promise<RegisterResponse>;
61
+ validateRegistration: (token: string) => Promise<RegisterResponse>;
61
62
  userLogin: (data: LoginBody) => Promise<LoginResponse>;
62
63
  userRefresh: (refreshToken: string) => Promise<RefreshTokenResponse | RefreshTokenErrorResponse>;
63
64
  userLogout: (refreshToken: string) => Promise<LogoutResponse>;
@@ -205,6 +205,9 @@ class ApiClient {
205
205
  this.userRegister = async (data) => {
206
206
  return this.makeRequest('user/register', 'POST', data);
207
207
  };
208
+ this.validateRegistration = async (token) => {
209
+ return this.makeRequest('/user/verify-email', 'POST', { token });
210
+ };
208
211
  this.userLogin = async (data) => {
209
212
  return this.makeRequest('user/login', 'POST', data);
210
213
  };
@@ -39,8 +39,8 @@ export interface RegisterBody {
39
39
  email: string;
40
40
  password: string;
41
41
  companyName: string;
42
- companyDomain: string;
43
- companyWebsite: string;
42
+ companyWebsite?: string;
43
+ isBusiness: boolean;
44
44
  }
45
45
  export interface LoginBody {
46
46
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"