@remnawave/backend-contract 0.0.39 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,18 +31,6 @@ var GetStatsCommand;
31
31
  totalUsers: zod_1.z.number(),
32
32
  totalTrafficBytes: zod_1.z.string(),
33
33
  }),
34
- stats: zod_1.z.object({
35
- nodesUsageLastTwoDays: zod_1.z.object({
36
- current: zod_1.z.string(),
37
- previous: zod_1.z.string(),
38
- percentage: zod_1.z.number(),
39
- }),
40
- sevenDaysStats: zod_1.z.array(zod_1.z.object({
41
- nodeName: zod_1.z.string(),
42
- totalBytes: zod_1.z.string(),
43
- date: zod_1.z.string(),
44
- })),
45
- }),
46
34
  }),
47
35
  });
48
36
  })(GetStatsCommand || (exports.GetStatsCommand = GetStatsCommand = {}));
@@ -9,7 +9,7 @@ var GetAllUsersV2Command;
9
9
  GetAllUsersV2Command.url = api_1.REST_API.USERS.GET_ALL_V2;
10
10
  const FilterSchema = zod_1.z.object({
11
11
  id: zod_1.z.string(),
12
- value: zod_1.z.unknown(),
12
+ value: zod_1.z.string(),
13
13
  });
14
14
  const SortingSchema = zod_1.z.object({
15
15
  id: zod_1.z.string(),
@@ -35,20 +35,6 @@ export namespace GetStatsCommand {
35
35
  totalUsers: z.number(),
36
36
  totalTrafficBytes: z.string(),
37
37
  }),
38
- stats: z.object({
39
- nodesUsageLastTwoDays: z.object({
40
- current: z.string(),
41
- previous: z.string(),
42
- percentage: z.number(),
43
- }),
44
- sevenDaysStats: z.array(
45
- z.object({
46
- nodeName: z.string(),
47
- totalBytes: z.string(),
48
- date: z.string(),
49
- }),
50
- ),
51
- }),
52
38
  }),
53
39
  });
54
40
 
@@ -7,7 +7,7 @@ export namespace GetAllUsersV2Command {
7
7
 
8
8
  const FilterSchema = z.object({
9
9
  id: z.string(),
10
- value: z.unknown(),
10
+ value: z.string(),
11
11
  });
12
12
 
13
13
  const SortingSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {