n_a_types 3.0.1 → 3.0.3

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/index.ts +5 -11
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,26 +1,19 @@
1
-
2
-
1
+ export const API_VERSION = 3;
3
2
  export type Section = Guidebook['sections'][number];
4
3
  export type Area = Section['areas'][number];
5
4
  export type ClimbImageGroup = Area['climbImageGroups'][number];
6
5
  export type Climb = Area['climbs'][number];
7
-
8
6
  export type Coord = { x: number, y: number };
9
7
  export type POI = Guidebook['parkingInfo'][number];
10
-
11
8
  export type LatLong = { latitude: number, longitude: number }
12
9
  export type TrailPolyline = LatLong[]
13
-
14
10
  export type ClimbType = 'TRAD' | 'SPORT' | 'BOULDER' | 'ICE' | 'TOPROPE'
15
-
16
-
17
- const API_VERSION_CONST = 3 as const;
18
-
19
11
  export type StarRating = "ONE" | "TWO" | "THREE" | "FOUR";
20
12
 
21
13
  ///GUIDEBOOK FETCH
22
14
  export type Guidebook = {
23
- apiVersion: typeof API_VERSION_CONST,
15
+ digitalVersionPublished: boolean,
16
+ apiVersion: number,
24
17
  images: string[],
25
18
  sections: ({
26
19
  areas: ({
@@ -129,6 +122,7 @@ export type Guidebook = {
129
122
  ///PRODUCT DATA FETCH
130
123
  export type GuidebookProductData = {
131
124
  guidebooks: {
125
+ digitalVersionPublished: boolean,
132
126
  id: number;
133
127
  title: string;
134
128
  author: string;
@@ -139,5 +133,5 @@ export type GuidebookProductData = {
139
133
  heroImage: string;
140
134
  state: string;
141
135
  accessTrailPolylines: TrailPolyline[];
142
- }[], apiVersion: typeof API_VERSION_CONST;
136
+ }[], apiVersion: number;
143
137
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n_a_types",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "types",
5
5
  "main": "index.ts",
6
6
  "scripts": {