@brickset-api/types 0.0.14 → 0.0.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @brickset-api/types
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 2d77e7e: Update types
8
+
3
9
  ## 0.0.14
4
10
 
5
11
  ### Patch Changes
package/endpoints.ts CHANGED
@@ -25,14 +25,15 @@ export type ApiKeyOptions = {
25
25
  apiKey: string;
26
26
  };
27
27
 
28
- export type AuthenticatedOptions = ApiKeyOptions & {
28
+ export type AuthenticatedOptions = {
29
29
  userHash: string;
30
30
  };
31
31
 
32
32
  export type OptionsByEndpoint<Endpoint extends string> =
33
33
  Endpoint extends UrlWithParams<'/api/v3.asmx/getSets'> ? Options & ApiKeyOptions :
34
- Endpoint extends '/api/v3.asmx/getThemes' ? Options & ApiKeyOptions :
35
- Partial<AuthenticatedOptions & ApiKeyOptions>;
34
+ Endpoint extends KnownAuthenticatedEndpoint ? Options & ApiKeyOptions & AuthenticatedOptions :
35
+ Endpoint extends KnownEndpoint ? Options & ApiKeyOptions :
36
+ Partial<ApiKeyOptions>;
36
37
 
37
38
  // Common Brickset API v3 response
38
39
  export type ApiResponse<T> = { status: 'success' } & T | { status: 'error'; message: string };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickset-api/types",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "TypeScript types for all datastructures used by the Brickset API",
5
5
  "license": "MIT",
6
6
  "repository": {