Compare commits

..

7 Commits

Author SHA1 Message Date
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
4 changed files with 40 additions and 6 deletions

View File

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

View File

@@ -2811,7 +2811,6 @@ export type GetShotsWithVideoGqlQuery = {
__typename?: "Query";
getShotsWithMetadata: {
__typename?: "GetShotsResult";
ids: Array<number>;
shots: Array<{
__typename?: "ShotGQL";
id: number;
@@ -3114,6 +3113,7 @@ export type GetLoggedInUserQuery = {
username: string;
isAdmin?: boolean | null;
profileImageUri?: string | null;
fargoRating?: number | null;
activeVideoId?: number | null;
createdAt?: any | null;
updatedAt?: any | null;
@@ -3173,7 +3173,12 @@ export type FollowUserMutationVariables = Exact<{
export type FollowUserMutation = {
__typename?: "Mutation";
followUser: { __typename?: "UserGQL"; username: string };
followUser: {
__typename?: "UserGQL";
username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
};
};
export type UnfollowUserMutationVariables = Exact<{
@@ -3182,7 +3187,12 @@ export type UnfollowUserMutationVariables = Exact<{
export type UnfollowUserMutation = {
__typename?: "Mutation";
unfollowUser: { __typename?: "UserGQL"; username: string };
unfollowUser: {
__typename?: "UserGQL";
username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
};
};
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
@@ -4467,7 +4477,6 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions<
export const GetShotsWithVideoGqlDocument = gql`
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
ids
shots {
id
videoId
@@ -4930,6 +4939,7 @@ export const GetLoggedInUserDocument = gql`
username
isAdmin
profileImageUri
fargoRating
activeVideoId
createdAt
updatedAt
@@ -5319,6 +5329,12 @@ export const FollowUserDocument = gql`
mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) {
username
following {
id
}
followers {
id
}
}
}
`;
@@ -5369,6 +5385,12 @@ export const UnfollowUserDocument = gql`
mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) {
username
following {
id
}
followers {
id
}
}
}
`;

View File

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

View File

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