@remnawave/backend-contract 2.3.0 → 2.3.2

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.
@@ -47,15 +47,12 @@ export declare namespace GetStatsCommand {
47
47
  users: z.ZodObject<{
48
48
  statusCounts: z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodNumber>;
49
49
  totalUsers: z.ZodNumber;
50
- totalTrafficBytes: z.ZodString;
51
50
  }, "strip", z.ZodTypeAny, {
52
51
  statusCounts: Record<string, number>;
53
52
  totalUsers: number;
54
- totalTrafficBytes: string;
55
53
  }, {
56
54
  statusCounts: Record<string, number>;
57
55
  totalUsers: number;
58
- totalTrafficBytes: string;
59
56
  }>;
60
57
  onlineStats: z.ZodObject<{
61
58
  lastDay: z.ZodNumber;
@@ -87,7 +84,6 @@ export declare namespace GetStatsCommand {
87
84
  users: {
88
85
  statusCounts: Record<string, number>;
89
86
  totalUsers: number;
90
- totalTrafficBytes: string;
91
87
  };
92
88
  memory: {
93
89
  total: number;
@@ -115,7 +111,6 @@ export declare namespace GetStatsCommand {
115
111
  users: {
116
112
  statusCounts: Record<string, number>;
117
113
  totalUsers: number;
118
- totalTrafficBytes: string;
119
114
  };
120
115
  memory: {
121
116
  total: number;
@@ -145,7 +140,6 @@ export declare namespace GetStatsCommand {
145
140
  users: {
146
141
  statusCounts: Record<string, number>;
147
142
  totalUsers: number;
148
- totalTrafficBytes: string;
149
143
  };
150
144
  memory: {
151
145
  total: number;
@@ -175,7 +169,6 @@ export declare namespace GetStatsCommand {
175
169
  users: {
176
170
  statusCounts: Record<string, number>;
177
171
  totalUsers: number;
178
- totalTrafficBytes: string;
179
172
  };
180
173
  memory: {
181
174
  total: number;
@@ -1 +1 @@
1
- {"version":3,"file":"get-stats.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAi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,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -31,7 +31,6 @@ var GetStatsCommand;
31
31
  users: zod_1.z.object({
32
32
  statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_2.USERS_STATUS)), zod_1.z.number()),
33
33
  totalUsers: zod_1.z.number(),
34
- totalTrafficBytes: zod_1.z.string(),
35
34
  }),
36
35
  onlineStats: zod_1.z.object({
37
36
  lastDay: zod_1.z.number(),
@@ -1,3 +1,3 @@
1
- export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG", "EXPIRE_UNIX"];
1
+ export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG", "EXPIRE_UNIX", "SHORT_UUID"];
2
2
  export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
3
3
  //# sourceMappingURL=template-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,iKAYhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+KAahB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -13,4 +13,5 @@ exports.TEMPLATE_KEYS = [
13
13
  'SUBSCRIPTION_URL',
14
14
  'TAG',
15
15
  'EXPIRE_UNIX',
16
+ 'SHORT_UUID',
16
17
  ];
@@ -31,7 +31,6 @@ var GetStatsCommand;
31
31
  users: zod_1.z.object({
32
32
  statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_2.USERS_STATUS)), zod_1.z.number()),
33
33
  totalUsers: zod_1.z.number(),
34
- totalTrafficBytes: zod_1.z.string(),
35
34
  }),
36
35
  onlineStats: zod_1.z.object({
37
36
  lastDay: zod_1.z.number(),
@@ -13,4 +13,5 @@ exports.TEMPLATE_KEYS = [
13
13
  'SUBSCRIPTION_URL',
14
14
  'TAG',
15
15
  'EXPIRE_UNIX',
16
+ 'SHORT_UUID',
16
17
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",