@remnawave/backend-contract
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -6,2 +6,3 @@ "use strict"; | ||
const api_1 = require("../../api"); | ||
const base_stat_schema_1 = require("../../models/base-stat.schema"); | ||
var GetBandwidthStatsCommand; | ||
@@ -15,14 +16,9 @@ (function (GetBandwidthStatsCommand) { | ||
response: zod_1.z.object({ | ||
bandwidthLastTwoDays: zod_1.z.object({ | ||
current: zod_1.z.string(), | ||
previous: zod_1.z.string(), | ||
difference: zod_1.z.string(), | ||
}), | ||
bandwidthLastSevenDays: zod_1.z.object({ | ||
current: zod_1.z.string(), | ||
previous: zod_1.z.string(), | ||
difference: zod_1.z.string(), | ||
}), | ||
bandwidthLastTwoDays: base_stat_schema_1.BaseStatSchema, | ||
bandwidthLastSevenDays: base_stat_schema_1.BaseStatSchema, | ||
bandwidthLast30Days: base_stat_schema_1.BaseStatSchema, | ||
bandwidthCalendarMonth: base_stat_schema_1.BaseStatSchema, | ||
bandwidthCurrentYear: base_stat_schema_1.BaseStatSchema, | ||
}), | ||
}); | ||
})(GetBandwidthStatsCommand || (exports.GetBandwidthStatsCommand = GetBandwidthStatsCommand = {})); |
@@ -19,2 +19,3 @@ "use strict"; | ||
__exportStar(require("./auth.schema"), exports); | ||
__exportStar(require("./base-stat.schema"), exports); | ||
__exportStar(require("./hosts.schema"), exports); | ||
@@ -21,0 +22,0 @@ __exportStar(require("./inbounds.schema"), exports); |
import { z } from 'zod'; | ||
import { REST_API } from '../../api'; | ||
import { BaseStatSchema } from '../../models/base-stat.schema'; | ||
@@ -15,12 +16,7 @@ export namespace GetBandwidthStatsCommand { | ||
response: z.object({ | ||
bandwidthLastTwoDays: z.object({ | ||
current: z.string(), | ||
previous: z.string(), | ||
difference: z.string(), | ||
}), | ||
bandwidthLastSevenDays: z.object({ | ||
current: z.string(), | ||
previous: z.string(), | ||
difference: z.string(), | ||
}), | ||
bandwidthLastTwoDays: BaseStatSchema, | ||
bandwidthLastSevenDays: BaseStatSchema, | ||
bandwidthLast30Days: BaseStatSchema, | ||
bandwidthCalendarMonth: BaseStatSchema, | ||
bandwidthCurrentYear: BaseStatSchema, | ||
}), | ||
@@ -27,0 +23,0 @@ }); |
export * from './api-tokens.schema'; | ||
export * from './auth.schema'; | ||
export * from './base-stat.schema'; | ||
export * from './hosts.schema'; | ||
@@ -4,0 +5,0 @@ export * from './inbounds.schema'; |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "A contract library for Remnawave", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
147763
186
3665