Releases: hellhub-collective/sdk
v1.4.0
What's Changed
This release updates the type definitions to include the AssignmentTask
type that was recently added to the Assignment
model and describes the fulfillment requirements for a major order.
export interface AssignmentTask extends Entity {
type: number;
values: number[];
valueTypes: number[];
assignmentId: number;
assignment?: Assignment;
}
- feat: add assignment task types by @fabio-nettis in #20
Full Changelog: v1.3.1...v1.4.0
v1.3.1
What's Changed
This PR adds theimageUrl
property to the Planet
type. This field contains a link to a webp containg the planets texture when viewed on the galactic map as celestial body.
- chore(types): add image url to planet type by @fabio-nettis in #19
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's Changed
Following the release v2.7.0 of the API we added new endpoints to the SDK. This introduces endpoints that alllow you to track the internal cron jobs, like the one that fetches the source data from Arrowhead's API:
const response = await Hellhub.crons("refresh_from_source");
This allows you to better fine tune your periodic requests to the API and prevent hitting request limits by eliminating the need for aimless overfetching.
- feat: add cron job endpoints by @fabio-nettis in #18
Full Changelog: v1.2.1...v1.3.0
v1.2.1
What's Changed
This release fixes a type issue with the newly introduces biomes
and effects
methods.
- fix: correctly set types for dynamic request functions by @fabio-nettis in #17
Full Changelog: v1.2.0...v1.2.1
v1.2.0
What's Changed
Two new models have been added to the API, this release adds new type definitions and edits related types to include their new connection fields. Following dynamic request functions have been added:
import HellHub from `@hellhub-collective/sdk`;
const response1 = await HellHub.biomes({
filters: { name: { $contains: "Rainforest" } },
});
const response2 = await HellHub.effects({
filters: { name: { $contains: "Ion Storms" } },
});
- feat: add planet biomes and environmental effects by @fabio-nettis in #16
Full Changelog: v1.1.0...v1.2.0
v1.1.0
What's Changed
Added the liberation progress fields to the type definition for the Planet model. You can check out this pull request to learn more about the specific fields and what their purpose is.
- feat: add liberation fields to type definitions by @fabio-nettis in #15
Full Changelog: v1.0.5...v1.1.0
v1.0.5
What's Changed
This PR fixes a type error on the planet modal by renaming the currently wrong statistics
property to statistic
.
- fix: correctly name
statistic
property by @fabio-nettis in #14
Full Changelog: v1.0.4...v1.0.5
v1.0.4
What's Changed
- refractor: improve general code quality by @fabio-nettis in #13
Full Changelog: v1.0.3...v1.0.4
v1.0.3
What's Changed
Added new release bound action that will also publish the package to the GitHub Packages Repository.
- feat: add github packages action by @fabio-nettis in #10
- fix: bump project version by @fabio-nettis in #11
- fix: resolve issues with github action by @fabio-nettis in #12
Full Changelog: v1.0.2...v1.0.3
v1.0.2
What's Changed
This release removes the $mode
parameter when filtering on a string field. We have noticed that our current database provider simply does not support it. Filtering on string fields with the $contains
operator is case insensitive by default.
- fix: remove invalid request parameter by @fabio-nettis in #9
Full Changelog: v1.0.1...v1.0.2