@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 CHANGED
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ # @swimresults/api
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
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).