Compare commits

...

10 Commits

Author SHA1 Message Date
a43b286e39 Merge pull request 'Followers and following' (#99) from kat/return-following-followers into master
Reviewed-on: #99
2024-10-29 15:48:34 -06:00
148f5362f0 Followers and following
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-29 15:47:00 -06:00
4d01e9814d Merge pull request 'Remove unused field' (#98) from loewy/remove-ids-from-get-shot-video-gql into master
Reviewed-on: #98
2024-10-29 13:45:52 -06:00
b9e3e1f310 remove uneeded ids
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-10-29 12:44:56 -07:00
b0da48c4fb Merge pull request 'Add fargoRating in getLoggedInUser operations requested fields' (#97) from loewy/fargo-rating-in-returns into master
Reviewed-on: #97
2024-10-28 17:04:08 -06:00
1e53dc21ee add fargoRating in user operations
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-10-28 16:00:11 -07:00
5c5014339f Allow python 3.12 2024-10-28 02:24:24 -06:00
84188a6066 Merge pull request 'Return username in follow unfollow' (#96) from kat/return-username into master
Reviewed-on: #96
2024-10-27 19:19:41 -06:00
7c7be319d1 Return username in follow unfollow
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-10-27 19:18:57 -06:00
79784faba1 Merge pull request 'Follow and unfollow mutation' (#95) from kat/user-relationships-result into master
Reviewed-on: #95
2024-10-27 13:53:22 -06:00
4 changed files with 30 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ readme = "README.md"
packages = [{include = "rbproto"}] packages = [{include = "rbproto"}]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.10,<3.12" python = ">=3.10,<=3.13"
protobuf = "^4.25.3" protobuf = "^4.25.3"

View File

@@ -2811,7 +2811,6 @@ export type GetShotsWithVideoGqlQuery = {
__typename?: "Query"; __typename?: "Query";
getShotsWithMetadata: { getShotsWithMetadata: {
__typename?: "GetShotsResult"; __typename?: "GetShotsResult";
ids: Array<number>;
shots: Array<{ shots: Array<{
__typename?: "ShotGQL"; __typename?: "ShotGQL";
id: number; id: number;
@@ -3114,6 +3113,7 @@ export type GetLoggedInUserQuery = {
username: string; username: string;
isAdmin?: boolean | null; isAdmin?: boolean | null;
profileImageUri?: string | null; profileImageUri?: string | null;
fargoRating?: number | null;
activeVideoId?: number | null; activeVideoId?: number | null;
createdAt?: any | null; createdAt?: any | null;
updatedAt?: any | null; updatedAt?: any | null;
@@ -3175,7 +3175,9 @@ export type FollowUserMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
followUser: { followUser: {
__typename?: "UserGQL"; __typename?: "UserGQL";
followers?: Array<{ __typename?: "UserGQL"; username: string }> | null; username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
}; };
}; };
@@ -3187,7 +3189,9 @@ export type UnfollowUserMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
unfollowUser: { unfollowUser: {
__typename?: "UserGQL"; __typename?: "UserGQL";
followers?: Array<{ __typename?: "UserGQL"; username: string }> | null; username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
}; };
}; };
@@ -4473,7 +4477,6 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions<
export const GetShotsWithVideoGqlDocument = gql` export const GetShotsWithVideoGqlDocument = gql`
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) { getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
ids
shots { shots {
id id
videoId videoId
@@ -4936,6 +4939,7 @@ export const GetLoggedInUserDocument = gql`
username username
isAdmin isAdmin
profileImageUri profileImageUri
fargoRating
activeVideoId activeVideoId
createdAt createdAt
updatedAt updatedAt
@@ -5324,8 +5328,12 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
export const FollowUserDocument = gql` export const FollowUserDocument = gql`
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
followers {
username username
following {
id
}
followers {
id
} }
} }
} }
@@ -5376,8 +5384,12 @@ export type FollowUserMutationOptions = Apollo.BaseMutationOptions<
export const UnfollowUserDocument = gql` export const UnfollowUserDocument = gql`
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
followers {
username username
following {
id
}
followers {
id
} }
} }
} }

View File

@@ -42,7 +42,6 @@ mutation UpdateShotAnnotations(
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) { getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
ids
shots { shots {
id id
videoId videoId

View File

@@ -37,6 +37,7 @@ query getLoggedInUser {
username username
isAdmin isAdmin
profileImageUri profileImageUri
fargoRating
activeVideoId activeVideoId
createdAt createdAt
updatedAt updatedAt
@@ -89,16 +90,24 @@ query GetUserTags {
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
followers {
username username
following {
id
}
followers {
id
} }
} }
} }
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
followers {
username username
following {
id
}
followers {
id
} }
} }
} }