diff --git a/package.json b/package.json index e221d25..09a409d 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/types/api-entities.ts b/types/api-entities.ts index 5e3980a..5bdda79 100644 --- a/types/api-entities.ts +++ b/types/api-entities.ts @@ -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 {