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.
@@ -1,47 +1,38 @@
1
- import { UI_I_Pagination } from '~/models/interfaces'
2
- import { UI_T_Schema } from '~/models/types'
3
-
4
- export interface UI_I_ErrorValidationField<T = string> {
5
- error_message: string
6
- field: T
7
- }
8
-
9
- export interface API_UI_I_Error {
10
- data: {
11
- error_code: number
12
- error_message: any
13
- name?: any
14
- }
15
- }
16
-
17
- export interface API_UI_I_NodeStatus {
18
- text: string
19
- code: number
20
- }
21
-
22
- export interface API_UI_I_NodeState extends API_UI_I_NodeStatus {
23
- icon: string
24
- }
25
-
26
- export interface API_UI_I_Node {
27
- id: string
28
- name: string
29
- state: API_UI_I_NodeState
30
- status: API_UI_I_NodeStatus
31
- net_bridge?: string
32
- console_type?: string
33
- }
34
-
35
- export interface UI_I_SchemaTablePayload {
36
- schema: UI_T_Schema
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.1.9",
4
+ "version": "1.1.11",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",