n_a_types 3.0.2 → 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.
- package/index.ts +5 -3
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const API_VERSION =
|
|
1
|
+
export const API_VERSION = 3;
|
|
2
2
|
export type Section = Guidebook['sections'][number];
|
|
3
3
|
export type Area = Section['areas'][number];
|
|
4
4
|
export type ClimbImageGroup = Area['climbImageGroups'][number];
|
|
@@ -12,7 +12,8 @@ export type StarRating = "ONE" | "TWO" | "THREE" | "FOUR";
|
|
|
12
12
|
|
|
13
13
|
///GUIDEBOOK FETCH
|
|
14
14
|
export type Guidebook = {
|
|
15
|
-
|
|
15
|
+
digitalVersionPublished: boolean,
|
|
16
|
+
apiVersion: number,
|
|
16
17
|
images: string[],
|
|
17
18
|
sections: ({
|
|
18
19
|
areas: ({
|
|
@@ -121,6 +122,7 @@ export type Guidebook = {
|
|
|
121
122
|
///PRODUCT DATA FETCH
|
|
122
123
|
export type GuidebookProductData = {
|
|
123
124
|
guidebooks: {
|
|
125
|
+
digitalVersionPublished: boolean,
|
|
124
126
|
id: number;
|
|
125
127
|
title: string;
|
|
126
128
|
author: string;
|
|
@@ -131,5 +133,5 @@ export type GuidebookProductData = {
|
|
|
131
133
|
heroImage: string;
|
|
132
134
|
state: string;
|
|
133
135
|
accessTrailPolylines: TrailPolyline[];
|
|
134
|
-
}[], apiVersion:
|
|
136
|
+
}[], apiVersion: number;
|
|
135
137
|
}
|