n_a_types 3.0.12 → 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.
Files changed (2) hide show
  1. package/V3.ts +9 -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,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;
@@ -58,6 +62,7 @@ export type Area = {
58
62
  swipeDirection: AreaSwipeDirection;
59
63
  accessClosureDescription: string | null;
60
64
  imageS3Key: string | null;
65
+ geojsonFeaturePolygon: GeoJSONFeature | null;
61
66
  }
62
67
 
63
68
  export type ClimbImageGroup = {
@@ -186,5 +191,7 @@ export type GuidebookProductData = {
186
191
  heroImageNew: Image | null;
187
192
  coverImageS3Key: string | null;
188
193
  heroImageS3Key: string | null;
194
+ latitude: number | null;
195
+ longitude: number | null;
189
196
  }[], apiVersion: number;
190
197
  }
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.14",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",