Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(group): attach the settings docblock to GroupSettingsDto
Yudhi Armyndharis3744be4d6814
diff --git a/src/modules/group/dto/group.dto.ts b/src/modules/group/dto/group.dto.tsindex 5f23bf457..37a2b3de8 100644--- a/src/modules/group/dto/group.dto.ts+++ b/src/modules/group/dto/group.dto.ts@@ -114,12 +114,6 @@ export class JoinGroupDto {inviteCode!: string;}-/**- * All fields optional, but at least one must be present — enforced in GroupService.updateGroupSettings- * (a class-validator "at least one of" idiom does not exist; an empty body is a client error, 400).- * ValidateIf (not @IsOptional) so an explicit `null` fails validation (400) instead of being applied- * as a value; only `undefined` (absent) skips the field.- *//*** Group picture payload. Mirrors SetProfilePictureDto: provide exactly one of `url` or `base64`* (base64 wins when both are present), and a `mimetype` when using base64.@@ -147,6 +141,12 @@ export class SetGroupPictureDto {mimetype?: string;}+/**+ * All fields optional, but at least one must be present — enforced in GroupService.updateGroupSettings+ * (a class-validator "at least one of" idiom does not exist; an empty body is a client error, 400).+ * ValidateIf (not @IsOptional) so an explicit `null` fails validation (400) instead of being applied+ * as a value; only `undefined` (absent) skips the field.+ */export class GroupSettingsDto {@ApiPropertyOptional({ description: 'Only admins can send messages (announce group)' })@ToStrictBoolean()