shared-ritm 1.3.21 → 1.3.23
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/index.css +1 -1
- package/dist/shared-ritm.es.js +4936 -4981
- package/dist/shared-ritm.umd.js +103 -103
- package/dist/types/api/services/ComentsServise.d.ts +10 -0
- package/dist/types/api/services/PhotoService.d.ts +51 -38
- package/dist/types/api/services/RepairsService.d.ts +1 -1
- package/dist/types/api/services/TasksService.d.ts +5 -0
- package/dist/types/api/settings/ApiService.d.ts +1 -1
- package/dist/types/api/types/Api_Tasks.d.ts +1 -0
- package/dist/types/api/types/Api_Users.d.ts +43 -0
- package/package.json +65 -65
- package/src/App.vue +2461 -2461
- package/src/api/services/BrigadesService.ts +32 -32
- package/src/api/services/ControlsService.ts +96 -96
- package/src/api/services/EquipmentService.ts +29 -29
- package/src/api/services/InstrumentsService.ts +68 -68
- package/src/api/services/MetricsService.ts +123 -123
- package/src/api/services/ModulesService.ts +27 -27
- package/src/api/services/ProjectsService.ts +83 -83
- package/src/api/services/RepairsService.ts +111 -111
- package/src/api/services/ScheduleService.ts +69 -69
- package/src/api/services/SearchService.ts +22 -22
- package/src/api/services/TasksService.ts +7 -0
- package/src/api/services/UserService.ts +119 -119
- package/src/api/services/VideoService.ts +108 -108
- package/src/api/settings/ApiService.ts +124 -124
- package/src/api/types/Api_Auth.ts +105 -105
- package/src/api/types/Api_Brigades.ts +36 -36
- package/src/api/types/Api_Controls.ts +111 -111
- package/src/api/types/Api_Equipment.ts +3 -3
- package/src/api/types/Api_Instruments.ts +156 -156
- package/src/api/types/Api_Metrics.ts +5 -5
- package/src/api/types/Api_Modules.ts +21 -21
- package/src/api/types/Api_Projects.ts +62 -62
- package/src/api/types/Api_Repairs.ts +140 -140
- package/src/api/types/Api_Schedule.ts +64 -64
- package/src/api/types/Api_Search.ts +80 -80
- package/src/api/types/Api_Tasks.ts +372 -371
- package/src/api/types/Api_User.ts +146 -146
- package/src/api/types/Api_Video.ts +198 -198
- package/src/common/app-datepicker/AppDatepicker.vue +218 -218
- package/src/common/app-dropdown/AppDropdown.vue +37 -37
- package/src/common/app-input-new/AppInputNew.vue +179 -179
- package/src/common/app-layout/AppLayout.vue +84 -84
- package/src/common/app-modal/index.vue +96 -96
- package/src/common/app-sheet-new/AppSheetNew.vue +244 -244
- package/src/common/app-sidebar/AppSidebar.vue +174 -174
- package/src/common/app-sidebar/components/SidebarMenuItem.vue +149 -149
- package/src/common/app-table/AppTable.vue +308 -308
- package/src/common/app-table/AppTableLayout.vue +137 -137
- package/src/common/app-table/components/ModalSelect.vue +296 -296
- package/src/common/app-table/components/TableModal.vue +356 -356
- package/src/common/app-table/controllers/useBaseTable.ts +45 -45
- package/src/common/app-table/controllers/useTableModel.ts +102 -102
- package/src/icons/dialogs/SafetyIcon.vue +12 -12
- package/src/index.ts +131 -131
- package/src/styles/variables.sass +12 -12
- package/src/utils/files.ts +19 -19
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
export type Api_Project_Repair = {
|
|
2
|
-
id: string
|
|
3
|
-
name: string
|
|
4
|
-
start_date: null | string
|
|
5
|
-
end_date: null | string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type Api_Project_Team = {
|
|
9
|
-
id: string
|
|
10
|
-
name: string
|
|
11
|
-
display_name: string
|
|
12
|
-
description: string
|
|
13
|
-
created_at: string
|
|
14
|
-
updated_at: string
|
|
15
|
-
pivot: {
|
|
16
|
-
project_id: string
|
|
17
|
-
team_id: string
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type Api_Project_Category = {
|
|
22
|
-
code: number
|
|
23
|
-
display_name: string
|
|
24
|
-
name: string
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export type Api_Project_Status = {
|
|
28
|
-
id: string
|
|
29
|
-
name: string
|
|
30
|
-
title: string
|
|
31
|
-
description: string
|
|
32
|
-
created_at: string | null
|
|
33
|
-
updated_at: string | null
|
|
34
|
-
deleted_at: string | null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_Project_Dto = {
|
|
38
|
-
id: string
|
|
39
|
-
name: string
|
|
40
|
-
description: null
|
|
41
|
-
image: null
|
|
42
|
-
plan_date: string | null
|
|
43
|
-
deadline: string | null
|
|
44
|
-
fact_start_date: string | null
|
|
45
|
-
fact_end_date: string | null
|
|
46
|
-
planned_start: string | null
|
|
47
|
-
planned_end: string | null
|
|
48
|
-
deleted_at: string | null
|
|
49
|
-
completed_at: string | null
|
|
50
|
-
total_tasks: number
|
|
51
|
-
is_archive: boolean
|
|
52
|
-
teams: Api_Project_Team[]
|
|
53
|
-
status: Api_Project_Status
|
|
54
|
-
category: Api_Project_Category
|
|
55
|
-
repair: Api_Project_Repair | null
|
|
56
|
-
schedule_id: string | null
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type Api_Project_Add_Root_Intervals_Payload = {
|
|
60
|
-
history: number
|
|
61
|
-
with_status_in_progress: number
|
|
62
|
-
}
|
|
1
|
+
export type Api_Project_Repair = {
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
start_date: null | string
|
|
5
|
+
end_date: null | string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type Api_Project_Team = {
|
|
9
|
+
id: string
|
|
10
|
+
name: string
|
|
11
|
+
display_name: string
|
|
12
|
+
description: string
|
|
13
|
+
created_at: string
|
|
14
|
+
updated_at: string
|
|
15
|
+
pivot: {
|
|
16
|
+
project_id: string
|
|
17
|
+
team_id: string
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type Api_Project_Category = {
|
|
22
|
+
code: number
|
|
23
|
+
display_name: string
|
|
24
|
+
name: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type Api_Project_Status = {
|
|
28
|
+
id: string
|
|
29
|
+
name: string
|
|
30
|
+
title: string
|
|
31
|
+
description: string
|
|
32
|
+
created_at: string | null
|
|
33
|
+
updated_at: string | null
|
|
34
|
+
deleted_at: string | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_Project_Dto = {
|
|
38
|
+
id: string
|
|
39
|
+
name: string
|
|
40
|
+
description: null
|
|
41
|
+
image: null
|
|
42
|
+
plan_date: string | null
|
|
43
|
+
deadline: string | null
|
|
44
|
+
fact_start_date: string | null
|
|
45
|
+
fact_end_date: string | null
|
|
46
|
+
planned_start: string | null
|
|
47
|
+
planned_end: string | null
|
|
48
|
+
deleted_at: string | null
|
|
49
|
+
completed_at: string | null
|
|
50
|
+
total_tasks: number
|
|
51
|
+
is_archive: boolean
|
|
52
|
+
teams: Api_Project_Team[]
|
|
53
|
+
status: Api_Project_Status
|
|
54
|
+
category: Api_Project_Category
|
|
55
|
+
repair: Api_Project_Repair | null
|
|
56
|
+
schedule_id: string | null
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type Api_Project_Add_Root_Intervals_Payload = {
|
|
60
|
+
history: number
|
|
61
|
+
with_status_in_progress: number
|
|
62
|
+
}
|
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
-
|
|
3
|
-
export type Api_Team = {
|
|
4
|
-
id: string
|
|
5
|
-
display_name: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type Api_Equipment_Short_Dto = {
|
|
9
|
-
id: string
|
|
10
|
-
name: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type Api_Repairs = {
|
|
14
|
-
id: string
|
|
15
|
-
name: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type Api_Projects = {
|
|
19
|
-
id: string
|
|
20
|
-
name: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type OptionFilters = {
|
|
24
|
-
teams?: Api_Team[]
|
|
25
|
-
equipments?: Api_Equipment_Short_Dto[]
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type Api_Equipment_Full_Dto = {
|
|
29
|
-
id: string
|
|
30
|
-
model: null | string
|
|
31
|
-
name: string
|
|
32
|
-
registration_number: string
|
|
33
|
-
repair_frequency: number
|
|
34
|
-
repair_range: number
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_Work_Zone_By_Tasks = {
|
|
38
|
-
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
39
|
-
id: string
|
|
40
|
-
tasks: unknown[]
|
|
41
|
-
title: string
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type Api_Task_Video_Source = {
|
|
45
|
-
id: string
|
|
46
|
-
name: string
|
|
47
|
-
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export type Api_Task_Video_Source_Stream = {
|
|
51
|
-
id: string
|
|
52
|
-
name: string
|
|
53
|
-
url: string
|
|
54
|
-
width: number
|
|
55
|
-
height: number
|
|
56
|
-
fps: string
|
|
57
|
-
login: string
|
|
58
|
-
password: string
|
|
59
|
-
comment: unknown
|
|
60
|
-
work_zones: unknown[]
|
|
61
|
-
video_source: unknown[]
|
|
62
|
-
related_video_sources: unknown[]
|
|
63
|
-
interactive_zones: unknown
|
|
64
|
-
domed: boolean
|
|
65
|
-
snapshot_path: string
|
|
66
|
-
shapes: unknown[]
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type Api_Create_Repair_With_Equipments = {
|
|
70
|
-
name: string
|
|
71
|
-
display_name: string
|
|
72
|
-
description?: string
|
|
73
|
-
equipment_id: string
|
|
74
|
-
power_output_MWh?: number
|
|
75
|
-
cost_per_MWh?: number
|
|
76
|
-
category: number
|
|
77
|
-
user_id_list?: string[]
|
|
78
|
-
team_id_list?: string[]
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
|
|
82
|
-
repair_template_id: string
|
|
83
|
-
plan_start_date: string
|
|
84
|
-
task_id_list: string[]
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export type Api_Update_Repair = {
|
|
88
|
-
name?: string
|
|
89
|
-
display_name?: string
|
|
90
|
-
description?: string | null
|
|
91
|
-
power_output_MWh?: number | null
|
|
92
|
-
cost_per_MWh?: number | null
|
|
93
|
-
category?: number
|
|
94
|
-
user_id_list?: string[]
|
|
95
|
-
team_id_list?: string[]
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export type Api_Repair_Dto = {
|
|
99
|
-
id: string
|
|
100
|
-
name: string
|
|
101
|
-
display_name: string
|
|
102
|
-
description: string
|
|
103
|
-
start_date: string
|
|
104
|
-
end_date: string
|
|
105
|
-
projects: Api_Projects[]
|
|
106
|
-
equipments: Api_Equipment_Full_Dto[]
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type Api_Repair_Template = {
|
|
110
|
-
id: string
|
|
111
|
-
repair_seconds: number
|
|
112
|
-
equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
|
|
113
|
-
category: {
|
|
114
|
-
display_name: string
|
|
115
|
-
name: string
|
|
116
|
-
code: number
|
|
117
|
-
}
|
|
118
|
-
task_list: string
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export type Api_Repair_Intersection_Task = {
|
|
122
|
-
position: {
|
|
123
|
-
id: string
|
|
124
|
-
display_name: string
|
|
125
|
-
name: string
|
|
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[]
|
|
136
|
-
user: {
|
|
137
|
-
id: string | null
|
|
138
|
-
full_name: string
|
|
139
|
-
}
|
|
140
|
-
}
|
|
1
|
+
import { Api_Status_DTO, Api_Tasks_Task_Dto } from '@/api/types/Api_Tasks'
|
|
2
|
+
|
|
3
|
+
export type Api_Team = {
|
|
4
|
+
id: string
|
|
5
|
+
display_name: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type Api_Equipment_Short_Dto = {
|
|
9
|
+
id: string
|
|
10
|
+
name: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type Api_Repairs = {
|
|
14
|
+
id: string
|
|
15
|
+
name: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type Api_Projects = {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type OptionFilters = {
|
|
24
|
+
teams?: Api_Team[]
|
|
25
|
+
equipments?: Api_Equipment_Short_Dto[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Api_Equipment_Full_Dto = {
|
|
29
|
+
id: string
|
|
30
|
+
model: null | string
|
|
31
|
+
name: string
|
|
32
|
+
registration_number: string
|
|
33
|
+
repair_frequency: number
|
|
34
|
+
repair_range: number
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_Work_Zone_By_Tasks = {
|
|
38
|
+
coordinates: { x0: number; x1: number; y0: number; y1: number }
|
|
39
|
+
id: string
|
|
40
|
+
tasks: unknown[]
|
|
41
|
+
title: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Api_Task_Video_Source = {
|
|
45
|
+
id: string
|
|
46
|
+
name: string
|
|
47
|
+
work_zones_by_tasks: Api_Work_Zone_By_Tasks[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type Api_Task_Video_Source_Stream = {
|
|
51
|
+
id: string
|
|
52
|
+
name: string
|
|
53
|
+
url: string
|
|
54
|
+
width: number
|
|
55
|
+
height: number
|
|
56
|
+
fps: string
|
|
57
|
+
login: string
|
|
58
|
+
password: string
|
|
59
|
+
comment: unknown
|
|
60
|
+
work_zones: unknown[]
|
|
61
|
+
video_source: unknown[]
|
|
62
|
+
related_video_sources: unknown[]
|
|
63
|
+
interactive_zones: unknown
|
|
64
|
+
domed: boolean
|
|
65
|
+
snapshot_path: string
|
|
66
|
+
shapes: unknown[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Api_Create_Repair_With_Equipments = {
|
|
70
|
+
name: string
|
|
71
|
+
display_name: string
|
|
72
|
+
description?: string
|
|
73
|
+
equipment_id: string
|
|
74
|
+
power_output_MWh?: number
|
|
75
|
+
cost_per_MWh?: number
|
|
76
|
+
category: number
|
|
77
|
+
user_id_list?: string[]
|
|
78
|
+
team_id_list?: string[]
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type Api_Create_Repair_With_Template = Omit<Api_Create_Repair_With_Equipments, 'category' | 'equipment_id'> & {
|
|
82
|
+
repair_template_id: string
|
|
83
|
+
plan_start_date: string
|
|
84
|
+
task_id_list: string[]
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type Api_Update_Repair = {
|
|
88
|
+
name?: string
|
|
89
|
+
display_name?: string
|
|
90
|
+
description?: string | null
|
|
91
|
+
power_output_MWh?: number | null
|
|
92
|
+
cost_per_MWh?: number | null
|
|
93
|
+
category?: number
|
|
94
|
+
user_id_list?: string[]
|
|
95
|
+
team_id_list?: string[]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type Api_Repair_Dto = {
|
|
99
|
+
id: string
|
|
100
|
+
name: string
|
|
101
|
+
display_name: string
|
|
102
|
+
description: string
|
|
103
|
+
start_date: string
|
|
104
|
+
end_date: string
|
|
105
|
+
projects: Api_Projects[]
|
|
106
|
+
equipments: Api_Equipment_Full_Dto[]
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type Api_Repair_Template = {
|
|
110
|
+
id: string
|
|
111
|
+
repair_seconds: number
|
|
112
|
+
equipment: Pick<Api_Equipment_Full_Dto, 'id' | 'name' | 'registration_number'>
|
|
113
|
+
category: {
|
|
114
|
+
display_name: string
|
|
115
|
+
name: string
|
|
116
|
+
code: number
|
|
117
|
+
}
|
|
118
|
+
task_list: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type Api_Repair_Intersection_Task = {
|
|
122
|
+
position: {
|
|
123
|
+
id: string
|
|
124
|
+
display_name: string
|
|
125
|
+
name: string
|
|
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[]
|
|
136
|
+
user: {
|
|
137
|
+
id: string | null
|
|
138
|
+
full_name: string
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
export type Api_Schedule_Shift_Template = {
|
|
2
|
-
id: string
|
|
3
|
-
name: string
|
|
4
|
-
from: string
|
|
5
|
-
to: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type Api_Schedule_Config = {
|
|
9
|
-
shift_templates: Api_Schedule_Shift_Template[]
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type Api_Schedule_Complete_Brigade = {
|
|
13
|
-
brigade_id: string
|
|
14
|
-
initial_first: string
|
|
15
|
-
initial_last: string
|
|
16
|
-
shift_template_id: string
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type Api_Schedule_Table_Brigade = {
|
|
20
|
-
id: string
|
|
21
|
-
name: string
|
|
22
|
-
initial_first: string
|
|
23
|
-
initial_last: string
|
|
24
|
-
initial_shift_template: Api_Schedule_Shift_Template
|
|
25
|
-
assigned_positions: number
|
|
26
|
-
total_positions: number
|
|
27
|
-
task_master: unknown | null
|
|
28
|
-
is_deleted: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type Api_Schedule_Add_Shift = {
|
|
32
|
-
brigade_id: string
|
|
33
|
-
dates: string[]
|
|
34
|
-
shift_template_id: string
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_Schedule_Swap_Shifts = {
|
|
38
|
-
brigade_id: string
|
|
39
|
-
shifts: string[]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type Api_Schedule_Edit_Shifts = {
|
|
43
|
-
brigade_id: string
|
|
44
|
-
shift_ids: string[]
|
|
45
|
-
shift_template_id: string
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export type Api_Schedule_Shift = {
|
|
49
|
-
id: string
|
|
50
|
-
from: string
|
|
51
|
-
to: string
|
|
52
|
-
shift_template: Api_Schedule_Shift_Template
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export type Api_Schedule_Item = {
|
|
56
|
-
brigade: Api_Schedule_Table_Brigade
|
|
57
|
-
shifts: { date: string; shift: Api_Schedule_Shift }[]
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type Api_Schedule_Brigade_To_Swap = {
|
|
61
|
-
id: string
|
|
62
|
-
name: string
|
|
63
|
-
shift_template: Api_Schedule_Shift_Template
|
|
64
|
-
}
|
|
1
|
+
export type Api_Schedule_Shift_Template = {
|
|
2
|
+
id: string
|
|
3
|
+
name: string
|
|
4
|
+
from: string
|
|
5
|
+
to: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type Api_Schedule_Config = {
|
|
9
|
+
shift_templates: Api_Schedule_Shift_Template[]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type Api_Schedule_Complete_Brigade = {
|
|
13
|
+
brigade_id: string
|
|
14
|
+
initial_first: string
|
|
15
|
+
initial_last: string
|
|
16
|
+
shift_template_id: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Api_Schedule_Table_Brigade = {
|
|
20
|
+
id: string
|
|
21
|
+
name: string
|
|
22
|
+
initial_first: string
|
|
23
|
+
initial_last: string
|
|
24
|
+
initial_shift_template: Api_Schedule_Shift_Template
|
|
25
|
+
assigned_positions: number
|
|
26
|
+
total_positions: number
|
|
27
|
+
task_master: unknown | null
|
|
28
|
+
is_deleted: boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type Api_Schedule_Add_Shift = {
|
|
32
|
+
brigade_id: string
|
|
33
|
+
dates: string[]
|
|
34
|
+
shift_template_id: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_Schedule_Swap_Shifts = {
|
|
38
|
+
brigade_id: string
|
|
39
|
+
shifts: string[]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Api_Schedule_Edit_Shifts = {
|
|
43
|
+
brigade_id: string
|
|
44
|
+
shift_ids: string[]
|
|
45
|
+
shift_template_id: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type Api_Schedule_Shift = {
|
|
49
|
+
id: string
|
|
50
|
+
from: string
|
|
51
|
+
to: string
|
|
52
|
+
shift_template: Api_Schedule_Shift_Template
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Api_Schedule_Item = {
|
|
56
|
+
brigade: Api_Schedule_Table_Brigade
|
|
57
|
+
shifts: { date: string; shift: Api_Schedule_Shift }[]
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type Api_Schedule_Brigade_To_Swap = {
|
|
61
|
+
id: string
|
|
62
|
+
name: string
|
|
63
|
+
shift_template: Api_Schedule_Shift_Template
|
|
64
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
|
|
2
|
-
import { Api_User_Archive_History_Item } from '@/api/types/Api_User'
|
|
3
|
-
|
|
4
|
-
export type Api_Search_User_Passes = {
|
|
5
|
-
id: string
|
|
6
|
-
type: string
|
|
7
|
-
uuid: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type Api_Search_User_Positions = {
|
|
11
|
-
id: string
|
|
12
|
-
name: string
|
|
13
|
-
display_name: string
|
|
14
|
-
description: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type Api_Search_User_Roles = {
|
|
18
|
-
id: string
|
|
19
|
-
name: string
|
|
20
|
-
display_name: string
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type Api_Search_User_Teams = {
|
|
24
|
-
id: string
|
|
25
|
-
name: string
|
|
26
|
-
display_name: string
|
|
27
|
-
roles: Api_Search_User_Roles[]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type Api_Search_User_Photos = {
|
|
31
|
-
id: string
|
|
32
|
-
name: string
|
|
33
|
-
path: string
|
|
34
|
-
type: string
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type Api_Search_User = {
|
|
38
|
-
id: string
|
|
39
|
-
full_name: string
|
|
40
|
-
last_name: string
|
|
41
|
-
first_name: string
|
|
42
|
-
patronymic: string
|
|
43
|
-
email: string
|
|
44
|
-
phone: string
|
|
45
|
-
divisions: string
|
|
46
|
-
personnel_number: string
|
|
47
|
-
passes: Api_Search_User_Passes[]
|
|
48
|
-
positions: Api_Search_User_Positions[]
|
|
49
|
-
teams: Api_Search_User_Teams[]
|
|
50
|
-
photos: Api_Search_User_Photos[]
|
|
51
|
-
archiveHistory: Api_User_Archive_History_Item[]
|
|
52
|
-
has_brigades?: boolean
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export type Api_Search_Instruments = {
|
|
56
|
-
id: string
|
|
57
|
-
full_name: string
|
|
58
|
-
last_name: string
|
|
59
|
-
first_name: string
|
|
60
|
-
patronymic: string
|
|
61
|
-
divisions: string
|
|
62
|
-
personnel_number: string
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
|
|
66
|
-
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type Api_Search_Module = {
|
|
70
|
-
id: string
|
|
71
|
-
RFID: string
|
|
72
|
-
inventory_number: string
|
|
73
|
-
title: string
|
|
74
|
-
type: string
|
|
75
|
-
mac: unknown
|
|
76
|
-
wlan: unknown
|
|
77
|
-
warehouses: Api_Warehouse_Search[]
|
|
78
|
-
user: Api_Search_Module_User
|
|
79
|
-
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
80
|
-
}
|
|
1
|
+
import { Api_Warehouse_Search } from '@/api/types/Api_Instruments'
|
|
2
|
+
import { Api_User_Archive_History_Item } from '@/api/types/Api_User'
|
|
3
|
+
|
|
4
|
+
export type Api_Search_User_Passes = {
|
|
5
|
+
id: string
|
|
6
|
+
type: string
|
|
7
|
+
uuid: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type Api_Search_User_Positions = {
|
|
11
|
+
id: string
|
|
12
|
+
name: string
|
|
13
|
+
display_name: string
|
|
14
|
+
description: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type Api_Search_User_Roles = {
|
|
18
|
+
id: string
|
|
19
|
+
name: string
|
|
20
|
+
display_name: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type Api_Search_User_Teams = {
|
|
24
|
+
id: string
|
|
25
|
+
name: string
|
|
26
|
+
display_name: string
|
|
27
|
+
roles: Api_Search_User_Roles[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type Api_Search_User_Photos = {
|
|
31
|
+
id: string
|
|
32
|
+
name: string
|
|
33
|
+
path: string
|
|
34
|
+
type: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type Api_Search_User = {
|
|
38
|
+
id: string
|
|
39
|
+
full_name: string
|
|
40
|
+
last_name: string
|
|
41
|
+
first_name: string
|
|
42
|
+
patronymic: string
|
|
43
|
+
email: string
|
|
44
|
+
phone: string
|
|
45
|
+
divisions: string
|
|
46
|
+
personnel_number: string
|
|
47
|
+
passes: Api_Search_User_Passes[]
|
|
48
|
+
positions: Api_Search_User_Positions[]
|
|
49
|
+
teams: Api_Search_User_Teams[]
|
|
50
|
+
photos: Api_Search_User_Photos[]
|
|
51
|
+
archiveHistory: Api_User_Archive_History_Item[]
|
|
52
|
+
has_brigades?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Api_Search_Instruments = {
|
|
56
|
+
id: string
|
|
57
|
+
full_name: string
|
|
58
|
+
last_name: string
|
|
59
|
+
first_name: string
|
|
60
|
+
patronymic: string
|
|
61
|
+
divisions: string
|
|
62
|
+
personnel_number: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type Api_Search_Module_User = Pick<Api_Search_User, 'id' | 'full_name' | 'email'> & {
|
|
66
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Api_Search_Module = {
|
|
70
|
+
id: string
|
|
71
|
+
RFID: string
|
|
72
|
+
inventory_number: string
|
|
73
|
+
title: string
|
|
74
|
+
type: string
|
|
75
|
+
mac: unknown
|
|
76
|
+
wlan: unknown
|
|
77
|
+
warehouses: Api_Warehouse_Search[]
|
|
78
|
+
user: Api_Search_Module_User
|
|
79
|
+
teams: Omit<Api_Search_User_Teams, 'roles'>[]
|
|
80
|
+
}
|