n_a_types 3.0.11 → 3.0.14
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/V3.ts +11 -2
- package/package.json +1 -1
package/V3.ts
CHANGED
|
@@ -2,9 +2,11 @@ export const API_VERSION = 3;
|
|
|
2
2
|
export type Coord = { x: number, y: number };
|
|
3
3
|
export type LatLong = { latitude: number, longitude: number }
|
|
4
4
|
export type TrailPolyline = LatLong[]
|
|
5
|
-
export type ClimbType = 'TRAD' | 'SPORT' | 'BOULDER' | 'ICE' | 'TOPROPE'
|
|
5
|
+
export type ClimbType = 'TRAD' | 'SPORT' | 'BOULDER' | 'ICE' | 'TOPROPE';
|
|
6
6
|
export type StarRating = "ONE" | "TWO" | "THREE" | "FOUR";
|
|
7
|
-
export type AreaSwipeDirection = 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT'
|
|
7
|
+
export type AreaSwipeDirection = 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT';
|
|
8
|
+
export type GeojsonFeaturePolygon = GeoJSONFeature
|
|
9
|
+
import type { GeoJSONFeature } from "zod-geojson";
|
|
8
10
|
|
|
9
11
|
///GUIDEBOOK FETCH
|
|
10
12
|
export type Guidebook = {
|
|
@@ -19,6 +21,8 @@ export type Guidebook = {
|
|
|
19
21
|
coverImageNew: Image | null;
|
|
20
22
|
description: string;
|
|
21
23
|
isFreeSampleGuidebook: boolean;
|
|
24
|
+
latitude: number | null;
|
|
25
|
+
longitude: number | null;
|
|
22
26
|
version: number;
|
|
23
27
|
heroImage: string;
|
|
24
28
|
heroImageNew: Image | null;
|
|
@@ -48,6 +52,7 @@ export type Area = {
|
|
|
48
52
|
sectionId: number | null;
|
|
49
53
|
guidebookId: number;
|
|
50
54
|
pano: string;
|
|
55
|
+
panoNew: Image | null;
|
|
51
56
|
latitude: number | null;
|
|
52
57
|
longitude: number | null;
|
|
53
58
|
overview: string | null;
|
|
@@ -56,6 +61,8 @@ export type Area = {
|
|
|
56
61
|
aspect: string | null;
|
|
57
62
|
swipeDirection: AreaSwipeDirection;
|
|
58
63
|
accessClosureDescription: string | null;
|
|
64
|
+
imageS3Key: string | null;
|
|
65
|
+
geojsonFeaturePolygon: GeoJSONFeature | null;
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
export type ClimbImageGroup = {
|
|
@@ -184,5 +191,7 @@ export type GuidebookProductData = {
|
|
|
184
191
|
heroImageNew: Image | null;
|
|
185
192
|
coverImageS3Key: string | null;
|
|
186
193
|
heroImageS3Key: string | null;
|
|
194
|
+
latitude: number | null;
|
|
195
|
+
longitude: number | null;
|
|
187
196
|
}[], apiVersion: number;
|
|
188
197
|
}
|