@flashbacktech/flashbackclient 0.2.9 → 0.2.10
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.
- package/dist/api/client.d.ts +2 -0
- package/dist/api/client.js +3 -0
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { UpdateUserRoleResponse, UserRoleResponse } from './types/roles';
|
|
|
14
14
|
import { UserProfileResponse } from './types/roles';
|
|
15
15
|
import { CreateOrgUserRequest, CreateOrgUserResponse, DeleteOrgUserResponse, GetOrganizationResponse, ListOrgUsersResponse, OrgUserResponse, UpdateOrganizationBody, UpdateOrganizationResponse, UpdateOrgUserRequest, UpdateOrgUserResponse } from './types/organization';
|
|
16
16
|
import { SystemEventQueryRequest, SystemEventQueryResponse } from './types/systemEvent';
|
|
17
|
+
import { UserUpdateRequest, UserUpdateResponse } from './types/user';
|
|
17
18
|
interface ErrorResponse {
|
|
18
19
|
message?: string;
|
|
19
20
|
[key: string]: any;
|
|
@@ -91,6 +92,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
91
92
|
userActivate: () => Promise<ActivateResponse>;
|
|
92
93
|
userDeactivate: () => Promise<DeactivateResponse>;
|
|
93
94
|
getUserQuota: () => Promise<QuotaResponse>;
|
|
95
|
+
updateUser: (userId: string, data: UserUpdateRequest) => Promise<UserUpdateResponse>;
|
|
94
96
|
requestPasswordReset: (email: string) => Promise<ActionResponse>;
|
|
95
97
|
resetPassword: (data: ResetPasswordBody) => Promise<ActionResponse>;
|
|
96
98
|
private validateDateRange;
|
package/dist/api/client.js
CHANGED
|
@@ -231,6 +231,9 @@ class ApiClient {
|
|
|
231
231
|
this.getUserQuota = async () => {
|
|
232
232
|
return this.makeRequest('user/quota', 'GET', null);
|
|
233
233
|
};
|
|
234
|
+
this.updateUser = async (userId, data) => {
|
|
235
|
+
return this.makeRequest(`user/${userId}`, 'PUT', data);
|
|
236
|
+
};
|
|
234
237
|
this.requestPasswordReset = async (email) => {
|
|
235
238
|
return this.makeRequest('user/request-reset-password', 'POST', { email });
|
|
236
239
|
};
|