shared-ritm 1.3.132 → 1.3.135

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,112 +1,113 @@
1
- export type Api_User_Dto = {
2
- id: string
3
- full_name: string
4
- }
5
- export type Api_ControlsZone_Dto = {
6
- id: string
7
- name: string
8
- }
9
- export type Api_ControlZones_Dto = {
10
- id: string
11
- name: string
12
- inventory_number: string
13
- uuid: string
14
- controller_zone: string
15
- users?: Api_User_Dto[]
16
- }
17
- export type ControlsParams = {
18
- search?: string
19
- page?: number
20
- filter?: Record<string, string[]>
21
- }
22
-
23
- export interface ControlMeta {
24
- total: number
25
- perPage: number
26
- totalPages: number
27
- currentPage: number
28
- }
29
-
30
- export type FiltersValue = {
31
- users?: {
32
- users: Api_User_Dto[]
33
- }
34
- controller?: {
35
- controller: Api_User_Dto[]
36
- }
37
- controllers?: {
38
- controllers: Api_User_Dto[]
39
- }
40
- responsible?: {
41
- responsible: Api_User_Dto[]
42
- }
43
- controller_zones?: {
44
- controller_zones: Api_ControlsZone_Dto[]
45
- }
46
- status?: {
47
- status: boolean
48
- }
49
- }
50
- export type Api_Instrument_Dto = {
51
- id: string
52
- name: string
53
- storage_id?: string
54
- }
55
- export type Api_Warehouse_Dto = {
56
- id: string
57
- invoice_ref_key: string
58
- inventory_number: string
59
- instrument: Api_Instrument_Dto[]
60
- }
61
-
62
- export type Api_ControlLogs_Dto = {
63
- id: string
64
- automatically: string
65
- in_zone: string
66
- uuid: string
67
- controller_zone: string
68
- controller: Api_User_Dto[]
69
- user: Api_User_Dto[]
70
- frame: Api_ControlZones_Dto[]
71
- warehouse: Api_Warehouse_Dto[]
72
- description: string | null
73
- }
74
- export type Api_New_Items = {
75
- title: string
76
- inventory_numbers: string
77
- storage_id: string
78
- }
79
- export type Api_ManualEntry_Dto = {
80
- user: string
81
- items?: string[]
82
- new_items?: Api_New_Items[]
83
- }
84
-
85
- export type Api_Instrument_Type_Search = {
86
- id: string
87
- icon: string
88
- name: string
89
- storages: {
90
- id: string
91
- title: string
92
- }[]
93
- warehouse_statuses: boolean
94
- }
95
-
96
- export type Api_Instrument_Category = {
97
- id: string
98
- title: string[]
99
- }
100
-
101
- export type Api_instrument_Type_Create = {
102
- name: string
103
- storage_id: string
104
- }
105
-
106
- export type Api_instrument_Type = {
107
- id: string
108
- name: string
109
- storage_id: string
110
- created_at: string
111
- updated_at: string
112
- }
1
+ export type Api_User_Dto = {
2
+ id: string
3
+ full_name: string
4
+ }
5
+ export type Api_ControlsZone_Dto = {
6
+ id: string
7
+ name: string
8
+ }
9
+ export type Api_ControlZones_Dto = {
10
+ id: string
11
+ name: string
12
+ inventory_number: string
13
+ uuid: string
14
+ controller_zone: string
15
+ users?: Api_User_Dto[]
16
+ }
17
+ export type ControlsParams = {
18
+ search?: string
19
+ page?: number
20
+ per_page?: number
21
+ filter?: Record<string, string[]>
22
+ }
23
+
24
+ export interface ControlMeta {
25
+ total: number
26
+ perPage: number
27
+ totalPages: number
28
+ currentPage: number
29
+ }
30
+
31
+ export type FiltersValue = {
32
+ users?: {
33
+ users: Api_User_Dto[]
34
+ }
35
+ controller?: {
36
+ controller: Api_User_Dto[]
37
+ }
38
+ controllers?: {
39
+ controllers: Api_User_Dto[]
40
+ }
41
+ responsible?: {
42
+ responsible: Api_User_Dto[]
43
+ }
44
+ controller_zones?: {
45
+ controller_zones: Api_ControlsZone_Dto[]
46
+ }
47
+ status?: {
48
+ status: boolean
49
+ }
50
+ }
51
+ export type Api_Instrument_Dto = {
52
+ id: string
53
+ name: string
54
+ storage_id?: string
55
+ }
56
+ export type Api_Warehouse_Dto = {
57
+ id: string
58
+ invoice_ref_key: string
59
+ inventory_number: string
60
+ instrument: Api_Instrument_Dto[]
61
+ }
62
+
63
+ export type Api_ControlLogs_Dto = {
64
+ id: string
65
+ automatically: string
66
+ in_zone: string
67
+ uuid: string
68
+ controller_zone: string
69
+ controller: Api_User_Dto[]
70
+ user: Api_User_Dto[]
71
+ frame: Api_ControlZones_Dto[]
72
+ warehouse: Api_Warehouse_Dto[]
73
+ description: string | null
74
+ }
75
+ export type Api_New_Items = {
76
+ title: string
77
+ inventory_numbers: string
78
+ storage_id: string
79
+ }
80
+ export type Api_ManualEntry_Dto = {
81
+ user: string
82
+ items?: string[]
83
+ new_items?: Api_New_Items[]
84
+ }
85
+
86
+ export type Api_Instrument_Type_Search = {
87
+ id: string
88
+ icon: string
89
+ name: string
90
+ storages: {
91
+ id: string
92
+ title: string
93
+ }[]
94
+ warehouse_statuses: boolean
95
+ }
96
+
97
+ export type Api_Instrument_Category = {
98
+ id: string
99
+ title: string[]
100
+ }
101
+
102
+ export type Api_instrument_Type_Create = {
103
+ name: string
104
+ storage_id: string
105
+ }
106
+
107
+ export type Api_instrument_Type = {
108
+ id: string
109
+ name: string
110
+ storage_id: string
111
+ created_at: string
112
+ updated_at: string
113
+ }
@@ -1,161 +1,186 @@
1
- import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
- import { Api_Instrument } from '@/api/types/Api_Instruments'
3
- import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
4
-
5
- export type Api_User_Team = {
6
- id: string
7
- name: string
8
- display_name: string
9
- description: string
10
- created_at: string
11
- updated_at: string
12
- pivot?: {
13
- team_id: string
14
- user_id: string
15
- }
16
- roles?: Api_User_Role[]
17
- }
18
-
19
- export type Api_User_Team_Search = {
20
- id: string
21
- name: string
22
- display_name: string
23
- }
24
-
25
- export type Api_User_Photo = {
26
- id: string
27
- name: string
28
- path: string
29
- type: string
30
- }
31
-
32
- export type Api_User_Archive_History_Item = {
33
- user_id: string
34
- responsible_id: string
35
- archived_at: string
36
- reason: string | null
37
- restored_at: string | null
38
- }
39
-
40
- export type Api_User_Task = {
41
- id: string
42
- name: string
43
- project_id: string
44
- status: Api_Tasks_Status_Dto
45
- }
46
-
47
- export type Api_User = {
48
- id: string
49
- RFID: string
50
- avatar: unknown | null
51
- avatar_id: string | null
52
- change_password: string
53
- created_at: string
54
- updated_at: string
55
- deleted_at: string | null
56
- dismissal_at: string | null
57
- email_verified_at: string
58
- divisions: string
59
- email: string
60
- face_recognition_id: string | null
61
- first_name: string
62
- full_name: string
63
- last_name: string
64
- patronymic: string
65
- personnel_number: number
66
- phone: string
67
- profession: string
68
- teams: Api_User_Team[]
69
- photos: Api_User_Photo[]
70
- archiveHistory: Api_User_Archive_History_Item[]
71
- assigned_tasks?: Api_User_Task[]
72
- responsible_tasks?: Api_User_Task[]
73
- passes?: Api_Search_User_Passes[]
74
- positions: Api_Search_User_Positions[]
75
- warehouses?: Partial<Api_User_Warehouse>[]
76
- brigades: { id: string; name: string }[]
77
- password_change_available_at: string
78
- password_change_due_at: string
79
- password_last_changed_at: string
80
- has_video_analytics_photo?: boolean
81
- calc_performance_median?: number | null
82
- }
83
-
84
- export type Api_User_Change_Password_Payload = {
85
- email: string
86
- password: string
87
- currentPassword: string
88
- passwordConfirmation: string
89
- }
90
-
91
- export type Api_User_Create = {
92
- last_name?: string
93
- first_name?: string
94
- patronymic?: string
95
- email?: string
96
- phone?: string
97
- divisions?: string
98
- positions?: [string]
99
- teams?: {
100
- team_id: string
101
- roles: string[]
102
- }[]
103
- current_password?: string
104
- password?: string
105
- password_confirmation?: string
106
- }
107
-
108
- export type Api_User_Permission = {
109
- id: string
110
- name: string
111
- display_name: string
112
- }
113
-
114
- export type Api_User_Role = {
115
- id: string
116
- name: string
117
- display_name: string
118
- permissions?: Api_User_Permission[]
119
- }
120
-
121
- export type Api_User_Position_Type = 'admin' | 'worker' | null
122
-
123
- export type Api_User_Position = {
124
- id: string
125
- name: string
126
- display_name: string
127
- description?: string
128
- type?: Api_User_Position_Type
129
- }
130
-
131
- export type Api_User_Delete_Body = {
132
- user_id: string
133
- archive_reason?: string
134
- }
135
-
136
- export type Api_User_Delete_Photos_Body = {
137
- user_id: string
138
- photos?: string[]
139
- }
140
-
141
- export type Api_User_Warehouse = Pick<
142
- Api_Instrument,
143
- | 'id'
144
- | 'RFID'
145
- | 'instrument_type'
146
- | 'inventory_number'
147
- | 'location'
148
- | 'misplacement'
149
- | 'module'
150
- | 'name'
151
- | 'responsible'
152
- | 'status'
153
- | 'storage'
154
- | 'updated_at'
155
- > & {
156
- issued_in: string | null
157
- registry: {
158
- id: string
159
- title: string
160
- } | null
161
- }
1
+ import { Api_Tasks_Status_Dto } from '@/api/types/Api_Tasks'
2
+ import { Api_Instrument } from '@/api/types/Api_Instruments'
3
+ import { Api_Search_User_Passes, Api_Search_User_Positions } from '@/api/types/Api_Search'
4
+
5
+ export type Api_Visitor_Dto = {
6
+ id: string
7
+ entry_at: string
8
+ exit_at: null | string
9
+ in_zone: boolean
10
+ is_auto: boolean
11
+ user: {
12
+ id: string
13
+ email: string
14
+ full_name: string
15
+ divisions: string
16
+ }
17
+ task: {
18
+ id: string
19
+ name: string
20
+ state_id: string
21
+ project_id: string
22
+ status: {
23
+ id: string
24
+ name: string
25
+ title: string
26
+ }
27
+ }
28
+ }
29
+
30
+ export type Api_User_Team = {
31
+ id: string
32
+ name: string
33
+ display_name: string
34
+ description: string
35
+ created_at: string
36
+ updated_at: string
37
+ pivot?: {
38
+ team_id: string
39
+ user_id: string
40
+ }
41
+ roles?: Api_User_Role[]
42
+ }
43
+
44
+ export type Api_User_Team_Search = {
45
+ id: string
46
+ name: string
47
+ display_name: string
48
+ }
49
+
50
+ export type Api_User_Photo = {
51
+ id: string
52
+ name: string
53
+ path: string
54
+ type: string
55
+ }
56
+
57
+ export type Api_User_Archive_History_Item = {
58
+ user_id: string
59
+ responsible_id: string
60
+ archived_at: string
61
+ reason: string | null
62
+ restored_at: string | null
63
+ }
64
+
65
+ export type Api_User_Task = {
66
+ id: string
67
+ name: string
68
+ project_id: string
69
+ status: Api_Tasks_Status_Dto
70
+ }
71
+
72
+ export type Api_User = {
73
+ id: string
74
+ RFID: string
75
+ avatar: unknown | null
76
+ avatar_id: string | null
77
+ change_password: string
78
+ created_at: string
79
+ updated_at: string
80
+ deleted_at: string | null
81
+ dismissal_at: string | null
82
+ email_verified_at: string
83
+ divisions: string
84
+ email: string
85
+ face_recognition_id: string | null
86
+ first_name: string
87
+ full_name: string
88
+ last_name: string
89
+ patronymic: string
90
+ personnel_number: number
91
+ phone: string
92
+ profession: string
93
+ teams: Api_User_Team[]
94
+ photos: Api_User_Photo[]
95
+ archiveHistory: Api_User_Archive_History_Item[]
96
+ assigned_tasks?: Api_User_Task[]
97
+ responsible_tasks?: Api_User_Task[]
98
+ passes?: Api_Search_User_Passes[]
99
+ positions: Api_Search_User_Positions[]
100
+ warehouses?: Partial<Api_User_Warehouse>[]
101
+ brigades: { id: string; name: string }[]
102
+ password_change_available_at: string
103
+ password_change_due_at: string
104
+ password_last_changed_at: string
105
+ has_video_analytics_photo?: boolean
106
+ calc_performance_median?: number | null
107
+ }
108
+
109
+ export type Api_User_Change_Password_Payload = {
110
+ email: string
111
+ password: string
112
+ currentPassword: string
113
+ passwordConfirmation: string
114
+ }
115
+
116
+ export type Api_User_Create = {
117
+ last_name?: string
118
+ first_name?: string
119
+ patronymic?: string
120
+ email?: string
121
+ phone?: string
122
+ divisions?: string
123
+ positions?: [string]
124
+ teams?: {
125
+ team_id: string
126
+ roles: string[]
127
+ }[]
128
+ current_password?: string
129
+ password?: string
130
+ password_confirmation?: string
131
+ }
132
+
133
+ export type Api_User_Permission = {
134
+ id: string
135
+ name: string
136
+ display_name: string
137
+ }
138
+
139
+ export type Api_User_Role = {
140
+ id: string
141
+ name: string
142
+ display_name: string
143
+ permissions?: Api_User_Permission[]
144
+ }
145
+
146
+ export type Api_User_Position_Type = 'admin' | 'worker' | null
147
+
148
+ export type Api_User_Position = {
149
+ id: string
150
+ name: string
151
+ display_name: string
152
+ description?: string
153
+ type?: Api_User_Position_Type
154
+ }
155
+
156
+ export type Api_User_Delete_Body = {
157
+ user_id: string
158
+ archive_reason?: string
159
+ }
160
+
161
+ export type Api_User_Delete_Photos_Body = {
162
+ user_id: string
163
+ photos?: string[]
164
+ }
165
+
166
+ export type Api_User_Warehouse = Pick<
167
+ Api_Instrument,
168
+ | 'id'
169
+ | 'RFID'
170
+ | 'instrument_type'
171
+ | 'inventory_number'
172
+ | 'location'
173
+ | 'misplacement'
174
+ | 'module'
175
+ | 'name'
176
+ | 'responsible'
177
+ | 'status'
178
+ | 'storage'
179
+ | 'updated_at'
180
+ > & {
181
+ issued_in: string | null
182
+ registry: {
183
+ id: string
184
+ title: string
185
+ } | null
186
+ }