bfg-common 1.1.9 → 1.1.11
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/models/store/interfaces.ts +38 -47
- package/models/store/types.ts +12 -0
- package/package.json +1 -1
|
@@ -1,47 +1,38 @@
|
|
|
1
|
-
import { UI_I_Pagination } from '~/models/interfaces'
|
|
2
|
-
import { UI_T_Schema } from '~/models/types'
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
|
|
40
|
-
pagination: UI_I_Pagination
|
|
41
|
-
type: any
|
|
42
|
-
sortBy: string | null
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface UI_I_CommitOptions {
|
|
46
|
-
root: boolean
|
|
47
|
-
}
|
|
1
|
+
import type { UI_I_Pagination } from '~/models/interfaces'
|
|
2
|
+
import type { UI_T_Schema } from '~/models/types'
|
|
3
|
+
import type { UI_T_VmState } from '~/models/store/types'
|
|
4
|
+
|
|
5
|
+
export interface UI_I_ErrorValidationField<T = string> {
|
|
6
|
+
error_message: string
|
|
7
|
+
field: T
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface API_UI_I_Error {
|
|
11
|
+
data: {
|
|
12
|
+
error_code: number
|
|
13
|
+
error_message: any
|
|
14
|
+
name?: any
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface API_UI_I_Node {
|
|
19
|
+
id: string
|
|
20
|
+
name: string
|
|
21
|
+
state: UI_T_VmState
|
|
22
|
+
net_bridge?: string
|
|
23
|
+
console_type?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface UI_I_SchemaTablePayload {
|
|
27
|
+
schema: UI_T_Schema
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface UI_I_TablePayload extends UI_I_SchemaTablePayload {
|
|
31
|
+
pagination: UI_I_Pagination
|
|
32
|
+
type: any
|
|
33
|
+
sortBy: string | null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface UI_I_CommitOptions {
|
|
37
|
+
root: boolean
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type UI_T_VmState =
|
|
2
|
+
| 0 // ICON: vm-error TEXT: Unknown
|
|
3
|
+
| 1 // ICON: vm TEXT: Power Off
|
|
4
|
+
| 2 // ICON: vm-on TEXT: Powered On
|
|
5
|
+
| 3 // ICON: vm-suspended TEXT: Suspended
|
|
6
|
+
| 4 // ICON: vm-error TEXT: Error
|
|
7
|
+
| 5 // ICON: vm-warning TEXT: Warning
|
|
8
|
+
| 6 // ICON: vm-warning TEXT: Pending
|
|
9
|
+
| 7 // ICON: vm-suspended TEXT: Paused
|
|
10
|
+
| 8 // ICON: vm-warning TEXT: Blocked
|
|
11
|
+
| 9 // ICON: vm-warning TEXT: Shutting Down
|
|
12
|
+
| 10 // ICON: vm-warning TEXT: Shutting Off
|