n_a_types 3.0.15 → 3.0.17

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 +18 -5
  2. 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
- export type GeojsonFeaturePolygon = GeoJSONFeature
9
- import type { GeoJSONFeature } from "zod-geojson";
8
+ import type { GeoJSONFeature, GeoJSONMultiPolygon } from "zod-geojson";
9
+ export type GeojsonFeaturePolygon = GeoJSONFeature;
10
10
 
11
11
  ///GUIDEBOOK FETCH
12
12
  export type Guidebook = {
@@ -33,6 +33,7 @@ export type Guidebook = {
33
33
  digitalGuidePrice: number;
34
34
  coverImageS3Key: string | null;
35
35
  heroImageS3Key: string | null;
36
+ swipeDirection?: AreaSwipeDirection;
36
37
  }
37
38
 
38
39
  export type Section = {
@@ -40,11 +41,13 @@ export type Section = {
40
41
  sectionName: string;
41
42
  guidebookId: number | null;
42
43
  bookSectionNumber: number;
44
+ swipeDirection?: AreaSwipeDirection;
43
45
  id: number;
44
46
  }
45
47
 
46
48
  export type Area = {
47
49
  climbImageGroups: ClimbImageGroup[];
50
+ climbMapGroups: ClimbMapGroup[];
48
51
  climbs: Climb[];
49
52
  areaName: string;
50
53
  sectionAreaNumber: number;
@@ -63,7 +66,7 @@ export type Area = {
63
66
  swipeDirection: AreaSwipeDirection;
64
67
  accessClosureDescription: string | null;
65
68
  imageS3Key: string | null;
66
- geojsonFeaturePolygon: GeoJSONFeature | null;
69
+ geojsonFeaturePolygon: GeojsonFeaturePolygon | null;
67
70
  }
68
71
 
69
72
  export type ClimbImageGroup = {
@@ -152,6 +155,9 @@ export type Climb = {
152
155
  topo3DUrl: string | null;
153
156
  overviewImageURL: string | null;
154
157
  additionalImages: Image[];
158
+ latitude: number | null,
159
+ longitude: number | null,
160
+ climbMapGroupId: string | null
155
161
  }
156
162
 
157
163
  export type Image = {
@@ -197,5 +203,12 @@ export type GuidebookProductData = {
197
203
  heroImageS3Key: string | null;
198
204
  latitude: number | null;
199
205
  longitude: number | null;
206
+ swipeDirection?: AreaSwipeDirection;
200
207
  }[], apiVersion: number;
208
+ }
209
+
210
+ export type ClimbMapGroup = {
211
+ id: string,
212
+ climbs: { id: number }[],
213
+ geojsonMultiPolygon: GeoJSONMultiPolygon | null
201
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.15",
3
+ "version": "3.0.17",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",