Compare commits
	
		
			15 Commits
		
	
	
		
			kat/user-r
			...
			9db95c4e6c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 9db95c4e6c | |||
| 249807c935 | |||
| eec79b2dc5 | |||
| 464c013095 | |||
| e2f4995cad | |||
| a43b286e39 | |||
| 148f5362f0 | |||
| 4d01e9814d | |||
| b9e3e1f310 | |||
| b0da48c4fb | |||
| 1e53dc21ee | |||
| 5c5014339f | |||
| 84188a6066 | |||
| 7c7be319d1 | |||
| 79784faba1 | 
| @@ -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" | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										142
									
								
								src/index.tsx
									
									
									
									
									
								
							
							
						
						
									
										142
									
								
								src/index.tsx
									
									
									
									
									
								
							| @@ -2804,14 +2804,14 @@ export type UpdateShotAnnotationsMutation = { | |||||||
|  |  | ||||||
| export type GetShotsWithVideoGqlQueryVariables = Exact<{ | export type GetShotsWithVideoGqlQueryVariables = Exact<{ | ||||||
|   filterInput: FilterInput; |   filterInput: FilterInput; | ||||||
|  |   shotsOrdering?: InputMaybe<GetShotsOrdering>; | ||||||
|   limit?: InputMaybe<Scalars["Int"]["input"]>; |   limit?: InputMaybe<Scalars["Int"]["input"]>; | ||||||
| }>; | }>; | ||||||
|  |  | ||||||
| export type GetShotsWithVideoGqlQuery = { | export type GetShotsWithVideoGqlQuery = { | ||||||
|   __typename?: "Query"; |   __typename?: "Query"; | ||||||
|   getShotsWithMetadata: { |   getOrderedShots: { | ||||||
|     __typename?: "GetShotsResult"; |     __typename?: "GetShotsResult"; | ||||||
|     ids: Array<number>; |  | ||||||
|     shots: Array<{ |     shots: Array<{ | ||||||
|       __typename?: "ShotGQL"; |       __typename?: "ShotGQL"; | ||||||
|       id: number; |       id: number; | ||||||
| @@ -3114,6 +3114,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 +3176,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,10 +3190,34 @@ 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; | ||||||
|   }; |   }; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | export type GetUserFollowingFollowersQueryVariables = Exact<{ | ||||||
|  |   [key: string]: never; | ||||||
|  | }>; | ||||||
|  |  | ||||||
|  | export type GetUserFollowingFollowersQuery = { | ||||||
|  |   __typename?: "Query"; | ||||||
|  |   getLoggedInUser?: { | ||||||
|  |     __typename?: "UserGQL"; | ||||||
|  |     id: number; | ||||||
|  |     following?: Array<{ | ||||||
|  |       __typename?: "UserGQL"; | ||||||
|  |       id: number; | ||||||
|  |       username: string; | ||||||
|  |     }> | null; | ||||||
|  |     followers?: Array<{ | ||||||
|  |       __typename?: "UserGQL"; | ||||||
|  |       id: number; | ||||||
|  |       username: string; | ||||||
|  |     }> | null; | ||||||
|  |   } | null; | ||||||
|  | }; | ||||||
|  |  | ||||||
| export type GetStreamMonitoringDetailsQueryVariables = Exact<{ | export type GetStreamMonitoringDetailsQueryVariables = Exact<{ | ||||||
|   videoId: Scalars["Int"]["input"]; |   videoId: Scalars["Int"]["input"]; | ||||||
|   debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>; |   debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>; | ||||||
| @@ -4471,9 +4498,16 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions< | |||||||
|   UpdateShotAnnotationsMutationVariables |   UpdateShotAnnotationsMutationVariables | ||||||
| >; | >; | ||||||
| export const GetShotsWithVideoGqlDocument = gql` | export const GetShotsWithVideoGqlDocument = gql` | ||||||
|   query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { |   query GetShotsWithVideoGql( | ||||||
|     getShotsWithMetadata(filterInput: $filterInput, limit: $limit) { |     $filterInput: FilterInput! | ||||||
|       ids |     $shotsOrdering: GetShotsOrdering | ||||||
|  |     $limit: Int | ||||||
|  |   ) { | ||||||
|  |     getOrderedShots( | ||||||
|  |       filterInput: $filterInput | ||||||
|  |       shotsOrdering: $shotsOrdering | ||||||
|  |       limit: $limit | ||||||
|  |     ) { | ||||||
|       shots { |       shots { | ||||||
|         id |         id | ||||||
|         videoId |         videoId | ||||||
| @@ -4499,6 +4533,7 @@ export const GetShotsWithVideoGqlDocument = gql` | |||||||
|  * const { data, loading, error } = useGetShotsWithVideoGqlQuery({ |  * const { data, loading, error } = useGetShotsWithVideoGqlQuery({ | ||||||
|  *   variables: { |  *   variables: { | ||||||
|  *      filterInput: // value for 'filterInput' |  *      filterInput: // value for 'filterInput' | ||||||
|  |  *      shotsOrdering: // value for 'shotsOrdering' | ||||||
|  *      limit: // value for 'limit' |  *      limit: // value for 'limit' | ||||||
|  *   }, |  *   }, | ||||||
|  * }); |  * }); | ||||||
| @@ -4936,6 +4971,7 @@ export const GetLoggedInUserDocument = gql` | |||||||
|       username |       username | ||||||
|       isAdmin |       isAdmin | ||||||
|       profileImageUri |       profileImageUri | ||||||
|  |       fargoRating | ||||||
|       activeVideoId |       activeVideoId | ||||||
|       createdAt |       createdAt | ||||||
|       updatedAt |       updatedAt | ||||||
| @@ -5324,8 +5360,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 +5416,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 | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| @@ -5425,6 +5469,86 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions< | |||||||
|   UnfollowUserMutation, |   UnfollowUserMutation, | ||||||
|   UnfollowUserMutationVariables |   UnfollowUserMutationVariables | ||||||
| >; | >; | ||||||
|  | export const GetUserFollowingFollowersDocument = gql` | ||||||
|  |   query getUserFollowingFollowers { | ||||||
|  |     getLoggedInUser { | ||||||
|  |       id | ||||||
|  |       following { | ||||||
|  |         id | ||||||
|  |         username | ||||||
|  |       } | ||||||
|  |       followers { | ||||||
|  |         id | ||||||
|  |         username | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | `; | ||||||
|  |  | ||||||
|  | /** | ||||||
|  |  * __useGetUserFollowingFollowersQuery__ | ||||||
|  |  * | ||||||
|  |  * To run a query within a React component, call `useGetUserFollowingFollowersQuery` and pass it any options that fit your needs. | ||||||
|  |  * When your component renders, `useGetUserFollowingFollowersQuery` returns an object from Apollo Client that contains loading, error, and data properties | ||||||
|  |  * you can use to render your UI. | ||||||
|  |  * | ||||||
|  |  * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; | ||||||
|  |  * | ||||||
|  |  * @example | ||||||
|  |  * const { data, loading, error } = useGetUserFollowingFollowersQuery({ | ||||||
|  |  *   variables: { | ||||||
|  |  *   }, | ||||||
|  |  * }); | ||||||
|  |  */ | ||||||
|  | export function useGetUserFollowingFollowersQuery( | ||||||
|  |   baseOptions?: Apollo.QueryHookOptions< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >, | ||||||
|  | ) { | ||||||
|  |   const options = { ...defaultOptions, ...baseOptions }; | ||||||
|  |   return Apollo.useQuery< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >(GetUserFollowingFollowersDocument, options); | ||||||
|  | } | ||||||
|  | export function useGetUserFollowingFollowersLazyQuery( | ||||||
|  |   baseOptions?: Apollo.LazyQueryHookOptions< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >, | ||||||
|  | ) { | ||||||
|  |   const options = { ...defaultOptions, ...baseOptions }; | ||||||
|  |   return Apollo.useLazyQuery< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >(GetUserFollowingFollowersDocument, options); | ||||||
|  | } | ||||||
|  | export function useGetUserFollowingFollowersSuspenseQuery( | ||||||
|  |   baseOptions?: Apollo.SuspenseQueryHookOptions< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >, | ||||||
|  | ) { | ||||||
|  |   const options = { ...defaultOptions, ...baseOptions }; | ||||||
|  |   return Apollo.useSuspenseQuery< | ||||||
|  |     GetUserFollowingFollowersQuery, | ||||||
|  |     GetUserFollowingFollowersQueryVariables | ||||||
|  |   >(GetUserFollowingFollowersDocument, options); | ||||||
|  | } | ||||||
|  | export type GetUserFollowingFollowersQueryHookResult = ReturnType< | ||||||
|  |   typeof useGetUserFollowingFollowersQuery | ||||||
|  | >; | ||||||
|  | export type GetUserFollowingFollowersLazyQueryHookResult = ReturnType< | ||||||
|  |   typeof useGetUserFollowingFollowersLazyQuery | ||||||
|  | >; | ||||||
|  | export type GetUserFollowingFollowersSuspenseQueryHookResult = ReturnType< | ||||||
|  |   typeof useGetUserFollowingFollowersSuspenseQuery | ||||||
|  | >; | ||||||
|  | export type GetUserFollowingFollowersQueryResult = Apollo.QueryResult< | ||||||
|  |   GetUserFollowingFollowersQuery, | ||||||
|  |   GetUserFollowingFollowersQueryVariables | ||||||
|  | >; | ||||||
| export const GetStreamMonitoringDetailsDocument = gql` | export const GetStreamMonitoringDetailsDocument = gql` | ||||||
|   query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) { |   query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) { | ||||||
|     getVideo(videoId: $videoId, debuggingJson: $debuggingJson) { |     getVideo(videoId: $videoId, debuggingJson: $debuggingJson) { | ||||||
|   | |||||||
| @@ -40,9 +40,16 @@ mutation UpdateShotAnnotations( | |||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
| query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { | query GetShotsWithVideoGql( | ||||||
|   getShotsWithMetadata(filterInput: $filterInput, limit: $limit) { |   $filterInput: FilterInput! | ||||||
|     ids |   $shotsOrdering: GetShotsOrdering | ||||||
|  |   $limit: Int | ||||||
|  | ) { | ||||||
|  |   getOrderedShots( | ||||||
|  |     filterInput: $filterInput | ||||||
|  |     shotsOrdering: $shotsOrdering | ||||||
|  |     limit: $limit | ||||||
|  |   ) { | ||||||
|     shots { |     shots { | ||||||
|       id |       id | ||||||
|       videoId |       videoId | ||||||
|   | |||||||
| @@ -37,6 +37,7 @@ query getLoggedInUser { | |||||||
|     username |     username | ||||||
|     isAdmin |     isAdmin | ||||||
|     profileImageUri |     profileImageUri | ||||||
|  |     fargoRating | ||||||
|     activeVideoId |     activeVideoId | ||||||
|     createdAt |     createdAt | ||||||
|     updatedAt |     updatedAt | ||||||
| @@ -89,15 +90,37 @@ 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) { | ||||||
|  |     username | ||||||
|  |     following { | ||||||
|  |       id | ||||||
|  |     } | ||||||
|     followers { |     followers { | ||||||
|  |       id | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | query getUserFollowingFollowers { | ||||||
|  |   getLoggedInUser { | ||||||
|  |     id | ||||||
|  |     following { | ||||||
|  |       id | ||||||
|  |       username | ||||||
|  |     } | ||||||
|  |     followers { | ||||||
|  |       id | ||||||
|       username |       username | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user