n_a_types 3.0.17 → 3.0.19

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 -3
  2. package/package.json +1 -1
package/V3.ts CHANGED
@@ -8,6 +8,8 @@ export type AreaSwipeDirection = 'LEFT_TO_RIGHT' | 'RIGHT_TO_LEFT';
8
8
  import type { GeoJSONFeature, GeoJSONMultiPolygon } from "zod-geojson";
9
9
  export type GeojsonFeaturePolygon = GeoJSONFeature;
10
10
 
11
+ export type ClimbLogAttemptType = 'FLASH' | 'REDPOINT' | 'ONSIGHT' | 'ATTEMPT';
12
+
11
13
  ///GUIDEBOOK FETCH
12
14
  export type Guidebook = {
13
15
  digitalVersionPublished: boolean,
@@ -33,7 +35,8 @@ export type Guidebook = {
33
35
  digitalGuidePrice: number;
34
36
  coverImageS3Key: string | null;
35
37
  heroImageS3Key: string | null;
36
- swipeDirection?: AreaSwipeDirection;
38
+ swipeDirection: AreaSwipeDirection;
39
+ longDescription: string | null;
37
40
  }
38
41
 
39
42
  export type Section = {
@@ -41,7 +44,7 @@ export type Section = {
41
44
  sectionName: string;
42
45
  guidebookId: number | null;
43
46
  bookSectionNumber: number;
44
- swipeDirection?: AreaSwipeDirection;
47
+ swipeDirection: AreaSwipeDirection;
45
48
  id: number;
46
49
  }
47
50
 
@@ -203,12 +206,24 @@ export type GuidebookProductData = {
203
206
  heroImageS3Key: string | null;
204
207
  latitude: number | null;
205
208
  longitude: number | null;
206
- swipeDirection?: AreaSwipeDirection;
209
+ swipeDirection: AreaSwipeDirection;
210
+ longDescription: string | null
207
211
  }[], apiVersion: number;
208
212
  }
209
213
 
210
214
  export type ClimbMapGroup = {
211
215
  id: string,
216
+ areaId: number,
212
217
  climbs: { id: number }[],
213
218
  geojsonMultiPolygon: GeoJSONMultiPolygon | null
219
+ }
220
+
221
+ export type ClimbLog = {
222
+ id: string;
223
+ attemptDate: string;
224
+ createdAt: string;
225
+ attemptType: ClimbLogAttemptType;
226
+ notes: string | null;
227
+ userId: string;
228
+ climbId: number;
214
229
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.17",
3
+ "version": "3.0.19",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",