@remnawave/backend-contract 2.1.54 → 2.1.55
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.
@@ -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,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgFpB,CAAC;IAEP,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"}
|
@@ -70,8 +70,13 @@ var UpdateUserCommand;
|
|
70
70
|
})
|
71
71
|
.optional(),
|
72
72
|
})
|
73
|
-
.
|
74
|
-
|
73
|
+
.superRefine((data, ctx) => {
|
74
|
+
if (!data.uuid && !data.username) {
|
75
|
+
ctx.addIssue({
|
76
|
+
code: zod_1.z.ZodIssueCode.custom,
|
77
|
+
message: 'Either uuid or username must be provided',
|
78
|
+
});
|
79
|
+
}
|
75
80
|
});
|
76
81
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
77
82
|
response: models_1.ExtendedUsersSchema,
|
@@ -70,8 +70,13 @@ var UpdateUserCommand;
|
|
70
70
|
})
|
71
71
|
.optional(),
|
72
72
|
})
|
73
|
-
.
|
74
|
-
|
73
|
+
.superRefine((data, ctx) => {
|
74
|
+
if (!data.uuid && !data.username) {
|
75
|
+
ctx.addIssue({
|
76
|
+
code: zod_1.z.ZodIssueCode.custom,
|
77
|
+
message: 'Either uuid or username must be provided',
|
78
|
+
});
|
79
|
+
}
|
75
80
|
});
|
76
81
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
77
82
|
response: models_1.ExtendedUsersSchema,
|