Compare commits

...

510 Commits

Author SHA1 Message Date
740daf95ae Merge pull request 'Add Pocketing Intention Info' (#58) from mk/pocketing-intention-info into master
Reviewed-on: #58
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-19 23:19:36 -06:00
768d29f93e Pocketing Intention Info Schema Changes
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-09-19 22:59:36 -06:00
837e084a5a Add miss angle in degrees 2024-09-19 22:03:59 -06:00
caea1b9572 Add pocket angle features 2024-09-19 18:28:18 -06:00
0a255f161a Merge pull request 'Add shot direction counts' (#57) from shot-direction-counts into master
Reviewed-on: #57
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-19 12:02:51 -06:00
85a2da4b5c Add shot direction counts
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-09-19 10:46:20 -07:00
647ef3049b Add spin type counts 2024-09-18 16:58:46 -06:00
7b48a5b6e2 Merge pull request 'Add DatetimeRangeAggregation' (#56) from mk/datetime-range-aggregation into master
Reviewed-on: #56
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-18 15:31:31 -06:00
ec2e3da513 Add DatetimeRangeAggregation
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-09-18 13:48:52 -07:00
72729e410b Merge pull request 'Add serializedShotPaths to GetShots' (#55) from loewy/add-shot-deserialization-to-operation into master
Reviewed-on: #55
2024-09-16 17:56:23 -06:00
5a9205a9b8 was on the wrong gql operation, updated
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-09-16 15:44:22 -07:00
a33601158f add serializedShotPaths to GetShots
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-09-16 11:55:30 -07:00
3c6b37b567 Merge pull request 'Add indices to shot proto' (#54) from mk/fix-shot-indexes into master
Reviewed-on: #54
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-13 18:08:34 -06:00
9b18ada78d Add indices to shot proto
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-09-13 16:54:17 -07:00
d57bb607e4 Merge pull request 'Serialization Improvements' (#53) from mk/serialization-improvements into master
Reviewed-on: #53
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-11 16:23:18 -06:00
1f88ee4a0c Add KeyBalls to shot proto
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-09-11 13:46:14 -07:00
a32317e72f Add Collision Info 2024-09-10 13:31:57 -07:00
b60cbe3854 Merge pull request 'Add current homography operation' (#52) from loewy/add-current-homography-in-operation into master
Reviewed-on: #52
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-06 19:04:35 -06:00
e0b150aa2a add current homography operation
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-09-06 19:00:13 -06:00
2bdfcb994e Merge pull request 'Added get shots with metadadata operation' (#51) from add-get-shots-with-metadata-query into master
Reviewed-on: #51
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-05 23:18:37 -06:00
d5c6014548 Merge remote-tracking branch 'origin/master' into add-get-shots-with-metadata-query
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-09-05 23:17:53 -06:00
de6fcacfd0 Merge pull request 'Added GetUserTagsQuery' (#50) from micah/add-get-tags-query into master
Reviewed-on: #50
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-09-05 20:28:16 -06:00
993f62b6cf Added get shots with metadadata operation
All checks were successful
Tests / Tests (pull_request) Successful in 10s
2024-09-05 20:46:25 -05:00
aabd74d7d7 Added GetUserTagsQuery
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-09-05 18:35:08 -07:00
15b307a88f Merge pull request 'Add current homography to VideoGQL' (#49) from loewy/add-current-homography-to-get-video into master
Reviewed-on: #49
2024-09-04 18:28:24 -06:00
72b338bfc2 add current homography to video gql
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-09-04 18:04:55 -06:00
267486774c Add get shots result 2024-09-04 16:12:20 -06:00
b94a568ef1 Merge pull request 'Add error types for init uploading' (#48) from mk/limit-init-upload-links into master
Reviewed-on: #48
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-09-03 16:52:51 -06:00
b773ccfc8f Add error types for init uploading
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-09-03 15:50:02 -07:00
fd5c28e073 Add get shots with metadata 2024-09-01 21:16:44 +00:00
4c232829b6 Merge pull request 'Add spinType and cueBallSpeed to get shots operation' (#47) from loewy/add-spin-type-to-get-shots into master
Reviewed-on: #47
2024-08-29 19:34:19 -06:00
ddf1036009 add spin type and cue ball speed to get shots operation
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-29 18:32:05 -07:00
9b3e5c23a0 Merge pull request 'Dummy query to resolve shot paths' (#46) from mk/deserialize-and-render into master
Reviewed-on: #46
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-29 12:26:23 -06:00
a7eae9d46b Merge branch 'master' into mk/deserialize-and-render
All checks were successful
Tests / Tests (pull_request) Successful in 5s
2024-08-29 12:24:54 -06:00
8c3e9d6273 Merge pull request 'Add spinType and filter input' (#45) from mk/spin-type into master
Reviewed-on: #45
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-28 17:38:43 -06:00
f306cc6c16 Merge branch 'master' into mk/spin-type
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-08-28 17:27:58 -06:00
643cdb29e3 Add spinType and filter input
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-28 16:27:21 -07:00
89287a0100 Merge pull request 'Expose frames per second in get videos' (#44) from kat/expose-frames-per-second into master
Reviewed-on: #44
2024-08-27 10:21:38 -06:00
f9b02f65e0 Expose frames per second in get videos
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-26 20:53:16 -06:00
41169e2848 Dummy query to get it working for now
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-26 15:54:43 -07:00
ba36bc709c Merge pull request 'Add resolution to getShots operation' (#42) from loewy/add-resolution-in-get-shots into master
Reviewed-on: #42
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: countablecloud <countablecloud@gmail.com>
2024-08-26 12:42:15 -06:00
4005416233 Merge branch 'master' into loewy/add-resolution-in-get-shots
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-26 10:23:07 -06:00
db4a6315cd Merge pull request 'Add stream type to get videos' (#43) from kat/add-stream-type-get-videos into master
Reviewed-on: #43
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-26 08:36:44 -06:00
af38fdea64 Add stream type to get videos
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-26 06:56:40 -06:00
172df69340 add resolution to getShots operation
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-08-23 17:29:40 -07:00
a030a0ef16 Merge pull request 'Error reporting types and Errors for Shot Annotation' (#41) from mk/allow-error-reporting into master
Reviewed-on: #41
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-21 16:59:34 -06:00
7a6cc2739f Error reporting types and Errors
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-08-21 13:41:24 -07:00
41c9701e18 Merge pull request 'Add separate return to profile image' (#40) from mk/add-separate-return-to-image-upload-link into master
Reviewed-on: #40
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-19 15:58:15 -06:00
16e79ed608 Adds stream to get upload link
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-08-19 14:54:48 -07:00
f401e1879b Add separate return to profile image
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-19 14:44:43 -07:00
72b451d322 remove stream from getUploadLink 2024-08-16 18:47:08 -07:00
5350c46e0a Merge pull request 'Adds proper error return to stuff involving upload links' (#39) from mk/add-error-return-to-upload-links into master
Reviewed-on: #39
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-16 19:02:31 -06:00
1f5c5774e1 Merge branch 'master' into mk/add-error-return-to-upload-links
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-16 17:29:18 -06:00
3b29502e7e Adds proper error return to stuff involving upload links
All checks were successful
Tests / Tests (pull_request) Successful in 10s
2024-08-16 16:28:45 -07:00
abc7e9fd05 Merge pull request 'add minimum app version to get config call' (#38) from loewy/add-operation-minimum-app-version into master
Reviewed-on: #38
2024-08-16 16:40:39 -06:00
dd5ce77102 add minimum app version to get config call
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-16 14:26:24 -07:00
dabaa3d1e1 Add minimum allowed AppVersion to deployed config 2024-08-16 12:21:46 -07:00
a6604a3a6d add tableSize to GetFeed 2024-08-15 19:52:03 -07:00
09a3e0e294 Add table size range filter 2024-08-15 19:42:53 -07:00
f20ca53a2a add tableSize to operations for getVideo
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-08-15 18:51:36 -07:00
a2b912500c Merge pull request 'Add table size to return' (#36) from mk/table-size-non-optional-float into master
Reviewed-on: #36
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-15 19:12:22 -06:00
7de3d196ba Add table size to return
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-08-15 19:11:25 -06:00
6d5669aaf8 Merge pull request 'Make table size nonnullable float' (#35) from mk/table-size-non-optional-float into master
Reviewed-on: #35
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-15 18:19:07 -06:00
2c583509a2 Make table size nonnullable and float
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-15 16:54:07 -07:00
3480637600 Merge pull request 'Add debugJson to getStreamMonitoringDetails' (#34) from loewy/add-debug-json into master
Reviewed-on: #34
2024-08-13 19:09:11 -06:00
f4665f51b1 add debugJson to getStreamMonitoringDetails
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-13 15:30:04 -07:00
810212dc12 Merge pull request 'Make pagination optional' (#33) from loewy/make-pagination-optional into master
Reviewed-on: #33
2024-08-13 14:53:15 -06:00
c3210df517 make pagination optional:
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-08-13 13:49:12 -07:00
9f5c354433 Merge pull request 'Tweaks for Debugging' (#32) from mk/tweeks-for-debugging into master
Reviewed-on: #32
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: loewy <loewymalkov@gmail.com>
2024-08-13 14:43:39 -06:00
23d9fef2b1 Add Debugging JSON to input
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-13 13:28:36 -07:00
df3087de7d Add VideoProcessingStatus to VideoProcessing
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-08-13 12:42:45 -07:00
5dd8318dab Add status to VideoProcessing 2024-08-13 11:33:31 -07:00
56c8bcce20 Add uploadCompletionCursor to GetUploadLinkReturn
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-08-13 10:33:53 -07:00
1c4961db5b Merge pull request 'add uploadsCompleted to getUploadStreamWithDetails query' (#31) from loewy/add-uploads-completed into master
Reviewed-on: #31
Reviewed-by: countablecloud <countablecloud@gmail.com>
2024-08-13 11:22:09 -06:00
5e0d01ea5b add uploadsCompleted to getUploadStreamWithDetails query
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-08-13 11:21:11 -06:00
e8938621fc Merge pull request 'Support shots pagination' (#30) from kat/paginate-get-shots into master
Reviewed-on: #30
2024-08-09 15:12:51 -06:00
8c8dcdd8e1 Support shots pagination
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-08-09 15:10:36 -06:00
5085c9af90 Add waitFor 2024-08-09 00:59:38 -06:00
85bc743c8e Bump getShots default 2024-08-05 23:36:54 -06:00
b8efa644e3 Merge pull request 'Add frameIndex in operation for getVideo in homographyHistory' (#29) from loewy/add-frame-index-in-homography-history into master
Reviewed-on: #29
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-01 19:52:51 -06:00
c18628a4ca Add pagination to getShots 2024-08-01 19:49:57 -06:00
535e24c9c2 add frameindex in operations
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-08-01 14:52:37 -07:00
04308b1003 Merge pull request 'Add addAnnotationToShot' (#28) from mk/add-add-annotation into master
Reviewed-on: #28
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-30 18:10:44 -06:00
43c626141e Add addAnnotationToShot
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-30 17:08:05 -07:00
c49266e4c1 Merge pull request 'Expose frames per second on video' (#27) from kat/add-video-duration into master
Reviewed-on: #27
2024-07-30 11:54:34 -06:00
6677b9232f Expose frames per second on video
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-30 11:53:34 -06:00
76e792be88 Merge pull request 'Expose stream type on video' (#26) from kat/create-get-video-for-clip-calculation into master
Reviewed-on: #26
2024-07-30 01:02:18 -06:00
5eac3d9d40 Expose stream type
All checks were successful
Tests / Tests (pull_request) Successful in 12s
2024-07-30 01:00:12 -06:00
64593f09b7 Add include_on_none in range filter 2024-07-29 17:21:09 -06:00
e20b68799f Add falsePositiveScore 2024-07-28 02:06:39 -06:00
378878967a Add streamSegmentType to Stream 2024-07-27 20:51:48 -06:00
251ebe7056 Merge pull request 'Add homography and resolution to GetVideo' (#25) from loewy/add-resolution-in-operation into master
Reviewed-on: #25
2024-07-25 19:09:56 -06:00
615e4d5467 add resolution and homography to getVideo
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-25 18:07:17 -07:00
a4f602d651 Expose resolution 2024-07-25 18:18:16 -06:00
c48512fc45 Merge pull request 'Fixed get user tags parameters' (#24) from micah/get-user-tags into master
Reviewed-on: #24
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-24 14:28:25 -06:00
d75822c465 Fixed get user tags parameters
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-07-24 11:47:57 -07:00
4feeba5150 Merge pull request 'Added user tags' (#23) from micah/get-user-tags into master
Reviewed-on: #23
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-23 23:37:05 -06:00
e1237363f0 Removed wrapper type
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-07-23 18:53:39 -07:00
b1550b31c5 Added user tags
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-07-22 19:43:42 -07:00
81b9fd9f12 Add spin features 2024-07-19 17:18:14 -06:00
d3559ede21 Merge pull request 'Add frames_per_second' (#21) from loewy/add-fps into master
Reviewed-on: #21
Reviewed-by: countablecloud <countablecloud@gmail.com>
2024-07-18 17:51:30 -06:00
ef6ccca3f9 fix black issue
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-07-18 16:46:27 -07:00
f781e9648f add pycache to gitignore
Some checks failed
Tests / Tests (pull_request) Failing after 15s
2024-07-18 16:37:59 -07:00
18d2eea029 add shot_pb2 2024-07-18 16:34:22 -07:00
a95bdab8bf ad frames per second to schema 2024-07-18 16:14:28 -07:00
eaeb1ed0ea Add resolution 2024-07-18 01:14:18 -06:00
f9d6377fe4 Update durations in seconds 2024-07-16 21:48:15 -06:00
30cf72de78 Merge pull request 'Add initPlaylistUploadStatus' (#20) from loewy/update-video-gql-operations into master
Reviewed-on: #20
2024-07-16 20:24:58 -06:00
fd49dec34c add initPlaylistUploadStatus
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-16 19:23:54 -07:00
cdd1cdd526 Fix segment parameter again 2024-07-16 20:22:16 -06:00
bce363e8ff Parameter to setSegmentDuration should be segmentIndex 2024-07-16 20:20:37 -06:00
80f609b8a2 Merge pull request 'Add operation for set segment duration' (#19) from loewy/set-segment-duration-operation into master
Reviewed-on: #19
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-16 17:54:19 -06:00
6205e9a353 add operation for set segment duration
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-16 16:33:22 -07:00
12f7e1f115 Merge pull request 'Add operation getHlsInitUploadLink' (#18) from loewy/operation-get-hls-init-upload-link into master
Reviewed-on: #18
2024-07-16 15:28:43 -06:00
296ad969f4 Merge branch 'master' into loewy/operation-get-hls-init-upload-link
All checks were successful
Tests / Tests (pull_request) Successful in 9s
2024-07-16 15:27:37 -06:00
d25c08447e Merge pull request 'Adds init playlist status' (#17) from mk/add-init-file-uploaded-marking into master
Reviewed-on: #17
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-16 15:26:27 -06:00
7502a75753 Merge remote-tracking branch 'origin' into mk/add-init-file-uploaded-marking
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-07-16 14:23:32 -07:00
1a14db1a17 Adds init playlist status
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-07-16 14:21:45 -07:00
67d8bcac21 add operation for hls init link
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-07-15 17:29:55 -07:00
4ca27317b4 Add operation for shot annotation types 2024-07-15 15:37:43 -06:00
dc214e878f Add annotations to shot gql 2024-07-15 15:32:21 -06:00
d669dba320 Add getUsernames operation 2024-07-14 00:16:02 -06:00
235f4a58e9 Add getUsernames 2024-07-13 23:43:18 -06:00
03c1d08d8c Request isAdmin in getLoggedInUser 2024-07-13 17:47:41 -06:00
cc36a8b51d Add isAdmin 2024-07-13 17:40:30 -06:00
d743ad83e3 Merge pull request 'Expand GQL Interfaces To Accomodate Multiple Stream Types' (#16) from mk/extend-to-additional-stream-types into master
Reviewed-on: #16
2024-07-12 22:08:57 -06:00
194c258dcd Expand GQL Interfaces To Accomodate Multiple Stream Types
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-12 18:50:50 -06:00
e0e1ae1108 Merge pull request 'Add new filters' (#15) from dean/add-new-filters into master
Reviewed-on: #15
2024-07-12 17:54:42 -06:00
ee73443374 Add new filters
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-12 23:52:06 +00:00
88801f9186 Add not support to filter input gql 2024-07-10 16:17:32 -06:00
524d469a0d Merge pull request 'Add get shot annotations query' (#14) from ivan/add-get-shot-annotations-query into master
Reviewed-on: #14
2024-07-08 14:49:05 -06:00
c7b225ff00 Add get shot annotations query
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-08 13:26:03 -06:00
ba84f6d9c0 Merge pull request 'Create shot annotations gql' (#13) from kat/shot-annotations into master
Reviewed-on: #13
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-08 11:03:47 -06:00
6a72f9f43f Create shot annotations gql
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-08 10:56:05 -06:00
efc0b2d858 Add column property query builder filters 2024-07-02 16:55:30 -06:00
f140807886 Merge pull request 'Add id's to new getMetricForVideo queries to prevent cache merge issues' (#12) from loewy/add-ids-to-get-video-calls into master
Reviewed-on: #12
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-06-05 13:34:41 -06:00
37a13f1418 add id's to new getVideo w/ metric queries to prevent cache merge issues
All checks were successful
Tests / Tests (pull_request) Successful in 12s
2024-06-05 11:51:15 -07:00
1cc0660a93 Merge pull request 'Add operations to get trimmed getVideo queries for metrics' (#11) from loewy/add-get-metrics-for-video-queries into master
Reviewed-on: #11
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-06-05 01:28:16 -06:00
14da2ae388 add averageTimePerShot, elapsedTime and MedianRun forVideo queries
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-06-04 23:20:47 -07:00
9ee4d43c89 Merge pull request 'Restructure protobuf/add annotations' (#10) from ivan/restructure-protobuf-types-and-add-annotations into master
Reviewed-on: #10
2024-05-24 20:26:00 -06:00
fcac551806 Restructure protobuf/add annotations
All checks were successful
Tests / Tests (pull_request) Successful in 14s
2024-05-24 20:24:24 -06:00
044d8fa46d Merge pull request 'mk/implement-one-of' (#9) from mk/implement-one-of into master
Reviewed-on: #9
2024-05-22 16:49:28 -06:00
33f5404820 Actually incorperate one of stuff
All checks were successful
Tests / Tests (pull_request) Successful in 6s
2024-05-22 16:41:24 -06:00
04a30e67d3 Add gql mods for implementing one-of 2024-05-22 15:13:18 -06:00
08183ed952 Merge pull request 'rename pkg to rbproto' (#8) from mk/fixing-rbproto into master
Reviewed-on: #8
2024-05-22 12:01:23 -06:00
4fac231c43 rename pkg to rbproto
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-05-22 12:00:39 -06:00
30e356e3e0 Add Protobuf with Testing + Codegen (#7)
Reviewed-on: #7
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Co-authored-by: Mike Kalange <countablecloud@gmail.com>
Co-committed-by: Mike Kalange <countablecloud@gmail.com>
2024-05-22 11:27:54 -06:00
36712557cb Merge pull request 'Add workflow' (#6) from ivan/add-workflow into master
Reviewed-on: #6
2024-05-21 14:34:15 -06:00
c6aeca7e2b Add workflow to check gql has been executed
All checks were successful
Tests / Tests (pull_request) Successful in 7s
2024-05-21 14:33:36 -06:00
92c18f8bf7 Add user to shot gql 2024-05-21 14:14:02 -06:00
e86f40c620 regenerate gql, fix type imports 2024-05-20 22:39:47 -07:00
072235f032 Create playlist, video generator and video player (#489)
Co-authored-by: Ivan Malison <IvanMalison@gmail.com>
Reviewed-on: railbird/railbird-mobile#489
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-05-20 21:52:38 -06:00
9b76a6b599 Surface errors in upload process w/ audio & text alert/prompt (#485)
CLOSES #480
CLOSES #93 (ground-work completed by @dean)

ADDRESSES #488 (will not show if recorded video is not active upload)

Reviewed-on: railbird/railbird-mobile#485
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Co-authored-by: Loewy <loewymalkov@gmail.com>
Co-committed-by: Loewy <loewymalkov@gmail.com>
2024-05-20 19:05:10 -06:00
d94dbd6c03 Make startFrame endFrame required for Shot 2024-05-20 16:35:42 -06:00
b2db5bde2b remove operations 2024-05-15 09:39:28 -07:00
f8c5cf74f8 add currentProcessing and errors to schema/index and getStreamMonitoringDetails operation 2024-05-14 18:35:24 -07:00
231076496a use the same gql query for cursor management & polling 2024-05-09 19:05:05 -07:00
a1b3baa5c9 introduce lastIntendedSegmentBound to cursor management layer, method to checkAndHandleUploadCompletion 2024-05-09 19:05:05 -07:00
8378f7ae0b just gql stuff + use it on uncompletedStreams hook 2024-05-06 15:16:06 -07:00
d4b75bcb71 Require cursor completion 2024-05-02 22:08:57 -06:00
b0c7de2e92 use a map to create uploadProgress objects for the upload provider 2024-05-01 18:18:16 -07:00
844e218197 Show screenshots 2024-05-01 18:49:35 -06:00
a7c8e07eb7 Expose upload completion cursor 2024-05-01 17:39:52 -06:00
5d99ec7673 Add rudamentary difficulty score 2024-05-01 12:47:50 -06:00
2f92820895 Add upload to video gql 2024-04-30 21:55:48 -06:00
527113a099 Merge branch 'master' into mk/add-screenshot-uri 2024-04-29 17:23:26 -06:00
381b4ce0c2 Add screenshot uri to video 2024-04-29 17:19:39 -06:00
6d8f5d5d65 Upload Service Class (#436)
CLOSES #400

Reviewed-on: railbird/railbird-mobile#436
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Co-authored-by: Loewy <loewymalkov@gmail.com>
Co-committed-by: Loewy <loewymalkov@gmail.com>
2024-04-25 17:32:52 -06:00
b74fb2b1d7 add lowest unuploaded segment to gql 2024-04-25 16:36:32 -06:00
d67b413860 Add two new gql properties to support upload service 2024-04-25 11:41:57 -06:00
ec1f5afb84 Merge pull request 'Restore cursor from api' (#424) from loewy/restore-cursor-state-from-api into master
Reviewed-on: railbird/railbird-mobile#424
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-04-23 21:22:35 -06:00
1ce4267945 Frames per second is float 2024-04-23 20:25:27 -06:00
Loewy
2da00ca814 Merge branch 'master' into loewy/restore-cursor-state-from-api 2024-04-23 15:36:37 -07:00
Loewy
f7c0dff73c remove feed, add method to videofilemanager 2024-04-23 13:21:54 -07:00
Loewy
422bb77f61 trim gql call, comments, plug in queries 2024-04-23 12:37:31 -07:00
Loewy
d51d2491ca new lighter weight queries 2024-04-23 11:49:42 -07:00
db39c5a576 Add generated api hooks 2024-04-22 22:20:59 -06:00
c6c5971325 Use relevant fields 2024-04-22 21:13:16 -06:00
5181612f62 Create get videos with playlist gql 2024-04-22 16:18:06 -06:00
Loewy
5f33fae3d7 scaffold + operations 2024-04-22 11:27:15 -07:00
24fcac9318 Expose upload cursor in video gql 2024-04-16 17:49:50 -06:00
514f2ef928 Add user to shot gql 2024-04-09 22:34:54 -06:00
7d252d3cc8 Add pull to refresh to video details page
Fixes #169
Fixes #363
2024-04-09 19:08:23 -06:00
a1581379fd Remove unused field from GetFeed operation 2024-04-05 16:29:35 -06:00
a5f90ab105 Rename video endpoint to getUserVideos 2024-04-05 15:51:51 -06:00
ddd7e2d50b Add devMode 2024-04-02 00:24:11 -06:00
3bacc356af Make tag classes optional 2024-04-01 18:04:54 -06:00
797ca3a387 Don't load shots in feed 2024-03-31 22:17:29 -06:00
ed751f5cdd Support multiple aggregation types in gql 2024-03-31 18:17:30 -06:00
01a580cee5 Merge pull request 'Use tag class and tag value input in FilterInput' (#312) from kat/temp into master
Reviewed-on: railbird/railbird-mobile#312
Reviewed-by: loewy <loewymalkov@gmail.com>
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-03-28 16:12:54 -06:00
6fd14d3c49 Use tag input 2024-03-28 15:20:39 -06:00
a1b524ab9d Remove float feature 2024-03-28 05:02:44 +00:00
9bd0e237ea Resolve comments 2024-03-27 18:48:04 -07:00
97d4f2cbe9 Add Hours Played 2024-03-27 12:35:44 -07:00
9307fbcbf4 Add getPlayTime endpoint, remove elapsedTime 2024-03-27 00:32:20 -06:00
679150326f Add elapsedTime to getUser gql operation 2024-03-26 16:53:03 -06:00
773a2eaed0 Merge branch 'master' into kat/add-bool-filter 2024-03-25 19:26:13 -06:00
203d343880 Process tags from a VideoGQL & use on VideoFeed (#293)
currently will select first item if multiple tags present for a given class

if we want to change the UI I can make it process & display multiple values for gameTypes/tableSizes, but as of now it's meant to handle a single one

CLOSES #288

Co-authored-by: Loewy <loewy@chainstarters.com>
Reviewed-on: railbird/railbird-mobile#293
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-03-25 19:25:48 -06:00
26ed50a7a1 Make filter is boolean filter 2024-03-25 19:18:06 -06:00
050705c370 Generalize terminateUploadStream into editUploadStream 2024-03-24 21:07:53 -06:00
d3c5979d3e Move homography history to video 2024-03-23 17:03:11 -06:00
8102a0f40b Add an operation to get details for updating a video
Fixes railbird/railbird#1164
2024-03-22 20:00:00 -06:00
87fabdc8f9 Add VideoMakePercentageIntervals call & connected to graph (#281)
should be tested after startTime/endTime is implemented to verify system works

CLOSES #1078

Co-authored-by: Loewy <loewy@chainstarters.com>
Reviewed-on: railbird/railbird-mobile#281
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-03-22 16:44:02 -06:00
Mike Kalange
7889476bc9 Remove deprecated statistics interface; add getLoggedInUser op. 2024-03-22 12:52:44 -06:00
abfaf06f1a Merge pull request 'Create game type filter' (#273) from kat/filter-game-type into master
Reviewed-on: railbird/railbird-mobile#273
Reviewed-by: loewy <loewymalkov@gmail.com>
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-03-20 12:53:21 -06:00
8bd9e039da Create game type filter 2024-03-19 21:02:49 -06:00
Loewy
5cfccb97b1 wip: set up AppConfig provider, use value in Login screen, update gql 2024-03-19 17:09:45 -07:00
Mike Kalange
54428112f8 adds get deployed configuration query 2024-03-18 16:46:23 -06:00
18c12e60fe Rename filters for consistency 2024-03-18 15:09:47 -06:00
1000eb6d2c Add make input filter 2024-03-17 22:33:52 -06:00
27114615a5 Do not return target metrics as list 2024-03-14 14:39:11 -06:00
43c1f7be09 Return elapsed time in make percentge time series gql 2024-03-14 12:57:31 -06:00
Mike Kalange
09bbbf0b3d Adds changes to schema for altering user profile image 2024-03-12 19:47:10 -06:00
Mike Kalange
2db886ea13 make index commensurate with operations 2024-03-12 13:06:14 -06:00
Mike Kalange
e88d875bd9 Delete video implemented on backend; schema changes 2024-03-12 12:50:28 -06:00
57c3ee0360 Use list int directly for user id input 2024-03-12 11:59:20 -06:00
e1600751e0 Add nix LD_LIBRARY_PATH fix 2024-03-11 21:52:15 -06:00
be47dcdba2 Add an overlay that shows streaming state 2024-03-10 18:16:41 -06:00
fd30ae04bf Add filtering support to aggregate gql 2024-03-09 10:21:43 -07:00
19628736c1 Add aggregation filter attributes 2024-03-09 00:59:13 -07:00
4ced3d39df Update gql for get-video resolver changes 2024-03-08 17:15:37 -07:00
be59f7a2c6 Support InListFilter GQL 2024-03-08 16:32:50 -07:00
1665cf1eb9 Create video id filter gql 2024-03-08 13:23:01 -07:00
47df3adce5 Update GetVideoMakePercentage query 2024-03-05 01:24:03 -07:00
f64fc0e54a Support make percentage time series 2024-03-05 01:05:54 -07:00
314957218e Require video metadata 2024-03-04 22:22:42 -07:00
babb111fa6 Update upload_stream and terminate_stream gql 2024-03-04 20:10:49 -07:00
Loewy
b051809869 update getUploadLink call with headers' 2024-03-04 17:20:11 -08:00
Mike Kalange
32ec7a2339 Adds headers to get link return 2024-03-04 17:48:59 -07:00
3bce7ea344 Add username 2024-02-25 14:25:54 -08:00
76ed63395c Use prettier when checking for changes 2024-02-22 20:02:47 -07:00
19f324a1cf Fix prettier 2024-02-22 19:27:29 -07:00
4b41d3b039 Change feed operation to use limit instead of first in cursor 2024-02-22 19:23:28 -07:00
2ce41be8cc Merge pull request 'ivan/use-subtree-for-railbird-gql' (#142) from ivan/use-subtree-for-railbird-gql into master
Reviewed-on: railbird/railbird-mobile#142
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-22 18:37:41 -07:00
c9f2187cc2 Run prettier on gql stuff 2024-02-22 18:36:15 -07:00
a47fb5fed7 Merge pull request 'Video Details -- UI w/ mocked data' (#136) from loewy/session-details into master
Reviewed-on: railbird/railbird-mobile#136
2024-02-22 18:11:07 -07:00
318a2a24fd Ignore 2024-02-22 18:01:42 -07:00
2224a8ccbd Remove after before 2024-02-22 18:00:52 -07:00
48e2bec9ce Elapsed time in seconds 2024-02-22 17:55:37 -07:00
6a1807efc8 Make created at, ended at optional 2024-02-22 17:13:46 -07:00
0ad6e63733 Make video name optional 2024-02-22 17:07:29 -07:00
6255e246e7 Merge pull request 'Remove @includes from feed' (#5) from kat/include into master
Reviewed-on: #5
2024-02-22 16:46:09 -07:00
808fae0480 Remove @includes from feed 2024-02-22 16:45:26 -07:00
Loewy
44d2402f4b componetize session 2024-02-22 11:24:18 -08:00
Loewy
7da14dbb6c back header types, transform-ignore-pattern & tidy up docs for imagefallback 2024-02-21 21:11:28 -08:00
cc597b3cfb Merge pull request 'Create gql feed' (#4) from kat/update-video-gql into master
Reviewed-on: #4
2024-02-21 19:18:20 -07:00
60af058ba4 Create feed 2024-02-21 19:13:30 -07:00
Loewy
608e784205 Merge branch 'master' into loewy/session-details 2024-02-21 17:58:56 -08:00
Loewy
36041dd41b make header component, clean up styles, scrollview + graph 2024-02-21 17:20:30 -08:00
17aee8f220 Drop frame count from videl gql 2024-02-21 17:54:00 -07:00
294198958d Merge pull request 'Fix nav param + rename to useRecordingDetails' (#132) from loewy/fix-nav-param into master
Reviewed-on: railbird/railbird-mobile#132
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-21 15:29:15 -07:00
Loewy
fe824f90ef add fix nav param and rename to useRecordingDetails for consistency 2024-02-21 13:48:09 -08:00
Loewy
a560ebdb70 revert gradle.properties/env.dev 2024-02-21 13:05:50 -08:00
63faa9397e Merge pull request 'renamed files to be consistent with naming paradigm of videos and recordings (removing references to sessions)' (#131) from rename-session-as-video into master
Reviewed-on: railbird/railbird-mobile#131
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-21 14:04:23 -07:00
4df6e51e82 renamed files and directories to get rid of session references 2024-02-21 12:39:58 -08:00
cef4119afa Merge pull request 'Create Session Card' (#126) from dean/session-card into master
Reviewed-on: railbird/railbird-mobile#126
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-20 22:25:11 -07:00
bee765714e cleanup comments 2024-02-20 20:53:29 -08:00
edff79abb6 kat/add-apollo-timeout (#128)
Reviewed-on: railbird/railbird-mobile#128
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-02-20 20:07:05 -07:00
Loewy
2505fc1bf7 make some components, almost done, need to do ui for notes/free play 2024-02-20 18:49:08 -08:00
d400434e89 Merge pull request 'Bump railbird-gql version' (#127) from ivan/bump-gql into master
Reviewed-on: railbird/railbird-mobile#127
2024-02-20 19:49:03 -07:00
4bd438d692 Bump railbird-gql version 2024-02-20 19:45:25 -07:00
828140ed2b Updates 2024-02-20 19:18:29 -07:00
9a2cae0c70 Add scripts for checking that graphql-codegen results in no changes 2024-02-20 19:18:29 -07:00
3a621b8323 fixed typescript error and properly dealt with new dependency 2024-02-20 17:24:18 -08:00
0360fb413c correct linter errors 2024-02-20 17:12:06 -08:00
5b86a0f6d9 fixed things for linter 2024-02-20 17:12:06 -08:00
24c14fb7ca added session feed page and session component with click to details 2024-02-20 17:12:06 -08:00
fbbcd51df5 added session-card component 2024-02-20 17:12:06 -08:00
5a9578d554 Merge pull request 'Orientation Context' (#124) from dean/orientation-context into master
Reviewed-on: railbird/railbird-mobile#124
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-02-20 18:00:00 -07:00
Loewy
5cb1069c1c wip 2024-02-20 16:17:21 -08:00
Loewy
0c8cad6608 revert changes to env & gradle.properties 2024-02-20 16:17:21 -08:00
Loewy
b865f78e22 wip: use react-native-modal, swipe close + scrollview for content 2024-02-20 16:17:21 -08:00
Loewy
bc7b066864 wip: tidy up styles, wireframed 2024-02-20 16:17:21 -08:00
Loewy
7b4af08296 rebase 2024-02-20 16:17:19 -08:00
c77bc476aa undo chat hallucination 2024-02-20 13:12:40 -08:00
b802bb01e6 best practices cleanup chats code review 2024-02-20 13:06:01 -08:00
61f9add741 deleted unnecessary comments 2024-02-20 12:50:34 -08:00
d8e9eef8b1 add orientation context 2024-02-20 12:36:20 -08:00
7bddeca783 Merge pull request 'Finalize recording' (#117) from loewy/finalize-video-flow into master
Reviewed-on: railbird/railbird-mobile#117
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-20 11:28:14 -07:00
Loewy
d03565ba26 remove log 2024-02-19 17:50:04 -08:00
Loewy
36fe81cb3e add permission error, issue with useState, await requestPermission 2024-02-19 17:49:23 -08:00
Loewy
f9edab8f36 rename isOpen to isDropdownOpen 2024-02-19 14:01:44 -08:00
Loewy
ffe95a12f2 useDropdown hook, review requests 2024-02-19 13:19:21 -08:00
Loewy
bcef200765 add ' to tableSize label 2024-02-19 09:51:47 -08:00
Loewy
dc0e3989d4 revert railbird-gql version to point to master 2024-02-19 09:51:47 -08:00
Loewy
b9f821652c seperate concerns, make hook for videoDetails 2024-02-19 09:51:47 -08:00
Loewy
b04c6aa345 render video detail inputs conditionally, terminateUpload on save
working, needs testing

wip: sync styles for inputs, remove notes/tags for now

wip: use single screen and switch on mode

need to rebase

working, needs testing

wip: sync styles for inputs, remove notes/tags for now

wip: use single screen and switch on mode

need to rebase

working, needs testing

add game type and table size to terminateUpload
2024-02-19 09:51:47 -08:00
b05e354459 kat/refactor-use-graph-data (#121)
Reviewed-on: railbird/railbird-mobile#121
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-02-18 23:14:07 -07:00
ce8cfd6a68 Merge pull request 'TerminateUploadStream -- add fields' (#3) from loewy/terminate-upload-add-fields into master
Reviewed-on: #3
2024-02-15 21:38:15 -07:00
Loewy
234d4d0fa9 run codegen 2024-02-15 18:30:33 -08:00
Loewy
4d05d9a539 update operations 2024-02-15 18:14:54 -08:00
Loewy
3f16310f67 wip: add videoName, gameType & tableSize 2024-02-15 15:45:38 -08:00
762351f76e Merge pull request 'BarGraph -- update to work with a ChartContainer' (#118) from loewy/bar-graph-update-for-chart-container into master
Reviewed-on: railbird/railbird-mobile#118
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-15 13:00:33 -07:00
Loewy
2f33b7fd86 bargraph now can be called from chart container, add chartType to chartcomponents, conditional xaxis props, remove bar graph test and test from chart-container 2024-02-15 11:44:15 -08:00
8efbd676ce Merge pull request 'Move to segment index' (#115) from ivan/move-to-segment-index into master
Reviewed-on: railbird/railbird-mobile#115
2024-02-14 09:59:27 -07:00
2fc7c8ab1e Move to segment index 2024-02-14 09:56:32 -07:00
dc5a90cf1a Merge pull request 'ChartContainer -- axis render parent component for graphs' (#42) from loewy/chart-container-wrapper into master
Reviewed-on: railbird/railbird-mobile#42
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-13 16:16:50 -07:00
Loewy
2e49bc4709 link issues to todo comments 2024-02-13 15:00:35 -08:00
Loewy
4e7046bd28 update test to be for the container rather than component 2024-02-13 15:00:35 -08:00
Loewy
3eab510f5a wip: types updated, works with x axis wrapped in container 2024-02-13 15:00:35 -08:00
Loewy
8c3b745d4d wip: minor changes 2024-02-13 15:00:35 -08:00
db9475cf3b Merge pull request 'Set up svg transformer' (#114) from loewy/set-up-svg-transformer into master
Reviewed-on: railbird/railbird-mobile#114
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-13 15:59:57 -07:00
Loewy
31c212807b remove comments 2024-02-12 21:59:01 -08:00
Loewy
aca8caa5c3 test with icon 2024-02-12 21:56:26 -08:00
Loewy
b30ef2ef2b wip: builds, need to test with icons, fixes import issue for assets 2024-02-12 21:35:09 -08:00
62637badcb Merge pull request 'Move camera access permissions' (#113) from loewy/permissions into master
Reviewed-on: railbird/railbird-mobile#113
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-12 14:57:21 -07:00
Loewy
ddcd9899b3 add type to consts + remove if block 2024-02-12 13:47:50 -08:00
Loewy
d3db06a90c add function to check platform and return alert 2024-02-12 12:51:04 -08:00
Loewy
92e211a21a fix prettier 2024-02-12 10:32:53 -08:00
Loewy
1098ba4c7d move permissions to record 2024-02-12 10:32:53 -08:00
2c5a843835 Merge pull request 'Login + Profile -- UI' (#109) from loewy/login-ui into master
Reviewed-on: railbird/railbird-mobile#109
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-12 11:22:03 -07:00
204e289627 Actually regenerate code 2024-02-11 22:46:11 -07:00
fd731b2ecf Fix video uplaod 2024-02-11 22:44:18 -07:00
e733e413ef Small tweaks 2024-02-11 22:42:37 -07:00
Loewy
e1abd8e85c prettier 2024-02-08 13:31:01 -08:00
Loewy
3b1abc9ae8 working, needs testing on physical device 2024-02-08 13:03:39 -08:00
Loewy
6b8737e182 wip: needs testing on physical devices 2024-02-08 13:03:39 -08:00
Loewy
baab800a1c working with email on create user / sign in -- not getting expected error from firebase 2024-02-08 13:03:39 -08:00
Loewy
e2bde3bd01 wip, ui toggle mocked 2024-02-08 13:03:39 -08:00
Loewy
f849780aac some stuff 2024-02-08 13:03:39 -08:00
Loewy
37004a1f6e minor changes 2024-02-08 13:03:39 -08:00
Loewy
d483be05a6 sketch out profile screen so we have a logout, minor clean up 2024-02-08 13:03:39 -08:00
0c89178542 Merge pull request 'Properly support orientation in recorded video' (#106) from ivan/orientation into master
Reviewed-on: railbird/railbird-mobile#106
2024-02-08 11:34:19 -07:00
c8999f8250 Properly support orientation in recorded video
Fixes #72
2024-02-08 11:19:11 -07:00
2fd1f26325 Merge pull request 'move App.tsx to src' (#105) from loewy/move-app-tsx-to-src into master
Reviewed-on: railbird/railbird-mobile#105
2024-02-07 23:04:39 -07:00
Loewy
03774a540f move App.tsx to src 2024-02-07 21:24:24 -08:00
f559c1e215 Merge pull request 'Auth-Context -- Navigation' (#103) from loewy/auth-context into master
Reviewed-on: railbird/railbird-mobile#103
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-02-07 22:02:20 -07:00
Loewy
ea130df02b remove loading for now 2024-02-07 17:49:08 -08:00
Loewy
2ac780bdaa put sign out back on sessiontsx for now 2024-02-07 17:37:58 -08:00
Loewy
a9f474fa62 revert screens, ready for pr 2024-02-07 17:33:27 -08:00
Andy Malkin
3a476e0db4 here you go loewy 2024-02-07 16:59:11 -08:00
Loewy
b9221fa949 wip: almost there, needs dev mode sorted + loading 2024-02-07 15:39:11 -08:00
Loewy
07db6e21db undo some changes to keep history clean 2024-02-07 11:22:25 -08:00
Loewy
e5e998df36 sketch out nav with auth 2024-02-07 11:21:41 -08:00
112ed5b140 Merge pull request 'Add cmake to flake' (#101) from ivan/add-cmake-to-flake into master
Reviewed-on: railbird/railbird-mobile#101
2024-02-07 00:38:04 -07:00
a781510a41 Add cmake to flake 2024-02-07 00:08:36 -07:00
bbbcffcfcb Merge pull request 'write script to use env variables' (#100) from andy/start-script into master
Reviewed-on: railbird/railbird-mobile#100
2024-02-06 21:09:27 -07:00
Loewy
13bdfff9f8 remove logs, tested 2024-02-06 16:15:46 -08:00
Andy Malkin
ef7c39e4e9 update script to keep colors 2024-02-06 16:06:09 -08:00
Andy Malkin
ee085cbbb1 write script to use env variables 2024-02-06 15:53:04 -08:00
35a94b4a75 Merge pull request 'loewy/move-app-to-src' (#99) from loewy/move-app-to-src into master
Reviewed-on: railbird/railbird-mobile#99
2024-02-06 16:52:12 -07:00
Loewy
da68d87a5f import sort 2024-02-06 15:12:54 -08:00
Loewy
af28d5c65b mvoe mock, fix imports 2024-02-06 15:08:19 -08:00
Loewy
b5ca868050 move folders etc, need to solve app import issue 2024-02-06 14:24:49 -08:00
4a5dd47bc0 Merge pull request 'Pass firebase token to headers / signOut' (#98) from loewy/firebase-token-headers into master
Reviewed-on: railbird/railbird-mobile#98
2024-02-06 14:14:05 -07:00
Loewy
71a5f72381 prettier 2024-02-06 13:03:44 -08:00
Loewy
c1ba1ceb7c token passed, tested with a call, change up env a bit 2024-02-06 13:02:15 -08:00
Loewy
035ce9f1b9 fix prettier conflicts 2024-02-06 11:34:52 -08:00
Loewy
eb2534ff94 wip: working, needs some unit tests for auth functions 2024-02-06 11:09:22 -08:00
Loewy
d93d73dc3a wip: token passed to headers, need to make hook for onAuthStateChanged 2024-02-05 23:58:39 -08:00
Loewy
6bfd0621ad wip: connect firebase token to apollo headers 2024-02-05 22:50:24 -08:00
Andy Malkin
b88f5bf2e4 added env vars types and start scripts 2024-02-05 22:48:29 -08:00
43ff5d416a Merge pull request 'Bump gql' (#91) from bump-gql into master
Reviewed-on: railbird/railbird-mobile#91
2024-02-05 19:56:25 -07:00
90fc81776f Merge pull request 'Add shots and bucketed shot gql' (#2) from update-agg-gql into master
Reviewed-on: #2
2024-02-05 19:56:07 -07:00
0e8316b9f5 Bump gql 2024-02-05 12:57:25 -07:00
838304efdd Add shots and bucketed shot gql 2024-02-05 12:16:58 -07:00
01f1f94dd6 Merge pull request 'ivan/upload-flow-v1' (#87) from ivan/upload-flow-v1 into master
Reviewed-on: railbird/railbird-mobile#87
2024-02-05 02:00:36 -07:00
bfd5a58461 Igonre files types 2024-02-05 01:58:19 -07:00
240831d6e5 Fix error 2024-02-05 01:55:53 -07:00
394bff34e5 Set binaryStreamOnly 2024-02-05 01:52:37 -07:00
000918844a Queue uploads 2024-02-05 01:42:58 -07:00
f44a1597c0 Use react-native-fs instead 2024-02-05 01:42:58 -07:00
1cfc6a9ae3 WIP 2024-02-05 01:42:58 -07:00
b4a5fdebab Remove CameraRoll saving 2024-02-05 01:42:58 -07:00
4970018afb Merge pull request 'Disable android build for now' (#86) from ivan/disable-android-build into master
Reviewed-on: railbird/rn-playground#86
2024-02-03 22:22:28 -07:00
8998cc3ac4 Disable android build for now 2024-02-03 22:21:37 -07:00
bee4dc403b Merge pull request 'Oops' (#85) from ivan/fix-android-build into master
Reviewed-on: railbird/rn-playground#85
2024-02-03 22:09:11 -07:00
edbe916247 Oops 2024-02-03 22:08:51 -07:00
73334a7dd7 Merge pull request 'Fix android build' (#84) from ivan/fix-android-build into master
Reviewed-on: railbird/rn-playground#84
2024-02-03 21:59:46 -07:00
497068627c Fix android build 2024-02-03 21:58:54 -07:00
89361e17e6 Merge pull request 'Automatically organize imports' (#83) from ivan/automatically-organize-imports into master
Reviewed-on: railbird/rn-playground#83
2024-02-03 21:48:28 -07:00
18ec4bf9f1 Separate android into its own job 2024-02-03 21:48:05 -07:00
2e75f784dd Try a different variable 2024-02-03 21:35:31 -07:00
c7179bd0a0 Fix android build 2024-02-03 21:30:32 -07:00
b38c099414 Fix? 2024-02-03 21:27:33 -07:00
e7f5d19707 Please work 2024-02-03 21:17:08 -07:00
4ae2e70586 Take 2 2024-02-03 21:14:18 -07:00
c93072d9b4 Fix CI? 2024-02-03 21:10:16 -07:00
721e728275 Add android build and make tsc find react-native-vision-camera 2024-02-03 21:06:47 -07:00
bfd96d9ccc Automatically organize imports 2024-02-03 20:30:00 -07:00
3f0e0bb9a9 Merge pull request 'Actually respect prettier configuration' (#82) from ivan/respect-prettier-configuration into master
Reviewed-on: railbird/rn-playground#82
2024-02-03 20:25:25 -07:00
2276605e6d Actually respect prettier configuration 2024-02-03 20:23:54 -07:00
a6883a624a Merge pull request 'ivan/add-dev-auth' (#81) from ivan/add-dev-auth into master
Reviewed-on: railbird/rn-playground#81
2024-02-03 20:18:02 -07:00
fc3cf92dcf Set dev mode auth headers 2024-02-03 20:15:39 -07:00
e69f9dc2d8 Add ApolloLink to inject auth headers 2024-02-03 18:10:58 -07:00
473d79a32d Bump react native vision callback 2024-02-03 18:09:55 -07:00
2f8f0227ba Merge pull request 'Record flow -- Entry screen + navigation stack' (#79) from loewy/camera-screen-stack into master
Reviewed-on: railbird/rn-playground#79
2024-02-03 16:45:39 -07:00
7bf0053974 Merge pull request 'Add railbird-gql as a dependency' (#80) from ivan/railbird-gql into master
Reviewed-on: railbird/rn-playground#80
2024-02-03 16:44:30 -07:00
5f7e7e31bf Add typescript to flake 2024-02-03 16:37:27 -07:00
a1bc5377db Add typescript as dev dependency 2024-02-03 16:18:58 -07:00
f4b93253a8 Add railbird-gql as a dependency 2024-02-03 15:53:53 -07:00
db82f66c5d Add typescript build configuration 2024-02-03 15:28:18 -07:00
b7aaef15a6 Actually fix main target 2024-02-03 15:17:36 -07:00
bc6f1629db Fix main target 2024-02-03 15:15:35 -07:00
7060eb1e95 Add a flake and move code to index.tsx 2024-02-03 15:08:27 -07:00
Loewy
56733c854c add record entry screen/modal and required nav flow 2024-02-02 18:52:19 -08:00
9e170380db Merge pull request 'Add onVideoChunkReady' (#78) from ivan/addOnVideoChunkReady into master
Reviewed-on: railbird/rn-playground#78
2024-02-01 19:55:44 -07:00
23f0beb646 Add onVideoChunkReady 2024-02-01 19:43:44 -07:00
a0af0ad300 Merge pull request 'react-native-vision-camera working with iOS build' (#71) from loewy/ios-pods-camera into master
Reviewed-on: railbird/rn-playground#71
2024-02-01 17:20:07 -07:00
Loewy
9187021cda add pod for VisionCamera & other ios config, update expo-constants version 2024-02-01 16:12:47 -08:00
4fb8fe7d08 Merge pull request 'Minimal Navigation' (#66) from loewy/rn-navigation into master
Reviewed-on: railbird/rn-playground#66
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-01 15:13:45 -07:00
Loewy
c882786726 Merge branch 'master' into loewy/rn-navigation 2024-02-01 11:42:50 -08:00
7f6a05c101 Merge pull request 'ivan/react-native-vision-camera-submodule' (#68) from ivan/react-native-vision-camera-submodule into master
Reviewed-on: railbird/rn-playground#68
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-02-01 00:59:58 -07:00
06f1aad38e Lint/tsc fixes 2024-02-01 00:58:23 -07:00
2aa9b4b2d1 Add eslintignore for submodule 2024-02-01 00:39:38 -07:00
152ede26e3 Use http submodule in CI 2024-02-01 00:36:48 -07:00
3f43c8d946 It works!!! 2024-01-31 23:39:55 -07:00
85b1cb8759 Close 2024-01-31 22:45:00 -07:00
82069f3bef Use react-native-vision-camera submodule 2024-01-31 18:40:12 -07:00
3a31135807 Merge pull request 'Camera Orientation Toggling' (#63) from loewy/camera-orientation-toggle into master
Reviewed-on: railbird/rn-playground#63
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-01-31 18:20:43 -07:00
Loewy
6482d43af0 remove unused styles color 2024-01-31 15:56:48 -08:00
Loewy
e221ef070f app navigator, tab navigator, session screen, minimal config on tabs & container 2024-01-31 15:55:33 -08:00
Loewy
6b547c4ddd add types, rebase 2024-01-30 17:05:43 -08:00
Loewy
63ef099dc3 add button to change orientation of camera -- passed to props -- needs to be set up 2024-01-30 16:35:47 -08:00
f4cf600d22 Merge pull request 'Camera -- mount & record' (#62) from loewy/rn-vision-camera-preview into master
Reviewed-on: railbird/rn-playground#62
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-30 17:33:16 -07:00
Loewy
f9111ffe5e tested on emulator, works on some physical devices, will record + save to local camera roll & produce logs 2024-01-30 14:18:19 -08:00
Loewy
cd3329baae add logs, try removing props from Camera component 2024-01-30 14:18:19 -08:00
Loewy
feafd48443 working on emulator but crashing on physical device after calling startRecording 2024-01-30 14:18:19 -08:00
Loewy
eb152bc6c7 boots on android, no recording/file logging/etc, just camera access and button ui 2024-01-30 14:18:19 -08:00
4376f9dc26 Merge pull request 'Android Firebase-Auth' (#61) from loewy/firebase-auth-integration into master
Reviewed-on: railbird/rn-playground#61
2024-01-30 15:02:53 -07:00
Loewy
7f7487836c add some comments and add text to log output 2024-01-29 14:51:24 -08:00
Loewy
7046b23a27 code tested on android, gets a token, logs a user 2024-01-29 14:51:24 -08:00
6ebceb4ce7 Merge pull request 'Android Firebase SDK set up' (#55) from loewy/android-generate-firebase-sdk into master
Reviewed-on: railbird/rn-playground#55
2024-01-29 14:26:59 -07:00
Loewy
3d9845e1b3 revert App.tsx 2024-01-27 15:17:09 -08:00
Loewy
07118a870f android google-service.json linking 2024-01-27 15:11:42 -08:00
abb718603e Merge pull request 'Android folders from nix shell' (#52) from loewy/renamed-android-folders into master
Reviewed-on: railbird/rn-playground#52
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-27 15:40:20 -07:00
Loewy
9f170c1186 revert the nix/store hash on gradle.properties 2024-01-27 14:21:02 -08:00
Loewy
94d4f13a28 get android running in nix shell 2024-01-26 16:41:50 -08:00
4c6bf597a9 Merge pull request 'Firebase SDK for iOS -- duplicate' (#49) from loewy/firebase-sdk into master
Reviewed-on: railbird/rn-playground#49
2024-01-26 13:19:03 -07:00
Loewy
4c091745dd rebased with master + reset package json to previous spacing/commands 2024-01-25 17:27:24 -08:00
Loewy
406f6f5cdd revert commands in package json 2024-01-25 17:08:58 -08:00
Loewy
4250eca710 firebase sdk installation and set up for iOS + connection test 2024-01-25 17:08:58 -08:00
3bd414506a Merge pull request 'iOS Directory' (#46) from loewy/renamed_ios_folders into master
Reviewed-on: railbird/rn-playground#46
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-25 17:33:13 -07:00
Loewy
a9dbd503e3 build ios directory + rename app.json name and slug 2024-01-25 11:31:21 -08:00
ec0904ffb1 Merge pull request 'Line Graph -- render component' (#39) from loewy/line-graph-render-component into master
Reviewed-on: railbird/rn-playground#39
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-18 20:10:09 -07:00
Loewy
b80b05fbd8 add line graph, associated changes to utils/config/styles & test 2024-01-18 16:21:01 -08:00
d9a4247b8e Merge pull request 'Update CustomGrid' (#37) from loewy/custom-grid-vertical into master
Reviewed-on: railbird/rn-playground#37
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-18 14:30:46 -07:00
Loewy
9d5164bd13 add vertical option for custom-grid, add dev docs 2024-01-18 13:21:39 -08:00
ec6d36b44c ChartLabel -- graph helper component to render title + labels for a chart/graph (#30)
-- question: helper functions can be used directly in chartLabel OR I could have them be part of useGraphData hook since this component will be called on a graph.

image: shows the Chart Label up top with capital cased keys/labels and color boxes

FIXES #29

Co-authored-by: Loewy <loewy@chainstarters.com>
Reviewed-on: billnerds/rn-playground#30
Reviewed-by: Kat Huang <kkathuang@gmail.com>
Co-authored-by: loewy <loewymalkov@gmail.com>
Co-committed-by: loewy <loewymalkov@gmail.com>
2024-01-17 14:29:28 -07:00
7e7a571f5a Merge pull request 'Bar Graph Render Component' (#28) from loewy/bar-graph-render into master
Reviewed-on: billnerds/rn-playground#28
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-16 15:16:59 -07:00
Loewy
9a61ea59b2 fix import issue caused by renaming 2024-01-15 18:05:21 -08:00
Loewy
5dc141a14a remove index file for now, do default exports in seperate pr 2024-01-15 18:01:50 -08:00
Loewy
a0f8ec156b fix spacing 2024-01-15 17:55:19 -08:00
Loewy
7383c85b58 merge chart-view from master, implement in component 2024-01-15 17:52:10 -08:00
Loewy
aed0faebf0 add bar graph, make changes to customgrid and custombars to match new structure 2024-01-15 17:40:24 -08:00
f0b9f8043b Merge pull request 'ChartView styled component' (#27) from loewy/chart-view into master
Reviewed-on: billnerds/rn-playground#27
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-15 15:52:31 -07:00
Loewy
58dfe98448 remove uneeded comment 2024-01-15 13:18:23 -08:00
Loewy
f14ba0e97f chart-view, styles and tests 2024-01-15 13:02:51 -08:00
Loewy
981b5cebca add code, bring over chart view and pr first 2024-01-15 12:33:08 -08:00
4e3a93f126 Merge pull request 'Logic handler for bar graph' (#21) from loewy/bar-graph-data into master
Reviewed-on: billnerds/rn-playground#21
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-15 12:53:32 -07:00
Loewy
c391a07d70 fix lint issue with master rebase 2024-01-15 11:51:43 -08:00
Loewy
7faa25e103 update types/naming to reflect intended usage for useGraphData hook 2024-01-15 11:50:20 -08:00
Loewy
12c3a6ef6f add func logic for bar graph 2024-01-15 11:50:20 -08:00
4c1bd21f3d Merge pull request 'Support new feature tables' (#26) from support-new-feature-schema into master
Reviewed-on: billnerds/rn-playground#26
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-01-14 17:46:55 -07:00
abfc6c4c47 Support new feature tables 2024-01-14 17:39:25 -07:00
afb2ef21f5 Merge pull request 'Temp remove shot from app' (#20) from remove-shot-component into master
Reviewed-on: billnerds/rn-playground#20
2024-01-12 12:04:33 -07:00
06bb8feeb5 Temp remove shot from app 2024-01-12 12:03:48 -07:00
a112586c2d Merge pull request 'charts folder in component' (#19) from loewy/add-charts-folder into master
Reviewed-on: billnerds/rn-playground#19
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-12 12:02:01 -07:00
Loewy
8d40008e5d add path 2024-01-11 23:01:05 -08:00
Loewy
a9afd7e0a9 add charts folder in component 2024-01-11 22:59:15 -08:00
28a0426096 Merge pull request 'loewy/custom-bars' (#18) from loewy/custom-bars into master
Reviewed-on: billnerds/rn-playground#18
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
Reviewed-by: Kat Huang <kkathuang@gmail.com>
2024-01-10 19:14:27 -07:00
Loewy
dee04269bd update tests, change naming 2024-01-10 18:12:58 -08:00
Loewy
6c7ceb3eb3 add tests for helper functions on bar 2024-01-10 18:12:58 -08:00
Loewy
4dda9eb24c add custom-grid and associated files + test - test needs plugin config to work with d3-path and jest 2024-01-10 18:12:58 -08:00
92258f4925 Merge pull request 'Filter utils to create filter input for query' (#17) from filter-query into master
Reviewed-on: billnerds/rn-playground#17
2024-01-10 18:08:19 -07:00
5b1b1cdaaa WIP 2024-01-10 16:23:18 -07:00
875989e3a9 Add filter input 2024-01-10 16:23:18 -07:00
74c17f433a Merge pull request 'Custom grid component' (#16) from loewy/custom-grid into master
Reviewed-on: billnerds/rn-playground#16
2024-01-09 16:46:53 -07:00
Loewy
2903207670 remove custom grid 2024-01-09 15:42:38 -08:00
Loewy
c0723665af add custom-grid and mock code, add direnv to gitignore 2024-01-09 15:25:36 -08:00
83a648eb90 Merge pull request 'Implement Containers for fetching shots' (#15) from get-shot-with-fragment into master
Reviewed-on: billnerds/rn-playground#15
2024-01-09 10:47:58 -07:00
5204599a08 Register fragment 2024-01-08 23:52:08 -07:00
fcdce8706f Create shot features fragment 2024-01-08 23:52:08 -07:00
5192212e0e Render fetched shots 2024-01-08 23:52:08 -07:00
376d695416 Merge pull request 'Create higher order component that wraps display components' (#12) from create-query-hoc into master
Reviewed-on: billnerds/rn-playground#12
2024-01-08 19:26:44 -07:00
e25425ffe9 Add react native testing library 2024-01-08 17:27:52 -07:00
78d40f1abc Create with query wrapper 2024-01-08 17:21:47 -07:00
78d99da6df Merge pull request 'Create Apollo Client' (#11) from create-gql-client into master
Reviewed-on: billnerds/rn-playground#11
2024-01-08 00:22:41 -07:00
f797c98d45 Create Apollo Provider 2024-01-08 00:21:36 -07:00
491ca28ab2 Get dotenv working with typescript 2024-01-06 23:58:36 -07:00
7f71c89ffb Create apollo provider 2024-01-06 23:48:47 -07:00
411d5720b9 Merge pull request 'Fix uri path' (#10) from fix-env into master
Reviewed-on: billnerds/rn-playground#10
2024-01-06 23:38:19 -07:00
872dd3fd71 Fix uri path 2024-01-06 23:36:24 -07:00
521e9da4e3 Merge pull request 'Add prettier' (#9) from ivan/add-prettier into master
Reviewed-on: billnerds/rn-playground#9
2024-01-06 19:38:04 -07:00
ed8371e08a Make eslint compatible with prettier 2024-01-06 19:32:00 -07:00
160590658b Add prettier 2024-01-06 19:25:17 -07:00
002ac7902d Merge pull request 'Add jest for unit tests' (#8) from add-jest into master
Reviewed-on: billnerds/rn-playground#8
2024-01-06 19:08:37 -07:00
e527b198f9 Add a unit test 2024-01-06 19:07:16 -07:00
d68561b372 Add jest for unit tests 2024-01-06 18:46:03 -07:00
c292289f29 Merge pull request 'Add type checking' (#7) from type-check into master
Reviewed-on: billnerds/rn-playground#7
2024-01-06 18:06:53 -07:00
e053517765 Add type checking 2024-01-06 18:04:03 -07:00
66d045c2a7 Merge pull request 'Use environment variables for uri' (#5) from env-files into master
Reviewed-on: billnerds/rn-playground#5
2024-01-06 15:19:38 -07:00
e1410ed402 Merge branch 'master' into env-files 2024-01-06 06:26:45 -07:00
1031794d85 Merge pull request 'Remove main from action' (#6) from ivan/remove-main-branch-from-actions into master
Reviewed-on: billnerds/rn-playground#6
2024-01-06 06:26:20 -07:00
5d2b45b3e5 Again? 2024-01-06 02:31:02 -07:00
73b09fe9cb Fix? 2024-01-06 02:13:39 -07:00
cd2ecb22b1 Set yarn cache folder 2024-01-06 02:07:26 -07:00
ad66131e01 Fix? 2024-01-05 23:27:48 -07:00
f401c418c5 Only use yarn.lock 2024-01-05 23:25:08 -07:00
7b8db90f75 Fix action 2024-01-05 23:19:39 -07:00
0431ba12c5 Run action on push master 2024-01-05 22:48:28 -07:00
3731bb7532 Add gitea action 2024-01-05 22:47:04 -07:00
a1a3fa45b1 Use environment variables for uri 2024-01-05 19:50:07 -07:00
59541ec0e8 Merge pull request 'Fix lint errors' (#4) from fix-lint-errors into master
Reviewed-on: billnerds/rn-playground#4
2024-01-05 19:20:57 -07:00
b334cc377f Fix lint errors 2024-01-05 19:19:45 -07:00
b1467838da Merge pull request 'Install eslint' (#3) from linter into master
Reviewed-on: billnerds/rn-playground#3
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-01-05 19:06:40 -07:00
20901fb26c Add lint rules 2024-01-05 15:39:57 -07:00
295f948104 Install eslint 2024-01-05 14:43:38 -07:00
977ab8f6c9 Creating new repo 2023-12-28 17:18:54 -07:00
c3e2d23a63 Initial commit
Generated by create-expo-app 2.1.1.
2023-12-28 16:44:12 -07:00
31 changed files with 8835 additions and 683 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*.json]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

5
.envrc Normal file
View File

@ -0,0 +1,5 @@
use flake . --impure
if [ -f .envrc.local ]; then
source .envrc.local
fi

View File

@ -0,0 +1,17 @@
name: Tests
on:
pull_request:
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
install:
name: Tests
runs-on: nixos-x86_64-linux
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: codegen causes no changes
run: ./bin/assert-no-changes-wrapper.sh

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
node_modules
dist
.direnv
/after.txt
/before.txt
**/__pycache__/**

1
README.md Normal file
View File

@ -0,0 +1 @@
# rbgql

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
GQL_DIR=$(dirname $(dirname "$(realpath "$BASH_SOURCE")"))
cd $GQL_DIR
LD_LIBRARY_PATH="" nix develop --impure --command bash "$GQL_DIR/bin/assert-no-changes.sh"

17
bin/assert-no-changes.sh Executable file
View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
git ls-files | xargs md5sum > before.txt
yarn install
yarn graphql-codegen
prettier ./src --write
for proto in $(find ./rbproto -iname '*.proto'); do
name=$(basename "$proto" .proto)
protoc -I=./rbproto --python_out=./rbproto/python --pyi_out=./rbproto/python ./rbproto/shot.proto
yarn pbjs ./rbproto/shot.proto --ts ./rbproto/ts/shot.ts
done
prettier ./rbproto --write
git ls-files | xargs md5sum > after.txt
diff before.txt after.txt

View File

@ -2,7 +2,7 @@ overwrite: true
schema: "src/schema.gql"
documents: "src/**/*.gql"
generates:
src/generated/graphql.tsx:
src/index.tsx:
plugins:
- "typescript"
- "typescript-operations"

80
flake.lock Normal file
View File

@ -0,0 +1,80 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": ["nixpkgs"]
},
"locked": {
"lastModified": 1703887061,
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1706732774,
"narHash": "sha256-hqJlyJk4MRpcItGYMF+3uHe8HvxNETWvlGtLuVpqLU0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b8b232ae7b8b144397fdb12d20f592e5e7c1a64d",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"gitignore": "gitignore",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

27
flake.nix Normal file
View File

@ -0,0 +1,27 @@
{
description = "Sample Nix ts-node build";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
flake-utils,
gitignore,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = import nixpkgs {inherit system;};
nodejs = pkgs.nodejs-18_x;
in
with pkgs; {
devShell = mkShell {
buildInputs = [nodejs yarn watchman alejandra nodePackages.prettier just protobuf];
};
});
}

39
justfile Normal file
View File

@ -0,0 +1,39 @@
NIX := "LD_LIBRARY_PATH='' nix"
PROTOBUF_DIR := "$PWD/rbproto"
prettier-gql:
#!/usr/bin/env bash
set -euxo pipefail
{{NIX}} develop --impure --command prettier ./src --write
gql-codegen:
#!/usr/bin/env bash
set -euxo pipefail
{{NIX}} develop --impure --command bash -c 'yarn install && yarn graphql-codegen'
gql: gql-codegen prettier-gql
protobuf-compile-a-python name:
protoc -I={{ PROTOBUF_DIR }} --python_out={{ PROTOBUF_DIR }}/python --pyi_out={{ PROTOBUF_DIR }}/python {{ PROTOBUF_DIR }}/shot.proto
protobuf-compile-a-js name:
#!/usr/bin/env bash
set -euxo pipefail
{{NIX}} develop --impure --command bash -c 'yarn pbjs {{ PROTOBUF_DIR }}/shot.proto --ts {{ PROTOBUF_DIR }}/ts/shot.ts && yarn prettier ./rbproto --write'
protobuf-compile-all-js:
#!/usr/bin/env bash
for proto in $(find {{ PROTOBUF_DIR }} -iname '*.proto'); do
name=$(basename "$proto" .proto)
just protobuf-compile-a-js $name
done
protobuf-compile-all-python:
#!/usr/bin/env bash
for proto in $(find {{ PROTOBUF_DIR }} -iname '*.proto'); do
name=$(basename "$proto" .proto)
just protobuf-compile-a-python $name
done
protobuf-compile-everything: protobuf-compile-all-js protobuf-compile-all-python

View File

@ -1,15 +1,33 @@
{
"name": "railbird-gql",
"version": "1.0.0",
"main": "index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build",
"postinstall": "tsc"
},
"repository": "ssh://gitea@dev.railbird.ai:1123/railbird/railbird-gql.git",
"author": "Ivan Malison <IvanMalison@gmail.com>",
"license": "MIT",
"dependencies": {
"@apollo/client": "^3.9.2",
"@graphql-codegen/cli": "^5.0.0",
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/typescript-react-apollo": "^4.2.0",
"graphql": "^16.8.1"
"graphql": "^16.8.1",
"pbjs": "^0.0.14",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4"
},
"prettier": {
"plugins": [
"prettier-plugin-organize-imports"
]
},
"devDependencies": {
"typescript": "^4.x"
}
}

16
pyproject.toml Normal file
View File

@ -0,0 +1,16 @@
[tool.poetry]
name = "rbproto"
version = "0.1.0"
description = ""
authors = ["Mike Kalange <countablecloud@gmail.com>"]
readme = "README.md"
packages = [{include = "rbproto"}]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
protobuf = "^4.25.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

1
rbproto/__init__.py Normal file
View File

@ -0,0 +1 @@
from .python.shot_pb2 import * # noqa: F401

View File

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: shot.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nshot.proto\x12\x0fserialized_shot\"?\n\x03\x42ox\x12\x0c\n\x04left\x18\x01 \x01(\x02\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x0e\n\x06height\x18\x04 \x01(\x02\"\x1d\n\x05Point\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\"\x7f\n\rBallDetection\x12.\n\x0eplane_position\x18\x01 \x01(\x0b\x32\x16.serialized_shot.Point\x12(\n\nannotation\x18\x02 \x01(\x0b\x32\x14.serialized_shot.Box\x12\x14\n\x0cinterpolated\x18\x03 \x01(\x08\"T\n\x10RLEBallDetection\x12\x31\n\tdetection\x18\x01 \x01(\x0b\x32\x1e.serialized_shot.BallDetection\x12\r\n\x05\x63ount\x18\x02 \x01(\r\"L\n\x13RLEDetectionHistory\x12\x35\n\ndetections\x18\x01 \x03(\x0b\x32!.serialized_shot.RLEBallDetection\"F\n\x10\x44\x65tectionHistory\x12\x32\n\ndetections\x18\x01 \x03(\x0b\x32\x1e.serialized_shot.BallDetection\"\xfc\x01\n\rCollisionInfo\x12\x0e\n\x06source\x18\x01 \x01(\r\x12M\n\x10\x62\x61ll_identifiers\x18\x02 \x03(\x0b\x32\x33.serialized_shot.CollisionInfo.BallIdentifiersEntry\x12\x17\n\x0fwall_identifier\x18\x03 \x01(\r\x12\x13\n\x0b\x66rame_index\x18\x04 \x01(\r\x12\x0e\n\x06static\x18\x05 \x01(\x08\x1aN\n\x14\x42\x61llIdentifiersEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.serialized_shot.Point:\x02\x38\x01\"\xcc\x02\n\x04Path\x12\x13\n\x0bstart_frame\x18\x01 \x01(\r\x12\x11\n\tend_frame\x18\x02 \x01(\r\x12\x37\n\ndetections\x18\x03 \x01(\x0b\x32!.serialized_shot.DetectionHistoryH\x00\x12>\n\x0erle_detections\x18\x04 \x01(\x0b\x32$.serialized_shot.RLEDetectionHistoryH\x00\x12\x15\n\x0bnot_present\x18\x05 \x01(\x08H\x00\x12\x11\n\tis_static\x18\x06 \x01(\x08\x12\x32\n\nstart_info\x18\x07 \x01(\x0b\x32\x1e.serialized_shot.CollisionInfo\x12\x30\n\x08\x65nd_info\x18\x08 \x01(\x0b\x32\x1e.serialized_shot.CollisionInfoB\x13\n\x11\x64\x65tection_history\"R\n\x11IdentifierHistory\x12\x17\n\x0f\x62\x61ll_identifier\x18\x01 \x01(\r\x12$\n\x05paths\x18\x02 \x03(\x0b\x32\x15.serialized_shot.Path\"j\n\x12KeyBallIdentifiers\x12\x10\n\x08\x63ue_ball\x18\x01 \x01(\r\x12\x13\n\x0bobject_ball\x18\x02 \x01(\r\x12\x13\n\x0btarget_ball\x18\x03 \x01(\r\x12\x18\n\x10\x63ontact_sequence\x18\x04 \x03(\r\"\xa8\x01\n\x04Shot\x12@\n\x14identifier_histories\x18\x03 \x03(\x0b\x32\".serialized_shot.IdentifierHistory\x12\x36\n\tkey_balls\x18\x04 \x01(\x0b\x32#.serialized_shot.KeyBallIdentifiers\x12\x13\n\x0bstart_index\x18\x05 \x01(\r\x12\x11\n\tend_index\x18\x06 \x01(\rb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'shot_pb2', _globals)
if _descriptor._USE_C_DESCRIPTORS == False:
DESCRIPTOR._options = None
_globals['_COLLISIONINFO_BALLIDENTIFIERSENTRY']._options = None
_globals['_COLLISIONINFO_BALLIDENTIFIERSENTRY']._serialized_options = b'8\001'
_globals['_BOX']._serialized_start=31
_globals['_BOX']._serialized_end=94
_globals['_POINT']._serialized_start=96
_globals['_POINT']._serialized_end=125
_globals['_BALLDETECTION']._serialized_start=127
_globals['_BALLDETECTION']._serialized_end=254
_globals['_RLEBALLDETECTION']._serialized_start=256
_globals['_RLEBALLDETECTION']._serialized_end=340
_globals['_RLEDETECTIONHISTORY']._serialized_start=342
_globals['_RLEDETECTIONHISTORY']._serialized_end=418
_globals['_DETECTIONHISTORY']._serialized_start=420
_globals['_DETECTIONHISTORY']._serialized_end=490
_globals['_COLLISIONINFO']._serialized_start=493
_globals['_COLLISIONINFO']._serialized_end=745
_globals['_COLLISIONINFO_BALLIDENTIFIERSENTRY']._serialized_start=667
_globals['_COLLISIONINFO_BALLIDENTIFIERSENTRY']._serialized_end=745
_globals['_PATH']._serialized_start=748
_globals['_PATH']._serialized_end=1080
_globals['_IDENTIFIERHISTORY']._serialized_start=1082
_globals['_IDENTIFIERHISTORY']._serialized_end=1164
_globals['_KEYBALLIDENTIFIERS']._serialized_start=1166
_globals['_KEYBALLIDENTIFIERS']._serialized_end=1272
_globals['_SHOT']._serialized_start=1275
_globals['_SHOT']._serialized_end=1443
# @@protoc_insertion_point(module_scope)

129
rbproto/python/shot_pb2.pyi Normal file
View File

@ -0,0 +1,129 @@
from google.protobuf.internal import containers as _containers
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
DESCRIPTOR: _descriptor.FileDescriptor
class Box(_message.Message):
__slots__ = ["left", "top", "width", "height"]
LEFT_FIELD_NUMBER: _ClassVar[int]
TOP_FIELD_NUMBER: _ClassVar[int]
WIDTH_FIELD_NUMBER: _ClassVar[int]
HEIGHT_FIELD_NUMBER: _ClassVar[int]
left: float
top: float
width: float
height: float
def __init__(self, left: _Optional[float] = ..., top: _Optional[float] = ..., width: _Optional[float] = ..., height: _Optional[float] = ...) -> None: ...
class Point(_message.Message):
__slots__ = ["x", "y"]
X_FIELD_NUMBER: _ClassVar[int]
Y_FIELD_NUMBER: _ClassVar[int]
x: float
y: float
def __init__(self, x: _Optional[float] = ..., y: _Optional[float] = ...) -> None: ...
class BallDetection(_message.Message):
__slots__ = ["plane_position", "annotation", "interpolated"]
PLANE_POSITION_FIELD_NUMBER: _ClassVar[int]
ANNOTATION_FIELD_NUMBER: _ClassVar[int]
INTERPOLATED_FIELD_NUMBER: _ClassVar[int]
plane_position: Point
annotation: Box
interpolated: bool
def __init__(self, plane_position: _Optional[_Union[Point, _Mapping]] = ..., annotation: _Optional[_Union[Box, _Mapping]] = ..., interpolated: bool = ...) -> None: ...
class RLEBallDetection(_message.Message):
__slots__ = ["detection", "count"]
DETECTION_FIELD_NUMBER: _ClassVar[int]
COUNT_FIELD_NUMBER: _ClassVar[int]
detection: BallDetection
count: int
def __init__(self, detection: _Optional[_Union[BallDetection, _Mapping]] = ..., count: _Optional[int] = ...) -> None: ...
class RLEDetectionHistory(_message.Message):
__slots__ = ["detections"]
DETECTIONS_FIELD_NUMBER: _ClassVar[int]
detections: _containers.RepeatedCompositeFieldContainer[RLEBallDetection]
def __init__(self, detections: _Optional[_Iterable[_Union[RLEBallDetection, _Mapping]]] = ...) -> None: ...
class DetectionHistory(_message.Message):
__slots__ = ["detections"]
DETECTIONS_FIELD_NUMBER: _ClassVar[int]
detections: _containers.RepeatedCompositeFieldContainer[BallDetection]
def __init__(self, detections: _Optional[_Iterable[_Union[BallDetection, _Mapping]]] = ...) -> None: ...
class CollisionInfo(_message.Message):
__slots__ = ["source", "ball_identifiers", "wall_identifier", "frame_index", "static"]
class BallIdentifiersEntry(_message.Message):
__slots__ = ["key", "value"]
KEY_FIELD_NUMBER: _ClassVar[int]
VALUE_FIELD_NUMBER: _ClassVar[int]
key: int
value: Point
def __init__(self, key: _Optional[int] = ..., value: _Optional[_Union[Point, _Mapping]] = ...) -> None: ...
SOURCE_FIELD_NUMBER: _ClassVar[int]
BALL_IDENTIFIERS_FIELD_NUMBER: _ClassVar[int]
WALL_IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
FRAME_INDEX_FIELD_NUMBER: _ClassVar[int]
STATIC_FIELD_NUMBER: _ClassVar[int]
source: int
ball_identifiers: _containers.MessageMap[int, Point]
wall_identifier: int
frame_index: int
static: bool
def __init__(self, source: _Optional[int] = ..., ball_identifiers: _Optional[_Mapping[int, Point]] = ..., wall_identifier: _Optional[int] = ..., frame_index: _Optional[int] = ..., static: bool = ...) -> None: ...
class Path(_message.Message):
__slots__ = ["start_frame", "end_frame", "detections", "rle_detections", "not_present", "is_static", "start_info", "end_info"]
START_FRAME_FIELD_NUMBER: _ClassVar[int]
END_FRAME_FIELD_NUMBER: _ClassVar[int]
DETECTIONS_FIELD_NUMBER: _ClassVar[int]
RLE_DETECTIONS_FIELD_NUMBER: _ClassVar[int]
NOT_PRESENT_FIELD_NUMBER: _ClassVar[int]
IS_STATIC_FIELD_NUMBER: _ClassVar[int]
START_INFO_FIELD_NUMBER: _ClassVar[int]
END_INFO_FIELD_NUMBER: _ClassVar[int]
start_frame: int
end_frame: int
detections: DetectionHistory
rle_detections: RLEDetectionHistory
not_present: bool
is_static: bool
start_info: CollisionInfo
end_info: CollisionInfo
def __init__(self, start_frame: _Optional[int] = ..., end_frame: _Optional[int] = ..., detections: _Optional[_Union[DetectionHistory, _Mapping]] = ..., rle_detections: _Optional[_Union[RLEDetectionHistory, _Mapping]] = ..., not_present: bool = ..., is_static: bool = ..., start_info: _Optional[_Union[CollisionInfo, _Mapping]] = ..., end_info: _Optional[_Union[CollisionInfo, _Mapping]] = ...) -> None: ...
class IdentifierHistory(_message.Message):
__slots__ = ["ball_identifier", "paths"]
BALL_IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
PATHS_FIELD_NUMBER: _ClassVar[int]
ball_identifier: int
paths: _containers.RepeatedCompositeFieldContainer[Path]
def __init__(self, ball_identifier: _Optional[int] = ..., paths: _Optional[_Iterable[_Union[Path, _Mapping]]] = ...) -> None: ...
class KeyBallIdentifiers(_message.Message):
__slots__ = ["cue_ball", "object_ball", "target_ball", "contact_sequence"]
CUE_BALL_FIELD_NUMBER: _ClassVar[int]
OBJECT_BALL_FIELD_NUMBER: _ClassVar[int]
TARGET_BALL_FIELD_NUMBER: _ClassVar[int]
CONTACT_SEQUENCE_FIELD_NUMBER: _ClassVar[int]
cue_ball: int
object_ball: int
target_ball: int
contact_sequence: _containers.RepeatedScalarFieldContainer[int]
def __init__(self, cue_ball: _Optional[int] = ..., object_ball: _Optional[int] = ..., target_ball: _Optional[int] = ..., contact_sequence: _Optional[_Iterable[int]] = ...) -> None: ...
class Shot(_message.Message):
__slots__ = ["identifier_histories", "key_balls", "start_index", "end_index"]
IDENTIFIER_HISTORIES_FIELD_NUMBER: _ClassVar[int]
KEY_BALLS_FIELD_NUMBER: _ClassVar[int]
START_INDEX_FIELD_NUMBER: _ClassVar[int]
END_INDEX_FIELD_NUMBER: _ClassVar[int]
identifier_histories: _containers.RepeatedCompositeFieldContainer[IdentifierHistory]
key_balls: KeyBallIdentifiers
start_index: int
end_index: int
def __init__(self, identifier_histories: _Optional[_Iterable[_Union[IdentifierHistory, _Mapping]]] = ..., key_balls: _Optional[_Union[KeyBallIdentifiers, _Mapping]] = ..., start_index: _Optional[int] = ..., end_index: _Optional[int] = ...) -> None: ...

73
rbproto/shot.proto Normal file
View File

@ -0,0 +1,73 @@
syntax = "proto3";
package serialized_shot;
message Box {
float left = 1;
float top = 2;
float width = 3;
float height = 4;
}
message Point {
float x = 1;
float y = 2;
}
message BallDetection {
Point plane_position = 1;
Box annotation = 2;
bool interpolated = 3;
}
message RLEBallDetection {
BallDetection detection = 1;
uint32 count = 2;
}
message RLEDetectionHistory { repeated RLEBallDetection detections = 1; }
message DetectionHistory { repeated BallDetection detections = 1; }
message CollisionInfo {
uint32 source = 1;
map<uint32, Point> ball_identifiers = 2;
uint32 wall_identifier = 3;
uint32 frame_index = 4;
bool static = 5;
}
message Path {
uint32 start_frame = 1;
uint32 end_frame = 2;
oneof detection_history {
DetectionHistory detections = 3;
RLEDetectionHistory rle_detections = 4;
bool not_present = 5;
}
bool is_static = 6;
CollisionInfo start_info = 7;
CollisionInfo end_info = 8;
}
message IdentifierHistory {
uint32 ball_identifier = 1;
repeated Path paths = 2;
}
message KeyBallIdentifiers {
uint32 cue_ball = 1;
uint32 object_ball = 2;
uint32 target_ball = 3;
// For now this will just be cue->object/target->target
// Long term this will potentially represent a linked list
// of all balls in a shot.
repeated uint32 contact_sequence = 4;
}
message Shot {
repeated IdentifierHistory identifier_histories = 3;
KeyBallIdentifiers key_balls = 4;
uint32 start_index = 5;
uint32 end_index = 6;
}

1586
rbproto/ts/shot.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,500 +0,0 @@
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
const defaultOptions = {} as const;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
/** Date with time (isoformat) */
DateTime: { input: any; output: any; }
/** Decimal (fixed-point) */
Decimal: { input: any; output: any; }
};
export type AggregateResultGql = {
__typename?: 'AggregateResultGQL';
featureBuckets: Array<BucketGql>;
targetMetrics: Array<TargetMetricGql>;
};
export type AndFilter = {
filters: Array<FilterInput>;
};
export type BankFeaturesGql = {
__typename?: 'BankFeaturesGQL';
bankAngle: Scalars['Float']['output'];
distance: Scalars['Float']['output'];
wallsHit: Array<WallTypeEnum>;
};
export type BucketGql = {
__typename?: 'BucketGQL';
lowerBound: Scalars['Float']['output'];
rangeKey: Scalars['String']['output'];
};
export type BucketInputGql = {
lowerBound: Scalars['Float']['input'];
rangeKey: Scalars['String']['input'];
};
export type BucketSetGql = {
__typename?: 'BucketSetGQL';
buckets: Array<BucketGql>;
feature: Scalars['String']['output'];
keyName: Scalars['String']['output'];
};
export type BucketSetInputGql = {
buckets: Array<BucketInputGql>;
feature: Scalars['String']['input'];
};
export type CreateBucketSetInput = {
buckets: Array<BucketInputGql>;
feature: Scalars['String']['input'];
keyName: Scalars['String']['input'];
};
export type CreateUploadStreamReturn = {
__typename?: 'CreateUploadStreamReturn';
videoId: Scalars['Int']['output'];
};
export type CueBallSpeedInput = {
value: RangeFilter;
};
export type CueObjectAngleInput = {
value: RangeFilter;
};
export type CueObjectDistanceInput = {
value: RangeFilter;
};
export type CueObjectFeaturesGql = {
__typename?: 'CueObjectFeaturesGQL';
cueBallSpeed?: Maybe<Scalars['Float']['output']>;
cueObjectAngle?: Maybe<Scalars['Float']['output']>;
cueObjectDistance?: Maybe<Scalars['Float']['output']>;
shotDirection?: Maybe<ShotDirectionEnum>;
};
export enum DeviceTypeEnum {
Android = 'ANDROID',
Browser = 'BROWSER',
Ios = 'IOS'
}
export type EnumFilter = {
equals?: InputMaybe<Scalars['String']['input']>;
};
export type FilterInput = {
andFilters?: InputMaybe<AndFilter>;
cueBallSpeed?: InputMaybe<CueBallSpeedInput>;
cueObjectAngle?: InputMaybe<CueObjectAngleInput>;
cueObjectDistance?: InputMaybe<CueObjectDistanceInput>;
intendedPocketType?: InputMaybe<IntendedPocketTypeInput>;
orFilters?: InputMaybe<OrFilter>;
shotDirection?: InputMaybe<ShotDirectionInput>;
targetPocketDistance?: InputMaybe<TargetPocketDistanceInput>;
};
export type GetUploadLinkReturn = {
__typename?: 'GetUploadLinkReturn';
linksRequested: Scalars['Int']['output'];
uploadUrl: Scalars['String']['output'];
uploadsCompleted: Scalars['Int']['output'];
};
export type IntendedPocketTypeInput = {
value: EnumFilter;
};
export type Mutation = {
__typename?: 'Mutation';
createBucketSet: BucketSetGql;
createUploadStream: CreateUploadStreamReturn;
getUploadLink: GetUploadLinkReturn;
processVideoSource: ProcessVideoSourceReturn;
terminateUploadStream: Scalars['Boolean']['output'];
};
export type MutationCreateBucketSetArgs = {
params: CreateBucketSetInput;
};
export type MutationCreateUploadStreamArgs = {
uploadMetadata?: InputMaybe<UploadMetadataInput>;
videoName?: InputMaybe<Scalars['String']['input']>;
};
export type MutationGetUploadLinkArgs = {
chunkIndex: Scalars['Int']['input'];
videoId: Scalars['Int']['input'];
};
export type MutationProcessVideoSourceArgs = {
input: ProcessVideoSourceInput;
};
export type MutationTerminateUploadStreamArgs = {
videoId: Scalars['Int']['input'];
};
export type OrFilter = {
filters: Array<FilterInput>;
};
export enum PocketEnum {
Corner = 'CORNER',
Side = 'SIDE'
}
export type PocketingIntentionFeaturesGql = {
__typename?: 'PocketingIntentionFeaturesGQL';
intendedPocketType?: Maybe<PocketEnum>;
make?: Maybe<Scalars['Boolean']['output']>;
targetPocketDistance?: Maybe<Scalars['Float']['output']>;
};
export type ProcessVideoSourceInput = {
val: Scalars['Int']['input'];
};
export type ProcessVideoSourceReturn = {
__typename?: 'ProcessVideoSourceReturn';
val: Scalars['Int']['output'];
};
export type Query = {
__typename?: 'Query';
getAggregateShots: Array<AggregateResultGql>;
getBucketSet?: Maybe<BucketSetGql>;
getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>;
getVideo: VideoGql;
};
export type QueryGetAggregateShotsArgs = {
bucketSets: Array<BucketSetInputGql>;
};
export type QueryGetBucketSetArgs = {
keyName: Scalars['String']['input'];
};
export type QueryGetShotsArgs = {
filterInput?: InputMaybe<FilterInput>;
};
export type QueryGetUserArgs = {
userId: Scalars['Int']['input'];
};
export type QueryGetVideoArgs = {
videoId: Scalars['Int']['input'];
};
export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars['Float']['input']>;
lessThan?: InputMaybe<Scalars['Float']['input']>;
};
export enum ShotDirectionEnum {
Left = 'LEFT',
Right = 'RIGHT',
Straight = 'STRAIGHT'
}
export type ShotDirectionInput = {
value: EnumFilter;
};
export type ShotFeaturesGql = {
__typename?: 'ShotFeaturesGQL';
bank?: Maybe<BankFeaturesGql>;
cueBallSpeed?: Maybe<Scalars['Float']['output']>;
cueObjectAngle?: Maybe<Scalars['Float']['output']>;
cueObjectDistance?: Maybe<Scalars['Float']['output']>;
intendedPocket?: Maybe<PocketEnum>;
shotDirection?: Maybe<ShotDirectionEnum>;
targetPocketDistance?: Maybe<Scalars['Float']['output']>;
};
export type ShotGql = {
__typename?: 'ShotGQL';
createdAt?: Maybe<Scalars['DateTime']['output']>;
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
endFrame?: Maybe<Scalars['Int']['output']>;
features?: Maybe<ShotFeaturesGql>;
id?: Maybe<Scalars['Int']['output']>;
pocketingIntentionFeatures?: Maybe<PocketingIntentionFeaturesGql>;
startFrame?: Maybe<Scalars['Int']['output']>;
updatedAt?: Maybe<Scalars['DateTime']['output']>;
videoId?: Maybe<Scalars['Int']['output']>;
};
export type TargetFloatFeatureGql = {
__typename?: 'TargetFloatFeatureGQL';
average?: Maybe<Scalars['Float']['output']>;
featureName: Scalars['String']['output'];
median?: Maybe<Scalars['Float']['output']>;
};
export type TargetMetricGql = {
__typename?: 'TargetMetricGQL';
count?: Maybe<Scalars['Int']['output']>;
floatFeature?: Maybe<TargetFloatFeatureGql>;
makePercentage?: Maybe<Scalars['Float']['output']>;
};
export type TargetPocketDistanceInput = {
value: RangeFilter;
};
export type UploadMetadataInput = {
appVersion?: InputMaybe<Scalars['String']['input']>;
browserName?: InputMaybe<Scalars['String']['input']>;
browserVersion?: InputMaybe<Scalars['String']['input']>;
deviceType?: InputMaybe<DeviceTypeEnum>;
ipAddress?: InputMaybe<Scalars['String']['input']>;
locale?: InputMaybe<Scalars['String']['input']>;
networkType?: InputMaybe<Scalars['String']['input']>;
osVersion?: InputMaybe<Scalars['String']['input']>;
timezone?: InputMaybe<Scalars['String']['input']>;
};
export type UploadStreamGql = {
__typename?: 'UploadStreamGQL';
createdAt: Scalars['DateTime']['output'];
id: Scalars['ID']['output'];
isCompleted: Scalars['Boolean']['output'];
linksRequested: Scalars['Int']['output'];
updatedAt: Scalars['DateTime']['output'];
uploadMetadata: UploadStreamMetadata;
uploadsCompleted: Scalars['Int']['output'];
};
export type UploadStreamMetadata = {
__typename?: 'UploadStreamMetadata';
appVersion?: Maybe<Scalars['String']['output']>;
browserName?: Maybe<Scalars['String']['output']>;
browserVersion?: Maybe<Scalars['String']['output']>;
deviceType?: Maybe<DeviceTypeEnum>;
ipAddress?: Maybe<Scalars['String']['output']>;
locale?: Maybe<Scalars['String']['output']>;
networkType?: Maybe<Scalars['String']['output']>;
osVersion?: Maybe<Scalars['String']['output']>;
timezone?: Maybe<Scalars['String']['output']>;
};
export type UserGql = {
__typename?: 'UserGQL';
createdAt?: Maybe<Scalars['DateTime']['output']>;
id: Scalars['Int']['output'];
statistics: UserStatisticsGql;
updatedAt?: Maybe<Scalars['DateTime']['output']>;
username: Scalars['String']['output'];
};
export type UserStatisticsGql = {
__typename?: 'UserStatisticsGQL';
averageTimeBetweenShots: Scalars['Decimal']['output'];
makePercentage: Scalars['Decimal']['output'];
medianRun?: Maybe<Scalars['Decimal']['output']>;
timeSpentPlaying: Scalars['Decimal']['output'];
totalShots: Scalars['Int']['output'];
totalShotsMade: Scalars['Int']['output'];
};
export type VideoGql = {
__typename?: 'VideoGQL';
averageTimeBetweenShots?: Maybe<Scalars['Decimal']['output']>;
createdAt: Scalars['DateTime']['output'];
elapsedTime: Scalars['Decimal']['output'];
endTime: Scalars['DateTime']['output'];
framesPerSecond: Scalars['Int']['output'];
id: Scalars['Int']['output'];
makePercentage: Scalars['Decimal']['output'];
medianRun: Scalars['Decimal']['output'];
shots: Array<ShotGql>;
startTime: Scalars['DateTime']['output'];
stream?: Maybe<UploadStreamGql>;
totalFrames: Scalars['Int']['output'];
totalShots: Scalars['Int']['output'];
totalShotsMade: Scalars['Int']['output'];
updatedAt: Scalars['DateTime']['output'];
};
export enum WallTypeEnum {
Long = 'LONG',
Short = 'SHORT'
}
export type CreateUploadStreamMutationVariables = Exact<{
videoName: Scalars['String']['input'];
deviceType?: InputMaybe<DeviceTypeEnum>;
osVersion?: InputMaybe<Scalars['String']['input']>;
appVersion?: InputMaybe<Scalars['String']['input']>;
browserName?: InputMaybe<Scalars['String']['input']>;
browserVersion?: InputMaybe<Scalars['String']['input']>;
locale?: InputMaybe<Scalars['String']['input']>;
timezone?: InputMaybe<Scalars['String']['input']>;
networkType?: InputMaybe<Scalars['String']['input']>;
ipAddress?: InputMaybe<Scalars['String']['input']>;
}>;
export type CreateUploadStreamMutation = { __typename?: 'Mutation', createUploadStream: { __typename?: 'CreateUploadStreamReturn', videoId: number } };
export type GetUploadLinkMutationVariables = Exact<{
videoId: Scalars['Int']['input'];
chunkIndex: Scalars['Int']['input'];
}>;
export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: { __typename?: 'GetUploadLinkReturn', uploadUrl: string, linksRequested: number } };
export type TerminateUploadStreamMutationVariables = Exact<{
videoId: Scalars['Int']['input'];
}>;
export type TerminateUploadStreamMutation = { __typename?: 'Mutation', terminateUploadStream: boolean };
export const CreateUploadStreamDocument = gql`
mutation CreateUploadStream($videoName: String!, $deviceType: DeviceTypeEnum, $osVersion: String, $appVersion: String, $browserName: String, $browserVersion: String, $locale: String, $timezone: String, $networkType: String, $ipAddress: String) {
createUploadStream(
videoName: $videoName
uploadMetadata: {deviceType: $deviceType, osVersion: $osVersion, appVersion: $appVersion, browserName: $browserName, browserVersion: $browserVersion, locale: $locale, timezone: $timezone, networkType: $networkType, ipAddress: $ipAddress}
) {
videoId
}
}
`;
export type CreateUploadStreamMutationFn = Apollo.MutationFunction<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>;
/**
* __useCreateUploadStreamMutation__
*
* To run a mutation, you first call `useCreateUploadStreamMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useCreateUploadStreamMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [createUploadStreamMutation, { data, loading, error }] = useCreateUploadStreamMutation({
* variables: {
* videoName: // value for 'videoName'
* deviceType: // value for 'deviceType'
* osVersion: // value for 'osVersion'
* appVersion: // value for 'appVersion'
* browserName: // value for 'browserName'
* browserVersion: // value for 'browserVersion'
* locale: // value for 'locale'
* timezone: // value for 'timezone'
* networkType: // value for 'networkType'
* ipAddress: // value for 'ipAddress'
* },
* });
*/
export function useCreateUploadStreamMutation(baseOptions?: Apollo.MutationHookOptions<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>(CreateUploadStreamDocument, options);
}
export type CreateUploadStreamMutationHookResult = ReturnType<typeof useCreateUploadStreamMutation>;
export type CreateUploadStreamMutationResult = Apollo.MutationResult<CreateUploadStreamMutation>;
export type CreateUploadStreamMutationOptions = Apollo.BaseMutationOptions<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>;
export const GetUploadLinkDocument = gql`
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
uploadUrl
linksRequested
}
}
`;
export type GetUploadLinkMutationFn = Apollo.MutationFunction<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
/**
* __useGetUploadLinkMutation__
*
* To run a mutation, you first call `useGetUploadLinkMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useGetUploadLinkMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [getUploadLinkMutation, { data, loading, error }] = useGetUploadLinkMutation({
* variables: {
* videoId: // value for 'videoId'
* chunkIndex: // value for 'chunkIndex'
* },
* });
*/
export function useGetUploadLinkMutation(baseOptions?: Apollo.MutationHookOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<GetUploadLinkMutation, GetUploadLinkMutationVariables>(GetUploadLinkDocument, options);
}
export type GetUploadLinkMutationHookResult = ReturnType<typeof useGetUploadLinkMutation>;
export type GetUploadLinkMutationResult = Apollo.MutationResult<GetUploadLinkMutation>;
export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
export const TerminateUploadStreamDocument = gql`
mutation TerminateUploadStream($videoId: Int!) {
terminateUploadStream(videoId: $videoId)
}
`;
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;
/**
* __useTerminateUploadStreamMutation__
*
* To run a mutation, you first call `useTerminateUploadStreamMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useTerminateUploadStreamMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
*
* @example
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
* variables: {
* videoId: // value for 'videoId'
* },
* });
*/
export function useTerminateUploadStreamMutation(baseOptions?: Apollo.MutationHookOptions<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>(TerminateUploadStreamDocument, options);
}
export type TerminateUploadStreamMutationHookResult = ReturnType<typeof useTerminateUploadStreamMutation>;
export type TerminateUploadStreamMutationResult = Apollo.MutationResult<TerminateUploadStreamMutation>;
export type TerminateUploadStreamMutationOptions = Apollo.BaseMutationOptions<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;

5383
src/index.tsx Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
getAggregatedShotMetrics(aggregateInput: $aggregateInput) {
aggregationIdentifiers {
featureName
groupName
}
targetMetrics {
count
makePercentage
}
}
}

View File

@ -0,0 +1,9 @@
query getDeployedConfig {
getDeployedConfig {
allowNewUsers
devMode
environment
firebase
minimumAllowedAppVersion
}
}

39
src/operations/feed.gql Normal file
View File

@ -0,0 +1,39 @@
query GetFeed(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id
owner {
username
}
name
screenshotUri
totalShotsMade
totalShots
makePercentage
createdAt
updatedAt
startTime
endTime
elapsedTime
screenshotUri
stream {
isCompleted
}
tableSize
tags {
tagClasses {
name
}
name
}
}
pageInfo {
hasNextPage
endCursor
}
}
}

View File

@ -0,0 +1,9 @@
query GetVideoMakePercentageIntervals($videoId: ID!, $intervalDuration: Int!) {
getVideoMakePercentageIntervals(
videoId: $videoId
intervalDuration: $intervalDuration
) {
makePercentage
elapsedTime
}
}

136
src/operations/shots.gql Normal file
View File

@ -0,0 +1,136 @@
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!) {
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
serializedShotPaths {
b64EncodedBuffer
}
}
}
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}
query GetShotsWithMetadata(
$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
) {
getShotsWithMetadata(
filterInput: $filterInput
shotsPagination: $shotsPagination
limit: $limit
) {
count
shots {
id
videoId
startFrame
endFrame
user {
id
}
falsePositiveScore
video {
stream {
resolution {
width
height
}
}
}
serializedShotPaths {
b64EncodedBuffer
}
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)
}
}
}
}

65
src/operations/user.gql Normal file
View File

@ -0,0 +1,65 @@
mutation getProfileImageUploadLink($fileExt: String = ".png") {
getProfileImageUploadLink(fileExt: $fileExt) {
value {
... on UploadLink {
uploadUrl
headers {
key
value
}
}
... on GetProfileUploadLinkErrors {
error {
... on TooManyProfileImageUploadsErr {
linksRequested
}
}
}
}
}
}
mutation editProfileImageUri($profileImageUri: String!) {
editProfileImageUri(profileImageUri: $profileImageUri) {
id
firebaseUid
username
profileImageUri
createdAt
updatedAt
}
}
query getLoggedInUser {
getLoggedInUser {
id
firebaseUid
username
isAdmin
profileImageUri
activeVideoId
createdAt
updatedAt
}
}
query GetUserPlayTime($userId: Int!) {
getPlayTime(userId: $userId) {
totalSeconds
}
}
query getUsernames(
$matchString: String!
$limit: Int = null
$after: String = null
) {
getUsernames(matchString: $matchString, limit: $limit, after: $after)
}
query GetUserTags {
getUserTags {
id
name
}
}

239
src/operations/video.gql Normal file
View File

@ -0,0 +1,239 @@
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
id
totalShots
makePercentage
elapsedTime
currentHomography {
crop {
left
top
width
height
}
pockets {
left
top
width
height
}
sourcePoints {
topLeft {
x
y
}
topSide {
x
y
}
topRight {
x
y
}
bottomLeft {
x
y
}
bottomSide {
x
y
}
bottomRight {
x
y
}
}
}
stream {
linksRequested
uploadsCompleted
segmentProcessingCursor
isCompleted
uploadCompletionCursor
lastIntendedSegmentBound
initPlaylistUploadStatus
}
currentProcessing {
errors {
message
startSegmentIndex
endSegmentIndex
}
}
}
}
query GetVideoUpdatePageDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
id
name
totalShots
makePercentage
elapsedTime
tableSize
tags {
tagClasses {
name
}
name
}
}
}
mutation DeleteVideo($videoId: Int!) {
deleteVideo(videoId: $videoId)
}
query GetVideoDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
id
name
screenshotUri
averageTimeBetweenShots
elapsedTime
endTime
makePercentage
medianRun
startTime
totalShots
totalShotsMade
createdAt
updatedAt
tableSize
owner {
id
firebaseUid
username
profileImageUri
}
tags {
tagClasses {
name
}
name
}
}
}
query GetVideos($videoIds: [Int!]!) {
getVideos(videoIds: $videoIds) {
id
framesPerSecond
stream {
id
streamSegmentType
segments {
uploaded
valid
segmentIndex
endFrameIndex
framesPerSecond
}
}
playlist {
segmentDurations
}
}
}
query GetVideo($videoId: Int!) {
getVideo(videoId: $videoId) {
id
playlist {
segmentDurations
}
homographyHistory {
frameIndex
crop {
left
top
width
height
}
pockets {
left
top
width
height
}
sourcePoints {
topLeft {
x
y
}
topSide {
x
y
}
topRight {
x
y
}
bottomLeft {
x
y
}
bottomSide {
x
y
}
bottomRight {
x
y
}
}
}
stream {
streamSegmentType
segments {
segmentIndex
endFrameIndex
framesPerSecond
}
resolution {
width
height
}
}
}
}
query GetAverageTimePerShotForVideo($videoId: Int!) {
getVideo(videoId: $videoId) {
id
averageTimeBetweenShots
}
}
query GetElapsedTimeForVideo($videoId: Int!) {
getVideo(videoId: $videoId) {
id
elapsedTime
}
}
query GetMedianRunForVideo($videoId: Int!) {
getVideo(videoId: $videoId) {
id
medianRun
}
}
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
}
stream {
id
streamSegmentType
segments {
uploaded
valid
segmentIndex
endFrameIndex
framesPerSecond
}
}
}
}

View File

@ -1,40 +1,126 @@
mutation CreateUploadStream(
$videoName: String!,
$deviceType: DeviceTypeEnum,
$osVersion: String,
$appVersion: String,
$browserName: String,
$browserVersion: String,
$locale: String,
$timezone: String,
$networkType: String,
$ipAddress: String
) {
createUploadStream(
videoName: $videoName
uploadMetadata: {
deviceType: $deviceType
osVersion: $osVersion
appVersion: $appVersion
browserName: $browserName
browserVersion: $browserVersion
locale: $locale
timezone: $timezone
networkType: $networkType
ipAddress: $ipAddress
}
) {
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
createUploadStream(videoMetadata: $videoMetadataInput) {
videoId
}
}
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
uploadUrl
linksRequested
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
value {
... on UploadLink {
uploadUrl
headers {
key
value
}
}
... on GetUploadLinkErrors {
error {
... on MustHaveSetForUploadLinkErr {
resolution
framesPerSecond
}
... on SegmentAlreadyUploadedErr {
segmentId
}
... on ProcessingFailedErr {
processing {
status
errors {
message
}
}
}
}
}
}
stream {
uploadCompletionCursor
}
}
}
mutation TerminateUploadStream($videoId: Int!) {
terminateUploadStream(videoId: $videoId)
mutation GetHlsInitUploadLink($videoId: Int!) {
getHlsInitUploadLink(videoId: $videoId) {
value {
... on UploadLink {
uploadUrl
headers {
key
value
}
}
... on GetUploadLinkErrors {
error {
... on NoInitForChunkedUploadErr {
segmentType
}
... on InitUploadAlreadyCompletedErr {
segmentType
}
... on TooManyInitUploadsErr {
linksRequested
}
}
}
}
}
}
mutation SetSegmentDuration(
$videoId: Int!
$segmentIndex: Int!
$duration: Float!
) {
setSegmentDuration(
videoId: $videoId
segmentIndex: $segmentIndex
duration: $duration
)
}
mutation EditUploadStream(
$videoId: Int!
$videoMetadataInput: VideoMetadataInput!
) {
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
}
query GetUploadStreams(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id
}
pageInfo {
hasNextPage
endCursor
}
}
}
query GetUploadStreamsWithDetails(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id
name
startTime
stream {
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
uploadsCompleted
}
}
pageInfo {
hasNextPage
endCursor
}
}
}

View File

@ -1,31 +1,84 @@
type Query {
getAggregateShots(bucketSets: [BucketSetInputGQL!]!): [AggregateResultGQL!]!
getUser(userId: Int!): UserGQL
getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput = null): [ShotGQL!]!
getAggregatedShotMetrics(
aggregateInput: AggregateInputGQL!
): [AggregateResultGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getDeployedConfig: DeployedConfigGQL!
waitFor(duration: Float!): Float!
getVideoMakePercentageIntervals(
videoId: ID!
intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]!
getShotsWithMetadata(
filterInput: FilterInput!
shotsPagination: GetShotsPagination = null
limit: Int! = 500
): GetShotsResult!
getShots(
filterInput: FilterInput!
shotsPagination: GetShotsPagination = null
limit: Int! = 500
): [ShotGQL!]!
getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
getUsernames(
matchString: String = null
limit: Int = null
after: String = null
): [String!]!
getPlayTime(userId: Int!): UserPlayTimeGQL!
getUserVideos(
userId: Int = null
limit: Int! = 5
after: String = null
filters: VideoFilterInput = null
): VideoHistoryGQL!
getUserTags: [TagGQL!]!
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
getVideos(videoIds: [Int!]!): [VideoGQL!]!
}
type AggregateResultGQL {
featureBuckets: [BucketGQL!]!
targetMetrics: [TargetMetricGQL!]!
aggregationIdentifiers: [AggregationIdentifierGQL!]!
targetMetrics: TargetMetricsGQL!
}
type BucketGQL {
rangeKey: String!
lowerBound: Float!
}
type TargetMetricGQL {
count: Int
makePercentage: Float
floatFeature: TargetFloatFeatureGQL
}
type TargetFloatFeatureGQL {
type AggregationIdentifierGQL {
featureName: String!
average: Float
median: Float
groupName: String!
}
type TargetMetricsGQL {
count: Int!
makePercentage: Float
averageDifficulty: Float
spinTypeCounts: SpinTypeCountsGQL
shotDirectionCounts: ShotDirectionCountsGQL
}
type SpinTypeCountsGQL {
follow: Int!
draw: Int!
center: Int!
unknown: Int!
}
type ShotDirectionCountsGQL {
left: Int!
right: Int!
straight: Int!
}
input AggregateInputGQL {
aggregations: [AggregationInput!]!
filterInput: FilterInput
}
input AggregationInput @oneOf {
bucketSet: BucketSetInputGQL
enum: EnumAggregation
datetimeRange: DatetimeRangeAggregationInput
}
input BucketSetInputGQL {
@ -38,67 +91,86 @@ input BucketInputGQL {
lowerBound: Float!
}
type UserGQL {
id: Int!
username: String!
createdAt: DateTime
updatedAt: DateTime
statistics: UserStatisticsGQL!
input EnumAggregation {
feature: String!
}
"""Date with time (isoformat)"""
input DatetimeRangeAggregationInput {
startDatetime: DateTime!
endDatetime: DateTime!
interval: TimeInterval!
}
"""
Date with time (isoformat)
"""
scalar DateTime
type UserStatisticsGQL {
totalShots: Int!
totalShotsMade: Int!
makePercentage: Decimal!
averageTimeBetweenShots: Decimal!
timeSpentPlaying: Decimal!
medianRun: Decimal
input TimeInterval {
"""
A second is the base unit and cannot be subdivided
"""
seconds: Int = 0
minutes: Int = 0
hours: Int = 0
days: Int = 0
weeks: Int = 0
"""
Assumes a month is 30 days long
"""
months: Int = 0
"""
Assumes a year is 365 days long
"""
years: Int = 0
}
"""Decimal (fixed-point)"""
scalar Decimal
type VideoGQL {
id: Int!
totalShotsMade: Int!
totalShots: Int!
makePercentage: Decimal!
medianRun: Decimal!
averageTimeBetweenShots: Decimal
createdAt: DateTime!
updatedAt: DateTime!
shots: [ShotGQL!]!
startTime: DateTime!
endTime: DateTime!
elapsedTime: Decimal!
framesPerSecond: Int!
totalFrames: Int!
stream: UploadStreamGQL
input FilterInput @oneOf {
andFilters: [FilterInput!]
orFilters: [FilterInput!]
notFilter: FilterInput
cueObjectDistance: RangeFilter
targetPocketDistance: RangeFilter
cueObjectAngle: RangeFilter
cueBallSpeed: RangeFilter
difficulty: RangeFilter
intendedPocketType: [PocketEnum!]
shotDirection: [ShotDirectionEnum!]
videoId: [Int!]
userId: [Int!]
make: [Boolean!]
tags: [VideoTagInput!]
annotations: [ShotAnnotationInput!]
isStraight: [Boolean!]
isRight: [Boolean!]
isLeft: [Boolean!]
isLeftMiss: [Boolean!]
isRightMiss: [Boolean!]
isDirect: [Boolean!]
tableSize: RangeFilter
bankAngle: RangeFilter
bankDistance: RangeFilter
kickAngle: RangeFilter
kickDistance: RangeFilter
cueAngleAfterObject: RangeFilter
spinType: [SpinTypeEnum!]
cueSpeedAfterObject: RangeFilter
falsePositiveScore: RangeFilter
backcut: [Boolean!]
targetPocketAngleDirection: [ShotDirectionEnum!]
targetPocketAngle: RangeFilter
missAngleInDegrees: RangeFilter
}
type ShotGQL {
id: Int
videoId: Int
startFrame: Int
endFrame: Int
createdAt: DateTime
updatedAt: DateTime
features: ShotFeaturesGQL
cueObjectFeatures: CueObjectFeaturesGQL
pocketingIntentionFeatures: PocketingIntentionFeaturesGQL
}
type ShotFeaturesGQL {
cueObjectAngle: Float
cueObjectDistance: Float
targetPocketDistance: Float
intendedPocket: PocketEnum
cueBallSpeed: Float
shotDirection: ShotDirectionEnum
bank: BankFeaturesGQL
input RangeFilter {
lessThan: Float = null
greaterThanEqualTo: Float = null
greaterThan: Float = null
includeOnNone: Boolean! = false
lessThanInclusive: Boolean! = false
greaterThanInclusive: Boolean! = true
}
enum PocketEnum {
@ -112,6 +184,106 @@ enum ShotDirectionEnum {
STRAIGHT
}
input VideoTagInput {
tagClasses: [VideoTagClassInput!]! = []
name: String!
}
input VideoTagClassInput {
name: String!
}
input ShotAnnotationInput {
name: String!
}
enum SpinTypeEnum {
DRAW
FOLLOW
CENTER
UNKNOWN
}
type BucketSetGQL {
keyName: String!
feature: String!
buckets: [BucketGQL!]!
}
type BucketGQL {
rangeKey: String!
lowerBound: Float!
}
type DeployedConfigGQL {
allowNewUsers: Boolean!
firebase: Boolean!
devMode: Boolean!
environment: String!
minimumAllowedAppVersion: String!
}
type MakePercentageIntervalGQL {
makePercentage: Float!
elapsedTime: Float!
}
type GetShotsResult {
shots: [ShotGQL!]!
count: Int
}
type ShotGQL {
id: Int!
videoId: Int!
startFrame: Int!
endFrame: Int!
createdAt: DateTime
updatedAt: DateTime
cueObjectFeatures: CueObjectFeaturesGQL
pocketingIntentionFeatures: PocketingIntentionFeaturesGQL
pocketingIntentionInfo: PocketingIntentionInfoGQL
bankFeatures: BankFeaturesGQL
serializedShotPaths: SerializedShotPathsGQL
user: UserGQL
annotations: [ShotAnnotationGQL!]!
falsePositiveScore: Float
video: VideoGQL
}
type CueObjectFeaturesGQL {
cueObjectDistance: Float
cueObjectAngle: Float
cueBallSpeed: Float
shotDirection: ShotDirectionEnum
spinType: SpinTypeEnum
}
type PocketingIntentionFeaturesGQL {
targetPocketDistance: Float
make: Boolean
intendedPocketType: PocketEnum
difficulty: Float
targetPocketAngle: Float
targetPocketAngleDirection: ShotDirectionEnum
backcut: Boolean
}
type PocketingIntentionInfoGQL {
ballId: Int!
pocketId: PocketIdentifier!
pathMetadataIndex: Int!
}
enum PocketIdentifier {
TOP_LEFT
TOP_SIDE
TOP_RIGHT
BOTTOM_LEFT
BOTTOM_SIDE
BOTTOM_RIGHT
}
type BankFeaturesGQL {
wallsHit: [WallTypeEnum!]!
bankAngle: Float!
@ -123,111 +295,252 @@ enum WallTypeEnum {
SHORT
}
type CueObjectFeaturesGQL {
cueObjectDistance: Float
cueObjectAngle: Float
cueBallSpeed: Float
shotDirection: ShotDirectionEnum
type SerializedShotPathsGQL {
b64EncodedBuffer: String
}
type PocketingIntentionFeaturesGQL {
targetPocketDistance: Float
make: Boolean
intendedPocketType: PocketEnum
type UserGQL {
id: Int!
firebaseUid: String!
username: String!
isAdmin: Boolean!
activeVideoId: Int
profileImageUri: String
createdAt: DateTime
updatedAt: DateTime
}
type ShotAnnotationGQL {
shotId: Int!
type: ShotAnnotationTypeGQL!
creator: UserGQL!
notes: String!
errorDefault: Boolean!
createdAt: DateTime
updatedAt: DateTime
}
type ShotAnnotationTypeGQL {
id: Int!
name: String!
}
type VideoGQL {
id: Int!
owner: UserGQL
name: String
screenshotUri: String
totalShotsMade: Int!
totalShots: Int!
makePercentage: Float!
medianRun: Float
averageTimeBetweenShots: Float
createdAt: DateTime
updatedAt: DateTime
shots: [ShotGQL!]!
startTime: DateTime
endTime: DateTime
elapsedTime: Float
framesPerSecond: Float!
tableSize: Float!
stream: UploadStreamGQL
playlist: HLSPlaylistGQL
tags: [VideoTag!]!
currentHomography: HomographyInfoGQL
homographyHistory: [HomographyInfoGQL!]!
currentProcessing: VideoProcessingGQL
}
type UploadStreamGQL {
id: ID!
linksRequested: Int!
uploadsCompleted: Int!
segmentProcessingCursor: Int!
lastIntendedSegmentBound: Int
isCompleted: Boolean!
uploadMetadata: UploadStreamMetadata!
initPlaylistUploadStatus: InitPlaylistUploadStatusEnum
lowestUnuploadedSegmentIndex: Int!
uploadCompletionCursor: Int!
errors: [StreamErrorGQL!]!
createdAt: DateTime!
updatedAt: DateTime!
segments: [UploadSegmentGQL!]!
resolution: VideoResolutionGQL!
streamSegmentType: StreamSegmentTypeEnum!
}
type UploadStreamMetadata {
deviceType: DeviceTypeEnum
osVersion: String
appVersion: String
browserName: String
browserVersion: String
locale: String
timezone: String
networkType: String
ipAddress: String
enum InitPlaylistUploadStatusEnum {
NOT_APPLICABLE
NOT_UPLOADED
UPLOADED
}
enum DeviceTypeEnum {
IOS
ANDROID
BROWSER
type StreamErrorGQL {
message: String!
}
input FilterInput {
andFilters: AndFilter = null
orFilters: OrFilter = null
cueObjectDistance: CueObjectDistanceInput = null
targetPocketDistance: TargetPocketDistanceInput = null
cueObjectAngle: CueObjectAngleInput = null
cueBallSpeed: CueBallSpeedInput = null
intendedPocketType: IntendedPocketTypeInput = null
shotDirection: ShotDirectionInput = null
type UploadSegmentGQL {
segmentIndex: Int!
uploaded: Boolean!
valid: Boolean!
endFrameIndex: Int
framesPerSecond: Float
durationInSeconds: Float
linksRequested: Int!
}
input AndFilter {
filters: [FilterInput!]!
type VideoResolutionGQL {
width: Int
height: Int
}
input OrFilter {
filters: [FilterInput!]!
enum StreamSegmentTypeEnum {
FRAGMENTED_MP4
RB_CHUNKED_MP4
}
input CueObjectDistanceInput {
value: RangeFilter!
type HLSPlaylistGQL {
videoId: Int!
m3u8Text: String!
segmentDurations: [Float!]!
}
input RangeFilter {
lessThan: Float = null
greaterThanEqualTo: Float = null
type VideoTag {
tagClasses: [VideoTagClass!]!
name: String!
}
input TargetPocketDistanceInput {
value: RangeFilter!
type VideoTagClass {
name: String!
}
input CueObjectAngleInput {
value: RangeFilter!
type HomographyInfoGQL {
frameIndex: Int!
crop: BoundingBoxGQL!
pockets: [BoundingBoxGQL!]!
sourcePoints: PocketPointsGQL!
destPoints: PocketPointsGQL!
}
input CueBallSpeedInput {
value: RangeFilter!
type BoundingBoxGQL {
left: Float!
top: Float!
width: Float!
height: Float!
}
input IntendedPocketTypeInput {
value: EnumFilter!
type PocketPointsGQL {
topLeft: IntPoint2D!
topSide: IntPoint2D!
topRight: IntPoint2D!
bottomLeft: IntPoint2D!
bottomSide: IntPoint2D!
bottomRight: IntPoint2D!
}
input EnumFilter {
equals: String = null
type IntPoint2D {
x: Int!
y: Int!
}
input ShotDirectionInput {
value: EnumFilter!
type VideoProcessingGQL {
errors: [VideoProcessingErrorGQL!]!
status: ProcessingStatusEnum!
statuses: [VideoProcessingStatusGQL!]!
}
type BucketSetGQL {
keyName: String!
feature: String!
buckets: [BucketGQL!]!
type VideoProcessingErrorGQL {
message: String!
startSegmentIndex: Int
endSegmentIndex: Int
}
enum ProcessingStatusEnum {
STARTED
FAILED
SUCCEEDED
SUSPENDED
CREATED
QUEUED
RUNNING
REEXTRACTING_FEATURES
}
type VideoProcessingStatusGQL {
status: ProcessingStatusEnum!
appVersion: String!
sequenceId: Int!
createdAt: DateTime
updatedAt: DateTime
}
input GetShotsPagination {
createdAfter: CreatedAfter!
startFrameAfter: Int!
}
input CreatedAfter @oneOf {
videoId: Int
createdAt: DateTime
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL {
hasNextPage: Boolean!
endCursor: String
}
input VideoFilterInput {
isStreamCompleted: Boolean = null
requireCursorCompletion: Boolean! = true
}
type TagGQL {
name: String!
id: Int!
group: String
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
"""
scalar JSON
@specifiedBy(
url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf"
)
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
processVideoSource(input: ProcessVideoSourceInput!): ProcessVideoSourceReturn!
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, chunkIndex: Int!): GetUploadLinkReturn!
terminateUploadStream(videoId: Int!): Boolean!
setLoggerLevel(path: String!, level: String!): Boolean!
addAnnotationToShot(
shotId: Int!
annotationName: String!
notes: String = null
): AddShotAnnotationReturn!
getProfileImageUploadLink(
fileExt: String = ".png"
): GetProfileUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL!
createUploadStream(
videoMetadata: VideoMetadataInput!
): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
setSegmentDuration(
videoId: Int!
segmentIndex: Int!
duration: Float!
): Boolean!
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
deleteVideo(videoId: Int!): Boolean!
}
input CreateBucketSetInput {
@ -236,19 +549,80 @@ input CreateBucketSetInput {
buckets: [BucketInputGQL!]!
}
type ProcessVideoSourceReturn {
val: Int!
type AddShotAnnotationReturn {
value: SuccessfulAddAddShotAnnotationErrors!
}
input ProcessVideoSourceInput {
val: Int!
union SuccessfulAddAddShotAnnotationErrors =
SuccessfulAdd
| AddShotAnnotationErrors
type SuccessfulAdd {
value: Boolean!
}
type AddShotAnnotationErrors {
error: DoesNotOwnShotErrOtherErrorNeedsNote!
}
union DoesNotOwnShotErrOtherErrorNeedsNote =
DoesNotOwnShotErr
| OtherErrorNeedsNote
type DoesNotOwnShotErr {
shotId: Int!
msg: String
}
type OtherErrorNeedsNote {
msg: String
}
type GetProfileUploadLinkReturn {
value: UploadLinkGetProfileUploadLinkErrors!
}
union UploadLinkGetProfileUploadLinkErrors =
UploadLink
| GetProfileUploadLinkErrors
type UploadLink {
uploadUrl: String!
headers: [Header]!
}
type Header {
key: String!
value: String!
}
type GetProfileUploadLinkErrors {
error: TooManyProfileImageUploadsErr!
}
type TooManyProfileImageUploadsErr {
linksRequested: Int!
}
type CreateUploadStreamReturn {
videoId: Int!
}
input UploadMetadataInput {
input VideoMetadataInput {
videoName: String = null
startTime: DateTime = null
endTime: DateTime = null
gameType: String = null
tableSize: Float = null
uploadStreamMetadataInput: UploadStreamMetadataInput = null
lastIntendedSegmentBound: Int = null
streamSegmentType: StreamSegmentTypeEnum = null
endStream: Boolean! = false
resolution: VideoResolution = null
framesPerSecond: Float = null
}
input UploadStreamMetadataInput {
deviceType: DeviceTypeEnum = null
osVersion: String = null
appVersion: String = null
@ -260,8 +634,58 @@ input UploadMetadataInput {
ipAddress: String = null
}
type GetUploadLinkReturn {
uploadUrl: String!
linksRequested: Int!
uploadsCompleted: Int!
enum DeviceTypeEnum {
IOS
ANDROID
BROWSER
}
input VideoResolution {
width: Int!
height: Int!
}
type GetUploadLinkReturn {
value: UploadLinkGetUploadLinkErrors!
stream: UploadStreamGQL
}
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
type GetUploadLinkErrors {
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr!
}
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
MustHaveSetForUploadLinkErr
| SegmentAlreadyUploadedErr
| ProcessingFailedErr
| NoInitForChunkedUploadErr
| TooManyProfileImageUploadsErr
| InitUploadAlreadyCompletedErr
| TooManyInitUploadsErr
type MustHaveSetForUploadLinkErr {
resolution: Boolean
framesPerSecond: Boolean
}
type SegmentAlreadyUploadedErr {
segmentId: Int!
}
type ProcessingFailedErr {
processing: VideoProcessingGQL!
}
type NoInitForChunkedUploadErr {
segmentType: StreamSegmentTypeEnum!
}
type InitUploadAlreadyCompletedErr {
segmentType: StreamSegmentTypeEnum!
}
type TooManyInitUploadsErr {
linksRequested: Int!
}

18
tsconfig.json Normal file
View File

@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es2018",
"module": "commonjs",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"declaration": true,
"sourceMap": true
},
"include": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": ["node_modules", "dist"]
}

161
yarn.lock
View File

@ -10,6 +10,26 @@
"@jridgewell/gen-mapping" "^0.3.0"
"@jridgewell/trace-mapping" "^0.3.9"
"@apollo/client@^3.9.2":
version "3.9.2"
resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.9.2.tgz#96edf2c212f828bad1ef3d84234fa473c5a27ff8"
integrity sha512-Zw9WvXjqhpbgkvAvnj52vstOWwM0iedKWtn1hSq1cODQyoe1CF2uFwMYFI7l56BrAY9CzLi6MQA0AhxpgJgvxw==
dependencies:
"@graphql-typed-document-node/core" "^3.1.1"
"@wry/caches" "^1.0.0"
"@wry/equality" "^0.5.6"
"@wry/trie" "^0.5.0"
graphql-tag "^2.12.6"
hoist-non-react-statics "^3.3.2"
optimism "^0.18.0"
prop-types "^15.7.2"
rehackt "0.0.3"
response-iterator "^0.2.6"
symbol-observable "^4.0.0"
ts-invariant "^0.10.3"
tslib "^2.3.0"
zen-observable-ts "^1.2.5"
"@ardatan/relay-compiler@12.0.0":
version "12.0.0"
resolved "https://registry.yarnpkg.com/@ardatan/relay-compiler/-/relay-compiler-12.0.0.tgz#2e4cca43088e807adc63450e8cab037020e91106"
@ -1124,6 +1144,41 @@
fast-querystring "^1.1.1"
tslib "^2.3.1"
"@wry/caches@^1.0.0":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@wry/caches/-/caches-1.0.1.tgz#8641fd3b6e09230b86ce8b93558d44cf1ece7e52"
integrity sha512-bXuaUNLVVkD20wcGBWRyo7j9N3TxePEWFZj2Y+r9OoUzfqmavM84+mFykRicNsBqatba5JLay1t48wxaXaWnlA==
dependencies:
tslib "^2.3.0"
"@wry/context@^0.7.0":
version "0.7.4"
resolved "https://registry.yarnpkg.com/@wry/context/-/context-0.7.4.tgz#e32d750fa075955c4ab2cfb8c48095e1d42d5990"
integrity sha512-jmT7Sb4ZQWI5iyu3lobQxICu2nC/vbUhP0vIdd6tHC9PTfenmRmuIFqktc6GH9cgi+ZHnsLWPvfSvc4DrYmKiQ==
dependencies:
tslib "^2.3.0"
"@wry/equality@^0.5.6":
version "0.5.7"
resolved "https://registry.yarnpkg.com/@wry/equality/-/equality-0.5.7.tgz#72ec1a73760943d439d56b7b1e9985aec5d497bb"
integrity sha512-BRFORjsTuQv5gxcXsuDXx6oGRhuVsEGwZy6LOzRRfgu+eSfxbhUQ9L9YtSEIuIjY/o7g3iWFjrc5eSY1GXP2Dw==
dependencies:
tslib "^2.3.0"
"@wry/trie@^0.4.3":
version "0.4.3"
resolved "https://registry.yarnpkg.com/@wry/trie/-/trie-0.4.3.tgz#077d52c22365871bf3ffcbab8e95cb8bc5689af4"
integrity sha512-I6bHwH0fSf6RqQcnnXLJKhkSXG45MFral3GxPaY4uAl0LYDZM+YDVDAiU9bYwjTuysy1S0IeecWtmq1SZA3M1w==
dependencies:
tslib "^2.3.0"
"@wry/trie@^0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@wry/trie/-/trie-0.5.0.tgz#11e783f3a53f6e4cd1d42d2d1323f5bc3fa99c94"
integrity sha512-FNoYzHawTMk/6KMQoEG5O4PuioX19UbwdQKF44yw0nLfOypfQdjtfZzo/UIJWAJ23sNIFbD1Ug9lbaDGMwbqQA==
dependencies:
tslib "^2.3.0"
agent-base@^7.0.2, agent-base@^7.1.0:
version "7.1.0"
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.0.tgz#536802b76bc0b34aa50195eb2442276d613e3434"
@ -1498,6 +1553,11 @@ colorette@^2.0.16:
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a"
integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==
commander@4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/commander/-/commander-4.0.1.tgz#b67622721785993182e807f4883633e6401ba53c"
integrity sha512-IPF4ouhCP+qdlcmCedhxX4xiGBPyigb8v5NeUp+0LyhwLgxMqyp3S0vl7TAPfS/hiP7FC3caI/PB9lTmP8r1NA==
common-tags@1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.2.tgz#94ebb3c076d26032745fd54face7f688ef5ac9c6"
@ -1842,7 +1902,7 @@ graphql-request@^6.0.0:
"@graphql-typed-document-node/core" "^3.2.0"
cross-fetch "^3.1.5"
graphql-tag@^2.11.0:
graphql-tag@^2.11.0, graphql-tag@^2.12.6:
version "2.12.6"
resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.12.6.tgz#d441a569c1d2537ef10ca3d1633b48725329b5f1"
integrity sha512-FdSNcu2QQcWnM2VNvSCCDCVS5PpPqpzgFT8+GXzqJuoDd0CBncxCY278u4mhRO7tMgo2JjgJA5aZ+nWSQ/Z+xg==
@ -1901,6 +1961,13 @@ header-case@^2.0.4:
capital-case "^1.0.4"
tslib "^2.0.3"
hoist-non-react-statics@^3.3.2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==
dependencies:
react-is "^16.7.0"
http-proxy-agent@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz#e9096c5afd071a3fce56e6252bb321583c124673"
@ -2195,7 +2262,7 @@ log-update@^4.0.0:
slice-ansi "^4.0.0"
wrap-ansi "^6.2.0"
loose-envify@^1.0.0:
loose-envify@^1.0.0, loose-envify@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
@ -2312,7 +2379,7 @@ nullthrows@^1.1.1:
resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1"
integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==
object-assign@^4.1.0:
object-assign@^4.1.0, object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==
@ -2336,6 +2403,16 @@ onetime@^5.1.0:
dependencies:
mimic-fn "^2.1.0"
optimism@^0.18.0:
version "0.18.0"
resolved "https://registry.yarnpkg.com/optimism/-/optimism-0.18.0.tgz#e7bb38b24715f3fdad8a9a7fc18e999144bbfa63"
integrity sha512-tGn8+REwLRNFnb9WmcY5IfpOqeX2kpaYJ1s6Ae3mn12AeydLkR3j+jSCmVQFoXqU8D41PAJ1RG1rCRNWmNZVmQ==
dependencies:
"@wry/caches" "^1.0.0"
"@wry/context" "^0.7.0"
"@wry/trie" "^0.4.3"
tslib "^2.3.0"
ora@^5.4.1:
version "5.4.1"
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
@ -2466,6 +2543,14 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
pbjs@^0.0.14:
version "0.0.14"
resolved "https://registry.yarnpkg.com/pbjs/-/pbjs-0.0.14.tgz#5ab3d4a5f06a9ab78dd320c63f72877120d4c48d"
integrity sha512-F4aA0ojrQ37kxFPOg4yRLP/vxb76rYQwMQigmVEljYlA7hZKmjaWjP6IkRn4nA0NdIj4Xxe4iqWrrIhJy+MwWQ==
dependencies:
commander "4.0.1"
protocol-buffers-schema "3.1.0"
picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
@ -2476,6 +2561,16 @@ picomatch@^2.3.1:
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
prettier-plugin-organize-imports@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-3.2.4.tgz#77967f69d335e9c8e6e5d224074609309c62845e"
integrity sha512-6m8WBhIp0dfwu0SkgfOxJqh+HpdyfqSSLfKKRZSFbDuEQXDDndb8fTpRWkUrX/uBenkex3MgnVk0J3b3Y5byog==
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==
promise@^7.1.1:
version "7.3.1"
resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf"
@ -2483,6 +2578,20 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"
prop-types@^15.7.2:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
dependencies:
loose-envify "^1.4.0"
object-assign "^4.1.1"
react-is "^16.13.1"
protocol-buffers-schema@3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/protocol-buffers-schema/-/protocol-buffers-schema-3.1.0.tgz#d8a819549ead3e6bd189ebe9e50e96636bbc5cc7"
integrity sha512-1g9zFjLFhGN1Dc5UVO8D2loVslp6sVxk5sJqgD66CuWUITh2gOaTLRN/pIakGFfB6e0nNF6hImrYFDurEsA1UQ==
punycode@^1.3.2:
version "1.4.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
@ -2505,6 +2614,11 @@ queue-microtask@^1.2.2:
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
react-is@^16.13.1, react-is@^16.7.0:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
readable-stream@^3.4.0:
version "3.6.2"
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967"
@ -2519,6 +2633,11 @@ regenerator-runtime@^0.14.0:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f"
integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==
rehackt@0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/rehackt/-/rehackt-0.0.3.tgz#1ea454620d4641db8342e2db44595cf0e7ac6aa0"
integrity sha512-aBRHudKhOWwsTvCbSoinzq+Lej/7R8e8UoPvLZo5HirZIIBLGAgdG7SL9QpdcBoQ7+3QYPi3lRLknAzXBlhZ7g==
relay-runtime@12.0.0:
version "12.0.0"
resolved "https://registry.yarnpkg.com/relay-runtime/-/relay-runtime-12.0.0.tgz#1e039282bdb5e0c1b9a7dc7f6b9a09d4f4ff8237"
@ -2563,6 +2682,11 @@ resolve-from@^4.0.0:
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
response-iterator@^0.2.6:
version "0.2.6"
resolved "https://registry.yarnpkg.com/response-iterator/-/response-iterator-0.2.6.tgz#249005fb14d2e4eeb478a3f735a28fd8b4c9f3da"
integrity sha512-pVzEEzrsg23Sh053rmDUvLSkGXluZio0qu8VT6ukrYuvtjVfCbDZH9d6PGXb8HZfzdNZt8feXv/jvUzlhRgLnw==
restore-cursor@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"
@ -2757,6 +2881,11 @@ swap-case@^2.0.2:
dependencies:
tslib "^2.0.3"
symbol-observable@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205"
integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ==
through@^2.3.6, through@^2.3.8:
version "2.3.8"
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
@ -2793,12 +2922,19 @@ tr46@~0.0.3:
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
ts-invariant@^0.10.3:
version "0.10.3"
resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.10.3.tgz#3e048ff96e91459ffca01304dbc7f61c1f642f6c"
integrity sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==
dependencies:
tslib "^2.1.0"
ts-log@^2.2.3:
version "2.2.5"
resolved "https://registry.yarnpkg.com/ts-log/-/ts-log-2.2.5.tgz#aef3252f1143d11047e2cb6f7cfaac7408d96623"
integrity sha512-PGcnJoTBnVGy6yYNFxWVNkdcAuAMstvutN9MgDJIV6L0oG8fB+ZNNy1T+wJzah8RPGor1mZuPQkVfXNDpy9eHA==
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6.2, tslib@~2.6.0:
tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6.2, tslib@~2.6.0:
version "2.6.2"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
@ -2818,6 +2954,11 @@ type-fest@^0.21.3:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==
typescript@^4.x:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
ua-parser-js@^1.0.35:
version "1.0.37"
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.37.tgz#b5dc7b163a5c1f0c510b08446aed4da92c46373f"
@ -3023,3 +3164,15 @@ yocto-queue@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
zen-observable-ts@^1.2.5:
version "1.2.5"
resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-1.2.5.tgz#6c6d9ea3d3a842812c6e9519209365a122ba8b58"
integrity sha512-QZWQekv6iB72Naeake9hS1KxHlotfRpe+WGNbNx5/ta+R3DNjVO2bswf63gXlWDcs+EMd7XY8HfVQyP1X6T4Zg==
dependencies:
zen-observable "0.8.15"
zen-observable@0.8.15:
version "0.8.15"
resolved "https://registry.yarnpkg.com/zen-observable/-/zen-observable-0.8.15.tgz#96415c512d8e3ffd920afd3889604e30b9eaac15"
integrity sha512-PQ2PC7R9rslx84ndNBZB/Dkv8V8fZEpk83RLgXtYd0fwUgEjseMn1Dgajh2x6S8QbZAFa9p2qVCEuYZNgve0dQ==