Compare commits
18 Commits
kat/user-r
...
kat/get-us
Author | SHA1 | Date | |
---|---|---|---|
9d8155527d | |||
8690e81029 | |||
4ef13a482a | |||
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"
|
||||||
|
|
||||||
|
|
||||||
|
146
src/index.tsx
146
src/index.tsx
@@ -2154,6 +2154,7 @@ export enum ProcessingStatusEnum {
|
|||||||
|
|
||||||
export type Query = {
|
export type Query = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
|
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
@@ -2176,6 +2177,10 @@ export type Query = {
|
|||||||
waitFor: Scalars["Float"]["output"];
|
waitFor: Scalars["Float"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryDoesUsernameExistArgs = {
|
||||||
|
candidateUsername: Scalars["String"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetAggregatedShotMetricsArgs = {
|
export type QueryGetAggregatedShotMetricsArgs = {
|
||||||
aggregateInput: AggregateInputGql;
|
aggregateInput: AggregateInputGql;
|
||||||
};
|
};
|
||||||
@@ -2804,14 +2809,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 +3119,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 +3181,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 +3195,33 @@ 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<{
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetUserFollowingFollowersQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getUser?: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
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 +4502,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 +4537,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 +4975,7 @@ export const GetLoggedInUserDocument = gql`
|
|||||||
username
|
username
|
||||||
isAdmin
|
isAdmin
|
||||||
profileImageUri
|
profileImageUri
|
||||||
|
fargoRating
|
||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
updatedAt
|
updatedAt
|
||||||
@@ -5324,8 +5364,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) {
|
||||||
|
username
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
}
|
||||||
followers {
|
followers {
|
||||||
username
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5376,8 +5420,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) {
|
||||||
|
username
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
}
|
||||||
followers {
|
followers {
|
||||||
username
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5425,6 +5473,86 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
UnfollowUserMutation,
|
UnfollowUserMutation,
|
||||||
UnfollowUserMutationVariables
|
UnfollowUserMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetUserFollowingFollowersDocument = gql`
|
||||||
|
query getUserFollowingFollowers($userId: Int!) {
|
||||||
|
getUser(userId: $userId) {
|
||||||
|
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: {
|
||||||
|
* userId: // value for 'userId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
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,36 @@ query GetUserTags {
|
|||||||
|
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
}
|
||||||
followers {
|
followers {
|
||||||
username
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
}
|
||||||
followers {
|
followers {
|
||||||
|
id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query getUserFollowingFollowers($userId: Int!) {
|
||||||
|
getUser(userId: $userId) {
|
||||||
|
following {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
username
|
username
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -29,6 +29,7 @@ type Query {
|
|||||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||||
getUser(userId: Int!): UserGQL
|
getUser(userId: Int!): UserGQL
|
||||||
|
doesUsernameExist(candidateUsername: String!): Boolean!
|
||||||
getLoggedInUser: UserGQL
|
getLoggedInUser: UserGQL
|
||||||
getUsernames(
|
getUsernames(
|
||||||
matchString: String = null
|
matchString: String = null
|
||||||
|
Reference in New Issue
Block a user