@remnawave/backend-contract 2.3.67 → 2.3.69
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/build/backend/api/controllers/bandwidth-stats.d.ts +24 -0
- package/build/backend/api/controllers/bandwidth-stats.d.ts.map +1 -0
- package/build/backend/api/controllers/bandwidth-stats.js +36 -0
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/nodes.d.ts +0 -5
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +0 -5
- package/build/backend/api/controllers/users.d.ts +0 -3
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -3
- package/build/backend/api/controllers-info.d.ts +8 -12
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +8 -12
- package/build/backend/api/routes.d.ts +18 -8
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +18 -8
- package/build/backend/commands/bandwidth-stats/index.d.ts +4 -0
- package/build/backend/commands/bandwidth-stats/index.d.ts.map +1 -0
- package/build/{frontend/commands/nodes/stats → backend/commands/bandwidth-stats}/index.js +3 -3
- package/build/backend/commands/{nodes/stats/get-node-user-usage-by-range.command.d.ts → bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts} +2 -2
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +28 -0
- package/build/backend/commands/{users/get-user-usage-by-range.command.d.ts → bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts} +11 -11
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +29 -0
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts +3 -0
- package/build/backend/commands/bandwidth-stats/legacy/index.d.ts.map +1 -0
- package/build/backend/commands/{nodes/stats → bandwidth-stats/legacy}/index.js +2 -3
- package/build/backend/commands/{nodes/stats/get-realtime-usage.command.d.ts → bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.d.ts} +8 -8
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.js +25 -0
- package/build/backend/commands/{nodes/stats/get-nodes-usage-by-range.command.d.ts → bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts} +28 -28
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -0
- package/build/backend/commands/{nodes/stats/get-nodes-usage-by-range.command.js → bandwidth-stats/nodes/get-stats-nodes-usage.command.js} +10 -10
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts +3 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/nodes/index.js +18 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +150 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +40 -0
- package/build/backend/commands/bandwidth-stats/users/index.d.ts +2 -0
- package/build/backend/commands/bandwidth-stats/users/index.d.ts.map +1 -0
- package/build/backend/commands/bandwidth-stats/users/index.js +17 -0
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +34 -34
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +22 -22
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +22 -22
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +22 -22
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +32 -32
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +22 -22
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +12 -12
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +16 -16
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +12 -12
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/nodes/actions/disable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/enable.command.d.ts +4 -4
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/nodes/create.command.d.ts +6 -6
- package/build/backend/commands/nodes/get-all.command.d.ts +4 -4
- package/build/backend/commands/nodes/get-one.command.d.ts +4 -4
- package/build/backend/commands/nodes/index.d.ts +0 -1
- package/build/backend/commands/nodes/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/index.js +0 -1
- package/build/backend/commands/nodes/update.command.d.ts +6 -6
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +4 -4
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +6 -6
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +6 -6
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/models/config-profile.schema.d.ts +12 -12
- package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -3
- package/build/backend/models/infra-billing-node.schema.d.ts +5 -5
- package/build/backend/models/infra-provider.schema.d.ts +8 -8
- package/build/backend/models/last-connected-node.schema.d.ts +2 -2
- package/build/backend/models/nodes.schema.d.ts +2 -2
- package/build/frontend/api/controllers/bandwidth-stats.js +36 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/nodes.js +0 -5
- package/build/frontend/api/controllers/users.js +0 -3
- package/build/frontend/api/controllers-info.js +8 -12
- package/build/frontend/api/routes.js +18 -8
- package/build/frontend/commands/bandwidth-stats/index.js +19 -0
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +28 -0
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +29 -0
- package/build/frontend/commands/bandwidth-stats/legacy/index.js +18 -0
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-realtime-usage.command.js +25 -0
- package/build/frontend/commands/{nodes/stats/get-nodes-usage-by-range.command.js → bandwidth-stats/nodes/get-stats-nodes-usage.command.js} +10 -10
- package/build/frontend/commands/bandwidth-stats/nodes/index.js +18 -0
- package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +40 -0
- package/build/frontend/commands/bandwidth-stats/users/index.js +17 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/nodes/index.js +0 -1
- package/build/frontend/commands/users/index.js +0 -1
- package/package.json +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.js +0 -28
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts.map +0 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.js +0 -25
- package/build/backend/commands/nodes/stats/index.d.ts +0 -4
- package/build/backend/commands/nodes/stats/index.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.js +0 -29
- package/build/frontend/commands/nodes/stats/get-node-user-usage-by-range.command.js +0 -28
- package/build/frontend/commands/nodes/stats/get-realtime-usage.command.js +0 -25
- package/build/frontend/commands/users/get-user-usage-by-range.command.js +0 -29
|
@@ -70,6 +70,7 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
70
70
|
templateJson?: unknown;
|
|
71
71
|
}>, "many">;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
total: number;
|
|
73
74
|
templates: {
|
|
74
75
|
uuid: string;
|
|
75
76
|
name: string;
|
|
@@ -78,8 +79,8 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
78
79
|
encodedTemplateYaml: string | null;
|
|
79
80
|
templateJson?: unknown;
|
|
80
81
|
}[];
|
|
81
|
-
total: number;
|
|
82
82
|
}, {
|
|
83
|
+
total: number;
|
|
83
84
|
templates: {
|
|
84
85
|
uuid: string;
|
|
85
86
|
name: string;
|
|
@@ -88,10 +89,10 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
88
89
|
encodedTemplateYaml: string | null;
|
|
89
90
|
templateJson?: unknown;
|
|
90
91
|
}[];
|
|
91
|
-
total: number;
|
|
92
92
|
}>;
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
response: {
|
|
95
|
+
total: number;
|
|
95
96
|
templates: {
|
|
96
97
|
uuid: string;
|
|
97
98
|
name: string;
|
|
@@ -100,10 +101,10 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
100
101
|
encodedTemplateYaml: string | null;
|
|
101
102
|
templateJson?: unknown;
|
|
102
103
|
}[];
|
|
103
|
-
total: number;
|
|
104
104
|
};
|
|
105
105
|
}, {
|
|
106
106
|
response: {
|
|
107
|
+
total: number;
|
|
107
108
|
templates: {
|
|
108
109
|
uuid: string;
|
|
109
110
|
name: string;
|
|
@@ -112,7 +113,6 @@ export declare namespace ReorderSubscriptionTemplateCommand {
|
|
|
112
113
|
encodedTemplateYaml: string | null;
|
|
113
114
|
templateJson?: unknown;
|
|
114
115
|
}[];
|
|
115
|
-
total: number;
|
|
116
116
|
};
|
|
117
117
|
}>;
|
|
118
118
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -36,6 +36,7 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
36
36
|
templateJson?: unknown;
|
|
37
37
|
}>, "many">;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
total: number;
|
|
39
40
|
templates: {
|
|
40
41
|
uuid: string;
|
|
41
42
|
name: string;
|
|
@@ -44,8 +45,8 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
44
45
|
encodedTemplateYaml: string | null;
|
|
45
46
|
templateJson?: unknown;
|
|
46
47
|
}[];
|
|
47
|
-
total: number;
|
|
48
48
|
}, {
|
|
49
|
+
total: number;
|
|
49
50
|
templates: {
|
|
50
51
|
uuid: string;
|
|
51
52
|
name: string;
|
|
@@ -54,10 +55,10 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
54
55
|
encodedTemplateYaml: string | null;
|
|
55
56
|
templateJson?: unknown;
|
|
56
57
|
}[];
|
|
57
|
-
total: number;
|
|
58
58
|
}>;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
60
|
response: {
|
|
61
|
+
total: number;
|
|
61
62
|
templates: {
|
|
62
63
|
uuid: string;
|
|
63
64
|
name: string;
|
|
@@ -66,10 +67,10 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
66
67
|
encodedTemplateYaml: string | null;
|
|
67
68
|
templateJson?: unknown;
|
|
68
69
|
}[];
|
|
69
|
-
total: number;
|
|
70
70
|
};
|
|
71
71
|
}, {
|
|
72
72
|
response: {
|
|
73
|
+
total: number;
|
|
73
74
|
templates: {
|
|
74
75
|
uuid: string;
|
|
75
76
|
name: string;
|
|
@@ -78,7 +79,6 @@ export declare namespace GetSubscriptionTemplatesCommand {
|
|
|
78
79
|
encodedTemplateYaml: string | null;
|
|
79
80
|
templateJson?: unknown;
|
|
80
81
|
}[];
|
|
81
|
-
total: number;
|
|
82
82
|
};
|
|
83
83
|
}>;
|
|
84
84
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -39,8 +39,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
39
39
|
}>, "many">;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
nodeUuid: string;
|
|
42
|
-
usersOnline: number;
|
|
43
42
|
nodeName: string;
|
|
43
|
+
usersOnline: number;
|
|
44
44
|
countryEmoji: string;
|
|
45
45
|
providerName: string;
|
|
46
46
|
inboundsStats: {
|
|
@@ -55,8 +55,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
55
55
|
}[];
|
|
56
56
|
}, {
|
|
57
57
|
nodeUuid: string;
|
|
58
|
-
usersOnline: number;
|
|
59
58
|
nodeName: string;
|
|
59
|
+
usersOnline: number;
|
|
60
60
|
countryEmoji: string;
|
|
61
61
|
providerName: string;
|
|
62
62
|
inboundsStats: {
|
|
@@ -73,8 +73,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
nodes: {
|
|
75
75
|
nodeUuid: string;
|
|
76
|
-
usersOnline: number;
|
|
77
76
|
nodeName: string;
|
|
77
|
+
usersOnline: number;
|
|
78
78
|
countryEmoji: string;
|
|
79
79
|
providerName: string;
|
|
80
80
|
inboundsStats: {
|
|
@@ -91,8 +91,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
91
91
|
}, {
|
|
92
92
|
nodes: {
|
|
93
93
|
nodeUuid: string;
|
|
94
|
-
usersOnline: number;
|
|
95
94
|
nodeName: string;
|
|
95
|
+
usersOnline: number;
|
|
96
96
|
countryEmoji: string;
|
|
97
97
|
providerName: string;
|
|
98
98
|
inboundsStats: {
|
|
@@ -111,8 +111,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
111
111
|
response: {
|
|
112
112
|
nodes: {
|
|
113
113
|
nodeUuid: string;
|
|
114
|
-
usersOnline: number;
|
|
115
114
|
nodeName: string;
|
|
115
|
+
usersOnline: number;
|
|
116
116
|
countryEmoji: string;
|
|
117
117
|
providerName: string;
|
|
118
118
|
inboundsStats: {
|
|
@@ -131,8 +131,8 @@ export declare namespace GetNodesMetricsCommand {
|
|
|
131
131
|
response: {
|
|
132
132
|
nodes: {
|
|
133
133
|
nodeUuid: string;
|
|
134
|
-
usersOnline: number;
|
|
135
134
|
nodeName: string;
|
|
135
|
+
usersOnline: number;
|
|
136
136
|
countryEmoji: string;
|
|
137
137
|
providerName: string;
|
|
138
138
|
inboundsStats: {
|
|
@@ -32,9 +32,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
32
32
|
}>, "many">;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
uuid: string;
|
|
35
|
+
nodeName: string;
|
|
35
36
|
countryCode: string;
|
|
36
37
|
configProfileUuid: string;
|
|
37
|
-
nodeName: string;
|
|
38
38
|
activeSquads: {
|
|
39
39
|
activeInbounds: string[];
|
|
40
40
|
squadName: string;
|
|
@@ -42,9 +42,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
42
42
|
configProfileName: string;
|
|
43
43
|
}, {
|
|
44
44
|
uuid: string;
|
|
45
|
+
nodeName: string;
|
|
45
46
|
countryCode: string;
|
|
46
47
|
configProfileUuid: string;
|
|
47
|
-
nodeName: string;
|
|
48
48
|
activeSquads: {
|
|
49
49
|
activeInbounds: string[];
|
|
50
50
|
squadName: string;
|
|
@@ -55,9 +55,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
55
55
|
userUuid: string;
|
|
56
56
|
activeNodes: {
|
|
57
57
|
uuid: string;
|
|
58
|
+
nodeName: string;
|
|
58
59
|
countryCode: string;
|
|
59
60
|
configProfileUuid: string;
|
|
60
|
-
nodeName: string;
|
|
61
61
|
activeSquads: {
|
|
62
62
|
activeInbounds: string[];
|
|
63
63
|
squadName: string;
|
|
@@ -68,9 +68,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
68
68
|
userUuid: string;
|
|
69
69
|
activeNodes: {
|
|
70
70
|
uuid: string;
|
|
71
|
+
nodeName: string;
|
|
71
72
|
countryCode: string;
|
|
72
73
|
configProfileUuid: string;
|
|
73
|
-
nodeName: string;
|
|
74
74
|
activeSquads: {
|
|
75
75
|
activeInbounds: string[];
|
|
76
76
|
squadName: string;
|
|
@@ -83,9 +83,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
83
83
|
userUuid: string;
|
|
84
84
|
activeNodes: {
|
|
85
85
|
uuid: string;
|
|
86
|
+
nodeName: string;
|
|
86
87
|
countryCode: string;
|
|
87
88
|
configProfileUuid: string;
|
|
88
|
-
nodeName: string;
|
|
89
89
|
activeSquads: {
|
|
90
90
|
activeInbounds: string[];
|
|
91
91
|
squadName: string;
|
|
@@ -98,9 +98,9 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
98
98
|
userUuid: string;
|
|
99
99
|
activeNodes: {
|
|
100
100
|
uuid: string;
|
|
101
|
+
nodeName: string;
|
|
101
102
|
countryCode: string;
|
|
102
103
|
configProfileUuid: string;
|
|
103
|
-
nodeName: string;
|
|
104
104
|
activeSquads: {
|
|
105
105
|
activeInbounds: string[];
|
|
106
106
|
squadName: string;
|
|
@@ -8,7 +8,6 @@ export * from './get-by';
|
|
|
8
8
|
export * from './get-user-accessible-nodes.command';
|
|
9
9
|
export * from './get-user-by-uuid.command';
|
|
10
10
|
export * from './get-user-subscription-request-history.command';
|
|
11
|
-
export * from './get-user-usage-by-range.command';
|
|
12
11
|
export * from './tags';
|
|
13
12
|
export * from './update-user.command';
|
|
14
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iDAAiD,CAAC;AAEhE,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iDAAiD,CAAC;AAEhE,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
|
@@ -24,6 +24,5 @@ __exportStar(require("./get-by"), exports);
|
|
|
24
24
|
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
|
25
25
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
|
26
26
|
__exportStar(require("./get-user-subscription-request-history.command"), exports);
|
|
27
|
-
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
|
28
27
|
__exportStar(require("./tags"), exports);
|
|
29
28
|
__exportStar(require("./update-user.command"), exports);
|
|
@@ -38,16 +38,21 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
38
38
|
countryCode: z.ZodString;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
uuid: string;
|
|
41
|
-
name: string;
|
|
42
41
|
countryCode: string;
|
|
42
|
+
name: string;
|
|
43
43
|
}, {
|
|
44
44
|
uuid: string;
|
|
45
|
-
name: string;
|
|
46
45
|
countryCode: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}>, "many">;
|
|
48
48
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
49
49
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
nodes: {
|
|
52
|
+
uuid: string;
|
|
53
|
+
countryCode: string;
|
|
54
|
+
name: string;
|
|
55
|
+
}[];
|
|
51
56
|
inbounds: {
|
|
52
57
|
type: string;
|
|
53
58
|
uuid: string;
|
|
@@ -58,11 +63,6 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
58
63
|
port: number | null;
|
|
59
64
|
rawInbound?: unknown;
|
|
60
65
|
}[];
|
|
61
|
-
nodes: {
|
|
62
|
-
uuid: string;
|
|
63
|
-
name: string;
|
|
64
|
-
countryCode: string;
|
|
65
|
-
}[];
|
|
66
66
|
uuid: string;
|
|
67
67
|
createdAt: Date;
|
|
68
68
|
updatedAt: Date;
|
|
@@ -70,6 +70,11 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
70
70
|
viewPosition: number;
|
|
71
71
|
config?: unknown;
|
|
72
72
|
}, {
|
|
73
|
+
nodes: {
|
|
74
|
+
uuid: string;
|
|
75
|
+
countryCode: string;
|
|
76
|
+
name: string;
|
|
77
|
+
}[];
|
|
73
78
|
inbounds: {
|
|
74
79
|
type: string;
|
|
75
80
|
uuid: string;
|
|
@@ -80,11 +85,6 @@ export declare const ConfigProfileSchema: z.ZodObject<{
|
|
|
80
85
|
port: number | null;
|
|
81
86
|
rawInbound?: unknown;
|
|
82
87
|
}[];
|
|
83
|
-
nodes: {
|
|
84
|
-
uuid: string;
|
|
85
|
-
name: string;
|
|
86
|
-
countryCode: string;
|
|
87
|
-
}[];
|
|
88
88
|
uuid: string;
|
|
89
89
|
createdAt: string;
|
|
90
90
|
updatedAt: string;
|
|
@@ -104,13 +104,13 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
|
104
104
|
faviconLink: string | null;
|
|
105
105
|
loginUrl: string | null;
|
|
106
106
|
}>>;
|
|
107
|
-
}, "uuid" | "
|
|
107
|
+
}, "uuid" | "countryCode" | "name">, "strip", import("zod").ZodTypeAny, {
|
|
108
108
|
uuid: string;
|
|
109
|
-
name: string;
|
|
110
109
|
countryCode: string;
|
|
110
|
+
name: string;
|
|
111
111
|
}, {
|
|
112
112
|
uuid: string;
|
|
113
|
-
name: string;
|
|
114
113
|
countryCode: string;
|
|
114
|
+
name: string;
|
|
115
115
|
}>;
|
|
116
116
|
//# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
|
|
@@ -127,14 +127,14 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
127
127
|
faviconLink: string | null;
|
|
128
128
|
loginUrl: string | null;
|
|
129
129
|
}>>;
|
|
130
|
-
}, "uuid" | "
|
|
130
|
+
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
131
131
|
uuid: string;
|
|
132
|
-
name: string;
|
|
133
132
|
countryCode: string;
|
|
133
|
+
name: string;
|
|
134
134
|
}, {
|
|
135
135
|
uuid: string;
|
|
136
|
-
name: string;
|
|
137
136
|
countryCode: string;
|
|
137
|
+
name: string;
|
|
138
138
|
}>;
|
|
139
139
|
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
140
140
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
@@ -153,8 +153,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
153
153
|
providerUuid: string;
|
|
154
154
|
node: {
|
|
155
155
|
uuid: string;
|
|
156
|
-
name: string;
|
|
157
156
|
countryCode: string;
|
|
157
|
+
name: string;
|
|
158
158
|
};
|
|
159
159
|
nextBillingAt: Date;
|
|
160
160
|
}, {
|
|
@@ -171,8 +171,8 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
171
171
|
providerUuid: string;
|
|
172
172
|
node: {
|
|
173
173
|
uuid: string;
|
|
174
|
-
name: string;
|
|
175
174
|
countryCode: string;
|
|
175
|
+
name: string;
|
|
176
176
|
};
|
|
177
177
|
nextBillingAt: string;
|
|
178
178
|
}>;
|
|
@@ -21,13 +21,13 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
countryCode: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
name: string;
|
|
25
|
-
countryCode: string;
|
|
26
24
|
nodeUuid: string;
|
|
27
|
-
}, {
|
|
28
|
-
name: string;
|
|
29
25
|
countryCode: string;
|
|
26
|
+
name: string;
|
|
27
|
+
}, {
|
|
30
28
|
nodeUuid: string;
|
|
29
|
+
countryCode: string;
|
|
30
|
+
name: string;
|
|
31
31
|
}>, "many">;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
uuid: string;
|
|
@@ -41,9 +41,9 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
41
41
|
totalBills: number;
|
|
42
42
|
};
|
|
43
43
|
billingNodes: {
|
|
44
|
-
name: string;
|
|
45
|
-
countryCode: string;
|
|
46
44
|
nodeUuid: string;
|
|
45
|
+
countryCode: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}[];
|
|
48
48
|
}, {
|
|
49
49
|
uuid: string;
|
|
@@ -57,9 +57,9 @@ export declare const InfraProviderSchema: z.ZodObject<{
|
|
|
57
57
|
totalBills: number;
|
|
58
58
|
};
|
|
59
59
|
billingNodes: {
|
|
60
|
-
name: string;
|
|
61
|
-
countryCode: string;
|
|
62
60
|
nodeUuid: string;
|
|
61
|
+
countryCode: string;
|
|
62
|
+
name: string;
|
|
63
63
|
}[];
|
|
64
64
|
}>;
|
|
65
65
|
export declare const PartialInfraProviderSchema: z.ZodObject<{
|
|
@@ -4,12 +4,12 @@ export declare const LastConnectedNodeSchema: z.ZodNullable<z.ZodObject<{
|
|
|
4
4
|
nodeName: z.ZodString;
|
|
5
5
|
countryCode: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
nodeName: string;
|
|
7
8
|
countryCode: string;
|
|
8
9
|
connectedAt: Date;
|
|
9
|
-
nodeName: string;
|
|
10
10
|
}, {
|
|
11
|
+
nodeName: string;
|
|
11
12
|
countryCode: string;
|
|
12
13
|
connectedAt: string;
|
|
13
|
-
nodeName: string;
|
|
14
14
|
}>>;
|
|
15
15
|
//# sourceMappingURL=last-connected-node.schema.d.ts.map
|
|
@@ -118,10 +118,10 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
118
118
|
faviconLink: string | null;
|
|
119
119
|
loginUrl: string | null;
|
|
120
120
|
} | null;
|
|
121
|
+
countryCode: string;
|
|
121
122
|
name: string;
|
|
122
123
|
port: number | null;
|
|
123
124
|
viewPosition: number;
|
|
124
|
-
countryCode: string;
|
|
125
125
|
trafficLimitBytes: number | null;
|
|
126
126
|
address: string;
|
|
127
127
|
isDisabled: boolean;
|
|
@@ -168,10 +168,10 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
168
168
|
faviconLink: string | null;
|
|
169
169
|
loginUrl: string | null;
|
|
170
170
|
} | null;
|
|
171
|
+
countryCode: string;
|
|
171
172
|
name: string;
|
|
172
173
|
port: number | null;
|
|
173
174
|
viewPosition: number;
|
|
174
|
-
countryCode: string;
|
|
175
175
|
trafficLimitBytes: number | null;
|
|
176
176
|
address: string;
|
|
177
177
|
isDisabled: boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_USERS_ROUTE = exports.BANDWIDTH_STATS_NODES_ROUTE = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
4
|
+
exports.BANDWIDTH_STATS_CONTROLLER = 'bandwidth-stats';
|
|
5
|
+
exports.BANDWIDTH_STATS_NODES_ROUTE = 'nodes';
|
|
6
|
+
exports.BANDWIDTH_STATS_USERS_ROUTE = 'users';
|
|
7
|
+
exports.BANDWIDTH_STATS_NODES_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_NODES_ROUTE}`;
|
|
8
|
+
exports.BANDWIDTH_STATS_USERS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USERS_ROUTE}`;
|
|
9
|
+
// Variants:
|
|
10
|
+
// 1. Nodes -> Metrics
|
|
11
|
+
// 2. Nodes -> Management -> Show usage (!need legacy)
|
|
12
|
+
// 3. Users -> User -> Show Usage (!need legacy)
|
|
13
|
+
exports.BANDWIDTH_STATS_ROUTES = {
|
|
14
|
+
NODES: {
|
|
15
|
+
// GET /bandwidth-stats/nodes –– Nodes -> Metrics
|
|
16
|
+
GET: '',
|
|
17
|
+
// GET /bandwidth-stats/nodes/realtime –– Nodes -> Management -> Metric Cards
|
|
18
|
+
GET_REALTIME: 'realtime',
|
|
19
|
+
// GET /bandwidth-stats/nodes/:nodeUuid/users –– Nodes -> Management -> Show usage
|
|
20
|
+
GET_USERS: (uuid) => `${uuid}/users`,
|
|
21
|
+
},
|
|
22
|
+
USERS: {
|
|
23
|
+
// GET /bandwidth-stats/users/:userUuid –– Users -> User -> Show Usage
|
|
24
|
+
GET_BY_UUID: (uuid) => `${uuid}`,
|
|
25
|
+
},
|
|
26
|
+
LEGACY: {
|
|
27
|
+
NODES: {
|
|
28
|
+
// GET /bandwidth-stats/nodes/:nodeUuid/users/legacy –– Nodes -> Management -> Show usage (legacy)
|
|
29
|
+
GET_USERS: (uuid) => `${uuid}/users/legacy`,
|
|
30
|
+
},
|
|
31
|
+
USERS: {
|
|
32
|
+
// GET /bandwidth-stats/users/:userUuid/legacy –– Users -> User -> Show Usage (legacy)
|
|
33
|
+
GET_BY_UUID: (uuid) => `${uuid}/legacy`,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./api-tokens"), exports);
|
|
18
18
|
__exportStar(require("./auth"), exports);
|
|
19
|
+
__exportStar(require("./bandwidth-stats"), exports);
|
|
19
20
|
__exportStar(require("./config-profiles"), exports);
|
|
20
21
|
__exportStar(require("./external-squads"), exports);
|
|
21
22
|
__exportStar(require("./hosts"), exports);
|
|
@@ -21,11 +21,6 @@ exports.NODES_ROUTES = {
|
|
|
21
21
|
BULK_ACTIONS: {
|
|
22
22
|
PROFILE_MODIFICATION: `${BULK_ACTIONS_ROUTE}/profile-modification`,
|
|
23
23
|
},
|
|
24
|
-
STATS: {
|
|
25
|
-
USAGE_BY_RANGE: 'usage/range',
|
|
26
|
-
USAGE_BY_RANGE_USER: (uuid) => `usage/${uuid}/users/range`,
|
|
27
|
-
USAGE_REALTIME: 'usage/realtime',
|
|
28
|
-
},
|
|
29
24
|
TAGS: {
|
|
30
25
|
GET: 'tags',
|
|
31
26
|
},
|
|
@@ -22,10 +22,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
22
22
|
tag: 'Users Bulk Actions Controller',
|
|
23
23
|
description: 'Bulk actions with users.',
|
|
24
24
|
},
|
|
25
|
-
USERS_STATS: {
|
|
26
|
-
tag: 'Users Stats Controller',
|
|
27
|
-
description: '',
|
|
28
|
-
},
|
|
29
25
|
HWID_USER_DEVICES: {
|
|
30
26
|
tag: 'HWID User Devices Controller',
|
|
31
27
|
description: '',
|
|
@@ -38,6 +34,14 @@ exports.CONTROLLERS_INFO = {
|
|
|
38
34
|
tag: '[Protected] Subscriptions Controller',
|
|
39
35
|
description: 'Methods of this controller are protected with auth, most of them is returning the same informations as public Subscription Controller.',
|
|
40
36
|
},
|
|
37
|
+
NODES: {
|
|
38
|
+
tag: 'Nodes Controller',
|
|
39
|
+
description: '',
|
|
40
|
+
},
|
|
41
|
+
BANDWIDTH_STATS: {
|
|
42
|
+
tag: 'Bandwidth Stats Controller',
|
|
43
|
+
description: '',
|
|
44
|
+
},
|
|
41
45
|
CONFIG_PROFILES: {
|
|
42
46
|
tag: 'Config Profiles Controller',
|
|
43
47
|
description: 'Management of Config Profiles.',
|
|
@@ -50,10 +54,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
50
54
|
tag: 'External Squads Controller',
|
|
51
55
|
description: 'Management of External Squads.',
|
|
52
56
|
},
|
|
53
|
-
NODES: {
|
|
54
|
-
tag: 'Nodes Controller',
|
|
55
|
-
description: '',
|
|
56
|
-
},
|
|
57
57
|
HOSTS: {
|
|
58
58
|
tag: 'Hosts Controller',
|
|
59
59
|
description: '',
|
|
@@ -78,10 +78,6 @@ exports.CONTROLLERS_INFO = {
|
|
|
78
78
|
tag: 'System Controller',
|
|
79
79
|
description: '',
|
|
80
80
|
},
|
|
81
|
-
BANDWIDTH_STATS: {
|
|
82
|
-
tag: 'Bandwidth Stats Controller',
|
|
83
|
-
description: '',
|
|
84
|
-
},
|
|
85
81
|
KEYGEN: {
|
|
86
82
|
tag: 'Keygen Controller',
|
|
87
83
|
description: 'Generation of SSL_CERT for Remnawave Node.',
|
|
@@ -89,11 +89,6 @@ exports.REST_API = {
|
|
|
89
89
|
BULK_ACTIONS: {
|
|
90
90
|
PROFILE_MODIFICATION: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.BULK_ACTIONS.PROFILE_MODIFICATION}`,
|
|
91
91
|
},
|
|
92
|
-
STATS: {
|
|
93
|
-
USAGE_BY_RANGE: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_BY_RANGE}`,
|
|
94
|
-
USAGE_BY_RANGE_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_BY_RANGE_USER(uuid)}`,
|
|
95
|
-
USAGE_REALTIME: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.STATS.USAGE_REALTIME}`,
|
|
96
|
-
},
|
|
97
92
|
},
|
|
98
93
|
USERS: {
|
|
99
94
|
CREATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.CREATE}`,
|
|
@@ -132,9 +127,6 @@ exports.REST_API = {
|
|
|
132
127
|
EXTEND_EXPIRATION_DATE: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.BULK.ALL.EXTEND_EXPIRATION_DATE}`,
|
|
133
128
|
},
|
|
134
129
|
},
|
|
135
|
-
STATS: {
|
|
136
|
-
GET_USAGE_BY_RANGE: (uuid) => `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.STATS.GET_USAGE_BY_RANGE(uuid)}`,
|
|
137
|
-
},
|
|
138
130
|
TAGS: {
|
|
139
131
|
GET: `${exports.ROOT}/${CONTROLLERS.USERS_CONTROLLER}/${CONTROLLERS.USERS_ROUTES.TAGS.GET}`,
|
|
140
132
|
},
|
|
@@ -296,4 +288,22 @@ exports.REST_API = {
|
|
|
296
288
|
CLONE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.CLONE}`,
|
|
297
289
|
},
|
|
298
290
|
},
|
|
291
|
+
BANDWIDTH_STATS: {
|
|
292
|
+
NODES: {
|
|
293
|
+
GET: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET}`,
|
|
294
|
+
GET_REALTIME: `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_REALTIME}`,
|
|
295
|
+
GET_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.NODES.GET_USERS(uuid)}`,
|
|
296
|
+
},
|
|
297
|
+
USERS: {
|
|
298
|
+
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USERS.GET_BY_UUID(uuid)}`,
|
|
299
|
+
},
|
|
300
|
+
LEGACY: {
|
|
301
|
+
NODES: {
|
|
302
|
+
GET_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.LEGACY.NODES.GET_USERS(uuid)}`,
|
|
303
|
+
},
|
|
304
|
+
USERS: {
|
|
305
|
+
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.LEGACY.USERS.GET_BY_UUID(uuid)}`,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
},
|
|
299
309
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./legacy"), exports);
|
|
18
|
+
__exportStar(require("./nodes"), exports);
|
|
19
|
+
__exportStar(require("./users"), exports);
|
package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetLegacyStatsNodeUserUsageCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var GetLegacyStatsNodeUserUsageCommand;
|
|
8
|
+
(function (GetLegacyStatsNodeUserUsageCommand) {
|
|
9
|
+
GetLegacyStatsNodeUserUsageCommand.url = api_1.REST_API.BANDWIDTH_STATS.LEGACY.NODES.GET_USERS;
|
|
10
|
+
GetLegacyStatsNodeUserUsageCommand.TSQ_url = GetLegacyStatsNodeUserUsageCommand.url(':uuid');
|
|
11
|
+
GetLegacyStatsNodeUserUsageCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.BANDWIDTH_STATS_ROUTES.LEGACY.NODES.GET_USERS(':uuid'), 'get', 'Get Node User Usage by Range and Node UUID (Legacy)');
|
|
12
|
+
GetLegacyStatsNodeUserUsageCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
GetLegacyStatsNodeUserUsageCommand.RequestQuerySchema = zod_1.z.object({
|
|
16
|
+
start: zod_1.z.string(),
|
|
17
|
+
end: zod_1.z.string(),
|
|
18
|
+
});
|
|
19
|
+
GetLegacyStatsNodeUserUsageCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
response: zod_1.z.array(zod_1.z.object({
|
|
21
|
+
userUuid: zod_1.z.string().uuid(),
|
|
22
|
+
username: zod_1.z.string(),
|
|
23
|
+
nodeUuid: zod_1.z.string().uuid(),
|
|
24
|
+
total: zod_1.z.number(),
|
|
25
|
+
date: zod_1.z.string().transform((str) => new Date(str)),
|
|
26
|
+
})),
|
|
27
|
+
});
|
|
28
|
+
})(GetLegacyStatsNodeUserUsageCommand || (exports.GetLegacyStatsNodeUserUsageCommand = GetLegacyStatsNodeUserUsageCommand = {}));
|