@remnawave/backend-contract 0.0.26 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,13 @@ 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
+ }),
34
41
  }),
35
42
  });
36
43
  })(GetStatsCommand || (exports.GetStatsCommand = GetStatsCommand = {}));
@@ -1,4 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TEMPLATE_KEYS = void 0;
4
- exports.TEMPLATE_KEYS = ['DAYS_LEFT', 'TRAFFIC_USED', 'TRAFFIC_LEFT', 'STATUS'];
4
+ exports.TEMPLATE_KEYS = [
5
+ 'DAYS_LEFT',
6
+ 'TRAFFIC_USED',
7
+ 'TRAFFIC_LEFT',
8
+ 'STATUS',
9
+ 'TOTAL_TRAFFIC',
10
+ ];
@@ -35,6 +35,13 @@ 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
+ }),
38
45
  }),
39
46
  });
40
47
 
@@ -1,2 +1,8 @@
1
- export const TEMPLATE_KEYS = ['DAYS_LEFT', 'TRAFFIC_USED', 'TRAFFIC_LEFT', 'STATUS'] as const;
1
+ export const TEMPLATE_KEYS = [
2
+ 'DAYS_LEFT',
3
+ 'TRAFFIC_USED',
4
+ 'TRAFFIC_LEFT',
5
+ 'STATUS',
6
+ 'TOTAL_TRAFFIC',
7
+ ] as const;
2
8
  export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {