Skip to content

Commit

Permalink
Merge pull request #276 from bakaphp/feat-message-interaction
Browse files Browse the repository at this point in the history
feat: msg interaction
  • Loading branch information
kaioken authored Aug 21, 2024
2 parents 7dafbf7 + 737afc2 commit 8dcadd0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.4",
"version": "0.6.5",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
21 changes: 12 additions & 9 deletions src/queries/messages.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ export const GET_MESSAGES_QUERY = gql`
uuid
},
myInteraction {
is_liked,
is_saved,
is_shared,
is_liked
is_disliked
is_saved
is_shared
is_reported
}
created_at
Expand Down Expand Up @@ -121,9 +122,10 @@ export const GET_MESSAGES_BY_DISPLAYNAME_AND_SLUG = gql`
}
}
myInteraction {
is_liked,
is_saved,
is_shared,
is_liked
is_disliked
is_saved
is_shared
is_reported
}
created_at
Expand Down Expand Up @@ -184,9 +186,10 @@ export const GET_MESSAGES_GROUP_BY_DATE_QUERY = gql`
}
}
myInteraction {
is_liked,
is_saved,
is_shared,
is_liked
is_disliked
is_saved
is_shared
is_reported
}
created_at
Expand Down
9 changes: 9 additions & 0 deletions src/types/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ export interface MessagesInterface {
message_types_id: string;
user: UserInterface;
tags: string[];
myInteraction: MyInteractionInterface;
created_at: string;
appModuleMessage: AppModuleMessage;
}

interface MyInteractionInterface {
is_liked: boolean;
is_disliked: boolean;
is_saved: boolean;
is_shared: boolean;
is_reported: boolean;
}

interface AppModuleMessage {
entity_id: string;
system_modules: string;
Expand Down

0 comments on commit 8dcadd0

Please sign in to comment.