@swimresults/api 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -2
- package/dist/athlete.d.ts +2071 -0
- package/dist/athlete.js +5 -0
- package/dist/import.d.ts +1508 -0
- package/dist/import.js +5 -0
- package/dist/meeting.d.ts +2978 -0
- package/dist/meeting.js +5 -0
- package/dist/start.d.ts +3350 -0
- package/dist/start.js +5 -0
- package/dist/user.d.ts +2586 -0
- package/dist/user.js +5 -0
- package/package.json +51 -4
package/README.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @swimresults/api
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript types for the SwimResults APIs, generated from the OpenAPI specs in
|
|
4
|
+
[SwimResults/swimresults-api](https://github.com/SwimResults/swimresults-api). Types only, no runtime code.
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
import type { Meeting, Event } from '@swimresults/api/meeting';
|
|
8
|
+
import type { Start, Heat, paths as StartPaths } from '@swimresults/api/start';
|
|
9
|
+
|
|
10
|
+
// response type of an operation
|
|
11
|
+
type CurrentStarts =
|
|
12
|
+
StartPaths['/start/meet/{meet_id}/current']['get']['responses'][200]['content']['application/json'];
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Modules: `meeting`, `athlete`, `start`, `user`, `import`. Each exports `paths`, `components`, `operations`
|
|
16
|
+
and one alias per schema.
|
|
17
|
+
|
|
18
|
+
Base URLs: `https://api.swimresults.de/<module>/v1` (production) and `https://api-dev.swimresults.de/<module>/v1`
|
|
19
|
+
(development).
|