@kumori/aurora-interfaces 1.0.2 → 1.0.4
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,96 +1,104 @@
|
|
|
1
|
-
import { Notification } from
|
|
2
|
-
import { Plan } from
|
|
3
|
-
import { Token } from
|
|
4
|
-
import { Tenant } from
|
|
5
|
-
import { ClusterToken } from
|
|
6
|
-
import { Organization } from
|
|
1
|
+
import { Notification } from "./notification-interface";
|
|
2
|
+
import { Plan } from "./plan-interface";
|
|
3
|
+
import { Token } from "./token-interface";
|
|
4
|
+
import { Tenant } from "./tenant-interface";
|
|
5
|
+
import { ClusterToken } from "./token-interface";
|
|
6
|
+
import { Organization } from "./organization-interface";
|
|
7
7
|
|
|
8
8
|
export interface Platform {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
9
|
+
instanceName: string;
|
|
10
|
+
platformVersion: string;
|
|
11
|
+
referenceDomain: string;
|
|
12
|
+
apiVersions: string[];
|
|
13
|
+
oidProviders: string[];
|
|
14
|
+
iaasProviders: Record<string, any>;
|
|
15
|
+
freemiumAdvancedLimits: {
|
|
16
|
+
vcpu: { lowmark: number; highmark: number; unit: string };
|
|
17
|
+
memory: { lowmark: number; highmark: number; unit: string };
|
|
18
|
+
vstorage: { lowmark: number; highmark: number; unit: string };
|
|
19
|
+
nrstorage: { lowmark: number; highmark: number; unit: string };
|
|
20
|
+
rstorage: { lowmark: number; highmark: number; unit: string };
|
|
21
|
+
storage: { lowmark: number; highmark: number; unit: string };
|
|
22
|
+
cost: { lowmark: number; highmark: number; unit: string };
|
|
23
|
+
};
|
|
24
|
+
freemiumLimits: {
|
|
25
|
+
vcpu: { lowmark: number; highmark: number; unit: string };
|
|
26
|
+
memory: { lowmark: number; highmark: number; unit: string };
|
|
27
|
+
vstorage: { lowmark: number; highmark: number; unit: string };
|
|
28
|
+
nrstorage: { lowmark: number; highmark: number; unit: string };
|
|
29
|
+
rstorage: { lowmark: number; highmark: number; unit: string };
|
|
30
|
+
storage: { lowmark: number; highmark: number; unit: string };
|
|
31
|
+
cost: { lowmark: number; highmark: number; unit: string };
|
|
32
|
+
};
|
|
33
|
+
portrange: number[];
|
|
34
34
|
}
|
|
35
35
|
export interface UserData {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
surname: string;
|
|
39
|
+
provider: {
|
|
40
40
|
name: string;
|
|
41
41
|
email: string;
|
|
42
42
|
password?: string;
|
|
43
43
|
}[];
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
44
|
+
notificationsEnabled: string;
|
|
45
|
+
organizations: Organization[];
|
|
46
|
+
clusterTokens: ClusterToken[];
|
|
47
|
+
tokens: Token[];
|
|
48
|
+
tenants: Tenant[];
|
|
49
|
+
axebowPlan: "freemium" | "premium";
|
|
50
|
+
companyName: string;
|
|
51
|
+
rol: string;
|
|
52
|
+
platform?: Platform;
|
|
53
|
+
status?: "logged" | "notlogged" | "maintenance" | "unknown";
|
|
54
|
+
notifications?: Notification[];
|
|
55
|
+
plans?: Plan[];
|
|
56
|
+
discoveryMethod?: string;
|
|
56
57
|
}
|
|
57
58
|
export class User implements UserData {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
59
|
+
constructor(
|
|
60
|
+
userData: UserData,
|
|
61
|
+
tenants: Tenant[] = [],
|
|
62
|
+
organizations: Organization[] = [],
|
|
63
|
+
platform?: Platform,
|
|
64
|
+
) {
|
|
65
|
+
this.id = userData.id || "";
|
|
66
|
+
this.name = userData.name || "";
|
|
67
|
+
this.surname = userData.surname || "";
|
|
68
|
+
this.notificationsEnabled = userData.notificationsEnabled || "false";
|
|
69
|
+
this.organizations = organizations || [];
|
|
70
|
+
this.clusterTokens = userData.clusterTokens || [];
|
|
71
|
+
this.tokens = userData.tokens || [];
|
|
72
|
+
this.tenants = tenants || [];
|
|
73
|
+
this.axebowPlan = userData.axebowPlan || "freemium";
|
|
74
|
+
this.companyName = userData.companyName || "";
|
|
75
|
+
this.rol = userData.rol || "user";
|
|
76
|
+
this.platform = platform ?? userData.platform;
|
|
77
|
+
this.status = userData.status || "logged";
|
|
78
|
+
this.notifications = userData.notifications || [];
|
|
79
|
+
this.plans = userData.plans || [];
|
|
80
|
+
this.provider = userData.provider;
|
|
81
|
+
this.discoveryMethod = userData.discoveryMethod;
|
|
82
|
+
}
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
surname: string;
|
|
86
|
+
provider: {
|
|
80
87
|
name: string;
|
|
81
88
|
email: string;
|
|
82
89
|
password?: string;
|
|
83
90
|
}[];
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
notificationsEnabled: string;
|
|
92
|
+
organizations: Organization[];
|
|
93
|
+
clusterTokens: ClusterToken[];
|
|
94
|
+
tokens: Token[];
|
|
95
|
+
tenants: Tenant[];
|
|
96
|
+
axebowPlan: "freemium" | "premium";
|
|
97
|
+
companyName: string;
|
|
98
|
+
rol: string;
|
|
99
|
+
platform?: Platform;
|
|
100
|
+
status?: "logged" | "notlogged" | "maintenance" | "unknown";
|
|
101
|
+
notifications?: Notification[];
|
|
102
|
+
plans?: Plan[];
|
|
103
|
+
discoveryMethod?: string;
|
|
96
104
|
}
|