@magusbyte/t2dclient 2.0.1 → 2.1.1

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/CHANGELOG.md CHANGED
@@ -1,12 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.1.1] - 2026-02-19
4
+
5
+ - Add Webhooks
6
+
7
+ ## [v2.1.0] - 2026-02-07
8
+
9
+ - Removed `TaskPropertyValueUsage` as this is no longer used
10
+ - The `TaskCreateRequest.properties` is optional
11
+
3
12
  ## [v2.0.1] - 2026-01-27
4
13
 
5
14
  Added support for password recovery.
6
15
 
7
16
  - Updated the example in the README.md
8
17
  - Add `AccountApi.recoverPassword`
9
- - Add `AskPasswordChange` to `AccountApiLoginResponse` to hint that user is using a temporary password.
18
+ - Add `AskPasswordChange` to `AccountApiLoginResponse` to hint that user is
19
+ using a temporary password.
10
20
 
11
21
  ## [v2.0.0] - 2026-01-20
12
22
 
@@ -21,9 +31,11 @@ First major update in which we remove the classic setup and move away from Auth0
21
31
  - Deprecated `formatWorkspaceToken` (use `formatToken` instead)
22
32
 
23
33
  ## [v1.1.2] - 2026-01-11
34
+
24
35
  - Make SystemToken namespace by exported by default
25
36
 
26
37
  ## [v1.1.0] - 2026-01-11
38
+
27
39
  - Add `SystemConfig` and events
28
40
  - Remove `WorkspacePlan`
29
41
  - Change `WorkspaceType.Special` to `WorkspaceType.Temp`
@@ -31,37 +43,47 @@ First major update in which we remove the classic setup and move away from Auth0
31
43
  - Add `SystemTokenItemDto` to `WorkspaceItemDto`
32
44
 
33
45
  ## [v1.0.4] - 2026-01-02
46
+
34
47
  - Fixed typos
35
48
 
36
- ## [v1.0.3] - 2025-12-19
49
+ ## [v1.0.3] - 2025-12-19
37
50
 
38
51
  - Add `TaskComponent`
39
52
  - Add `ChecklistDto`
40
53
 
41
54
  ## [v1.0.2] - 2025-11-11
55
+
42
56
  - Add PriorityMatrix to MapDto
43
57
 
44
58
  ## [v1.0.1] - 2025-11-06
59
+
45
60
  - Add IsArchived bit to Map
46
61
 
47
62
  ## [v1.0.0-rc4] - 2025-10-31
63
+
48
64
  - Introduced MapDisplaySettings
49
65
 
50
66
  ## [v1.0.0-rc3] - 2025-10-14
67
+
51
68
  - Add description to task
52
69
 
53
70
  ## [v1.0.0-rc2] - 2025-8-14
71
+
54
72
  - Add placementItems to SubscribeToWorkspaceResponse
55
73
  - Deprecate subscribeToMap methods
56
74
 
57
75
  ## [v1.0.0-rc1]
76
+
58
77
  - Initial release
59
78
 
60
79
  ## [v1.0.0-rc1.1] - 2025-07-28
80
+
61
81
  - Changed `WorkspaceFeaturesDto` to a dictionary instead of a strong typed.
62
- - Reason: This object contains various feature flags that are enforced on the server, it's mostly diagnostic and should be ignored.
82
+ - Reason: This object contains various feature flags that are enforced on the
83
+ server, it's mostly diagnostic and should be ignored.
63
84
 
64
85
  ## [v1.0.0-rc2] - 2025-08-14
65
86
 
66
- - Changed `SubscribeToWorkspaceResponse` so that it contains `placementItems`, this due to a change in the API to always return placements when subscribing.
87
+ - Changed `SubscribeToWorkspaceResponse` so that it contains `placementItems`,
88
+ this due to a change in the API to always return placements when subscribing.
67
89
  - **NOTE:** Subscribing to a map is no longer needed
@@ -4,7 +4,7 @@ export interface TaskCreateRequest {
4
4
  name: string;
5
5
  description?: string;
6
6
  attributes?: TaskAttributeDto[];
7
- properties: TaskPropertyDto[];
7
+ properties?: TaskPropertyDto[];
8
8
  }
9
9
  export interface TaskCreateResponse {
10
10
  item: TaskItemDto;
@@ -1 +1 @@
1
- {"version":3,"file":"TaskCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/public/task/TaskCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAIvE,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAGD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB"}
1
+ {"version":3,"file":"TaskCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/public/task/TaskCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB"}
@@ -1,11 +1,7 @@
1
- import { TaskPropertyValueUsage, ValueDisplayType } from "./values";
1
+ import { ValueDisplayType } from "./values";
2
2
  export interface TaskPropertyDefinitionDto {
3
3
  key: string;
4
4
  type: ValueDisplayType;
5
- /**
6
- * @deprecated Can be ignored, determined by `fallbackValue`
7
- */
8
- usage: TaskPropertyValueUsage;
9
5
  /**
10
6
  * Is required if `usage` is `Required`.
11
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;CAC3B"}
1
+ {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;CAC3B"}
@@ -1,3 +1,2 @@
1
1
  export type ValueDisplayType = "Number" | "Duration";
2
- export type TaskPropertyValueUsage = "Optional" | "Required";
3
2
  //# sourceMappingURL=values.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/values.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AACrD,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/values.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC"}
@@ -4,7 +4,7 @@ export interface TaskCreateRequest {
4
4
  name: string;
5
5
  description?: string;
6
6
  attributes?: TaskAttributeDto[];
7
- properties: TaskPropertyDto[];
7
+ properties?: TaskPropertyDto[];
8
8
  }
9
9
  export interface TaskCreateResponse {
10
10
  item: TaskItemDto;
@@ -1 +1 @@
1
- {"version":3,"file":"TaskCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/public/task/TaskCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAIvE,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,EAAE,eAAe,EAAE,CAAC;CAC/B;AAGD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB"}
1
+ {"version":3,"file":"TaskCreateRequest.d.ts","sourceRoot":"","sources":["../../../../src/public/task/TaskCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEvE,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;CACnB"}
@@ -1,11 +1,7 @@
1
- import { TaskPropertyValueUsage, ValueDisplayType } from "./values";
1
+ import { ValueDisplayType } from "./values";
2
2
  export interface TaskPropertyDefinitionDto {
3
3
  key: string;
4
4
  type: ValueDisplayType;
5
- /**
6
- * @deprecated Can be ignored, determined by `fallbackValue`
7
- */
8
- usage: TaskPropertyValueUsage;
9
5
  /**
10
6
  * Is required if `usage` is `Required`.
11
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,KAAK,EAAE,sBAAsB,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;CAC3B"}
1
+ {"version":3,"file":"dto.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,aAAa,EAAE,GAAG,GAAG,IAAI,CAAC;CAC3B"}
@@ -1,3 +1,2 @@
1
1
  export type ValueDisplayType = "Number" | "Duration";
2
- export type TaskPropertyValueUsage = "Optional" | "Required";
3
2
  //# sourceMappingURL=values.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/values.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AACrD,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../../../src/public/task-property-definition/values.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@magusbyte/t2dclient",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/MagusByte/t2dclient.git"
7
7
  },
8
8
  "description": "The client for the todo2d.com platform, written in TypeScript.",
9
- "license": "ISC",
9
+ "license": "MIT",
10
10
  "main": "dist/main/index.js",
11
11
  "typings": "dist/main/index.d.ts",
12
12
  "module": "dist/module/index.js",