n_a_types 3.0.22 → 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 +20 -3
  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,
@@ -217,14 +219,14 @@ export type ClimbMapGroup = {
217
219
  geojsonMultiPolygon: GeoJSONMultiPolygon | null
218
220
  }
219
221
 
220
- export type ClimbLogWithClimbData = {
222
+ export type ClimbLog = {
221
223
  id: string;
222
224
  attemptDate: string;
223
225
  createdAt: string;
224
226
  attemptType: ClimbLogAttemptType;
225
- notes: string | null;
226
227
  userId: string;
227
228
  climbId: number;
229
+ climbLogBodyText: string | null;
228
230
  climb: {
229
231
  id: number;
230
232
  climbName: string;
@@ -233,5 +235,20 @@ export type ClimbLogWithClimbData = {
233
235
  userStarRating: number | null;
234
236
  numberOfAttempts: number | null;
235
237
  locationString: string;
236
- User: { publicDisplayName: string | null }
238
+ User: { publicDisplayName: string | null };
239
+ isPrivate: boolean;
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
237
254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.22",
3
+ "version": "3.0.24",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "author": "",