shared-ritm 1.2.139 → 1.2.140

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_Auth_Login, ConfigResponse } from '@/api/types/Api_Auth';
2
+ import { Api_Auth_Login, ChangePasswordResponse, ConfigResponse } from '@/api/types/Api_Auth';
3
3
  declare class AuthService extends ApiService {
4
4
  login(email: string, password: string): Promise<Api_Auth_Login>;
5
5
  loginPhoto(photo: any): Promise<Api_Auth_Login>;
@@ -7,7 +7,7 @@ declare class AuthService extends ApiService {
7
7
  logout(): Promise<Api_Auth_Login>;
8
8
  userInfo(): Promise<any>;
9
9
  configs(): Promise<ConfigResponse>;
10
- changePassword(id: string, password: string, password_confirmation: string): Promise<any>;
10
+ changePassword(id: string, password: string, password_confirmation: string): Promise<ChangePasswordResponse>;
11
11
  }
12
12
  export default function useAuthService(): AuthService;
13
13
  export {};
@@ -1,3 +1,4 @@
1
+ import { Api_User } from '@/api/types/Api_User';
1
2
  export type LoginPayload = {
2
3
  email: string;
3
4
  password: string;
@@ -72,5 +73,5 @@ export type ChangePasswordPayload = {
72
73
  password: string;
73
74
  password_confirmation: string;
74
75
  };
75
- export type ChangePasswordResponse = any;
76
+ export type ChangePasswordResponse = Pick<Api_User, 'id' | 'archiveHistory' | 'assigned_tasks' | 'divisions' | 'email' | 'full_name' | 'passes' | 'personnel_number' | 'phone' | 'photos' | 'positions' | 'responsible_tasks' | 'teams' | 'warehouses'>;
76
77
  export type ConfigResponse = any;
@@ -1,5 +1,6 @@
1
1
  import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks';
2
2
  import { Api_Instrument } from '@/api/types/Api_Instruments';
3
+ import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search';
3
4
  export type Api_User_Team = {
4
5
  id: string;
5
6
  name: string;
@@ -62,6 +63,9 @@ export type Api_User = {
62
63
  archiveHistory: Api_User_Archive_History_Item[];
63
64
  assigned_tasks?: Api_User_Task[];
64
65
  responsible_tasks?: Api_User_Task[];
66
+ passes?: Api_Search_User_Passes[];
67
+ positions: Api_Search_User_Positions[];
68
+ warehouses?: Partial<Api_User_Warehouse>[];
65
69
  };
66
70
  export type Api_User_Create = {
67
71
  last_name?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shared-ritm",
3
- "version": "1.2.139",
3
+ "version": "1.2.140",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -1,3 +1,5 @@
1
+ import { Api_User } from '@/api/types/Api_User'
2
+
1
3
  export type LoginPayload = {
2
4
  email: string
3
5
  password: string
@@ -82,5 +84,22 @@ export type ChangePasswordPayload = {
82
84
  password_confirmation: string
83
85
  }
84
86
 
85
- export type ChangePasswordResponse = any
87
+ export type ChangePasswordResponse = Pick<
88
+ Api_User,
89
+ | 'id'
90
+ | 'archiveHistory'
91
+ | 'assigned_tasks'
92
+ | 'divisions'
93
+ | 'email'
94
+ | 'full_name'
95
+ | 'passes'
96
+ | 'personnel_number'
97
+ | 'phone'
98
+ | 'photos'
99
+ | 'positions'
100
+ | 'responsible_tasks'
101
+ | 'teams'
102
+ | 'warehouses'
103
+ >
104
+
86
105
  export type ConfigResponse = any
@@ -1,5 +1,6 @@
1
1
  import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
2
  import { Api_Instrument } from '@/api/types/Api_Instruments'
3
+ import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
3
4
 
4
5
  export type Api_User_Team = {
5
6
  id: string
@@ -68,6 +69,9 @@ export type Api_User = {
68
69
  archiveHistory: Api_User_Archive_History_Item[]
69
70
  assigned_tasks?: Api_User_Task[]
70
71
  responsible_tasks?: Api_User_Task[]
72
+ passes?: Api_Search_User_Passes[]
73
+ positions: Api_Search_User_Positions[]
74
+ warehouses?: Partial<Api_User_Warehouse>[]
71
75
  }
72
76
 
73
77
  export type Api_User_Create = {