Commit 1bf03b3
fix: align resource paths with the deployed Go server (0.2.1)
Eight methods in @sharp-api/client@0.2.0 called endpoints that don't exist
on api.sharpapi.io and 404'd in production. This release renames the broken
paths and removes the methods that have no server-side counterpart.
Path renames (now reach a real handler):
api.ev.get /api/v1/positive-ev → /api/v1/opportunities/ev
api.arbitrage.* /api/v1/arbitrage → /api/v1/opportunities/arbitrage
api.account.me /api/v1/me → /api/v1/account
api.account.usage /api/v1/me/usage → /api/v1/account/usage
api.odds.batch POST /api/v1/odds/multi → POST /api/v1/odds/batch
(method renamed from .multi to .batch to match)
Method removals (no server endpoint, never worked):
api.events.search — no /events/search handler
api.schedule.get — no /schedule handler
api.schedule.live — no /schedule/live handler
api.valueBets.get — no /value-bets handler
Deleted types: ScheduleParams, ValueBetsParams, ValueBet.
This is technically a strict-semver breaking change since four methods
disappear from the public API, but every removed method already 404'd at
runtime in 0.2.0 — the only practical break is a TypeScript compile error
for callers that imported the dead methods.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e0ba542 commit 1bf03b3
5 files changed
Lines changed: 18 additions & 69 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 139 | | |
146 | 140 | | |
147 | 141 | | |
| |||
250 | 244 | | |
251 | 245 | | |
252 | 246 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 247 | | |
260 | 248 | | |
261 | 249 | | |
| |||
274 | 262 | | |
275 | 263 | | |
276 | 264 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | 265 | | |
282 | 266 | | |
283 | 267 | | |
| |||
825 | 809 | | |
826 | 810 | | |
827 | 811 | | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | 812 | | |
834 | 813 | | |
835 | 814 | | |
| |||
841 | 820 | | |
842 | 821 | | |
843 | 822 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | 823 | | |
859 | 824 | | |
860 | 825 | | |
| |||
874 | 839 | | |
875 | 840 | | |
876 | 841 | | |
877 | | - | |
878 | | - | |
| 842 | + | |
| 843 | + | |
879 | 844 | | |
880 | 845 | | |
881 | 846 | | |
| |||
884 | 849 | | |
885 | 850 | | |
886 | 851 | | |
887 | | - | |
| 852 | + | |
888 | 853 | | |
889 | 854 | | |
890 | 855 | | |
891 | 856 | | |
892 | | - | |
| 857 | + | |
893 | 858 | | |
894 | 859 | | |
895 | 860 | | |
| |||
906 | 871 | | |
907 | 872 | | |
908 | 873 | | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
| 874 | + | |
919 | 875 | | |
920 | 876 | | |
921 | 877 | | |
| |||
933 | 889 | | |
934 | 890 | | |
935 | 891 | | |
936 | | - | |
| 892 | + | |
937 | 893 | | |
938 | 894 | | |
939 | 895 | | |
940 | 896 | | |
941 | | - | |
| 897 | + | |
942 | 898 | | |
943 | 899 | | |
944 | 900 | | |
| |||
1045 | 1001 | | |
1046 | 1002 | | |
1047 | 1003 | | |
1048 | | - | |
1049 | | - | |
1050 | 1004 | | |
1051 | 1005 | | |
1052 | 1006 | | |
1053 | 1007 | | |
1054 | 1008 | | |
1055 | 1009 | | |
1056 | | - | |
1057 | | - | |
1058 | 1010 | | |
1059 | 1011 | | |
1060 | 1012 | | |
| |||
1069 | 1021 | | |
1070 | 1022 | | |
1071 | 1023 | | |
1072 | | - | |
1073 | 1024 | | |
1074 | 1025 | | |
1075 | 1026 | | |
1076 | | - | |
1077 | 1027 | | |
1078 | 1028 | | |
1079 | 1029 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
213 | 212 | | |
214 | 213 | | |
215 | 214 | | |
216 | | - | |
| 215 | + | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
220 | | - | |
| 219 | + | |
221 | 220 | | |
| 221 | + | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | 225 | | |
225 | 226 | | |
| |||
0 commit comments