n_a_types 3.0.12 → 3.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.
Files changed (2) hide show
  1. package/V3.ts +13 -2
  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,10 +21,13 @@ 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;
25
29
  state: string;
30
+ additionalImages: Image[];
26
31
  accessTrailPolylines: TrailPolyline[];
27
32
  parkingInfo: POI[];
28
33
  digitalGuidePrice: number;
@@ -58,6 +63,7 @@ export type Area = {
58
63
  swipeDirection: AreaSwipeDirection;
59
64
  accessClosureDescription: string | null;
60
65
  imageS3Key: string | null;
66
+ geojsonFeaturePolygon: GeoJSONFeature | null;
61
67
  }
62
68
 
63
69
  export type ClimbImageGroup = {
@@ -156,6 +162,8 @@ export type Image = {
156
162
  naturalHeight: number;
157
163
  blurhash: string | null;
158
164
  climbId: number | null;
165
+ guidebookId: number | null;
166
+
159
167
  }
160
168
 
161
169
  export type POI = {
@@ -170,6 +178,7 @@ export type POI = {
170
178
  ///PRODUCT DATA FETCH
171
179
  export type GuidebookProductData = {
172
180
  guidebooks: {
181
+ additionalImages: Image[],
173
182
  digitalVersionPublished: boolean,
174
183
  id: number;
175
184
  title: string;
@@ -186,5 +195,7 @@ export type GuidebookProductData = {
186
195
  heroImageNew: Image | null;
187
196
  coverImageS3Key: string | null;
188
197
  heroImageS3Key: string | null;
198
+ latitude: number | null;
199
+ longitude: number | null;
189
200
  }[], apiVersion: number;
190
201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.12",
3
+ "version": "3.0.15",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",