@flashbacktech/flashbackclient 0.2.31 → 0.2.33

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);
@@ -267,6 +267,9 @@ class ApiClient {
267
267
  if (query?.status) {
268
268
  queryParams.append('status', query.status);
269
269
  }
270
+ if (query?.text) {
271
+ queryParams.append('text', query.text);
272
+ }
270
273
  return this.makeRequest(`links${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
271
274
  };
272
275
  this.createLink = async (data) => {
@@ -19,6 +19,7 @@ export interface GetLinksRequest {
19
19
  take?: number;
20
20
  skip?: number;
21
21
  status?: 'activated' | 'pending' | 'all';
22
+ text?: string;
22
23
  }
23
24
  export interface GetLinksResponse {
24
25
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.31",
3
+ "version": "0.2.33",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"