feat: Added fetch profile endpoint in chat controller and link preview option in send text message

This commit is contained in:
Davidson Gomes
2023-07-23 22:24:21 -03:00
parent 9f52f20660
commit 798eb90bed
7 changed files with 176 additions and 35 deletions

View File

@@ -588,6 +588,17 @@ export const profilePictureSchema: JSONSchema7 = {
},
};
export const profileSchema: JSONSchema7 = {
type: 'object',
properties: {
wuid: { type: 'string' },
name: { type: 'string' },
picture: { type: 'string' },
status: { type: 'string' },
isBusiness: { type: 'boolean' },
},
};
export const messageValidateSchema: JSONSchema7 = {
$id: v4(),
type: 'object',