File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,25 @@ class SDK {
148
148
* Endpoint: `/api/assignments(/:id)`
149
149
*/
150
150
assignments = generateDynamicRequestFn < Assignment > ( "assignments" ) ;
151
+
152
+ /**
153
+ * ### Biomes
154
+ *
155
+ * Describe the planets fauna and flora, each planet must have a distinct biome.
156
+ *
157
+ * Endpoint: `/api/biomes(/:id)`
158
+ */
159
+ biomes = generateDynamicRequestFn < Assignment > ( "biomes" ) ;
160
+
161
+ /**
162
+ * ### Environmental Effects
163
+ *
164
+ * Effects that influence the player, can also be physical events like meteor showers,
165
+ * fire tornadoes etc.
166
+ *
167
+ * Endpoint: `/api/effects(/:id)`
168
+ */
169
+ effects = generateDynamicRequestFn < Assignment > ( "effects" ) ;
151
170
}
152
171
153
172
const HellHub = SDK . getInstance ( ) ;
Original file line number Diff line number Diff line change 3
3
"license" : " MIT" ,
4
4
"private" : false ,
5
5
"description" : " The official SDK for HellHub API. Filter and collect data with full type safety out of the box." ,
6
- "version" : " 1.1 .0" ,
6
+ "version" : " 1.2 .0" ,
7
7
"main" : " dist/index.mjs" ,
8
8
"types" : " dist/index.d.ts" ,
9
9
"keywords" : [
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ export interface Planet extends RemoteEntity {
44
44
ownerId : number ;
45
45
sector : Sector ;
46
46
sectorId : number ;
47
+ effects : Effect [ ] ;
48
+ biome : Biome ;
49
+ biomeId : number ;
47
50
health : number ;
48
51
orders ?: Order [ ] ;
49
52
maxHealth : number ;
@@ -169,6 +172,20 @@ export interface Assignment extends RemoteEntity {
169
172
description : string ;
170
173
}
171
174
175
+ export interface Biome extends Entity {
176
+ index : string ;
177
+ name : string ;
178
+ description : string ;
179
+ planets : Planet [ ] ;
180
+ }
181
+
182
+ export interface Effect extends Entity {
183
+ index : string ;
184
+ name : string ;
185
+ description : string ;
186
+ planets : Planet [ ] ;
187
+ }
188
+
172
189
/**
173
190
* Network request types
174
191
*/
You can’t perform that action at this time.
0 commit comments