shared-ritm 1.2.138 → 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 {};
@@ -22,7 +22,7 @@ declare class RepairsService extends ApiService {
22
22
  updateRepair(payload: Api_Update_Repair, id: string): Promise<void>;
23
23
  copyRepair(id: string): Promise<any>;
24
24
  deleteRepair(id: string): Promise<import("axios").AxiosResponse<any, any>>;
25
- fetchIntersection(id: string): Promise<Api_Repair_Intersection[][]>;
25
+ fetchIntersection(id: string): Promise<Api_Repair_Intersection[]>;
26
26
  }
27
27
  export default function useRepairsService(): RepairsService;
28
28
  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,3 +1,4 @@
1
+ import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks';
1
2
  export type Api_Team = {
2
3
  id: string;
3
4
  display_name: string;
@@ -107,23 +108,19 @@ export type Api_Repair_Template = {
107
108
  };
108
109
  task_list: string;
109
110
  };
110
- export type Api_Repair_Intersection = {
111
+ export type Api_Repair_Intersection_Task = {
111
112
  position: {
112
- name: string;
113
- display_name: string;
114
- };
115
- status: {
116
113
  id: string;
117
- name: string;
118
114
  display_name: string;
119
- };
120
- task: {
121
- id: string;
122
115
  name: string;
123
- project_id: string;
124
116
  };
117
+ status: Omit<Api_Status_DTO, 'id'>;
118
+ task: Pick<Api_Tasks_Task_Dto, 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'>;
119
+ };
120
+ export type Api_Repair_Intersection = {
121
+ tasks: Api_Repair_Intersection_Task[];
125
122
  user: {
126
- id: string;
123
+ id: string | null;
127
124
  full_name: string;
128
125
  };
129
126
  };
@@ -284,7 +284,7 @@ export type Api_Task_Dto = {
284
284
  has_quality_metrics: boolean;
285
285
  responsible: Api_Responsible_DTO[];
286
286
  assigned: Api_Assigned_DTO[];
287
- status: Api_Status_DTO[];
287
+ status: Api_Status_DTO;
288
288
  teams: Api_Teams_DTO[];
289
289
  video_source: Api_VideoSource_DTO;
290
290
  };
@@ -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.138",
3
+ "version": "1.2.140",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -111,7 +111,7 @@ class RepairsService extends ApiService {
111
111
  return this.delete<any>(`/repairs/${id}`)
112
112
  }
113
113
 
114
- public fetchIntersection(id: string): Promise<Api_Repair_Intersection[][]> {
114
+ public fetchIntersection(id: string): Promise<Api_Repair_Intersection[]> {
115
115
  return this.get(`v3/repairs/${id}/personnel/intersection`)
116
116
  }
117
117
  }
@@ -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,3 +1,5 @@
1
+ import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
2
+
1
3
  export type Api_Team = {
2
4
  id: string
3
5
  display_name: string
@@ -116,23 +118,23 @@ export type Api_Repair_Template = {
116
118
  task_list: string
117
119
  }
118
120
 
119
- export type Api_Repair_Intersection = {
121
+ export type Api_Repair_Intersection_Task = {
120
122
  position: {
121
- name: string
122
- display_name: string
123
- }
124
- status: {
125
123
  id: string
126
- name: string
127
124
  display_name: string
128
- }
129
- task: {
130
- id: string
131
125
  name: string
132
- project_id: string
133
126
  }
127
+ status: Omit<Api_Status_DTO, 'id'>
128
+ task: Pick<
129
+ Api_Tasks_Task_Dto,
130
+ 'id' | 'name' | 'plan_date' | 'planned_start' | 'fact_start_date' | 'planned_end' | 'deadline' | 'fact_end_date'
131
+ >
132
+ }
133
+
134
+ export type Api_Repair_Intersection = {
135
+ tasks: Api_Repair_Intersection_Task[]
134
136
  user: {
135
- id: string
137
+ id: string | null
136
138
  full_name: string
137
139
  }
138
140
  }
@@ -313,7 +313,7 @@ export type Api_Task_Dto = {
313
313
  has_quality_metrics: boolean
314
314
  responsible: Api_Responsible_DTO[]
315
315
  assigned: Api_Assigned_DTO[]
316
- status: Api_Status_DTO[]
316
+ status: Api_Status_DTO
317
317
  teams: Api_Teams_DTO[]
318
318
  video_source: Api_VideoSource_DTO
319
319
  }
@@ -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 = {