@remnawave/backend-contract 0.1.8 → 0.1.10
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.
@@ -23,7 +23,7 @@ export declare namespace CreateUserCommand {
|
|
23
23
|
readonly MONTH: "MONTH";
|
24
24
|
}>>>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>;
|
25
25
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
26
|
-
expireAt: z.ZodEffects<z.
|
26
|
+
expireAt: z.ZodEffects<z.ZodDate, Date, unknown>;
|
27
27
|
createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
28
28
|
lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
29
29
|
description: z.ZodOptional<z.ZodString>;
|
@@ -46,7 +46,6 @@ export declare namespace CreateUserCommand {
|
|
46
46
|
activateAllInbounds?: boolean | undefined;
|
47
47
|
}, {
|
48
48
|
username: string;
|
49
|
-
expireAt: string;
|
50
49
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
51
50
|
createdAt?: string | undefined;
|
52
51
|
trafficLimitBytes?: number | undefined;
|
@@ -54,6 +53,7 @@ export declare namespace CreateUserCommand {
|
|
54
53
|
shortUuid?: string | undefined;
|
55
54
|
description?: string | undefined;
|
56
55
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
56
|
+
expireAt?: unknown;
|
57
57
|
lastTrafficResetAt?: string | undefined;
|
58
58
|
trojanPassword?: string | undefined;
|
59
59
|
vlessUuid?: string | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -79,19 +79,17 @@ var CreateUserCommand;
|
|
79
79
|
})
|
80
80
|
.optional(),
|
81
81
|
expireAt: zod_1.z
|
82
|
-
.
|
82
|
+
.preprocess((val) => new Date(val), zod_1.z.date({
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid date format',
|
85
|
-
})
|
86
|
-
.datetime({ message: 'Invalid date format' })
|
87
|
-
.transform((str) => new Date(str))
|
85
|
+
}))
|
88
86
|
.describe('Date format: 2025-01-17T15:38:45.065Z'),
|
89
87
|
createdAt: zod_1.z
|
90
88
|
.string({
|
91
89
|
required_error: 'Expiration date is required',
|
92
90
|
invalid_type_error: 'Invalid date format',
|
93
91
|
})
|
94
|
-
.datetime({ message: 'Invalid date format' })
|
92
|
+
.datetime({ message: 'Invalid date format', offset: true })
|
95
93
|
.transform((str) => new Date(str))
|
96
94
|
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
97
95
|
.optional(),
|
@@ -100,7 +98,7 @@ var CreateUserCommand;
|
|
100
98
|
required_error: 'Expiration date is required',
|
101
99
|
invalid_type_error: 'Invalid date format',
|
102
100
|
})
|
103
|
-
.datetime({ message: 'Invalid date format' })
|
101
|
+
.datetime({ message: 'Invalid date format', offset: true })
|
104
102
|
.transform((str) => new Date(str))
|
105
103
|
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
106
104
|
.optional(),
|
@@ -79,19 +79,17 @@ var CreateUserCommand;
|
|
79
79
|
})
|
80
80
|
.optional(),
|
81
81
|
expireAt: zod_1.z
|
82
|
-
.
|
82
|
+
.preprocess((val) => new Date(val), zod_1.z.date({
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid date format',
|
85
|
-
})
|
86
|
-
.datetime({ message: 'Invalid date format' })
|
87
|
-
.transform((str) => new Date(str))
|
85
|
+
}))
|
88
86
|
.describe('Date format: 2025-01-17T15:38:45.065Z'),
|
89
87
|
createdAt: zod_1.z
|
90
88
|
.string({
|
91
89
|
required_error: 'Expiration date is required',
|
92
90
|
invalid_type_error: 'Invalid date format',
|
93
91
|
})
|
94
|
-
.datetime({ message: 'Invalid date format' })
|
92
|
+
.datetime({ message: 'Invalid date format', offset: true })
|
95
93
|
.transform((str) => new Date(str))
|
96
94
|
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
97
95
|
.optional(),
|
@@ -100,7 +98,7 @@ var CreateUserCommand;
|
|
100
98
|
required_error: 'Expiration date is required',
|
101
99
|
invalid_type_error: 'Invalid date format',
|
102
100
|
})
|
103
|
-
.datetime({ message: 'Invalid date format' })
|
101
|
+
.datetime({ message: 'Invalid date format', offset: true })
|
104
102
|
.transform((str) => new Date(str))
|
105
103
|
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
106
104
|
.optional(),
|