n_a_types 3.0.15 → 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.
Files changed (2) hide show
  1. package/V3.ts +15 -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 = {
@@ -45,6 +45,7 @@ export type Section = {
45
45
 
46
46
  export type Area = {
47
47
  climbImageGroups: ClimbImageGroup[];
48
+ climbMapGroups: ClimbMapGroup[];
48
49
  climbs: Climb[];
49
50
  areaName: string;
50
51
  sectionAreaNumber: number;
@@ -63,7 +64,7 @@ export type Area = {
63
64
  swipeDirection: AreaSwipeDirection;
64
65
  accessClosureDescription: string | null;
65
66
  imageS3Key: string | null;
66
- geojsonFeaturePolygon: GeoJSONFeature | null;
67
+ geojsonFeaturePolygon: GeojsonFeaturePolygon | null;
67
68
  }
68
69
 
69
70
  export type ClimbImageGroup = {
@@ -152,6 +153,9 @@ export type Climb = {
152
153
  topo3DUrl: string | null;
153
154
  overviewImageURL: string | null;
154
155
  additionalImages: Image[];
156
+ latitude: number | null,
157
+ longitude: number | null,
158
+ climbMapGroupId: string | null
155
159
  }
156
160
 
157
161
  export type Image = {
@@ -198,4 +202,10 @@ export type GuidebookProductData = {
198
202
  latitude: number | null;
199
203
  longitude: number | null;
200
204
  }[], apiVersion: number;
205
+ }
206
+
207
+ export type ClimbMapGroup = {
208
+ id: string,
209
+ climbs: { id: number }[],
210
+ geojsonMultiPolygon: GeoJSONMultiPolygon | null
201
211
  }
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.16",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",