@remnawave/backend-contract 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,13 @@ var GetAllUsersCommand;
|
|
16
16
|
'usedTrafficBytes',
|
17
17
|
'trafficLimitBytes',
|
18
18
|
];
|
19
|
-
GetAllUsersCommand.SearchableFields = [
|
19
|
+
GetAllUsersCommand.SearchableFields = [
|
20
|
+
'username',
|
21
|
+
'shortUuid',
|
22
|
+
'subscriptionUuid',
|
23
|
+
'uuid',
|
24
|
+
'status',
|
25
|
+
];
|
20
26
|
GetAllUsersCommand.RequestQuerySchema = zod_1.z.object({
|
21
27
|
limit: zod_1.z
|
22
28
|
.string()
|
@@ -33,7 +39,9 @@ var GetAllUsersCommand;
|
|
33
39
|
});
|
34
40
|
GetAllUsersCommand.ResponseSchema = zod_1.z.object({
|
35
41
|
response: zod_1.z.object({
|
36
|
-
users: zod_1.z.array(users_schema_1.UsersSchema
|
42
|
+
users: zod_1.z.array(users_schema_1.UsersSchema.extend({
|
43
|
+
totalUsedBytes: zod_1.z.string(),
|
44
|
+
})),
|
37
45
|
total: zod_1.z.number(),
|
38
46
|
}),
|
39
47
|
});
|
@@ -15,7 +15,13 @@ export namespace GetAllUsersCommand {
|
|
15
15
|
'trafficLimitBytes',
|
16
16
|
] as const;
|
17
17
|
|
18
|
-
export const SearchableFields = [
|
18
|
+
export const SearchableFields = [
|
19
|
+
'username',
|
20
|
+
'shortUuid',
|
21
|
+
'subscriptionUuid',
|
22
|
+
'uuid',
|
23
|
+
'status',
|
24
|
+
] as const;
|
19
25
|
|
20
26
|
export type SortableField = (typeof SortableFields)[number];
|
21
27
|
export type SearchableField = (typeof SearchableFields)[number];
|
@@ -41,7 +47,12 @@ export namespace GetAllUsersCommand {
|
|
41
47
|
|
42
48
|
export const ResponseSchema = z.object({
|
43
49
|
response: z.object({
|
44
|
-
users: z.array(
|
50
|
+
users: z.array(
|
51
|
+
UsersSchema.extend({
|
52
|
+
totalUsedBytes: z.string(),
|
53
|
+
}),
|
54
|
+
),
|
55
|
+
|
45
56
|
total: z.number(),
|
46
57
|
}),
|
47
58
|
});
|