@remnawave/backend-contract 0.0.25 → 0.0.27
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.
| 
         @@ -8,7 +8,7 @@ var GetStatsCommand; 
     | 
|
| 
       8 
8 
     | 
    
         
             
            (function (GetStatsCommand) {
         
     | 
| 
       9 
9 
     | 
    
         
             
                GetStatsCommand.url = api_1.REST_API.SYSTEM.STATS;
         
     | 
| 
       10 
10 
     | 
    
         
             
                GetStatsCommand.RequestQuerySchema = zod_1.z.object({
         
     | 
| 
       11 
     | 
    
         
            -
                     
     | 
| 
      
 11 
     | 
    
         
            +
                    tz: zod_1.z.string().optional(),
         
     | 
| 
       12 
12 
     | 
    
         
             
                });
         
     | 
| 
       13 
13 
     | 
    
         
             
                GetStatsCommand.ResponseSchema = zod_1.z.object({
         
     | 
| 
       14 
14 
     | 
    
         
             
                    response: zod_1.z.object({
         
     | 
| 
         @@ -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 = {}));
         
     | 
| 
         @@ -6,7 +6,7 @@ export namespace GetStatsCommand { 
     | 
|
| 
       6 
6 
     | 
    
         
             
                export const url = REST_API.SYSTEM.STATS;
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
                export const RequestQuerySchema = z.object({
         
     | 
| 
       9 
     | 
    
         
            -
                     
     | 
| 
      
 9 
     | 
    
         
            +
                    tz: z.string().optional(),
         
     | 
| 
       10 
10 
     | 
    
         
             
                });
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                export type Request = z.infer<typeof RequestQuerySchema>;
         
     | 
| 
         @@ -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 
     | 
    
         |