@flashbacktech/flashbackclient 0.2.30 → 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>;
@@ -204,6 +204,7 @@ export declare class ApiClient implements IApiClient {
204
204
  removeUserFromWorkspace: (workspaceId: string, userId: string) => Promise<WorkspaceTypes.RemoveUserFromWorkspaceResponse>;
205
205
  getOrganizationUsers: () => Promise<ListOrgUsersResponse>;
206
206
  createOrganizationUser: (request: CreateOrgUserRequest) => Promise<CreateOrgUserResponse>;
207
+ resendTeamUserInvitation: (userId: string) => Promise<ActionResponse>;
207
208
  getOrganizationUser: (userId: string) => Promise<OrgUserResponse | {
208
209
  success: false;
209
210
  message: string;
@@ -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);
@@ -494,6 +494,9 @@ class ApiClient {
494
494
  this.createOrganizationUser = async (request) => {
495
495
  return this.makeRequest('organization/users', 'POST', request);
496
496
  };
497
+ this.resendTeamUserInvitation = async (userId) => {
498
+ return this.makeRequest(`organization/users/${userId}/resend-invitation`, 'POST', null);
499
+ };
497
500
  this.getOrganizationUser = async (userId) => {
498
501
  return this.makeRequest(`organization/users/${userId}`, 'GET', null);
499
502
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"