Compare commits
13 Commits
kat/create
...
kat/add-da
Author | SHA1 | Date | |
---|---|---|---|
890bea2571 | |||
f57f6dc32d | |||
14863e3357 | |||
|
58f01c567c | ||
937368c753 | |||
d8c11875d4 | |||
bacd9e77f0 | |||
69d755ba32 | |||
31fb95e3b0 | |||
7d0f9870dd | |||
4a493b4e8d | |||
341dc819a0 | |||
b58aecf7a5 |
387
src/index.tsx
387
src/index.tsx
@@ -73,6 +73,7 @@ export type AggregationInput =
|
|||||||
| { bucketSet?: never; datetimeRange?: never; enum: EnumAggregation };
|
| { bucketSet?: never; datetimeRange?: never; enum: EnumAggregation };
|
||||||
|
|
||||||
export enum AlignedIntervalEnum {
|
export enum AlignedIntervalEnum {
|
||||||
|
Day = "DAY",
|
||||||
Month = "MONTH",
|
Month = "MONTH",
|
||||||
Week = "WEEK",
|
Week = "WEEK",
|
||||||
Year = "YEAR",
|
Year = "YEAR",
|
||||||
@@ -1774,6 +1775,7 @@ export type QueryGetShotsByIdsArgs = {
|
|||||||
|
|
||||||
export type QueryGetShotsWithMetadataArgs = {
|
export type QueryGetShotsWithMetadataArgs = {
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||||
};
|
};
|
||||||
@@ -2218,64 +2220,6 @@ export type GetVideoMakePercentageIntervalsQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetShotsQueryVariables = Exact<{
|
|
||||||
filterInput: FilterInput;
|
|
||||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
includeCreatedAt?: Scalars["Boolean"]["input"];
|
|
||||||
includeUpdatedAt?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectFeatures?: Scalars["Boolean"]["input"];
|
|
||||||
includePocketingIntentionFeatures?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectDistance?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectAngle?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueBallSpeed?: Scalars["Boolean"]["input"];
|
|
||||||
includeSpinType?: Scalars["Boolean"]["input"];
|
|
||||||
includeShotDirection?: Scalars["Boolean"]["input"];
|
|
||||||
includeTargetPocketDistance?: Scalars["Boolean"]["input"];
|
|
||||||
includeMake?: Scalars["Boolean"]["input"];
|
|
||||||
includeIntendedPocketType?: Scalars["Boolean"]["input"];
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetShotsQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getShots: Array<{
|
|
||||||
__typename?: "ShotGQL";
|
|
||||||
id: number;
|
|
||||||
videoId: number;
|
|
||||||
startFrame: number;
|
|
||||||
endFrame: number;
|
|
||||||
falsePositiveScore?: number | null;
|
|
||||||
createdAt?: any | null;
|
|
||||||
updatedAt?: any | null;
|
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
||||||
video?: {
|
|
||||||
__typename?: "VideoGQL";
|
|
||||||
stream?: {
|
|
||||||
__typename?: "UploadStreamGQL";
|
|
||||||
resolution: {
|
|
||||||
__typename?: "VideoResolutionGQL";
|
|
||||||
width?: number | null;
|
|
||||||
height?: number | null;
|
|
||||||
};
|
|
||||||
} | null;
|
|
||||||
} | null;
|
|
||||||
cueObjectFeatures?: {
|
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
|
||||||
cueObjectDistance?: number | null;
|
|
||||||
cueObjectAngle?: number | null;
|
|
||||||
cueBallSpeed?: number | null;
|
|
||||||
shotDirection?: ShotDirectionEnum | null;
|
|
||||||
spinType?: SpinTypeEnum | null;
|
|
||||||
} | null;
|
|
||||||
pocketingIntentionFeatures?: {
|
|
||||||
__typename?: "PocketingIntentionFeaturesGQL";
|
|
||||||
targetPocketDistance?: number | null;
|
|
||||||
make?: boolean | null;
|
|
||||||
intendedPocketType?: PocketEnum | null;
|
|
||||||
} | null;
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -2312,18 +2256,7 @@ export type GetShotsWithMetadataQueryVariables = Exact<{
|
|||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
shotsPagination?: InputMaybe<GetShotsPagination>;
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
includeCreatedAt?: Scalars["Boolean"]["input"];
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
includeUpdatedAt?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectFeatures?: Scalars["Boolean"]["input"];
|
|
||||||
includePocketingIntentionFeatures?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectDistance?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueObjectAngle?: Scalars["Boolean"]["input"];
|
|
||||||
includeCueBallSpeed?: Scalars["Boolean"]["input"];
|
|
||||||
includeSpinType?: Scalars["Boolean"]["input"];
|
|
||||||
includeShotDirection?: Scalars["Boolean"]["input"];
|
|
||||||
includeTargetPocketDistance?: Scalars["Boolean"]["input"];
|
|
||||||
includeMake?: Scalars["Boolean"]["input"];
|
|
||||||
includeIntendedPocketType?: Scalars["Boolean"]["input"];
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetShotsWithMetadataQuery = {
|
export type GetShotsWithMetadataQuery = {
|
||||||
@@ -2331,6 +2264,7 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
getShotsWithMetadata: {
|
getShotsWithMetadata: {
|
||||||
__typename?: "GetShotsResult";
|
__typename?: "GetShotsResult";
|
||||||
count?: number | null;
|
count?: number | null;
|
||||||
|
ids: Array<number>;
|
||||||
shots: Array<{
|
shots: Array<{
|
||||||
__typename?: "ShotGQL";
|
__typename?: "ShotGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -2380,44 +2314,6 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ShotWithAllFeaturesFragment = {
|
|
||||||
__typename?: "ShotGQL";
|
|
||||||
id: number;
|
|
||||||
videoId: number;
|
|
||||||
startFrame: number;
|
|
||||||
endFrame: number;
|
|
||||||
falsePositiveScore?: number | null;
|
|
||||||
createdAt?: any | null;
|
|
||||||
updatedAt?: any | null;
|
|
||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
||||||
video?: {
|
|
||||||
__typename?: "VideoGQL";
|
|
||||||
id: number;
|
|
||||||
stream?: {
|
|
||||||
__typename?: "UploadStreamGQL";
|
|
||||||
resolution: {
|
|
||||||
__typename?: "VideoResolutionGQL";
|
|
||||||
width?: number | null;
|
|
||||||
height?: number | null;
|
|
||||||
};
|
|
||||||
} | null;
|
|
||||||
} | null;
|
|
||||||
cueObjectFeatures?: {
|
|
||||||
__typename?: "CueObjectFeaturesGQL";
|
|
||||||
cueObjectDistance?: number | null;
|
|
||||||
cueObjectAngle?: number | null;
|
|
||||||
cueBallSpeed?: number | null;
|
|
||||||
shotDirection?: ShotDirectionEnum | null;
|
|
||||||
spinType?: SpinTypeEnum | null;
|
|
||||||
} | null;
|
|
||||||
pocketingIntentionFeatures?: {
|
|
||||||
__typename?: "PocketingIntentionFeaturesGQL";
|
|
||||||
targetPocketDistance?: number | null;
|
|
||||||
make?: boolean | null;
|
|
||||||
intendedPocketType?: PocketEnum | null;
|
|
||||||
} | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetShotsByIdsQueryVariables = Exact<{
|
export type GetShotsByIdsQueryVariables = Exact<{
|
||||||
ids: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
ids: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||||
}>;
|
}>;
|
||||||
@@ -2436,7 +2332,6 @@ export type GetShotsByIdsQuery = {
|
|||||||
user?: { __typename?: "UserGQL"; id: number } | null;
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
video?: {
|
video?: {
|
||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
id: number;
|
|
||||||
stream?: {
|
stream?: {
|
||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
resolution: {
|
resolution: {
|
||||||
@@ -2460,9 +2355,66 @@ export type GetShotsByIdsQuery = {
|
|||||||
make?: boolean | null;
|
make?: boolean | null;
|
||||||
intendedPocketType?: PocketEnum | null;
|
intendedPocketType?: PocketEnum | null;
|
||||||
} | null;
|
} | null;
|
||||||
|
pocketingIntentionInfo?: {
|
||||||
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
|
ballId: number;
|
||||||
|
pocketId: PocketIdentifier;
|
||||||
|
pathMetadataIndex: number;
|
||||||
|
} | null;
|
||||||
|
serializedShotPaths?: {
|
||||||
|
__typename?: "SerializedShotPathsGQL";
|
||||||
|
b64EncodedBuffer?: string | null;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ShotWithAllFeaturesFragment = {
|
||||||
|
__typename?: "ShotGQL";
|
||||||
|
id: number;
|
||||||
|
videoId: number;
|
||||||
|
startFrame: number;
|
||||||
|
endFrame: number;
|
||||||
|
falsePositiveScore?: number | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
updatedAt?: any | null;
|
||||||
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
||||||
|
video?: {
|
||||||
|
__typename?: "VideoGQL";
|
||||||
|
stream?: {
|
||||||
|
__typename?: "UploadStreamGQL";
|
||||||
|
resolution: {
|
||||||
|
__typename?: "VideoResolutionGQL";
|
||||||
|
width?: number | null;
|
||||||
|
height?: number | null;
|
||||||
|
};
|
||||||
|
} | null;
|
||||||
|
} | null;
|
||||||
|
cueObjectFeatures?: {
|
||||||
|
__typename?: "CueObjectFeaturesGQL";
|
||||||
|
cueObjectDistance?: number | null;
|
||||||
|
cueObjectAngle?: number | null;
|
||||||
|
cueBallSpeed?: number | null;
|
||||||
|
shotDirection?: ShotDirectionEnum | null;
|
||||||
|
spinType?: SpinTypeEnum | null;
|
||||||
|
} | null;
|
||||||
|
pocketingIntentionFeatures?: {
|
||||||
|
__typename?: "PocketingIntentionFeaturesGQL";
|
||||||
|
targetPocketDistance?: number | null;
|
||||||
|
make?: boolean | null;
|
||||||
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
} | null;
|
||||||
|
pocketingIntentionInfo?: {
|
||||||
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
|
ballId: number;
|
||||||
|
pocketId: PocketIdentifier;
|
||||||
|
pathMetadataIndex: number;
|
||||||
|
} | null;
|
||||||
|
serializedShotPaths?: {
|
||||||
|
__typename?: "SerializedShotPathsGQL";
|
||||||
|
b64EncodedBuffer?: string | null;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
@@ -3012,14 +2964,11 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
falsePositiveScore
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
falsePositiveScore
|
||||||
video {
|
video {
|
||||||
id
|
|
||||||
stream {
|
stream {
|
||||||
resolution {
|
resolution {
|
||||||
width
|
width
|
||||||
@@ -3027,6 +2976,8 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
cueObjectFeatures {
|
cueObjectFeatures {
|
||||||
cueObjectDistance
|
cueObjectDistance
|
||||||
cueObjectAngle
|
cueObjectAngle
|
||||||
@@ -3039,6 +2990,14 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
make
|
make
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
}
|
}
|
||||||
|
pocketingIntentionInfo {
|
||||||
|
ballId
|
||||||
|
pocketId
|
||||||
|
pathMetadataIndex
|
||||||
|
}
|
||||||
|
serializedShotPaths {
|
||||||
|
b64EncodedBuffer
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const GetAggregatedShotMetricsDocument = gql`
|
export const GetAggregatedShotMetricsDocument = gql`
|
||||||
@@ -3380,138 +3339,6 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
|
|||||||
GetVideoMakePercentageIntervalsQuery,
|
GetVideoMakePercentageIntervalsQuery,
|
||||||
GetVideoMakePercentageIntervalsQueryVariables
|
GetVideoMakePercentageIntervalsQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetShotsDocument = gql`
|
|
||||||
query GetShots(
|
|
||||||
$filterInput: FilterInput!
|
|
||||||
$shotsPagination: GetShotsPagination
|
|
||||||
$limit: Int
|
|
||||||
$includeCreatedAt: Boolean! = false
|
|
||||||
$includeUpdatedAt: Boolean! = false
|
|
||||||
$includeCueObjectFeatures: Boolean! = false
|
|
||||||
$includePocketingIntentionFeatures: Boolean! = false
|
|
||||||
$includeCueObjectDistance: Boolean! = false
|
|
||||||
$includeCueObjectAngle: Boolean! = false
|
|
||||||
$includeCueBallSpeed: Boolean! = false
|
|
||||||
$includeSpinType: Boolean! = false
|
|
||||||
$includeShotDirection: Boolean! = false
|
|
||||||
$includeTargetPocketDistance: Boolean! = false
|
|
||||||
$includeMake: Boolean! = false
|
|
||||||
$includeIntendedPocketType: Boolean! = false
|
|
||||||
) {
|
|
||||||
getShots(
|
|
||||||
filterInput: $filterInput
|
|
||||||
shotsPagination: $shotsPagination
|
|
||||||
limit: $limit
|
|
||||||
) {
|
|
||||||
id
|
|
||||||
videoId
|
|
||||||
startFrame
|
|
||||||
endFrame
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
falsePositiveScore
|
|
||||||
video {
|
|
||||||
stream {
|
|
||||||
resolution {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
createdAt @include(if: $includeCreatedAt)
|
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
|
||||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
|
||||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
|
||||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
|
||||||
shotDirection @include(if: $includeShotDirection)
|
|
||||||
spinType @include(if: $includeSpinType)
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures
|
|
||||||
@include(if: $includePocketingIntentionFeatures) {
|
|
||||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
|
||||||
make @include(if: $includeMake)
|
|
||||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetShotsQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetShotsQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetShotsQuery` 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 } = useGetShotsQuery({
|
|
||||||
* variables: {
|
|
||||||
* filterInput: // value for 'filterInput'
|
|
||||||
* shotsPagination: // value for 'shotsPagination'
|
|
||||||
* limit: // value for 'limit'
|
|
||||||
* includeCreatedAt: // value for 'includeCreatedAt'
|
|
||||||
* includeUpdatedAt: // value for 'includeUpdatedAt'
|
|
||||||
* includeCueObjectFeatures: // value for 'includeCueObjectFeatures'
|
|
||||||
* includePocketingIntentionFeatures: // value for 'includePocketingIntentionFeatures'
|
|
||||||
* includeCueObjectDistance: // value for 'includeCueObjectDistance'
|
|
||||||
* includeCueObjectAngle: // value for 'includeCueObjectAngle'
|
|
||||||
* includeCueBallSpeed: // value for 'includeCueBallSpeed'
|
|
||||||
* includeSpinType: // value for 'includeSpinType'
|
|
||||||
* includeShotDirection: // value for 'includeShotDirection'
|
|
||||||
* includeTargetPocketDistance: // value for 'includeTargetPocketDistance'
|
|
||||||
* includeMake: // value for 'includeMake'
|
|
||||||
* includeIntendedPocketType: // value for 'includeIntendedPocketType'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetShotsQuery(
|
|
||||||
baseOptions: Apollo.QueryHookOptions<GetShotsQuery, GetShotsQueryVariables>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<GetShotsQuery, GetShotsQueryVariables>(
|
|
||||||
GetShotsDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetShotsLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetShotsQuery,
|
|
||||||
GetShotsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<GetShotsQuery, GetShotsQueryVariables>(
|
|
||||||
GetShotsDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetShotsSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetShotsQuery,
|
|
||||||
GetShotsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<GetShotsQuery, GetShotsQueryVariables>(
|
|
||||||
GetShotsDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export type GetShotsQueryHookResult = ReturnType<typeof useGetShotsQuery>;
|
|
||||||
export type GetShotsLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetShotsLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetShotsSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetShotsSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetShotsQueryResult = Apollo.QueryResult<
|
|
||||||
GetShotsQuery,
|
|
||||||
GetShotsQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetSerializedShotPathsDocument = gql`
|
export const GetSerializedShotPathsDocument = gql`
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
@@ -3669,69 +3496,22 @@ export const GetShotsWithMetadataDocument = gql`
|
|||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsPagination: GetShotsPagination
|
$shotsPagination: GetShotsPagination
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$includeCreatedAt: Boolean! = false
|
$ids: [Int!]
|
||||||
$includeUpdatedAt: Boolean! = false
|
|
||||||
$includeCueObjectFeatures: Boolean! = false
|
|
||||||
$includePocketingIntentionFeatures: Boolean! = false
|
|
||||||
$includeCueObjectDistance: Boolean! = false
|
|
||||||
$includeCueObjectAngle: Boolean! = false
|
|
||||||
$includeCueBallSpeed: Boolean! = false
|
|
||||||
$includeSpinType: Boolean! = false
|
|
||||||
$includeShotDirection: Boolean! = false
|
|
||||||
$includeTargetPocketDistance: Boolean! = false
|
|
||||||
$includeMake: Boolean! = false
|
|
||||||
$includeIntendedPocketType: Boolean! = false
|
|
||||||
) {
|
) {
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsPagination: $shotsPagination
|
shotsPagination: $shotsPagination
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
ids: $ids
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
shots {
|
shots {
|
||||||
id
|
...ShotWithAllFeatures
|
||||||
videoId
|
|
||||||
startFrame
|
|
||||||
endFrame
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
falsePositiveScore
|
|
||||||
video {
|
|
||||||
stream {
|
|
||||||
resolution {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
createdAt @include(if: $includeCreatedAt)
|
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
|
||||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
|
||||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
|
||||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
|
||||||
shotDirection @include(if: $includeShotDirection)
|
|
||||||
spinType @include(if: $includeSpinType)
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures
|
|
||||||
@include(if: $includePocketingIntentionFeatures) {
|
|
||||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
|
||||||
make @include(if: $includeMake)
|
|
||||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
|
||||||
}
|
|
||||||
pocketingIntentionInfo
|
|
||||||
@include(if: $includePocketingIntentionFeatures) {
|
|
||||||
ballId
|
|
||||||
pocketId
|
|
||||||
pathMetadataIndex
|
|
||||||
}
|
|
||||||
serializedShotPaths @include(if: $includePocketingIntentionFeatures) {
|
|
||||||
b64EncodedBuffer
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
ids
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${ShotWithAllFeaturesFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -3749,18 +3529,7 @@ export const GetShotsWithMetadataDocument = gql`
|
|||||||
* filterInput: // value for 'filterInput'
|
* filterInput: // value for 'filterInput'
|
||||||
* shotsPagination: // value for 'shotsPagination'
|
* shotsPagination: // value for 'shotsPagination'
|
||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* includeCreatedAt: // value for 'includeCreatedAt'
|
* ids: // value for 'ids'
|
||||||
* includeUpdatedAt: // value for 'includeUpdatedAt'
|
|
||||||
* includeCueObjectFeatures: // value for 'includeCueObjectFeatures'
|
|
||||||
* includePocketingIntentionFeatures: // value for 'includePocketingIntentionFeatures'
|
|
||||||
* includeCueObjectDistance: // value for 'includeCueObjectDistance'
|
|
||||||
* includeCueObjectAngle: // value for 'includeCueObjectAngle'
|
|
||||||
* includeCueBallSpeed: // value for 'includeCueBallSpeed'
|
|
||||||
* includeSpinType: // value for 'includeSpinType'
|
|
||||||
* includeShotDirection: // value for 'includeShotDirection'
|
|
||||||
* includeTargetPocketDistance: // value for 'includeTargetPocketDistance'
|
|
||||||
* includeMake: // value for 'includeMake'
|
|
||||||
* includeIntendedPocketType: // value for 'includeIntendedPocketType'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@@ -1,59 +1,3 @@
|
|||||||
query GetShots(
|
|
||||||
$filterInput: FilterInput!
|
|
||||||
$shotsPagination: GetShotsPagination
|
|
||||||
$limit: Int
|
|
||||||
$includeCreatedAt: Boolean! = false
|
|
||||||
$includeUpdatedAt: Boolean! = false
|
|
||||||
$includeCueObjectFeatures: Boolean! = false
|
|
||||||
$includePocketingIntentionFeatures: Boolean! = false
|
|
||||||
$includeCueObjectDistance: Boolean! = false
|
|
||||||
$includeCueObjectAngle: Boolean! = false
|
|
||||||
$includeCueBallSpeed: Boolean! = false
|
|
||||||
$includeSpinType: Boolean! = false
|
|
||||||
$includeShotDirection: Boolean! = false
|
|
||||||
$includeTargetPocketDistance: Boolean! = false
|
|
||||||
$includeMake: Boolean! = false
|
|
||||||
$includeIntendedPocketType: Boolean! = false
|
|
||||||
) {
|
|
||||||
getShots(
|
|
||||||
filterInput: $filterInput
|
|
||||||
shotsPagination: $shotsPagination
|
|
||||||
limit: $limit
|
|
||||||
) {
|
|
||||||
id
|
|
||||||
videoId
|
|
||||||
startFrame
|
|
||||||
endFrame
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
falsePositiveScore
|
|
||||||
video {
|
|
||||||
stream {
|
|
||||||
resolution {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
createdAt @include(if: $includeCreatedAt)
|
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
|
||||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
|
||||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
|
||||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
|
||||||
shotDirection @include(if: $includeShotDirection)
|
|
||||||
spinType @include(if: $includeSpinType)
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures
|
|
||||||
@include(if: $includePocketingIntentionFeatures) {
|
|
||||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
|
||||||
make @include(if: $includeMake)
|
|
||||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
id
|
id
|
||||||
@@ -77,66 +21,25 @@ query GetShotsWithMetadata(
|
|||||||
$filterInput: FilterInput!
|
$filterInput: FilterInput!
|
||||||
$shotsPagination: GetShotsPagination
|
$shotsPagination: GetShotsPagination
|
||||||
$limit: Int
|
$limit: Int
|
||||||
$includeCreatedAt: Boolean! = false
|
$ids: [Int!]
|
||||||
$includeUpdatedAt: Boolean! = false
|
|
||||||
$includeCueObjectFeatures: Boolean! = false
|
|
||||||
$includePocketingIntentionFeatures: Boolean! = false
|
|
||||||
$includeCueObjectDistance: Boolean! = false
|
|
||||||
$includeCueObjectAngle: Boolean! = false
|
|
||||||
$includeCueBallSpeed: Boolean! = false
|
|
||||||
$includeSpinType: Boolean! = false
|
|
||||||
$includeShotDirection: Boolean! = false
|
|
||||||
$includeTargetPocketDistance: Boolean! = false
|
|
||||||
$includeMake: Boolean! = false
|
|
||||||
$includeIntendedPocketType: Boolean! = false
|
|
||||||
) {
|
) {
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: $filterInput
|
filterInput: $filterInput
|
||||||
shotsPagination: $shotsPagination
|
shotsPagination: $shotsPagination
|
||||||
limit: $limit
|
limit: $limit
|
||||||
|
ids: $ids
|
||||||
) {
|
) {
|
||||||
count
|
count
|
||||||
shots {
|
shots {
|
||||||
id
|
...ShotWithAllFeatures
|
||||||
videoId
|
|
||||||
startFrame
|
|
||||||
endFrame
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
falsePositiveScore
|
|
||||||
video {
|
|
||||||
stream {
|
|
||||||
resolution {
|
|
||||||
width
|
|
||||||
height
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
createdAt @include(if: $includeCreatedAt)
|
|
||||||
updatedAt @include(if: $includeUpdatedAt)
|
|
||||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
|
||||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
|
||||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
|
||||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
|
||||||
shotDirection @include(if: $includeShotDirection)
|
|
||||||
spinType @include(if: $includeSpinType)
|
|
||||||
}
|
|
||||||
pocketingIntentionFeatures
|
|
||||||
@include(if: $includePocketingIntentionFeatures) {
|
|
||||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
|
||||||
make @include(if: $includeMake)
|
|
||||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
|
||||||
}
|
|
||||||
pocketingIntentionInfo @include(if: $includePocketingIntentionFeatures) {
|
|
||||||
ballId
|
|
||||||
pocketId
|
|
||||||
pathMetadataIndex
|
|
||||||
}
|
|
||||||
serializedShotPaths @include(if: $includePocketingIntentionFeatures) {
|
|
||||||
b64EncodedBuffer
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
ids
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query GetShotsByIds($ids: [Int!]!) {
|
||||||
|
getShotsByIds(ids: $ids) {
|
||||||
|
...ShotWithAllFeatures
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,14 +48,11 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
videoId
|
videoId
|
||||||
startFrame
|
startFrame
|
||||||
endFrame
|
endFrame
|
||||||
falsePositiveScore
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
user {
|
user {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
falsePositiveScore
|
||||||
video {
|
video {
|
||||||
id
|
|
||||||
stream {
|
stream {
|
||||||
resolution {
|
resolution {
|
||||||
width
|
width
|
||||||
@@ -160,6 +60,8 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
createdAt
|
||||||
|
updatedAt
|
||||||
cueObjectFeatures {
|
cueObjectFeatures {
|
||||||
cueObjectDistance
|
cueObjectDistance
|
||||||
cueObjectAngle
|
cueObjectAngle
|
||||||
@@ -172,10 +74,12 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
make
|
make
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
}
|
}
|
||||||
}
|
pocketingIntentionInfo {
|
||||||
|
ballId
|
||||||
query GetShotsByIds($ids: [Int!]!) {
|
pocketId
|
||||||
getShotsByIds(ids: $ids) {
|
pathMetadataIndex
|
||||||
...ShotWithAllFeatures
|
}
|
||||||
|
serializedShotPaths {
|
||||||
|
b64EncodedBuffer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,6 +11,7 @@ type Query {
|
|||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
getShotsWithMetadata(
|
getShotsWithMetadata(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
|
ids: [Int!] = null
|
||||||
shotsPagination: GetShotsPagination = null
|
shotsPagination: GetShotsPagination = null
|
||||||
limit: Int! = 500
|
limit: Int! = 500
|
||||||
): GetShotsResult!
|
): GetShotsResult!
|
||||||
@@ -124,6 +125,7 @@ enum AlignedIntervalEnum {
|
|||||||
MONTH
|
MONTH
|
||||||
YEAR
|
YEAR
|
||||||
WEEK
|
WEEK
|
||||||
|
DAY
|
||||||
}
|
}
|
||||||
|
|
||||||
input FilterInput @oneOf {
|
input FilterInput @oneOf {
|
||||||
|
Reference in New Issue
Block a user