@remnawave/backend-contract 0.0.86 → 0.0.88
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.
- package/build/backend/commands/hosts/create.command.d.ts +16 -2
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +16 -2
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +2 -2
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +6 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +31 -7
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +3 -9
- package/build/backend/commands/users/disable-user.command.ts.d.ts +14 -2
- package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
- package/build/backend/commands/users/enable-user.command.d.ts +14 -2
- package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +14 -2
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +14 -2
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +14 -2
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-username.command.d.ts +14 -2
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +14 -2
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/reset-user-traffic.command.d.ts +14 -2
- package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts +14 -2
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +42 -6
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/models/users.schema.d.ts +14 -2
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +3 -5
- package/build/frontend/commands/hosts/create.command.js +2 -2
- package/build/frontend/commands/hosts/update.command.js +2 -2
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +3 -9
- package/build/frontend/models/users.schema.js +3 -5
- package/package.json +1 -1
@@ -10,8 +10,22 @@ export declare namespace CreateHostCommand {
|
|
10
10
|
path: z.ZodOptional<z.ZodString>;
|
11
11
|
sni: z.ZodOptional<z.ZodString>;
|
12
12
|
host: z.ZodOptional<z.ZodString>;
|
13
|
-
alpn: z.ZodOptional<z.ZodNullable<z.
|
14
|
-
|
13
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
14
|
+
readonly HTTP_1_1: "http/1.1";
|
15
|
+
readonly H2: "h2";
|
16
|
+
readonly H_COMBINED: "h2,http/1.1";
|
17
|
+
}>>>;
|
18
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
19
|
+
readonly CHROME: "chrome";
|
20
|
+
readonly FIREFOX: "firefox";
|
21
|
+
readonly SAFARI: "safari";
|
22
|
+
readonly IOS: "ios";
|
23
|
+
readonly ANDROID: "android";
|
24
|
+
readonly EDGE: "edge";
|
25
|
+
readonly QQ: "qq";
|
26
|
+
readonly RANDOM: "random";
|
27
|
+
readonly RANDOMIZED: "randomized";
|
28
|
+
}>>>;
|
15
29
|
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
30
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
31
|
}, "strip", z.ZodTypeAny, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -34,8 +34,8 @@ var CreateHostCommand;
|
|
34
34
|
path: zod_1.z.string().optional(),
|
35
35
|
sni: zod_1.z.string().optional(),
|
36
36
|
host: zod_1.z.string().optional(),
|
37
|
-
alpn: zod_1.z.optional(zod_1.z.
|
38
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
37
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
38
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
39
39
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
40
40
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
41
41
|
});
|
@@ -24,8 +24,22 @@ export declare namespace UpdateHostCommand {
|
|
24
24
|
path: z.ZodOptional<z.ZodString>;
|
25
25
|
sni: z.ZodOptional<z.ZodString>;
|
26
26
|
host: z.ZodOptional<z.ZodString>;
|
27
|
-
alpn: z.ZodOptional<z.ZodNullable<z.
|
28
|
-
|
27
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
28
|
+
readonly HTTP_1_1: "http/1.1";
|
29
|
+
readonly H2: "h2";
|
30
|
+
readonly H_COMBINED: "h2,http/1.1";
|
31
|
+
}>>>;
|
32
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
33
|
+
readonly CHROME: "chrome";
|
34
|
+
readonly FIREFOX: "firefox";
|
35
|
+
readonly SAFARI: "safari";
|
36
|
+
readonly IOS: "ios";
|
37
|
+
readonly ANDROID: "android";
|
38
|
+
readonly EDGE: "edge";
|
39
|
+
readonly QQ: "qq";
|
40
|
+
readonly RANDOM: "random";
|
41
|
+
readonly RANDOMIZED: "randomized";
|
42
|
+
}>>>;
|
29
43
|
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
30
44
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
31
45
|
}>, "strip", z.ZodTypeAny, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmCxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -41,8 +41,8 @@ var UpdateHostCommand;
|
|
41
41
|
path: zod_1.z.optional(zod_1.z.string()),
|
42
42
|
sni: zod_1.z.optional(zod_1.z.string()),
|
43
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
44
|
-
alpn: zod_1.z.optional(zod_1.z.
|
45
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
44
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
45
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
46
46
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
47
47
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
48
48
|
});
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts
CHANGED
@@ -21,7 +21,12 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
|
|
21
21
|
username: z.ZodString;
|
22
22
|
expiresAt: z.ZodEffects<z.ZodString, Date, string>;
|
23
23
|
isActive: z.ZodBoolean;
|
24
|
-
userStatus: z.
|
24
|
+
userStatus: z.ZodNativeEnum<{
|
25
|
+
readonly ACTIVE: "ACTIVE";
|
26
|
+
readonly DISABLED: "DISABLED";
|
27
|
+
readonly LIMITED: "LIMITED";
|
28
|
+
readonly EXPIRED: "EXPIRED";
|
29
|
+
}>;
|
25
30
|
}, "strip", z.ZodTypeAny, {
|
26
31
|
username: string;
|
27
32
|
shortUuid: string;
|
package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-subscription-info-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-subscription-info-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,+BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAczB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -22,7 +22,7 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
22
22
|
username: zod_1.z.string(),
|
23
23
|
expiresAt: zod_1.z.string().transform((str) => new Date(str)),
|
24
24
|
isActive: zod_1.z.boolean(),
|
25
|
-
userStatus: zod_1.z.
|
25
|
+
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
26
26
|
}),
|
27
27
|
}),
|
28
28
|
});
|
@@ -4,18 +4,30 @@ export declare namespace CreateUserCommand {
|
|
4
4
|
const TSQ_url: "/api/users/";
|
5
5
|
const RequestSchema: z.ZodObject<{
|
6
6
|
username: z.ZodString;
|
7
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.
|
7
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
8
|
+
readonly ACTIVE: "ACTIVE";
|
9
|
+
readonly DISABLED: "DISABLED";
|
10
|
+
readonly LIMITED: "LIMITED";
|
11
|
+
readonly EXPIRED: "EXPIRED";
|
12
|
+
}>>>>;
|
8
13
|
subscriptionUuid: z.ZodOptional<z.ZodString>;
|
9
14
|
shortUuid: z.ZodOptional<z.ZodString>;
|
10
15
|
trojanPassword: z.ZodOptional<z.ZodString>;
|
11
16
|
vlessUuid: z.ZodOptional<z.ZodString>;
|
12
17
|
ssPassword: z.ZodOptional<z.ZodString>;
|
13
18
|
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
14
|
-
trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.
|
19
|
+
trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly NO_RESET: "NO_RESET";
|
21
|
+
readonly DAY: "DAY";
|
22
|
+
readonly WEEK: "WEEK";
|
23
|
+
readonly MONTH: "MONTH";
|
24
|
+
readonly YEAR: "YEAR";
|
25
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
26
|
+
}>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>;
|
15
27
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
16
|
-
expireAt: z.
|
17
|
-
createdAt: z.ZodOptional<z.
|
18
|
-
lastTrafficResetAt: z.ZodOptional<z.
|
28
|
+
expireAt: z.ZodDate;
|
29
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
30
|
+
lastTrafficResetAt: z.ZodOptional<z.ZodDate>;
|
19
31
|
description: z.ZodOptional<z.ZodString>;
|
20
32
|
activateAllInbounds: z.ZodOptional<z.ZodBoolean>;
|
21
33
|
}, "strip", z.ZodTypeAny, {
|
@@ -58,11 +70,23 @@ export declare namespace CreateUserCommand {
|
|
58
70
|
subscriptionUuid: z.ZodString;
|
59
71
|
shortUuid: z.ZodString;
|
60
72
|
username: z.ZodString;
|
61
|
-
status: z.ZodDefault<z.
|
73
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
74
|
+
readonly ACTIVE: "ACTIVE";
|
75
|
+
readonly DISABLED: "DISABLED";
|
76
|
+
readonly LIMITED: "LIMITED";
|
77
|
+
readonly EXPIRED: "EXPIRED";
|
78
|
+
}>>;
|
62
79
|
usedTrafficBytes: z.ZodNumber;
|
63
80
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
64
81
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
65
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
82
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
83
|
+
readonly NO_RESET: "NO_RESET";
|
84
|
+
readonly DAY: "DAY";
|
85
|
+
readonly WEEK: "WEEK";
|
86
|
+
readonly MONTH: "MONTH";
|
87
|
+
readonly YEAR: "YEAR";
|
88
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
89
|
+
}>>;
|
66
90
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
67
91
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
68
92
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8FxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -83,26 +83,20 @@ var CreateUserCommand;
|
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid expiration date format',
|
85
85
|
})
|
86
|
-
.
|
87
|
-
message: 'Expiration date cannot be in the past',
|
88
|
-
}),
|
86
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z'),
|
89
87
|
createdAt: zod_1.z.coerce
|
90
88
|
.date({
|
91
89
|
required_error: 'Expiration date is required',
|
92
90
|
invalid_type_error: 'Invalid expiration date format',
|
93
91
|
})
|
94
|
-
.
|
95
|
-
message: 'Expiration date cannot be in the past',
|
96
|
-
})
|
92
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
97
93
|
.optional(),
|
98
94
|
lastTrafficResetAt: zod_1.z.coerce
|
99
95
|
.date({
|
100
96
|
required_error: 'Expiration date is required',
|
101
97
|
invalid_type_error: 'Invalid expiration date format',
|
102
98
|
})
|
103
|
-
.
|
104
|
-
message: 'Expiration date cannot be in the past',
|
105
|
-
})
|
99
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
106
100
|
.optional(),
|
107
101
|
description: zod_1.z.string().optional(),
|
108
102
|
activateAllInbounds: zod_1.z.boolean().optional(),
|
@@ -16,11 +16,23 @@ export declare namespace DisableUserCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace EnableUserCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -62,11 +62,23 @@ export declare namespace GetAllUsersV2Command {
|
|
62
62
|
subscriptionUuid: z.ZodString;
|
63
63
|
shortUuid: z.ZodString;
|
64
64
|
username: z.ZodString;
|
65
|
-
status: z.ZodDefault<z.
|
65
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
66
|
+
readonly ACTIVE: "ACTIVE";
|
67
|
+
readonly DISABLED: "DISABLED";
|
68
|
+
readonly LIMITED: "LIMITED";
|
69
|
+
readonly EXPIRED: "EXPIRED";
|
70
|
+
}>>;
|
66
71
|
usedTrafficBytes: z.ZodNumber;
|
67
72
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
68
73
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
69
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
74
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
75
|
+
readonly NO_RESET: "NO_RESET";
|
76
|
+
readonly DAY: "DAY";
|
77
|
+
readonly WEEK: "WEEK";
|
78
|
+
readonly MONTH: "MONTH";
|
79
|
+
readonly YEAR: "YEAR";
|
80
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
81
|
+
}>>;
|
70
82
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
71
83
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
72
84
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace GetUserByShortUuidCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace GetUserByUsernameCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace GetUserByUuidCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace ResetUserTrafficCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -16,11 +16,23 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
16
16
|
subscriptionUuid: z.ZodString;
|
17
17
|
shortUuid: z.ZodString;
|
18
18
|
username: z.ZodString;
|
19
|
-
status: z.ZodDefault<z.
|
19
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly ACTIVE: "ACTIVE";
|
21
|
+
readonly DISABLED: "DISABLED";
|
22
|
+
readonly LIMITED: "LIMITED";
|
23
|
+
readonly EXPIRED: "EXPIRED";
|
24
|
+
}>>;
|
20
25
|
usedTrafficBytes: z.ZodNumber;
|
21
26
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
22
27
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
23
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
28
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
29
|
+
readonly NO_RESET: "NO_RESET";
|
30
|
+
readonly DAY: "DAY";
|
31
|
+
readonly WEEK: "WEEK";
|
32
|
+
readonly MONTH: "MONTH";
|
33
|
+
readonly YEAR: "YEAR";
|
34
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
35
|
+
}>>;
|
24
36
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
25
37
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
38
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -7,11 +7,23 @@ export declare namespace UpdateUserCommand {
|
|
7
7
|
subscriptionUuid: z.ZodString;
|
8
8
|
shortUuid: z.ZodString;
|
9
9
|
username: z.ZodString;
|
10
|
-
status: z.ZodDefault<z.
|
10
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
11
|
+
readonly ACTIVE: "ACTIVE";
|
12
|
+
readonly DISABLED: "DISABLED";
|
13
|
+
readonly LIMITED: "LIMITED";
|
14
|
+
readonly EXPIRED: "EXPIRED";
|
15
|
+
}>>;
|
11
16
|
usedTrafficBytes: z.ZodNumber;
|
12
17
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
13
18
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
14
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
19
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
20
|
+
readonly NO_RESET: "NO_RESET";
|
21
|
+
readonly DAY: "DAY";
|
22
|
+
readonly WEEK: "WEEK";
|
23
|
+
readonly MONTH: "MONTH";
|
24
|
+
readonly YEAR: "YEAR";
|
25
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
26
|
+
}>>;
|
15
27
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
16
28
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
17
29
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -38,9 +50,21 @@ export declare namespace UpdateUserCommand {
|
|
38
50
|
tag: string;
|
39
51
|
}>, "many">;
|
40
52
|
}, "uuid">, {
|
41
|
-
status: z.ZodOptional<z.ZodDefault<z.
|
53
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
54
|
+
readonly ACTIVE: "ACTIVE";
|
55
|
+
readonly DISABLED: "DISABLED";
|
56
|
+
readonly LIMITED: "LIMITED";
|
57
|
+
readonly EXPIRED: "EXPIRED";
|
58
|
+
}>>>;
|
42
59
|
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
43
|
-
trafficLimitStrategy: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.
|
60
|
+
trafficLimitStrategy: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNativeEnum<{
|
61
|
+
readonly NO_RESET: "NO_RESET";
|
62
|
+
readonly DAY: "DAY";
|
63
|
+
readonly WEEK: "WEEK";
|
64
|
+
readonly MONTH: "MONTH";
|
65
|
+
readonly YEAR: "YEAR";
|
66
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
67
|
+
}>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>>;
|
44
68
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
45
69
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
|
46
70
|
description: z.ZodOptional<z.ZodString>;
|
@@ -68,11 +92,23 @@ export declare namespace UpdateUserCommand {
|
|
68
92
|
subscriptionUuid: z.ZodString;
|
69
93
|
shortUuid: z.ZodString;
|
70
94
|
username: z.ZodString;
|
71
|
-
status: z.ZodDefault<z.
|
95
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
96
|
+
readonly ACTIVE: "ACTIVE";
|
97
|
+
readonly DISABLED: "DISABLED";
|
98
|
+
readonly LIMITED: "LIMITED";
|
99
|
+
readonly EXPIRED: "EXPIRED";
|
100
|
+
}>>;
|
72
101
|
usedTrafficBytes: z.ZodNumber;
|
73
102
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
74
103
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
75
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
104
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
105
|
+
readonly NO_RESET: "NO_RESET";
|
106
|
+
readonly DAY: "DAY";
|
107
|
+
readonly WEEK: "WEEK";
|
108
|
+
readonly MONTH: "MONTH";
|
109
|
+
readonly YEAR: "YEAR";
|
110
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
111
|
+
}>>;
|
76
112
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
77
113
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
78
114
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -4,11 +4,23 @@ export declare const UsersSchema: z.ZodObject<{
|
|
4
4
|
subscriptionUuid: z.ZodString;
|
5
5
|
shortUuid: z.ZodString;
|
6
6
|
username: z.ZodString;
|
7
|
-
status: z.ZodDefault<z.
|
7
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
8
|
+
readonly ACTIVE: "ACTIVE";
|
9
|
+
readonly DISABLED: "DISABLED";
|
10
|
+
readonly LIMITED: "LIMITED";
|
11
|
+
readonly EXPIRED: "EXPIRED";
|
12
|
+
}>>;
|
8
13
|
usedTrafficBytes: z.ZodNumber;
|
9
14
|
lifetimeUsedTrafficBytes: z.ZodNumber;
|
10
15
|
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
11
|
-
trafficLimitStrategy: z.ZodDefault<z.
|
16
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
17
|
+
readonly NO_RESET: "NO_RESET";
|
18
|
+
readonly DAY: "DAY";
|
19
|
+
readonly WEEK: "WEEK";
|
20
|
+
readonly MONTH: "MONTH";
|
21
|
+
readonly YEAR: "YEAR";
|
22
|
+
readonly CALENDAR_MONTH: "CALENDAR_MONTH";
|
23
|
+
}>>;
|
12
24
|
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
13
25
|
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
14
26
|
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCtB,CAAC"}
|
@@ -9,17 +9,15 @@ exports.UsersSchema = zod_1.z.object({
|
|
9
9
|
subscriptionUuid: zod_1.z.string().uuid(),
|
10
10
|
shortUuid: zod_1.z.string(),
|
11
11
|
username: zod_1.z.string(),
|
12
|
-
status: zod_1.z
|
13
|
-
.enum([constants_1.USERS_STATUS_VALUES[0], ...constants_1.USERS_STATUS_VALUES])
|
14
|
-
.default(constants_1.USERS_STATUS_VALUES[0]),
|
12
|
+
status: zod_1.z.nativeEnum(constants_1.USERS_STATUS).default(constants_1.USERS_STATUS.ACTIVE),
|
15
13
|
usedTrafficBytes: zod_1.z.number(),
|
16
14
|
lifetimeUsedTrafficBytes: zod_1.z.number(),
|
17
15
|
trafficLimitBytes: zod_1.z.number().int().default(0),
|
18
16
|
trafficLimitStrategy: zod_1.z
|
19
|
-
.
|
17
|
+
.nativeEnum(constants_1.RESET_PERIODS, {
|
20
18
|
description: 'Available reset periods',
|
21
19
|
})
|
22
|
-
.default(constants_1.
|
20
|
+
.default(constants_1.RESET_PERIODS.NO_RESET),
|
23
21
|
subLastUserAgent: zod_1.z.nullable(zod_1.z.string()),
|
24
22
|
subLastOpenedAt: zod_1.z.nullable(zod_1.z.string().transform((str) => new Date(str))),
|
25
23
|
expireAt: zod_1.z.nullable(zod_1.z.string().transform((str) => new Date(str))),
|
@@ -34,8 +34,8 @@ var CreateHostCommand;
|
|
34
34
|
path: zod_1.z.string().optional(),
|
35
35
|
sni: zod_1.z.string().optional(),
|
36
36
|
host: zod_1.z.string().optional(),
|
37
|
-
alpn: zod_1.z.optional(zod_1.z.
|
38
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
37
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
38
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
39
39
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
40
40
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
41
41
|
});
|
@@ -41,8 +41,8 @@ var UpdateHostCommand;
|
|
41
41
|
path: zod_1.z.optional(zod_1.z.string()),
|
42
42
|
sni: zod_1.z.optional(zod_1.z.string()),
|
43
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
44
|
-
alpn: zod_1.z.optional(zod_1.z.
|
45
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
44
|
+
alpn: zod_1.z.optional(zod_1.z.nativeEnum(alpn_1.ALPN).nullable()),
|
45
|
+
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(fingerprints_1.FINGERPRINTS).nullable()),
|
46
46
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
47
47
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
48
48
|
});
|
@@ -22,7 +22,7 @@ var GetSubscriptionInfoByShortUuidCommand;
|
|
22
22
|
username: zod_1.z.string(),
|
23
23
|
expiresAt: zod_1.z.string().transform((str) => new Date(str)),
|
24
24
|
isActive: zod_1.z.boolean(),
|
25
|
-
userStatus: zod_1.z.
|
25
|
+
userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
|
26
26
|
}),
|
27
27
|
}),
|
28
28
|
});
|
@@ -83,26 +83,20 @@ var CreateUserCommand;
|
|
83
83
|
required_error: 'Expiration date is required',
|
84
84
|
invalid_type_error: 'Invalid expiration date format',
|
85
85
|
})
|
86
|
-
.
|
87
|
-
message: 'Expiration date cannot be in the past',
|
88
|
-
}),
|
86
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z'),
|
89
87
|
createdAt: zod_1.z.coerce
|
90
88
|
.date({
|
91
89
|
required_error: 'Expiration date is required',
|
92
90
|
invalid_type_error: 'Invalid expiration date format',
|
93
91
|
})
|
94
|
-
.
|
95
|
-
message: 'Expiration date cannot be in the past',
|
96
|
-
})
|
92
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
97
93
|
.optional(),
|
98
94
|
lastTrafficResetAt: zod_1.z.coerce
|
99
95
|
.date({
|
100
96
|
required_error: 'Expiration date is required',
|
101
97
|
invalid_type_error: 'Invalid expiration date format',
|
102
98
|
})
|
103
|
-
.
|
104
|
-
message: 'Expiration date cannot be in the past',
|
105
|
-
})
|
99
|
+
.describe('Date format: 2025-01-17T15:38:45.065Z')
|
106
100
|
.optional(),
|
107
101
|
description: zod_1.z.string().optional(),
|
108
102
|
activateAllInbounds: zod_1.z.boolean().optional(),
|
@@ -9,17 +9,15 @@ exports.UsersSchema = zod_1.z.object({
|
|
9
9
|
subscriptionUuid: zod_1.z.string().uuid(),
|
10
10
|
shortUuid: zod_1.z.string(),
|
11
11
|
username: zod_1.z.string(),
|
12
|
-
status: zod_1.z
|
13
|
-
.enum([constants_1.USERS_STATUS_VALUES[0], ...constants_1.USERS_STATUS_VALUES])
|
14
|
-
.default(constants_1.USERS_STATUS_VALUES[0]),
|
12
|
+
status: zod_1.z.nativeEnum(constants_1.USERS_STATUS).default(constants_1.USERS_STATUS.ACTIVE),
|
15
13
|
usedTrafficBytes: zod_1.z.number(),
|
16
14
|
lifetimeUsedTrafficBytes: zod_1.z.number(),
|
17
15
|
trafficLimitBytes: zod_1.z.number().int().default(0),
|
18
16
|
trafficLimitStrategy: zod_1.z
|
19
|
-
.
|
17
|
+
.nativeEnum(constants_1.RESET_PERIODS, {
|
20
18
|
description: 'Available reset periods',
|
21
19
|
})
|
22
|
-
.default(constants_1.
|
20
|
+
.default(constants_1.RESET_PERIODS.NO_RESET),
|
23
21
|
subLastUserAgent: zod_1.z.nullable(zod_1.z.string()),
|
24
22
|
subLastOpenedAt: zod_1.z.nullable(zod_1.z.string().transform((str) => new Date(str))),
|
25
23
|
expireAt: zod_1.z.nullable(zod_1.z.string().transform((str) => new Date(str))),
|