Compare commits
5 Commits
colonelpan
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| d67fdd9fee | |||
| d787e5e9a2 | |||
| 1d73b2d67b | |||
|
|
aa731b85fc | ||
| 644f70c3b0 |
100
src/index.tsx
100
src/index.tsx
@@ -5236,6 +5236,11 @@ export type GetVideoFeedQuery = {
|
|||||||
export type GetMakesLeaderboardQueryVariables = Exact<{
|
export type GetMakesLeaderboardQueryVariables = Exact<{
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetMakesLeaderboardQuery = {
|
export type GetMakesLeaderboardQuery = {
|
||||||
@@ -5260,6 +5265,11 @@ export type GetMakesLeaderboardQuery = {
|
|||||||
export type GetRunsLeaderboardQueryVariables = Exact<{
|
export type GetRunsLeaderboardQueryVariables = Exact<{
|
||||||
interval?: InputMaybe<TimeInterval>;
|
interval?: InputMaybe<TimeInterval>;
|
||||||
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
when?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
|
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetRunsLeaderboardQuery = {
|
export type GetRunsLeaderboardQuery = {
|
||||||
@@ -6686,6 +6696,7 @@ export type ReactToVideoMutation = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type GetShotLabVideosQueryVariables = Exact<{
|
export type GetShotLabVideosQueryVariables = Exact<{
|
||||||
|
userId: Scalars["Int"]["input"];
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
@@ -6736,29 +6747,13 @@ export type GetRecordedStreamShotsQuery = {
|
|||||||
__typename?: "SerializedShotPathsGQL";
|
__typename?: "SerializedShotPathsGQL";
|
||||||
b64EncodedBuffer?: string | null;
|
b64EncodedBuffer?: string | null;
|
||||||
} | null;
|
} | null;
|
||||||
cueObjectFeatures?: {
|
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
|
||||||
cueObjectDistance?: number | null;
|
|
||||||
cueObjectAngle?: number | null;
|
|
||||||
cueBallSpeed?: number | null;
|
|
||||||
shotDirection?: ShotDirectionEnum | null;
|
|
||||||
spinType?: SpinTypeEnum | null;
|
|
||||||
} | null;
|
|
||||||
pocketingIntentionFeatures?: {
|
pocketingIntentionFeatures?: {
|
||||||
__typename?: "PocketingIntentionFeaturesGQL";
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
make?: boolean | null;
|
make?: boolean | null;
|
||||||
targetPocketDistance?: number | null;
|
|
||||||
targetPocketAngle?: number | null;
|
|
||||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
|
||||||
marginOfErrorInDegrees?: number | null;
|
|
||||||
intendedPocketType?: PocketEnum | null;
|
|
||||||
difficulty?: number | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
pocketingIntentionInfo?: {
|
pocketingIntentionInfo?: {
|
||||||
__typename?: "PocketingIntentionInfoGQL";
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
ballId: number;
|
|
||||||
pocketId: PocketIdentifier;
|
pocketId: PocketIdentifier;
|
||||||
pathMetadataIndex: number;
|
|
||||||
} | null;
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -11754,8 +11749,24 @@ export type GetVideoFeedQueryResult = Apollo.QueryResult<
|
|||||||
GetVideoFeedQueryVariables
|
GetVideoFeedQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetMakesLeaderboardDocument = gql`
|
export const GetMakesLeaderboardDocument = gql`
|
||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -11784,6 +11795,11 @@ export const GetMakesLeaderboardDocument = gql`
|
|||||||
* variables: {
|
* variables: {
|
||||||
* interval: // value for 'interval'
|
* interval: // value for 'interval'
|
||||||
* when: // value for 'when'
|
* when: // value for 'when'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSizeMin: // value for 'tableSizeMin'
|
||||||
|
* tableSizeMax: // value for 'tableSizeMax'
|
||||||
|
* pocketSizeMin: // value for 'pocketSizeMin'
|
||||||
|
* pocketSizeMax: // value for 'pocketSizeMax'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -11837,8 +11853,24 @@ export type GetMakesLeaderboardQueryResult = Apollo.QueryResult<
|
|||||||
GetMakesLeaderboardQueryVariables
|
GetMakesLeaderboardQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetRunsLeaderboardDocument = gql`
|
export const GetRunsLeaderboardDocument = gql`
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
@@ -11870,6 +11902,11 @@ export const GetRunsLeaderboardDocument = gql`
|
|||||||
* variables: {
|
* variables: {
|
||||||
* interval: // value for 'interval'
|
* interval: // value for 'interval'
|
||||||
* when: // value for 'when'
|
* when: // value for 'when'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSizeMin: // value for 'tableSizeMin'
|
||||||
|
* tableSizeMax: // value for 'tableSizeMax'
|
||||||
|
* pocketSizeMin: // value for 'pocketSizeMin'
|
||||||
|
* pocketSizeMax: // value for 'pocketSizeMax'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -14416,11 +14453,12 @@ export type ReactToVideoMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
ReactToVideoMutationVariables
|
ReactToVideoMutationVariables
|
||||||
>;
|
>;
|
||||||
export const GetShotLabVideosDocument = gql`
|
export const GetShotLabVideosDocument = gql`
|
||||||
query GetShotLabVideos($limit: Int! = 25) {
|
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
includeCallersVideos: false
|
||||||
includePrivate: MINE
|
includePrivate: MINE
|
||||||
feedInput: { allUsers: true }
|
feedInput: { userId: $userId }
|
||||||
) {
|
) {
|
||||||
videos {
|
videos {
|
||||||
id
|
id
|
||||||
@@ -14456,12 +14494,13 @@ export const GetShotLabVideosDocument = gql`
|
|||||||
* @example
|
* @example
|
||||||
* const { data, loading, error } = useGetShotLabVideosQuery({
|
* const { data, loading, error } = useGetShotLabVideosQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
|
* userId: // value for 'userId'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useGetShotLabVideosQuery(
|
export function useGetShotLabVideosQuery(
|
||||||
baseOptions?: Apollo.QueryHookOptions<
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
GetShotLabVideosQuery,
|
GetShotLabVideosQuery,
|
||||||
GetShotLabVideosQueryVariables
|
GetShotLabVideosQueryVariables
|
||||||
>,
|
>,
|
||||||
@@ -14524,26 +14563,11 @@ export const GetRecordedStreamShotsDocument = gql`
|
|||||||
serializedShotPaths {
|
serializedShotPaths {
|
||||||
b64EncodedBuffer
|
b64EncodedBuffer
|
||||||
}
|
}
|
||||||
cueObjectFeatures {
|
|
||||||
cueObjectDistance
|
|
||||||
cueObjectAngle
|
|
||||||
cueBallSpeed
|
|
||||||
shotDirection
|
|
||||||
spinType
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures {
|
pocketingIntentionFeatures {
|
||||||
make
|
make
|
||||||
targetPocketDistance
|
|
||||||
targetPocketAngle
|
|
||||||
targetPocketAngleDirection
|
|
||||||
marginOfErrorInDegrees
|
|
||||||
intendedPocketType
|
|
||||||
difficulty
|
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
|
||||||
pocketId
|
pocketId
|
||||||
pathMetadataIndex
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetMakesLeaderboard(
|
||||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getMakesLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
@@ -13,8 +29,24 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
query GetRunsLeaderboard(
|
||||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
$interval: TimeInterval
|
||||||
|
$when: DateTime
|
||||||
|
$gameType: String
|
||||||
|
$tableSizeMin: Float
|
||||||
|
$tableSizeMax: Float
|
||||||
|
$pocketSizeMin: Float
|
||||||
|
$pocketSizeMax: Float
|
||||||
|
) {
|
||||||
|
getLongestRunsLeaderboard(
|
||||||
|
interval: $interval
|
||||||
|
when: $when
|
||||||
|
gameType: $gameType
|
||||||
|
tableSizeMin: $tableSizeMin
|
||||||
|
tableSizeMax: $tableSizeMax
|
||||||
|
pocketSizeMin: $pocketSizeMin
|
||||||
|
pocketSizeMax: $pocketSizeMax
|
||||||
|
) {
|
||||||
entries {
|
entries {
|
||||||
id
|
id
|
||||||
runLength
|
runLength
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# Lightweight two-step picker data for Shot Lab's video-first source: recent
|
# Lightweight two-step picker data for Shot Lab's video-first source: the
|
||||||
# videos (completed or still uploading — no completion gate, so an in-progress
|
# caller's recent videos (completed or still uploading), then that video's
|
||||||
# recording with no shots yet still appears), then that video's shots. The
|
# shots. The stream fields hint at "actively updating" without gating.
|
||||||
# stream fields let the client hint at "actively updating" without gating.
|
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
||||||
query GetShotLabVideos($limit: Int! = 25) {
|
|
||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
includeCallersVideos: false
|
||||||
includePrivate: MINE
|
includePrivate: MINE
|
||||||
feedInput: { allUsers: true }
|
feedInput: { userId: $userId }
|
||||||
) {
|
) {
|
||||||
videos {
|
videos {
|
||||||
id
|
id
|
||||||
@@ -43,26 +43,11 @@ query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
|||||||
serializedShotPaths {
|
serializedShotPaths {
|
||||||
b64EncodedBuffer
|
b64EncodedBuffer
|
||||||
}
|
}
|
||||||
cueObjectFeatures {
|
|
||||||
cueObjectDistance
|
|
||||||
cueObjectAngle
|
|
||||||
cueBallSpeed
|
|
||||||
shotDirection
|
|
||||||
spinType
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures {
|
pocketingIntentionFeatures {
|
||||||
make
|
make
|
||||||
targetPocketDistance
|
|
||||||
targetPocketAngle
|
|
||||||
targetPocketAngleDirection
|
|
||||||
marginOfErrorInDegrees
|
|
||||||
intendedPocketType
|
|
||||||
difficulty
|
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
|
||||||
pocketId
|
pocketId
|
||||||
pathMetadataIndex
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user