n_a_types 3.0.23 → 3.0.24

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 -0
  2. package/package.json +1 -1
package/V3.ts CHANGED
@@ -9,6 +9,8 @@ import type { GeoJSONFeature, GeoJSONMultiPolygon } from "zod-geojson";
9
9
  export type GeojsonFeaturePolygon = GeoJSONFeature;
10
10
  export type ClimbLogAttemptType = 'FLASH' | 'REDPOINT' | 'ONSIGHT' | 'ATTEMPT';
11
11
 
12
+ export type GradeFeedbackTag = 'SOFT' | 'SOLID' | 'SANDBAG';
13
+
12
14
  ///GUIDEBOOK FETCH
13
15
  export type Guidebook = {
14
16
  digitalVersionPublished: boolean,
@@ -236,4 +238,17 @@ export type ClimbLog = {
236
238
  User: { publicDisplayName: string | null };
237
239
  isPrivate: boolean;
238
240
  notes: string | null;
241
+ }
242
+
243
+ export type ClimbFeedback = {
244
+ climbId: number;
245
+ userId: string;
246
+ userStarRating: number | null;
247
+ gradeFeedbackTag: GradeFeedbackTag | null;
248
+ }
249
+
250
+ export type ClimbFeedbackAggregateData = {
251
+ climbId: number,
252
+ tags: Record<GradeFeedbackTag, number>,
253
+ averageUserStarRating: number | null
239
254
  }
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.24",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",