@remnawave/backend-contract 0.3.39 → 0.3.41
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/users/bulk/bulk-update-users.command.d.ts +15 -15
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +3 -3
- package/build/backend/commands/users/update-user.command.d.ts +9 -9
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +3 -3
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +3 -3
- package/build/frontend/commands/users/update-user.command.js +3 -3
- package/package.json +1 -1
@@ -19,47 +19,47 @@ export declare namespace BulkUpdateUsersCommand {
|
|
19
19
|
readonly MONTH: "MONTH";
|
20
20
|
}>>;
|
21
21
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, Date, string>, Date, string>>;
|
22
|
-
description: z.ZodOptional<z.ZodString
|
23
|
-
telegramId: z.ZodOptional<z.ZodNumber
|
24
|
-
email: z.ZodOptional<z.ZodString
|
22
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
23
|
+
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
24
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
26
26
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
27
|
-
email?: string | undefined;
|
27
|
+
email?: string | null | undefined;
|
28
28
|
trafficLimitBytes?: number | undefined;
|
29
|
-
description?: string | undefined;
|
29
|
+
description?: string | null | undefined;
|
30
30
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
31
31
|
expireAt?: Date | undefined;
|
32
|
-
telegramId?: number | undefined;
|
32
|
+
telegramId?: number | null | undefined;
|
33
33
|
}, {
|
34
34
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
35
|
-
email?: string | undefined;
|
35
|
+
email?: string | null | undefined;
|
36
36
|
trafficLimitBytes?: number | undefined;
|
37
|
-
description?: string | undefined;
|
37
|
+
description?: string | null | undefined;
|
38
38
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
39
39
|
expireAt?: string | undefined;
|
40
|
-
telegramId?: number | undefined;
|
40
|
+
telegramId?: number | null | undefined;
|
41
41
|
}>;
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
43
43
|
uuids: string[];
|
44
44
|
fields: {
|
45
45
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
46
|
-
email?: string | undefined;
|
46
|
+
email?: string | null | undefined;
|
47
47
|
trafficLimitBytes?: number | undefined;
|
48
|
-
description?: string | undefined;
|
48
|
+
description?: string | null | undefined;
|
49
49
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
50
50
|
expireAt?: Date | undefined;
|
51
|
-
telegramId?: number | undefined;
|
51
|
+
telegramId?: number | null | undefined;
|
52
52
|
};
|
53
53
|
}, {
|
54
54
|
uuids: string[];
|
55
55
|
fields: {
|
56
56
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
57
|
-
email?: string | undefined;
|
57
|
+
email?: string | null | undefined;
|
58
58
|
trafficLimitBytes?: number | undefined;
|
59
|
-
description?: string | undefined;
|
59
|
+
description?: string | null | undefined;
|
60
60
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
61
61
|
expireAt?: string | undefined;
|
62
|
-
telegramId?: number | undefined;
|
62
|
+
telegramId?: number | null | undefined;
|
63
63
|
};
|
64
64
|
}>;
|
65
65
|
type Request = z.infer<typeof RequestSchema>;
|
@@ -33,9 +33,9 @@ var BulkUpdateUsersCommand;
|
|
33
33
|
message: 'Expiration date cannot be in the past',
|
34
34
|
})
|
35
35
|
.describe('Expiration date: 2025-01-17T15:38:45.065Z')),
|
36
|
-
description: zod_1.z.optional(zod_1.z.string()),
|
37
|
-
telegramId: zod_1.z.optional(zod_1.z.number()),
|
38
|
-
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format')),
|
36
|
+
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
37
|
+
telegramId: zod_1.z.optional(zod_1.z.number().nullable()),
|
38
|
+
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
39
39
|
}),
|
40
40
|
});
|
41
41
|
BulkUpdateUsersCommand.ResponseSchema = zod_1.z.object({
|
@@ -65,28 +65,28 @@ export declare namespace UpdateUserCommand {
|
|
65
65
|
}>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>>;
|
66
66
|
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
67
67
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, Date, string>, Date, string>>;
|
68
|
-
description: z.ZodOptional<z.ZodString
|
69
|
-
telegramId: z.ZodOptional<z.ZodNumber
|
70
|
-
email: z.ZodOptional<z.ZodString
|
68
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
69
|
+
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
70
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
71
71
|
}>, "strip", z.ZodTypeAny, {
|
72
72
|
uuid: string;
|
73
73
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
74
|
-
email?: string | undefined;
|
74
|
+
email?: string | null | undefined;
|
75
75
|
trafficLimitBytes?: number | undefined;
|
76
|
-
description?: string | undefined;
|
76
|
+
description?: string | null | undefined;
|
77
77
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
78
78
|
expireAt?: Date | undefined;
|
79
|
-
telegramId?: number | undefined;
|
79
|
+
telegramId?: number | null | undefined;
|
80
80
|
activeUserInbounds?: string[] | undefined;
|
81
81
|
}, {
|
82
82
|
uuid: string;
|
83
83
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
84
|
-
email?: string | undefined;
|
84
|
+
email?: string | null | undefined;
|
85
85
|
trafficLimitBytes?: number | undefined;
|
86
|
-
description?: string | undefined;
|
86
|
+
description?: string | null | undefined;
|
87
87
|
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
88
88
|
expireAt?: string | undefined;
|
89
|
-
telegramId?: number | undefined;
|
89
|
+
telegramId?: number | null | undefined;
|
90
90
|
activeUserInbounds?: string[] | undefined;
|
91
91
|
}>;
|
92
92
|
type Request = z.infer<typeof RequestSchema>;
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2CxB,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"}
|
@@ -49,9 +49,9 @@ var UpdateUserCommand;
|
|
49
49
|
})
|
50
50
|
.describe('Expiration date: 2025-01-17T15:38:45.065Z')
|
51
51
|
.optional(),
|
52
|
-
description: zod_1.z.string().
|
53
|
-
telegramId: zod_1.z.number().
|
54
|
-
email: zod_1.z.string().email('Invalid email format').
|
52
|
+
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
53
|
+
telegramId: zod_1.z.optional(zod_1.z.number().nullable()),
|
54
|
+
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
55
55
|
});
|
56
56
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
57
57
|
response: models_1.UsersSchema.extend({
|
@@ -33,9 +33,9 @@ var BulkUpdateUsersCommand;
|
|
33
33
|
message: 'Expiration date cannot be in the past',
|
34
34
|
})
|
35
35
|
.describe('Expiration date: 2025-01-17T15:38:45.065Z')),
|
36
|
-
description: zod_1.z.optional(zod_1.z.string()),
|
37
|
-
telegramId: zod_1.z.optional(zod_1.z.number()),
|
38
|
-
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format')),
|
36
|
+
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
37
|
+
telegramId: zod_1.z.optional(zod_1.z.number().nullable()),
|
38
|
+
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
39
39
|
}),
|
40
40
|
});
|
41
41
|
BulkUpdateUsersCommand.ResponseSchema = zod_1.z.object({
|
@@ -49,9 +49,9 @@ var UpdateUserCommand;
|
|
49
49
|
})
|
50
50
|
.describe('Expiration date: 2025-01-17T15:38:45.065Z')
|
51
51
|
.optional(),
|
52
|
-
description: zod_1.z.string().
|
53
|
-
telegramId: zod_1.z.number().
|
54
|
-
email: zod_1.z.string().email('Invalid email format').
|
52
|
+
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
53
|
+
telegramId: zod_1.z.optional(zod_1.z.number().nullable()),
|
54
|
+
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
55
55
|
});
|
56
56
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
57
57
|
response: models_1.UsersSchema.extend({
|