@remnawave/backend-contract
Advanced tools
Comparing version 0.1.11 to 0.1.12
@@ -26,3 +26,3 @@ import { z } from 'zod'; | ||
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; | ||
expireAt: z.ZodString; | ||
expireAt: z.ZodEffects<z.ZodString, Date, string>; | ||
createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>; | ||
@@ -36,3 +36,3 @@ lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>; | ||
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK"; | ||
expireAt: string; | ||
expireAt: Date; | ||
createdAt?: Date | undefined; | ||
@@ -39,0 +39,0 @@ trafficLimitBytes?: number | undefined; |
@@ -86,3 +86,4 @@ "use strict"; | ||
}) | ||
.datetime() | ||
.datetime({ message: 'Invalid date format', offset: true }) | ||
.transform((str) => new Date(str)) | ||
.describe('Date format: 2025-01-17T15:38:45.065Z'), | ||
@@ -89,0 +90,0 @@ createdAt: zod_1.z |
@@ -86,3 +86,4 @@ "use strict"; | ||
}) | ||
.datetime() | ||
.datetime({ message: 'Invalid date format', offset: true }) | ||
.transform((str) => new Date(str)) | ||
.describe('Date format: 2025-01-17T15:38:45.065Z'), | ||
@@ -89,0 +90,0 @@ createdAt: zod_1.z |
{ | ||
"name": "@remnawave/backend-contract", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "license": "AGPL-3.0-only", |
Sorry, the diff of this file is not supported yet
480378
11508