shared-ritm 1.3.56 → 1.3.57

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,5 +1,5 @@
1
1
  import ApiService from '../settings/ApiService';
2
- import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_password_payload } from '../types/Api_User';
2
+ import { Api_User, Api_User_Create, Api_User_Delete_Body, Api_User_Delete_Photos_Body, Api_User_Position, Api_User_Role, Api_User_Team, Api_User_Team_Search, Api_User_Warehouse, Api_User_Change_Password_Payload } from '../types/Api_User';
3
3
  import { ResponseApi } from '../types/Api_Service';
4
4
  declare class UserService extends ApiService {
5
5
  editUser({ id, model }: {
@@ -7,7 +7,7 @@ declare class UserService extends ApiService {
7
7
  model: any;
8
8
  }): Promise<Api_User>;
9
9
  getUser(id: string): Promise<Api_User>;
10
- changeUserPassword(payload: Api_User_Change_password_payload): Promise<Api_User>;
10
+ changeUserPassword(payload: Api_User_Change_Password_Payload): Promise<Api_User>;
11
11
  getUserWarehouses(params: {
12
12
  user_id: string;
13
13
  page?: number;
@@ -75,7 +75,7 @@ export type Api_User = {
75
75
  password_change_due_at: string;
76
76
  password_last_changed_at: string;
77
77
  };
78
- export type Api_User_Change_password_payload = {
78
+ export type Api_User_Change_Password_Payload = {
79
79
  email: string;
80
80
  password: string;
81
81
  currentPassword: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.3.56",
3
+ "version": "1.3.57",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -9,7 +9,7 @@ import {
9
9
  Api_User_Team,
10
10
  Api_User_Team_Search,
11
11
  Api_User_Warehouse,
12
- Api_User_Change_password_payload,
12
+ Api_User_Change_Password_Payload,
13
13
  } from '../types/Api_User'
14
14
 
15
15
  import { ResponseApi } from '../types/Api_Service'
@@ -23,8 +23,8 @@ class UserService extends ApiService {
23
23
  return await this.get<Api_User>(`/admin/users/${id}`)
24
24
  }
25
25
 
26
- public async changeUserPassword(payload: Api_User_Change_password_payload): Promise<Api_User> {
27
- return await this.patch<Api_User_Change_password_payload, Api_User>(`/v2/auth/users/password`, payload)
26
+ public async changeUserPassword(payload: Api_User_Change_Password_Payload): Promise<Api_User> {
27
+ return await this.patch<Api_User_Change_Password_Payload, Api_User>(`/v2/auth/users/password`, payload)
28
28
  }
29
29
 
30
30
  public async getUserWarehouses(params: {
@@ -79,7 +79,7 @@ export type Api_User = {
79
79
  password_last_changed_at: string
80
80
  }
81
81
 
82
- export type Api_User_Change_password_payload = {
82
+ export type Api_User_Change_Password_Payload = {
83
83
  email: string
84
84
  password: string
85
85
  currentPassword: string