Compare commits
19 Commits
kat/return
...
kat/use-lo
Author | SHA1 | Date | |
---|---|---|---|
de9e7dea6a | |||
05e3182e8b | |||
f6e4a1bc0b | |||
9d8155527d | |||
8690e81029 | |||
4ef13a482a | |||
9db95c4e6c | |||
249807c935 | |||
eec79b2dc5 | |||
464c013095 | |||
e2f4995cad | |||
a43b286e39 | |||
148f5362f0 | |||
4d01e9814d | |||
b9e3e1f310 | |||
b0da48c4fb | |||
1e53dc21ee | |||
5c5014339f | |||
84188a6066 |
@@ -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"
|
||||
|
||||
|
||||
|
177
src/index.tsx
177
src/index.tsx
@@ -2154,6 +2154,7 @@ export enum ProcessingStatusEnum {
|
||||
|
||||
export type Query = {
|
||||
__typename?: "Query";
|
||||
doesUsernameExist: Scalars["Boolean"]["output"];
|
||||
getAggregatedShotMetrics: Array<AggregateResultGql>;
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getDeployedConfig: DeployedConfigGql;
|
||||
@@ -2176,6 +2177,10 @@ export type Query = {
|
||||
waitFor: Scalars["Float"]["output"];
|
||||
};
|
||||
|
||||
export type QueryDoesUsernameExistArgs = {
|
||||
candidateUsername: Scalars["String"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetAggregatedShotMetricsArgs = {
|
||||
aggregateInput: AggregateInputGql;
|
||||
};
|
||||
@@ -2804,14 +2809,14 @@ export type UpdateShotAnnotationsMutation = {
|
||||
|
||||
export type GetShotsWithVideoGqlQueryVariables = Exact<{
|
||||
filterInput: FilterInput;
|
||||
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
}>;
|
||||
|
||||
export type GetShotsWithVideoGqlQuery = {
|
||||
__typename?: "Query";
|
||||
getShotsWithMetadata: {
|
||||
getOrderedShots: {
|
||||
__typename?: "GetShotsResult";
|
||||
ids: Array<number>;
|
||||
shots: Array<{
|
||||
__typename?: "ShotGQL";
|
||||
id: number;
|
||||
@@ -3114,6 +3119,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 +3179,21 @@ export type FollowUserMutationVariables = Exact<{
|
||||
|
||||
export type FollowUserMutation = {
|
||||
__typename?: "Mutation";
|
||||
followUser: { __typename?: "UserGQL"; username: string };
|
||||
followUser: {
|
||||
__typename?: "UserGQL";
|
||||
username: string;
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type UnfollowUserMutationVariables = Exact<{
|
||||
@@ -3182,7 +3202,43 @@ export type UnfollowUserMutationVariables = Exact<{
|
||||
|
||||
export type UnfollowUserMutation = {
|
||||
__typename?: "Mutation";
|
||||
unfollowUser: { __typename?: "UserGQL"; username: string };
|
||||
unfollowUser: {
|
||||
__typename?: "UserGQL";
|
||||
username: string;
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | 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<{
|
||||
@@ -4465,9 +4521,16 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions<
|
||||
UpdateShotAnnotationsMutationVariables
|
||||
>;
|
||||
export const GetShotsWithVideoGqlDocument = gql`
|
||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
||||
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
||||
ids
|
||||
query GetShotsWithVideoGql(
|
||||
$filterInput: FilterInput!
|
||||
$shotsOrdering: GetShotsOrdering
|
||||
$limit: Int
|
||||
) {
|
||||
getOrderedShots(
|
||||
filterInput: $filterInput
|
||||
shotsOrdering: $shotsOrdering
|
||||
limit: $limit
|
||||
) {
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
@@ -4493,6 +4556,7 @@ export const GetShotsWithVideoGqlDocument = gql`
|
||||
* const { data, loading, error } = useGetShotsWithVideoGqlQuery({
|
||||
* variables: {
|
||||
* filterInput: // value for 'filterInput'
|
||||
* shotsOrdering: // value for 'shotsOrdering'
|
||||
* limit: // value for 'limit'
|
||||
* },
|
||||
* });
|
||||
@@ -4930,6 +4994,7 @@ export const GetLoggedInUserDocument = gql`
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -5319,6 +5384,15 @@ export const FollowUserDocument = gql`
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -5369,6 +5443,15 @@ export const UnfollowUserDocument = gql`
|
||||
mutation unfollowUser($followedUserId: Int!) {
|
||||
unfollowUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -5415,6 +5498,86 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
||||
UnfollowUserMutation,
|
||||
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`
|
||||
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
||||
|
@@ -40,9 +40,16 @@ mutation UpdateShotAnnotations(
|
||||
}
|
||||
}
|
||||
|
||||
query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
|
||||
getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
|
||||
ids
|
||||
query GetShotsWithVideoGql(
|
||||
$filterInput: FilterInput!
|
||||
$shotsOrdering: GetShotsOrdering
|
||||
$limit: Int
|
||||
) {
|
||||
getOrderedShots(
|
||||
filterInput: $filterInput
|
||||
shotsOrdering: $shotsOrdering
|
||||
limit: $limit
|
||||
) {
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
|
@@ -37,6 +37,7 @@ query getLoggedInUser {
|
||||
username
|
||||
isAdmin
|
||||
profileImageUri
|
||||
fargoRating
|
||||
activeVideoId
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -90,11 +91,43 @@ query GetUserTags {
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation unfollowUser($followedUserId: Int!) {
|
||||
unfollowUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query getUserFollowingFollowers {
|
||||
getLoggedInUser {
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ type Query {
|
||||
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
|
||||
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
doesUsernameExist(candidateUsername: String!): Boolean!
|
||||
getLoggedInUser: UserGQL
|
||||
getUsernames(
|
||||
matchString: String = null
|
||||
|
Reference in New Issue
Block a user