n_a_types 3.0.23 → 3.0.25

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 +17 -0
  2. package/package.json +1 -1
package/V3.ts CHANGED
@@ -8,6 +8,7 @@ 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
  export type ClimbLogAttemptType = 'FLASH' | 'REDPOINT' | 'ONSIGHT' | 'ATTEMPT';
11
+ export type GradeFeedbackTag = 'SOFT' | 'SOLID' | 'SANDBAG';
11
12
 
12
13
  ///GUIDEBOOK FETCH
13
14
  export type Guidebook = {
@@ -236,4 +237,20 @@ export type ClimbLog = {
236
237
  User: { publicDisplayName: string | null };
237
238
  isPrivate: boolean;
238
239
  notes: string | null;
240
+ }
241
+
242
+ export type ClimbFeedback = {
243
+ climbId: number;
244
+ userId: string;
245
+ userStarRating: number | null;
246
+ gradeFeedbackTag: GradeFeedbackTag | null;
247
+ }
248
+
249
+ export type ClimbFeedbackAggregateData = {
250
+ climbId: number,
251
+ tags: Record<GradeFeedbackTag, number>,
252
+ averageUserStarRating: {
253
+ rating: number | null,
254
+ count: number
255
+ }
239
256
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.23",
3
+ "version": "3.0.25",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",