@segha/tmdb 0.0.4 → 0.0.5
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/API/index.ts +7 -3
- package/package.json +1 -1
package/API/index.ts
CHANGED
|
@@ -2,9 +2,13 @@ import z from "zod";
|
|
|
2
2
|
|
|
3
3
|
import { MethodsSchema } from "./Methods";
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
5
|
+
export const API_VERSION = '3' as const;
|
|
6
|
+
export const API_BASE_URL = 'https://api.themoviedb.org/3' as const;
|
|
7
|
+
export const IMAGE_BASE_URL = 'https://image.tmdb.org/t/p' as const;
|
|
8
|
+
|
|
9
|
+
export const Version = z.literal(API_VERSION).describe("API version");
|
|
10
|
+
export const BaseUrl = z.literal(API_BASE_URL).describe('Base URL for the API');
|
|
11
|
+
export const ImageBaseUrl = z.literal(IMAGE_BASE_URL).describe('Base URL for images');
|
|
8
12
|
|
|
9
13
|
export const SpecSchema = z.object({
|
|
10
14
|
version: Version,
|