-
-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,23 @@ export class CreateGroupRequest { | |
participants: Array<Participant>; | ||
} | ||
|
||
export class JoinGroupRequest { | ||
@ApiProperty({ | ||
description: 'Group code (123) or url (https://chat.whatsapp.com/123)', | ||
example: 'https://chat.whatsapp.com/1234567890abcdef', | ||
}) | ||
@IsString() | ||
code: string; | ||
} | ||
|
||
export class JoinGroupResponse { | ||
@ApiProperty({ | ||
description: 'Group ID', | ||
example: '[email protected]', | ||
}) | ||
id: string; | ||
} | ||
|
||
export enum GroupSortField { | ||
ID = 'id', | ||
SUBJECT = 'subject', | ||
|