n_a_types 3.0.14 → 3.0.16
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 +19 -5
- package/package.json +1 -1
package/V3.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export const API_VERSION = 3;
|
|
2
2
|
export type Coord = { x: number, y: number };
|
|
3
|
-
export type LatLong = { latitude: number, longitude: number }
|
|
4
|
-
export type TrailPolyline = LatLong[]
|
|
3
|
+
export type LatLong = { latitude: number, longitude: number };
|
|
4
|
+
export type TrailPolyline = LatLong[];
|
|
5
5
|
export type ClimbType = 'TRAD' | 'SPORT' | 'BOULDER' | 'ICE' | 'TOPROPE';
|
|
6
6
|
export type StarRating = "ONE" | "TWO" | "THREE" | "FOUR";
|
|
7
7
|
export type AreaSwipeDirection = 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import type { GeoJSONFeature, GeoJSONMultiPolygon } from "zod-geojson";
|
|
9
|
+
export type GeojsonFeaturePolygon = GeoJSONFeature;
|
|
10
10
|
|
|
11
11
|
///GUIDEBOOK FETCH
|
|
12
12
|
export type Guidebook = {
|
|
@@ -27,6 +27,7 @@ export type Guidebook = {
|
|
|
27
27
|
heroImage: string;
|
|
28
28
|
heroImageNew: Image | null;
|
|
29
29
|
state: string;
|
|
30
|
+
additionalImages: Image[];
|
|
30
31
|
accessTrailPolylines: TrailPolyline[];
|
|
31
32
|
parkingInfo: POI[];
|
|
32
33
|
digitalGuidePrice: number;
|
|
@@ -44,6 +45,7 @@ export type Section = {
|
|
|
44
45
|
|
|
45
46
|
export type Area = {
|
|
46
47
|
climbImageGroups: ClimbImageGroup[];
|
|
48
|
+
climbMapGroups: ClimbMapGroup[];
|
|
47
49
|
climbs: Climb[];
|
|
48
50
|
areaName: string;
|
|
49
51
|
sectionAreaNumber: number;
|
|
@@ -62,7 +64,7 @@ export type Area = {
|
|
|
62
64
|
swipeDirection: AreaSwipeDirection;
|
|
63
65
|
accessClosureDescription: string | null;
|
|
64
66
|
imageS3Key: string | null;
|
|
65
|
-
geojsonFeaturePolygon:
|
|
67
|
+
geojsonFeaturePolygon: GeojsonFeaturePolygon | null;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
export type ClimbImageGroup = {
|
|
@@ -151,6 +153,9 @@ export type Climb = {
|
|
|
151
153
|
topo3DUrl: string | null;
|
|
152
154
|
overviewImageURL: string | null;
|
|
153
155
|
additionalImages: Image[];
|
|
156
|
+
latitude: number | null,
|
|
157
|
+
longitude: number | null,
|
|
158
|
+
climbMapGroupId: string | null
|
|
154
159
|
}
|
|
155
160
|
|
|
156
161
|
export type Image = {
|
|
@@ -161,6 +166,8 @@ export type Image = {
|
|
|
161
166
|
naturalHeight: number;
|
|
162
167
|
blurhash: string | null;
|
|
163
168
|
climbId: number | null;
|
|
169
|
+
guidebookId: number | null;
|
|
170
|
+
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
export type POI = {
|
|
@@ -175,6 +182,7 @@ export type POI = {
|
|
|
175
182
|
///PRODUCT DATA FETCH
|
|
176
183
|
export type GuidebookProductData = {
|
|
177
184
|
guidebooks: {
|
|
185
|
+
additionalImages: Image[],
|
|
178
186
|
digitalVersionPublished: boolean,
|
|
179
187
|
id: number;
|
|
180
188
|
title: string;
|
|
@@ -194,4 +202,10 @@ export type GuidebookProductData = {
|
|
|
194
202
|
latitude: number | null;
|
|
195
203
|
longitude: number | null;
|
|
196
204
|
}[], apiVersion: number;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type ClimbMapGroup = {
|
|
208
|
+
id: string,
|
|
209
|
+
climbs: { id: number }[],
|
|
210
|
+
geojsonMultiPolygon: GeoJSONMultiPolygon | null
|
|
197
211
|
}
|