Compare commits
1 Commits
master
...
dean/shot-
| Author | SHA1 | Date | |
|---|---|---|---|
| 594c89ab76 |
209
src/index.tsx
209
src/index.tsx
@@ -265,7 +265,6 @@ export type CohortStatsGql = {
|
||||
activated7d: Scalars["Int"]["output"];
|
||||
activatedNotPaid7d: Scalars["Int"]["output"];
|
||||
paid7d: Scalars["Int"]["output"];
|
||||
paidTotal: Scalars["Int"]["output"];
|
||||
signups: Scalars["Int"]["output"];
|
||||
weekStart: Scalars["Date"]["output"];
|
||||
};
|
||||
@@ -2324,8 +2323,6 @@ export type FunnelStatsGql = {
|
||||
freemiumEpoch: Scalars["Date"]["output"];
|
||||
newPaid7d: Scalars["Int"]["output"];
|
||||
newPaid30d: Scalars["Int"]["output"];
|
||||
newPaidToday: Scalars["Int"]["output"];
|
||||
pastDueUsers: Scalars["Int"]["output"];
|
||||
payingUsers: Scalars["Int"]["output"];
|
||||
retentionPrevActive: Scalars["Int"]["output"];
|
||||
retentionReturned: Scalars["Int"]["output"];
|
||||
@@ -4081,6 +4078,7 @@ export type SyncAppleSubscriptionResultGql = {
|
||||
export type TableStateGql = {
|
||||
__typename?: "TableStateGQL";
|
||||
homography?: Maybe<HomographyInfoGql>;
|
||||
identifierToBox: Array<BoundingBoxGql>;
|
||||
identifierToColor: Array<Maybe<RgbColorGql>>;
|
||||
identifierToPosition: Array<Array<Scalars["Float"]["output"]>>;
|
||||
};
|
||||
@@ -7483,6 +7481,76 @@ export type FinalizePlayerAssignmentsMutation = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type TableStateLayoutFieldsFragment = {
|
||||
__typename?: "TableStateGQL";
|
||||
identifierToPosition: Array<Array<number>>;
|
||||
identifierToColor: Array<{ __typename?: "RGBColorGQL"; hex: string } | null>;
|
||||
};
|
||||
|
||||
export type DetectionBoxFieldsFragment = {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
|
||||
export type DetectionPocketPointFieldsFragment = {
|
||||
__typename?: "PocketPointsGQL";
|
||||
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
|
||||
export type TableStateDetectionFieldsFragment = {
|
||||
__typename?: "TableStateGQL";
|
||||
identifierToBox: Array<{
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}>;
|
||||
homography?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
pockets: Array<{
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}>;
|
||||
sourcePoints: {
|
||||
__typename?: "PocketPointsGQL";
|
||||
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
destPoints: {
|
||||
__typename?: "PocketPointsGQL";
|
||||
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type GetTableStateQueryVariables = Exact<{
|
||||
b64Image: Scalars["String"]["input"];
|
||||
tableSize?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
@@ -7498,6 +7566,48 @@ export type GetTableStateQuery = {
|
||||
__typename?: "RGBColorGQL";
|
||||
hex: string;
|
||||
} | null>;
|
||||
identifierToBox: Array<{
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}>;
|
||||
homography?: {
|
||||
__typename?: "HomographyInfoGQL";
|
||||
crop: {
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
pockets: Array<{
|
||||
__typename?: "BoundingBoxGQL";
|
||||
left: number;
|
||||
top: number;
|
||||
width: number;
|
||||
height: number;
|
||||
}>;
|
||||
sourcePoints: {
|
||||
__typename?: "PocketPointsGQL";
|
||||
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
destPoints: {
|
||||
__typename?: "PocketPointsGQL";
|
||||
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
||||
};
|
||||
} | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -8158,8 +8268,6 @@ export type GetUsageStatsQuery = {
|
||||
activationCohort: number;
|
||||
activationActivated: number;
|
||||
payingUsers: number;
|
||||
pastDueUsers: number;
|
||||
newPaidToday: number;
|
||||
newPaid7d: number;
|
||||
newPaid30d: number;
|
||||
retentionPrevActive: number;
|
||||
@@ -8172,7 +8280,6 @@ export type GetUsageStatsQuery = {
|
||||
activated7d: number;
|
||||
paid7d: number;
|
||||
activatedNotPaid7d: number;
|
||||
paidTotal: number;
|
||||
}>;
|
||||
windows: Array<{
|
||||
__typename?: "UsageStatsWindowGQL";
|
||||
@@ -9986,6 +10093,73 @@ export const PlayerClusterFieldsFragmentDoc = gql`
|
||||
}
|
||||
${PlayerClusterShotFieldsFragmentDoc}
|
||||
`;
|
||||
export const TableStateLayoutFieldsFragmentDoc = gql`
|
||||
fragment TableStateLayoutFields on TableStateGQL {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const DetectionBoxFieldsFragmentDoc = gql`
|
||||
fragment DetectionBoxFields on BoundingBoxGQL {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
`;
|
||||
export const DetectionPocketPointFieldsFragmentDoc = gql`
|
||||
fragment DetectionPocketPointFields on PocketPointsGQL {
|
||||
topLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
topSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
topRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const TableStateDetectionFieldsFragmentDoc = gql`
|
||||
fragment TableStateDetectionFields on TableStateGQL {
|
||||
identifierToBox {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
homography {
|
||||
crop {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
pockets {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
sourcePoints {
|
||||
...DetectionPocketPointFields
|
||||
}
|
||||
destPoints {
|
||||
...DetectionPocketPointFields
|
||||
}
|
||||
}
|
||||
}
|
||||
${DetectionBoxFieldsFragmentDoc}
|
||||
${DetectionPocketPointFieldsFragmentDoc}
|
||||
`;
|
||||
export const ShotClipRangeFragmentDoc = gql`
|
||||
fragment ShotClipRange on ShotGQL {
|
||||
id
|
||||
@@ -15937,12 +16111,12 @@ export const GetTableStateDocument = gql`
|
||||
tableSize: $tableSize
|
||||
useHomography: $useHomography
|
||||
) {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
...TableStateDetectionFields
|
||||
}
|
||||
}
|
||||
${TableStateLayoutFieldsFragmentDoc}
|
||||
${TableStateDetectionFieldsFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -16018,13 +16192,11 @@ export const GetLiveTableStateDocument = gql`
|
||||
videoId
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
}
|
||||
}
|
||||
}
|
||||
${TableStateLayoutFieldsFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -16099,13 +16271,11 @@ export const GetShotTableStateDocument = gql`
|
||||
videoId
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
}
|
||||
}
|
||||
}
|
||||
${TableStateLayoutFieldsFragmentDoc}
|
||||
`;
|
||||
|
||||
/**
|
||||
@@ -17260,8 +17430,6 @@ export const GetUsageStatsDocument = gql`
|
||||
activationCohort
|
||||
activationActivated
|
||||
payingUsers
|
||||
pastDueUsers
|
||||
newPaidToday
|
||||
newPaid7d
|
||||
newPaid30d
|
||||
retentionPrevActive
|
||||
@@ -17273,7 +17441,6 @@ export const GetUsageStatsDocument = gql`
|
||||
activated7d
|
||||
paid7d
|
||||
activatedNotPaid7d
|
||||
paidTotal
|
||||
}
|
||||
totalUsers
|
||||
totalVideos
|
||||
|
||||
@@ -1,3 +1,72 @@
|
||||
fragment TableStateLayoutFields on TableStateGQL {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
}
|
||||
|
||||
fragment DetectionBoxFields on BoundingBoxGQL {
|
||||
left
|
||||
top
|
||||
width
|
||||
height
|
||||
}
|
||||
|
||||
fragment DetectionPocketPointFields on PocketPointsGQL {
|
||||
topLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
topSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
topRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomLeft {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomSide {
|
||||
x
|
||||
y
|
||||
}
|
||||
bottomRight {
|
||||
x
|
||||
y
|
||||
}
|
||||
}
|
||||
|
||||
# Everything needed to redraw a detection over the image it came from:
|
||||
# the detector's boxes plus the homography that turned them into plane
|
||||
# positions. Boxes, pocket boxes, and source points share the crop's
|
||||
# coordinate space; the crop locates that space in the full frame.
|
||||
#
|
||||
# Only the photo query selects this. The live and shot queries read a
|
||||
# frame out of a video the app never holds, so there is no image to
|
||||
# overlay, and getLiveTableState is polled every five seconds.
|
||||
fragment TableStateDetectionFields on TableStateGQL {
|
||||
identifierToBox {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
homography {
|
||||
crop {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
pockets {
|
||||
...DetectionBoxFields
|
||||
}
|
||||
sourcePoints {
|
||||
...DetectionPocketPointFields
|
||||
}
|
||||
destPoints {
|
||||
...DetectionPocketPointFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetTableState(
|
||||
$b64Image: String!
|
||||
$tableSize: Float
|
||||
@@ -8,10 +77,8 @@ query GetTableState(
|
||||
tableSize: $tableSize
|
||||
useHomography: $useHomography
|
||||
) {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
...TableStateDetectionFields
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,10 +87,7 @@ query GetLiveTableState($videoId: Int!) {
|
||||
videoId
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,10 +98,7 @@ query GetShotTableState($shotId: Int!) {
|
||||
videoId
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
...TableStateLayoutFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ query getUsageStats($days: Int! = 30) {
|
||||
activationCohort
|
||||
activationActivated
|
||||
payingUsers
|
||||
pastDueUsers
|
||||
newPaidToday
|
||||
newPaid7d
|
||||
newPaid30d
|
||||
retentionPrevActive
|
||||
@@ -20,7 +18,6 @@ query getUsageStats($days: Int! = 30) {
|
||||
activated7d
|
||||
paid7d
|
||||
activatedNotPaid7d
|
||||
paidTotal
|
||||
}
|
||||
totalUsers
|
||||
totalVideos
|
||||
|
||||
@@ -214,7 +214,6 @@ type CohortStatsGQL {
|
||||
activated7d: Int!
|
||||
paid7d: Int!
|
||||
activatedNotPaid7d: Int!
|
||||
paidTotal: Int!
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
@@ -265,11 +264,6 @@ input CreatePoolHallInput {
|
||||
timezone: String = null
|
||||
}
|
||||
|
||||
input CreateShotShareLinkInput {
|
||||
shotIds: [Int!]!
|
||||
paddingSeconds: Float = null
|
||||
}
|
||||
|
||||
type CreateSubscriptionResultGQL {
|
||||
checkoutUrl: String!
|
||||
sessionId: String!
|
||||
@@ -470,8 +464,6 @@ type FunnelStatsGQL {
|
||||
activationCohort: Int!
|
||||
activationActivated: Int!
|
||||
payingUsers: Int!
|
||||
pastDueUsers: Int!
|
||||
newPaidToday: Int!
|
||||
newPaid7d: Int!
|
||||
newPaid30d: Int!
|
||||
retentionPrevActive: Int!
|
||||
@@ -1467,11 +1459,6 @@ enum SessionCoachStateEnum {
|
||||
FAILED
|
||||
}
|
||||
|
||||
type ShareLinkGQL {
|
||||
slug: String!
|
||||
url: String!
|
||||
}
|
||||
|
||||
type ShotAnnotationGQL {
|
||||
shotId: Int!
|
||||
type: ShotAnnotationTypeGQL!
|
||||
@@ -1721,6 +1708,7 @@ type TableStateGQL {
|
||||
identifierToPosition: [[Float!]!]!
|
||||
homography: HomographyInfoGQL
|
||||
identifierToColor: [RGBColorGQL]!
|
||||
identifierToBox: [BoundingBoxGQL!]!
|
||||
}
|
||||
|
||||
type TagClassGQL {
|
||||
|
||||
Reference in New Issue
Block a user