bfg-common 1.3.26 → 1.3.28
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.
|
@@ -42,7 +42,7 @@ import type {
|
|
|
42
42
|
UI_I_Localization,
|
|
43
43
|
UI_I_Pagination,
|
|
44
44
|
UI_I_DataTableQuery,
|
|
45
|
-
} from '~/
|
|
45
|
+
} from '~/lib/models/interfaces'
|
|
46
46
|
import type { I_Task } from '~/lib/models/store/tasks/interfaces'
|
|
47
47
|
|
|
48
48
|
definePageMeta({
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export enum UI_E_RecentTaskStatus {
|
|
2
|
+
'queued',
|
|
3
|
+
'running',
|
|
4
|
+
'completed',
|
|
5
|
+
'failed',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum UI_E_IconNameByRecentTaskStatus {
|
|
9
|
+
'help-icon',
|
|
10
|
+
'green-play',
|
|
11
|
+
'success-circle',
|
|
12
|
+
'error-outline',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum UI_E_TaskStatus {
|
|
16
|
+
'queued',
|
|
17
|
+
'running',
|
|
18
|
+
'completed',
|
|
19
|
+
'failed',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export enum UI_E_IconNameByTaskStatus {
|
|
23
|
+
'help-icon',
|
|
24
|
+
'green-play',
|
|
25
|
+
'success-circle',
|
|
26
|
+
'error-outline',
|
|
27
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { UI_I_LoadingPayload } from '~/lib/models/store/interfaces'
|
|
2
|
+
import type {
|
|
3
|
+
UI_T_TasksStateLoading,
|
|
4
|
+
UI_T_TaskStatus,
|
|
5
|
+
} from '~/lib/models/store/tasks/types'
|
|
6
|
+
import type { API_UI_I_DataTable } from '~/lib/models/interfaces'
|
|
7
|
+
|
|
8
|
+
export interface UI_I_TasksLoadingPayload
|
|
9
|
+
extends UI_I_LoadingPayload<UI_T_TasksStateLoading> {}
|
|
10
|
+
|
|
11
|
+
export interface UI_I_RTaskQuery {
|
|
12
|
+
last: number
|
|
13
|
+
sortBy?: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface API_UI_I_RecentTaskItem<T, E = any> {
|
|
17
|
+
args: string // base64
|
|
18
|
+
completion: number
|
|
19
|
+
creation_time: number
|
|
20
|
+
details: string
|
|
21
|
+
error: string
|
|
22
|
+
id: string
|
|
23
|
+
initiator: string
|
|
24
|
+
method: string
|
|
25
|
+
mod_revision: number
|
|
26
|
+
server: string
|
|
27
|
+
start_time: number
|
|
28
|
+
status: UI_T_TaskStatus
|
|
29
|
+
target: string
|
|
30
|
+
target_type: T
|
|
31
|
+
task_name: string
|
|
32
|
+
zone: string
|
|
33
|
+
extra: E // Динамические данные зависит от того что нужно на фронте
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface UI_I_RecentTaskItem<T, E = any> {
|
|
37
|
+
completion: string
|
|
38
|
+
queuedFor: number
|
|
39
|
+
execution: number
|
|
40
|
+
details: string
|
|
41
|
+
error: string
|
|
42
|
+
initiator: string
|
|
43
|
+
server: string
|
|
44
|
+
startTime: string
|
|
45
|
+
status: UI_T_TaskStatus
|
|
46
|
+
statusIcon: string
|
|
47
|
+
statusText: string
|
|
48
|
+
target: string
|
|
49
|
+
targetType: T
|
|
50
|
+
taskName: string
|
|
51
|
+
id: string
|
|
52
|
+
zone: string
|
|
53
|
+
extra: E
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface API_UI_I_RecentTask<T, I = API_UI_I_RecentTaskItem<T>> {
|
|
57
|
+
items: I[]
|
|
58
|
+
last: number
|
|
59
|
+
}
|
|
60
|
+
export interface UI_I_RawRecentTask<T> extends API_UI_I_RecentTask<T> {}
|
|
61
|
+
export interface UI_I_RecentTask<T>
|
|
62
|
+
extends API_UI_I_RecentTask<UI_I_RecentTaskItem<T>> {}
|
|
63
|
+
export interface UI_I_RawRecentTaskItem<T, E = any>
|
|
64
|
+
extends API_UI_I_RecentTaskItem<T, E> {}
|
|
65
|
+
|
|
66
|
+
export interface API_UI_I_TaskItem<T, E = any> {
|
|
67
|
+
completion: number
|
|
68
|
+
creation_time: number
|
|
69
|
+
details: string
|
|
70
|
+
error: string
|
|
71
|
+
id: string
|
|
72
|
+
initiator: string
|
|
73
|
+
method: string
|
|
74
|
+
mod_revision: number
|
|
75
|
+
server: string
|
|
76
|
+
start_time: number
|
|
77
|
+
status: UI_T_TaskStatus
|
|
78
|
+
target: string
|
|
79
|
+
target_type: T
|
|
80
|
+
task_name: string
|
|
81
|
+
zone: string
|
|
82
|
+
extra: E // Динамические данные зависит от того что нужно на фронте
|
|
83
|
+
args?: string // base64
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface UI_I_TaskItem<T> {
|
|
87
|
+
relatedEvents: any
|
|
88
|
+
completion: number | string
|
|
89
|
+
queuedFor: number
|
|
90
|
+
execution: number
|
|
91
|
+
details: string
|
|
92
|
+
error: string
|
|
93
|
+
initiator: string
|
|
94
|
+
server: string
|
|
95
|
+
startTime: number | string
|
|
96
|
+
statusIcon: string
|
|
97
|
+
statusText: string
|
|
98
|
+
status: UI_T_TaskStatus
|
|
99
|
+
target: string
|
|
100
|
+
targetType: T
|
|
101
|
+
taskName: string
|
|
102
|
+
id: string
|
|
103
|
+
zone: string
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface API_UI_I_Task<T>
|
|
107
|
+
extends API_UI_I_DataTable<API_UI_I_TaskItem<T>[]> {}
|
|
108
|
+
export interface UI_I_Task<T> extends API_UI_I_DataTable<UI_I_TaskItem<T>[]> {}
|