@flashbacktech/flashbackclient 0.2.28 → 0.2.29

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.
@@ -1,6 +1,6 @@
1
1
  import { CreateRepoRequest, CreateRepoResponse, CreateRepoKeyRequest, CreateRepoKeyResponse, GetReposResponse, GetRepoKeysResponse, ActionResponse, UpdateRepoRequest, UpdateRepoResponse, UpdateRepoKeyRequest, UpdateRepoKeyResponse, ValidateRepoUnitsRequest, ValidateRepoUnitsResponse, CreateBucketRequest, CreateBucketResponse, UpdateBucketRequest, UpdateBucketResponse, ValidateBucketRequest, ValidateBucketResponse, StorageBucket, GetBucketsResponse, StorageBucketStatusResponse, GetBucketNodeStatsRequest, GetBucketNodeStatsResponse, CreateRepoWithBucketsRequest, UpdateRepoWithBucketsRequest, ValidateRepoBucketsRequest, ValidateRepoBucketsResponse } from './types/storage/storage';
2
2
  import { IApiClient, ProviderType } from './interfaces';
3
- import { ActivateUserRequest, ActivateUserResponse, DeactivateResponse, DemoRequestBody, DemoRequestResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResetPasswordBody, Web3RegisterBody } from './types/platform/auth';
3
+ import { ActivateUserRequest, ActivateUserResponse, DeactivateResponse, DemoRequestBody, DemoRequestResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResendVerificationEmailResponse, ResetPasswordBody, Web3RegisterBody } from './types/platform/auth';
4
4
  import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams, UnitStatsResponse, RepoStatsResponse, NodeStatsDailyQueryParams, BucketStatsResponse, StatsQueryWithBucketParams, NodeStatsQueryWithBucketParams, NodeStatsDailyQueryWithBucketParams } from './types/storage/stats';
5
5
  import { NodeInfoResponse, RegisterRequest } from './types/storage/bridge';
6
6
  import { GetOrganizationKeysResponse } from './types/storage/noderegistration';
@@ -91,6 +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
  validateRegistration: (token: string) => Promise<RegisterResponse>;
94
+ resendVerificationEmail: (verificationTokenId: string) => Promise<ResendVerificationEmailResponse>;
94
95
  userLogin: (data: LoginBody) => Promise<LoginResponse>;
95
96
  userRefresh: (refreshToken: string) => Promise<RefreshTokenResponse | RefreshTokenErrorResponse>;
96
97
  userLogout: (refreshToken: string) => Promise<LogoutResponse>;
@@ -213,6 +213,9 @@ class ApiClient {
213
213
  this.validateRegistration = async (token) => {
214
214
  return this.makeRequest('/user/verify-email', 'POST', { token });
215
215
  };
216
+ this.resendVerificationEmail = async (verificationTokenId) => {
217
+ return this.makeRequest(`user/resend-verification/${verificationTokenId}`, 'POST', null);
218
+ };
216
219
  this.userLogin = async (data) => {
217
220
  return this.makeRequest('user/login', 'POST', data);
218
221
  };
@@ -83,6 +83,7 @@ export interface RegisterResponse {
83
83
  };
84
84
  error_code?: string;
85
85
  message?: string;
86
+ verificationTokenId?: string;
86
87
  }
87
88
  export interface LoginResponse extends RegisterResponse {
88
89
  }
@@ -96,6 +97,11 @@ export interface ActivateResponse {
96
97
  error_code?: string;
97
98
  message?: string;
98
99
  }
100
+ export interface ResendVerificationEmailResponse {
101
+ success: boolean;
102
+ error_code?: string;
103
+ message?: string;
104
+ }
99
105
  export interface DeactivateResponse {
100
106
  success: boolean;
101
107
  error_code?: string;
@@ -6,6 +6,8 @@ export interface CreateOrgUserRequest {
6
6
  lastName: string;
7
7
  orgRole?: number;
8
8
  sendInvite?: boolean;
9
+ provider?: string;
10
+ authMethod?: 'LOCAL' | 'GOOGLE' | 'GITHUB';
9
11
  }
10
12
  export interface UpdateOrgUserRequest {
11
13
  name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"