Skip to content

Commit

Permalink
feat: add assignment task types (#20)
Browse files Browse the repository at this point in the history
* chore(types): update assignment type definitions

* chore(release): bump package version to 1.4.0
  • Loading branch information
fabio-nettis authored Apr 25, 2024
1 parent a9d4489 commit bc26f3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"description": "The official SDK for HellHub API. Filter and collect data with full type safety out of the box.",
"version": "1.3.1",
"version": "1.4.0",
"main": "dist/index.mjs",
"types": "dist/index.d.ts",
"keywords": [
Expand Down
11 changes: 10 additions & 1 deletion types/api-entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,24 @@ export interface Reward extends RemoteEntity {
assignment?: Assignment;
}

export interface AssignmentTask extends Entity {
type: number;
values: number[];
valueTypes: number[];
assignmentId: number;
assignment?: Assignment;
}

export interface Assignment extends RemoteEntity {
type: number;
title: string;
briefing: string;
reward?: Reward;
rewardId: number;
progress: number;
progress: number[];
expiresAt: string;
description: string;
tasks: AssignmentTask[];
}

export interface Biome extends Entity {
Expand Down

0 comments on commit bc26f3f

Please sign in to comment.